ada: Fix incorrect copies being used with 'Address
[official-gcc.git] / libgomp / ChangeLog
blobc320f0455e3cb1c86e0f209233cb0fb3466959d1
1 2023-05-26  Tobias Burnus  <tobias@codesourcery.com>
3         * testsuite/libgomp.fortran/allocate-4.f90: Update dg-error.
5 2023-05-21  Tobias Burnus  <tobias@codesourcery.com>
7         PR libgomp/109875
8         * config/gcn/target.c (GOMP_teams4): Honor nteams-var ICV.
9         * config/nvptx/target.c (GOMP_teams4): Likewise.
10         * testsuite/libgomp.c-c++-common/teams-nteams-icv-1.c: New test.
11         * testsuite/libgomp.c-c++-common/teams-nteams-icv-2.c: New test.
12         * testsuite/libgomp.c-c++-common/teams-nteams-icv-3.c: New test.
13         * testsuite/libgomp.c-c++-common/teams-nteams-icv-4.c: New test.
15 2023-05-19  Jakub Jelinek  <jakub@redhat.com>
17         PR libgomp/109904
18         * configure.ac (link_gomp): Include also $DL_LIBS.
19         * configure: Regenerated.
21 2023-05-17  Tobias Burnus  <tobias@codesourcery.com>
23         * testsuite/libgomp.fortran/target-enter-data-3.f90: Uncomment
24         'target exit data'.
25         * testsuite/libgomp.fortran/target-enter-data-4.f90: New test.
26         * testsuite/libgomp.fortran/target-enter-data-5.f90: New test.
27         * testsuite/libgomp.fortran/target-enter-data-6.f90: New test.
28         * testsuite/libgomp.fortran/target-enter-data-7.f90: New test.
30 2023-05-15  Thomas Schwinge  <thomas@codesourcery.com>
32         PR testsuite/66005
33         * configure.ac: Look for 'flock'.
34         * testsuite/Makefile.am (gcc_test_parallel_slots): Enable parallel testing.
35         * testsuite/config/default.exp: Don't 'load_lib "standard.exp"' here...
36         * testsuite/lib/libgomp.exp: ... but here, instead.
37         (libgomp_load): Override for parallel testing.
38         * testsuite/libgomp-site-extra.exp.in (FLOCK): Set.
39         * configure: Regenerate.
40         * Makefile.in: Regenerate.
41         * testsuite/Makefile.in: Regenerate.
43 2023-05-15  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
44             Thomas Schwinge  <thomas@codesourcery.com>
46         PR testsuite/66005
47         * testsuite/Makefile.am (PWD_COMMAND): New variable.
48         (%/site.exp): New target.
49         (check_p_numbers0, check_p_numbers1, check_p_numbers2)
50         (check_p_numbers3, check_p_numbers4, check_p_numbers5)
51         (check_p_numbers6, check_p_numbers, gcc_test_parallel_slots)
52         (check_p_subdirs)
53         (check_DEJAGNU_libgomp_targets): New variables.
54         ($(check_DEJAGNU_libgomp_targets)): New target.
55         ($(check_DEJAGNU_libgomp_targets)): New dependency.
56         (check-DEJAGNU $(check_DEJAGNU_libgomp_targets)): New targets.
57         * testsuite/Makefile.in: Regenerate.
58         * testsuite/lib/libgomp.exp: For parallel testing,
59         'load_file ../libgomp-test-support.exp'.
61 2023-05-15  Thomas Schwinge  <thomas@codesourcery.com>
63         PR testsuite/91884
64         * configure.ac: 'AC_SUBST(CXX)'.
65         * configure: Regenerate.
66         * Makefile.in: Likewise.
67         * testsuite/Makefile.in: Likewise.
68         * testsuite/libgomp-site-extra.exp.in (GXX_UNDER_TEST)
69         (GFORTRAN_UNDER_TEST): Set.
70         * testsuite/lib/libgomp.exp (libgomp_init): Adjust.
71         * testsuite/libgomp.c++/c++.exp: Use 'GXX_UNDER_TEST'.
72         * testsuite/libgomp.oacc-c++/c++.exp: Likewise.
73         * testsuite/libgomp.fortran/fortran.exp: Use
74         'GFORTRAN_UNDER_TEST'.
75         * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
77 2023-05-15  Thomas Schwinge  <thomas@codesourcery.com>
79         PR testsuite/91884
80         * testsuite/lib/libgomp.exp (libgomp_target_compile): Don't
81         specify compiler.
82         * testsuite/libgomp.c++/c++.exp (ALWAYS_CFLAGS): Specify compiler.
83         * testsuite/libgomp.c/c.exp (ALWAYS_CFLAGS): Likewise.
84         * testsuite/libgomp.fortran/fortran.exp (ALWAYS_CFLAGS): Likewise.
85         * testsuite/libgomp.graphite/graphite.exp (ALWAYS_CFLAGS):
86         Likewise.
87         * testsuite/libgomp.oacc-c++/c++.exp (ALWAYS_CFLAGS): Likewise.
88         * testsuite/libgomp.oacc-c/c.exp (ALWAYS_CFLAGS): Likewise.
89         * testsuite/libgomp.oacc-fortran/fortran.exp (ALWAYS_CFLAGS):
90         Likewise.
92 2023-05-12  Tobias Burnus  <tobias@codesourcery.com>
94         PR libstdc++/109816
95         * testsuite/libgomp.c++/target-map-class-1.C: New test.
96         * testsuite/libgomp.c++/target-map-class-2.C: New test.
98 2023-05-12  Thomas Schwinge  <thomas@codesourcery.com>
100         * testsuite/lib/libgomp.exp (libgomp_target_compile): Generalize
101         'lang_library_path' into a list of 'lang_library_paths'.
102         * testsuite/libgomp.c++/c++.exp: Adjust.
103         * testsuite/libgomp.oacc-c++/c++.exp: Likewise.
104         * testsuite/libgomp.fortran/fortran.exp: Adjust.  Use that for
105         libquadmath, too.
106         * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
108 2023-05-12  Thomas Schwinge  <thomas@codesourcery.com>
110         * testsuite/lib/libgomp.exp (libgomp_target_compile): Don't look
111         at 'lang_test_file_found'.
112         * testsuite/libgomp.c++/c++.exp: Don't set and use it, and instead
113         'return' early if not able to test.  Simplify 'ld_library_path' setup.
114         * testsuite/libgomp.fortran/fortran.exp: Likewise.
115         * testsuite/libgomp.oacc-c++/c++.exp: Likewise.
116         * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
118 2023-05-12  Thomas Schwinge  <thomas@codesourcery.com>
120         * testsuite/libgomp.c++/c++.exp: Resolve 'lang_test_file_found'
121         first.
122         * testsuite/libgomp.fortran/fortran.exp: Likewise.
123         * testsuite/libgomp.oacc-c++/c++.exp: Likewise.
124         * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
126 2023-05-12  Thomas Schwinge  <thomas@codesourcery.com>
128         * testsuite/libgomp.c++/c++.exp: Localize 'lang_[...]' etc.
129         * testsuite/libgomp.c/c.exp: Likewise.
130         * testsuite/libgomp.fortran/fortran.exp: Likewise.
131         * testsuite/libgomp.graphite/graphite.exp: Likewise.
132         * testsuite/libgomp.oacc-c++/c++.exp: Likewise.
133         * testsuite/libgomp.oacc-c/c.exp: Likewise.
134         * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
136 2023-05-09  Thomas Schwinge  <thomas@codesourcery.com>
138         * testsuite/libgomp.c++/c++.exp: Don't set 'lang_test_file'.
139         * testsuite/libgomp.fortran/fortran.exp: Likewise.
140         * testsuite/libgomp.oacc-c++/c++.exp: Likewise.
141         * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
142         * testsuite/libgomp.c/c.exp: Unset 'lang_test_file_found' instead of
143         'lang_test_file'.
144         * testsuite/libgomp.oacc-c/c.exp: Likewise.
145         * testsuite/libgomp.graphite/graphite.exp: Likewise.
146         * testsuite/lib/libgomp.exp (libgomp_target_compile): Look for
147         'lang_test_file_found' instead of 'lang_test_file'.
149 2023-05-09  Thomas Schwinge  <thomas@codesourcery.com>
151         * testsuite/lib/libgomp.exp (libgomp_init): Only use 'blddir' if
152         set.
153         * testsuite/libgomp.c++/c++.exp: Likewise.
154         * testsuite/libgomp.oacc-c++/c++.exp: Likewise.
156 2023-05-09  Thomas Schwinge  <thomas@codesourcery.com>
158         * testsuite/libgomp.c++/c++.exp (blddir): Don't set.
159         * testsuite/libgomp.oacc-c++/c++.exp (blddir): Likewise.
161 2023-05-08  Thomas Schwinge  <thomas@codesourcery.com>
163         * testsuite/libgomp.c++/c++.exp: Use 'lang_include_flags' instead
164         of 'libstdcxx_includes'.
165         * testsuite/libgomp.oacc-c++/c++.exp: Likewise.
167 2023-05-08  Thomas Schwinge  <thomas@codesourcery.com>
169         * target.c (gomp_target_rev): Instead of 'dev_to_host_cpy',
170         'host_to_dev_cpy', 'token', take a single 'goacc_asyncqueue'.
171         * libgomp.h (gomp_target_rev): Adjust.
172         * libgomp-plugin.c (GOMP_PLUGIN_target_rev): Adjust.
173         * libgomp-plugin.h (GOMP_PLUGIN_target_rev): Adjust.
174         * plugin/plugin-gcn.c (process_reverse_offload): Adjust.
175         * plugin/plugin-nvptx.c (rev_off_dev_to_host_cpy)
176         (rev_off_host_to_dev_cpy): Remove.
177         (GOMP_OFFLOAD_run): Adjust.
179 2023-05-04  Julian Brown  <julian@codesourcery.com>
181         PR fortran/109622
182         * testsuite/libgomp.fortran/pr109622.f90: Move test...
183         * testsuite/libgomp.oacc-fortran/pr109622.f90: ...to here. Ignore
184         vector length warning.
185         * testsuite/libgomp.fortran/pr109622-2.f90: Move test...
186         * testsuite/libgomp.oacc-fortran/pr109622-2.f90: ...to here.  Add
187         missing copyin/copyout variable. Ignore vector length warnings.
188         * testsuite/libgomp.fortran/pr109622-3.f90: Move test...
189         * testsuite/libgomp.oacc-fortran/pr109622-3.f90: ...to here.  Ignore
190         vector length warnings.
191         * testsuite/libgomp.oacc-fortran/pr109622-4.f90: New test.
193 2023-04-28  Julian Brown  <julian@codesourcery.com>
195         PR fortran/109622
196         * testsuite/libgomp.fortran/pr109622.f90: New test.
197         * testsuite/libgomp.fortran/pr109622-2.f90: New test.
198         * testsuite/libgomp.fortran/pr109622-3.f90: New test.
200 2023-04-25  Tobias Burnus  <tobias@codesourcery.com>
202         * testsuite/libgomp.c-c++-common/scan-1.c: New test.
203         * testsuite/libgomp.c/scan-23.c: New test.
204         * testsuite/libgomp.fortran/scan-2.f90: New test.
206 2023-03-28  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
208         * testsuite/libgomp.oacc-c-c++-common/routine-nohost-2.c: Add
209         weak_undefined options.
211 2023-03-24  Tobias Burnus  <tobias@codesourcery.com>
213         * libgomp.texi (Offload-Target Specifics): Grammar fix.
215 2023-03-24  Thomas Schwinge  <thomas@codesourcery.com>
217         PR fortran/104949
218         * target.c (gomp_map_vars_internal) <GOMP_MAP_FIRSTPRIVATE>: Add
219         caveat/safeguard.
221 2023-03-10  Thomas Schwinge  <thomas@codesourcery.com>
223         PR libgomp/90596
224         * target.c (gomp_map_vars_internal): Allow for
225         'param_kind == GOMP_MAP_VARS_OPENACC | GOMP_MAP_VARS_TARGET'.
226         * oacc-parallel.c (GOACC_parallel_keyed): Pass
227         'GOMP_MAP_VARS_TARGET' to 'goacc_map_vars'.
228         * plugin/plugin-gcn.c (alloc_by_agent, gcn_exec)
229         (GOMP_OFFLOAD_openacc_exec, GOMP_OFFLOAD_openacc_async_exec):
230         Adjust, simplify.
231         (gomp_offload_free): Remove.
232         * plugin/plugin-nvptx.c (nvptx_exec, GOMP_OFFLOAD_openacc_exec)
233         (GOMP_OFFLOAD_openacc_async_exec): Adjust, simplify.
234         (cuda_free_argmem): Remove.
235         * testsuite/libgomp.oacc-c-c++-common/acc_prof-parallel-1.c:
236         Adjust.
238 2023-03-10  Thomas Schwinge  <thomas@codesourcery.com>
240         * target.c (gomp_copy_host2dev, gomp_map_vars_internal): Allow
241         libgomp 'cbuf' buffering with OpenACC 'async' for 'ephemeral'
242         data.
244 2023-03-10  Thomas Schwinge  <thomas@codesourcery.com>
246         * target.c (gomp_map_vars_internal): Use 'OFFSET_INLINED' for
247         'GOMP_MAP_IF_PRESENT'.
248         * plugin/plugin-gcn.c (gcn_exec, GOMP_OFFLOAD_openacc_exec)
249         (GOMP_OFFLOAD_openacc_async_exec): Adjust.
250         * plugin/plugin-nvptx.c (nvptx_exec, GOMP_OFFLOAD_openacc_exec)
251         (GOMP_OFFLOAD_openacc_async_exec): Likewise.
252         * testsuite/libgomp.oacc-c-c++-common/no_create-1.c: Add 'async'
253         testing.
254         * testsuite/libgomp.oacc-c-c++-common/no_create-2.c: Likewise.
256 2023-03-10  Thomas Schwinge  <thomas@codesourcery.com>
258         * oacc-async.c (goacc_wait): Remove 'acc_async_test' -> skip
259         shortcut.
261 2023-03-10  Thomas Schwinge  <thomas@codesourcery.com>
263         * testsuite/libgomp.oacc-c-c++-common/data-3.c: Document/verify
264         another aspect of OpenACC 'async' semantics.
266 2023-03-10  Thomas Schwinge  <thomas@codesourcery.com>
268         * plugin/plugin-gcn.c (gcn_exec): Fix 'acc_ev_enqueue_launch_end'
269         position.
270         * testsuite/libgomp.oacc-c-c++-common/acc_prof-parallel-1.c:
271         Verify 'acc_ev_alloc', 'acc_ev_free'.
273 2023-03-09  Hongyu Wang  <hongyu.wang@intel.com>
275         PR libgomp/109062
276         * env.c (wait_policy): Initialize to -1.
277         (initialize_icvs): Initialize icvs->wait_policy to -1.
278         * testsuite/libgomp.c-c++-common/pr109062.c: New test.
280 2023-03-08  Tobias Burnus  <tobias@codesourcery.com>
282         * libgomp.texi (Offload-Target Specifics): Mention GCN_STACK_SIZE.
284 2023-03-02  Kwok Cheung Yeung  <kcy@codesourcery.com>
285             Paul-Antoine Arras  <pa@codesourcery.com>
287         * testsuite/libgomp.c/simd-math-1.c: New testcase.
289 2023-03-01  Tobias Burnus  <tobias@codesourcery.com>
291         PR middle-end/108546
292         * testsuite/libgomp.fortran/is_device_ptr-3.f90: New test.
293         * testsuite/libgomp.fortran/use_device_ptr-optional-4.f90: New test.
295 2023-02-22  Thomas Schwinge  <thomas@codesourcery.com>
297         * testsuite/libgomp.fortran/alloc-10.f90: Use
298         '-Wno-complain-wrong-lang'.
299         * testsuite/libgomp.fortran/alloc-11.f90: Likewise.
300         * testsuite/libgomp.fortran/alloc-7.f90: Likewise.
301         * testsuite/libgomp.fortran/alloc-9.f90: Likewise.
302         * testsuite/libgomp.fortran/allocate-1.f90: Likewise.
303         * testsuite/libgomp.fortran/depend-4.f90: Likewise.
304         * testsuite/libgomp.fortran/depend-5.f90: Likewise.
305         * testsuite/libgomp.fortran/depend-6.f90: Likewise.
306         * testsuite/libgomp.fortran/depend-7.f90: Likewise.
307         * testsuite/libgomp.fortran/depend-inoutset-1.f90: Likewise.
308         * testsuite/libgomp.fortran/examples-4/declare_target-1.f90:
309         Likewise.
310         * testsuite/libgomp.fortran/examples-4/declare_target-2.f90:
311         Likewise.
312         * testsuite/libgomp.fortran/order-reproducible-1.f90: Likewise.
313         * testsuite/libgomp.fortran/order-reproducible-2.f90: Likewise.
314         * testsuite/libgomp.oacc-fortran/parallel-dims.f90: Likewise.
315         * testsuite/libgomp.fortran/task-detach-6.f90: Remove left-over
316         'dg-prune-output'.
318 2023-02-16  Jakub Jelinek  <jakub@redhat.com>
320         * libgomp.texi: Fix typos - theads -> threads.
322 2023-02-16  Jakub Jelinek  <jakub@redhat.com>
324         * testsuite/libgomp.fortran/target-nowait-array-section.f90: Fix
325         comment typo and improve its wording.
327 2023-02-15  Tobias Burnus  <tobias@codesourcery.com>
329         * target.c (gomp_target_rev): Dereference ptr
330         to get device address.
331         * testsuite/libgomp.fortran/reverse-offload-5.f90: Add test
332         for unallocated allocatable.
334 2023-02-15  Tobias Burnus  <tobias@codesourcery.com>
336         * target.c (gomp_map_vars_internal): Add 'i > 0' before doing a
337         kind check.
338         (GOMP_target_enter_exit_data): If the next map item is
339         GOMP_MAP_ALWAYS_POINTER map it together with the current item.
340         * testsuite/libgomp.fortran/target-enter-data-3.f90: New test.
342 2023-02-09  Tobias Burnus  <tobias@codesourcery.com>
344         PR fortran/107424
345         * testsuite/libgomp.fortran/non-rectangular-loop-1.f90: New test.
346         * testsuite/libgomp.fortran/non-rectangular-loop-1a.f90: New test.
347         * testsuite/libgomp.fortran/non-rectangular-loop-2.f90: New test.
348         * testsuite/libgomp.fortran/non-rectangular-loop-3.f90: New test.
349         * testsuite/libgomp.fortran/non-rectangular-loop-4.f90: New test.
350         * testsuite/libgomp.fortran/non-rectangular-loop-5.f90: New test.
352 2023-02-07  Thomas Schwinge  <thomas@codesourcery.com>
354         * testsuite/libgomp.fortran/reverse-offload-6.f90: Fix nvptx
355         offloading compilation.
357 2023-02-03  Tobias Burnus  <tobias@codesourcery.com>
359         * target.c (gomp_target_rev): Handle mapnum == 0 and avoid
360         freeing not allocated memory.
361         * testsuite/libgomp.fortran/reverse-offload-6.f90: New test.
363 2023-02-03  Tobias Burnus  <tobias@codesourcery.com>
365         * libgomp.texi (5.0 Impl. Status, gcn specifics): Update for
366         reverse offload.
367         * plugin/plugin-gcn.c (GOMP_OFFLOAD_get_num_devices): Accept
368         reverse-offload requirement.
370 2023-02-02  Andrew Stubbs  <ams@codesourcery.com>
372         * config/gcn/libgomp-gcn.h (DEFAULT_GCN_STACK_SIZE): New define.
373         (DEFAULT_TEAM_ARENA_SIZE): New define.
374         (struct heap): Move to this file.
375         (struct kernargs_abi): Likewise.
376         * config/gcn/team.c (gomp_gcn_enter_kernel): Use team arena size from
377         the kernargs.
378         * libgomp.h: Include libgomp-gcn.h.
379         (TEAM_ARENA_SIZE): Remove.
380         (team_malloc): Update the error message.
381         * plugin/plugin-gcn.c (struct kernargs): Move common content to
382         struct kernargs_abi.
383         (struct agent_info): Rename team arenas to ephemeral memories.
384         (struct team_arena_list): Rename ....
385         (struct ephemeral_memories_list): to this.
386         (struct heap): Delete.
387         (team_arena_size): New variable.
388         (stack_size): New variable.
389         (print_kernel_dispatch): Update debug messages.
390         (init_environment_variables): Read GCN_TEAM_ARENA_SIZE.
391         Read GCN_STACK_SIZE.
392         (get_team_arena): Rename ...
393         (configure_ephemeral_memories): ... to this, and set up stacks.
394         (release_team_arena): Rename ...
395         (release_ephemeral_memories): ... to this.
396         (destroy_team_arenas): Rename ...
397         (destroy_ephemeral_memories): ... to this.
398         (create_kernel_dispatch): Add num_threads parameter.
399         Adjust for kernargs_abi refactor and ephemeral memories.
400         (release_kernel_dispatch): Adjust for ephemeral memories.
401         (run_kernel): Pass thread-count to create_kernel_dispatch.
402         (GOMP_OFFLOAD_init_device): Adjust for ephemeral memories.
403         (GOMP_OFFLOAD_fini_device): Adjust for ephemeral memories.
405 2023-02-02  Tobias Burnus  <tobias@codesourcery.com>
407         * libgomp.texi (OpenMP TR11): Fix item for 'strict' modifier.
409 2023-02-01  Tobias Burnus  <tobias@codesourcery.com>
411         * testsuite/libgomp.fortran/allocate-3.f90: Fix ALIGN
412         usage, remove unused -fdump-tree-original.
413         * testsuite/libgomp.fortran/allocate-4.f90: New.
415 2023-02-01  Tobias Burnus  <tobias@codesourcery.com>
417         * libgomp.texi (5.0 Impl. Status): Update 'requires' and 'ancestor'.
418         (GCN): Add item about 'omp requires'.
419         (nvptx): Likewise; add item about reverse offload.
421 2023-01-27  Tobias Burnus  <tobias@codesourcery.com>
423         PR fortran/108558
424         * testsuite/libgomp.fortran/has_device_addr.f90: New test.
426 2023-01-23  Tobias Burnus  <tobias@codesourcery.com>
428         * libgomp.texi (OpenMP 5.0): Set non-rectangular
429         loop nest back to 'P' as Fortran support is incomplete.
431 2023-01-19  Jakub Jelinek  <jakub@redhat.com>
433         PR middle-end/108459
434         * testsuite/libgomp.c/pr108459.c: New test.
436 2023-01-17  Martin Liska  <mliska@suse.cz>
438         * Makefile.in: Regenerate.
439         * configure: Regenerate.
441 2023-01-07  LIU Hao  <lh_mouse@126.com>
443         PR middle-end/108300
444         * config/mingw32/proc.c: Define `WIN32_LEAN_AND_MEAN` before
445         <windows.h>.
447 2023-01-05  Jakub Jelinek  <jakub@redhat.com>
449         PR c++/108286
450         * testsuite/libgomp.c++/pr108286.C: New test.
452 2023-01-02  Jakub Jelinek  <jakub@redhat.com>
454         * libgomp.texi: Bump @copying's copyright year.
456 2022-12-21  Chung-Lin Tang  <cltang@codesourcery.com>
458         PR target/99555
459         * config/nvptx/bar.c (generation_to_barrier): Remove.
460         (futex_wait,futex_wake,do_spin,do_wait): Remove.
461         (GOMP_WAIT_H): Remove.
462         (#include "../linux/bar.c"): Remove.
463         (gomp_barrier_wait_end): New function.
464         (gomp_barrier_wait): Likewise.
465         (gomp_barrier_wait_last): Likewise.
466         (gomp_team_barrier_wait_end): Likewise.
467         (gomp_team_barrier_wait): Likewise.
468         (gomp_team_barrier_wait_final): Likewise.
469         (gomp_team_barrier_wait_cancel_end): Likewise.
470         (gomp_team_barrier_wait_cancel): Likewise.
471         (gomp_team_barrier_cancel): Likewise.
472         * config/nvptx/bar.h (gomp_barrier_t): Remove waiters, lock fields.
473         (gomp_barrier_init): Remove init of waiters, lock fields.
474         (gomp_team_barrier_wake): Remove prototype, add new static inline
475         function.
477 2022-12-21  Jakub Jelinek  <jakub@redhat.com>
479         PR c++/108180
480         * testsuite/libgomp.c++/pr108180.C: New test.
482 2022-12-16  Tobias Burnus  <tobias@codesourcery.com>
484         PR libfortran/108056
485         * testsuite/libgomp.fortran/allocate-4.f90: Remove
486         accidentally added file.
488 2022-12-15  Tobias Burnus  <tobias@codesourcery.com>
490         PR libfortran/108056
491         * testsuite/libgomp.fortran/allocate-4.f90: New file.
493 2022-12-14  Julian Brown  <julian@codesourcery.com>
495         * testsuite/libgomp.fortran/combined-directive-splitting-1.f90: New
496         test.
498 2022-12-10  Tobias Burnus  <tobias@codesourcery.com>
500         * libgomp.h (struct target_mem_desc): Predeclare; move
501         below after 'reverse_splay_tree_node' and add rev_array
502         member.
503         (struct reverse_splay_tree_key_s, reverse_splay_compare): New.
504         (reverse_splay_tree_node, reverse_splay_tree,
505         reverse_splay_tree_key): New typedef.
506         (struct gomp_device_descr): Add mem_map_rev member.
507         * oacc-host.c (host_dispatch): NULL init .mem_map_rev.
508         * plugin/plugin-nvptx.c (GOMP_OFFLOAD_get_num_devices): Claim
509         support for GOMP_REQUIRES_REVERSE_OFFLOAD.
510         * splay-tree.h (splay_tree_callback_stop): New typedef; like
511         splay_tree_callback but returning int not void.
512         (splay_tree_foreach_lazy): Define; like splay_tree_foreach but
513         taking splay_tree_callback_stop as argument.
514         * splay-tree.c (splay_tree_foreach_internal_lazy,
515         splay_tree_foreach_lazy): New; but early exit if callback returns
516         nonzero.
517         * target.c: Instatiate splay_tree_c with splay_tree_prefix 'reverse'.
518         (gomp_map_lookup_rev): New.
519         (gomp_load_image_to_device): Handle reverse-offload function
520         lookup table.
521         (gomp_unload_image_from_device): Free devicep->mem_map_rev.
522         (struct gomp_splay_tree_rev_lookup_data, gomp_splay_tree_rev_lookup,
523         gomp_map_rev_lookup, struct cpy_data, gomp_map_cdata_lookup_int,
524         gomp_map_cdata_lookup): New auxiliary structs and functions for
525         gomp_target_rev.
526         (gomp_target_rev): Implement reverse offloading and its mapping.
527         (gomp_target_init): Init current_device.mem_map_rev.root.
528         * testsuite/libgomp.fortran/reverse-offload-2.f90: New test.
529         * testsuite/libgomp.fortran/reverse-offload-3.f90: New test.
530         * testsuite/libgomp.fortran/reverse-offload-4.f90: New test.
531         * testsuite/libgomp.fortran/reverse-offload-5.f90: New test.
532         * testsuite/libgomp.fortran/reverse-offload-5a.f90: New test without
533         mapping of on-device allocated variables.
535 2022-12-09  Tobias Burnus  <tobias@codesourcery.com>
537         * libgomp.texi (5.1 Impl. Status): Split allocate clause/directive
538         item about 'align'; mark clause as 'Y' and directive as 'N'.
539         * testsuite/libgomp.fortran/allocate-2.f90: New test.
540         * testsuite/libgomp.fortran/allocate-3.f90: New test.
542 2022-12-06  Marcel Vollweiler  <marcel@codesourcery.com>
544         * config/gcn/icv-device.c (omp_get_teams_thread_limit): Added to
545         allow processing of device-specific values.
546         (omp_set_teams_thread_limit): Likewise.
547         (ialias): Likewise.
548         * config/nvptx/icv-device.c (omp_get_teams_thread_limit): Likewise.
549         (omp_set_teams_thread_limit): Likewise.
550         (ialias): Likewise.
551         * icv-device.c (omp_get_teams_thread_limit): Likewise.
552         (ialias): Likewise.
553         (omp_set_teams_thread_limit): Likewise.
554         * icv.c (omp_set_teams_thread_limit): Removed.
555         (omp_get_teams_thread_limit): Likewise.
556         (ialias): Likewise.
557         * libgomp.texi: Updated documentation for nvptx and gcn corresponding
558         to the limitation of the number of teams.
559         * plugin/plugin-gcn.c (limit_teams): New helper function that limits
560         the number of teams by twice the number of compute units.
561         (parse_target_attributes): Limit the number of teams on gcn offload
562         devices.
563         * target.c (get_gomp_offload_icvs): Added teams_thread_limit_var
564         handling.
565         (gomp_load_image_to_device): Added a size check for the ICVs struct
566         variable.
567         (gomp_copy_back_icvs): New function that is used in GOMP_target_ext to
568         copy back the ICV values from device to host.
569         (GOMP_target_ext): Update the number of teams and threads in the kernel
570         args also considering device-specific values.
571         * testsuite/libgomp.c-c++-common/icv-4.c: Fixed an error in the reading
572         of OMP_TEAMS_THREAD_LIMIT from the environment.
573         * testsuite/libgomp.c-c++-common/icv-5.c: Extended.
574         * testsuite/libgomp.c-c++-common/icv-6.c: Extended.
575         * testsuite/libgomp.c-c++-common/icv-7.c: Extended.
576         * testsuite/libgomp.c-c++-common/icv-9.c: New test.
577         * testsuite/libgomp.fortran/icv-5.f90: New test.
578         * testsuite/libgomp.fortran/icv-6.f90: New test.
580 2022-12-06  Tobias Burnus  <tobias@codesourcery.com>
582         * libgomp.texi (OpenMP 5.2): Add missing 'the'.
583         (TR11): Add missing '@tab N @tab'.
585 2022-11-30  Tobias Burnus  <tobias@codesourcery.com>
587         * libgomp.texi (OpenMP Context Selectors): Add 'gfx803' to gcn's isa.
589 2022-11-30  Paul-Antoine Arras  <pa@codesourcery.com>
591         * testsuite/libgomp.c/declare-variant-4-fiji.c: New test.
592         * testsuite/libgomp.c/declare-variant-4-gfx803.c: New test.
593         * testsuite/libgomp.c/declare-variant-4-gfx900.c: New test.
594         * testsuite/libgomp.c/declare-variant-4-gfx906.c: New test.
595         * testsuite/libgomp.c/declare-variant-4-gfx908.c: New test.
596         * testsuite/libgomp.c/declare-variant-4-gfx90a.c: New test.
597         * testsuite/libgomp.c/declare-variant-4.h: New header file.
599 2022-11-28  Tobias Burnus  <tobias@codesourcery.com>
601         * libgomp.texi (OpenMP 5.2): Mark end-directive as Y.
603 2022-11-25  Sandra Loosemore  <sandra@codesourcery.com>
605         * testsuite/lib/libgomp.exp: Load scanoffloadipa.exp library.
606         * testsuite/libgomp.c/target-simd-clone-1.c: New.
607         * testsuite/libgomp.c/target-simd-clone-2.c: New.
608         * testsuite/libgomp.c/target-simd-clone-3.c: New.
610 2022-11-25  Tobias Burnus  <tobias@codesourcery.com>
612         * plugin/plugin-nvptx.c (GOMP_OFFLOAD_load_image): Use unsigned int
613         for 'i' to match 'fn_entries'; regard absent GOMP_REV_OFFLOAD_VAR
614         as valid and the code having no reverse-offload code.
615         * testsuite/libgomp.c-c++-common/reverse-offload-2.c: New test.
617 2022-11-25  Tobias Burnus  <tobias@codesourcery.com>
619         * libgomp.texi (OpenMP Implementation Status): Add three 5.1 items
620         and status for Technical Report (TR) 11.
622 2022-11-21  Tobias Burnus  <tobias@codesourcery.com>
624         * config/gcn/libgomp-gcn.h (struct output):
625         Remove 'msg_u64' from the union, change
626         value_u64[2] to value_u64[6].
627         * config/gcn/target.c (GOMP_target_ext): Update accordingly.
628         * plugin/plugin-gcn.c (process_reverse_offload, console_output):
629         Likewise.
631 2022-11-19  Tobias Burnus  <tobias@codesourcery.com>
633         * config/gcn/libgomp-gcn.h: New file; contains
634         struct output, declared previously in plugin-gcn.c.
635         * config/gcn/target.c: Include it.
636         (GOMP_ADDITIONAL_ICVS): Declare as extern var.
637         (GOMP_target_ext): Handle reverse offload.
638         * plugin/plugin-gcn.c: Include libgomp-gcn.h.
639         (struct kernargs): Replace struct def by the one
640         from libgomp-gcn.h for output_data.
641         (process_reverse_offload): New.
642         (console_output): Call it.
644 2022-11-16  Tobias Burnus  <tobias@codesourcery.com>
645             Andrew Stubbs  <ams@codesourcery.com>
647         * config/gcn/team.c (gomp_gcn_enter_kernel): Use
648         __builtin_gcn_kernarg_ptr instead of asm ("s8").
650 2022-11-14  Martin Liska  <mliska@suse.cz>
652         Revert:
653         2022-11-14  Martin Liska  <mliska@suse.cz>
655         * doc/amd-radeon-gcn.rst: New file.
656         * doc/conf.py: New file.
657         * doc/copyright.rst: New file.
658         * doc/cuda-streams-usage.rst: New file.
659         * doc/enabling-openacc.rst: New file.
660         * doc/enabling-openmp.rst: New file.
661         * doc/first-invocation-nvidia-cublas-library-api.rst: New file.
662         * doc/first-invocation-openacc-library-api.rst: New file.
663         * doc/funding.rst: New file.
664         * doc/general-public-license-3.rst: New file.
665         * doc/gnu-free-documentation-license.rst: New file.
666         * doc/implementation-status-and-implementation-defined-behavior.rst: New file.
667         * doc/index.rst: New file.
668         * doc/indices-and-tables.rst: New file.
669         * doc/introduction.rst: New file.
670         * doc/memory-allocation-with-libmemkind.rst: New file.
671         * doc/nvptx.rst: New file.
672         * doc/offload-target-specifics.rst: New file.
673         * doc/openacc-environment-variables.rst: New file.
674         * doc/openacc-environment-variables/accdevicenum.rst: New file.
675         * doc/openacc-environment-variables/accdevicetype.rst: New file.
676         * doc/openacc-environment-variables/accproflib.rst: New file.
677         * doc/openacc-environment-variables/gccaccnotify.rst: New file.
678         * doc/openacc-introduction.rst: New file.
679         * doc/openacc-library-and-environment-variables.rst: New file.
680         * doc/openacc-library-interoperability.rst: New file.
681         * doc/openacc-profiling-interface.rst: New file.
682         * doc/openacc-runtime-library-routines.rst: New file.
683         * doc/openacc-runtime-library-routines/accasynctest.rst: New file.
684         * doc/openacc-runtime-library-routines/accasynctestall.rst: New file.
685         * doc/openacc-runtime-library-routines/accattach.rst: New file.
686         * doc/openacc-runtime-library-routines/acccopyin.rst: New file.
687         * doc/openacc-runtime-library-routines/acccopyout.rst: New file.
688         * doc/openacc-runtime-library-routines/acccreate.rst: New file.
689         * doc/openacc-runtime-library-routines/accdelete.rst: New file.
690         * doc/openacc-runtime-library-routines/accdetach.rst: New file.
691         * doc/openacc-runtime-library-routines/accdeviceptr.rst: New file.
692         * doc/openacc-runtime-library-routines/accfree.rst: New file.
693         * doc/openacc-runtime-library-routines/accgetcudastream.rst: New file.
694         * doc/openacc-runtime-library-routines/accgetcurrentcudacontext.rst: New file.
695         * doc/openacc-runtime-library-routines/accgetcurrentcudadevice.rst: New file.
696         * doc/openacc-runtime-library-routines/accgetdevicenum.rst: New file.
697         * doc/openacc-runtime-library-routines/accgetdevicetype.rst: New file.
698         * doc/openacc-runtime-library-routines/accgetnumdevices.rst: New file.
699         * doc/openacc-runtime-library-routines/accgetproperty.rst: New file.
700         * doc/openacc-runtime-library-routines/acchostptr.rst: New file.
701         * doc/openacc-runtime-library-routines/accinit.rst: New file.
702         * doc/openacc-runtime-library-routines/accispresent.rst: New file.
703         * doc/openacc-runtime-library-routines/accmalloc.rst: New file.
704         * doc/openacc-runtime-library-routines/accmapdata.rst: New file.
705         * doc/openacc-runtime-library-routines/accmemcpyfromdevice.rst: New file.
706         * doc/openacc-runtime-library-routines/accmemcpytodevice.rst: New file.
707         * doc/openacc-runtime-library-routines/accondevice.rst: New file.
708         * doc/openacc-runtime-library-routines/accpresentorcopyin.rst: New file.
709         * doc/openacc-runtime-library-routines/accpresentorcreate.rst: New file.
710         * doc/openacc-runtime-library-routines/accproflookup.rst: New file.
711         * doc/openacc-runtime-library-routines/accprofregister.rst: New file.
712         * doc/openacc-runtime-library-routines/accprofunregister.rst: New file.
713         * doc/openacc-runtime-library-routines/accregisterlibrary.rst: New file.
714         * doc/openacc-runtime-library-routines/accsetcudastream.rst: New file.
715         * doc/openacc-runtime-library-routines/accsetdevicenum.rst: New file.
716         * doc/openacc-runtime-library-routines/accsetdevicetype.rst: New file.
717         * doc/openacc-runtime-library-routines/accshutdown.rst: New file.
718         * doc/openacc-runtime-library-routines/accunmapdata.rst: New file.
719         * doc/openacc-runtime-library-routines/accupdatedevice.rst: New file.
720         * doc/openacc-runtime-library-routines/accupdateself.rst: New file.
721         * doc/openacc-runtime-library-routines/accwait.rst: New file.
722         * doc/openacc-runtime-library-routines/accwaitall.rst: New file.
723         * doc/openacc-runtime-library-routines/accwaitallasync.rst: New file.
724         * doc/openacc-runtime-library-routines/accwaitasync.rst: New file.
725         * doc/openmp-context-selectors.rst: New file.
726         * doc/openmp-environment-variables.rst: New file.
727         * doc/openmp-environment-variables/gompcpuaffinity.rst: New file.
728         * doc/openmp-environment-variables/gompdebug.rst: New file.
729         * doc/openmp-environment-variables/gomprtemsthreadpools.rst: New file.
730         * doc/openmp-environment-variables/gompspincount.rst: New file.
731         * doc/openmp-environment-variables/gompstacksize.rst: New file.
732         * doc/openmp-environment-variables/ompcancellation.rst: New file.
733         * doc/openmp-environment-variables/ompdefaultdevice.rst: New file.
734         * doc/openmp-environment-variables/ompdisplayenv.rst: New file.
735         * doc/openmp-environment-variables/ompdynamic.rst: New file.
736         * doc/openmp-environment-variables/ompmaxactivelevels.rst: New file.
737         * doc/openmp-environment-variables/ompmaxtaskpriority.rst: New file.
738         * doc/openmp-environment-variables/ompnested.rst: New file.
739         * doc/openmp-environment-variables/ompnumteams.rst: New file.
740         * doc/openmp-environment-variables/ompnumthreads.rst: New file.
741         * doc/openmp-environment-variables/ompplaces.rst: New file.
742         * doc/openmp-environment-variables/ompprocbind.rst: New file.
743         * doc/openmp-environment-variables/ompschedule.rst: New file.
744         * doc/openmp-environment-variables/ompstacksize.rst: New file.
745         * doc/openmp-environment-variables/omptargetoffload.rst: New file.
746         * doc/openmp-environment-variables/ompteamsthreadlimit.rst: New file.
747         * doc/openmp-environment-variables/ompthreadlimit.rst: New file.
748         * doc/openmp-environment-variables/ompwaitpolicy.rst: New file.
749         * doc/openmp-implementation-specifics.rst: New file.
750         * doc/openmp-implementation-status.rst: New file.
751         * doc/openmp-implementation-status/openmp-45.rst: New file.
752         * doc/openmp-implementation-status/openmp-50.rst: New file.
753         * doc/openmp-implementation-status/openmp-51.rst: New file.
754         * doc/openmp-implementation-status/openmp-52.rst: New file.
755         * doc/openmp-runtime-library-routines.rst: New file.
756         * doc/openmp-runtime-library-routines/ompdestroylock.rst: New file.
757         * doc/openmp-runtime-library-routines/ompdestroynestlock.rst: New file.
758         * doc/openmp-runtime-library-routines/ompfulfillevent.rst: New file.
759         * doc/openmp-runtime-library-routines/ompgetactivelevel.rst: New file.
760         * doc/openmp-runtime-library-routines/ompgetancestorthreadnum.rst: New file.
761         * doc/openmp-runtime-library-routines/ompgetcancellation.rst: New file.
762         * doc/openmp-runtime-library-routines/ompgetdefaultdevice.rst: New file.
763         * doc/openmp-runtime-library-routines/ompgetdevicenum.rst: New file.
764         * doc/openmp-runtime-library-routines/ompgetdynamic.rst: New file.
765         * doc/openmp-runtime-library-routines/ompgetinitialdevice.rst: New file.
766         * doc/openmp-runtime-library-routines/ompgetlevel.rst: New file.
767         * doc/openmp-runtime-library-routines/ompgetmaxactivelevels.rst: New file.
768         * doc/openmp-runtime-library-routines/ompgetmaxtaskpriority.rst: New file.
769         * doc/openmp-runtime-library-routines/ompgetmaxteams.rst: New file.
770         * doc/openmp-runtime-library-routines/ompgetmaxthreads.rst: New file.
771         * doc/openmp-runtime-library-routines/ompgetnested.rst: New file.
772         * doc/openmp-runtime-library-routines/ompgetnumdevices.rst: New file.
773         * doc/openmp-runtime-library-routines/ompgetnumprocs.rst: New file.
774         * doc/openmp-runtime-library-routines/ompgetnumteams.rst: New file.
775         * doc/openmp-runtime-library-routines/ompgetnumthreads.rst: New file.
776         * doc/openmp-runtime-library-routines/ompgetprocbind.rst: New file.
777         * doc/openmp-runtime-library-routines/ompgetschedule.rst: New file.
778         * doc/openmp-runtime-library-routines/ompgetsupportedactivelevels.rst: New file.
779         * doc/openmp-runtime-library-routines/ompgetteamnum.rst: New file.
780         * doc/openmp-runtime-library-routines/ompgetteamsize.rst: New file.
781         * doc/openmp-runtime-library-routines/ompgetteamsthreadlimit.rst: New file.
782         * doc/openmp-runtime-library-routines/ompgetthreadlimit.rst: New file.
783         * doc/openmp-runtime-library-routines/ompgetthreadnum.rst: New file.
784         * doc/openmp-runtime-library-routines/ompgetwtick.rst: New file.
785         * doc/openmp-runtime-library-routines/ompgetwtime.rst: New file.
786         * doc/openmp-runtime-library-routines/ompinfinal.rst: New file.
787         * doc/openmp-runtime-library-routines/ompinitlock.rst: New file.
788         * doc/openmp-runtime-library-routines/ompinitnestlock.rst: New file.
789         * doc/openmp-runtime-library-routines/ompinparallel.rst: New file.
790         * doc/openmp-runtime-library-routines/ompisinitialdevice.rst: New file.
791         * doc/openmp-runtime-library-routines/ompsetdefaultdevice.rst: New file.
792         * doc/openmp-runtime-library-routines/ompsetdynamic.rst: New file.
793         * doc/openmp-runtime-library-routines/ompsetlock.rst: New file.
794         * doc/openmp-runtime-library-routines/ompsetmaxactivelevels.rst: New file.
795         * doc/openmp-runtime-library-routines/ompsetnested.rst: New file.
796         * doc/openmp-runtime-library-routines/ompsetnestlock.rst: New file.
797         * doc/openmp-runtime-library-routines/ompsetnumteams.rst: New file.
798         * doc/openmp-runtime-library-routines/ompsetnumthreads.rst: New file.
799         * doc/openmp-runtime-library-routines/ompsetschedule.rst: New file.
800         * doc/openmp-runtime-library-routines/ompsetteamsthreadlimit.rst: New file.
801         * doc/openmp-runtime-library-routines/omptestlock.rst: New file.
802         * doc/openmp-runtime-library-routines/omptestnestlock.rst: New file.
803         * doc/openmp-runtime-library-routines/ompunsetlock.rst: New file.
804         * doc/openmp-runtime-library-routines/ompunsetnestlock.rst: New file.
805         * doc/reporting-bugs.rst: New file.
806         * doc/the-libgomp-abi.rst: New file.
807         * doc/the-libgomp-abi/implementing-atomic-construct.rst: New file.
808         * doc/the-libgomp-abi/implementing-barrier-construct.rst: New file.
809         * doc/the-libgomp-abi/implementing-critical-construct.rst: New file.
810         * doc/the-libgomp-abi/implementing-firstprivate-lastprivate-copyin-and-copyprivate-clauses.rst:
811         New file.
812         * doc/the-libgomp-abi/implementing-flush-construct.rst: New file.
813         * doc/the-libgomp-abi/implementing-for-construct.rst: New file.
814         * doc/the-libgomp-abi/implementing-master-construct.rst: New file.
815         * doc/the-libgomp-abi/implementing-openaccs-parallel-construct.rst: New file.
816         * doc/the-libgomp-abi/implementing-ordered-construct.rst: New file.
817         * doc/the-libgomp-abi/implementing-parallel-construct.rst: New file.
818         * doc/the-libgomp-abi/implementing-private-clause.rst: New file.
819         * doc/the-libgomp-abi/implementing-reduction-clause.rst: New file.
820         * doc/the-libgomp-abi/implementing-sections-construct.rst: New file.
821         * doc/the-libgomp-abi/implementing-single-construct.rst: New file.
822         * doc/the-libgomp-abi/implementing-threadprivate-construct.rst: New file.
824 2022-11-14  Martin Liska  <mliska@suse.cz>
826         Revert:
827         2022-11-14  Martin Liska  <mliska@suse.cz>
829         * Makefile.in: Support Sphinx based documentation.
831 2022-11-14  Martin Liska  <mliska@suse.cz>
833         Revert:
834         2022-11-14  Martin Liska  <mliska@suse.cz>
836         * libgomp.texi: Removed.
838 2022-11-14  Martin Liska  <mliska@suse.cz>
840         Revert:
841         2022-11-14  Martin Liska  <mliska@suse.cz>
843         * Makefile.in: Support --with-sphinx-build.
844         * configure.ac: Likewise..
845         * configure: Regenerate.
847 2022-11-14  Martin Liska  <mliska@suse.cz>
849         Revert:
850         2022-11-09  Martin Liska  <mliska@suse.cz>
852         * Makefile.in: Build info pages conditionally.
854 2022-11-14  Martin Liska  <mliska@suse.cz>
856         Revert:
857         2022-11-14  Martin Liska  <mliska@suse.cz>
859         * doc/amd-radeon-gcn.rst:
860         Add trailing newline.
861         * doc/copyright.rst:
862         Add trailing newline.
863         * doc/cuda-streams-usage.rst:
864         Add trailing newline.
865         * doc/enabling-openacc.rst:
866         Add trailing newline.
867         * doc/enabling-openmp.rst:
868         Add trailing newline.
869         * doc/first-invocation-nvidia-cublas-library-api.rst:
870         Add trailing newline.
871         * doc/first-invocation-openacc-library-api.rst:
872         Add trailing newline.
873         * doc/funding.rst:
874         Add trailing newline.
875         * doc/general-public-license-3.rst:
876         Add trailing newline.
877         * doc/gnu-free-documentation-license.rst:
878         Add trailing newline.
879         * doc/implementation-status-and-implementation-defined-behavior.rst:
880         Add trailing newline.
881         * doc/index.rst:
882         Add trailing newline.
883         * doc/indices-and-tables.rst:
884         Add trailing newline.
885         * doc/introduction.rst:
886         Add trailing newline.
887         * doc/memory-allocation-with-libmemkind.rst:
888         Add trailing newline.
889         * doc/nvptx.rst:
890         Add trailing newline.
891         * doc/offload-target-specifics.rst:
892         Add trailing newline.
893         * doc/openacc-environment-variables.rst:
894         Add trailing newline.
895         * doc/openacc-environment-variables/accdevicenum.rst:
896         Add trailing newline.
897         * doc/openacc-environment-variables/accdevicetype.rst:
898         Add trailing newline.
899         * doc/openacc-environment-variables/accproflib.rst:
900         Add trailing newline.
901         * doc/openacc-environment-variables/gccaccnotify.rst:
902         Add trailing newline.
903         * doc/openacc-introduction.rst:
904         Add trailing newline.
905         * doc/openacc-library-and-environment-variables.rst:
906         Add trailing newline.
907         * doc/openacc-library-interoperability.rst:
908         Add trailing newline.
909         * doc/openacc-profiling-interface.rst:
910         Add trailing newline.
911         * doc/openacc-runtime-library-routines.rst:
912         Add trailing newline.
913         * doc/openacc-runtime-library-routines/accasynctest.rst:
914         Add trailing newline.
915         * doc/openacc-runtime-library-routines/accasynctestall.rst:
916         Add trailing newline.
917         * doc/openacc-runtime-library-routines/accattach.rst:
918         Add trailing newline.
919         * doc/openacc-runtime-library-routines/acccopyin.rst:
920         Add trailing newline.
921         * doc/openacc-runtime-library-routines/acccopyout.rst:
922         Add trailing newline.
923         * doc/openacc-runtime-library-routines/acccreate.rst:
924         Add trailing newline.
925         * doc/openacc-runtime-library-routines/accdelete.rst:
926         Add trailing newline.
927         * doc/openacc-runtime-library-routines/accdetach.rst:
928         Add trailing newline.
929         * doc/openacc-runtime-library-routines/accdeviceptr.rst:
930         Add trailing newline.
931         * doc/openacc-runtime-library-routines/accfree.rst:
932         Add trailing newline.
933         * doc/openacc-runtime-library-routines/accgetcudastream.rst:
934         Add trailing newline.
935         * doc/openacc-runtime-library-routines/accgetcurrentcudacontext.rst:
936         Add trailing newline.
937         * doc/openacc-runtime-library-routines/accgetcurrentcudadevice.rst:
938         Add trailing newline.
939         * doc/openacc-runtime-library-routines/accgetdevicenum.rst:
940         Add trailing newline.
941         * doc/openacc-runtime-library-routines/accgetdevicetype.rst:
942         Add trailing newline.
943         * doc/openacc-runtime-library-routines/accgetnumdevices.rst:
944         Add trailing newline.
945         * doc/openacc-runtime-library-routines/accgetproperty.rst:
946         Add trailing newline.
947         * doc/openacc-runtime-library-routines/acchostptr.rst:
948         Add trailing newline.
949         * doc/openacc-runtime-library-routines/accinit.rst:
950         Add trailing newline.
951         * doc/openacc-runtime-library-routines/accispresent.rst:
952         Add trailing newline.
953         * doc/openacc-runtime-library-routines/accmalloc.rst:
954         Add trailing newline.
955         * doc/openacc-runtime-library-routines/accmapdata.rst:
956         Add trailing newline.
957         * doc/openacc-runtime-library-routines/accmemcpyfromdevice.rst:
958         Add trailing newline.
959         * doc/openacc-runtime-library-routines/accmemcpytodevice.rst:
960         Add trailing newline.
961         * doc/openacc-runtime-library-routines/accondevice.rst:
962         Add trailing newline.
963         * doc/openacc-runtime-library-routines/accpresentorcopyin.rst:
964         Add trailing newline.
965         * doc/openacc-runtime-library-routines/accpresentorcreate.rst:
966         Add trailing newline.
967         * doc/openacc-runtime-library-routines/accproflookup.rst:
968         Add trailing newline.
969         * doc/openacc-runtime-library-routines/accprofregister.rst:
970         Add trailing newline.
971         * doc/openacc-runtime-library-routines/accprofunregister.rst:
972         Add trailing newline.
973         * doc/openacc-runtime-library-routines/accregisterlibrary.rst:
974         Add trailing newline.
975         * doc/openacc-runtime-library-routines/accsetcudastream.rst:
976         Add trailing newline.
977         * doc/openacc-runtime-library-routines/accsetdevicenum.rst:
978         Add trailing newline.
979         * doc/openacc-runtime-library-routines/accsetdevicetype.rst:
980         Add trailing newline.
981         * doc/openacc-runtime-library-routines/accshutdown.rst:
982         Add trailing newline.
983         * doc/openacc-runtime-library-routines/accunmapdata.rst:
984         Add trailing newline.
985         * doc/openacc-runtime-library-routines/accupdatedevice.rst:
986         Add trailing newline.
987         * doc/openacc-runtime-library-routines/accupdateself.rst:
988         Add trailing newline.
989         * doc/openacc-runtime-library-routines/accwait.rst:
990         Add trailing newline.
991         * doc/openacc-runtime-library-routines/accwaitall.rst:
992         Add trailing newline.
993         * doc/openacc-runtime-library-routines/accwaitallasync.rst:
994         Add trailing newline.
995         * doc/openacc-runtime-library-routines/accwaitasync.rst:
996         Add trailing newline.
997         * doc/openmp-context-selectors.rst:
998         Add trailing newline.
999         * doc/openmp-environment-variables.rst:
1000         Add trailing newline.
1001         * doc/openmp-environment-variables/gompcpuaffinity.rst:
1002         Add trailing newline.
1003         * doc/openmp-environment-variables/gompdebug.rst:
1004         Add trailing newline.
1005         * doc/openmp-environment-variables/gomprtemsthreadpools.rst:
1006         Add trailing newline.
1007         * doc/openmp-environment-variables/gompspincount.rst:
1008         Add trailing newline.
1009         * doc/openmp-environment-variables/gompstacksize.rst:
1010         Add trailing newline.
1011         * doc/openmp-environment-variables/ompcancellation.rst:
1012         Add trailing newline.
1013         * doc/openmp-environment-variables/ompdefaultdevice.rst:
1014         Add trailing newline.
1015         * doc/openmp-environment-variables/ompdisplayenv.rst:
1016         Add trailing newline.
1017         * doc/openmp-environment-variables/ompdynamic.rst:
1018         Add trailing newline.
1019         * doc/openmp-environment-variables/ompmaxactivelevels.rst:
1020         Add trailing newline.
1021         * doc/openmp-environment-variables/ompmaxtaskpriority.rst:
1022         Add trailing newline.
1023         * doc/openmp-environment-variables/ompnested.rst:
1024         Add trailing newline.
1025         * doc/openmp-environment-variables/ompnumteams.rst:
1026         Add trailing newline.
1027         * doc/openmp-environment-variables/ompnumthreads.rst:
1028         Add trailing newline.
1029         * doc/openmp-environment-variables/ompplaces.rst:
1030         Add trailing newline.
1031         * doc/openmp-environment-variables/ompprocbind.rst:
1032         Add trailing newline.
1033         * doc/openmp-environment-variables/ompschedule.rst:
1034         Add trailing newline.
1035         * doc/openmp-environment-variables/ompstacksize.rst:
1036         Add trailing newline.
1037         * doc/openmp-environment-variables/omptargetoffload.rst:
1038         Add trailing newline.
1039         * doc/openmp-environment-variables/ompteamsthreadlimit.rst:
1040         Add trailing newline.
1041         * doc/openmp-environment-variables/ompthreadlimit.rst:
1042         Add trailing newline.
1043         * doc/openmp-environment-variables/ompwaitpolicy.rst:
1044         Add trailing newline.
1045         * doc/openmp-implementation-specifics.rst:
1046         Add trailing newline.
1047         * doc/openmp-implementation-status.rst:
1048         Add trailing newline.
1049         * doc/openmp-implementation-status/openmp-45.rst:
1050         Add trailing newline.
1051         * doc/openmp-implementation-status/openmp-50.rst:
1052         Add trailing newline.
1053         * doc/openmp-implementation-status/openmp-51.rst:
1054         Add trailing newline.
1055         * doc/openmp-implementation-status/openmp-52.rst:
1056         Add trailing newline.
1057         * doc/openmp-runtime-library-routines.rst:
1058         Add trailing newline.
1059         * doc/openmp-runtime-library-routines/ompdestroylock.rst:
1060         Add trailing newline.
1061         * doc/openmp-runtime-library-routines/ompdestroynestlock.rst:
1062         Add trailing newline.
1063         * doc/openmp-runtime-library-routines/ompfulfillevent.rst:
1064         Add trailing newline.
1065         * doc/openmp-runtime-library-routines/ompgetactivelevel.rst:
1066         Add trailing newline.
1067         * doc/openmp-runtime-library-routines/ompgetancestorthreadnum.rst:
1068         Add trailing newline.
1069         * doc/openmp-runtime-library-routines/ompgetcancellation.rst:
1070         Add trailing newline.
1071         * doc/openmp-runtime-library-routines/ompgetdefaultdevice.rst:
1072         Add trailing newline.
1073         * doc/openmp-runtime-library-routines/ompgetdevicenum.rst:
1074         Add trailing newline.
1075         * doc/openmp-runtime-library-routines/ompgetdynamic.rst:
1076         Add trailing newline.
1077         * doc/openmp-runtime-library-routines/ompgetinitialdevice.rst:
1078         Add trailing newline.
1079         * doc/openmp-runtime-library-routines/ompgetlevel.rst:
1080         Add trailing newline.
1081         * doc/openmp-runtime-library-routines/ompgetmaxactivelevels.rst:
1082         Add trailing newline.
1083         * doc/openmp-runtime-library-routines/ompgetmaxtaskpriority.rst:
1084         Add trailing newline.
1085         * doc/openmp-runtime-library-routines/ompgetmaxteams.rst:
1086         Add trailing newline.
1087         * doc/openmp-runtime-library-routines/ompgetmaxthreads.rst:
1088         Add trailing newline.
1089         * doc/openmp-runtime-library-routines/ompgetnested.rst:
1090         Add trailing newline.
1091         * doc/openmp-runtime-library-routines/ompgetnumdevices.rst:
1092         Add trailing newline.
1093         * doc/openmp-runtime-library-routines/ompgetnumprocs.rst:
1094         Add trailing newline.
1095         * doc/openmp-runtime-library-routines/ompgetnumteams.rst:
1096         Add trailing newline.
1097         * doc/openmp-runtime-library-routines/ompgetnumthreads.rst:
1098         Add trailing newline.
1099         * doc/openmp-runtime-library-routines/ompgetprocbind.rst:
1100         Add trailing newline.
1101         * doc/openmp-runtime-library-routines/ompgetschedule.rst:
1102         Add trailing newline.
1103         * doc/openmp-runtime-library-routines/ompgetsupportedactivelevels.rst:
1104         Add trailing newline.
1105         * doc/openmp-runtime-library-routines/ompgetteamnum.rst:
1106         Add trailing newline.
1107         * doc/openmp-runtime-library-routines/ompgetteamsize.rst:
1108         Add trailing newline.
1109         * doc/openmp-runtime-library-routines/ompgetteamsthreadlimit.rst:
1110         Add trailing newline.
1111         * doc/openmp-runtime-library-routines/ompgetthreadlimit.rst:
1112         Add trailing newline.
1113         * doc/openmp-runtime-library-routines/ompgetthreadnum.rst:
1114         Add trailing newline.
1115         * doc/openmp-runtime-library-routines/ompgetwtick.rst:
1116         Add trailing newline.
1117         * doc/openmp-runtime-library-routines/ompgetwtime.rst:
1118         Add trailing newline.
1119         * doc/openmp-runtime-library-routines/ompinfinal.rst:
1120         Add trailing newline.
1121         * doc/openmp-runtime-library-routines/ompinitlock.rst:
1122         Add trailing newline.
1123         * doc/openmp-runtime-library-routines/ompinitnestlock.rst:
1124         Add trailing newline.
1125         * doc/openmp-runtime-library-routines/ompinparallel.rst:
1126         Add trailing newline.
1127         * doc/openmp-runtime-library-routines/ompisinitialdevice.rst:
1128         Add trailing newline.
1129         * doc/openmp-runtime-library-routines/ompsetdefaultdevice.rst:
1130         Add trailing newline.
1131         * doc/openmp-runtime-library-routines/ompsetdynamic.rst:
1132         Add trailing newline.
1133         * doc/openmp-runtime-library-routines/ompsetlock.rst:
1134         Add trailing newline.
1135         * doc/openmp-runtime-library-routines/ompsetmaxactivelevels.rst:
1136         Add trailing newline.
1137         * doc/openmp-runtime-library-routines/ompsetnested.rst:
1138         Add trailing newline.
1139         * doc/openmp-runtime-library-routines/ompsetnestlock.rst:
1140         Add trailing newline.
1141         * doc/openmp-runtime-library-routines/ompsetnumteams.rst:
1142         Add trailing newline.
1143         * doc/openmp-runtime-library-routines/ompsetnumthreads.rst:
1144         Add trailing newline.
1145         * doc/openmp-runtime-library-routines/ompsetschedule.rst:
1146         Add trailing newline.
1147         * doc/openmp-runtime-library-routines/ompsetteamsthreadlimit.rst:
1148         Add trailing newline.
1149         * doc/openmp-runtime-library-routines/omptestlock.rst:
1150         Add trailing newline.
1151         * doc/openmp-runtime-library-routines/omptestnestlock.rst:
1152         Add trailing newline.
1153         * doc/openmp-runtime-library-routines/ompunsetlock.rst:
1154         Add trailing newline.
1155         * doc/openmp-runtime-library-routines/ompunsetnestlock.rst:
1156         Add trailing newline.
1157         * doc/reporting-bugs.rst:
1158         Add trailing newline.
1159         * doc/the-libgomp-abi.rst:
1160         Add trailing newline.
1161         * doc/the-libgomp-abi/implementing-atomic-construct.rst:
1162         Add trailing newline.
1163         * doc/the-libgomp-abi/implementing-barrier-construct.rst:
1164         Add trailing newline.
1165         * doc/the-libgomp-abi/implementing-critical-construct.rst:
1166         Add trailing newline.
1167         * doc/the-libgomp-abi/implementing-firstprivate-lastprivate-copyin-and-copyprivate-clauses.rst:
1168         Add trailing newline.
1169         * doc/the-libgomp-abi/implementing-flush-construct.rst:
1170         Add trailing newline.
1171         * doc/the-libgomp-abi/implementing-for-construct.rst:
1172         Add trailing newline.
1173         * doc/the-libgomp-abi/implementing-master-construct.rst:
1174         Add trailing newline.
1175         * doc/the-libgomp-abi/implementing-openaccs-parallel-construct.rst:
1176         Add trailing newline.
1177         * doc/the-libgomp-abi/implementing-ordered-construct.rst:
1178         Add trailing newline.
1179         * doc/the-libgomp-abi/implementing-parallel-construct.rst:
1180         Add trailing newline.
1181         * doc/the-libgomp-abi/implementing-private-clause.rst:
1182         Add trailing newline.
1183         * doc/the-libgomp-abi/implementing-reduction-clause.rst:
1184         Add trailing newline.
1185         * doc/the-libgomp-abi/implementing-sections-construct.rst:
1186         Add trailing newline.
1187         * doc/the-libgomp-abi/implementing-single-construct.rst:
1188         Add trailing newline.
1189         * doc/the-libgomp-abi/implementing-threadprivate-construct.rst:
1190         Add trailing newline.
1192 2022-11-14  Martin Liska  <mliska@suse.cz>
1194         Revert:
1195         2022-11-09  Martin Liska  <mliska@suse.cz>
1197         * Makefile.in: Add missing HAS_SPHINX_BUILD.
1199 2022-11-14  Martin Liska  <mliska@suse.cz>
1201         Revert:
1202         2022-11-14  Martin Liska  <mliska@suse.cz>
1204         * doc/conf.py: Add newline at last line.
1206 2022-11-14  Martin Liska  <mliska@suse.cz>
1208         Revert:
1209         2022-11-14  Martin Liska  <mliska@suse.cz>
1211         PR other/107620
1212         * configure: Regenerate.
1213         * configure.ac: Always set sphinx-build.
1215 2022-11-13  Martin Liska  <mliska@suse.cz>
1217         PR other/107620
1218         * configure: Regenerate.
1219         * configure.ac: Always set sphinx-build.
1221 2022-11-12  Jakub Jelinek  <jakub@redhat.com>
1223         PR libgomp/107641
1224         * env.c (parse_unsigned_long): Cast params[2] to uintptr_t rather than
1225         unsigned long.  Change type of upper from unsigned to unsigned long.
1227 2022-11-10  Martin Liska  <mliska@suse.cz>
1229         * doc/conf.py: Add newline at last line.
1231 2022-11-09  Martin Liska  <mliska@suse.cz>
1233         * Makefile.in: Add missing HAS_SPHINX_BUILD.
1235 2022-11-09  Martin Liska  <mliska@suse.cz>
1237         * doc/amd-radeon-gcn.rst:
1238         Add trailing newline.
1239         * doc/copyright.rst:
1240         Add trailing newline.
1241         * doc/cuda-streams-usage.rst:
1242         Add trailing newline.
1243         * doc/enabling-openacc.rst:
1244         Add trailing newline.
1245         * doc/enabling-openmp.rst:
1246         Add trailing newline.
1247         * doc/first-invocation-nvidia-cublas-library-api.rst:
1248         Add trailing newline.
1249         * doc/first-invocation-openacc-library-api.rst:
1250         Add trailing newline.
1251         * doc/funding.rst:
1252         Add trailing newline.
1253         * doc/general-public-license-3.rst:
1254         Add trailing newline.
1255         * doc/gnu-free-documentation-license.rst:
1256         Add trailing newline.
1257         * doc/implementation-status-and-implementation-defined-behavior.rst:
1258         Add trailing newline.
1259         * doc/index.rst:
1260         Add trailing newline.
1261         * doc/indices-and-tables.rst:
1262         Add trailing newline.
1263         * doc/introduction.rst:
1264         Add trailing newline.
1265         * doc/memory-allocation-with-libmemkind.rst:
1266         Add trailing newline.
1267         * doc/nvptx.rst:
1268         Add trailing newline.
1269         * doc/offload-target-specifics.rst:
1270         Add trailing newline.
1271         * doc/openacc-environment-variables.rst:
1272         Add trailing newline.
1273         * doc/openacc-environment-variables/accdevicenum.rst:
1274         Add trailing newline.
1275         * doc/openacc-environment-variables/accdevicetype.rst:
1276         Add trailing newline.
1277         * doc/openacc-environment-variables/accproflib.rst:
1278         Add trailing newline.
1279         * doc/openacc-environment-variables/gccaccnotify.rst:
1280         Add trailing newline.
1281         * doc/openacc-introduction.rst:
1282         Add trailing newline.
1283         * doc/openacc-library-and-environment-variables.rst:
1284         Add trailing newline.
1285         * doc/openacc-library-interoperability.rst:
1286         Add trailing newline.
1287         * doc/openacc-profiling-interface.rst:
1288         Add trailing newline.
1289         * doc/openacc-runtime-library-routines.rst:
1290         Add trailing newline.
1291         * doc/openacc-runtime-library-routines/accasynctest.rst:
1292         Add trailing newline.
1293         * doc/openacc-runtime-library-routines/accasynctestall.rst:
1294         Add trailing newline.
1295         * doc/openacc-runtime-library-routines/accattach.rst:
1296         Add trailing newline.
1297         * doc/openacc-runtime-library-routines/acccopyin.rst:
1298         Add trailing newline.
1299         * doc/openacc-runtime-library-routines/acccopyout.rst:
1300         Add trailing newline.
1301         * doc/openacc-runtime-library-routines/acccreate.rst:
1302         Add trailing newline.
1303         * doc/openacc-runtime-library-routines/accdelete.rst:
1304         Add trailing newline.
1305         * doc/openacc-runtime-library-routines/accdetach.rst:
1306         Add trailing newline.
1307         * doc/openacc-runtime-library-routines/accdeviceptr.rst:
1308         Add trailing newline.
1309         * doc/openacc-runtime-library-routines/accfree.rst:
1310         Add trailing newline.
1311         * doc/openacc-runtime-library-routines/accgetcudastream.rst:
1312         Add trailing newline.
1313         * doc/openacc-runtime-library-routines/accgetcurrentcudacontext.rst:
1314         Add trailing newline.
1315         * doc/openacc-runtime-library-routines/accgetcurrentcudadevice.rst:
1316         Add trailing newline.
1317         * doc/openacc-runtime-library-routines/accgetdevicenum.rst:
1318         Add trailing newline.
1319         * doc/openacc-runtime-library-routines/accgetdevicetype.rst:
1320         Add trailing newline.
1321         * doc/openacc-runtime-library-routines/accgetnumdevices.rst:
1322         Add trailing newline.
1323         * doc/openacc-runtime-library-routines/accgetproperty.rst:
1324         Add trailing newline.
1325         * doc/openacc-runtime-library-routines/acchostptr.rst:
1326         Add trailing newline.
1327         * doc/openacc-runtime-library-routines/accinit.rst:
1328         Add trailing newline.
1329         * doc/openacc-runtime-library-routines/accispresent.rst:
1330         Add trailing newline.
1331         * doc/openacc-runtime-library-routines/accmalloc.rst:
1332         Add trailing newline.
1333         * doc/openacc-runtime-library-routines/accmapdata.rst:
1334         Add trailing newline.
1335         * doc/openacc-runtime-library-routines/accmemcpyfromdevice.rst:
1336         Add trailing newline.
1337         * doc/openacc-runtime-library-routines/accmemcpytodevice.rst:
1338         Add trailing newline.
1339         * doc/openacc-runtime-library-routines/accondevice.rst:
1340         Add trailing newline.
1341         * doc/openacc-runtime-library-routines/accpresentorcopyin.rst:
1342         Add trailing newline.
1343         * doc/openacc-runtime-library-routines/accpresentorcreate.rst:
1344         Add trailing newline.
1345         * doc/openacc-runtime-library-routines/accproflookup.rst:
1346         Add trailing newline.
1347         * doc/openacc-runtime-library-routines/accprofregister.rst:
1348         Add trailing newline.
1349         * doc/openacc-runtime-library-routines/accprofunregister.rst:
1350         Add trailing newline.
1351         * doc/openacc-runtime-library-routines/accregisterlibrary.rst:
1352         Add trailing newline.
1353         * doc/openacc-runtime-library-routines/accsetcudastream.rst:
1354         Add trailing newline.
1355         * doc/openacc-runtime-library-routines/accsetdevicenum.rst:
1356         Add trailing newline.
1357         * doc/openacc-runtime-library-routines/accsetdevicetype.rst:
1358         Add trailing newline.
1359         * doc/openacc-runtime-library-routines/accshutdown.rst:
1360         Add trailing newline.
1361         * doc/openacc-runtime-library-routines/accunmapdata.rst:
1362         Add trailing newline.
1363         * doc/openacc-runtime-library-routines/accupdatedevice.rst:
1364         Add trailing newline.
1365         * doc/openacc-runtime-library-routines/accupdateself.rst:
1366         Add trailing newline.
1367         * doc/openacc-runtime-library-routines/accwait.rst:
1368         Add trailing newline.
1369         * doc/openacc-runtime-library-routines/accwaitall.rst:
1370         Add trailing newline.
1371         * doc/openacc-runtime-library-routines/accwaitallasync.rst:
1372         Add trailing newline.
1373         * doc/openacc-runtime-library-routines/accwaitasync.rst:
1374         Add trailing newline.
1375         * doc/openmp-context-selectors.rst:
1376         Add trailing newline.
1377         * doc/openmp-environment-variables.rst:
1378         Add trailing newline.
1379         * doc/openmp-environment-variables/gompcpuaffinity.rst:
1380         Add trailing newline.
1381         * doc/openmp-environment-variables/gompdebug.rst:
1382         Add trailing newline.
1383         * doc/openmp-environment-variables/gomprtemsthreadpools.rst:
1384         Add trailing newline.
1385         * doc/openmp-environment-variables/gompspincount.rst:
1386         Add trailing newline.
1387         * doc/openmp-environment-variables/gompstacksize.rst:
1388         Add trailing newline.
1389         * doc/openmp-environment-variables/ompcancellation.rst:
1390         Add trailing newline.
1391         * doc/openmp-environment-variables/ompdefaultdevice.rst:
1392         Add trailing newline.
1393         * doc/openmp-environment-variables/ompdisplayenv.rst:
1394         Add trailing newline.
1395         * doc/openmp-environment-variables/ompdynamic.rst:
1396         Add trailing newline.
1397         * doc/openmp-environment-variables/ompmaxactivelevels.rst:
1398         Add trailing newline.
1399         * doc/openmp-environment-variables/ompmaxtaskpriority.rst:
1400         Add trailing newline.
1401         * doc/openmp-environment-variables/ompnested.rst:
1402         Add trailing newline.
1403         * doc/openmp-environment-variables/ompnumteams.rst:
1404         Add trailing newline.
1405         * doc/openmp-environment-variables/ompnumthreads.rst:
1406         Add trailing newline.
1407         * doc/openmp-environment-variables/ompplaces.rst:
1408         Add trailing newline.
1409         * doc/openmp-environment-variables/ompprocbind.rst:
1410         Add trailing newline.
1411         * doc/openmp-environment-variables/ompschedule.rst:
1412         Add trailing newline.
1413         * doc/openmp-environment-variables/ompstacksize.rst:
1414         Add trailing newline.
1415         * doc/openmp-environment-variables/omptargetoffload.rst:
1416         Add trailing newline.
1417         * doc/openmp-environment-variables/ompteamsthreadlimit.rst:
1418         Add trailing newline.
1419         * doc/openmp-environment-variables/ompthreadlimit.rst:
1420         Add trailing newline.
1421         * doc/openmp-environment-variables/ompwaitpolicy.rst:
1422         Add trailing newline.
1423         * doc/openmp-implementation-specifics.rst:
1424         Add trailing newline.
1425         * doc/openmp-implementation-status.rst:
1426         Add trailing newline.
1427         * doc/openmp-implementation-status/openmp-45.rst:
1428         Add trailing newline.
1429         * doc/openmp-implementation-status/openmp-50.rst:
1430         Add trailing newline.
1431         * doc/openmp-implementation-status/openmp-51.rst:
1432         Add trailing newline.
1433         * doc/openmp-implementation-status/openmp-52.rst:
1434         Add trailing newline.
1435         * doc/openmp-runtime-library-routines.rst:
1436         Add trailing newline.
1437         * doc/openmp-runtime-library-routines/ompdestroylock.rst:
1438         Add trailing newline.
1439         * doc/openmp-runtime-library-routines/ompdestroynestlock.rst:
1440         Add trailing newline.
1441         * doc/openmp-runtime-library-routines/ompfulfillevent.rst:
1442         Add trailing newline.
1443         * doc/openmp-runtime-library-routines/ompgetactivelevel.rst:
1444         Add trailing newline.
1445         * doc/openmp-runtime-library-routines/ompgetancestorthreadnum.rst:
1446         Add trailing newline.
1447         * doc/openmp-runtime-library-routines/ompgetcancellation.rst:
1448         Add trailing newline.
1449         * doc/openmp-runtime-library-routines/ompgetdefaultdevice.rst:
1450         Add trailing newline.
1451         * doc/openmp-runtime-library-routines/ompgetdevicenum.rst:
1452         Add trailing newline.
1453         * doc/openmp-runtime-library-routines/ompgetdynamic.rst:
1454         Add trailing newline.
1455         * doc/openmp-runtime-library-routines/ompgetinitialdevice.rst:
1456         Add trailing newline.
1457         * doc/openmp-runtime-library-routines/ompgetlevel.rst:
1458         Add trailing newline.
1459         * doc/openmp-runtime-library-routines/ompgetmaxactivelevels.rst:
1460         Add trailing newline.
1461         * doc/openmp-runtime-library-routines/ompgetmaxtaskpriority.rst:
1462         Add trailing newline.
1463         * doc/openmp-runtime-library-routines/ompgetmaxteams.rst:
1464         Add trailing newline.
1465         * doc/openmp-runtime-library-routines/ompgetmaxthreads.rst:
1466         Add trailing newline.
1467         * doc/openmp-runtime-library-routines/ompgetnested.rst:
1468         Add trailing newline.
1469         * doc/openmp-runtime-library-routines/ompgetnumdevices.rst:
1470         Add trailing newline.
1471         * doc/openmp-runtime-library-routines/ompgetnumprocs.rst:
1472         Add trailing newline.
1473         * doc/openmp-runtime-library-routines/ompgetnumteams.rst:
1474         Add trailing newline.
1475         * doc/openmp-runtime-library-routines/ompgetnumthreads.rst:
1476         Add trailing newline.
1477         * doc/openmp-runtime-library-routines/ompgetprocbind.rst:
1478         Add trailing newline.
1479         * doc/openmp-runtime-library-routines/ompgetschedule.rst:
1480         Add trailing newline.
1481         * doc/openmp-runtime-library-routines/ompgetsupportedactivelevels.rst:
1482         Add trailing newline.
1483         * doc/openmp-runtime-library-routines/ompgetteamnum.rst:
1484         Add trailing newline.
1485         * doc/openmp-runtime-library-routines/ompgetteamsize.rst:
1486         Add trailing newline.
1487         * doc/openmp-runtime-library-routines/ompgetteamsthreadlimit.rst:
1488         Add trailing newline.
1489         * doc/openmp-runtime-library-routines/ompgetthreadlimit.rst:
1490         Add trailing newline.
1491         * doc/openmp-runtime-library-routines/ompgetthreadnum.rst:
1492         Add trailing newline.
1493         * doc/openmp-runtime-library-routines/ompgetwtick.rst:
1494         Add trailing newline.
1495         * doc/openmp-runtime-library-routines/ompgetwtime.rst:
1496         Add trailing newline.
1497         * doc/openmp-runtime-library-routines/ompinfinal.rst:
1498         Add trailing newline.
1499         * doc/openmp-runtime-library-routines/ompinitlock.rst:
1500         Add trailing newline.
1501         * doc/openmp-runtime-library-routines/ompinitnestlock.rst:
1502         Add trailing newline.
1503         * doc/openmp-runtime-library-routines/ompinparallel.rst:
1504         Add trailing newline.
1505         * doc/openmp-runtime-library-routines/ompisinitialdevice.rst:
1506         Add trailing newline.
1507         * doc/openmp-runtime-library-routines/ompsetdefaultdevice.rst:
1508         Add trailing newline.
1509         * doc/openmp-runtime-library-routines/ompsetdynamic.rst:
1510         Add trailing newline.
1511         * doc/openmp-runtime-library-routines/ompsetlock.rst:
1512         Add trailing newline.
1513         * doc/openmp-runtime-library-routines/ompsetmaxactivelevels.rst:
1514         Add trailing newline.
1515         * doc/openmp-runtime-library-routines/ompsetnested.rst:
1516         Add trailing newline.
1517         * doc/openmp-runtime-library-routines/ompsetnestlock.rst:
1518         Add trailing newline.
1519         * doc/openmp-runtime-library-routines/ompsetnumteams.rst:
1520         Add trailing newline.
1521         * doc/openmp-runtime-library-routines/ompsetnumthreads.rst:
1522         Add trailing newline.
1523         * doc/openmp-runtime-library-routines/ompsetschedule.rst:
1524         Add trailing newline.
1525         * doc/openmp-runtime-library-routines/ompsetteamsthreadlimit.rst:
1526         Add trailing newline.
1527         * doc/openmp-runtime-library-routines/omptestlock.rst:
1528         Add trailing newline.
1529         * doc/openmp-runtime-library-routines/omptestnestlock.rst:
1530         Add trailing newline.
1531         * doc/openmp-runtime-library-routines/ompunsetlock.rst:
1532         Add trailing newline.
1533         * doc/openmp-runtime-library-routines/ompunsetnestlock.rst:
1534         Add trailing newline.
1535         * doc/reporting-bugs.rst:
1536         Add trailing newline.
1537         * doc/the-libgomp-abi.rst:
1538         Add trailing newline.
1539         * doc/the-libgomp-abi/implementing-atomic-construct.rst:
1540         Add trailing newline.
1541         * doc/the-libgomp-abi/implementing-barrier-construct.rst:
1542         Add trailing newline.
1543         * doc/the-libgomp-abi/implementing-critical-construct.rst:
1544         Add trailing newline.
1545         * doc/the-libgomp-abi/implementing-firstprivate-lastprivate-copyin-and-copyprivate-clauses.rst:
1546         Add trailing newline.
1547         * doc/the-libgomp-abi/implementing-flush-construct.rst:
1548         Add trailing newline.
1549         * doc/the-libgomp-abi/implementing-for-construct.rst:
1550         Add trailing newline.
1551         * doc/the-libgomp-abi/implementing-master-construct.rst:
1552         Add trailing newline.
1553         * doc/the-libgomp-abi/implementing-openaccs-parallel-construct.rst:
1554         Add trailing newline.
1555         * doc/the-libgomp-abi/implementing-ordered-construct.rst:
1556         Add trailing newline.
1557         * doc/the-libgomp-abi/implementing-parallel-construct.rst:
1558         Add trailing newline.
1559         * doc/the-libgomp-abi/implementing-private-clause.rst:
1560         Add trailing newline.
1561         * doc/the-libgomp-abi/implementing-reduction-clause.rst:
1562         Add trailing newline.
1563         * doc/the-libgomp-abi/implementing-sections-construct.rst:
1564         Add trailing newline.
1565         * doc/the-libgomp-abi/implementing-single-construct.rst:
1566         Add trailing newline.
1567         * doc/the-libgomp-abi/implementing-threadprivate-construct.rst:
1568         Add trailing newline.
1570 2022-11-09  Martin Liska  <mliska@suse.cz>
1572         * Makefile.in: Build info pages conditionally.
1574 2022-11-09  Martin Liska  <mliska@suse.cz>
1576         * Makefile.in: Support --with-sphinx-build.
1577         * configure.ac: Likewise..
1578         * configure: Regenerate.
1580 2022-11-09  Martin Liska  <mliska@suse.cz>
1582         * libgomp.texi: Removed.
1584 2022-11-09  Martin Liska  <mliska@suse.cz>
1586         * Makefile.in: Support Sphinx based documentation.
1588 2022-11-09  Martin Liska  <mliska@suse.cz>
1590         * doc/amd-radeon-gcn.rst: New file.
1591         * doc/conf.py: New file.
1592         * doc/copyright.rst: New file.
1593         * doc/cuda-streams-usage.rst: New file.
1594         * doc/enabling-openacc.rst: New file.
1595         * doc/enabling-openmp.rst: New file.
1596         * doc/first-invocation-nvidia-cublas-library-api.rst: New file.
1597         * doc/first-invocation-openacc-library-api.rst: New file.
1598         * doc/funding.rst: New file.
1599         * doc/general-public-license-3.rst: New file.
1600         * doc/gnu-free-documentation-license.rst: New file.
1601         * doc/implementation-status-and-implementation-defined-behavior.rst: New file.
1602         * doc/index.rst: New file.
1603         * doc/indices-and-tables.rst: New file.
1604         * doc/introduction.rst: New file.
1605         * doc/memory-allocation-with-libmemkind.rst: New file.
1606         * doc/nvptx.rst: New file.
1607         * doc/offload-target-specifics.rst: New file.
1608         * doc/openacc-environment-variables.rst: New file.
1609         * doc/openacc-environment-variables/accdevicenum.rst: New file.
1610         * doc/openacc-environment-variables/accdevicetype.rst: New file.
1611         * doc/openacc-environment-variables/accproflib.rst: New file.
1612         * doc/openacc-environment-variables/gccaccnotify.rst: New file.
1613         * doc/openacc-introduction.rst: New file.
1614         * doc/openacc-library-and-environment-variables.rst: New file.
1615         * doc/openacc-library-interoperability.rst: New file.
1616         * doc/openacc-profiling-interface.rst: New file.
1617         * doc/openacc-runtime-library-routines.rst: New file.
1618         * doc/openacc-runtime-library-routines/accasynctest.rst: New file.
1619         * doc/openacc-runtime-library-routines/accasynctestall.rst: New file.
1620         * doc/openacc-runtime-library-routines/accattach.rst: New file.
1621         * doc/openacc-runtime-library-routines/acccopyin.rst: New file.
1622         * doc/openacc-runtime-library-routines/acccopyout.rst: New file.
1623         * doc/openacc-runtime-library-routines/acccreate.rst: New file.
1624         * doc/openacc-runtime-library-routines/accdelete.rst: New file.
1625         * doc/openacc-runtime-library-routines/accdetach.rst: New file.
1626         * doc/openacc-runtime-library-routines/accdeviceptr.rst: New file.
1627         * doc/openacc-runtime-library-routines/accfree.rst: New file.
1628         * doc/openacc-runtime-library-routines/accgetcudastream.rst: New file.
1629         * doc/openacc-runtime-library-routines/accgetcurrentcudacontext.rst: New file.
1630         * doc/openacc-runtime-library-routines/accgetcurrentcudadevice.rst: New file.
1631         * doc/openacc-runtime-library-routines/accgetdevicenum.rst: New file.
1632         * doc/openacc-runtime-library-routines/accgetdevicetype.rst: New file.
1633         * doc/openacc-runtime-library-routines/accgetnumdevices.rst: New file.
1634         * doc/openacc-runtime-library-routines/accgetproperty.rst: New file.
1635         * doc/openacc-runtime-library-routines/acchostptr.rst: New file.
1636         * doc/openacc-runtime-library-routines/accinit.rst: New file.
1637         * doc/openacc-runtime-library-routines/accispresent.rst: New file.
1638         * doc/openacc-runtime-library-routines/accmalloc.rst: New file.
1639         * doc/openacc-runtime-library-routines/accmapdata.rst: New file.
1640         * doc/openacc-runtime-library-routines/accmemcpyfromdevice.rst: New file.
1641         * doc/openacc-runtime-library-routines/accmemcpytodevice.rst: New file.
1642         * doc/openacc-runtime-library-routines/accondevice.rst: New file.
1643         * doc/openacc-runtime-library-routines/accpresentorcopyin.rst: New file.
1644         * doc/openacc-runtime-library-routines/accpresentorcreate.rst: New file.
1645         * doc/openacc-runtime-library-routines/accproflookup.rst: New file.
1646         * doc/openacc-runtime-library-routines/accprofregister.rst: New file.
1647         * doc/openacc-runtime-library-routines/accprofunregister.rst: New file.
1648         * doc/openacc-runtime-library-routines/accregisterlibrary.rst: New file.
1649         * doc/openacc-runtime-library-routines/accsetcudastream.rst: New file.
1650         * doc/openacc-runtime-library-routines/accsetdevicenum.rst: New file.
1651         * doc/openacc-runtime-library-routines/accsetdevicetype.rst: New file.
1652         * doc/openacc-runtime-library-routines/accshutdown.rst: New file.
1653         * doc/openacc-runtime-library-routines/accunmapdata.rst: New file.
1654         * doc/openacc-runtime-library-routines/accupdatedevice.rst: New file.
1655         * doc/openacc-runtime-library-routines/accupdateself.rst: New file.
1656         * doc/openacc-runtime-library-routines/accwait.rst: New file.
1657         * doc/openacc-runtime-library-routines/accwaitall.rst: New file.
1658         * doc/openacc-runtime-library-routines/accwaitallasync.rst: New file.
1659         * doc/openacc-runtime-library-routines/accwaitasync.rst: New file.
1660         * doc/openmp-context-selectors.rst: New file.
1661         * doc/openmp-environment-variables.rst: New file.
1662         * doc/openmp-environment-variables/gompcpuaffinity.rst: New file.
1663         * doc/openmp-environment-variables/gompdebug.rst: New file.
1664         * doc/openmp-environment-variables/gomprtemsthreadpools.rst: New file.
1665         * doc/openmp-environment-variables/gompspincount.rst: New file.
1666         * doc/openmp-environment-variables/gompstacksize.rst: New file.
1667         * doc/openmp-environment-variables/ompcancellation.rst: New file.
1668         * doc/openmp-environment-variables/ompdefaultdevice.rst: New file.
1669         * doc/openmp-environment-variables/ompdisplayenv.rst: New file.
1670         * doc/openmp-environment-variables/ompdynamic.rst: New file.
1671         * doc/openmp-environment-variables/ompmaxactivelevels.rst: New file.
1672         * doc/openmp-environment-variables/ompmaxtaskpriority.rst: New file.
1673         * doc/openmp-environment-variables/ompnested.rst: New file.
1674         * doc/openmp-environment-variables/ompnumteams.rst: New file.
1675         * doc/openmp-environment-variables/ompnumthreads.rst: New file.
1676         * doc/openmp-environment-variables/ompplaces.rst: New file.
1677         * doc/openmp-environment-variables/ompprocbind.rst: New file.
1678         * doc/openmp-environment-variables/ompschedule.rst: New file.
1679         * doc/openmp-environment-variables/ompstacksize.rst: New file.
1680         * doc/openmp-environment-variables/omptargetoffload.rst: New file.
1681         * doc/openmp-environment-variables/ompteamsthreadlimit.rst: New file.
1682         * doc/openmp-environment-variables/ompthreadlimit.rst: New file.
1683         * doc/openmp-environment-variables/ompwaitpolicy.rst: New file.
1684         * doc/openmp-implementation-specifics.rst: New file.
1685         * doc/openmp-implementation-status.rst: New file.
1686         * doc/openmp-implementation-status/openmp-45.rst: New file.
1687         * doc/openmp-implementation-status/openmp-50.rst: New file.
1688         * doc/openmp-implementation-status/openmp-51.rst: New file.
1689         * doc/openmp-implementation-status/openmp-52.rst: New file.
1690         * doc/openmp-runtime-library-routines.rst: New file.
1691         * doc/openmp-runtime-library-routines/ompdestroylock.rst: New file.
1692         * doc/openmp-runtime-library-routines/ompdestroynestlock.rst: New file.
1693         * doc/openmp-runtime-library-routines/ompfulfillevent.rst: New file.
1694         * doc/openmp-runtime-library-routines/ompgetactivelevel.rst: New file.
1695         * doc/openmp-runtime-library-routines/ompgetancestorthreadnum.rst: New file.
1696         * doc/openmp-runtime-library-routines/ompgetcancellation.rst: New file.
1697         * doc/openmp-runtime-library-routines/ompgetdefaultdevice.rst: New file.
1698         * doc/openmp-runtime-library-routines/ompgetdevicenum.rst: New file.
1699         * doc/openmp-runtime-library-routines/ompgetdynamic.rst: New file.
1700         * doc/openmp-runtime-library-routines/ompgetinitialdevice.rst: New file.
1701         * doc/openmp-runtime-library-routines/ompgetlevel.rst: New file.
1702         * doc/openmp-runtime-library-routines/ompgetmaxactivelevels.rst: New file.
1703         * doc/openmp-runtime-library-routines/ompgetmaxtaskpriority.rst: New file.
1704         * doc/openmp-runtime-library-routines/ompgetmaxteams.rst: New file.
1705         * doc/openmp-runtime-library-routines/ompgetmaxthreads.rst: New file.
1706         * doc/openmp-runtime-library-routines/ompgetnested.rst: New file.
1707         * doc/openmp-runtime-library-routines/ompgetnumdevices.rst: New file.
1708         * doc/openmp-runtime-library-routines/ompgetnumprocs.rst: New file.
1709         * doc/openmp-runtime-library-routines/ompgetnumteams.rst: New file.
1710         * doc/openmp-runtime-library-routines/ompgetnumthreads.rst: New file.
1711         * doc/openmp-runtime-library-routines/ompgetprocbind.rst: New file.
1712         * doc/openmp-runtime-library-routines/ompgetschedule.rst: New file.
1713         * doc/openmp-runtime-library-routines/ompgetsupportedactivelevels.rst: New file.
1714         * doc/openmp-runtime-library-routines/ompgetteamnum.rst: New file.
1715         * doc/openmp-runtime-library-routines/ompgetteamsize.rst: New file.
1716         * doc/openmp-runtime-library-routines/ompgetteamsthreadlimit.rst: New file.
1717         * doc/openmp-runtime-library-routines/ompgetthreadlimit.rst: New file.
1718         * doc/openmp-runtime-library-routines/ompgetthreadnum.rst: New file.
1719         * doc/openmp-runtime-library-routines/ompgetwtick.rst: New file.
1720         * doc/openmp-runtime-library-routines/ompgetwtime.rst: New file.
1721         * doc/openmp-runtime-library-routines/ompinfinal.rst: New file.
1722         * doc/openmp-runtime-library-routines/ompinitlock.rst: New file.
1723         * doc/openmp-runtime-library-routines/ompinitnestlock.rst: New file.
1724         * doc/openmp-runtime-library-routines/ompinparallel.rst: New file.
1725         * doc/openmp-runtime-library-routines/ompisinitialdevice.rst: New file.
1726         * doc/openmp-runtime-library-routines/ompsetdefaultdevice.rst: New file.
1727         * doc/openmp-runtime-library-routines/ompsetdynamic.rst: New file.
1728         * doc/openmp-runtime-library-routines/ompsetlock.rst: New file.
1729         * doc/openmp-runtime-library-routines/ompsetmaxactivelevels.rst: New file.
1730         * doc/openmp-runtime-library-routines/ompsetnested.rst: New file.
1731         * doc/openmp-runtime-library-routines/ompsetnestlock.rst: New file.
1732         * doc/openmp-runtime-library-routines/ompsetnumteams.rst: New file.
1733         * doc/openmp-runtime-library-routines/ompsetnumthreads.rst: New file.
1734         * doc/openmp-runtime-library-routines/ompsetschedule.rst: New file.
1735         * doc/openmp-runtime-library-routines/ompsetteamsthreadlimit.rst: New file.
1736         * doc/openmp-runtime-library-routines/omptestlock.rst: New file.
1737         * doc/openmp-runtime-library-routines/omptestnestlock.rst: New file.
1738         * doc/openmp-runtime-library-routines/ompunsetlock.rst: New file.
1739         * doc/openmp-runtime-library-routines/ompunsetnestlock.rst: New file.
1740         * doc/reporting-bugs.rst: New file.
1741         * doc/the-libgomp-abi.rst: New file.
1742         * doc/the-libgomp-abi/implementing-atomic-construct.rst: New file.
1743         * doc/the-libgomp-abi/implementing-barrier-construct.rst: New file.
1744         * doc/the-libgomp-abi/implementing-critical-construct.rst: New file.
1745         * doc/the-libgomp-abi/implementing-firstprivate-lastprivate-copyin-and-copyprivate-clauses.rst:
1746         New file.
1747         * doc/the-libgomp-abi/implementing-flush-construct.rst: New file.
1748         * doc/the-libgomp-abi/implementing-for-construct.rst: New file.
1749         * doc/the-libgomp-abi/implementing-master-construct.rst: New file.
1750         * doc/the-libgomp-abi/implementing-openaccs-parallel-construct.rst: New file.
1751         * doc/the-libgomp-abi/implementing-ordered-construct.rst: New file.
1752         * doc/the-libgomp-abi/implementing-parallel-construct.rst: New file.
1753         * doc/the-libgomp-abi/implementing-private-clause.rst: New file.
1754         * doc/the-libgomp-abi/implementing-reduction-clause.rst: New file.
1755         * doc/the-libgomp-abi/implementing-sections-construct.rst: New file.
1756         * doc/the-libgomp-abi/implementing-single-construct.rst: New file.
1757         * doc/the-libgomp-abi/implementing-threadprivate-construct.rst: New file.
1759 2022-11-04  Thomas Schwinge  <thomas@codesourcery.com>
1761         * libgomp-plugin.h (OFFLOAD_TARGET_TYPE_INTEL_MIC): Remove.
1762         * libgomp.texi (OpenMP Context Selectors): Remove Intel MIC
1763         documentation.
1764         * plugin/configfrag.ac <enable_offload_targets>
1765         [*-intelmic-* | *-intelmicemul-*]: Remove.
1766         * configure: Regenerate.
1767         * testsuite/lib/libgomp.exp (libgomp_init): Remove 'liboffloadmic'
1768         handling.
1769         (offload_target_to_openacc_device_type)
1770         [$offload_target = *-intelmic*]: Remove.
1771         (check_effective_target_offload_device_intel_mic)
1772         (check_effective_target_offload_device_any_intel_mic): Remove.
1773         * testsuite/libgomp.c-c++-common/on_device_arch.h
1774         (device_arch_intel_mic, on_device_arch_intel_mic, any_device_arch)
1775         (any_device_arch_intel_mic): Remove.
1776         * testsuite/libgomp.c-c++-common/target-45.c: Remove
1777         'offload_device_any_intel_mic' XFAIL.
1778         * testsuite/libgomp.fortran/target10.f90: Likewise.
1780 2022-11-03  Tobias Burnus  <tobias@codesourcery.com>
1782         * testsuite/libgomp.fortran/target-11.f90: New test.
1783         * testsuite/libgomp.fortran/target-13.f90: New test.
1785 2022-11-02  Thomas Schwinge  <thomas@codesourcery.com>
1787         PR libgomp/106643
1788         PR fortran/96668
1789         * oacc-mem.c (goacc_enter_data_internal): Support
1790         OpenACC 'declare create' with Fortran allocatable arrays, part II.
1791         * testsuite/libgomp.oacc-fortran/declare-allocatable-array_descriptor-1-directive.f90:
1792         Adjust.
1793         * testsuite/libgomp.oacc-fortran/pr106643-1.f90: New.
1795 2022-11-02  Thomas Schwinge  <thomas@codesourcery.com>
1797         PR libgomp/106643
1798         * oacc-mem.c (goacc_enter_data_internal): Support
1799         OpenACC 'declare create' with Fortran allocatable arrays, part I.
1800         * testsuite/libgomp.oacc-fortran/declare-allocatable-1-directive.f90:
1801         New.
1802         * testsuite/libgomp.oacc-fortran/declare-allocatable-array_descriptor-1-directive.f90:
1803         New.
1805 2022-11-02  Thomas Schwinge  <thomas@codesourcery.com>
1807         * testsuite/libgomp.oacc-fortran/declare-allocatable-array_descriptor-1-runtime.f90:
1808         New.
1810 2022-11-02  Thomas Schwinge  <thomas@codesourcery.com>
1812         * testsuite/libgomp.oacc-fortran/declare-allocatable-1-runtime.f90:
1813         New.
1815 2022-11-02  Cesar Philippidis  <cesar@codesourcery.com>
1816             Thomas Schwinge  <thomas@codesourcery.com>
1818         * testsuite/libgomp.oacc-fortran/declare-allocatable-1.f90: New.
1820 2022-10-28  Julian Brown  <julian@codesourcery.com>
1821             Thomas Schwinge  <thomas@codesourcery.com>
1823         PR middle-end/90115
1824         * testsuite/libgomp.oacc-fortran/declare-1.f90: Adjust scan output.
1825         * testsuite/libgomp.oacc-fortran/host_data-5.F90: Likewise.
1826         * testsuite/libgomp.oacc-fortran/if-1.f90: Likewise.
1827         * testsuite/libgomp.oacc-fortran/print-1.f90: Likewise.
1828         * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Likewise.
1830 2022-10-24  Thomas Schwinge  <thomas@codesourcery.com>
1832         * plugin/plugin-nvptx.c (nvptx_open_device): Initialize
1833         'ptx_dev->rev_data'.
1835 2022-10-24  Tobias Burnus  <tobias@codesourcery.com>
1837         * config/nvptx/icv-device.c (GOMP_DEVICE_NUM_VAR): Remove
1838         'static' for this variable.
1839         * config/nvptx/libgomp-nvptx.h: New file.
1840         * config/nvptx/target.c: Include it.
1841         (GOMP_ADDITIONAL_ICVS): Declare extern var.
1842         (GOMP_REV_OFFLOAD_VAR): Declare var.
1843         (GOMP_target_ext): Handle reverse offload.
1844         * libgomp-plugin.h (GOMP_PLUGIN_target_rev): New prototype.
1845         * libgomp-plugin.c (GOMP_PLUGIN_target_rev): New, call ...
1846         * target.c (gomp_target_rev): ... this new stub function.
1847         * libgomp.h (gomp_target_rev): Declare.
1848         * libgomp.map (GOMP_PLUGIN_1.4): New; add GOMP_PLUGIN_target_rev.
1849         * plugin/cuda-lib.def (cuMemHostAlloc): Add.
1850         * plugin/plugin-nvptx.c: Include libgomp-nvptx.h.
1851         (struct ptx_device): Add rev_data member.
1852         (nvptx_open_device): Remove async_engines query, last used in
1853         r10-304-g1f4c5b9b; add unified-address assert check.
1854         (GOMP_OFFLOAD_get_num_devices): Claim unified address
1855         support.
1856         (GOMP_OFFLOAD_load_image): Free rev_fn_table if no
1857         offload functions exist. Make offload var available
1858         on host and device.
1859         (rev_off_dev_to_host_cpy, rev_off_host_to_dev_cpy): New.
1860         (GOMP_OFFLOAD_run): Handle reverse offload.
1862 2022-10-21  Thomas Schwinge  <thomas@codesourcery.com>
1864         PR tree-optimization/107195
1865         PR target/107344
1866         * testsuite/libgomp.oacc-c-c++-common/nvptx-sese-1.c: Restore SESE
1867         regions checking.
1869 2022-10-20  Tobias Burnus  <tobias@codesourcery.com>
1871         * testsuite/lib/libgomp.exp (check_effective_target_offload_device_gcn):
1872         New.
1873         * testsuite/libgomp.c-c++-common/on_device_arch.h (device_arch_gcn,
1874         on_device_arch_gcn): New.
1875         * testsuite/libgomp.c-c++-common/requires-4a.c: New test; copied from
1876         requires-4.c but using heap-allocated memory.
1878 2022-10-20  Thomas Schwinge  <thomas@codesourcery.com>
1880         PR target/105421
1881         * testsuite/libgomp.oacc-c-c++-common/private-big-1.c: New.
1883 2022-10-17  Thomas Schwinge  <thomas@codesourcery.com>
1885         * testsuite/libgomp.c/reverse-offload-sm30.c: Fix nvptx-specific
1886         '-foffload-options' syntax.
1888 2022-10-13  Tobias Burnus  <tobias@codesourcery.com>
1890         * testsuite/libgomp.fortran/task-7.f90: New test.
1891         * testsuite/libgomp.fortran/task-8.f90: New test.
1892         * testsuite/libgomp.fortran/task-in-explicit-1.f90: New test.
1893         * testsuite/libgomp.fortran/task-in-explicit-2.f90: New test.
1894         * testsuite/libgomp.fortran/task-in-explicit-3.f90: New test.
1895         * testsuite/libgomp.fortran/task-reduction-17.f90: New test.
1896         * testsuite/libgomp.fortran/task-reduction-18.f90: New test.
1898 2022-10-12  Jakub Jelinek  <jakub@redhat.com>
1900         * libgomp.texi (OpenMP 5.2): Fix up allocator -> allocate directive
1901         in deprecation bullet.
1903 2022-10-12  Jakub Jelinek  <jakub@redhat.com>
1905         * omp.h.in (omp_in_explicit_task): Declare.
1906         * omp_lib.h.in (omp_in_explicit_task): Likewise.
1907         * omp_lib.f90.in (omp_in_explicit_task): New interface.
1908         * libgomp.map (OMP_5.2): New symbol version, export
1909         omp_in_explicit_task and omp_in_explicit_task_.
1910         * task.c (omp_in_explicit_task): New function.
1911         * fortran.c (omp_in_explicit_task): Add ialias_redirect.
1912         (omp_in_explicit_task_): New function.
1913         * libgomp.texi (OpenMP 5.2): Mark omp_in_explicit_task as implemented.
1914         * testsuite/libgomp.c-c++-common/task-in-explicit-1.c: New test.
1915         * testsuite/libgomp.c-c++-common/task-in-explicit-2.c: New test.
1916         * testsuite/libgomp.c-c++-common/task-in-explicit-3.c: New test.
1918 2022-10-12  Jakub Jelinek  <jakub@redhat.com>
1920         * task.c (gomp_create_artificial_team): Fix up handling of invocations
1921         from within explicit task.
1922         * target.c (GOMP_target_ext): Likewise.
1923         * testsuite/libgomp.c/task-7.c: New test.
1924         * testsuite/libgomp.c/task-8.c: New test.
1925         * testsuite/libgomp.c-c++-common/task-reduction-17.c: New test.
1926         * testsuite/libgomp.c-c++-common/task-reduction-18.c: New test.
1928 2022-10-12  Martin Liska  <mliska@suse.cz>
1930         * configure: Regenerate.
1932 2022-10-11  Olivier Hainque  <hainque@adacore.com>
1933             Olivier Hainque  <hainque@adacore.com>
1935         * configure: Regenerate.
1937 2022-10-05  Tobias Burnus  <tobias@codesourcery.com>
1939         * libgomp.texi (OpenMP 5.1 Impl. Status): Mark 'assume' as 'Y'.
1941 2022-10-04  Jakub Jelinek  <jakub@redhat.com>
1943         * libgomp.texi (Support begin/end declare target syntax in C/C++):
1944         Mark as implemented.
1946 2022-09-30  Tobias Burnus  <tobias@codesourcery.com>
1948         PR fortran/105318
1949         * testsuite/libgomp.fortran/is_device_ptr-2.f90: New test.
1951 2022-09-28  Tobias Burnus  <tobias@codesourcery.com>
1953         * libgomp.texi (OpenMP 5.1): Mark 'assume' as implemented
1954         for C/C++. Remove duplicated 'begin declare target' entry.
1956 2022-09-24  Jakub Jelinek  <jakub@redhat.com>
1958         PR c/106981
1959         * testsuite/libgomp.c-c++-common/pr106981.c: New test.
1961 2022-09-14  Julian Brown  <julian@codesourcery.com>
1963         * testsuite/libgomp.oacc-c-c++-common/deep-copy-15.c: New test.
1964         * testsuite/libgomp.oacc-c-c++-common/deep-copy-16.c: New test.
1965         * testsuite/libgomp.oacc-c++/deep-copy-17.C: New test.
1966         * testsuite/libgomp.oacc-c-c++-common/deep-copy-arrayofstruct.c: Move
1967         test to here, make "run" test.
1969 2022-09-13  Jakub Jelinek  <jakub@redhat.com>
1971         PR libgomp/106906
1972         * env.c (get_icv_member_addr): Cast false to void * before assigning
1973         it to icv_addr[1], and comment the whole assignment out.
1975 2022-09-13  Tobias Burnus  <tobias@codesourcery.com>
1977         * libgomp.texi (gcn): Move misplaced -march=sm_30 remark to ...
1978         (nvptx): ... here.
1980 2022-09-12  Tobias Burnus  <tobias@codesourcery.com>
1982         * libgomp.texi (Offload-Target Specifics: nvptx): Document
1983         that reverse offload requires >= -march=sm_35.
1984         * testsuite/libgomp.c-c++-common/requires-4.c: Build for nvptx
1985         with -misa=sm_35.
1986         * testsuite/libgomp.c-c++-common/requires-5.c: Likewise.
1987         * testsuite/libgomp.c-c++-common/requires-6.c: Likewise.
1988         * testsuite/libgomp.c-c++-common/reverse-offload-1.c: Likewise.
1989         * testsuite/libgomp.fortran/reverse-offload-1.f90: Likewise.
1990         * testsuite/libgomp.c/reverse-offload-sm30.c: New test.
1992 2022-09-12  Tobias Burnus  <tobias@codesourcery.com>
1994         * libgomp.texi (OpenMP 5.1 Impl. Status): Add two new minor items.
1995         (OpenMP 5.2 Impl. Status): Improve omp/omx/ompx wording.
1997 2022-09-12  Jakub Jelinek  <jakub@redhat.com>
1999         PR libgomp/106894
2000         * testsuite/libgomp.c-c++-common/icv-6.c: Include string.h.
2001         (main): Avoid tests for which corresponding non-_ALL suffixed variable
2002         is in the environment, or for OMP_NUM_TEAMS on the device
2003         OMP_NUM_TEAMS_DEV_?.
2005 2022-09-10  Iain Sandoe  <iain@sandoe.co.uk>
2007         * env.c (initialize_env): Include libiberty environ.h.
2009 2022-09-09  Tobias Burnus  <tobias@codesourcery.com>
2011         * plugin/plugin-nvptx.c (GOMP_OFFLOAD_load_image): Read offload
2012         function address table '$offload_func_table' if rev_fn_table
2013         is not NULL.
2015 2022-09-09  Tobias Burnus  <tobias@codesourcery.com>
2017         * plugin/plugin-gcn.c (GOMP_OFFLOAD_load_image): Read
2018         .offload_func_table to populate rev_fn_table when requested.
2020 2022-09-09  Tobias Burnus  <tobias@codesourcery.com>
2022         * libgomp-plugin.h (GOMP_OFFLOAD_load_image): Add
2023         'uint64_t **rev_fn_table' argument.
2024         * oacc-host.c (host_load_image): Likewise.
2025         * plugin/plugin-gcn.c (GOMP_OFFLOAD_load_image): Likewise;
2026         currently unused.
2027         * plugin/plugin-nvptx.c (GOMP_OFFLOAD_load_image): Likewise.
2028         * target.c (gomp_load_image_to_device): Update call but pass
2029         NULL for now.
2031 2022-09-09  Jakub Jelinek  <jakub@redhat.com>
2033         PR libgomp/106894
2034         * env.c (initialize_env) <case PARSE_BIND>: Use char ** instead of
2035         char * for dest[1] initialization from params[1].  Formatting fixes.
2037 2022-09-08  Tobias Burnus  <tobias@codesourcery.com>
2039         PR fortran/106670
2040         * libgomp.texi (OpenMP 5.2): Add comment to ompx/omx entry.
2042 2022-09-08  Tobias Burnus  <tobias@codesourcery.com>
2044         * libgomp.texi (OpenMP-Implementation Specifics): New; add libmemkind
2045         section; move OpenMP Context Selectors from ...
2046         (Offload-Target Specifics): ... here; add 'AMD Radeo (GCN)' and
2047         'nvptx' sections.
2049 2022-09-08  Marcel Vollweiler  <marcel@codesourcery.com>
2051         * config/gcn/icv-device.c (omp_get_default_device): Return device-
2052         specific ICV.
2053         (omp_get_max_teams): Added for GCN devices.
2054         (omp_set_num_teams): Likewise.
2055         (ialias): Likewise.
2056         * config/nvptx/icv-device.c (omp_get_default_device): Return device-
2057         specific ICV.
2058         (omp_get_max_teams): Added for NVPTX devices.
2059         (omp_set_num_teams): Likewise.
2060         (ialias): Likewise.
2061         * env.c (struct gomp_icv_list): New struct to store entries of initial
2062         ICV values.
2063         (struct gomp_offload_icv_list): New struct to store entries of device-
2064         specific ICV values that are copied to the device and back.
2065         (struct gomp_default_icv_values): New struct to store default values of
2066         ICVs according to the OpenMP standard.
2067         (parse_schedule): Generalized for different variants of OMP_SCHEDULE.
2068         (print_env_var_error): Function that prints an error for invalid values
2069         for ICVs.
2070         (parse_unsigned_long_1): Removed getenv.  Generalized.
2071         (parse_unsigned_long): Likewise.
2072         (parse_int_1): Likewise.
2073         (parse_int): Likewise.
2074         (parse_int_secure): Likewise.
2075         (parse_unsigned_long_list): Likewise.
2076         (parse_target_offload): Likewise.
2077         (parse_bind_var): Likewise.
2078         (parse_stacksize): Likewise.
2079         (parse_boolean): Likewise.
2080         (parse_wait_policy): Likewise.
2081         (parse_allocator): Likewise.
2082         (omp_display_env): Extended to output different variants of environment
2083         variables.
2084         (print_schedule): New helper function for omp_display_env which prints
2085         the values of run_sched_var.
2086         (print_proc_bind): New helper function for omp_display_env which prints
2087         the values of proc_bind_var.
2088         (enum gomp_parse_type): Collection of types used for parsing environment
2089         variables.
2090         (ENTRY): Preprocess string lengths of environment variables.
2091         (OMP_VAR_CNT): Preprocess table size.
2092         (OMP_HOST_VAR_CNT): Likewise.
2093         (INT_MAX_STR_LEN): Constant for the maximal number of digits of a device
2094         number.
2095         (gomp_get_icv_flag): Returns if a flag for a particular ICV is set.
2096         (gomp_set_icv_flag): Sets a flag for a particular ICV.
2097         (print_device_specific_icvs): New helper function for omp_display_env to
2098         print device specific ICV values.
2099         (get_device_num): New helper function for parse_device_specific.
2100         Extracts the device number from an environment variable name.
2101         (get_icv_member_addr): Gets the memory address for a particular member
2102         of an ICV struct.
2103         (gomp_get_initial_icv_item): Get a list item of gomp_initial_icv_list.
2104         (initialize_icvs): New function to initialize a gomp_initial_icvs
2105         struct.
2106         (add_initial_icv_to_list): Adds an ICV struct to gomp_initial_icv_list.
2107         (startswith): Checks if a string starts with a given prefix.
2108         (initialize_env): Extended to parse the new syntax of environment
2109         variables.
2110         * icv-device.c (omp_get_max_teams): Added.
2111         (ialias): Likewise.
2112         (omp_set_num_teams): Likewise.
2113         * icv.c (omp_set_num_teams): Moved to icv-device.c.
2114         (omp_get_max_teams): Likewise.
2115         (ialias): Likewise.
2116         * libgomp-plugin.h (GOMP_DEVICE_NUM_VAR): Removed.
2117         (GOMP_ADDITIONAL_ICVS): New target-side struct that
2118         holds the designated ICVs of the target device.
2119         * libgomp.h (enum gomp_icvs): Collection of ICVs.
2120         (enum gomp_device_num): Definition of device numbers for _ALL, _DEV, and
2121         no suffix.
2122         (enum gomp_env_suffix): Collection of possible suffixes of environment
2123         variables.
2124         (struct gomp_initial_icvs): Contains all ICVs for which we need to store
2125         initial values.
2126         (struct gomp_default_icv):New struct to hold ICVs for which we need
2127         to store initial values.
2128         (struct gomp_icv_list): Definition of a linked list that is used for
2129         storing ICVs for the devices and also for _DEV, _ALL, and without
2130         suffix.
2131         (struct gomp_offload_icvs): New struct to hold ICVs that are copied to
2132         a device.
2133         (struct gomp_offload_icv_list): Definition of a linked list that holds
2134         device-specific ICVs that are copied to devices.
2135         (gomp_get_initial_icv_item): Get a list item of gomp_initial_icv_list.
2136         (gomp_get_icv_flag): Returns if a flag for a particular ICV is set.
2137         * libgomp.texi: Updated.
2138         * plugin/plugin-gcn.c (GOMP_OFFLOAD_load_image): Extended to read
2139         further ICVs from the offload image.
2140         * plugin/plugin-nvptx.c (GOMP_OFFLOAD_load_image): Likewise.
2141         * target.c (gomp_get_offload_icv_item): Get a list item of
2142         gomp_offload_icv_list.
2143         (get_gomp_offload_icvs): New. Returns the ICV values
2144         depending on the device num and the variable hierarchy.
2145         (gomp_load_image_to_device): Extended to copy further ICVs to a device.
2146         * testsuite/libgomp.c-c++-common/icv-5.c: New test.
2147         * testsuite/libgomp.c-c++-common/icv-6.c: New test.
2148         * testsuite/libgomp.c-c++-common/icv-7.c: New test.
2149         * testsuite/libgomp.c-c++-common/icv-8.c: New test.
2150         * testsuite/libgomp.c-c++-common/omp-display-env-1.c: New test.
2151         * testsuite/libgomp.c-c++-common/omp-display-env-2.c: New test.
2153 2022-09-08  Jakub Jelinek  <jakub@redhat.com>
2155         * libgomp.texi (OpenMP 5.2): Mention that omp_cur_iteration is now
2156         fully supported.
2157         * testsuite/libgomp.c/doacross-4.c: New test.
2158         * testsuite/libgomp.c/doacross-5.c: New test.
2159         * testsuite/libgomp.c/doacross-6.c: New test.
2160         * testsuite/libgomp.c/doacross-7.c: New test.
2162 2022-09-05  Tobias Burnus  <tobias@codesourcery.com>
2164         * libgomp.texi (OpenMP 5.2): Update doacross/omp_cur_iteration status.
2166 2022-08-26  Tobias Burnus  <tobias@codesourcery.com>
2168         * libgomp.texi (OpenMP 5.0): Mark 'ancestor' as implemented but
2169         refer to 'requires'.
2170         * testsuite/libgomp.c-c++-common/reverse-offload-1-aux.c: New test.
2171         * testsuite/libgomp.c-c++-common/reverse-offload-1.c: New test.
2172         * testsuite/libgomp.fortran/reverse-offload-1-aux.f90: New test.
2173         * testsuite/libgomp.fortran/reverse-offload-1.f90: New test.
2175 2022-08-17  Tobias Burnus  <tobias@codesourcery.com>
2177         PR middle-end/106548
2178         * testsuite/libgomp.c/linear-2.c: New test.
2180 2022-08-17  Tobias Burnus  <tobias@codesourcery.com>
2182         * splay-tree.h: Fix splay_* macro unsetting if
2183         splay_tree_prefix is defined.
2185 2022-07-29  Tobias Burnus  <tobias@codesourcery.com>
2187         * testsuite/libgomp.c-c++-common/pr106449-2.c: New test.
2189 2022-07-29  Jakub Jelinek  <jakub@redhat.com>
2191         PR middle-end/106449
2192         * testsuite/libgomp.c-c++-common/pr106449.c: New test.
2194 2022-07-12  Tobias Burnus  <tobias@codesourcery.com>
2196         * target.c (gomp_target_init): Added tailing '\n' to gomp_debug.
2198 2022-07-12  Thomas Schwinge  <thomas@codesourcery.com>
2200         PR middle-end/101551
2201         * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: XFAIL
2202         'offloading_enabled' diagnostics issue.
2204 2022-07-11  Thomas Schwinge  <thomas@codesourcery.com>
2206         * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Enhance
2207         '_Pragma' diagnostics verification.
2209 2022-07-10  Lewis Hyatt  <lhyatt@gmail.com>
2211         * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Adapt for
2212         improved warning locations.
2213         * testsuite/libgomp.oacc-c-c++-common/vred2d-128.c: Likewise.
2215 2022-07-08  Thomas Schwinge  <thomas@codesourcery.com>
2217         * testsuite/libgomp.c-c++-common/requires-1.c: Add 'dg-note's.
2218         * testsuite/libgomp.c-c++-common/requires-2.c: Likewise.
2219         * testsuite/libgomp.c-c++-common/requires-3.c: Likewise.
2220         * testsuite/libgomp.c-c++-common/requires-7.c: Likewise.
2221         * testsuite/libgomp.fortran/requires-1.f90: Likewise.
2223 2022-07-07  Thomas Schwinge  <thomas@codesourcery.com>
2225         * target.c (GOMP_offload_register, GOMP_offload_unregister):
2226         Denote as legacy entry points.
2227         * testsuite/lib/libgomp.exp
2228         (check_effective_target_offload_target_any): New proc.
2229         * testsuite/libgomp.c-c++-common/requires-1.c: Enable for
2230         'offload_target_any'.
2231         * testsuite/libgomp.c-c++-common/requires-3.c: Likewise.
2232         * testsuite/libgomp.c-c++-common/requires-7.c: Likewise.
2233         * testsuite/libgomp.fortran/requires-1.f90: Likewise.
2235 2022-07-07  Thomas Schwinge  <thomas@codesourcery.com>
2237         * testsuite/libgomp.c-c++-common/requires-4.c: Enhance testing.
2238         * testsuite/libgomp.c-c++-common/requires-5.c: Likewise.
2240 2022-07-07  Thomas Schwinge  <thomas@codesourcery.com>
2242         * testsuite/libgomp.c-c++-common/requires-3.c: Adjust.
2244 2022-07-06  Thomas Schwinge  <thomas@codesourcery.com>
2246         * target.c (GOMP_offload_register_ver): Clarify 'target_data' ->
2247         'data'.
2248         (GOMP_offload_unregister_ver): Likewise.  Fix up 'target_data'.
2250 2022-07-04  Tobias Burnus  <tobias@codesourcery.com>
2251             Jakub Jelinek  <jakub@redhat.com>
2253         * libgomp.texi (OpenMP 5.2): Mark linear-clause change as 'Y'.
2255 2022-07-04  Tobias Burnus  <tobias@codesourcery.com>
2256             Chung-Lin Tang  <cltang@codesourcery.com>
2257             Thomas Schwinge  <thomas@codesourcery.com>
2259         * libgomp-plugin.h (GOMP_OFFLOAD_get_num_devices): Add
2260         omp_requires_mask arg.
2261         * plugin/plugin-gcn.c (GOMP_OFFLOAD_get_num_devices): Likewise;
2262         return -1 when device available but omp_requires_mask != 0.
2263         * plugin/plugin-nvptx.c (GOMP_OFFLOAD_get_num_devices): Likewise.
2264         * oacc-host.c (host_get_num_devices, host_openacc_get_property):
2265         Update call.
2266         * oacc-init.c (resolve_device, acc_init_1, acc_shutdown_1,
2267         goacc_attach_host_thread_to_device, acc_get_num_devices,
2268         acc_set_device_num, get_property_any): Likewise.
2269         * target.c (omp_requires_mask): New global var.
2270         (gomp_requires_to_name): New.
2271         (GOMP_offload_register_ver): Handle passed omp_requires_mask.
2272         (gomp_target_init): Handle omp_requires_mask.
2273         * libgomp.texi (OpenMP 5.0): Update requires impl. status.
2274         (OpenMP 5.1): Add a missed item.
2275         (OpenMP 5.2): Mark linear-clause change as supported in C/C++.
2276         * testsuite/libgomp.c-c++-common/requires-1-aux.c: New test.
2277         * testsuite/libgomp.c-c++-common/requires-1.c: New test.
2278         * testsuite/libgomp.c-c++-common/requires-2-aux.c: New test.
2279         * testsuite/libgomp.c-c++-common/requires-2.c: New test.
2280         * testsuite/libgomp.c-c++-common/requires-3-aux.c: New test.
2281         * testsuite/libgomp.c-c++-common/requires-3.c: New test.
2282         * testsuite/libgomp.c-c++-common/requires-4-aux.c: New test.
2283         * testsuite/libgomp.c-c++-common/requires-4.c: New test.
2284         * testsuite/libgomp.c-c++-common/requires-5-aux.c: New test.
2285         * testsuite/libgomp.c-c++-common/requires-5.c: New test.
2286         * testsuite/libgomp.c-c++-common/requires-6.c: New test.
2287         * testsuite/libgomp.c-c++-common/requires-7-aux.c: New test.
2288         * testsuite/libgomp.c-c++-common/requires-7.c: New test.
2289         * testsuite/libgomp.fortran/requires-1-aux.f90: New test.
2290         * testsuite/libgomp.fortran/requires-1.f90: New test.
2292 2022-07-01  Tobias Burnus  <tobias@codesourcery.com>
2294         * libgomp.texi (OpenMP 5.2): Mark target enter/exit data
2295         with fromto as implemented.
2297 2022-06-28  Martin Liska  <mliska@suse.cz>
2299         * acinclude.m4: Fix typo in mold linker detection.
2300         * Makefile.in: Regenerate.
2301         * configure: Regenerate.
2303 2022-06-21  Jakub Jelinek  <jakub@redhat.com>
2304             Paul Iannetta  <piannetta@kalrayinc.com>
2306         PR libgomp/106045
2307         * testsuite/libgomp.c/target-31.c: Add private (i) clause.
2309 2022-06-17  Martin Liska  <mliska@suse.cz>
2311         * libgomp.texi: Add table header for new features of
2312         OpenMP 5.2.
2314 2022-06-15  Jakub Jelinek  <jakub@redhat.com>
2316         * testsuite/libgomp.c-c++-common/get-mapped-ptr-1.c (main): Initialize
2317         q to ddress of an automatic variable.  Use -5 instead of -1 in
2318         omp_get_mapped_ptr call.  Add test with omp_initial_device.
2319         * testsuite/libgomp.fortran/get-mapped-ptr-1.f90 (main): Use -5 instead
2320         of -1 in omp_get_mapped_ptr call.  Add test with omp_initial_device.
2321         Renumber stop arguments afterwards.
2323 2022-06-13  Jakub Jelinek  <jakub@redhat.com>
2325         * omp.h.in (omp_initial_device, omp_invalid_device): New enumerators.
2326         * omp_lib.f90.in (omp_initial_device, omp_invalid_device): New
2327         parameters.
2328         * omp_lib.h.in (omp_initial_device, omp_invalid_device): Likewise.
2329         * target.c (resolve_device): Add remapped argument, handle
2330         GOMP_DEVICE_ICV only if remapped is true (and clear remapped),
2331         for negative values, treat GOMP_DEVICE_FALLBACK as fallback only
2332         if remapped, otherwise treat omp_initial_device that way.  For
2333         omp_invalid_device, always emit gomp_fatal, even when
2334         OMP_TARGET_OFFLOAD isn't mandatory.
2335         (GOMP_target, GOMP_target_ext, GOMP_target_data, GOMP_target_data_ext,
2336         GOMP_target_update, GOMP_target_update_ext,
2337         GOMP_target_enter_exit_data): Pass true as remapped argument to
2338         resolve_device.
2339         (omp_target_alloc, omp_target_free, omp_target_is_present,
2340         omp_target_memcpy_check, omp_target_associate_ptr,
2341         omp_target_disassociate_ptr, omp_get_mapped_ptr,
2342         omp_target_is_accessible): Pass false as remapped argument to
2343         resolve_device.  Treat omp_initial_device the same as
2344         gomp_get_num_devices ().  Don't bypass resolve_device calls if
2345         device_num is negative.
2346         (omp_pause_resource): Treat omp_initial_device the same as
2347         gomp_get_num_devices ().  Call resolve_device.
2348         * icv-device.c (omp_set_default_device): Always set to device_num
2349         even when it is negative.
2350         * libgomp.texi: Document that Conforming device numbers,
2351         omp_initial_device and omp_invalid_device is implemented.
2352         * testsuite/libgomp.c/target-41.c (main): Add test with
2353         omp_initial_device.
2354         * testsuite/libgomp.c/target-45.c: New test.
2355         * testsuite/libgomp.c/target-46.c: New test.
2356         * testsuite/libgomp.c/target-47.c: New test.
2357         * testsuite/libgomp.c-c++-common/target-is-accessible-1.c (main): Add
2358         test with omp_initial_device.  Use -5 instead of -1 for negative value
2359         test.
2360         * testsuite/libgomp.fortran/target-is-accessible-1.f90 (main):
2361         Likewise.  Reorder stop numbers.
2363 2022-06-10  Jakub Jelinek  <jakub@redhat.com>
2365         * allocator.c (gomp_init_memkind): Call dlopen with "libmemkind.so.0"
2366         rather than "libmemkind.so".
2368 2022-06-10  Thomas Schwinge  <thomas@codesourcery.com>
2370         * plugin/Makefrag.am: Evaluate 'if PLUGIN_NVPTX_DYNAMIC' to true.
2371         * plugin/configfrag.ac (--with-cuda-driver)
2372         (--with-cuda-driver-include, --with-cuda-driver-lib)
2373         (CUDA_DRIVER_INCLUDE, CUDA_DRIVER_LIB, PLUGIN_NVPTX_CPPFLAGS)
2374         (PLUGIN_NVPTX_LDFLAGS, PLUGIN_NVPTX_LIBS, PLUGIN_NVPTX_DYNAMIC):
2375         Remove.
2376         * testsuite/libgomp-test-support.exp.in (cuda_driver_include)
2377         (cuda_driver_lib): Remove.
2378         * testsuite/lib/libgomp.exp (libgomp_init): Don't consider these.
2379         * Makefile.in: Regenerate.
2380         * configure: Likewise.
2381         * testsuite/Makefile.in: Likewise.
2383 2022-06-09  Jakub Jelinek  <jakub@redhat.com>
2385         * config/linux/allocator.c: Fix up #include directive.
2387 2022-06-09  Jakub Jelinek  <jakub@redhat.com>
2389         * allocator.c: Include dlfcn.h if LIBGOMP_USE_MEMKIND is defined.
2390         (enum gomp_memkind_kind): New type.
2391         (struct omp_allocator_data): Add memkind field if LIBGOMP_USE_MEMKIND
2392         is defined.
2393         (struct gomp_memkind_data): New type.
2394         (memkind_data, memkind_data_once): New variables.
2395         (gomp_init_memkind, gomp_get_memkind): New functions.
2396         (omp_init_allocator): Initialize data.memkind, don't fail for
2397         omp_high_bw_mem_space if libmemkind supports it.
2398         (omp_aligned_alloc, omp_free, omp_aligned_calloc, omp_realloc): Add
2399         memkind support of LIBGOMP_USE_MEMKIND is defined.
2400         * config/linux/allocator.c: New file.
2402 2022-06-03  Tobias Burnus  <tobias@codesourcery.com>
2404         * libgomp.texi (OpenMP 5.2): Mark scope w/ firstprivate/allocate as Y.
2405         * testsuite/libgomp.fortran/scope-2.f90: New test.
2407 2022-06-02  David Malcolm  <dmalcolm@redhat.com>
2409         * testsuite/lib/libgomp.exp: Add load_gcc_lib of scansarif.exp.
2411 2022-05-31  Jakub Jelinek  <jakub@redhat.com>
2413         * testsuite/libgomp.c-c++-common/allocate-1.c (foo): Add testcase for
2414         scope construct with allocate clause.
2415         * testsuite/libgomp.c-c++-common/allocate-3.c (foo): Likewise.
2416         * testsuite/libgomp.c-c++-common/scope-2.c: New test.
2418 2022-05-28  Tobias Burnus  <tobias@codesourcery.com>
2420         * libgomp.texi (OpenMP 5.2): Mark 'enter' clause as supported.
2421         * testsuite/libgomp.fortran/declare-target-1.f90: Extend to test
2422         explicit 'to' and 'enter' clause.
2423         * testsuite/libgomp.fortran/declare-target-2.f90: Update accordingly.
2425 2022-05-28  Jakub Jelinek  <jakub@redhat.com>
2427         PR libgomp/105745
2428         * libgomp.h (GOMP_HAVE_EFFICIENT_ALIGNED_ALLOC): Don't define for
2429         defined(HAVE__ALIGNED_MALLOC) case.
2430         * alloc.c (gomp_aligned_alloc): Move defined(HAVE__ALIGNED_MALLOC)
2431         handling as last option before fallback instead of first.
2432         (gomp_aligned_free): For defined(HAVE__ALIGNED_MALLOC) call
2433         _aligned_free.
2435 2022-05-27  Jakub Jelinek  <jakub@redhat.com>
2437         * testsuite/libgomp.c-c++-common/target-40.c: Modify some existing to
2438         clauses to enter.
2439         * testsuite/libgomp.c/target-41.c: Likewise.
2441 2022-05-27  Tobias Burnus  <tobias@codesourcery.com>
2443         * libgomp.texi (Other new OpenMP 5.1 features): Add
2444         'begin declare target'.
2445         (Other new OpenMP 5.2 features): New.
2447 2022-05-25  Jakub Jelinek  <jakub@redhat.com>
2449         * task.c (gomp_task_run_post_handle_dependers): If empty_task
2450         is the last task taskwait depend depends on, wake it up.
2451         Similarly if it is the last child of a taskgroup, use atomic
2452         store instead of decrement and awak taskgroup wait if any.
2453         * testsuite/libgomp.c-c++-common/taskwait-depend-nowait-2.c: New test.
2455 2022-05-24  Andrew Stubbs  <ams@codesourcery.com>
2457         * plugin/plugin-gcn.c (EF_AMDGPU_MACH): Add
2458         EF_AMDGPU_MACH_AMDGCN_GFX90a.
2459         (gcn_gfx90a_s): New.
2460         (isa_hsa_name): Support gfx90a.
2461         (isa_code): Likewise.
2463 2022-05-24  Tobias Burnus  <tobias@codesourcery.com>
2465         PR c/105378
2466         * libgomp.texi (OpenMP 5.1): Set 'taskwait nowait' to 'Y'.
2467         * testsuite/libgomp.fortran/taskwait-depend-nowait-1.f90: New.
2469 2022-05-24  Jakub Jelinek  <jakub@redhat.com>
2471         PR c/105378
2472         * libgomp_g.h (GOMP_taskwait_depend_nowait): Declare.
2473         * libgomp.map (GOMP_taskwait_depend_nowait): Export at GOMP_5.1.1.
2474         * task.c (empty_task): New function.
2475         (gomp_task_run_post_handle_depend_hash): Declare earlier.
2476         (gomp_task_run_post_handle_depend): Declare.
2477         (GOMP_task): Optimize fn == empty_task if there is nothing to wait
2478         for.
2479         (gomp_task_run_post_handle_dependers): Optimize task->fn == empty_task.
2480         (GOMP_taskwait_depend_nowait): New function.
2481         * testsuite/libgomp.c-c++-common/taskwait-depend-nowait-1.c: New test.
2483 2022-05-23  Tobias Burnus  <tobias@codesourcery.com>
2485         PR fortran/104949
2486         * target.c (gomp_map_vars_internal, copy_firstprivate_data):
2487         Support attach for GOMP_MAP_FIRSTPRIVATE.
2488         * testsuite/libgomp.fortran/target-firstprivate-1.f90: New test.
2489         * testsuite/libgomp.fortran/target-firstprivate-2.f90: New test.
2490         * testsuite/libgomp.fortran/target-firstprivate-3.f90: New test.
2492 2022-05-20  Marcel Vollweiler  <marcel@codesourcery.com>
2494         * libgomp.map: Added omp_target_memcpy_async and
2495         omp_target_memcpy_rect_async.
2496         * libgomp.texi: Both functions are now supported.
2497         * omp.h.in: Added omp_target_memcpy_async and
2498         omp_target_memcpy_rect_async.
2499         * omp_lib.f90.in: Added interfaces for both new functions.
2500         * omp_lib.h.in: Likewise.
2501         * target.c (ialias_redirect): Added for GOMP_task.
2502         (omp_target_memcpy): Restructured into check and copy part.
2503         (omp_target_memcpy_check): New helper function for omp_target_memcpy and
2504         omp_target_memcpy_async that checks requirements.
2505         (omp_target_memcpy_copy): New helper function for omp_target_memcpy and
2506         omp_target_memcpy_async that performs the memcpy.
2507         (omp_target_memcpy_async_helper): New helper function that is used in
2508         omp_target_memcpy_async for the asynchronous task.
2509         (omp_target_memcpy_async): Added.
2510         (omp_target_memcpy_rect): Restructured into check and copy part.
2511         (omp_target_memcpy_rect_check): New helper function for
2512         omp_target_memcpy_rect and omp_target_memcpy_rect_async that checks
2513         requirements.
2514         (omp_target_memcpy_rect_copy): New helper function for
2515         omp_target_memcpy_rect and omp_target_memcpy_rect_async that performs
2516         the memcpy.
2517         (omp_target_memcpy_rect_async_helper): New helper function that is used
2518         in omp_target_memcpy_rect_async for the asynchronous task.
2519         (omp_target_memcpy_rect_async): Added.
2520         * task.c (ialias): Added for GOMP_task.
2521         * testsuite/libgomp.c-c++-common/target-memcpy-async-1.c: New test.
2522         * testsuite/libgomp.c-c++-common/target-memcpy-async-2.c: New test.
2523         * testsuite/libgomp.c-c++-common/target-memcpy-rect-async-1.c: New test.
2524         * testsuite/libgomp.c-c++-common/target-memcpy-rect-async-2.c: New test.
2525         * testsuite/libgomp.fortran/target-memcpy-async-1.f90: New test.
2526         * testsuite/libgomp.fortran/target-memcpy-async-2.f90: New test.
2527         * testsuite/libgomp.fortran/target-memcpy-rect-async-1.f90: New test.
2528         * testsuite/libgomp.fortran/target-memcpy-rect-async-2.f90: New test.
2530 2022-05-18  Tobias Burnus  <tobias@codesourcery.com>
2532         * libgomp.texi (OpenMP 5.1): Set 'inoutset' to Y.
2533         (OpenMP Context Selectors): Add missing comma.
2534         * testsuite/libgomp.fortran/depend-5.f90: Add inoutset test.
2535         * testsuite/libgomp.fortran/depend-6.f90: Likewise.
2536         * testsuite/libgomp.fortran/depend-7.f90: Likewise.
2537         * testsuite/libgomp.fortran/depend-inoutset-1.f90: New test.
2539 2022-05-17  Jakub Jelinek  <jakub@redhat.com>
2541         * libgomp.texi (OpenMP 5.1): Remove "Not inside target regions"
2542         comment for omp_display_env feature.
2544 2022-05-17  Tobias Burnus  <tobias@codesourcery.com>
2546         * libgomp.texi (Offload-Target Specifics): New chapter; add section
2547         to document OpenMP context selectors.
2549 2022-05-17  Jakub Jelinek  <jakub@redhat.com>
2551         * libgomp.h (struct gomp_task_depend_entry): Change is_in type
2552         from bool to unsigned char.
2553         * task.c (gomp_task_handle_depend): Handle GOMP_DEPEND_INOUTSET.
2554         Ignore dependencies where
2555         task->depend[i].is_in && task->depend[i].is_in == ent->is_in
2556         rather than just task->depend[i].is_in && ent->is_in.  Remember
2557         whether GOMP_DEPEND_IN loop is needed and guard the loop with that
2558         conditional.
2559         (gomp_task_maybe_wait_for_dependencies): Handle GOMP_DEPEND_INOUTSET.
2560         Ignore dependencies where elem.is_in && elem.is_in == ent->is_in
2561         rather than just elem.is_in && ent->is_in.
2562         * testsuite/libgomp.c-c++-common/depend-1.c (test): Add task with
2563         inoutset depend-kind.
2564         * testsuite/libgomp.c-c++-common/depend-2.c (test): Likewise.
2565         * testsuite/libgomp.c-c++-common/depend-3.c (test): Likewise.
2566         * testsuite/libgomp.c-c++-common/depend-inoutset-1.c: New test.
2568 2022-05-17  Tobias Burnus  <tobias@codesourcery.com>
2570         * libgomp.texi (OpenMP Implementation Status): Add 5.2 table.
2572 2022-05-17  Tobias Burnus  <tobias@codesourcery.com>
2574         * libgomp.texi (OpenMP 5.1): Set omp_all_memory to 'Y'.
2575         * testsuite/libgomp.fortran/depend-5.f90: New test.
2576         * testsuite/libgomp.fortran/depend-6.f90: New test.
2577         * testsuite/libgomp.fortran/depend-7.f90: New test.
2579 2022-05-16  Marcel Vollweiler  <marcel@codesourcery.com>
2581         * testsuite/libgomp.c++/target-has-device-addr-7.C: New test.
2582         * testsuite/libgomp.c++/target-has-device-addr-8.C: New test.
2583         * testsuite/libgomp.c++/target-has-device-addr-9.C: New test.
2585 2022-05-13  Tobias Burnus  <tobias@codesourcery.com>
2587         * testsuite/libgomp.fortran/target-nowait-array-section.f90: New test.
2589 2022-05-13  Tobias Burnus  <tobias@codesourcery.com>
2591         * testsuite/libgomp.fortran/target-nowait-array-section.f90: New test.
2593 2022-05-13  Thomas Schwinge  <thomas@codesourcery.com>
2595         * plugin/Makefrag.am (libgomp_plugin_nvptx_la_CPPFLAGS)
2596         [PLUGIN_NVPTX_DYNAMIC]: Don't append '$(PLUGIN_NVPTX_CPPFLAGS)'.
2597         (libgomp_plugin_nvptx_la_LDFLAGS) [PLUGIN_NVPTX_DYNAMIC]: Don't
2598         append '$(PLUGIN_NVPTX_LDFLAGS)'.
2599         * Makefile.in: Regenerate.
2601 2022-05-12  Thomas Schwinge  <thomas@codesourcery.com>
2603         * Makefile.am (libgomp_la_LIBADD): Initialize.
2604         * plugin/configfrag.ac (DL_LIBS): New.
2605         (PLUGIN_GCN_LIBS): Remove.
2606         (PLUGIN_NVPTX_LIBS): Don't set in the 'PLUGIN_NVPTX_DYNAMIC' case.
2607         * plugin/Makefrag.am (libgomp_la_LIBADD)
2608         (libgomp_plugin_gcn_la_LIBADD): Consider '$(DL_LIBS)'.
2609         (libgomp_plugin_nvptx_la_LIBADD) <PLUGIN_NVPTX_DYNAMIC>: Likewise.
2610         * Makefile.in: Regenerate.
2611         * config.h.in: Likewise.
2612         * configure: Likewise.
2613         * testsuite/Makefile.in: Likewise.
2615 2022-05-12  Thomas Schwinge  <thomas@codesourcery.com>
2617         * plugin/Makefrag.am: Handle 'PLUGIN_NVPTX_DYNAMIC'.
2618         * plugin/configfrag.ac (PLUGIN_NVPTX_DYNAMIC): Change
2619         'AC_DEFINE_UNQUOTED' into 'AM_CONDITIONAL'.
2620         * plugin/plugin-nvptx.c: Split 'PLUGIN_NVPTX_DYNAMIC' into
2621         'PLUGIN_NVPTX_INCLUDE_SYSTEM_CUDA_H' and
2622         'PLUGIN_NVPTX_LINK_LIBCUDA'.
2623         * Makefile.in: Regenerate.
2624         * config.h.in: Likewise.
2625         * configure: Likewise.
2627 2022-05-12  Thomas Schwinge  <thomas@codesourcery.com>
2629         * plugin/configfrag.ac: Don't 'AC_SUBST' and 'AC_DEFINE_UNQUOTED'
2630         for 'PLUGIN_GCN', 'PLUGIN_NVPTX'.
2631         * Makefile.in: Regenerate.
2632         * config.h.in: Likewise.
2633         * configure: Likewise.
2634         * testsuite/Makefile.in: Likewise.
2636 2022-05-12  Jakub Jelinek  <jakub@redhat.com>
2638         * libgomp.h (struct gomp_task): Add depend_all_memory member.
2639         * task.c (gomp_init_task): Initialize depend_all_memory.
2640         (gomp_task_handle_depend): Handle omp_all_memory.
2641         (gomp_task_run_post_handle_depend_hash): Clear
2642         parent->depend_all_memory if equal to current task.
2643         (gomp_task_maybe_wait_for_dependencies): Handle omp_all_memory.
2644         * testsuite/libgomp.c-c++-common/depend-1.c: New test.
2645         * testsuite/libgomp.c-c++-common/depend-2.c: New test.
2646         * testsuite/libgomp.c-c++-common/depend-3.c: New test.
2648 2022-05-11  Thomas Schwinge  <thomas@codesourcery.com>
2650         * plugin/configfrag.ac: Remove '--with-hsa-runtime',
2651         '--with-hsa-runtime-include', '--with-hsa-runtime-lib' processing.
2652         * Makefile.in: Regenerate.
2653         * configure: Likewise.
2654         * testsuite/Makefile.in: Likewise.
2656 2022-05-11  Thomas Schwinge  <thomas@codesourcery.com>
2658         * plugin/Makefrag.am (libgomp_plugin_gcn_la_CPPFLAGS): Don't
2659         consider 'PLUGIN_GCN_CPPFLAGS'.
2660         (libgomp_plugin_gcn_la_LDFLAGS): Don't consider
2661         'PLUGIN_GCN_LDFLAGS'.
2662         * plugin/configfrag.ac (PLUGIN_GCN_CPPFLAGS, PLUGIN_GCN_LDFLAGS):
2663         Remove.
2664         * Makefile.in: Regenerate.
2665         * configure: Likewise.
2666         * testsuite/Makefile.in: Likewise.
2668 2022-05-11  Thomas Schwinge  <thomas@codesourcery.com>
2670         * plugin/configfrag.ac (HSA_RUNTIME_CPPFLAGS)
2671         (HSA_RUNTIME_LDFLAGS): Remove.
2672         * configure: Regenerate.
2674 2022-05-11  Thomas Schwinge  <thomas@codesourcery.com>
2676         * testsuite/lib/libgomp.exp (libgomp_init): Don't
2677         'append always_ld_library_path ":$hsa_runtime_lib"'.
2678         * testsuite/libgomp-test-support.exp.in (hsa_runtime_lib): Don't set.
2680 2022-05-10  Thomas Schwinge  <thomas@codesourcery.com>
2682         * testsuite/libgomp.fortran/use_device_addr-5.f90: Fix up
2683         multi-device testing.
2685 2022-05-06  Marcel Vollweiler  <marcel@codesourcery.com>
2687         * libgomp.map: Added omp_target_is_accessible.
2688         * libgomp.texi: Tagged omp_target_is_accessible as supported.
2689         * omp.h.in: Added omp_target_is_accessible.
2690         * omp_lib.f90.in: Added interface for omp_target_is_accessible.
2691         * omp_lib.h.in: Likewise.
2692         * target.c (omp_target_is_accessible): Added implementation of
2693         omp_target_is_accessible.
2694         * testsuite/libgomp.c-c++-common/target-is-accessible-1.c: New test.
2695         * testsuite/libgomp.fortran/target-is-accessible-1.f90: New test.
2697 2022-05-05  Sandra Loosemore  <sandra@codesourcery.com>
2699         * libgomp.texi (OpenMP 5.0): Feature is now fully supported.
2701 2022-05-04  Tobias Burnus  <tobias@codesourcery.com>
2703         * plugin/plugin-gcn.c (isa_matches_agent): Suggest -foffload-options.
2705 2022-05-04  Tobias Burnus  <tobias@codesourcery.com>
2707         * testsuite/libgomp.fortran/use_device_addr-5.f90: New test.
2709 2022-05-03  Marcel Vollweiler  <marcel@codesourcery.com>
2711         * libgomp.map: Added omp_get_mapped_ptr.
2712         * libgomp.texi: Tagged omp_get_mapped_ptr as supported.
2713         * omp.h.in: Added omp_get_mapped_ptr.
2714         * omp_lib.f90.in: Added interface for omp_get_mapped_ptr.
2715         * omp_lib.h.in: Likewise.
2716         * target.c (omp_get_mapped_ptr): Added implementation of
2717         omp_get_mapped_ptr.
2718         * testsuite/libgomp.c-c++-common/get-mapped-ptr-1.c: New test.
2719         * testsuite/libgomp.c-c++-common/get-mapped-ptr-2.c: New test.
2720         * testsuite/libgomp.c-c++-common/get-mapped-ptr-3.c: New test.
2721         * testsuite/libgomp.c-c++-common/get-mapped-ptr-4.c: New test.
2722         * testsuite/libgomp.fortran/get-mapped-ptr-1.f90: New test.
2723         * testsuite/libgomp.fortran/get-mapped-ptr-2.f90: New test.
2724         * testsuite/libgomp.fortran/get-mapped-ptr-3.f90: New test.
2725         * testsuite/libgomp.fortran/get-mapped-ptr-4.f90: New test.
2727 2022-04-28  Thomas Schwinge  <thomas@codesourcery.com>
2729         PR fortran/104717
2730         * testsuite/libgomp.oacc-fortran/print-1.f90: Add OpenACC
2731         privatization scanning.  For GCN offloading compilation, raise
2732         '-mgang-private-size'.
2734 2022-04-26  Jakub Jelinek  <jakub@redhat.com>
2736         PR libgomp/105358
2737         * work.c (gomp_init_work_share): Don't mask of adjustment for
2738         dynamic long long realignment if struct gomp_work_share has smaller
2739         alignof than long long.
2740         * loop.c (GOMP_loop_start): Don't use inline_ordered_team_ids if
2741         struct gomp_work_share has smaller alignof than long long or if
2742         sizeof (struct gomp_work_share) is smaller than
2743         INLINE_ORDERED_TEAM_IDS_OFF.
2744         * loop_ull.c (GOMP_loop_ull_start): Likewise.
2745         * sections.c (GOMP_sections2_start): Likewise.
2747 2022-04-25  Jakub Jelinek  <jakub@redhat.com>
2748             Thomas Schwinge  <thomas@codesourcery.com>
2750         PR fortran/104717
2751         * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Adjust.
2753 2022-04-13  Jakub Jelinek  <jakub@redhat.com>
2755         * libgomp.texi: Fix a typo - mutexinouset -> mutexinoutset.
2757 2022-04-06  Thomas Schwinge  <thomas@codesourcery.com>
2759         * plugin/cuda/cuda.h: Remove file.
2760         * plugin/plugin-nvptx.c [PLUGIN_NVPTX_DYNAMIC]: Include
2761         "cuda/cuda.h" instead of <cuda.h>.
2762         * plugin/configfrag.ac <PLUGIN_NVPTX_DYNAMIC>: Don't set
2763         'PLUGIN_NVPTX_CPPFLAGS'.
2764         * configure: Regenerate.
2766 2022-04-05  Chung-Lin Tang  <cltang@codesourcery.com>
2768         * testsuite/libgomp.fortran/use_device_ptr-4.f90: New testcase.
2770 2022-04-04  Tom de Vries  <tdevries@suse.de>
2772         * testsuite/libgomp.fortran/examples-4/declare_target-1.f90: Use
2773         on_device_arch_nvptx instead of offload_target_nvptx.
2774         * testsuite/libgomp.fortran/examples-4/declare_target-2.f90: Same.
2776 2022-04-01  Tom de Vries  <tdevries@suse.de>
2778         * testsuite/libgomp.fortran/examples-4/declare_target-1.f90: Define
2779         and use REC_DEPTH.
2780         * testsuite/libgomp.fortran/examples-4/declare_target-2.f90: Same.
2782 2022-04-01  Tom de Vries  <tdevries@suse.de>
2784         * testsuite/libgomp.oacc-c-c++-common/vector-length-128-7.c: Fix
2785         num_workers check.
2787 2022-03-29  Chenghua Xu  <xuchenghua@loongson.cn>
2788             Lulu Cheng  <chenglulu@loongson.cn>
2790         * configure.tgt: Add LoongArch triplet.
2792 2022-03-28  Tom de Vries  <tdevries@suse.de>
2794         * plugin/configfrag.ac: Use /$(libexecdir:\$(exec_prefix)/%=%)/
2795         instead of /libexec/.
2796         * configure: Regenerate.
2798 2022-03-25  Tom de Vries  <tdevries@suse.de>
2800         PR libgomp/105042
2801         * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Reduce
2802         execution time.
2803         * testsuite/libgomp.oacc-c-c++-common/vred2d-128.c: Same.
2804         * testsuite/libgomp.oacc-fortran/parallel-dims.f90: Same.
2806 2022-03-23  Tobias Burnus  <tobias@codesourcery.com>
2808         PR middle-end/104285
2809         * testsuite/libgomp.c++/target-same-name-2-a.C: New test.
2810         * testsuite/libgomp.c++/target-same-name-2-b.C: New test.
2811         * testsuite/libgomp.c++/target-same-name-2.C: New test.
2812         * testsuite/libgomp.c-c++-common/target-same-name-1-a.c: New test.
2813         * testsuite/libgomp.c-c++-common/target-same-name-1-b.c: New test.
2814         * testsuite/libgomp.c-c++-common/target-same-name-1.c: New test.
2816 2022-03-22  Tom de Vries  <tdevries@suse.de>
2818         PR target/104916
2819         PR target/104783
2820         * testsuite/libgomp.c/pr104783-2.c: New test.
2822 2022-03-18  Tobias Burnus  <tobias@codesourcery.com>
2824         PR fortran/103039
2825         * testsuite/libgomp.fortran/associate4.f90: New test.
2827 2022-03-18  Tom de Vries  <tdevries@suse.de>
2829         PR target/104952
2830         * testsuite/libgomp.c/pr104952-1.c: New test.
2831         * testsuite/libgomp.c/pr104952-2.c: New test.
2833 2022-03-18  Jakub Jelinek  <jakub@redhat.com>
2835         * config/linux/affinity.c (gomp_affinity_init_numa_domains): Move seen
2836         variable next to pl variable.
2838 2022-03-17  Thomas Schwinge  <thomas@codesourcery.com>
2840         * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c:
2841         Enhance.
2842         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-g.c: Likewise.
2843         * testsuite/libgomp.oacc-fortran/if-1.f90: Likewise.
2845 2022-03-17  Thomas Schwinge  <thomas@codesourcery.com>
2847         PR middle-end/90115
2848         * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c: Enhance.
2849         * testsuite/libgomp.oacc-fortran/if-1.f90: Likewise.
2851 2022-03-16  Marcel Vollweiler  <marcel@codesourcery.com>
2853         * fortran.c (omp_set_num_teams_8_): Call omp_set_num_teams instead of
2854         omp_set_max_active_levels.
2855         * testsuite/libgomp.fortran/icv-8.f90: New test.
2857 2022-03-16  Thomas Schwinge  <thomas@codesourcery.com>
2859         PR testsuite/102841
2860         * testsuite/libgomp.oacc-c-c++-common/host_data-7.c: Adjust.
2862 2022-03-13  Tobias Burnus  <tobias@codesourcery.com>
2864         * libgomp.texi: Fix typo.
2866 2022-03-12  Thomas Schwinge  <thomas@codesourcery.com>
2868         PR middle-end/100280
2869         PR middle-end/104892
2870         * testsuite/libgomp.oacc-c-c++-common/declare-vla.c: Adjust.
2871         * testsuite/libgomp.oacc-c-c++-common/default-1.c: Likewise.
2872         * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c:
2873         Likewise.
2874         * testsuite/libgomp.oacc-c-c++-common/kernels-reduction-1.c:
2875         Likewise.
2876         * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Likewise.
2877         * testsuite/libgomp.oacc-fortran/asyncwait-1.f90: Likewise.
2878         * testsuite/libgomp.oacc-fortran/kernels-reduction-1.f90:
2879         Likewise.
2881 2022-03-12  Thomas Schwinge  <thomas@codesourcery.com>
2883         PR middle-end/104892
2884         * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c: Point
2885         to PR104892.
2886         * testsuite/libgomp.oacc-c-c++-common/default-1.c: Likewise,
2887         enable '--param=openacc-kernels=decompose' and adjust.
2888         * testsuite/libgomp.oacc-c-c++-common/kernels-reduction-1.c:
2889         Likewise.
2890         * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Likewise.
2891         * testsuite/libgomp.oacc-fortran/kernels-reduction-1.f90:
2892         Likewise.
2894 2022-03-12  Thomas Schwinge  <thomas@codesourcery.com>
2896         PR middle-end/90115
2897         * testsuite/libgomp.oacc-c-c++-common/default-1.c: Enhance.
2898         * testsuite/libgomp.oacc-c-c++-common/kernels-reduction-1.c: Likewise.
2899         * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Likewise.
2900         * testsuite/libgomp.oacc-fortran/kernels-reduction-1.f90: Likewise.
2902 2022-03-12  Thomas Schwinge  <thomas@codesourcery.com>
2904         PR middle-end/100280
2905         PR middle-end/104086
2906         * testsuite/libgomp.oacc-c-c++-common/declare-vla-kernels-decompose-ice-1.c:
2907         Merge this...
2908         * testsuite/libgomp.oacc-c-c++-common/declare-vla-kernels-decompose.c:
2909         ..., and this...
2910         * testsuite/libgomp.oacc-c-c++-common/declare-vla.c: ... into
2911         this, and adjust.
2912         * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c:
2913         Extend.
2915 2022-03-10  Hafiz Abid Qadeer  <abidh@codesourcery.com>
2917         * testsuite/libgomp.fortran/allocate-1.f90: Remove pool_size
2918         trait.  Test last index in w and v array.  Remove redundant
2919         assignment to V(1).  Move alignment checks at the end of
2920         parallel region.
2922 2022-03-10  Tom de Vries  <tdevries@suse.de>
2924         * testsuite/libgomp.c/pr104783.c: New test.
2926 2022-03-10  Thomas Schwinge  <thomas@codesourcery.com>
2928         PR middle-end/90115
2929         PR middle-end/102330
2930         PR middle-end/104774
2931         * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c:
2932         Enhance.
2933         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-1.c:
2934         Adjust.
2935         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-2.c:
2936         Likewise.
2937         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-3.c:
2938         Likewise.
2939         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-4.c:
2940         Likewise.
2941         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-5.c:
2942         Likewise.
2943         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-vector-1.c:
2944         Likewise.
2945         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-vector-2.c:
2946         Likewise.
2947         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-2.c:
2948         Likewise.
2949         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-3.c:
2950         Likewise.
2951         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-4.c:
2952         Likewise.
2953         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-5.c:
2954         Likewise.
2955         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-6.c:
2956         Likewise.
2957         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-7.c:
2958         Likewise.
2959         * testsuite/libgomp.oacc-fortran/optional-private.f90: Likewise.
2960         * testsuite/libgomp.oacc-fortran/privatized-ref-1.f95: Likewise.
2961         * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Likewise.
2963 2022-03-10  Thomas Schwinge  <thomas@codesourcery.com>
2965         PR middle-end/90115
2966         * testsuite/libgomp.oacc-fortran/routine-1.f90: Enhance.
2967         * testsuite/libgomp.oacc-fortran/routine-2.f90: Likewise.
2968         * testsuite/libgomp.oacc-fortran/routine-3.f90: Likewise.
2969         * testsuite/libgomp.oacc-fortran/routine-9.f90: Likewise.
2971 2022-03-04  Thomas Schwinge  <thomas@codesourcery.com>
2973         PR testsuite/104791
2974         * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c: Fix
2975         expected diagnostics.
2977 2022-03-04  Thomas Schwinge  <thomas@codesourcery.com>
2979         PR middle-end/104784
2980         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-1.c:
2981         Test with '--param=openacc-kernels=decompose'.
2982         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-2.c:
2983         Likewise.
2984         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-3.c:
2985         Likewise.
2986         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-4.c:
2987         Likewise.
2988         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-5.c:
2989         Likewise.
2990         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-1.c:
2991         Likewise.
2992         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-2.c:
2993         Likewise.
2994         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-3.c:
2995         Likewise.
2996         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-4.c:
2997         Likewise.
2998         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-5.c:
2999         Likewise.
3000         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-6.c:
3001         Likewise.
3002         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-vector-1.c:
3003         Likewise.
3004         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-vector-2.c:
3005         Likewise.
3006         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-1.c:
3007         Likewise.
3008         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-2.c:
3009         Likewise.
3010         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-3.c:
3011         Likewise.
3012         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-4.c:
3013         Likewise.
3014         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-5.c:
3015         Likewise.
3016         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-6.c:
3017         Likewise.
3018         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-7.c:
3019         Likewise.
3020         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-1.f90:
3021         Likewise.
3022         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-2.f90:
3023         Likewise.
3024         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-3.f90:
3025         Likewise.
3026         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-6.f90:
3027         Likewise.
3028         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-vector-1.f90:
3029         Likewise.
3030         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-vector-2.f90:
3031         Likewise.
3032         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-1.f90:
3033         Likewise.
3034         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-2.f90:
3035         Likewise.
3036         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-3.f90:
3037         Likewise.
3038         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-4.f90:
3039         Likewise.
3040         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-5.f90:
3041         Likewise.
3042         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-6.f90:
3043         Likewise.
3044         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-7.f90:
3045         Likewise.
3047 2022-03-04  Thomas Schwinge  <thomas@codesourcery.com>
3049         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-1.c:
3050         Test '-fopt-info-omp-all'.
3051         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-2.c:
3052         Likewise.
3053         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-3.c:
3054         Likewise.
3055         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-4.c:
3056         Likewise.
3057         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-5.c:
3058         Likewise.
3059         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-1.c:
3060         Likewise.
3061         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-2.c:
3062         Likewise.
3063         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-3.c:
3064         Likewise.
3065         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-4.c:
3066         Likewise.
3067         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-5.c:
3068         Likewise.
3069         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-6.c:
3070         Likewise.
3071         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-vector-1.c:
3072         Likewise.
3073         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-vector-2.c:
3074         Likewise.
3075         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-1.c:
3076         Likewise.
3077         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-2.c:
3078         Likewise.
3079         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-3.c:
3080         Likewise.
3081         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-4.c:
3082         Likewise.
3083         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-5.c:
3084         Likewise.
3085         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-6.c:
3086         Likewise.
3087         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-7.c:
3088         Likewise.
3089         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-1.f90:
3090         Likewise.
3091         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-2.f90:
3092         Likewise.
3093         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-3.f90:
3094         Likewise.
3095         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-6.f90:
3096         Likewise.
3097         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-vector-1.f90:
3098         Likewise.
3099         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-vector-2.f90:
3100         Likewise.
3101         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-1.f90:
3102         Likewise.
3103         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-2.f90:
3104         Likewise.
3105         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-3.f90:
3106         Likewise.
3107         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-4.f90:
3108         Likewise.
3109         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-5.f90:
3110         Likewise.
3111         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-6.f90:
3112         Likewise.
3113         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-7.f90:
3114         Likewise.
3116 2022-03-04  Thomas Schwinge  <thomas@codesourcery.com>
3118         PR middle-end/100280
3119         PR middle-end/104132
3120         PR middle-end/104133
3121         * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c:
3122         Extend.
3124 2022-03-04  Thomas Schwinge  <thomas@codesourcery.com>
3126         PR middle-end/100280
3127         * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-1.c: Adjust.
3128         * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c:
3129         Likewise.
3131 2022-03-04  Thomas Schwinge  <thomas@codesourcery.com>
3133         PR middle-end/100280
3134         * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-1.c: Adjust.
3135         * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c:
3136         Likewise.
3138 2022-02-28  Tom de Vries  <tdevries@suse.de>
3140         * testsuite/libgomp.c/declare-variant-3-sm30.c: Add -foffload=-mptx=_.
3141         * testsuite/libgomp.c/declare-variant-3-sm35.c: Same.
3142         * testsuite/libgomp.c/declare-variant-3-sm53.c: Same.
3143         * testsuite/libgomp.c/declare-variant-3-sm70.c: Same.
3144         * testsuite/libgomp.c/declare-variant-3-sm75.c: Same.
3145         * testsuite/libgomp.c/declare-variant-3-sm80.c: Same.
3147 2022-02-24  Tom de Vries  <tdevries@suse.de>
3149         * testsuite/libgomp.c/declare-variant-3-sm30.c: New test.
3150         * testsuite/libgomp.c/declare-variant-3-sm35.c: New test.
3151         * testsuite/libgomp.c/declare-variant-3-sm53.c: New test.
3152         * testsuite/libgomp.c/declare-variant-3-sm70.c: New test.
3153         * testsuite/libgomp.c/declare-variant-3-sm75.c: New test.
3154         * testsuite/libgomp.c/declare-variant-3-sm80.c: New test.
3155         * testsuite/libgomp.c/declare-variant-3.h: New header file.
3157 2022-02-22  Thomas Schwinge  <thomas@codesourcery.com>
3159         * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Fix OpenACC
3160         gang-redundant execution.
3162 2022-02-22  Tom de Vries  <tdevries@suse.de>
3164         PR target/99555
3165         * config/nvptx/bar.c (generation_to_barrier): New function, copied
3166         from config/rtems/bar.c.
3167         (futex_wait, futex_wake): New function.
3168         (do_spin, do_wait): New function, copied from config/linux/wait.h.
3169         (gomp_barrier_wait_end, gomp_barrier_wait_last)
3170         (gomp_team_barrier_wake, gomp_team_barrier_wait_end):
3171         (gomp_team_barrier_wait_cancel_end, gomp_team_barrier_cancel): Remove
3172         and replace with include of config/linux/bar.c.
3173         * config/nvptx/bar.h (gomp_barrier_t): Add fields waiters and lock.
3174         (gomp_barrier_init): Init new fields.
3175         * testsuite/libgomp.c-c++-common/task-detach-6.c: Remove nvptx-specific
3176         workarounds.
3177         * testsuite/libgomp.c/pr99555-1.c: Same.
3178         * testsuite/libgomp.fortran/task-detach-6.f90: Same.
3180 2022-02-22  Tom de Vries  <tdevries@suse.de>
3182         PR testsuite/104146
3183         * testsuite/libgomp.c++/pr96390.C: Add additional-option
3184         -foffload=-Wa,--verify for nvptx.
3185         * testsuite/libgomp.c-c++-common/pr96390.c: Same.
3187 2022-02-15  Tobias Burnus  <tobias@codesourcery.com>
3189         * testsuite/libgomp.fortran/depend-4.f90: New test.
3191 2022-02-10  Tobias Burnus  <tobias@codesourcery.com>
3193         PR c++/102204
3194         * testsuite/libgomp.c++/target-virtual-1.C: New test.
3196 2022-02-10  Marcel Vollweiler  <marcel@codesourcery.com>
3198         * libgomp.texi: Updated entry for HAS_DEVICE_ADDR.
3199         * target.c (copy_firstprivate_data): Copy only if host address is not
3200         NULL.
3201         * testsuite/libgomp.c++/target-has-device-addr-2.C: New test.
3202         * testsuite/libgomp.c++/target-has-device-addr-4.C: New test.
3203         * testsuite/libgomp.c++/target-has-device-addr-5.C: New test.
3204         * testsuite/libgomp.c++/target-has-device-addr-6.C: New test.
3205         * testsuite/libgomp.c-c++-common/target-has-device-addr-1.c: New test.
3206         * testsuite/libgomp.c/target-has-device-addr-3.c: New test.
3207         * testsuite/libgomp.fortran/target-has-device-addr-1.f90: New test.
3208         * testsuite/libgomp.fortran/target-has-device-addr-2.f90: New test.
3209         * testsuite/libgomp.fortran/target-has-device-addr-3.f90: New test.
3210         * testsuite/libgomp.fortran/target-has-device-addr-4.f90: New test.
3212 2022-02-08  Jakub Jelinek  <jakub@redhat.com>
3214         PR libgomp/104385
3215         * task.c (gomp_task_run_post_handle_dependers): If parent is NULL,
3216         clear task->parent.
3217         * testsuite/libgomp.c/pr104385.c: New test.
3219 2022-02-04  Tobias Burnus  <tobias@codesourcery.com>
3221         * testsuite/libgomp.fortran/allocate-1.f90: Remove spurious
3222         STOP of previous commit.
3224 2022-02-04  Tobias Burnus  <tobias@codesourcery.com>
3226         * testsuite/libgomp.fortran/allocate-1.c (is_64bit_aligned): Renamed
3227         from is_64bit_aligned_.
3228         * testsuite/libgomp.fortran/allocate-1.f90: Fix interface decl
3229         and use it, more implicit none, remove unused argument.
3231 2022-02-03  David Seifert  <soap@gentoo.org>
3232             Jakub Jelinek  <jakub@redhat.com>
3234         * configure.ac: Support --disable-werror.
3235         * configure: Regenerate.
3237 2022-02-01  Tom de Vries  <tdevries@suse.de>
3239         * testsuite/libgomp.oacc-c-c++-common/private-atomic-1.c: Remove
3240         PR83812 workaround.
3241         * testsuite/libgomp.oacc-fortran/private-atomic-1-vector.f90: Same.
3242         * testsuite/libgomp.oacc-fortran/private-atomic-1-worker.f90: Same.
3244 2022-02-01  Tom de Vries  <tdevries@suse.de>
3246         * testsuite/libgomp.oacc-c-c++-common/broadcast-many.c: Reduce
3247         num_workers for nvidia accelerator to fix libgomp error 'insufficient
3248         resources'.
3249         * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-4.c:
3250         Same.
3251         * testsuite/libgomp.oacc-c-c++-common/reduction-7.c: Same.
3253 2022-02-01  Tom de Vries  <tdevries@suse.de>
3255         * testsuite/libgomp.fortran/examples-4/declare_target-1.f90: Reduce
3256         recursion depth.
3257         * testsuite/libgomp.fortran/examples-4/declare_target-2.f90: Same.
3259 2022-01-31  Martin Liska  <mliska@suse.cz>
3261         * acinclude.m4: Detect *_ld_is_mold and use it.
3262         * configure: Regenerate.
3264 2022-01-27  Tobias Burnus  <tobias@codesourcery.com>
3266         * libgomp.texi (OpenMP 5.0): Update implementation status.
3268 2022-01-21  Thomas Schwinge  <thomas@codesourcery.com>
3270         * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c: Strengthen.
3271         * testsuite/libgomp.oacc-c-c++-common/loop-gwv-2.c: Likewise.
3272         * testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c: Likewise.
3273         * testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c: Likewise.
3274         * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c: Likewise.
3275         * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c: Likewise.
3276         * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c: Likewise.
3277         * testsuite/libgomp.oacc-c-c++-common/loop-red-wv-1.c: Likewise.
3278         * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c: Likewise.
3279         * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c: Likewise.
3280         * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c: Likewise.
3281         * testsuite/libgomp.oacc-c-c++-common/routine-gwv-1.c: Likewise.
3282         * testsuite/libgomp.oacc-c-c++-common/routine-v-1.c: Likewise.
3283         * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c: Likewise.
3284         * testsuite/libgomp.oacc-c-c++-common/routine-wv-1.c: Likewise.
3286 2022-01-19  Marcel Vollweiler  <marcel@codesourcery.com>
3288         * config/gcn/icv-device.c: Make GOMP_DEVICE_NUM_VAR public (remove
3289         "static") to make the device num available in the offload image.
3291 2022-01-19  Martin Liska  <mliska@suse.cz>
3292             Thomas Schwinge  <thomas@codesourcery.com>
3294         * testsuite/libgomp.oacc-c++/privatized-ref-2.C: Update scanning
3295         patterns.
3296         * testsuite/libgomp.oacc-c++/privatized-ref-3.C: Likewise.
3297         * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c:
3298         Likewise.
3299         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-2.c: Likewise.
3300         * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Likewise.
3301         * testsuite/libgomp.oacc-c-c++-common/pr85486.c: Likewise.
3302         * testsuite/libgomp.oacc-c-c++-common/pr95270-1.c: Likewise.
3303         * testsuite/libgomp.oacc-c-c++-common/routine-nohost-2.c:
3304         Likewise.
3305         * testsuite/libgomp.oacc-c-c++-common/struct-copyout-1.c:
3306         Likewise.
3307         * testsuite/libgomp.oacc-c-c++-common/struct-copyout-2.c:
3308         Likewise.
3309         * testsuite/libgomp.oacc-c-c++-common/vector-length-64-1.c:
3310         Likewise.
3311         * testsuite/libgomp.oacc-fortran/attach-descriptor-1.f90:
3312         Likewise.
3313         * testsuite/libgomp.oacc-fortran/derivedtypes-arrays-1.f90:
3314         Likewise.
3315         * testsuite/libgomp.oacc-fortran/kernels-loop-2.f95: Likewise.
3316         * testsuite/libgomp.oacc-fortran/parallel-dims.f90: Likewise.
3317         * testsuite/libgomp.oacc-fortran/privatized-ref-1.f95: Likewise.
3319 2022-01-18  Martin Liska  <mliska@suse.cz>
3321         * testsuite/libgomp.oacc-c++/privatized-ref-2.C: Update keyword
3322         in dg-warning.
3323         * testsuite/libgomp.oacc-c++/privatized-ref-3.C: Likewise.
3324         * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c: Likewise.
3325         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-2.c: Likewise.
3326         * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Likewise.
3327         * testsuite/libgomp.oacc-c-c++-common/pr85486.c: Likewise.
3328         * testsuite/libgomp.oacc-c-c++-common/pr95270-1.c: Likewise.
3329         * testsuite/libgomp.oacc-c-c++-common/routine-nohost-2.c: Likewise.
3330         * testsuite/libgomp.oacc-c-c++-common/struct-copyout-1.c: Likewise.
3331         * testsuite/libgomp.oacc-c-c++-common/struct-copyout-2.c: Likewise.
3332         * testsuite/libgomp.oacc-c-c++-common/vector-length-64-1.c: Likewise.
3333         * testsuite/libgomp.oacc-fortran/attach-descriptor-1.f90: Likewise.
3334         * testsuite/libgomp.oacc-fortran/derivedtypes-arrays-1.f90: Likewise.
3335         * testsuite/libgomp.oacc-fortran/kernels-loop-2.f95: Likewise.
3336         * testsuite/libgomp.oacc-fortran/parallel-dims.f90: Likewise.
3337         * testsuite/libgomp.oacc-fortran/privatized-ref-1.f95: Likewise.
3339 2022-01-17  Thomas Schwinge  <thomas@codesourcery.com>
3341         * testsuite/libgomp.oacc-c++/privatized-ref-2.C: Extend.
3342         * testsuite/libgomp.oacc-c++/privatized-ref-3.C: Likewise.
3343         * testsuite/libgomp.oacc-fortran/privatized-ref-1.f95: Likewise.
3345 2022-01-17  Julian Brown  <julian@codesourcery.com>
3346             Thomas Schwinge  <thomas@codesourcery.com>
3348         * testsuite/libgomp.oacc-fortran/privatized-ref-1.f95: New test.
3349         * testsuite/libgomp.oacc-c++/privatized-ref-2.C: New test.
3350         * testsuite/libgomp.oacc-c++/privatized-ref-3.C: New test.
3352 2022-01-16  Kwok Cheung Yeung  <kcy@codesourcery.com>
3353             Andrew Stubbs   <ams@codesourcery.com>
3355         * plugin/plugin-gcn.c (parse_target_attributes): Automatically set
3356         the number of teams and threads if necessary.
3357         (gcn_exec): Automatically set the number of gangs and workers if
3358         necessary.
3360 2022-01-13  Hafiz Abid Qadeer  <abidh@codesourcery.com>
3362         * testsuite/libgomp.fortran/allocate-1.c: New test.
3363         * testsuite/libgomp.fortran/allocate-1.f90: New test.
3364         * libgomp.texi: Remove string that says that allocate clause
3365         support is for C/C++ only.
3367 2022-01-13  Thomas Schwinge  <thomas@codesourcery.com>
3369         * testsuite/libgomp.c-c++-common/on_device_arch.h
3370         (any_device_arch, any_device_arch_intel_mic): New.
3371         * testsuite/lib/libgomp.exp
3372         (check_effective_target_offload_device_any_intel_mic): New.
3373         * testsuite/libgomp.c-c++-common/target-45.c: Use it.
3374         * testsuite/libgomp.fortran/target10.f90: Likewise.
3376 2022-01-13  Thomas Schwinge  <thomas@codesourcery.com>
3378         PR tree-optimization/102192
3379         * testsuite/libgomp.oacc-fortran/routine-10.f90: Document current
3380         '-Wuninitialized' diagnostics.
3382 2022-01-13  Thomas Schwinge  <thomas@codesourcery.com>
3384         * testsuite/libgomp.oacc-c-c++-common/vred2d-128.c: Document
3385         current '-Wuninitialized' diagnostics.
3386         * testsuite/libgomp.oacc-fortran/data-5.f90: Likewise.
3387         * testsuite/libgomp.oacc-fortran/gemm-2.f90: Likewise.
3388         * testsuite/libgomp.oacc-fortran/gemm.f90: Likewise.
3389         * testsuite/libgomp.oacc-fortran/optional-reduction.f90: Likewise.
3390         * testsuite/libgomp.oacc-fortran/parallel-reduction.f90: Likewise.
3391         * testsuite/libgomp.oacc-fortran/pr70643.f90: Likewise.
3392         * testsuite/libgomp.oacc-fortran/pr96628-part1.f90: Likewise.
3393         * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Likewise.
3394         * testsuite/libgomp.oacc-fortran/reduction-5.f90: Likewise.
3395         * testsuite/libgomp.oacc-fortran/reduction-7.f90: Likewise.
3396         * testsuite/libgomp.oacc-fortran/reference-reductions.f90:
3397         Likewise.
3399 2022-01-13  Thomas Schwinge  <thomas@codesourcery.com>
3401         * testsuite/libgomp.c/address-space-1.c: Remove 'dg-xfail-run-if'
3402         for 'offload_device_intel_mic'.
3404 2022-01-13  Julian Brown  <julian@codesourcery.com>
3405             Thomas Schwinge  <thomas@codesourcery.com>
3407         * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-1.c: Remove GCN
3408         offloading execution XFAIL.
3410 2022-01-13  Thomas Schwinge  <thomas@codesourcery.com>
3412         PR middle-end/100280
3413         * testsuite/libgomp.oacc-c-c++-common/declare-vla-kernels-decompose-ice-1.c:
3414         Update.
3415         * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-1.c: Likewise.
3416         * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c:
3417         Likewise.
3419 2022-01-13  Thomas Schwinge  <thomas@codesourcery.com>
3421         * testsuite/libgomp.oacc-c-c++-common/declare-vla-kernels-decompose-ice-1.c:
3422         Enhance.
3423         * testsuite/libgomp.oacc-c-c++-common/declare-vla-kernels-decompose.c:
3424         Likewise.
3425         * testsuite/libgomp.oacc-c-c++-common/declare-vla.c: Likewise.
3426         * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-1.c: Likewise.
3427         * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-2.c: Likewise.
3428         * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-3.c: Likewise.
3429         * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c:
3430         Likewise.
3431         * testsuite/libgomp.oacc-fortran/asyncwait-1.f90: Likewise.
3432         * testsuite/libgomp.oacc-fortran/asyncwait-2.f90: Likewise.
3433         * testsuite/libgomp.oacc-fortran/asyncwait-3.f90: Likewise.
3434         * testsuite/libgomp.oacc-fortran/pr94358-1.f90: Likewise.
3436 2022-01-04  Tobias Burnus  <tobias@codesourcery.com>
3438         * testsuite/libgomp.c-c++-common/target-45.c: Iterate over all devices.
3439         * testsuite/libgomp.fortran/target10.f90: Likewise.
3441 2022-01-04  Chung-Lin Tang  <cltang@codesourcery.com>
3443         * plugin/plugin-gcn.c (GOMP_OFFLOAD_load_image): Change uses of STRINGX
3444         into XSTRING when looking for GOMP_DEVICE_NUM_VAR in offload image.
3445         * plugin/plugin-nvptx.c (GOMP_OFFLOAD_load_image): Likewise.
3447 2022-01-03  Jakub Jelinek  <jakub@redhat.com>
3449         * libgomp.texi: Bump @copying's copyright year.
3451 2021-12-13  Tobias Burnus  <tobias@codesourcery.com>
3453         * libgomp.texi (OpenMP 5.1): Set Fortran support for atomic to 'Y'.
3454         * testsuite/libgomp.fortran/atomic-19.f90: New test.
3456 2021-12-10  Andrew Stubbs  <ams@codesourcery.com>
3458         * plugin/plugin-gcn.c (struct gcn_image_desc): Remove global_variables.
3459         (GOMP_OFFLOAD_load_image): Locate the offload variables via the
3460         table, not individual symbols.
3462 2021-12-09  Chung-Lin Tang  <cltang@codesourcery.com>
3464         * testsuite/libgomp.c++/target-lambda-1.C: Only run under
3465         "target offload_device_nonshared_as"
3466         * testsuite/libgomp.c++/target-this-3.C: Likewise.
3467         * testsuite/libgomp.c++/target-this-4.C: Likewise.
3469 2021-12-08  Chung-Lin Tang  <cltang@codesourcery.com>
3471         * target.c (gomp_map_vars_existing): Make sure attached pointer is
3472         not overwritten during cross-host/device copying.
3473         (gomp_update): Likewise.
3474         (gomp_exit_data): Likewise.
3475         * testsuite/libgomp.c++/target-11.C: Adjust testcase.
3476         * testsuite/libgomp.c++/target-12.C: Likewise.
3477         * testsuite/libgomp.c++/target-15.C: Likewise.
3478         * testsuite/libgomp.c++/target-16.C: Likewise.
3479         * testsuite/libgomp.c++/target-17.C: Likewise.
3480         * testsuite/libgomp.c++/target-21.C: Likewise.
3481         * testsuite/libgomp.c++/target-23.C: Likewise.
3482         * testsuite/libgomp.c/target-23.c: Likewise.
3483         * testsuite/libgomp.c/target-29.c: Likewise.
3484         * testsuite/libgomp.c-c++-common/target-implicit-map-2.c: New testcase.
3486 2021-12-08  Chung-Lin Tang  <cltang@codesourcery.com>
3488         PR middle-end/92120
3489         * libgomp.h (gomp_attach_pointer): Add bool parameter.
3490         * oacc-mem.c (acc_attach_async): Update call to gomp_attach_pointer.
3491         (goacc_enter_data_internal): Likewise.
3492         * target.c (gomp_map_vars_existing): Update assert condition to
3493         include GOMP_MAP_ATTACH_ZERO_LENGTH_ARRAY_SECTION.
3494         (gomp_map_pointer): Add 'bool allow_zero_length_array_sections'
3495         parameter, add support for mapping a pointer with NULL target.
3496         (gomp_attach_pointer): Add 'bool allow_zero_length_array_sections'
3497         parameter, add support for attaching a pointer with NULL target.
3498         (gomp_map_vars_internal): Update calls to gomp_map_pointer and
3499         gomp_attach_pointer, add handling for
3500         GOMP_MAP_ATTACH_ZERO_LENGTH_ARRAY_SECTION, and
3501         GOMP_MAP_POINTER_TO_ZERO_LENGTH_ARRAY_SECTION cases.
3502         * testsuite/libgomp.c++/target-23.C: New testcase.
3503         * testsuite/libgomp.c++/target-lambda-1.C: New testcase.
3504         * testsuite/libgomp.c++/target-lambda-2.C: New testcase.
3505         * testsuite/libgomp.c++/target-this-1.C: New testcase.
3506         * testsuite/libgomp.c++/target-this-2.C: New testcase.
3507         * testsuite/libgomp.c++/target-this-3.C: New testcase.
3508         * testsuite/libgomp.c++/target-this-4.C: New testcase.
3509         * testsuite/libgomp.c++/target-this-5.C: New testcase.
3511 2021-12-04  Tobias Burnus  <tobias@codesourcery.com>
3513         * libgomp.texi (OpenMP 5.1): Update status.
3515 2021-12-04  Tobias Burnus  <tobias@codesourcery.com>
3517         * libgomp.texi (OMP_PLACES): Extend description for OMP 5.1 changes.
3519 2021-12-02  Chung-Lin Tang  <cltang@codesourcery.com>
3521         PR fortran/90030
3522         * testsuite/libgomp.oacc-fortran/pr90030.f90: New test.
3523         * testsuite/libgomp.fortran/pr90030.f90: New test.
3525 2021-11-30  Kwok Cheung Yeung  <kcy@codesourcery.com>
3526             Thomas Schwinge  <thomas@codesourcery.com>
3528         * testsuite/libgomp.oacc-fortran/parallel-dims.f90: Remove
3529         temporary skip.
3531 2021-11-30  Cesar Philippidis  <cesar@codesourcery.com>
3532             Thomas Schwinge  <thomas@codesourcery.com>
3534         * testsuite/libgomp.oacc-fortran/parallel-dims.f90: Temporarily
3535         skip.
3537 2021-11-29  Richard Biener  <rguenther@suse.de>
3539         * oacc-plugin.c (GOMP_PLUGIN_acc_default_dim): Remove unreachable
3540         return.
3542 2021-11-24  Jakub Jelinek  <jakub@redhat.com>
3544         PR middle-end/103384
3545         * testsuite/libgomp.c/declare-variant-2.c: New test.
3547 2021-11-18  David Edelsohn  <dje.gcc@gmail.com>
3549         * alloc.c (gomp_aligned_alloc): Fix typo.
3551 2021-11-18  Jakub Jelinek  <jakub@redhat.com>
3553         PR libgomp/102838
3554         * libgomp.h (GOMP_USE_ALIGNED_WORK_SHARES): Define if
3555         GOMP_HAVE_EFFICIENT_ALIGNED_ALLOC is defined and __AMDGCN__ is not.
3556         (struct gomp_work_share): Use GOMP_USE_ALIGNED_WORK_SHARES instead of
3557         GOMP_HAVE_EFFICIENT_ALIGNED_ALLOC.
3558         * work.c (alloc_work_share, gomp_work_share_start): Likewise.
3559         * team.c (gomp_new_team): If GOMP_USE_ALIGNED_WORK_SHARES, use
3560         gomp_aligned_alloc instead of team_malloc.
3562 2021-11-18  Jakub Jelinek  <jakub@redhat.com>
3564         PR libgomp/102838
3565         * alloc.c (gomp_aligned_alloc): Prefer _aligned_alloc over
3566         memalign over posix_memalign over aligned_alloc over fallback
3567         with malloc instead of aligned_alloc over _aligned_alloc over
3568         posix_memalign over memalign over fallback with malloc.  For
3569         aligned_alloc, round up size up to multiple of al.
3571 2021-11-16  Jakub Jelinek  <jakub@redhat.com>
3573         * libgomp.texi (OpenMP 5.1): Mark thread_limit clause to target
3574         construct as implemented.
3576 2021-11-15  Tobias Burnus  <tobias@codesourcery.com>
3578         * testsuite/libgomp.fortran/thread-limit-1.f90: New test.
3580 2021-11-15  Jakub Jelinek  <jakub@redhat.com>
3582         * task.c (gomp_create_target_task): Copy args array as well.
3583         * target.c (gomp_target_fallback): Add args argument.
3584         Set gomp_icv (true)->thread_limit_var if thread_limit is present.
3585         (GOMP_target): Adjust gomp_target_fallback caller.
3586         (GOMP_target_ext): Likewise.
3587         (gomp_target_task_fn): Likewise.
3588         * config/nvptx/team.c (gomp_nvptx_main): Set
3589         gomp_global_icv.thread_limit_var.
3590         * testsuite/libgomp.c-c++-common/thread-limit-1.c: New test.
3592 2021-11-15  Jakub Jelinek  <jakub@redhat.com>
3594         * config/nvptx/team.c (__gomp_team_num): Define as
3595         __attribute__((shared)) var.
3596         (gomp_nvptx_main): Initialize __gomp_team_num to 0.
3597         * config/nvptx/target.c (__gomp_team_num): Declare as
3598         extern __attribute__((shared)) var.
3599         (GOMP_teams4): Use __gomp_team_num as the team number instead of
3600         %ctaid.x.  If first, initialize it to %ctaid.x.  If num_teams_lower
3601         is bigger than num_blocks, use num_teams_lower teams and arrange for
3602         bumping of __gomp_team_num if !first and returning false once we run
3603         out of teams.
3604         * config/nvptx/teams.c (__gomp_team_num): Declare as
3605         extern __attribute__((shared)) var.
3606         (omp_get_team_num): Return __gomp_team_num value instead of %ctaid.x.
3608 2021-11-15  Jakub Jelinek  <jakub@redhat.com>
3610         * testsuite/libgomp.c/teams-5.c: New test.
3612 2021-11-12  Jakub Jelinek  <jakub@redhat.com>
3614         PR target/103201
3615         * config/gcn/icv-device.c (omp_get_num_teams, omp_get_team_num): Move
3616         to ...
3617         * config/gcn/teams.c: ... here.  New file.
3619 2021-11-12  Chung-Lin Tang  <cltang@codesourcery.com>
3621         * target.c (gomp_map_vars_existing): Add 'bool implicit' parameter, add
3622         implicit map handling to allow a "superset" existing map as valid case.
3623         (get_kind): Adjust to filter out GOMP_MAP_IMPLICIT bits in return value.
3624         (get_implicit): New function to extract implicit status.
3625         (gomp_map_fields_existing): Adjust arguments in calls to
3626         gomp_map_vars_existing, and add uses of get_implicit.
3627         (gomp_map_vars_internal): Likewise.
3628         * testsuite/libgomp.c-c++-common/target-implicit-map-1.c: New test.
3630 2021-11-12  Jakub Jelinek  <jakub@redhat.com>
3632         * libgomp_g.h (GOMP_teams4): Declare.
3633         * libgomp.map (GOMP_5.1): Export GOMP_teams4.
3634         * target.c (GOMP_teams4): New function.
3635         * config/nvptx/target.c (GOMP_teams): Remove.
3636         (GOMP_teams4): New function.
3637         * config/gcn/target.c (GOMP_teams): Remove.
3638         (GOMP_teams4): New function.
3639         * testsuite/libgomp.c/teams-4.c (main): Expect exactly 2
3640         teams instead of <= 2.
3641         * testsuite/libgomp.c-c++-common/teams-2.c: New test.
3643 2021-11-11  Tobias Burnus  <tobias@codesourcery.com>
3645         * testsuite/libgomp.fortran/teams-1.f90: New test.
3647 2021-11-11  Jakub Jelinek  <jakub@redhat.com>
3649         * libgomp.h (struct gomp_thread): Add num_teams and team_num members.
3650         * team.c (struct gomp_thread_start_data): Likewise.
3651         (gomp_thread_start): Initialize thr->num_teams and thr->team_num.
3652         (gomp_team_start): Initialize start_data->num_teams and
3653         start_data->team_num.  Update nthr->num_teams and nthr->team_num.
3654         * teams.c (gomp_num_teams, gomp_team_num): Remove.
3655         (GOMP_teams_reg): Set and restore thr->num_teams and thr->team_num
3656         instead of gomp_num_teams and gomp_team_num.
3657         (omp_get_num_teams): Use thr->num_teams + 1 instead of gomp_num_teams.
3658         (omp_get_team_num): Use thr->team_num instead of gomp_team_num.
3659         * testsuite/libgomp.c/teams-4.c: New test.
3661 2021-11-11  Jakub Jelinek  <jakub@redhat.com>
3663         * testsuite/libgomp.c-c++-common/teams-1.c: New test.
3665 2021-11-09  Thomas Schwinge  <thomas@codesourcery.com>
3667         * env.c (parse_gomp_openacc_dim): Restore parsing.
3669 2021-10-30  Tobias Burnus  <tobias@codesourcery.com>
3671         PR middle-end/102972
3672         * testsuite/libgomp.c-c++-common/icv-3.c: Nest API calls inside
3673         parallel construct.
3674         * testsuite/libgomp.c-c++-common/icv-4.c: Likewise.
3675         * testsuite/libgomp.c/target-3.c: Likewise.
3676         * testsuite/libgomp.c/target-5.c: Likewise.
3677         * testsuite/libgomp.c/target-6.c: Likewise.
3678         * testsuite/libgomp.c/target-teams-1.c: Likewise.
3679         * testsuite/libgomp.c/teams-1.c: Likewise.
3680         * testsuite/libgomp.c/thread-limit-2.c: Likewise.
3681         * testsuite/libgomp.c/thread-limit-3.c: Likewise.
3682         * testsuite/libgomp.c/thread-limit-4.c: Likewise.
3683         * testsuite/libgomp.c/thread-limit-5.c: Likewise.
3684         * testsuite/libgomp.fortran/icv-3.f90: Likewise.
3685         * testsuite/libgomp.fortran/icv-4.f90: Likewise.
3686         * testsuite/libgomp.fortran/teams1.f90: Likewise.
3688 2021-10-29  Aldy Hernandez  <aldyh@redhat.com>
3690         * testsuite/libgomp.graphite/force-parallel-4.c: Adjust for threading changes.
3691         * testsuite/libgomp.graphite/force-parallel-8.c: Same.
3693 2021-10-27  Jakub Jelinek  <jakub@redhat.com>
3695         * libgomp.texi (OpenMP 5.0): Mention that Non-rectangular loop nests
3696         aren't implemented for Fortran yet.
3698 2021-10-27  Jakub Jelinek  <jakub@redhat.com>
3700         * testsuite/libgomp.c/loop-26.c: New test.
3701         * testsuite/libgomp.c/loop-27.c: New test.
3703 2021-10-25  Tobias Burnus  <tobias@codesourcery.com>
3705         PR testsuite/102910
3706         * testsuite/libgomp.oacc-c-c++-common/loop-gwv-2.c: Use __builtin_alloca
3707         instead of #include <alloca.h> + alloca.
3709 2021-10-21  Chung-Lin Tang  <cltang@codesourcery.com>
3711         * libgomp.texi (Support of strictly structured blocks in Fortran):
3712         Adjust to 'Y'.
3713         * testsuite/libgomp.fortran/task-reduction-16.f90: Adjust testcase.
3715 2021-10-20  Chung-Lin Tang  <cltang@codesourcery.com>
3717         * testsuite/libgomp.fortran/target-in-reduction-1.f90: New test.
3718         * testsuite/libgomp.fortran/target-in-reduction-2.f90: New test.
3720 2021-10-20  Jakub Jelinek  <jakub@redhat.com>
3722         PR libgomp/102838
3723         * libgomp.h (struct gomp_work_share_1st_cacheline): New type.
3724         (struct gomp_work_share): Only use aligned(64) attribute if
3725         GOMP_HAVE_EFFICIENT_ALIGNED_ALLOC is defined, otherwise just
3726         add padding before lock to ensure lock is at offset 64 bytes
3727         into the structure.
3728         (gomp_workshare_struct_check1, gomp_workshare_struct_check2):
3729         New poor man's static assertions.
3730         * work.c (gomp_work_share_start): Use gomp_aligned_alloc instead of
3731         gomp_malloc if GOMP_HAVE_EFFICIENT_ALIGNED_ALLOC.
3733 2021-10-20  Aldy Hernandez  <aldyh@redhat.com>
3734             Richard Biener  <rguenther@suse.de>
3736         * testsuite/libgomp.graphite/force-parallel-5.c: Remove xfail.
3738 2021-10-18  Jakub Jelinek  <jakub@redhat.com>
3740         * config/linux/affinity.c (gomp_affinity_init_numa_domains): Add
3741         && gomp_places_list_len < count after nfirst <= nlast loop condition.
3743 2021-10-18  Tobias Burnus  <tobias@codesourcery.com>
3745         PR fortran/102086
3746         PR fortran/92189
3747         PR fortran/92621
3748         PR fortran/101308
3749         PR fortran/101309
3750         PR fortran/101635
3751         PR fortran/92482
3752         * testsuite/libgomp.fortran/optional-bind-c.f90: New test.
3754 2021-10-15  Jakub Jelinek  <jakub@redhat.com>
3756         * testsuite/libgomp.c/affinity-1.c (struct places): Change name field
3757         type from char [50] to const char *.
3758         (places_array): Add a testcase for simplified syntax place followed
3759         by length or length and stride.
3761 2021-10-15  Jakub Jelinek  <jakub@redhat.com>
3763         * env.c (parse_one_place): Handle non-negative-number the same
3764         as { non-negative-number }.  Reject even !number:1 and
3765         !number:1:stride or !place:1 or !place:1:stride instead of just
3766         length other than 1.
3767         * libgomp.texi (OpenMP 5.1): Document OMP_PLACES syntax extensions
3768         and OMP_NUM_TEAMS/OMP_TEAMS_THREAD_LIMIT and
3769         omp_{set_num,get_max}_teams/omp_{s,g}et_teams_thread_limit features
3770         as implemented.
3771         * testsuite/libgomp.c/affinity-1.c: Add a test for the 5.1 place
3772         simplified syntax.
3774 2021-10-15  Jakub Jelinek  <jakub@redhat.com>
3776         * env.c (parse_schedule): For strtoul or strtoull calls which don't
3777         clearly reject return value 0 as invalid handle the case where end
3778         pointer is the same as first argument as invalid.
3779         (parse_unsigned_long_1): Likewise.
3780         (parse_one_place): Likewise.
3781         (parse_places_var): Likewise.
3782         (parse_stacksize): Likewise.
3783         (parse_spincount): Likewise.
3784         (parse_affinity): Likewise.
3785         (parse_gomp_openacc_dim): Likewise.  Avoid strict aliasing violation.
3786         Make code valid C89.
3787         * config/linux/affinity.c (gomp_affinity_find_last_cache_level):
3788         For strtoul calls which don't clearly reject return value 0 as
3789         invalid handle the case where end pointer is the same as first
3790         argument as invalid.
3791         (gomp_affinity_init_level_1): Likewise.
3792         (gomp_affinity_init_numa_domains): Likewise.
3793         * config/rtems/proc.c (parse_thread_pools): Likewise.
3795 2021-10-15  Jakub Jelinek  <jakub@redhat.com>
3797         * config/linux/affinity.c (gomp_affinity_init_level_1): For level 1
3798         after creating count places clean up and return immediately.
3799         * testsuite/libgomp.c/places-6.c: New test.
3800         * testsuite/libgomp.c/places-7.c: New test.
3801         * testsuite/libgomp.c/places-8.c: New test.
3802         * testsuite/libgomp.c/places-9.c: New test.
3803         * testsuite/libgomp.c/places-10.c: New test.
3805 2021-10-15  Jakub Jelinek  <jakub@redhat.com>
3807         * env.c (parse_places_var): Handle numa_domains as level 5.
3808         * config/linux/affinity.c (gomp_affinity_init_numa_domains): New
3809         function.
3810         (gomp_affinity_init_level): Use it instead of
3811         gomp_affinity_init_level_1 for level == 5.
3812         * testsuite/libgomp.c/places-5.c: New test.
3814 2021-10-15  Jakub Jelinek  <jakub@redhat.com>
3816         * env.c (parse_places_var): Handle ll_caches as level 4.
3817         * config/linux/affinity.c (gomp_affinity_find_last_cache_level): New
3818         function.
3819         (gomp_affinity_init_level_1): Handle level 4 as logical cpus sharing
3820         last level cache.
3821         (gomp_affinity_init_level): Likewise.
3822         * testsuite/libgomp.c/places-1.c: New test.
3823         * testsuite/libgomp.c/places-2.c: New test.
3824         * testsuite/libgomp.c/places-3.c: New test.
3825         * testsuite/libgomp.c/places-4.c: New test.
3827 2021-10-14  Kwok Cheung Yeung  <kcy@codesourcery.com>
3829         * libgomp.texi (OpenMP 5.0): Update entry for declare variant
3830         directive.
3832 2021-10-14  Kwok Cheung Yeung  <kcy@codesourcery.com>
3834         * testsuite/libgomp.fortran/declare-variant-1.f90: New test.
3836 2021-10-12  Julian Brown  <julian@codesourcery.com>
3838         * target.c (gomp_copy_host2dev): Release device lock on cbuf
3839         error path.
3841 2021-10-12  Tobias Burnus  <tobias@codesourcery.com>
3843         * testsuite/libgomp.fortran/icv-3.f90: New.
3844         * testsuite/libgomp.fortran/icv-4.f90: New.
3846 2021-10-12  Jakub Jelinek  <jakub@redhat.com>
3848         * libgomp.texi (omp_get_max_teams, omp_get_teams_thread_limit,
3849         omp_set_num_teams, omp_set_teams_thread_limit, OMP_NUM_TEAMS,
3850         OMP_TEAMS_THREAD_LIMIT): Document.
3852 2021-10-12  Jakub Jelinek  <jakub@redhat.com>
3854         * libgomp.texi (omp_get_device_num): Move @node before omp_get_dynamic
3855         to avoid makeinfo warnings.
3857 2021-10-12  Jakub Jelinek  <jakub@redhat.com>
3859         * testsuite/libgomp.c-c++-common/icv-3.c: New test.
3860         * testsuite/libgomp.c-c++-common/icv-4.c: New test.
3862 2021-10-12  Jakub Jelinek  <jakub@redhat.com>
3864         PR libgomp/102628
3865         PR libgomp/102668
3866         * testsuite/libgomp.c-c++-common/alloc-9.c (main): Decrease
3867         allocation sizes from 420 to 320 and from 768 to 568.
3868         * testsuite/libgomp.fortran/alloc-11.f90: Likewise.
3869         * testsuite/libgomp.fortran/alloc-1.F90: Change expected alignment
3870         for cr from 16 to 4.
3872 2021-10-12  Jakub Jelinek  <jakub@redhat.com>
3874         * testsuite/libgomp.c/scan-11.c: Remove option -fvect-cost-model=cheap.
3875         * testsuite/libgomp.c/scan-12.c: Likewise.
3876         * testsuite/libgomp.c/scan-13.c: Likewise.
3877         * testsuite/libgomp.c/scan-14.c: Likewise.
3878         * testsuite/libgomp.c/scan-15.c: Likewise.
3879         * testsuite/libgomp.c/scan-16.c: Likewise.
3880         * testsuite/libgomp.c/scan-17.c: Likewise.
3881         * testsuite/libgomp.c/scan-18.c: Likewise.
3882         * testsuite/libgomp.c/scan-19.c: Likewise.
3883         * testsuite/libgomp.c/scan-20.c: Likewise.
3884         * testsuite/libgomp.c/scan-21.c: Likewise.
3885         * testsuite/libgomp.c/scan-22.c: Likewise.
3886         * testsuite/libgomp.c++/scan-9.C: Likewise.
3887         * testsuite/libgomp.c++/scan-10.C: Likewise.
3888         * testsuite/libgomp.c++/scan-11.C: Likewise.
3889         * testsuite/libgomp.c++/scan-12.C: Likewise.
3890         * testsuite/libgomp.c++/scan-13.C: Likewise.
3891         * testsuite/libgomp.c++/scan-14.C: Likewise.
3892         * testsuite/libgomp.c++/scan-15.C: Likewise.
3893         * testsuite/libgomp.c++/scan-16.C: Likewise.
3895 2021-10-12  Kewen Lin  <linkw@linux.ibm.com>
3897         * testsuite/libgomp.graphite/force-parallel-8.c: Add --param max-stores-to-sink=0.
3899 2021-10-11  Marcel Vollweiler  <marcel@codesourcery.com>
3901         * allocator.c (omp_init_allocator): Replace omp_atv_sequential with
3902         omp_atv_serialized.
3903         * omp.h.in: Add deprecated flag for omp_atv_sequential.
3904         * omp_lib.f90.in: Add deprecated flag for omp_atv_sequential.
3905         * testsuite/libgomp.c-c++-common/alloc-10.c: New test.
3906         * testsuite/libgomp.fortran/alloc-12.f90: New test.
3908 2021-10-11  Jakub Jelinek  <jakub@redhat.com>
3910         * omp.h.in (omp_set_num_teams, omp_get_max_teams,
3911         omp_set_teams_thread_limit, omp_get_teams_thread_limit): Declare.
3912         * omp_lib.f90.in (omp_set_num_teams, omp_get_max_teams,
3913         omp_set_teams_thread_limit, omp_get_teams_thread_limit): Declare.
3914         * omp_lib.h.in (omp_set_num_teams, omp_get_max_teams,
3915         omp_set_teams_thread_limit, omp_get_teams_thread_limit): Declare.
3916         * libgomp.h (gomp_nteams_var, gomp_teams_thread_limit_var): Declare.
3917         * libgomp.map (OMP_5.1): Export omp_get_max_teams{,_},
3918         omp_get_teams_thread_limit{,_}, omp_set_num_teams{,_,_8_} and
3919         omp_set_teams_thread_limit{,_,_8_}.
3920         * icv.c (omp_set_num_teams, omp_get_max_teams,
3921         omp_set_teams_thread_limit, omp_get_teams_thread_limit): New
3922         functions.
3923         * env.c (gomp_nteams_var, gomp_teams_thread_limit_var): Define.
3924         (omp_display_env): Print OMP_NUM_TEAMS and OMP_TEAMS_THREAD_LIMIT.
3925         (initialize_env): Handle OMP_NUM_TEAMS and OMP_TEAMS_THREAD_LIMIT env
3926         vars.
3927         * teams.c (GOMP_teams_reg): If thread_limit is not specified, use
3928         gomp_teams_thread_limit_var as fallback if not zero.  If num_teams
3929         is not specified, use gomp_nteams_var.
3930         * fortran.c (omp_set_num_teams, omp_get_max_teams,
3931         omp_set_teams_thread_limit, omp_get_teams_thread_limit): Add
3932         ialias_redirect.
3933         (omp_set_num_teams_, omp_set_num_teams_8_, omp_get_max_teams_,
3934         omp_set_teams_thread_limit_, omp_set_teams_thread_limit_8_,
3935         omp_get_teams_thread_limit_): New functions.
3937 2021-10-09  liuhongt  <hongtao.liu@intel.com>
3939         * testsuite/libgomp.c++/scan-10.C: Add option -fvect-cost-model=cheap.
3940         * testsuite/libgomp.c++/scan-11.C: Ditto.
3941         * testsuite/libgomp.c++/scan-12.C: Ditto.
3942         * testsuite/libgomp.c++/scan-13.C: Ditto.
3943         * testsuite/libgomp.c++/scan-14.C: Ditto.
3944         * testsuite/libgomp.c++/scan-15.C: Ditto.
3945         * testsuite/libgomp.c++/scan-16.C: Ditto.
3946         * testsuite/libgomp.c++/scan-9.C: Ditto.
3947         * testsuite/libgomp.c-c++-common/lastprivate-conditional-7.c: Ditto.
3948         * testsuite/libgomp.c-c++-common/lastprivate-conditional-8.c: Ditto.
3949         * testsuite/libgomp.c/scan-11.c: Ditto.
3950         * testsuite/libgomp.c/scan-12.c: Ditto.
3951         * testsuite/libgomp.c/scan-13.c: Ditto.
3952         * testsuite/libgomp.c/scan-14.c: Ditto.
3953         * testsuite/libgomp.c/scan-15.c: Ditto.
3954         * testsuite/libgomp.c/scan-16.c: Ditto.
3955         * testsuite/libgomp.c/scan-17.c: Ditto.
3956         * testsuite/libgomp.c/scan-18.c: Ditto.
3957         * testsuite/libgomp.c/scan-19.c: Ditto.
3958         * testsuite/libgomp.c/scan-20.c: Ditto.
3959         * testsuite/libgomp.c/scan-21.c: Ditto.
3960         * testsuite/libgomp.c/scan-22.c: Ditto.
3962 2021-10-09  Jakub Jelinek  <jakub@redhat.com>
3964         * libgomp.texi (OpenMP 5.1): Mention implemented support for
3965         structured block sequences in C/C++.  Mention support for
3966         unconstrained/reproducible modifiers on order clause.
3967         Mention partial (C/C++ only) support of extentensions to atomics
3968         construct.  Mention partial (C/C++ on clause only) support of
3969         align/allocator modifiers on allocate clause.
3971 2021-10-02  Tobias Burnus  <tobias@codesourcery.com>
3973         * testsuite/libgomp.fortran/order-reproducible-1.f90: New test
3974         based on libgomp.c-c++-common/order-reproducible-1.c.
3975         * testsuite/libgomp.fortran/order-reproducible-2.f90: Likewise.
3976         * testsuite/libgomp.fortran/my-usleep.c: New test.
3978 2021-10-01  Tobias Burnus  <tobias@codesourcery.com>
3980         * testsuite/libgomp.fortran/alloc-10.f90: Fix alignment check.
3981         * testsuite/libgomp.fortran/alloc-7.f90: Fix array access.
3982         * testsuite/libgomp.fortran/alloc-8.f90: Likewise.
3983         * testsuite/libgomp.fortran/alloc-11.f90: New test for omp_realloc,
3984         based on libgomp.c-c++-common/alloc-9.c.
3986 2021-10-01  Jakub Jelinek  <jakub@redhat.com>
3988         * testsuite/libgomp.c-c++-common/order-reproducible-1.c: New test.
3989         * testsuite/libgomp.c-c++-common/order-reproducible-2.c: New test.
3991 2021-10-01  Jakub Jelinek  <jakub@redhat.com>
3993         * affinity-fmt.c (omp_get_team_num, omp_get_num_teams): Add
3994         ialias_redirect.
3995         * env.c (handle_omp_display_env): Use ialias_call.
3996         * icv-device.c: Move ialias right below each function.
3997         (omp_get_device_num): Use ialias_call.
3998         * fortran.c (omp_fulfill_event): Add ialias_redirect.
3999         * icv.c (omp_get_active_level): Add ialias_redirect.
4001 2021-10-01  Jakub Jelinek  <jakub@redhat.com>
4003         * omp.h.in (omp_aligned_alloc, omp_aligned_calloc): Add
4004         __alloc_align__ (1) attribute.
4005         * testsuite/libgomp.c-c++-common/alloc-9.c: New test.
4007 2021-09-30  Tobias Burnus  <tobias@codesourcery.com>
4009         * testsuite/libgomp.fortran/alloc-7.f90: Add dg-prune-output
4010         for -fintrinsic-modules-path= warning of the C compiler.
4011         * testsuite/libgomp.fortran/alloc-9.f90: Likewise.
4012         * testsuite/libgomp.fortran/alloc-10.f90: Likewise.
4014 2021-09-30  Tobias Burnus  <tobias@codesourcery.com>
4016         * libgomp.texi (OpenMP 5.1): Set implementation status to Y for
4017         omp_aligned_{,c}alloc and omp_{c,re}alloc routines.
4018         * omp_lib.f90.in (omp_aligned_alloc, omp_aligned_calloc, omp_calloc,
4019         omp_realloc): Add.
4020         * omp_lib.h.in (omp_aligned_alloc, omp_aligned_calloc, omp_calloc,
4021         omp_realloc): Add.
4022         * testsuite/libgomp.fortran/alloc-10.f90: New test.
4023         * testsuite/libgomp.fortran/alloc-6.f90: New test.
4024         * testsuite/libgomp.fortran/alloc-7.c: New test.
4025         * testsuite/libgomp.fortran/alloc-7.f90: New test.
4026         * testsuite/libgomp.fortran/alloc-8.f90: New test.
4027         * testsuite/libgomp.fortran/alloc-9.f90: New test.
4029 2021-09-30  Jakub Jelinek  <jakub@redhat.com>
4031         * omp.h.in (omp_aligned_alloc, omp_calloc, omp_aligned_calloc,
4032         omp_realloc): New prototypes.
4033         (omp_alloc): Move after omp_free prototype, add __malloc__ (omp_free)
4034         attribute.
4035         * allocator.c: Include string.h.
4036         (omp_aligned_alloc): No longer static, add ialias.  Add new_alignment
4037         variable and use it instead of alignment so that when retrying the old
4038         alignment is used again.  Don't retry if new alignment is the same
4039         as old alignment, unless allocator had pool size.
4040         (omp_alloc, GOMP_alloc, GOMP_free): Use ialias_call.
4041         (omp_aligned_calloc, omp_calloc, omp_realloc): New functions.
4042         * libgomp.map (OMP_5.0.2): Export omp_aligned_alloc, omp_calloc,
4043         omp_aligned_calloc and omp_realloc.
4044         * testsuite/libgomp.c-c++-common/alloc-4.c (main): Add
4045         omp_aligned_alloc, omp_calloc and omp_aligned_calloc tests.
4046         * testsuite/libgomp.c-c++-common/alloc-5.c: New test.
4047         * testsuite/libgomp.c-c++-common/alloc-6.c: New test.
4048         * testsuite/libgomp.c-c++-common/alloc-7.c: New test.
4049         * testsuite/libgomp.c-c++-common/alloc-8.c: New test.
4051 2021-09-28  Tobias Burnus  <tobias@codesourcery.com>
4053         PR libgomp/96661
4054         * configure.ac: Only check for int-type = 2*size_t support when
4055         building with Fortran support.
4056         * configure: Regenerate.
4058 2021-09-28  Thomas Schwinge  <thomas@codesourcery.com>
4060         * testsuite/libgomp.oacc-fortran/if-1.f90: Adjust.
4061         * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Likewise.
4063 2021-09-27  Aldy Hernandez  <aldyh@redhat.com>
4065         * team.c: Initialize start_data.
4066         * testsuite/libgomp.graphite/force-parallel-4.c: Adjust.
4067         * testsuite/libgomp.graphite/force-parallel-8.c: Adjust.
4069 2021-09-27  Tobias Burnus  <tobias@codesourcery.com>
4071         * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Change
4072         dg-message back to dg-note.
4074 2021-09-27  Tobias Burnus  <tobias@codesourcery.com>
4076         PR fortran/94070
4077         * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Update
4078         expected dg-note output.
4080 2021-09-22  Tobias Burnus  <tobias@codesourcery.com>
4082         PR fortran/55534
4083         * testsuite/libgomp.fortran/fortran.exp (ALWAYS_CFLAGS): Revert
4084         r12-3722 by removing -Wno-missing-include-dirs.
4085         * testsuite/libgomp.oacc-fortran/fortran.exp (ALWAYS_CFLAGS): Likewise.
4087 2021-09-22  Jakub Jelinek  <jakub@redhat.com>
4089         * testsuite/libgomp.c-c++-common/allocate-2.c: New test.
4090         * testsuite/libgomp.c-c++-common/allocate-3.c: New test.
4092 2021-09-21  Tobias Burnus  <tobias@codesourcery.com>
4094         PR fortran/55534
4095         * testsuite/libgomp.fortran/fortran.exp: Add -Wno-missing-include-dirs
4096         to ALWAYS_CFLAGS.
4097         * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
4099 2021-09-18  Jakub Jelinek  <jakub@redhat.com>
4101         * testsuite/libgomp.c++/default-1.C: New test.
4102         * testsuite/libgomp.c-c++-common/default-1.c: New test.
4103         * libgomp.texi (OpenMP 5.1): Mark "private and firstprivate argument
4104         to default clause in C and C++" as implemented.
4106 2021-09-17  Julian Brown  <julian@codesourcery.com>
4108         * testsuite/libgomp.oacc-c-c++-common/broadcast-many.c: Update.
4110 2021-09-17  Julian Brown  <julian@codesourcery.com>
4112         * testsuite/libgomp.oacc-c-c++-common/broadcast-many.c: New test.
4114 2021-09-17  Jakub Jelinek  <jakub@redhat.com>
4116         * libgomp.texi (OpenMP 5.1): Spelling fix,
4117         declare variante -> declare variant.
4119 2021-09-17  Jakub Jelinek  <jakub@redhat.com>
4121         * testsuite/libgomp.c-c++-common/atomic-19.c: Drop c effective target.
4122         Use /* */ comments instead of //.
4123         * testsuite/libgomp.c-c++-common/atomic-20.c: Likewise.
4124         * testsuite/libgomp.c-c++-common/atomic-21.c: Likewise.
4125         * testsuite/libgomp.c++/atomic-16.C: New test.
4126         * testsuite/libgomp.c++/atomic-17.C: New test.
4128 2021-09-10  Jakub Jelinek  <jakub@redhat.com>
4130         * testsuite/libgomp.c-c++-common/atomic-19.c: New test.
4131         * testsuite/libgomp.c-c++-common/atomic-20.c: New test.
4132         * testsuite/libgomp.c-c++-common/atomic-21.c: New test.
4134 2021-09-07  Tobias Burnus  <tobias@codesourcery.com>
4136         * libgomp.texi (OpenMP Implementation Status): Extend
4137         OpenMP 5.0 section.
4138         (OpenACC Profiling Interface): Fix typo.
4140 2021-09-07  Tobias Burnus  <tobias@codesourcery.com>
4142         * libgomp.texi (Enabling OpenMP): Refer to OMP spec in general
4143         not to 4.5; link to new section.
4144         (OpenMP Implementation Status): New.
4146 2021-09-06  Thomas Schwinge  <thomas@codesourcery.com>
4148         * testsuite/libgomp.c/target-43.c: '-latomic' for nvptx offloading.
4150 2021-09-03  Tobias Burnus  <tobias@codesourcery.com>
4152         * testsuite/libgomp.c-c++-common/error-1.c: Use \r\n not \n\r in
4153         dg-output.
4154         * testsuite/libgomp.fortran/error-1.f90: Likewise.
4156 2021-08-23  Thomas Schwinge  <thomas@codesourcery.com>
4157             Jakub Jelinek  <jakub@redhat.com>
4159         * testsuite/libgomp.c/address-space-1.c: New file.
4161 2021-08-23  Thomas Schwinge  <thomas@codesourcery.com>
4163         * testsuite/lib/libgomp.exp
4164         (check_effective_target_offload_target_intelmic): Remove 'proc'.
4165         (check_effective_target_offload_device_intel_mic): New 'proc'.
4166         * testsuite/libgomp.c-c++-common/on_device_arch.h
4167         (device_arch_intel_mic, on_device_arch_intel_mic): New.
4168         * testsuite/libgomp.c-c++-common/target-45.c: Use that for
4169         'dg-xfail-run-if'.
4170         * testsuite/libgomp.fortran/target10.f90: Likewise.
4172 2021-08-23  Tobias Burnus  <tobias@codesourcery.com>
4174         * testsuite/libgomp.fortran/taskloop-4-a.f90: New test.
4175         * testsuite/libgomp.fortran/taskloop-4.f90: New test.
4176         * testsuite/libgomp.fortran/taskloop-5-a.f90: New test.
4177         * testsuite/libgomp.fortran/taskloop-5.f90: New test.
4179 2021-08-23  Jakub Jelinek  <jakub@redhat.com>
4181         * taskloop.c (GOMP_taskloop): Handle GOMP_TASK_FLAG_STRICT.
4182         * testsuite/libgomp.c-c++-common/taskloop-4.c (main): Fix up comment.
4183         * testsuite/libgomp.c-c++-common/taskloop-5.c: New test.
4185 2021-08-22  Thomas Schwinge  <thomas@codesourcery.com>
4187         * config/nvptx/error.c (fwrite, exit): Override, too.
4188         * testsuite/libgomp.c-c++-common/error-1.c: Add a minimum amount
4189         of offloading testing.
4190         * testsuite/libgomp.fortran/error-1.f90: Likewise.
4192 2021-08-20  Tobias Burnus  <tobias@codesourcery.com>
4194         * testsuite/libgomp.fortran/error-1.f90: New test.
4196 2021-08-20  Jakub Jelinek  <jakub@redhat.com>
4198         * libgomp.map (GOMP_5.1): Add GOMP_error and GOMP_warning.
4199         * libgomp_g.h (GOMP_warning, GOMP_error): Declare.
4200         * error.c (GOMP_warning, GOMP_error): New functions.
4201         * testsuite/libgomp.c-c++-common/error-1.c: New test.
4203 2021-08-18  Tobias Burnus  <tobias@codesourcery.com>
4205         * omp_lib.f90.in (omp_alloc, omp_free, omp_target_alloc,
4206         omp_target_free. omp_target_is_present, omp_target_memcpy,
4207         omp_target_memcpy_rect, omp_target_associate_ptr,
4208         omp_target_disassociate_ptr): Add interface.
4209         * omp_lib.h.in (omp_alloc, omp_free, omp_target_alloc,
4210         omp_target_free. omp_target_is_present, omp_target_memcpy,
4211         omp_target_memcpy_rect, omp_target_associate_ptr,
4212         omp_target_disassociate_ptr): Add interface.
4213         * testsuite/libgomp.fortran/alloc-1.F90: Remove local
4214         interface block for omp_alloc + omp_free.
4215         * testsuite/libgomp.fortran/alloc-4.f90: Likewise.
4216         * testsuite/libgomp.fortran/refcount-1.f90: New test.
4217         * testsuite/libgomp.fortran/target-12.f90: New test.
4219 2021-08-18  Jakub Jelinek  <jakub@redhat.com>
4221         * testsuite/libgomp.c-c++-common/nothing-1.c: New test.
4223 2021-08-17  Tobias Burnus  <tobias@codesourcery.com>
4225         * testsuite/libgomp.fortran/scope-1.f90: New test.
4226         * testsuite/libgomp.fortran/task-reduction-16.f90: New test.
4228 2021-08-17  Jakub Jelinek  <jakub@redhat.com>
4230         * Makefile.am (libgomp_la_SOURCES): Add scope.c
4231         * Makefile.in: Regenerated.
4232         * libgomp_g.h (GOMP_scope_start): Declare.
4233         * libgomp.map: Add GOMP_scope_start@@GOMP_5.1.
4234         * scope.c: New file.
4235         * testsuite/libgomp.c-c++-common/scope-1.c: New test.
4236         * testsuite/libgomp.c-c++-common/task-reduction-16.c: New test.
4238 2021-08-16  Thomas Schwinge  <thomas@codesourcery.com>
4240         * testsuite/libgomp.oacc-c-c++-common/mode-transitions.c: Address
4241         '?:' issues.
4243 2021-08-16  Tobias Burnus  <tobias@codesourcery.com>
4245         * testsuite/libgomp.fortran/masked-1.f90: New test.
4247 2021-08-13  Thomas Schwinge  <thomas@codesourcery.com>
4249         * testsuite/libgomp.oacc-c-c++-common/static-variable-1.c: Adjust.
4251 2021-08-12  Jakub Jelinek  <jakub@redhat.com>
4253         * testsuite/libgomp.c-c++-common/masked-1.c: New test.
4255 2021-08-12  Tobias Burnus  <tobias@codesourcery.com>
4257         * env.c (parse_bind_var): Accept 'primary' as alias for
4258         'master'.
4259         (omp_display_env): Add TODO comment to
4260         change 'master' to 'primary' in proc_bind for OpenMP 5.1.
4261         * libgomp.texi: Change 'master thread' to 'primary thread'
4262         in line with OpenMP 5.1.
4263         (omp_get_proc_bind): Add omp_proc_bind_primary and note that
4264         omp_proc_bind_master is an alias of it.
4265         (OMP_PROC_BIND): Mention 'PRIMARY'.
4266         * omp.h.in (__GOMP_DEPRECATED_5_1): Define.
4267         (omp_proc_bind_primary): Add.
4268         (omp_proc_bind_master): Deprecate for OpenMP 5.1.
4269         * omp_lib.f90.in (omp_proc_bind_primary): Add.
4270         (omp_proc_bind_master): Deprecate for OpenMP 5.1.
4271         * omp_lib.h.in (omp_proc_bind_primary): Add.
4272         * testsuite/libgomp.c/affinity-1.c: Check that
4273         'primary' works and is identical to 'master'.
4275 2021-08-09  Julian Brown  <julian@codesourcery.com>
4276             Kwok Cheung Yeung  <kcy@codesourcery.com>
4277             Thomas Schwinge  <thomas@codesourcery.com>
4279         * plugin/plugin-gcn.c (gcn_exec): Change default number of workers to
4280         16.
4281         * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c
4282         [acc_device_radeon]: Update.
4283         * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c
4284         [ACC_DEVICE_TYPE_radeon]: Likewise.
4285         * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c
4286         [acc_device_radeon]: Likewise.
4287         * testsuite/libgomp.oacc-c-c++-common/routine-wv-2.c
4288         [ACC_DEVICE_TYPE_radeon]: Likewise.
4289         * testsuite/libgomp.oacc-fortran/optional-reduction.f90: XFAIL for
4290         'openacc_radeon_accel_selected' and '-O0'.
4291         * testsuite/libgomp.oacc-fortran/reduction-7.f90: Likewise.
4293 2021-08-05  Chung-Lin Tang  <cltang@codesourcery.com>
4295         * icv-device.c (omp_get_device_num): New API function, host side.
4296         * fortran.c (omp_get_device_num_): New interface function.
4297         * libgomp-plugin.h (GOMP_DEVICE_NUM_VAR): Define macro symbol.
4298         * libgomp.map (OMP_5.0.2): New version space with omp_get_device_num,
4299         omp_get_device_num_.
4300         * libgomp.texi (omp_get_device_num): Add documentation for new API
4301         function.
4302         * omp.h.in (omp_get_device_num): Add declaration.
4303         * omp_lib.f90.in (omp_get_device_num): Likewise.
4304         * omp_lib.h.in (omp_get_device_num): Likewise.
4305         * target.c (gomp_load_image_to_device): If additional entry for device
4306         number exists at end of returned entries from 'load_image_func' hook,
4307         copy the assigned device number over to the device variable.
4308         * config/gcn/icv-device.c (GOMP_DEVICE_NUM_VAR): Define static global.
4309         (omp_get_device_num): New API function, device side.
4310         * plugin/plugin-gcn.c ("symcat.h"): Add include.
4311         (GOMP_OFFLOAD_load_image): Add addresses of device GOMP_DEVICE_NUM_VAR
4312         at end of returned 'target_table' entries.
4313         * config/nvptx/icv-device.c (GOMP_DEVICE_NUM_VAR): Define static global.
4314         (omp_get_device_num): New API function, device side.
4315         * plugin/plugin-nvptx.c ("symcat.h"): Add include.
4316         (GOMP_OFFLOAD_load_image): Add addresses of device GOMP_DEVICE_NUM_VAR
4317         at end of returned 'target_table' entries.
4318         * testsuite/lib/libgomp.exp
4319         (check_effective_target_offload_target_intelmic): New function for
4320         testing for intelmic offloading.
4321         * testsuite/libgomp.c-c++-common/target-45.c: New test.
4322         * testsuite/libgomp.fortran/target10.f90: New test.
4324 2021-07-30  Thomas Schwinge  <thomas@codesourcery.com>
4325             Ulrich Drepper  <drepper@redhat.com>
4327         * fortran.c (omp_display_env_, omp_display_env_8_): Only
4328         '#ifndef LIBGOMP_OFFLOADED_ONLY'.
4330 2021-07-29  Thomas Schwinge  <thomas@codesourcery.com>
4331             Julian Brown  <julian@codesourcery.com>
4332             Kwok Cheung Yeung  <kcy@codesourcery.com>
4334         * testsuite/libgomp.oacc-c-c++-common/pr85486-2.c:
4335         's%oaccdevlow%oaccloops%g'.
4336         * testsuite/libgomp.oacc-c-c++-common/pr85486-3.c: Likewise.
4337         * testsuite/libgomp.oacc-c-c++-common/pr85486.c: Likewise.
4338         * testsuite/libgomp.oacc-c-c++-common/routine-nohost-1.c:
4339         Likewise.
4340         * testsuite/libgomp.oacc-c-c++-common/vector-length-128-1.c:
4341         Likewise.
4342         * testsuite/libgomp.oacc-c-c++-common/vector-length-128-2.c:
4343         Likewise.
4344         * testsuite/libgomp.oacc-c-c++-common/vector-length-128-3.c:
4345         Likewise.
4346         * testsuite/libgomp.oacc-c-c++-common/vector-length-128-4.c:
4347         Likewise.
4348         * testsuite/libgomp.oacc-c-c++-common/vector-length-128-5.c:
4349         Likewise.
4350         * testsuite/libgomp.oacc-c-c++-common/vector-length-128-6.c:
4351         Likewise.
4352         * testsuite/libgomp.oacc-c-c++-common/vector-length-128-7.c:
4353         Likewise.
4354         * testsuite/libgomp.oacc-fortran/routine-nohost-1.f90: Likewise.
4356 2021-07-29  Aldy Hernandez  <aldyh@redhat.com>
4358         * testsuite/libgomp.graphite/force-parallel-4.c: Adjust for
4359         threader.
4360         * testsuite/libgomp.graphite/force-parallel-8.c: Same.
4362 2021-07-27  Ulrich Drepper  <drepper@gmail.com>
4364         * env.c (wait_policy, stacksize): New static variables,
4365         move out of handle_omp_display_env.
4366         (omp_display_env): New function.  The meat of the old
4367         handle_omp_display_env function.
4368         (handle_omp_display_env): Change to not take parameters
4369         and instead use the global variables.  Only perform
4370         parsing, defer to omp_display_env for the implementation.
4371         (initialize_env): Remove local variables wait_policy and
4372         stacksize.  Don't pass parameters to handle_omp_display_env.
4373         * fortran.c: Add ialias_redirect for omp_display_env.
4374         (omp_display_env_, omp_display_env_8_): New functions.
4375         * libgomp.map (OMP_5.1): New version.  Add omp_display_env,
4376         omp_display_env_, and omp_display_env_8_.
4377         * omp.h.in: Declare omp_display_env.
4378         * omp_lib.f90.in: Likewise.
4379         * omp_lib.h.in: Likewise.
4381 2021-07-27  Thomas Schwinge  <thomas@codesourcery.com>
4382             Julian Brown  <julian@codesourcery.com>
4384         * target.c (gomp_coalesce_buf_add): Update comment.
4385         (gomp_copy_host2dev, gomp_map_vars_internal): Don't expect to see
4386         'aq && cbuf'.
4387         (gomp_map_vars_internal): Only 'if (!aq)', do
4388         'gomp_coalesce_buf_add'.
4389         * testsuite/libgomp.oacc-c-c++-common/async-data-1-2.c: Remove
4390         XFAIL.
4392 2021-07-27  Julian Brown  <julian@codesourcery.com>
4393             Thomas Schwinge  <thomas@codesourcery.com>
4395         * libgomp.h (gomp_copy_host2dev): Update prototype.
4396         * oacc-mem.c (memcpy_tofrom_device, update_dev_host): Add new
4397         argument to gomp_copy_host2dev (false).
4398         * plugin/plugin-gcn.c (struct copy_data): Remove free_src field.
4399         (copy_data): Don't free src.
4400         (queue_push_copy): Remove free_src handling.
4401         (GOMP_OFFLOAD_dev2dev): Update call to queue_push_copy.
4402         (GOMP_OFFLOAD_openacc_async_host2dev): Remove source-data
4403         snapshotting.
4404         (GOMP_OFFLOAD_openacc_async_dev2host): Update call to
4405         queue_push_copy.
4406         * target.c (goacc_device_copy_async): Add SRCADDR_ORIG parameter.
4407         (gomp_copy_host2dev): Add EPHEMERAL parameter.  Snapshot source
4408         data when true, and set up deferred freeing of temporary buffer.
4409         (gomp_copy_dev2host): Update call to goacc_device_copy_async.
4410         (gomp_map_vars_existing, gomp_map_pointer, gomp_attach_pointer)
4411         (gomp_detach_pointer, gomp_map_vars_internal, gomp_update): Update
4412         calls to gomp_copy_host2dev with appropriate ephemeral argument.
4413         * testsuite/libgomp.oacc-c-c++-common/async-data-1-1.c: Remove
4414         XFAIL.
4416 2021-07-27  Thomas Schwinge  <thomas@codesourcery.com>
4417             Tom de Vries  <tom@codesourcery.com>
4419         * testsuite/libgomp.oacc-c-c++-common/async-data-1-1.c: New file.
4420         * testsuite/libgomp.oacc-c-c++-common/async-data-1-2.c: Likewise.
4422 2021-07-27  Thomas Schwinge  <thomas@codesourcery.com>
4424         * testsuite/libgomp.oacc-c-c++-common/acc_prof-init-1.c: Clarify
4425         sequencing of 'async' data copying vs. profiling events.
4426         * testsuite/libgomp.oacc-c-c++-common/acc_prof-parallel-1.c:
4427         Likewise.
4429 2021-07-27  Thomas Schwinge  <thomas@codesourcery.com>
4430             Julian Brown  <julian@codesourcery.com>
4432         * testsuite/libgomp.oacc-c-c++-common/lib-94.c: Fix OpenACC
4433         'async'/'wait' issue.
4434         * testsuite/libgomp.oacc-c-c++-common/lib-95.c: Likewise.
4435         * testsuite/libgomp.oacc-fortran/lib-16-2.f90: Likewise.
4436         * testsuite/libgomp.oacc-fortran/lib-16.f90: Likewise.
4438 2021-07-21  Thomas Schwinge  <thomas@codesourcery.com>
4439             Joseph Myers  <joseph@codesourcery.com>
4440             Cesar Philippidis  <cesar@codesourcery.com>
4442         * testsuite/libgomp.oacc-c-c++-common/routine-nohost-1.c: New
4443         file.
4444         * testsuite/libgomp.oacc-c-c++-common/routine-nohost-2.c:
4445         Likewise.
4446         * testsuite/libgomp.oacc-c-c++-common/routine-nohost-2_2.c:
4447         Likewise.
4448         * testsuite/libgomp.oacc-fortran/routine-nohost-1.f90: Likewise.
4450 2021-07-20  Thomas Schwinge  <thomas@codesourcery.com>
4452         PR target/101484
4453         * configure.tgt [amdgcn*-*-*] (XCFLAGS): Add
4454         '-Wno-error=array-bounds'.
4455         * config/gcn/team.c: Remove '-Werror=array-bounds' work-around.
4456         * libgomp.h [__AMDGCN__]: Likewise.
4458 2021-07-19  Thomas Schwinge  <thomas@codesourcery.com>
4460         PR target/101484
4461         * config/gcn/team.c: Apply '-Werror=array-bounds' work-around.
4462         * libgomp.h [__AMDGCN__]: Likewise.
4464 2021-07-13  Jakub Jelinek  <jakub@redhat.com>
4465             Florian Weimer  <fweimer@redhat.com>
4467         * config/linux/sem.h: Don't include limits.h.
4468         (SEM_WAIT): Define to -__INT_MAX__ - 1 instead of INT_MIN.
4469         * config/linux/affinity.c: Include limits.h.
4471 2021-07-01  Jakub Jelinek  <jakub@redhat.com>
4473         PR middle-end/94366
4474         * testsuite/libgomp.c-c++-common/pr94366.c: New test.
4476 2021-06-29  Tobias Burnus  <tobias@codesourcery.com>
4478         PR other/67300
4479         * testsuite/libgomp.c-c++-common/reduction-16.c: Replace
4480         -foffload=nvptx-none= by -foffload-options=nvptx-none= to
4481         avoid disabling other offload targets.
4482         * testsuite/libgomp.c-c++-common/reduction-5.c: Likewise.
4483         * testsuite/libgomp.c-c++-common/reduction-6.c: Likewise.
4484         * testsuite/libgomp.c/target-44.c: Likewise.
4486 2021-06-29  Tobias Burnus  <tobias@codesourcery.com>
4488         * testsuite/libgomp.fortran/defaultmap-8.f90 (bar): Determine whether
4489         target has shared memory and disable some scalar pointer/allocatable
4490         checks if not as firstprivate does not work.
4492 2021-06-25  Chung-Lin Tang  <cltang@codesourcery.com>
4494         PR testsuite/101114
4495         * testsuite/libgomp.c-c++-common/struct-elem-5.c:
4496         Add "target offload_device_nonshared_as" condition for enabling test.
4498 2021-06-24  Jakub Jelinek  <jakub@redhat.com>
4500         * testsuite/libgomp.c-c++-common/target-in-reduction-1.c: New test.
4501         * testsuite/libgomp.c-c++-common/target-in-reduction-2.c: New test.
4502         * testsuite/libgomp.c++/target-in-reduction-1.C: New test.
4503         * testsuite/libgomp.c++/target-in-reduction-2.C: New test.
4505 2021-06-23  Jakub Jelinek  <jakub@redhat.com>
4507         PR middle-end/101167
4508         * testsuite/libgomp.c-c++-common/task-reduction-15.c: New test.
4510 2021-06-17  Chung-Lin Tang  <cltang@codesourcery.com>
4512         * hashtab.h (htab_clear): New function with initialization code
4513         factored out from...
4514         (htab_create): ...here, adjust to use htab_clear function.
4515         * libgomp.h (REFCOUNT_SPECIAL): New symbol to denote range of
4516         special refcount values, add comments.
4517         (REFCOUNT_INFINITY): Adjust definition to use REFCOUNT_SPECIAL.
4518         (REFCOUNT_LINK): Likewise.
4519         (REFCOUNT_STRUCTELEM): New special refcount range for structure
4520         element siblings.
4521         (REFCOUNT_STRUCTELEM_P): Macro for testing for structure element
4522         sibling maps.
4523         (REFCOUNT_STRUCTELEM_FLAG_FIRST): Flag to indicate first sibling.
4524         (REFCOUNT_STRUCTELEM_FLAG_LAST):  Flag to indicate last sibling.
4525         (REFCOUNT_STRUCTELEM_FIRST_P): Macro to test _FIRST flag.
4526         (REFCOUNT_STRUCTELEM_LAST_P): Macro to test _LAST flag.
4527         (struct splay_tree_key_s): Add structelem_refcount and
4528         structelem_refcount_ptr fields into a union with dynamic_refcount.
4529         Add comments.
4530         (gomp_map_vars): Delete declaration.
4531         (gomp_map_vars_async): Likewise.
4532         (gomp_unmap_vars): Likewise.
4533         (gomp_unmap_vars_async): Likewise.
4534         (goacc_map_vars): New declaration.
4535         (goacc_unmap_vars): Likewise.
4536         * oacc-mem.c (acc_map_data): Adjust to use goacc_map_vars.
4537         (goacc_enter_datum): Likewise.
4538         (goacc_enter_data_internal): Likewise.
4539         * oacc-parallel.c (GOACC_parallel_keyed): Adjust to use goacc_map_vars
4540         and goacc_unmap_vars.
4541         (GOACC_data_start): Adjust to use goacc_map_vars.
4542         (GOACC_data_end): Adjust to use goacc_unmap_vars.
4543         * target.c (hash_entry_type): New typedef.
4544         (htab_alloc): New function hook for hashtab.h.
4545         (htab_free): Likewise.
4546         (htab_hash): Likewise.
4547         (htab_eq): Likewise.
4548         (hashtab.h): Add file include.
4549         (gomp_increment_refcount): New function.
4550         (gomp_decrement_refcount): Likewise.
4551         (gomp_map_vars_existing): Add refcount_set parameter, adjust to use
4552         gomp_increment_refcount.
4553         (gomp_map_fields_existing): Add refcount_set parameter, adjust calls
4554         to gomp_map_vars_existing.
4555         (gomp_map_vars_internal): Add refcount_set parameter, add local openmp_p
4556         variable to guard OpenMP specific paths, adjust calls to
4557         gomp_map_vars_existing, add structure element sibling splay_tree_key
4558         sequence creation code, adjust Fortran map case to avoid increment
4559         under OpenMP.
4560         (gomp_map_vars): Adjust to static, add refcount_set parameter, manage
4561         local refcount_set if caller passed in NULL, adjust call to
4562         gomp_map_vars_internal.
4563         (gomp_map_vars_async): Adjust and rename into...
4564         (goacc_map_vars): ...this new function, adjust call to
4565         gomp_map_vars_internal.
4566         (gomp_remove_splay_tree_key): New function with code factored out from
4567         gomp_remove_var_internal.
4568         (gomp_remove_var_internal): Add code to handle removing multiple
4569         splay_tree_key sequence for structure elements, adjust code to use
4570         gomp_remove_splay_tree_key for splay-tree key removal.
4571         (gomp_unmap_vars_internal): Add refcount_set parameter, adjust to use
4572         gomp_decrement_refcount.
4573         (gomp_unmap_vars): Adjust to static, add refcount_set parameter, manage
4574         local refcount_set if caller passed in NULL, adjust call to
4575         gomp_unmap_vars_internal.
4576         (gomp_unmap_vars_async): Adjust and rename into...
4577         (goacc_unmap_vars): ...this new function, adjust call to
4578         gomp_unmap_vars_internal.
4579         (GOMP_target): Manage refcount_set and adjust calls to gomp_map_vars and
4580         gomp_unmap_vars.
4581         (GOMP_target_ext): Likewise.
4582         (gomp_target_data_fallback): Adjust call to gomp_map_vars.
4583         (GOMP_target_data): Likewise.
4584         (GOMP_target_data_ext): Likewise.
4585         (GOMP_target_end_data): Adjust call to gomp_unmap_vars.
4586         (gomp_exit_data): Add refcount_set parameter, adjust to use
4587         gomp_decrement_refcount, adjust to queue splay-tree keys for removal
4588         after main loop.
4589         (GOMP_target_enter_exit_data): Manage refcount_set and adjust calls to
4590         gomp_map_vars and gomp_exit_data.
4591         (gomp_target_task_fn): Likewise.
4592         * testsuite/libgomp.c-c++-common/refcount-1.c: New testcase.
4593         * testsuite/libgomp.c-c++-common/struct-elem-1.c: New testcase.
4594         * testsuite/libgomp.c-c++-common/struct-elem-2.c: New testcase.
4595         * testsuite/libgomp.c-c++-common/struct-elem-3.c: New testcase.
4596         * testsuite/libgomp.c-c++-common/struct-elem-4.c: New testcase.
4597         * testsuite/libgomp.c-c++-common/struct-elem-5.c: New testcase.
4599 2021-06-15  Tobias Burnus  <tobias@codesourcery.com>
4601         PR fortran/92568
4602         * testsuite/libgomp.fortran/defaultmap-8.f90: New test.
4604 2021-06-10  Andrew Stubbs  <ams@codesourcery.com>
4605             Thomas Schwinge  <thomas@codesourcery.com>
4607         * libgomp.map (GOACC_2.0.2): New symbol version.
4608         * libgomp_g.h (GOACC_enter_data, GOACC_exit_data) New prototypes.
4609         * oacc-mem.c (GOACC_enter_data, GOACC_exit_data) New functions.
4611 2021-06-10  Thomas Schwinge  <thomas@codesourcery.com>
4612             Andrew Stubbs  <ams@codesourcery.com>
4614         * oacc-mem.c (goacc_enter_exit_data_internal): New function,
4615         extracted from...
4616         (GOACC_enter_exit_data): ... here.
4617         (GOACC_declare): Use it.
4619 2021-06-10  Thomas Schwinge  <thomas@codesourcery.com>
4621         * oacc-parallel.c (GOACC_declare): Move...
4622         * oacc-mem.c: ... here.
4623         * libgomp_g.h: Adjust.
4625 2021-06-10  Andrew Stubbs  <ams@codesourcery.com>
4626             Thomas Schwinge  <thomas@codesourcery.com>
4628         * oacc-parallel.c (GOACC_declare): Clean up 'GOMP_MAP_POINTER'
4629         handling.
4631 2021-06-10  Jakub Jelinek  <jakub@redhat.com>
4633         PR tree-optimization/100981
4634         * testsuite/libgomp.fortran/pr100981-2.f90 (cdcdot): Initialize
4635         dsdotr and dsdoti to 0.
4637 2021-06-09  H.J. Lu  <hjl.tools@gmail.com>
4639         * testsuite/lib/libgomp.exp (libgomp_init): Don't add -march=i486
4640         if atomic compare-and-swap is supported on 'int'.
4642 2021-06-09  Richard Biener  <rguenther@suse.de>
4644         PR tree-optimization/100981
4645         * testsuite/libgomp.fortran/pr100981-2.f90: New testcase.
4647 2021-06-08  Thomas Schwinge  <thomas@codesourcery.com>
4649         * plugin/plugin-gcn.c (gcn_exec): Force 'num_workers (1)'
4650         unconditionally.
4651         * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c:
4652         Update.
4653         * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Likewise.
4654         * testsuite/libgomp.oacc-c-c++-common/routine-wv-2.c: Likewise.
4656 2021-06-08  Thomas Schwinge  <thomas@codesourcery.com>
4658         * testsuite/libgomp.oacc-c-c++-common/lib-11.c: Enable for all but
4659         '-DACC_MEM_SHARED=0'.
4660         * testsuite/libgomp.oacc-c-c++-common/lib-13.c: Likewise.
4661         * testsuite/libgomp.oacc-c-c++-common/lib-14.c: Likewise.
4662         * testsuite/libgomp.oacc-c-c++-common/lib-15.c: Likewise.
4663         * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
4664         * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
4665         * testsuite/libgomp.oacc-c-c++-common/lib-24.c: Likewise.
4666         * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
4667         * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
4668         * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
4669         * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
4670         * testsuite/libgomp.oacc-c-c++-common/lib-88.c: Likewise.
4671         * testsuite/libgomp.oacc-c-c++-common/lib-89.c: Likewise.
4672         * testsuite/libgomp.oacc-c-c++-common/lib-92.c: Likewise.
4673         * testsuite/libgomp.oacc-fortran/lib-14.f90: Likewise.
4674         * testsuite/libgomp.oacc-c-c++-common/lib-5.c: Add
4675         'acc_device_radeon' testing.
4676         * testsuite/libgomp.oacc-c-c++-common/lib-6.c: Likewise.
4677         * testsuite/libgomp.oacc-fortran/lib-5.f90: Likewise.
4678         * testsuite/libgomp.oacc-fortran/lib-7.f90: Likewise.
4679         * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Enable for all.
4680         * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
4681         * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
4682         * testsuite/libgomp.oacc-c-c++-common/lib-86.c: Likewise.
4683         * testsuite/libgomp.oacc-c-c++-common/lib-87.c: Likewise.
4684         * testsuite/libgomp.oacc-fortran/lib-10.f90: Likewise.
4685         * testsuite/libgomp.oacc-fortran/lib-8.f90: Likewise.
4686         * testsuite/libgomp.oacc-c-c++-common/lib-57.c: Improve checking
4687         for non-'openacc_nvidia_accel_selected'.
4688         * testsuite/libgomp.oacc-c-c++-common/lib-58.c: Likewise.
4689         * testsuite/libgomp.oacc-c-c++-common/lib-62.c: Clarify that "Not
4690         all implement this checking".
4691         * testsuite/libgomp.oacc-c-c++-common/lib-63.c: Likewise.
4692         * testsuite/libgomp.oacc-c-c++-common/lib-64.c: Likewise.
4693         * testsuite/libgomp.oacc-c-c++-common/lib-65.c: Likewise.
4694         * testsuite/libgomp.oacc-c-c++-common/lib-67.c: Likewise.
4695         * testsuite/libgomp.oacc-c-c++-common/lib-68.c: Likewise.
4697 2021-06-08  Thomas Schwinge  <thomas@codesourcery.com>
4699         * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Simplify.
4700         * testsuite/libgomp.oacc-fortran/parallel-dims-aux.c: Update.
4702 2021-06-08  Thomas Schwinge  <thomas@codesourcery.com>
4704         * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c: Fix
4705         for 'acc_device_radeon'.
4707 2021-06-08  Thomas Schwinge  <thomas@codesourcery.com>
4709         * testsuite/libgomp.oacc-c-c++-common/firstprivate-1.c: Enhance
4710         for non-'acc_device_nvidia'.
4712 2021-06-08  Thomas Schwinge  <thomas@codesourcery.com>
4714         * testsuite/libgomp.oacc-c-c++-common/acc_on_device-1.c: Add
4715         'acc_device_radeon' testing.
4716         * testsuite/libgomp.oacc-fortran/acc_on_device-1-1.f90: Likewise.
4717         * testsuite/libgomp.oacc-fortran/acc_on_device-1-2.f: Likewise.
4718         * testsuite/libgomp.oacc-fortran/acc_on_device-1-3.f: Likewise.
4720 2021-06-08  Thomas Schwinge  <thomas@codesourcery.com>
4722         * testsuite/libgomp.oacc-c-c++-common/async_queue-1.c: Don't
4723         require 'openacc_nvidia_accel_selected'.  Fix up for
4724         'ACC_DEVICE_TYPE_radeon'.
4726 2021-06-08  Thomas Schwinge  <thomas@codesourcery.com>
4728         * testsuite/libgomp.oacc-c++/declare-1.C: Don't require
4729         'openacc_nvidia_accel_selected'.
4730         * testsuite/libgomp.oacc-c-c++-common/declare-3.c: Likewise.
4732 2021-06-08  Thomas Schwinge  <thomas@codesourcery.com>
4734         * testsuite/lib/libgomp.exp
4735         (check_effective_target_openacc_radeon_accel_selected):
4736         Streamline.
4738 2021-06-08  Thomas Schwinge  <thomas@codesourcery.com>
4740         * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Revert
4741         PR80547 workaround.
4743 2021-06-08  Thomas Schwinge  <thomas@codesourcery.com>
4745         * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c
4746         <acc_device_nvidia>: Update comment.
4748 2021-05-28  Tobias Burnus  <tobias@codesourcery.com>
4750         * testsuite/libgomp.fortran/depend-iterator-2.f90: New test.
4752 2021-05-27  Jakub Jelinek  <jakub@redhat.com>
4754         * testsuite/lib/libgomp.exp (check_effective_target_openacc_cuda,
4755         check_effective_target_openacc_cublas,
4756         check_effective_target_openacc_cudart): New.
4757         * testsuite/libgomp.oacc-fortran/host_data-4.f90: Require effective
4758         target openacc_cublas.
4759         * testsuite/libgomp.oacc-fortran/host_data-2.f90: Likewise.
4760         * testsuite/libgomp.oacc-fortran/host_data-3.f: Likewise.
4761         * testsuite/libgomp.oacc-c-c++-common/lib-91.c: Require effective
4762         target openacc_cuda.
4763         * testsuite/libgomp.oacc-c-c++-common/lib-70.c: Likewise.
4764         * testsuite/libgomp.oacc-c-c++-common/lib-90.c: Likewise.
4765         * testsuite/libgomp.oacc-c-c++-common/lib-75.c: Likewise.
4766         * testsuite/libgomp.oacc-c-c++-common/lib-69.c: Likewise.
4767         * testsuite/libgomp.oacc-c-c++-common/lib-74.c: Likewise.
4768         * testsuite/libgomp.oacc-c-c++-common/lib-81.c: Likewise.
4769         * testsuite/libgomp.oacc-c-c++-common/lib-72.c: Likewise.
4770         * testsuite/libgomp.oacc-c-c++-common/lib-85.c: Likewise.
4771         * testsuite/libgomp.oacc-c-c++-common/pr87835.c: Likewise.
4772         * testsuite/libgomp.oacc-c-c++-common/lib-82.c: Likewise.
4773         * testsuite/libgomp.oacc-c-c++-common/lib-73.c: Likewise.
4774         * testsuite/libgomp.oacc-c-c++-common/lib-83.c: Likewise.
4775         * testsuite/libgomp.oacc-c-c++-common/lib-78.c: Likewise.
4776         * testsuite/libgomp.oacc-c-c++-common/lib-76.c: Likewise.
4777         * testsuite/libgomp.oacc-c-c++-common/lib-84.c: Likewise.
4778         * testsuite/libgomp.oacc-c-c++-common/lib-79.c: Likewise.
4779         * testsuite/libgomp.oacc-c-c++-common/host_data-1.c: Require effective
4780         targets openacc_cublas and openacc_cudart.
4781         * testsuite/libgomp.oacc-c-c++-common/context-1.c: Likewise.
4782         * testsuite/libgomp.oacc-c-c++-common/context-2.c: Likewise.
4783         * testsuite/libgomp.oacc-c-c++-common/context-3.c: Likewise.
4784         * testsuite/libgomp.oacc-c-c++-common/context-4.c: Likewise.
4785         * testsuite/libgomp.oacc-c-c++-common/acc_get_property-nvptx.c:
4786         Require effective target openacc_cudart.
4787         * testsuite/libgomp.oacc-c-c++-common/asyncwait-1.c: Add -DUSE_CUDA_H
4788         for effective target openacc_cuda and add && defined USE_CUDA_H to
4789         preprocessor conditionals.  Guard -lcuda also on openacc_cuda
4790         effective target.
4792 2021-05-26  Jakub Jelinek  <jakub@redhat.com>
4794         PR libgomp/100573
4795         * config/nvptx/target.c (GOMP_target_ext, GOMP_target_data_ext,
4796         GOMP_target_end_data, GOMP_target_update_ext,
4797         GOMP_target_enter_exit_data): New dummy entrypoints.
4798         * config/gcn/target.c (GOMP_target_ext, GOMP_target_data_ext,
4799         GOMP_target_end_data, GOMP_target_update_ext,
4800         GOMP_target_enter_exit_data): Likewise.
4801         * testsuite/libgomp.c-c++-common/for-3.c (DO_PRAGMA, OMPTEAMS,
4802         OMPFROM, OMPTO): Define.
4803         (main): Remove #pragma omp target teams around all the tests.
4804         * testsuite/libgomp.c-c++-common/target-41.c: New test.
4805         * testsuite/libgomp.c-c++-common/target-42.c: New test.
4807 2021-05-25  Jakub Jelinek  <jakub@redhat.com>
4809         PR middle-end/99928
4810         * testsuite/libgomp.c-c++-common/reduction-17.c: New test.
4812 2021-05-24  Tobias Burnus  <tobias@codesourcery.com>
4814         PR fortran/86470
4815         * testsuite/libgomp.fortran/class-firstprivate-1.f90: New test.
4816         * testsuite/libgomp.fortran/class-firstprivate-2.f90: New test.
4817         * testsuite/libgomp.fortran/class-firstprivate-3.f90: New test.
4819 2021-05-22  Thomas Schwinge  <thomas@codesourcery.com>
4821         PR testsuite/90115
4822         * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Prune
4823         uninteresting/varying diagnostics.
4825 2021-05-21  Thomas Schwinge  <thomas@codesourcery.com>
4827         PR middle-end/90115
4828         * testsuite/libgomp.oacc-c-c++-common/static-variable-1.c: Update.
4829         * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Likewise.
4831 2021-05-21  Thomas Schwinge  <thomas@codesourcery.com>
4833         PR middle-end/90115
4834         * testsuite/libgomp.oacc-fortran/private-atomic-1-vector.f90: New
4835         file.
4836         * testsuite/libgomp.oacc-c-c++-common/firstprivate-1.c: Update.
4837         * testsuite/libgomp.oacc-c-c++-common/host_data-7.c: Likewise.
4838         * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c:
4839         Likewise.
4840         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-1.c:
4841         Likewise.
4842         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-2.c:
4843         Likewise.
4844         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-3.c:
4845         Likewise.
4846         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-4.c:
4847         Likewise.
4848         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-5.c:
4849         Likewise.
4850         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-1.c:
4851         Likewise.
4852         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-2.c:
4853         Likewise.
4854         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-3.c:
4855         Likewise.
4856         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-4.c:
4857         Likewise.
4858         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-5.c:
4859         Likewise.
4860         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-6.c:
4861         Likewise.
4862         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-vector-1.c:
4863         Likewise.
4864         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-vector-2.c:
4865         Likewise.
4866         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-1.c:
4867         Likewise.
4868         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-2.c:
4869         Likewise.
4870         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-3.c:
4871         Likewise.
4872         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-4.c:
4873         Likewise.
4874         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-5.c:
4875         Likewise.
4876         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-6.c:
4877         Likewise.
4878         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-7.c:
4879         Likewise.
4880         * testsuite/libgomp.oacc-c-c++-common/loop-g-1.c: Likewise.
4881         * testsuite/libgomp.oacc-c-c++-common/loop-g-2.c: Likewise.
4882         * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c: Likewise.
4883         * testsuite/libgomp.oacc-c-c++-common/loop-gwv-2.c: Likewise.
4884         * testsuite/libgomp.oacc-c-c++-common/loop-red-g-1.c: Likewise.
4885         * testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c: Likewise.
4886         * testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c: Likewise.
4887         * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c: Likewise.
4888         * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c: Likewise.
4889         * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c: Likewise.
4890         * testsuite/libgomp.oacc-c-c++-common/loop-red-wv-1.c: Likewise.
4891         * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c: Likewise.
4892         * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c: Likewise.
4893         * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c: Likewise.
4894         * testsuite/libgomp.oacc-c-c++-common/parallel-reduction.c:
4895         Likewise.
4896         * testsuite/libgomp.oacc-c-c++-common/private-atomic-1-gang.c:
4897         Likewise.
4898         * testsuite/libgomp.oacc-c-c++-common/private-atomic-1.c:
4899         Likewise.
4900         * testsuite/libgomp.oacc-c-c++-common/private-variables.c:
4901         Likewise.
4902         * testsuite/libgomp.oacc-c-c++-common/routine-4.c: Likewise.
4903         * testsuite/libgomp.oacc-c-c++-common/static-variable-1.c:
4904         Likewise.
4905         * testsuite/libgomp.oacc-fortran/acc_on_device-1-1.f90: Likewise.
4906         * testsuite/libgomp.oacc-fortran/acc_on_device-1-2.f: Likewise.
4907         * testsuite/libgomp.oacc-fortran/acc_on_device-1-3.f: Likewise.
4908         * testsuite/libgomp.oacc-fortran/declare-1.f90: Likewise.
4909         * testsuite/libgomp.oacc-fortran/host_data-5.F90: Likewise.
4910         * testsuite/libgomp.oacc-fortran/if-1.f90: Likewise.
4911         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-1.f90:
4912         Likewise.
4913         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-2.f90:
4914         Likewise.
4915         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-3.f90:
4916         Likewise.
4917         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-6.f90:
4918         Likewise.
4919         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-vector-1.f90:
4920         Likewise.
4921         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-vector-2.f90:
4922         Likewise.
4923         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-1.f90:
4924         Likewise.
4925         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-2.f90:
4926         Likewise.
4927         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-3.f90:
4928         Likewise.
4929         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-4.f90:
4930         Likewise.
4931         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-5.f90:
4932         Likewise.
4933         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-6.f90:
4934         Likewise.
4935         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-7.f90:
4936         Likewise.
4937         * testsuite/libgomp.oacc-fortran/optional-private.f90: Likewise.
4938         * testsuite/libgomp.oacc-fortran/parallel-dims.f90: Likewise.
4939         * testsuite/libgomp.oacc-fortran/private-atomic-1-gang.f90:
4940         Likewise.
4941         * testsuite/libgomp.oacc-fortran/private-atomic-1-worker.f90:
4942         Likewise.
4943         * testsuite/libgomp.oacc-fortran/private-variables.f90: Likewise.
4944         * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Likewise.
4945         * testsuite/libgomp.oacc-fortran/routine-7.f90: Likewise.
4947 2021-05-21  Julian Brown  <julian@codesourcery.com>
4948             Chung-Lin Tang  <cltang@codesourcery.com>
4949             Thomas Schwinge  <thomas@codesourcery.com>
4951         PR middle-end/90115
4952         * testsuite/libgomp.oacc-c-c++-common/private-atomic-1-gang.c: New
4953         test.
4954         * testsuite/libgomp.oacc-fortran/private-atomic-1-gang.f90:
4955         Likewise.
4956         * testsuite/libgomp.oacc-fortran/private-atomic-1-worker.f90:
4957         Likewise.
4959 2021-05-21  Thomas Schwinge  <thomas@codesourcery.com>
4961         * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Don't skip
4962         for nvptx offloading.
4964 2021-05-21  Tobias Burnus  <tobias@codesourcery.com>
4966         * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: New.
4968 2021-05-19  Thomas Schwinge  <thomas@codesourcery.com>
4970         PR target/83812
4971         * testsuite/libgomp.oacc-c-c++-common/private-atomic-1.c: New.
4973 2021-05-19  Julian Brown  <julian@codesourcery.com>
4975         * testsuite/libgomp.oacc-c-c++-common/loop-gwv-2.c: New.
4977 2021-05-18  Thomas Schwinge  <thomas@codesourcery.com>
4979         * testsuite/lib/libgomp.exp
4980         (check_effective_target_offload_target_nvptx): Don't shadow global
4981         'offload_targets' variable.
4983 2021-05-18  Thomas Schwinge  <thomas@codesourcery.com>
4985         * testsuite/libgomp.c-c++-common/reduction-5.c: Restrict
4986         '-latomic' to nvptx offloading compilation.
4987         * testsuite/libgomp.c-c++-common/reduction-6.c: Likewise.
4989 2021-05-18  Thomas Schwinge  <thomas@codesourcery.com>
4991         * testsuite/libgomp.c/target-44.c: Restrict '-latomic' to nvptx
4992         offloading compilation.
4994 2021-05-17  Kwok Cheung Yeung  <kcy@codesourcery.com>
4996         * task.c (omp_fulfill_event): Call gomp_team_barrier_set_task_pending
4997         if new tasks generated.
4998         * testsuite/libgomp.c-c++-common/task-detach-13.c: New.
5000 2021-05-14  Tobias Burnus  <tobias@codesourcery.com>
5002         * testsuite/libgomp.fortran/parallel-master.f90: New test.
5004 2021-05-13  Martin Liska  <mliska@suse.cz>
5006         PR testsuite/100569
5007         * testsuite/libgomp.c/omp-nested-3.c: Prune new LTO warning.
5008         * testsuite/libgomp.c/pr46032-2.c: Likewise.
5009         * testsuite/libgomp.oacc-c-c++-common/data-clauses-kernels-ipa-pta.c: Likewise.
5010         * testsuite/libgomp.oacc-c-c++-common/data-clauses-parallel-ipa-pta.c: Likewise.
5012 2021-05-12  Tobias Burnus  <tobias@codesourcery.com>
5014         * testsuite/libgomp.c-c++-common/task-detach-12.c: New test.
5015         * testsuite/libgomp.fortran/task-detach-12.f90: New test.
5017 2021-05-11  Jakub Jelinek  <jakub@redhat.com>
5019         PR middle-end/100471
5020         * taskloop.c (GOMP_taskloop): If GOMP_TASK_FLAG_REDUCTION and not
5021         GOMP_TASK_FLAG_NOGROUP, when doing early return clear the task
5022         reduction pointer.
5023         * testsuite/libgomp.c/task-reduction-4.c: New test.
5025 2021-05-07  Tobias Burnus  <tobias@codesourcery.com>
5026             Tom de Vries  <tdevries@suse.de>
5028         * testsuite/libgomp.c-c++-common/reduction-5.c: New test, testing
5029         complex/floating-point || + && reduction with 'omp target'.
5030         * testsuite/libgomp.c-c++-common/reduction-6.c: Likewise.
5032 2021-05-04  Tobias Burnus  <tobias@codesourcery.com>
5034         * testsuite/libgomp.c-c++-common/reduction-1.c: New test.
5035         * testsuite/libgomp.c-c++-common/reduction-2.c: New test.
5036         * testsuite/libgomp.c-c++-common/reduction-3.c: New test.
5037         * testsuite/libgomp.c-c++-common/reduction-4.c: New file.
5039 2021-05-04  Tobias Burnus  <tobias@codesourcery.com>
5041         PR testsuite/100397
5042         * testsuite/libgomp.fortran/depobj-1.f90 (dep2, dep3): Move var
5043         declaration to scope of non-'depend'-guarded assignment to avoid races.
5045 2021-05-03  Tom de Vries  <tdevries@suse.de>
5047         PR target/100321
5048         * testsuite/libgomp.c/target-44.c: New test.
5050 2021-04-30  Roman Zhuykov  <zhroma@ispras.ru>
5052         * testsuite/libgomp.oacc-c-c++-common/atomic_capture-3.c: New test.
5054 2021-04-29  Tom de Vries  <tdevries@suse.de>
5056         * testsuite/libgomp.c/pr81778.c: New test.
5058 2021-04-29  Tom de Vries  <tdevries@suse.de>
5060         PR target/100232
5061         * testsuite/libgomp.c/target-43.c: New file.
5063 2021-04-28  Jakub Jelinek  <jakub@redhat.com>
5064             Tobias Burnus  <tobias@codesourcery.com>
5066         * configure.ac (OFFLOAD_DEFAULTED): AC_DEFINE if offload-defaulted.
5067         * target.c (gomp_load_plugin_for_device): If set and if a plugin
5068         can't be dlopened, silently assume it has no devices.
5069         * Makefile.in: Regenerate.
5070         * config.h.in: Regenerate.
5071         * configure: Regenerate.
5073 2021-04-26  Tobias Burnus  <tobias@codesourcery.com>
5075         * testsuite/libgomp.oacc-fortran/par-reduction-2-1.f:
5076         Use [Ww]arning in dg-bogus as FE diagnostic and default
5077         diagnostic differ and the result depends on ENABLE_OFFLOAD.
5078         * testsuite/libgomp.oacc-fortran/par-reduction-2-2.f: Likewise.
5079         * testsuite/libgomp.oacc-fortran/parallel-dims.f90: Likewise.
5080         * testsuite/libgomp.oacc-fortran/parallel-reduction.f90: Likewise.
5082 2021-04-26  Tobias Burnus  <tobias@codesourcery.com>
5084         * testsuite/libgomp.oacc-fortran/par-reduction-2-1.f:
5085         Correct spelling in dg-bogus to match -Wopenacc-parallelism.
5086         * testsuite/libgomp.oacc-fortran/par-reduction-2-2.f: Likewise.
5087         * testsuite/libgomp.oacc-fortran/parallel-dims.f90: Likewise.
5088         * testsuite/libgomp.oacc-fortran/parallel-reduction.f90: Likewise.
5090 2021-04-26  Thomas Schwinge  <thomas@codesourcery.com>
5091             Nathan Sidwell  <nathan@codesourcery.com>
5092             Tom de Vries  <vries@codesourcery.com>
5093             Julian Brown  <julian@codesourcery.com>
5094             Kwok Cheung Yeung  <kcy@codesourcery.com>
5096         * testsuite/libgomp.oacc-c-c++-common/firstprivate-1.c: Specify
5097         '-Wopenacc-parallelism', and match diagnostics, as appropriate.
5098         * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Likewise.
5099         * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c: Likewise.
5100         * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c: Likewise.
5101         * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c: Likewise.
5102         * testsuite/libgomp.oacc-c-c++-common/mode-transitions.c:
5103         Likewise.
5104         * testsuite/libgomp.oacc-c-c++-common/par-reduction-1.c: Likewise.
5105         * testsuite/libgomp.oacc-c-c++-common/par-reduction-2.c: Likewise.
5106         * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Likewise.
5107         * testsuite/libgomp.oacc-c-c++-common/parallel-reduction.c:
5108         Likewise.
5109         * testsuite/libgomp.oacc-c-c++-common/pr85381-3.c: Likewise.
5110         * testsuite/libgomp.oacc-c-c++-common/private-variables.c:
5111         Likewise.
5112         * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Likewise.
5113         * testsuite/libgomp.oacc-c-c++-common/reduction-7.c: Likewise.
5114         * testsuite/libgomp.oacc-c-c++-common/routine-g-1.c: Likewise.
5115         * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c: Likewise.
5116         * testsuite/libgomp.oacc-c-c++-common/routine-wv-2.c: Likewise.
5117         * testsuite/libgomp.oacc-c-c++-common/static-variable-1.c:
5118         Likewise.
5119         * testsuite/libgomp.oacc-fortran/optional-private.f90: Likewise.
5120         * testsuite/libgomp.oacc-fortran/par-reduction-2-1.f: Likewise.
5121         * testsuite/libgomp.oacc-fortran/par-reduction-2-2.f: Likewise.
5122         * testsuite/libgomp.oacc-fortran/parallel-dims.f90: Likewise.
5123         * testsuite/libgomp.oacc-fortran/parallel-reduction.f90: Likewise.
5124         * testsuite/libgomp.oacc-fortran/pr84028.f90: Likewise.
5125         * testsuite/libgomp.oacc-fortran/private-variables.f90: Likewise.
5126         * testsuite/libgomp.oacc-fortran/reduction-1.f90: Likewise.
5127         * testsuite/libgomp.oacc-fortran/reduction-5.f90: Likewise.
5128         * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
5129         * testsuite/libgomp.oacc-fortran/routine-7.f90: Likewise.
5131 2021-04-26  Thomas Schwinge  <thomas@codesourcery.com>
5133         * testsuite/libgomp.oacc-c-c++-common/par-reduction-1.c: Don't
5134         compile with '-w'.
5135         * testsuite/libgomp.oacc-c-c++-common/par-reduction-2.c: Likewise.
5136         * testsuite/libgomp.oacc-c-c++-common/parallel-reduction.c:
5137         Likewise.
5138         * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Likewise.
5139         * testsuite/libgomp.oacc-c-c++-common/reduction-6.c: Likewise.
5140         * testsuite/libgomp.oacc-fortran/parallel-reduction.f90: Likewise.
5141         * testsuite/libgomp.oacc-fortran/reduction-1.f90: Likewise.
5142         * testsuite/libgomp.oacc-fortran/reduction-5.f90: Likewise.
5143         * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
5144         * testsuite/libgomp.oacc-fortran/reduction-7.f90: Likewise.
5146 2021-04-22  Richard Biener  <rguenther@suse.de>
5148         * testsuite/libgomp.c-c++-common/reduction-16.c: Use -latomic
5149         only on nvptx-none.
5151 2021-04-21  Tobias Burnus  <tobias@codesourcery.com>
5153         * testsuite/libgomp.fortran/depobj-1.f90: Use omp_lib's
5154         omp_depend_kind instead of defining it as 16.
5156 2021-04-21  Tobias Burnus  <tobias@codesourcery.com>
5158         * testsuite/lib/libgomp.exp (offload_target_to_openacc_device_type):
5159         New, based on check_effective_target_offload_target_nvptx.
5160         (check_effective_target_offload_target_nvptx): Call it.
5161         (check_effective_target_offload_target_amdgcn): New.
5162         * testsuite/libgomp.c-c++-common/function-not-offloaded.c:
5163         Require target offload_target_nvptx || offload_target_amdgcn.
5164         * testsuite/libgomp.c-c++-common/variable-not-offloaded.c: Likewise.
5165         * testsuite/libgomp.c/pr86416-1.c: Likewise.
5166         * testsuite/libgomp.c/pr86416-2.c: Likewise.
5168 2021-04-21  Tobias Burnus  <tobias@codesourcery.com>
5170         * testsuite/libgomp.fortran/depobj-1.f90: New test.
5172 2021-04-19  Thomas Schwinge  <thomas@codesourcery.com>
5174         * testsuite/libgomp.oacc-c-c++-common/declare-vla-kernels-decompose-ice-1.c:
5175         '-fopenacc-kernels=[...]' -> '--param=openacc-kernels=[...]'.
5176         * testsuite/libgomp.oacc-c-c++-common/declare-vla-kernels-decompose.c:
5177         Likewise.
5178         * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c:
5179         Likewise.
5180         * testsuite/libgomp.oacc-fortran/pr94358-1.f90: Likewise.
5182 2021-04-15  Thomas Schwinge  <thomas@codesourcery.com>
5184         PR target/99555
5185         * testsuite/lib/libgomp.exp
5186         (check_effective_target_offload_device_nvptx): New.
5187         * testsuite/libgomp.c/pr99555-1.c <nvptx offload device>: Until
5188         resolved, make sure that we exit quickly, with error status,
5189         XFAILed.
5190         * testsuite/libgomp.c-c++-common/task-detach-6.c: Likewise.
5191         * testsuite/libgomp.fortran/task-detach-6.f90: Likewise.
5193 2021-04-14  Jakub Jelinek  <jakub@redhat.com>
5195         PR testsuite/100071
5196         * testsuite/libgomp.fortran/alloc-1.F90: Call c_f_pointer after last
5197         cp = omp_alloc with cp, p arguments instead of cq, q and call
5198         c_f_pointer after last cq = omp_alloc with cq, q.
5200 2021-04-11  Hafiz Abid Qadeer  <abidh@codesourcery.com>
5202         PR middle-end/98088
5203         * testsuite/libgomp.oacc-c-c++-common/collapse-2.c: Add check
5204         for loop with GT/GE condition.
5205         * testsuite/libgomp.oacc-c-c++-common/collapse-3.c: Likewise.
5207 2021-04-09  Thomas Schwinge  <thomas@codesourcery.com>
5209         PR middle-end/84991
5210         PR middle-end/84992
5211         PR middle-end/90779
5212         * testsuite/libgomp.oacc-c-c++-common/static-variable-1.c: New.
5214 2021-04-09  Jakub Jelinek  <jakub@redhat.com>
5216         PR libgomp/99984
5217         * team.c (gomp_thread_start): Call pthread_setspecific for
5218         !(defined HAVE_TLS || defined USE_EMUTLS) only after local_thr
5219         has been initialized to avoid false positive warning.
5221 2021-03-29  Tobias Burnus  <tobias@codesourcery.com>
5223         PR target/99555
5224         * testsuite/lib/on_device_arch.c: Move to ...
5225         * testsuite/libgomp.c-c++-common/on_device_arch.h: ... here.
5226         * testsuite/libgomp.fortran/on_device_arch.c: New file;
5227         #include on_device_arch.h.
5228         * testsuite/libgomp.c-c++-common/task-detach-6.c: #include
5229         on_device_arch.h instead of using dg-additional-source.
5230         * testsuite/libgomp.c/pr99555-1.c: Likewise.
5231         * testsuite/libgomp.fortran/task-detach-6.f90: Update to use
5232         on_device_arch.c without relative paths.
5234 2021-03-25  Thomas Schwinge  <thomas@codesourcery.com>
5236         * plugin/plugin-gcn.c (init_environment_variables): Don't prepend
5237         the 'HSA_RUNTIME_LIB' path to 'libhsa-runtime64.so'.
5238         * plugin/configfrag.ac (HSA_RUNTIME_LIB): Clean up.
5239         * config.h.in: Regenerate.
5240         * configure: Likewise.
5242 2021-03-25  Thomas Schwinge  <thomas@codesourcery.com>
5244         PR target/99555
5245         * testsuite/lib/on_device_arch.c: New file.
5246         * testsuite/libgomp.c/pr99555-1.c: Likewise.
5247         * testsuite/libgomp.c-c++-common/task-detach-6.c: Until resolved,
5248         skip for nvptx offloading, with error status.
5249         * testsuite/libgomp.fortran/task-detach-6.f90: Likewise.
5251 2021-03-25  Thomas Schwinge  <thomas@codesourcery.com>
5253         * testsuite/libgomp.oacc-fortran/derivedtypes-arrays-1.f90:
5254         OpenACC 'serial' construct diagnostic for nvptx offloading.
5256 2021-03-15  Tobias Burnus  <tobias@codesourcery.com>
5258         PR c++/99509
5259         * testsuite/libgomp.c-c++-common/declare_target-1.c: New test.
5261 2021-03-12  Tobias Burnus  <tobias@codesourcery.com>
5263         PR fortran/98858
5264         * testsuite/libgomp.fortran/use_device_ptr-3.f90: New test.
5266 2021-03-04  Jakub Jelinek  <jakub@redhat.com>
5268         * configure.ac: Add AC_CHECK_SIZEOF([void *]).
5269         * plugin/configfrag.ac: Check $ac_cv_sizeof_void_p value instead of
5270         checking of -m32 or -mx32 options on the command line.
5271         * config.h.in: Regenerated.
5272         * configure: Regenerated.
5274 2021-02-27  Iain Sandoe  <iain@sandoe.co.uk>
5276         * testsuite/libgomp.c-c++-common/pr96390.c: Require alias
5277         support from the target.
5279 2021-02-25  Kwok Cheung Yeung  <kcy@codesourcery.com>
5280             Jakub Jelinek  <jakub@redhat.com>
5282         PR libgomp/98738
5283         * libgomp.h (enum gomp_task_kind): Add GOMP_TASK_DETACHED.
5284         (struct gomp_task): Replace detach and completion_sem fields with
5285         union containing completion_sem and detach_team.  Add deferred_p
5286         field.
5287         (struct gomp_team): Remove task_detach_queue.
5288         * task.c: Include assert.h.
5289         (gomp_init_task): Initialize deferred_p and completion_sem fields.
5290         Rearrange initialization order of fields.
5291         (task_fulfilled_p): Delete.
5292         (GOMP_task): Use address of task as the event handle.  Remove
5293         initialization of detach field.  Initialize deferred_p field.
5294         Use automatic local for completion_sem.  Initialize detach_team field
5295         for deferred tasks.
5296         (gomp_barrier_handle_tasks): Remove handling of task_detach_queue.
5297         Set kind of suspended detach task to GOMP_TASK_DETACHED and
5298         decrement task_running_count.  Move finish_cancelled block out of
5299         else branch.  Relocate call to gomp_team_barrier_done.
5300         (GOMP_taskwait): Handle tasks with completion events that have not
5301         been fulfilled.
5302         (GOMP_taskgroup_end): Likewise.
5303         (omp_fulfill_event): Use address of task as event handle.  Post to
5304         completion_sem for undeferred tasks.  Clear detach_team if task
5305         has not finished.  For finished tasks, handle post-execution tasks,
5306         call gomp_team_barrier_wake if necessary, and free task.
5307         * team.c (gomp_new_team): Remove initialization of task_detach_queue.
5308         (free_team): Remove free of task_detach_queue.
5309         * testsuite/libgomp.c-c++-common/task-detach-1.c: Fix formatting.
5310         * testsuite/libgomp.c-c++-common/task-detach-2.c: Fix formatting.
5311         * testsuite/libgomp.c-c++-common/task-detach-3.c: Fix formatting.
5312         * testsuite/libgomp.c-c++-common/task-detach-4.c: Fix formatting.
5313         * testsuite/libgomp.c-c++-common/task-detach-5.c: Fix formatting.
5314         Change data-sharing of detach events on enclosing parallel to private.
5315         * testsuite/libgomp.c-c++-common/task-detach-6.c: Likewise.  Remove
5316         taskwait directive.
5317         * testsuite/libgomp.c-c++-common/task-detach-7.c: New.
5318         * testsuite/libgomp.c-c++-common/task-detach-8.c: New.
5319         * testsuite/libgomp.c-c++-common/task-detach-9.c: New.
5320         * testsuite/libgomp.c-c++-common/task-detach-10.c: New.
5321         * testsuite/libgomp.c-c++-common/task-detach-11.c: New.
5322         * testsuite/libgomp.fortran/task-detach-1.f90: Fix formatting.
5323         * testsuite/libgomp.fortran/task-detach-2.f90: Fix formatting.
5324         * testsuite/libgomp.fortran/task-detach-3.f90: Fix formatting.
5325         * testsuite/libgomp.fortran/task-detach-4.f90: Fix formatting.
5326         * testsuite/libgomp.fortran/task-detach-5.f90: Fix formatting.
5327         Change data-sharing of detach events on enclosing parallel to private.
5328         * testsuite/libgomp.fortran/task-detach-6.f90: Likewise.  Remove
5329         taskwait directive.
5330         * testsuite/libgomp.fortran/task-detach-7.f90: New.
5331         * testsuite/libgomp.fortran/task-detach-8.f90: New.
5332         * testsuite/libgomp.fortran/task-detach-9.f90: New.
5333         * testsuite/libgomp.fortran/task-detach-10.f90: New.
5334         * testsuite/libgomp.fortran/task-detach-11.f90: New.
5336 2021-02-22  Tobias Burnus  <tobias@codesourcery.com>
5338         PR fortran/99171
5339         * testsuite/libgomp.fortran/dummy-procs-1.f90: New test.
5341 2021-02-17  Julian Brown  <julian@codesourcery.com>
5343         * testsuite/libgomp.oacc-fortran/array-stride-dt-1.f90: Remove
5344         expected errors.
5346 2021-02-17  Julian Brown  <julian@codesourcery.com>
5348         * testsuite/libgomp.oacc-fortran/derivedtypes-arrays-1.f90: New test.
5349         * testsuite/libgomp.oacc-fortran/update-dt-array.f90: Likewise.
5351 2021-02-11  UroÅ¡ Bizjak  <ubizjak@gmail.com>
5353         * config/linux/x86/futex.h (__futex_wait):
5354         Revert output type back to long.
5355         (__futex_wake): Ditto.
5356         (futex_wait): Update for revert.
5357         (futex_wake): Ditto.
5359 2021-02-11  UroÅ¡ Bizjak  <ubizjak@gmail.com>
5361         * config/linux/x86/futex.h (__futex_wait): New static inline
5362         wrapper function.  Correct output type to int and
5363         timeout type to void *.
5364         (__futex_wake): New static inline wrapper function.
5365         Correct output type to int.
5366         (futex_wait): Use __futex_wait.
5367         (futex_wake): Use __futex_wake.
5369 2021-02-10  Julian Brown  <julian@codesourcery.com>
5371         PR fortran/98979
5372         * testsuite/libgomp.oacc-fortran/array-stride-dt-1.f90: Add expected
5373         errors.
5375 2021-02-04  Julian Brown  <julian@codesourcery.com>
5377         * testsuite/libgomp.oacc-fortran/array-stride-dt-1.f90: New test.
5379 2021-02-03  Andrew Stubbs  <ams@codesourcery.com>
5381         * plugin/plugin-gcn.c (EF_AMDGPU_MACH): Add
5382         EF_AMDGPU_MACH_AMDGCN_GFX908.
5383         (gcn_gfx908_s): New constant string.
5384         (isa_hsa_name): Add gfx908.
5385         (isa_code): Add gfx908.
5387 2021-01-25  Kwok Cheung Yeung  <kcy@codesourcery.com>
5389         * libgomp.texi (omp_fulfill_event): New entry.
5391 2021-01-20  Jakub Jelinek  <jakub@redhat.com>
5393         * task.c (GOMP_task): Rename priority argument to priority_arg,
5394         add priority automatic variable and modify that variable.  Instead of
5395         clearing detach argument when GOMP_TASK_FLAG_DETACH bit is not set,
5396         check flags for that bit.
5398 2021-01-19  Tobias Burnus  <tobias@codesourcery.com>
5400         PR fortran/98476
5401         * testsuite/libgomp.fortran/is_device_ptr-1.f90: New test.
5403 2021-01-18  Andreas Schwab  <schwab@suse.de>
5405         * configure.tgt (riscv64*-*-linux*): Add linux to config_path.
5407 2021-01-18  Sebastian Huber  <sebastian.huber@embedded-brains.de>
5409         * config/rtems/sem.h (gomp_sem_getcount): New function.
5411 2021-01-18  Jakub Jelinek  <jakub@redhat.com>
5413         * config/linux/sem.h (gomp_sem_getcount): New function.
5414         * config/posix/sem.h (gomp_sem_getcount): New function.
5415         * config/posix/sem.c (gomp_sem_getcount): New function.
5416         * config/accel/sem.h (gomp_sem_getcount): New function.
5417         * task.c (task_fulfilled_p): Use gomp_sem_getcount.
5418         (omp_fulfill_event): Likewise.
5420 2021-01-16  Kwok Cheung Yeung  <kcy@codesourcery.com>
5422         * fortran.c (omp_fulfill_event_): New.
5423         * libgomp.h (struct gomp_task): Add detach and completion_sem fields.
5424         (struct gomp_team): Add task_detach_queue and task_detach_count
5425         fields.
5426         * libgomp.map (OMP_5.0.1): Add omp_fulfill_event and omp_fulfill_event_.
5427         * libgomp_g.h (GOMP_task): Add extra argument.
5428         * omp.h.in (enum omp_event_handle_t): New.
5429         (omp_fulfill_event): New.
5430         * omp_lib.f90.in (omp_event_handle_kind): New.
5431         (omp_fulfill_event): New.
5432         * omp_lib.h.in (omp_event_handle_kind): New.
5433         (omp_fulfill_event): Declare.
5434         * priority_queue.c (priority_tree_find): New.
5435         (priority_list_find): New.
5436         (priority_queue_find): New.
5437         * priority_queue.h (priority_queue_predicate): New.
5438         (priority_queue_find): New.
5439         * task.c (gomp_init_task): Initialize detach field.
5440         (task_fulfilled_p): New.
5441         (GOMP_task): Add detach argument.  Ignore detach argument if
5442         GOMP_TASK_FLAG_DETACH not set in flags.  Initialize completion_sem
5443         field.  Copy address of completion_sem into detach argument and
5444         into the start of the data record.  Wait for detach event if task
5445         not deferred.
5446         (gomp_barrier_handle_tasks): Queue tasks with unfulfilled events.
5447         Remove completed tasks and requeue dependent tasks.
5448         (omp_fulfill_event): New.
5449         * team.c (gomp_new_team): Initialize task_detach_queue and
5450         task_detach_count fields.
5451         (free_team): Free task_detach_queue field.
5452         * testsuite/libgomp.c-c++-common/task-detach-1.c: New testcase.
5453         * testsuite/libgomp.c-c++-common/task-detach-2.c: New testcase.
5454         * testsuite/libgomp.c-c++-common/task-detach-3.c: New testcase.
5455         * testsuite/libgomp.c-c++-common/task-detach-4.c: New testcase.
5456         * testsuite/libgomp.c-c++-common/task-detach-5.c: New testcase.
5457         * testsuite/libgomp.c-c++-common/task-detach-6.c: New testcase.
5458         * testsuite/libgomp.fortran/task-detach-1.f90: New testcase.
5459         * testsuite/libgomp.fortran/task-detach-2.f90: New testcase.
5460         * testsuite/libgomp.fortran/task-detach-3.f90: New testcase.
5461         * testsuite/libgomp.fortran/task-detach-4.f90: New testcase.
5462         * testsuite/libgomp.fortran/task-detach-5.f90: New testcase.
5463         * testsuite/libgomp.fortran/task-detach-6.f90: New testcase.
5465 2021-01-15  Jakub Jelinek  <jakub@redhat.com>
5467         PR target/70454
5468         * configure.tgt: For i?86 and x86_64 determine if -march=i486 needs to
5469         be added through preprocessor check on
5470         __GCC_HAVE_SYNC_COMPARE_AND_SWAP_4.
5472 2021-01-14  Thomas Schwinge  <thomas@codesourcery.com>
5474         PR libgomp/65099
5475         * plugin/configfrag.ac (PLUGIN_NVPTX): Restrict to supported
5476         configurations.
5477         * configure: Regenerate.
5478         * plugin/plugin-nvptx.c (nvptx_get_num_devices): Remove 64-bit
5479         check.
5481 2021-01-05  Samuel Thibault  <samuel.thibault@ens-lyon.org>
5483         * configure: Re-generate.
5485 2021-01-05  Samuel Thibault  <samuel.thibault@ens-lyon.org>
5487         * configure: Re-generate.
5489 2021-01-05  Julian Brown  <julian@codesourcery.com>
5491         * plugin/plugin-nvptx.c (SOFTSTACK_CACHE_LIMIT): New define.
5492         (struct ptx_device): Add omp_stacks struct.
5493         (nvptx_open_device): Initialise cached-stacks housekeeping info.
5494         (nvptx_close_device): Free cached stacks block and mutex.
5495         (nvptx_stacks_free): New function.
5496         (nvptx_alloc): Add SUPPRESS_ERRORS parameter.
5497         (GOMP_OFFLOAD_alloc): Add strategies for freeing soft-stacks block.
5498         (nvptx_stacks_alloc): Rename to...
5499         (nvptx_stacks_acquire): This.  Cache stacks block between runs if same
5500         size or smaller is required.
5501         (nvptx_stacks_free): Remove.
5502         (GOMP_OFFLOAD_run): Call nvptx_stacks_acquire and lock stacks block
5503         during kernel execution.
5505 2021-01-01  Jakub Jelinek  <jakub@redhat.com>
5507         * libgomp.texi: Bump @copying's copyright year.
5509 2020-12-28  Gerald Pfeifer  <gerald@pfeifer.com>
5511         * libgomp.texi (Top): Avoid bad "up" link.
5513 2020-12-18  Jakub Jelinek  <jakub@redhat.com>
5515         * testsuite/libgomp.c/task-6.c: New test.
5517 2020-12-09  Andrew Stubbs  <ams@codesourcery.com>
5519         * plugin/plugin-gcn.c: Include hsa_ext_amd.h.
5520         (HSA_AMD_AGENT_INFO_COMPUTE_UNIT_COUNT): Delete redundant definition.
5522 2020-12-08  Tobias Burnus  <tobias@codesourcery.com>
5524         * testsuite/libgomp.fortran/scan-1.f90: New test.
5526 2020-12-05  Iain Sandoe  <iain@sandoe.co.uk>
5528         PR target/97865
5529         * configure: Regenerate.
5531 2020-11-29  John David Anglin  <danglin@gcc.gnu.org>
5533         * configure: Regenerate.
5535 2020-11-25  Thomas Schwinge  <thomas@codesourcery.com>
5537         * testsuite/libgomp.oacc-c++/cache-1.C: New.
5538         * testsuite/libgomp.oacc-c-c++-common/cache-1.c: Update.
5540 2020-11-25  Andrew Stubbs  <ams@codesourcery.com>
5542         * testsuite/libgomp.oacc-fortran/atomic_capture-1.f90 (main): Adjust
5543         expected results.
5545 2020-11-24  Andrew Stubbs  <ams@codesourcery.com>
5547         * plugin/plugin-gcn.c: Don't redefine relocations if elf.h has them.
5548         (reserved): Delete unused define.
5550 2020-11-24  Thomas Schwinge  <thomas@codesourcery.com>
5552         * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c: Avoid
5553         Tcl 8.5-specific behavior.
5554         * testsuite/libgomp.oacc-fortran/pr94358-1.f90: Likewise.
5556 2020-11-18  Kwok Cheung Yeung  <kcy@codesourcery.com>
5558         * env.c (gomp_global_icv): Remove nest_var field.  Add
5559         max_active_levels_var field.
5560         (gomp_max_active_levels_var): Remove.
5561         (parse_boolean): Return true on success.
5562         (handle_omp_display_env): Express OMP_NESTED in terms of
5563         max_active_levels_var.  Change format specifier for
5564         max_active_levels_var.
5565         (initialize_env): Set max_active_levels_var from
5566         OMP_MAX_ACTIVE_LEVELS, OMP_NESTED, OMP_NUM_THREADS and
5567         OMP_PROC_BIND.
5568         * icv.c (omp_set_nested): Express in terms of
5569         max_active_levels_var.
5570         (omp_get_nested): Likewise.
5571         (omp_set_max_active_levels): Use max_active_levels_var field instead
5572         of gomp_max_active_levels_var.
5573         (omp_get_max_active_levels): Likewise.
5574         * libgomp.h (struct gomp_task_icv): Remove nest_var field.  Add
5575         max_active_levels_var field.
5576         (gomp_supported_active_levels): Set to UCHAR_MAX.
5577         (gomp_max_active_levels_var): Delete.
5578         * libgomp.texi (omp_get_nested): Update documentation.
5579         (omp_set_nested): Likewise.
5580         (OMP_MAX_ACTIVE_LEVELS): Likewise.
5581         (OMP_NESTED): Likewise.
5582         (OMP_NUM_THREADS): Likewise.
5583         (OMP_PROC_BIND): Likewise.
5584         * parallel.c (gomp_resolve_num_threads): Replace reference
5585         to nest_var with max_active_levels_var.  Use max_active_levels_var
5586         field instead of gomp_max_active_levels_var.
5588 2020-11-18  Tobias Burnus  <tobias@codesourcery.com>
5590         * testsuite/libgomp.c/usleep.h (fallback_usleep): Renamed from
5591         nvptx_usleep; use also for device={arch(gcn)}.
5593 2020-11-14  Jakub Jelinek  <jakub@redhat.com>
5595         * testsuite/libgomp.c-c++-common/allocate-1.c (struct S): New type.
5596         (foo): Add tests for non-VLA private and firstprivate clauses on
5597         omp task.
5598         (bar): Likewise.  Remove taking of address from private/firstprivate
5599         variables.
5600         * testsuite/libgomp.c++/allocate-1.C (struct S): New type.
5601         (foo): Add p, q, px and s arguments.  Add tests for array reductions
5602         and for non-VLA private and firstprivate clauses on omp task.
5603         (bar): Removed.
5604         (main): Adjust foo caller.  Don't call bar.
5606 2020-11-13  Gergö Barany  <gergo@codesourcery.com>
5607             Thomas Schwinge  <thomas@codesourcery.com>
5609         * testsuite/libgomp.oacc-c-c++-common/declare-vla-kernels-decompose-ice-1.c:
5610         New.
5611         * testsuite/libgomp.oacc-c-c++-common/declare-vla-kernels-decompose.c:
5612         Likewise.
5613         * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c:
5614         Likewise.
5615         * testsuite/libgomp.oacc-c-c++-common/declare-vla.c: Adjust.
5616         * testsuite/libgomp.oacc-fortran/pr94358-1.f90: Likewise.
5618 2020-11-13  Gergö Barany  <gergo@codesourcery.com>
5619             Thomas Schwinge  <thomas@codesourcery.com>
5621         PR fortran/94358
5622         * testsuite/libgomp.oacc-fortran/pr94358-1.f90: New.
5624 2020-11-13  Jakub Jelinek  <jakub@redhat.com>
5626         * testsuite/libgomp.c-c++-common/allocate-1.c (foo): Add tests
5627         for array reductions.
5628         (main): Adjust foo callers.
5630 2020-11-12  Jakub Jelinek  <jakub@redhat.com>
5632         * libgomp.map (GOMP_alloc, GOMP_free): Export at GOMP_5.0.1.
5633         * omp.h.in (omp_alloc): Add malloc and alloc_size attributes.
5634         * libgomp_g.h (GOMP_alloc, GOMP_free): Declare.
5635         * allocator.c (omp_aligned_alloc): New for now static function,
5636         add alignment argument and handle it.
5637         (omp_alloc): Reimplement using omp_aligned_alloc.
5638         (GOMP_alloc, GOMP_free): New functions.
5639         (omp_free): Add ialias.
5640         * testsuite/libgomp.c-c++-common/allocate-1.c: New test.
5641         * testsuite/libgomp.c++/allocate-1.C: New test.
5643 2020-11-12  Thomas Schwinge  <thomas@codesourcery.com>
5645         PR fortran/97782
5646         * testsuite/libgomp.oacc-fortran/attach-descriptor-1.f90: Adjust.
5648 2020-11-10  Chung-Lin Tang  <cltang@codesourcery.com>
5650         * libgomp.h (enum gomp_map_vars_kind): Adjust enum values to be bit-flag
5651         usable.
5652         * oacc-mem.c (acc_map_data): Adjust gomp_map_vars argument flags to
5653         'GOMP_MAP_VARS_OPENACC | GOMP_MAP_VARS_ENTER_DATA'.
5654         (goacc_enter_datum): Likewise for call to gomp_map_vars_async.
5655         (goacc_enter_data_internal): Likewise.
5656         * target.c (gomp_map_vars_internal):
5657         Change checks of GOMP_MAP_VARS_ENTER_DATA to use bit-and (&). Adjust use
5658         of gomp_attach_pointer for OpenMP cases.
5659         (gomp_exit_data): Add handling of GOMP_MAP_DETACH.
5660         (GOMP_target_enter_exit_data): Add handling of GOMP_MAP_ATTACH.
5661         * testsuite/libgomp.c-c++-common/ptr-attach-1.c: New testcase.
5663 2020-11-05  Ulrich Drepper  <drepper@redhat.com>
5664             Kwok Cheung Yeung  <kcy@codesourcery.com>
5666         * Makefile.am (%.mod): Add -cpp and -fopenmp to compile flags.
5667         * Makefile.in: Regenerate.
5668         * fortran.c: Wrap uses of omp_set_nested and omp_get_nested with
5669         pragmas to ignore -Wdeprecated-declarations warnings.
5670         * icv.c: Likewise.
5671         * omp.h.in (__GOMP_DEPRECATED_5_0): Define.
5672         Mark omp_lock_hint_* enum values, omp_lock_hint_t, omp_set_nested,
5673         and omp_get_nested with __GOMP_DEPRECATED_5_0.
5674         * omp_lib.f90.in: Mark omp_get_nested and omp_set_nested as
5675         deprecated.
5676         * testsuite/libgomp.c++/affinity-1.C: Add -Wno-deprecated-declarations
5677         to test options.
5678         * testsuite/libgomp.c/affinity-1.c: Likewise.
5679         * testsuite/libgomp.c/affinity-2.c: Likewise.
5680         * testsuite/libgomp.c/appendix-a/a.15.1.c: Likewise.
5681         * testsuite/libgomp.c/lib-1.c: Likewise.
5682         * testsuite/libgomp.c/nested-1.c: Likewise.
5683         * testsuite/libgomp.c/nested-2.c: Likewise.
5684         * testsuite/libgomp.c/nested-3.c: Likewise.
5685         * testsuite/libgomp.c/pr32362-1.c: Likewise.
5686         * testsuite/libgomp.c/pr32362-2.c: Likewise.
5687         * testsuite/libgomp.c/pr32362-3.c: Likewise.
5688         * testsuite/libgomp.c/pr35549.c: Likewise.
5689         * testsuite/libgomp.c/pr42942.c: Likewise.
5690         * testsuite/libgomp.c/pr61200.c: Likewise.
5691         * testsuite/libgomp.c/sort-1.c: Likewise.
5692         * testsuite/libgomp.c/target-5.c: Likewise.
5693         * testsuite/libgomp.c/target-6.c: Likewise.
5694         * testsuite/libgomp.c/teams-1.c: Likewise.
5695         * testsuite/libgomp.c/thread-limit-1.c: Likewise.
5696         * testsuite/libgomp.c/thread-limit-2.c: Likewise.
5697         * testsuite/libgomp.c/thread-limit-4.c: Likewise.
5698         * testsuite/libgomp.fortran/affinity1.f90: Likewise.
5699         * testsuite/libgomp.fortran/lib1.f90: Likewise.
5700         * testsuite/libgomp.fortran/lib2.f: Likewise.
5701         * testsuite/libgomp.fortran/nested1.f90: Likewise.
5702         * testsuite/libgomp.fortran/teams1.f90: Likewise.
5704 2020-11-02  Thomas Schwinge  <thomas@codesourcery.com>
5706         PR target/85486
5707         * testsuite/libgomp.oacc-c-c++-common/pr85486-2.c: Simplify and enhance.
5708         * testsuite/libgomp.oacc-c-c++-common/pr85486-3.c: Likewise.
5709         * testsuite/libgomp.oacc-c-c++-common/pr85486.c: Likewise.
5711 2020-11-02  Thomas Schwinge  <thomas@codesourcery.com>
5713         PR testsuite/80219
5714         PR testsuite/85303
5715         * testsuite/lib/libgomp.exp (libgomp_init): Set
5716         'gcc_warning_prefix', 'gcc_error_prefix'.
5718 2020-10-30  Jakub Jelinek  <jakub@redhat.com>
5720         * target.c (gomp_map_vars_internal): Use FIELD_TGT_EMPTY macro
5721         even in field_tgt_clear initializer.
5723 2020-10-28  Jakub Jelinek  <jakub@redhat.com>
5725         * testsuite/libgomp.c/target-42.c: New test.
5727 2020-10-28  Jakub Jelinek  <jakub@redhat.com>
5728             Tom de Vries  <tdevries@suse.de>
5730         PR testsuite/81690
5731         * testsuite/libgomp.c/usleep.h: New file.
5732         * testsuite/libgomp.c/target-32.c: Include usleep.h.
5733         (main): Use tgt_usleep instead of usleep.
5734         * testsuite/libgomp.c/thread-limit-2.c: Include usleep.h.
5735         (main): Use tgt_usleep instead of usleep.
5737 2020-10-28  Jakub Jelinek  <jakub@redhat.com>
5739         PR lto/96680
5740         * testsuite/libgomp.c/declare-variant-1.c: New test.
5742 2020-10-22  Jakub Jelinek  <jakub@redhat.com>
5744         * testsuite/libgomp.c/target-41.c: New test.
5746 2020-10-22  Jakub Jelinek  <jakub@redhat.com>
5748         * icv.c (omp_get_initial_device): Remove including corresponding
5749         ialias.
5750         * icv-device.c (omp_get_initial_device): New function.  Return
5751         gomp_get_num_devices ().  Add ialias.
5752         * target.c (resolve_device): Don't fail with
5753         OMP_TARGET_OFFLOAD=mandatory if device_id is equal to
5754         gomp_get_num_devices ().
5755         (omp_target_alloc, omp_target_free, omp_target_is_present,
5756         omp_target_memcpy, omp_target_memcpy_rect, omp_target_associate_ptr,
5757         omp_target_disassociate_ptr, omp_pause_resource): Use
5758         gomp_get_num_devices () instead of GOMP_DEVICE_HOST_FALLBACK on the
5759         first use in the functions, in uses dominated by the
5760         gomp_get_num_devices call use num_devices_openmp instead.
5761         * libgomp.texi (omp_get_initial_device): Document.
5762         * config/gcn/icv-device.c (omp_get_initial_device): New function.
5763         Add ialias.
5764         * config/nvptx/icv-device.c (omp_get_initial_device): Likewise.
5765         * testsuite/libgomp.c/target-40.c: New test.
5767 2020-10-21  Jakub Jelinek  <jakub@redhat.com>
5769         * env.c (parse_target_offload): Change new_offload var type to int,
5770         preinitialize to -1, remove found var and test new_offload != -1
5771         instead of found.
5773 2020-10-20  Jakub Jelinek  <jakub@redhat.com>
5775         * target.c (gomp_target_init): Inside of the function, use automatic
5776         variables corresponding to num_devices, num_devices_openmp and devices
5777         global variables and update the globals only at the end of the
5778         function.
5780 2020-10-20  Kwok Cheung Yeung  <kcy@codesourcery.com>
5782         * env.c (gomp_target_offload_var): New.
5783         (parse_target_offload): New.
5784         (handle_omp_display_env): Print value of OMP_TARGET_OFFLOAD.
5785         (initialize_env): Parse OMP_TARGET_OFFLOAD.
5786         * libgomp.h (gomp_target_offload_t): New.
5787         (gomp_target_offload_var): New.
5788         * libgomp.texi (OMP_TARGET_OFFLOAD): New section.
5789         * target.c (resolve_device): Generate error if device not found and
5790         offloading is mandatory.
5791         (gomp_target_fallback): Generate error if offloading is mandatory.
5792         (GOMP_target): Add argument in call to gomp_target_fallback.
5793         (GOMP_target_ext): Likewise.
5794         (gomp_target_data_fallback): Generate error if offloading is mandatory.
5795         (GOMP_target_data): Add argument in call to gomp_target_data_fallback.
5796         (GOMP_target_data_ext): Likewise.
5797         (gomp_target_task_fn): Add argument in call to gomp_target_fallback.
5798         (gomp_target_init): Return early if offloading is disabled.
5800 2020-10-15  Kwok Cheung Yeung  <kcy@codesourcery.com>
5802         * libgomp.texi (omp_get_max_active_levels): Modify description.
5803         (omp_get_supported_active_levels): Make descriptions consistent.
5805 2020-10-14  Jakub Jelinek  <jakub@redhat.com>
5807         * libgomp.texi (omp_get_supported_active_levels): Fix a typo.
5809 2020-10-13  Kwok Cheung Yeung  <kcy@codesourcery.com>
5811         * env.c (gomp_max_active_levels_var): Initialize to
5812         gomp_supported_active_levels.
5813         (initialize_env): Limit gomp_max_active_levels_var to be at most
5814         equal to gomp_supported_active_levels.
5815         * fortran.c (omp_get_supported_active_levels): Add ialias_redirect.
5816         (omp_get_supported_active_levels_): New.
5817         * icv.c (omp_set_max_active_levels): Limit gomp_max_active_levels_var
5818         to at most equal to gomp_supported_active_levels.
5819         (omp_get_supported_active_levels): New.
5820         * libgomp.h (gomp_supported_active_levels): New.
5821         * libgomp.map (OMP_5.0.1): Add omp_get_supported_active_levels and
5822         omp_get_supported_active_levels_.
5823         * libgomp.texi (omp_get_supported_active_levels): New.
5824         (omp_set_max_active_levels): Update.  Add reference to
5825         omp_get_supported_active_levels.
5826         * omp.h.in (omp_get_supported_active_levels): New.
5827         * omp_lib.f90.in (omp_get_supported_active_levels): New.
5828         * omp_lib.h.in (omp_get_supported_active_levels): New.
5829         * testsuite/libgomp.c/lib-2.c (main): Check omp_get_max_active_levels
5830         against omp_get_supported_active_levels.
5831         * testsuite/libgomp.fortran/lib4.f90 (lib4): Likewise.
5833 2020-10-11  Clement Chigot  <clement.chigot@atos.net>
5835         * config/t-aix: Delete and recreate libgomp before creating
5836         FAT library.
5838 2020-10-08  Tom de Vries  <tdevries@suse.de>
5840         PR libgomp/81802
5841         * plugin/plugin-nvptx.c (GOMP_OFFLOAD_run): Report launch
5842         dimensions.
5844 2020-10-06  Tom de Vries  <tdevries@suse.de>
5846         * testsuite/libgomp.oacc-fortran/declare-5.f90: Add xfail for PR92790.
5848 2020-10-06  Tom de Vries  <tdevries@suse.de>
5850         PR middle-end/90861
5851         * testsuite/libgomp.oacc-c-c++-common/declare-vla.c: Remove xfail.
5853 2020-10-05  Tom de Vries  <tdevries@suse.de>
5855         PR fortran/95654
5856         * testsuite/libgomp.fortran/pr95654.f90: New test.
5858 2020-10-02  Tobias Burnus  <tobias@codesourcery.com>
5860         * Makefile.in: Regenerate with automake 1.15.1.
5861         * aclocal.m4: Likewise.
5862         * configure: Likewise.
5863         * testsuite/Makefile.in: Likewise.
5865 2020-09-30  Andrew Stubbs  <ams@codesourcery.com>
5867         * parallel.c (gomp_resolve_num_threads): Ignore nest_var on nvptx
5868         and amdgcn targets.
5870 2020-09-30  Tobias Burnus  <tobias@codesourcery.com>
5872         * testsuite/libgomp.fortran/declare-target-3.f90: New test.
5874 2020-09-29  Andrew Stubbs  <ams@codesourcery.com>
5876         * config/gcn/bar.c (gomp_barrier_wait_end): Skip the barrier if the
5877         total number of threads is one.
5878         (gomp_team_barrier_wake): Likewise.
5879         (gomp_team_barrier_wait_end): Likewise.
5880         (gomp_team_barrier_wait_cancel_end): Likewise.
5881         * config/nvptx/bar.c (gomp_barrier_wait_end): Likewise.
5882         (gomp_team_barrier_wake): Likewise.
5883         (gomp_team_barrier_wait_end): Likewise.
5884         (gomp_team_barrier_wait_cancel_end): Likewise.
5885         * testsuite/libgomp.c-c++-common/nested-parallel-unbalanced.c: New test.
5887 2020-09-28  Tobias Burnus  <tobias@codesourcery.com>
5889         PR middle-end/96390
5890         * testsuite/libgomp.c++/pr96390.C: New test.
5891         * testsuite/libgomp.c-c++-common/pr96390.c: New test.
5893 2020-09-27  Clement Chigot  <clement.chigot@atos.net>
5895         * config/t-aix: Use $(AR) without -X32_64.
5897 2020-09-25  Jakub Jelinek  <jakub@redhat.com>
5899         * testsuite/libgomp.c/loop-25.c: New test.
5901 2020-09-22  Tobias Burnus  <tobias@codesourcery.com>
5903         PR fortran/95654
5904         * testsuite/libgomp.fortran/pr66199-5.f90: Make stop codes unique.
5906 2020-09-22  Tom de Vries  <tdevries@suse.de>
5908         * plugin/plugin-nvptx.c (link_ptx): Print elog if cuLinkComplete call
5909         fails.
5911 2020-09-16  Nathan Sidwell  <nathan@acm.org>
5913         * testsuite/libgomp.c++/udr-3.C: Add missing ctor.
5915 2020-09-15  Tobias Burnus  <tobias@codesourcery.com>
5917         PR fortran/96668
5918         * target.c (gomp_map_vars_internal): Initialize has_nullptr.
5920 2020-09-15  Tobias Burnus  <tobias@codesourcery.com>
5922         PR fortran/96668
5923         * libgomp.h (struct target_var_desc): Add has_null_ptr_assoc member.
5924         * target.c (gomp_map_vars_existing): Add always_to_flag flag.
5925         (gomp_map_vars_existing): Update call to it.
5926         (gomp_map_fields_existing): Likewise
5927         (gomp_map_vars_internal): Update PSET handling such that if a nullptr is
5928         now allocated or if GOMP_MAP_POINTER is used PSET is updated and pointer
5929         remapped.
5930         (GOMP_target_enter_exit_data): Hanlde GOMP_MAP_ALWAYS_POINTER like
5931         GOMP_MAP_POINTER.
5932         * testsuite/libgomp.fortran/map-alloc-ptr-1.f90: New test.
5933         * testsuite/libgomp.fortran/map-alloc-ptr-2.f90: New test.
5935 2020-09-14  Tom de Vries  <tdevries@suse.de>
5937         * config/nvptx/atomic.c: New file.  Add
5938         __sync_val_compare_and_swap_16.
5939         * testsuite/libgomp.c-c++-common/reduction-16.c: Add -latomic for
5940         target offload_target_nvptx.
5942 2020-09-08  Julian Brown  <julian@codesourcery.com>
5944         * testsuite/libgomp.oacc-c-c++-common/atomic_capture-2.c: Remove
5945         iteration-ordering assumptions.
5947 2020-09-08  Julian Brown  <julian@codesourcery.com>
5949         * testsuite/libgomp.oacc-fortran/collapse-1.f90: Fix race condition.
5950         * testsuite/libgomp.oacc-fortran/collapse-2.f90: Likewise.
5952 2020-08-20  Chung-Lin Tang  <cltang@codesourcery.com>
5954         * plugin/plugin-nvptx.c (nvptx_free):
5955         Change "GOMP_PLUGIN_acc_thread () == NULL" test into check of
5956         CUDA_ERROR_NOT_PERMITTED status for cuMemGetAddressRange. Adjust
5957         comments.
5959 2020-08-20  Tobias Burnus  <tobias@codesourcery.com>
5961         * testsuite/libgomp.fortran/lastprivate-conditional-10.f90: New test.
5963 2020-08-13  Kwok Cheung Yeung  <kcy@codesourcery.com>
5965         * testsuite/libgomp.c-c++-common/reduction-16.c: New.
5967 2020-08-13  Jakub Jelinek  <jakub@redhat.com>
5969         * testsuite/libgomp.c/loop-22.c (main): Add some further tests.
5970         * testsuite/libgomp.c/loop-23.c (main): Likewise.
5971         * testsuite/libgomp.c/loop-24.c: New test.
5973 2020-08-08  Jakub Jelinek  <jakub@redhat.com>
5974             Tobias Burnus  <tobias@codesourcery.com>
5976         PR fortran/93553
5977         * testsuite/libgomp.fortran/pr93553.f90: New test.
5979 2020-08-05  Jakub Jelinek  <jakub@redhat.com>
5981         * testsuite/libgomp.c/loop-22.c: New test.
5982         * testsuite/libgomp.c/loop-23.c: New test.
5984 2020-08-05  Jakub Jelinek  <jakub@redhat.com>
5986         PR middle-end/96459
5987         * testsuite/libgomp.c/teams-3.c: New test.
5988         * testsuite/libgomp.c-c++-common/for-2.h (OMPTEAMS): Define to nothing
5989         if not defined yet.
5990         (N(test)): Use it before all N(f*) calls.
5991         * testsuite/libgomp.c-c++-common/for-14.c (DO_PRAGMA, OMPTEAMS): Define.
5992         (main): Don't call all test_* functions from within
5993         #pragma omp teams reduction(|:err), call them directly.
5995 2020-08-04  Tom de Vries  <tdevries@suse.de>
5997         PR target/96428
5998         * testsuite/libgomp.oacc-fortran/pr96628-part1.f90: New test.
5999         * testsuite/libgomp.oacc-fortran/pr96628-part2.f90: New test.
6001 2020-08-03  Julian Brown  <julian@codesourcery.com>
6002             Thomas Schwinge  <thomas@codesourcery.com>
6004         * testsuite/libgomp.oacc-fortran/attach-descriptor-1.f90: Don't run for
6005         shared-memory devices.  Extend with further checking.
6007 2020-08-03  Martin Jambor  <mjambor@suse.cz>
6009         * plugin/Makefrag.am: Remove configuration of HSA plugin.
6010         * aclocal.m4: Regenerated.
6011         * Makefile.in: Regenerated.
6012         * config.h.in: Regenerated.
6013         * configure: Regenerated.
6014         * plugin/configfrag.ac: Likewise.
6015         * plugin/hsa_ext_finalize.h: Removed.
6016         * plugin/plugin-hsa.c: Likewise.
6017         * testsuite/Makefile.in: Regenerated.
6018         * testsuite/lib/libgomp.exp
6019         (offload_target_to_openacc_device_type): Remove hsa case.
6020         (check_effective_target_hsa_offloading_selected_nocache): Removed
6021         (check_effective_target_hsa_offloading_selected): Likewise.
6022         (libgomp_init): Do not add -Wno-hsa to additional_flags.
6023         * testsuite/libgomp.hsa.c/alloca-1.c: Removed test.
6024         * testsuite/libgomp.hsa.c/bitfield-1.c: Likewise.
6025         * testsuite/libgomp.hsa.c/bits-insns.c: Likewise.
6026         * testsuite/libgomp.hsa.c/builtins-1.c: Likewise.
6027         * testsuite/libgomp.hsa.c/c.exp: Likewise.
6028         * testsuite/libgomp.hsa.c/complex-1.c: Likewise.
6029         * testsuite/libgomp.hsa.c/complex-align-2.c: Likewise.
6030         * testsuite/libgomp.hsa.c/formal-actual-args-1.c: Likewise.
6031         * testsuite/libgomp.hsa.c/function-call-1.c: Likewise.
6032         * testsuite/libgomp.hsa.c/get-level-1.c: Likewise.
6033         * testsuite/libgomp.hsa.c/gridify-1.c: Likewise.
6034         * testsuite/libgomp.hsa.c/gridify-2.c: Likewise.
6035         * testsuite/libgomp.hsa.c/gridify-3.c: Likewise.
6036         * testsuite/libgomp.hsa.c/gridify-4.c: Likewise.
6037         * testsuite/libgomp.hsa.c/memory-operations-1.c: Likewise.
6038         * testsuite/libgomp.hsa.c/pr69568.c: Likewise.
6039         * testsuite/libgomp.hsa.c/pr82416.c: Likewise.
6040         * testsuite/libgomp.hsa.c/rotate-1.c: Likewise.
6041         * testsuite/libgomp.hsa.c/staticvar.c: Likewise.
6042         * testsuite/libgomp.hsa.c/switch-1.c: Likewise.
6043         * testsuite/libgomp.hsa.c/switch-branch-1.c: Likewise.
6044         * testsuite/libgomp.hsa.c/switch-sbr-2.c: Likewise.
6045         * testsuite/libgomp.hsa.c/tiling-1.c: Likewise.
6046         * testsuite/libgomp.hsa.c/tiling-2.c: Likewise.
6048 2020-07-27  Julian Brown  <julian@codesourcery.com>
6049             Thomas Schwinge  <thomas@codesourcery.com>
6051         * libgomp.h (struct target_var_desc): Rename do_detach field to
6052         is_attach.
6053         * oacc-mem.c (goacc_exit_datum_1): Add assert.  Don't set finalize for
6054         GOMP_MAP_FORCE_DETACH. Update checking to use is_attach field.
6055         (goacc_enter_data_internal): Don't affect reference counts
6056         for attach mappings.
6057         (goacc_exit_data_internal): Don't affect reference counts for detach
6058         mappings.
6059         * target.c (gomp_map_vars_existing): Don't affect reference counts for
6060         attach mappings.
6061         (gomp_map_vars_internal): Set renamed is_attach flag unconditionally to
6062         mark attach mappings.
6063         (gomp_unmap_vars_internal): Use is_attach flag to prevent affecting
6064         reference count for attach mappings.
6065         * testsuite/libgomp.oacc-c-c++-common/mdc-refcount-1.c: New test.
6066         * testsuite/libgomp.oacc-c-c++-common/mdc-refcount-2.c: New test.
6067         * testsuite/libgomp.oacc-c-c++-common/mdc-refcount-2.c: New test.
6068         * testsuite/libgomp.oacc-fortran/deep-copy-6-no_finalize.F90: Mark
6069         test as shouldfail.
6070         * testsuite/libgomp.oacc-fortran/deep-copy-6.f90: Adjust to fail
6071         gracefully in no-finalize mode.
6072         * testsuite/libgomp.oacc-c-c++-common/mdc-refcount-3.c: New file.
6074 2020-07-24  Thomas Schwinge  <thomas@codesourcery.com>
6076         * testsuite/libgomp.oacc-c++/c++.exp: Unset 'offload_target' after
6077         use.
6078         * testsuite/libgomp.oacc-c/c.exp: Likewise.
6079         * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
6081 2020-07-23  Julian Brown  <julian@codesourcery.com>
6082             Thomas Schwinge  <thomas@codesourcery.com>
6084         * target.c (gomp_unmap_vars_internal): Remove unnecessary forcing of
6085         finalization for detach operation.
6086         * testsuite/libgomp.oacc-c-c++-common/structured-detach-underflow.c:
6087         New test.
6089 2020-07-23  Tobias Burnus  <tobias@codesourcery.com>
6091         * configure.ac: Add OMP_DEPEND_KIND and OMP_INT128_SIZE.
6092         * libgomp_f.h.in (omp_check_defines): Check whether
6093         sizeof of determined Fortran kind and C typedef match.
6094         * omp_lib.f90.in: Add omp_depened_kind.
6095         * omp_lib.h.in: Likewise; fix omp_alloctrait_key_kind.
6096         * configure: Regenerate.
6097         * Makefile.in: Regenerate.
6098         * testsuite/Makefile.in: Regenerate.
6100 2020-07-22  Tobias Burnus  <tobias@codesourcery.com>
6102         * testsuite/libgomp.c-c++-common/critical-hint-1.c: New; moved from
6103         gcc/testsuite/c-c++-common/gomp/.
6104         * testsuite/libgomp.c-c++-common/critical-hint-2.c: Likewise.
6105         * testsuite/libgomp.fortran/critical-hint-1.f90: New; moved
6106         from gcc/testsuite/gfortran.dg/gomp/.
6107         * testsuite/libgomp.fortran/critical-hint-2.f90: Likewise.
6109 2020-07-22  Tobias Burnus  <tobias@codesourcery.com>
6111         * omp_lib.f90.in: Add omp_sync_hint_* and omp_sync_hint_kind.
6112         * omp_lib.h.in: Likewise.
6114 2020-07-18  H.J. Lu  <hjl.tools@gmail.com>
6116         PR target/95620
6117         * testsuite/libgomp.c/pr95620.c: New test.
6119 2020-07-16  Julian Brown  <julian@codesourcery.com>
6120             Thomas Schwinge  <thomas@codesourcery.com>
6122         * testsuite/libgomp.oacc-fortran/attach-descriptor-1.f90: New test.
6123         * testsuite/libgomp.oacc-fortran/attach-descriptor-2.f90: New test.
6125 2020-07-15  Tobias Burnus  <tobias@codesourcery.com>
6127         * testsuite/libgomp.fortran/alloc-1.F90: Use c_size_t to
6128         avoid conversion on 32bit systems from 32bit to 64bit due
6129         to -fdefault-integer-8.
6131 2020-07-15  Tobias Burnus  <tobias@codesourcery.com>
6133         * testsuite/libgomp.fortran/struct-elem-map-1.f90: Remove unused
6134         variables; add character(kind=4) tests; update TODO comment.
6136 2020-07-15  Tobias Burnus  <tobias@codesourcery.com>
6138         * allocator.c: Add ialias for omp_init_allocator and
6139         omp_destroy_allocator.
6140         * configure.ac: Set INTPTR_T_KIND.
6141         * configure: Regenerate.
6142         * Makefile.in: Regenerate.
6143         * testsuite/Makefile.in: Regenerate.
6144         * fortran.c (omp_init_allocator_, omp_destroy_allocator_,
6145         omp_set_default_allocator_, omp_get_default_allocator_): New
6146         functions and ialias_redirect.
6147         * icv.c: Add ialias for omp_set_default_allocator and
6148         omp_get_default_allocator.
6149         * libgomp.map (OMP_5.0.1): Add omp_init_allocator_,
6150         omp_destroy_allocator_, omp_set_default_allocator_ and
6151         omp_get_default_allocator_.
6152         * omp_lib.f90.in: Add allocator traits parameters, declare
6153         allocator routines and add related kind parameters.
6154         * omp_lib.h.in: Likewise.
6155         * testsuite/libgomp.c-c++-common/alloc-2.c: Fix sizeof.
6156         * testsuite/libgomp.fortran/alloc-1.F90: New test.
6157         * testsuite/libgomp.fortran/alloc-2.F90: New test.
6158         * testsuite/libgomp.fortran/alloc-3.F: New test.
6159         * testsuite/libgomp.fortran/alloc-4.f90: New test.
6160         * testsuite/libgomp.fortran/alloc-5.f90: New test.
6162 2020-07-14  Tom de Vries  <tom@codesourcery.com>
6163             Cesar Philippidis  <cesar@codesourcery.com>
6164             Thomas Schwinge  <thomas@codesourcery.com>
6165             Kwok Cheung Yeung  <kcy@codesourcery.com>
6167         * oacc-init.c (acc_init_state_lock, acc_init_state, acc_init_thread):
6168         New variable.
6169         (acc_init_1): Set acc_init_thread to pthread_self ().  Set
6170         acc_init_state to initializing at the start, and to initialized at the
6171         end.
6172         (self_initializing_p): New function.
6173         (acc_get_device_type): Return acc_device_none if called by thread that
6174         is currently executing acc_init_1.
6175         * libgomp.texi (acc_get_device_type): Update documentation.
6176         (Implementation Status and Implementation-Defined Behavior): Likewise.
6177         * testsuite/libgomp.oacc-c-c++-common/acc_prof-init-2.c: New.
6179 2020-07-14  David Edelsohn  <dje.gcc@gmail.com>
6181         * config/t-aix: Set BITS from compiler cpp macro.
6183 2020-07-14  Tobias Burnus  <tobias@codesourcery.com>
6185         * testsuite/libgomp.fortran/struct-elem-map-1.f90: New test.
6187 2020-07-14  Tobias Burnus  <tobias@codesourcery.com>
6189         PR fortran/67311
6190         * testsuite/libgomp.fortran/target-map-1.f90: New test.
6192 2020-07-14  Jakub Jelinek  <jakub@redhat.com>
6194         * testsuite/libgomp.c/loop-21.c: New test.
6196 2020-07-13  Julian Brown  <julian@codesourcery.com>
6197             Thomas Schwinge  <thomas@codesourcery.com>
6199         * testsuite/libgomp.oacc-fortran/dynamic-pointer-1.f90: New test.
6201 2020-07-10  Julian Brown  <julian@codesourcery.com>
6202             Thomas Schwinge  <thomas@codesourcery.com>
6204         * libgomp.h (struct splay_tree_key_s): Change virtual_refcount to
6205         dynamic_refcount.
6206         (struct gomp_device_descr): Remove GOMP_MAP_VARS_OPENACC_ENTER_DATA.
6207         * oacc-mem.c (acc_map_data): Substitute virtual_refcount for
6208         dynamic_refcount.
6209         (acc_unmap_data): Update comment.
6210         (goacc_map_var_existing, goacc_enter_datum): Adjust for
6211         dynamic_refcount semantics.
6212         (goacc_exit_datum_1, goacc_exit_datum): Re-add some error checking.
6213         Adjust for dynamic_refcount semantics.
6214         (goacc_enter_data_internal): Implement "present" case of dynamic
6215         memory-map handling here.  Update "non-present" case for
6216         dynamic_refcount semantics.
6217         (goacc_exit_data_internal): Use goacc_exit_datum_1.
6218         * target.c (gomp_map_vars_internal): Remove
6219         GOMP_MAP_VARS_OPENACC_ENTER_DATA handling.  Update for dynamic_refcount
6220         handling.
6221         (gomp_unmap_vars_internal): Remove virtual_refcount handling.
6222         (gomp_load_image_to_device): Substitute dynamic_refcount for
6223         virtual_refcount.
6224         * testsuite/libgomp.oacc-c-c++-common/pr92843-1.c: Remove XFAILs.
6225         * testsuite/libgomp.oacc-c-c++-common/refcounting-1.c: New test.
6226         * testsuite/libgomp.oacc-c-c++-common/refcounting-2.c: New test.
6227         * testsuite/libgomp.oacc-c-c++-common/struct-3-1-1.c: New test.
6228         * testsuite/libgomp.oacc-fortran/deep-copy-6.f90: Remove XFAILs and
6229         trace output.
6230         * testsuite/libgomp.oacc-fortran/deep-copy-6-no_finalize.F90: Remove
6231         trace output.
6232         * testsuite/libgomp.oacc-fortran/dynamic-incr-structural-1.f90: New
6233         test.
6234         * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-4.c:
6235         Remove stale comment.
6236         * testsuite/libgomp.oacc-fortran/mdc-refcount-1-1-1.f90: Remove XFAILs.
6237         * testsuite/libgomp.oacc-fortran/mdc-refcount-1-1-2.F90: Likewise.
6238         * testsuite/libgomp.oacc-fortran/mdc-refcount-1-2-1.f90: Likewise.
6239         * testsuite/libgomp.oacc-fortran/mdc-refcount-1-2-2.f90: Likewise.
6240         * testsuite/libgomp.oacc-fortran/mdc-refcount-1-3-1.f90: Likewise.
6241         * testsuite/libgomp.oacc-fortran/mdc-refcount-1-4-1.f90: Adjust XFAIL.
6243 2020-07-10  Julian Brown  <julian@codesourcery.com>
6244             Thomas Schwinge  <thomas@codesourcery.com>
6246         * oacc-mem.c (goacc_map_var_existing): New function.
6247         (goacc_enter_datum): Use above function.
6248         (goacc_exit_datum_1): New function.
6249         (goacc_exit_datum): Use above function.
6251 2020-07-09  Julian Brown  <julian@codesourcery.com>
6252             Thomas Schwinge  <thomas@codesourcery.com>
6254         PR middle-end/95270
6255         * testsuite/libgomp.oacc-c-c++-common/pr95270-1.c: New test.
6256         * testsuite/libgomp.oacc-c-c++-common/pr95270-2.c: New test.
6258 2020-07-09  Julian Brown  <julian@codesourcery.com>
6260         * oacc-mem.c (find_group_last): Group data-movement clauses
6261         (GOMP_MAP_TO_PSET, GOMP_MAP_TO, etc.) together with a subsequent
6262         GOMP_MAP_ATTACH.  Allow standalone GOMP_MAP_ATTACH also.
6264 2020-07-09  Jakub Jelinek  <jakub@redhat.com>
6266         * testsuite/libgomp.c/loop-19.c: New test.
6267         * testsuite/libgomp.c/loop-20.c: New test.
6269 2020-07-09  Jakub Jelinek  <jakub@redhat.com>
6271         * omp.h.in (omp_alloctrait_value_t): Change omp_atv_default from
6272         2 to -1.  Add omp_atv_serialized and define omp_atv_sequential using
6273         it.  Remove __omp_alloctrait_value_max__.
6274         * allocator.c (omp_init_allocator): Handle omp_atv_default for
6275         omp_atk_alignment and omp_atk_pool_size.
6277 2020-07-03  Thomas Schwinge  <thomas@codesourcery.com>
6279         * oacc-mem.c (goacc_exit_data_internal): Revert always-copyfrom
6280         behavior for 'GOMP_MAP_FORCE_FROM'.
6281         * testsuite/libgomp.oacc-c-c++-common/pr92843-1.c: Adjust XFAIL.
6283 2020-07-03  Thomas Schwinge  <thomas@codesourcery.com>
6285         * oacc-mem.c (goacc_exit_data_internal): Remove
6286         'GOMP_MAP_ALWAYS_FROM' handling.
6288 2020-06-30  Thomas Schwinge  <thomas@codesourcery.com>
6290         * testsuite/libgomp.oacc-c-c++-common/pr85381-2.c: Replace fragile
6291         'scan-assembler' with 'scan-offload-rtl'.
6292         * testsuite/libgomp.oacc-c-c++-common/pr85381-3.c: Likewise.
6293         * testsuite/libgomp.oacc-c-c++-common/pr85381-4.c: Likewise.
6294         * testsuite/libgomp.oacc-c-c++-common/pr85381-5.c: Likewise.
6295         * testsuite/libgomp.oacc-c-c++-common/pr85381.c: Likewise.
6297 2020-06-30  Thomas Schwinge  <thomas@codesourcery.com>
6299         * target.c (gomp_map_vars_existing): Assert 'kind !=
6300         GOMP_MAP_ATTACH'.
6301         (gomp_map_vars_internal): Clean up.
6303 2020-06-27  Jakub Jelinek  <jakub@redhat.com>
6305         * testsuite/libgomp.c/loop-17.c: New test.
6306         * testsuite/libgomp.c/loop-18.c: New test.
6308 2020-06-26  Marek Polacek  <polacek@redhat.com>
6310         * testsuite/libgomp.c++/atomic-3.C: Use -std=gnu++14.
6312 2020-06-23  Alexandre Oliva  <oliva@adacore.com>
6314         * testsuite/lib/libgomp.exp: Load gcc lib scanoffload.exp.
6315         * testsuite/lib/libgomp-dg.exp: Drop now-obsolete -save-temps.
6317 2020-06-22  David Edelsohn  <dje.gcc@gmail.com>
6319         * Makefile.am: Use -include.
6320         * Makefile.in: Regenerate.
6322 2020-06-21  David Edelsohn  <dje.gcc@gmail.com>
6324         * Makefile.am (tmake_file): Build and install AIX-style FAT libraries.
6325         * Makefile.in: Regenerate
6326         * configure.ac (tmake_file): Substitute.
6327         * configure: Regenerate.
6328         * configure.tgt (powerpc-ibm-aix*): Define tmake_file.
6329         * config/t-aix: New file.
6331 2020-06-17  Thomas Schwinge  <thomas@codesourcery.com>
6333         PR lto/94848
6334         * testsuite/libgomp.fortran/use_device_ptr-optional-3.f90: Add
6335         'dg-do run'.
6337 2020-06-17  Andrew Stubbs  <ams@codesourcery.com>
6339         * plugin/plugin-gcn.c (init_environment_variables): Use ".so.1"
6340         variant for HSA_RUNTIME_LIB name.
6341         (find_executable_symbol_1): Delete.
6342         (find_executable_symbol): Delete.
6343         (init_kernel_properties): Add ".kd" suffix to symbol names.
6344         (find_load_offset): Delete.
6345         (create_and_finalize_hsa_program): Remove relocation handling.
6347 2020-06-16  Tobias Burnus  <tobias@codesourcery.com>
6349         * testsuite/libgomp.oacc-fortran/routine-10.f90: New test.
6351 2020-06-08  Tobias Burnus  <tobias@codesourcery.com>
6353         PR lto/94848
6354         PR middle-end/95551
6355         * testsuite/libgomp.fortran/target-var.f90: New test.
6357 2020-06-05  Thomas Schwinge  <thomas@codesourcery.com>
6358             Julian Brown  <julian@codesourcery.com>
6360         * oacc-mem.c (goacc_exit_data_internal) <GOMP_MAP_STRUCT>: Explain
6361         special handling.
6363 2020-06-05  Thomas Schwinge  <thomas@codesourcery.com>
6364             Julian Brown  <julian@codesourcery.com>
6366         * oacc-mem.c (goacc_exit_data_internal) <GOMP_MAP_STRUCT>:
6367         Simplify.
6369 2020-06-05  Julian Brown  <julian@codesourcery.com>
6371         * testsuite/libgomp.oacc-c-c++-common/struct-copyout-1.c: New test.
6372         * testsuite/libgomp.oacc-c-c++-common/struct-copyout-2.c: New test.
6374 2020-06-04  Thomas Schwinge  <thomas@codesourcery.com>
6376         * oacc-mem.c (goacc_exit_data_internal) <GOMP_MAP_STRUCT>:
6377         Evaluate 'copyfrom' individually for each entry.
6378         * testsuite/libgomp.oacc-c-c++-common/struct-1.c: Update.
6380 2020-06-04  Thomas Schwinge  <thomas@codesourcery.com>
6382         * oacc-mem.c (goacc_exit_data_internal) <GOMP_MAP_STRUCT>:
6383         Evaluate 'finalize' individually for each entry.
6384         * testsuite/libgomp.oacc-c-c++-common/struct-1.c: New file.
6385         * testsuite/libgomp.oacc-c-c++-common/struct-refcount-1.c: Remove
6386         file.
6388 2020-06-04  Thomas Schwinge  <thomas@codesourcery.com>
6390         * testsuite/libgomp.oacc-c-c++-common/deep-copy-7.c: Fix 'sizeof'
6391         usage.
6392         * testsuite/libgomp.oacc-c-c++-common/deep-copy-8.c: Likewise.
6394 2020-06-04  Thomas Schwinge  <thomas@codesourcery.com>
6395             Julian Brown  <julian@codesourcery.com>
6397         * oacc-mem.c (goacc_exit_datum): Repair 'is_tgt_unmapped'
6398         checking.
6399         (acc_unmap_data, goacc_exit_data_internal): Restore
6400         'is_tgt_unmapped' checking.
6401         * testsuite/libgomp.oacc-c-c++-common/struct-refcount-1.c: New
6402         file.
6403         * testsuite/libgomp.oacc-fortran/deep-copy-6.f90: Adjust.
6404         * testsuite/libgomp.oacc-fortran/mdc-refcount-1-1-1.f90: Likewise.
6405         * testsuite/libgomp.oacc-fortran/mdc-refcount-1-2-1.f90: Likewise.
6406         * testsuite/libgomp.oacc-fortran/mdc-refcount-1-2-2.f90: Likewise.
6407         * testsuite/libgomp.oacc-fortran/mdc-refcount-1-3-1.f90: Likewise.
6408         * testsuite/libgomp.oacc-fortran/mdc-refcount-1-4-1.f90: Likewise.
6410 2020-06-04  Thomas Schwinge  <thomas@codesourcery.com>
6411             Julian Brown  <julian@codesourcery.com>
6413         * oacc-mem.c (acc_unmap_data): Don't open-code 'gomp_remove_var'.
6415 2020-06-04  Thomas Schwinge  <thomas@codesourcery.com>
6417         PR libgomp/92854
6418         * oacc-mem.c (acc_unmap_data): Remove 'tgt' reference counting.
6420 2020-06-04  Thomas Schwinge  <thomas@codesourcery.com>
6422         PR libgomp/92854
6423         * testsuite/libgomp.oacc-c-c++-common/pr92854-1.c: Extend some
6424         more.
6426 2020-06-04  Thomas Schwinge  <thomas@codesourcery.com>
6427             Julian Brown  <julian@codesourcery.com>
6429         * oacc-mem.c (goacc_enter_datum): Use 'tgt' returned from
6430         'gomp_map_vars'.
6431         (acc_map_data): Clean up accordingly.
6433 2020-06-04  Thomas Schwinge  <thomas@codesourcery.com>
6435         * testsuite/libgomp.oacc-fortran/deep-copy-6.f90: XFAIL behavior
6436         of over-eager 'finalize' clause.
6437         * testsuite/libgomp.oacc-fortran/deep-copy-6-no_finalize.F90: New
6438         file.
6439         * testsuite/libgomp.oacc-fortran/mdc-refcount-1-1-1.f90: Likewise.
6440         * testsuite/libgomp.oacc-fortran/mdc-refcount-1-1-2.F90: Likewise.
6441         * testsuite/libgomp.oacc-fortran/mdc-refcount-1-2-1.f90: Likewise.
6442         * testsuite/libgomp.oacc-fortran/mdc-refcount-1-2-2.f90: Likewise.
6443         * testsuite/libgomp.oacc-fortran/mdc-refcount-1-3-1.f90: Likewise.
6444         * testsuite/libgomp.oacc-fortran/mdc-refcount-1-3-2.f90: Likewise.
6445         * testsuite/libgomp.oacc-fortran/mdc-refcount-1-4-1.f90: Likewise.
6446         * testsuite/libgomp.oacc-fortran/mdc-refcount-1-4-2.f90: Likewise.
6448 2020-06-04  Thomas Schwinge  <thomas@codesourcery.com>
6450         * oacc-mem.c (goacc_exit_data_internal): Unlock on error path.
6452 2020-06-04  Julian Brown  <julian@codesourcery.com>
6454         * oacc-mem.c (acc_attach_async): Add missing gomp_mutex_unlock on
6455         error path.
6456         (goacc_detach_internal): Likewise.
6458 2020-06-04  Thomas Schwinge  <thomas@codesourcery.com>
6460         * testsuite/libgomp.oacc-fortran/error_stop-1.f: Initialize before
6461         the checkpoint.
6462         * testsuite/libgomp.oacc-fortran/error_stop-2.f: Likewise.
6463         * testsuite/libgomp.oacc-fortran/error_stop-3.f: Likewise.
6464         * testsuite/libgomp.oacc-fortran/stop-1.f: Likewise.
6465         * testsuite/libgomp.oacc-fortran/stop-2.f: Likewise.
6466         * testsuite/libgomp.oacc-fortran/stop-3.f: Likewise.
6468 2020-06-02  Jakub Jelinek  <jakub@redhat.com>
6470         * allocator.c (omp_free): Fix up build if HAVE_SYNC_BUILTINS is not
6471         defined.
6473 2020-05-30  Jakub Jelinek  <jakub@redhat.com>
6475         * testsuite/libgomp.c-c++-common/alloc-4.c: New test.
6477 2020-05-30  Jakub Jelinek  <jakub@redhat.com>
6479         * allocator.c (omp_alloc): For size == 0, return NULL early.
6481 2020-05-29  H.J. Lu  <hjl.tools@gmail.com>
6483         PR bootstrap/95413
6484         * configure: Regenerated.
6486 2020-05-23  Thomas Koenig  <tkoenig@gcc.gnu.org>
6488         PR libfortran/95191
6489         * testsuite/libgomp.fortran/async_io_9.f90: New test.
6491 2020-05-19  Jakub Jelinek  <jakub@redhat.com>
6493         * omp.h.in (omp_uintptr_t): New typedef.
6494         (__GOMP_UINTPTR_T_ENUM): Define.
6495         (omp_memspace_handle_t, omp_allocator_handle_t, omp_alloctrait_key_t,
6496         omp_alloctrait_value_t, omp_alloctrait_t): New typedefs.
6497         (__GOMP_DEFAULT_NULL_ALLOCATOR): Define.
6498         (omp_init_allocator, omp_destroy_allocator, omp_set_default_allocator,
6499         omp_get_default_allocator, omp_alloc, omp_free): Declare.
6500         * libgomp.h (struct gomp_team_state): Add def_allocator field.
6501         (gomp_def_allocator): Declare.
6502         * libgomp.map (OMP_5.0.1): Export omp_set_default_allocator,
6503         omp_get_default_allocator, omp_init_allocator, omp_destroy_allocator,
6504         omp_alloc and omp_free.
6505         * team.c (gomp_team_start): Copy over ts.def_allocator.
6506         * env.c (gomp_def_allocator): New variable.
6507         (parse_wait_policy): Adjust function comment.
6508         (parse_allocator): New function.
6509         (handle_omp_display_env): Print OMP_ALLOCATOR.
6510         (initialize_env): Call parse_allocator.
6511         * Makefile.am (libgomp_la_SOURCES): Add allocator.c.
6512         * allocator.c: New file.
6513         * icv.c (omp_set_default_allocator, omp_get_default_allocator): New
6514         functions.
6515         * testsuite/libgomp.c-c++-common/alloc-1.c: New test.
6516         * testsuite/libgomp.c-c++-common/alloc-2.c: New test.
6517         * testsuite/libgomp.c-c++-common/alloc-3.c: New test.
6518         * Makefile.in: Regenerated.
6520 2020-05-15  H.J. Lu  <hongjiu.lu@intel.com>
6522         PR bootstrap/95147
6523         * configure: Regenerated.
6525 2020-05-14  Thomas Koenig  <tkoenig@gcc.gnu.org>
6527         PR libfortran/95119
6528         * testsuite/libgomp.fortran/close_errors_1.f90: New test.
6530 2020-05-14  H.J. Lu  <hongjiu.lu@intel.com>
6532         * configure: Regenerated.
6534 2020-05-14  Jakub Jelinek  <jakub@redhat.com>
6536         * testsuite/libgomp.c-c++-common/target-40.c: New test.
6538 2020-05-13  Tobias Burnus  <tobias@codesourcery.com>
6540         PR fortran/94690
6541         * testsuite/libgomp.fortran/pr66199-3.f90: New.
6542         * testsuite/libgomp.fortran/pr66199-4.f90: New.
6543         * testsuite/libgomp.fortran/pr66199-5.f90: New.
6544         * testsuite/libgomp.fortran/pr66199-6.f90: New.
6545         * testsuite/libgomp.fortran/pr66199-7.f90: New.
6546         * testsuite/libgomp.fortran/pr66199-8.f90: New.
6547         * testsuite/libgomp.fortran/pr66199-9.f90: New.
6549 2020-05-12  Jakub Jelinek  <jakub@redhat.com>
6551         * testsuite/libgomp.c/target-39.c: New test.
6553 2020-04-29  Thomas Schwinge  <thomas@codesourcery.com>
6555         * config/accel/openacc.f90 (acc_device_current): Set to '-1'.
6556         * openacc.f90 (acc_device_current): Likewise.
6557         * openacc.h (acc_device_current): Likewise.
6558         * openacc_lib.h (acc_device_current): Likewise.
6560         PR target/94282
6561         * testsuite/libgomp.c-c++-common/function-not-offloaded.c: Remove
6562         'dg-allow-blank-lines-in-output'.
6564         * oacc-init.c (get_openacc_name): Handle 'gcn'.
6565         * testsuite/lib/libgomp.exp
6566         (offload_target_to_openacc_device_type) [amdgcn*]: Return
6567         'radeon'.  Adjust all users.
6568         (check_effective_target_openacc_amdgcn_accel_present): Rename
6569         to...
6570         (check_effective_target_openacc_radeon_accel_present): ... this.
6571         Adjust all users.
6572         (check_effective_target_openacc_amdgcn_accel_selected): Rename to...
6573         (check_effective_target_openacc_radeon_accel_selected): ... this.
6574         Adjust all users.
6576         * testsuite/libgomp.fortran/use_device_ptr-optional-2.f90: Add
6577         'dg-do run'.
6579 2020-04-23  Andrew Stubbs  <ams@codesourcery.com>
6581         PR other/94629
6583         * plugin/plugin-gcn.c (init_hsa_context): Check return value from
6584         hsa_iterate_agents.
6585         (GOMP_OFFLOAD_init_device): Check return values from both calls to
6586         hsa_agent_iterate_regions.
6588 2020-04-20  Thomas Schwinge  <thomas@codesourcery.com>
6590         PR middle-end/94635
6591         * testsuite/libgomp.fortran/target-enter-data-2.F90: Add 'dg-do
6592         run'.
6594 2020-04-20  Tobias Burnus  <tobias@codesourcery.com>
6596         PR middle-end/94120
6597         * testsuite/libgomp.oacc-c++/declare-pr94120.C: Fix 'declare copy(out)'
6598         test case.
6600 2020-04-17  Tobias Burnus  <tobias@codesourcery.com>
6602         PR middle-end/94635
6603         * testsuite/libgomp.fortran/target-enter-data-2.F90: New.
6605 2020-04-13  Thomas Schwinge  <thomas@codesourcery.com>
6607         PR libgomp/92843
6608         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-1-lib.c:
6609         Rename to...
6610         * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-1-lib.c:
6611         ... this.
6612         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-1.c:
6613         Rename to...
6614         * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-1.c:
6615         ... this.
6616         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-2-lib.c:
6617         Rename to...
6618         * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-2-lib.c:
6619         ... this.
6620         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-2.c:
6621         Rename to...
6622         * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-2.c:
6623         ... this.
6624         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-3-lib.c:
6625         Rename to...
6626         * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-3-lib.c:
6627         ... this.
6628         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-3.c:
6629         Rename to...
6630         * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-3.c:
6631         ... this.
6632         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-4-lib.c:
6633         Rename to...
6634         * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-4-lib.c:
6635         ... this.
6636         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-4.c:
6637         Rename to...
6638         * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-4.c:
6639         ... this.
6640         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-5-lib.c:
6641         Rename to...
6642         * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-5-lib.c:
6643         ... this.
6644         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-5.c:
6645         Rename to...
6646         * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-5.c:
6647         ... this.
6648         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-6-lib.c:
6649         Rename to...
6650         * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-6-lib.c:
6651         ... this.
6652         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-6.c:
6653         Rename to...
6654         * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-6.c:
6655         ... this.
6656         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-7-lib.c:
6657         Rename to...
6658         * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-7-lib.c:
6659         ... this.
6660         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-7.c:
6661         Rename to...
6662         * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-7.c:
6663         ... this.
6664         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-8-lib.c:
6665         Rename to...
6666         * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-8-lib.c:
6667         ... this.
6668         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-8.c::
6669         Rename to...
6670         * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-8.c:
6671         ... this.
6673 2020-04-10  Julian Brown  <julian@codesourcery.com>
6674             Thomas Schwinge  <thomas@codesourcery.com>
6676         PR libgomp/92843
6677         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-1-lib.c:
6678         New file.
6679         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-1.c:
6680         Likewise.
6681         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-2-lib.c:
6682         Likewise.
6683         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-2.c:
6684         Likewise.
6685         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-3-lib.c:
6686         Likewise.
6687         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-3.c:
6688         Likewise.
6689         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-4-lib.c:
6690         Likewise.
6691         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-4.c:
6692         Likewise.
6693         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-5-lib.c:
6694         Likewise.
6695         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-5.c:
6696         Likewise.
6697         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-6-lib.c:
6698         Likewise.
6699         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-6.c:
6700         Likewise.
6701         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-7-lib.c:
6702         Likewise.
6703         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-7.c:
6704         Likewise.
6705         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-8-lib.c:
6706         Likewise.
6707         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-8.c:
6708         Likewise.
6710 2020-04-10  Thomas Schwinge  <thomas@codesourcery.com>
6712         * testsuite/libgomp.fortran/target-enter-data-1.f90: Add 'dg-do
6713         run'.
6715 2020-04-08  Tobias Burnus  <tobias@codesourcery.com>
6717         PR middle-end/94120
6718         * libgomp.oacc-c++/declare-pr94120.C: New.
6720 2020-04-06  Maciej W. Rozycki  <macro@wdc.com>
6722         * configure.ac: Add testsuite/libgomp-site-extra.exp to output
6723         files.
6724         * configure: Regenerate.
6725         * testsuite/libgomp-site-extra.exp.in: New file.
6726         * testsuite/libgomp-test-support.exp.in (GCC_UNDER_TEST): Remove
6727         variable.
6728         * testsuite/Makefile.am (EXTRA_DEJAGNU_SITE_CONFIG): New
6729         variable.
6730         * testsuite/Makefile.in: Regenerate.
6732 2020-04-03  Thomas Schwinge  <thomas@codesourcery.com>
6734         PR tree-optimization/89713
6735         PR c/94392
6736         * testsuite/libgomp.oacc-c-c++-common/pr85381-2.c: Again expect
6737         'bar.sync'.
6738         * testsuite/libgomp.oacc-c-c++-common/pr85381-4.c: Likewise.
6740 2020-03-31  Tobias Burnus  <tobias@codesourcery.com>
6742         * target.c (GOMP_target_enter_exit_data): Handle PSET/MAP_POINTER.
6743         * testsuite/libgomp.fortran/target-enter-data-1.f90: New.
6745 2020-03-24  Tobias Burnus  <tobias@codesourcery.com>
6747         PR libgomp/81689
6748         * testsuite/libgomp.c/target-link-1.c: Remove xfail.
6750 2020-03-20  Tobias Burnus  <tobias@codesourcery.com>
6752         PR libgomp/94251
6753         * target.c (gomp_load_image_to_device): Fix link
6754         variable handling.
6756 2020-03-19  Jakub Jelinek  <jakub@redhat.com>
6758         PR c++/93931
6759         * testsuite/libgomp.c++/pr93931.C: New test.
6761 2020-03-19  Tobias Burnus  <tobias@codesourcery.com>
6763         * testsuite/libgomp.c-c++-common/function-not-offloaded.c: Add
6764         dg-allow-blank-lines-in-output.
6766 2020-03-18  Julian Brown <julian@codesourcery.com>
6767             Tobias Burnus  <tobias@codesourcery.com>
6769         * testsuite/libgomp.oacc-fortran/atomic_capture-1.f90: Really make
6770         it work concurrently.
6772 2020-03-18  Tobias Burnus  <tobias@codesourcery.com>
6774         * testsuite/libgomp.oacc-c++/firstprivate-mappings-1.C: Add
6775         #define DO_LONG_DOUBLE; set to 1, except for nvidia + gcn.
6776         * libgomp.oacc-c-c++-common/firstprivate-mappings-1.c: Likewise.
6778 2020-03-14  Jakub Jelinek  <jakub@redhat.com>
6780         PR middle-end/93566
6781         * testsuite/libgomp.c/pr93566.c: New test.
6783 2020-02-21  Frederik Harwath  <frederik@codesourcery.com>
6785         * testsuite/libgomp.oacc-fortran/acc_get_property.f90: Adapt to
6786         changes from 2020-02-19, i.e. use integer(c_size_t) instead of
6787         integer(acc_device_property) for the type of the return value of
6788         acc_get_property.
6790 2020-02-19  Tobias Burnus  <tobias@codesourcery.com>
6792         * .gitattributes: New; whitespace handling for Fortran's openacc_lib.h.
6793         * config/accel/openacc.f90 (openacc_kinds): Add acc_device_current.
6794         (openacc_internal, acc_on_device_h): Fix argument name; minor cleanup.
6795         * libgomp.texi (Enabling OpenACC): No longer mark as experimental.
6796         (acc_set_device_num): Fix Fortran argument name, use same name for C.
6797         (acc_get_property): Update Fortran interface to post-OpenACC 3.0
6798         corrections; add note about the previous interface and named constant.
6799         (OpenACC library and environment variables): Fix two typos.
6800         * openacc.f90: Use for all procedures the argument names from the spec
6801         as for â€¦_h they are user visible.
6802         (openacc_kinds): Rename acc_device_property to
6803         acc_device_property_kinds and change value to int32 ; and update users.
6804         Re-add acc_device_property for for backward compatibility.
6805         (acc_get_property_string_h): Clean up as acc_device_property_kind
6806         changed.
6807         (acc_get_property_h): Likewise and return c_size_t instead of
6808         acc_device_property.
6809         (openacc): Also export acc_device_property_kinds.
6810         (acc_async_test_h, acc_async_test_all_h, acc_on_device_h,
6811         acc_is_present_32_h, acc_is_present_64_h): Simplify logical-return-value
6812         handling; check against /= 0 instead of == 1 to match C.
6813         * openacc_lib.h: Use for all procedures the argument names from the spec
6814         as for â€¦_h they are user visible. Place !GCC$ into the first column to
6815         be active also for fixed-form souce form.
6816         (acc_device_current, acc_device_property_kind, acc_device_property,
6817         acc_property_memory, acc_property_free_memory, acc_property_name,
6818         acc_property_vendor, acc_property_driver): New named constants.
6819         (acc_get_property, acc_get_property_string): New generic interface.
6821 2020-02-13  Frederik Harwath  <frederik@codesourcery.com>
6823         PR libgomp/93481
6824         * plugin/plugin-nvptx.c: Remove GOMP_OFFLOAD_async_run stub.
6825         * target.c (gomp_load_plugin_for_device): Make "async_run" loading
6826         optional.
6827         (gomp_target_task_fn): Assert "devicep->async_run_func".
6828         (clear_unsupported_flags): New function to remove unsupported flags
6829         (right now only GOMP_TARGET_FLAG_NOWAIT) that can be be ignored.
6830         (GOMP_target_ext): Apply clear_unsupported_flags to flags.
6831         * testsuite/libgomp.c/target-33.c:
6832         Remove xfail for offload_target_nvptx.
6833         * testsuite/libgomp.c/target-34.c: Likewise.
6835 2020-02-10  Frederik Harwath  <frederik@codesourcery.com>
6837         * testsuite/libgomp.c/target-33.c: Add xfail for execution on
6838         offload_target_nvptx, cf. https://gcc.gnu.org/PR81688.
6839         * testsuite/libgomp.c/target-34.c: Likewise.
6840         * testsuite/libgomp.c/target-link-1.c: Add xfail for
6841         offload_target_nvptx, cf. https://gcc.gnu.org/PR81689.
6843 2020-02-09  Jakub Jelinek  <jakub@redhat.com>
6845         * testsuite/libgomp.c/target-38.c: New test.
6847 2020-02-06  Jakub Jelinek  <jakub@redhat.com>
6849         PR libgomp/93515
6850         * testsuite/libgomp.c-c++-common/pr93515.c: New test.
6852 2020-02-05  Tobias Burnus  <tobias@codesourcery.com>
6854         * testsuite/lib/libgomp.exp
6855         (check_effective_target_offload_target_nvptx): Pass flags as 'options'
6856         and not as 'source' argument to libgomp_target_compile.
6858 2020-02-03  Andrew Stubbs  <ams@codesourcery.com>
6860         * plugin/plugin-gcn.c (EF_AMDGPU_MACH_AMDGCN_GFX801): Remove.
6861         (gcn_gfx801_s): Remove.
6862         (isa_hsa_name): Remove gfx801.
6863         (isa_gcc_name): Remove gfx801/carizzo.
6864         (isa_code): Remove gfx801.
6866 2020-02-03  Julian Brown  <julian@codesourcery.com>
6867             Tobias Burnus  <tobias@codesourcery.com>
6869         * libgomp.texi (OpenACC Runtime Library Routines): Document *_async
6870         and *_finalize variants; document acc_attach and acc_detach; update
6871         references from OpenACC 2.0 to 2.6.
6872         * openacc.f90 (openacc_version): Update to 201711.
6873         * openacc_lib.h (openacc_version): Update to 201711.
6874         * testsuite/libgomp.oacc-fortran/openacc_version-1.f: Update expected
6875         openacc_version to 201711.
6876         * testsuite/libgomp.oacc-fortran/openacc_version-2.f90: Likewise.
6878 2020-01-31  Kwok Cheung Yeung  <kcy@codesourcery.com>
6880         * plugin/plugin-gcn.c (struct hsa_kernel_description): Add sgpr_count
6881         and vgpr_count fields.
6882         (struct kernel_info): Add a field for a hsa_kernel_description.
6883         (run_kernel): Reduce the number of threads/workers if the requested
6884         number would require too many VGPRs.
6885         (init_basic_kernel_info): Initialize description field with
6886         the hsa_kernel_description entry for the kernel.
6888 2020-01-29  Tobias Burnus  <tobias@codesourcery.com>
6890         PR bootstrap/93409
6891         * plugin/configfrag.ac (enable_offload_targets): Skip
6892         HSA and GCN plugin besides -m32 also for -mx32.
6893         * configure: Regenerate.
6895 2020-01-29  Frederik Harwath  <frederik@codesourcery.com>
6897         * oacc-init.c (name_of_acc_device_t): Handle acc_device_radeon.
6899 2020-01-29  Frederik Harwath  <frederik@codesourcery.com>
6901         * plugin-gcn.c (struct agent_info): Add fields "name" and
6902         "vendor_name" ...
6903         (GOMP_OFFLOAD_init_device): ... and init from here.
6904         (struct hsa_context_info): Add field "driver_version_s" ...
6905         (init_hsa_contest): ... and init from here.
6906         (GOMP_OFFLOAD_openacc_get_property): Replace stub with a proper
6907         implementation.
6908         * testsuite/libgomp.oacc-c-c++-common/acc_get_property.c:
6909         Enable test execution for amdgcn and host offloading targets.
6910         * testsuite/libgomp.oacc-fortran/acc_get_property.f90: Likewise.
6911         * testsuite/libgomp.oacc-c-c++-common/acc_get_property-aux.c
6912         (expect_device_properties): Split function into ...
6913         (expect_device_string_properties): ... this new function ...
6914         (expect_device_memory): ... and this new function.
6915         * testsuite/libgomp.oacc-c-c++-common/acc_get_property-gcn.c:
6916         Add test.
6918 2020-01-28  Julian Brown  <julian@codesourcery.com>
6920         * testsuite/libgomp.oacc-fortran/deep-copy-2.f90: Remove test from here.
6921         * testsuite/libgomp.oacc-fortran/deep-copy-3.f90: Don't use mixed
6922         component/non-component variable refs in a single directive.
6923         * testsuite/libgomp.oacc-fortran/classtypes-1.f95: Likewise.
6925 2020-01-24  Maciej W. Rozycki  <macro@wdc.com>
6927         * configure.ac: Handle `--with-toolexeclibdir='.
6928         * Makefile.in: Regenerate.
6929         * aclocal.m4: Regenerate.
6930         * configure: Regenerate.
6931         * testsuite/Makefile.in: Regenerate.
6933 2020-01-24  Frederik Harwath  <frederik@codesourcery.com>
6935         * testsuite/libgomp.oacc-c-c++-common/acc_get_property-aux.c
6936         (expect_device_properties): Remove "expected_free_mem" argument,
6937         change "expected_total_mem" argument type to size_t;
6938         change types of acc_get_property results to size_t,
6939         adapt format strings.
6940         * testsuite/libgomp.oacc-c-c++-common/acc_get_property.c:
6941         Use %zu instead of %zd to print size_t values.
6942         * testsuite/libgomp.oacc-c-c++-common/acc_get_property-2.c: Adapt and
6943         rename to ...
6944         * testsuite/libgomp.oacc-c-c++-common/acc_get_property-nvptx.c: ... this.
6945         * testsuite/libgomp.oacc-c-c++-common/acc_get_property-3.c: Adapt and
6946         rename to ...
6947         * testsuite/libgomp.oacc-c-c++-common/acc_get_property-host.c: ... this.
6949 2020-01-23  Andrew Stubbs  <ams@codesourcery.com>
6951         * plugin/plugin-gcn.c (parse_target_attributes): Use correct mask for
6952         the device id.
6954 2020-01-20  Andrew Stubbs  <ams@codesourcery.com>
6956         * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Skip test on gcn.
6957         * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c (main):
6958         Adjust test dimensions for amdgcn.
6959         * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c (main): Adjust
6960         gang/worker/vector expectations dynamically.
6961         * testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c
6962         (main): Likewise.
6963         * testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c (main): Likewise.
6964         * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c (main): Likewise.
6965         * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c (main): Likewise.
6966         * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c (main): Likewise.
6967         * testsuite/libgomp.oacc-c-c++-common/loop-red-wv-1.c (main): Likewise.
6968         * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c (main): Likewise.
6969         * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c (main): Likewise.
6970         * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c (main): Likewise.
6971         * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c
6972         (acc_gang): Recognise acc_device_radeon.
6973         (acc_worker): Likewise.
6974         (acc_vector): Likewise.
6975         (main): Set expectations for amdgcn.
6976         * testsuite/libgomp.oacc-c-c++-common/routine-gwv-1.c
6977         (main): Adjust gang/worker/vector expectations dynamically.
6978         * testsuite/libgomp.oacc-c-c++-common/routine-v-1.c (main): Likewise.
6979         * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c (main): Likewise.
6980         * testsuite/libgomp.oacc-c-c++-common/routine-wv-1.c (main): Likewise.
6981         * testsuite/libgomp.oacc-c-c++-common/routine-wv-2.c: Set expectations
6982         for amdgcn.
6984 2020-01-17  Andrew Stubbs  <ams@codesourcery.com>
6986         * config/accel/openacc.f90 (openacc_kinds): Rename acc_device_gcn to
6987         acc_device_radeon.
6988         (openacc): Likewise.
6989         * openacc.f90 (openacc_kinds): Likewise.
6990         (openacc): Likewise.
6991         * openacc.h (acc_device_t): Likewise.
6992         * openacc_lib.h: Likewise.
6993         * testsuite/lib/libgomp.exp
6994         (check_effective_target_openacc_amdgcn_accel_present): Likewise.
6995         * testsuite/libgomp.oacc-c-c++-common/acc_prof-init-1.c
6996         (cb_compute_construct_end): Likewise.
6997         * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c
6998         (cb_enqueue_launch_start): Likewise.
6999         * testsuite/libgomp.oacc-c-c++-common/acc_prof-parallel-1.c
7000         (cb_enter_data_end): Likewise.
7001         (cb_exit_data_start): Likewise.
7002         (cb_exit_data_end): Likewise.
7003         (cb_compute_construct_end): Likewise.
7004         (cb_enqueue_launch_start): Likewise.
7005         (cb_enqueue_launch_end): Likewise.
7006         * testsuite/libgomp.oacc-c-c++-common/asyncwait-nop-1.c
7007         (main): Likewise.
7009 2020-01-10  Thomas Schwinge  <thomas@codesourcery.com>
7011         * libgomp-plugin.h (enum goacc_property): New.  Adjust all users
7012         to use this instead of 'enum gomp_device_property'.
7013         (GOMP_OFFLOAD_get_property): Rename to...
7014         (GOMP_OFFLOAD_openacc_get_property): ... this.  Adjust all users.
7015         * libgomp.h (struct gomp_device_descr): Move
7016         'GOMP_OFFLOAD_openacc_get_property'...
7017         (struct acc_dispatch_t): ... here.  Adjust all users.
7018         * plugin/plugin-hsa.c (GOMP_OFFLOAD_get_property): Remove.
7020         * target.c (gomp_map_vars_internal)
7021         <GOMP_MAP_USE_DEVICE_PTR_IF_PRESENT>: Clean up/elaborate code
7022         paths.
7024 2020-01-10  Jakub Jelinek  <jakub@redhat.com>
7026         PR libgomp/93219
7027         * libgomp.h (gomp_print_string): Change return type from void to int.
7028         * affinity-fmt.c (gomp_print_string): Likewise.  Return true if
7029         not all characters have been written.
7031 2020-01-08  Tobias Burnus  <tobias@codesourcery.com>
7033         * libgomp.texi: Fix typos, use https.
7035 2020-01-03  Tobias Burnus  <tobias@codesourcery.com>
7037         * testsuite/libgomp.fortran/optional-map.f90: Add test for
7038         unallocated/disassociated actual arguments to nonallocatable/nonpointer
7039         dummy arguments; those are/shall be regarded as absent arguments.
7040         * testsuite/libgomp.fortran/use_device_ptr-optional-2.f90: Ditto.
7041         * testsuite/libgomp.fortran/use_device_ptr-optional-3.f90: New.
7043 2020-01-01  Jakub Jelinek  <jakub@redhat.com>
7045         Update copyright years.
7047         * libgomp.texi: Bump @copying's copyright year.
7049 2019-12-31  Ayush Mittal  <ayush.m@samsung.com>
7051         PR libgomp/93065
7052         * oacc-init.c (goacc_runtime_deinitialize): New function.
7054 2019-12-28  Jakub Jelinek  <jakub@redhat.com>
7056         PR bootstrap/93074
7057         * plugin/cuda/cuda.h (cuDeviceGetName, cuDriverGetVersion): Declare.
7058         (cuDeviceTotalMem, cuMemGetInfo): Likewise.  Define to *_v2.
7060 2019-12-22  Maciej W. Rozycki  <macro@codesourcery.com>
7061             Frederik Harwath  <frederik@codesourcery.com>
7062             Thomas Schwinge  <tschwinge@codesourcery.com>
7064         * libgomp.h (gomp_device_descr): Add `get_property_func' member.
7065         * libgomp-plugin.h (gomp_device_property_value): New union.
7066         (gomp_device_property_value): New prototype.
7067         * openacc.h (acc_device_t): Add `acc_device_current' enumeration
7068         constant.
7069         (acc_device_property_t): New enum.
7070         (acc_get_property, acc_get_property_string): New prototypes.
7071         * oacc-init.c (acc_get_device_type): Also assert that result
7072         is not `acc_device_current'.
7073         (get_property_any, acc_get_property, acc_get_property_string):
7074         New functions.
7075         * openacc.f90 (openacc_kinds): Add `acc_device_current' and
7076         `acc_property_memory', `acc_property_free_memory',
7077         `acc_property_name', `acc_property_vendor' and
7078         `acc_property_driver' constants.  Add `acc_device_property' data
7079         type.
7080         (openacc_internal): Add `acc_get_property' and
7081         `acc_get_property_string' interfaces.  Add `acc_get_property_h',
7082         `acc_get_property_string_h', `acc_get_property_l' and
7083         `acc_get_property_string_l'.
7084         * oacc-host.c (host_get_property): New function.
7085         (host_dispatch): Wire it.
7086         * target.c (gomp_load_plugin_for_device): Handle `get_property'.
7087         * libgomp.map (OACC_2.6): Add `acc_get_property', `acc_get_property_h_',
7088         `acc_get_property_string' and `acc_get_property_string_h_' symbols.
7089         * libgomp.texi (OpenACC Runtime Library Routines): Add
7090         `acc_get_property'.
7091         (acc_get_property): New node.
7092         * plugin/plugin-gcn.c (GOMP_OFFLOAD_get_property): New
7093         function (stub).
7094         * plugin/plugin-hsa.c (GOMP_OFFLOAD_get_property): New function.
7095         * plugin/plugin-nvptx.c (CUDA_CALLS): Add `cuDeviceGetName',
7096         `cuDeviceTotalMem', `cuDriverGetVersion' and `cuMemGetInfo'
7097         calls.
7098         (GOMP_OFFLOAD_get_property): New function.
7099         (struct ptx_device): Add new field "name".
7100         (cuda_driver_version_s): Add new static variable ...
7101         (nvptx_init): ... and init from here.
7103         * testsuite/libgomp.oacc-c-c++-common/acc_get_property.c: New test.
7104         * testsuite/libgomp.oacc-c-c++-common/acc_get_property-2.c: New test.
7105         * testsuite/libgomp.oacc-c-c++-common/acc_get_property-3.c: New test.
7106         * testsuite/libgomp.oacc-c-c++-common/acc_get_property-aux.c: New file
7107         with test helper functions.
7109         * testsuite/libgomp.oacc-fortran/acc_get_property.f90: New test.
7111 2019-12-22  Maciej W. Rozycki  <macro@wdc.com>
7113         * testsuite/libgomp-test-support.exp.in (GCC_UNDER_TEST): New
7114         variable.
7116 2019-12-21  Thomas Schwinge  <thomas@codesourcery.com>
7118         * target.c (gomp_map_vars_internal): Restore 'omp declare target
7119         link' handling.
7121 2019-12-19  Julian Brown  <julian@codesourcery.com>
7123         * testsuite/libgomp.oacc-fortran/class-ptr-param.f95: New test.
7124         * testsuite/libgomp.oacc-fortran/classtypes-1.f95: New test.
7125         * testsuite/libgomp.oacc-fortran/classtypes-2.f95: New test.
7127 2019-12-19  Julian Brown  <julian@codesourcery.com>
7128             Cesar Philippidis  <cesar@codesourcery.com>
7130         * testsuite/libgomp.oacc-fortran/deep-copy-1.f90: New test.
7131         * testsuite/libgomp.oacc-fortran/deep-copy-2.f90: New test.
7132         * testsuite/libgomp.oacc-fortran/deep-copy-3.f90: New test.
7133         * testsuite/libgomp.oacc-fortran/deep-copy-4.f90: New test.
7134         * testsuite/libgomp.oacc-fortran/deep-copy-5.f90: New test.
7135         * testsuite/libgomp.oacc-fortran/deep-copy-6.f90: New test.
7136         * testsuite/libgomp.oacc-fortran/deep-copy-7.f90: New test.
7137         * testsuite/libgomp.oacc-fortran/deep-copy-8.f90: New test.
7138         * testsuite/libgomp.oacc-fortran/derived-type-1.f90: New test.
7139         * testsuite/libgomp.oacc-fortran/derivedtype-1.f95: New test.
7140         * testsuite/libgomp.oacc-fortran/derivedtype-2.f95: New test.
7141         * testsuite/libgomp.oacc-fortran/multidim-slice.f95: New test.
7142         * testsuite/libgomp.oacc-fortran/update-2.f90: New test.
7144 2019-12-19  Julian Brown  <julian@codesourcery.com>
7146         * testsuite/libgomp.oacc-c-c++-common/deep-copy-1.c: New test.
7147         * testsuite/libgomp.oacc-c-c++-common/deep-copy-2.c: New test.
7148         * testsuite/libgomp.oacc-c-c++-common/deep-copy-4.c: New test.
7149         * testsuite/libgomp.oacc-c-c++-common/deep-copy-6.c: New test.
7150         * testsuite/libgomp.oacc-c-c++-common/deep-copy-7.c: New test.
7151         * testsuite/libgomp.oacc-c-c++-common/deep-copy-8.c: New test.
7152         * testsuite/libgomp.oacc-c-c++-common/deep-copy-9.c: New test.
7153         * testsuite/libgomp.oacc-c-c++-common/deep-copy-10.c: New test.
7154         * testsuite/libgomp.oacc-c-c++-common/deep-copy-11.c: New test.
7155         * testsuite/libgomp.oacc-c-c++-common/deep-copy-14.c: New test.
7156         * testsuite/libgomp.oacc-c++/deep-copy-12.C: New test.
7157         * testsuite/libgomp.oacc-c++/deep-copy-13.C: New test.
7159 2019-12-19  Julian Brown  <julian@codesourcery.com>
7161         * libgomp.h (struct target_var_desc): Add do_detach flag.
7162         * oacc-init.c (acc_shutdown_1): Free aux block if present.
7163         * oacc-mem.c (find_group_last): Add SIZES parameter. Support
7164         struct components.  Tidy up and add some new checks.
7165         (goacc_enter_data_internal): Update call to find_group_last.
7166         (goacc_exit_data_internal): Support detach operations and
7167         GOMP_MAP_STRUCT.
7168         (GOACC_enter_exit_data): Handle initial GOMP_MAP_STRUCT or
7169         GOMP_MAP_FORCE_PRESENT in finalization detection code.  Handle
7170         attach/detach in enter/exit data detection code.
7171         * target.c (gomp_map_vars_existing): Initialise do_detach field of
7172         tgt_var_desc.
7173         (gomp_map_vars_internal): Support attach.
7174         (gomp_unmap_vars_internal): Support detach.
7176 2019-12-19  Julian Brown  <julian@codesourcery.com>
7177             Thomas Schwinge  <thomas@codesourcery.com>
7179         * libgomp.h (struct splay_tree_aux): Add attach_count field.
7180         (gomp_attach_pointer, gomp_detach_pointer): Add prototypes.
7181         * libgomp.map (OACC_2.6): New section. Add acc_attach,
7182         acc_attach_async, acc_detach, acc_detach_async, acc_detach_finalize,
7183         acc_detach_finalize_async.
7184         * oacc-mem.c (acc_attach_async, acc_attach, goacc_detach_internal,
7185         acc_detach, acc_detach_async, acc_detach_finalize,
7186         acc_detach_finalize_async): New functions.
7187         * openacc.h (acc_attach, acc_attach_async, acc_detach,
7188         (acc_detach_async, acc_detach_finalize, acc_detach_finalize_async): Add
7189         prototypes.
7190         * target.c (gomp_attach_pointer, gomp_detach_pointer): New functions.
7191         (gomp_remove_var_internal): Free attachment counts if present.
7192         * testsuite/libgomp.oacc-c-c++-common/deep-copy-3.c: New test.
7193         * testsuite/libgomp.oacc-c-c++-common/deep-copy-5.c: New test.
7195 2019-12-19  Julian Brown  <julian@codesourcery.com>
7196             Cesar Philippidis  <cesar@codesourcery.com>
7198         * libgomp.h (gomp_map_val): Add prototype.
7199         * oacc-parallel.c (GOACC_parallel_keyed): Use gomp_map_val instead of
7200         open-coding device-address calculation.
7201         * target.c (gomp_map_val): Make global. Use OFFSET_POINTER in
7202         non-present case.
7204 2019-12-19  Julian Brown  <julian@codesourcery.com>
7206         * libgomp.h (struct splay_tree_key_s): Substitute dynamic_refcount
7207         field for virtual_refcount.
7208         (enum gomp_map_vars_kind): Add GOMP_MAP_VARS_OPENACC_ENTER_DATA.
7209         (gomp_free_memmap): Remove prototype.
7210         * oacc-init.c (acc_shutdown_1): Iteratively call gomp_remove_var
7211         instead of calling gomp_free_memmap.
7212         * oacc-mem.c (acc_map_data): Use virtual_refcount instead of
7213         dynamic_refcount.
7214         (acc_unmap_data): Open code instead of forcing target_mem_desc's
7215         to_free field to NULL then calling gomp_unmap_vars.  Handle
7216         REFCOUNT_INFINITY on target blocks.
7217         (goacc_enter_data): Rename to...
7218         (goacc_enter_datum): ...this.  Remove MAPNUM parameter and special
7219         handling for mapping groups.  Use virtual_refcount instead of
7220         dynamic_refcount.  Use GOMP_MAP_VARS_OPENACC_ENTER_DATA for
7221         map_map_vars_async call.  Re-do lookup for target pointer return value.
7222         (acc_create, acc_create_async, acc_copyin, acc_copyin_async): Call
7223         renamed goacc_enter_datum function.
7224         (goacc_exit_data): Rename to...
7225         (goacc_exit_datum): ...this.  Update for virtual_refcount semantics.
7226         (acc_delete, acc_delete_async, acc_delete_finalize,
7227         acc_delete_finalize_async, acc_copyout, acc_copyout_async,
7228         acc_copyout_finalize, acc_copyout_finalize_async): Call renamed
7229         goacc_exit_datum function.
7230         (gomp_acc_remove_pointer, find_pointer): Remove functions.
7231         (find_group_last, goacc_enter_data_internal, goacc_exit_data_internal):
7232         New functions.
7233         (GOACC_enter_exit_data): Use goacc_enter_data_internal and
7234         goacc_exit_data_internal helper functions.
7235         * target.c (gomp_map_vars_internal): Handle
7236         GOMP_MAP_VARS_OPENACC_ENTER_DATA.  Update for virtual_refcount
7237         semantics.
7238         (gomp_unmap_vars_internal): Update for virtual_refcount semantics.
7239         (gomp_load_image_to_device, omp_target_associate_ptr): Zero-initialise
7240         virtual_refcount field instead of dynamic_refcount.
7241         (gomp_free_memmap): Remove function.
7242         * testsuite/libgomp.oacc-c-c++-common/unmap-infinity-1.c: New test.
7243         * testsuite/libgomp.c-c++-common/unmap-infinity-2.c: New test.
7244         * testsuite/libgomp.oacc-c-c++-common/pr92843-1.c: Add XFAIL.
7246 2019-12-19  Julian Brown  <julian@codesourcery.com>
7247             Thomas Schwinge  <thomas@codesourcery.com>
7249         * libgomp.h (struct splay_tree_aux): New.
7250         (struct splay_tree_key_s): Replace link_key field with aux pointer.
7251         * target.c (gomp_map_vars_internal): Adjust for link_key being moved
7252         to aux struct.
7253         (gomp_remove_var_internal): Free aux block if present.
7254         (gomp_load_image_to_device): Zero-initialise aux field instead of
7255         link_key field.
7256         (omp_target_associate_pointer): Zero-initialise aux field.
7258 2019-12-18  Jakub Jelinek  <jakub@redhat.com>
7260         PR middle-end/86416
7261         * testsuite/libgomp.c/pr86416-1.c (main): Use L suffixes rather than
7262         q or none.
7263         * testsuite/libgomp.c/pr86416-2.c (main): Use Q suffixes rather than
7264         L or none.
7266 2019-12-19  Julian Brown  <julian@codesourcery.com>
7267             Maciej W. Rozycki  <macro@codesourcery.com>
7268             Tobias Burnus  <tobias@codesourcery.com>
7269             Thomas Schwinge  <thomas@codesourcery.com>
7271         * target.c (gomp_map_vars_async): Support GOMP_MAP_NO_ALLOC.
7272         * testsuite/libgomp.oacc-c-c++-common/no_create-1.c: New test.
7273         * testsuite/libgomp.oacc-c-c++-common/no_create-2.c: New test.
7274         * testsuite/libgomp.oacc-c-c++-common/no_create-3.c: New test.
7275         * testsuite/libgomp.oacc-c-c++-common/no_create-4.c: New test.
7276         * testsuite/libgomp.oacc-c-c++-common/no_create-5.c: New test.
7277         * testsuite/libgomp.oacc-fortran/no_create-1.f90: New test.
7278         * testsuite/libgomp.oacc-fortran/no_create-2.f90: New test.
7279         * testsuite/libgomp.oacc-fortran/no_create-3.F90: New test.
7281 2019-12-18  Thomas Schwinge  <thomas@codesourcery.com>
7283         * oacc-mem.c (goacc_enter_data): Refactor, so that it can be
7284         called...
7285         (goacc_insert_pointer): ... from here, "present" case.
7286         (goacc_insert_pointer): Inline function into...
7287         (GOACC_enter_exit_data): ... here, and simplify.
7289         * oacc-mem.c (goacc_enter_data): Refactor, so that it can be
7290         called...
7291         (goacc_insert_pointer): ... from here, "not present" case.
7293         * oacc-mem.c (goacc_remove_pointer): Refactor interface.  Adjust
7294         all users.
7296         * oacc-mem.c (GOACC_enter_exit_data): Refactor code to call
7297         'goacc_enter_data', 'goacc_exit_data'.
7299         * oacc-mem.c (delete_copyout): Refactor into...
7300         (goacc_exit_data): ... this.  Adjust all users.
7302         * oacc-mem.c (present_create_copy): Refactor into...
7303         (goacc_enter_data): ... this.  Adjust all users.
7305         * target.c (gomp_unmap_vars_internal): Add a safeguard to
7306         'gomp_remove_var'.
7308         * target.c (gomp_to_device_kind_p): Handle 'GOMP_MAP_FORCE_FROM'
7309         like 'GOMP_MAP_FROM'.
7311         PR libgomp/92726
7312         PR libgomp/92970
7313         PR libgomp/92984
7314         * oacc-mem.c (delete_copyout): No-op behavior if 'lookup_host'
7315         fails.
7316         (GOACC_enter_exit_data): Simplify accordingly.
7317         * testsuite/libgomp.oacc-c-c++-common/pr92970-1.c: New file,
7318         subsuming...
7319         * testsuite/libgomp.oacc-c-c++-common/lib-17.c: ... this file...
7320         * testsuite/libgomp.oacc-c-c++-common/lib-18.c: ..., and this
7321         file.
7322         * testsuite/libgomp.oacc-c-c++-common/pr92984-1.c: New file,
7323         subsuming...
7324         * testsuite/libgomp.oacc-c-c++-common/lib-21.c: ... this file...
7325         * testsuite/libgomp.oacc-c-c++-common/lib-29.c: ..., and this
7326         file.
7327         * testsuite/libgomp.oacc-c-c++-common/pr92726-1.c: New file,
7328         subsuming...
7329         * testsuite/libgomp.oacc-c-c++-common/lib-28.c: ... this file.
7331         * oacc-mem.c (GOACC_enter_exit_data): Simplify 'exit data'
7332         'finalize' handling.
7334         PR libgomp/92848
7335         * oacc-mem.c (acc_map_data, present_create_copy)
7336         (goacc_insert_pointer): Use 'GOMP_MAP_VARS_ENTER_DATA'.
7337         (acc_unmap_data, delete_copyout, goacc_remove_pointer): Adjust.
7338         * testsuite/libgomp.oacc-c-c++-common/lib-50.c: Remove.
7339         * testsuite/libgomp.oacc-c-c++-common/pr92848-1-d-a.c: New file
7340         * testsuite/libgomp.oacc-c-c++-common/pr92848-1-d-p.c: Likewise.
7341         * testsuite/libgomp.oacc-c-c++-common/pr92848-1-r-a.c: Likewise.
7342         * testsuite/libgomp.oacc-c-c++-common/pr92848-1-r-p.c: Likewise.
7343         * testsuite/libgomp.oacc-c-c++-common/subset-subarray-mappings-1-r-p.c:
7344         Remove "XFAIL"s.
7346         * target.c (gomp_unmap_tgt): Make it 'static'.
7347         * libgomp.h (gomp_unmap_tgt): Remove.
7349 2019-12-18  Tobias Burnus  <tobias@codesourcery.com>
7351         PR middle-end/86416
7352         * testsuite/libgomp.c/pr86416-1.c: New.
7353         * testsuite/libgomp.c/pr86416-2.c: New.
7355 2019-12-17  Tobias Burnus  <tobias@codesourcery.com>
7357         * config/accel/openacc.f90 (module openacc_kinds): Use 'PUBLIC' to mark
7358         all symbols as public except for the 'use â€¦, only' imported symbol,
7359         which is private.
7360         (module openacc): Default to 'PRIVATE' to exclude openacc_internal; mark
7361         all symbols from module openacc_kinds as PUBLIC
7362         * openacc.f90: Add comment with crossref to that file and openmp_lib.h;
7363         fix comment typo.
7364         * openacc_lib.h (acc_device_gcn): Add this PARAMETER.
7366 2019-12-13  Julian Brown  <julian@codesourcery.com>
7368         PR libgomp/92881
7370         * libgomp.h (gomp_remove_var_async): Add prototype.
7371         * oacc-mem.c (delete_copyout): Call gomp_remove_var_async instead of
7372         gomp_remove_var.
7373         * target.c (gomp_unref_tgt): Change return type to bool, indicating
7374         whether target_mem_desc was unmapped.
7375         (gomp_unref_tgt_void): New.
7376         (gomp_remove_var): Reimplement in terms of...
7377         (gomp_remove_var_internal): ...this new helper function.
7378         (gomp_remove_var_async): New, implemented using above helper function.
7379         (gomp_unmap_vars_internal): Use gomp_unref_tgt_void instead of
7380         gomp_unref_tgt.
7382 2019-12-13  Andrew Stubbs  <ams@codesourcery.com>
7384         * testsuite/libgomp.oacc-c-c++-common/acc_prof-init-1.c: Handle gcn.
7385         * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c: Likewise.
7386         * testsuite/libgomp.oacc-c-c++-common/acc_prof-parallel-1.c: Likewise.
7387         * testsuite/libgomp.oacc-c-c++-common/asyncwait-nop-1.c: Likewise.
7388         * testsuite/libgomp.oacc-c-c++-common/function-not-offloaded.c:
7389         Likewise.
7390         * testsuite/libgomp.oacc-c-c++-common/async_queue-1.c: Disable on GCN.
7391         * testsuite/libgomp.oacc-c-c++-common/tile-1.c: Likewise.
7393 2019-12-13  Tobias Burnus  <tobias@codesourcery.com>
7395         * openacc.f90 (module openacc_kinds): Use 'PUBLIC' to mark all symbols
7396         as public except for the 'use â€¦, only' imported symbol, which is
7397         private.
7398         (module openacc): Default to 'PRIVATE' to exclude openacc_internal; mark
7399         all symbols from module openacc_kinds as PUBLIC; add missing PUBLIC
7400         attributes for acc_copyout_finalize and acc_delete_finalize.
7402 2019-12-11  Jakub Jelinek  <jakub@redhat.com>
7404         PR fortran/92899
7405         * testsuite/libgomp.fortran/atomic1.f90: New test.
7407 2019-12-11  Thomas Schwinge  <thomas@codesourcery.com>
7409         PR libgomp/92843
7410         * oacc-mem.c (present_create_copy, delete_copyout): Fix dynamic
7411         reference counting for structured 'REFCOUNT_INFINITY'.  Add some
7412         assertions.
7413         (goacc_insert_pointer, goacc_remove_pointer): Adjust accordingly.
7414         * testsuite/libgomp.oacc-c-c++-common/pr92843-1.c: New file.
7415         * testsuite/libgomp.oacc-c-c++-common/clauses-1.c: Fix OpenACC.
7416         * testsuite/libgomp.oacc-c-c++-common/lib-82.c: Likewise.
7417         * testsuite/libgomp.oacc-c-c++-common/nested-1.c: Likewise.
7419         * oacc-parallel.c (find_pointer, GOACC_enter_exit_data): Move...
7420         * oacc-mem.c: ... here.
7421         (gomp_acc_insert_pointer, gomp_acc_remove_pointer): Rename to
7422         'goacc_insert_pointer', 'goacc_remove_pointer', and make 'static'.
7423         * libgomp.h (gomp_acc_insert_pointer, gomp_acc_remove_pointer):
7424         Remove.
7425         * libgomp_g.h: Update.
7427         * oacc-parallel.c (GOACC_wait, goacc_wait): Move...
7428         * oacc-async.c: ... here.
7429         * oacc-int.h (goacc_wait): Declare.
7430         * libgomp_g.h: Update
7432         PR libgomp/92854
7433         * testsuite/libgomp.oacc-c-c++-common/acc_map_data-device_already-1.c:
7434         New file.
7435         * testsuite/libgomp.oacc-c-c++-common/acc_map_data-device_already-2.c:
7436         Likewise.
7437         * testsuite/libgomp.oacc-c-c++-common/acc_map_data-device_already-3.c:
7438         Likewise.
7439         * testsuite/libgomp.oacc-c-c++-common/acc_map_data-host_already-1.c:
7440         Likewise.
7441         * testsuite/libgomp.oacc-c-c++-common/acc_map_data-host_already-2.c:
7442         Likewise.
7443         * testsuite/libgomp.oacc-c-c++-common/acc_map_data-host_already-3.c:
7444         Likewise.
7446 2019-12-11  Thomas Schwinge  <thomas@codesourcery.com>
7447             Julian Brown  <julian@codesourcery.com>
7449         * target.c (gomp_load_image_to_device, omp_target_associate_ptr):
7450         Initialize 'dynamic_refcount' whenever we initialize 'refcount'.
7452 2019-12-11  Tobias Burnus  <tobias@codesourcery.com>
7454         * omp_lib.h.in: Fix spelling of function declaration
7455         omp_get_cancell(l)ation.
7456         * libgomp.texi (acc_is_present, acc_async_test, acc_async_test_all):
7457         Fix typos.
7458         * env.c: Fix comment typos.
7459         * oacc-host.c: Likewise.
7460         * ordered.c: Likewise.
7461         * task.c: Likewise.
7462         * team.c: Likewise.
7463         * config/gcn/task.c: Likewise.
7464         * config/gcn/team.c: Likewise.
7465         * config/nvptx/task.c: Likewise.
7466         * config/nvptx/team.c: Likewise.
7467         * plugin/plugin-gcn.c: Likewise.
7468         * testsuite/libgomp.fortran/jacobi.f: Likewise.
7469         * testsuite/libgomp.hsa.c/tiling-2.c: Likewise.
7470         * testsuite/libgomp.oacc-c-c++-common/enter_exit-lib.c: Likewise.
7472 2019-12-11  Tobias Burnus  <tobias@codesourcery.com>
7474         * testsuite/libgomp.oacc-fortran/optional-cache.f95: Add 'dg-do run'.
7475         * testsuite/libgomp.oacc-fortran/optional-reduction.f90: Remove
7476         unnecessary 'dg-additional-options "-w"'.
7478 2019-12-09  Thomas Schwinge  <thomas@codesourcery.com>
7479             Julian Brown  <julian@codesourcery.com>
7481         PR libgomp/92116
7482         PR libgomp/92877
7484         * oacc-mem.c (lookup_dev): Reimplement.  Adjust all users.
7485         * libgomp.h (struct acc_dispatch_t): Remove 'data_environ' member.
7486         Adjust all users.
7487         * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-4-2.c:
7488         Remove XFAIL.
7489         * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-4.c:
7490         Likewise.
7491         * testsuite/libgomp.oacc-c-c++-common/pr92877-1.c: New file.
7493 2019-12-09  Thomas Schwinge  <thomas@codesourcery.com>
7495         PR libgomp/92503
7496         * oacc-mem.c (acc_free): Error out instead of 'acc_unmap_data'.
7497         * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-1.c: New
7498         file.
7499         * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-2.c:
7500         Likewise.
7501         * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-3-2.c:
7502         Likewise.
7503         * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-3.c:
7504         Likewise.
7505         * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-4-2.c:
7506         Likewise.
7507         * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-4.c:
7508         Likewise.
7509         * testsuite/libgomp.oacc-c-c++-common/clauses-1.c: Adjust.
7510         * testsuite/libgomp.oacc-c-c++-common/context-1.c: Likewise.
7511         * testsuite/libgomp.oacc-c-c++-common/context-2.c: Likewise.
7512         * testsuite/libgomp.oacc-c-c++-common/context-3.c: Likewise.
7513         * testsuite/libgomp.oacc-c-c++-common/context-4.c: Likewise.
7514         * testsuite/libgomp.oacc-c-c++-common/lib-13.c: Likewise.
7515         * testsuite/libgomp.oacc-c-c++-common/lib-14.c: Likewise.
7516         * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
7517         * testsuite/libgomp.oacc-c-c++-common/lib-91.c: Likewise.
7518         * testsuite/libgomp.oacc-c-c++-common/nested-1.c: Likewise.
7520         PR libgomp/92840
7521         * oacc-mem.c (acc_map_data): Clarify reference counting behavior.
7522         (acc_unmap_data): Add error case for 'REFCOUNT_INFINITY'.
7523         * testsuite/libgomp.oacc-c-c++-common/acc_unmap_data-pr92840-1.c:
7524         New file.
7525         * testsuite/libgomp.oacc-c-c++-common/acc_unmap_data-pr92840-2.c:
7526         Likewise.
7527         * testsuite/libgomp.oacc-c-c++-common/acc_unmap_data-pr92840-3.c:
7528         Likewise.
7529         * testsuite/libgomp.oacc-c-c++-common/clauses-1.c: Adjust.
7530         * testsuite/libgomp.oacc-c-c++-common/nested-1.c: Adjust.
7532         PR libgomp/92511
7533         * testsuite/libgomp.oacc-c-c++-common/copyin-devptr-1.c: Remove
7534         this file...
7535         * testsuite/libgomp.oacc-c-c++-common/copyin-devptr-2.c: ..., and
7536         this file...
7537         * testsuite/libgomp.oacc-c-c++-common/lib-22.c: ..., and this
7538         file...
7539         * testsuite/libgomp.oacc-c-c++-common/lib-30.c: ..., and this
7540         file...
7541         * testsuite/libgomp.oacc-c-c++-common/subset-subarray-mappings-1-r-p.c:
7542         ... with their content moved into, and extended in this new file.
7543         * testsuite/libgomp.oacc-c-c++-common/subset-subarray-mappings-1-d-a.c:
7544         New file.
7545         * testsuite/libgomp.oacc-c-c++-common/subset-subarray-mappings-1-d-p.c:
7546         Likewise.
7547         * testsuite/libgomp.oacc-c-c++-common/subset-subarray-mappings-1-r-a.c:
7548         Likewise.
7549         * testsuite/libgomp.oacc-c-c++-common/subset-subarray-mappings-2.c:
7550         Likewise.
7552         * testsuite/libgomp.oacc-c-c++-common/map-data-1.c: New file.
7554         PR libgomp/92854
7555         * testsuite/libgomp.oacc-c-c++-common/pr92854-1.c: New file.
7557         * testsuite/libgomp.oacc-c-c++-common/host_data-6.c: New file.
7559         * target.c (gomp_exit_data): Use 'gomp_remove_var'.
7561 2019-12-09  Tobias Burnus  <tobias@codesourcery.com>
7563         * testsuite/libgomp.fortran/use_device_addr-3.f90: Make 'stop' codes
7564         unique.
7565         * testsuite/libgomp.fortran/use_device_addr-4.f90: Ditto.
7566         * testsuite/libgomp.fortran/use_device_ptr-optional-2.f90: Ditto.
7567         * testsuite/libgomp.oacc-fortran/declare-5.f90: Ditto.
7568         * testsuite/libgomp.oacc-fortran/optional-data-copyin-by-value.f90:
7569         Ditto.
7570         * testsuite/libgomp.oacc-fortran/optional-firstprivate.f90: Ditto.
7571         * testsuite/libgomp.oacc-fortran/optional-update-host.f90: Ditto.
7573 2019-12-06  Kwok Cheung Yeung  <kcy@codesourcery.com>
7575         * config/accel/proc.c (omp_get_num_procs): Apply ialias macro.
7577 2019-12-06  Tobias Burnus  <tobias@codesourcery.com>
7578             Kwok Cheung Yeung <kcy@codesourcery.com>
7580         * oacc-mem.c (update_dev_host, gomp_acc_insert_pointer): Just return
7581         if input it a NULL pointer.
7582         * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Remove; dependent on
7583         diagnostic of NULL pointer.
7584         * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Ditto.
7585         * testsuite/libgomp.fortran/optional-map.f90: New.
7586         * testsuite/libgomp.fortran/use_device_addr-1.f90
7587         (test_dummy_opt_callee_1_absent): New.
7588         (test_dummy_opt_call_1): Call it.
7589         * testsuite/libgomp.fortran/use_device_addr-2.f90: Likewise.
7590         * testsuite/libgomp.fortran/use_device_addr-3.f90: Likewise.
7591         * testsuite/libgomp.fortran/use_device_addr-4.f90: Likewise.
7592         * testsuite/libgomp.oacc-fortran/optional-cache.f95: New.
7593         * testsuite/libgomp.oacc-fortran/optional-data-copyin-by-value.f90: New.
7594         * testsuite/libgomp.oacc-fortran/optional-data-copyin.f90: New.
7595         * testsuite/libgomp.oacc-fortran/optional-data-copyout.f90: New.
7596         * testsuite/libgomp.oacc-fortran/optional-data-enter-exit.f90: New.
7597         * testsuite/libgomp.oacc-fortran/optional-declare.f90: New.
7598         * testsuite/libgomp.oacc-fortran/optional-firstprivate.f90: New.
7599         * testsuite/libgomp.oacc-fortran/optional-host_data.f90: New.
7600         * testsuite/libgomp.oacc-fortran/optional-nested-calls.f90: New.
7601         * testsuite/libgomp.oacc-fortran/optional-private.f90: New.
7602         * testsuite/libgomp.oacc-fortran/optional-reduction.f90: New.
7603         * testsuite/libgomp.oacc-fortran/optional-update-device.f90: New.
7604         * testsuite/libgomp.oacc-fortran/optional-update-host.f90: New.
7606 2019-12-05  Tobias Burnus  <tobias@codesourcery.com>
7608         * testsuite/libgomp.oacc-fortran/error_stop-1.f: Also don't
7609         expect dg-output of 'Error termination.' for GCN.
7610         * testsuite/libgomp.oacc-fortran/error_stop-2.f: Likewise.
7611         * testsuite/libgomp.oacc-fortran/error_stop-3.f: Likewise.
7613 2019-12-04  Jakub Jelinek  <jakub@redhat.com>
7615         PR fortran/92756
7616         * testsuite/libgomp.fortran/teams1.f90: New test.
7617         * testsuite/libgomp.fortran/teams2.f90: New test.
7619 2019-12-03  Frederik Harwath  <frederik@codesourcery.com>
7621         * oacc-init.c (acc_known_device_type): Add function.
7622         (unknown_device_type_error): Add function.
7623         (name_of_acc_device_t): Change to call unknown_device_type_error
7624         on unknown type.
7625         (resolve_device): Use acc_known_device_type.
7626         (acc_init): Fail if acc_device_t argument is not valid.
7627         (acc_shutdown): Likewise.
7628         (acc_get_num_devices): Likewise.
7629         (acc_set_device_type): Likewise.
7630         (acc_get_device_num): Likewise.
7631         (acc_set_device_num): Likewise.
7632         (acc_on_device): Add comment that argument validity is not checked.
7634 2019-12-03  Andrew Stubbs  <ams@codesourcery.com>
7636         * testsuite/lib/libgomp.exp (offload_target_to_openacc_device_type):
7637         Recognize amdgcn.
7638         (check_effective_target_openacc_amdgcn_accel_present): New proc.
7639         (check_effective_target_openacc_amdgcn_accel_selected): New proc.
7640         * testsuite/libgomp.oacc-c++/c++.exp: Add support for amdgcn.
7641         * testsuite/libgomp.oacc-c/c.exp: Likewise.
7642         * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
7644 2019-12-03  Szabolcs Nagy  <szabolcs.nagy@arm.com>
7646         PR libgomp/91938
7647         * configure.tgt: Avoid IE tls on *-*-musl*.
7649 2019-11-29  Tobias Burnus  <tobias@codesourcery.com>
7651         * testsuite/libgomp.oacc-fortran/declare-5.f90: Extend by
7652         adding a common-block test case.
7654 2019-11-29  Jakub Jelinek  <jakub@redhat.com>
7656         PR c++/60228
7657         * testsuite/libgomp.c++/udr-20.C: New test.
7658         * testsuite/libgomp.c++/udr-21.C: New test.
7660 2019-11-27  Thomas Schwinge  <thomas@codesourcery.com>
7662         * testsuite/lib/libgomp.exp
7663         (check_effective_target_offload_target_nvptx): New proc.
7664         * testsuite/libgomp.fortran/target-print-1.f90: Use it with
7665         'dg-skip-if'.
7666         * testsuite/libgomp.oacc-fortran/print-1.f90: Likewise.
7667         * testsuite/libgomp.fortran/target-print-1-nvptx.f90: New file.
7668         * testsuite/libgomp.oacc-fortran/print-1-nvptx.f90: Likewise.
7670 2019-11-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7672         * testsuite/libgomp.c/pr39591-1.c: Rename err to e.
7673         * testsuite/libgomp.c/pr39591-2.c: Likewise.
7674         * testsuite/libgomp.c/pr39591-3.c: Likewise.
7675         * testsuite/libgomp.c/private-1.c: Likewise.
7676         * testsuite/libgomp.c/task-1.c: Likewise.
7677         * testsuite/libgomp.c/task-5.c: Renamed err to serr.
7679 2019-11-20  Julian Brown  <julian@codesourcery.com>
7681         * plugin/plugin-gcn.c (wait_for_queue_nonfull): Don't lock/unlock
7682         aq->mutex here.
7683         (queue_push_launch): Lock aq->mutex before calling
7684         wait_for_queue_nonfull.
7685         (queue_push_callback): Likewise.
7686         (queue_push_asyncwait): Likewise.
7687         (queue_push_placeholder): Likewise.
7689 2019-11-20  Julian Brown  <julian@codesourcery.com>
7691         * plugin/plugin-gcn.c (hsa_memory_copy_wrapper): New.
7692         (copy_data, GOMP_OFFLOAD_host2dev): Use above function.
7693         (GOMP_OFFLOAD_dev2host, GOMP_OFFLOAD_dev2dev): Check hsa_memory_copy
7694         return code.
7696 2019-11-20  Julian Brown  <julian@codesourcery.com>
7698         PR libgomp/92511
7700         * oacc-mem.c (present_create_copy): Fix device pointer return value in
7701         case of "present" subarray.  Use tgt->tgt_start instead of tgt->to_free
7702         in non-present/create case.
7703         (delete_copyout): Change error condition to fail only on copies outside
7704         of mapped block.  Adjust error message accordingly.
7705         * testsuite/libgomp.oacc-c-c++-common/copyin-devptr-1.c: New test.
7706         * testsuite/libgomp.oacc-c-c++-common/copyin-devptr-2.c: New test.
7707         * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Adjust expected error
7708         message.
7709         * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
7710         * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Allow test to pass now.
7711         * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
7713 2019-11-20  Maciej W. Rozycki  <macro@wdc.com>
7715         * testsuite/lib/libgomp.exp (libgomp_init): Add flags to find
7716         libatomic in build-tree testing.
7718 2019-11-18  Maciej W. Rozycki  <macro@wdc.com>
7720         * testsuite/Makefile.in: Regenerate.
7722 2019-11-15  Andrew Stubbs  <ams@codesourcery.com>
7724         * testsuite/libgomp.c/target-print-1.c: New file.
7725         * testsuite/libgomp.fortran/target-print-1.f90: New file.
7726         * testsuite/libgomp.oacc-c/print-1.c: New file.
7727         * testsuite/libgomp.oacc-fortran/print-1.f90: New file.
7729 2019-11-13  Andrew Stubbs  <ams@codesourcery.com>
7730             Kwok Cheung Yeung  <kcy@codesourcery.com>
7731             Julian Brown  <julian@codesourcery.com>
7732             Tom de Vries  <tom@codesourcery.com>
7734         * plugin/Makefrag.am: Add amdgcn plugin support.
7735         * plugin/configfrag.ac: Likewise.
7736         * plugin/plugin-gcn.c: New file.
7737         * configure: Regenerate.
7738         * Makefile.in: Regenerate.
7739         * testsuite/Makefile.in: Regenerate.
7741 2019-11-13  Andrew Stubbs  <ams@codesourcery.com>
7743         * config/gcn/team.c (gomp_gcn_enter_kernel): Set up the team arena
7744         and use team_malloc variants.
7745         (gomp_gcn_exit_kernel): Use team_free.
7746         * libgomp.h (TEAM_ARENA_SIZE): Define.
7747         (TEAM_ARENA_START): Define.
7748         (TEAM_ARENA_FREE): Define.
7749         (TEAM_ARENA_END): Define.
7750         (team_malloc): New function.
7751         (team_malloc_cleared): New function.
7752         (team_free): New function.
7753         * team.c (gomp_new_team): Initialize and use team_malloc.
7754         (free_team): Use team_free.
7755         (gomp_free_thread): Use team_free.
7756         (gomp_pause_host): Use team_free.
7757         * work.c (gomp_init_work_share): Use team_malloc.
7758         (gomp_fini_work_share): Use team_free.
7760 2019-11-13  Andrew Stubbs  <ams@codesourcery.com>
7761             Kwok Cheung Yeung  <kcy@codesourcery.com>
7762             Julian Brown  <julian@codesourcery.com>
7763             Tom de Vries  <tom@codesourcery.com>
7765         * Makefile.am (libgomp_la_SOURCES): Add oacc-target.c.
7766         * Makefile.in: Regenerate.
7767         * config.h.in (PLUGIN_GCN): Add new undef.
7768         * config/accel/openacc.f90 (acc_device_gcn): New parameter.
7769         * config/gcn/affinity-fmt.c: New file.
7770         * config/gcn/bar.c: New file.
7771         * config/gcn/bar.h: New file.
7772         * config/gcn/doacross.h: New file.
7773         * config/gcn/icv-device.c: New file.
7774         * config/gcn/oacc-target.c: New file.
7775         * config/gcn/simple-bar.h: New file.
7776         * config/gcn/target.c: New file.
7777         * config/gcn/task.c: New file.
7778         * config/gcn/team.c: New file.
7779         * config/gcn/time.c: New file.
7780         * configure.ac: Add amdgcn*-*-*.
7781         * configure: Regenerate.
7782         * configure.tgt: Add amdgcn*-*-*.
7783         * libgomp-plugin.h (offload_target_type): Add OFFLOAD_TARGET_TYPE_GCN.
7784         * libgomp.h (gcn_thrs): Add amdgcn variant.
7785         (set_gcn_thrs): Likewise.
7786         (gomp_thread): Likewise.
7787         * oacc-int.h (goacc_thread): Likewise.
7788         * oacc-target.c: New file.
7789         * openacc.f90 (acc_device_gcn): New parameter.
7790         * openacc.h (acc_device_t): Add acc_device_gcn.
7791         * team.c (gomp_free_pool_helper): Add amdgcn support.
7793 2019-11-13  Andrew Stubbs  <ams@codesourcery.com>
7794             Julian Brown  <julian@codesourcery.com>
7796         * libgomp-plugin.h (GOMP_OFFLOAD_openacc_async_construct): Add int
7797         parameter.
7798         * oacc-async.c (lookup_goacc_asyncqueue): Pass device number to the
7799         queue constructor.
7800         * oacc-host.c (host_openacc_async_construct): Add device parameter.
7801         * plugin/plugin-nvptx.c (GOMP_OFFLOAD_openacc_async_construct): Add
7802         device parameter.
7804 2019-11-13  Andrew Stubbs  <ams@codesourcery.com>
7806         * configure.tgt (nvptx*-*-*): Add "accel" directory.
7807         * config/nvptx/libgomp-plugin.c: Move ...
7808         * config/accel/libgomp-plugin.c: ... to here.
7809         * config/nvptx/lock.c: Move ...
7810         * config/accel/lock.c: ... to here.
7811         * config/nvptx/mutex.c: Move ...
7812         * config/accel/mutex.c: ... to here.
7813         * config/nvptx/mutex.h: Move ...
7814         * config/accel/mutex.h: ... to here.
7815         * config/nvptx/oacc-async.c: Move ...
7816         * config/accel/oacc-async.c: ... to here.
7817         * config/nvptx/oacc-cuda.c: Move ...
7818         * config/accel/oacc-cuda.c: ... to here.
7819         * config/nvptx/oacc-host.c: Move ...
7820         * config/accel/oacc-host.c: ... to here.
7821         * config/nvptx/oacc-init.c: Move ...
7822         * config/accel/oacc-init.c: ... to here.
7823         * config/nvptx/oacc-mem.c: Move ...
7824         * config/accel/oacc-mem.c: ... to here.
7825         * config/nvptx/oacc-plugin.c: Move ...
7826         * config/accel/oacc-plugin.c: ... to here.
7827         * config/nvptx/omp-lock.h: Move ...
7828         * config/accel/omp-lock.h: ... to here.
7829         * config/nvptx/openacc.f90: Move ...
7830         * config/accel/openacc.f90: ... to here.
7831         * config/nvptx/pool.h: Move ...
7832         * config/accel/pool.h: ... to here.
7833         * config/nvptx/proc.c: Move ...
7834         * config/accel/proc.c: ... to here.
7835         * config/nvptx/ptrlock.c: Move ...
7836         * config/accel/ptrlock.c: ... to here.
7837         * config/nvptx/ptrlock.h: Move ...
7838         * config/accel/ptrlock.h: ... to here.
7839         * config/nvptx/sem.c: Move ...
7840         * config/accel/sem.c: ... to here.
7841         * config/nvptx/sem.h: Move ...
7842         * config/accel/sem.h: ... to here.
7843         * config/nvptx/thread-stacksize.h: Move ...
7844         * config/accel/thread-stacksize.h: ... to here.
7846 2019-11-12  Maciej W. Rozycki  <macro@codesourcery.com>
7847             Tobias Burnus  <tobias@codesourcery.com>
7848             Frederik Harwath  <frederik@codesourcery.com>
7849             Thomas Schwinge  <thomas@codesourcery.com>
7851         libgomp/
7852         * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: New test.
7853         * testsuite/libgomp.oacc-fortran/parallel-dims-aux.c: New test.
7854         * testsuite/libgomp.oacc-fortran/parallel-dims.f89: New test.
7856 2019-11-11  Tobias Burnus  <tobias@codesourcery.com>
7857             Kwok Cheung Yeung  <kcy@codesourcery.com>
7859         * testsuite/libgomp.fortran/use_device_ptr-optional-1.f90: Extend.
7860         * testsuite/libgomp.fortran/use_device_ptr-optional-2.f90: New.
7862 2019-11-11  Thomas Schwinge  <thomas@codesourcery.com>
7864         * testsuite/libgomp.fortran/target9.f90: Specify 'dg-do run'.
7866         * testsuite/libgomp.fortran/use_device_addr-3.f90: Specify 'dg-do
7867         run'.
7868         * testsuite/libgomp.fortran/use_device_addr-4.f90: Likewise.
7869         * testsuite/libgomp.fortran/use_device_ptr-1.f90: Likewise.
7871 2019-11-06  Thomas Schwinge  <thomas@codesourcery.com>
7873         * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-1.c:
7874         Add expected warnings about missing reduction clauses.
7875         * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-2.c:
7876         Likewise.
7877         * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-3.c:
7878         Likewise.
7879         * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-4.c:
7880         Likewise.
7882 2019-11-04  Tobias Burnus  <tobias@codesourcery.com>
7884         * testsuite/libgomp.fortran/pr66199-1.f90: Remove
7885         'dg-do run' (implies torture test) as 'dg-options "O2"' is used.
7886         * testsuite/libgomp.fortran/pr66199-2.f90: Ditto.
7887         * testsuite/libgomp.fortran/taskloop2.f90: Ditto.
7888         * testsuite/libgomp.fortran/taskloop3.f90: Ditto.
7889         * testsuite/libgomp.fortran/taskloop4.f90: Ditto.
7891 2019-11-04  Tobias Burnus  <tobias@codesourcery.com>
7893         PR fortran/92305
7894         * testsuite/libgomp.fortran/allocatable2.f90: Use
7895         unique numbers with 'stop'.
7896         * testsuite/libgomp.fortran/use_device_addr-1.f90: Ditto.
7897         * testsuite/libgomp.fortran/use_device_addr-2.f90: Ditto.
7898         * testsuite/libgomp.fortran/use_device_ptr-1.f90: Ditto.
7899         * testsuite/libgomp.oacc-fortran/lib-15.f90: Ditto.
7900         * testsuite/libgomp.oacc-fortran/pset-1.f90: Ditto.
7902 2019-11-01  Tobias Burnus  <tobias@codesourcery.com>
7904         * testsuite/libgomp.fortran/use_device_addr-1.f90 (test_nullptr_1,
7905         test_dummy_opt_nullptr_callee_1): Add present but unallocated test.
7906         * testsuite/libgomp.fortran/use_device_addr-2.f90: Likewise.
7907         * testsuite/libgomp.fortran/use_device_addr-3.f90: New.
7908         * testsuite/libgomp.fortran/use_device_addr-4.f90: New.
7909         * testsuite/testsuite/libgomp.fortran/use_device_ptr-1.f90: New.
7911 2019-10-30  Tobias Burnus  <tobias@codesourcery.com>
7913         * testsuite/libgomp.fortran/target9.f90: New.
7915 2019-10-30  Tobias Burnus  <tobias@codesourcery.com>
7917         * testsuite/libgomp.fortran/aligned1.f03: Replace 'STOP' by 'stop'.
7918         * testsuite/libgomp.fortran/alloc-comp-1.f90: Ditto.
7919         * testsuite/libgomp.fortran/alloc-comp-2.f90: Ditto.
7920         * testsuite/libgomp.fortran/alloc-comp-3.f90: Ditto.
7921         * testsuite/libgomp.fortran/allocatable1.f90: Ditto.
7922         * testsuite/libgomp.fortran/allocatable10.f90: Ditto.
7923         * testsuite/libgomp.fortran/allocatable11.f90: Ditto.
7924         * testsuite/libgomp.fortran/allocatable12.f90: Ditto.
7925         * testsuite/libgomp.fortran/allocatable2.f90: Ditto.
7926         * testsuite/libgomp.fortran/allocatable3.f90: Ditto.
7927         * testsuite/libgomp.fortran/allocatable4.f90: Ditto.
7928         * testsuite/libgomp.fortran/allocatable5.f90: Ditto.
7929         * testsuite/libgomp.fortran/allocatable6.f90: Ditto.
7930         * testsuite/libgomp.fortran/allocatable7.f90: Ditto.
7931         * testsuite/libgomp.fortran/allocatable8.f90: Ditto.
7932         * testsuite/libgomp.fortran/allocatable9.f90: Ditto.
7933         * testsuite/libgomp.fortran/associate1.f90: Ditto.
7934         * testsuite/libgomp.fortran/associate2.f90: Ditto.
7935         * testsuite/libgomp.fortran/associate3.f90: Ditto.
7936         * testsuite/libgomp.fortran/async_io_4.f90: Ditto.
7937         * testsuite/libgomp.fortran/async_io_5.f90: Ditto.
7938         * testsuite/libgomp.fortran/async_io_6.f90: Ditto.
7939         * testsuite/libgomp.fortran/async_io_7.f90: Ditto.
7940         * testsuite/libgomp.fortran/cancel-do-1.f90: Ditto.
7941         * testsuite/libgomp.fortran/cancel-do-2.f90: Ditto.
7942         * testsuite/libgomp.fortran/cancel-parallel-1.f90: Ditto.
7943         * testsuite/libgomp.fortran/cancel-sections-1.f90: Ditto.
7944         * testsuite/libgomp.fortran/cancel-taskgroup-2.f90: Ditto.
7945         * testsuite/libgomp.fortran/character1.f90: Ditto.
7946         * testsuite/libgomp.fortran/character2.f90: Ditto.
7947         * testsuite/libgomp.fortran/collapse1.f90: Ditto.
7948         * testsuite/libgomp.fortran/collapse2.f90: Ditto.
7949         * testsuite/libgomp.fortran/collapse3.f90: Ditto.
7950         * testsuite/libgomp.fortran/collapse4.f90: Ditto.
7951         * testsuite/libgomp.fortran/crayptr1.f90: Ditto.
7952         * testsuite/libgomp.fortran/crayptr2.f90: Ditto.
7953         * testsuite/libgomp.fortran/crayptr3.f90: Ditto.
7954         * testsuite/libgomp.fortran/declare-simd-1.f90: Ditto.
7955         * testsuite/libgomp.fortran/declare-simd-3.f90: Ditto.
7956         * testsuite/libgomp.fortran/declare-target-2.f90: Ditto.
7957         * testsuite/libgomp.fortran/depend-1.f90: Ditto.
7958         * testsuite/libgomp.fortran/depend-2.f90: Ditto.
7959         * testsuite/libgomp.fortran/depend-3.f90: Ditto.
7960         * testsuite/libgomp.fortran/do1.f90: Ditto.
7961         * testsuite/libgomp.fortran/do2.f90: Ditto.
7962         * testsuite/libgomp.fortran/do_concurrent_5.f90: Ditto.
7963         * testsuite/libgomp.fortran/doacross1.f90: Ditto.
7964         * testsuite/libgomp.fortran/doacross2.f90: Ditto.
7965         * testsuite/libgomp.fortran/doacross3.f90: Ditto.
7966         * testsuite/libgomp.fortran/examples-4/array_sections-3.f90: Ditto.
7967         * testsuite/libgomp.fortran/examples-4/array_sections-4.f90: Ditto.
7968         * testsuite/libgomp.fortran/examples-4/async_target-1.f90: Ditto.
7969         * testsuite/libgomp.fortran/examples-4/async_target-2.f90: Ditto.
7970         * testsuite/libgomp.fortran/examples-4/declare_target-1.f90: Ditto.
7971         * testsuite/libgomp.fortran/examples-4/declare_target-2.f90: Ditto.
7972         * testsuite/libgomp.fortran/examples-4/declare_target-3.f90: Ditto.
7973         * testsuite/libgomp.fortran/examples-4/declare_target-4.f90: Ditto.
7974         * testsuite/libgomp.fortran/examples-4/declare_target-5.f90: Ditto.
7975         * testsuite/libgomp.fortran/examples-4/device-1.f90: Ditto.
7976         * testsuite/libgomp.fortran/examples-4/device-2.f90: Ditto.
7977         * testsuite/libgomp.fortran/examples-4/device-3.f90: Ditto.
7978         * testsuite/libgomp.fortran/examples-4/simd-1.f90: Ditto.
7979         * testsuite/libgomp.fortran/examples-4/simd-2.f90: Ditto.
7980         * testsuite/libgomp.fortran/examples-4/simd-3.f90: Ditto.
7981         * testsuite/libgomp.fortran/examples-4/simd-4.f90: Ditto.
7982         * testsuite/libgomp.fortran/examples-4/simd-5.f90: Ditto.
7983         * testsuite/libgomp.fortran/examples-4/simd-6.f90: Ditto.
7984         * testsuite/libgomp.fortran/examples-4/simd-7.f90: Ditto.
7985         * testsuite/libgomp.fortran/examples-4/simd-8.f90: Ditto.
7986         * testsuite/libgomp.fortran/examples-4/target-1.f90: Ditto.
7987         * testsuite/libgomp.fortran/examples-4/target-2.f90: Ditto.
7988         * testsuite/libgomp.fortran/examples-4/target-3.f90: Ditto.
7989         * testsuite/libgomp.fortran/examples-4/target-4.f90: Ditto.
7990         * testsuite/libgomp.fortran/examples-4/target-5.f90: Ditto.
7991         * testsuite/libgomp.fortran/examples-4/target_data-1.f90: Ditto.
7992         * testsuite/libgomp.fortran/examples-4/target_data-2.f90: Ditto.
7993         * testsuite/libgomp.fortran/examples-4/target_data-3.f90: Ditto.
7994         * testsuite/libgomp.fortran/examples-4/target_data-4.f90: Ditto.
7995         * testsuite/libgomp.fortran/examples-4/target_data-5.f90: Ditto.
7996         * testsuite/libgomp.fortran/examples-4/target_data-6.f90: Ditto.
7997         * testsuite/libgomp.fortran/examples-4/target_data-7.f90: Ditto.
7998         * testsuite/libgomp.fortran/examples-4/target_update-1.f90: Ditto.
7999         * testsuite/libgomp.fortran/examples-4/target_update-2.f90: Ditto.
8000         * testsuite/libgomp.fortran/examples-4/task_dep-1.f90: Ditto.
8001         * testsuite/libgomp.fortran/examples-4/task_dep-2.f90: Ditto.
8002         * testsuite/libgomp.fortran/examples-4/task_dep-3.f90: Ditto.
8003         * testsuite/libgomp.fortran/examples-4/task_dep-4.f90: Ditto.
8004         * testsuite/libgomp.fortran/examples-4/task_dep-5.f90: Ditto.
8005         * testsuite/libgomp.fortran/examples-4/teams-2.f90: Ditto.
8006         * testsuite/libgomp.fortran/examples-4/teams-3.f90: Ditto.
8007         * testsuite/libgomp.fortran/examples-4/teams-4.f90: Ditto.
8008         * testsuite/libgomp.fortran/examples-4/teams-5.f90: Ditto.
8009         * testsuite/libgomp.fortran/examples-4/teams-6.f90: Ditto.
8010         * testsuite/libgomp.fortran/lastprivate1.f90: Ditto.
8011         * testsuite/libgomp.fortran/lastprivate2.f90: Ditto.
8012         * testsuite/libgomp.fortran/lib1.f90: Ditto.
8013         * testsuite/libgomp.fortran/lib4.f90: Ditto.
8014         * testsuite/libgomp.fortran/lock-1.f90: Ditto.
8015         * testsuite/libgomp.fortran/lock-2.f90: Ditto.
8016         * testsuite/libgomp.fortran/nested1.f90: Ditto.
8017         * testsuite/libgomp.fortran/nestedfn1.f90: Ditto.
8018         * testsuite/libgomp.fortran/nestedfn2.f90: Ditto.
8019         * testsuite/libgomp.fortran/nestedfn3.f90: Ditto.
8020         * testsuite/libgomp.fortran/nestedfn4.f90: Ditto.
8021         * testsuite/libgomp.fortran/nestedfn5.f90: Ditto.
8022         * testsuite/libgomp.fortran/omp_atomic1.f90: Ditto.
8023         * testsuite/libgomp.fortran/omp_atomic2.f90: Ditto.
8024         * testsuite/libgomp.fortran/omp_atomic3.f90: Ditto.
8025         * testsuite/libgomp.fortran/omp_atomic4.f90: Ditto.
8026         * testsuite/libgomp.fortran/omp_atomic5.f90: Ditto.
8027         * testsuite/libgomp.fortran/omp_cond1.f: Ditto.
8028         * testsuite/libgomp.fortran/omp_cond2.f: Ditto.
8029         * testsuite/libgomp.fortran/omp_cond3.F90: Ditto.
8030         * testsuite/libgomp.fortran/omp_cond4.F90: Ditto.
8031         * testsuite/libgomp.fortran/omp_parse1.f90: Ditto.
8032         * testsuite/libgomp.fortran/omp_parse2.f90: Ditto.
8033         * testsuite/libgomp.fortran/omp_parse3.f90: Ditto.
8034         * testsuite/libgomp.fortran/omp_parse4.f90: Ditto.
8035         * testsuite/libgomp.fortran/openmp_version-1.f: Ditto.
8036         * testsuite/libgomp.fortran/openmp_version-2.f90: Ditto.
8037         * testsuite/libgomp.fortran/parloops-exit-first-loop-alt-2.f95: Ditto.
8038         * testsuite/libgomp.fortran/parloops-exit-first-loop-alt.f95: Ditto.
8039         * testsuite/libgomp.fortran/pointer1.f90: Ditto.
8040         * testsuite/libgomp.fortran/pointer2.f90: Ditto.
8041         * testsuite/libgomp.fortran/pr25219.f90: Ditto.
8042         * testsuite/libgomp.fortran/pr27395-1.f90: Ditto.
8043         * testsuite/libgomp.fortran/pr27395-2.f90: Ditto.
8044         * testsuite/libgomp.fortran/pr27416-1.f90: Ditto.
8045         * testsuite/libgomp.fortran/pr27916-1.f90: Ditto.
8046         * testsuite/libgomp.fortran/pr27916-2.f90: Ditto.
8047         * testsuite/libgomp.fortran/pr28390.f: Ditto.
8048         * testsuite/libgomp.fortran/pr29629.f90: Ditto.
8049         * testsuite/libgomp.fortran/pr32550.f90: Ditto.
8050         * testsuite/libgomp.fortran/pr33880.f90: Ditto.
8051         * testsuite/libgomp.fortran/pr34020.f90: Ditto.
8052         * testsuite/libgomp.fortran/pr35130.f90: Ditto.
8053         * testsuite/libgomp.fortran/pr42162.f90: Ditto.
8054         * testsuite/libgomp.fortran/pr46753.f90: Ditto.
8055         * testsuite/libgomp.fortran/pr48894.f90: Ditto.
8056         * testsuite/libgomp.fortran/pr49792-1.f90: Ditto.
8057         * testsuite/libgomp.fortran/pr49792-2.f90: Ditto.
8058         * testsuite/libgomp.fortran/pr63938-1.f90: Ditto.
8059         * testsuite/libgomp.fortran/pr63938-2.f90: Ditto.
8060         * testsuite/libgomp.fortran/pr65597.f90: Ditto.
8061         * testsuite/libgomp.fortran/pr66199-1.f90: Ditto.
8062         * testsuite/libgomp.fortran/pr71014.f90: Ditto.
8063         * testsuite/libgomp.fortran/pr81304.f90: Ditto.
8064         * testsuite/libgomp.fortran/pr81841.f90: Ditto.
8065         * testsuite/libgomp.fortran/pr84418-1.f90: Ditto.
8066         * testsuite/libgomp.fortran/pr84418-2.f90: Ditto.
8067         * testsuite/libgomp.fortran/procptr1.f90: Ditto.
8068         * testsuite/libgomp.fortran/recursion1.f90: Ditto.
8069         * testsuite/libgomp.fortran/reduction1.f90: Ditto.
8070         * testsuite/libgomp.fortran/reduction2.f90: Ditto.
8071         * testsuite/libgomp.fortran/reduction3.f90: Ditto.
8072         * testsuite/libgomp.fortran/reduction4.f90: Ditto.
8073         * testsuite/libgomp.fortran/reduction5.f90: Ditto.
8074         * testsuite/libgomp.fortran/reduction6.f90: Ditto.
8075         * testsuite/libgomp.fortran/reference1.f90: Ditto.
8076         * testsuite/libgomp.fortran/reference2.f90: Ditto.
8077         * testsuite/libgomp.fortran/retval1.f90: Ditto.
8078         * testsuite/libgomp.fortran/retval2.f90: Ditto.
8079         * testsuite/libgomp.fortran/sharing1.f90: Ditto.
8080         * testsuite/libgomp.fortran/sharing2.f90: Ditto.
8081         * testsuite/libgomp.fortran/simd1.f90: Ditto.
8082         * testsuite/libgomp.fortran/simd2.f90: Ditto.
8083         * testsuite/libgomp.fortran/simd3.f90: Ditto.
8084         * testsuite/libgomp.fortran/simd4.f90: Ditto.
8085         * testsuite/libgomp.fortran/simd5.f90: Ditto.
8086         * testsuite/libgomp.fortran/simd6.f90: Ditto.
8087         * testsuite/libgomp.fortran/simd7.f90: Ditto.
8088         * testsuite/libgomp.fortran/stack.f90: Ditto.
8089         * testsuite/libgomp.fortran/strassen.f90: Ditto.
8090         * testsuite/libgomp.fortran/tabs1.f90: Ditto.
8091         * testsuite/libgomp.fortran/tabs2.f: Ditto.
8092         * testsuite/libgomp.fortran/target1.f90: Ditto.
8093         * testsuite/libgomp.fortran/target2.f90: Ditto.
8094         * testsuite/libgomp.fortran/target3.f90: Ditto.
8095         * testsuite/libgomp.fortran/target4.f90: Ditto.
8096         * testsuite/libgomp.fortran/target5.f90: Ditto.
8097         * testsuite/libgomp.fortran/target6.f90: Ditto.
8098         * testsuite/libgomp.fortran/target7.f90: Ditto.
8099         * testsuite/libgomp.fortran/target8.f90: Ditto.
8100         * testsuite/libgomp.fortran/task1.f90: Ditto.
8101         * testsuite/libgomp.fortran/task2.f90: Ditto.
8102         * testsuite/libgomp.fortran/task3.f90: Ditto.
8103         * testsuite/libgomp.fortran/task4.f90: Ditto.
8104         * testsuite/libgomp.fortran/taskgroup1.f90: Ditto.
8105         * testsuite/libgomp.fortran/taskloop1.f90: Ditto.
8106         * testsuite/libgomp.fortran/taskloop2.f90: Ditto.
8107         * testsuite/libgomp.fortran/taskloop3.f90: Ditto.
8108         * testsuite/libgomp.fortran/taskloop4.f90: Ditto.
8109         * testsuite/libgomp.fortran/threadprivate1.f90: Ditto.
8110         * testsuite/libgomp.fortran/threadprivate2.f90: Ditto.
8111         * testsuite/libgomp.fortran/threadprivate3.f90: Ditto.
8112         * testsuite/libgomp.fortran/threadprivate4.f90: Ditto.
8113         * testsuite/libgomp.fortran/udr1.f90: Ditto.
8114         * testsuite/libgomp.fortran/udr10.f90: Ditto.
8115         * testsuite/libgomp.fortran/udr11.f90: Ditto.
8116         * testsuite/libgomp.fortran/udr12.f90: Ditto.
8117         * testsuite/libgomp.fortran/udr13.f90: Ditto.
8118         * testsuite/libgomp.fortran/udr14.f90: Ditto.
8119         * testsuite/libgomp.fortran/udr15.f90: Ditto.
8120         * testsuite/libgomp.fortran/udr2.f90: Ditto.
8121         * testsuite/libgomp.fortran/udr3.f90: Ditto.
8122         * testsuite/libgomp.fortran/udr4.f90: Ditto.
8123         * testsuite/libgomp.fortran/udr5.f90: Ditto.
8124         * testsuite/libgomp.fortran/udr6.f90: Ditto.
8125         * testsuite/libgomp.fortran/udr7.f90: Ditto.
8126         * testsuite/libgomp.fortran/udr8.f90: Ditto.
8127         * testsuite/libgomp.fortran/udr9.f90: Ditto.
8128         * testsuite/libgomp.fortran/vla1.f90: Ditto.
8129         * testsuite/libgomp.fortran/vla2.f90: Ditto.
8130         * testsuite/libgomp.fortran/vla3.f90: Ditto.
8131         * testsuite/libgomp.fortran/vla4.f90: Ditto.
8132         * testsuite/libgomp.fortran/vla5.f90: Ditto.
8133         * testsuite/libgomp.fortran/vla6.f90: Ditto.
8134         * testsuite/libgomp.fortran/vla7.f90: Ditto.
8135         * testsuite/libgomp.fortran/vla8.f90: Ditto.
8136         * testsuite/libgomp.fortran/workshare1.f90: Ditto.
8137         * testsuite/libgomp.fortran/workshare2.f90: Ditto.
8139 2019-10-30  Tobias Burnus  <tobias@codesourcery.com>
8141         * testsuite/libgomp.fortran/target-simd.f90: Use stop not abort.
8142         * testsuite/libgomp.fortran/use_device_ptr-optional-1.f90:
8143         Ditto; add 'dg-do run' for torture testing.
8144         * testsuite/libgomp.fortran/lastprivate1.f90:  Add 'dg-do run'.
8145         * testsuite/libgomp.fortran/lastprivate2.f90: Ditto.
8146         * testsuite/libgomp.fortran/nestedfn4.f90: Ditto.
8147         * testsuite/libgomp.fortran/pr25219.f90: Ditto.
8148         * testsuite/libgomp.fortran/pr28390.f: Ditto.
8149         * testsuite/libgomp.fortran/pr35130.f90: Ditto.
8150         * testsuite/libgomp.fortran/pr90779.f90: Ditto.
8151         * testsuite/libgomp.fortran/task2.f90: Ditto.
8152         * testsuite/libgomp.fortran/taskgroup1.f90: Ditto.
8153         * testsuite/libgomp.fortran/taskloop1.f90: Ditto.
8154         * testsuite/libgomp.fortran/use_device_addr-1.f90: Ditto.
8155         * testsuite/libgomp.fortran/use_device_addr-2.f90: Ditto.
8156         * testsuite/libgomp.fortran/workshare1.f90: Ditto.
8157         * testsuite/libgomp.fortran/workshare2.f90: Ditto.
8159 2019-10-28  Tobias Burnus  <tobias@codesourcery.com>
8161         * testsuite/libgomp.oacc-fortran/abort-1.f90: Add 'dg-do run'.
8162         * testsuite/libgomp.oacc-fortran/abort-2.f90: Ditto.
8163         * testsuite/libgomp.oacc-fortran/acc_on_device-1-1.f90: Ditto.
8164         * testsuite/libgomp.oacc-fortran/acc_on_device-1-2.f90: Ditto.
8165         * testsuite/libgomp.oacc-fortran/acc_on_device-1-3.f90: Ditto.
8166         * testsuite/libgomp.oacc-fortran/lib-1.f90: Ditto.
8167         * testsuite/libgomp.oacc-fortran/common-block-1.f90:
8168         Use 'stop' not abort().
8169         * testsuite/libgomp.oacc-fortran/common-block-2.f90: Ditto.
8170         * testsuite/libgomp.oacc-fortran/common-block-3.f90: Ditto.
8171         * testsuite/libgomp.oacc-fortran/data-1.f90: Ditto.
8172         * testsuite/libgomp.oacc-fortran/data-2.f90: Ditto.
8173         * testsuite/libgomp.oacc-fortran/data-5.f90: Ditto.
8174         * testsuite/libgomp.oacc-fortran/dummy-array.f90: Ditto.
8175         * testsuite/libgomp.oacc-fortran/gemm-2.f90: Ditto.
8176         * testsuite/libgomp.oacc-fortran/gemm.f90: Ditto.
8177         * testsuite/libgomp.oacc-fortran/host_data-2.f90: Ditto.
8178         * testsuite/libgomp.oacc-fortran/host_data-3.f90: Ditto.
8179         * testsuite/libgomp.oacc-fortran/host_data-4.f90: Ditto.
8180         * testsuite/libgomp.oacc-fortran/kernels-collapse-3.f90: Ditto.
8181         * testsuite/libgomp.oacc-fortran/kernels-collapse-4.f90: Ditto.
8182         * testsuite/libgomp.oacc-fortran/kernels-independent.f90: Ditto.
8183         * testsuite/libgomp.oacc-fortran/kernels-loop-1.f90: Ditto.
8184         * testsuite/libgomp.oacc-fortran/kernels-map-1.f90: Ditto.
8185         * testsuite/libgomp.oacc-fortran/kernels-parallel-loop-data-enter-exit.f95:
8186         Ditto.
8187         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-1.f90:
8188         Ditto.
8189         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-2.f90:
8190         Ditto.
8191         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-3.f90:
8192         Ditto.
8193         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-6.f90:
8194         Ditto.
8195         * testsuite/libgomp.oacc-fortran/kernels-private-vars-vector-1.f90:
8196         Ditto.
8197         * testsuite/libgomp.oacc-fortran/kernels-private-vars-vector-2.f90:
8198         Ditto.
8199         * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-1.f90:
8200         Ditto.
8201         * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-2.f90:
8202         Ditto.
8203         * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-3.f90:
8204         Ditto.
8205         * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-4.f90:
8206         Ditto.
8207         * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-5.f90:
8208         Ditto.
8209         * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-6.f90:
8210         Ditto.
8211         * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-7.f90:
8212         Ditto.
8213         * testsuite/libgomp.oacc-fortran/kernels-reduction-1.f90: Ditto.
8214         * testsuite/libgomp.oacc-fortran/lib-12.f90: Ditto.
8215         * testsuite/libgomp.oacc-fortran/lib-13.f90: Ditto.
8216         * testsuite/libgomp.oacc-fortran/lib-14.f90: Ditto.
8217         * testsuite/libgomp.oacc-fortran/kernels-acc-loop-reduction-2.f90:
8218         Likewise and also add 'dg-do run'.
8219         * testsuite/libgomp.oacc-fortran/kernels-acc-loop-reduction.f90:
8220         Ditto.
8222 2019-10-25  Cesar Philippidis <cesar@codesourcery.com>
8223             Tobias Burnus  <tobias@codesourcery.com>
8225         * testsuite/libgomp.oacc-fortran/common-block-1.f90: New test.
8226         * testsuite/libgomp.oacc-fortran/common-block-2.f90: New test.
8227         * testsuite/libgomp.oacc-fortran/common-block-3.f90: New test.
8229 2019-10-14  Jakub Jelinek  <jakub@redhat.com>
8231         PR libgomp/92081
8232         * testsuite/libgomp.fortran/target-simd.f90: Iterate from 1 rather
8233         than 0.
8235 2019-10-11  Tobias Burnus  <tobias@codesourcery.com>
8237         * testsuite/libgomp.fortran/use_device_addr-1.f90: New.
8238         * testsuite/libgomp.fortran/use_device_addr-2.f90: New.
8240 2019-10-09  Thomas Schwinge  <thomas@codesourcery.com>
8242         PR middle-end/92036
8243         * testsuite/libgomp.oacc-c-c++-common/data-firstprivate-1.c: New
8244         file.
8246 2019-10-09  Tobias Burnus  <tobias@codesourcery.com>
8248         PR testsuite/91884
8249         * testsuite/libgomp.fortran/fortran.exp: Conditionally
8250         add -lquadmath.
8251         * testsuite/libgomp.oacc-fortran/fortran.exp: Ditto.
8253 2019-10-09  Jakub Jelinek  <jakub@redhat.com>
8255         PR libgomp/92028
8256         * target.c (gomp_map_vars_internal): Readd the previous
8257         GOMP_MAP_USE_DEVICE_PTR handling code in the first loop,
8258         though do that just in the !not_found_cnt case.
8260 2019-10-08  Tobias Burnus  <tobias@codesourcery.com>
8262         * gfortran.dg/gomp/target-simd.f90: New.
8264 2019-10-02  Julian Brown  <julian@codesourcery.com>
8265             Cesar Philippidis  <cesar@codesourcery.com>
8267         * libgomp.h (OFFSET_INLINED, OFFSET_POINTER, OFFSET_STRUCT): Define.
8268         * target.c (FIELD_TGT_EMPTY): Define.
8269         (gomp_map_val): Use OFFSET_* macros instead of magic constants.  Write
8270         as switch instead of list of ifs.
8271         (gomp_map_vars_internal): Use OFFSET_* and FIELD_TGT_EMPTY macros.
8273 2019-10-02  Andreas Tobler  <andreast@gcc.gnu.org>
8275         * testsuite/libgomp.oacc-c-c++-common/loop-default.h: Remove alloca.h
8276         include. Replace alloca () with __builtin_alloca ().
8277         * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: Likewise.
8279 2019-10-01  Jakub Jelinek  <jakub@redhat.com>
8281         * configure.ac: Remove GCC_HEADER_STDINT(gstdint.h).
8282         * libgomp.h: Include <stdint.h> instead of "gstdint.h".
8283         * oacc-parallel.c: Don't include "libgomp_g.h".
8284         * plugin/plugin-hsa.c: Include <stdint.h> instead of "gstdint.h".
8285         * plugin/plugin-nvptx.c: Don't include "gstdint.h".
8286         * aclocal.m4: Regenerated.
8287         * config.h.in: Regenerated.
8288         * configure: Regenerated.
8289         * Makefile.in: Regenerated.
8291 2019-09-30  Kwok Cheung Yeung  <kcy@codesourcery.com>
8293         * libgomp_g.h: Include stdint.h instead of gstdint.h.
8295 2019-09-27  Maciej W. Rozycki  <macro@wdc.com>
8297         * configure: Regenerate.
8299 2019-09-13  Tobias Burnus  <tobias@codesourcery.com>
8301         * plugin/plugin-hsa.c (hsa_warn, hsa_fatal, hsa_error): Ensure
8302         string is initialized.
8304 2019-09-06  Florian Weimer  <fweimer@redhat.com>
8306         * configure: Regenerate.
8308 2019-09-03  Chung-Lin Tang  <cltang@codesourcery.com>
8310         PR other/79543
8311         * acinclude.m4 (LIBGOMP_CHECK_LINKER_FEATURES): Fix GNU ld --version
8312         scanning to conform to the GNU Coding Standards.
8313         * configure: Regenerate.
8315 2019-08-28  Jakub Jelinek  <jakub@redhat.com>
8317         PR libgomp/91530
8318         * testsuite/libgomp.c/scan-21.c: New test.
8319         * testsuite/libgomp.c/scan-22.c: New test.
8321 2019-08-27  Jakub Jelinek  <jakub@redhat.com>
8323         PR libgomp/91530
8324         * testsuite/libgomp.c/scan-11.c: Add -msse2 option for sse2_runtime
8325         targets.
8326         * testsuite/libgomp.c/scan-12.c: Likewise.
8327         * testsuite/libgomp.c/scan-13.c: Likewise.
8328         * testsuite/libgomp.c/scan-14.c: Likewise.
8329         * testsuite/libgomp.c/scan-15.c: Likewise.
8330         * testsuite/libgomp.c/scan-16.c: Likewise.
8331         * testsuite/libgomp.c/scan-17.c: Likewise.
8332         * testsuite/libgomp.c/scan-18.c: Likewise.
8333         * testsuite/libgomp.c/scan-19.c: Likewise.
8334         * testsuite/libgomp.c/scan-20.c: Likewise.
8335         * testsuite/libgomp.c++/scan-9.C: Likewise.
8336         * testsuite/libgomp.c++/scan-10.C: Likewise.
8337         * testsuite/libgomp.c++/scan-11.C: Likewise.
8338         * testsuite/libgomp.c++/scan-12.C: Likewise.
8339         * testsuite/libgomp.c++/scan-14.C: Likewise.
8340         * testsuite/libgomp.c++/scan-15.C: Likewise.
8341         * testsuite/libgomp.c++/scan-13.C: Likewise.  Use sse2_runtime
8342         instead of i?86-*-* x86_64-*-* as target for scan-tree-dump-times.
8343         * testsuite/libgomp.c++/scan-16.C: Likewise.
8345 2019-08-17  Thomas Koenig  <tkoenig@gcc.gnu.org>
8347         PR fortran/91473
8348         * testsuite/libgomp.fortran/appendix-a/a.28.5.f90: Add
8349         -std=legacy so invalid code in the test case is accepted.
8351 2019-08-12  Thomas Koenig  <tkoenig@gcc.gnu.org>
8353         PR fortran/91422
8354         * testsuite/libgomp.oacc-fortran/routine-7.f90: Correct array
8355         dimension.
8357 2019-08-08  Jakub Jelinek  <jakub@redhat.com>
8359         * target.c (gomp_map_vars_internal): For GOMP_MAP_USE_DEVICE_PTR
8360         perform the lookup in the first loop only if !not_found_cnt, otherwise
8361         perform lookups for it in the second loop guarded with
8362         if (not_found_cnt || has_firstprivate).
8363         * testsuite/libgomp.c/target-37.c: New test.
8364         * testsuite/libgomp.c++/target-22.C: New test.
8366 2019-08-07  Jakub Jelinek  <jakub@redhat.com>
8368         * testsuite/libgomp.c/target-18.c (struct S): New type.
8369         (foo): Use use_device_addr clause instead of use_device_ptr clause
8370         where required by OpenMP 5.0, add further tests for both use_device_ptr
8371         and use_device_addr clauses.
8372         * testsuite/libgomp.c++/target-9.C (struct S): New type.
8373         (foo): Use use_device_addr clause instead of use_device_ptr clause
8374         where required by OpenMP 5.0, add further tests for both use_device_ptr
8375         and use_device_addr clauses.  Add t and u arguments.
8376         (main): Adjust caller.
8378 2019-08-06  Jakub Jelinek  <jakub@redhat.com>
8380         * testsuite/libgomp.c++/loop-13.C: New test.
8381         * testsuite/libgomp.c++/loop-14.C: New test.
8382         * testsuite/libgomp.c++/loop-15.C: New test.
8384 2019-07-31  Jakub Jelinek  <jakub@redhat.com>
8386         PR middle-end/91301
8387         * testsuite/libgomp.c++/for-27.C: New test.
8389 2019-07-23  Steven G. Kargl  <kargl@gcc.gnu.org>
8391         * testsuite/libgomp.fortran/reduction4.f90: Update BOZ usage.
8392         * testsuite/libgomp.fortran/reduction5.f90: Ditto.
8394 2019-07-20  Jakub Jelinek  <jakub@redhat.com>
8396         * testsuite/libgomp.c-c++-common/loop-1.c: New test.
8398 2019-07-08  Jakub Jelinek  <jakub@redhat.com>
8400         * testsuite/libgomp.c++/scan-13.C: Replace xfail with target x86.
8401         * testsuite/libgomp.c++/scan-16.C: Likewise.
8403 2019-07-06  Jakub Jelinek  <jakub@redhat.com>
8405         * testsuite/libgomp.c/scan-19.c: New test.
8406         * testsuite/libgomp.c/scan-20.c: New test.
8408         * testsuite/libgomp.c/scan-11.c: New test.
8409         * testsuite/libgomp.c/scan-12.c: New test.
8410         * testsuite/libgomp.c/scan-13.c: New test.
8411         * testsuite/libgomp.c/scan-14.c: New test.
8412         * testsuite/libgomp.c/scan-15.c: New test.
8413         * testsuite/libgomp.c/scan-16.c: New test.
8414         * testsuite/libgomp.c/scan-17.c: New test.
8415         * testsuite/libgomp.c/scan-18.c: New test.
8416         * testsuite/libgomp.c++/scan-9.C: New test.
8417         * testsuite/libgomp.c++/scan-10.C: New test.
8418         * testsuite/libgomp.c++/scan-11.C: New test.
8419         * testsuite/libgomp.c++/scan-12.C: New test.
8420         * testsuite/libgomp.c++/scan-13.C: New test.
8421         * testsuite/libgomp.c++/scan-14.C: New test.
8422         * testsuite/libgomp.c++/scan-15.C: New test.
8423         * testsuite/libgomp.c++/scan-16.C: New test.
8425 2019-07-04  Jakub Jelinek  <jakub@redhat.com>
8427         * testsuite/libgomp.c/scan-9.c: New test.
8428         * testsuite/libgomp.c/scan-10.c: New test.
8430 2019-07-03  Jakub Jelinek  <jakub@redhat.com>
8432         * testsuite/libgomp.c++/scan-1.C: New test.
8433         * testsuite/libgomp.c++/scan-2.C: New test.
8434         * testsuite/libgomp.c++/scan-3.C: New test.
8435         * testsuite/libgomp.c++/scan-4.C: New test.
8436         * testsuite/libgomp.c++/scan-5.C: New test.
8437         * testsuite/libgomp.c++/scan-6.C: New test.
8438         * testsuite/libgomp.c++/scan-7.C: New test.
8439         * testsuite/libgomp.c++/scan-8.C: New test.
8440         * testsuite/libgomp.c/scan-1.c: New test.
8441         * testsuite/libgomp.c/scan-2.c: New test.
8442         * testsuite/libgomp.c/scan-3.c: New test.
8443         * testsuite/libgomp.c/scan-4.c: New test.
8444         * testsuite/libgomp.c/scan-5.c: New test.
8445         * testsuite/libgomp.c/scan-6.c: New test.
8446         * testsuite/libgomp.c/scan-7.c: New test.
8447         * testsuite/libgomp.c/scan-8.c: New test.
8449 2019-06-18  Thomas Schwinge  <thomas@codesourcery.com>
8451         * testsuite/libgomp.oacc-c++/firstprivate-mappings-1.C: New file.
8452         * testsuite/libgomp.oacc-c-c++-common/firstprivate-mappings-1.c:
8453         Likewise.
8455         * testsuite/libgomp.fortran/allocatable3.f90: Add missing results
8456         check.
8458 2019-06-18  Cesar Philippidis  <cesar@codesourcery.com>
8460         * testsuite/libgomp.oacc-fortran/allocatable-array-1.f90: New
8461         file.
8463 2019-06-18  Thomas Schwinge  <thomas@codesourcery.com>
8465         PR fortran/90743
8466         * oacc-parallel.c (GOACC_parallel_keyed): Handle NULL mapping
8467         case.
8468         * testsuite/libgomp.fortran/target-allocatable-1-1.f90: New file.
8469         * testsuite/libgomp.fortran/target-allocatable-1-2.f90: Likewise.
8470         * testsuite/libgomp.oacc-fortran/allocatable-1-1.f90: Likewise.
8471         * testsuite/libgomp.oacc-fortran/allocatable-1-2.f90: Likewise.
8473         PR testsuite/90861
8474         * testsuite/libgomp.oacc-c-c++-common/declare-vla.c: Update.
8476         PR middle-end/90862
8477         * testsuite/libgomp.oacc-c-c++-common/declare-1.c: Update.
8479 2019-06-16  Tom de Vries  <tdevries@suse.de>
8481         PR tree-optimization/89376
8482         * testsuite/libgomp.oacc-c-c++-common/pr89376.c: New test.
8484 2019-06-15  Tom de Vries  <tdevries@suse.de>
8486         PR tree-optimization/89713
8487         * testsuite/libgomp.oacc-c-c++-common/pr85381-2.c: Expect no bar.sync.
8488         * testsuite/libgomp.oacc-c-c++-common/pr85381-4.c: Same.
8490 2019-06-15  Jakub Jelinek  <jakub@redhat.com>
8492         PR middle-end/90779
8493         * testsuite/libgomp.c/pr90779.c: New test.
8494         * testsuite/libgomp.fortran/pr90779.f90: New test.
8496 2019-06-15  Tom de Vries  <tdevries@suse.de>
8498         PR tree-optimization/90009
8499         * testsuite/libgomp.oacc-c-c++-common/pr90009.c: New test.
8501 2019-06-13  Feng Xue  <fxue@os.amperecomputing.com>
8503         PR tree-optimization/89713
8504         * testsuite/libgomp.oacc-c-c++-common/pr84955-1.c: New test.
8506 2019-06-11  Jakub Jelinek  <jakub@redhat.com>
8508         PR target/90811
8509         * testsuite/libgomp.c/pr90811.c: New test.
8511 2019-06-05  Jakub Jelinek  <jakub@redhat.com>
8513         * testsuite/libgomp.c++/lastprivate-conditional-1.C: New test.
8514         * testsuite/libgomp.c++/lastprivate-conditional-2.C: New test.
8516 2019-06-04  Jakub Jelinek  <jakub@redhat.com>
8518         * testsuite/libgomp.c-c++-common/lastprivate-conditional-7.c: New test.
8519         * testsuite/libgomp.c-c++-common/lastprivate-conditional-8.c: New test.
8520         * testsuite/libgomp.c-c++-common/lastprivate-conditional-9.c: New test.
8521         * testsuite/libgomp.c-c++-common/lastprivate-conditional-10.c: New test.
8523 2019-05-30  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8525         * configure.ac: Call AX_COUNT_CPUS.
8526         Substitute CPU_COUNT.
8527         * testsuite/Makefile.am (check-am): Use CPU_COUNT as processor
8528         count fallback.
8529         * aclocal.m4: Regenerate.
8530         * configure: Regenerate.
8531         * Makefile.in, testsuite/Makefile.in: Regenerate.
8533 2019-05-29  Jakub Jelinek  <jakub@redhat.com>
8535         * testsuite/libgomp.c-c++-common/lastprivate_conditional_4.c: Rename
8536         to ...
8537         * testsuite/libgomp.c-c++-common/lastprivate-conditional-4.c: ... this.
8538         * testsuite/libgomp.c-c++-common/lastprivate-conditional-5.c: New test.
8539         * testsuite/libgomp.c-c++-common/lastprivate-conditional-6.c: New test.
8541 2019-05-27  Jakub Jelinek  <jakub@redhat.com>
8543         * testsuite/libgomp.c-c++-common/lastprivate_conditional_4.c: New test.
8545         * testsuite/libgomp.c-c++-common/lastprivate-conditional-3.c: New test.
8547         PR libgomp/90641
8548         * work.c (gomp_init_work_share): Instead of aligning final ordered
8549         value to multiples of long long alignment, align to that the
8550         first part (ordered team ids) and if inline_ordered_team_ids
8551         is not on a long long alignment boundary within the structure,
8552         use __alignof__ (long long) - 1 pad size always.
8553         * loop.c (GOMP_loop_start): Fix *mem computation if
8554         inline_ordered_team_ids is not aligned on long long alignment boundary
8555         within the structure.
8556         * loop-ull.c (GOMP_loop_ull_start): Likewise.
8557         * sections.c (GOMP_sections2_start): Likewise.
8559 2019-05-24  Jakub Jelinek  <jakub@redhat.com>
8561         * testsuite/libgomp.c-c++-common/lastprivate-conditional-1.c: New test.
8562         * testsuite/libgomp.c-c++-common/lastprivate-conditional-2.c: New test.
8564         PR libgomp/90585
8565         * plugin/plugin-hsa.c: Include gstdint.h.  Include inttypes.h only if
8566         HAVE_INTTYPES_H is defined.
8567         (print_uint64_t): New typedef.
8568         (PRIu64): Define if HAVE_INTTYPES_H is not defined.
8569         (print_kernel_dispatch, run_kernel): Use PRIu64 macro instead of
8570         "lu", cast uint64_t HSA_DEBUG and fprintf arguments to print_uint64_t.
8571         (release_kernel_dispatch): Likewise.  Cast shadow->debug to uintptr_t
8572         before casting to void *.
8573         * plugin/plugin-nvptx.c: Include gstdint.h instead of stdint.h.
8574         * oacc-mem.c: Don't include config.h nor stdint.h.
8575         * target.c: Don't include config.h.
8576         * oacc-cuda.c: Likewise.
8577         * oacc-host.c: Don't include stdint.h.
8579 2019-05-20  Jakub Jelinek  <jakub@redhat.com>
8581         PR libgomp/90527
8582         * alloc.c (_GNU_SOURCE): Define.
8584 2019-05-17  Thomas Schwinge  <thomas@codesourcery.com>
8586         * acc_prof.h: New file.
8587         * oacc-profiling.c: Likewise.
8588         * Makefile.am (nodist_libsubinclude_HEADERS, libgomp_la_SOURCES):
8589         Add these, respectively.
8590         * Makefile.in: Regenerate.
8591         * env.c (initialize_env): Call goacc_profiling_initialize.
8592         * oacc-plugin.c (GOMP_PLUGIN_goacc_thread)
8593         (GOMP_PLUGIN_goacc_profiling_dispatch): New functions.
8594         * oacc-plugin.h (GOMP_PLUGIN_goacc_thread)
8595         (GOMP_PLUGIN_goacc_profiling_dispatch): Declare.
8596         * libgomp.map (OACC_2.5.1): Add acc_prof_lookup,
8597         acc_prof_register, acc_prof_unregister, and acc_register_library.
8598         (GOMP_PLUGIN_1.3): Add GOMP_PLUGIN_goacc_profiling_dispatch, and
8599         GOMP_PLUGIN_goacc_thread.
8600         * oacc-int.h (struct goacc_thread): Add prof_info, api_info,
8601         prof_callbacks_enabled members.
8602         (goacc_prof_enabled, goacc_profiling_initialize)
8603         (_goacc_profiling_dispatch_p, _goacc_profiling_setup_p)
8604         (goacc_profiling_dispatch): Declare.
8605         (GOACC_PROF_ENABLED, GOACC_PROFILING_DISPATCH_P)
8606         (GOACC_PROFILING_SETUP_P): Define.
8607         * oacc-async.c (acc_async_test, acc_async_test_all, acc_wait)
8608         (acc_wait_async, acc_wait_all, acc_wait_all_async): Update for
8609         OpenACC Profiling Interface.
8610         * oacc-cuda.c (acc_get_current_cuda_device)
8611         (acc_get_current_cuda_context, acc_get_cuda_stream)
8612         (acc_set_cuda_stream): Likewise.
8613         * oacc-init.c (acc_init_1, goacc_attach_host_thread_to_device)
8614         (acc_init, acc_set_device_type, acc_get_device_type)
8615         (acc_get_device_num, goacc_lazy_initialize): Likewise.
8616         * oacc-mem.c (acc_malloc, acc_free, memcpy_tofrom_device)
8617         (acc_deviceptr, acc_hostptr, acc_is_present, acc_map_data)
8618         (acc_unmap_data, present_create_copy, delete_copyout)
8619         (update_dev_host): Likewise.
8620         * oacc-parallel.c (GOACC_parallel_keyed, GOACC_data_start)
8621         (GOACC_data_end, GOACC_enter_exit_data, GOACC_update, GOACC_wait):
8622         Likewise.
8623         * plugin/plugin-nvptx.c (nvptx_exec, nvptx_alloc, nvptx_free)
8624         (GOMP_OFFLOAD_openacc_exec, GOMP_OFFLOAD_openacc_async_exec):
8625         Likewise.
8626         * libgomp.texi: Update.
8627         * testsuite/libgomp.oacc-c-c++-common/acc_prof-dispatch-1.c: New
8628         file.
8629         * testsuite/libgomp.oacc-c-c++-common/acc_prof-init-1.c: Likewise.
8630         * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c:
8631         Likewise.
8632         * testsuite/libgomp.oacc-c-c++-common/acc_prof-parallel-1.c:
8633         Likewise.
8634         * testsuite/libgomp.oacc-c-c++-common/acc_prof-valid_bytes-1.c:
8635         Likewise.
8636         * testsuite/libgomp.oacc-c-c++-common/acc_prof-version-1.c:
8637         Likewise.
8639 2019-05-13  Chung-Lin Tang <cltang@codesourcery.com>
8641         * libgomp-plugin.h (struct goacc_asyncqueue): Declare.
8642         (struct goacc_asyncqueue_list): Likewise.
8643         (goacc_aq): Likewise.
8644         (goacc_aq_list): Likewise.
8645         (GOMP_OFFLOAD_openacc_register_async_cleanup): Remove.
8646         (GOMP_OFFLOAD_openacc_async_test): Remove.
8647         (GOMP_OFFLOAD_openacc_async_test_all): Remove.
8648         (GOMP_OFFLOAD_openacc_async_wait): Remove.
8649         (GOMP_OFFLOAD_openacc_async_wait_async): Remove.
8650         (GOMP_OFFLOAD_openacc_async_wait_all): Remove.
8651         (GOMP_OFFLOAD_openacc_async_wait_all_async): Remove.
8652         (GOMP_OFFLOAD_openacc_async_set_async): Remove.
8653         (GOMP_OFFLOAD_openacc_exec): Adjust declaration.
8654         (GOMP_OFFLOAD_openacc_cuda_get_stream): Likewise.
8655         (GOMP_OFFLOAD_openacc_cuda_set_stream): Likewise.
8656         (GOMP_OFFLOAD_openacc_async_exec): Declare.
8657         (GOMP_OFFLOAD_openacc_async_construct): Declare.
8658         (GOMP_OFFLOAD_openacc_async_destruct): Declare.
8659         (GOMP_OFFLOAD_openacc_async_test): Declare.
8660         (GOMP_OFFLOAD_openacc_async_synchronize): Declare.
8661         (GOMP_OFFLOAD_openacc_async_serialize): Declare.
8662         (GOMP_OFFLOAD_openacc_async_queue_callback): Declare.
8663         (GOMP_OFFLOAD_openacc_async_host2dev): Declare.
8664         (GOMP_OFFLOAD_openacc_async_dev2host): Declare.
8666         * libgomp.h (struct acc_dispatch_t): Define 'async' sub-struct.
8667         (gomp_acc_insert_pointer): Adjust declaration.
8668         (gomp_copy_host2dev): New declaration.
8669         (gomp_copy_dev2host): Likewise.
8670         (gomp_map_vars_async): Likewise.
8671         (gomp_unmap_tgt): Likewise.
8672         (gomp_unmap_vars_async): Likewise.
8673         (gomp_fini_device): Likewise.
8675         * oacc-async.c (get_goacc_thread): New function.
8676         (get_goacc_thread_device): New function.
8677         (lookup_goacc_asyncqueue): New function.
8678         (get_goacc_asyncqueue): New function.
8679         (acc_async_test): Adjust code to use new async design.
8680         (acc_async_test_all): Likewise.
8681         (acc_wait): Likewise.
8682         (acc_wait_async): Likewise.
8683         (acc_wait_all): Likewise.
8684         (acc_wait_all_async): Likewise.
8685         (goacc_async_free): New function.
8686         (goacc_init_asyncqueues): Likewise.
8687         (goacc_fini_asyncqueues): Likewise.
8688         * oacc-cuda.c (acc_get_cuda_stream): Adjust code to use new async
8689         design.
8690         (acc_set_cuda_stream): Likewise.
8691         * oacc-host.c (host_openacc_exec): Adjust parameters, remove 'async'.
8692         (host_openacc_register_async_cleanup): Remove.
8693         (host_openacc_async_exec): New function.
8694         (host_openacc_async_test): Adjust parameters.
8695         (host_openacc_async_test_all): Remove.
8696         (host_openacc_async_wait): Remove.
8697         (host_openacc_async_wait_async): Remove.
8698         (host_openacc_async_wait_all): Remove.
8699         (host_openacc_async_wait_all_async): Remove.
8700         (host_openacc_async_set_async): Remove.
8701         (host_openacc_async_synchronize): New function.
8702         (host_openacc_async_serialize): New function.
8703         (host_openacc_async_host2dev): New function.
8704         (host_openacc_async_dev2host): New function.
8705         (host_openacc_async_queue_callback): New function.
8706         (host_openacc_async_construct): New function.
8707         (host_openacc_async_destruct): New function.
8708         (struct gomp_device_descr host_dispatch): Remove initialization of old
8709         interface, add initialization of new async sub-struct.
8710         * oacc-init.c (acc_shutdown_1): Adjust to use gomp_fini_device.
8711         (goacc_attach_host_thread_to_device): Remove old async code usage.
8712         * oacc-int.h (goacc_init_asyncqueues): New declaration.
8713         (goacc_fini_asyncqueues): Likewise.
8714         (goacc_async_copyout_unmap_vars): Likewise.
8715         (goacc_async_free): Likewise.
8716         (get_goacc_asyncqueue): Likewise.
8717         (lookup_goacc_asyncqueue): Likewise.
8718         * oacc-mem.c (memcpy_tofrom_device): Adjust code to use new async
8719         design.
8720         (present_create_copy): Adjust code to use new async design.
8721         (delete_copyout): Likewise.
8722         (update_dev_host): Likewise.
8723         (gomp_acc_insert_pointer): Add async parameter, adjust code to use new
8724         async design.
8725         (gomp_acc_remove_pointer): Adjust code to use new async design.
8726         * oacc-parallel.c (GOACC_parallel_keyed): Adjust code to use new async
8727         design.
8728         (GOACC_enter_exit_data): Likewise.
8729         (goacc_wait): Likewise.
8730         (GOACC_update): Likewise.
8731         * oacc-plugin.c (GOMP_PLUGIN_async_unmap_vars): Change to assert fail
8732         when called, warn as obsolete in comment.
8733         * target.c (goacc_device_copy_async): New function.
8734         (gomp_copy_host2dev): Remove 'static', add goacc_asyncqueue parameter,
8735         add goacc_device_copy_async case.
8736         (gomp_copy_dev2host): Likewise.
8737         (gomp_map_vars_existing): Add goacc_asyncqueue parameter, adjust code.
8738         (gomp_map_pointer): Likewise.
8739         (gomp_map_fields_existing): Likewise.
8740         (gomp_map_vars_internal): New always_inline function, renamed from
8741         gomp_map_vars.
8742         (gomp_map_vars): Implement by calling gomp_map_vars_internal.
8743         (gomp_map_vars_async): Implement by calling gomp_map_vars_internal,
8744         passing goacc_asyncqueue argument.
8745         (gomp_unmap_tgt): Remove static, add attribute_hidden.
8746         (gomp_unref_tgt): New function.
8747         (gomp_unmap_vars_internal): New always_inline function, renamed from
8748         gomp_unmap_vars.
8749         (gomp_unmap_vars): Implement by calling gomp_unmap_vars_internal.
8750         (gomp_unmap_vars_async): Implement by calling
8751         gomp_unmap_vars_internal, passing goacc_asyncqueue argument.
8752         (gomp_fini_device): New function.
8753         (gomp_exit_data): Adjust gomp_copy_dev2host call.
8754         (gomp_load_plugin_for_device): Remove old interface, adjust to load
8755         new async interface.
8756         (gomp_target_fini): Adjust code to call gomp_fini_device.
8758         * plugin/plugin-nvptx.c (struct cuda_map): Remove.
8759         (struct ptx_stream): Remove.
8760         (struct nvptx_thread): Remove current_stream field.
8761         (cuda_map_create): Remove.
8762         (cuda_map_destroy): Remove.
8763         (map_init): Remove.
8764         (map_fini): Remove.
8765         (map_pop): Remove.
8766         (map_push): Remove.
8767         (struct goacc_asyncqueue): Define.
8768         (struct nvptx_callback): Define.
8769         (struct ptx_free_block): Define.
8770         (struct ptx_device): Remove null_stream, active_streams, async_streams,
8771         stream_lock, and next fields.
8772         (enum ptx_event_type): Remove.
8773         (struct ptx_event): Remove.
8774         (ptx_event_lock): Remove.
8775         (ptx_events): Remove.
8776         (init_streams_for_device): Remove.
8777         (fini_streams_for_device): Remove.
8778         (select_stream_for_async): Remove.
8779         (nvptx_init): Remove ptx_events and ptx_event_lock references.
8780         (nvptx_attach_host_thread_to_device): Remove CUDA_ERROR_NOT_PERMITTED
8781         case.
8782         (nvptx_open_device): Add free_blocks initialization, remove
8783         init_streams_for_device call.
8784         (nvptx_close_device): Remove fini_streams_for_device call, add
8785         free_blocks destruct code.
8786         (event_gc): Remove.
8787         (event_add): Remove.
8788         (nvptx_exec): Adjust parameters and code.
8789         (nvptx_free): Likewise.
8790         (nvptx_host2dev): Remove.
8791         (nvptx_dev2host): Remove.
8792         (nvptx_set_async): Remove.
8793         (nvptx_async_test): Remove.
8794         (nvptx_async_test_all): Remove.
8795         (nvptx_wait): Remove.
8796         (nvptx_wait_async): Remove.
8797         (nvptx_wait_all): Remove.
8798         (nvptx_wait_all_async): Remove.
8799         (nvptx_get_cuda_stream): Remove.
8800         (nvptx_set_cuda_stream): Remove.
8801         (GOMP_OFFLOAD_alloc): Adjust code.
8802         (GOMP_OFFLOAD_free): Likewise.
8803         (GOMP_OFFLOAD_openacc_register_async_cleanup): Remove.
8804         (GOMP_OFFLOAD_openacc_exec): Adjust parameters and code.
8805         (GOMP_OFFLOAD_openacc_async_test_all): Remove.
8806         (GOMP_OFFLOAD_openacc_async_wait): Remove.
8807         (GOMP_OFFLOAD_openacc_async_wait_async): Remove.
8808         (GOMP_OFFLOAD_openacc_async_wait_all): Remove.
8809         (GOMP_OFFLOAD_openacc_async_wait_all_async): Remove.
8810         (GOMP_OFFLOAD_openacc_async_set_async): Remove.
8811         (cuda_free_argmem): New function.
8812         (GOMP_OFFLOAD_openacc_async_exec): New plugin hook function.
8813         (GOMP_OFFLOAD_openacc_create_thread_data): Adjust code.
8814         (GOMP_OFFLOAD_openacc_cuda_get_stream): Adjust code.
8815         (GOMP_OFFLOAD_openacc_cuda_set_stream): Adjust code.
8816         (GOMP_OFFLOAD_openacc_async_construct): New plugin hook function.
8817         (GOMP_OFFLOAD_openacc_async_destruct): New plugin hook function.
8818         (GOMP_OFFLOAD_openacc_async_test): Remove and re-implement.
8819         (GOMP_OFFLOAD_openacc_async_synchronize): New plugin hook function.
8820         (GOMP_OFFLOAD_openacc_async_serialize): New plugin hook function.
8821         (GOMP_OFFLOAD_openacc_async_queue_callback): New plugin hook function.
8822         (cuda_callback_wrapper): New function.
8823         (cuda_memcpy_sanity_check): New function.
8824         (GOMP_OFFLOAD_host2dev): Remove and re-implement.
8825         (GOMP_OFFLOAD_dev2host): Remove and re-implement.
8826         (GOMP_OFFLOAD_openacc_async_host2dev): New plugin hook function.
8827         (GOMP_OFFLOAD_openacc_async_dev2host): New plugin hook function.
8829 2019-05-07  Thomas Schwinge  <thomas@codesourcery.com>
8831         PR target/87835
8832         * testsuite/libgomp.oacc-c-c++-common/pr87835.c: Update.
8834 2019-05-06  Thomas Schwinge  <thomas@codesourcery.com>
8836         * oacc-parallel.c: Add comments to legacy entry points (GCC 5).
8838 2019-03-27  Kevin Buettner  <kevinb@redhat.com>
8840         * team.c (gomp_team_start): Initialize pool->threads[0].
8842 2019-02-22  Thomas Schwinge  <thomas@codesourcery.com>
8844         * testsuite/libgomp.oacc-c++/c++.exp: Specify
8845         "-foffload=$offload_target".
8846         * testsuite/libgomp.oacc-c/c.exp: Likewise.
8847         * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
8848         * testsuite/lib/libgomp.exp
8849         (check_effective_target_openacc_nvidia_accel_configured): Remove,
8850         as (conceptually) merged into
8851         check_effective_target_openacc_nvidia_accel_selected.  Adjust all
8852         users.
8854         * plugin/configfrag.ac: Populate and AC_SUBST offload_targets.
8855         * testsuite/libgomp-test-support.exp.in: Adjust.
8856         * testsuite/lib/libgomp.exp: Likewise.  Don't populate
8857         openacc_device_types_s.
8858         (offload_target_to_openacc_device_type): New proc.
8859         * testsuite/libgomp.oacc-c++/c++.exp: Adjust.
8860         * testsuite/libgomp.oacc-c/c.exp: Likewise.
8861         * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
8862         * Makefile.in: Regenerate.
8863         * configure: Likewise.
8864         * testsuite/Makefile.in: Likewise.
8866         * plugin/configfrag.ac: Populate and AC_SUBST offload_plugins
8867         instead of offload_targets, and AC_DEFINE_UNQUOTED OFFLOAD_PLUGINS
8868         instead of OFFLOAD_TARGETS.
8869         * target.c (gomp_target_init): Adjust.
8870         * testsuite/libgomp-test-support.exp.in: Likewise.
8871         * testsuite/lib/libgomp.exp: Likewise.  Populate
8872         openacc_device_types_s instead of offload_targets_s_openacc.
8873         (check_effective_target_openacc_nvidia_accel_selected)
8874         (check_effective_target_openacc_host_selected): Adjust.
8875         * testsuite/libgomp.oacc-c++/c++.exp: Likewise.
8876         * testsuite/libgomp.oacc-c/c.exp: Likewise.
8877         * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
8878         * Makefile.in: Regenerate.
8879         * config.h.in: Likewise.
8880         * configure: Likewise.
8881         * testsuite/Makefile.in: Likewise.
8883         * testsuite/lib/libgomp.exp: Error out for unknown offload target.
8884         * testsuite/libgomp.oacc-c++/c++.exp: Likewise.  Report if
8885         "offloading: supported, but hardware not accessible".
8886         * testsuite/libgomp.oacc-c/c.exp: Likewise.
8887         * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
8889 2019-02-19  Chung-Lin Tang <cltang@codesourcery.com>
8891         PR c/87924
8892         * oacc-parallel.c (GOACC_parallel_keyed): Remove condition on call to
8893         goacc_wait().
8894         (goacc_wait): Handle ACC_ASYNC_NOVAL case, remove goacc_thread() call
8895         and related adjustment.
8897 2019-01-30  Jakub Jelinek  <jakub@redhat.com>
8899         PR c++/88988
8900         * testsuite/libgomp.c++/pr88988.C: New test.
8902 2019-01-28  Jakub Jelinek  <jakub@redhat.com>
8904         PR middle-end/89002
8905         * testsuite/libgomp.c/pr89002.c: New test.
8907 2019-01-28  Richard Biener  <rguenther@suse.de>
8909         PR testsuite/89064
8910         PR tree-optimization/86865
8911         * testsuite/libgomp.graphite/force-parallel-5.c: XFAIL.
8913 2019-01-24  Tom de Vries  <tdevries@suse.de>
8915         * plugin/plugin-nvptx.c (GOMP_OFFLOAD_fini_device): Free ptx_devices
8916         once instantiated_devices drops to 0.
8918 2019-01-23  Tom de Vries  <tdevries@suse.de>
8920         PR target/PR88946
8921         * plugin/plugin-nvptx.c (cuda_map_destroy): Use CUDA_CALL_NOCHECK for
8922         cuMemFree.
8923         (nvptx_exec): Don't call map_push if mapnum == 0.
8924         * testsuite/libgomp.oacc-c-c++-common/pr88946.c: New test.
8926 2019-01-23  Tom de Vries  <tdevries@suse.de>
8928         PR target/88941
8929         PR target/88939
8930         * plugin/plugin-nvptx.c (cuda_map_destroy): Handle map->active case.
8931         (map_fini): Remove "assert (!s->map->active)".
8932         * testsuite/libgomp.oacc-c-c++-common/pr88941.c: New test.
8934 2019-01-23  Tom de Vries  <tdevries@suse.de>
8936         PR target/87835
8937         * plugin/plugin-nvptx.c (map_push): Fix adding of allocated element.
8938         * testsuite/libgomp.oacc-c-c++-common/pr87835.c: New test.
8940 2019-01-15  Tom de Vries  <tdevries@suse.de>
8942         PR target/80547
8943         * testsuite/libgomp.oacc-c-c++-common/gang-reduction-var-assignment.c:
8944         New test.
8946 2019-01-12  Tom de Vries  <tdevries@suse.de>
8948         * testsuite/libgomp.oacc-c-c++-common/pr85486-2.c: New test.
8949         * testsuite/libgomp.oacc-c-c++-common/vector-length-128-2.c: New test.
8950         * testsuite/libgomp.oacc-c-c++-common/vector-length-128-5.c: New test.
8951         * testsuite/libgomp.oacc-fortran/gemm-2.f90: New test.
8953 2019-01-12  Tom de Vries  <tdevries@suse.de>
8955         * plugin/plugin-nvptx.c (nvptx_exec): Update error message.
8957 2019-01-12  Tom de Vries  <tdevries@suse.de>
8959         * testsuite/libgomp.oacc-c-c++-common/vector-length-64-1.c: New test.
8960         * testsuite/libgomp.oacc-c-c++-common/vector-length-64-2.c: New test.
8961         * testsuite/libgomp.oacc-c-c++-common/vector-length-64-3.c: New test.
8963 2019-01-12  Tom de Vries  <tdevries@suse.de>
8965         PR target/85486
8966         * testsuite/libgomp.oacc-c-c++-common/pr85486-3.c: New test.
8967         * testsuite/libgomp.oacc-c-c++-common/pr85486.c: New test.
8969 2019-01-12  Tom de Vries  <tdevries@suse.de>
8971         PR target/85381
8972         * testsuite/libgomp.oacc-c-c++-common/pr85381-5.c: New test.
8973         * testsuite/libgomp.oacc-c-c++-common/pr85381.c: New test.
8975 2019-01-12  Tom de Vries  <tdevries@suse.de>
8977         * testsuite/libgomp.oacc-c-c++-common/vred2d-128.c: New test.
8978         * testsuite/libgomp.oacc-fortran/gemm.f90: New test.
8979         * testsuite/libgomp.oacc-c-c++-common/vector-length-128-10.c: New test.
8981 2019-01-12  Tom de Vries  <tdevries@suse.de>
8983         * testsuite/libgomp.oacc-c-c++-common/vector-length-128-7.c: New test.
8984         * testsuite/libgomp.oacc-c-c++-common/vector-length-128-4.c: New test.
8985         * testsuite/libgomp.oacc-c-c++-common/vector-length-128-6.c: New test.
8987 2019-01-12  Tom de Vries  <tdevries@suse.de>
8989         * plugin/plugin-nvptx.c (nvptx_exec): Update insufficient hardware
8990         resources diagnostic.
8992 2019-01-12  Tom de Vries  <tdevries@suse.de>
8994         * testsuite/libgomp.oacc-c-c++-common/vector-length-128-1.c: Expect
8995         vector length to be 128.
8996         * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Expect vector
8997         length 2097152 to be reduced to 1024 instead of 32.
8999 2019-01-11  Thomas Schwinge  <thomas@codesourcery.com>
9000             James Norris  <jnorris@codesourcery.com>
9002         * libgomp.texi: Better distinguish OpenACC and OpenMP "Runtime
9003         Library Routines", and "Environment Variables".
9005 2019-01-11  Tom de Vries  <tdevries@suse.de>
9007         * plugin/plugin-nvptx.c (nvptx_exec): Prevent vector_length 64 and
9008         num_workers 16.
9010 2019-01-11  Tom de Vries  <tdevries@suse.de>
9012         * testsuite/libgomp.oacc-c-c++-common/reduction-1.c: Remove
9013         -foffload=-w.
9014         * testsuite/libgomp.oacc-c-c++-common/reduction-2.c: Same.
9015         * testsuite/libgomp.oacc-c-c++-common/reduction-3.c: Same.
9016         * testsuite/libgomp.oacc-c-c++-common/reduction-4.c: Same.
9017         * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Same.
9019 2019-01-11  Tom de Vries  <tdevries@suse.de>
9021         * testsuite/libgomp.oacc-c-c++-common/insufficient-resources.c: New
9022         test.
9024 2019-01-10  Nathan Sidwell  <nathan@acm.org>
9025             Julian Brown  <julian@codesourcery.com>
9027         PR lto/71959
9028         * testsuite/libgomp.oacc-c++/pr71959-aux.cc: New.
9029         * testsuite/libgomp.oacc-c++/pr71959.C: New.
9031 2019-01-09  Sebastian Huber  <sebastian.huber@embedded-brains.de>
9033         * config/rtems/bar.c: Include "../linux/bar.c" and delete copy
9034         and paste code.
9036 2019-01-09  Sebastian Huber  <sebastian.huber@embedded-brains.de>
9038         * config/rtems/affinity-fmt.c: New file.  Include affinity-fmt.c,
9039         undefining HAVE_GETPID and HAVE_GETHOSTNAME, and mapping fwrite to
9040         write.
9042 2019-01-09  Tom de Vries  <tdevries@suse.de>
9044         PR target/88756
9045         * testsuite/libgomp.oacc-c-c++-common/reduction-1.c (ng, nw, vl): Use
9046         #define instead of "const int".
9047         * testsuite/libgomp.oacc-c-c++-common/reduction-2.c (ng, nw, vl): Same.
9048         * testsuite/libgomp.oacc-c-c++-common/reduction-3.c (ng, nw, vl): Same.
9049         * testsuite/libgomp.oacc-c-c++-common/reduction-4.c (ng, nw, vl): Same.
9050         * testsuite/libgomp.oacc-c-c++-common/reduction-5.c (ng, nw, vl): Same.
9052 2019-01-09  Tom de Vries  <tdevries@suse.de>
9054         * plugin/plugin-nvptx.c (nvptx_exec): Make sure to launch with at least
9055         one worker.
9057 2019-01-07  Tom de Vries  <tdevries@suse.de>
9059         * testsuite/libgomp.oacc-c-c++-common/vector-length-128-3.c: Fix
9060         GOMP_OPENACC_DIM argument.
9062 2019-01-03  Tom de Vries  <tdevries@suse.de>
9064         * testsuite/libgomp.oacc-c-c++-common/vector-length-128-1.c: New test.
9065         * testsuite/libgomp.oacc-c-c++-common/vector-length-128-3.c: New test.
9067 2019-01-01  Jakub Jelinek  <jakub@redhat.com>
9069         Update copyright years.
9071 2019-01-01  Jakub Jelinek  <jakub@redhat.com>
9073         * libgomp.texi: Bump @copying's copyright year.
9075 2018-12-28  Thomas Schwinge  <thomas@codesourcery.com>
9077         * oacc-parallel.c (GOACC_parallel_keyed, GOACC_parallel)
9078         (GOACC_data_start, GOACC_enter_exit_data, GOACC_update)
9079         (GOACC_declare): Redefine the "device" argument to "flags".
9081 2018-12-28  Thomas Schwinge  <thomas@codesourcery.com>
9082             Cesar Philippidis  <cesar@codesourcery.com>
9084         * target.c (struct gomp_coalesce_chunk): New structure.
9085         (struct gomp_coalesce_buf): Update the chunks member to use that
9086         type.  Adjust all users.
9088 2018-12-19  Tom de Vries  <tdevries@suse.de>
9090         * testsuite/libgomp.oacc-c-c++-common/pr85381-2.c: New test.
9091         * testsuite/libgomp.oacc-c-c++-common/pr85381-3.c: New test.
9092         * testsuite/libgomp.oacc-c-c++-common/pr85381-4.c: New test.
9094 2018-12-19  Tom de Vries  <tdevries@suse.de>
9096         * testsuite/lib/libgomp.exp: Add load_lib of scanoffloadrtl.exp.
9097         * testsuite/libgomp.oacc-c-c++-common/nvptx-merged-loop.c: Move from
9098         gcc/testsuite/gcc.dg/goacc.
9099         * testsuite/libgomp.oacc-c-c++-common/nvptx-sese-1.c: Same.
9101 2018-12-14  Thomas Schwinge  <thomas@codesourcery.com>
9102             Chung-Lin Tang  <cltang@codesourcery.com>
9104         * oacc-mem.c (acc_present_or_create): Remove definition and change
9105         to alias of acc_create.
9106         (acc_present_or_copyin): Remove definition and change to alias of
9107         acc_copyin.
9108         * oacc-parallel.c (GOACC_enter_exit_data): Call acc_create instead
9109         of acc_present_or_create.
9110         * testsuite/libgomp.oacc-c-c++-common/data-already-1.c: Remove.
9111         * testsuite/libgomp.oacc-c-c++-common/data-already-2.c: Likewise.
9112         * testsuite/libgomp.oacc-c-c++-common/data-already-3.c: Likewise.
9113         * testsuite/libgomp.oacc-c-c++-common/data-already-4.c: Likewise.
9114         * testsuite/libgomp.oacc-c-c++-common/data-already-5.c: Likewise.
9115         * testsuite/libgomp.oacc-c-c++-common/data-already-6.c: Likewise.
9116         * testsuite/libgomp.oacc-c-c++-common/data-already-7.c: Likewise.
9117         * testsuite/libgomp.oacc-c-c++-common/data-already-8.c: Likewise.
9118         * testsuite/libgomp.oacc-fortran/data-already-1.f: Likewise.
9119         * testsuite/libgomp.oacc-fortran/data-already-2.f: Likewise.
9120         * testsuite/libgomp.oacc-fortran/data-already-3.f: Likewise.
9121         * testsuite/libgomp.oacc-fortran/data-already-4.f: Likewise.
9122         * testsuite/libgomp.oacc-fortran/data-already-5.f: Likewise.
9123         * testsuite/libgomp.oacc-fortran/data-already-6.f: Likewise.
9124         * testsuite/libgomp.oacc-fortran/data-already-7.f: Likewise.
9125         * testsuite/libgomp.oacc-fortran/data-already-8.f: Likewise.
9127 2018-12-14  Thomas Schwinge  <thomas@codesourcery.com>
9129         PR libgomp/88495
9130         * plugin/plugin-nvptx.c (nvptx_wait_async): Don't refuse
9131         "identical parameters".
9132         * testsuite/libgomp.oacc-c-c++-common/asyncwait-nop-1.c: Update.
9133         * testsuite/libgomp.oacc-c-c++-common/lib-80.c: Remove.
9135         PR libgomp/88484
9136         * oacc-parallel.c (GOACC_wait): Correct handling for "async >= 0".
9137         * testsuite/libgomp.oacc-c-c++-common/asyncwait-nop-1.c: New file.
9139         PR libgomp/88407
9140         * plugin/plugin-nvptx.c (nvptx_async_test, nvptx_wait)
9141         (nvptx_wait_async): Unseen async-argument is a no-op.
9142         * testsuite/libgomp.oacc-c-c++-common/async_queue-1.c: Update.
9143         * testsuite/libgomp.oacc-c-c++-common/data-2-lib.c: Likewise.
9144         * testsuite/libgomp.oacc-c-c++-common/data-2.c: Likewise.
9145         * testsuite/libgomp.oacc-c-c++-common/lib-79.c: Likewise.
9146         * testsuite/libgomp.oacc-fortran/lib-12.f90: Likewise.
9147         * testsuite/libgomp.oacc-c-c++-common/lib-71.c: Merge into...
9148         * testsuite/libgomp.oacc-c-c++-common/lib-69.c: ... this.  Update.
9149         * testsuite/libgomp.oacc-c-c++-common/lib-77.c: Merge into...
9150         * testsuite/libgomp.oacc-c-c++-common/lib-74.c: ... this.  Update
9152         * testsuite/libgomp.oacc-c-c++-common/data-2-lib.c: Revise.
9153         * testsuite/libgomp.oacc-c-c++-common/data-2.c: Likewise.
9155 2018-12-14  Chung-Lin Tang  <cltang@codesourcery.com>
9157         * testsuite/libgomp.oacc-c-c++-common/data-2-lib.c: Adjust.
9158         * testsuite/libgomp.oacc-c-c++-common/data-2.c: Likewise.
9159         * testsuite/libgomp.oacc-c-c++-common/data-3.c: Likewise.
9161 2018-12-14  Thomas Schwinge  <thomas@codesourcery.com>
9163         PR libgomp/88370
9164         * libgomp.texi (acc_get_current_cuda_context, acc_get_cuda_stream)
9165         (acc_set_cuda_stream): Clarify.
9166         * oacc-cuda.c (acc_get_cuda_stream, acc_set_cuda_stream): Use
9167         "async_valid_p".
9168         * plugin/plugin-nvptx.c (nvptx_set_cuda_stream): Refuse "async ==
9169         acc_async_sync".
9170         * testsuite/libgomp.oacc-c-c++-common/acc_set_cuda_stream-1.c: New file.
9171         * testsuite/libgomp.oacc-c-c++-common/async_queue-1.c: Likewise.
9172         * testsuite/libgomp.oacc-c-c++-common/lib-84.c: Update.
9173         * testsuite/libgomp.oacc-c-c++-common/lib-85.c: Likewise.
9175 2018-12-14  Tom de Vries  <tdevries@suse.de>
9177         * testsuite/libgomp.c-c++-common/function-not-offloaded-aux.c: New test.
9178         * testsuite/libgomp.c-c++-common/function-not-offloaded.c: New test.
9179         * testsuite/libgomp.c-c++-common/variable-not-offloaded.c: New test.
9180         * testsuite/libgomp.oacc-c-c++-common/function-not-offloaded.c: New test.
9181         * testsuite/libgomp.oacc-c-c++-common/variable-not-offloaded.c: New test.
9183 2018-12-13  Tom de Vries  <tdevries@suse.de>
9185         * affinity-fmt.c (gomp_print_string): New function, factored out of ...
9186         (omp_display_affinity, gomp_display_affinity_thread): ... here, and ...
9187         * fortran.c (omp_display_affinity_): ... here.
9188         * libgomp.h (gomp_print_string): Declare.
9189         * config/nvptx/affinity-fmt.c: New file.  Include affinity-fmt.c,
9190         undefining HAVE_GETPID and HAVE_GETHOSTNAME, and mapping fwrite to
9191         write.
9193 2018-12-13  Jakub Jelinek  <jakub@redhat.com>
9195         PR libgomp/88460
9196         * testsuite/libgomp.c++/for-24.C (results): Include it in
9197         omp declare target region.
9198         (main): Use map (always, tofrom: results) instead of
9199         map (tofrom: results).
9201 2018-12-12  Jakub Jelinek  <jakub@redhat.com>
9203         PR fortran/88463
9204         * testsuite/libgomp.fortran/pr88463-1.f90: New test.
9205         * testsuite/libgomp.fortran/pr88463-2.f90: New test.
9207         * testsuite/libgomp.c-c++-common/for-16.c: New test.
9209 2018-12-12  Andreas Schwab  <schwab@suse.de>
9211         * config/linux/ia64/futex.h (sys_futex0): Don't mark r12 as
9212         clobbered.
9214 2018-12-09  Thomas Koenig  <tkoenig@gcc.gnu.org>
9216         PR fortran/88411
9217         * testsuite/libgomp.fortran/async_io_8.f90: New test.
9219 2018-12-09  Thomas Schwinge  <thomas@codesourcery.com>
9220             Jakub Jelinek  <jakub@redhat.com>
9222         * target.c (gomp_map_vars): Call gomp_copy_host2dev instead of
9223         devicep->host2dev_func.
9225 2018-12-08  Jakub Jelinek  <jakub@redhat.com>
9227         PR libgomp/87995
9228         * testsuite/libgomp.c-c++-common/cancel-taskgroup-3.c: Require
9229         tls_runtime effective target.
9230         (t): New threadprivate variable.
9231         (main): Set t in threads which execute iterations of the worksharing
9232         loop.  Propagate that to the task after the loop and don't abort
9233         if the current taskgroup hasn't been cancelled.
9235 2018-12-02  Jakub Jelinek  <jakub@redhat.com>
9237         * testsuite/libgomp.c/task-reduction-3.c: New test.
9239         * testsuite/libgomp.c-c++-common/cancel-taskgroup-4.c: New test.
9241 2018-11-30  Cesar Philippidis  <cesar@codesourcery.com>
9243         PR libgomp/88288
9244         * oacc-parallel.c (GOACC_parallel_keyed): Add offset to devaddrs.
9245         * testsuite/libgomp.oacc-c-c++-common/pr88288.c: New test.
9247 2018-11-30  Thomas Schwinge  <thomas@codesourcery.com>
9249         * testsuite/libgomp.oacc-fortran/lib-16-2.f90: New file.
9251 2018-10-19  Richard Biener  <rguenther@suse.de>
9253         PR tree-optimization/88182
9254         * testsuite/libgomp.c++/pr88182.C: Move to g++.dg/gomp.
9256 2018-11-26  Jakub Jelinek  <jakub@redhat.com>
9258         * testsuite/Makefile.am (AUTOMAKE_OPTIONS): Drop dejagnu.
9259         (RUNTEST): Don't define.
9260         (RUNTESTDEFAULTFLAGS): Add.
9261         (check-DEJAGNU, site.exp, distclean-DEJAGNU): New goals.
9262         (distclean-am): Depend on distclean-DEJAGNU.
9263         (check-am): If -j% option is present in MFLAGS and if
9264         `getconf _NPROCESSORS_ONLN` is more than 8, export OMP_NUM_THREADS=8.
9265         (.PHONY): Add check-DEJAGNU and distclean-DEJAGNU.
9266         * testsuite/Makefile.in: Regenerated.
9268 2018-11-26  Richard Biener  <rguenther@suse.de>
9270         PR tree-optimization/88182
9271         * testsuite/libgomp.c++/pr88182.C: New testcase.
9273 2018-11-20  Jakub Jelinek  <jakub@redhat.com>
9275         PR bootstrap/88106
9276         * config/mingw32/affinity-fmt.c: New file.
9278 2018-11-09  Jakub Jelinek  <jakub@redhat.com>
9280         * affinity-fmt.c: Include inttypes.h if HAVE_INTTYPES_H.
9281         (gomp_display_affinity): Use __builtin_choose_expr to handle
9282         properly handle argument having integral, or pointer or some other
9283         type.  If inttypes.h is available and PRIx64 is defined, use PRIx64
9284         with uint64_t type instead of %llx and unsigned long long.
9286         * testsuite/libgomp.c-c++-common/task-reduction-13.c: New test.
9287         * testsuite/libgomp.c-c++-common/task-reduction-14.c: New test.
9289 2018-11-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9291         * affinity.c: Include <string.h>, <stdio.h>.
9292         (gomp_display_affinity_place): Remove cpusetp.
9293         * teams.c: Include <limits.h>.
9295 2018-11-08  Jakub Jelinek  <jakub@redhat.com>
9297         * testsuite/libgomp.c-c++-common/task-reduction-8.c (bar): Add
9298         in_reduction clause for s[0].
9300         * affinity.c (gomp_display_affinity_place): New function.
9301         * affinity-fmt.c: New file.
9302         * alloc.c (gomp_aligned_alloc, gomp_aligned_free): New functions.
9303         * config/linux/affinity.c (gomp_display_affinity_place): New function.
9304         * config/nvptx/icv-device.c (omp_get_num_teams, omp_get_team_num):
9305         Move these functions to ...
9306         * config/nvptx/teams.c: ... here.  New file.
9307         * config/nvptx/target.c (omp_pause_resource, omp_pause_resource_all):
9308         New functions.
9309         * config/nvptx/team.c (gomp_team_start, gomp_pause_host): New
9310         functions.
9311         * configure.ac: Check for aligned_alloc, posix_memalign, memalign
9312         and _aligned_malloc.
9313         (HAVE_UNAME, HAVE_GETHOSTNAME, HAVE_GETPID): Add new tests.
9314         * configure.tgt: Add -DUSING_INITIAL_EXEC_TLS to XCFLAGS for Linux.
9315         * env.c (gomp_display_affinity_var, gomp_affinity_format_var,
9316         gomp_affinity_format_len): New variables.
9317         (parse_schedule): Parse monotonic and nonmonotonic modifiers in
9318         OMP_SCHEDULE variable.  Set GFS_MONOTONIC for monotonic schedules.
9319         (handle_omp_display_env): Display monotonic/nonmonotonic schedule
9320         modifiers.  Display (non-default) chunk sizes.  Print
9321         OMP_DISPLAY_AFFINITY and OMP_AFFINITY_FORMAT.
9322         (initialize_env): Don't call pthread_attr_setdetachstate.  Handle
9323         OMP_DISPLAY_AFFINITY and OMP_AFFINITY_FORMAT env vars.
9324         * fortran.c: Include stdio.h and string.h.
9325         (omp_pause_resource, omp_pause_resource_all): Add ialias_redirect.
9326         (omp_get_schedule_, omp_get_schedule_8_): Mask off GFS_MONOTONIC bit.
9327         (omp_set_affinity_format_, omp_get_affinity_format_,
9328         omp_display_affinity_, omp_capture_affinity_, omp_pause_resource_,
9329         omp_pause_resource_all_): New functions.
9330         * icv.c (omp_set_schedule): Mask off omp_sched_monotonic bit in
9331         switch.
9332         * icv-device.c (omp_get_num_teams, omp_get_team_num): Move these
9333         functions to ...
9334         * teams.c: ... here.  New file.
9335         * libgomp_g.h: Include gstdint.h.
9336         (GOMP_loop_nonmonotonic_runtime_start,
9337         GOMP_loop_maybe_nonmonotonic_runtime_start, GOMP_loop_start,
9338         GOMP_loop_ordered_start, GOMP_loop_nonmonotonic_runtime_next,
9339         GOMP_loop_maybe_nonmonotonic_runtime_next, GOMP_loop_doacross_start,
9340         GOMP_parallel_loop_nonmonotonic_runtime,
9341         GOMP_parallel_loop_maybe_nonmonotonic_runtime,
9342         GOMP_loop_ull_nonmonotonic_runtime_start,
9343         GOMP_loop_ull_maybe_nonmonotonic_runtime_start, GOMP_loop_ull_start,
9344         GOMP_loop_ull_ordered_start, GOMP_loop_ull_nonmonotonic_runtime_next,
9345         GOMP_loop_ull_maybe_nonmonotonic_runtime_next,
9346         GOMP_loop_ull_doacross_start, GOMP_parallel_reductions,
9347         GOMP_taskwait_depend, GOMP_taskgroup_reduction_register,
9348         GOMP_taskgroup_reduction_unregister, GOMP_task_reduction_remap,
9349         GOMP_workshare_task_reduction_unregister, GOMP_sections2_start,
9350         GOMP_teams_reg): Declare.
9351         * libgomp.h (GOMP_HAVE_EFFICIENT_ALIGNED_ALLOC): Define unless
9352         gomp_aligned_alloc uses fallback implementation.
9353         (gomp_aligned_alloc, gomp_aligned_free): Declare.
9354         (enum gomp_schedule_type): Add GFS_MONOTONIC.
9355         (struct gomp_doacross_work_share): Add extra field.
9356         (struct gomp_work_share): Add task_reductions field.
9357         (struct gomp_taskgroup): Add workshare and reductions fields.
9358         (GOMP_NEEDS_THREAD_HANDLE): Define if needed.
9359         (gomp_thread_handle): New typedef.
9360         (gomp_display_affinity_place, gomp_set_affinity_format,
9361         gomp_display_string, gomp_display_affinity,
9362         gomp_display_affinity_thread): Declare.
9363         (gomp_doacross_init, gomp_doacross_ull_init): Add size_t argument.
9364         (gomp_parallel_reduction_register, gomp_workshare_taskgroup_start,
9365         gomp_workshare_task_reduction_register): Declare.
9366         (gomp_team_start): Add taskgroup argument.
9367         (gomp_pause_host): Declare.
9368         (gomp_init_work_share, gomp_work_share_start): Change bool argument
9369         to size_t.
9370         (gomp_thread_self, gomp_thread_to_pthread_t): New inline functions.
9371         * libgomp.map (GOMP_5.0): Export GOMP_loop_start,
9372         GOMP_loop_ordered_start, GOMP_loop_doacross_start,
9373         GOMP_loop_ull_start, GOMP_loop_ull_ordered_start,
9374         GOMP_loop_ull_doacross_start,
9375         GOMP_workshare_task_reduction_unregister, GOMP_sections2_start,
9376         GOMP_loop_maybe_nonmonotonic_runtime_next,
9377         GOMP_loop_maybe_nonmonotonic_runtime_start,
9378         GOMP_loop_nonmonotonic_runtime_next,
9379         GOMP_loop_nonmonotonic_runtime_start,
9380         GOMP_loop_ull_maybe_nonmonotonic_runtime_next,
9381         GOMP_loop_ull_maybe_nonmonotonic_runtime_start,
9382         GOMP_loop_ull_nonmonotonic_runtime_next,
9383         GOMP_loop_ull_nonmonotonic_runtime_start,
9384         GOMP_parallel_loop_maybe_nonmonotonic_runtime,
9385         GOMP_parallel_loop_nonmonotonic_runtime, GOMP_parallel_reductions,
9386         GOMP_taskgroup_reduction_register,
9387         GOMP_taskgroup_reduction_unregister, GOMP_task_reduction_remap,
9388         GOMP_teams_reg and GOMP_taskwait_depend.
9389         (OMP_5.0): Export omp_pause_resource{,_all}{,_},
9390         omp_{capture,display}_affinity{,_}, and
9391         omp_[gs]et_affinity_format{,_}.
9392         * loop.c: Include string.h.
9393         (GOMP_loop_runtime_next): Add ialias.
9394         (GOMP_taskgroup_reduction_register): Add ialias_redirect.
9395         (gomp_loop_static_start, gomp_loop_dynamic_start,
9396         gomp_loop_guided_start, gomp_loop_ordered_static_start,
9397         gomp_loop_ordered_dynamic_start, gomp_loop_ordered_guided_start,
9398         gomp_loop_doacross_static_start, gomp_loop_doacross_dynamic_start,
9399         gomp_loop_doacross_guided_start): Adjust gomp_work_share_start
9400         or gomp_doacross_init callers.
9401         (gomp_adjust_sched, GOMP_loop_start, GOMP_loop_ordered_start,
9402         GOMP_loop_doacross_start): New functions.
9403         (GOMP_loop_runtime_start, GOMP_loop_ordered_runtime_start,
9404         GOMP_loop_doacross_runtime_start, GOMP_parallel_loop_runtime_start):
9405         Mask off GFS_MONOTONIC bit.
9406         (GOMP_loop_maybe_nonmonotonic_runtime_next,
9407         GOMP_loop_maybe_nonmonotonic_runtime_start,
9408         GOMP_loop_nonmonotonic_runtime_next,
9409         GOMP_loop_nonmonotonic_runtime_start,
9410         GOMP_parallel_loop_maybe_nonmonotonic_runtime,
9411         GOMP_parallel_loop_nonmonotonic_runtime): New aliases or wrapper
9412         functions.
9413         (gomp_parallel_loop_start): Pass NULL as taskgroup to
9414         gomp_team_start.
9415         * loop_ull.c: Include string.h.
9416         (GOMP_loop_ull_runtime_next): Add ialias.
9417         (GOMP_taskgroup_reduction_register): Add ialias_redirect.
9418         (gomp_loop_ull_static_start, gomp_loop_ull_dynamic_start,
9419         gomp_loop_ull_guided_start, gomp_loop_ull_ordered_static_start,
9420         gomp_loop_ull_ordered_dynamic_start,
9421         gomp_loop_ull_ordered_guided_start,
9422         gomp_loop_ull_doacross_static_start,
9423         gomp_loop_ull_doacross_dynamic_start,
9424         gomp_loop_ull_doacross_guided_start): Adjust gomp_work_share_start
9425         and gomp_doacross_ull_init callers.
9426         (gomp_adjust_sched, GOMP_loop_ull_start, GOMP_loop_ull_ordered_start,
9427         GOMP_loop_ull_doacross_start): New functions.
9428         (GOMP_loop_ull_runtime_start,
9429         GOMP_loop_ull_ordered_runtime_start,
9430         GOMP_loop_ull_doacross_runtime_start): Mask off GFS_MONOTONIC bit.
9431         (GOMP_loop_ull_maybe_nonmonotonic_runtime_next,
9432         GOMP_loop_ull_maybe_nonmonotonic_runtime_start,
9433         GOMP_loop_ull_nonmonotonic_runtime_next,
9434         GOMP_loop_ull_nonmonotonic_runtime_start): Likewise.
9435         * Makefile.am (libgomp_la_SOURCES): Add teams.c and affinity-fmt.c.
9436         * omp.h.in (enum omp_sched_t): Add omp_sched_monotonic.
9437         (omp_pause_resource_t, omp_depend_t): New typedefs.
9438         (enum omp_lock_hint_t): Renamed to ...
9439         (enum omp_sync_hint_t): ... this.  Define omp_sync_hint_*
9440         enumerators using numbers and omp_lock_hint_* as their aliases.
9441         (omp_lock_hint_t): New typedef.  Rename to ...
9442         (omp_sync_hint_t): ... this.
9443         (omp_init_lock_with_hint, omp_init_nest_lock_with_hint): Use
9444         omp_sync_hint_t instead of omp_lock_hint_t.
9445         (omp_pause_resource, omp_pause_resource_all, omp_set_affinity_format,
9446         omp_get_affinity_format, omp_display_affinity, omp_capture_affinity):
9447         Declare.
9448         (omp_target_is_present, omp_target_disassociate_ptr):
9449         Change first argument from void * to const void *.
9450         (omp_target_memcpy, omp_target_memcpy_rect): Change second argument
9451         from void * to const void *.
9452         (omp_target_associate_ptr): Change first and second arguments from
9453         void * to const void *.
9454         * omp_lib.f90.in (omp_pause_resource_kind, omp_pause_soft,
9455         omp_pause_hard): New parameters.
9456         (omp_pause_resource, omp_pause_resource_all, omp_set_affinity_format,
9457         omp_get_affinity_format, omp_display_affinity, omp_capture_affinity):
9458         New interfaces.
9459         * omp_lib.h.in (omp_pause_resource_kind, omp_pause_soft,
9460         omp_pause_hard): New parameters.
9461         (omp_pause_resource, omp_pause_resource_all, omp_set_affinity_format,
9462         omp_get_affinity_format, omp_display_affinity, omp_capture_affinity):
9463         New externals.
9464         * ordered.c (gomp_doacross_init, gomp_doacross_ull_init): Add
9465         EXTRA argument.  If not needed to prepare array, if extra is 0,
9466         clear ws->doacross, otherwise allocate just doacross structure and
9467         extra payload.  If array is needed, allocate also extra payload.
9468         (GOMP_doacross_post, GOMP_doacross_wait, GOMP_doacross_ull_post,
9469         GOMP_doacross_ull_wait): Handle doacross->array == NULL like
9470         doacross == NULL.
9471         * parallel.c (GOMP_parallel_start): Pass NULL as taskgroup to
9472         gomp_team_start.
9473         (GOMP_parallel): Likewise.  Formatting fix.
9474         (GOMP_parallel_reductions): New function.
9475         (GOMP_cancellation_point): If taskgroup has workshare
9476         flag set, check cancelled of prev taskgroup if any.
9477         (GOMP_cancel): If taskgroup has workshare flag set, set cancelled
9478         on prev taskgroup if any.
9479         * sections.c: Include string.h.
9480         (GOMP_taskgroup_reduction_register): Add ialias_redirect.
9481         (GOMP_sections_start): Adjust gomp_work_share_start caller.
9482         (GOMP_sections2_start): New function.
9483         (GOMP_parallel_sections_start, GOMP_parallel_sections):
9484         Pass NULL as taskgroup to gomp_team_start.
9485         * single.c (GOMP_single_start, GOMP_single_copy_start): Adjust
9486         gomp_work_share_start callers.
9487         * target.c (GOMP_target_update_ext, GOMP_target_enter_exit_data):
9488         If taskgroup has workshare flag set, check cancelled on prev
9489         taskgroup if any.  Guard all cancellation tests with
9490         gomp_cancel_var test.
9491         (omp_target_is_present, omp_target_disassociate_ptr):
9492         Change ptr argument from void * to const void *.
9493         (omp_target_memcpy): Change src argument from void * to const void *.
9494         (omp_target_memcpy_rect): Likewise.
9495         (omp_target_memcpy_rect_worker): Likewise.  Use const char * casts
9496         instead of char * where needed.
9497         (omp_target_associate_ptr): Change host_ptr and device_ptr arguments
9498         from void * to const void *.
9499         (omp_pause_resource, omp_pause_resource_all): New functions.
9500         * task.c (gomp_task_handle_depend): Handle new depend array format
9501         in addition to the old.  Handle mutexinoutset kinds the same as
9502         inout for now, handle unspecified kinds.
9503         (gomp_create_target_task): If taskgroup has workshare flag set, check
9504         cancelled on prev taskgroup if any.  Guard all cancellation tests with
9505         gomp_cancel_var test.  Handle new depend array format count in
9506         addition to the old.
9507         (GOMP_task): Likewise.  Adjust function comment.
9508         (gomp_task_run_pre): If taskgroup has workshare flag set, check
9509         cancelled on prev taskgroup if any.  Guard all cancellation tests with
9510         gomp_cancel_var test.
9511         (GOMP_taskwait_depend): New function.
9512         (gomp_task_maybe_wait_for_dependencies): Handle new depend array
9513         format in addition to the old.  Handle mutexinoutset kinds the same as
9514         inout for now, handle unspecified kinds.  Fix a function comment typo.
9515         (gomp_taskgroup_init): New function.
9516         (GOMP_taskgroup_start): Use it.
9517         (gomp_reduction_register, gomp_create_artificial_team,
9518         GOMP_taskgroup_reduction_register,
9519         GOMP_taskgroup_reduction_unregister, GOMP_task_reduction_remap,
9520         gomp_parallel_reduction_register,
9521         gomp_workshare_task_reduction_register,
9522         gomp_workshare_taskgroup_start,
9523         GOMP_workshare_task_reduction_unregister): New functions.
9524         * taskloop.c (GOMP_taskloop): If taskgroup has workshare flag set,
9525         check cancelled on prev taskgroup if any.  Guard all cancellation
9526         tests with gomp_cancel_var test.  Handle GOMP_TASK_FLAG_REDUCTION flag
9527         by calling GOMP_taskgroup_reduction_register.
9528         * team.c (gomp_thread_attr): Remove comment.
9529         (struct gomp_thread_start_data): Add handle field.
9530         (gomp_thread_start): Call pthread_detach.
9531         (gomp_new_team): Adjust gomp_init_work_share caller.
9532         (gomp_free_pool_helper): Call pthread_detach.
9533         (gomp_team_start): Add taskgroup argument, initialize implicit
9534         tasks' taskgroup field to that.  Don't call
9535         pthread_attr_setdetachstate.  Handle OMP_DISPLAY_AFFINITY env var.
9536         (gomp_team_end): Determine nesting by thr->ts.level != 0
9537         rather than thr->ts.team != NULL.
9538         (gomp_pause_pool_helper, gomp_pause_host): New functions.
9539         * work.c (alloc_work_share): Use gomp_aligned_alloc instead of
9540         gomp_malloc if GOMP_HAVE_EFFICIENT_ALIGNED_ALLOC is defined.
9541         (gomp_init_work_share): Change ORDERED argument from bool to size_t,
9542         if more than 1 allocate also extra payload at the end of array.  Never
9543         keep ordered_team_ids NULL, set it to inline_ordered_team_ids instead.
9544         (gomp_work_share_start): Change ORDERED argument from bool to size_t,
9545         return true instead of ws.
9546         * Makefile.in: Regenerated.
9547         * configure: Regenerated.
9548         * config.h.in: Regenerated.
9549         * testsuite/libgomp.c/cancel-for-2.c (foo): Use cancel modifier
9550         in some cases.
9551         * testsuite/libgomp.c-c++-common/cancel-parallel-1.c: New test.
9552         * testsuite/libgomp.c-c++-common/cancel-taskgroup-3.c: New test.
9553         * testsuite/libgomp.c-c++-common/depend-iterator-1.c: New test.
9554         * testsuite/libgomp.c-c++-common/depend-iterator-2.c: New test.
9555         * testsuite/libgomp.c-c++-common/depend-mutexinout-1.c: New test.
9556         * testsuite/libgomp.c-c++-common/depend-mutexinout-2.c: New test.
9557         * testsuite/libgomp.c-c++-common/depobj-1.c: New test.
9558         * testsuite/libgomp.c-c++-common/display-affinity-1.c: New test.
9559         * testsuite/libgomp.c-c++-common/for-10.c: New test.
9560         * testsuite/libgomp.c-c++-common/for-11.c: New test.
9561         * testsuite/libgomp.c-c++-common/for-12.c: New test.
9562         * testsuite/libgomp.c-c++-common/for-13.c: New test.
9563         * testsuite/libgomp.c-c++-common/for-14.c: New test.
9564         * testsuite/libgomp.c-c++-common/for-15.c: New test.
9565         * testsuite/libgomp.c-c++-common/for-2.h: If CONDNE macro is defined,
9566         define a different N(test), don't define N(f0) to N(f14), but instead
9567         define N(f20) to N(f34) using != comparisons.
9568         * testsuite/libgomp.c-c++-common/for-7.c: New test.
9569         * testsuite/libgomp.c-c++-common/for-8.c: New test.
9570         * testsuite/libgomp.c-c++-common/for-9.c: New test.
9571         * testsuite/libgomp.c-c++-common/master-combined-1.c: New test.
9572         * testsuite/libgomp.c-c++-common/pause-1.c: New test.
9573         * testsuite/libgomp.c-c++-common/pause-2.c: New test.
9574         * testsuite/libgomp.c-c++-common/pr66199-10.c: New test.
9575         * testsuite/libgomp.c-c++-common/pr66199-11.c: New test.
9576         * testsuite/libgomp.c-c++-common/pr66199-12.c: New test.
9577         * testsuite/libgomp.c-c++-common/pr66199-13.c: New test.
9578         * testsuite/libgomp.c-c++-common/pr66199-14.c: New test.
9579         * testsuite/libgomp.c-c++-common/simd-1.c: New test.
9580         * testsuite/libgomp.c-c++-common/taskloop-reduction-1.c: New test.
9581         * testsuite/libgomp.c-c++-common/taskloop-reduction-2.c: New test.
9582         * testsuite/libgomp.c-c++-common/taskloop-reduction-3.c: New test.
9583         * testsuite/libgomp.c-c++-common/taskloop-reduction-4.c: New test.
9584         * testsuite/libgomp.c-c++-common/task-reduction-11.c: New test.
9585         * testsuite/libgomp.c-c++-common/task-reduction-12.c: New test.
9586         * testsuite/libgomp.c-c++-common/task-reduction-1.c: New test.
9587         * testsuite/libgomp.c-c++-common/task-reduction-2.c: New test.
9588         * testsuite/libgomp.c-c++-common/task-reduction-3.c: New test.
9589         * testsuite/libgomp.c-c++-common/task-reduction-4.c: New test.
9590         * testsuite/libgomp.c-c++-common/task-reduction-5.c: New test.
9591         * testsuite/libgomp.c-c++-common/task-reduction-6.c: New test.
9592         * testsuite/libgomp.c-c++-common/task-reduction-7.c: New test.
9593         * testsuite/libgomp.c-c++-common/task-reduction-8.c: New test.
9594         * testsuite/libgomp.c-c++-common/task-reduction-9.c: New test.
9595         * testsuite/libgomp.c-c++-common/taskwait-depend-1.c: New test.
9596         * testsuite/libgomp.c++/depend-1.C: New test.
9597         * testsuite/libgomp.c++/depend-iterator-1.C: New test.
9598         * testsuite/libgomp.c++/depobj-1.C: New test.
9599         * testsuite/libgomp.c++/for-16.C: New test.
9600         * testsuite/libgomp.c++/for-21.C: New test.
9601         * testsuite/libgomp.c++/for-22.C: New test.
9602         * testsuite/libgomp.c++/for-23.C: New test.
9603         * testsuite/libgomp.c++/for-24.C: New test.
9604         * testsuite/libgomp.c++/for-25.C: New test.
9605         * testsuite/libgomp.c++/for-26.C: New test.
9606         * testsuite/libgomp.c++/taskloop-reduction-1.C: New test.
9607         * testsuite/libgomp.c++/taskloop-reduction-2.C: New test.
9608         * testsuite/libgomp.c++/taskloop-reduction-3.C: New test.
9609         * testsuite/libgomp.c++/taskloop-reduction-4.C: New test.
9610         * testsuite/libgomp.c++/task-reduction-10.C: New test.
9611         * testsuite/libgomp.c++/task-reduction-11.C: New test.
9612         * testsuite/libgomp.c++/task-reduction-12.C: New test.
9613         * testsuite/libgomp.c++/task-reduction-13.C: New test.
9614         * testsuite/libgomp.c++/task-reduction-14.C: New test.
9615         * testsuite/libgomp.c++/task-reduction-15.C: New test.
9616         * testsuite/libgomp.c++/task-reduction-16.C: New test.
9617         * testsuite/libgomp.c++/task-reduction-17.C: New test.
9618         * testsuite/libgomp.c++/task-reduction-18.C: New test.
9619         * testsuite/libgomp.c++/task-reduction-19.C: New test.
9620         * testsuite/libgomp.c/task-reduction-1.c: New test.
9621         * testsuite/libgomp.c++/task-reduction-1.C: New test.
9622         * testsuite/libgomp.c/task-reduction-2.c: New test.
9623         * testsuite/libgomp.c++/task-reduction-2.C: New test.
9624         * testsuite/libgomp.c++/task-reduction-3.C: New test.
9625         * testsuite/libgomp.c++/task-reduction-4.C: New test.
9626         * testsuite/libgomp.c++/task-reduction-5.C: New test.
9627         * testsuite/libgomp.c++/task-reduction-6.C: New test.
9628         * testsuite/libgomp.c++/task-reduction-7.C: New test.
9629         * testsuite/libgomp.c++/task-reduction-8.C: New test.
9630         * testsuite/libgomp.c++/task-reduction-9.C: New test.
9631         * testsuite/libgomp.c/teams-1.c: New test.
9632         * testsuite/libgomp.c/teams-2.c: New test.
9633         * testsuite/libgomp.c/thread-limit-4.c: New test.
9634         * testsuite/libgomp.c/thread-limit-5.c: New test.
9635         * testsuite/libgomp.fortran/display-affinity-1.f90: New test.
9637 2018-11-06  Chung-Lin Tang <cltang@codesourcery.com>
9639         * oacc-mem.c (memcpy_tofrom_device): New function, combined from
9640         acc_memcpy_to/from_device functions, now with async parameter.
9641         (acc_memcpy_to_device): Modify to use memcpy_tofrom_device.
9642         (acc_memcpy_from_device): Likewise.
9643         (acc_memcpy_to_device_async): New API function.
9644         (acc_memcpy_from_device_async): Likewise.
9645         (present_create_copy): Add async parameter and async setting/unsetting.
9646         (acc_create): Adjust present_create_copy call.
9647         (acc_copyin): Likewise.
9648         (acc_present_or_create): Likewise.
9649         (acc_present_or_copyin): Likewise.
9650         (acc_create_async): New API function.
9651         (acc_copyin_async): New API function.
9652         (delete_copyout): Add async parameter and async setting/unsetting.
9653         (acc_delete): Adjust delete_copyout call.
9654         (acc_copyout): Likewise.
9655         (acc_delete_async): New API function.
9656         (acc_copyout_async): Likewise.
9657         (update_dev_host): Add async parameter and async setting/unsetting.
9658         (acc_update_device): Adjust update_dev_host call.
9659         (acc_update_self): Likewise.
9660         (acc_update_device_async): New API function.
9661         (acc_update_self_async): Likewise.
9662         * openacc.h (acc_copyin_async): Declare new API function.
9663         (acc_create_async): Likewise.
9664         (acc_copyout_async): Likewise.
9665         (acc_delete_async): Likewise.
9666         (acc_update_device_async): Likewise.
9667         (acc_update_self_async): Likewise.
9668         (acc_memcpy_to_device_async): Likewise.
9669         (acc_memcpy_from_device_async): Likewise.
9670         * openacc_lib.h (acc_copyin_async_32_h): New subroutine.
9671         (acc_copyin_async_64_h): New subroutine.
9672         (acc_copyin_async_array_h): New subroutine.
9673         (acc_create_async_32_h): New subroutine.
9674         (acc_create_async_64_h): New subroutine.
9675         (acc_create_async_array_h): New subroutine.
9676         (acc_copyout_async_32_h): New subroutine.
9677         (acc_copyout_async_64_h): New subroutine.
9678         (acc_copyout_async_array_h): New subroutine.
9679         (acc_delete_async_32_h): New subroutine.
9680         (acc_delete_async_64_h): New subroutine.
9681         (acc_delete_async_array_h): New subroutine.
9682         (acc_update_device_async_32_h): New subroutine.
9683         (acc_update_device_async_64_h): New subroutine.
9684         (acc_update_device_async_array_h): New subroutine.
9685         (acc_update_self_async_32_h): New subroutine.
9686         (acc_update_self_async_64_h): New subroutine.
9687         (acc_update_self_async_array_h): New subroutine.
9688         * openacc.f90 (acc_copyin_async_32_h): New subroutine.
9689         (acc_copyin_async_64_h): New subroutine.
9690         (acc_copyin_async_array_h): New subroutine.
9691         (acc_create_async_32_h): New subroutine.
9692         (acc_create_async_64_h): New subroutine.
9693         (acc_create_async_array_h): New subroutine.
9694         (acc_copyout_async_32_h): New subroutine.
9695         (acc_copyout_async_64_h): New subroutine.
9696         (acc_copyout_async_array_h): New subroutine.
9697         (acc_delete_async_32_h): New subroutine.
9698         (acc_delete_async_64_h): New subroutine.
9699         (acc_delete_async_array_h): New subroutine.
9700         (acc_update_device_async_32_h): New subroutine.
9701         (acc_update_device_async_64_h): New subroutine.
9702         (acc_update_device_async_array_h): New subroutine.
9703         (acc_update_self_async_32_h): New subroutine.
9704         (acc_update_self_async_64_h): New subroutine.
9705         (acc_update_self_async_array_h): New subroutine.
9706         * libgomp.map (OACC_2.5): Add acc_copyin_async*, acc_copyout_async*,
9707         acc_copyout_finalize_async*, acc_create_async*, acc_delete_async*,
9708         acc_delete_finalize_async*, acc_memcpy_from_device_async*,
9709         acc_memcpy_to_device_async*, acc_update_device_async*, and
9710         acc_update_self_async* entries.
9711         * testsuite/libgomp.oacc-c-c++-common/lib-94.c: New test.
9712         * testsuite/libgomp.oacc-c-c++-common/lib-95.c: New test.
9713         * testsuite/libgomp.oacc-fortran/lib-16.f90: New test.
9715 2018-10-31  Joseph Myers  <joseph@codesourcery.com>
9717         PR bootstrap/82856
9718         * Makefile.am: Include multilib.am
9719         (AUTOMAKE_OPTIONS): Add info-in-builddir.
9720         (CLEANFILES): Remove libgomp.info.
9721         * configure.ac: Remove AC_PREREQ.
9722         * testsuite/Makefile.am (RUNTEST): Remove quotes.
9723         * Makefile.in, aclocal.m4, configure, testsuite/Makefile.in:
9724         Regenerate.
9726 2018-10-29  Joseph Myers  <joseph@codesourcery.com>
9727             Julian Brown  <julian@codesourcery.com>
9729         * testsuite/libgomp.oacc-c++/this.C: New.
9731 2018-09-18  Cesar Philippidis  <cesar@codesourcery.com>
9733         * plugin/plugin-nvptx.c (struct cuda_map): New.
9734         (struct ptx_stream): Replace d, h, h_begin, h_end, h_next, h_prev,
9735         h_tail with (cuda_map *) map.
9736         (cuda_map_create): New function.
9737         (cuda_map_destroy): New function.
9738         (map_init): Update to use a linked list of cuda_map objects.
9739         (map_fini): Likewise.
9740         (map_pop): Likewise.
9741         (map_push): Likewise.  Return CUdeviceptr instead of void.
9742         (init_streams_for_device): Remove stales references to ptx_stream
9743         members.
9744         (select_stream_for_async): Likewise.
9745         (nvptx_exec): Update call to map_init.
9747 2018-09-09  Cesar Philippidis  <cesar@codesourcery.com>
9748             Julian Brown  <julian@codesourcery.com>
9750         PR middle-end/86336
9751         * testsuite/libgomp.oacc-c++/non-scalar-data.C: Remove XFAIL.
9753 2018-08-21  Nicolas Koenig  <koenigni@gcc.gnu.org>
9754         Thomas Koenig <tkoenig@gcc.gnu.org>
9756         PR fortran/25829
9757         * testsuite/libgomp.fortran/async_io_1.f90: New test.
9758         * testsuite/libgomp.fortran/async_io_2.f90: New test.
9759         * testsuite/libgomp.fortran/async_io_3.f90: New test.
9760         * testsuite/libgomp.fortran/async_io_4.f90: New test.
9761         * testsuite/libgomp.fortran/async_io_5.f90: New test.
9762         * testsuite/libgomp.fortran/async_io_6.f90: New test.
9763         * testsuite/libgomp.fortran/async_io_7.f90: New test.
9765 2018-08-13  Cesar Philippidis  <cesar@codesourcery.com>
9766             Tom de Vries  <tdevries@suse.de>
9768         PR target/85590
9769         * plugin/cuda/cuda.h (CUoccupancyB2DSize): New typedef.
9770         (cuOccupancyMaxPotentialBlockSize): Declare.
9771         * plugin/cuda-lib.def (cuOccupancyMaxPotentialBlockSize): New
9772         CUDA_ONE_CALL_MAYBE_NULL.
9773         * plugin/plugin-nvptx.c (CUDA_VERSION < 6050): Define
9774         CUoccupancyB2DSize and declare
9775         cuOccupancyMaxPotentialBlockSize.
9776         (nvptx_exec): Use cuOccupancyMaxPotentialBlockSize to set the
9777         default num_gangs and num_workers when the driver supports it.
9779 2018-08-08  Tom de Vries  <tdevries@suse.de>
9781         * plugin/cuda-lib.def (cuLinkAddData_v2, cuLinkCreate_v2): Declare using
9782         CUDA_ONE_CALL_MAYBE_NULL.
9783         * plugin/plugin-nvptx.c (cuLinkAddData, cuLinkCreate): Undef and declare.
9784         (cuLinkAddData_v2, cuLinkCreate_v2): Declare.
9785         (link_ptx): Fall back to cuLinkAddData/cuLinkCreate if the _v2 versions
9786         are not found.
9788 2018-08-08  Tom de Vries  <tdevries@suse.de>
9790         * plugin/cuda-lib.def (cuGetErrorString): Use CUDA_ONE_CALL_MAYBE_NULL.
9791         * plugin/plugin-nvptx.c (cuda_error): Handle if cuGetErrorString is not
9792         present.
9794 2018-08-08  Tom de Vries  <tdevries@suse.de>
9796         * plugin/plugin-nvptx.c
9797         (CU_DEVICE_ATTRIBUTE_MAX_REGISTERS_PER_MULTIPROCESSOR): Define.
9798         (nvptx_open_device): Use
9799         CU_DEVICE_ATTRIBUTE_MAX_REGISTERS_PER_MULTIPROCESSOR.
9801 2018-08-08  Tom de Vries  <tdevries@suse.de>
9803         * plugin/plugin-nvptx.c (cuda_error): Move declaration of cuGetErrorString ...
9804         (cuGetErrorString): ... here.  Guard with CUDA_VERSION < 6000.
9806 2018-08-07  Tom de Vries  <tdevries@suse.de>
9808         * plugin/plugin-nvptx.c (DO_PRAGMA): Define.
9809         (struct cuda_lib_s): Add def/undef of CUDA_ONE_CALL_MAYBE_NULL.
9810         (init_cuda_lib): Add new param to CUDA_ONE_CALL_1.  Add arg to
9811         corresponding call in CUDA_ONE_CALL.  Add def/undef of
9812         CUDA_ONE_CALL_MAYBE_NULL.
9813         (CUDA_CALL_EXISTS): Define.
9815 2018-08-07  Tom de Vries  <tdevries@suse.de>
9817         * plugin/plugin-nvptx.c (struct cuda_lib_s, init_cuda_lib): Put
9818         CUDA_ONE_CALL defines right before the cuda-lib.def include, and the
9819         corresponding undefs right after.
9821 2018-08-04  Tom de Vries  <tdevries@suse.de>
9823         * plugin/configfrag.ac: For --without-cuda-driver, set
9824         CUDA_DRIVER_INCLUDE and CUDA_DRIVER_LIB to no.  Handle
9825         CUDA_DRIVER_INCLUDE == no and CUDA_DRIVER_LIB == no.
9826         * configure: Regenerate.
9828 2018-08-02  Tom de Vries  <tdevries@suse.de>
9830         PR target/86660
9831         * testsuite/libgomp.oacc-c++/routine-1-auto.C: Remove -fno-exceptions.
9832         * testsuite/libgomp.oacc-c++/routine-1-template-auto.C: Same.
9833         * testsuite/libgomp.oacc-c++/routine-1-template-trailing-return-type.C:
9834         Same.
9835         * testsuite/libgomp.oacc-c++/routine-1-template.C: Same.
9836         * testsuite/libgomp.oacc-c++/routine-1-trailing-return-type.C: Same.
9837         * testsuite/libgomp.oacc-c-c++-common/routine-1.c: Same.
9839 2018-08-01  Cesar Philippidis  <cesar@codesourcery.com>
9840             Thomas Schwinge <thomas@codesourcery.com>
9842         * config/nvptx/oacc-parallel.c: Truncate.
9844 2018-08-01  Cesar Philippidis  <cesar@codesourcery.com>
9845             James Norris <jnorris@codesourcery.com>
9847         * plugin/plugin-nvptx.c (struct map): Removed.
9848         (map_init, map_pop): Remove use of struct map.
9849         (map_push): Likewise and change argument list.
9850         * testsuite/libgomp.oacc-c-c++-common/mapping-1.c: New
9852 2018-08-01  Tom de Vries  <tdevries@suse.de>
9854         * plugin/cuda-lib.def: New file.  Factor out of ...
9855         * plugin/plugin-nvptx.c (CUDA_CALLS): ... here.
9856         (struct cuda_lib_s, init_cuda_lib): Include cuda-lib.def instead of
9857         using CUDA_CALLS.
9859 2018-07-31  Andre Vieira  <andre.simoesdiasvieira@arm.com>
9861         Revert 'AsyncI/O patch committed'.
9862         2018-07-25  Nicolas Koenig  <koenigni@gcc.gnu.org>
9863                 Thomas Koenig <tkoenig@gcc.gnu.org>
9865         PR fortran/25829
9866         * testsuite/libgomp.fortran/async_io_1.f90: New test.
9867         * testsuite/libgomp.fortran/async_io_2.f90: New test.
9868         * testsuite/libgomp.fortran/async_io_3.f90: New test.
9869         * testsuite/libgomp.fortran/async_io_4.f90: New test.
9870         * testsuite/libgomp.fortran/async_io_5.f90: New test.
9871         * testsuite/libgomp.fortran/async_io_6.f90: New test.
9872         * testsuite/libgomp.fortran/async_io_7.f90: New test.
9874 2018-07-30  Tom de Vries  <tdevries@suse.de>
9876         * plugin/plugin-nvptx.c (MIN, MAX): Redefine.
9877         (nvptx_exec): Ensure worker and vector default dims don't exceed
9878         targ_fn->max_threads_per_block.
9880 2018-07-30  Tom de Vries  <tdevries@suse.de>
9882         * plugin/plugin-nvptx.c (struct ptx_device): Add default_dims field.
9883         (nvptx_open_device): Init default_dims for device.
9884         (nvptx_exec): Use default_dims from device.
9886 2018-07-26  Jakub Jelinek  <jakub@redhat.com>
9888         PR testsuite/86660
9889         * testsuite/libgomp.c++/for-15.C (results): Include it in
9890         omp declare target region.
9891         (main): Use map (always, tofrom: results) instead of
9892         map (tofrom: results).
9894         PR middle-end/86660
9895         * testsuite/libgomp.c/pr86660.c: New test.
9897 2018-07-26  Cesar Philippidis  <cesar@codesourcery.com>
9898             Tom de Vries  <tdevries@suse.de>
9900         * plugin/plugin-nvptx.c (nvptx_exec): Error if the hardware doesn't have
9901         sufficient resources to launch a kernel, and give a hint on how to fix
9902         it.
9904 2018-07-26  Cesar Philippidis  <cesar@codesourcery.com>
9905             Tom de Vries  <tdevries@suse.de>
9907         * plugin/plugin-nvptx.c (struct ptx_device): Add warp_size,
9908         max_threads_per_block and max_threads_per_multiprocessor fields.
9909         (nvptx_open_device): Initialize new fields.
9910         (nvptx_exec): Use num_sms, and new fields.
9912 2018-07-26  Tom de Vries  <tdevries@suse.de>
9914         * testsuite/libgomp.oacc-fortran/lib-12.f90: Move acc_async_test calls
9915         to correct locations.  Remove xfail.
9917 2018-07-26  Tom de Vries  <tdevries@suse.de>
9919         * testsuite/libgomp.oacc-fortran/lib-13.f90: Replace acc_wait_all with
9920         acc_wait.  Move acc_async_test calls to correct locations.  Remove
9921         xfail.
9923 2018-07-25  Nicolas Koenig  <koenigni@gcc.gnu.org>
9924         Thomas Koenig <tkoenig@gcc.gnu.org>
9926         PR fortran/25829
9927         * testsuite/libgomp.fortran/async_io_1.f90: New test.
9928         * testsuite/libgomp.fortran/async_io_2.f90: New test.
9929         * testsuite/libgomp.fortran/async_io_3.f90: New test.
9930         * testsuite/libgomp.fortran/async_io_4.f90: New test.
9931         * testsuite/libgomp.fortran/async_io_5.f90: New test.
9932         * testsuite/libgomp.fortran/async_io_6.f90: New test.
9933         * testsuite/libgomp.fortran/async_io_7.f90: New test.
9935 2018-07-17  Jakub Jelinek  <jakub@redhat.com>
9937         PR middle-end/86542
9938         * testsuite/libgomp.c++/pr86542.C: New test.
9940         PR middle-end/86539
9941         * testsuite/libgomp.c++/pr86539.C: New test.
9943 2018-07-11  Jakub Jelinek  <jakub@redhat.com>
9945         PR c++/86443
9946         * testsuite/libgomp.c++/for-15.C (a): Remove unused variable.
9947         (results): Make sure the variable is not inside declare target region.
9948         (qux): Remove unused function.
9950 2018-07-10  Jakub Jelinek  <jakub@redhat.com>
9952         PR c++/86443
9953         * testsuite/libgomp.c++/for-15.C: New test.
9955 2018-06-26  Jakub Jelinek  <jakub@redhat.com>
9957         PR c++/86291
9958         * testsuite/libgomp.c++/pr86291.C: New test.
9960 2018-06-24  Gerald Pfeifer  <gerald@pfeifer.com>
9962         * libgomp.texi (Top): Move www.openmp.org to https.
9963         (Enabling OpenMP): Ditto.
9964         (omp_get_active_level): Ditto.
9965         (omp_get_ancestor_thread_num): Ditto.
9966         (omp_get_cancellation): Ditto.
9967         (omp_get_default_device): Ditto.
9968         (omp_get_dynamic): Ditto.
9969         (omp_get_level): Ditto.
9970         (omp_get_max_active_levels): Ditto.
9971         (omp_get_max_task_priority): Ditto.
9972         (omp_get_max_threads): Ditto.
9973         (omp_get_nested): Ditto.
9974         (omp_get_num_devices): Ditto.
9975         (omp_get_num_procs): Ditto.
9976         (omp_get_num_teams): Ditto.
9977         (omp_get_num_threads): Ditto.
9978         (omp_get_proc_bind): Ditto.
9979         (omp_get_schedule): Ditto.
9980         (omp_get_team_num): Ditto.
9981         (omp_get_team_size): Ditto.
9982         (omp_get_thread_limit): Ditto.
9983         (omp_get_thread_num): Ditto.
9984         (omp_in_parallel): Ditto.
9985         (omp_in_final): Ditto.
9986         (omp_is_initial_device): Ditto.
9987         (omp_set_default_device): Ditto.
9988         (omp_set_dynamic): Ditto.
9989         (omp_set_max_active_levels): Ditto.
9990         (omp_set_nested): Ditto.
9991         (omp_set_num_threads): Ditto.
9992         (omp_set_schedule): Ditto.
9993         (omp_init_lock): Ditto.
9994         (omp_set_lock): Ditto.
9995         (omp_test_lock): Ditto.
9996         (omp_unset_lock): Ditto.
9997         (omp_destroy_lock): Ditto.
9998         (omp_init_nest_lock): Ditto.
9999         (omp_set_nest_lock): Ditto.
10000         (omp_test_nest_lock): Ditto.
10001         (omp_unset_nest_lock): Ditto.
10002         (omp_destroy_nest_lock): Ditto.
10003         (omp_get_wtick): Ditto.
10004         (omp_get_wtime): Ditto.
10005         (OMP_CANCELLATION): Ditto.
10006         (OMP_DISPLAY_ENV): Ditto.
10007         (OMP_DEFAULT_DEVICE): Ditto.
10008         (OMP_DYNAMIC): Ditto.
10009         (OMP_MAX_ACTIVE_LEVELS): Ditto.
10010         (OMP_MAX_TASK_PRIORITY): Ditto.
10011         (OMP_NESTED): Ditto.
10012         (OMP_NUM_THREADS): Ditto.
10013         (OMP_PROC_BIND): Ditto.
10014         (OMP_PLACES): Ditto.
10015         (OMP_STACKSIZE): Ditto.
10016         (OMP_SCHEDULE): Ditto.
10017         (OMP_THREAD_LIMIT): Ditto.
10018         (OMP_WAIT_POLICY): Ditto.
10020 2018-06-22  Cesar Philippidis  <cesar@codesourcery.com>
10021             James Norris  <jnorris@codesourcery.com>
10022             Julian Brown  <julian@codesourcery.com>
10023             Thomas Schwinge  <thomas@codesourcery.com>
10024             Tom de Vries  <tom@codesourcery.com>
10026         * testsuite/libgomp.oacc-c-c++-common/loop-red-wv-1.c: Don't force "-O2".
10027         * testsuite/libgomp.oacc-c-c++-common/data-2.c: Update.
10028         * testsuite/libgomp.oacc-c-c++-common/host_data-1.c: Likewise.
10029         * testsuite/libgomp.oacc-c-c++-common/mode-transitions.c: Likewise.
10030         * testsuite/libgomp.oacc-fortran/data-1.f90: Likewise.
10031         * testsuite/libgomp.oacc-fortran/data-2.f90: Likewise.
10032         * testsuite/libgomp.oacc-c++/non-scalar-data.C: New file.
10033         * testsuite/libgomp.oacc-c-c++-common/declare-3.c: Likewise.
10034         * testsuite/libgomp.oacc-c-c++-common/enter-data.c: Likewise.
10035         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-2.c:
10036         Likewise.
10037         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-enter-exit-2.c:
10038         Likewise.
10039         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-enter-exit.c:
10040         Likewise.
10041         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-update.c:
10042         Likewise.
10043         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data.c:
10044         Likewise.
10045         * testsuite/libgomp.oacc-c-c++-common/kernels-parallel-loop-data-enter-exit.c:
10046         Likewise.
10047         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-1.c:
10048         Likewise.
10049         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-2.c:
10050         Likewise.
10051         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-3.c:
10052         Likewise.
10053         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-4.c:
10054         Likewise.
10055         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-5.c:
10056         Likewise.
10057         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-1.c:
10058         Likewise.
10059         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-2.c:
10060         Likewise.
10061         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-3.c:
10062         Likewise.
10063         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-4.c:
10064         Likewise.
10065         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-5.c:
10066         Likewise.
10067         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-6.c:
10068         Likewise.
10069         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-vector-1.c:
10070         Likewise.
10071         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-vector-2.c:
10072         Likewise.
10073         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-1.c:
10074         Likewise.
10075         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-2.c:
10076         Likewise.
10077         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-3.c:
10078         Likewise.
10079         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-4.c:
10080         Likewise.
10081         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-5.c:
10082         Likewise.
10083         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-6.c:
10084         Likewise.
10085         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-7.c:
10086         Likewise.
10087         * testsuite/libgomp.oacc-c-c++-common/kernels-reduction-1.c:
10088         Likewise.
10089         * testsuite/libgomp.oacc-c-c++-common/parallel-loop-1.c: Likewise.
10090         * testsuite/libgomp.oacc-c-c++-common/parallel-loop-1.h: Likewise.
10091         * testsuite/libgomp.oacc-c-c++-common/parallel-loop-2.h: Likewise.
10092         * testsuite/libgomp.oacc-fortran/cublas-fixed.h: Likewise.
10093         * testsuite/libgomp.oacc-fortran/dummy-array.f90: Likewise.
10094         * testsuite/libgomp.oacc-fortran/host_data-2.f90: Likewise.
10095         * testsuite/libgomp.oacc-fortran/host_data-3.f: Likewise.
10096         * testsuite/libgomp.oacc-fortran/host_data-4.f90: Likewise.
10097         * testsuite/libgomp.oacc-fortran/kernels-acc-loop-reduction-2.f90:
10098         Likewise.
10099         * testsuite/libgomp.oacc-fortran/kernels-acc-loop-reduction.f90:
10100         Likewise.
10101         * testsuite/libgomp.oacc-fortran/kernels-collapse-3.f90: Likewise.
10102         * testsuite/libgomp.oacc-fortran/kernels-collapse-4.f90: Likewise.
10103         * testsuite/libgomp.oacc-fortran/kernels-independent.f90:
10104         Likewise.
10105         * testsuite/libgomp.oacc-fortran/kernels-loop-1.f90: Likewise.
10106         * testsuite/libgomp.oacc-fortran/kernels-map-1.f90: Likewise.
10107         * testsuite/libgomp.oacc-fortran/kernels-parallel-loop-data-enter-exit.f95:
10108         Likewise.
10109         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-1.f90:
10110         Likewise.
10111         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-2.f90:
10112         Likewise.
10113         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-3.f90:
10114         Likewise.
10115         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-6.f90:
10116         Likewise.
10117         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-vector-1.f90:
10118         Likewise.
10119         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-vector-2.f90:
10120         Likewise.
10121         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-1.f90:
10122         Likewise.
10123         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-2.f90:
10124         Likewise.
10125         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-3.f90:
10126         Likewise.
10127         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-4.f90:
10128         Likewise.
10129         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-5.f90:
10130         Likewise.
10131         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-6.f90:
10132         Likewise.
10133         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-7.f90:
10134         Likewise.
10135         * testsuite/libgomp.oacc-fortran/kernels-reduction-1.f90:
10136         Likewise.
10137         * testsuite/libgomp.oacc-fortran/lib-12.f90: Likewise.
10138         * testsuite/libgomp.oacc-fortran/lib-13.f90: Likewise.
10139         * testsuite/libgomp.oacc-fortran/lib-14.f90: Likewise.
10140         * testsuite/libgomp.oacc-fortran/lib-15.f90: Likewise.
10141         * testsuite/libgomp.oacc-fortran/parallel-loop-1.f90: Likewise.
10142         * testsuite/libgomp.oacc-fortran/reference-reductions.f90: Likewise.
10143         * testsuite/libgomp.oacc-fortran/vector-routine.f90: Likewise.
10145 2018-06-20  Chung-Lin Tang <cltang@codesourcery.com>
10146             Thomas Schwinge <thomas@codesourcery.com>
10147             Cesar Philippidis  <cesar@codesourcery.com>
10149         * libgomp.h (struct splay_tree_key_s): Add dynamic_refcount member.
10150         (gomp_acc_remove_pointer): Update declaration.
10151         (gomp_acc_declare_allocate): Declare.
10152         (gomp_remove_var): Declare.
10153         * libgomp.map (OACC_2.5): Define.
10154         * oacc-mem.c (acc_map_data): Update refcount.
10155         (acc_unmap_data): Likewise.
10156         (present_create_copy): Likewise.
10157         (acc_create): Add FLAG_PRESENT when calling present_create_copy.
10158         (acc_copyin): Likewise.
10159         (FLAG_FINALIZE): Define.
10160         (delete_copyout): Update dynamic refcounts, add support for FINALIZE.
10161         (acc_delete_finalize): New function.
10162         (acc_delete_finalize_async): New function.
10163         (acc_copyout_finalize): New function.
10164         (acc_copyout_finalize_async): New function.
10165         (gomp_acc_insert_pointer): Update refcounts.
10166         (gomp_acc_remove_pointer): Return if data is not present on the
10167         accelerator.
10168         * oacc-parallel.c (find_pset): Rename to find_pointer.
10169         (find_pointer): Add support for GOMP_MAP_POINTER.
10170         (handle_ftn_pointers): New function.
10171         (GOACC_parallel_keyed): Update refcounts of variables.
10172         (GOACC_enter_exit_data): Add support for finalized data mappings.
10173         Add support for GOMP_MAP_{TO,ALLOC,RELESE,FROM}. Update handling
10174         of fortran arrays.
10175         (GOACC_update): Add support for GOMP_MAP_{ALWAYS_POINTER,TO,FROM}.
10176         (GOACC_declare): Add support for GOMP_MAP_RELEASE, remove support
10177         for GOMP_MAP_FORCE_FROM.
10178         * openacc.f90 (module openacc_internal): Add
10179         acc_copyout_finalize_{32_h,64_h,array_h,_l}, and
10180         acc_delete_finalize_{32_h,64_h,array_h,_l}. Add interfaces for
10181         acc_copyout_finalize and acc_delete_finalize.
10182         (acc_copyout_finalize_32_h): New subroutine.
10183         (acc_copyout_finalize_64_h): New subroutine.
10184         (acc_copyout_finalize_array_h): New subroutine.
10185         (acc_delete_finalize_32_h): New subroutine.
10186         (acc_delete_finalize_64_h): New subroutine.
10187         (acc_delete_finalize_array_h): New subroutine.
10188         * openacc.h (acc_copyout_finalize): Declare.
10189         (acc_copyout_finalize_async): Declare.
10190         (acc_delete_finalize): Declare.
10191         (acc_delete_finalize_async): Declare.
10192         * openacc_lib.h (acc_copyout_finalize): New interface.
10193         (acc_delete_finalize): New interface.
10194         * target.c (gomp_map_vars): Update dynamic_refcount.
10195         (gomp_remove_var): New function.
10196         (gomp_unmap_vars): Use it.
10197         (gomp_unload_image_from_device): Likewise.
10198         * testsuite/libgomp.oacc-c-c++-common/data-already-1.c: Update test
10199         case to utilize OpenACC 2.5 data clause semantics.
10200         * testsuite/libgomp.oacc-c-c++-common/data-already-2.c: Likewise.
10201         * testsuite/libgomp.oacc-c-c++-common/data-already-3.c: Likewise.
10202         * testsuite/libgomp.oacc-c-c++-common/data-already-4.c: Likewise.
10203         * testsuite/libgomp.oacc-c-c++-common/data-already-5.c: Likewise.
10204         * testsuite/libgomp.oacc-c-c++-common/data-already-6.c: Likewise.
10205         * testsuite/libgomp.oacc-c-c++-common/data-already-7.c: Likewise.
10206         * testsuite/libgomp.oacc-c-c++-common/data-already-8.c: Likewise.
10207         * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
10208         * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
10209         * testsuite/libgomp.oacc-c-c++-common/lib-32.c: Likewise.
10210         * testsuite/libgomp.oacc-c-c++-common/lib-83.c: Likewise.
10211         * testsuite/libgomp.oacc-fortran/data-5.f90: New test.
10212         * testsuite/libgomp.oacc-fortran/data-already-1.f: Update test case to
10213         utilize OpenACC 2.5 data clause semantics.
10214         * testsuite/libgomp.oacc-fortran/data-already-2.f: Likewise.
10215         * testsuite/libgomp.oacc-fortran/data-already-3.f: Likewise.
10216         * testsuite/libgomp.oacc-fortran/data-already-4.f: Likewise.
10217         * testsuite/libgomp.oacc-fortran/data-already-5.f: Likewise.
10218         * testsuite/libgomp.oacc-fortran/data-already-6.f: Likewise.
10219         * testsuite/libgomp.oacc-fortran/data-already-7.f: Likewise.
10220         * testsuite/libgomp.oacc-fortran/data-already-8.f: Likewise.
10221         * testsuite/libgomp.oacc-fortran/lib-32-1.f: Likewise.
10222         * testsuite/libgomp.oacc-fortran/lib-32-2.f: Likewise.
10224 2018-05-21  Janus Weil  <janus@gcc.gnu.org>
10226         PR fortran/85841
10227         PR testsuite/85865
10228         * testsuite/libgomp.fortran/collapse2.f90: Add option "-std=legacy".
10229         * testsuite/libgomp.fortran/omp_atomic2.f90: Ditto.
10230         * testsuite/libgomp.fortran/omp_parse1.f90: Ditto.
10231         * testsuite/libgomp.fortran/omp_parse3.f90: Ditto.
10232         * testsuite/libgomp.fortran/task2.f90: Ditto.
10233         * testsuite/libgomp.fortran/vla1.f90: Ditto.
10234         * testsuite/libgomp.fortran/vla2.f90: Ditto.
10235         * testsuite/libgomp.fortran/vla3.f90: Ditto.
10236         * testsuite/libgomp.fortran/vla4.f90: Ditto.
10237         * testsuite/libgomp.fortran/vla5.f90: Ditto.
10238         * testsuite/libgomp.fortran/vla6.f90: Ditto.
10239         * testsuite/libgomp.fortran/vla8.f90: Ditto.
10240         * testsuite/libgomp.oacc-fortran/collapse-2.f90: Ditto.
10241         * testsuite/libgomp.oacc-fortran/nested-function-1.f90: Ditto.
10243 2018-05-18  Cesar Philippidis  <cesar@codesourcery.com>
10245         PR c++/85782
10246         * testsuite/libgomp.oacc-c-c++-common/pr85782.c: New test.
10248 2018-05-09  Tom de Vries  <tom@codesourcery.com>
10250         PR libgomp/82901
10251         * oacc-parallel.c (GOACC_declare): Use GOMP_ASYNC_SYNC as async argument
10252         to GOACC_enter_exit_data.
10254 2018-05-09  Tom de Vries  <tom@codesourcery.com>
10256         PR libgomp/83792
10257         * oacc-int.h (async_valid_stream_id_p, async_valid_p)
10258         (async_synchronous_p): New function.
10259         * oacc-async.c (acc_async_test, acc_wait, acc_wait_all_async): Use
10260         async_valid_p.
10261         * oacc-cuda.c (acc_get_cuda_stream, acc_set_cuda_stream): Use
10262         async_valid_stream_id_p.
10263         * oacc-mem.c (gomp_acc_remove_pointer): Use async_synchronous_p.
10264         * oacc-parallel.c (GOACC_parallel_keyed): Same.
10266 2018-05-07  Tom de Vries  <tom@codesourcery.com>
10268         PR testsuite/85677
10269         * testsuite/lib/libgomp.exp (libgomp_init): Move inclusion of top-level
10270         include directory in ALWAYS_CFLAGS out of $blddir != "" condition.
10272 2018-05-03  Tom de Vries  <tom@codesourcery.com>
10274         PR testsuite/85106
10275         * testsuite/lib/libgomp-dg.exp (libgomp-dg-test): Add save-temps to
10276         extra_tool_flags if it contains an -foffload=-fdump-* flag.
10277         * testsuite/lib/libgomp.exp: Include scanoffloadtree.exp.
10278         * testsuite/libgomp.oacc-c/vec.c: Use scan-offload-tree-dump.
10280 2018-05-02  Tom de Vries  <tom@codesourcery.com>
10282         PR libgomp/85411
10283         * plugin/plugin-nvptx.c (nvptx_exec): Move parsing of
10284         GOMP_OPENACC_DIM ...
10285         * env.c (parse_gomp_openacc_dim): ... here.  New function.
10286         (initialize_env): Call parse_gomp_openacc_dim.
10287         (goacc_default_dims): Define.
10288         * libgomp.h (goacc_default_dims): Declare.
10289         * oacc-plugin.c (GOMP_PLUGIN_acc_default_dim): New function.
10290         * oacc-plugin.h (GOMP_PLUGIN_acc_default_dim): Declare.
10291         * libgomp.map: New version "GOMP_PLUGIN_1.2". Add
10292         GOMP_PLUGIN_acc_default_dim.
10293         * testsuite/libgomp.oacc-c-c++-common/loop-default-runtime.c: New test.
10294         * testsuite/libgomp.oacc-c-c++-common/loop-default.h: New test.
10296 2018-05-02  Tom de Vries  <tom@codesourcery.com>
10298         PR testsuite/83791
10299         * testsuite/libgomp.c++/udr-9.C: Update.
10300         * testsuite/libgomp.c++/atomic-16.C: Remove.
10301         * testsuite/libgomp.c++/cancel-taskgroup-2.C: Remove.
10302         * testsuite/libgomp.c++/loop-13.C: Remove.
10303         * testsuite/libgomp.c++/loop-14.C: Remove.
10304         * testsuite/libgomp.c++/loop-15.C: Remove.
10305         * testsuite/libgomp.c++/monotonic-1.C: Remove.
10306         * testsuite/libgomp.c++/monotonic-2.C: Remove.
10307         * testsuite/libgomp.c++/nonmonotonic-1.C: Remove.
10308         * testsuite/libgomp.c++/nonmonotonic-2.C: Remove.
10309         * testsuite/libgomp.c++/ordered-1.C: Remove.
10310         * testsuite/libgomp.c++/pr45784.C: Remove.
10311         * testsuite/libgomp.c++/pr64824.C: Remove.
10312         * testsuite/libgomp.c++/pr64868.C: Remove.
10313         * testsuite/libgomp.c++/pr66199-1.C: Remove.
10314         * testsuite/libgomp.c++/pr66199-2.C: Remove.
10315         * testsuite/libgomp.c++/pr66199-3.C: Remove.
10316         * testsuite/libgomp.c++/pr66199-4.C: Remove.
10317         * testsuite/libgomp.c++/pr66199-5.C: Remove.
10318         * testsuite/libgomp.c++/pr66199-6.C: Remove.
10319         * testsuite/libgomp.c++/pr66199-7.C: Remove.
10320         * testsuite/libgomp.c++/pr66199-8.C: Remove.
10321         * testsuite/libgomp.c++/pr66199-9.C: Remove.
10322         * testsuite/libgomp.c++/pr69389.C: Remove.
10323         * testsuite/libgomp.c++/simd10.C: Remove.
10324         * testsuite/libgomp.c++/simd11.C: Remove.
10325         * testsuite/libgomp.c++/simd12.C: Remove.
10326         * testsuite/libgomp.c++/simd13.C: Remove.
10327         * testsuite/libgomp.c++/target-1.C: Remove.
10328         * testsuite/libgomp.c++/target-3.C: Remove.
10329         * testsuite/libgomp.c++/target-4.C: Remove.
10330         * testsuite/libgomp.c++/target-5.C: Remove.
10331         * testsuite/libgomp.c++/taskgroup-1.C: Remove.
10332         * testsuite/libgomp.c++/taskloop-1.C: Remove.
10333         * testsuite/libgomp.c++/taskloop-2.C: Remove.
10334         * testsuite/libgomp.c++/taskloop-3.C: Remove.
10335         * testsuite/libgomp.c++/taskloop-4.C: Remove.
10336         * testsuite/libgomp.c++/udr-9.C: Remove.
10337         * testsuite/libgomp.c++/for-10.C: Remove.
10338         * testsuite/libgomp.c++/for-11.C: Remove.
10339         * testsuite/libgomp.c++/for-12.C: Remove.
10340         * testsuite/libgomp.c++/for-13.C: Remove.
10341         * testsuite/libgomp.c++/for-14.C: Remove.
10342         * testsuite/libgomp.c++/for-9.C: Remove.
10343         * testsuite/libgomp.c/atomic-18.c: Move ...
10344         * testsuite/libgomp.c-c++-common/atomic-18.c: ... here.
10345         * testsuite/libgomp.c/cancel-taskgroup-2.c: Move ...
10346         * testsuite/libgomp.c-c++-common/cancel-taskgroup-2.c: here.
10347         * testsuite/libgomp.c/loop-13.c: Move ...
10348         * testsuite/libgomp.c-c++-common/loop-13.c: ... here.
10349         * testsuite/libgomp.c/loop-14.c: Move ...
10350         * testsuite/libgomp.c-c++-common/loop-14.c: ... here.
10351         * testsuite/libgomp.c/loop-15.c: Remove.
10352         * testsuite/libgomp.c-c++-common/loop-15.c: New test.
10353         * testsuite/libgomp.c/monotonic-1.c: Move ...
10354         * testsuite/libgomp.c-c++-common/monotonic-1.c: ... here.
10355         * testsuite/libgomp.c/monotonic-2.c: Move ...
10356         * testsuite/libgomp.c-c++-common/monotonic-2.c: ... here.
10357         * testsuite/libgomp.c/nonmonotonic-1.c: Move ...
10358         * testsuite/libgomp.c-c++-common/nonmonotonic-1.c: ... here.
10359         * testsuite/libgomp.c/nonmonotonic-2.c: Move ...
10360         * testsuite/libgomp.c-c++-common/nonmonotonic-2.c: ... here.
10361         * testsuite/libgomp.c/ordered-4.c: Move ...
10362         * testsuite/libgomp.c-c++-common/ordered-4.c: ... here.
10363         * testsuite/libgomp.c/pr45784.c: Move ...
10364         * testsuite/libgomp.c-c++-common/pr45784.c: ... here.
10365         * testsuite/libgomp.c/pr64824.c: Move ...
10366         * testsuite/libgomp.c-c++-common/pr64824.c: ... here.
10367         * testsuite/libgomp.c/pr64868.c: Move ...
10368         * testsuite/libgomp.c-c++-common/pr64868.c: ... here.
10369         * testsuite/libgomp.c/pr66199-1.c: Move ...
10370         * testsuite/libgomp.c-c++-common/pr66199-1.c: ... here.
10371         * testsuite/libgomp.c/pr66199-2.c: Move ...
10372         * testsuite/libgomp.c-c++-common/pr66199-2.c: ... here.
10373         * testsuite/libgomp.c/pr66199-3.c: Move ...
10374         * testsuite/libgomp.c-c++-common/pr66199-3.c: ... here.
10375         * testsuite/libgomp.c/pr66199-4.c: Move ...
10376         * testsuite/libgomp.c-c++-common/pr66199-4.c: ... here.
10377         * testsuite/libgomp.c/pr66199-5.c: Move ...
10378         * testsuite/libgomp.c-c++-common/pr66199-5.c: ... here.
10379         * testsuite/libgomp.c/pr66199-6.c: Move ...
10380         * testsuite/libgomp.c-c++-common/pr66199-6.c: ... here.
10381         * testsuite/libgomp.c/pr66199-7.c: Move ...
10382         * testsuite/libgomp.c-c++-common/pr66199-7.c: ... here.
10383         * testsuite/libgomp.c/pr66199-8.c: Move ...
10384         * testsuite/libgomp.c-c++-common/pr66199-8.c: ... here.
10385         * testsuite/libgomp.c/pr66199-9.c: Move ...
10386         * testsuite/libgomp.c-c++-common/pr66199-9.c: ... here.
10387         * testsuite/libgomp.c/pr69389.c: Move ...
10388         * testsuite/libgomp.c-c++-common/pr69389.c: ... here.
10389         * testsuite/libgomp.c/simd-14.c: Move ...
10390         * testsuite/libgomp.c-c++-common/simd-14.c: ... here.
10391         * testsuite/libgomp.c/simd-15.c: Move ...
10392         * testsuite/libgomp.c-c++-common/simd-15.c: ... here.
10393         * testsuite/libgomp.c/simd-16.c: Move ...
10394         * testsuite/libgomp.c-c++-common/simd-16.c: ... here.
10395         * testsuite/libgomp.c/simd-17.c: Move ...
10396         * testsuite/libgomp.c-c++-common/simd-17.c: ... here.
10397         * testsuite/libgomp.c/target-1.c: Move ...
10398         * testsuite/libgomp.c-c++-common/target-1.c: ... here.
10399         * testsuite/libgomp.c/target-10.c: Move ...
10400         * testsuite/libgomp.c-c++-common/target-10.c: ... here.
10401         * testsuite/libgomp.c/target-13.c: Move ...
10402         * testsuite/libgomp.c-c++-common/target-13.c: ... here.
10403         * testsuite/libgomp.c/target-2.c: Move ...
10404         * testsuite/libgomp.c-c++-common/target-2.c: ... here.
10405         * testsuite/libgomp.c/taskgroup-1.c: Move ...
10406         * testsuite/libgomp.c-c++-common/taskgroup-1.c: ... here.
10407         * testsuite/libgomp.c/taskloop-1.c: Move ...
10408         * testsuite/libgomp.c-c++-common/taskloop-1.c: ... here.
10409         * testsuite/libgomp.c/taskloop-2.c: Move ...
10410         * testsuite/libgomp.c-c++-common/taskloop-2.c: ... here.
10411         * testsuite/libgomp.c/taskloop-3.c: Move ...
10412         * testsuite/libgomp.c-c++-common/taskloop-3.c: ... here.
10413         * testsuite/libgomp.c/taskloop-4.c: Move ...
10414         * testsuite/libgomp.c-c++-common/taskloop-4.c: ... here.
10415         * testsuite/libgomp.c/udr-1.c: Move ...
10416         * testsuite/libgomp.c-c++-common/udr-1.c: ... here.
10417         * testsuite/libgomp.c/for-1.c: Move ...
10418         * testsuite/libgomp.c-c++-common/for-1.c: ... here.
10419         * testsuite/libgomp.c/for-1.h: Move ...
10420         * testsuite/libgomp.c-c++-common/for-1.h: ... here.
10421         * testsuite/libgomp.c/for-2.c: Move ...
10422         * testsuite/libgomp.c-c++-common/for-2.c: ... here.
10423         * testsuite/libgomp.c/for-2.h: Move ...
10424         * testsuite/libgomp.c-c++-common/for-2.h: ... here.
10425         * testsuite/libgomp.c/for-3.c: Move ...
10426         * testsuite/libgomp.c-c++-common/for-3.c: ... here.
10427         * testsuite/libgomp.c/for-4.c: Move ...
10428         * testsuite/libgomp.c-c++-common/for-4.c: ... here.
10429         * testsuite/libgomp.c/for-5.c: Move ...
10430         * testsuite/libgomp.c-c++-common/for-5.c: ... here.
10431         * testsuite/libgomp.c/for-6.c: Move ...
10432         * testsuite/libgomp.c-c++-common/for-6.c: ... here.
10434 2018-05-02  Tom de Vries  <tom@codesourcery.com>
10436         PR libgomp/82428
10437         * testsuite/libgomp.oacc-c-c++-common/gang-static-2.c: Use
10438         __builtin_goacc_parlevel_{id,size}.
10439         * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Same.
10440         * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: Same.
10441         * testsuite/libgomp.oacc-c-c++-common/loop-g-1.c: Same.
10442         * testsuite/libgomp.oacc-c-c++-common/loop-g-2.c: Same.
10443         * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c: Same.
10444         * testsuite/libgomp.oacc-c-c++-common/loop-red-g-1.c: Same.
10445         * testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c: Same.
10446         * testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c: Same.
10447         * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c: Same.
10448         * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c: Same.
10449         * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c: Same.
10450         * testsuite/libgomp.oacc-c-c++-common/loop-red-wv-1.c: Same.
10451         * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c: Same.
10452         * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c: Same.
10453         * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c: Same.
10454         * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Same.
10455         * testsuite/libgomp.oacc-c-c++-common/routine-g-1.c: Same.
10456         * testsuite/libgomp.oacc-c-c++-common/routine-gwv-1.c: Same.
10457         * testsuite/libgomp.oacc-c-c++-common/routine-v-1.c: Same.
10458         * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c: Same.
10459         * testsuite/libgomp.oacc-c-c++-common/routine-wv-1.c: Same.
10460         * testsuite/libgomp.oacc-c-c++-common/routine-wv-2.c: Same.
10461         * testsuite/libgomp.oacc-c-c++-common/tile-1.c: Same.
10463 2018-05-02  Tom de Vries  <tom@codesourcery.com>
10465         PR testsuite/85106
10466         * testsuite/lib/libgomp.exp: Include scanltranstree.exp.
10468 2018-05-02  Tom de Vries  <tom@codesourcery.com>
10470         PR testsuite/85106
10471         * testsuite/lib/libgomp.exp: Include scanwpaipa.exp.
10473 2018-04-29  Julian Brown  <julian@codesourcery.com>
10474             Tom de Vries  <tom@codesourcery.com>
10476         PR testsuite/85527
10477         * testsuite/libgomp.oacc-c-c++-common/atomic_capture-1.c: Allow
10478         arbitrary order for iterations of atomic subtract check.
10480 2018-04-28  Tom de Vries  <tom@codesourcery.com>
10482         PR testsuite/85527
10483         * testsuite/libgomp.oacc-fortran/atomic_capture-1.f90 (main): Store
10484         atomic capture results obtained in parallel loop to an array, instead of
10485         to a scalar.
10487 2018-04-26  Tom de Vries  <tom@codesourcery.com>
10489         PR libgomp/84020
10490         * plugin/cuda/cuda.h (CUjit_option): Add CU_JIT_OPTIMIZATION_LEVEL.
10491         * plugin/plugin-nvptx.c (_GNU_SOURCE): Define.
10492         (process_GOMP_NVPTX_JIT): New function.
10493         (link_ptx): Use process_GOMP_NVPTX_JIT.
10495 2018-04-26  Richard Biener <rguenther@suse.de>
10496             Tom de Vries  <tom@codesourcery.com>
10498         PR lto/85422
10499         * testsuite/libgomp.oacc-c-c++-common/pr85422.c: New test.
10501 2018-04-26  Tom de Vries  <tom@codesourcery.com>
10503         PR target/85519
10504         * testsuite/libgomp.fortran/examples-4/declare_target-1.f90: Reduce
10505         recursion depth from 25 to 23.
10506         * testsuite/libgomp.fortran/examples-4/declare_target-2.f90: Same.
10508 2018-04-24  H.J. Lu  <hongjiu.lu@intel.com>
10510         * configure: Regenerated.
10512 2018-04-20  Nathan Sidwell  <nathan@codesourcery.com>
10513             Tom de Vries  <tom@codesourcery.com>
10515         PR target/85445
10516         * testsuite/libgomp.oacc-c++/ref-1.C: New.
10518 2018-04-19  Thomas Schwinge  <thomas@codesourcery.com>
10520         PR libgomp/85463
10521         * testsuite/libgomp.oacc-fortran/error_stop-1.f: New file.
10522         * testsuite/libgomp.oacc-fortran/error_stop-2.f: Likewise.
10523         * testsuite/libgomp.oacc-fortran/error_stop-3.f: Likewise.
10524         * testsuite/libgomp.oacc-fortran/stop-1.f: Likewise.
10525         * testsuite/libgomp.oacc-fortran/stop-2.f: Likewise.
10526         * testsuite/libgomp.oacc-fortran/stop-3.f: Likewise.
10528         PR libfortran/85166
10529         * testsuite/libgomp.oacc-fortran/abort-1.f90: Switch back to "call
10530         abort".
10531         * testsuite/libgomp.oacc-fortran/abort-2.f90: Likewise.
10533 2018-04-19  Jakub Jelinek  <jakub@redhat.com>
10535         * configure: Regenerated.
10537 2018-04-18  David Malcolm  <dmalcolm@redhat.com>
10539         PR jit/85384
10540         * configure: Regenerate.
10542 2018-04-16  Cesar Philippidis  <cesar@codesourcery.com>
10543             Tom de Vries  <tom@codesourcery.com>
10545         PR middle-end/84955
10546         * testsuite/libgomp.oacc-c-c++-common/pr84955.c: New test.
10547         * testsuite/libgomp.oacc-fortran/pr84955.f90: New test.
10549 2018-04-12  Thomas Koenig  <tkoenig@gcc.gnu.org>
10551         PR fortran/83064
10552         PR testsuite/85346
10553         * testsuite/libgomp.fortran/do_concurrent_5.f90: Move modified
10554         test from gfortran.dg to here.
10556 2018-04-12  Cesar Philippidis  <cesar@codesourcery.com>
10558         * testsuite/libgomp.oacc-c-c++-common/pr84955.c: Revert 259346.
10559         * testsuite/libgomp.oacc-fortran/pr84955.f90: Likewise.
10561 2018-04-12  Cesar Philippidis  <cesar@codesourcery.com>
10563         PR middle-end/84955
10564         * testsuite/libgomp.oacc-c-c++-common/pr84955.c: New test.
10565         * testsuite/libgomp.oacc-fortran/pr84955.f90: New test.
10567 2018-04-05  Tom de Vries  <tom@codesourcery.com>
10569         PR target/85204
10570         * testsuite/libgomp.oacc-c-c++-common/broadcast-1.c: New test.
10572 2018-03-26  Tom de Vries  <tom@codesourcery.com>
10574         PR tree-optimization/85063
10575         * testsuite/libgomp.c/switch-conversion-2.c: New test.
10576         * testsuite/libgomp.c/switch-conversion.c: New test.
10577         * testsuite/libgomp.oacc-c-c++-common/switch-conversion-2.c: New test.
10578         * testsuite/libgomp.oacc-c-c++-common/switch-conversion.c: New test.
10580 2018-03-25  Thomas Koenig  <tkoenig@gcc.gnu.org>
10582         PR fortran/84381
10583         * testsuite/libgomp.fortran/aligned1.f03: Replace non-standard
10584         call abort by STOP n.
10585         * testsuite/libgomp.fortran/alloc-comp-1.f90: Likewise.
10586         * testsuite/libgomp.fortran/alloc-comp-2.f90: Likewise.
10587         * testsuite/libgomp.fortran/alloc-comp-3.f90: Likewise.
10588         * testsuite/libgomp.fortran/allocatable1.f90: Likewise.
10589         * testsuite/libgomp.fortran/allocatable10.f90: Likewise.
10590         * testsuite/libgomp.fortran/allocatable11.f90: Likewise.
10591         * testsuite/libgomp.fortran/allocatable12.f90: Likewise.
10592         * testsuite/libgomp.fortran/allocatable2.f90: Likewise.
10593         * testsuite/libgomp.fortran/allocatable3.f90: Likewise.
10594         * testsuite/libgomp.fortran/allocatable4.f90: Likewise.
10595         * testsuite/libgomp.fortran/allocatable5.f90: Likewise.
10596         * testsuite/libgomp.fortran/allocatable6.f90: Likewise.
10597         * testsuite/libgomp.fortran/allocatable7.f90: Likewise.
10598         * testsuite/libgomp.fortran/allocatable8.f90: Likewise.
10599         * testsuite/libgomp.fortran/allocatable9.f90: Likewise.
10600         * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: Likewise.
10601         * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: Likewise.
10602         * testsuite/libgomp.fortran/associate1.f90: Likewise.
10603         * testsuite/libgomp.fortran/associate2.f90: Likewise.
10604         * testsuite/libgomp.fortran/associate3.f90: Likewise.
10605         * testsuite/libgomp.fortran/cancel-do-1.f90: Likewise.
10606         * testsuite/libgomp.fortran/cancel-do-2.f90: Likewise.
10607         * testsuite/libgomp.fortran/cancel-parallel-1.f90: Likewise.
10608         * testsuite/libgomp.fortran/cancel-sections-1.f90: Likewise.
10609         * testsuite/libgomp.fortran/cancel-taskgroup-2.f90: Likewise.
10610         * testsuite/libgomp.fortran/character1.f90: Likewise.
10611         * testsuite/libgomp.fortran/character2.f90: Likewise.
10612         * testsuite/libgomp.fortran/collapse1.f90: Likewise.
10613         * testsuite/libgomp.fortran/collapse2.f90: Likewise.
10614         * testsuite/libgomp.fortran/collapse3.f90: Likewise.
10615         * testsuite/libgomp.fortran/collapse4.f90: Likewise.
10616         * testsuite/libgomp.fortran/crayptr1.f90: Likewise.
10617         * testsuite/libgomp.fortran/crayptr2.f90: Likewise.
10618         * testsuite/libgomp.fortran/crayptr3.f90: Likewise.
10619         * testsuite/libgomp.fortran/declare-simd-1.f90: Likewise.
10620         * testsuite/libgomp.fortran/declare-simd-3.f90: Likewise.
10621         * testsuite/libgomp.fortran/declare-target-2.f90: Likewise.
10622         * testsuite/libgomp.fortran/depend-1.f90: Likewise.
10623         * testsuite/libgomp.fortran/depend-2.f90: Likewise.
10624         * testsuite/libgomp.fortran/depend-3.f90: Likewise.
10625         * testsuite/libgomp.fortran/do1.f90: Likewise.
10626         * testsuite/libgomp.fortran/do2.f90: Likewise.
10627         * testsuite/libgomp.fortran/doacross1.f90: Likewise.
10628         * testsuite/libgomp.fortran/doacross2.f90: Likewise.
10629         * testsuite/libgomp.fortran/doacross3.f90: Likewise.
10630         * testsuite/libgomp.fortran/examples-4/array_sections-3.f90: Likewise.
10631         * testsuite/libgomp.fortran/examples-4/array_sections-4.f90: Likewise.
10632         * testsuite/libgomp.fortran/examples-4/async_target-1.f90: Likewise.
10633         * testsuite/libgomp.fortran/examples-4/async_target-2.f90: Likewise.
10634         * testsuite/libgomp.fortran/examples-4/declare_target-1.f90: Likewise.
10635         * testsuite/libgomp.fortran/examples-4/declare_target-2.f90: Likewise.
10636         * testsuite/libgomp.fortran/examples-4/declare_target-3.f90: Likewise.
10637         * testsuite/libgomp.fortran/examples-4/declare_target-4.f90: Likewise.
10638         * testsuite/libgomp.fortran/examples-4/declare_target-5.f90: Likewise.
10639         * testsuite/libgomp.fortran/examples-4/device-1.f90: Likewise.
10640         * testsuite/libgomp.fortran/examples-4/device-2.f90: Likewise.
10641         * testsuite/libgomp.fortran/examples-4/device-3.f90: Likewise.
10642         * testsuite/libgomp.fortran/examples-4/simd-1.f90: Likewise.
10643         * testsuite/libgomp.fortran/examples-4/simd-2.f90: Likewise.
10644         * testsuite/libgomp.fortran/examples-4/simd-3.f90: Likewise.
10645         * testsuite/libgomp.fortran/examples-4/simd-4.f90: Likewise.
10646         * testsuite/libgomp.fortran/examples-4/simd-5.f90: Likewise.
10647         * testsuite/libgomp.fortran/examples-4/simd-6.f90: Likewise.
10648         * testsuite/libgomp.fortran/examples-4/simd-7.f90: Likewise.
10649         * testsuite/libgomp.fortran/examples-4/simd-8.f90: Likewise.
10650         * testsuite/libgomp.fortran/examples-4/target-1.f90: Likewise.
10651         * testsuite/libgomp.fortran/examples-4/target-2.f90: Likewise.
10652         * testsuite/libgomp.fortran/examples-4/target-3.f90: Likewise.
10653         * testsuite/libgomp.fortran/examples-4/target-4.f90: Likewise.
10654         * testsuite/libgomp.fortran/examples-4/target-5.f90: Likewise.
10655         * testsuite/libgomp.fortran/examples-4/target_data-1.f90: Likewise.
10656         * testsuite/libgomp.fortran/examples-4/target_data-2.f90: Likewise.
10657         * testsuite/libgomp.fortran/examples-4/target_data-3.f90: Likewise.
10658         * testsuite/libgomp.fortran/examples-4/target_data-4.f90: Likewise.
10659         * testsuite/libgomp.fortran/examples-4/target_data-5.f90: Likewise.
10660         * testsuite/libgomp.fortran/examples-4/target_data-6.f90: Likewise.
10661         * testsuite/libgomp.fortran/examples-4/target_data-7.f90: Likewise.
10662         * testsuite/libgomp.fortran/examples-4/target_update-1.f90: Likewise.
10663         * testsuite/libgomp.fortran/examples-4/target_update-2.f90: Likewise.
10664         * testsuite/libgomp.fortran/examples-4/task_dep-1.f90: Likewise.
10665         * testsuite/libgomp.fortran/examples-4/task_dep-2.f90: Likewise.
10666         * testsuite/libgomp.fortran/examples-4/task_dep-3.f90: Likewise.
10667         * testsuite/libgomp.fortran/examples-4/task_dep-4.f90: Likewise.
10668         * testsuite/libgomp.fortran/examples-4/task_dep-5.f90: Likewise.
10669         * testsuite/libgomp.fortran/examples-4/teams-2.f90: Likewise.
10670         * testsuite/libgomp.fortran/examples-4/teams-3.f90: Likewise.
10671         * testsuite/libgomp.fortran/examples-4/teams-4.f90: Likewise.
10672         * testsuite/libgomp.fortran/examples-4/teams-5.f90: Likewise.
10673         * testsuite/libgomp.fortran/examples-4/teams-6.f90: Likewise.
10674         * testsuite/libgomp.fortran/lastprivate1.f90: Likewise.
10675         * testsuite/libgomp.fortran/lastprivate2.f90: Likewise.
10676         * testsuite/libgomp.fortran/lib1.f90: Likewise.
10677         * testsuite/libgomp.fortran/lib2.f: Likewise.
10678         * testsuite/libgomp.fortran/lib3.f: Likewise.
10679         * testsuite/libgomp.fortran/lib4.f90: Likewise.
10680         * testsuite/libgomp.fortran/lock-1.f90: Likewise.
10681         * testsuite/libgomp.fortran/lock-2.f90: Likewise.
10682         * testsuite/libgomp.fortran/nested1.f90: Likewise.
10683         * testsuite/libgomp.fortran/nestedfn1.f90: Likewise.
10684         * testsuite/libgomp.fortran/nestedfn2.f90: Likewise.
10685         * testsuite/libgomp.fortran/nestedfn3.f90: Likewise.
10686         * testsuite/libgomp.fortran/nestedfn4.f90: Likewise.
10687         * testsuite/libgomp.fortran/nestedfn5.f90: Likewise.
10688         * testsuite/libgomp.fortran/omp_atomic1.f90: Likewise.
10689         * testsuite/libgomp.fortran/omp_atomic2.f90: Likewise.
10690         * testsuite/libgomp.fortran/omp_atomic3.f90: Likewise.
10691         * testsuite/libgomp.fortran/omp_atomic4.f90: Likewise.
10692         * testsuite/libgomp.fortran/omp_atomic5.f90: Likewise.
10693         * testsuite/libgomp.fortran/omp_cond1.f: Likewise.
10694         * testsuite/libgomp.fortran/omp_cond2.f: Likewise.
10695         * testsuite/libgomp.fortran/omp_cond3.F90: Likewise.
10696         * testsuite/libgomp.fortran/omp_cond4.F90: Likewise.
10697         * testsuite/libgomp.fortran/omp_parse1.f90: Likewise.
10698         * testsuite/libgomp.fortran/omp_parse2.f90: Likewise.
10699         * testsuite/libgomp.fortran/omp_parse3.f90: Likewise.
10700         * testsuite/libgomp.fortran/omp_parse4.f90: Likewise.
10701         * testsuite/libgomp.fortran/openmp_version-1.f: Likewise.
10702         * testsuite/libgomp.fortran/openmp_version-2.f90: Likewise.
10703         * testsuite/libgomp.fortran/parloops-exit-first-loop-alt-2.f95: Likewise.
10704         * testsuite/libgomp.fortran/parloops-exit-first-loop-alt.f95: Likewise.
10705         * testsuite/libgomp.fortran/pointer1.f90: Likewise.
10706         * testsuite/libgomp.fortran/pointer2.f90: Likewise.
10707         * testsuite/libgomp.fortran/pr25162.f: Likewise.
10708         * testsuite/libgomp.fortran/pr25219.f90: Likewise.
10709         * testsuite/libgomp.fortran/pr27395-1.f90: Likewise.
10710         * testsuite/libgomp.fortran/pr27395-2.f90: Likewise.
10711         * testsuite/libgomp.fortran/pr27416-1.f90: Likewise.
10712         * testsuite/libgomp.fortran/pr27916-1.f90: Likewise.
10713         * testsuite/libgomp.fortran/pr27916-2.f90: Likewise.
10714         * testsuite/libgomp.fortran/pr28390.f: Likewise.
10715         * testsuite/libgomp.fortran/pr29629.f90: Likewise.
10716         * testsuite/libgomp.fortran/pr32550.f90: Likewise.
10717         * testsuite/libgomp.fortran/pr33880.f90: Likewise.
10718         * testsuite/libgomp.fortran/pr34020.f90: Likewise.
10719         * testsuite/libgomp.fortran/pr35130.f90: Likewise.
10720         * testsuite/libgomp.fortran/pr42162.f90: Likewise.
10721         * testsuite/libgomp.fortran/pr46753.f90: Likewise.
10722         * testsuite/libgomp.fortran/pr48894.f90: Likewise.
10723         * testsuite/libgomp.fortran/pr49792-1.f90: Likewise.
10724         * testsuite/libgomp.fortran/pr49792-2.f90: Likewise.
10725         * testsuite/libgomp.fortran/pr63938-1.f90: Likewise.
10726         * testsuite/libgomp.fortran/pr63938-2.f90: Likewise.
10727         * testsuite/libgomp.fortran/pr65597.f90: Likewise.
10728         * testsuite/libgomp.fortran/pr66199-1.f90: Likewise.
10729         * testsuite/libgomp.fortran/pr71014.f90: Likewise.
10730         * testsuite/libgomp.fortran/pr81304.f90: Likewise.
10731         * testsuite/libgomp.fortran/pr81841.f90: Likewise.
10732         * testsuite/libgomp.fortran/pr84418-1.f90: Likewise.
10733         * testsuite/libgomp.fortran/pr84418-2.f90: Likewise.
10734         * testsuite/libgomp.fortran/procptr1.f90: Likewise.
10735         * testsuite/libgomp.fortran/recursion1.f90: Likewise.
10736         * testsuite/libgomp.fortran/reduction1.f90: Likewise.
10737         * testsuite/libgomp.fortran/reduction2.f90: Likewise.
10738         * testsuite/libgomp.fortran/reduction3.f90: Likewise.
10739         * testsuite/libgomp.fortran/reduction4.f90: Likewise.
10740         * testsuite/libgomp.fortran/reduction5.f90: Likewise.
10741         * testsuite/libgomp.fortran/reduction6.f90: Likewise.
10742         * testsuite/libgomp.fortran/reference1.f90: Likewise.
10743         * testsuite/libgomp.fortran/reference2.f90: Likewise.
10744         * testsuite/libgomp.fortran/retval1.f90: Likewise.
10745         * testsuite/libgomp.fortran/retval2.f90: Likewise.
10746         * testsuite/libgomp.fortran/sharing1.f90: Likewise.
10747         * testsuite/libgomp.fortran/sharing2.f90: Likewise.
10748         * testsuite/libgomp.fortran/simd1.f90: Likewise.
10749         * testsuite/libgomp.fortran/simd2.f90: Likewise.
10750         * testsuite/libgomp.fortran/simd3.f90: Likewise.
10751         * testsuite/libgomp.fortran/simd4.f90: Likewise.
10752         * testsuite/libgomp.fortran/simd5.f90: Likewise.
10753         * testsuite/libgomp.fortran/simd6.f90: Likewise.
10754         * testsuite/libgomp.fortran/simd7.f90: Likewise.
10755         * testsuite/libgomp.fortran/stack.f90: Likewise.
10756         * testsuite/libgomp.fortran/strassen.f90: Likewise.
10757         * testsuite/libgomp.fortran/tabs1.f90: Likewise.
10758         * testsuite/libgomp.fortran/tabs2.f: Likewise.
10759         * testsuite/libgomp.fortran/target1.f90: Likewise.
10760         * testsuite/libgomp.fortran/target2.f90: Likewise.
10761         * testsuite/libgomp.fortran/target3.f90: Likewise.
10762         * testsuite/libgomp.fortran/target4.f90: Likewise.
10763         * testsuite/libgomp.fortran/target5.f90: Likewise.
10764         * testsuite/libgomp.fortran/target6.f90: Likewise.
10765         * testsuite/libgomp.fortran/target7.f90: Likewise.
10766         * testsuite/libgomp.fortran/target8.f90: Likewise.
10767         * testsuite/libgomp.fortran/task1.f90: Likewise.
10768         * testsuite/libgomp.fortran/task2.f90: Likewise.
10769         * testsuite/libgomp.fortran/task3.f90: Likewise.
10770         * testsuite/libgomp.fortran/task4.f90: Likewise.
10771         * testsuite/libgomp.fortran/taskgroup1.f90: Likewise.
10772         * testsuite/libgomp.fortran/taskloop1.f90: Likewise.
10773         * testsuite/libgomp.fortran/taskloop2.f90: Likewise.
10774         * testsuite/libgomp.fortran/taskloop3.f90: Likewise.
10775         * testsuite/libgomp.fortran/taskloop4.f90: Likewise.
10776         * testsuite/libgomp.fortran/threadprivate1.f90: Likewise.
10777         * testsuite/libgomp.fortran/threadprivate2.f90: Likewise.
10778         * testsuite/libgomp.fortran/threadprivate3.f90: Likewise.
10779         * testsuite/libgomp.fortran/threadprivate4.f90: Likewise.
10780         * testsuite/libgomp.fortran/udr1.f90: Likewise.
10781         * testsuite/libgomp.fortran/udr10.f90: Likewise.
10782         * testsuite/libgomp.fortran/udr11.f90: Likewise.
10783         * testsuite/libgomp.fortran/udr12.f90: Likewise.
10784         * testsuite/libgomp.fortran/udr13.f90: Likewise.
10785         * testsuite/libgomp.fortran/udr14.f90: Likewise.
10786         * testsuite/libgomp.fortran/udr15.f90: Likewise.
10787         * testsuite/libgomp.fortran/udr2.f90: Likewise.
10788         * testsuite/libgomp.fortran/udr3.f90: Likewise.
10789         * testsuite/libgomp.fortran/udr4.f90: Likewise.
10790         * testsuite/libgomp.fortran/udr5.f90: Likewise.
10791         * testsuite/libgomp.fortran/udr6.f90: Likewise.
10792         * testsuite/libgomp.fortran/udr7.f90: Likewise.
10793         * testsuite/libgomp.fortran/udr8.f90: Likewise.
10794         * testsuite/libgomp.fortran/udr9.f90: Likewise.
10795         * testsuite/libgomp.fortran/vla1.f90: Likewise.
10796         * testsuite/libgomp.fortran/vla2.f90: Likewise.
10797         * testsuite/libgomp.fortran/vla3.f90: Likewise.
10798         * testsuite/libgomp.fortran/vla4.f90: Likewise.
10799         * testsuite/libgomp.fortran/vla5.f90: Likewise.
10800         * testsuite/libgomp.fortran/vla6.f90: Likewise.
10801         * testsuite/libgomp.fortran/vla7.f90: Likewise.
10802         * testsuite/libgomp.fortran/vla8.f90: Likewise.
10803         * testsuite/libgomp.fortran/workshare1.f90: Likewise.
10804         * testsuite/libgomp.fortran/workshare2.f90: Likewise.
10805         * testsuite/libgomp.oacc-fortran/abort-1.f90: Likewise.
10806         * testsuite/libgomp.oacc-fortran/abort-2.f90: Likewise.
10807         * testsuite/libgomp.oacc-fortran/acc_on_device-1-1.f90: Likewise.
10808         * testsuite/libgomp.oacc-fortran/acc_on_device-1-2.f: Likewise.
10809         * testsuite/libgomp.oacc-fortran/acc_on_device-1-3.f: Likewise.
10810         * testsuite/libgomp.oacc-fortran/asyncwait-1.f90: Likewise.
10811         * testsuite/libgomp.oacc-fortran/asyncwait-2.f90: Likewise.
10812         * testsuite/libgomp.oacc-fortran/asyncwait-3.f90: Likewise.
10813         * testsuite/libgomp.oacc-fortran/atomic_capture-1.f90: Likewise.
10814         * testsuite/libgomp.oacc-fortran/atomic_rw-1.f90: Likewise.
10815         * testsuite/libgomp.oacc-fortran/atomic_update-1.f90: Likewise.
10816         * testsuite/libgomp.oacc-fortran/c2.pl: Likewise.
10817         * testsuite/libgomp.oacc-fortran/clauses-1.f90: Likewise.
10818         * testsuite/libgomp.oacc-fortran/collapse-1.f90: Likewise.
10819         * testsuite/libgomp.oacc-fortran/collapse-2.f90: Likewise.
10820         * testsuite/libgomp.oacc-fortran/collapse-3.f90: Likewise.
10821         * testsuite/libgomp.oacc-fortran/collapse-4.f90: Likewise.
10822         * testsuite/libgomp.oacc-fortran/collapse-5.f90: Likewise.
10823         * testsuite/libgomp.oacc-fortran/collapse-6.f90: Likewise.
10824         * testsuite/libgomp.oacc-fortran/collapse-7.f90: Likewise.
10825         * testsuite/libgomp.oacc-fortran/collapse-8.f90: Likewise.
10826         * testsuite/libgomp.oacc-fortran/combined-directives-1.f90: Likewise.
10827         * testsuite/libgomp.oacc-fortran/combined-reduction.f90: Likewise.
10828         * testsuite/libgomp.oacc-fortran/data-1.f90: Likewise.
10829         * testsuite/libgomp.oacc-fortran/data-2.f90: Likewise.
10830         * testsuite/libgomp.oacc-fortran/data-3.f90: Likewise.
10831         * testsuite/libgomp.oacc-fortran/data-4-2.f90: Likewise.
10832         * testsuite/libgomp.oacc-fortran/data-4.f90: Likewise.
10833         * testsuite/libgomp.oacc-fortran/declare-1.f90: Likewise.
10834         * testsuite/libgomp.oacc-fortran/declare-2.f90: Likewise.
10835         * testsuite/libgomp.oacc-fortran/declare-3.f90: Likewise.
10836         * testsuite/libgomp.oacc-fortran/declare-4.f90: Likewise.
10837         * testsuite/libgomp.oacc-fortran/declare-5.f90: Likewise.
10838         * testsuite/libgomp.oacc-fortran/default-1.f90: Likewise.
10839         * testsuite/libgomp.oacc-fortran/firstprivate-1.f90: Likewise.
10840         * testsuite/libgomp.oacc-fortran/gang-static-1.f90: Likewise.
10841         * testsuite/libgomp.oacc-fortran/host_data-1.f90: Likewise.
10842         * testsuite/libgomp.oacc-fortran/if-1.f90: Likewise.
10843         * testsuite/libgomp.oacc-fortran/implicit-firstprivate-ref.f90: Likewise.
10844         * testsuite/libgomp.oacc-fortran/kernels-loop-2.f95: Likewise.
10845         * testsuite/libgomp.oacc-fortran/kernels-loop-data-2.f95: Likewise.
10846         * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit-2.f95: Likewise.
10847         * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit.f95: Likewise.
10848         * testsuite/libgomp.oacc-fortran/kernels-loop-data-update.f95: Likewise.
10849         * testsuite/libgomp.oacc-fortran/kernels-loop-data.f95: Likewise.
10850         * testsuite/libgomp.oacc-fortran/kernels-loop.f95: Likewise.
10851         * testsuite/libgomp.oacc-fortran/lib-1.f90: Likewise.
10852         * testsuite/libgomp.oacc-fortran/lib-10.f90: Likewise.
10853         * testsuite/libgomp.oacc-fortran/lib-2.f: Likewise.
10854         * testsuite/libgomp.oacc-fortran/lib-3.f: Likewise.
10855         * testsuite/libgomp.oacc-fortran/lib-32-1.f: Likewise.
10856         * testsuite/libgomp.oacc-fortran/lib-32-2.f: Likewise.
10857         * testsuite/libgomp.oacc-fortran/lib-4.f90: Likewise.
10858         * testsuite/libgomp.oacc-fortran/lib-5.f90: Likewise.
10859         * testsuite/libgomp.oacc-fortran/lib-6.f90: Likewise.
10860         * testsuite/libgomp.oacc-fortran/lib-7.f90: Likewise.
10861         * testsuite/libgomp.oacc-fortran/lib-8.f90: Likewise.
10862         * testsuite/libgomp.oacc-fortran/map-1.f90: Likewise.
10863         * testsuite/libgomp.oacc-fortran/nested-function-1.f90: Likewise.
10864         * testsuite/libgomp.oacc-fortran/nested-function-2.f90: Likewise.
10865         * testsuite/libgomp.oacc-fortran/nested-function-3.f90: Likewise.
10866         * testsuite/libgomp.oacc-fortran/non-scalar-data.f90: Likewise.
10867         * testsuite/libgomp.oacc-fortran/openacc_version-1.f: Likewise.
10868         * testsuite/libgomp.oacc-fortran/openacc_version-2.f90: Likewise.
10869         * testsuite/libgomp.oacc-fortran/par-reduction-2-1.f: Likewise.
10870         * testsuite/libgomp.oacc-fortran/par-reduction-2-2.f: Likewise.
10871         * testsuite/libgomp.oacc-fortran/parallel-reduction.f90: Likewise.
10872         * testsuite/libgomp.oacc-fortran/pointer-align-1.f90: Likewise.
10873         * testsuite/libgomp.oacc-fortran/pr70643.f90: Likewise.
10874         * testsuite/libgomp.oacc-fortran/pr81352.f90: Likewise.
10875         * testsuite/libgomp.oacc-fortran/pr83920.f90: Likewise.
10876         * testsuite/libgomp.oacc-fortran/pr84028.f90: Likewise.
10877         * testsuite/libgomp.oacc-fortran/private-variables.f90: Likewise.
10878         * testsuite/libgomp.oacc-fortran/pset-1.f90: Likewise.
10879         * testsuite/libgomp.oacc-fortran/reduction-1.f90: Likewise.
10880         * testsuite/libgomp.oacc-fortran/reduction-2.f90: Likewise.
10881         * testsuite/libgomp.oacc-fortran/reduction-3.f90: Likewise.
10882         * testsuite/libgomp.oacc-fortran/reduction-4.f90: Likewise.
10883         * testsuite/libgomp.oacc-fortran/reduction-5.f90: Likewise.
10884         * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
10885         * testsuite/libgomp.oacc-fortran/reduction-7.f90: Likewise.
10886         * testsuite/libgomp.oacc-fortran/reduction-8.f90: Likewise.
10887         * testsuite/libgomp.oacc-fortran/routine-1.f90: Likewise.
10888         * testsuite/libgomp.oacc-fortran/routine-2.f90: Likewise.
10889         * testsuite/libgomp.oacc-fortran/routine-3.f90: Likewise.
10890         * testsuite/libgomp.oacc-fortran/routine-4.f90: Likewise.
10891         * testsuite/libgomp.oacc-fortran/routine-5.f90: Likewise.
10892         * testsuite/libgomp.oacc-fortran/routine-7.f90: Likewise.
10893         * testsuite/libgomp.oacc-fortran/routine-9.f90: Likewise.
10894         * testsuite/libgomp.oacc-fortran/subarrays-1.f90: Likewise.
10895         * testsuite/libgomp.oacc-fortran/subarrays-2.f90: Likewise.
10896         * testsuite/libgomp.oacc-fortran/update-1.f90: Likewise.
10898 2018-03-20  Richard Biener  <rguenther@suse.de>
10900         * testsuite/libgomp.graphite/force-parallel-4.c: XFAIL one
10901         parallelizable loop.
10903 2018-02-19  Igor Tsimbalist  <igor.v.tsimbalist@intel.com>
10905         PR target/84148
10906         * configure: Regenerate.
10908 2018-02-16  Jakub Jelinek  <jakub@redhat.com>
10910         PR fortran/84418
10911         * libgomp.fortran/pr84418-1.f90: New test.
10912         * libgomp.fortran/pr84418-2.f90: New test.
10914 2018-02-14  Jakub Jelinek  <jakub@redhat.com>
10916         PR fortran/84313
10917         * testsuite/libgomp.fortran/threadprivate4.f90: Add
10918         -std=f2003 -fall-intrinsics into dg-additional-options.
10920 2018-02-08  Martin Jambor  <mjambor@suse.cz>
10922         * testsuite/libgomp.hsa.c/pr82416.c: Make the function with target
10923         clonable.
10925 2018-02-08  Martin Jambor  <mjambor@suse.cz>
10927         * testsuite/libgomp.hsa.c/staticvar.c: New test.
10929 2018-02-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10931         * testsuite/libgomp.oacc-c-c++-common/pr84217.c (abort)
10932         [__cplusplus]: Declare extern "C".
10934 2018-02-07  Tom de Vries  <tom@codesourcery.com>
10936         PR libgomp/84217
10937         * testsuite/libgomp.oacc-c-c++-common/pr84217.c: New test.
10939 2018-01-29  Christoph Spiel  <cspiel@freenet.de>
10940             Jakub Jelinek  <jakub@redhat.com>
10942         PR libgomp/84096
10943         * omp.h.in (omp_init_nest_lock_with_hint): Use omp_nest_lock_t
10944         instead of omp_lock_t.
10946 2018-01-25  Tom de Vries  <tom@codesourcery.com>
10948         PR target/84028
10949         * testsuite/libgomp.oacc-fortran/pr84028.f90: New test.
10951 2018-01-24  Tom de Vries  <tom@codesourcery.com>
10953         PR target/83589
10954         * testsuite/libgomp.oacc-c-c++-common/pr83589.c: New test.
10956 2018-01-24  Tom de Vries  <tom@codesourcery.com>
10958         PR target/81352
10959         * testsuite/libgomp.oacc-fortran/pr81352.f90: New test.
10961 2018-01-19  Tom de Vries  <tom@codesourcery.com>
10962             Cesar Philippidis  <cesar@codesourcery.com>
10964         PR target/83920
10965         * testsuite/libgomp.oacc-c-c++-common/pr83920.c: New test.
10966         * testsuite/libgomp.oacc-fortran/pr83920.f90: New test.
10968 2018-01-03  Jakub Jelinek  <jakub@redhat.com>
10970         Update copyright years.
10972         * libgomp.texi: Bump @copying's copyright year.
10974 2017-12-30  Tom de Vries  <tom@codesourcery.com>
10976         PR libgomp/83046
10977         * testsuite/libgomp.oacc-c-c++-common/pr83046.c: New test.
10978         * testsuite/libgomp.c-c++-common/pr83046.c: New test.
10980 2017-12-27  Tom de Vries  <tom@codesourcery.com>
10982         PR c++/83046
10983         * testsuite/libgomp.oacc-c-c++-common/gang-static-2.c (test_static)
10984         (test_nonstatic): Fix return type to workaround PR83046.
10986 2017-12-05  Jakub Jelinek  <jakub@redhat.com>
10988         PR testsuite/83281
10989         * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-flt.c (main): Use
10990         j suffix instead of i.
10991         * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-dbl.c (main):
10992         Likewise.
10994 2017-12-01  Cesar Philippidis  <cesar@codesourcery.com>
10996         * testsuite/libgomp.oacc-c-c++-common/data-2-lib.c: Add missing
10997         call to acc_wait (1).
10999 2017-11-24  Jakub Jelinek  <jakub@redhat.com>
11001         PR fortran/81304
11002         * testsuite/libgomp.fortran/pr81304.f90: New test.
11004 2017-11-23  Jakub Jelinek  <jakub@redhat.com>
11006         PR fortran/81841
11007         * libgomp.fortran/pr81841.f90: New test.
11009 2017-11-22  Jakub Jelinek  <jakub@redhat.com>
11011         PR libgomp/83106
11012         * target.c (gomp_target_init): Compute lengths just once and
11013         use them in both malloc size and subsequent copying.
11015 2017-11-17  Igor Tsimbalist  <igor.v.tsimbalist@intel.com>
11017         * configure.ac: Set CET_FLAGS, update XCFLAGS and FCFLAGS.
11018         * acinclude.m4: Add cet.m4.
11019         * configure: Regenerate.
11020         * Makefile.in: Likewise.
11021         * testsuite/Makefile.in: Likewise.
11023 2017-11-15  Tom de Vries  <tom@codesourcery.com>
11025         * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-1.c: New test, copied
11026         from asyncwait-1.f90.  Rewrite into C.  Rewrite from float to int.
11027         * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-2.c: New test, copied
11028         from asyncwait-2.f90.  Rewrite into C.  Rewrite from float to int.
11029         * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-3.c: New test, copied
11030         from asyncwait-3.f90.  Rewrite into C.  Rewrite from float to int.
11032 2017-11-14  Tom de Vries  <tom@codesourcery.com>
11034         * testsuite/libgomp.oacc-c-c++-common/asyncwait-1.c: Allow to run for
11035         non-nvidia devices.
11037 2017-11-07  Jakub Jelinek  <jakub@redhat.com>
11039         PR c++/82835
11040         * testsuite/libgomp.c++/pr82835.C: New test.
11042 2017-11-06  Martin Liska  <mliska@suse.cz>
11044         * testsuite/libgomp.c++/loop-2.C: Return a value
11045         for functions with non-void return type, or change type to void,
11046         or add -Wno-return-type for test.
11047         * testsuite/libgomp.c++/loop-4.C: Likewise.
11048         * testsuite/libgomp.c++/parallel-1.C: Likewise.
11049         * testsuite/libgomp.c++/shared-1.C: Likewise.
11050         * testsuite/libgomp.c++/single-1.C: Likewise.
11051         * testsuite/libgomp.c++/single-2.C: Likewise.
11053 2017-10-31  Tom de Vries  <tom@codesourcery.com>
11055         * plugin/plugin-hsa.c (HSA_LOG): Remove semicolon after
11056         "do {} while (false)".
11057         (init_single_kernel, GOMP_OFFLOAD_async_run): Add missing semicolon
11058         after HSA_DEBUG call.
11060 2017-10-28  Jakub Jelinek  <jakub@redhat.com>
11062         * target.c (struct gomp_coalesce_buf): New type.
11063         (MAX_COALESCE_BUF_SIZE, MAX_COALESCE_BUF_GAP): Define.
11064         (gomp_coalesce_buf_add, gomp_to_device_kind_p): New functions.
11065         (gomp_copy_host2dev): Add CBUF argument, if copying into
11066         the cached ranges, memcpy into buffer instead of copying
11067         into device.
11068         (gomp_map_vars_existing, gomp_map_pointer, gomp_map_fields_existing):
11069         Add CBUF argument, pass it through to other calls.
11070         (gomp_map_vars): Aggregate copies from host to device if small enough
11071         and with small enough gaps in between into memcpy into a buffer and
11072         fewer host to device copies from the buffer.
11073         (gomp_update): Adjust gomp_copy_host2dev caller.
11075 2017-10-17  Thomas Schwinge  <thomas@codesourcery.com>
11077         * testsuite/libgomp.oacc-fortran/declare-1.f90: Restore "dg-do
11078         run" directive.
11079         * testsuite/libgomp.oacc-fortran/declare-2.f90: Likewise.
11080         * testsuite/libgomp.oacc-fortran/declare-3.f90: Likewise.
11081         * testsuite/libgomp.oacc-fortran/declare-4.f90: Likewise.
11082         * testsuite/libgomp.oacc-fortran/declare-5.f90: Likewise.
11084 2017-10-16  Tom de Vries  <tom@codesourcery.com>
11086         * testsuite/libgomp.oacc-c-c++-common/declare-1.c: Don't require
11087         openacc_nvidia_accel_selected.
11088         * testsuite/libgomp.oacc-c-c++-common/declare-2.c: Same.
11089         * testsuite/libgomp.oacc-c-c++-common/declare-4.c: Same.
11090         * testsuite/libgomp.oacc-fortran/declare-2.f90: Same.
11091         * testsuite/libgomp.oacc-fortran/declare-4.f90: Same
11092         * testsuite/libgomp.oacc-fortran/declare-5.f90: Same.
11093         * testsuite/libgomp.oacc-c-c++-common/declare-5.c: Don't require
11094         openacc_nvidia_accel_selected. Skip for shared memory device.
11095         * testsuite/libgomp.oacc-fortran/declare-1.f90: Same.
11096         * testsuite/libgomp.oacc-fortran/declare-3.f90: Same.
11098 2017-10-09  Martin Jambor  <mjambor@suse.cz>
11100         PR hsa/82416
11101         * testsuite/libgomp.hsa.c/pr82416.c: New test.
11103 2017-10-07  Tom de Vries  <tom@codesourcery.com>
11105         * testsuite/libgomp.oacc-fortran/firstprivate-1.f90 (firstprivate):
11106         Remove acc_device_nvidia references.
11107         * testsuite/libgomp.oacc-fortran/parallel-reduction.f90 (reduction):
11108         Same.
11110 2017-10-05  Tom de Vries  <tom@codesourcery.com>
11112         * testsuite/libgomp.oacc-c-c++-common/loop-red-g-1.c (main): Remove
11113         vector_length(32) clause from acc parallel directive.
11114         * testsuite/libgomp.oacc-c-c++-common/routine-g-1.c (main): Same.
11116 2017-10-04  Tom de Vries  <tom@codesourcery.com>
11118         * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-3.c
11119         (main): Reduce sum of arr elements.  Assert that hres is exactly
11120         representable in 32-bit floating point.
11121         * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-4.c
11122         (main): Reduce sum of arr elements.  Assert that hres and hmres are
11123         exactly representable in 32-bit floating point.
11124         * testsuite/libgomp.oacc-c-c++-common/reduction-7.c (gwv_np_4): Same.
11126 2017-09-28  Tom de Vries  <tom@codesourcery.com>
11128         * testsuite/libgomp.c++/for-12.C: Remove superfluous -fopenmp option
11129         setting.
11130         * testsuite/libgomp.c++/pr69393.C: Same.
11131         * testsuite/libgomp.c++/taskloop-1.C: Same.
11132         * testsuite/libgomp.c++/taskloop-3.C: Same.
11133         * testsuite/libgomp.c++/taskloop-4.C: Same.
11134         * testsuite/libgomp.c/for-4.c: Same.
11135         * testsuite/libgomp.c/pr66199-3.c: Same.
11136         * testsuite/libgomp.c/pr66199-4.c: Same.
11137         * testsuite/libgomp.c/pr66199-6.c: Same.
11138         * testsuite/libgomp.c/taskloop-1.c: Same.
11139         * testsuite/libgomp.c/taskloop-3.c: Same.
11140         * testsuite/libgomp.c/taskloop-4.c: Same.
11141         * testsuite/libgomp.fortran/aligned1.f03: Same.
11142         * testsuite/libgomp.fortran/condinc1.f: Same.
11143         * testsuite/libgomp.fortran/condinc3.f90: Same.
11144         * testsuite/libgomp.fortran/crayptr1.f90: Same.
11145         * testsuite/libgomp.fortran/crayptr2.f90: Same.
11146         * testsuite/libgomp.fortran/crayptr3.f90: Same.
11147         * testsuite/libgomp.fortran/omp_cond1.f: Same.
11148         * testsuite/libgomp.fortran/omp_cond3.F90: Same.
11149         * testsuite/libgomp.fortran/pr66199-1.f90: Same.
11150         * testsuite/libgomp.fortran/pr66199-2.f90: Same.
11151         * testsuite/libgomp.fortran/recursion1.f90: Same.
11152         * testsuite/libgomp.fortran/target2.f90: Same.
11153         * testsuite/libgomp.fortran/target5.f90: Same.
11154         * testsuite/libgomp.fortran/task3.f90: Same.
11156 2017-09-28  Tom de Vries  <tom@codesourcery.com>
11158         * testsuite/libgomp.oacc-c-c++-common/loop-g-1.c (main): Remove
11159         vector_length(32) clause from acc parallel directive.
11160         * testsuite/libgomp.oacc-c-c++-common/loop-g-2.c (main): Same.
11162 2017-09-27  Tom de Vries  <tom@codesourcery.com>
11164         * testsuite/libgomp.oacc-c-c++-common/parallel-reduction.c (main):
11165         Remove acc_device_nvidia references.
11167 2017-09-16  Tom de Vries  <tom@codesourcery.com>
11169         PR c/81875
11170         * testsuite/libgomp.c-c++-common/pr81875.c: New test.
11172 2017-09-14  Tom de Vries  <tom@codesourcery.com>
11174         * testsuite/libgomp.c++/cancel-taskgroup-1.C: Remove.
11175         * testsuite/libgomp.c/cancel-taskgroup-1.c: Move to ...
11176         * testsuite/libgomp.c-c++-common/cancel-taskgroup-1.c: ... here.
11177         * testsuite/libgomp.c/c.exp: Include test-cases from
11178         libgomp.c-c++-common.
11179         * testsuite/libgomp.c++/c++.exp: Same.  Force c++-mode compilation of .c
11180         files.
11182 2017-09-14  Jakub Jelinek  <jakub@redhat.com>
11184         PR c++/81314
11185         * testsuite/libgomp.c++/pr81314.C: New test.
11187 2017-09-03  Gerald Pfeifer  <gerald@pfeifer.com>
11189         * libgomp.texi (Top): www.openacc.org now uses https.
11190         (Enabling OpenACC): Ditto.
11191         (acc_get_num_devices): Ditto.
11192         (acc_set_device_type): Ditto.
11193         (acc_get_device_type): Ditto.
11194         (acc_set_device_num): Ditto.
11195         (acc_get_device_num): Ditto.
11196         (acc_async_test): Ditto.
11197         (acc_async_test_all): Ditto.
11198         (acc_wait): Ditto.
11199         (acc_wait_all): Ditto.
11200         (acc_wait_all_async): Ditto.
11201         (acc_wait_async): Ditto.
11202         (acc_init): Ditto.
11203         (acc_shutdown): Ditto.
11204         (acc_on_device): Ditto.
11205         (acc_malloc): Ditto.
11206         (acc_free): Ditto.
11207         (acc_copyin): Ditto.
11208         (acc_present_or_copyin): Ditto.
11209         (acc_create): Ditto.
11210         (acc_present_or_create): Ditto.
11211         (acc_copyout): Ditto.
11212         (acc_delete): Ditto.
11213         (acc_update_device): Ditto.
11214         (acc_update_self): Ditto.
11215         (acc_map_data): Ditto.
11216         (acc_unmap_data): Ditto.
11217         (acc_deviceptr): Ditto.
11218         (acc_hostptr): Ditto.
11219         (acc_is_present): Ditto.
11220         (acc_memcpy_to_device): Ditto.
11221         (acc_memcpy_from_device): Ditto.
11222         (acc_get_current_cuda_device): Ditto.
11223         (acc_get_current_cuda_context): Ditto.
11224         (acc_get_cuda_stream): Ditto.
11225         (acc_set_cuda_stream): Ditto.
11226         (ACC_DEVICE_TYPE): Ditto.
11227         (ACC_DEVICE_NUM): Ditto.
11228         (OpenACC Library Interoperability): Ditto.
11230 2017-08-09  Jakub Jelinek  <jakub@redhat.com>
11232         PR c/81687
11233         * testsuite/libgomp.c/pr81687-1.c: New test.
11234         * testsuite/libgomp.c/pr81687-2.c: New test.
11236 2017-08-07  Jakub Jelinek  <jakub@redhat.com>
11238         PR c/69389
11239         * testsuite/libgomp.c/pr69389.c: New test.
11240         * testsuite/libgomp.c++/pr69389.C: New test.
11242 2017-08-07  Tom de Vries  <tom@codesourcery.com>
11244         PR middle-end/78266
11245         * testsuite/libgomp.oacc-c-c++-common/vprop-2.c: New test.
11246         * testsuite/libgomp.oacc-c-c++-common/vprop.c: Remove xfail.
11248 2017-07-27  Jakub Jelinek  <jakub@redhat.com>
11250         PR c/45784
11251         * testsuite/libgomp.c/pr45784.c: New test.
11252         * testsuite/libgomp.c++/pr45784.C: New test.
11254 2017-07-19  Tom de Vries  <tom@codesourcery.com>
11256         * testsuite/libgomp.oacc-c/vec.c: New test.
11258 2017-07-03  Tom de Vries  <tom@codesourcery.com>
11260         * plugin/plugin-hsa.c: Fix secure_getenv.h include.
11262 2017-06-27  Tom de Vries  <tom@codesourcery.com>
11264         * plugin/plugin-nvptx.c (notify_var): New function.
11265         (nvptx_exec): Use notify_var for GOMP_OPENACC_DIM.
11267 2017-06-27  Tom de Vries  <tom@codesourcery.com>
11269         * env.c (parse_unsigned_long_1): Factor out of ...
11270         (parse_unsigned_long): ... here.
11271         (parse_int_1): Factor out of ...
11272         (parse_int): ... here.
11273         (parse_int_secure): New function.
11274         (initialize_env): Use parse_int_secure for GOMP_DEBUG.
11275         * secure_getenv.h: Factor out of ...
11276         * plugin/plugin-hsa.c: ... here.
11277         * testsuite/libgomp.oacc-c-c++-common/gomp-debug-env.c: New test.
11279 2017-06-21  Jakub Jelinek  <jakub@redhat.com>
11281         PR c++/81130
11282         * testsuite/libgomp.c++/pr81130.C: New test.
11284 2017-06-17  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11286         * testsuite/libgomp.fortran/strassen.f90: Remove dg-skip-if
11287         default args.
11288         * testsuite/libgomp.oacc-c-c++-common/vprop.c: Remove
11289         dg-xfail-run-if default args.
11291 2017-06-02  Bernd Edlinger  <bernd.edlinger@hotmail.de>
11293         * testsuite/libgomp.c/pr39591-2.c: Fix test case.
11294         * testsuite/libgomp.c/pr39591-3.c: Likewise.
11296 2017-05-30  Jakub Jelinek  <jakub@redhat.com>
11298         PR libgomp/80822
11299         * config/linux/affinity.c (gomp_affinity_init_level_1): New function.
11300         (gomp_affinity_init_level): Use it.  Always analyze the core and thread
11301         sibling lists, depending on level just pick up what CPUs to put
11302         together into a place vs. whether add multiple ordered places.
11304 2017-05-24  Thomas Schwinge  <thomas@codesourcery.com>
11306         * openacc.h (acc_async_wait, acc_async_wait_all): New prototypes.
11307         * libgomp.map (OACC_2.0.1): Add these.
11308         * oacc-async.c (acc_async_wait, acc_async_wait_all): New aliases
11309         for "acc_wait", and "acc_wait_all", respectively.
11310         * openacc.f90 (acc_async_wait, acc_async_wait_all): New interfaces
11311         for "acc_wait", and "acc_wait_all", respectively.
11312         * openacc_lib.h (acc_async_wait, acc_async_wait_all): Likewise.
11313         * libgomp.texi (acc_wait, acc_wait_all): Update.
11314         * testsuite/libgomp.oacc-c-c++-common/par-reduction-2.c: Update.
11315         * testsuite/libgomp.oacc-fortran/par-reduction-2-1.f: New file.
11316         * testsuite/libgomp.oacc-fortran/par-reduction-2-2.f: Likewise.
11318         * openacc_lib.h (acc_pcopyin, acc_pcreate): Route to
11319         acc_present_or_copyin and acc_present_or_create procedures,
11320         respectively.
11321         * testsuite/libgomp.oacc-fortran/lib-32-1.f: Exercise these, and
11322         generally different variants of OpenACC Runtime Library functions.
11323         * testsuite/libgomp.oacc-fortran/lib-32-2.f: Likewise.
11325         * testsuite/libgomp.oacc-fortran/lib-32-1.f: New file.
11326         * testsuite/libgomp.oacc-fortran/lib-32-2.f: Likewise.
11328         * openacc.h (acc_pcopyin, acc_pcreate): Provide prototypes instead
11329         of preprocessor definitions.
11330         * libgomp.h (strong_alias): Guard by "#ifdef
11331         HAVE_ATTRIBUTE_ALIAS".
11332         * oacc-mem.c: Provide "acc_pcreate" as alias for
11333         "acc_present_or_create", and "acc_pcopyin" as alias for
11334         "acc_present_or_copyin".
11335         * libgomp.map: New version "OACC_2.0.1".
11336         (OACC_2.0.1): Add "acc_pcopyin", and "acc_pcreate".
11337         * testsuite/libgomp.oacc-c-c++-common/lib-38.c: Remove, merging
11338         its content into...
11339         * testsuite/libgomp.oacc-c-c++-common/lib-32.c: ... this file.
11340         Extend testing.
11342         * plugin/plugin-nvptx.c (nvptx_get_num_devices): Debugging output
11343         when disabling nvptx offloading.
11345 2017-05-23  Thomas Schwinge  <thomas@codesourcery.com>
11347         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-2.c: Update.
11348         * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Likewise.
11349         * testsuite/libgomp.oacc-fortran/kernels-loop-2.f95: Likewise.
11351         * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Rewrite.
11352         * testsuite/lib/libgomp.exp
11353         (check_effective_target_openacc_nvidia_accel_configured): New
11354         proc.
11355         * testsuite/libgomp.oacc-c++/c++.exp (check_effective_target_c)
11356         (check_effective_target_c++): New procs.
11357         * testsuite/libgomp.oacc-c/c.exp (check_effective_target_c)
11358         (check_effective_target_c++): Likewise.
11360 2017-05-22  Jakub Jelinek  <jakub@redhat.com>
11362         PR middle-end/80809
11363         * testsuite/libgomp.c/pr80809-2.c: New test.
11364         * testsuite/libgomp.c/pr80809-3.c: New test.
11366         PR middle-end/80809
11367         * testsuite/libgomp.c/pr80809-1.c: New test.
11369         PR middle-end/80853
11370         * testsuite/libgomp.c/pr80853.c: New test.
11372 2017-05-19  Thomas Schwinge  <thomas@codesourcery.com>
11374         * testsuite/libgomp.oacc-c++/template-reduction.C: Update.
11375         * testsuite/libgomp.oacc-c-c++-common/nested-2.c: Update.
11376         * testsuite/libgomp.oacc-fortran/data-4-2.f90: Likewise.
11377         * testsuite/libgomp.oacc-fortran/default-1.f90: Likewise.
11378         * testsuite/libgomp.oacc-fortran/non-scalar-data.f90: Likewise.
11380         * plugin/plugin-hsa.c (DLSYM_FN, init_hsa_runtime_functions):
11381         Debug output for failure.
11383 2017-05-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11385         * testsuite/lib/libgomp.exp: Load scanlang.exp.
11387 2017-04-27  Jakub Jelinek  <jakub@redhat.com>
11389         PR bootstrap/80531
11390         * configure.tgt (*-*-aix*): Add -frandom-seed=$@ to XCFLAGS to avoid
11391         bootstrap compare failures.
11393 2017-04-20  Alexander Monakov  <amonakov@ispras.ru>
11395         * testsuite/libgomp.c/target-36.c: New testcase.
11397 2017-04-13  Jakub Jelinek  <jakub@redhat.com>
11399         * plugin/plugin-nvptx.c (cuda_lib_inited): Use signed char type
11400         instead of char.
11402 2017-04-11  Jakub Jelinek  <jakub@redhat.com>
11404         PR libgomp/80394
11405         * testsuite/libgomp.c/pr80394.c: New test.
11407 2017-04-04  Jakub Jelinek  <jakub@redhat.com>
11409         PR libgomp/79876
11410         * config/posix/thread-stacksize.h: New file.
11411         * config/darwin/thread-stacksize.h: New file.
11412         * config/nvptx/thread-stacksize.h: New file.
11413         * env.c: Include thread-stacksize.h.
11414         (initialize_env): Initialize stacksize to GOMP_DEFAULT_STACKSIZE
11415         instead of 0.  Call pthread_attr_setstacksize even if
11416         GOMP_DEFAULT_STACKSIZE is non-zero.
11418 2017-03-30  Jakub Jelinek  <jakub@redhat.com>
11420         * env.c (initialize_env): Initialize stacksize to 0.
11422 2017-03-22  Cesar Philippidis  <cesar@codesourcery.com>
11424         PR c++/80029
11425         * testsuite/libgomp.oacc-c-c++-common/declare-vla.c: New test.
11427 2017-03-08  Jakub Jelinek  <jakub@redhat.com>
11429         PR c/79940
11430         * testsuite/libgomp.c/pr79940.c: New test.
11432 2017-02-15  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11434         * testsuite/libgomp.c/pr48591.c: Enable on all __float128
11435         targets.
11436         Add __float128 options.
11438 2017-02-11  John David Anglin  <danglin@gcc.gnu.org>
11440         * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: Remove
11441         hppa*-*-* dg-skip-if directive.
11443 2017-02-09  Jakub Jelinek  <jakub@redhat.com>
11445         * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: Move
11446         dg-skip-if directive into a comment.
11448 2017-02-09  Nathan Sidwell  <nathan@codesourcery.com>
11449             Chung-Lin Tang  <cltang@codesourcery.com>
11451         * testsuite/libgomp.oacc-c-c++-common/tile-1.c: New.
11452         * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Adjust and
11453         add additional case.
11454         * testsuite/libgomp.oacc-c-c++-common/vprop.c: XFAIL under
11455         "openacc_nvidia_accel_selected".
11456         * libgomp.oacc-fortran/nested-function-1.f90 (test2):
11457         Add num_workers(8) clause.
11459 2017-02-08  John David Anglin  <danglin@gcc.gnu.org>
11461         * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: Skip on
11462         hppa*-*-*.
11463         * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-dbl.c: Don't
11464         include complex.h on hppa*-*-hpux*.
11465         * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-flt.c: Likewise.
11467 2017-02-02  Thomas Schwinge  <thomas@codesourcery.com>
11469         * plugin/plugin-nvptx.c (nvptx_exec): Make it static.
11471         * libgomp-plugin.h (GOMP_OFFLOAD_openacc_parallel): Rename to
11472         GOMP_OFFLOAD_openacc_exec.  Adjust all users.
11473         (GOMP_OFFLOAD_openacc_get_current_cuda_device): Rename to
11474         GOMP_OFFLOAD_openacc_cuda_get_current_device.  Adjust all users.
11475         (GOMP_OFFLOAD_openacc_get_current_cuda_context): Rename to
11476         GOMP_OFFLOAD_openacc_cuda_get_current_context.  Adjust all users.
11477         (GOMP_OFFLOAD_openacc_get_cuda_stream): Rename to
11478         GOMP_OFFLOAD_openacc_cuda_get_stream.  Adjust all users.
11479         (GOMP_OFFLOAD_openacc_set_cuda_stream): Rename to
11480         GOMP_OFFLOAD_openacc_cuda_set_stream.  Adjust all users.
11482 2017-01-31  Thomas Schwinge  <thomas@codesourcery.com>
11484         * libgomp-plugin.h: #include <stdbool.h>.
11485         (GOMP_OFFLOAD_get_name, GOMP_OFFLOAD_get_caps)
11486         (GOMP_OFFLOAD_get_type, GOMP_OFFLOAD_get_num_devices)
11487         (GOMP_OFFLOAD_init_device, GOMP_OFFLOAD_fini_device)
11488         (GOMP_OFFLOAD_version, GOMP_OFFLOAD_load_image)
11489         (GOMP_OFFLOAD_unload_image, GOMP_OFFLOAD_alloc, GOMP_OFFLOAD_free)
11490         (GOMP_OFFLOAD_dev2host, GOMP_OFFLOAD_host2dev)
11491         (GOMP_OFFLOAD_dev2dev, GOMP_OFFLOAD_can_run, GOMP_OFFLOAD_run)
11492         (GOMP_OFFLOAD_async_run, GOMP_OFFLOAD_openacc_parallel)
11493         (GOMP_OFFLOAD_openacc_register_async_cleanup)
11494         (GOMP_OFFLOAD_openacc_async_test)
11495         (GOMP_OFFLOAD_openacc_async_test_all)
11496         (GOMP_OFFLOAD_openacc_async_wait)
11497         (GOMP_OFFLOAD_openacc_async_wait_async)
11498         (GOMP_OFFLOAD_openacc_async_wait_all)
11499         (GOMP_OFFLOAD_openacc_async_wait_all_async)
11500         (GOMP_OFFLOAD_openacc_async_set_async)
11501         (GOMP_OFFLOAD_openacc_create_thread_data)
11502         (GOMP_OFFLOAD_openacc_destroy_thread_data)
11503         (GOMP_OFFLOAD_openacc_get_current_cuda_device)
11504         (GOMP_OFFLOAD_openacc_get_current_cuda_context)
11505         (GOMP_OFFLOAD_openacc_get_cuda_stream)
11506         (GOMP_OFFLOAD_openacc_set_cuda_stream): New prototypes.
11507         * libgomp.h (struct acc_dispatch_t, struct gomp_device_descr): Use
11508         these.
11509         * plugin/plugin-hsa.c (GOMP_OFFLOAD_load_image)
11510         (GOMP_OFFLOAD_unload_image): Fix argument types.
11512 2017-01-26  Jakub Jelinek  <jakub@redhat.com>
11514         * testsuite/lib/libgomp.exp
11515         (check_effective_target_hsa_offloading_selected_nocache): Fix up
11516         check_compile invocation.  Fix up removal of executable.  Drop
11517         bogus "2>&1" argument.
11519         * testsuite/libgomp.fortran/declare-simd-4.f90: Add cleanup-modules
11520         directive.
11522 2017-01-24  Pekka Jääskeläinen  <pekka@parmance.com>
11523             Martin Jambor  <mjambor@suse.cz>
11525         * plugin/hsa.h: Moved to top level include.
11526         * plugin/plugin-hsa.c: Chanfgd include of hsa.h accordingly.
11528 2017-01-21  Jakub Jelinek  <jakub@redhat.com>
11530         PR other/79046
11531         * testsuite/Makefile.am (gcc_version): Use @get_gcc_base_ver@ instead
11532         of cat to get version from BASE-VER file.
11533         * testsuite/Makefile.in: Regenerated.
11535 2017-01-19  Jakub Jelinek  <jakub@redhat.com>
11537         * plugin/cuda/cuda.h (CUdeviceptr): Typedef to unsigned long long even
11538         for _WIN64.
11540 2017-01-17  Jakub Jelinek  <jakub@redhat.com>
11542         * plugin/hsa.h: Add GCC runtime library exception.
11543         * plugin/hsa_ext_finalize.h: Likewise.
11545         * plugin/configfrag.ac: For --without-cuda-driver don't initialize
11546         CUDA_DRIVER_INCLUDE nor CUDA_DRIVER_LIB.  If both
11547         CUDA_DRIVER_INCLUDE and CUDA_DRIVER_LIB are empty and linking small
11548         cuda program fails, define PLUGIN_NVPTX_DYNAMIC to 1 and use
11549         plugin/include/cuda as include dir and -ldl instead of -lcuda as
11550         library to link ptx plugin against.
11551         * plugin/plugin-nvptx.c: Include dlfcn.h if PLUGIN_NVPTX_DYNAMIC.
11552         (CUDA_CALLS): Define.
11553         (cuda_lib, cuda_lib_inited): New variables.
11554         (init_cuda_lib): New function.
11555         (CUDA_CALL_PREFIX): Define.
11556         (CUDA_CALL_ERET, CUDA_CALL_ASSERT): Use CUDA_CALL_PREFIX.
11557         (CUDA_CALL): Use FN instead of (FN).
11558         (CUDA_CALL_NOCHECK): Define.
11559         (cuda_error, fini_streams_for_device, select_stream_for_async,
11560         nvptx_attach_host_thread_to_device, nvptx_open_device, link_ptx,
11561         event_gc, nvptx_exec, nvptx_async_test, nvptx_async_test_all,
11562         nvptx_wait_all, nvptx_set_clocktick, GOMP_OFFLOAD_unload_image,
11563         nvptx_stacks_alloc, nvptx_stacks_free, GOMP_OFFLOAD_run): Use
11564         CUDA_CALL_NOCHECK.
11565         (nvptx_init): Call init_cuda_lib, if it fails, return false.  Use
11566         CUDA_CALL_NOCHECK.
11567         (nvptx_get_num_devices): Call init_cuda_lib, if it fails, return 0.
11568         Use CUDA_CALL_NOCHECK.
11569         * plugin/cuda/cuda.h: New file.
11570         * config.h.in: Regenerated.
11571         * configure: Regenerated.
11573         PR other/79046
11574         * configure.ac: Add GCC_BASE_VER.
11575         * Makefile.am (gcc_version): Use @get_gcc_base_ver@ instead of cat to
11576         get version from BASE-VER file.
11577         * testsuite/Makefile.in: Regenerated.
11578         * configure: Regenerated.
11579         * Makefile.in: Regenerated.
11581 2017-01-09  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
11583         PR libgomp/60670
11584         * Makefile.am: Make fincludedir multilib-aware.
11585         * Makefile.in: Regenerate.
11587 2017-01-01  Jakub Jelinek  <jakub@redhat.com>
11589         Update copyright years.
11591         * libgomp.texi: Bump @copying's copyright year.
11593 2016-12-02  Sebastian Huber  <sebastian.huber@embedded-brains.de>
11595         * libgomp/config/rtems/pool.h (gomp_thread_pool_reservoir): Use
11596         pthread_spinlock_t instead of gomp_mutex_t lock.
11597         (gomp_get_thread_pool): Likewise.
11598         (gomp_release_thread_pool): Likewise.
11599         * libgomp/config/rtems/proc.c (allocate_thread_pool_reservoir):
11600         Likewise.
11602 2016-12-02  Sebastian Huber  <sebastian.huber@embedded-brains.de>
11604         * config/rtems/pool.h (gomp_get_thread_pool): Return proper
11605         thread pool in case nthreads == 1.
11607 2016-11-30  Alexander Monakov  <amonakov@ispras.ru>
11609         * config/nvptx/env.c: Delete.
11610         * icv.c: Move definitions of ICV variables back ...
11611         * env.c: ...here.  Do not compile environment-related functionality if
11612         LIBGOMP_OFFLOADED_ONLY is set.
11614 2016-11-30  Alexander Monakov  <amonakov@ispras.ru>
11616         * configure.ac [nvptx*-*-*] (libgomp_offloaded_only): Set and use it...
11617         (LIBGOMP_OFFLOADED_ONLY): ...here; new define.
11618         * configure: Regenerate.
11619         * config.h.in: Likewise.
11621 2016-11-30  Alexander Monakov  <amonakov@ispras.ru>
11623         * Makefile.in: Regenerate with automake-1.11.6.
11624         * aclocal.m4: Likewise.
11625         * configure: Likewise.
11626         * testsuite/Makefile.in: Likewise.
11628 2016-11-28  Alexander Monakov  <amonakov@ispras.ru>
11630         * config/nvptx/critical.c: Delete to use generic implementation.
11632 2016-11-28  Jonas Hahnfeld  <Hahnfeld@itc.rwth-aachen.de>
11634         * config/linux/affinity.c [!HAVE_PTHREAD_AFFINITY_NP]: Include
11635         ../../affinity.c as fallback.
11636         * config/nvptx/affinity.c: Delete to use fallback implementation.
11638 2016-11-23  Alexander Monakov  <amonakov@ispras.ru>
11639             Jakub Jelinek  <jakub@redhat.com>
11640             Dmitry Melnik  <dm@ispras.ru>
11642         * Makefile.am (libgomp_la_SOURCES): Add atomic.c, icv.c, icv-device.c.
11643         * Makefile.in. Regenerate.
11644         * configure.ac [nvptx*-*-*] (libgomp_use_pthreads): Set and use it...
11645         (LIBGOMP_USE_PTHREADS): ...here; new define.
11646         * configure: Regenerate.
11647         * config.h.in: Likewise.
11648         * config/posix/affinity.c: Move to...
11649         * affinity.c: ...here (new file).  Guard use of Pthreads-specific
11650         interface by LIBGOMP_USE_PTHREADS. 
11651         * critical.c: Split out GOMP_atomic_{start,end} into...
11652         * atomic.c: ...here (new file).
11653         * env.c: Split out ICV definitions into...
11654         * icv.c: ...here (new file) and...
11655         * icv-device.c: ...here. New file.
11656         * config/linux/lock.c (gomp_init_lock_30): Move to generic lock.c.
11657         (gomp_destroy_lock_30): Ditto.
11658         (gomp_set_lock_30): Ditto.
11659         (gomp_unset_lock_30): Ditto.
11660         (gomp_test_lock_30): Ditto.
11661         (gomp_init_nest_lock_30): Ditto.
11662         (gomp_destroy_nest_lock_30): Ditto.
11663         (gomp_set_nest_lock_30): Ditto.
11664         (gomp_unset_nest_lock_30): Ditto.
11665         (gomp_test_nest_lock_30): Ditto.
11666         * lock.c: New.
11667         * config/nvptx/lock.c: New.
11668         * config/nvptx/bar.c: New.
11669         * config/nvptx/bar.h: New.
11670         * config/nvptx/doacross.h: New.
11671         * config/nvptx/error.c: New.
11672         * config/nvptx/icv-device.c: New.
11673         * config/nvptx/mutex.h: New.
11674         * config/nvptx/pool.h: New.
11675         * config/nvptx/proc.c: New.
11676         * config/nvptx/ptrlock.h: New.
11677         * config/nvptx/sem.h: New.
11678         * config/nvptx/simple-bar.h: New.
11679         * config/nvptx/target.c: New.
11680         * config/nvptx/task.c: New.
11681         * config/nvptx/team.c: New.
11682         * config/nvptx/time.c: New.
11683         * config/posix/simple-bar.h: New.
11684         * libgomp.h: Guard pthread.h inclusion.  Include simple-bar.h.
11685         (gomp_num_teams_var): Declare.
11686         (struct gomp_thread_pool): Change threads_dock member to
11687         gomp_simple_barrier_t.
11688         [__nvptx__] (gomp_thread): New implementation.
11689         (gomp_thread_attr): Guard by LIBGOMP_USE_PTHREADS.
11690         (gomp_thread_destructor): Ditto.
11691         (gomp_init_thread_affinity): Ditto.
11692         * team.c: Guard uses of Pthreads-specific interfaces by
11693         LIBGOMP_USE_PTHREADS.  Adjust all uses of threads_dock.
11694         (gomp_free_thread) [__nvptx__]: Do not call 'free'.
11695         * config/nvptx/alloc.c: Delete.
11696         * config/nvptx/barrier.c: Ditto.
11697         * config/nvptx/fortran.c: Ditto.
11698         * config/nvptx/iter.c: Ditto.
11699         * config/nvptx/iter_ull.c: Ditto.
11700         * config/nvptx/loop.c: Ditto.
11701         * config/nvptx/loop_ull.c: Ditto.
11702         * config/nvptx/ordered.c: Ditto.
11703         * config/nvptx/parallel.c: Ditto.
11704         * config/nvptx/priority_queue.c: Ditto.
11705         * config/nvptx/sections.c: Ditto.
11706         * config/nvptx/single.c: Ditto.
11707         * config/nvptx/splay-tree.c: Ditto.
11708         * config/nvptx/work.c: Ditto.
11709         * testsuite/libgomp.fortran/fortran.exp (lang_link_flags): Pass
11710         -foffload=-lgfortran in addition to -lgfortran.
11711         * testsuite/libgomp.oacc-fortran/fortran.exp (lang_link_flags): Ditto.
11712         * plugin/plugin-nvptx.c: Include <limits.h>.
11713         (struct targ_fn_descriptor): Add new fields.
11714         (struct ptx_device): Ditto.  Set them...
11715         (nvptx_open_device): ...here.
11716         (nvptx_adjust_launch_bounds): New.
11717         (nvptx_host2dev): Allow NULL 'nvthd'.
11718         (nvptx_dev2host): Ditto.
11719         (GOMP_OFFLOAD_get_caps): Add GOMP_OFFLOAD_CAP_OPENMP_400.
11720         (link_ptx): Adjust log sizes.
11721         (nvptx_host2dev): Allow NULL 'nvthd'.
11722         (nvptx_dev2host): Ditto.
11723         (nvptx_set_clocktick): New.  Use it...
11724         (GOMP_OFFLOAD_load_image): ...here.  Set new targ_fn_descriptor
11725         fields.
11726         (GOMP_OFFLOAD_dev2dev): New.
11727         (nvptx_adjust_launch_bounds): New.
11728         (nvptx_stacks_size): New.
11729         (nvptx_stacks_alloc): New.
11730         (nvptx_stacks_free): New.
11731         (GOMP_OFFLOAD_run): New.
11732         (GOMP_OFFLOAD_async_run): New (stub).
11734 2016-11-23  Martin Jambor  <mjambor@suse.cz>
11736         * testsuite/libgomp.hsa.c/bits-insns.c: New test.
11737         * testsuite/libgomp.hsa.c/tiling-1.c: Likewise.
11738         * testsuite/libgomp.hsa.c/tiling-2.c: Likewise.
11740 2016-11-23  Martin Liska  <mliska@suse.cz>
11741             Martin Jambor  <mjambor@suse.cz>
11743         * plugin/hsa.h: New file.
11744         * plugin/hsa_ext_finalize.h: New file.
11745         * plugin/configfrag.ac: Remove hsa-kmt-lib test.  Added checks for
11746         header file unistd.h, and functions secure_getenv, __secure_getenv,
11747         getuid, geteuid, getgid and getegid.
11748         * plugin/Makefrag.am (libgomp_plugin_hsa_la_CPPFLAGS): Added
11749         -D_GNU_SOURCE.
11750         * plugin/plugin-hsa.c: Include config.h, inttypes.h and stdbool.h.
11751         Handle various cases of secure_getenv presence, add an implementation
11752         when we can test effective UID and GID.
11753         (struct hsa_runtime_fn_info): New structure.
11754         (hsa_runtime_fn_info hsa_fns): New variable.
11755         (hsa_runtime_lib): Likewise.
11756         (support_cpu_devices): Likewise.
11757         (init_enviroment_variables): Load newly introduced ENV
11758         variables.
11759         (hsa_warn): Call hsa run-time functions via hsa_fns structure.
11760         (hsa_fatal): Likewise.
11761         (DLSYM_FN): New macro.
11762         (init_hsa_runtime_functions): New function.
11763         (suitable_hsa_agent_p): Call hsa run-time functions via hsa_fns
11764         structure.  Depending on environment, also allow CPU devices.
11765         (init_hsa_context): Call hsa run-time functions via hsa_fns structure.
11766         (get_kernarg_memory_region): Likewise.
11767         (GOMP_OFFLOAD_init_device): Likewise.
11768         (destroy_hsa_program): Likewise.
11769         (init_basic_kernel_info): New function.
11770         (GOMP_OFFLOAD_load_image): Use it.
11771         (create_and_finalize_hsa_program): Call hsa run-time functions via
11772         hsa_fns structure.
11773         (create_single_kernel_dispatch): Likewise.
11774         (release_kernel_dispatch): Likewise.
11775         (init_single_kernel): Likewise.
11776         (parse_target_attributes): Allow up multiple HSA grid dimensions.
11777         (get_group_size): New function.
11778         (run_kernel): Likewise.
11779         (GOMP_OFFLOAD_run): Outline most functionality to run_kernel.
11780         (GOMP_OFFLOAD_fini_device): Call hsa run-time functions via hsa_fns
11781         structure.
11782         * testsuite/lib/libgomp.exp: Remove hsa_kmt_lib support.
11783         * testsuite/libgomp-test-support.exp.in: Likewise.
11784         * Makefile.in: Regenerated.
11785         * aclocal.m4: Likewise.
11786         * config.h.in: Likewise.
11787         * configure: Likewise.
11788         * testsuite/Makefile.in: Likewise.
11790 2016-11-15  Martin Jambor  <mjambor@suse.cz>
11791             Alexander Monakov  <amonakov@ispras.ru>
11793         * testsuite/libgomp.fortran/examples-4/device-1.f90 (e_57_1): Add
11794         mapping clauses to target constructs.
11795         * testsuite/libgomp.fortran/examples-4/device-3.f90 (e_57_3): Ditto.
11797 2016-11-15  Matthias Klose  <doko@ubuntu.com>
11799         * configure: Regenerate.
11801 2016-11-10  Jakub Jelinek  <jakub@redhat.com>
11803         * omp_lib.f90.in (openmp_version): Change to 201511 from 201307.
11804         * omp_lib.h.in (openmp_version): Likewise.
11805         * testsuite/libgomp.fortran/openmp_version-1.f: Expect 201511 instead
11806         of 201307.
11807         * testsuite/libgomp.fortran/openmp_version-2.f90: Likewise.
11809         * testsuite/libgomp.fortran/examples-4/declare_target-1.f90
11810         (fib_wrapper): Add map(from: x) clause.
11811         * testsuite/libgomp.fortran/examples-4/declare_target-2.f90
11812         (e_53_2): Likewise.
11813         * testsuite/libgomp.fortran/examples-4/declare_target-4.f90
11814         (accum): Add map(tmp) clause.
11815         * testsuite/libgomp.fortran/examples-4/declare_target-5.f90
11816         (accum): Add map(tofrom: tmp) clause.
11817         * testsuite/libgomp.fortran/examples-4/target_data-3.f90
11818         (gramSchmidt): Likewise.
11819         * testsuite/libgomp.fortran/examples-4/teams-2.f90 (dotprod): Add
11820         map(tofrom: sum) clause.
11821         * testsuite/libgomp.fortran/nestedfn5.f90 (foo): Add twice
11822         map (alloc: a, l) clause.  Add defaultmap(tofrom: scalar) clause.
11823         * testsuite/libgomp.fortran/pr66199-2.f90: Adjust for linear clause
11824         only allowed on the loop iterator.
11825         * testsuite/libgomp.fortran/target4.f90 (foo): Add map(t) clause.
11826         * testsuite/libgomp.fortran/taskloop2.f90: New test.
11827         * testsuite/libgomp.fortran/taskloop4.f90: New test.
11828         * testsuite/libgomp.fortran/doacross1.f90: New test.
11829         * testsuite/libgomp.fortran/doacross3.f90: New test.
11830         * testsuite/libgomp.fortran/taskloop1.f90: New test.
11831         * testsuite/libgomp.fortran/taskloop3.f90: New test.
11832         * testsuite/libgomp.fortran/doacross2.f90: New test.
11833         * testsuite/libgomp.c/doacross-1.c (main): Add missing
11834         #pragma omp atomic read.
11835         * testsuite/libgomp.c/doacross-2.c (main): Likewise.
11836         * testsuite/libgomp.c/doacross-3.c (main): Likewise.
11838 2016-11-02  Cesar Philippidis  <cesar@codesourcery.com>
11839             Nathan Sidwell  <nathan@acm.org>
11841         * plugin/plugin-nvptx.c (nvptx_exec): Interrogate board attributes
11842         to determine default geometry.
11843         * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Set gang
11844         dimension.
11846 2016-11-01  Jakub Jelinek  <jakub@redhat.com>
11848         * hashtab.h: Use standard GPLv3 with runtime exception
11849         boilerplate.
11851 2016-10-27  Aldy Hernandez  <aldyh@redhat.com>
11853         * oacc-init.c (goacc_new_thread): Use sizeof of the appropriate
11854         size when allocating new thread.
11856 2016-09-14  Marek Polacek  <polacek@redhat.com>
11858         * testsuite/libgomp.c++/atomic-3.C: Use -Wno-deprecated.
11860 2016-08-19  Jakub Jelinek  <jakub@redhat.com>
11862         PR fortran/71014
11863         * testsuite/libgomp.fortran/pr71014.f90: New test.
11865 2016-08-18  Chung-Lin Tang  <cltang@codesourcery.com>
11867         PR middle-end/70895
11868         * testsuite/libgomp.oacc-fortran/reduction-7.f90: Add explicit
11869         firstprivate clauses.
11870         * testsuite/libgomp.oacc-fortran/reduction-6.f90: Remove explicit
11871         copy clauses.
11872         * testsuite/libgomp.oacc-c-c++-common/reduction-7.c: Likewise.
11873         * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-flt.c: Likewise.
11874         * testsuite/libgomp.oacc-c-c++-common/reduction-flt.c: Likewise.
11875         * testsuite/libgomp.oacc-c-c++-common/collapse-2.c: Likewise.
11876         * testsuite/libgomp.oacc-c-c++-common/loop-red-wv-1.c: Likewise.
11877         * testsuite/libgomp.oacc-c-c++-common/collapse-4.c: Likewise.
11878         * testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c: Likewise.
11879         * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-dbl.c: Likewise.
11880         * testsuite/libgomp.oacc-c-c++-common/loop-red-g-1.c: Likewise.
11881         * testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c: Likewise.
11882         * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c: Likewise.
11883         * testsuite/libgomp.oacc-c-c++-common/reduction-dbl.c: Likewise.
11885 2016-08-14  Chung-Lin Tang  <cltang@codesourcery.com>
11887         PR fortran/70598
11888         * testsuite/libgomp.oacc-fortran/host_data-1.f90: New test.
11890 2016-08-08  Jakub Jelinek  <jakub@redhat.com>
11892         PR c++/58706
11893         * testsuite/libgomp.c++/pr58706.C: New test.
11895 2016-08-04  Thomas Schwinge  <thomas@codesourcery.com>
11897         * testsuite/libgomp.oacc-c++/routine-1-auto.C: New file.
11898         * testsuite/libgomp.oacc-c++/routine-1-template-auto.C: Likewise.
11899         * testsuite/libgomp.oacc-c++/routine-1-template-trailing-return-type.C:
11900         Likewise.
11901         * testsuite/libgomp.oacc-c++/routine-1-template.C: Likewise.
11902         * testsuite/libgomp.oacc-c++/routine-1-trailing-return-type.C:
11903         Likewise.
11904         * testsuite/libgomp.oacc-c-c++-common/routine-1.c: Adjust.
11906         * testsuite/libgomp.oacc-c-c++-common/crash-1.c: Make it a "link"
11907         test, and don't hardcode -O0.
11909 2016-08-03  Nathan Sidwell  <nathan@codesourcery.com>
11911         * testsuite/libgomp.oacc-c-c++-common/crash-1.c: New.
11913 2016-07-15  Cesar Philippidis  <cesar@codesourcery.com>
11915         * testsuite/libgomp.oacc-c-c++-common/zero_length_subarrays.c: New
11916         test.
11918 2016-07-03  H.J. Lu  <hongjiu.lu@intel.com>
11920         PR middle-end/71734
11921         * testsuite/libgomp.fortran/pr71734-1.f90: New test.
11922         * testsuite/libgomp.fortran/pr71734-2.f90: Likewise.
11924 2016-07-01  Jakub Jelinek  <jakub@redhat.com>
11926         PR fortran/71717
11927         * testsuite/libgomp.fortran/associate3.f90: New test.
11929 2016-06-17  Jakub Jelinek  <jakub@redhat.com>
11931         * testsuite/libgomp.c++/target-21.C: New test.
11933 2016-06-16  Jakub Jelinek  <jakub@redhat.com>
11935         * testsuite/libgomp.c++/target-20.C: New test.
11937 2016-06-10  Thomas Schwinge  <thomas@codesourcery.com>
11938             Cesar Philippidis  <cesar@codesourcery.com>
11940         PR middle-end/71373
11941         * libgomp.oacc-c/nested-function-1.c: New file.
11942         * libgomp.oacc-c/nested-function-2.c: Likewise.
11943         * libgomp.oacc-fortran/nested-function-1.f90: Likewise.
11944         * libgomp.oacc-fortran/nested-function-2.f90: Likewise.
11945         * libgomp.oacc-fortran/nested-function-3.f90: Likewise.
11947 2016-06-10  Thomas Schwinge  <thomas@codesourcery.com>
11949         PR c/71381
11950         * testsuite/libgomp.oacc-c-c++-common/cache-1.c: #include
11951         "../../../gcc/testsuite/c-c++-common/goacc/cache-1.c".
11952         * testsuite/libgomp.oacc-fortran/cache-1.f95: New file.
11954 2016-06-03  Chung-Lin Tang  <cltang@codesourcery.com>
11956         * testsuite/libgomp.oacc-fortran/reduction-8.f90: New testcase.
11957         * testsuite/libgomp.oacc-c-c++-common/reduction-8.c: New testcase.
11959 2016-06-01  Cesar Philippidis  <cesar@codesourcery.com>
11961         PR c/70688
11962         * testsuite/libgomp.oacc-c-c++-common/pr70688.c: New file.
11964 2016-05-26  Jakub Jelinek  <jakub@redhat.com>
11966         * testsuite/libgomp.c/doacross-1.c (main): Use schedule(static)
11967         instead of invalid schedule(static, 0).
11968         * testsuite/libgomp.c/doacross-2.c (main): Likewise.
11970 2016-05-26  Chung-Lin Tang  <cltang@codesourcery.com>
11972         * oacc-plugin.h (GOMP_PLUGIN_async_unmap_vars): Add int parameter.
11973         * oacc-plugin.c (GOMP_PLUGIN_async_unmap_vars): Add 'int async'
11974         parameter, use to set async stream around call to gomp_unmap_vars,
11975         call gomp_unmap_vars() with 'do_copyfrom' set to true.
11976         * plugin/plugin-nvptx.c (struct ptx_event): Add 'int val' field.
11977         (event_gc): Adjust event handling loop, collect PTX_EVT_ASYNC_CLEANUP
11978         events and call GOMP_PLUGIN_async_unmap_vars() for each of them.
11979         (event_add): Add int parameter, initialize 'val' field when
11980         adding new ptx_event struct.
11981         (nvptx_evec): Adjust event_add() call arguments.
11982         (nvptx_host2dev): Likewise.
11983         (nvptx_dev2host): Likewise.
11984         (nvptx_wait_async): Likewise.
11985         (nvptx_wait_all_async): Likewise.
11986         (GOMP_OFFLOAD_openacc_register_async_cleanup): Add async parameter,
11987         pass to event_add() call.
11988         * oacc-host.c (host_openacc_register_async_cleanup): Add 'int async'
11989         parameter.
11990         * oacc-mem.c (gomp_acc_remove_pointer): Adjust async case to
11991         call openacc.register_async_cleanup_func() hook.
11992         * oacc-parallel.c (GOACC_parallel_keyed): Likewise.
11993         * target.c (gomp_copy_from_async): Delete function.
11994         (gomp_map_vars): Remove async_refcount.
11995         (gomp_unmap_vars): Likewise.
11996         (gomp_load_image_to_device): Likewise.
11997         (omp_target_associate_ptr): Likewise.
11998         * libgomp.h (struct splay_tree_key_s): Remove async_refcount.
11999         (acc_dispatch_t.register_async_cleanup_func): Add int parameter.
12000         (gomp_copy_from_async): Remove.
12002 2016-05-26  Chung-Lin Tang  <cltang@codesourcery.com>
12004         * target.c (gomp_device_copy): New function.
12005         (gomp_copy_host2dev): Likewise.
12006         (gomp_copy_dev2host): Likewise.
12007         (gomp_free_device_memory): Likewise.
12008         (gomp_map_vars_existing): Adjust to call gomp_copy_host2dev.
12009         (gomp_map_pointer): Likewise.
12010         (gomp_map_vars): Adjust to call gomp_copy_host2dev, handle
12011         NULL value from alloc_func plugin hook.
12012         (gomp_unmap_tgt): Adjust to call gomp_free_device_memory.
12013         (gomp_copy_from_async): Adjust to call gomp_copy_dev2host.
12014         (gomp_unmap_vars): Likewise.
12015         (gomp_update): Adjust to call gomp_copy_dev2host and
12016         gomp_copy_host2dev functions.
12017         (gomp_unload_image_from_device): Handle false value from
12018         unload_image_func plugin hook.
12019         (gomp_init_device): Handle false value from init_device_func
12020         plugin hook.
12021         (gomp_exit_data): Adjust to call gomp_copy_dev2host.
12022         (omp_target_free): Adjust to call gomp_free_device_memory.
12023         (omp_target_memcpy): Handle return values from host2dev_func,
12024         dev2host_func, and dev2dev_func plugin hooks.
12025         (omp_target_memcpy_rect_worker): Likewise.
12026         (gomp_target_fini): Handle false value from fini_device_func
12027         plugin hook.
12028         * libgomp.h (struct gomp_device_descr): Adjust return type of
12029         init_device_func, fini_device_func, unload_image_func, free_func,
12030         dev2host_func,host2dev_func, and dev2dev_func plugin hooks to 'bool'.
12031         * oacc-init.c (acc_shutdown_1): Handle false value from
12032         fini_device_func plugin hook.
12033         * oacc-host.c (host_init_device): Change return type to bool.
12034         (host_fini_device): Likewise.
12035         (host_unload_image): Likewise.
12036         (host_free): Likewise.
12037         (host_dev2host): Likewise.
12038         (host_host2dev): Likewise.
12039         * oacc-mem.c (acc_free): Handle plugin hook fatal error case.
12040         (acc_memcpy_to_device): Likewise.
12041         (acc_memcpy_from_device): Likewise.
12042         (delete_copyout): Add libfnname parameter, handle free_func
12043         hook fatal error case.
12044         (acc_delete): Adjust delete_copyout call.
12045         (acc_copyout): Likewise.
12046         (update_dev_host): Move gomp_mutex_unlock to after
12047         host2dev/dev2host hook calls.
12049         * plugin/plugin-hsa.c (hsa_warn): Adjust 'hsa_error' local variable
12050         to 'hsa_error_msg', for clarity.
12051         (hsa_fatal): Likewise.
12052         (hsa_error): New function.
12053         (init_hsa_context): Change return type to bool, adjust to return
12054         false on error.
12055         (GOMP_OFFLOAD_get_num_devices): Adjust to handle init_hsa_context
12056         return value.
12057         (GOMP_OFFLOAD_init_device): Change return type to bool, adjust to
12058         return false on error.
12059         (get_agent_info): Adjust to return NULL on error.
12060         (destroy_hsa_program): Change return type to bool, adjust to
12061         return false on error.
12062         (GOMP_OFFLOAD_load_image): Adjust to return -1 on error.
12063         (destroy_module): Change return type to bool, adjust to
12064         return false on error.
12065         (GOMP_OFFLOAD_unload_image): Likewise.
12066         (GOMP_OFFLOAD_fini_device): Likewise.
12067         (GOMP_OFFLOAD_alloc): Change to return NULL when called.
12068         (GOMP_OFFLOAD_free): Change to return false when called.
12069         (GOMP_OFFLOAD_dev2host): Likewise.
12070         (GOMP_OFFLOAD_host2dev): Likewise.
12071         (GOMP_OFFLOAD_dev2dev): Likewise.
12073         * plugin/plugin-nvptx.c (CUDA_CALL_ERET): New convenience macro.
12074         (CUDA_CALL): Likewise.
12075         (CUDA_CALL_ASSERT): Likewise.
12076         (map_init): Change return type to bool, use CUDA_CALL* macros.
12077         (map_fini): Likewise.
12078         (init_streams_for_device): Change return type to bool, adjust
12079         call to map_init.
12080         (fini_streams_for_device): Change return type to bool, adjust
12081         call to map_fini.
12082         (select_stream_for_async): Release stream_lock before calls to
12083         GOMP_PLUGIN_fatal, adjust call to map_init.
12084         (nvptx_init): Use CUDA_CALL* macros.
12085         (nvptx_attach_host_thread_to_device): Change return type to bool,
12086         use CUDA_CALL* macros.
12087         (nvptx_open_device): Use CUDA_CALL* macros.
12088         (nvptx_close_device): Change return type to bool, use CUDA_CALL*
12089         macros.
12090         (nvptx_get_num_devices): Use CUDA_CALL* macros.
12091         (link_ptx): Change return type to bool, use CUDA_CALL* macros.
12092         (nvptx_exec): Use CUDA_CALL* macros.
12093         (nvptx_alloc): Use CUDA_CALL* macros.
12094         (nvptx_free): Change return type to bool, use CUDA_CALL* macros.
12095         (nvptx_host2dev): Likewise.
12096         (nvptx_dev2host): Likewise.
12097         (nvptx_wait): Use CUDA_CALL* macros.
12098         (nvptx_wait_async): Likewise.
12099         (nvptx_wait_all): Likewise.
12100         (nvptx_wait_all_async): Likewise.
12101         (nvptx_set_cuda_stream): Adjust order of stream_lock acquire,
12102         use CUDA_CALL* macros, adjust call to map_fini.
12103         (GOMP_OFFLOAD_init_device): Change return type to bool,
12104         adjust code accordingly.
12105         (GOMP_OFFLOAD_fini_device): Likewise.
12106         (GOMP_OFFLOAD_load_image): Adjust calls to
12107         nvptx_attach_host_thread_to_device/link_ptx to handle errors,
12108         use CUDA_CALL* macros.
12109         (GOMP_OFFLOAD_unload_image): Change return type to bool, adjust
12110         return code.
12111         (GOMP_OFFLOAD_alloc): Adjust calls to code to handle error return.
12112         (GOMP_OFFLOAD_free): Change return type to bool, adjust calls to
12113         handle error return.
12114         (GOMP_OFFLOAD_dev2host): Likewise.
12115         (GOMP_OFFLOAD_host2dev): Likewise.
12116         (GOMP_OFFLOAD_openacc_register_async_cleanup): Use CUDA_CALL* macros.
12117         (GOMP_OFFLOAD_openacc_create_thread_data): Likewise.
12119 2016-05-24  Cesar Philippidis  <cesar@codesourcery.com>
12121         * oacc-mem.c (acc_malloc): Update handling of shared-memory targets.
12122         (acc_free): Likewise.
12123         (acc_memcpy_to_device): Likewise.
12124         (acc_memcpy_from_device): Likewise.
12125         (acc_deviceptr): Likewise.
12126         (acc_hostptr): Likewise.
12127         (acc_is_present): Likewise.
12128         (acc_map_data): Likewise.
12129         (acc_unmap_data): Likewise.
12130         (present_create_copy): Likewise.
12131         (delete_copyout): Likewise.
12132         (update_dev_host): Likewise.
12133         * testsuite/libgomp.oacc-c-c++-common/asyncwait-1.c: Remove xfail.
12134         * testsuite/libgomp.oacc-c-c++-common/data-2-lib.c: New test.
12135         * testsuite/libgomp.oacc-c-c++-common/data-2.c: Adjust test.
12136         * testsuite/libgomp.oacc-c-c++-common/data-3.c: Likewise.
12137         * testsuite/libgomp.oacc-c-c++-common/enter_exit-lib.c: New test.
12138         * testsuite/libgomp.oacc-c-c++-common/lib-13.c: Adjust test so that
12139         it only runs on nvptx targets.
12140         * testsuite/libgomp.oacc-c-c++-common/lib-14.c: Likewise.
12141         * testsuite/libgomp.oacc-c-c++-common/lib-15.c: Likewise.
12142         * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
12143         * testsuite/libgomp.oacc-c-c++-common/lib-17.c: Likewise.
12144         * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
12145         * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
12146         * testsuite/libgomp.oacc-c-c++-common/lib-21.c: Likewise.
12147         * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Likewise.
12148         * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
12149         * testsuite/libgomp.oacc-c-c++-common/lib-24.c: Likewise.
12150         * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
12151         * testsuite/libgomp.oacc-c-c++-common/lib-28.c: Likewise.
12152         * testsuite/libgomp.oacc-c-c++-common/lib-29.c: Likewise.
12153         * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
12154         * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
12155         * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
12156         * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Likewise.
12157         * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
12158         * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Likewise.
12159         * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
12160         * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Likewise.
12161         * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
12162         * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
12164 2016-05-23  Martin Jambor  <mjambor@suse.cz>
12166         * testsuite/libgomp.hsa.c/switch-sbr-2.c: New test.
12168 2016-05-17  Chung-Lin Tang  <cltang@codesourcery.com>
12170         * oacc-init.c (acc_init): Remove !cached_base_dev condition on call
12171         to gomp_init_targets_once.
12172         (acc_set_device_type): Remove !cached_base_dev condition on call to
12173         gomp_init_targets_once, move call to before acc_device_lock acquire,
12174         to avoid deadlock.
12175         (acc_get_device_num): Remove !cached_base_dev condition on call to
12176         gomp_init_targets_once.
12177         (acc_set_device_num): Likewise.
12179 2016-05-16  Martin Jambor  <mjambor@suse.cz>
12181         * testsuite/libgomp.hsa.c/complex-align-2.c: New test.
12183 2016-05-02  Nathan Sidwell  <nathan@codesourcery.com>
12185         * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Adjust
12186         expected partitioning.
12188 2016-04-29  Cesar Philippidis  <cesar@codesourcery.com>
12190         PR middle-end/70626
12191         * testsuite/libgomp.oacc-c++/template-reduction.C: Adjust test.
12192         * testsuite/libgomp.oacc-c-c++-common/combined-reduction.c: New test.
12193         * testsuite/libgomp.oacc-fortran/combined-reduction.f90: New test.
12195 2016-04-21  Alexander Monakov  <amonakov@ispras.ru>
12197         * plugin/plugin-nvptx.c (map_fini): Make cuMemFreeHost error
12198         non-fatal.
12200 2016-04-19  Jakub Jelinek  <jakub@redhat.com>
12202         PR middle-end/70680
12203         * testsuite/libgomp.c/pr70680-1.c: New test.
12204         * testsuite/libgomp.c/pr70680-2.c: New test.
12206 2016-04-14  Cesar Philippidis  <cesar@codesourcery.com>
12208         * testsuite/libgomp.oacc-fortran/non-scalar-data.f90: Don't
12209         pass parameter variables to subroutines.
12211 2016-04-14  Cesar Philippidis  <cesar@codesourcery.com>
12213         PR middle-end/70643
12214         * testsuite/libgomp.oacc-fortran/pr70643.f90: New test.
12216 2016-04-13  Cesar Philippidis  <cesar@codesourcery.com>
12218         PR testsuite/68242
12219         * testsuite/libgomp.oacc-c-c++-common/reduction-1.c: Adjust test.
12220         * testsuite/libgomp.oacc-c-c++-common/reduction-2.c: Likewise.
12222 2016-04-12  Thomas Schwinge  <thomas@codesourcery.com>
12224         * libgomp_g.h: Rename GOACC_parallel_keyd prototype to
12225         GOACC_parallel_keyed, restore GOACC_parallel prototype, new
12226         GOACC_declare prototype.
12228         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gang-np-1.c:
12229         Merge this file, and...
12230         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gv-np-1.c:
12231         ... this file, and...
12232         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gw-np-1.c:
12233         ... this file, and...
12234         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-1.c:
12235         ... this file, and...
12236         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-2.c:
12237         ... this file, and...
12238         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-3.c:
12239         ... this file, and...
12240         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-4.c:
12241         ... this file, and...
12242         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-vector-p-1.c:
12243         ... this file, and...
12244         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-vector-p-2.c:
12245         ... this file, and...
12246         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-worker-p-1.c:
12247         ... this file, and...
12248         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-1.c:
12249         ... this file, and...
12250         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-2.c:
12251         ... this file, and...
12252         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-3.c:
12253         ... this file into...
12254         * testsuite/libgomp.oacc-c-c++-common/reduction-7.c: ... this
12255         file.
12257         * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-2.c:
12258         Make failure observable.
12260 2016-04-12  Jakub Jelinek  <jakub@redhat.com>
12262         * libgomp.h (struct gomp_target_task): Remove firstprivate_copies
12263         field.
12264         * target.c (gomp_target_fallback_firstprivate,
12265         gomp_target_unshare_firstprivate): Removed.
12266         (GOMP_target_ext): Copy firstprivate vars into gomp_allocaed memory
12267         before waiting for dependencies.
12268         (gomp_target_task_fn): Don't copy firstprivate vars here.
12269         * task.c (GOMP_PLUGIN_target_task_completion): Don't free
12270         firstprivate_copies here.
12271         (gomp_create_target_task): Don't initialize firstprivate_copies field.
12272         * testsuite/libgomp.c/target-25.c (main): Use map (to:) instead of
12273         explicit/implicit firstprivate.
12275 2016-04-08  Cesar Philippidis  <cesar@codesourcery.com>
12277         PR lto/70289
12278         PR ipa/70348
12279         PR tree-optimization/70373
12280         PR middle-end/70533
12281         PR middle-end/70534
12282         PR middle-end/70535
12283         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gang-np-1.c: New
12284         test.
12285         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gw-np-1.c: New
12286         test.
12287         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-1.c: New
12288         test.
12289         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-2.c: New
12290         test.
12291         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-3.c: New
12292         test.
12293         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-4.c: New
12294         test.
12295         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-vector-p-1.c: New
12296         test.
12297         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-vector-p-2.c: New
12298         test.
12299         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-worker-p-1.c: New
12300         test.
12301         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-1.c: New test.
12302         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-2.c: New test.
12303         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-3.c: New test.
12304         * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-1.c: New
12305         test.
12306         * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-2.c: New
12307         test.
12308         * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-3.c: New
12309         test.
12310         * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-4.c: New
12311         test.
12312         * testsuite/libgomp.oacc-c-c++-common/par-reduction-1.c: Add test
12313         coverage.
12314         * testsuite/libgomp.oacc-c-c++-common/par-reduction-2.c: Likewise.
12315         * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Likewise.
12316         * testsuite/libgomp.oacc-c-c++-common/parallel-reduction.c: New test.
12317         * testsuite/libgomp.oacc-c-c++-common/pr70289.c: New test.
12318         * testsuite/libgomp.oacc-c-c++-common/pr70373.c: New test.
12319         * testsuite/libgomp.oacc-c-c++-common/reduction-1.c: Add test
12320         coverage.
12321         * testsuite/libgomp.oacc-c-c++-common/reduction-2.c: Likewise.
12322         * testsuite/libgomp.oacc-c-c++-common/reduction-3.c: Likewise.
12323         * testsuite/libgomp.oacc-c-c++-common/reduction-4.c: Likewise.
12324         * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Likewise.
12325         * testsuite/libgomp.oacc-c-c++-common/reduction-6.c: New test.
12326         * testsuite/libgomp.oacc-c-c++-common/reduction.h: New test.
12327         * testsuite/libgomp.oacc-fortran/parallel-reduction.f90: New test.
12328         * testsuite/libgomp.oacc-fortran/pr70289.f90: New test.
12329         * testsuite/libgomp.oacc-fortran/reduction-1.f90: Add test coverage.
12330         * testsuite/libgomp.oacc-fortran/reduction-2.f90: Likewise.
12331         * testsuite/libgomp.oacc-fortran/reduction-3.f90: Likewise.
12332         * testsuite/libgomp.oacc-fortran/reduction-4.f90: Likewise.
12333         * testsuite/libgomp.oacc-fortran/reduction-5.f90: Likewise.
12334         * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
12335         * testsuite/libgomp.oacc-fortran/reduction-7.f90: New test.
12337 2016-03-30  Thomas Schwinge  <thomas@codesourcery.com>
12338             James Norris  <jnorris@codesourcery.com>
12339             Nathan Sidwell  <nathan@codesourcery.com>
12340             Julian Brown  <julian@codesourcery.com>
12341             Cesar Philippidis  <cesar@codesourcery.com>
12342             Chung-Lin Tang  <cltang@codesourcery.com>
12343             Tom de Vries  <tom@codesourcery.com>
12345         * testsuite/libgomp.oacc-c-c++-common/clauses-1.c: Update.
12346         * testsuite/libgomp.oacc-c-c++-common/deviceptr-1.c: Likewise.
12347         * testsuite/libgomp.oacc-c-c++-common/if-1.c: Likewise.
12348         * testsuite/libgomp.oacc-c-c++-common/vector-loop.c: Likewise.
12349         * testsuite/libgomp.oacc-fortran/asyncwait-1.f90: Likewise.
12350         * testsuite/libgomp.oacc-fortran/asyncwait-2.f90: Likewise.
12351         * testsuite/libgomp.oacc-fortran/asyncwait-3.f90: Likewise.
12352         * testsuite/libgomp.oacc-fortran/declare-1.f90: Likewise.
12353         * testsuite/libgomp.oacc-c-c++-common/asyncwait-1.c: Likewise.
12354         XFAIL.
12355         * testsuite/libgomp.oacc-c-c++-common/firstprivate-1.c: Update.
12356         Incorporate...
12357         * testsuite/libgomp.oacc-c-c++-common/firstprivate-2.c: ... this
12358         file.
12359         * testsuite/libgomp.oacc-c++/template-reduction.C: New file.
12360         * testsuite/libgomp.oacc-c-c++-common/gang-static-1.c: Likewise.
12361         * testsuite/libgomp.oacc-c-c++-common/gang-static-2.c: Likewise.
12362         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-clauses.c:
12363         Likewise.
12364         * testsuite/libgomp.oacc-c-c++-common/private-variables.c:
12365         Likewise.
12366         * testsuite/libgomp.oacc-c-c++-common/reduction-7.c: Likewise.
12367         * testsuite/libgomp.oacc-c-c++-common/routine-1.c: Likewise.
12368         * testsuite/libgomp.oacc-c-c++-common/routine-4.c: Likewise.
12369         * testsuite/libgomp.oacc-c-c++-common/routine-wv-2.c: Likewise.
12370         * testsuite/libgomp.oacc-fortran/clauses-1.f90: Likewise.
12371         * testsuite/libgomp.oacc-fortran/default-1.f90: Likewise.
12372         * testsuite/libgomp.oacc-fortran/firstprivate-1.f90: Likewise.
12373         * testsuite/libgomp.oacc-fortran/gang-static-1.f90: Likewise.
12374         * testsuite/libgomp.oacc-fortran/if-1.f90: Likewise.
12375         * testsuite/libgomp.oacc-fortran/implicit-firstprivate-ref.f90:
12376         Likewise.
12377         * testsuite/libgomp.oacc-fortran/pr68813.f90: Likewise.
12378         * testsuite/libgomp.oacc-fortran/private-variables.f90: Likewise.
12379         * testsuite/libgomp.oacc-c-c++-common/kernels-1.c: Merge this
12380         file...
12381         * testsuite/libgomp.oacc-c-c++-common/parallel-1.c: ..., and this
12382         file into...
12383         * testsuite/libgomp.oacc-c-c++-common/data-clauses.h: ... this new
12384         file.  Update.
12385         * testsuite/libgomp.oacc-c-c++-common/data-clauses-kernels.c: New
12386         file.
12387         * testsuite/libgomp.oacc-c-c++-common/data-clauses-parallel.c:
12388         Likewise.
12389         * testsuite/libgomp.oacc-c-c++-common/kernels-2.c: Rename to...
12390         * testsuite/libgomp.oacc-c-c++-common/data-clauses-kernels-ipa-pta.c:
12391         ... this new file.  Update.
12392         * testsuite/libgomp.oacc-c-c++-common/parallel-2.c: Rename to...
12393         * testsuite/libgomp.oacc-c-c++-common/data-clauses-parallel-ipa-pta.c:
12394         ... this new file.  Update.
12395         * testsuite/libgomp.oacc-c-c++-common/mode-transitions.c: New
12396         file.  Incorporate...
12397         * testsuite/libgomp.oacc-c-c++-common/worker-single-1a.c: ... this
12398         file, and...
12399         * testsuite/libgomp.oacc-c-c++-common/worker-single-4.c: ... this
12400         file, and...
12401         * testsuite/libgomp.oacc-c-c++-common/worker-single-6.c: ... this
12402         file.
12403         * testsuite/libgomp.oacc-c-c++-common/update-1-2.c: Remove file.
12405 2016-03-29  Thomas Schwinge  <thomas@codesourcery.com>
12407         * testsuite/libgomp.oacc-c++/c++.exp [!lang_test_file_found]: Call
12408         set-torture-options.
12410 2016-03-24  Thomas Schwinge  <thomas@codesourcery.com>
12412         * testsuite/libgomp.oacc-c++/c++.exp: Set up torture testing, use
12413         gcc-dg-runtest.
12414         * testsuite/libgomp.oacc-c/c.exp: Likewise.
12415         * testsuite/libgomp.oacc-c-c++-common/acc-on-device-2.c: Specify
12416         -fno-builtin-acc_on_device instead of -O0.
12417         * testsuite/libgomp.oacc-c-c++-common/acc-on-device.c: Skip for
12418         -O0.
12419         * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Likewise.
12420         * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c:
12421         Likewise.
12422         * testsuite/libgomp.oacc-c-c++-common/loop-g-1.c: Likewise.
12423         * testsuite/libgomp.oacc-c-c++-common/loop-g-2.c: Likewise.
12424         * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c: Likewise.
12425         * testsuite/libgomp.oacc-c-c++-common/loop-red-g-1.c: Likewise.
12426         * testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c: Likewise.
12427         * testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c: Likewise.
12428         * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c: Likewise.
12429         * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c: Likewise.
12430         * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c: Likewise.
12431         * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c: Likewise.
12432         * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c: Likewise.
12433         * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c: Likewise.
12434         * testsuite/libgomp.oacc-c-c++-common/routine-g-1.c: Likewise.
12435         * testsuite/libgomp.oacc-c-c++-common/routine-gwv-1.c: Likewise.
12436         * testsuite/libgomp.oacc-c-c++-common/routine-v-1.c: Likewise.
12437         * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c: Likewise.
12438         * testsuite/libgomp.oacc-c-c++-common/routine-wv-1.c: Likewise.
12439         * testsuite/libgomp.oacc-c-c++-common/kernels-alias-ipa-pta-2.c:
12440         Don't specify -O2.
12441         * testsuite/libgomp.oacc-c-c++-common/kernels-alias-ipa-pta-3.c:
12442         Likewise.
12443         * testsuite/libgomp.oacc-c-c++-common/kernels-alias-ipa-pta.c:
12444         Likewise.
12446 2016-03-24  Martin Liska  <mliska@suse.cz>
12448         * plugin/plugin-hsa.c (packet_store_release): New function
12449         that is taken from the HSA runtime manual.
12450         (GOMP_OFFLOAD_run): Use the function.
12452 2016-03-23  Jakub Jelinek  <jakub@redhat.com>
12454         PR c++/70376
12455         * testsuite/libgomp.c++/pr70376.C: New test.
12457 2016-03-23  Tom de Vries  <tom@codesourcery.com>
12459         * testsuite/libgomp.oacc-fortran/reduction-2.f90: Add missing
12460         initialization of lresult and lvresult.
12461         * testsuite/libgomp.oacc-fortran/reduction-3.f90: Same.
12463 2016-03-23  James Norris  <jnorris@codesourcery.com>
12464             Daichi Fukuoka <dc-fukuoka@sgi.com>
12466         PR libgomp/69414
12467         * oacc-mem.c (delete_copyout, update_dev_host): Fix device address.
12468         * testsuite/libgomp.oacc-c-c++-common/update-1.c: Additional tests.
12469         * testsuite/libgomp.oacc-c-c++-common/update-1-2.c: Likewise.
12470         * testsuite/libgomp.oacc-fortran/update-1.f90: New file.
12472 2016-03-23  Martin Liska  <mliska@suse.cz>
12474         PR hsa/70337
12475         * plugin/plugin-hsa.c (GOMP_OFFLOAD_run): Copy shadow
12476         argument just in case a dispatched kernel uses that argument.
12478 2016-03-16  Thomas Schwinge  <thomas@codesourcery.com>
12480         * testsuite/libgomp.oacc-fortran/kernels-loop-2.f95: Adjust to
12481         -ftree-parallelize-loops/-fopenacc changes.
12482         * testsuite/libgomp.oacc-fortran/kernels-loop-data-2.f95:
12483         Likewise.
12484         * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit-2.f95:
12485         Likewise.
12486         * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit.f95:
12487         Likewise.
12488         * testsuite/libgomp.oacc-fortran/kernels-loop-data-update.f95:
12489         Likewise.
12490         * testsuite/libgomp.oacc-fortran/kernels-loop-data.f95: Likewise.
12491         * testsuite/libgomp.oacc-fortran/kernels-loop.f95: Likewise.
12493 2016-03-13  Thomas Schwinge  <thomas@codesourcery.com>
12495         * testsuite/lib/libgomp.exp (libgomp_init): Potentially append to
12496         always_ld_library_path the path to libgcc_s.
12498 2016-03-10  Cesar Philippidis  <cesar@codesourcery.com>
12500         PR testsuite/70009
12501         * testsuite/libgomp.oacc-c-c++-common/vprop.c: Make test data signed.
12503 2016-03-09  Tom de Vries  <tom@codesourcery.com>
12505         * testsuite/libgomp.oacc-fortran/kernels-loop-2.f95: New test.
12506         * testsuite/libgomp.oacc-fortran/kernels-loop-data-2.f95: Same.
12507         * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit-2.f95:
12508         Same.
12509         * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit.f95: Same.
12510         * testsuite/libgomp.oacc-fortran/kernels-loop-data-update.f95: Same.
12511         * testsuite/libgomp.oacc-fortran/kernels-loop-data.f95: Same.
12512         * testsuite/libgomp.oacc-fortran/kernels-loop.f95: Same.
12514 2016-03-07  Martin Jambor  <mjambor@suse.cz>
12516         * testsuite/lib/libgomp.exp
12517         (check_effective_target_hsa_offloading_selected_nocache): New.
12518         (check_effective_target_hsa_offloading_selected): Likewise.
12519         * testsuite/libgomp.hsa.c/c.exp: Likewise.
12520         * testsuite/libgomp.hsa.c/alloca-1.c: Likewise.
12521         * testsuite/libgomp.hsa.c/bitfield-1.c: Likewise.
12522         * testsuite/libgomp.hsa.c/builtins-1.c: Likewise.
12523         * testsuite/libgomp.hsa.c/complex-1.c: Likewise.
12524         * testsuite/libgomp.hsa.c/formal-actual-args-1.c: Likewise.
12525         * testsuite/libgomp.hsa.c/function-call-1.c: Likewise.
12526         * testsuite/libgomp.hsa.c/get-level-1.c: Likewise.
12527         * testsuite/libgomp.hsa.c/gridify-1.c: Likewise.
12528         * testsuite/libgomp.hsa.c/gridify-2.c: Likewise.
12529         * testsuite/libgomp.hsa.c/gridify-3.c: Likewise.
12530         * testsuite/libgomp.hsa.c/gridify-4.c: Likewise.
12531         * testsuite/libgomp.hsa.c/memory-operations-1.c: Likewise.
12532         * testsuite/libgomp.hsa.c/pr69568.c: Likewise.
12533         * testsuite/libgomp.hsa.c/rotate-1.c: Likewise.
12534         * testsuite/libgomp.hsa.c/switch-1.c: Likewise.
12535         * testsuite/libgomp.hsa.c/switch-branch-1.c: Likewise.
12537 2016-03-07  Martin Jambor  <mjambor@suse.cz>
12539         * testsuite/libgomp.c/examples-4/async_target-2.c: Only run on
12540         non-shared memory accelerators.
12541         * testsuite/libgomp.c/examples-4/device-1.c: Likewise.
12542         * testsuite/libgomp.c/examples-4/target-5.c: Likewise.
12543         * testsuite/libgomp.c/examples-4/target_data-6.c: Likewise.
12544         * testsuite/libgomp.c/examples-4/target_data-7.c: Likewise.
12545         * testsuite/libgomp.fortran/examples-4/async_target-2.f90: Likewise.
12546         * testsuite/libgomp.fortran/examples-4/device-1.f90: Likewise.
12547         * testsuite/libgomp.fortran/examples-4/target-5.f90: Likewise.
12548         * testsuite/libgomp.fortran/examples-4/target_data-6.f90: Likewise.
12549         * testsuite/libgomp.fortran/examples-4/target_data-7.f90: Likewise.
12551 2016-03-07  Martin Jambor  <mjambor@suse.cz>
12553         * testsuite/lib/libgomp.exp (libgomp_init): Append -Wno-hsa to
12554         ALWAYS_CFLAGS.
12556 2016-03-02  Jakub Jelinek  <jakub@redhat.com>
12558         PR libgomp/69555
12559         * testsuite/libgomp.c++/pr69555-1.C: New test.
12560         * testsuite/libgomp.c++/pr69555-2.C: New test.
12562 2016-02-26  Keith McDaniel <k.allen.mcdaniel@gmail.com>
12563             Martin Jambor  <mjambor@suse.cz>
12565         * testsuite/lib/libgomp.exp
12566         (check_effective_target_offload_device_shared_as): New proc.
12567         * testsuite/libgomp.c++/declare_target-1.C: New test.
12569 2016-02-25  Ilya Verbin  <ilya.verbin@intel.com>
12571         PR driver/68463
12572         * testsuite/libgomp.oacc-c-c++-common/parallel-dims-2.c: Remove.
12574 2016-02-23  Thomas Schwinge  <thomas@codesourcery.com>
12576         * oacc-parallel.c (GOACC_parallel_keyed): Initialize dims.
12577         * plugin/plugin-nvptx.c (nvptx_exec): Provide default values for
12578         dims.
12579         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-2.c: Adjust to
12580         -ftree-parallelize-loops/-fopenacc changes.
12581         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-3.c: Likewise.
12582         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-2.c:
12583         Likewise.
12584         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-3.c:
12585         Likewise.
12586         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-4.c:
12587         Likewise.
12588         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-5.c:
12589         Likewise.
12590         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-6.c:
12591         Likewise.
12592         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq.c:
12593         Likewise.
12594         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-collapse.c:
12595         Likewise.
12596         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-g.c: Likewise.
12597         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-mod-not-zero.c:
12598         Likewise.
12599         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-n.c: Likewise.
12600         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-nest.c:
12601         Likewise.
12602         * testsuite/libgomp.oacc-c-c++-common/kernels-loop.c: Likewise.
12603         * testsuite/libgomp.oacc-c-c++-common/kernels-reduction.c:
12604         Likewise.
12606 2016-02-22  Cesar Philippidis  <cesar@codesourcery.com>
12608         * testsuite/libgomp.oacc-c-c++-common/vprop.c: New test.
12610 2016-02-19  Jakub Jelinek  <jakub@redhat.com>
12612         PR driver/69805
12613         * testsuite/libgomp.c/pr69805.c: New test.
12615 2016-02-16  Tom de Vries  <tom@codesourcery.com>
12617         PR lto/67709
12618         * testsuite/libgomp.fortran/declare-simd-4.f90: New test.
12620 2016-02-09  Tom de Vries  <tom@codesourcery.com>
12622         PR tree-optimization/69599
12623         * testsuite/libgomp.c/omp-nested-3.c: New test.
12624         * testsuite/libgomp.c/pr46032-2.c: New test.
12625         * testsuite/libgomp.oacc-c-c++-common/kernels-2.c: New test.
12626         * testsuite/libgomp.oacc-c-c++-common/parallel-2.c: New test.
12628 2016-02-09  Tom de Vries  <tom@codesourcery.com>
12630         PR lto/69707
12631         * testsuite/libgomp.oacc-c-c++-common/parallel-dims-2.c: New test.
12633 2016-02-02  Alexander Monakov  <amonakov@ispras.ru>
12635         * testsuite/libgomp.c/target-31.c: Fix testcase.
12637 2016-02-02  Alexander Monakov  <amonakov@ispras.ru>
12639         * testsuite/libgomp.c/examples-4/teams-3.c: Add missing reduction
12640         clause.
12641         * testsuite/libgomp.c/examples-4/teams-4.c: Likewise.
12642         * testsuite/libgomp.fortran/examples-4/teams-3.f90: Add missing
12643         reduction and map clauses.
12644         * testsuite/libgomp.fortran/examples-4/teams-4.f90: Likewise.
12646 2016-02-02  James Norris  <jnorris@codesourcery.com>
12648         * testsuite/libgomp.oacc-c-c++-common/declare-4.c: Fix clause.
12650 2016-02-02  Thomas Schwinge  <thomas@codesourcery.com>
12652         * libgomp.map (GOACC_2.0): Remove GOACC_host_data.
12653         * oacc-parallel.c (GOACC_host_data): Remove function definition.
12655         * testsuite/lib/libgomp.exp: Skip hsa offloading for OpenACC test
12656         cases.
12658         * plugin/configfrag.ac (HSA_KMT_LIB, HSA_KMT_LDFLAGS): New
12659         variables.
12660         * testsuite/libgomp-test-support.exp.in (hsa_runtime_lib)
12661         (hsa_kmt_lib): Set variables.
12662         * testsuite/lib/libgomp.exp (libgomp_init): Use them to amend
12663         always_ld_library_path.
12664         * Makefile.in: Regenerate.
12665         * configure: Likewise.
12666         * testsuite/Makefile.in: Likewise.
12668         * plugin/configfrag.ac (offload_additional_options)
12669         (offload_additional_lib_paths): Don't amend for hsa offloading.
12670         * configure: Regenerate.
12672         * plugin/configfrag.ac: Don't configure for offloading target if
12673         we don't build the corresponding plugin.
12674         * configure: Regenerate.
12676 2016-02-01  Nathan Sidwell  <nathan@codesourcery.com>
12678         * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: New.
12679         * testsuite/libgomp.oacc-fortran/routine-7.f90: Serialize loop.
12681 2016-01-26  Tom de Vries  <tom@codesourcery.com>
12683         PR tree-optimization/69110
12684         * testsuite/libgomp.c/pr69110.c: New test.
12686 2016-01-25  Richard Biener  <rguenther@suse.de>
12688         PR lto/69393
12689         * testsuite/libgomp.c++/pr69393.C: New testcase.
12691 2016-01-22  Ilya Verbin  <ilya.verbin@intel.com>
12693         * target.c (gomp_get_target_fn_addr): Allow host fallback if target
12694         function wasn't mapped to the device with non-shared memory.
12696 2016-01-20  Ilya Verbin  <ilya.verbin@intel.com>
12698         * task.c (gomp_create_target_task): Set firstprivate_copies to NULL.
12700 2016-01-19  Martin Jambor  <mjambor@suse.cz>
12701             Martin Liska  <mliska@suse.cz>
12703         * plugin/Makefrag.am: Add HSA plugin requirements.
12704         * plugin/configfrag.ac (HSA_RUNTIME_INCLUDE): New variable.
12705         (HSA_RUNTIME_LIB): Likewise.
12706         (HSA_RUNTIME_CPPFLAGS): Likewise.
12707         (HSA_RUNTIME_INCLUDE): New substitution.
12708         (HSA_RUNTIME_LIB): Likewise.
12709         (HSA_RUNTIME_LDFLAGS): Likewise.
12710         (hsa-runtime): New configure option.
12711         (hsa-runtime-include): Likewise.
12712         (hsa-runtime-lib): Likewise.
12713         (PLUGIN_HSA): New substitution variable.
12714         Fill HSA_RUNTIME_INCLUDE and HSA_RUNTIME_LIB according to the new
12715         configure options.
12716         (PLUGIN_HSA_CPPFLAGS): Likewise.
12717         (PLUGIN_HSA_LDFLAGS): Likewise.
12718         (PLUGIN_HSA_LIBS): Likewise.
12719         Check that we have access to HSA run-time.
12720         * libgomp-plugin.h (offload_target_type): New element
12721         OFFLOAD_TARGET_TYPE_HSA.
12722         * libgomp.h (gomp_target_task): New fields firstprivate_copies and
12723         args.
12724         (bool gomp_create_target_task): Updated.
12725         (gomp_device_descr): Extra parameter of run_func and async_run_func,
12726         new field can_run_func.
12727         * libgomp_g.h (GOMP_target_ext): Update prototype.
12728         * oacc-host.c (host_run): Added a new parameter args.
12729         * target.c (calculate_firstprivate_requirements): New function.
12730         (copy_firstprivate_data): Likewise.
12731         (gomp_target_fallback_firstprivate): Use them.
12732         (gomp_target_unshare_firstprivate): New function.
12733         (gomp_get_target_fn_addr): Allow returning NULL for shared memory
12734         devices.
12735         (GOMP_target): Do host fallback for all shared memory devices.  Do not
12736         pass any args to plugins.
12737         (GOMP_target_ext): Introduce device-specific argument parameter args.
12738         Allow host fallback if device shares memory.  Do not remap data if
12739         device has shared memory.
12740         (gomp_target_task_fn): Likewise.  Also treat shared memory devices
12741         like host fallback for mappings.
12742         (GOMP_target_data): Treat shared memory devices like host fallback.
12743         (GOMP_target_data_ext): Likewise.
12744         (GOMP_target_update): Likewise.
12745         (GOMP_target_update_ext): Likewise.  Also pass NULL as args to
12746         gomp_create_target_task.
12747         (GOMP_target_enter_exit_data): Likewise.
12748         (omp_target_alloc): Treat shared memory devices like host fallback.
12749         (omp_target_free): Likewise.
12750         (omp_target_is_present): Likewise.
12751         (omp_target_memcpy): Likewise.
12752         (omp_target_memcpy_rect): Likewise.
12753         (omp_target_associate_ptr): Likewise.
12754         (gomp_load_plugin_for_device): Also load can_run.
12755         * task.c (GOMP_PLUGIN_target_task_completion): Free
12756         firstprivate_copies.
12757         (gomp_create_target_task): Accept new argument args and store it to
12758         ttask.
12759         * plugin/plugin-hsa.c: New file.
12761 2016-01-18  Tom de Vries  <tom@codesourcery.com>
12763         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-2.c: New test.
12764         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-3.c: Same.
12765         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-2.c: Same.
12766         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-3.c: Same.
12767         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-4.c: Same.
12768         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-5.c: Same.
12769         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-6.c: Same.
12770         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq.c: Same.
12771         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-collapse.c: Same.
12772         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-2.c: Same.
12773         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-enter-exit-2.c:
12774         Same.
12775         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-enter-exit.c:
12776         Same.
12777         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-update.c: Same.
12778         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data.c: Same.
12779         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-g.c: Same.
12780         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-mod-not-zero.c: Same.
12781         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-n.c: Same.
12782         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-nest.c: Same.
12783         * testsuite/libgomp.oacc-c-c++-common/kernels-loop.c: Same.
12784         * testsuite/libgomp.oacc-c-c++-common/kernels-parallel-loop-data-enter-exit.c:
12785         Same.
12786         * testsuite/libgomp.oacc-c-c++-common/kernels-reduction.c: Same.
12788 2016-01-15  Jakub Jelinek  <jakub@redhat.com>
12790         * task.c (GOMP_PLUGIN_target_task_completion): Add missing return.
12792 2016-01-15  Cesar Philippidis  <cesar@codesourcery.com>
12794         * testsuite/libgomp.oacc-fortran/kernels-data.f90: New test.
12796 2016-01-12  James Norris  <jnorris@codesourcery.com>
12798         * libgomp.texi: Updates for OpenACC.
12800 2016-01-11  Alexander Monakov  <amonakov@ispras.ru>
12802         * plugin/plugin-nvptx.c (link_ptx): Do not set CU_JIT_TARGET.
12804 2016-01-07  H.J. Lu  <hongjiu.lu@intel.com>
12806         PR fortran/66680
12807         * testsuite/libgomp.fortran/pr66680.f90: New test.
12809 2016-01-07  Jakub Jelinek  <jakub@redhat.com>
12811         PR middle-end/68960
12812         * testsuite/libgomp.c/pr68960.c: New test.
12814 2016-01-06  Nathan Sidwell  <nathan@acm.org>
12816         * openacc.h (acc_on_device): Add routine pragma for C++ wrapper.
12817         * testsuite/libgomp.oacc-c-c++-common/acc-on-device-2.c: New.
12819 2016-01-04  Jakub Jelinek  <jakub@redhat.com>
12821         Update copyright years.
12823         * libgomp.texi: Bump @copying's copyright year.
12825 2015-12-31  Nathan Sidwell  <nathan@acm.org>
12827         * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c: Correct
12828         dg-additional-options syntax.
12829         * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c: Likewise.
12830         * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c: Likewise.
12831         * testsuite/libgomp.oacc-c-c++-common/routine-v-1.c: Likewise.
12832         * testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c: Likewise.
12833         * testsuite/libgomp.oacc-c-c++-common/routine-gwv-1.c: Likewise.
12834         * testsuite/libgomp.oacc-c-c++-common/routine-g-1.c: Likewise.
12835         * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c: Likewise.
12836         * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Likewise.
12837         * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c: Likewise.
12838         * testsuite/libgomp.oacc-c-c++-common/routine-wv-1.c: Likewise.
12839         * testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c: Likewise.
12840         * testsuite/libgomp.oacc-c-c++-common/loop-g-1.c: Likewise.
12841         * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c: Likewise.
12842         * testsuite/libgomp.oacc-c-c++-common/loop-red-wv-1.c: Likewise.
12843         * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c: Likewise.
12844         * testsuite/libgomp.oacc-c-c++-common/loop-g-2.c: Likewise.
12845         * testsuite/libgomp.oacc-c-c++-common/loop-red-g-1.c: Likewise.
12846         * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c: Likewise.
12848 2015-12-15  Ilya Verbin  <ilya.verbin@intel.com>
12850         * libgomp.h (REFCOUNT_LINK): Define.
12851         (struct splay_tree_key_s): Add link_key.
12852         * target.c (gomp_map_vars): Treat REFCOUNT_LINK objects as not mapped.
12853         Replace target address of the pointer with target address of newly
12854         mapped object in the splay tree.  Set link pointer on target to the
12855         device address of the mapped object.
12856         (gomp_unmap_vars): Restore target address of the pointer in the splay
12857         tree for REFCOUNT_LINK objects after unmapping.
12858         (gomp_load_image_to_device): Set refcount to REFCOUNT_LINK for "omp
12859         declare target link" objects.
12860         (gomp_unload_image_from_device): Replace j with i.  Force unmap of all
12861         "omp declare target link" objects, which were mapped for the image.
12862         (gomp_exit_data): Restore target address of the pointer in the splay
12863         tree for REFCOUNT_LINK objects after unmapping.
12864         * testsuite/libgomp.c/target-link-1.c: New file.
12866 2015-12-14  Ilya Verbin  <ilya.verbin@intel.com>
12868         * libgomp.h (gomp_device_state): New enum.
12869         (struct gomp_device_descr): Replace is_initialized with state.
12870         (gomp_fini_device): Remove declaration.
12871         * oacc-host.c (host_dispatch): Use state instead of is_initialized.
12872         * oacc-init.c (acc_init_1): Use state instead of is_initialized.
12873         (acc_shutdown_1): Likewise.  Inline gomp_fini_device.
12874         (acc_set_device_type): Use state instead of is_initialized.
12875         (acc_set_device_num): Likewise.
12876         * target.c (resolve_device): Use state instead of is_initialized.
12877         Do not initialize finalized device.
12878         (gomp_map_vars): Do nothing if device is finalized.
12879         (gomp_unmap_vars): Likewise.
12880         (gomp_update): Likewise.
12881         (GOMP_offload_register_ver): Use state instead of is_initialized.
12882         (GOMP_offload_unregister_ver): Likewise.
12883         (gomp_init_device): Likewise.
12884         (gomp_unload_device): Likewise.
12885         (gomp_fini_device): Remove.
12886         (gomp_get_target_fn_addr): Do nothing if device is finalized.
12887         (GOMP_target): Go to host fallback if device is finalized.
12888         (GOMP_target_ext): Likewise.
12889         (gomp_exit_data): Do nothing if device is finalized.
12890         (gomp_target_task_fn): Go to host fallback if device is finalized.
12891         (gomp_target_fini): New static function.
12892         (gomp_target_init): Use state instead of is_initialized.
12893         Call gomp_target_fini at exit.
12895 2015-12-09  Tom de Vries  <tom@codesourcery.com>
12897         PR tree-optimization/68716
12898         * testsuite/libgomp.c/omp-nested-2.c: New test.
12900 2015-12-02  Thomas Schwinge  <thomas@codesourcery.com>
12902         * testsuite/libgomp.oacc-c-c++-common/host_data-2.c: Restrict to
12903         target openacc_nvidia_accel_selected.
12904         * testsuite/libgomp.oacc-c-c++-common/host_data-4.c: Likewise.
12905         * testsuite/libgomp.oacc-c-c++-common/host_data-5.c: Likewise.
12906         * testsuite/libgomp.oacc-c-c++-common/host_data-3.c: Remove file.
12907         * testsuite/libgomp.oacc-c-c++-common/host_data-6.c: Remove file.
12909 2015-12-01  Julian Brown  <julian@codesourcery.com>
12910             James Norris  <James_Norris@mentor.com>
12912         * oacc-parallel.c (GOACC_host_data): New function.
12913         * libgomp.map (GOACC_host_data): Add to GOACC_2.0.1.
12914         * testsuite/libgomp.oacc-c-c++-common/host_data-1.c: New test.
12915         * testsuite/libgomp.oacc-c-c++-common/host_data-2.c: New test.
12916         * testsuite/libgomp.oacc-c-c++-common/host_data-3.c: New test.
12917         * testsuite/libgomp.oacc-c-c++-common/host_data-4.c: New test.
12918         * testsuite/libgomp.oacc-c-c++-common/host_data-5.c: New test.
12919         * testsuite/libgomp.oacc-c-c++-common/host_data-6.c: New test.
12921 2015-11-30  James Norris  <jnorris@codesourcery.com>
12922             Cesar Philippidis  <cesar@codesourcery.com>
12924         libgomp/
12925         * libgomp.oacc-fortran/routine-5.f90: New test.
12926         * libgomp.oacc-fortran/routine-7.f90: New test.
12927         * libgomp.oacc-fortran/routine-9.f90: New test.
12929 2015-11-30  Tom de Vries  <tom@codesourcery.com>
12931         PR tree-optimization/46032
12932         * testsuite/libgomp.c/pr46032.c: New test.
12934 2015-11-27  Jakub Jelinek  <jakub@redhat.com>
12936         PR libgomp/68579
12937         * task.c (gomp_task_run_post_handle_depend_hash): New forward decl.
12938         (gomp_create_target_task): Call it before freeing
12939         GOMP_TARGET_TASK_DATA tasks.
12941         PR c/63326
12942         * testsuite/libgomp.c/cancel-parallel-2.c (foo): Add semicolon
12943         in between case label and OpenMP standalone directives.
12944         * testsuite/libgomp.c++/cancel-parallel-2.C (foo): Likewise.
12946 2015-11-26  David Edelsohn  <dje.gcc@gmail.com>
12948         * configure: Regenerate.
12950 2015-11-26  Jakub Jelinek  <jakub@redhat.com>
12952         * testsuite/libgomp.c/target-35.c: New test.
12954 2015-11-22  James Norris  <jnorris@codesourcery.com>
12955             Cesar Philippidis  <cesar@codesourcery.com>
12957         * testsuite/libgomp.oacc-fortran/declare-1.f90: New test.
12958         * testsuite/libgomp.oacc-fortran/declare-2.f90: Likewise.
12959         * testsuite/libgomp.oacc-fortran/declare-3.f90: Likewise.
12960         * testsuite/libgomp.oacc-fortran/declare-4.f90: Likewise.
12961         * testsuite/libgomp.oacc-fortran/declare-5.f90: Likewise.
12963 2015-11-20  Jakub Jelinek  <jakub@redhat.com>
12965         PR middle-end/68221
12966         * testsuite/libgomp.c/reduction-11.c: Remove xfail.
12967         * testsuite/libgomp.c/reduction-12.c: Likewise.
12968         * testsuite/libgomp.c++/reduction-11.C: Likewise.
12969         * testsuite/libgomp.c++/reduction-12.C: Likewise.
12971 2015-11-19  Nathan Sidwell  <nathan@codesourcery.com>
12973         * libgomp.oacc-c-c++-common/reduction-dbl.c: New.
12974         * libgomp.oacc-c-c++-common/reduction-flt.c: New.
12975         * libgomp.oacc-c-c++-common/reduction-cplx-dbl.c: Use typedef.
12976         * libgomp.oacc-c-c++-common/reduction-cplx-flt.c: Use typedef.
12977         * libgomp.oacc-c-c++-common/reduction-2.c: Uncomment broken tests
12978         and fix.
12979         * libgomp.oacc-c-c++-common/reduction-3.c: Likewise.
12980         * libgomp.oacc-c-c++-common/reduction-4.c: Likewise.
12982 2015-11-18  Nathan Sidwell  <nathan@codesourcery.com>
12984         * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-flt.c: Add
12985         worker & gang cases.
12986         * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-dbl.c: Likewise.
12988 2015-11-17  Cesar Philippidis  <cesar@codesourcery.com>
12990         * config/nvptx/priority_queue.c: New file.
12992 2015-11-14  Jakub Jelinek  <jakub@redhat.com>
12994         * libgomp.texi: Update references from OpenMP 4.0 to OpenMP 4.5
12995         sections.
12997 2015-11-14  Jakub Jelinek  <jakub@redhat.com>
12998             Aldy Hernandez  <aldyh@redhat.com>
12999             Ilya Verbin  <ilya.verbin@intel.com>
13001         * ordered.c (gomp_doacross_init, GOMP_doacross_post,
13002         GOMP_doacross_wait, gomp_doacross_ull_init, GOMP_doacross_ull_post,
13003         GOMP_doacross_ull_wait): For GFS_GUIDED don't divide number of
13004         iterators or IV by chunk size.
13005         * parallel.c (gomp_resolve_num_threads): Don't assume that
13006         if thr->ts.team is non-NULL, then pool must be non-NULL.
13007         * libgomp-plugin.h (GOMP_PLUGIN_target_task_completion): Declare.
13008         * libgomp.map (GOMP_PLUGIN_1.1): New symbol version, export
13009         GOMP_PLUGIN_target_task_completion.
13010         * Makefile.am (libgomp_la_SOURCES): Add priority_queue.c.
13011         * Makefile.in: Regenerate.
13012         * libgomp.h: Shuffle prototypes and forward definitions around so
13013         priority queues can be defined.
13014         (enum gomp_task_kind): Add GOMP_TASK_ASYNC_RUNNING.
13015         (enum gomp_target_task_state): New enum.
13016         (struct gomp_target_task): Add state, tgt, task and team fields.
13017         (gomp_create_target_task): Change return type to bool, add
13018         state argument.
13019         (gomp_target_task_fn): Change return type to bool.
13020         (struct gomp_device_descr): Add async_run_func.
13021         (struct gomp_task): Remove children, next_child, prev_child,
13022         next_queue, prev_queue, next_taskgroup, prev_taskgroup.
13023         Add pnode field.
13024         (struct gomp_taskgroup): Remove children.
13025         Add taskgroup_queue.
13026         (struct gomp_team): Change task_queue type to a priority queue.
13027         (splay_compare): Define inline.
13028         (priority_queue_offset): New.
13029         (priority_node_to_task): New.
13030         (task_to_priority_node): New.
13031         * oacc-mem.c: Do not include splay-tree.h.
13032         * priority_queue.c: New file.
13033         * priority_queue.h: New file.
13034         * splay-tree.c: Do not include splay-tree.h.
13035         (splay_tree_foreach_internal): New.
13036         (splay_tree_foreach): New.
13037         * splay-tree.h: Become re-entrant if splay_tree_prefix is defined.
13038         (splay_tree_callback): Define typedef.
13039         * target.c (splay_compare): Move to libgomp.h.
13040         (GOMP_target): Don't adjust *thr in any way around running offloaded
13041         task.
13042         (GOMP_target_ext): Likewise.  Handle target nowait.
13043         (GOMP_target_update_ext, GOMP_target_enter_exit_data): Check
13044         return value from gomp_create_target_task, if false, fallthrough
13045         as if no dependencies exist.
13046         (gomp_target_task_fn): Change return type to bool, return true
13047         if the task should have another part scheduled later.  Handle
13048         target nowait.
13049         (gomp_load_plugin_for_device): Initialize async_run.
13050         * task.c (gomp_init_task): Initialize children_queue.
13051         (gomp_clear_parent_in_list): New.
13052         (gomp_clear_parent_in_tree): New.
13053         (gomp_clear_parent): Handle priorities.
13054         (GOMP_task): Likewise.
13055         (priority_queue_move_task_first,
13056         gomp_target_task_completion, GOMP_PLUGIN_target_task_completion):
13057         New functions.
13058         (gomp_create_target_task): Use priority queues.  Change return type
13059         to bool, add state argument, return false if for async
13060         {{enter,exit} data,update} constructs no dependencies need to be
13061         waited for, handle target nowait.  Set task->fn to NULL instead of
13062         gomp_target_task_fn.
13063         (verify_children_queue): Remove.
13064         (priority_list_upgrade_task): New.
13065         (priority_queue_upgrade_task): New.
13066         (verify_task_queue): Remove.
13067         (priority_list_downgrade_task): New.
13068         (priority_queue_downgrade_task): New.
13069         (gomp_task_run_pre): Use priority queues.
13070         Abstract code out to priority_queue_downgrade_task.
13071         (gomp_task_run_post_handle_dependers): Use priority queues.
13072         (gomp_task_run_post_remove_parent): Likewise.
13073         (gomp_task_run_post_remove_taskgroup): Likewise.
13074         (gomp_barrier_handle_tasks): Likewise.  Handle target nowait target
13075         tasks specially.
13076         (GOMP_taskwait): Likewise.
13077         (gomp_task_maybe_wait_for_dependencies): Likewise.  Abstract code to
13078         priority-queue_upgrade_task.
13079         (GOMP_taskgroup_start): Use priority queues.
13080         (GOMP_taskgroup_end): Likewise.  Handle target nowait target tasks
13081         specially.  If taskgroup is NULL, and thr->ts.level is 0, act as a
13082         barrier.
13083         * taskloop.c (GOMP_taskloop): Handle priorities.
13084         * team.c (gomp_new_team): Call priority_queue_init.
13085         (free_team): Call priority_queue_free.
13086         (gomp_free_thread): Call gomp_team_end if thr->ts.team is artificial
13087         team created for target nowait in implicit parallel region.
13088         (gomp_team_start): For nested check, test thr->ts.level instead of
13089         thr->ts.team != NULL.
13090         * testsuite/libgomp.c/doacross-3.c: New test.
13091         * testsuite/libgomp.c/ordered-5.c: New test.
13092         * testsuite/libgomp.c/priority.c: New test.
13093         * testsuite/libgomp.c/target-31.c: New test.
13094         * testsuite/libgomp.c/target-32.c: New test.
13095         * testsuite/libgomp.c/target-33.c: New test.
13096         * testsuite/libgomp.c/target-34.c: New test.
13098 2015-11-13  Nathan Sidwell  <nathan@codesourcery.com>
13100         * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: New.
13102         * testsuite/libgomp.oacc-c-c++-common/collapse-2.c: Sequential
13103         loop is sequential.
13105 2015-11-13  Nathan Sidwell  <nathan@codesourcery.com>
13107         * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-dbl.c: New.
13108         * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-flt.c: New.
13110 2015-11-12  James Norris  <jnorris@codesourcery.com>
13111             Joseph Myers  <joseph@codesourcery.com>
13113         * libgomp.map (GOACC_2.0.1): Export GOACC_declare.
13114         * oacc-parallel.c (GOACC_declare): New function.
13115         * testsuite/libgomp.oacc-c-c++-common/declare-1.c: New test.
13116         * testsuite/libgomp.oacc-c-c++-common/declare-2.c: Likewise.
13117         * testsuite/libgomp.oacc-c-c++-common/declare-4.c: Likewise.
13118         * testsuite/libgomp.oacc-c-c++-common/declare-5.c: Likewise.
13119         * testsuite/libgomp.oacc-c++/declare-1.C: Likewise.
13121 2015-11-12  Nathan Sidwell  <nathan@codesourcery.com>
13123         * testsuite/libgomp.oacc-c-c++-common/default-1.c: New.
13125 2015-11-1  Nathan Sidwell  <nathan@codesourcery.com>
13127         * testsuite/libgomp.oacc-c-c++-common/firstprivate-1.c: New.
13128         * testsuite/libgomp.oacc-c-c++-common/firstprivate-2.c: New.
13130 2015-11-09  Nathan Sidwell  <nathan@codesourcery.com>
13132         * testsuite/libgomp.oacc-c-c++-common/firstprivate-1.c: Remove
13133         inadvertent commit.
13135 2015-11-09  Nathan Sidwell  <nathan@codesourcery.com>
13137         * testsuite/libgomp.oacc-c-c++-common/routine-g-1.c: New.
13138         * testsuite/libgomp.oacc-c-c++-common/routine-gwv-1.c: New.
13139         * testsuite/libgomp.oacc-c-c++-common/routine-v-1.c: New.
13140         * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c: New.
13141         * testsuite/libgomp.oacc-c-c++-common/routine-wv-1.c: New.
13143 2015-11-06  Thomas Schwinge  <thomas@codesourcery.com>
13145         * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c: XFAIL.
13146         * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c: Likewise.
13148 2015-11-05  Jakub Jelinek  <jakub@redhat.com>
13149             Ilya Verbin  <ilya.verbin@intel.com>
13151         * libgomp_g.h (GOMP_loop_nonmonotonic_dynamic_next,
13152         GOMP_loop_nonmonotonic_dynamic_start,
13153         GOMP_loop_nonmonotonic_guided_next,
13154         GOMP_loop_nonmonotonic_guided_start,
13155         GOMP_loop_ull_nonmonotonic_dynamic_next,
13156         GOMP_loop_ull_nonmonotonic_dynamic_start,
13157         GOMP_loop_ull_nonmonotonic_guided_next,
13158         GOMP_loop_ull_nonmonotonic_guided_start,
13159         GOMP_parallel_loop_nonmonotonic_dynamic,
13160         GOMP_parallel_loop_nonmonotonic_guided): New prototypes.
13161         (GOMP_target_41): Renamed to ...
13162         (GOMP_target_ext): ... this.  Add num_teams and thread_limit
13163         arguments.
13164         (GOMP_target_data_41): Renamed to ...
13165         (GOMP_target_data_ext): ... this.
13166         (GOMP_target_update_41): Renamed to ...
13167         (GOMP_target_update_ext): ... this.
13168         * libgomp.map (GOMP_4.5): Export GOMP_target_ext,
13169         GOMP_target_data_ext and GOMP_target_update_ext instead of
13170         GOMP_target_41, GOMP_target_data_41 and GOMP_target_update_41.
13171         Export GOMP_loop_nonmonotonic_dynamic_next,
13172         GOMP_loop_nonmonotonic_dynamic_start,
13173         GOMP_loop_nonmonotonic_guided_next,
13174         GOMP_loop_nonmonotonic_guided_start,
13175         GOMP_loop_ull_nonmonotonic_dynamic_next,
13176         GOMP_loop_ull_nonmonotonic_dynamic_start,
13177         GOMP_loop_ull_nonmonotonic_guided_next,
13178         GOMP_loop_ull_nonmonotonic_guided_start,
13179         GOMP_parallel_loop_nonmonotonic_dynamic and
13180         GOMP_parallel_loop_nonmonotonic_guided.
13181         * loop.c (GOMP_parallel_loop_nonmonotonic_dynamic,
13182         GOMP_parallel_loop_nonmonotonic_guided,
13183         GOMP_loop_nonmonotonic_dynamic_start,
13184         GOMP_loop_nonmonotonic_guided_start,
13185         GOMP_loop_nonmonotonic_dynamic_next,
13186         GOMP_loop_nonmonotonic_guided_next): New aliases or functions.
13187         * loop_ull.c (GOMP_loop_ull_nonmonotonic_dynamic_start,
13188         GOMP_loop_ull_nonmonotonic_guided_start,
13189         GOMP_loop_ull_nonmonotonic_dynamic_next,
13190         GOMP_loop_ull_nonmonotonic_guided_next): Likewise.
13191         * target.c (gomp_map_0len_lookup, gomp_map_val): New inline
13192         functions.
13193         (gomp_map_vars): Handle GOMP_MAP_ALWAYS_POINTER.  For
13194         GOMP_MAP_ZERO_LEN_ARRAY_SECTION use gomp_map_0len_lookup.
13195         Use gomp_map_val function.
13196         (gomp_target_fallback_firstprivate): New static function.
13197         (GOMP_target_41): Renamed to ...
13198         (GOMP_target_ext): ... this.  Add num_teams and thread_limit
13199         arguments.  Move firstprivate fallback handling into a new
13200         function.
13201         (GOMP_target_data_41): Renamed to ...
13202         (GOMP_target_data_ext): ... this.
13203         (GOMP_target_update_41): Renamed to ...
13204         (GOMP_target_update_ext): ... this.
13205         (gomp_exit_data): For GOMP_MAP_*ZERO_LEN* use
13206         gomp_map_0len_lookup instead of gomp_map_lookup.
13207         (omp_target_is_present): Use gomp_map_0len_lookup instead of
13208         gomp_map_lookup.
13209         * testsuite/libgomp.c/target-28.c: Likewise.
13210         * testsuite/libgomp.c/monotonic-1.c: New test.
13211         * testsuite/libgomp.c/monotonic-2.c: New test.
13212         * testsuite/libgomp.c/nonmonotonic-1.c: New test.
13213         * testsuite/libgomp.c/nonmonotonic-2.c: New test.
13214         * testsuite/libgomp.c/pr66199-5.c: New test.
13215         * testsuite/libgomp.c/pr66199-6.c: New test.
13216         * testsuite/libgomp.c/pr66199-7.c: New test.
13217         * testsuite/libgomp.c/pr66199-8.c: New test.
13218         * testsuite/libgomp.c/pr66199-9.c: New test.
13219         * testsuite/libgomp.c/reduction-11.c: New test.
13220         * testsuite/libgomp.c/reduction-12.c: New test.
13221         * testsuite/libgomp.c/reduction-13.c: New test.
13222         * testsuite/libgomp.c/reduction-14.c: New test.
13223         * testsuite/libgomp.c/reduction-15.c: New test.
13224         * testsuite/libgomp.c/target-12.c (main): Adjust for
13225         omp_target_is_present change for one-past-last element.
13226         * testsuite/libgomp.c/target-17.c (foo): Drop tests where
13227         the same var is both mapped and privatized.
13228         * testsuite/libgomp.c/target-19.c (foo): Adjust for different
13229         handling of zero-length array sections.
13230         * testsuite/libgomp.c/target-28.c: New test.
13231         * testsuite/libgomp.c/target-29.c: New test.
13232         * testsuite/libgomp.c/target-30.c: New test.
13233         * testsuite/libgomp.c/target-teams-1.c: New test.
13234         * testsuite/libgomp.c++/member-6.C: New test.
13235         * testsuite/libgomp.c++/member-7.C: New test.
13236         * testsuite/libgomp.c++/monotonic-1.C: New test.
13237         * testsuite/libgomp.c++/monotonic-2.C: New test.
13238         * testsuite/libgomp.c++/nonmonotonic-1.C: New test.
13239         * testsuite/libgomp.c++/nonmonotonic-2.C: New test.
13240         * testsuite/libgomp.c++/pr66199-3.C: New test.
13241         * testsuite/libgomp.c++/pr66199-4.C: New test.
13242         * testsuite/libgomp.c++/pr66199-5.C: New test.
13243         * testsuite/libgomp.c++/pr66199-6.C: New test.
13244         * testsuite/libgomp.c++/pr66199-7.C: New test.
13245         * testsuite/libgomp.c++/pr66199-8.C: New test.
13246         * testsuite/libgomp.c++/pr66199-9.C: New test.
13247         * testsuite/libgomp.c++/reduction-11.C: New test.
13248         * testsuite/libgomp.c++/reduction-12.C: New test.
13249         * testsuite/libgomp.c++/target-13.C: New test.
13250         * testsuite/libgomp.c++/target-14.C: New test.
13251         * testsuite/libgomp.c++/target-15.C: New test.
13252         * testsuite/libgomp.c++/target-16.C: New test.
13253         * testsuite/libgomp.c++/target-17.C: New test.
13254         * testsuite/libgomp.c++/target-18.C: New test.
13255         * testsuite/libgomp.c++/target-19.C: New test.
13257 2015-11-04  Nathan Sidwell  <nathan@codesourcery.com>
13259         * testsuite/libgomp.oacc-fortran/reduction-1.f90: Fix dimensions
13260         and reduction copy.
13261         * testsuite/libgomp.oacc-fortran/reduction-2.f90: Likewise.
13262         * testsuite/libgomp.oacc-fortran/reduction-3.f90: Likewise.
13263         * testsuite/libgomp.oacc-fortran/reduction-4.f90: Likewise.
13264         * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
13265         * testsuite/libgomp.oacc-c-c++-common/par-reduction-1.c: Likewise.
13266         * testsuite/libgomp.oacc-c-c++-common/reduction-3.c: Likewise.
13267         * testsuite/libgomp.oacc-c-c++-common/collapse-2.c: Likewise.
13268         * testsuite/libgomp.oacc-c-c++-common/par-reduction-2.c: Likewise.
13269         * testsuite/libgomp.oacc-c-c++-common/reduction-4.c: Likewise.
13270         * testsuite/libgomp.oacc-c-c++-common/reduction-initial-1.c: Likewise.
13271         * testsuite/libgomp.oacc-c-c++-common/reduction-1.c: Likewise.
13272         * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Likewise.
13273         * testsuite/libgomp.oacc-c-c++-common/reduction-2.c: Likewise.
13274         * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: New.
13276 2015-11-04  Nathan Sidwell  <nathan@codesourcery.com>
13278         * libgomp.oacc-c-c++-common/loop-red-g-1.c: New.
13279         * libgomp.oacc-c-c++-common/loop-red-gwv-1.c: New.
13280         * libgomp.oacc-c-c++-common/loop-red-v-1.c: New.
13281         * libgomp.oacc-c-c++-common/loop-red-v-2.c: New.
13282         * libgomp.oacc-c-c++-common/loop-red-w-1.c: New.
13283         * libgomp.oacc-c-c++-common/loop-red-w-2.c: New.
13284         * libgomp.oacc-c-c++-common/loop-red-wv-1.c: New.
13285         * libgomp.oacc-fortran/reduction-5.f90: Avoid reference var.
13287 2015-11-03  Nathan Sidwell  <nathan@codesourcery.com>
13289         * libgomp.h (struct acc_dispatch_t): Remove args from exec_func.
13290         * plugin/plugin-nvptx.c (nvptx_exec): Remove sizes & kinds arg.
13291         (GOMP_OFFLOAD_openacc_parallel): Likewise.
13292         * oacc-host.c (host_openacc_exec): Likewise.
13293         * oacc-parallel.c (GOACC_parallel_keyed): Adjust exec_func call.
13295 2015-11-03  Julian Brown  <julian@codesourcery.com>
13296             Thomas Schwinge  <thomas@codesourcery.com>
13298         * testsuite/libgomp.oacc-c-c++-common/par-reduction-1.c: New file.
13299         * testsuite/libgomp.oacc-c-c++-common/par-reduction-2.c: Likewise.
13300         * testsuite/libgomp.oacc-c-c++-common/worker-single-1a.c:
13301         Likewise.
13302         * testsuite/libgomp.oacc-c-c++-common/worker-single-4.c: Likewise.
13303         * testsuite/libgomp.oacc-c-c++-common/worker-single-6.c: Likewise.
13305 2015-11-03  James Norris  <jnorris@codesourcery.com>
13307         * testsuite/libgomp.oacc-c-c++-common/atomic_capture-1.c: New
13308         file.
13309         * testsuite/libgomp.oacc-c-c++-common/atomic_capture-2.c:
13310         Likewise.
13311         * testsuite/libgomp.oacc-c-c++-common/atomic_rw-1.c: Likewise.
13312         * testsuite/libgomp.oacc-c-c++-common/atomic_update-1.c: Likewise.
13313         * testsuite/libgomp.oacc-fortran/atomic_capture-1.f90: Likewise.
13314         * testsuite/libgomp.oacc-fortran/atomic_rw-1.f90: New file.
13315         * testsuite/libgomp.oacc-fortran/atomic_update-1.f90: Likewise.
13317 2015-10-29  Nathan Sidwell  <nathan@codesourcery.com>
13319         * openacc.h (enum acc_device_t): Reformat. Ensure layout
13320         compatibility.
13321         (enum acc_async_t): Reformat.
13322         (acc_on_device): Declare compatible with builtin and provide C++
13323         wrapper.
13324         * testsuite/libgomp.oacc-c-c++-common/acc-on-device.c: New.
13326 2015-10-29  Thomas Schwinge  <thomas@codesourcery.com>
13327             Cesar Philippidis  <cesar@codesourcery.com>
13329         * testsuite/libgomp.oacc-c-c++-common/combdir-1.c: Rename to...
13330         * testsuite/libgomp.oacc-c-c++-common/combined-directives-1.c:
13331         ... this.  Add a description of the test at the top of the file.
13332         * testsuite/libgomp.oacc-fortran/combdir-1.f90: Rename file to...
13333         * testsuite/libgomp.oacc-fortran/combined-directives-1.f90:
13334         ... this.  Add a description of the test at the top of the file.
13336 2015-10-28  Nathan Sidwell  <nathan@codesourcery.com>
13338         * testsuite/libgomp.oacc-c-c++-common/loop-g-1.c: New.
13339         * testsuite/libgomp.oacc-c-c++-common/loop-g-2.c: New.
13340         * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c: New.
13341         * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c: New.
13342         * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c: New.
13343         * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c: New.
13345 2015-10-27  Nathan Sidwell  <nathan@codesourcery.com>
13347         * plugin/plugin-nvptx.c (nvptx_exec): Remove check on compute
13348         dimensions.
13350 2015-10-27  Thomas Schwinge  <thomas@codesourcery.com>
13352         PR testsuite/68063
13353         * testsuite/libgomp.c++/member-1.C (A::m1): Add missing private clause.
13355 2015-10-27  James Norris  <jnorris@codesourcery.com>
13357         * testsuite/libgomp.oacc-c-c++-common/combdir-1.c: New file.
13358         * testsuite/libgomp.oacc-fortran/combdir-1.f90: Likewise.
13360 2015-10-26  Thomas Schwinge  <thomas@codesourcery.com>
13362         * testsuite/libgomp.oacc-c-c++-common/abort-1.c: Print to stderr.
13363         * testsuite/libgomp.oacc-c-c++-common/abort-3.c: Likewise.
13365         * testsuite/libgomp.oacc-c-c++-common/lib-1.c: Remove explicit
13366         acc_device_nvidia usage.
13367         * testsuite/libgomp.oacc-c-c++-common/lib-10.c: Likewise.
13368         * testsuite/libgomp.oacc-c-c++-common/lib-2.c: Likewise.
13369         * testsuite/libgomp.oacc-c-c++-common/lib-9.c: Likewise.
13371         * oacc-init.c (acc_shutdown): Call gomp_init_targets_once.
13372         * testsuite/libgomp.oacc-c-c++-common/lib-8.c: New file.
13374         PR libgomp/66518
13375         * testsuite/libgomp.oacc-c-c++-common/lib-3.c: Resolve XFAIL.
13377         PR libgomp/65437
13378         PR libgomp/66518
13379         * oacc-mem.c (update_dev_host): Call goacc_lazy_initialize.
13380         * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Remove XFAIL.
13382 2015-10-23  Tom de Vries  <tom@codesourcery.com>
13384         PR testsuite/68063
13385         * testsuite/libgomp.c++/member-2.C (A::m1): Add missing private clause.
13387 2015-10-20  Nathan Sidwell  <nathan@codesourcery.com>
13389         * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Set sane
13390         vector_length.
13391         * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
13393 2015-10-14  Ilya Verbin  <ilya.verbin@intel.com>
13394             Aleksander Ivanushenko  <aleksander.ivanushenko@intel.com>
13396         * target.c (gomp_map_vars): Initialize tgt->tgt_start and tgt->tgt_end
13397         to 0 when mapnum is 0.
13399 2015-10-14  Sebastian Huber  <sebastian.huber@embedded-brains.de>
13401         * fortran.c (omp_get_place_proc_ids_, omp_get_partition_place_nums_):
13402         Cast to int from int32_t.
13404 2015-10-13  Jakub Jelinek  <jakub@redhat.com>
13405             Aldy Hernandez  <aldyh@redhat.com>
13406             Ilya Verbin  <ilya.verbin@intel.com>
13408         * config/linux/affinity.c (omp_get_place_num_procs,
13409         omp_get_place_proc_ids, gomp_get_place_proc_ids_8): New functions.
13410         * config/linux/doacross.h: New file.
13411         * config/posix/affinity.c (omp_get_place_num_procs,
13412         omp_get_place_proc_ids, gomp_get_place_proc_ids_8): New functions.
13413         * config/posix/doacross.h: New file.
13414         * env.c: Include gomp-constants.h.
13415         (struct gomp_task_icv): Rename run_sched_modifier to
13416         run_sched_chunk_size.
13417         (gomp_max_task_priority_var): New variable.
13418         (parse_schedule): Rename run_sched_modifier to run_sched_chunk_size.
13419         (handle_omp_display_env): Change _OPENMP value from 201307 to
13420         201511.  Print OMP_MAX_TASK_PRIORITY.
13421         (initialize_env): Parse OMP_MAX_TASK_PRIORITY.
13422         (omp_set_schedule, omp_get_schedule): Rename modifier argument to
13423         chunk_size and run_sched_modifier to run_sched_chunk_size.
13424         (omp_get_max_task_priority, omp_get_initial_device,
13425         omp_get_num_places, omp_get_place_num, omp_get_partition_num_places,
13426         omp_get_partition_place_nums): New functions.
13427         * fortran.c (omp_set_schedule_, omp_set_schedule_8_,
13428         omp_get_schedule_, omp_get_schedule_8_): Rename modifier argument
13429         to chunk_size.
13430         (omp_get_num_places_, omp_get_place_num_procs_,
13431         omp_get_place_num_procs_8_, omp_get_place_proc_ids_,
13432         omp_get_place_proc_ids_8_, omp_get_place_num_,
13433         omp_get_partition_num_places_, omp_get_partition_place_nums_,
13434         omp_get_partition_place_nums_8_, omp_get_initial_device_,
13435         omp_get_max_task_priority_): New functions.
13436         * libgomp_g.h (GOMP_loop_doacross_static_start,
13437         GOMP_loop_doacross_dynamic_start, GOMP_loop_doacross_guided_start,
13438         GOMP_loop_doacross_runtime_start, GOMP_loop_ull_doacross_static_start,
13439         GOMP_loop_ull_doacross_dynamic_start,
13440         GOMP_loop_ull_doacross_guided_start,
13441         GOMP_loop_ull_doacross_runtime_start, GOMP_doacross_post,
13442         GOMP_doacross_wait, GOMP_doacross_ull_post, GOMP_doacross_wait,
13443         GOMP_taskloop, GOMP_taskloop_ull, GOMP_target_41,
13444         GOMP_target_data_41, GOMP_target_update_41,
13445         GOMP_target_enter_exit_data): New prototypes.
13446         (GOMP_task): Add prototype argument.
13447         * libgomp.h (_LIBGOMP_CHECKING_): Define to 0 if not yet defined.
13448         (struct gomp_doacross_work_share): New type.
13449         (struct gomp_work_share): Add doacross field.
13450         (struct gomp_task_icv): Rename run_sched_modifier to
13451         run_sched_chunk_size.
13452         (enum gomp_task_kind): Rename GOMP_TASK_IFFALSE to
13453         GOMP_TASK_UNDEFERRED.  Add comments.
13454         (struct gomp_task_depend_entry): Add comments.
13455         (struct gomp_task): Likewise.
13456         (struct gomp_taskgroup): Likewise.
13457         (struct gomp_target_task): New type.
13458         (struct gomp_team): Add comment.
13459         (gomp_get_place_proc_ids_8, gomp_doacross_init,
13460         gomp_doacross_ull_init, gomp_task_maybe_wait_for_dependencies,
13461         gomp_create_target_task, gomp_target_task_fn): New prototypes.
13462         (struct target_var_desc): New type.
13463         (struct target_mem_desc): Adjust comment.  Use struct
13464         target_var_desc instead of splay_tree_key for list.
13465         (REFCOUNT_INFINITY): Define.
13466         (struct splay_tree_key_s): Remove copy_from field.
13467         (struct gomp_device_descr): Add dev2dev_func field.
13468         (enum gomp_map_vars_kind): New enum.
13469         (gomp_map_vars): Add one argument.
13470         * libgomp.map (OMP_4.5): Export omp_get_max_task_priority,
13471         omp_get_max_task_priority_, omp_get_num_places, omp_get_num_places_,
13472         omp_get_place_num_procs, omp_get_place_num_procs_,
13473         omp_get_place_num_procs_8_, omp_get_place_proc_ids,
13474         omp_get_place_proc_ids_, omp_get_place_proc_ids_8_, omp_get_place_num,
13475         omp_get_place_num_, omp_get_partition_num_places,
13476         omp_get_partition_num_places_, omp_get_partition_place_nums,
13477         omp_get_partition_place_nums_, omp_get_partition_place_nums_8_,
13478         omp_get_initial_device, omp_get_initial_device_, omp_target_alloc,
13479         omp_target_free, omp_target_is_present, omp_target_memcpy,
13480         omp_target_memcpy_rect, omp_target_associate_ptr and
13481         omp_target_disassociate_ptr.
13482         (GOMP_4.0.2): Renamed to ...
13483         (GOMP_4.5): ... this.  Export GOMP_target_41, GOMP_target_data_41,
13484         GOMP_target_update_41, GOMP_target_enter_exit_data, GOMP_taskloop,
13485         GOMP_taskloop_ull, GOMP_loop_doacross_dynamic_start,
13486         GOMP_loop_doacross_guided_start, GOMP_loop_doacross_runtime_start,
13487         GOMP_loop_doacross_static_start, GOMP_doacross_post,
13488         GOMP_doacross_wait, GOMP_loop_ull_doacross_dynamic_start,
13489         GOMP_loop_ull_doacross_guided_start,
13490         GOMP_loop_ull_doacross_runtime_start,
13491         GOMP_loop_ull_doacross_static_start, GOMP_doacross_ull_post and
13492         GOMP_doacross_ull_wait.
13493         * libgomp.texi: Document omp_get_max_task_priority.
13494         Rename modifier argument to chunk_size for omp_set_schedule and
13495         omp_get_schedule.  Document OMP_MAX_TASK_PRIORITY env var.
13496         * loop.c (GOMP_loop_runtime_start): Adjust for run_sched_modifier
13497         to run_sched_chunk_size renaming.
13498         (GOMP_loop_ordered_runtime_start): Likewise.
13499         (gomp_loop_doacross_static_start, gomp_loop_doacross_dynamic_start,
13500         gomp_loop_doacross_guided_start, GOMP_loop_doacross_runtime_start,
13501         GOMP_parallel_loop_runtime_start): New functions.
13502         (GOMP_parallel_loop_runtime): Adjust for run_sched_modifier
13503         to run_sched_chunk_size renaming.
13504         (GOMP_loop_doacross_static_start, GOMP_loop_doacross_dynamic_start,
13505         GOMP_loop_doacross_guided_start): New functions or aliases.
13506         * loop_ull.c (GOMP_loop_ull_runtime_start): Adjust for
13507         run_sched_modifier to run_sched_chunk_size renaming.
13508         (GOMP_loop_ull_ordered_runtime_start): Likewise.
13509         (gomp_loop_ull_doacross_static_start,
13510         gomp_loop_ull_doacross_dynamic_start,
13511         gomp_loop_ull_doacross_guided_start,
13512         GOMP_loop_ull_doacross_runtime_start): New functions.
13513         (GOMP_loop_ull_doacross_static_start,
13514         GOMP_loop_ull_doacross_dynamic_start,
13515         GOMP_loop_ull_doacross_guided_start): New functions or aliases.
13516         * oacc-mem.c (acc_map_data, present_create_copy,
13517         gomp_acc_insert_pointer): Pass GOMP_MAP_VARS_OPENACC instead of false
13518         to gomp_map_vars.
13519         (gomp_acc_remove_pointer): Use copy_from from target_var_desc.
13520         * oacc-parallel.c (GOACC_data_start): Pass GOMP_MAP_VARS_OPENACC
13521         instead of false to gomp_map_vars.
13522         (GOACC_parallel_keyed): Likewise.  Use copy_from from target_var_desc.
13523         * omp.h.in (omp_lock_hint_t): New type.
13524         (omp_init_lock_with_hint, omp_init_nest_lock_with_hint,
13525         omp_get_num_places, omp_get_place_num_procs, omp_get_place_proc_ids,
13526         omp_get_place_num, omp_get_partition_num_places,
13527         omp_get_partition_place_nums, omp_get_initial_device,
13528         omp_get_max_task_priority, omp_target_alloc, omp_target_free,
13529         omp_target_is_present, omp_target_memcpy, omp_target_memcpy_rect,
13530         omp_target_associate_ptr, omp_target_disassociate_ptr): New
13531         prototypes.
13532         * omp_lib.f90.in (omp_lock_hint_kind): New parameter.
13533         (omp_lock_hint_none, omp_lock_hint_uncontended,
13534         omp_lock_hint_contended, omp_lock_hint_nonspeculative,
13535         omp_lock_hint_speculative): New parameters.
13536         (omp_init_lock_with_hint, omp_init_nest_lock_with_hint,
13537         omp_get_num_places, omp_get_place_num_procs, omp_get_place_proc_ids,
13538         omp_get_place_num, omp_get_partition_num_places,
13539         omp_get_partition_place_nums, omp_get_initial_device,
13540         omp_get_max_task_priority): New interfaces.
13541         (omp_set_schedule, omp_get_schedule): Rename modifier argument
13542         to chunk_size.
13543         * omp_lib.h.in (omp_lock_hint_kind): New parameter.
13544         (omp_lock_hint_none, omp_lock_hint_uncontended,
13545         omp_lock_hint_contended, omp_lock_hint_nonspeculative,
13546         omp_lock_hint_speculative): New parameters.
13547         (omp_init_lock_with_hint, omp_init_nest_lock_with_hint,
13548         omp_get_num_places, omp_get_place_num_procs, omp_get_place_proc_ids,
13549         omp_get_place_num, omp_get_partition_num_places,
13550         omp_get_partition_place_nums, omp_get_initial_device,
13551         omp_get_max_task_priority): New functions and subroutines.
13552         * ordered.c: Include stdarg.h and string.h.
13553         (MAX_COLLAPSED_BITS): Define.
13554         (gomp_doacross_init, GOMP_doacross_post, GOMP_doacross_wait,
13555         gomp_doacross_ull_init, GOMP_doacross_ull_post,
13556         GOMP_doacross_ull_wait): New functions.
13557         * target.c: Include errno.h.
13558         (resolve_device): If device is not initialized, call
13559         gomp_init_device on it.
13560         (gomp_map_lookup): New function.
13561         (gomp_map_vars_existing): Add tgt_var argument, fill it in.
13562         Don't bump refcount if REFCOUNT_INFINITY.  Handle
13563         GOMP_MAP_ALWAYS_TO_P.
13564         (get_kind): Rename is_openacc argument to short_mapkind.
13565         (gomp_map_pointer): Use gomp_map_lookup.
13566         (gomp_map_fields_existing): New function.
13567         (gomp_map_vars): Rename is_openacc argument to short_mapkind
13568         and is_target to pragma_kind.  Handle GOMP_MAP_VARS_ENTER_DATA,
13569         handle GOMP_MAP_FIRSTPRIVATE_INT, GOMP_MAP_STRUCT,
13570         GOMP_MAP_USE_DEVICE_PTR, GOMP_MAP_ZERO_LEN_ARRAY_SECTION.
13571         Adjust for tgt->list changed type and copy_from living in there.
13572         (gomp_copy_from_async): Adjust for tgt->list changed type and
13573         copy_from living in there.
13574         (gomp_unmap_vars): Likewise.
13575         (gomp_update): Likewise.  Rename is_openacc argument to
13576         short_mapkind.  Don't fail if object is not mapped.
13577         (gomp_load_image_to_device): Initialize refcount to
13578         REFCOUNT_INFINITY.
13579         (gomp_target_fallback): New function.
13580         (gomp_get_target_fn_addr): Likewise.
13581         (GOMP_target): Adjust gomp_map_vars caller, use
13582         gomp_get_target_fn_addr and gomp_target_fallback.
13583         (GOMP_target_41): New function.
13584         (gomp_target_data_fallback): New function.
13585         (GOMP_target_data): Use it, adjust gomp_map_vars caller.
13586         (GOMP_target_data_41): New function.
13587         (GOMP_target_update): Adjust gomp_update caller.
13588         (GOMP_target_update_41): New function.
13589         (gomp_exit_data, GOMP_target_enter_exit_data,
13590         gomp_target_task_fn, omp_target_alloc, omp_target_free,
13591         omp_target_is_present, omp_target_memcpy,
13592         omp_target_memcpy_rect_worker, omp_target_memcpy_rect,
13593         omp_target_associate_ptr, omp_target_disassociate_ptr,
13594         gomp_load_plugin_for_device): New functions.
13595         * task.c: Include gomp-constants.h.  Include taskloop.c
13596         twice to get GOMP_taskloop and GOMP_taskloop_ull definitions.
13597         (gomp_task_handle_depend): New function.
13598         (GOMP_task): Use it.  Add priority argument.  Use
13599         gomp-constant.h constants instead of hardcoded numbers.
13600         Rename GOMP_TASK_IFFALSE to GOMP_TASK_UNDEFERRED.
13601         (gomp_create_target_task): New function.
13602         (verify_children_queue, verify_taskgroup_queue,
13603         verify_task_queue): New functions.
13604         (gomp_task_run_pre): Call verify_*_queue functions.
13605         If an upcoming tied task is about to leave the sibling or
13606         taskgroup queues in an invalid state, adjust appropriately.
13607         Remove taskgroup argument.  Add comments.
13608         (gomp_task_run_post_handle_dependers): Add comments.
13609         (gomp_task_run_post_remove_parent): Likewise.
13610         (gomp_barrier_handle_tasks): Adjust gomp_task_run_pre caller.
13611         (GOMP_taskwait): Likewise.  Add comments.
13612         (gomp_task_maybe_wait_for_dependencies): Fix scheduling
13613         problem such that the first non parent_depends_on task does not
13614         end up at the end of the children queue.
13615         (GOMP_taskgroup_start): Rename GOMP_TASK_IFFALSE to
13616         GOMP_TASK_UNDEFERRED.
13617         (GOMP_taskgroup_end): Adjust gomp_task_run_pre caller.
13618         * taskloop.c: New file.
13619         * testsuite/lib/libgomp.exp
13620         (check_effective_target_offload_device_nonshared_as): New proc.
13621         * testsuite/libgomp.c/affinity-2.c: New test.
13622         * testsuite/libgomp.c/doacross-1.c: New test.
13623         * testsuite/libgomp.c/doacross-2.c: New test.
13624         * testsuite/libgomp.c/examples-4/declare_target-1.c (fib_wrapper):
13625         Add map clause to target.
13626         * testsuite/libgomp.c/examples-4/declare_target-4.c (accum): Likewise.
13627         * testsuite/libgomp.c/examples-4/declare_target-5.c (accum): Likewise.
13628         * testsuite/libgomp.c/examples-4/device-1.c (main): Likewise.
13629         * testsuite/libgomp.c/examples-4/device-3.c (main): Likewise.
13630         * testsuite/libgomp.c/examples-4/target_data-3.c (gramSchmidt):
13631         Likewise.
13632         * testsuite/libgomp.c/examples-4/teams-2.c (dotprod): Likewise.
13633         * testsuite/libgomp.c/examples-4/teams-3.c (dotprod): Likewise.
13634         * testsuite/libgomp.c/examples-4/teams-4.c (dotprod): Likewise.
13635         * testsuite/libgomp.c/for-2.h (OMPTGT, OMPTO, OMPFROM): Define if
13636         not defined.  Use those where needed.
13637         * testsuite/libgomp.c/for-4.c: New test.
13638         * testsuite/libgomp.c/for-5.c: New test.
13639         * testsuite/libgomp.c/for-6.c: New test.
13640         * testsuite/libgomp.c/linear-1.c: New test.
13641         * testsuite/libgomp.c/ordered-4.c: New test.
13642         * testsuite/libgomp.c/pr66199-2.c (f2): Adjust for linear clause
13643         only allowed on the loop iterator.
13644         * testsuite/libgomp.c/pr66199-3.c: New test.
13645         * testsuite/libgomp.c/pr66199-4.c: New test.
13646         * testsuite/libgomp.c/reduction-7.c: New test.
13647         * testsuite/libgomp.c/reduction-8.c: New test.
13648         * testsuite/libgomp.c/reduction-9.c: New test.
13649         * testsuite/libgomp.c/reduction-10.c: New test.
13650         * testsuite/libgomp.c/target-1.c (fn2, fn3, fn4): Add
13651         map(tofrom:s).
13652         * testsuite/libgomp.c/target-2.c (fn2, fn3, fn4): Likewise.
13653         * testsuite/libgomp.c/target-7.c (foo): Add map(h) where needed.
13654         * testsuite/libgomp.c/target-11.c: New test.
13655         * testsuite/libgomp.c/target-12.c: New test.
13656         * testsuite/libgomp.c/target-13.c: New test.
13657         * testsuite/libgomp.c/target-14.c: New test.
13658         * testsuite/libgomp.c/target-15.c: New test.
13659         * testsuite/libgomp.c/target-16.c: New test.
13660         * testsuite/libgomp.c/target-17.c: New test.
13661         * testsuite/libgomp.c/target-18.c: New test.
13662         * testsuite/libgomp.c/target-19.c: New test.
13663         * testsuite/libgomp.c/target-20.c: New test.
13664         * testsuite/libgomp.c/target-21.c: New test.
13665         * testsuite/libgomp.c/target-22.c: New test.
13666         * testsuite/libgomp.c/target-23.c: New test.
13667         * testsuite/libgomp.c/target-24.c: New test.
13668         * testsuite/libgomp.c/target-25.c: New test.
13669         * testsuite/libgomp.c/target-26.c: New test.
13670         * testsuite/libgomp.c/target-27.c: New test.
13671         * testsuite/libgomp.c/taskloop-1.c: New test.
13672         * testsuite/libgomp.c/taskloop-2.c: New test.
13673         * testsuite/libgomp.c/taskloop-3.c: New test.
13674         * testsuite/libgomp.c/taskloop-4.c: New test.
13675         * testsuite/libgomp.c++/ctor-13.C: New test.
13676         * testsuite/libgomp.c++/doacross-1.C: New test.
13677         * testsuite/libgomp.c++/examples-4/declare_target-2.C:
13678         Replace offload_device with offload_device_nonshared_as.
13679         * testsuite/libgomp.c++/for-12.C: New test.
13680         * testsuite/libgomp.c++/for-13.C: New test.
13681         * testsuite/libgomp.c++/for-14.C: New test.
13682         * testsuite/libgomp.c++/linear-1.C: New test.
13683         * testsuite/libgomp.c++/member-1.C: New test.
13684         * testsuite/libgomp.c++/member-2.C: New test.
13685         * testsuite/libgomp.c++/member-3.C: New test.
13686         * testsuite/libgomp.c++/member-4.C: New test.
13687         * testsuite/libgomp.c++/member-5.C: New test.
13688         * testsuite/libgomp.c++/ordered-1.C: New test.
13689         * testsuite/libgomp.c++/reduction-5.C: New test.
13690         * testsuite/libgomp.c++/reduction-6.C: New test.
13691         * testsuite/libgomp.c++/reduction-7.C: New test.
13692         * testsuite/libgomp.c++/reduction-8.C: New test.
13693         * testsuite/libgomp.c++/reduction-9.C: New test.
13694         * testsuite/libgomp.c++/reduction-10.C: New test.
13695         * testsuite/libgomp.c++/reference-1.C: New test.
13696         * testsuite/libgomp.c++/simd14.C: New test.
13697         * testsuite/libgomp.c++/target-2.C (fn2): Add map(tofrom: s) clause.
13698         * testsuite/libgomp.c++/target-5.C: New test.
13699         * testsuite/libgomp.c++/target-6.C: New test.
13700         * testsuite/libgomp.c++/target-7.C: New test.
13701         * testsuite/libgomp.c++/target-8.C: New test.
13702         * testsuite/libgomp.c++/target-9.C: New test.
13703         * testsuite/libgomp.c++/target-10.C: New test.
13704         * testsuite/libgomp.c++/target-11.C: New test.
13705         * testsuite/libgomp.c++/target-12.C: New test.
13706         * testsuite/libgomp.c++/taskloop-1.C: New test.
13707         * testsuite/libgomp.c++/taskloop-2.C: New test.
13708         * testsuite/libgomp.c++/taskloop-3.C: New test.
13709         * testsuite/libgomp.c++/taskloop-4.C: New test.
13710         * testsuite/libgomp.c++/taskloop-5.C: New test.
13711         * testsuite/libgomp.c++/taskloop-6.C: New test.
13712         * testsuite/libgomp.c++/taskloop-7.C: New test.
13713         * testsuite/libgomp.c++/taskloop-8.C: New test.
13714         * testsuite/libgomp.c++/taskloop-9.C: New test.
13715         * testsuite/libgomp.fortran/affinity1.f90: New test.
13716         * testsuite/libgomp.fortran/affinity2.f90: New test.
13718 2015-10-13  Tom de Vries  <tom@codesourcery.com>
13720         PR tree-optimization/67476
13721         * testsuite/libgomp.c/autopar-3.c: New test.
13722         * testsuite/libgomp.c/autopar-4.c: New test.
13723         * testsuite/libgomp.c/autopar-5.c: New test.
13724         * testsuite/libgomp.c/autopar-6.c: New test.
13725         * testsuite/libgomp.c/autopar-7.c: New test.
13726         * testsuite/libgomp.c/autopar-8.c: New test.
13728 2015-10-12  James Norris  <jnorris@codesourcery.com>
13730         * testsuite/libgomp.oacc-c-c++-common/vector-loop.c: Fix loop
13731         initializer.
13733 2015-10-09  David Malcolm  <dmalcolm@redhat.com>
13735         * testsuite/lib/libgomp.exp: Load multiline.exp before prune.exp,
13736         using load_gcc_lib.
13738 2015-10-02  Thomas Schwinge  <thomas@codesourcery.com>
13740         * oacc-ptx.h: Remove file, moving its content into...
13741         * config/nvptx/fortran.c: ... here...
13742         * config/nvptx/oacc-init.c: ..., here...
13743         * config/nvptx/oacc-parallel.c: ..., and here.
13744         * config/nvptx/openacc.f90: New file.
13745         * plugin/plugin-nvptx.c: Don't include "oacc-ptx.h".
13746         (link_ptx): Don't link in predefined bits of PTX code.
13748 2015-09-30  Nathan Sidwell  <nathan@codesourcery.com>
13749             Bernd Schmidt <bernds@codesourcery.com>
13751         * plugin/plugin-nvptx.c (targ_fn_launch): Use GOMP_DIM_MAX.
13752         (struct targ_ptx_obj): New.
13753         (nvptx_tdata): Move earlier, change data format.
13754         (link_ptx): Take targ_ptx_obj ptr and count.  Allow multiple
13755         objects.
13756         (GOMP_OFFLOAD_load_image): Adjust.
13758 2015-09-30  Thomas Schwinge  <thomas@codesourcery.com>
13760         * testsuite/libgomp.oacc-c-c++-common/abort-1.c: Add checkpoint.
13761         * testsuite/libgomp.oacc-c-c++-common/abort-3.c: Likewise.
13762         * testsuite/libgomp.oacc-c-c++-common/clauses-2.c: Likewise.
13763         * testsuite/libgomp.oacc-c-c++-common/data-already-1.c: Likewise.
13764         * testsuite/libgomp.oacc-c-c++-common/data-already-2.c: Likewise.
13765         * testsuite/libgomp.oacc-c-c++-common/data-already-3.c: Likewise.
13766         * testsuite/libgomp.oacc-c-c++-common/data-already-4.c: Likewise.
13767         * testsuite/libgomp.oacc-c-c++-common/data-already-5.c: Likewise.
13768         * testsuite/libgomp.oacc-c-c++-common/data-already-6.c: Likewise.
13769         * testsuite/libgomp.oacc-c-c++-common/data-already-7.c: Likewise.
13770         * testsuite/libgomp.oacc-c-c++-common/data-already-8.c: Likewise.
13771         * testsuite/libgomp.oacc-c-c++-common/lib-1.c: Likewise.
13772         * testsuite/libgomp.oacc-c-c++-common/lib-11.c: Likewise.
13773         * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
13774         * testsuite/libgomp.oacc-c-c++-common/lib-17.c: Likewise.
13775         * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
13776         * testsuite/libgomp.oacc-c-c++-common/lib-2.c: Likewise.
13777         * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
13778         * testsuite/libgomp.oacc-c-c++-common/lib-21.c: Likewise.
13779         * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Likewise.
13780         * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
13781         * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
13782         * testsuite/libgomp.oacc-c-c++-common/lib-26.c: Likewise.
13783         * testsuite/libgomp.oacc-c-c++-common/lib-27.c: Likewise.
13784         * testsuite/libgomp.oacc-c-c++-common/lib-28.c: Likewise.
13785         * testsuite/libgomp.oacc-c-c++-common/lib-29.c: Likewise.
13786         * testsuite/libgomp.oacc-c-c++-common/lib-3.c: Likewise.
13787         * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
13788         * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
13789         * testsuite/libgomp.oacc-c-c++-common/lib-35.c: Likewise.
13790         * testsuite/libgomp.oacc-c-c++-common/lib-36.c: Likewise.
13791         * testsuite/libgomp.oacc-c-c++-common/lib-39.c: Likewise.
13792         * testsuite/libgomp.oacc-c-c++-common/lib-4.c: Likewise.
13793         * testsuite/libgomp.oacc-c-c++-common/lib-40.c: Likewise.
13794         * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
13795         * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Likewise.
13796         * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
13797         * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Likewise.
13798         * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
13799         * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Likewise.
13800         * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
13801         * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
13802         * testsuite/libgomp.oacc-c-c++-common/lib-57.c: Likewise.
13803         * testsuite/libgomp.oacc-c-c++-common/lib-58.c: Likewise.
13804         * testsuite/libgomp.oacc-c-c++-common/lib-62.c: Likewise.
13805         * testsuite/libgomp.oacc-c-c++-common/lib-63.c: Likewise.
13806         * testsuite/libgomp.oacc-c-c++-common/lib-64.c: Likewise.
13807         * testsuite/libgomp.oacc-c-c++-common/lib-65.c: Likewise.
13808         * testsuite/libgomp.oacc-c-c++-common/lib-67.c: Likewise.
13809         * testsuite/libgomp.oacc-c-c++-common/lib-68.c: Likewise.
13810         * testsuite/libgomp.oacc-c-c++-common/lib-71.c: Likewise.
13811         * testsuite/libgomp.oacc-c-c++-common/lib-77.c: Likewise.
13812         * testsuite/libgomp.oacc-c-c++-common/lib-80.c: Likewise.
13813         * testsuite/libgomp.oacc-c-c++-common/present-1.c: Likewise.
13814         * testsuite/libgomp.oacc-fortran/abort-1.f90: Likewise.
13815         * testsuite/libgomp.oacc-fortran/data-already-1.f: Likewise.
13816         * testsuite/libgomp.oacc-fortran/data-already-2.f: Likewise.
13817         * testsuite/libgomp.oacc-fortran/data-already-3.f: Likewise.
13818         * testsuite/libgomp.oacc-fortran/data-already-4.f: Likewise.
13819         * testsuite/libgomp.oacc-fortran/data-already-5.f: Likewise.
13820         * testsuite/libgomp.oacc-fortran/data-already-6.f: Likewise.
13821         * testsuite/libgomp.oacc-fortran/data-already-7.f: Likewise.
13822         * testsuite/libgomp.oacc-fortran/data-already-8.f: Likewise.
13824 2015-09-29  Nathan Sidwell  <nathan@codesourcery.com>
13826         * oacc-init.c (acc_on_device): Force optimization level.
13828 2015-09-29  Nathan Sidwell  <nathan@codesourcery.com>
13830         * plugin/plugin-nvptx.c (ARRAYSIZE): Delete.
13831         (cuda_errlist): Delete.
13832         (cuda_error): Reimplement.
13834 2015-09-28  Nathan Sidwell  <nathan@codesourcery.com>
13836         * libgomp.h (acc_dispatch_t): Replace separate geometry args with
13837         array.
13838         * libgomp.map (GOACC_parallel_keyed): New.
13839         * oacc-parallel.c (goacc_wait): Take pointer to va_list.  Adjust
13840         all callers.
13841         (GOACC_parallel_keyed): New interface.  Lose geometry arguments
13842         and take keyed varargs list.  Adjust call to exec_func.
13843         (GOACC_parallel): Force host fallback.
13844         * libgomp_g.h (GOACC_parallel): Remove.
13845         (GOACC_parallel_keyed): Declare.
13846         * plugin/plugin-nvptx.c (struct targ_fn_launch): New struct.
13847         (struct targ_gn_descriptor): Replace name field with launch field.
13848         (nvptx_exec): Lose separate geometry args, take array.  Process
13849         dynamic dimensions and adjust.
13850         (struct nvptx_tdata): Replace fn_names field with fn_descs.
13851         (GOMP_OFFLOAD_load_image): Adjust for change in function table
13852         data.
13853         (GOMP_OFFLOAD_openacc_parallel): Adjust for change in dimension
13854         passing.
13855         * oacc-host.c (host_openacc_exec): Adjust for change in dimension
13856         passing.
13858 2015-09-22  Chung-Lin Tang  <cltang@codesourcery.com>
13860         PR libgomp/67141
13861         * oacc-int.h (goacc_host_init): Add declaration.
13862         * oacc-host.c (goacc_host_init): Remove static and constructor attribute.
13863         * oacc-init.c (goacc_runtime_initialize): Call goacc_host_init() at end.
13865 2015-09-08  Aditya Kumar  <hiraditya@msn.com>
13866             Sebastian Pop  <s.pop@samsung.com>
13868         * testsuite/libgomp.graphite/bounds.c (int foo): Modified test case to
13869         match o/p.
13870         * testsuite/libgomp.graphite/force-parallel-1.c (void parloop): Same.
13871         * testsuite/libgomp.graphite/force-parallel-4.c: Same.
13872         * testsuite/libgomp.graphite/force-parallel-5.c: Same.
13873         * testsuite/libgomp.graphite/force-parallel-7.c: Same.
13874         * testsuite/libgomp.graphite/force-parallel-8.c: Same.
13876 2015-09-03  Jakub Jelinek  <jakub@redhat.com>
13878         * configure.tgt: Add missing ;; in between nvptx and rtems
13879         snippets.
13881 2015-09-03  Sebastian Huber  <sebastian.huber@embedded-brains.de>
13883         * config/posix/pool.h (gomp_adjust_thread_attr): New.
13884         * config/rtems/pool.h (gomp_adjust_thread_attr): Likewise.
13885         (gomp_thread_pool_reservoir): Add priority member.
13886         * confi/rtems/proc.c (allocate_thread_pool_reservoir): Add
13887         priority.
13888         (parse_thread_pools): Likewise.
13889         * team.c (gomp_team_start): Call configuration provided
13890         gomp_adjust_thread_attr(). Destroy thread attributes if
13891         necessary.
13892         * libgomp.texi: Document GOMP_RTEMS_THREAD_POOLS.
13894 2015-09-03  Sebastian Huber  <sebastian.huber@embedded-brains.de>
13896         * config/posix/pool.h: New.
13897         * config/rtems/pool.h: Likewise.
13898         * config/rtems/proc.c: Likewise.
13899         * libgomp.h (gomp_thread_destructor): Declare.
13900         * team.c: Include configuration provided "pool.h".
13901         (gomp_get_thread_pool): Define in configuration.
13902         (gomp_team_end): Call configuration defined
13903         gomp_release_thread_pool().
13905 2015-09-03  Sebastian Huber  <sebastian.huber@embedded-brains.de>
13907         * config/rtems/bar.c: New.
13908         * config/rtems/bar.h: Likewise.
13909         * config/rtems/mutex.c: Likewise.
13910         * config/rtems/mutex.h: Likewise.
13911         * config/rtems/sem.c: Likewise.
13912         * config/rtems/sem.h: Likewise.
13913         * configure.ac (*-*-rtems*): Check that Newlib provides a proper
13914         <sys/lock.h> header file.
13915         * configure.tgt (*-*-rtems*): Enable RTEMS configuration if
13916         supported by Newlib.
13917         * configure: Regenerate.
13919 2015-09-03  Sebastian Huber  <sebastian.huber@embedded-brains.de>
13921         * team.c (gomp_new_thread_pool): Delete and move content to ...
13922         (gomp_get_thread_pool): ... new function.  Allocate and
13923         initialize thread pool on demand.
13924         (get_last_team): Use gomp_get_thread_pool().
13925         (gomp_team_start): Delete thread pool initialization.
13927 2015-09-03  Tom de Vries  <tom@codesourcery.com>
13929         PR tree-optimization/65637
13930         * testsuite/libgomp.c/autopar-2.c: New test.
13932 2015-08-29  Tom de Vries  <tom@codesourcery.com>
13934         PR tree-optimization/46193
13935         * testsuite/libgomp.c/pr46193.c: New test.
13937 2015-08-24  Nathan Sidwell  <nathan@codesourcery.com>
13939         libgomp/
13940         * libgomp.map: Add 4.0.2 version.
13941         * target.c (offload_image_descr): Add version field.
13942         (gomp_load_image_to_device): Add version argument.  Adjust plugin
13943         call.  Improve load mismatch diagnostic.
13944         (gomp_unload_image_from_device): Add version argument.  Adjust plugin
13945         call.
13946         (GOMP_offload_regster): Make stub function, move bulk to ...
13947         (GOMP_offload_register_ver): ... here.  Process version argument.
13948         (GOMP_offload_unregister): Make stub function, move bulk to ...
13949         (GOMP_offload_unregister_ver): ... here.  Process version argument.
13950         (gomp_init_device): Process version field.
13951         (gomp_unload_device): Process version field.
13952         (gomp_load_plugin_for_device): Reimplement DLSYM & DLSYM_OPT
13953         macros.  Check plugin version.
13954         * libgomp.h (gomp_device_descr): Add version function field.  Adjust
13955         loader and unloader types.
13956         * oacc-host.c: Include gomp-constants.h.
13957         (host_version): New.
13958         (host_load_image, host_unload_image): Adjust.
13959         (host_dispatch): Add host_version.
13960         * plugin/plugin-nvptx.c: Include gomp-constants.h.
13961         (GOMP_OFFLOAD_version): New.
13962         (GOMP_OFFLOAD_load_image): Add version arg and check it.
13963         (GOMP_OFFLOAD_unload_image): Likewise.
13964         * plugin/plugin-host.c: Include gomp-constants.h.
13965         (GOMP_OFFLOAD_version): New.
13966         (GOMP_OFFLOAD_load_image): Add version arg.
13967         (GOMP_OFFLOAD_unload_image): Likewise.
13969 2015-08-24  Tom de Vries  <tom@codesourcery.com>
13971         PR tree-optimization/65468
13972         * testsuite/libgomp.oacc-c-c++-common/vector-loop.c: New test.
13974 2015-08-24  Tom de Vries  <tom@codesourcery.com>
13976         PR tree-optimization/65468
13977         * testsuite/libgomp.c/static-chunk-size-one.c: New test.
13979 2015-08-24  Joost VandeVondele  <vondele@gnu.gcc.org>
13981         PR libgomp/66761
13982         PR libgomp/67303
13983         * iter.c (gomp_iter_dynamic_next): Employ an atomic load.
13984         (gomp_iter_guided_next): Idem.
13985         * iter_ull.c (gomp_iter_ull_dynamic_next): Idem.
13986         (gomp_iter_ull_guided_next): Idem.
13987         * config/linux/wait.h (do_spin): Idem.
13989 2015-08-10  Thomas Schwinge  <thomas@codesourcery.com>
13991         * libgomp-plugin.h (enum offload_target_type): Remove
13992         OFFLOAD_TARGET_TYPE_HOST_NONSHM.
13993         * openacc.f90 (openacc_kinds): Remove acc_device_host_nonshm.
13994         * openacc.h (enum acc_device_t): Likewise.
13995         * openacc_lib.h: Likewise.
13996         * oacc-init.c (name_of_acc_device_t): Don't handle it.
13997         (acc_on_device): Just use __builtin_acc_on_device.
13998         * testsuite/libgomp.oacc-c-c++-common/if-1.c: Don't forbid usage
13999         of acc_on_device builtin.
14000         * plugin/plugin-host.h: Remove file.
14001         * plugin/plugin-host.c: Likewise, but salvage some content into...
14002         * oacc-host.c: ... this file.
14003         * plugin/Makefrag.am: Don't build libgomp-plugin-host_nonshm.la.
14004         * plugin/configfrag.ac (offload_targets): Don't add host_nonshm.
14005         * Makefile.in: Regenerate.
14006         * configure: Likewise.
14007         * testsuite/lib/libgomp.exp
14008         (check_effective_target_openacc_host_nonshm_selected): Remove.
14009         * testsuite/libgomp.oacc-c++/c++.exp: Don't handle
14010         ACC_DEVICE_TYPE=host_nonshm.
14011         * testsuite/libgomp.oacc-c/c.exp: Likewise.
14012         * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
14013         * testsuite/libgomp.oacc-c-c++-common/acc_on_device-1.c: Likewise.
14014         * testsuite/libgomp.oacc-fortran/acc_on_device-1-1.f90: Likewise.
14015         * testsuite/libgomp.oacc-fortran/acc_on_device-1-2.f: Likewise.
14016         * testsuite/libgomp.oacc-fortran/acc_on_device-1-3.f: Likewise.
14018 2015-08-10  Thomas Schwinge  <thomas@codesourcery.com>
14019             Jakub Jelinek  <jakub@redhat.com>
14021         * config/nvptx/affinity.c: New file.
14022         * config/nvptx/alloc.c: Likewise.
14023         * config/nvptx/bar.c: Likewise.
14024         * config/nvptx/barrier.c: Likewise.
14025         * config/nvptx/critical.c: Likewise.
14026         * config/nvptx/env.c: Likewise.
14027         * config/nvptx/error.c: Likewise.
14028         * config/nvptx/fortran.c: Likewise.
14029         * config/nvptx/iter.c: Likewise.
14030         * config/nvptx/iter_ull.c: Likewise.
14031         * config/nvptx/libgomp-plugin.c: Likewise.
14032         * config/nvptx/lock.c: Likewise.
14033         * config/nvptx/loop.c: Likewise.
14034         * config/nvptx/loop_ull.c: Likewise.
14035         * config/nvptx/mutex.c: Likewise.
14036         * config/nvptx/oacc-async.c: Likewise.
14037         * config/nvptx/oacc-cuda.c: Likewise.
14038         * config/nvptx/oacc-host.c: Likewise.
14039         * config/nvptx/oacc-init.c: Likewise.
14040         * config/nvptx/oacc-mem.c: Likewise.
14041         * config/nvptx/oacc-parallel.c: Likewise.
14042         * config/nvptx/oacc-plugin.c: Likewise.
14043         * config/nvptx/omp-lock.h: Likewise.
14044         * config/nvptx/ordered.c: Likewise.
14045         * config/nvptx/parallel.c: Likewise.
14046         * config/nvptx/proc.c: Likewise.
14047         * config/nvptx/ptrlock.c: Likewise.
14048         * config/nvptx/sections.c: Likewise.
14049         * config/nvptx/sem.c: Likewise.
14050         * config/nvptx/single.c: Likewise.
14051         * config/nvptx/splay-tree.c: Likewise.
14052         * config/nvptx/target.c: Likewise.
14053         * config/nvptx/task.c: Likewise.
14054         * config/nvptx/team.c: Likewise.
14055         * config/nvptx/time.c: Likewise.
14056         * config/nvptx/work.c: Likewise.
14057         * configure.ac: Don't probe pthreads support for host nvptx*-*-*.
14058         * configure: Regenerate.
14059         * configure.tgt (config_path): Set to "nvptx" for target
14060         nvptx*-*-*.
14062 2015-08-10  Thomas Schwinge  <thomas@codesourcery.com>
14064         * testsuite/libgomp.oacc-c-c++-common/vector-type-1.c: New file.
14066 2015-08-03  Nathan Sidwell  <nathan@codesourcery.com>
14068         * plugin/plugin-nvptx.c: Don't include dlfcn.h.
14069         (cuda_errlist): Constify.
14070         (errmsg):  Move into ...
14071         (cuda_error): ... here.  Make smaller.
14072         (_XSTR, _STR): Delete.
14073         (cuda_synames): Delete.
14074         (verify_device_library): Delete.
14075         (nvptx_init): Don't call it.
14077 2015-07-28  Tom de Vries  <tom@codesourcery.com>
14079         * testsuite/libgomp.c/uns-outer-4.c: New test.
14081 2015-07-24  Cesar Philippidis  <cesar@codesourcery.com>
14083         * testsuite/libgomp.c/pr66714.c: New test.
14085 2015-07-22  Maxim Blumenthal  <maxim.blumenthal@intel.com>
14087         PR libgomp/66950
14088         * testsuite/libgomp.c/examples-4/simd-7.c (N): Change to 30 from 45.
14089         (fib_ref): New function.
14090         (fib): Correct corner cases in the recursion.
14091         (main): Replace the non-simd loop with fib_ref call.
14092         * testsuite/libgomp.fortran/examples-4/simd-7.f90: (fib_ref): New
14093         subroutine.
14094         (fibonacci): Lower the parameter N to 30.  Correct accordingly check
14095         for the last array element value.  Replace the non-simd loop with
14096         fib_ref call.  Remove redundant b_ref array.  Remove the comparison
14097         of the last array element with according Fibonacci sequence element.
14098         (fib): Correct corner cases in the recursion.
14100 2015-07-21  Nathan Sidwell  <nathan@codesourcery.com>
14102         * target.c (gomp_offload_image_to_device): Rename to ...
14103         (gomp_load_image_to_device): ... here.
14104         (GOMP_offload_register): Adjust call.
14105         (gomp_init_device): Likewise.
14106         (gomp_unload_image_from_device): New.  Broken out of ...
14107         (GOMP_offload_unregister): ... here.  Call it.
14108         (gomp_unload_device): New.
14109         * libgomp.h (gomp_unload_device): Declare.
14110         * oacc-init.c (acc_shutdown_1): Unload from device before deleting
14111         mem maps.
14113 2015-07-20  Nathan Sidwell  <nathan@codesourcery.com>
14115         * oacc-parallel.c (GOACC_parallel): Move variadic handling into
14116         wait=-specific if.
14117         (GOACC_enter_exit_data, GOACC_update): Use consistent num_waits
14118         !=0 condition.
14119         (goacc_waits): Move !num_waits handling to ...
14120         (GOACC_wait): ... here, the only caller that might have zero waits.
14122         * plugin/plugin-nvptx.c (struct targ_fn_descriptor): Move later.
14123         (struct ptx_image_data): Move earlier, add fns field.
14124         (struct ptx_device): Add images and image_lock fields.
14125         (ptx_images, ptx_image_lock): Delete.
14126         (nvptx_open_device): Initialize images and image_lock fields.
14127         (nvptx_close_device): Destroy image_lock.
14128         (GOMP_OFFLOAD_load_image): Register image to device-specific fields.
14129         (GOMP_OFFLOAD_unload_image): Unregister image from device-specific
14130         fields.
14132 2015-07-17  Nathan Sidwell  <nathan@codesourcery.com>
14134         * target.c (GOMP_offload_register): Use int for device type arg.
14135         (GOMP_offload_unregister): Likewise.
14137         * target.c (struct_offload_image_descr): Constify host_table.
14138         (gomp_offload_image_to_device): Likewise.
14139         (GOMP_offload_register, GOMP_offload_unregister): Likewise.
14141         * libgomp.h (gomp_device_descr): Constify target data arguments.
14142         * target.c (struct offload_image_descr): Constify target_data.
14143         (gomp_offload_image_to_device): Likewise.
14144         (GOMP_offload_register): Likewise.
14145         (GOMP_offload_unregister): Likewise.
14146         * plugin/plugin-host.c (GOMP_OFFLOAD_load_image,
14147         GOMP_OFFLOAD_unload_image): Constify target data.
14148         * plugin/plugin-nvptx.c (struct ptx_image_data): Constify target data.
14149         (GOMP_OFFLOAD_load_image, GOMP_OFFLOAD_unload_image): Likewise.
14151 2015-07-16  Nathan Sidwell  <nathan@codesourcery.com>
14153         * plugin/plugin-nvptx.c (link_ptx): Constify string argument.
14154         Workaround driver library const error.
14155         (struct nvptx_tdata, nvptx_tdata_t): New.
14156         (GOMP_OFFLOAD_load_image): Use struct for target_data's real
14157         type.
14159 2015-07-15  Maxim Blumenthal  <maxim.blumenthal@intel.com>
14161         * testsuite/libgomp.fortran/examples-4/simd-8.f90: (main): Change type
14162         of EPS parameter from integer to real.
14163         * testsuite/libgomp.fortran/examples-4/task_dep-5.f90: (check): Change
14164         type of EPS parameter from integer to real.
14166 2015-07-15  Sebastian Huber  <sebastian.huber@embedded-brains.de>
14168         * team.c (get_last_team): New.
14169         (gomp_new_team): Recycle last non-nested team if possible.
14170         (gomp_team_end): Move team work share list free lock destruction
14171         to ...
14172         (free_team): ... here.
14174 2015-07-14  Maxim Blumenthal  <maxim.blumenthal@intel.com>
14176         * testsuite/libgomp.c/examples-4/simd-3.c: (main): Change type of res
14177         and ref from int to double.  Replaced their comparison with
14178         an inequality of their difference and EPS.
14179         * testsuite/libgomp.c/examples-4/simd-8.c: (main): Replace the
14180         comparison of pri and a reference number with an inequality of their
14181         difference and EPS.
14182         * testsuite/libgomp.fortran/examples-4/simd-3.f90: (main): Replaced
14183         the comparison of sum and sum_ref with an inequality of their
14184         difference and EPS.
14185         * testsuite/libgomp.fortran/examples-4/simd-8.f90: (main): Replace
14186         the comparison of pri and a reference number with an inequality of
14187         their difference and EPS.
14189 2015-07-13  Maxim Blumenthal  <maxim.blumenthal@intel.com>
14191         * testsuite/libgomp.c++/examples-4/e.53.2.C: Renamed to...
14192         * testsuite/libgomp.c++/examples-4/declare_target-2.C: ...this.
14193         * testsuite/libgomp.c++/examples-4/e.51.5.C: Renamed to...
14194         * testsuite/libgomp.c++/examples-4/target_data-5.C: ...this.
14195         * testsuite/libgomp.c/examples-4/e.56.3.c: Renamed to...
14196         * testsuite/libgomp.c/examples-4/array_sections-3.c: ...this.
14197         * testsuite/libgomp.c/examples-4/e.56.4.c: Renamed to...
14198         * testsuite/libgomp.c/examples-4/array_sections-4.c: ...this.
14199         * testsuite/libgomp.c/examples-4/e.55.1.c: Renamed to...
14200         * testsuite/libgomp.c/examples-4/async_target-1.c: ...this.
14201         * testsuite/libgomp.c/examples-4/e.55.2.c: Renamed to...
14202         * testsuite/libgomp.c/examples-4/async_target-2.c: ...this.
14203         (vec_mult_ref): Remove v1 and v2 arguments, turn them into local
14204         variables.
14205         (vec_mult): Likewise.  Add #pragma omp taskwait.
14206         (main): Adjust caller.
14207         * testsuite/libgomp.c/examples-4/e.53.1.c: Renamed to...
14208         * testsuite/libgomp.c/examples-4/declare_target-1.c: ...this.
14209         * testsuite/libgomp.c/examples-4/e.53.3.c: Renamed to...
14210         * testsuite/libgomp.c/examples-4/declare_target-3.c: ...this.
14211         * testsuite/libgomp.c/examples-4/e.53.4.c: Renamed to...
14212         * testsuite/libgomp.c/examples-4/declare_target-4.c: ...this.
14213         * testsuite/libgomp.c/examples-4/e.53.5.c: Renamed to...
14214         * testsuite/libgomp.c/examples-4/declare_target-5.c: ...this.
14215         * testsuite/libgomp.c/examples-4/e.57.1.c: Renamed to...
14216         * testsuite/libgomp.c/examples-4/device-1.c: ...this.
14217         * testsuite/libgomp.c/examples-4/e.57.2.c: Renamed to...
14218         * testsuite/libgomp.c/examples-4/device-2.c: ...this.
14219         * testsuite/libgomp.c/examples-4/e.57.3.c: Renamed to...
14220         * testsuite/libgomp.c/examples-4/device-3.c: ...this.
14221         * testsuite/libgomp.c/examples-4/simd-1.c: New file.
14222         * testsuite/libgomp.c/examples-4/simd-2.c: New file.
14223         * testsuite/libgomp.c/examples-4/simd-3.c: New file.
14224         * testsuite/libgomp.c/examples-4/simd-4.c: New file.
14225         * testsuite/libgomp.c/examples-4/simd-5.c: New file.
14226         * testsuite/libgomp.c/examples-4/simd-6.c: New file.
14227         * testsuite/libgomp.c/examples-4/simd-7.c: New file.
14228         * testsuite/libgomp.c/examples-4/simd-8.c: New file.
14229         * testsuite/libgomp.c/examples-4/e.50.1.c: Renamed to...
14230         * testsuite/libgomp.c/examples-4/target-1.c: ...this.
14231         * testsuite/libgomp.c/examples-4/e.50.2.c: Renamed to...
14232         * testsuite/libgomp.c/examples-4/target-2.c: ...this.
14233         * testsuite/libgomp.c/examples-4/e.50.3.c: Renamed to...
14234         * testsuite/libgomp.c/examples-4/target-3.c: ...this.
14235         * testsuite/libgomp.c/examples-4/e.50.4.c: Renamed to...
14236         * testsuite/libgomp.c/examples-4/target-4.c: ...this.
14237         * testsuite/libgomp.c/examples-4/e.50.5.c: Renamed to...
14238         * testsuite/libgomp.c/examples-4/target-5.c: ...this.
14239         * testsuite/libgomp.c/examples-4/e.51.1.c: Renamed to...
14240         * testsuite/libgomp.c/examples-4/target_data-1.c: ...this.
14241         * testsuite/libgomp.c/examples-4/e.51.2.c: Renamed to...
14242         * testsuite/libgomp.c/examples-4/target_data-2.c: ...this.
14243         * testsuite/libgomp.c/examples-4/e.51.3.c: Renamed to...
14244         * testsuite/libgomp.c/examples-4/target_data-3.c: ...this.
14245         * testsuite/libgomp.c/examples-4/e.51.4.c: Renamed to...
14246         * testsuite/libgomp.c/examples-4/target_data-4.c: ...this.
14247         * testsuite/libgomp.c/examples-4/e.51.6.c: Renamed to...
14248         * testsuite/libgomp.c/examples-4/target_data-6.c: ...this.
14249         * testsuite/libgomp.c/examples-4/e.51.7.c: Renamed to...
14250         * testsuite/libgomp.c/examples-4/target_data-7.c: ...this.
14251         * testsuite/libgomp.c/examples-4/e.52.1.c: Renamed to...
14252         * testsuite/libgomp.c/examples-4/target_update-1.c: ...this.
14253         * testsuite/libgomp.c/examples-4/e.52.2.c: Renamed to...
14254         * testsuite/libgomp.c/examples-4/target_update-2.c: ...this.
14255         * testsuite/libgomp.c/examples-4/task_dep-1.c: New file.
14256         * testsuite/libgomp.c/examples-4/task_dep-2.c: New file.
14257         * testsuite/libgomp.c/examples-4/task_dep-3.c: New file.
14258         * testsuite/libgomp.c/examples-4/task_dep-4.c: New file.
14259         * testsuite/libgomp.c/examples-4/task_dep-5.c: New file.
14260         * testsuite/libgomp.c/examples-4/e.54.2.c: Renamed to...
14261         * testsuite/libgomp.c/examples-4/teams-2.c: ...this.
14262         * testsuite/libgomp.c/examples-4/e.54.3.c: Renamed to...
14263         * testsuite/libgomp.c/examples-4/teams-3.c: ...this.
14264         * testsuite/libgomp.c/examples-4/e.54.4.c: Renamed to...
14265         * testsuite/libgomp.c/examples-4/teams-4.c: ...this.
14266         * testsuite/libgomp.c/examples-4/e.54.5.c: Renamed to...
14267         * testsuite/libgomp.c/examples-4/teams-5.c: ...this.
14268         * testsuite/libgomp.c/examples-4/e.54.6.c: Renamed to...
14269         * testsuite/libgomp.c/examples-4/teams-6.c: ...this.
14270         * testsuite/libgomp.fortran/examples-4/e.56.3.f90: Renamed to...
14271         * testsuite/libgomp.fortran/examples-4/array_sections-3.f90: ...this.
14272         * testsuite/libgomp.fortran/examples-4/e.56.4.f90: Renamed to...
14273         * testsuite/libgomp.fortran/examples-4/array_sections-4.f90: ...this.
14274         * testsuite/libgomp.fortran/examples-4/e.55.1.f90: Renamed to...
14275         * testsuite/libgomp.fortran/examples-4/async_target-1.f90: ...this.
14276         * testsuite/libgomp.fortran/examples-4/e.55.2.f90: Renamed to...
14277         * testsuite/libgomp.fortran/examples-4/async_target-2.f90: ...this.
14278         (vec_mult): Add !$omp taskwait.
14279         * testsuite/libgomp.fortran/examples-4/e.53.1.f90: Renamed to...
14280         * testsuite/libgomp.fortran/examples-4/declare_target-1.f90: ...this.
14281         * testsuite/libgomp.fortran/examples-4/e.53.2.f90: Renamed to...
14282         * testsuite/libgomp.fortran/examples-4/declare_target-2.f90: ...this.
14283         * testsuite/libgomp.fortran/examples-4/e.53.3.f90: Renamed to...
14284         * testsuite/libgomp.fortran/examples-4/declare_target-3.f90: ...this.
14285         * testsuite/libgomp.fortran/examples-4/e.53.4.f90: Renamed to...
14286         * testsuite/libgomp.fortran/examples-4/declare_target-4.f90: ...this.
14287         * testsuite/libgomp.fortran/examples-4/e.53.5.f90: Renamed to...
14288         * testsuite/libgomp.fortran/examples-4/declare_target-5.f90: ...this.
14289         * testsuite/libgomp.fortran/examples-4/e.57.1.f90: Renamed to...
14290         * testsuite/libgomp.fortran/examples-4/device-1.f90: ...this.
14291         * testsuite/libgomp.fortran/examples-4/e.57.2.f90: Renamed to...
14292         * testsuite/libgomp.fortran/examples-4/device-2.f90: ...this.
14293         * testsuite/libgomp.fortran/examples-4/e.57.3.f90: Renamed to...
14294         * testsuite/libgomp.fortran/examples-4/device-3.f90: ...this.
14295         * testsuite/libgomp.fortran/examples-4/simd-1.f90: New file.
14296         * testsuite/libgomp.fortran/examples-4/simd-2.f90: New file.
14297         * testsuite/libgomp.fortran/examples-4/simd-3.f90: New file.
14298         * testsuite/libgomp.fortran/examples-4/simd-4.f90: New file.
14299         * testsuite/libgomp.fortran/examples-4/simd-5.f90: New file.
14300         * testsuite/libgomp.fortran/examples-4/simd-6.f90: New file.
14301         * testsuite/libgomp.fortran/examples-4/simd-7.f90: New file.
14302         * testsuite/libgomp.fortran/examples-4/simd-8.f90: New file.
14303         * testsuite/libgomp.fortran/examples-4/e.50.1.f90: Renamed to...
14304         * testsuite/libgomp.fortran/examples-4/target-1.f90: ...this.
14305         * testsuite/libgomp.fortran/examples-4/e.50.2.f90: Renamed to...
14306         * testsuite/libgomp.fortran/examples-4/target-2.f90: ...this.
14307         * testsuite/libgomp.fortran/examples-4/e.50.3.f90: Renamed to...
14308         * testsuite/libgomp.fortran/examples-4/target-3.f90: ...this.
14309         * testsuite/libgomp.fortran/examples-4/e.50.4.f90: Renamed to...
14310         * testsuite/libgomp.fortran/examples-4/target-4.f90: ...this.
14311         * testsuite/libgomp.fortran/examples-4/e.50.5.f90: Renamed to...
14312         * testsuite/libgomp.fortran/examples-4/target-5.f90: ...this.
14313         * testsuite/libgomp.fortran/examples-4/e.51.1.f90: Renamed to...
14314         * testsuite/libgomp.fortran/examples-4/target_data-1.f90: ...this.
14315         * testsuite/libgomp.fortran/examples-4/e.51.2.f90: Renamed to...
14316         * testsuite/libgomp.fortran/examples-4/target_data-2.f90: ...this.
14317         * testsuite/libgomp.fortran/examples-4/e.51.3.f90: Renamed to...
14318         * testsuite/libgomp.fortran/examples-4/target_data-3.f90: ...this.
14319         * testsuite/libgomp.fortran/examples-4/e.51.4.f90: Renamed to...
14320         * testsuite/libgomp.fortran/examples-4/target_data-4.f90: ...this.
14321         * testsuite/libgomp.fortran/examples-4/e.51.5.f90: Renamed to...
14322         * testsuite/libgomp.fortran/examples-4/target_data-5.f90: ...this.
14323         * testsuite/libgomp.fortran/examples-4/e.51.6.f90: Renamed to...
14324         * testsuite/libgomp.fortran/examples-4/target_data-6.f90: ...this.
14325         * testsuite/libgomp.fortran/examples-4/e.51.7.f90: Renamed to...
14326         * testsuite/libgomp.fortran/examples-4/target_data-7.f90: ...this.
14327         * testsuite/libgomp.fortran/examples-4/e.52.1.f90: Renamed to...
14328         * testsuite/libgomp.fortran/examples-4/target_update-1.f90: ...this.
14329         * testsuite/libgomp.fortran/examples-4/e.52.2.f90: Renamed to...
14330         * testsuite/libgomp.fortran/examples-4/target_update-2.f90: ...this.
14331         * testsuite/libgomp.fortran/examples-4/task_dep-1.f90: New file.
14332         * testsuite/libgomp.fortran/examples-4/task_dep-2.f90: New file.
14333         * testsuite/libgomp.fortran/examples-4/task_dep-3.f90: New file.
14334         * testsuite/libgomp.fortran/examples-4/task_dep-4.f90: New file.
14335         * testsuite/libgomp.fortran/examples-4/task_dep-5.f90: New file.
14336         * testsuite/libgomp.fortran/examples-4/e.54.2.f90: Renamed to...
14337         * testsuite/libgomp.fortran/examples-4/teams-2.f90: ...this.
14338         * testsuite/libgomp.fortran/examples-4/e.54.3.f90: Renamed to...
14339         * testsuite/libgomp.fortran/examples-4/teams-3.f90: ...this.
14340         * testsuite/libgomp.fortran/examples-4/e.54.4.f90: Renamed to...
14341         * testsuite/libgomp.fortran/examples-4/teams-4.f90: ...this.
14342         * testsuite/libgomp.fortran/examples-4/e.54.5.f90: Renamed to...
14343         * testsuite/libgomp.fortran/examples-4/teams-5.f90: ...this.
14344         * testsuite/libgomp.fortran/examples-4/e.54.6.f90: Renamed to...
14345         * testsuite/libgomp.fortran/examples-4/teams-6.f90: ...this.
14347 2015-07-10  Tom de Vries  <tom@codesourcery.com>
14349         * testsuite/libgomp.fortran/parloops-exit-first-loop-alt-2.f95: New test.
14350         * testsuite/libgomp.fortran/parloops-exit-first-loop-alt.f95: New test.
14352 2015-07-08  Thomas Schwinge  <thomas@codesourcery.com>
14354         PR libgomp/65099
14355         * plugin/plugin-nvptx.c (nvptx_get_num_devices): Return 0 if not
14356         in a 64-bit configuration.
14357         * testsuite/libgomp.oacc-c++/c++.exp: Don't attempt nvidia
14358         offloading testing if no such device is available.
14359         * testsuite/libgomp.oacc-c/c.exp: Likewise.
14360         * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
14362 2015-07-08  Tom de Vries  <tom@codesourcery.com>
14364         * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c (main): Fix
14365         second call to f.
14366         * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: Same.
14368 2015-07-07  Tom de Vries  <tom@codesourcery.com>
14370         PR tree-optimization/66642
14371         * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c (main): Test low
14372         iteration count case.
14373         * testsuite/libgomp.c/parloops-exit-first-loop-alt.c (init): New
14374         function, factor out of ...
14375         (main): ... here.  Test low iteration count case.
14377 2015-07-06  Sebastian Huber  <sebastian.huber@embedded-brains.de>
14379         * libgomp.h (gomp_thread_pool): Comment last_team field.
14381 2015-07-02  Uros Bizjak  <ubizjak@gmail.com>
14383         * testsuite/libgomp.c++/pr66702-1.C: Require
14384         vect_simd_clones effective target.
14385         * testsuite/libgomp.c++/pr66702-2.C: Ditto.
14387 2015-06-30  Tom de Vries  <tom@codesourcery.com>
14389         * testsuite/libgomp.oacc-c++/c++.exp: Set DEFAULT_CFLAGS to -O2 if not
14390         already set.  Use DEFAULT_CFLAGS in dg-runtest.
14391         * testsuite/libgomp.oacc-c-c++-common/collapse-3.c: Remove dg-options
14392         "-O2".
14394 2015-06-30  Tom de Vries  <tom@codesourcery.com>
14396         * testsuite/libgomp.c++/c++.exp: Set DEFAULT_CFLAGS to -O2 if not
14397         already set.  Use DEFAULT_CFLAGS in dg-runtest.
14398         * testsuite/libgomp.c++/atomic-16.C: Remove dg-options "-O2 -fopenmp".
14399         * testsuite/libgomp.c++/pr64824.C: Same.
14400         * testsuite/libgomp.c++/pr64868.C: Same.
14401         * testsuite/libgomp.c++/pr66199-1.C: Same.
14402         * testsuite/libgomp.c++/pr66199-2.C: Same.
14403         * testsuite/libgomp.c++/target-2.C: Same.
14404         * testsuite/libgomp.c++/for-7.C: Use dg-additional-options for
14405         -std=<standard> option.
14406         * testsuite/libgomp.c++/udr-11.C: Same.
14407         * testsuite/libgomp.c++/udr-12.C: Same.
14408         * testsuite/libgomp.c++/udr-13.C: Same.
14409         * testsuite/libgomp.c++/udr-14.C: Same.
14410         * testsuite/libgomp.c++/udr-15.C: Same.
14411         * testsuite/libgomp.c++/udr-16.C: Same.
14412         * testsuite/libgomp.c++/udr-17.C: Same.
14413         * testsuite/libgomp.c++/udr-18.C: Same.
14414         * testsuite/libgomp.c++/udr-19.C: Same.
14415         * testsuite/libgomp.c++/atomic-1.C: Remove dg-options "-O2".
14416         * testsuite/libgomp.c++/simd-1.C: Same.
14417         * testsuite/libgomp.c++/simd-2.C: Same.
14418         * testsuite/libgomp.c++/simd-3.C: Same.
14419         * testsuite/libgomp.c++/simd-4.C: Same.
14420         * testsuite/libgomp.c++/simd-5.C: Same.
14421         * testsuite/libgomp.c++/simd-6.C: Same.
14422         * testsuite/libgomp.c++/simd-7.C: Same.
14423         * testsuite/libgomp.c++/simd-8.C: Same.
14424         * testsuite/libgomp.c++/simd-9.C: Same.
14425         * testsuite/libgomp.c++/simd10.C: Same.
14426         * testsuite/libgomp.c++/simd11.C: Same.
14427         * testsuite/libgomp.c++/simd12.C: Same.
14428         * testsuite/libgomp.c++/simd13.C: Same.
14430 2015-06-30  Jakub Jelinek  <jakub@redhat.com>
14432         PR middle-end/66702
14433         * testsuite/libgomp.c++/pr66702-1.C: New test.
14434         * testsuite/libgomp.c++/pr66702-2.C: New test.
14436 2015-06-30  Tom de Vries  <tom@codesourcery.com>
14438         * testsuite/libgomp.c/parloops-exit-first-loop-alt-5.c: New test.
14439         * testsuite/libgomp.c/parloops-exit-first-loop-alt-6.c: New test.
14440         * testsuite/libgomp.c/parloops-exit-first-loop-alt-7.c: New test.
14441         * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: Update comment.
14443 2015-06-30  Tom de Vries  <tom@codesourcery.com>
14445         PR tree-optimization/66652
14446         * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c (f): Rewrite
14447         using restrict pointers.
14448         (main): Add arguments to calls to f.
14449         * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: Same.
14451 2015-06-23  Andreas Tobler  <andreast@gcc.gnu.org>
14453         * configure.ac: Fix check for header <sys/sysctl.h>.
14454         * configure: Regenerate.
14455         * config.h.in: Likewise.
14457 2015-06-23  Tom de Vries  <tom@codesourcery.com>
14459         * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c (main): Use
14460         abort.
14461         * testsuite/libgomp.c/parloops-exit-first-loop-alt-4.c (main): Same.
14463 2015-06-19  Thomas Schwinge  <thomas@codesourcery.com>
14465         * testsuite/libgomp.oacc-c-c++-common/lib-62.c: Only consider for
14466         acc_device_nvidia.
14468         PR libgomp/66518
14469         * testsuite/libgomp.oacc-c-c++-common/lib-3.c: XFAIL.
14470         * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
14472 2015-06-15  Tom de Vries  <tom@codesourcery.com>
14474         * testsuite/libgomp.c/atomic-1.c: Remove dg-options "-O2".  Use
14475         dg-additional-options for any remaining options.
14476         * testsuite/libgomp.c/atomic-2.c: Same.
14477         * testsuite/libgomp.c/atomic-4.c: Same.
14478         * testsuite/libgomp.c/atomic-5.c: Same.
14479         * testsuite/libgomp.c/atomic-6.c: Same.
14480         * testsuite/libgomp.c/autopar-1.c: Same.
14481         * testsuite/libgomp.c/copyin-1.c: Same.
14482         * testsuite/libgomp.c/copyin-2.c: Same.
14483         * testsuite/libgomp.c/copyin-3.c: Same.
14484         * testsuite/libgomp.c/examples-4/e.53.5.c: Same.
14485         * testsuite/libgomp.c/nestedfn-5.c: Same.
14486         * testsuite/libgomp.c/parloops-exit-first-loop-alt-2.c: Same.
14487         * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c: Same.
14488         * testsuite/libgomp.c/parloops-exit-first-loop-alt-4.c: Same.
14489         * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: Same.
14490         * testsuite/libgomp.c/pr32362-1.c: Same.
14491         * testsuite/libgomp.c/pr32362-2.c: Same.
14492         * testsuite/libgomp.c/pr32362-3.c: Same.
14493         * testsuite/libgomp.c/pr39591-1.c: Same.
14494         * testsuite/libgomp.c/pr39591-2.c: Same.
14495         * testsuite/libgomp.c/pr39591-3.c: Same.
14496         * testsuite/libgomp.c/pr58392.c: Same.
14497         * testsuite/libgomp.c/pr58756.c: Same.
14498         * testsuite/libgomp.c/simd-1.c: Same.
14499         * testsuite/libgomp.c/simd-10.c: Same.
14500         * testsuite/libgomp.c/simd-11.c: Same.
14501         * testsuite/libgomp.c/simd-12.c: Same.
14502         * testsuite/libgomp.c/simd-13.c: Same.
14503         * testsuite/libgomp.c/simd-14.c: Same.
14504         * testsuite/libgomp.c/simd-15.c: Same.
14505         * testsuite/libgomp.c/simd-2.c: Same.
14506         * testsuite/libgomp.c/simd-3.c: Same.
14507         * testsuite/libgomp.c/simd-4.c: Same.
14508         * testsuite/libgomp.c/simd-5.c: Same.
14509         * testsuite/libgomp.c/simd-6.c: Same.
14510         * testsuite/libgomp.c/simd-7.c: Same.
14511         * testsuite/libgomp.c/simd-8.c: Same.
14512         * testsuite/libgomp.c/simd-9.c: Same.
14514 2015-06-15  Tom de Vries  <tom@codesourcery.com>
14516         * testsuite/libgomp.c/pr35625.c: Fix typo.
14518 2015-06-15  Tom de Vries  <tom@codesourcery.com>
14520         * testsuite/libgomp.c/atomic-18.c: Remove superfluous -fopenmp setting
14521         in dg-options.
14522         * testsuite/libgomp.c/atomic-3.c: Same.
14523         * testsuite/libgomp.c/debug-1.c: Same.
14524         * testsuite/libgomp.c/nqueens-1.c: Same.
14525         * testsuite/libgomp.c/pr26171.c: Same.
14526         * testsuite/libgomp.c/pr48591.c: Same.
14527         * testsuite/libgomp.c/pr64824.c: Same.
14528         * testsuite/libgomp.c/pr64868.c: Same.
14529         * testsuite/libgomp.c/pr66133.c: Same.
14530         * testsuite/libgomp.c/pr66199-1.c: Same.
14531         * testsuite/libgomp.c/pr66199-2.c: Same.
14532         * testsuite/libgomp.c/target-8.c: Same.
14534 2015-06-15  Tom de Vries  <tom@codesourcery.com>
14536         * testsuite/libgomp.c/collapse-3.c: Use dg-additional-options for
14537         -std={gnu99,c99}.
14538         * testsuite/libgomp.c/for-1.c: Same.
14539         * testsuite/libgomp.c/for-2.c: Same.
14540         * testsuite/libgomp.c/for-3.c: Same.
14541         * testsuite/libgomp.c/pr35625.c: Same.
14542         * testsuite/libgomp.c/pr39154.c: Same.
14543         * testsuite/libgomp.c/simd-16.c: Same.
14544         * testsuite/libgomp.c/simd-17.c: Same.
14546 2015-06-13  Tom de Vries  <tom@codesourcery.com>
14548         * testsuite/libgomp.c/parloops-exit-first-loop-alt-4.c: New test.
14550 2015-06-13  Tom de Vries  <tom@codesourcery.com>
14552         * testsuite/libgomp.c/parloops-exit-first-loop-alt-2.c: Add comment.
14553         * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: Same.
14554         * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c: Add comment.
14555         (N): Define.
14556         (main): Use N instead of hardcoded constants.
14558 2015-06-05  Tom de Vries  <tom@codesourcery.com>
14560         merge from gomp4 branch:
14561         2015-05-28  Tom de Vries  <tom@codesourcery.com>
14563         PR tree-optimization/65443
14564         * testsuite/libgomp.c/parloops-exit-first-loop-alt-2.c: New test.
14565         * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c: New test.
14566         * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: New test.
14568 2015-05-29  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
14570         * testsuite/libgomp.graphite/bounds.c: Adjust for
14571         cleanup-tree-dump removal.
14572         * testsuite/libgomp.graphite/force-parallel-1.c: Likewise.
14573         * testsuite/libgomp.graphite/force-parallel-2.c: Likewise.
14574         * testsuite/libgomp.graphite/force-parallel-3.c: Likewise.
14575         * testsuite/libgomp.graphite/force-parallel-4.c: Likewise.
14576         * testsuite/libgomp.graphite/force-parallel-5.c: Likewise.
14577         * testsuite/libgomp.graphite/force-parallel-6.c: Likewise.
14578         * testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
14579         * testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
14580         * testsuite/libgomp.graphite/force-parallel-9.c: Likewise.
14581         * testsuite/libgomp.graphite/pr41118.c: Likewise.
14583 2015-05-28  Uros Bizjak  <ubizjak@gmail.com>
14585         * config/linux/x86/futex.h (sys_futex0) [!__x86_64__]: Remove function.
14586         (futex_wait) [!__x86_64__]: Use __asm operand instead of sys_futex0.
14587         (futex_wake) [!__x86_64__]: Ditto.
14589 2015-05-28  Julian Brown  <julian@codesourcery.com>
14591         * oacc-init.c (resolve_device): Add FAIL_IS_ERROR argument. Update
14592         function comment. Only call gomp_fatal if new argument is true.
14593         (acc_dev_num_out_of_range): New function.
14594         (acc_init_1, acc_shutdown_1): Update call to resolve_device. Call
14595         acc_dev_num_out_of_range as appropriate.
14596         (acc_get_num_devices, acc_set_device_type, acc_get_device_type)
14597         (acc_get_device_num, acc_set_device_num): Update calls to
14598         resolve_device.
14599         * testsuite/libgomp.oacc-c-c++-common/lib-4.c: Update expected test
14600         output.
14602 2015-05-28  Julian Brown  <julian@codesourcery.com>
14604         PR libgomp/65742
14605         * oacc-init.c (plugin/plugin-host.h): Include.
14606         (acc_on_device): Check whether we're in an offloaded region for
14607         host_nonshm
14608         plugin. Don't use __builtin_acc_on_device.
14609         * plugin/plugin-host.c (GOMP_OFFLOAD_openacc_parallel): Set
14610         nonshm_exec flag in thread-local data.
14611         (GOMP_OFFLOAD_openacc_create_thread_data): Allocate thread-local
14612         data for host_nonshm plugin.
14613         (GOMP_OFFLOAD_openacc_destroy_thread_data): Free thread-local data
14614         for host_nonshm plugin.
14615         * plugin/plugin-host.h: New.
14617 2015-05-27  Uros Bizjak  <ubizjak@gmail.com>
14619         * config/linux/ia64/futex.h (sys_futex0) Change operand "op" to int.
14621 2015-05-27  Uros Bizjak  <ubizjak@gmail.com>
14623         * config/linux/wait.h (gomp_futex_wait, gomp_futex_wake):
14624         Declare as int.
14625         (FUTEX_PRIVATE_FLAG): Remove L suffix.
14626         * config/linux/mutex.c (gomp_futex_wait, gomp_futex_wake):
14627         Declare as int.
14629 2015-05-27  Uros Bizjak  <ubizjak@gmail.com>
14631         * config/linux/x86/futex.h (sys_futex0) [__PIC__]: Remove function.
14633 2015-05-27  Chung-Lin Tang  <cltang@codesourcery.com>
14635         * target.c (gomp_map_pointer): New function abstracting out
14636         GOMP_MAP_POINTER handling.
14637         (gomp_map_vars): Remove GOMP_MAP_POINTER handling code and use
14638         gomp_map_pointer().
14640 2015-05-19  Jakub Jelinek  <jakub@redhat.com>
14642         PR middle-end/66199
14643         * testsuite/libgomp.c/pr66199-1.c: New test.
14644         * testsuite/libgomp.c/pr66199-2.c: New test.
14645         * testsuite/libgomp.c++/pr66199-1.C: New test.
14646         * testsuite/libgomp.c++/pr66199-2.C: New test.
14647         * testsuite/libgomp.fortran/pr66199-1.f90: New test.
14648         * testsuite/libgomp.fortran/pr66199-2.f90: New test.
14650 2015-05-19  Julian Brown  <julian@codesourcery.com>
14652         * plugin/plugin-nvptx.c (nvptx_get_num_devices): Return zero
14653         on cuInit failure.
14655 2015-05-13  Jakub Jelinek  <jakub@redhat.com>
14657         PR middle-end/66133
14658         * testsuite/libgomp.c/pr66133.c: New test.
14660 2015-05-13  Michael Haubenwallner  <michael.haubenwallner@ssi-schaefer.com>
14662         * Makefile.in: Regenerated with automake-1.11.6.
14663         * aclocal.m4: Likewise.
14664         * config.h.in: Likewise.
14665         * configure: Likewise.
14666         * testsuite/Makefile.in: Likewise.
14668 2015-05-08  Jason Merrill  <jason@redhat.com>
14670         * testsuite/libgomp.oacc-c-c++-common/reduction-4.c (main): Use
14671         _Complex.
14673         * openacc.h (__GOACC_NOTHROW): Fix noexcept syntax.
14675 2015-05-06  Julian Brown  <julian@codesourcery.com>
14677         * oacc-init.c (acc_device_lock): Add explanatory comment.
14678         (resolve_device): Add comment about locking requirement.
14679         (acc_init_1, acc_shutdown_1): Likewise. Add locking around
14680         gomp_init_device and gomp_fini_device calls.
14681         (acc_get_num_devices, acc_set_device_type, acc_get_device_type)
14682         (acc_get_device_num, acc_set_device_num): Add locking around
14683         resolve_device and gomp_init_device calls.
14685 2015-05-06  Julian Brown  <julian@codesourcery.com>
14687         * oacc-init.c (acc_shutdown_1): Call gomp_mutex_unlock for
14688         goacc_thread_lock on error paths.
14689         * oacc-mem.c (lookup_host): Remove locking from function. Note
14690         locking requirement for caller in function comment.
14691         (lookup_dev): Likewise.
14692         (acc_free, acc_deviceptr, acc_hostptr, acc_is_present)
14693         (acc_map_data, acc_unmap_data, present_create_copy, delete_copyout)
14694         (update_dev_host, gomp_acc_insert_pointer, gomp_acc_remove_pointer):
14695         Add locking.
14697 2015-05-05  Thomas Schwinge  <thomas@codesourcery.com>
14699         PR testsuite/65205
14700         PR libgomp/65993
14701         * testsuite/libgomp.oacc-c-c++-common/clauses-2.c: In dg-output,
14702         don't expect "0x" prefix for "%p" format specifier, don't expect
14703         "(nil)" for NULL pointer.
14704         * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
14705         * testsuite/libgomp.oacc-c-c++-common/lib-17.c: Likewise.
14706         * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
14707         * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
14708         * testsuite/libgomp.oacc-c-c++-common/lib-21.c: Likewise.
14709         * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Likewise.
14710         * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
14711         * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
14712         * testsuite/libgomp.oacc-c-c++-common/lib-26.c: Likewise.
14713         * testsuite/libgomp.oacc-c-c++-common/lib-27.c: Likewise.
14714         * testsuite/libgomp.oacc-c-c++-common/lib-28.c: Likewise.
14715         * testsuite/libgomp.oacc-c-c++-common/lib-29.c: Likewise.
14716         * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
14717         * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
14718         * testsuite/libgomp.oacc-c-c++-common/lib-35.c: Likewise.
14719         * testsuite/libgomp.oacc-c-c++-common/lib-36.c: Likewise.
14720         * testsuite/libgomp.oacc-c-c++-common/lib-39.c: Likewise.
14721         * testsuite/libgomp.oacc-c-c++-common/lib-40.c: Likewise.
14722         * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
14723         * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Likewise.
14724         * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
14725         * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Likewise.
14726         * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
14727         * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Likewise.
14728         * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
14729         * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
14730         * testsuite/libgomp.oacc-c-c++-common/lib-57.c: Likewise.
14731         * testsuite/libgomp.oacc-c-c++-common/lib-58.c: Likewise.
14732         * testsuite/libgomp.oacc-c-c++-common/data-already-1.c: More
14733         accurately specify what we're looking for.
14734         * testsuite/libgomp.oacc-c-c++-common/data-already-2.c: Likewise.
14735         * testsuite/libgomp.oacc-c-c++-common/data-already-8.c: Likewise.
14736         * testsuite/libgomp.oacc-fortran/data-already-1.f: Likewise.
14737         * testsuite/libgomp.oacc-fortran/data-already-2.f: Likewise.
14738         * testsuite/libgomp.oacc-fortran/data-already-8.f: Likewise.
14740 2015-04-30  James Norris  <jnorris@codesourcery.com>
14742         PR testsuite/65205
14743         * testsuite/lib/libgomp.exp
14744         (check_effective_target_openacc_host_selected)
14745         (check_effective_target_openacc_host_nonshm_selected): New
14746         procedures.
14747         * testsuite/libgomp.oacc-c-c++-common/clauses-2.c: Fix misuse of
14748         dg-shouldfail.
14749         * testsuite/libgomp.oacc-c-c++-common/lib-1.c: Likewise.
14750         * testsuite/libgomp.oacc-c-c++-common/lib-11.c: Likewise.
14751         * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
14752         * testsuite/libgomp.oacc-c-c++-common/lib-17.c: Likewise.
14753         * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
14754         * testsuite/libgomp.oacc-c-c++-common/lib-2.c: Likewise.
14755         * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
14756         * testsuite/libgomp.oacc-c-c++-common/lib-21.c: Likewise.
14757         * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Likewise.
14758         * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
14759         * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
14760         * testsuite/libgomp.oacc-c-c++-common/lib-26.c: Likewise.
14761         * testsuite/libgomp.oacc-c-c++-common/lib-27.c: Likewise.
14762         * testsuite/libgomp.oacc-c-c++-common/lib-28.c: Likewise.
14763         * testsuite/libgomp.oacc-c-c++-common/lib-29.c: Likewise.
14764         * testsuite/libgomp.oacc-c-c++-common/lib-3.c: Likewise.
14765         * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
14766         * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
14767         * testsuite/libgomp.oacc-c-c++-common/lib-35.c: Likewise.
14768         * testsuite/libgomp.oacc-c-c++-common/lib-36.c: Likewise.
14769         * testsuite/libgomp.oacc-c-c++-common/lib-39.c: Likewise.
14770         * testsuite/libgomp.oacc-c-c++-common/lib-4.c: Likewise.
14771         * testsuite/libgomp.oacc-c-c++-common/lib-40.c: Likewise.
14772         * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
14773         * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Likewise.
14774         * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
14775         * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Likewise.
14776         * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
14777         * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Likewise.
14778         * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
14779         * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
14780         * testsuite/libgomp.oacc-c-c++-common/lib-57.c: Likewise.
14781         * testsuite/libgomp.oacc-c-c++-common/lib-58.c: Likewise.
14782         * testsuite/libgomp.oacc-c-c++-common/lib-62.c: Likewise.
14783         * testsuite/libgomp.oacc-c-c++-common/lib-63.c: Likewise.
14784         * testsuite/libgomp.oacc-c-c++-common/lib-64.c: Likewise.
14785         * testsuite/libgomp.oacc-c-c++-common/lib-65.c: Likewise.
14786         * testsuite/libgomp.oacc-c-c++-common/lib-67.c: Likewise.
14787         * testsuite/libgomp.oacc-c-c++-common/lib-68.c: Likewise.
14788         * testsuite/libgomp.oacc-c-c++-common/lib-71.c: Likewise.
14789         * testsuite/libgomp.oacc-c-c++-common/lib-77.c: Likewise.
14790         * testsuite/libgomp.oacc-c-c++-common/lib-80.c: Likewise.
14791         * testsuite/libgomp.oacc-c-c++-common/present-1.c: Likewise.
14793 2015-04-08  Julian Brown  <julian@codesourcery.com>
14795         * libgomp.h (target_mem_desc: Remove mem_map field.
14796         (acc_dispatch_t): Remove open_device_func, close_device_func,
14797         get_device_num_func, set_device_num_func, target_data members.
14798         Change create_thread_data_func argument to device number instead of
14799         generic pointer.
14800         * oacc-async.c (assert.h): Include.
14801         (acc_async_test, acc_async_test_all, acc_wait, acc_wait_async)
14802         (acc_wait_all, acc_wait_all_async): Use current host thread's
14803         active device, not base_dev.
14804         * oacc-cuda.c (acc_get_current_cuda_device)
14805         (acc_get_current_cuda_context, acc_get_cuda_stream)
14806         (acc_set_cuda_stream): Likewise.
14807         * oacc-host.c (host_dispatch): Don't set open_device_func,
14808         close_device_func, get_device_num_func or set_device_num_func.
14809         * oacc-init.c (base_dev, init_key): Remove.
14810         (cached_base_dev): New.
14811         (name_of_acc_device_t): New.
14812         (acc_init_1): Initialise default-numbered device, not zeroth.
14813         (acc_shutdown_1): Close all devices of a given type.
14814         (goacc_destroy_thread): Don't use base_dev.
14815         (lazy_open, lazy_init, lazy_init_and_open): Remove.
14816         (goacc_attach_host_thread_to_device): New.
14817         (acc_init): Reimplement with goacc_attach_host_thread_to_device.
14818         (acc_get_num_devices): Don't use base_dev.
14819         (acc_set_device_type): Reimplement.
14820         (acc_get_device_type): Don't use base_dev.
14821         (acc_get_device_num): Tweak logic.
14822         (acc_set_device_num): Likewise.
14823         (acc_on_device): Use acc_get_device_type.
14824         (goacc_runtime_initialize): Initialize cached_base_dev not base_dev.
14825         (goacc_lazy_initialize): Reimplement with acc_init and
14826         goacc_attach_host_thread_to_device.
14827         * oacc-int.h (goacc_thread): Add base_dev field.
14828         (base_dev): Remove extern declaration.
14829         (goacc_attach_host_thread_to_device): Add prototype.
14830         * oacc-mem.c (acc_malloc): Use current thread's device instead of
14831         base_dev.
14832         (acc_free): Likewise.
14833         (acc_memcpy_to_device): Likewise.
14834         (acc_memcpy_from_device): Likewise.
14835         * oacc-parallel.c (select_acc_device): Remove. Replace calls with
14836         goacc_lazy_initialize (throughout).
14837         (GOACC_parallel): Use tgt_offset to locate target functions.
14838         * target.c (gomp_map_vars): Don't set tgt->mem_map.
14839         (gomp_unmap_vars): Use devicep->mem_map pointer not tgt->mem_map.
14840         (gomp_load_plugin_for_device): Remove open_device, close_device,
14841         get_device_num, set_device_num openacc hook initialisation. Don't set
14842         openacc.target_data.
14843         * plugin/plugin-host.c (GOMP_OFFLOAD_openacc_open_device)
14844         (GOMP_OFFLOAD_openacc_close_device)
14845         (GOMP_OFFLOAD_openacc_get_device_num)
14846         (GOMP_OFFLOAD_openacc_set_device_num): Remove.
14847         (GOMP_OFFLOAD_openacc_create_thread_data): Change (unused) argument
14848         to int.
14849         * plugin/plugin-nvptx.c (ptx_inited): Remove.
14850         (instantiated_devices, ptx_dev_lock): New.
14851         (struct ptx_image_data): New.
14852         (ptx_devices, ptx_images, ptx_image_lock): New.
14853         (fini_streams_for_device): Reorder cuStreamDestroy call.
14854         (nvptx_get_num_devices): Remove forward declaration.
14855         (nvptx_init): Change return type to bool.
14856         (nvptx_fini): Remove.
14857         (nvptx_attach_host_thread_to_device): New.
14858         (nvptx_open_device): Return struct ptx_device* instead of void*.
14859         (nvptx_close_device): Change argument type to struct ptx_device*,
14860         return type to void.
14861         (nvptx_get_num_devices): Use instantiated_devices not ptx_inited.
14862         (kernel_target_data, kernel_host_table): Remove static globals.
14863         (GOMP_OFFLOAD_register_image, GOMP_OFFLOAD_get_table): Remove.
14864         (GOMP_OFFLOAD_init_device): Reimplement.
14865         (GOMP_OFFLOAD_fini_device): Likewise.
14866         (GOMP_OFFLOAD_load_image, GOMP_OFFLOAD_unload_image): New.
14867         (GOMP_OFFLOAD_alloc, GOMP_OFFLOAD_free, GOMP_OFFLOAD_dev2host)
14868         (GOMP_OFFLOAD_host2dev): Use ORD argument.
14869         (GOMP_OFFLOAD_openacc_open_device)
14870         (GOMP_OFFLOAD_openacc_close_device)
14871         (GOMP_OFFLOAD_openacc_set_device_num)
14872         (GOMP_OFFLOAD_openacc_get_device_num): Remove.
14873         (GOMP_OFFLOAD_openacc_create_thread_data): Change argument to int
14874         (device number).
14876         testsuite/
14877         * libgomp.oacc-c-c++-common/lib-9.c: Fix devnum check in test.
14879 2015-04-06  Ilya Verbin  <ilya.verbin@intel.com>
14881         * libgomp-plugin.h (struct mapping_table): Replace with addr_pair.
14882         * libgomp.h (struct gomp_memory_mapping): Remove.
14883         (struct target_mem_desc): Change type of mem_map from
14884         gomp_memory_mapping * to splay_tree_s *.
14885         (struct gomp_device_descr): Remove register_image_func, get_table_func.
14886         Add load_image_func, unload_image_func.
14887         Change type of mem_map from gomp_memory_mapping to splay_tree_s.
14888         Remove offload_regions_registered.
14889         (gomp_init_tables): Remove.
14890         (gomp_free_memmap): Change type of argument from gomp_memory_mapping *
14891         to splay_tree_s *.
14892         * libgomp.map (GOMP_4.0.1): Add GOMP_offload_unregister.
14893         * oacc-host.c (host_dispatch): Do not initialize register_image_func,
14894         get_table_func, mem_map.is_initialized, mem_map.splay_tree.root,
14895         offload_regions_registered.
14896         Initialize load_image_func, unload_image_func, mem_map.root.
14897         (goacc_host_init): Do not initialize host_dispatch.mem_map.lock.
14898         * oacc-init.c (lazy_open): Don't call gomp_init_tables.
14899         (acc_shutdown_1): Use dev's lock and splay_tree instead of mem_map's.
14900         * oacc-mem.c (lookup_host): Get gomp_device_descr *dev instead of
14901         gomp_memory_mapping *.  Use dev's lock and splay_tree.
14902         (lookup_dev): Use dev's lock.
14903         (acc_deviceptr): Pass dev to lookup_host instead of mem_map.
14904         (acc_is_present): Likewise.
14905         (acc_map_data): Likewise.
14906         (acc_unmap_data): Likewise.  Use dev's lock.
14907         (present_create_copy): Likewise.
14908         (delete_copyout): Pass dev to lookup_host instead of mem_map.
14909         (update_dev_host): Likewise.
14910         (gomp_acc_remove_pointer): Likewise.  Use dev's lock.
14911         * oacc-parallel.c (GOACC_parallel): Use dev's lock and splay_tree.
14912         * plugin/plugin-host.c (GOMP_OFFLOAD_register_image): Remove.
14913         (GOMP_OFFLOAD_get_table): Remove
14914         (GOMP_OFFLOAD_load_image): New function.
14915         (GOMP_OFFLOAD_unload_image): New function.
14916         * target.c (register_lock): New mutex for offload image registration.
14917         (num_devices): Do not guard with PLUGIN_SUPPORT.
14918         (gomp_realloc_unlock): New static function.
14919         (gomp_map_vars_existing): Add device descriptor argument.  Unlock mutex
14920         before gomp_fatal.
14921         (gomp_map_vars): Use dev's lock and splay_tree instead of mem_map's.
14922         Pass devicep to gomp_map_vars_existing.  Unlock mutex before gomp_fatal.
14923         (gomp_copy_from_async): Use dev's lock and splay_tree instead of
14924         mem_map's.
14925         (gomp_unmap_vars): Likewise.
14926         (gomp_update): Remove gomp_memory_mapping argument.  Use dev's lock and
14927         splay_tree instead of mm's.  Unlock mutex before gomp_fatal.
14928         (gomp_offload_image_to_device): New static function.
14929         (GOMP_offload_register): Add mutex lock.
14930         Call gomp_offload_image_to_device for all initialized devices.
14931         Replace gomp_realloc with gomp_realloc_unlock.
14932         (GOMP_offload_unregister): New function.
14933         (gomp_init_tables): Replace with gomp_init_device.  Replace a call to
14934         get_table_func from the plugin with calls to init_device_func and
14935         gomp_offload_image_to_device.
14936         (gomp_free_memmap): Change type of argument from gomp_memory_mapping *
14937         to splay_tree_s *.
14938         (GOMP_target): Do not call gomp_init_tables.  Use dev's lock and
14939         splay_tree instead of mem_map's.  Unlock mutex before gomp_fatal.
14940         (GOMP_target_data): Do not call gomp_init_tables.
14941         (GOMP_target_update): Likewise.  Remove argument from gomp_update.
14942         (gomp_load_plugin_for_device): Replace register_image and get_table
14943         with load_image and unload_image in DLSYM ().
14944         (gomp_register_images_for_device): Remove function.
14945         (gomp_target_init): Do not initialize current_device.mem_map.*,
14946         current_device.offload_regions_registered.
14947         Remove call to gomp_register_images_for_device.
14948         Do not free offload_images and num_offload_images.
14950 2015-03-30  Jakub Jelinek  <jakub@redhat.com>
14952         PR fortran/65597
14953         * testsuite/libgomp.fortran/pr65597.f90: New test.
14955 2015-03-27  Tom de Vries  <tom@codesourcery.com>
14957         PR testsuite/65594
14958         * testsuite/libgomp.graphite/force-parallel-6.c (abort): Declare.
14959         (init, check): New function.
14960         (foo): Change return type to void.
14961         (main): Call init and check.
14963 2015-03-27  Tom de Vries  <tom@codesourcery.com>
14965         PR testsuite/65594
14966         * testsuite/libgomp.graphite/force-parallel-6.c (M): Define.
14967         (foo): Use M for non-inner loops to scale down test-case.
14969 2015-03-25  Kai Tietz  <ktietz@redhat.com>
14971         PR libgomp/64972
14972         * oacc-parallel.c (GOACC_parallel): Use PRIu64 if available.
14973         (GOACC_data_start): Likewise.
14974         * target.c (gomp_map_vars): Likewise.
14976 2015-03-21  John David Anglin  <danglin@gcc.gnu.org>
14978         * testsuite/libgomp.oacc-c-c++-common/reduction-4.c: Don't run on
14979         hppa*-*-hpux*.
14981 2015-03-19  Jakub Jelinek  <jakub@redhat.com>
14983         * testsuite/libgomp.c/target-10.c: New test.
14984         * testsuite/libgomp.c++/target-4.C: New test.
14986 2015-03-13  Ilya Verbin  <ilya.verbin@intel.com>
14988         * testsuite/libgomp.fortran/declare-target-1.f90: New test.
14989         * testsuite/libgomp.fortran/declare-target-2.f90: New file.
14991 2015-03-13  Sebastian Huber  <sebastian.huber@embedded-brains.de>
14993         * configure.tgt (*-*-rtems*): Use local-exec TLS model.
14994         * configure.ac (*-*-rtems*): Assume Pthread is supported.
14995         (pthread.h): Check for this header file.
14996         * configure: Regenerate.
14998 2015-02-25  Tom de Vries  <tom@codesourcery.com>
15000         * testsuite/libgomp.oacc-c-c++-common/reduction-1.c (DO_PRAGMA)
15001         (check_reduction_op, check_reduction_macro, max, min):
15002         Declare.
15003         (test_reductions_int, test_reductions_minmax, test_reductions_bool): New
15004         function.
15005         (main): Use new functions.
15007 2015-02-18  Ilya Tocar  <ilya.tocar@intel.com>
15009         * target.c (gomp_load_plugin_for_device): Use const char * instead of
15010         char * for variables holding dlerror return values.
15011         (DLSYM_OPT): Ditto.
15013 2015-02-17  Thomas Schwinge  <thomas@codesourcery.com>
15015         * libgomp-plugin.c (GOMP_PLUGIN_debug): Fix typo.
15017 2015-02-17  Thomas Schwinge  <thomas@codesourcery.com>
15018             Cesar Philippidis  <cesar@codesourcery.com>
15020         * oacc-ptx.h (GOACC_INTERNAL_PTX): Add GOACC_tid, GOACC_ntid,
15021         GOACC_ctaid, and GOACC_nctaid routines.
15023 2015-02-11  Jakub Jelinek  <jakub@redhat.com>
15025         PR c/64824
15026         * testsuite/libgomp.c/atomic-18.c: New test.
15027         * testsuite/libgomp.c++/atomic-16.C: New test.
15029 2015-02-04  Jakub Jelinek  <jakub@redhat.com>
15031         PR c/64824
15032         PR c/64868
15033         * testsuite/libgomp.c/pr64824.c: New test.
15034         * testsuite/libgomp.c/pr64868.c: New test.
15035         * testsuite/libgomp.c++/pr64824.C: New test.
15036         * testsuite/libgomp.c++/pr64868.C: New test.
15038 2015-02-01  David Edelsohn  <dje.gcc@gmail.com>
15040         PR libgomp/64635
15041         * configure.tgt (*-*-aix*): Use standard posix plugin-suffix.h.
15042         Link with -lpthread.
15043         * config/aix/plugin-suffix.h: Delete.
15045 2015-01-28  Jack Howarth  <howarth.at.gcc@gmail.com>
15047         PR libgomp/64635
15048         * configure.tgt (*-*-aix*): Use config_path "aix posix".
15049         (*-*-darwin*): Use config_path "bsd darwin posix".
15050         (*-*-hpux*): Use config_path "hpux posix".
15051         * target.c: Add include of plugin-suffix.h and use
15052         SONAME_SUFFIX macro.
15053         * config/aix/plugin-suffix.h: New file.
15054         * config/darwin/plugin-suffix.h: New file.
15055         * config/hpux/plugin-suffix.h: New file.
15056         * config/posix/plugin-suffix.h: New file.
15058 2015-01-23  Jakub Jelinek  <jakub@redhat.com>
15060         PR middle-end/64734
15061         * libgomp.c/pr64734.c: New test.
15063 2015-01-23  Tom de Vries  <tom@codesourcery.com>
15065         PR libgomp/64672
15066         * testsuite/libgomp.oacc-c-c++-common/abort-5.c: New test.
15068 2015-01-23  Tom de Vries  <tom@codesourcery.com>
15070         PR libgomp/64707
15071         * testsuite/libgomp.c/target-9.c: Add -ftree-parallelize-loops=0 to
15072         dg-options.
15074 2015-01-19  Thomas Schwinge  <thomas@codesourcery.com>
15076         PR libgomp/64625
15077         * libgomp_g.h (GOACC_data_start, GOACC_enter_exit_data)
15078         (GOACC_parallel, GOACC_update): Remove const_void *offload_table
15079         formal parameter.  Update all users.
15080         * target.c (GOMP_target, GOMP_target_data, GOMP_target_update):
15081         Document unused formal parameter.
15083 2015-01-16  Thomas Schwinge  <thomas@codesourcery.com>
15085         * oacc-parallel.c: Don't include <alloca.h>.
15086         (GOACC_parallel): Use gomp_alloca instead of alloca.
15088 2015-01-16  Gerald Pfeifer  <gerald@pfeifer.com>
15090         * target.c (num_devices): Guard with PLUGIN_SUPPORT.
15092 2015-01-15  Thomas Schwinge  <thomas@codesourcery.com>
15093             James Norris  <jnorris@codesourcery.com>
15094             Tom de Vries  <tom@codesourcery.com>
15095             Julian Brown  <julian@codesourcery.com>
15096             Cesar Philippidis  <cesar@codesourcery.com>
15097             Nathan Sidwell  <nathan@codesourcery.com>
15098             Tobias Burnus  <burnus@net-b.de>
15100         * Makefile.am (search_path): Add $(top_srcdir)/../include.
15101         (libgomp_la_SOURCES): Add splay-tree.c, libgomp-plugin.c,
15102         oacc-parallel.c, oacc-host.c, oacc-init.c, oacc-mem.c,
15103         oacc-async.c, oacc-plugin.c, oacc-cuda.c.
15104         [USE_FORTRAN] (libgomp_la_SOURCES): Add openacc.f90.
15105         Include $(top_srcdir)/plugin/Makefrag.am.
15106         (nodist_libsubinclude_HEADERS): Add openacc.h.
15107         [USE_FORTRAN] (nodist_finclude_HEADERS): Add openacc_lib.h,
15108         openacc.f90, openacc.mod, openacc_kinds.mod.
15109         (omp_lib.mod): Generalize into...
15110         (%.mod): ... this new rule.
15111         (openacc_kinds.mod, openacc.mod): New rules.
15112         * plugin/configfrag.ac: New file.
15113         * configure.ac: Move plugin/offloading support into it.  Include
15114         it.  Instantiate testsuite/libgomp-test-support.pt.exp.
15115         * plugin/Makefrag.am: New file.
15116         * testsuite/Makefile.am (OFFLOAD_TARGETS)
15117         (OFFLOAD_ADDITIONAL_OPTIONS, OFFLOAD_ADDITIONAL_LIB_PATHS): Don't
15118         export.
15119         (libgomp-test-support.exp): New rule.
15120         (all-local): Depend on it.
15121         * Makefile.in: Regenerate.
15122         * testsuite/Makefile.in: Regenerate.
15123         * config.h.in: Likewise.
15124         * configure: Likewise.
15125         * configure.tgt: Harden shell syntax.
15126         * env.c: Include "oacc-int.h".
15127         (parse_acc_device_type): New function.
15128         (gomp_debug_var, goacc_device_type, goacc_device_num): New
15129         variables.
15130         (initialize_env): Initialize those.  Call
15131         goacc_runtime_initialize.
15132         * error.c (gomp_vdebug, gomp_debug, gomp_vfatal): New functions.
15133         (gomp_fatal): Call gomp_vfatal.
15134         * libgomp.h: Include "libgomp-plugin.h" and <stdarg.h>.
15135         (gomp_debug_var, goacc_device_type, goacc_device_num, gomp_vdebug)
15136         (gomp_debug, gomp_verror, gomp_vfatal, gomp_init_targets_once)
15137         (splay_tree_node, splay_tree, splay_tree_key)
15138         (struct target_mem_desc, struct splay_tree_key_s)
15139         (struct gomp_memory_mapping, struct acc_dispatch_t)
15140         (struct gomp_device_descr, gomp_acc_insert_pointer)
15141         (gomp_acc_remove_pointer, target_mem_desc, gomp_copy_from_async)
15142         (gomp_unmap_vars, gomp_init_device, gomp_init_tables)
15143         (gomp_free_memmap, gomp_fini_device): New declarations.
15144         (gomp_vdebug, gomp_debug): New macros.
15145         Include "splay-tree.h".
15146         * libgomp.map (OACC_2.0): New symbol version.  Use for
15147         acc_get_num_devices, acc_get_num_devices_h_, acc_set_device_type,
15148         acc_set_device_type_h_, acc_get_device_type,
15149         acc_get_device_type_h_, acc_set_device_num, acc_set_device_num_h_,
15150         acc_get_device_num, acc_get_device_num_h_, acc_async_test,
15151         acc_async_test_h_, acc_async_test_all, acc_async_test_all_h_,
15152         acc_wait, acc_wait_h_, acc_wait_async, acc_wait_async_h_,
15153         acc_wait_all, acc_wait_all_h_, acc_wait_all_async,
15154         acc_wait_all_async_h_, acc_init, acc_init_h_, acc_shutdown,
15155         acc_shutdown_h_, acc_on_device, acc_on_device_h_, acc_malloc,
15156         acc_free, acc_copyin, acc_copyin_32_h_, acc_copyin_64_h_,
15157         acc_copyin_array_h_, acc_present_or_copyin,
15158         acc_present_or_copyin_32_h_, acc_present_or_copyin_64_h_,
15159         acc_present_or_copyin_array_h_, acc_create, acc_create_32_h_,
15160         acc_create_64_h_, acc_create_array_h_, acc_present_or_create,
15161         acc_present_or_create_32_h_, acc_present_or_create_64_h_,
15162         acc_present_or_create_array_h_, acc_copyout, acc_copyout_32_h_,
15163         acc_copyout_64_h_, acc_copyout_array_h_, acc_delete,
15164         acc_delete_32_h_, acc_delete_64_h_, acc_delete_array_h_,
15165         acc_update_device, acc_update_device_32_h_,
15166         acc_update_device_64_h_, acc_update_device_array_h_,
15167         acc_update_self, acc_update_self_32_h_, acc_update_self_64_h_,
15168         acc_update_self_array_h_, acc_map_data, acc_unmap_data,
15169         acc_deviceptr, acc_hostptr, acc_is_present, acc_is_present_32_h_,
15170         acc_is_present_64_h_, acc_is_present_array_h_,
15171         acc_memcpy_to_device, acc_memcpy_from_device,
15172         acc_get_current_cuda_device, acc_get_current_cuda_context,
15173         acc_get_cuda_stream, acc_set_cuda_stream.
15174         (GOACC_2.0): New symbol version.  Use for GOACC_data_end,
15175         GOACC_data_start, GOACC_enter_exit_data, GOACC_parallel,
15176         GOACC_update, GOACC_wait, GOACC_get_thread_num,
15177         GOACC_get_num_threads.
15178         (GOMP_PLUGIN_1.0): New symbol version.  Use for
15179         GOMP_PLUGIN_malloc, GOMP_PLUGIN_malloc_cleared,
15180         GOMP_PLUGIN_realloc, GOMP_PLUGIN_debug, GOMP_PLUGIN_error,
15181         GOMP_PLUGIN_fatal, GOMP_PLUGIN_async_unmap_vars,
15182         GOMP_PLUGIN_acc_thread.
15183         * libgomp.texi: Update for OpenACC changes, and GOMP_DEBUG
15184         environment variable.
15185         * libgomp_g.h (GOACC_data_start, GOACC_data_end)
15186         (GOACC_enter_exit_data, GOACC_parallel, GOACC_update, GOACC_wait)
15187         (GOACC_get_num_threads, GOACC_get_thread_num): New declarations.
15188         * splay-tree.h (splay_tree_lookup, splay_tree_insert)
15189         (splay_tree_remove): New declarations.
15190         (rotate_left, rotate_right, splay_tree_splay, splay_tree_insert)
15191         (splay_tree_remove, splay_tree_lookup): Move into...
15192         * splay-tree.c: ... this new file.
15193         * target.c: Include "oacc-plugin.h", "oacc-int.h", <assert.h>.
15194         (splay_tree_node, splay_tree, splay_tree_key)
15195         (struct target_mem_desc, struct splay_tree_key_s)
15196         (struct gomp_device_descr): Don't declare.
15197         (num_devices_openmp): New variable.
15198         (gomp_get_num_devices ): Use it.
15199         (gomp_init_targets_once): New function.
15200         (gomp_get_num_devices ): Use it.
15201         (get_kind, gomp_copy_from_async, gomp_free_memmap)
15202         (gomp_fini_device, gomp_register_image_for_device): New functions.
15203         (gomp_map_vars): Add devaddrs parameter.
15204         (gomp_update): Add mm parameter.
15205         (gomp_init_device): Move most of it into...
15206         (gomp_init_tables): ... this new function.
15207         (gomp_register_images_for_device): Remove function.
15208         (splay_compare, gomp_map_vars, gomp_unmap_vars, gomp_init_device):
15209         Make them hidden instead of static.
15210         (gomp_map_vars_existing, gomp_map_vars, gomp_unmap_vars)
15211         (gomp_update, gomp_init_device, GOMP_target, GOMP_target_data)
15212         (GOMP_target_end_data, GOMP_target_update)
15213         (gomp_load_plugin_for_device, gomp_target_init): Update for
15214         OpenACC changes.
15215         * oacc-async.c: New file.
15216         * oacc-cuda.c: Likewise.
15217         * oacc-host.c: Likewise.
15218         * oacc-init.c: Likewise.
15219         * oacc-int.h: Likewise.
15220         * oacc-mem.c: Likewise.
15221         * oacc-parallel.c: Likewise.
15222         * oacc-plugin.c: Likewise.
15223         * oacc-plugin.h: Likewise.
15224         * oacc-ptx.h: Likewise.
15225         * openacc.f90: Likewise.
15226         * openacc.h: Likewise.
15227         * openacc_lib.h: Likewise.
15228         * plugin/plugin-host.c: Likewise.
15229         * plugin/plugin-nvptx.c: Likewise.
15230         * libgomp-plugin.c: Likewise.
15231         * libgomp-plugin.h: Likewise.
15232         * libgomp_target.h: Remove file after merging content into the
15233         former file.  Update all users.
15234         * testsuite/lib/libgomp.exp: Load libgomp-test-support.exp.
15235         (offload_targets_s, offload_targets_s_openacc): New variables.
15236         (check_effective_target_openacc_nvidia_accel_present)
15237         (check_effective_target_openacc_nvidia_accel_selected): New
15238         procedures.
15239         (libgomp_init): Update for OpenACC changes.
15240         * testsuite/libgomp-test-support.exp.in: New file.
15241         * testsuite/libgomp.oacc-c++/c++.exp: Likewise.
15242         * testsuite/libgomp.oacc-c/c.exp: Likewise.
15243         * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
15244         * testsuite/libgomp.oacc-c-c++-common/abort-1.c: Likewise.
15245         * testsuite/libgomp.oacc-c-c++-common/abort-2.c: Likewise.
15246         * testsuite/libgomp.oacc-c-c++-common/abort-3.c: Likewise.
15247         * testsuite/libgomp.oacc-c-c++-common/abort-4.c: Likewise.
15248         * testsuite/libgomp.oacc-c-c++-common/acc_on_device-1.c: Likewise.
15249         * testsuite/libgomp.oacc-c-c++-common/asyncwait-1.c: Likewise.
15250         * testsuite/libgomp.oacc-c-c++-common/cache-1.c: Likewise.
15251         * testsuite/libgomp.oacc-c-c++-common/clauses-1.c: Likewise.
15252         * testsuite/libgomp.oacc-c-c++-common/clauses-2.c: Likewise.
15253         * testsuite/libgomp.oacc-c-c++-common/collapse-1.c: Likewise.
15254         * testsuite/libgomp.oacc-c-c++-common/collapse-2.c: Likewise.
15255         * testsuite/libgomp.oacc-c-c++-common/collapse-3.c: Likewise.
15256         * testsuite/libgomp.oacc-c-c++-common/collapse-4.c: Likewise.
15257         * testsuite/libgomp.oacc-c-c++-common/context-1.c: Likewise.
15258         * testsuite/libgomp.oacc-c-c++-common/context-2.c: Likewise.
15259         * testsuite/libgomp.oacc-c-c++-common/context-3.c: Likewise.
15260         * testsuite/libgomp.oacc-c-c++-common/context-4.c: Likewise.
15261         * testsuite/libgomp.oacc-c-c++-common/data-1.c: Likewise.
15262         * testsuite/libgomp.oacc-c-c++-common/data-2.c: Likewise.
15263         * testsuite/libgomp.oacc-c-c++-common/data-3.c: Likewise.
15264         * testsuite/libgomp.oacc-c-c++-common/data-already-1.c: Likewise.
15265         * testsuite/libgomp.oacc-c-c++-common/data-already-2.c: Likewise.
15266         * testsuite/libgomp.oacc-c-c++-common/data-already-3.c: Likewise.
15267         * testsuite/libgomp.oacc-c-c++-common/data-already-4.c: Likewise.
15268         * testsuite/libgomp.oacc-c-c++-common/data-already-5.c: Likewise.
15269         * testsuite/libgomp.oacc-c-c++-common/data-already-6.c: Likewise.
15270         * testsuite/libgomp.oacc-c-c++-common/data-already-7.c: Likewise.
15271         * testsuite/libgomp.oacc-c-c++-common/data-already-8.c: Likewise.
15272         * testsuite/libgomp.oacc-c-c++-common/deviceptr-1.c: Likewise.
15273         * testsuite/libgomp.oacc-c-c++-common/if-1.c: Likewise.
15274         * testsuite/libgomp.oacc-c-c++-common/kernels-1.c: Likewise.
15275         * testsuite/libgomp.oacc-c-c++-common/kernels-empty.c: Likewise.
15276         * testsuite/libgomp.oacc-c-c++-common/lib-1.c: Likewise.
15277         * testsuite/libgomp.oacc-c-c++-common/lib-10.c: Likewise.
15278         * testsuite/libgomp.oacc-c-c++-common/lib-11.c: Likewise.
15279         * testsuite/libgomp.oacc-c-c++-common/lib-12.c: Likewise.
15280         * testsuite/libgomp.oacc-c-c++-common/lib-13.c: Likewise.
15281         * testsuite/libgomp.oacc-c-c++-common/lib-14.c: Likewise.
15282         * testsuite/libgomp.oacc-c-c++-common/lib-15.c: Likewise.
15283         * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
15284         * testsuite/libgomp.oacc-c-c++-common/lib-17.c: Likewise.
15285         * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
15286         * testsuite/libgomp.oacc-c-c++-common/lib-19.c: Likewise.
15287         * testsuite/libgomp.oacc-c-c++-common/lib-2.c: Likewise.
15288         * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
15289         * testsuite/libgomp.oacc-c-c++-common/lib-21.c: Likewise.
15290         * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Likewise.
15291         * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
15292         * testsuite/libgomp.oacc-c-c++-common/lib-24.c: Likewise.
15293         * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
15294         * testsuite/libgomp.oacc-c-c++-common/lib-26.c: Likewise.
15295         * testsuite/libgomp.oacc-c-c++-common/lib-27.c: Likewise.
15296         * testsuite/libgomp.oacc-c-c++-common/lib-28.c: Likewise.
15297         * testsuite/libgomp.oacc-c-c++-common/lib-29.c: Likewise.
15298         * testsuite/libgomp.oacc-c-c++-common/lib-3.c: Likewise.
15299         * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
15300         * testsuite/libgomp.oacc-c-c++-common/lib-31.c: Likewise.
15301         * testsuite/libgomp.oacc-c-c++-common/lib-32.c: Likewise.
15302         * testsuite/libgomp.oacc-c-c++-common/lib-33.c: Likewise.
15303         * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
15304         * testsuite/libgomp.oacc-c-c++-common/lib-35.c: Likewise.
15305         * testsuite/libgomp.oacc-c-c++-common/lib-36.c: Likewise.
15306         * testsuite/libgomp.oacc-c-c++-common/lib-37.c: Likewise.
15307         * testsuite/libgomp.oacc-c-c++-common/lib-38.c: Likewise.
15308         * testsuite/libgomp.oacc-c-c++-common/lib-39.c: Likewise.
15309         * testsuite/libgomp.oacc-c-c++-common/lib-4.c: Likewise.
15310         * testsuite/libgomp.oacc-c-c++-common/lib-40.c: Likewise.
15311         * testsuite/libgomp.oacc-c-c++-common/lib-41.c: Likewise.
15312         * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
15313         * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Likewise.
15314         * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
15315         * testsuite/libgomp.oacc-c-c++-common/lib-45.c: Likewise.
15316         * testsuite/libgomp.oacc-c-c++-common/lib-46.c: Likewise.
15317         * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Likewise.
15318         * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
15319         * testsuite/libgomp.oacc-c-c++-common/lib-49.c: Likewise.
15320         * testsuite/libgomp.oacc-c-c++-common/lib-5.c: Likewise.
15321         * testsuite/libgomp.oacc-c-c++-common/lib-50.c: Likewise.
15322         * testsuite/libgomp.oacc-c-c++-common/lib-51.c: Likewise.
15323         * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Likewise.
15324         * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
15325         * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
15326         * testsuite/libgomp.oacc-c-c++-common/lib-55.c: Likewise.
15327         * testsuite/libgomp.oacc-c-c++-common/lib-56.c: Likewise.
15328         * testsuite/libgomp.oacc-c-c++-common/lib-57.c: Likewise.
15329         * testsuite/libgomp.oacc-c-c++-common/lib-58.c: Likewise.
15330         * testsuite/libgomp.oacc-c-c++-common/lib-59.c: Likewise.
15331         * testsuite/libgomp.oacc-c-c++-common/lib-6.c: Likewise.
15332         * testsuite/libgomp.oacc-c-c++-common/lib-60.c: Likewise.
15333         * testsuite/libgomp.oacc-c-c++-common/lib-61.c: Likewise.
15334         * testsuite/libgomp.oacc-c-c++-common/lib-62.c: Likewise.
15335         * testsuite/libgomp.oacc-c-c++-common/lib-63.c: Likewise.
15336         * testsuite/libgomp.oacc-c-c++-common/lib-64.c: Likewise.
15337         * testsuite/libgomp.oacc-c-c++-common/lib-65.c: Likewise.
15338         * testsuite/libgomp.oacc-c-c++-common/lib-66.c: Likewise.
15339         * testsuite/libgomp.oacc-c-c++-common/lib-67.c: Likewise.
15340         * testsuite/libgomp.oacc-c-c++-common/lib-68.c: Likewise.
15341         * testsuite/libgomp.oacc-c-c++-common/lib-69.c: Likewise.
15342         * testsuite/libgomp.oacc-c-c++-common/lib-7.c: Likewise.
15343         * testsuite/libgomp.oacc-c-c++-common/lib-70.c: Likewise.
15344         * testsuite/libgomp.oacc-c-c++-common/lib-71.c: Likewise.
15345         * testsuite/libgomp.oacc-c-c++-common/lib-72.c: Likewise.
15346         * testsuite/libgomp.oacc-c-c++-common/lib-73.c: Likewise.
15347         * testsuite/libgomp.oacc-c-c++-common/lib-74.c: Likewise.
15348         * testsuite/libgomp.oacc-c-c++-common/lib-75.c: Likewise.
15349         * testsuite/libgomp.oacc-c-c++-common/lib-76.c: Likewise.
15350         * testsuite/libgomp.oacc-c-c++-common/lib-77.c: Likewise.
15351         * testsuite/libgomp.oacc-c-c++-common/lib-78.c: Likewise.
15352         * testsuite/libgomp.oacc-c-c++-common/lib-79.c: Likewise.
15353         * testsuite/libgomp.oacc-c-c++-common/lib-80.c: Likewise.
15354         * testsuite/libgomp.oacc-c-c++-common/lib-81.c: Likewise.
15355         * testsuite/libgomp.oacc-c-c++-common/lib-82.c: Likewise.
15356         * testsuite/libgomp.oacc-c-c++-common/lib-83.c: Likewise.
15357         * testsuite/libgomp.oacc-c-c++-common/lib-84.c: Likewise.
15358         * testsuite/libgomp.oacc-c-c++-common/lib-85.c: Likewise.
15359         * testsuite/libgomp.oacc-c-c++-common/lib-86.c: Likewise.
15360         * testsuite/libgomp.oacc-c-c++-common/lib-87.c: Likewise.
15361         * testsuite/libgomp.oacc-c-c++-common/lib-88.c: Likewise.
15362         * testsuite/libgomp.oacc-c-c++-common/lib-89.c: Likewise.
15363         * testsuite/libgomp.oacc-c-c++-common/lib-9.c: Likewise.
15364         * testsuite/libgomp.oacc-c-c++-common/lib-90.c: Likewise.
15365         * testsuite/libgomp.oacc-c-c++-common/lib-91.c: Likewise.
15366         * testsuite/libgomp.oacc-c-c++-common/lib-92.c: Likewise.
15367         * testsuite/libgomp.oacc-c-c++-common/nested-1.c: Likewise.
15368         * testsuite/libgomp.oacc-c-c++-common/nested-2.c: Likewise.
15369         * testsuite/libgomp.oacc-c-c++-common/offset-1.c: Likewise.
15370         * testsuite/libgomp.oacc-c-c++-common/parallel-1.c: Likewise.
15371         * testsuite/libgomp.oacc-c-c++-common/parallel-empty.c: Likewise.
15372         * testsuite/libgomp.oacc-c-c++-common/pointer-align-1.c: Likewise.
15373         * testsuite/libgomp.oacc-c-c++-common/present-1.c: Likewise.
15374         * testsuite/libgomp.oacc-c-c++-common/present-2.c: Likewise.
15375         * testsuite/libgomp.oacc-c-c++-common/reduction-1.c: Likewise.
15376         * testsuite/libgomp.oacc-c-c++-common/reduction-2.c: Likewise.
15377         * testsuite/libgomp.oacc-c-c++-common/reduction-3.c: Likewise.
15378         * testsuite/libgomp.oacc-c-c++-common/reduction-4.c: Likewise.
15379         * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Likewise.
15380         * testsuite/libgomp.oacc-c-c++-common/reduction-initial-1.c:
15381         Likewise.
15382         * testsuite/libgomp.oacc-c-c++-common/subr.h: Likewise.
15383         * testsuite/libgomp.oacc-c-c++-common/subr.ptx: Likewise.
15384         * testsuite/libgomp.oacc-c-c++-common/timer.h: Likewise.
15385         * testsuite/libgomp.oacc-c-c++-common/update-1-2.c: Likewise.
15386         * testsuite/libgomp.oacc-c-c++-common/update-1.c: Likewise.
15387         * testsuite/libgomp.oacc-fortran/abort-1.f90: Likewise.
15388         * testsuite/libgomp.oacc-fortran/abort-2.f90: Likewise.
15389         * testsuite/libgomp.oacc-fortran/acc_on_device-1-1.f90: Likewise.
15390         * testsuite/libgomp.oacc-fortran/acc_on_device-1-2.f: Likewise.
15391         * testsuite/libgomp.oacc-fortran/acc_on_device-1-3.f: Likewise.
15392         * testsuite/libgomp.oacc-fortran/asyncwait-1.f90: Likewise.
15393         * testsuite/libgomp.oacc-fortran/asyncwait-2.f90: Likewise.
15394         * testsuite/libgomp.oacc-fortran/asyncwait-3.f90: Likewise.
15395         * testsuite/libgomp.oacc-fortran/collapse-1.f90: Likewise.
15396         * testsuite/libgomp.oacc-fortran/collapse-2.f90: Likewise.
15397         * testsuite/libgomp.oacc-fortran/collapse-3.f90: Likewise.
15398         * testsuite/libgomp.oacc-fortran/collapse-4.f90: Likewise.
15399         * testsuite/libgomp.oacc-fortran/collapse-5.f90: Likewise.
15400         * testsuite/libgomp.oacc-fortran/collapse-6.f90: Likewise.
15401         * testsuite/libgomp.oacc-fortran/collapse-7.f90: Likewise.
15402         * testsuite/libgomp.oacc-fortran/collapse-8.f90: Likewise.
15403         * testsuite/libgomp.oacc-fortran/data-1.f90: Likewise.
15404         * testsuite/libgomp.oacc-fortran/data-2.f90: Likewise.
15405         * testsuite/libgomp.oacc-fortran/data-3.f90: Likewise.
15406         * testsuite/libgomp.oacc-fortran/data-4-2.f90: Likewise.
15407         * testsuite/libgomp.oacc-fortran/data-4.f90: Likewise.
15408         * testsuite/libgomp.oacc-fortran/data-already-1.f: Likewise.
15409         * testsuite/libgomp.oacc-fortran/data-already-2.f: Likewise.
15410         * testsuite/libgomp.oacc-fortran/data-already-3.f: Likewise.
15411         * testsuite/libgomp.oacc-fortran/data-already-4.f: Likewise.
15412         * testsuite/libgomp.oacc-fortran/data-already-5.f: Likewise.
15413         * testsuite/libgomp.oacc-fortran/data-already-6.f: Likewise.
15414         * testsuite/libgomp.oacc-fortran/data-already-7.f: Likewise.
15415         * testsuite/libgomp.oacc-fortran/data-already-8.f: Likewise.
15416         * testsuite/libgomp.oacc-fortran/lib-1.f90: Likewise.
15417         * testsuite/libgomp.oacc-fortran/lib-10.f90: Likewise.
15418         * testsuite/libgomp.oacc-fortran/lib-2.f: Likewise.
15419         * testsuite/libgomp.oacc-fortran/lib-3.f: Likewise.
15420         * testsuite/libgomp.oacc-fortran/lib-4.f90: Likewise.
15421         * testsuite/libgomp.oacc-fortran/lib-5.f90: Likewise.
15422         * testsuite/libgomp.oacc-fortran/lib-6.f90: Likewise.
15423         * testsuite/libgomp.oacc-fortran/lib-7.f90: Likewise.
15424         * testsuite/libgomp.oacc-fortran/lib-8.f90: Likewise.
15425         * testsuite/libgomp.oacc-fortran/map-1.f90: Likewise.
15426         * testsuite/libgomp.oacc-fortran/openacc_version-1.f: Likewise.
15427         * testsuite/libgomp.oacc-fortran/openacc_version-2.f90: Likewise.
15428         * testsuite/libgomp.oacc-fortran/pointer-align-1.f90: Likewise.
15429         * testsuite/libgomp.oacc-fortran/pset-1.f90: Likewise.
15430         * testsuite/libgomp.oacc-fortran/reduction-1.f90: Likewise.
15431         * testsuite/libgomp.oacc-fortran/reduction-2.f90: Likewise.
15432         * testsuite/libgomp.oacc-fortran/reduction-3.f90: Likewise.
15433         * testsuite/libgomp.oacc-fortran/reduction-4.f90: Likewise.
15434         * testsuite/libgomp.oacc-fortran/reduction-5.f90: Likewise.
15435         * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
15436         * testsuite/libgomp.oacc-fortran/routine-1.f90: Likewise.
15437         * testsuite/libgomp.oacc-fortran/routine-2.f90: Likewise.
15438         * testsuite/libgomp.oacc-fortran/routine-3.f90: Likewise.
15439         * testsuite/libgomp.oacc-fortran/routine-4.f90: Likewise.
15440         * testsuite/libgomp.oacc-fortran/subarrays-1.f90: Likewise.
15441         * testsuite/libgomp.oacc-fortran/subarrays-2.f90: Likewise.
15443 2015-01-10  Thomas Schwinge  <thomas@codesourcery.com>
15444             Julian Brown  <julian@codesourcery.com>
15445             David Malcolm  <dmalcolm@redhat.com>
15447         * configure.ac: Rename libgomp from "GNU OpenMP Runtime Library"
15448         to "GNU Offloading and Multi Processing Runtime Library".  Change
15449         all users.
15450         * configure: Regenerate.
15451         * libgomp.texi: Update.
15453 2015-01-08  Thomas Schwinge  <thomas@codesourcery.com>
15455         * configure.ac [tgt_dir] (offload_additional_lib_paths): Also add
15456         "$tgt_dir/lib32".
15457         * configure: Regenerate.
15459         * testsuite/lib/libgomp.exp (libgomp_init): Correctly match
15460         "intelmic" in $offload_targets.
15462 2015-01-05  Jakub Jelinek  <jakub@redhat.com>
15464         Update copyright years.
15466         * libgomp.texi: Bump @copying's copyright year.
15468 2014-12-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
15470         * testsuite/lib/libgomp.exp: Load target-utils.exp.
15471         Move load of target-supports.exp earlier.
15473 2014-12-10  Ilya Verbin  <ilya.verbin@intel.com>
15475         * testsuite/libgomp.c/target-9.c: New test.
15477 2014-12-09  Varvara Rainchik  <varvara.rainchik@intel.com>
15479         * config.h.in: Regenerate.
15480         * configure: Regenerate.
15481         * configure.ac: Add GCC_CHECK_EMUTLS.
15482         * libgomp.h: Add check for USE_EMUTLS: this case
15483         is equal to HAVE_TLS.
15484         * team.c: Likewise.
15486 2014-12-03  Uros Bizjak  <ubizjak@gmail.com>
15488         * configure.tgt (x86_64-*-linux*): Tune -m32 multilib to generic.
15490 2014-11-28  Andrey Turetskiy  <andrey.turetskiy@intel.com>
15491             Ilya Verbin  <ilya.verbin@intel.com>
15493         * testsuite/libgomp.c/target-critical-1.c: New test.
15495 2014-11-26  Jakub Jelinek  <jakub@redhat.com>
15497         * testsuite/libgomp.c/examples-4/e.53.4.c: Add -DITESTITERS=20
15498         to dg-options unless expensive testing is on.
15499         (TESTITERS): Define to N if not defined.
15500         (main): Use TESTITERS instead of N.
15501         * testsuite/libgomp.c/examples-4/e.55.1.c: Define CHUNKSZ from
15502         dg-additional-options depending on whether expensive testing is on.
15503         * testsuite/libgomp.fortran/examples-4/e.55.1.f90 (e_55_1_mod):
15504         Decrease N to 100000 and CHUNKSZ to 10000.
15506 2014-11-24  Jakub Jelinek  <jakub@redhat.com>
15508         PR fortran/63938
15509         * testsuite/libgomp.fortran/pr63938-1.f90: New test.
15510         * testsuite/libgomp.fortran/pr63938-2.f90: New test.
15512 2014-11-21  Steve Ellcey  <sellcey@imgtec.com>
15514         * config/linux/mips/futex.h (SYS_futex): Define if not already done.
15516 2014-11-21  H.J. Lu  <hongjiu.lu@intel.com>
15518         PR bootstrap/63784
15519         * configure: Regenerated.
15521 2014-11-19  Uros Bizjak  <ubizjak@gmail.com>
15523         * testsuite/libgomp.c/examples-4/e.53.5.c: Require
15524         vect_simd_clones effective target.
15525         * testsuite/libgomp.fortran/examples-4/e.53.5.f90: Ditto.
15527 2014-11-14  Jakub Jelinek  <jakub@redhat.com>
15529         * libgomp.c/examples-4/e.54.2.c (main): Use N / 8 instead
15530         of 32 as block_size.
15531         * libgomp.fortran/examples-4/e.54.2.f90 (e_54_1): Use n / 8
15532         instead of 32 as block_size.
15534 2014-11-13  Andrey Turetskiy  <andrey.turetskiy@intel.com>
15535             Ilya Verbin  <ilya.verbin@intel.com>
15537         * Makefile.in: Regenerate.
15538         * configure: Regenerate.
15539         * configure.ac: Set up offload_additional_options,
15540         offload_additional_lib_paths and offload_targets.
15541         * testsuite/Makefile.am: Export environment variables: OFFLOAD_TARGETS,
15542         OFFLOAD_ADDITIONAL_OPTIONS, OFFLOAD_ADDITIONAL_LIB_PATHS.
15543         * testsuite/Makefile.in: Regenerate.
15544         * testsuite/lib/libgomp.exp (libgomp_init): Append
15545         offload_additional_lib_paths to LD_LIBRARY_PATH.  Append
15546         offload_additional_options to ALWAYS_CFLAGS.  Append liboffloadmic
15547         build directory to LD_LIBRARY_PATH for intelmic offload targets.
15549 2014-11-13  Andrey Turetskiy  <andrey.turetskiy@intel.com>
15550             Ilya Verbin  <ilya.verbin@intel.com>
15551             Kirill Yukhin  <kirill.yukhin@intel.com>
15552             Ilya Tocar  <ilya.tocar@intel.com>
15554         * testsuite/lib/libgomp.exp
15555         (check_effective_target_offload_device): New.
15556         * testsuite/libgomp.c++/c++.exp: Include tests from subdirectories.
15557         * testsuite/libgomp.c++/examples-4/e.51.5.C: New test.
15558         * testsuite/libgomp.c++/examples-4/e.53.2.C: Ditto.
15559         * testsuite/libgomp.c/examples-4/e.50.1.c: Ditto.
15560         * testsuite/libgomp.c/examples-4/e.50.2.c: Ditto.
15561         * testsuite/libgomp.c/examples-4/e.50.3.c: Ditto.
15562         * testsuite/libgomp.c/examples-4/e.50.4.c: Ditto.
15563         * testsuite/libgomp.c/examples-4/e.50.5.c: Ditto.
15564         * testsuite/libgomp.c/examples-4/e.51.1.c: Ditto.
15565         * testsuite/libgomp.c/examples-4/e.51.2.c: Ditto.
15566         * testsuite/libgomp.c/examples-4/e.51.3.c: Ditto.
15567         * testsuite/libgomp.c/examples-4/e.51.4.c: Ditto.
15568         * testsuite/libgomp.c/examples-4/e.51.6.c: Ditto.
15569         * testsuite/libgomp.c/examples-4/e.51.7.c: Ditto.
15570         * testsuite/libgomp.c/examples-4/e.52.1.c: Ditto.
15571         * testsuite/libgomp.c/examples-4/e.52.2.c: Ditto.
15572         * testsuite/libgomp.c/examples-4/e.53.1.c: Ditto.
15573         * testsuite/libgomp.c/examples-4/e.53.3.c: Ditto.
15574         * testsuite/libgomp.c/examples-4/e.53.4.c: Ditto.
15575         * testsuite/libgomp.c/examples-4/e.53.5.c: Ditto.
15576         * testsuite/libgomp.c/examples-4/e.54.2.c: Ditto.
15577         * testsuite/libgomp.c/examples-4/e.54.3.c: Ditto.
15578         * testsuite/libgomp.c/examples-4/e.54.4.c: Ditto.
15579         * testsuite/libgomp.c/examples-4/e.54.5.c: Ditto.
15580         * testsuite/libgomp.c/examples-4/e.54.6.c: Ditto.
15581         * testsuite/libgomp.c/examples-4/e.55.1.c: Ditto.
15582         * testsuite/libgomp.c/examples-4/e.55.2.c: Ditto.
15583         * testsuite/libgomp.c/examples-4/e.56.3.c: Ditto.
15584         * testsuite/libgomp.c/examples-4/e.56.4.c: Ditto.
15585         * testsuite/libgomp.c/examples-4/e.57.1.c: Ditto.
15586         * testsuite/libgomp.c/examples-4/e.57.2.c: Ditto.
15587         * testsuite/libgomp.c/examples-4/e.57.3.c: Ditto.
15588         * testsuite/libgomp.c/target-7.c: Fix test.
15589         * testsuite/libgomp.fortran/examples-4/e.50.1.f90: New test.
15590         * testsuite/libgomp.fortran/examples-4/e.50.2.f90: Ditto.
15591         * testsuite/libgomp.fortran/examples-4/e.50.3.f90: Ditto.
15592         * testsuite/libgomp.fortran/examples-4/e.50.4.f90: Ditto.
15593         * testsuite/libgomp.fortran/examples-4/e.50.5.f90: Ditto.
15594         * testsuite/libgomp.fortran/examples-4/e.51.1.f90: Ditto.
15595         * testsuite/libgomp.fortran/examples-4/e.51.2.f90: Ditto.
15596         * testsuite/libgomp.fortran/examples-4/e.51.3.f90: Ditto.
15597         * testsuite/libgomp.fortran/examples-4/e.51.4.f90: Ditto.
15598         * testsuite/libgomp.fortran/examples-4/e.51.5.f90: Ditto.
15599         * testsuite/libgomp.fortran/examples-4/e.51.6.f90: Ditto.
15600         * testsuite/libgomp.fortran/examples-4/e.51.7.f90: Ditto.
15601         * testsuite/libgomp.fortran/examples-4/e.52.1.f90: Ditto.
15602         * testsuite/libgomp.fortran/examples-4/e.52.2.f90: Ditto.
15603         * testsuite/libgomp.fortran/examples-4/e.53.1.f90: Ditto.
15604         * testsuite/libgomp.fortran/examples-4/e.53.2.f90: Ditto.
15605         * testsuite/libgomp.fortran/examples-4/e.53.3.f90: Ditto.
15606         * testsuite/libgomp.fortran/examples-4/e.53.4.f90: Ditto.
15607         * testsuite/libgomp.fortran/examples-4/e.53.5.f90: Ditto.
15608         * testsuite/libgomp.fortran/examples-4/e.54.2.f90: Ditto.
15609         * testsuite/libgomp.fortran/examples-4/e.54.3.f90: Ditto.
15610         * testsuite/libgomp.fortran/examples-4/e.54.4.f90: Ditto.
15611         * testsuite/libgomp.fortran/examples-4/e.54.5.f90: Ditto.
15612         * testsuite/libgomp.fortran/examples-4/e.54.6.f90: Ditto.
15613         * testsuite/libgomp.fortran/examples-4/e.55.1.f90: Ditto.
15614         * testsuite/libgomp.fortran/examples-4/e.55.2.f90: Ditto.
15615         * testsuite/libgomp.fortran/examples-4/e.56.3.f90: Ditto.
15616         * testsuite/libgomp.fortran/examples-4/e.56.4.f90: Ditto.
15617         * testsuite/libgomp.fortran/examples-4/e.57.1.f90: Ditto.
15618         * testsuite/libgomp.fortran/examples-4/e.57.2.f90: Ditto.
15619         * testsuite/libgomp.fortran/examples-4/e.57.3.f90: Ditto.
15621 2014-11-13  Jakub Jelinek  <jakub@redhat.com>
15622             Ilya Verbin  <ilya.verbin@intel.com>
15623             Thomas Schwinge  <thomas@codesourcery.com>
15624             Andrey Turetskiy  <andrey.turetskiy@intel.com>
15626         * libgomp.map (GOMP_4.0.1): New symbol version.
15627         Add GOMP_offload_register.
15628         * libgomp_target.h: New file.
15629         * splay-tree.h: New file.
15630         * target.c: Include config.h, libgomp_target.h, dlfcn.h, splay-tree.h.
15631         (gomp_target_init): New forward declaration.
15632         (gomp_is_initialized): New static variable.
15633         (splay_tree_node, splay_tree, splay_tree_key): New typedefs.
15634         (struct target_mem_desc, struct splay_tree_key_s, offload_image_descr):
15635         New structures.
15636         (offload_images, num_offload_images, devices, num_devices): New static
15637         variables.
15638         (splay_compare): New static function.
15639         (struct gomp_device_descr): New structure.
15640         (gomp_get_num_devices): Call gomp_target_init.
15641         (resolve_device, gomp_map_vars_existing, gomp_map_vars, gomp_unmap_tgt)
15642         (gomp_unmap_vars, gomp_update, gomp_init_device): New static functions.
15643         (GOMP_offload_register): New function.
15644         (GOMP_target): Arrange for host callback to be performed in a separate
15645         initial thread and contention group, inheriting ICVs from
15646         gomp_global_icv etc.  Call gomp_map_vars and gomp_unmap_vars.
15647         Add device initialization and lookup for target function in splay tree.
15648         (GOMP_target_data): Add device initialization and call gomp_map_vars.
15649         (GOMP_target_end_data): Call gomp_unmap_vars.
15650         (GOMP_target_update): Add device initialization and call gomp_update.
15651         (gomp_load_plugin_for_device, gomp_register_images_for_device)
15652         (gomp_target_init): New static functions.
15654 2014-11-13  Bernd Schmidt  <bernds@codesourcery.com>
15655             Thomas Schwinge  <thomas@codesourcery.com>
15656             Ilya Verbin  <ilya.verbin@intel.com>
15657             Andrey Turetskiy  <andrey.turetskiy@intel.com>
15659         * config.h.in: Regenerate.
15660         * configure: Regenerate.
15661         * configure.ac: Check for libdl, required for plugin support.
15662         (PLUGIN_SUPPORT): Define if plugins are supported.
15663         (enable_offload_targets): Support Intel MIC targets.
15664         (OFFLOAD_TARGETS): List of target names suitable for offloading.
15666 2014-11-11  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
15668         PR target/63610
15669         * configure: Regenerate.
15671 2014-11-05  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
15673         * config/posix/lock.c (_XOPEN_SOURCE) Define as 600.
15675 2014-10-06  Marek Polacek  <polacek@redhat.com>
15677         * testsuite/libgomp.c/affinity-1.c: Include <sys/wait.h>.
15678         * testsuite/libgomp.c/nqueens-1.c: Include <stdlib.h>.
15679         * testsuite/libgomp.c/thread-limit-1.c: Include <omp.h>
15680         * testsuite/libgomp.c/thread-limit-2.c: Likewise.
15682 2014-10-06  Marek Polacek  <polacek@redhat.com>
15684         * testsuite/libgomp.c/affinity-1.c: Fix implicit declarations.
15685         * testsuite/libgomp.c/nqueens-1.c: Likewise.
15686         * testsuite/libgomp.c/pr26943-3.c: Likewise.
15687         * testsuite/libgomp.c/pr26943-4.c: Likewise.
15688         * testsuite/libgomp.c/pr36802-2.c: Likewise.
15689         * testsuite/libgomp.c/pr36802-3.c: Likewise.
15690         * testsuite/libgomp.c/thread-limit-1.c: Likewise.
15691         * testsuite/libgomp.c/thread-limit-2.c: Likewise.
15692         * testsuite/libgomp.c/appendix-a/a.15.1.c: Include <omp.h>.
15693         * testsuite/libgomp.c/omp-loop02.c: Fix defaulting to int.
15694         * testsuite/libgomp.c/omp-parallel-for.c: Likewise.
15695         * testsuite/libgomp.c/omp-parallel-if.c: Likewise.
15696         * testsuite/libgomp.c/omp-single-1.c: Likewise.
15697         * testsuite/libgomp.c/omp-single-2.c: Likewise.
15698         * testsuite/libgomp.c/omp_matvec.c: Likewise.
15699         * testsuite/libgomp.c/omp_workshare3.c: Likewise.
15700         * testsuite/libgomp.c/omp_workshare4.c: Likewise.
15701         * testsuite/libgomp.c/shared-1.c: Fix defaulting to int.  Fix implicit
15702         declarations.
15704 2014-10-03  Jakub Jelinek  <jakub@redhat.com>
15706         PR libgomp/61200
15707         * testsuite/libgomp.c/pr61200.c: New test.
15709 2014-09-18  Jakub Jelinek  <jakub@redhat.com>
15711         PR c++/63248
15712         * testsuite/libgomp.c++/pr63248.C: New test.
15714 2014-08-04  Jakub Jelinek  <jakub@redhat.com>
15716         * task.c (GOMP_taskgroup_end): If taskgroup->num_children
15717         is not zero, but taskgroup->children is NULL and there are
15718         any task->children, schedule those instead of waiting.
15719         * testsuite/libgomp.c/depend-6.c: New test.
15720         * testsuite/libgomp.c/depend-7.c: New test.
15721         * testsuite/libgomp.c/depend-8.c: New test.
15722         * testsuite/libgomp.c/depend-9.c: New test.
15723         * testsuite/libgomp.c/depend-10.c: New test.
15725 2014-08-01  Jakub Jelinek  <jakub@redhat.com>
15727         * libgomp.h (struct gomp_task_depend_entry): Add redundant_out field.
15728         (struct gomp_taskwait): New type.
15729         (struct gomp_task): Add taskwait and parent_depends_on, remove
15730         in_taskwait and taskwait_sem fields.
15731         (gomp_finish_task): Don't destroy taskwait_sem.
15732         * task.c (gomp_init_task): Don't init in_taskwait, instead init
15733         taskwait and parent_depends_on.
15734         (GOMP_task): For if (0) tasks with depend clause that depend on
15735         earlier tasks don't defer them, instead call
15736         gomp_task_maybe_wait_for_dependencies to wait for the dependencies.
15737         Initialize redundant_out field, for redundant out entries just
15738         move them at the end of linked list instead of removing them
15739         completely, and set redundant_out flag instead of redundant.
15740         (gomp_task_run_pre): Update last_parent_depends_on if scheduling
15741         that task.
15742         (gomp_task_run_post_handle_dependers): If parent is in
15743         gomp_task_maybe_wait_for_dependencies and newly runnable task
15744         is not parent_depends_on, queue it in parent->children linked
15745         list after all runnable tasks with parent_depends_on set.
15746         Adjust for addition of taskwait indirection.
15747         (gomp_task_run_post_remove_parent): If parent is in
15748         gomp_task_maybe_wait_for_dependencies and task to be removed
15749         is parent_depends_on, decrement n_depend and if needed awake
15750         parent.  Adjust for addition of taskwait indirection.
15751         (GOMP_taskwait): Adjust for addition of taskwait indirection.
15752         (gomp_task_maybe_wait_for_dependencies): New function.
15753         * testsuite/libgomp.c/depend-5.c: New test.
15755 2014-07-13  Tobias Burnus  <burnus@net-b.de>
15757         * testsuite/libgomp.fortran/pr34020.f90: Make compile
15758         with TS 18508/Fortran 2015.
15760 2014-07-06  Marek Polacek  <polacek@redhat.com>
15762         PR c/6940
15763         * testsuite/libgomp.c/appendix-a/a.29.1.c (f): Add dg-warnings.
15765 2014-07-03  Jakub Jelinek  <jakub@redhat.com>
15767         * testsuite/lib/libgomp.exp (libgomp_target_compile): If $source
15768         matches regex $lang_source_re, add $lang_include_flags to options.
15769         * testsuite/libgomp.c/c.exp: Unset lang_include_flags.
15770         * testsuite/libgomp.c++/c++.exp: Likewise.
15771         * testsuite/libgomp.fortran/fortran.exp: Likewise.  Set lang_source_re
15772         and lang_include_flags instead of adding -fintrinsic-modules-path= to
15773         ALWAYS_CFLAGS.
15774         * testsuite/libgomp.graphite/graphite.exp: Unset lang_include_flags.
15776 2014-07-03  Thomas Schwinge  <thomas@codesourcery.com>
15778         * testsuite/libgomp.fortran/fortran.exp: Explain
15779         gfortran-dg-runtest usage.
15781 2014-06-25  Jakub Jelinek  <jakub@redhat.com>
15783         * testsuite/libgomp.fortran/simd5.f90: New test.
15784         * testsuite/libgomp.fortran/simd6.f90: New test.
15785         * testsuite/libgomp.fortran/simd7.f90: New test.
15787 2014-06-24  Jakub Jelinek  <jakub@redhat.com>
15789         * testsuite/libgomp.c/for-2.c: Define SC to static for
15790         #pragma omp for simd testing.
15791         * testsuite/libgomp.c/for-2.h (SC): Define if not defined.
15792         (N(f5), N(f6), N(f7), N(f8), N(f10), N(f12), N(f14)): Use
15793         SC macro.
15794         * testsuite/libgomp.c/simd-14.c: New test.
15795         * testsuite/libgomp.c/simd-15.c: New test.
15796         * testsuite/libgomp.c/simd-16.c: New test.
15797         * testsuite/libgomp.c/simd-17.c: New test.
15798         * testsuite/libgomp.c++/for-10.C: Define SC to static for
15799         #pragma omp for simd testing.
15800         * testsuite/libgomp.c++/simd10.C: New test.
15801         * testsuite/libgomp.c++/simd11.C: New test.
15802         * testsuite/libgomp.c++/simd12.C: New test.
15803         * testsuite/libgomp.c++/simd13.C: New test.
15805         * testsuite/libgomp.fortran/aligned1.f03: New test.
15806         * testsuite/libgomp.fortran/nestedfn5.f90: New test.
15807         * testsuite/libgomp.fortran/target7.f90: Surround loop spawning
15808         tasks with !$omp parallel !$omp single.
15809         * testsuite/libgomp.fortran/target8.f90: New test.
15810         * testsuite/libgomp.fortran/udr4.f90 (foo UDR, bar UDR): Adjust
15811         not to use trim in the combiner, instead call elemental function.
15812         (fn): New elemental function.
15813         * testsuite/libgomp.fortran/udr6.f90 (do_add, dp_add, dp_init):
15814         Make elemental.
15815         * testsuite/libgomp.fortran/udr7.f90 (omp_priv, omp_orig, omp_out,
15816         omp_in): Likewise.
15817         * testsuite/libgomp.fortran/udr12.f90: New test.
15818         * testsuite/libgomp.fortran/udr13.f90: New test.
15819         * testsuite/libgomp.fortran/udr14.f90: New test.
15820         * testsuite/libgomp.fortran/udr15.f90: New test.
15822 2014-06-18  Jakub Jelinek  <jakub@redhat.com>
15824         * omp_lib.f90.in (openmp_version): Set to 201307.
15825         * omp_lib.h.in (openmp_version): Likewise.
15826         * testsuite/libgomp.c/target-8.c: New test.
15827         * testsuite/libgomp.fortran/declare-simd-1.f90: Add notinbranch
15828         and inbranch clauses.
15829         * testsuite/libgomp.fortran/depend-3.f90: New test.
15830         * testsuite/libgomp.fortran/openmp_version-1.f: Adjust for new
15831         openmp_version.
15832         * testsuite/libgomp.fortran/openmp_version-2.f90: Likewise.
15833         * testsuite/libgomp.fortran/target1.f90: New test.
15834         * testsuite/libgomp.fortran/target2.f90: New test.
15835         * testsuite/libgomp.fortran/target3.f90: New test.
15836         * testsuite/libgomp.fortran/target4.f90: New test.
15837         * testsuite/libgomp.fortran/target5.f90: New test.
15838         * testsuite/libgomp.fortran/target6.f90: New test.
15839         * testsuite/libgomp.fortran/target7.f90: New test.
15841 2014-06-10  Jakub Jelinek  <jakub@redhat.com>
15843         PR fortran/60928
15844         * testsuite/libgomp.fortran/allocatable9.f90: New test.
15845         * testsuite/libgomp.fortran/allocatable10.f90: New test.
15846         * testsuite/libgomp.fortran/allocatable11.f90: New test.
15847         * testsuite/libgomp.fortran/allocatable12.f90: New test.
15848         * testsuite/libgomp.fortran/alloc-comp-1.f90: New test.
15849         * testsuite/libgomp.fortran/alloc-comp-2.f90: New test.
15850         * testsuite/libgomp.fortran/alloc-comp-3.f90: New test.
15851         * testsuite/libgomp.fortran/associate1.f90: New test.
15852         * testsuite/libgomp.fortran/associate2.f90: New test.
15853         * testsuite/libgomp.fortran/procptr1.f90: New test.
15855 2014-06-06  Jakub Jelinek  <jakub@redhat.com>
15857         * testsuite/libgomp.fortran/simd1.f90: New test.
15858         * testsuite/libgomp.fortran/udr1.f90: New test.
15859         * testsuite/libgomp.fortran/udr2.f90: New test.
15860         * testsuite/libgomp.fortran/udr3.f90: New test.
15861         * testsuite/libgomp.fortran/udr4.f90: New test.
15862         * testsuite/libgomp.fortran/udr5.f90: New test.
15863         * testsuite/libgomp.fortran/udr6.f90: New test.
15864         * testsuite/libgomp.fortran/udr7.f90: New test.
15865         * testsuite/libgomp.fortran/udr8.f90: New test.
15866         * testsuite/libgomp.fortran/udr9.f90: New test.
15867         * testsuite/libgomp.fortran/udr10.f90: New test.
15868         * testsuite/libgomp.fortran/udr11.f90: New test.
15870 2014-05-27  Uros Bizjak  <ubizjak@gmail.com>
15872         * testsuite/libgomp.fortran/declare-simd-1.f90: Require
15873         vect_simd_clones effective target.
15874         * testsuite/libgomp.fortran/declare-simd-2.f90: Ditto.
15876 2014-05-21  Jakub Jelinek  <jakub@redhat.com>
15878         PR middle-end/61252
15879         * testsuite/libgomp.c++/simd-9.C: New test.
15881 2014-05-18  Uros Bizjak  <ubizjak@gmail.com>
15883         * libgomp.texi (Runitme Library Routines): Remove multiple @menu.
15884         (Environment Variables) Move OMP_PROC_BIND and OMP_STACKSIZE node
15885         texts according to their @menu entry positions.
15887 2014-05-11  Jakub Jelinek  <jakub@redhat.com>
15889         * testsuite/libgomp.fortran/cancel-do-1.f90: New test.
15890         * testsuite/libgomp.fortran/cancel-do-2.f90: New test.
15891         * testsuite/libgomp.fortran/cancel-parallel-1.f90: New test.
15892         * testsuite/libgomp.fortran/cancel-parallel-3.f90: New test.
15893         * testsuite/libgomp.fortran/cancel-sections-1.f90: New test.
15894         * testsuite/libgomp.fortran/cancel-taskgroup-2.f90: New test.
15895         * testsuite/libgomp.fortran/declare-simd-1.f90: New test.
15896         * testsuite/libgomp.fortran/declare-simd-2.f90: New test.
15897         * testsuite/libgomp.fortran/declare-simd-3.f90: New test.
15898         * testsuite/libgomp.fortran/depend-1.f90: New test.
15899         * testsuite/libgomp.fortran/depend-2.f90: New test.
15900         * testsuite/libgomp.fortran/omp_atomic5.f90: New test.
15901         * testsuite/libgomp.fortran/simd1.f90: New test.
15902         * testsuite/libgomp.fortran/simd2.f90: New test.
15903         * testsuite/libgomp.fortran/simd3.f90: New test.
15904         * testsuite/libgomp.fortran/simd4.f90: New test.
15905         * testsuite/libgomp.fortran/taskgroup1.f90: New test.
15907 2014-05-02  Jakub Jelinek  <jakub@redhat.com>
15909         * testsuite/libgomp.c/simd-10.c: New test.
15910         * testsuite/libgomp.c/simd-11.c: New test.
15911         * testsuite/libgomp.c/simd-12.c: New test.
15912         * testsuite/libgomp.c/simd-13.c: New test.
15914 2014-04-24  Jakub Jelinek  <jakub@redhat.com>
15916         * testsuite/libgomp.c++/atomic-14.C: Allow seq_cst and
15917         atomic type clauses in any order and optional comma in between.
15918         * testsuite/libgomp.c++/atomic-15.C: Likewise.
15919         * testsuite/libgomp.c/atomic-17.c: Likewise.
15921         * testsuite/libgomp.c/simd-7.c: New test.
15922         * testsuite/libgomp.c/simd-8.c: New test.
15923         * testsuite/libgomp.c/simd-9.c: New test.
15924         * testsuite/libgomp.c/loop-16.c: New test.
15926 2014-04-02  Richard Henderson  <rth@redhat.com>
15928         * config/linux/futex.h (futex_wait): Get error value from errno.
15929         (futex_wake): Likewise.
15931 2014-03-25  Jakub Jelinek  <jakub@redhat.com>
15933         PR c++/60331
15934         * testsuite/libgomp.c++/udr-11.C: New test.
15935         * testsuite/libgomp.c++/udr-12.C: New test.
15936         * testsuite/libgomp.c++/udr-13.C: New test.
15937         * testsuite/libgomp.c++/udr-14.C: New test.
15938         * testsuite/libgomp.c++/udr-15.C: New test.
15939         * testsuite/libgomp.c++/udr-16.C: New test.
15940         * testsuite/libgomp.c++/udr-17.C: New test.
15941         * testsuite/libgomp.c++/udr-18.C: New test.
15942         * testsuite/libgomp.c++/udr-19.C: New test.
15944 2014-01-02  Richard Sandiford  <rdsandiford@googlemail.com>
15946         Update copyright years
15948 2014-01-02  Richard Sandiford  <rdsandiford@googlemail.com>
15950         * hashtab.h: Use the standard form for the copyright notice.
15952 2014-01-02  Tobias Burnus  <burnus@net-b.de>
15954         * libgomp.texi: Bump @copying's copyright year.
15956 2013-12-17  Andreas Tobler  <andreast@gcc.gnu.org>
15958         * testsuite/libgomp.c/affinity-1.c: Remove alloca.h include. Replace
15959         alloca () with __builtin_alloca ().
15960         * testsuite/libgomp.c/icv-2.c: Add FreeBSD coverage.
15961         * testsuite/libgomp.c/lock-3.c: Likewise.
15962         * testsuite/libgomp.c/pr48591.c: Likewise.
15964 2013-12-17  Jakub Jelinek  <jakub@redhat.com>
15966         PR testsuite/59534
15967         * testsuite/libgomp.fortran/retval1.f90 (e5): Avoid non-shortcircuited
15968         comparisons.
15970 2013-12-16  Jakub Jelinek  <jakub@redhat.com>
15972         PR libgomp/58756
15973         * testsuite/libgomp.c/pr58756.c: New test.
15975 2013-12-12  Jakub Jelinek  <jakub@redhat.com>
15977         PR libgomp/59467
15978         * testsuite/libgomp.fortran/crayptr2.f90: Add private (d) clause to
15979         !$omp parallel.
15981 2013-11-07  Thomas Schwinge  <thomas@codesourcery.com>
15983         * testsuite/lib/libgomp.exp (libgomp_init): Don't add -fopenmp to
15984         ALWAYS_CFLAGS.
15985         * testsuite/libgomp.c++/c++.exp (ALWAYS_CFLAGS): Add -fopenmp.
15986         * testsuite/libgomp.c/c.exp (ALWAYS_CFLAGS): Likewise.
15987         * testsuite/libgomp.fortran/fortran.exp (ALWAYS_CFLAGS): Likewise.
15988         * testsuite/libgomp.graphite/graphite.exp (ALWAYS_CFLAGS):
15989         Likewise.
15991         * libgomp_g.h: Include <stddef.h> for size_t.
15993         * libgomp.spec.in: Update comment about libgomp's dependencies.
15994         * configure.ac: Likewise.
15995         * configure: Regenerate.
15997 2013-10-16  Tobias Burnus  <burnus@net-b.de>
15999         * libgomp.texi: (Runtime Library Routines): Update references for
16000         OpenMP 4.0. Add omp_get_cancellation, omp_get_default_device,
16001         omp_get_num_devices, omp_get_num_teams, omp_get_proc_bind,
16002         omp_get_team_num, omp_is_initial_device, omp_set_default_device.
16003         (Environment Variables): Update references for OpenMP 4.0. Add
16004         OMP_CANCELLATION, OMP_DEFAULT_DEVICE, OMP_PLACES.
16005         Move OMP_DISPLAY_ENV and OMP_PROC_BIND up to be in alphabetical
16006         order.
16008 2013-10-14  Jakub Jelinek  <jakub@redhat.com>
16010         * env.c (parse_bind_var): Initialize value to avoid
16011         (false positive) warning.
16013 2013-10-12  Jakub Jelinek  <jakub@redhat.com>
16015         PR libgomp/58691
16016         * config/linux/proc.c (gomp_cpuset_popcount): Add unused attribute
16017         to check variable.
16018         (gomp_init_num_threads): Move i variable declaration into
16019         #ifdef CPU_ALLOC_SIZE block.
16020         * config/linux/affinity.c (gomp_affinity_init_level): Test
16021         gomp_places_list_len == 0 rather than gomp_places_list == 0
16022         when checking for topology reading error.
16023         * team.c (gomp_team_start): Don't handle bind == omp_proc_bind_false.
16024         * env.c (parse_affinity): Add ignore argument, if true, don't populate
16025         gomp_places_list, only parse env var and always return false.
16026         (parse_places_var): Likewise.  Don't check gomp_global_icv.bind_var.
16027         (initialize_env): Always parse OMP_PLACES and GOMP_CPU_AFFINITY env
16028         vars, default to OMP_PROC_BIND=true if OMP_PROC_BIND wasn't specified
16029         and either of these variables were parsed correctly into a places
16030         list.
16032 2013-10-11  Thomas Schwinge  <thomas@codesourcery.com>
16033             Jakub Jelinek  <jakub@redhat.com>
16035         * testsuite/libgomp.graphite/force-parallel-1.c: Expect 4 instead
16036         of 5 loopfn matches.
16037         * testsuite/libgomp.graphite/force-parallel-2.c: Likewise.
16038         * testsuite/libgomp.graphite/force-parallel-3.c: Likewise.
16039         * testsuite/libgomp.graphite/force-parallel-4.c: Likewise.
16040         * testsuite/libgomp.graphite/force-parallel-5.c: Likewise.
16041         * testsuite/libgomp.graphite/force-parallel-6.c: Likewise.
16042         * testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
16043         * testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
16044         * testsuite/libgomp.graphite/force-parallel-9.c: Likewise.
16046 2013-10-11  Thomas Schwinge  <thomas@codesourcery.com>
16048         * Makefile.am (omp_lib.mod): Streamline rule.
16049         * Makefile.in: Regenerate.
16051         * libgomp.texi (Runtime Library Routines): C linkage, don't throw
16052         exceptions.
16054         * testsuite/libgomp.c/lib-1.c (main): Add missing error check.
16055         * testsuite/libgomp.fortran/lib1.f90: Likewise.
16056         * testsuite/libgomp.fortran/lib2.f: Likewise.
16057         * testsuite/libgomp.fortran/lib3.f: Likewise.
16059         * configure.ac: Typo fix.
16060         * configure: Regenerate.
16062         * testsuite/libgomp.fortran/openmp_version-1.f: New file.
16063         * testsuite/libgomp.fortran/openmp_version-2.f90: Likewise.
16065         * omp.h.in: Don't touch the user's namespace.
16067 2013-10-11  Jakub Jelinek  <jakub@redhat.com>
16068             Tobias Burnus  <burnus@net-b.de>
16069             Richard Henderson  <rth@redhat.com>
16071         * target.c: New file.
16072         * Makefile.am (libgomp_la_SOURCES): Add target.c.
16073         * Makefile.in: Regenerated.
16074         * libgomp_g.h (GOMP_task): Add depend argument.
16075         (GOMP_barrier_cancel, GOMP_loop_end_cancel,
16076         GOMP_sections_end_cancel, GOMP_target, GOMP_target_data,
16077         GOMP_target_end_data, GOMP_target_update, GOMP_teams,
16078         GOMP_parallel_loop_static, GOMP_parallel_loop_dynamic,
16079         GOMP_parallel_loop_guided, GOMP_parallel_loop_runtime,
16080         GOMP_parallel, GOMP_cancel, GOMP_cancellation_point,
16081         GOMP_taskgroup_start, GOMP_taskgroup_end,
16082         GOMP_parallel_sections): New prototypes.
16083         * fortran.c (omp_is_initial_device): Add ialias_redirect.
16084         (omp_is_initial_device_): New function.
16085         (ULP, STR1, STR2, ialias_redirect): Removed.
16086         (omp_get_cancellation_, omp_get_proc_bind_, omp_set_default_device_,
16087         omp_set_default_device_8_, omp_get_default_device_,
16088         omp_get_num_devices_, omp_get_num_teams_, omp_get_team_num_): New
16089         functions.
16090         * libgomp.map (GOMP_barrier_cancel, GOMP_loop_end_cancel,
16091         GOMP_sections_end_cancel, GOMP_target, GOMP_target_data,
16092         GOMP_target_end_data, GOMP_target_update, GOMP_teams): Export
16093         @@GOMP_4.0.
16094         (omp_is_initial_device, omp_is_initial_device_, omp_get_cancellation,
16095         omp_get_cancellation_, omp_get_proc_bind, omp_get_proc_bind_,
16096         omp_set_default_device, omp_set_default_device_,
16097         omp_set_default_device_8_, omp_get_default_device,
16098         omp_get_default_device_, omp_get_num_devices, omp_get_num_devices_,
16099         omp_get_num_teams, omp_get_num_teams_, omp_get_team_num,
16100         omp_get_team_num_): Export @@OMP_4.0.
16101         * team.c (struct gomp_thread_start_data): Add place field.
16102         (gomp_thread_start): Clear thr->thread_pool and
16103         thr->task before returning.  Use gomp_team_barrier_wait_final
16104         instead of gomp_team_barrier_wait.  Initialize thr->place.
16105         (gomp_new_team): Initialize work_shares_to_free, work_share_cancelled,
16106         team_cancelled and task_queued_count fields.
16107         (gomp_free_pool_helper): Clear thr->thread_pool and thr->task
16108         before calling pthread_exit.
16109         (gomp_free_thread): No longer static.  Use
16110         gomp_managed_threads_lock instead of gomp_remaining_threads_lock.
16111         (gomp_team_start): Add flags argument.  Set
16112         thr->thread_pool->threads_busy to nthreads immediately after creating
16113         new pool.  Use gomp_managed_threads_lock instead of
16114         gomp_remaining_threads_lock.  Handle OpenMP 4.0 affinity.
16115         (gomp_team_end): Use gomp_managed_threads_lock instead of
16116         gomp_remaining_threads_lock.  Use gomp_team_barrier_wait_final instead
16117         of gomp_team_barrier_wait.  If team->team_cancelled, call
16118         gomp_fini_workshare on ws chain starting at team->work_shares_to_free
16119         rather than thr->ts.work_share.
16120         (initialize_team): Don't call gomp_sem_init here.
16121         * sections.c (GOMP_parallel_sections_start): Adjust gomp_team_start
16122         caller.
16123         (GOMP_parallel_sections, GOMP_sections_end_cancel): New functions.
16124         * env.c (gomp_global_icv): Add default_device_var, target_data and
16125         bind_var initializers.
16126         (gomp_cpu_affinity, gomp_cpu_affinity_len): Remove.
16127         (gomp_bind_var_list, gomp_bind_var_list_len, gomp_places_list,
16128         gomp_places_list_len): New variables.
16129         (parse_bind_var, parse_one_place, parse_places_var): New functions.
16130         (parse_affinity): Rewritten to construct OMP_PLACES list with unit
16131         sized places.
16132         (gomp_cancel_var): New global variable.
16133         (parse_int): New function.
16134         (handle_omp_display_env): New function.
16135         (initialize_env): Use it.  Initialize default_device_var.
16136         Parse OMP_CANCELLATION env var.  Use parse_bind_var to parse
16137         OMP_PROC_BIND instead of parse_boolean.  Use parse_places_var for
16138         OMP_PLACES parsing.  Don't call parse_affinity if OMP_PLACES has
16139         been successfully parsed (and call gomp_init_affinity in that case).
16140         (omp_get_cancellation, omp_get_proc_bind, omp_set_default_device,
16141         omp_get_default_device, omp_get_num_devices, omp_get_num_teams,
16142         omp_get_team_num, omp_is_initial_device): New functions.
16143         * libgomp.h: Include stdlib.h.
16144         (ialias_ulp, ialias_str1, ialias_str2, ialias_redirect, ialias_call):
16145         Define.
16146         (struct target_mem_desc): Forward declare.
16147         (struct gomp_task_icv): Add default_device_var, target_data, bind_var
16148         and thread_limit_var fields.
16149         (gomp_get_num_devices): New prototype.
16150         (gomp_cancel_var): New extern decl.
16151         (struct gomp_team): Add work_shares_to_free, work_share_cancelled,
16152         team_cancelled and task_queued_count fields.  Add comments about
16153         task_{,queued_,running_}count.
16154         (gomp_cancel_kind): New enum.
16155         (gomp_work_share_end_cancel): New prototype.
16156         (struct gomp_task): Add next_taskgroup, prev_taskgroup, taskgroup,
16157         copy_ctors_done, dependers, depend_hash, depend_count, num_dependees
16158         and depend fields.
16159         (struct gomp_taskgroup): New type.
16160         (struct gomp_task_depend_entry,
16161         struct gomp_dependers_vec): New types.
16162         (gomp_finish_task): Free depend_hash if non-NULL.
16163         (struct gomp_team_state): Add place_partition_off
16164         and place_partition_len fields.
16165         (gomp_bind_var_list, gomp_bind_var_list_len, gomp_places_list,
16166         gomp_places_list_len): New extern decls.
16167         (struct gomp_thread): Add place field.
16168         (gomp_cpu_affinity, gomp_cpu_affinity_len): Remove.
16169         (gomp_init_thread_affinity): Add place argument.
16170         (gomp_affinity_alloc, gomp_affinity_init_place, gomp_affinity_add_cpus,
16171         gomp_affinity_remove_cpu, gomp_affinity_copy_place,
16172         gomp_affinity_same_place, gomp_affinity_finalize_place_list,
16173         gomp_affinity_init_level, gomp_affinity_print_place): New
16174         prototypes.
16175         (gomp_team_start): Add flags argument.
16176         (gomp_thread_limit_var, gomp_remaining_threads_count,
16177         gomp_remaining_threads_lock): Remove.
16178         (gomp_managed_threads_lock): New variable.
16179         (struct gomp_thread_pool): Add threads_busy field.
16180         (gomp_free_thread): New prototype.
16181         * task.c: Include hashtab.h.
16182         (hash_entry_type): New typedef.
16183         (htab_alloc, htab_free, htab_hash, htab_eq): New inlines.
16184         (gomp_init_task): Clear dependers, depend_hash, depend_count,
16185         copy_ctors_done and taskgroup fields.
16186         (GOMP_task): Add depend argument, handle depend clauses.  If
16187         gomp_team_barrier_cancelled or if it's taskgroup has been
16188         cancelled, don't queue or start new tasks.  Set copy_ctors_done
16189         field if needed.  Initialize taskgroup field.  If copy_ctors_done
16190         and already cancelled, don't discard the task.  If taskgroup is
16191         non-NULL, enqueue the task into taskgroup queue.  Increment
16192         num_children field in taskgroup.  Increment task_queued_count.
16193         (gomp_task_run_pre, gomp_task_run_post_remove_parent,
16194         gomp_task_run_post_remove_taskgroup): New inline functions.
16195         (gomp_task_run_post_handle_depend_hash,
16196         gomp_task_run_post_handle_dependers,
16197         gomp_task_run_post_handle_depend): New functions.
16198         (GOMP_taskwait): Use them.  If more than one new tasks
16199         have been queued, wake other threads if needed.
16200         (gomp_barrier_handle_tasks): Likewise.  If
16201         gomp_team_barrier_cancelled, don't start any new tasks, just free
16202         all tasks.
16203         (GOMP_taskgroup_start, GOMP_taskgroup_end): New functions.
16204         * omp_lib.f90.in
16205         (omp_proc_bind_kind, omp_proc_bind_false,
16206         omp_proc_bind_true, omp_proc_bind_master, omp_proc_bind_close,
16207         omp_proc_bind_spread): New params.
16208         (omp_get_cancellation, omp_get_proc_bind, omp_set_default_device,
16209         omp_get_default_device, omp_get_num_devices, omp_get_num_teams,
16210         omp_get_team_num, omp_is_initial_device): New interfaces.
16211         (omp_get_dynamic, omp_get_nested, omp_in_parallel,
16212         omp_get_max_threads, omp_get_num_procs, omp_get_num_threads,
16213         omp_get_thread_num, omp_get_thread_limit, omp_set_max_active_levels,
16214         omp_get_max_active_levels, omp_get_level, omp_get_ancestor_thread_num,
16215         omp_get_team_size, omp_get_active_level, omp_in_final): Remove
16216         useless use omp_lib_kinds.
16217         * omp.h.in (omp_proc_bind_t): New typedef.
16218         (omp_get_cancellation, omp_get_proc_bind, omp_set_default_device,
16219         omp_get_default_device, omp_get_num_devices, omp_get_num_teams,
16220         omp_get_team_num, omp_is_initial_device): New prototypes.
16221         * loop.c (gomp_parallel_loop_start): Add flags argument, pass it
16222         through to gomp_team_start.
16223         (GOMP_parallel_loop_static_start, GOMP_parallel_loop_dynamic_start,
16224         GOMP_parallel_loop_guided_start, GOMP_parallel_loop_runtime_start):
16225         Adjust gomp_parallel_loop_start callers.
16226         (GOMP_parallel_loop_static, GOMP_parallel_loop_dynamic,
16227         GOMP_parallel_loop_guided, GOMP_parallel_loop_runtime,
16228         GOMP_loop_end_cancel): New functions.
16229         (GOMP_parallel_end): Add ialias_redirect.
16230         * hashtab.h: New file.
16231         * libgomp.texi (Environment Variables): Minor cleanup,
16232         update section refs to OpenMP 4.0rc2.
16233         (OMP_DISPLAY_ENV, GOMP_SPINCOUNT): Document these
16234         environment variables.
16235         * work.c (gomp_work_share_end, gomp_work_share_end_nowait): Set
16236         team->work_shares_to_free to thr->ts.work_share before calling
16237         free_work_share.
16238         (gomp_work_share_end_cancel): New function.
16239         * config/linux/proc.c: Include errno.h.
16240         (gomp_get_cpuset_size, gomp_cpuset_size, gomp_cpusetp): New variables.
16241         (gomp_cpuset_popcount): Add cpusetsize argument, use it instead of
16242         sizeof (cpu_set_t) to determine number of iterations.  Fix up check
16243         extern decl.  Use CPU_COUNT_S if available, or CPU_COUNT if
16244         gomp_cpuset_size is sizeof (cpu_set_t).
16245         (gomp_init_num_threads): Initialize gomp_cpuset_size,
16246         gomp_get_cpuset_size and gomp_cpusetp here, use gomp_cpusetp instead
16247         of &cpuset and pass gomp_cpuset_size instead of sizeof (cpu_set_t)
16248         to pthread_getaffinity_np.  Free and clear gomp_cpusetp if it didn't
16249         contain any logical CPUs.
16250         (get_num_procs): Don't call pthread_getaffinity_np if gomp_cpusetp
16251         is NULL.  Use gomp_cpusetp instead of &cpuset and pass
16252         gomp_get_cpuset_size instead of sizeof (cpu_set_t) to
16253         pthread_getaffinity_np.  Check gomp_places_list instead of
16254         gomp_cpu_affinity.  Adjust gomp_cpuset_popcount caller.
16255         * config/linux/bar.c (gomp_barrier_wait_end,
16256         gomp_barrier_wait_last): Use BAR_* defines.
16257         (gomp_team_barrier_wait_end): Likewise.  Clear BAR_CANCELLED
16258         from state where needed.  Set work_share_cancelled to 0 on last
16259         thread.
16260         (gomp_team_barrier_wait_final, gomp_team_barrier_wait_cancel_end,
16261         gomp_team_barrier_wait_cancel, gomp_team_barrier_cancel): New
16262         functions.
16263         * config/linux/proc.h (gomp_cpuset_popcount): Add attribute_hidden.
16264         Add cpusetsize argument.
16265         (gomp_cpuset_size, gomp_cpusetp): Declare.
16266         * config/linux/affinity.c: Include errno.h, stdio.h and string.h.
16267         (affinity_counter): Remove.
16268         (CPU_ISSET_S, CPU_ZERO_S, CPU_SET_S, CPU_CLR_S): Define
16269         if CPU_ALLOC_SIZE isn't defined.
16270         (gomp_init_affinity): Rewritten, if gomp_places_list is NULL, try
16271         silently create OMP_PLACES=threads, if it is non-NULL afterwards,
16272         bind current thread to the first place.
16273         (gomp_init_thread_affinity): Rewritten.  Add place argument, just
16274         pthread_setaffinity_np to gomp_places_list[place].
16275         (gomp_affinity_alloc, gomp_affinity_init_place, gomp_affinity_add_cpus,
16276         gomp_affinity_remove_cpu, gomp_affinity_copy_place,
16277         gomp_affinity_same_place, gomp_affinity_finalize_place_list,
16278         gomp_affinity_init_level, gomp_affinity_print_place): New functions.
16279         * config/linux/bar.h (BAR_TASK_PENDING, BAR_WAS_LAST,
16280         BAR_WAITING_FOR_TASK, BAR_INCR, BAR_CANCELLED): Define.
16281         (gomp_barrier_t): Add awaited_final field.
16282         (gomp_barrier_init): Initialize awaited_final field.
16283         (gomp_team_barrier_wait_final, gomp_team_barrier_wait_cancel,
16284         gomp_team_barrier_wait_cancel_end, gomp_team_barrier_cancel): New
16285         prototypes.
16286         (gomp_barrier_wait_start): Preserve BAR_CANCELLED bit.  Use BAR_*
16287         defines.
16288         (gomp_barrier_wait_cancel_start, gomp_team_barrier_wait_final_start,
16289         gomp_team_barrier_cancelled): New inline functions.
16290         (gomp_barrier_last_thread,
16291         gomp_team_barrier_set_task_pending,
16292         gomp_team_barrier_clear_task_pending,
16293         gomp_team_barrier_set_waiting_for_tasks,
16294         gomp_team_barrier_waiting_for_tasks,
16295         gomp_team_barrier_done): Use BAR_* defines.
16296         * config/posix/bar.c (gomp_barrier_init): Clear cancellable field.
16297         (gomp_barrier_wait_end): Use BAR_* defines.
16298         (gomp_team_barrier_wait_end): Clear BAR_CANCELLED from state.
16299         Set work_share_cancelled to 0 on last thread, use __atomic_load_n.
16300         Use BAR_* defines.
16301         (gomp_team_barrier_wait_cancel_end, gomp_team_barrier_wait_cancel,
16302         gomp_team_barrier_cancel): New functions.
16303         * config/posix/affinity.c (gomp_init_thread_affinity): Add place
16304         argument.
16305         (gomp_affinity_alloc, gomp_affinity_init_place, gomp_affinity_add_cpus,
16306         gomp_affinity_remove_cpu, gomp_affinity_copy_place,
16307         gomp_affinity_same_place, gomp_affinity_finalize_place_list,
16308         gomp_affinity_init_level, gomp_affinity_print_place): New stubs.
16309         * config/posix/bar.h (BAR_TASK_PENDING, BAR_WAS_LAST,
16310         BAR_WAITING_FOR_TASK, BAR_INCR, BAR_CANCELLED): Define.
16311         (gomp_barrier_t): Add cancellable field.
16312         (gomp_team_barrier_wait_cancel, gomp_team_barrier_wait_cancel_end,
16313         gomp_team_barrier_cancel): New prototypes.
16314         (gomp_barrier_wait_start): Preserve BAR_CANCELLED bit.
16315         (gomp_barrier_wait_cancel_start, gomp_team_barrier_wait_final,
16316         gomp_team_barrier_cancelled): New inline functions.
16317         (gomp_barrier_wait_start, gomp_barrier_last_thread,
16318         gomp_team_barrier_set_task_pending,
16319         gomp_team_barrier_clear_task_pending,
16320         gomp_team_barrier_set_waiting_for_tasks,
16321         gomp_team_barrier_waiting_for_tasks,
16322         gomp_team_barrier_done): Use BAR_* defines.
16323         * barrier.c (GOMP_barrier_cancel): New function.
16324         * omp_lib.h.in (omp_proc_bind_kind, omp_proc_bind_false,
16325         omp_proc_bind_true, omp_proc_bind_master, omp_proc_bind_close,
16326         omp_proc_bind_spread): New params.
16327         (omp_get_cancellation, omp_get_proc_bind, omp_set_default_device,
16328         omp_get_default_device, omp_get_num_devices, omp_get_num_teams,
16329         omp_get_team_num, omp_is_initial_device): New externals.
16330         * parallel.c (GOMP_parallel, GOMP_cancel, GOMP_cancellation_point):
16331         New functions.
16332         (gomp_resolve_num_threads): Adjust for thread_limit now being in
16333         icv->thread_limit_var.  Use UINT_MAX instead of ULONG_MAX as
16334         infinity.  If not nested, just return minimum of max_num_threads
16335         and icv->thread_limit_var and if thr->thread_pool, set threads_busy
16336         to the returned value.  Otherwise, don't update atomically
16337         gomp_remaining_threads_count, but instead thr->thread_pool->threads_busy.
16338         (GOMP_parallel_end): Adjust for thread_limit now being in
16339         icv->thread_limit_var.  Use UINT_MAX instead of ULONG_MAX as
16340         infinity.  Adjust threads_busy in the pool rather than
16341         gomp_remaining_threads_count.  Remember team->nthreads and call
16342         gomp_team_end before adjusting threads_busy, if not nested
16343         afterwards, just set it to 1 non-atomically.  Add ialias.
16344         (GOMP_parallel_start): Adjust gomp_team_start caller.
16345         * testsuite/libgomp.c/atomic-14.c: Add parens to make it valid.
16346         * testsuite/libgomp.c/affinity-1.c: New test.
16347         * testsuite/libgomp.c/atomic-15.c: New test.
16348         * testsuite/libgomp.c/atomic-16.c: New test.
16349         * testsuite/libgomp.c/atomic-17.c: New test.
16350         * testsuite/libgomp.c/cancel-for-1.c: New test.
16351         * testsuite/libgomp.c/cancel-for-2.c: New test.
16352         * testsuite/libgomp.c/cancel-parallel-1.c: New test.
16353         * testsuite/libgomp.c/cancel-parallel-2.c: New test.
16354         * testsuite/libgomp.c/cancel-parallel-3.c: New test.
16355         * testsuite/libgomp.c/cancel-sections-1.c: New test.
16356         * testsuite/libgomp.c/cancel-taskgroup-1.c: New test.
16357         * testsuite/libgomp.c/cancel-taskgroup-2.c: New test.
16358         * testsuite/libgomp.c/depend-1.c: New test.
16359         * testsuite/libgomp.c/depend-2.c: New test.
16360         * testsuite/libgomp.c/depend-3.c: New test.
16361         * testsuite/libgomp.c/depend-4.c: New test.
16362         * testsuite/libgomp.c/for-1.c: New test.
16363         * testsuite/libgomp.c/for-1.h: New file.
16364         * testsuite/libgomp.c/for-2.c: New test.
16365         * testsuite/libgomp.c/for-2.h: New file.
16366         * testsuite/libgomp.c/for-3.c: New test.
16367         * testsuite/libgomp.c/pr58392.c: New test.
16368         * testsuite/libgomp.c/simd-1.c: New test.
16369         * testsuite/libgomp.c/simd-2.c: New test.
16370         * testsuite/libgomp.c/simd-3.c: New test.
16371         * testsuite/libgomp.c/simd-4.c: New test.
16372         * testsuite/libgomp.c/simd-5.c: New test.
16373         * testsuite/libgomp.c/simd-6.c: New test.
16374         * testsuite/libgomp.c/target-1.c: New test.
16375         * testsuite/libgomp.c/target-2.c: New test.
16376         * testsuite/libgomp.c/target-3.c: New test.
16377         * testsuite/libgomp.c/target-4.c: New test.
16378         * testsuite/libgomp.c/target-5.c: New test.
16379         * testsuite/libgomp.c/target-6.c: New test.
16380         * testsuite/libgomp.c/target-7.c: New test.
16381         * testsuite/libgomp.c/taskgroup-1.c: New test.
16382         * testsuite/libgomp.c/thread-limit-1.c: New test.
16383         * testsuite/libgomp.c/thread-limit-2.c: New test.
16384         * testsuite/libgomp.c/thread-limit-3.c: New test.
16385         * testsuite/libgomp.c/udr-1.c: New test.
16386         * testsuite/libgomp.c/udr-2.c: New test.
16387         * testsuite/libgomp.c/udr-3.c: New test.
16388         * testsuite/libgomp.c++/affinity-1.C: New test.
16389         * testsuite/libgomp.c++/atomic-10.C: New test.
16390         * testsuite/libgomp.c++/atomic-11.C: New test.
16391         * testsuite/libgomp.c++/atomic-12.C: New test.
16392         * testsuite/libgomp.c++/atomic-13.C: New test.
16393         * testsuite/libgomp.c++/atomic-14.C: New test.
16394         * testsuite/libgomp.c++/atomic-15.C: New test.
16395         * testsuite/libgomp.c++/cancel-for-1.C: New test.
16396         * testsuite/libgomp.c++/cancel-for-2.C: New test.
16397         * testsuite/libgomp.c++/cancel-parallel-1.C: New test.
16398         * testsuite/libgomp.c++/cancel-parallel-2.C: New test.
16399         * testsuite/libgomp.c++/cancel-parallel-3.C: New test.
16400         * testsuite/libgomp.c++/cancel-sections-1.C: New test.
16401         * testsuite/libgomp.c++/cancel-taskgroup-1.C: New test.
16402         * testsuite/libgomp.c++/cancel-taskgroup-2.C: New test.
16403         * testsuite/libgomp.c++/cancel-taskgroup-3.C: New test.
16404         * testsuite/libgomp.c++/cancel-test.h: New file.
16405         * testsuite/libgomp.c++/for-9.C: New test.
16406         * testsuite/libgomp.c++/for-10.C: New test.
16407         * testsuite/libgomp.c++/for-11.C: New test.
16408         * testsuite/libgomp.c++/simd-1.C: New test.
16409         * testsuite/libgomp.c++/simd-2.C: New test.
16410         * testsuite/libgomp.c++/simd-3.C: New test.
16411         * testsuite/libgomp.c++/simd-4.C: New test.
16412         * testsuite/libgomp.c++/simd-5.C: New test.
16413         * testsuite/libgomp.c++/simd-6.C: New test.
16414         * testsuite/libgomp.c++/simd-7.C: New test.
16415         * testsuite/libgomp.c++/simd-8.C: New test.
16416         * testsuite/libgomp.c++/target-1.C: New test.
16417         * testsuite/libgomp.c++/target-2.C: New test.
16418         * testsuite/libgomp.c++/target-2-aux.cc: New file.
16419         * testsuite/libgomp.c++/target-3.C: New test.
16420         * testsuite/libgomp.c++/taskgroup-1.C: New test.
16421         * testsuite/libgomp.c++/udr-1.C: New test.
16422         * testsuite/libgomp.c++/udr-2.C: New test.
16423         * testsuite/libgomp.c++/udr-3.C: New test.
16424         * testsuite/libgomp.c++/udr-4.C: New test.
16425         * testsuite/libgomp.c++/udr-5.C: New test.
16426         * testsuite/libgomp.c++/udr-6.C: New test.
16427         * testsuite/libgomp.c++/udr-7.C: New test.
16428         * testsuite/libgomp.c++/udr-8.C: New test.
16429         * testsuite/libgomp.c++/udr-9.C: New test.
16431 2013-09-20  Jakub Jelinek  <jakub@redhat.com>
16433         PR testsuite/57605
16434         * testsuite/lib/libgomp.exp: Add -fdiagnostics-color=never to
16435         ALWAYS_CFLAGS.
16437 2013-09-20  Alan Modra  <amodra@gmail.com>
16439         * configure: Regenerate.
16441 2013-09-19  Jakub Jelinek  <jakub@redhat.com>
16443         * testsuite/libgomp.c/sections-2.c: New test.
16445 2013-06-28  Marcus Shawcroft  <marcus.shawcroft@arm.com>
16447         * testsuite/libgomp.fortran/strassen.f90:
16448         Add dg-skip-if aarch64_tiny.
16450 2013-06-20  Iain Sandoe  <iain@codesourcery.com>
16451             Cesar Philippidis  <cesar@codesourcery.com>
16453         * testsuite/lib/libgomp.exp: Reorder lib loads into dependency order.
16454         Do not load_gcc_lib gcc-dg.exp and add a comment as to why.
16455         * testsuite/libgomp.c/c.exp: load_gcc_lib gcc-dg.exp.
16456         * testsuite/libgomp.fortran/fortran.exp: Likewise.
16457         * testsuite/libgomp.graphite/graphite.exp: Likewise.
16458         * testsuite/libgomp.c++/c++.exp: load_gcc_lib gcc-dg.exp.
16459         Use dg-runtest rather than gfortran-dg-runtest.
16461 2013-06-10  Thomas Schwinge  <thomas@codesourcery.com>
16463         * testsuite/libgomp.c/icv-2.c: Extend current handling of
16464         Linux-based x86 systems to cover all GNU systems.
16465         * testsuite/libgomp.c/lock-3.c: Likewise.
16466         * testsuite/libgomp.c/pr48591.c: Likewise.
16468 2013-06-06  Thomas Schwinge  <thomas@codesourcery.com>
16470         * configure.tgt (XCFLAGS): Add -ftls-model=initial-exec for
16471         GNU/Hurd, as done for Linux-based systems.
16473         * config/posix/ptrlock.h: Fix comment.
16475 2013-05-27  Tobias Burnus  <burnus@net-b.de>
16477         PR fortran/57423
16478         * libgomp.texi (omp_set_dynamic, omp_set_nested, omp_set_nested,
16479         omp_set_num_threads, omp_init_lock, omp_set_lock, omp_test_lock,
16480         omp_unset_lock, omp_destroy_lock, omp_init_nest_lock,
16481         omp_set_nest_lock, omp_test_nest_lock, omp_unset_nest_lock,
16482         omp_destroy_nest_lock): Correct arguments to match the one in
16483         the OpenMP spec.
16484         * omp_lib.f90.in (omp_init_lock, omp_init_nest_lock, omp_destroy_lock
16485         omp_destroy_nest_lock, omp_set_lock, omp_set_nest_lock, omp_unset_lock,
16486         omp_unset_nest_lock, omp_set_dynamic, omp_set_nested,
16487         omp_set_num_threads, omp_test_lock, omp_test_nest_lock): Ditto.
16489 2013-05-16  Jakub Jelinek  <jakub@redhat.com>
16491         * testsuite/libgomp.c/loop-13.c: New test.
16492         * testsuite/libgomp.c/loop-14.c: New test.
16493         * testsuite/libgomp.c/loop-15.c: New test.
16494         * testsuite/libgomp.c++/loop-13.C: New test.
16495         * testsuite/libgomp.c++/loop-14.C: New test.
16496         * testsuite/libgomp.c++/loop-15.C: New test.
16498 2013-02-06  Jakub Jelinek  <jakub@redhat.com>
16500         PR middle-end/56217
16501         * testsuite/libgomp.c++/pr56217.C: New test.
16503 2013-02-01  Alan Modra  <amodra@gmail.com>
16505         * task.c (GOMP_task, GOMP_taskwait): Comment.
16507 2013-01-31  Dmitry Vyukov  <dvyukov@gcc.gnu.org>
16508             Joost VandeVondele  <Joost.VandeVondele@mat.ethz.ch>
16510         PR libgomp/55561
16511         * config/linux/wait.h (do_spin): Use atomic load for addr.
16512         * config/linux/ptrlock.c (gomp_ptrlock_get_slow): Use atomic
16513         for intptr and ptrlock.
16514         * config/linux/ptrlock.h (gomp_ptrlock_get): Use atomic load
16515         for ptrlock.
16517 2013-01-22  Alan Modra  <amodra@gmail.com>
16519         PR libgomp/51376
16520         PR libgomp/56073
16521         * task.c (GOMP_task): Revert 2011-12-09 change.
16522         (GOMP_taskwait): Likewise.  Instead use atomic load with acquire
16523         barrier to read task->children..
16524         (gomp_barrier_handle_tasks): ..and matching atomic store with
16525         release barrier here when setting parent->children to NULL.
16527 2013-01-16  Jakub Jelinek  <jakub@redhat.com>
16528             Tobias Burnus  <burnus@net-b.de>
16530         PR driver/55884
16531         * testsuite/libgomp.fortran/fortran.exp: Use
16532         -fintrinsic-modules-path= instead of
16533         -fintrinsic-modules-path.
16535 2013-01-14  Richard Sandiford  <rdsandiford@googlemail.com>
16537         Update copyright years.
16539 2012-12-19  Tobias Burnus  <burnus@net-b.de>
16541         * testsuite/libgomp.fortran/fortran.exp: Set
16542         -fintrinsic-modules-path.
16544 2012-12-19  Tobias Burnus  <burnus@net-b.de>
16546         * testsuite/libgomp.fortran/use_intrinsic_1.f90: New; moved
16547         from gcc/testsuite/gfortran.dg/gomp/use_intrinsic_1.f90.
16549 2012-11-21  Jakub Jelinek  <jakub@redhat.com>
16551         PR libgomp/55411
16552         * team.c (gomp_free_thread): Decrease gomp_managed_threads
16553         if pool had any threads_used.
16555 2012-11-07  Jack Howarth <howarth@bromo.med.uc.edu>
16557         * testsuite/libgomp.c++/pr24455.C: Use
16558         -Wl,-undefined,dynamic_lookup on darwin.
16560 2012-11-07  David Edelsohn  <dje.gcc@gmail.com>
16562         * testsuite/libgomp.c++/pr24455.C: Use -Wl,-G on AIX.
16564 2012-10-24  Dominique d'Humieres  <dominiq@lps.ens.fr>
16566         * testsuite/libgomp.graphite/force-parallel-6.c: Adjust the loops.
16568 2012-10-23  Ian Bolton  <ian.bolton@arm.com>
16569             Jim MacArthur  <jim.macarthur@arm.com>
16570             Marcus Shawcroft  <marcus.shawcroft@arm.com>
16571             Nigel Stephens  <nigel.stephens@arm.com>
16572             Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
16573             Richard Earnshaw  <rearnsha@arm.com>
16574             Sofiane Naci  <sofiane.naci@arm.com>
16575             Stephen Thomas  <stephen.thomas@arm.com>
16576             Tejas Belagod  <tejas.belagod@arm.com>
16577             Yufeng Zhang  <yufeng.zhang@arm.com>
16579         * configure.tgt: Add AArch64.
16581 2012-10-04  Jason Merrill  <jason@redhat.com>
16583         * testsuite/libgomp.c++/tls-init1.C: New.
16585 2012-09-14  David Edelsohn  <dje.gcc@gmail.com>
16587         * configure: Regenerated.
16589 2012-08-29  Chung-Lin Tang  <cltang@codesourcery.com>
16591         * config/linux/mips/futex.h (sys_futex0): Change to static
16592         function with noinline, nomips16 attributes under MIPS16. Adjust
16593         asm statement to place 'li v0,SYS_futex' immediately before
16594         syscall insn.
16596 2012-07-04  Sandra Loosemore <sandra@codesourcery.com>
16598         * libgomp.texi (Library Index): Renamed from "Index" to prevent
16599         conflict with index.html on case-insensitive file systems.
16601 2012-07-03  Uros Bizjak  <ubizjak@gmail.com>
16603         * config/linux/x86/futex.h (cpu_relax): Use __builtin_ia32_pause.
16604         * testsuite/libgomp.c/sort-1.c (busy_wait): Ditto.
16606 2012-07-02  Richard Guenther  <rguenther@suse.de>
16607             Michael Matz  <matz@suse.de>
16608             Tobias Grosser <tobias@grosser.es>
16609             Sebastian Pop <sebpop@gmail.com>
16611         * testsuite/libgomp.graphite/force-parallel-4.c: Adjust.
16612         * testsuite/libgomp.graphite/force-parallel-5.c: Likewise.
16613         * testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
16614         * testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
16616 2012-06-28  Andreas Schwab  <schwab@linux-m68k.org>
16618         * libgomp.texi: Include gpl_v3.texi instead of gpl.texi.
16620 2012-06-22  Richard Guenther  <rguenther@suse.de>
16622         Merge from graphite branch
16623         2012-01-13  Tobias Grosser  <tobias@grosser.es>
16625         * testsuite/libgomp.graphite/force-parallel-1.c: Adjust.
16626         * testsuite/libgomp.graphite/force-parallel-2.c: Likewise.
16628 2012-06-07  Jakub Jelinek  <jakub@redhat.com>
16630         PR middle-end/53580
16631         * testsuite/libgomp.c/pr26943-2.c: Remove #pragma omp barrier,
16632         use GOMP_barrier () call instead.
16633         * testsuite/libgomp.c/pr26943-3.c: Likewise.
16634         * testsuite/libgomp.c/pr26943-4.c: Likewise.
16635         * testsuite/libgomp.fortran/vla4.f90: Remove !$omp barrier,
16636         call GOMP_barrier instead.
16637         * testsuite/libgomp.fortran/vla5.f90: Likewise.
16639 2012-06-06  Jakub Jelinek  <jakub@redhat.com>
16641         PR libgomp/52993
16642         * config/linux/lock.c (gomp_init_nest_lock_25): Fix up last
16643         argument to memset call.
16645 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
16647         * configure: Regenerated.
16649 2012-04-11  Manuel López-Ibáñez  <manu@gcc.gnu.org>
16651         * testsuite/lib/libgomp.exp: Add -fno-diagnostics-show-caret.
16653 2012-03-31  H.J. Lu  <hongjiu.lu@intel.com>
16655         PR bootstrap/52812
16656         * configure.tgt (i[456]86-*-linux*): Handle -mx32 like -m64.
16658 2012-03-22  Jakub Jelinek  <jakub@redhat.com>
16660         PR middle-end/52547
16661         * testsuite/libgomp.c/pr52547.c: New test.
16663 2012-03-16  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
16665         * testsuite/lib/libgomp.exp: load fortran-modules.exp
16667 2012-03-14  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
16669         * configure.tgt (mips-sgi-irix6*): Remove.
16671 2012-03-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
16673         * configure.tgt (alpha*-dec-osf*): Remove.
16675         * config/osf/sem.h: Remove.
16676         * config/posix/lock.c (_XOPEN_SOURCE): Define unconditionally.
16678 2012-02-29  Eric Botcazou  <ebotcazou@adacore.com>
16680         * config/linux/sparc/futex.h (cpu_relax): Read from CC register.
16682 2012-02-27  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
16684         PR libstdc++/52188
16685         * acinclude.m4 (LIBGOMP_ENABLE_SYMVERS): Remove symvers_renaming.
16686         Remove ENABLE_SYMVERS_SOL2.
16687         * configure: Regenerate.
16688         * Makefile.am [LIBGOMP_BUILD_VERSIONED_SHLIB] (comma): New variable.
16689         (PREPROCESS): New variable.
16690         (libgomp.ver): New target.
16691         [LIBGOMP_BUILD_VERSIONED_SHLIB &&
16692         LIBGOMP_BUILD_VERSIONED_SHLIB_GNU]: Remove
16693         LIBGOMP_BUILD_VERSIONED_SHLIB_SOL2 handling.
16694         Use libgomp.ver.
16695         [LIBGOMP_BUILD_VERSIONED_SHLIB_SUN]: Use libgomp.ver, libgomp.ver-sun.
16696         * Makefile.in: Regenerate.
16698 2012-02-14  Walter Lee  <walt@tilera.com>
16700         * configure.tgt: Handle tilegx and tilepro.
16701         * config/linux/tile/futex.h: New file.
16703 2012-02-08  Richard Guenther  <rguenther@suse.de>
16705         PR tree-optimization/46886
16706         * testsuite/libgomp.c/pr46886.c: New testcase.
16708 2012-01-25  Matthias Klose  <doko@ubuntu.com>
16710         * config/linux/arm: Remove empty directory.
16711         * configure.tgt (config_path): Remove linux-arm for arm*-*-linux*.
16713 2011-12-09  Alan Modra  <amodra@gmail.com>
16715         PR libgomp/51376
16716         * task.c (GOMP_taskwait): Don't access task->children outside of
16717         task_lock mutex region.
16718         (GOMP_task): Likewise.
16720 2011-12-06  Jakub Jelinek  <jakub@redhat.com>
16722         PR libgomp/51132
16723         * testsuite/libgomp.graphite/force-parallel-1.c: Move large arrays
16724         to file scope.
16725         * testsuite/libgomp.graphite/force-parallel-3.c: Likewise.
16726         * testsuite/libgomp.graphite/force-parallel-6.c: Likewise.
16727         * testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
16728         * testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
16729         * testsuite/libgomp.graphite/force-parallel-9.c: Likewise.
16731 2011-12-02  Alan Modra  <amodra@gmail.com>
16733         * config/linux/affinity.c: Use atomic rather than sync builtin.
16734         * config/linux/lock.c: Likewise.
16735         * config/linux/ptrlock.h: Likewise.
16736         * config/linux/ptrlock.c: Likewise.
16737         * config/linux/ptrlock.h (gomp_ptrlock_set): Always write here..
16738         * config/linux/ptrlock.c (gomp_ptrlock_set_slow): ..not here.
16739         * config/linux/futex.h (atomic_write_barrier): Delete unused function.
16740         * config/linux/alpha/futex.h (atomic_write_barrier): Likewise.
16741         * config/linux/ia64/futex.h (atomic_write_barrier): Likewise.
16742         * config/linux/mips/futex.h (atomic_write_barrier): Likewise.
16743         * config/linux/powerpc/futex.h (atomic_write_barrier): Likewise.
16744         * config/linux/s390/futex.h (atomic_write_barrier): Likewise.
16745         * config/linux/sparc/futex.h (atomic_write_barrier): Likewise.
16746         * config/linux/x86/futex.h (atomic_write_barrier): Likewise.
16748 2011-11-30  Alan Modra  <amodra@gmail.com>
16750         PR libgomp/51298
16751         * config/linux/bar.h: Use atomic rather than sync builtins.
16752         * config/linux/bar.c: Likewise.  Add missing acquire
16753         synchronisation on generation field.
16754         * task.c (gomp_barrier_handle_tasks): Regain lock so as to not
16755         double unlock.
16757 2011-11-30  Alan Modra  <amodra@gmail.com>
16759         * ordered.c (gomp_ordered_sync): Add MEMMODEL_ACQ_REL fence.
16760         * critical.c (GOMP_critical_start): Add MEMMODEL_RELEASE fence.
16761         * config/linux/mutex.h: Use atomic rather than sync builtins.
16762         * config/linux/mutex.c: Likewise.  Comment.  Use -1 for waiting state.
16763         * config/linux/omp-lock.h: Comment fix.
16764         * config/linux/arm/mutex.h: Delete.
16765         * config/linux/powerpc/mutex.h: Delete.
16766         * config/linux/ia64/mutex.h: Delete.
16767         * config/linux/mips/mutex.h: Delete.
16769 2011-11-30  Alan Modra  <amodra@gmail.com>
16771         PR libgomp/51249
16772         * config/linux/sem.h: Rewrite.
16773         * config/linux/sem.c: Rewrite.
16775 2011-11-28  Richard Henderson  <rth@redhat.com>
16777         * libgomp.h (enum memmodel): New.
16779 2011-11-21  Andreas Tobler  <andreast@fgznet.ch>
16781         * configure: Regenerate.
16783 2011-10-10  Matthias Klose  <doko@ubuntu.com>
16785         * config/posix95: Remove empty directory.
16787 2011-08-26  Jakub Jelinek  <jakub@redhat.com>
16789         * testsuite/libgomp.fortran/threadprivate4.f90: New test.
16791 2011-08-19  Jakub Jelinek  <jakub@redhat.com>
16793         PR fortran/49792
16794         * testsuite/libgomp.fortran/pr49792-1.f90: New test.
16795         * testsuite/libgomp.fortran/pr49792-2.f90: New test.
16797 2011-08-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
16799         * config/posix95/lock.c, posix95/omp-lock.h: Remove.
16801 2011-08-05  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
16803         PR libgomp/49965
16804         * testsuite/libgomp.c++/task-8.C: Replaced err by errval.
16806 2011-08-03  Uros Bizjak  <ubizjak@gmail.com>
16808         * config/linux/proc.h: New.
16809         * config/linux/proc.c: Include "proc.h".  Do not include <sched.h>.
16810         (gomp_cpuset_popcount): Rename from cpuset_popcount.  No more static.
16811         (gomp_init_num_threads): Update call to cpuset_popcount.
16812         (get_num_procs): Ditto.
16813         * config/linux/affinity.c (gomp_init_affinity): Call
16814         gomp_cpuset_popcount.
16816 2011-08-02  Jakub Jelinek  <jakub@redhat.com>
16818         PR fortran/42041
16819         PR fortran/46752
16820         * omp.h.in (omp_in_final): New prototype.
16821         * omp_lib.f90.in (omp_in_final): New interface.
16822         (omp_integer_kind, omp_logical_kind): Remove
16823         and replace all its uses in the module with 4.
16824         (openmp_version): Change to 201107.
16825         * omp_lib.h.in (omp_sched_static, omp_sched_dynamic,
16826         omp_sched_guided, omp_sched_auto): Use omp_sched_kind
16827         kind for the parameters.
16828         (omp_in_final): New external.
16829         (openmp_version): Change to 201107.
16830         * task.c (omp_in_final): New function.
16831         (gomp_init_task): Initialize final_task.
16832         (GOMP_task): Remove unused attribute from flags.  Handle final
16833         tasks.
16834         (GOMP_taskyield): New function.
16835         (omp_in_final): Return true if if (false) or final (true) task
16836         or descendant of final (true).
16837         * fortran.c (omp_in_final_): New function.
16838         * libgomp.map (OMP_3.1): Export omp_in_final and omp_in_final_.
16839         (GOMP_3.0): Export GOMP_taskyield.
16840         * env.c (gomp_nthreads_var_list, gomp_nthreads_var_list_len): New
16841         variables.
16842         (parse_unsigned_long_list): New function.
16843         (initialize_env): Use it for OMP_NUM_THREADS.  Call parse_boolean
16844         with "OMP_PROC_BIND".  If OMP_PROC_BIND=true, call gomp_init_affinity
16845         even if parse_affinity returned false.
16846         * config/linux/affinity.c (gomp_init_affinity): Handle
16847         gomp_cpu_affinity_len == 0.
16848         * libgomp_g.h (GOMP_taskyield): New prototype.
16849         * libgomp.h (struct gomp_task): Add final_task field.
16850         (gomp_nthreads_var_list, gomp_nthreads_var_list_len): New externs.
16851         * team.c (gomp_team_start): Override new task's nthreads_var icv
16852         if list form OMP_NUM_THREADS has been used and it has value for
16853         the new nesting level.
16855         * testsuite/libgomp.c/atomic-11.c: New test.
16856         * testsuite/libgomp.c/atomic-12.c: New test.
16857         * testsuite/libgomp.c/atomic-13.c: New test.
16858         * testsuite/libgomp.c/atomic-14.c: New test.
16859         * testsuite/libgomp.c/reduction-6.c: New test.
16860         * testsuite/libgomp.c/task-5.c: New test.
16861         * testsuite/libgomp.c++/atomic-2.C: New test.
16862         * testsuite/libgomp.c++/atomic-3.C: New test.
16863         * testsuite/libgomp.c++/atomic-4.C: New test.
16864         * testsuite/libgomp.c++/atomic-5.C: New test.
16865         * testsuite/libgomp.c++/atomic-6.C: New test.
16866         * testsuite/libgomp.c++/atomic-7.C: New test.
16867         * testsuite/libgomp.c++/atomic-8.C: New test.
16868         * testsuite/libgomp.c++/atomic-9.C: New test.
16869         * testsuite/libgomp.c++/task-8.C: New test.
16870         * testsuite/libgomp.c++/reduction-4.C: New test.
16871         * testsuite/libgomp.fortran/allocatable7.f90: New test.
16872         * testsuite/libgomp.fortran/allocatable8.f90: New test.
16873         * testsuite/libgomp.fortran/crayptr3.f90: New test.
16874         * testsuite/libgomp.fortran/omp_atomic3.f90: New test.
16875         * testsuite/libgomp.fortran/omp_atomic4.f90: New test.
16876         * testsuite/libgomp.fortran/pointer1.f90: New test.
16877         * testsuite/libgomp.fortran/pointer2.f90: New test.
16878         * testsuite/libgomp.fortran/task4.f90: New test.
16880 2011-08-02  Tobias Burnus  <burnus@net-b.de>
16882         * libgomp.texi: Update OpenMP spec references to 3.1.
16883         (omp_in_final,OMP_PROC_BIND): New sections.
16884         (OMP_NUM_THREADS): Document that the value can be now a list.
16885         (GOMP_STACKSIZE,GOMP_CPU_AFFINITY): Update @ref.
16887 2011-08-02  H.J. Lu  <hongjiu.lu@intel.com>
16889         * config/linux/x86/futex.h: Check __x86_64__ instead of
16890         __LP64__.
16892 2011-07-29  Jakub Jelinek  <jakub@redhat.com>
16894         PR middle-end/49897
16895         PR middle-end/49898
16896         * testsuite/libgomp.c/pr49897-1.c: New test.
16897         * testsuite/libgomp.c/pr49897-2.c: New test.
16898         * testsuite/libgomp.c/pr49898-1.c: New test.
16899         * testsuite/libgomp.c/pr49898-2.c: New test.
16901 2011-07-28  H.J. Lu  <hongjiu.lu@intel.com>
16903         * testsuite/lib/libgomp.exp (libgomp_init): Add -march=i486
16904         for ia32 instead of ilp32.
16906         * testsuite/libgomp.c/atomic-1.c: Require ia32 instead of ilp32.
16907         * testsuite/libgomp.c/atomic-6.c: Likewise.
16909 2011-07-23  Sebastian Pop  <sebastian.pop@amd.com>
16911         * testsuite/libgomp.graphite/force-parallel-1.c: Un-xfail.
16912         * testsuite/libgomp.graphite/force-parallel-2.c: Adjust pattern.
16914 2011-07-25  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
16916         PR libgomp/45351
16917         * config/osf/sem.h: New file.
16918         * configure.tgt (alpha*-dec-osf*): Prepend osf to config_path.
16920 2011-07-18  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
16922         PR target/49541
16923         * testsuite/lib/libgomp.exp (libgomp_init): Don't add -lgomp to
16924         ldflags.
16926 2011-07-15  Jakub Jelinek  <jakub@redhat.com>
16928         * config/linux/wait.h (do_spin): New inline, largely copied
16929         from do_wait, just don't do futex_wait here, instead return true if
16930         it should be done.
16931         (do_wait): Implement using do_spin.
16932         * config/linux/mutex.h (gomp_mutex_lock_slow): Add an int argument
16933         to prototype.
16934         (gomp_mutex_lock): Use __sync_val_compare_and_swap instead of
16935         __sync_bool_compare_and_swap, pass the oldval to
16936         gomp_mutex_lock_slow.
16937         * config/linux/mutex.c (gomp_mutex_lock_slow): Add oldval argument.
16938         If all mutex contenders are just spinning and not sleeping, don't
16939         change state to 2 unnecessarily.  Optimize the loop when state has
16940         already become 2 to use just one atomic operation per loop instead
16941         of two.
16942         * config/linux/ia64/mutex.h (gomp_mutex_lock_slow): Add an int argument
16943         to prototype.
16944         (gomp_mutex_lock): Use __sync_val_compare_and_swap instead of
16945         __sync_bool_compare_and_swap, pass the oldval to
16946         gomp_mutex_lock_slow.
16948 2011-06-22  Jakub Jelinek  <jakub@redhat.com>
16950         PR libgomp/49490
16951         * iter.c (gomp_iter_static_next): For chunk size 0
16952         only use n ceil/ nthreads size for the first
16953         n % nthreads threads in the team instead of
16954         all threads except for the last few ones which
16955         get less work or none at all.
16956         * iter_ull.c (gomp_iter_ull_static_next): Likewise.
16957         * env.c (parse_schedule): If OMP_SCHEDULE doesn't have
16958         chunk argument, set run_sched_modifier to 0 for static
16959         resp. 1 for other kinds.  If chunk argument is 0
16960         and not static, set value to 1.
16962 2011-05-19  Jakub Jelinek  <jakub@redhat.com>
16964         PR c++/49043
16965         * testsuite/libgomp.c++/pr49043.C: New test.
16967         PR c++/48869
16968         * testsuite/libgomp.c++/pr48869.C: New test.
16970 2011-05-06  Jakub Jelinek  <jakub@redhat.com>
16972         PR fortran/48894
16973         * fortran.c: Include limits.h.
16974         (TO_INT): Define.
16975         (omp_set_dynamic_8_, omp_set_num_threads_8_): Use !!*set instead of
16976         *set.
16977         (omp_set_num_threads_8_, omp_set_schedule_8_,
16978         omp_set_max_active_levels_8_, omp_get_ancestor_thread_num_8_,
16979         omp_get_team_size_8_): Use TO_INT macro.
16980         * testsuite/libgomp.fortran/pr48894.f90: New test.
16982 2011-04-13  Jakub Jelinek  <jakub@redhat.com>
16984         PR middle-end/48591
16985         * testsuite/libgomp.c/pr48591.c: New test.
16987 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
16989         PR bootstrap/48135
16990         * acinclude.m4 (enable_symvers): Handle --disable-symvers.
16991         * configure: Regenerate.
16993 2011-02-27  Jakub Jelinek  <jakub@redhat.com>
16995         PR fortran/47886
16996         * testsuite/libgomp.fortran/task3.f90: New test.
16998 2011-02-24  Tobias Burnus  <burnus@net-b.de>
17000         * libgomp.texi (GOMP_STACKSIZE): Fix @ref to OMP_STACKSIZE.
17002 2011-02-23  Jakub Jelinek  <jakub@redhat.com>
17004         PR libgomp/47854
17005         * libgomp.texi (omp_get_wtime): Don't say time in the past
17006         must be Unix Epoch.
17008 2011-02-18  Jakub Jelinek  <jakub@redhat.com>
17010         PR libgomp/47804
17011         * testsuite/libgomp.fortran/fortran.exp: Check for both
17012         libquadmath.a and libquadmath.${shlib_ext}.  If neither exists,
17013         but $blddir != "", still append ${blddir}/${lang_library_path}
17014         to ld_library_path.
17016 2011-02-16  Tobias Burnus  <burnus@net-b.de>
17018         PR libgomp/47758
17019         * testsuite/libgomp.fortran/fortran.exp: Check for the existence
17020         of libquadmath.a before adding its libpath to ldflags.
17022 2011-02-14  Jakub Jelinek  <jakub@redhat.com>
17024         PR libgomp/47731
17025         * config/linux/futex.h (futex_wait): Pass NULL as timeout argument
17026         to FUTEX_WAIT futex syscall.
17027         * config/linux/wait.h: Include <futex.h> instead of "futex.h".
17029 2011-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17031         * configure: Regenerate.
17033 2011-01-20  Benjamin Kosnik  <bkoz@redhat.com>
17035         PR libstdc++/36104
17036         * acinclude.m4 (LIBGOMP_ENABLE_SYMVERS): Accept gnu variants.
17038 2011-01-16  Gerald Pfeifer
17040         * configure.tgt (*-*-freebsd*): Add -lpthread to XLDFLAGS.
17042 2010-12-14  Jakub Jelinek  <jakub@redhat.com>
17044         PR fortran/46874
17045         * libgomp.fortran/allocatable6.f90: New test.
17047 2010-12-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
17049         * acinclude.m4 (symvers_renaming): Also set if enable_symvers = no.
17050         * configure: Regenerate.
17052 2010-12-06  Dave Korn  <dave.korn.cygwin@gmail.com>
17054         PR target/40125
17055         PR lto/46695
17056         * configure.ac: Invoke ACX_LT_HOST_FLAGS.
17057         * Makefile.am (libgomp_la_LDFLAGS): Use lt_host_flags.
17058         * aclocal.m4: Regenerate.
17059         * configure: Regenerate.
17060         * Makefile.in: Regenerate.
17061         * testsuite/Makefile.in: Regenerate.
17063 2010-12-02  Jakub Jelinek  <jakub@redhat.com>
17065         PR fortran/46753
17066         * libgomp.fortran/pr46753.f90: New test.
17068         PR libgomp/43706
17069         * env.c (initialize_env): Default to spin count 300000
17070         instead of 20000000 if neither OMP_WAIT_POLICY nor GOMP_SPINCOUNT
17071         is specified.
17073         PR libgomp/45240
17074         * parallel.c (GOMP_parallel_end): Unlock gomp_remaining_threads_lock
17075         at the end if sync builtins aren't supported.
17077 2010-12-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
17079         * configure.tgt (mips-sgi-irix6*): Add -lpthread to XLDFLAGS.
17081 2010-12-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
17083         * testsuite/libgomp.fortran/vla8.f90: Use dg-timeout-factor 2.0.
17085 2010-11-24  Iain Sandoe  <iains@gcc.gnu.org>
17087         * testsuite/libgomp.fortran/fortran.exp: Add paths for libquadmath.
17089 2010-11-16  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
17090             Tobias Burnus  <burnus@net-b.de>
17092         PR fortran/32049
17093         * configure.ac:
17094         * configure: Regenerate.
17096 2010-10-06  Marcus Shawcroft  <marcus.shawcroft@arm.com>
17098         * config/linux/futex.h: New.
17099         * config/linux/arm/mutex.h: New.
17100         * configure.tgt (arm*-*-linux*): Add config path.
17102 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
17104         * testsuite/libgomp.graphite/force-parallel-1.c: Adjust.
17106 2010-09-23  Tobias Burnus  <burnus@net-b.de>
17108         * libgomp.texi (omp_get_nested, omp_set_nested, omp_set_dynamic):
17109         Change Fortran datatype to LOGICAL.
17110         (omp_set_lock, omp_test_lock, omp_unset_lock, omp_set_nested_lock,
17111         omp_unset_nested_lock): Use intent(inout) instead of intent(out).
17113 2010-08-21  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17115         * configure: Regenerate.
17117 2010-07-26  Jakub Jelinek  <jakub@redhat.com>
17119         * libgomp.texi: Add function keyword to a couple of Fortran
17120         interfaces, use integer instead of int for Fortran.
17122 2010-07-26  Aldy Hernandez  <aldyh@redhat.com>
17124         * libgomp.texi: Fix spelling and pasto problems throughout.
17125         Adjust prototypes to match code.
17127 2010-07-24  Tobias Burnus  <burnus@net-b.de>
17129         * testsuite/libgomp.fortran/appendix-a/a.28.5.f90: Add -w to
17130         silence -fwhole-file warning.
17132 2010-07-23  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
17134         * configure.tgt (*-*-solaris2.[56]*): Removed.
17136 2010-07-05  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
17138         * acinclude.m4 (LIBGOMP_ENABLE_SYMVERS): Handle sun style.
17139         Define LIBGOMP_BUILD_VERSIONED_SHLIB_GNU,
17140         LIBGOMP_BUILD_VERSIONED_SHLIB_SUN automake conditionals.
17141         (HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT): Define unless
17142         targetting solaris2*.
17143         * configure: Regenerate.
17144         * config.h.in: Regenerate.
17146         * Makefile.am [LIBGOMP_BUILD_VERSIONED_SHLIB]: Protect
17147         libgomp_version_script with LIBGOMP_BUILD_VERSIONED_SHLIB_GNU.
17148         Add libgomp_version_dep.
17149         [LIBGOMP_BUILD_VERSIONED_SHLIB_SUN]: Handle Sun symbol
17150         versioning.
17151         [!LIBGOMP_BUILD_VERSIONED_SHLIB]: Add libgomp_version_dep.
17152         (libgomp_la_DEPENDENCIES): Set to $(libgomp_version_dep).
17153         * Makefile.in: Regenerate.
17155         * libgomp.h (LIBGOMP_GNU_SYMBOL_VERSIONING): Undef unless
17156         HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT.
17157         * libgomp.map (OMP_1.0): Move symbols both in OMP_1.0 and OMP_3.0
17158         to common block, protected by
17159         HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT.
17161 2010-06-10  Gerald Pfeifer  <gerald@pfeifer.com>
17163         * libgomp.texi: Move to GFDL version 1.3.  Update copyright years.
17165 2010-06-09  Iain Sandoe  <iains@gcc.gnu.org>
17167         PR bootstrap/43170
17168         * configure: Regenerate.
17170 2010-05-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17172         PR other/43620
17173         * configure.ac (AM_INIT_AUTOMAKE): Add no-dist.
17174         * configure: Regenerate.
17175         * Makefile.in: Regenerate.
17176         * testsuite/Makefile.in: Regenerate.
17178 2010-04-26  Jakub Jelinek  <jakub@redhat.com>
17180         PR c/43893
17181         * testsuite/libgomp.c/pr43893.c: New test.
17182         * testsuite/libgomp.c++/pr43893.C: New test.
17184 2010-04-21  Jakub Jelinek  <jakub@redhat.com>
17186         PR middle-end/43570
17187         * testsuite/libgomp.fortran/vla8.f90: New test.
17189 2010-04-20  Jakub Jelinek  <jakub@redhat.com>
17191         PR libgomp/43706
17192         * config/linux/affinity.c (gomp_init_affinity): Decrease
17193         gomp_available_cpus if affinity mask confines the process to fewer
17194         CPUs.
17195         * config/linux/proc.c (get_num_procs): If gomp_cpu_affinity is
17196         non-NULL, just return gomp_available_cpus.
17198         PR libgomp/43569
17199         * sections.c (gomp_sections_init): Initialize ws->mode.
17201 2010-04-14  Uros Bizjak  <ubizjak@gmail.com>
17203         * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS): Remove set but
17204         not unused bar variable.
17205         * configure: Regenerate.
17207 2010-04-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17209         * Makefile.in: Regenerate.
17210         * aclocal.m4: Regenerate.
17211         * testsuite/Makefile.in: Regenerate.
17213 2010-03-22  Jakub Jelinek  <jakub@redhat.com>
17215         PR libgomp/42942
17216         * env.c (parse_unsigned_long): Add ALLOW_ZERO argument.
17217         (initialize_env): Adjust callers.
17218         (omp_set_max_active_levels): Set gomp_max_active_levels_var even
17219         when the argument is 0.
17221         * testsuite/libgomp.c/pr42942.c: New test.
17223 2010-03-08  Tobias Grosser  <grosser@fim.uni-passau.de>
17225         PR middle-end/42644
17226         PR middle-end/42130
17227         * testsuite/libgomp.graphite/force-parallel-1.c: Adjust.
17228         * testsuite/libgomp.graphite/force-parallel-2.c: Adjust.
17230 2010-01-29  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
17232         * testsuite/libgomp.c++/task-1.C: Renamed err to e.
17233         * testsuite/libgomp.c++/task-6.C: Likewise.
17235 2010-01-28  Steve Ellcey  <sje@cup.hp.com>
17237         * configure.tgt (*-*-hpux*): Add -frandom-seed flag.
17239 2010-01-26  Paolo Bonzini  <bonzini@gnu.org>
17241         * configure.ac: Test for executability of _the first word_ of GFORTRAN.
17242         * configure: Regenerate.
17244 2010-01-26  Jakub Jelinek  <jakub@redhat.com>
17246         PR fortran/42866
17247         * testsuite/libgomp.fortran/allocatable5.f90: New test.
17249 2010-01-20  Paolo Bonzini  <bonzini@gnu.org>
17251         * configure.ac: Test for executability of GFORTRAN.
17252         * configure: Regenerate.
17254 2010-01-05  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
17256         * configure: Regenerate.
17258 2010-01-04  H.J. Lu  <hongjiu.lu@intel.com>
17260         PR libgomp/42602
17261         * libgomp.fortran/recursion1.f90 (sub): Make 's' atomic.
17263 2010-01-03  Richard Guenther  <rguenther@suse.de>
17265         * testsuite/libgomp.fortran/recursion1.f90: New testcase.
17267 2009-12-23  Sebastian Pop  <sebpop@gmail.com>
17269         * testsuite/libgomp.graphite/pr4118.c: New.
17271 2009-12-22  Iain Sandoe  <iain.sandoe@sandoe-acoustics.co.uk>
17273         * testsuite/libgomp.fortran/crayptr2.f90: Remove forced static linkage
17274         for darwin, protect the test with require-effective-target tls_runtime.
17275         * testsuite/libgomp.fortran/pr32550.f90: Ditto.
17277 2009-12-22  Iain Sandoe  <iain.sandoe@sandoe-acoustics.co.uk>
17279         PR target/41605
17280         * testsuite/lib/libgomp.exp: Provide -B options to allow for
17281         link spec %s substitutions for static libraries.
17283 2009-12-18  Jack Howarth <howarth@bromo.med.uc.edu>
17285         PR testsuite/42135
17286         * libgomp.graphite/force-parallel-2.c: Reduce array size.
17288 2009-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17290         * Makefile.in: Regenerate.
17291         * configure: Regenerate.
17292         * testsuite/Makefile.in: Regenerate.
17294 2009-11-30  Dave Korn  <dave.korn.cygwin@gmail.com>
17296         * testsuite/lib/libgomp.exp (libgomp_init): Add host-dependent
17297         settings for LC_ALL and LANG.
17299 2009-11-25  Jakub Jelinek  <jakub@redhat.com>
17301         PR fortran/42162
17302         * testsuite/libgomp.fortran/pr42162.f90: New test.
17304 2009-11-13  Jakub Jelinek  <jakub@redhat.com>
17306         PR middle-end/42029
17307         * testsuite/libgomp.c/pr42029.c: New test.
17309 2009-10-26  Jakub Jelinek  <jakub@redhat.com>
17311         * acinclude.m4 (LIBGOMP_CHECK_LINKER_FEATURES): Avoid using too many
17312         *s.  Accept ld version without text in ()s.
17313         * configure: Regenerated.
17315 2009-10-22  Razya Ladelsky  <razya@il.ibm.com>
17317         * testsuite/libgomp.graphite/force-parallel-2.c: Adjust scan.
17319 2009-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17321         PR libgomp/41418
17322         * configure.ac: Set FC to "no" if $GFORTRAN starts with "no"
17323         or a hyphen (happens with fortran language disabled).
17324         * configure: Regenerate.
17326 2009-09-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17328         * acinclude.m4 (LIBGOMP_CHECK_LINKER_FEATURES): Avoid 'head',
17329         use sed script portable to Solaris /bin/sed for extracting ld
17330         version.
17331         * configure: Regenerate.
17333 2009-09-17  Alexander Monakov  <amonakov@ispras.ru>
17335         * testsuite/libgomp.graphite/bounds.c: New test.
17337 2009-09-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17339         * Makefile.am (libgomp_la_LINK): New.
17340         * Makefile.in: Regenerate.
17342 2009-08-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17344         * configure.ac (AC_PREREQ): Bump to 2.64.
17346 2009-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17348         * Makefile.am (install-html, install-pdf): Remove.
17349         * Makefile.in: Regenerate.
17351         * Makefile.in: Regenerate.
17352         * aclocal.m4: Regenerate.
17353         * config.h.in: Regenerate.
17354         * configure: Regenerate.
17355         * testsuite/Makefile.in: Regenerate.
17357 2009-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17359         * Makefile.am (LINK): Add $(AM_LIBTOOLFLAGS) and $(LIBTOOLFLAGS).
17360         * Makefile.in: Regenerate.
17362 2009-08-20  Dave Korn  <dave.korn.cygwin@gmail.com>
17364         * Makefile.am (libgomp_la_LDFLAGS): Add -bindir flag.
17365         * Makefile.in: Regenerate.
17367 2009-08-19  Tobias Burnus  <burnus@net-b.de>
17369         PR fortran/41102
17370         omp_lib.h.in: Fix -std=f95 errors.
17372 2009-08-14  David Edelsohn  <edelsohn@gnu.org>
17374         * testsuite/libgomp.graphite: Move from gcc.dg/graphite.
17375         * testsuite/libgomp.graphite/graphite_autopar.exp: Delete.
17376         * testsuite/libgomp.graphite/graphite.exp: New.
17378 2009-08-05  Andreas Tobler  <a.tobler@schweiz.org>
17380         * testsuite/libgomp.fortran/fortran.exp: Add flags in case of shared
17381         only build.
17383 2009-08-04  David Daney  <ddaney@caviumnetworks.com>
17385         * config/linux/mutex.h (gomp_mutex_unlock): Add comment about
17386         needed memory barrier semantics.
17387         * config/linux/mips/mutex.h: New file.
17389 2009-07-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17391         * configure.ac (_AC_ARG_VAR_PRECIOUS): Use m4_rename_force.
17393 2009-07-16  Joseph Myers  <joseph@codesourcery.com>
17395         * configure: Regenerate.
17397 2009-07-11  Richard Sandiford  <rdsandiford@googlemail.com>
17399         PR testsuite/40699
17400         PR testsuite/40707
17401         PR testsuite/40709
17402         * testsuite/lib/libgomp.exp: Revert 2009-07-02 and 2009-06-30 commits.
17403         * testsuite/libgomp.c/c.exp, testsuite/libgomp.c++/c++.exp,
17404         testsuite/libgomp.fortran/fortran.exp: Revert 2009-06-30 commits.
17406 2009-07-02  Richard Sandiford  <r.sandiford@uk.ibm.com>
17408         * testsuite/lib/libgomp.exp (libgomp_init): Use the ALWAYS_CFLAGS
17409         options when choosing a multilib.
17411 2009-06-30  Richard Sandiford  <r.sandiford@uk.ibm.com>
17413         * testsuite/lib/libgomp.exp (libgomp_init): Don't add "." to
17414         ld_library_path.  Use add_path.  Add just find_libgcc_s to
17415         ld_library_path, not every libgcc multilib directory.
17416         * testsuite/libgomp.c/c.exp (ld_library_path): Don't call
17417         gcc-set-multilib-library-path; rely on $always_ld_library_path instead.
17418         * testsuite/libgomp.c++/c++.exp (ld_library_path): Likewise.
17419         Use add_path.
17420         * testsuite/libgomp.fortran/fortran.exp (ld_library_path): Likewise.
17422 2009-06-09  Nathan Froyd  <froydnj@codesourcery.com>
17424         * Makefile.am (LTLDFLAGS): Define.
17425         (LINK): Define.
17426         * Makefile.in: Regenerate.
17428 2009-05-27  Janne Blomqvist  <jb@gcc.gnu.org>
17430         PR fortran/39718
17431         * testsuite/libgomp.fortran/fortran.exp: Don't link with
17432         libgfortranbegin, check existence of libgfortran.a instead of
17433         libgfortranbegin.a.
17435 2009-05-20  Jakub Jelinek  <jakub@redhat.com>
17437         PR libgomp/40174
17438         * team.c (gomp_thread_start): Destroy thr->release semaphore.
17439         (gomp_free_pool_helper): Likewise.
17441 2009-04-20  Vasilis Liaskovitis  <vliaskov@gmail.com>
17442             Jakub Jelinek  <jakub@redhat.com>
17444         PR fortran/35423
17445         * testsuite/libgomp.fortran/workshare2.f90: New test.
17447 2009-04-09  Nick Clifton  <nickc@redhat.com>
17449         * iter.c: Change copyright header to refer to version 3 of the
17450         GNU General Public License with version 3.1 of the GCC Runtime
17451         Library Exception and to point readers at the COPYING3 and
17452         COPYING3.RUNTIME files and the FSF's license web page.
17453         * alloc.c: Likewise.
17454         * barrier.c: Likewise.
17455         * config/bsd/proc.c: Likewise.
17456         * config/linux/affinity.c: Likewise.
17457         * config/linux/alpha/futex.h: Likewise.
17458         * config/linux/bar.c: Likewise.
17459         * config/linux/bar.h: Likewise.
17460         * config/linux/ia64/futex.h: Likewise.
17461         * config/linux/ia64/mutex.h: Likewise.
17462         * config/linux/lock.c: Likewise.
17463         * config/linux/mips/futex.h: Likewise.
17464         * config/linux/mutex.c: Likewise.
17465         * config/linux/mutex.h: Likewise.
17466         * config/linux/powerpc/futex.h: Likewise.
17467         * config/linux/proc.c: Likewise.
17468         * config/linux/ptrlock.c: Likewise.
17469         * config/linux/ptrlock.h: Likewise.
17470         * config/linux/s390/futex.h: Likewise.
17471         * config/linux/sem.c: Likewise.
17472         * config/linux/sem.h: Likewise.
17473         * config/linux/sparc/futex.h: Likewise.
17474         * config/linux/wait.h: Likewise.
17475         * config/linux/x86/futex.h: Likewise.
17476         * config/mingw32/proc.c: Likewise.
17477         * config/mingw32/time.c: Likewise.
17478         * config/posix/affinity.c: Likewise.
17479         * config/posix/bar.c: Likewise.
17480         * config/posix/bar.h: Likewise.
17481         * config/posix/lock.c: Likewise.
17482         * config/posix/mutex.h: Likewise.
17483         * config/posix/proc.c: Likewise.
17484         * config/posix/ptrlock.h: Likewise.
17485         * config/posix/sem.c: Likewise.
17486         * config/posix/sem.h: Likewise.
17487         * config/posix/time.c: Likewise.
17488         * config/posix95/lock.c: Likewise.
17489         * critical.c: Likewise.
17490         * env.c: Likewise.
17491         * error.c: Likewise.
17492         * fortran.c: Likewise.
17493         * iter_ull.c: Likewise.
17494         * libgomp.h: Likewise.
17495         * libgomp_f.h.in: Likewise.
17496         * libgomp_g.h: Likewise.
17497         * loop.c: Likewise.
17498         * loop_ull.c: Likewise.
17499         * omp.h.in: Likewise.
17500         * omp_lib.f90.in: Likewise.
17501         * omp_lib.h.in: Likewise.
17502         * ordered.c: Likewise.
17503         * parallel.c: Likewise.
17504         * sections.c: Likewise.
17505         * single.c: Likewise.
17506         * task.c: Likewise.
17507         * team.c: Likewise.
17508         * work.c: Likewise.
17510 2009-04-09  Jakub Jelinek  <jakub@redhat.com>
17512         * testsuite/config/default.exp: Change copyright header to refer to
17513         version 3 of the GNU General Public License and to point readers
17514         at the COPYING3 file and the FSF's license web page.
17516 2009-04-08  Jakub Jelinek  <jakub@redhat.com>
17518         PR middle-end/39573
17519         * libgomp.c++/pr39573.C: New test.
17521 2009-04-01  Jakub Jelinek  <jakub@redhat.com>
17523         PR other/39591
17524         * testsuite/libgomp.c/pr39591-1.c: New test.
17525         * testsuite/libgomp.c/pr39591-2.c: New test.
17526         * testsuite/libgomp.c/pr39591-3.c: New test.
17528 2009-03-25  Uros Bizjak  <ubizjak@gmail.com>
17530         * testsuite/libgomp.c/atomic-5.c: Cleanup cpuid usage.
17531         * testsuite/libgomp.c/atomic-6.c: Ditto.
17533 2009-03-23  Jakub Jelinek  <jakub@redhat.com>
17535         PR c/39495
17536         * testsuite/libgomp.c/loop-12.c: New test.
17537         * testsuite/libgomp.c/loop-11.c: New test.
17538         * testsuite/libgomp.c++/loop-11.C: New test.
17539         * testsuite/libgomp.c++/loop-12.C: New test.
17540         * testsuite/libgomp.c++/for-8.C: New test.
17542 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17544         * configure: Regenerate.
17546 2009-02-11  Jakub Jelinek  <jakub@redhat.com>
17548         PR middle-end/39154
17549         * testsuite/libgomp.c/pr39154.c: New test.
17551 2009-01-30  Ian Lance Taylor  <iant@google.com>
17553         * acinclude.m4 (LIBCOMP_CHECK_LINKER_FEATURES): Set
17554         libgomp_ld_is_gold.  Get gold version number.
17555         (LIBGOMP_ENABLE_SYMVERS): Gold always support symbol versioning.
17556         * configure: Rebuild.
17558 2009-01-19  Iain Sandoe  <iain.sandoe@sandoe-acoustics.co.uk>
17560         * testsuite/lib/libgomp.exp: Add -B option for targets that
17561         use libgfortran.a%s in their specs.
17563 2009-01-07  Jakub Jelinek  <jakub@redhat.com>
17565         PR libgomp/38086
17566         * acinclude.m4 (HAVE_AS_SYMVER_DIRECTIVE): New check.
17567         * libgomp.h (LIBGOMP_GNU_SYMBOL_VERSIONING): Undefine if
17568         HAVE_AS_SYMVER_DIRECTIVE is not defined.
17569         * configure: Regenerated.
17570         * config.h.in: Likewise.
17572 2008-12-28  Jakub Jelinek  <jakub@redhat.com>
17574         PR c++/38650
17575         * testsuite/libgomp.c/pr38650.c: New test.
17576         * testsuite/libgomp.c++/pr38650.C: New test.
17578 2008-12-27  Jakub Jelinek  <jakub@redhat.com>
17580         * testsuite/libgomp.c/collapse-1.c (main): Add private(k) clause.
17582 2008-12-26  Uros Bizjak  <ubizjak@gmail.com>
17584         * testsuite/libgomp.c/atomic-6.c: Add -mieee for alpha*-*-* targets.
17586 2008-12-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17588         * configure: Regenerate.
17590 2008-12-08  Jakub Jelinek  <jakub@redhat.com>
17592         PR middle-end/36802
17593         * testsuite/libgomp.c/pr36802-1.c: New test.
17594         * testsuite/libgomp.c/pr36802-2.c: New test.
17595         * testsuite/libgomp.c/pr36802-3.c: New test.
17597 2008-12-01  Janis Johnson  <janis187@us.ibm.com>
17599         PR libgomp/38270
17600         * config/linux/powerpc/mutex.h: New.
17602 2008-12-01  Jakub Jelinek  <jakub@redhat.com>
17604         PR c++/38257
17605         * testsuite/libgomp.c++/for-7.C: New test.
17607         PR c++/38348
17608         * testsuite/libgomp.c++/for-6.C: New test.
17610 2008-11-26  Janis Johnson  <janis187@us.ibm.com>
17612         PR testsuite/28870
17613         * testsuite/lib/libgomp.exp: Include new timeout library files.
17614         (libgomp_target_compile): Set timeout value from new proc.
17616 2008-11-13  Steve Ellcey  <sje@cup.hp.com>
17618         PR libgomp/37938
17619         * config/linux/ia64/mutex.h: New.
17621 2008-11-04  Tobias Burnus  <burnus@net-b.de>
17623         PR libgomp/37935
17624         * libgomp.texi (Runtime library routines, environment variables):
17625         Update for OpenMP version 3.0.
17627 2008-09-26  Peter O'Gorman  <pogma@thewrittenword.com>
17628             Steve Ellcey  <sje@cup.hp.com>
17630         * configure: Regenerate for new libtool.
17631         * Makefile.in: Ditto.
17632         * testsuite/Makefile.in: Ditto.
17634 2008-09-19  Jakub Jelinek  <jakub@redhat.com>
17635             Andreas Tobler  <a.tobler@schweiz.org>
17637         * config/bsd/proc.c: New file.
17638         * configure.tgt (*-*-darwin*): Use config_path "bsd posix".
17639         * configure.ac: Check for header <sys/sysctl.h>
17640         * configure: Regenerate.
17641         * config.h.in: Likewise.
17643 2008-09-05  Janis Johnson  <janis187@us.ibm.com>
17645         * testsuite/ligbomp.c/c.exp: Unset lang_test_file only if it exists.
17647 2008-08-31  Aaron W. LaFramboise  <aaronavay62@aaronwl.com>
17649         * Makefile.am (libgomp_la_LDFLAGS): Add -no-undefined.
17650         * Makefile.in: Regenerated.
17651         * testsuite/Makefile.in: Regenerated.
17653 2008-08-21  Nathan Froyd  <froydnj@codesourcery.com>
17655         * testsuite/lib/libgomp.exp (libgomp_init): Only set things that
17656         depend on blddir if blddir exists.
17657         (libgomp_target_compile): Likewise.
17658         * testsuite/libgomp.c++/c++.exp: Likewise.
17659         * testsuite/libgomp.fortran/fortran.exp: Likewise.
17661 2008-07-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17663         * libgomp.texi: Update to GFDL 1.2.  Update copyright years.
17664         Do not list GPL as Invariant Section.
17666 2008-07-28  Ilie Garbacea  <ilie@mips.com>
17667             Chao-ying Fu  <fu@mips.com>
17669         * configure.tgt: Enable futex for MIPS.
17670         * config/linux/mips/futex.h: New file.
17672 2008-07-16  Jakub Jelinek  <jakub@redhat.com>
17674         * team.c (gomp_team_end): Free team immediately if it has
17675         just one thread.
17677 2008-07-08  David Edelsohn  <edelsohn@gnu.org>
17679         * testsuite/libgomp.c++/c++.exp: Append multilib library path.
17680         * testsuite/libgomp.fortran/fortran.exp: Same.
17681         * testsuite/libgomp.c/c.exp: Same.
17682         * testsuite/lib/libgomp.exp: Append AIX libgcc pthread multilib
17683         directory to library path first.
17685 2008-06-29  Krister Walfridsson  <krister.walfridsson@gmail.com>
17687         * env.c (parse_stacksize): Add cast to avoid warning.
17688         (parse_spincount): Likewise.
17690 2008-06-27  Jakub Jelinek  <jakub@redhat.com>
17692         * testsuite/libgomp.c/loop-10.c: New test.
17693         * libgomp.c/loop-3.c (main): Add lastprivate clause.
17694         * libgomp.c++/loop-6.C (main): Likewise.
17696         PR debug/36617
17697         * testsuite/libgomp.c/debug-1.c: New test.
17699 2008-06-19  Jakub Jelinek  <jakub@redhat.com>
17701         * testsuite/libgomp.c/nqueens-1.c: New test.
17703         PR c++/36523
17704         * testsuite/libgomp.c++/task-7.C: New function.
17706 2008-06-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17708         * configure: Regenerate.
17710 2008-06-15  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
17712         * env.c (initialize_env): Always initialize gomp_remaining_threads_lock
17713         mutex when HAVE_SYNC_BUILTINS isn't defined.
17715 2008-06-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17717         * libgomp.texi (omp_test_lock): Fix typo.
17719 2008-06-12  Tobias Burnus  <burnus@net-b.de>
17721         * omp_lib.f90.in: Add "implicit none".
17723 2008-06-12  Jakub Jelinek  <jakub@redhat.com>
17725         PR middle-end/36506
17726         * testsuite/libgomp.c/reduction-5.c: New test.
17728 2008-06-11  Jakub Jelinek  <jakub@redhat.com>
17730         * libgomp.h (struct gomp_task): Add in_tied_task field.
17731         * task.c (gomp_init_task): Initialize it.
17732         (GOMP_task): Likewise.  Call gomp_team_barrier_set_task_pending
17733         unconditionally.  Don't call gomp_team_barrier_wake if
17734         current task is implicit or if(0) from implicit and number of
17735         running tasks is equal to nthreads - 1.
17737         PR libgomp/36471
17738         * omp_lib.f90.in (omp_get_ancestor_thread_num_8,
17739         omp_get_team_size_8): Fix pastos.
17741         PR libgomp/36469
17742         * configure.ac: Add AC_CHECK_FUNCS (strtoull).
17743         * configure: Regenerated.
17744         * config.h.in: Regenerated.
17745         * env.c (strtoull): Define to strtoul if HAVE_STRTOULL is not
17746         defined.
17748 2008-06-06  Andreas Tobler  <a.tobler@schweiz.org>
17750         PR bootstrap/36452
17751         * loop_ull.c (GOMP_loop_ull_static_start): Adjust API.
17752         (GOMP_loop_ull_dynamic_start): Likewise.
17753         (GOMP_loop_ull_guided_start): Likewise.
17754         (GOMP_loop_ull_ordered_static_start): Likewise.
17755         (GOMP_loop_ull_ordered_dynamic_start): Likewise.
17756         (GOMP_loop_ull_ordered_guided_start): Likewise.
17758 2008-06-06  Jakub Jelinek  <jakub@redhat.com>
17759             Richard Henderson  <rth@redhat.com>
17760             Ulrich Drepper  <drepper@redhat.com>
17761             Jakob Blomer  <jakob.blomer@ira.uka.de>
17763         * configure.ac (LIBGOMP_GNU_SYMBOL_VERSIONING): New AC_DEFINE.
17764         Substitute also OMP_*LOCK_25*.
17765         * configure: Regenerated.
17766         * config.h.in: Regenerated.
17767         * Makefile.am (libgomp_la_SOURCES): Add loop_ull.c, iter_ull.c,
17768         ptrlock.c and task.c.
17769         * Makefile.in: Regenerated.
17770         * testsuite/Makefile.in: Regenerated.
17771         * task.c: New file.
17772         * loop_ull.c: New file.
17773         * iter_ull.c: New file.
17774         * libgomp.h: Include ptrlock.h.
17775         (enum gomp_task_kind): New type.
17776         (struct gomp_team): Add task_lock, task_queue, task_count,
17777         task_running_count, single_count fields.  Add
17778         work_share_list_free_lock ifndef HAVE_SYNC_BUILTINS.
17779         Remove work_share_lock, generation_mask,
17780         oldest_live_gen, num_live_gen and init_work_shares fields, add
17781         work work_share_list_alloc, work_share_list_free and work_share_chunk
17782         fields.  Change work_shares from pointer to pointers into an array.
17783         Change ordered_release field into gomp_sem_t ** from flexible array
17784         member.  Add implicit_task and initial_work_shares fields.
17785         Move close to the end of the struct.
17786         (struct gomp_team_state): Add single_count, last_work_share,
17787         active_level and level fields, remove work_share_generation.
17788         (gomp_barrier_handle_tasks): New prototype.
17789         (gomp_finish_task): New inline function.
17790         (struct gomp_work_share): Move chunk_size, end, incr into
17791         transparent union/struct, add chunk_size_ull, end_ll, incr_ll and
17792         next_ll fields.  Reshuffle fields.  Add next_alloc,
17793         next_ws, next_free and inline_ordered_team_ids fields, change
17794         ordered_team_ids into pointer from flexible array member.
17795         Add mode field.  Put lock and next into a different cache line
17796         from most of the write-once fields.
17797         (gomp_iter_ull_static_next, gomp_iter_ull_dynamic_next_locked,
17798         gomp_iter_ull_guided_next_locked, gomp_iter_ull_dynamic_next,
17799         gomp_iter_ull_guided_next): New prototypes.
17800         (gomp_new_icv): New prototype.
17801         (struct gomp_thread): Add thread_pool and task fields.
17802         (struct gomp_thread_pool): New type.
17803         (gomp_new_team): New prototype.
17804         (gomp_team_start): Change type of last argument.
17805         (gomp_new_work_share): Removed.
17806         (gomp_init_work_share, gomp_fini_work_share): New prototypes.
17807         (gomp_work_share_init_done): New static inline.
17808         (gomp_throttled_spin_count_var, gomp_available_cpus,
17809         gomp_managed_threads): New extern decls.
17810         (gomp_init_task): New prototype.
17811         (gomp_spin_count_var): New extern var decl.
17812         (LIBGOMP_GNU_SYMBOL_VERSIONING): Undef if no visibility
17813         or no alias support, or if not PIC.
17814         (gomp_init_lock_30, gomp_destroy_lock_30, gomp_set_lock_30,
17815         gomp_unset_lock_30, gomp_test_lock_30, gomp_init_nest_lock_30,
17816         gomp_destroy_nest_lock_30, gomp_set_nest_lock_30,
17817         gomp_unset_nest_lock_30, gomp_test_nest_lock_30, gomp_init_lock_25,
17818         gomp_destroy_lock_25, gomp_set_lock_25, gomp_unset_lock_25,
17819         gomp_test_lock_25, gomp_init_nest_lock_25, gomp_destroy_nest_lock_25,
17820         gomp_set_nest_lock_25, gomp_unset_nest_lock_25,
17821         gomp_test_nest_lock_25): New prototypes.
17822         (omp_lock_symver, strong_alias): Define.
17823         (gomp_remaining_threads_count, gomp_remaining_threads_lock): New
17824         decls.
17825         (gomp_end_task): New.
17826         (struct gomp_task_icv, gomp_global_icv): New.
17827         (gomp_thread_limit_var, gomp_max_active_levels_var): New.
17828         (struct gomp_task): New.
17829         (gomp_nthreads_var, gomp_dyn_var, gomp_nest_var,
17830         gomp_run_sched_var, gomp_run_sched_chunk): Remove.
17831         (gomp_icv): New.
17832         (gomp_schedule_type): Reorder enum to match
17833         omp_sched_t.
17834         * team.c (struct gomp_thread_start_data): Add thread_pool and task
17835         fields.
17836         (gomp_thread_start): Add gomp_team_barrier_wait call.
17837         For non-nested case remove clearing of docked thread thr fields.
17838         Use pool fields instead of global gomp_* variables.  Use
17839         gomp_barrier_wait_last when needed.  Initialize ts.active_level.
17840         Create tasks for each member thread.
17841         (free_team): Only destroy team barrier, task_lock here and free it.
17842         (gomp_free_thread): Free last_team if non-NULL.
17843         (gomp_team_end): Call gomp_team_barrier_wait instead of
17844         gomp_barrier_wait.  For nested case call one extra
17845         gomp_barrier_wait.  Move here some destruction from free_team.
17846         Call free_team on pool->last_team if any, rather than freeing
17847         current team.  Destroy work_share_list_free_lock ifndef
17848         HAVE_SYNC_BUILTINS.
17849         (gomp_new_icv): New function.
17850         (gomp_threads, gomp_threads_size, gomp_threads_used,
17851         gomp_threads_dock): Removed.
17852         (gomp_thread_destructor): New variable.
17853         (gomp_new_thread_pool, gomp_free_pool_helper, gomp_free_thread): New
17854         functions.
17855         (gomp_team_start): Create new pool if current thread doesn't have
17856         one.  Use pool fields instead of global gomp_* variables.
17857         Initialize thread_pool field for new threads.  Clear single_count.
17858         Change last argument from ws to team, don't create
17859         new team, set ts.work_share to &team->work_shares[0] and clear
17860         ts.last_work_share.  Don't clear ts.work_share_generation.
17861         If number of threads changed, adjust atomically gomp_managed_threads.
17862         Use gomp_init_task instead of gomp_new_task,
17863         set thr->task to the corresponding implicit_task array entry.
17864         Create tasks for each member thread.  Initialize ts.level.
17865         (initialize_team): Call pthread_key_create on
17866         gomp_thread_destructor.
17867         (team_destructor): New function.
17868         (new_team): Removed.
17869         (gomp_new_team): New function.
17870         (free_team): Free gomp_work_share blocks chained through next_alloc,
17871         instead of freeing work_shares and destroying work_share_lock.
17872         (gomp_team_end): Call gomp_fini_work_share.  If number of threads
17873         changed, adjust atomically gomp_managed_threads.  Use gomp_end_task.
17874         * barrier.c (GOMP_barrier): Call gomp_team_barrier_wait instead
17875         of gomp_barrier_wait.
17876         * single.c (GOMP_single_copy_start): Call gomp_team_barrier_wait
17877         instead of gomp_barrier_wait.  Call gomp_work_share_init_done
17878         if gomp_work_share_start returned true.  Don't unlock ws->lock.
17879         (GOMP_single_copy_end): Call gomp_team_barrier_wait instead
17880         of gomp_barrier_wait.
17881         (GOMP_single_start): Rewritten if HAVE_SYNC_BUILTINS.  Call
17882         gomp_work_share_init_done if gomp_work_share_start returned true.
17883         Don't unlock ws->lock.
17884         * work.c: Include stddef.h.
17885         (free_work_share): Use work_share_list_free_lock instead
17886         of atomic chaining ifndef HAVE_SYNC_BUILTINS.  Add team argument.
17887         Call gomp_fini_work_share and then either free ws if orphaned, or
17888         put it into work_share_list_free list of the current team.
17889         (alloc_work_share, gomp_init_work_share, gomp_fini_work_share): New
17890         functions.
17891         (gomp_work_share_start, gomp_work_share_end,
17892         gomp_work_share_end_nowait): Rewritten.
17893         * omp_lib.f90.in Change some tabs to spaces to prevent warnings.
17894         (openmp_version): Set to 200805.
17895         (omp_sched_kind, omp_sched_static, omp_sched_dynamic,
17896         omp_sched_guided, omp_sched_auto): New parameters.
17897         (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
17898         omp_set_max_active_levels, omp_get_max_active_levels,
17899         omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
17900         omp_get_active_level): New interfaces.
17901         * omp_lib.h.in (openmp_version): Set to 200805.
17902         (omp_sched_kind, omp_sched_static, omp_sched_dynamic,
17903         omp_sched_guided, omp_sched_auto): New parameters.
17904         (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
17905         omp_set_max_active_levels, omp_get_max_active_levels,
17906         omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
17907         omp_get_active_level): New externals.
17908         * loop.c: Include limits.h.
17909         (GOMP_loop_runtime_next, GOMP_loop_ordered_runtime_next): Handle
17910         GFS_AUTO.
17911         (GOMP_loop_runtime_start, GOMP_loop_ordered_runtime_start):
17912         Likewise.  Use gomp_icv.
17913         (gomp_loop_static_start, gomp_loop_dynamic_start): Clear
17914         ts.static_trip here.
17915         (gomp_loop_static_start, gomp_loop_ordered_static_start): Call
17916         gomp_work_share_init_done after gomp_loop_init.  Don't unlock ws->lock.
17917         (gomp_loop_dynamic_start, gomp_loop_guided_start): Call
17918         gomp_work_share_init_done after gomp_loop_init.  If HAVE_SYNC_BUILTINS,
17919         don't unlock ws->lock, otherwise lock it.
17920         (gomp_loop_ordered_dynamic_start, gomp_loop_ordered_guided_start): Call
17921         gomp_work_share_init_done after gomp_loop_init.  Lock ws->lock.
17922         (gomp_parallel_loop_start): Call gomp_new_team instead of
17923         gomp_new_work_share.  Call gomp_loop_init on &team->work_shares[0].
17924         Adjust gomp_team_start caller.  Pass 0 as second argument to
17925         gomp_resolve_num_threads.
17926         (gomp_loop_init): For GFS_DYNAMIC, multiply ws->chunk_size by incr.
17927         If adding ws->chunk_size nthreads + 1 times after end won't
17928         overflow, set ws->mode to 1.
17929         * libgomp_g.h (GOMP_loop_ull_static_start, GOMP_loop_ull_dynamic_start,
17930         GOMP_loop_ull_guided_start, GOMP_loop_ull_runtime_start,
17931         GOMP_loop_ull_ordered_static_start,
17932         GOMP_loop_ull_ordered_dynamic_start,
17933         GOMP_loop_ull_ordered_guided_start,
17934         GOMP_loop_ull_ordered_runtime_start, GOMP_loop_ull_static_next,
17935         GOMP_loop_ull_dynamic_next, GOMP_loop_ull_guided_next,
17936         GOMP_loop_ull_runtime_next, GOMP_loop_ull_ordered_static_next,
17937         GOMP_loop_ull_ordered_dynamic_next, GOMP_loop_ull_ordered_guided_next,
17938         GOMP_loop_ull_ordered_runtime_next, GOMP_task, GOMP_taskwait): New
17939         prototypes.
17940         * libgomp.map: Export lock routines also @@OMP_2.0.
17941         (GOMP_loop_ordered_dynamic_first,
17942         GOMP_loop_ordered_guided_first, GOMP_loop_ordered_runtime_first,
17943         GOMP_loop_ordered_static_first): Remove.
17944         (GOMP_loop_ull_dynamic_next, GOMP_loop_ull_dynamic_start,
17945         GOMP_loop_ull_guided_next, GOMP_loop_ull_guided_start,
17946         GOMP_loop_ull_ordered_dynamic_next,
17947         GOMP_loop_ull_ordered_dynamic_start,
17948         GOMP_loop_ull_ordered_guided_next,
17949         GOMP_loop_ull_ordered_guided_start,
17950         GOMP_loop_ull_ordered_runtime_next,
17951         GOMP_loop_ull_ordered_runtime_start,
17952         GOMP_loop_ull_ordered_static_next,
17953         GOMP_loop_ull_ordered_static_start,
17954         GOMP_loop_ull_runtime_next, GOMP_loop_ull_runtime_start,
17955         GOMP_loop_ull_static_next, GOMP_loop_ull_static_start,
17956         GOMP_task, GOMP_taskwait): Export @@GOMP_2.0.
17957         (omp_set_schedule, omp_get_schedule,
17958         omp_get_thread_limit, omp_set_max_active_levels,
17959         omp_get_max_active_levels, omp_get_level,
17960         omp_get_ancestor_thread_num, omp_get_team_size, omp_get_active_level,
17961         omp_set_schedule_, omp_set_schedule_8_,
17962         omp_get_schedule_, omp_get_schedule_8_, omp_get_thread_limit_,
17963         omp_set_max_active_levels_, omp_set_max_active_levels_8_,
17964         omp_get_max_active_levels_, omp_get_level_,
17965         omp_get_ancestor_thread_num_, omp_get_ancestor_thread_num_8_,
17966         omp_get_team_size_, omp_get_team_size_8_, omp_get_active_level_):
17967         New exports @@OMP_3.0.
17968         * omp.h.in (omp_sched_t): New type.
17969         (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
17970         omp_set_max_active_levels, omp_get_max_active_levels,
17971         omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
17972         omp_get_active_level): New prototypes.
17973         * env.c (gomp_spin_count_var, gomp_throttled_spin_count_var,
17974         gomp_available_cpus, gomp_managed_threads, gomp_max_active_levels_var,
17975         gomp_thread_limit_var, gomp_remaining_threads_count,
17976         gomp_remaining_threads_lock): New variables.
17977         (parse_spincount): New function.
17978         (initialize_env): Call gomp_init_num_threads unconditionally.
17979         Initialize gomp_available_cpus.  Call parse_spincount,
17980         initialize gomp_{,throttled_}spin_count_var
17981         depending on presence and value of OMP_WAIT_POLICY and
17982         GOMP_SPINCOUNT env vars.  Handle GOMP_BLOCKTIME env var.
17983         Handle OMP_WAIT_POLICY, OMP_MAX_ACTIVE_LEVELS,
17984         OMP_THREAD_LIMIT, OMP_STACKSIZE env vars.  Handle unit specification
17985         for GOMP_STACKSIZE.  Initialize gomp_remaining_threads_count and
17986         gomp_remaining_threads_lock if needed.  Use gomp_global_icv.
17987         (gomp_nthreads_var, gomp_dyn_var, gomp_nest_var,
17988         gomp_run_sched_var, gomp_run_sched_chunk): Remove.
17989         (gomp_global_icv): New.
17990         (parse_schedule): Use it.  Parse "auto".
17991         (omp_set_num_threads): Use gomp_icv.
17992         (omp_set_dynamic, omp_get_dynamic, omp_set_nested, omp_get_nested):
17993         Likewise.
17994         (omp_get_max_threads): Move from parallel.c.
17995         (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
17996         omp_set_max_active_levels, omp_get_max_active_levels): New functions,
17997         add ialias.
17998         (parse_stacksize, parse_wait_policy): New functions.
17999         * fortran.c: Rewrite lock wrappers, if symbol versioning provide
18000         both wrappers for compatibility and new locks.
18001         (omp_set_schedule, omp_get_schedule,
18002         omp_get_thread_limit, omp_set_max_active_levels,
18003         omp_get_max_active_levels, omp_get_level,
18004         omp_get_ancestor_thread_num, omp_get_team_size,
18005         omp_get_active_level): New ialias_redirect.
18006         (omp_set_schedule_, omp_set_schedule_8_,
18007         omp_get_schedule_, omp_get_schedule_8_, omp_get_thread_limit_,
18008         omp_set_max_active_levels_, omp_set_max_active_levels_8_,
18009         omp_get_max_active_levels_, omp_get_level_,
18010         omp_get_ancestor_thread_num_, omp_get_ancestor_thread_num_8_,
18011         omp_get_team_size_, omp_get_team_size_8_, omp_get_active_level_):
18012         New functions.
18013         * parallel.c: Include limits.h.
18014         (gomp_resolve_num_threads): Add count argument.  Rewritten.
18015         (GOMP_parallel_start): Call gomp_new_team and pass that as last
18016         argument to gomp_team_start.  Pass 0 as second argument to
18017         gomp_resolve_num_threads.
18018         (GOMP_parallel_end): Decrease gomp_remaining_threads_count
18019         if gomp_thread_limit_var != ULONG_MAX.
18020         (omp_in_parallel): Implement using ts.active_level.
18021         (omp_get_max_threads): Move to env.c.
18022         (omp_get_level, omp_get_ancestor_thread_num,
18023         omp_get_team_size, omp_get_active_level): New functions,
18024         add ialias.
18025         * sections.c (GOMP_sections_start): Call gomp_work_share_init_done
18026         after gomp_sections_init.  If HAVE_SYNC_BUILTINS, call
18027         gomp_iter_dynamic_next instead of the _locked variant and don't take
18028         lock around it, otherwise acquire it before calling
18029         gomp_iter_dynamic_next_locked.
18030         (GOMP_sections_next): If HAVE_SYNC_BUILTINS, call
18031         gomp_iter_dynamic_next instead of the _locked variant and don't take
18032         lock around it.
18033         (GOMP_parallel_sections_start): Call gomp_new_team instead of
18034         gomp_new_work_share.  Call gomp_sections_init on &team->work_shares[0].
18035         Adjust gomp_team_start caller.  Pass count as second argument to
18036         gomp_resolve_num_threads, don't adjust num_threads after the call.
18037         Use gomp_icv.
18038         * iter.c (gomp_iter_dynamic_next_locked): Don't multiply
18039         ws->chunk_size by incr.
18040         (gomp_iter_dynamic_next): Likewise.  If ws->mode, use more efficient
18041         code.
18042         * libgomp_f.h.in (omp_lock_25_arg_t, omp_nest_lock_25_arg_t): New
18043         types.
18044         (omp_lock_25_arg, omp_nest_lock_25_arg): New macros.
18045         (omp_check_defines): Check even the compat defines.
18046         * config/linux/ptrlock.c: New file.
18047         * config/linux/ptrlock.h: New file.
18048         * config/linux/wait.h: New file.
18049         * config/posix/ptrlock.c: New file.
18050         * config/posix/ptrlock.h: New file.
18051         * config/linux/bar.h (gomp_team_barrier_wait,
18052         gomp_team_barrier_wait_end, gomp_team_barrier_wake): New prototypes.
18053         (gomp_team_barrier_set_task_pending,
18054         gomp_team_barrier_clear_task_pending,
18055         gomp_team_barrier_set_waiting_for_tasks,
18056         gomp_team_barrier_waiting_for_tasks,
18057         gomp_team_barrier_done): New inlines.
18058         (gomp_barrier_t): Rewritten.
18059         (gomp_barrier_state_t): New typedef.
18060         (gomp_barrier_init, gomp_barrier_reinit, gomp_barrier_destroy,
18061         gomp_barrier_wait_start): Rewritten.
18062         (gomp_barrier_wait_end): Change second argument to
18063         gomp_barrier_state_t.
18064         (gomp_barrier_last_thread, gomp_barrier_wait_last): New static
18065         inlines.
18066         * config/linux/bar.c: Include wait.h instead of libgomp.h and
18067         futex.h.
18068         (gomp_barrier_wait_end): Rewritten.
18069         (gomp_team_barrier_wait, gomp_team_barrier_wait_end,
18070         gomp_team_barrier_wake, gomp_barrier_wait_last): New functions.
18071         * config/posix/bar.h (gomp_barrier_t): Add generation field.
18072         (gomp_barrier_state_t): New typedef.
18073         (gomp_team_barrier_wait,
18074         gomp_team_barrier_wait_end, gomp_team_barrier_wake): New prototypes.
18075         (gomp_barrier_wait_start): Or all but low 2 bits from generation
18076         into the return value.  Return gomp_barrier_state_t.
18077         (gomp_team_barrier_set_task_pending,
18078         gomp_team_barrier_clear_task_pending,
18079         gomp_team_barrier_set_waiting_for_tasks,
18080         gomp_team_barrier_waiting_for_tasks,
18081         gomp_team_barrier_done): New inlines.
18082         (gomp_barrier_wait_end): Change second argument to
18083         gomp_barrier_state_t.
18084         (gomp_barrier_last_thread, gomp_barrier_wait_last): New static
18085         inlines.
18086         * config/posix/bar.c (gomp_barrier_init): Clear generation field.
18087         (gomp_barrier_wait_end): Change second argument to
18088         gomp_barrier_state_t.
18089         (gomp_team_barrier_wait, gomp_team_barrier_wait_end,
18090         gomp_team_barrier_wake): New functions.
18091         * config/linux/mutex.c: Include wait.h instead of libgomp.h and
18092         futex.h.
18093         (gomp_futex_wake, gomp_futex_wait): New variables.
18094         (gomp_mutex_lock_slow): Call do_wait instead of futex_wait.
18095         * config/linux/lock.c: Rewrite to make locks task owned,
18096         for backwards compatibility provide the old entrypoints
18097         if symbol versioning.  Include wait.h instead of libgomp.h and
18098         futex.h.
18099         (gomp_set_nest_lock_25): Call do_wait instead of futex_wait.
18100         * config/posix95/lock.c: Rewrite to make locks task owned,
18101         for backwards compatibility provide the old entrypoints
18102         if symbol versioning.
18103         * config/posix/lock.c: Rewrite to make locks task owned,
18104         for backwards compatibility provide the old entrypoints
18105         if symbol versioning.
18106         * config/linux/proc.c (gomp_init_num_threads): Use gomp_global_icv.
18107         (get_num_procs, gomp_dynamic_max_threads): Use gomp_icv.
18108         * config/posix/proc.c, config/mingw32/proc.c: Similarly.
18109         * config/linux/powerpc/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
18110         (sys_futex0): Return error code.
18111         (futex_wake, futex_wait): If ENOSYS was returned, clear
18112         FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
18113         (cpu_relax, atomic_write_barrier): New static inlines.
18114         * config/linux/alpha/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
18115         (futex_wake, futex_wait): If ENOSYS was returned, clear
18116         FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
18117         (cpu_relax, atomic_write_barrier): New static inlines.
18118         * config/linux/x86/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
18119         (sys_futex0): Return error code.
18120         (futex_wake, futex_wait): If ENOSYS was returned, clear
18121         FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
18122         (cpu_relax, atomic_write_barrier): New static inlines.
18123         * config/linux/s390/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
18124         (sys_futex0): Return error code.
18125         (futex_wake, futex_wait): If ENOSYS was returned, clear
18126         FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
18127         (cpu_relax, atomic_write_barrier): New static inlines.
18128         * config/linux/ia64/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
18129         (sys_futex0): Return error code.
18130         (futex_wake, futex_wait): If ENOSYS was returned, clear
18131         FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
18132         (cpu_relax, atomic_write_barrier): New static inlines.
18133         * config/linux/sparc/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
18134         (sys_futex0): Return error code.
18135         (futex_wake, futex_wait): If ENOSYS was returned, clear
18136         FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
18137         (cpu_relax, atomic_write_barrier): New static inlines.
18138         * config/linux/sem.c: Include wait.h instead of libgomp.h and
18139         futex.h.
18140         (gomp_sem_wait_slow): Call do_wait instead of futex_wait.
18141         * config/linux/affinity.c: Assume HAVE_SYNC_BUILTINS.
18142         * config/linux/omp-lock.h (omp_lock_25_t, omp_nest_lock_25_t): New
18143         types.
18144         (omp_nest_lock_t): Change owner into void *, add lock field.
18145         * config/posix95/omp-lock.h: Include semaphore.h.
18146         (omp_lock_25_t, omp_nest_lock_25_t): New types.
18147         (omp_lock_t): Use sem_t instead of mutex if semaphores
18148         aren't broken.
18149         (omp_nest_lock_t): Likewise.  Change owner to void *.
18150         * config/posix/omp-lock.h: Include semaphore.h.
18151         (omp_lock_25_t, omp_nest_lock_25_t): New types.
18152         (omp_lock_t): Use sem_t instead of mutex if semaphores
18153         aren't broken.
18154         (omp_nest_lock_t): Likewise.  Add owner field.
18156 2008-06-06  Jakub Jelinek  <jakub@redhat.com>
18158         * testsuite/libgomp.c/collapse-1.c: New test.
18159         * testsuite/libgomp.c/collapse-2.c: New test.
18160         * testsuite/libgomp.c/collapse-3.c: New test.
18161         * testsuite/libgomp.c/icv-1.c: New test.
18162         * testsuite/libgomp.c/icv-2.c: New test.
18163         * testsuite/libgomp.c/lib-2.c: New test.
18164         * testsuite/libgomp.c/lock-1.c: New test.
18165         * testsuite/libgomp.c/lock-2.c: New test.
18166         * testsuite/libgomp.c/lock-3.c: New test.
18167         * testsuite/libgomp.c/loop-4.c: New test.
18168         * testsuite/libgomp.c/loop-5.c: New test.
18169         * testsuite/libgomp.c/loop-6.c: New test.
18170         * testsuite/libgomp.c/loop-7.c: New test.
18171         * testsuite/libgomp.c/loop-8.c: New test.
18172         * testsuite/libgomp.c/loop-9.c: New test.
18173         * testsuite/libgomp.c/nested-3.c: New test.
18174         * testsuite/libgomp.c/nestedfn-6.c: New test.
18175         * testsuite/libgomp.c/sort-1.c: New test.
18176         * testsuite/libgomp.c/task-1.c: New test.
18177         * testsuite/libgomp.c/task-2.c: New test.
18178         * testsuite/libgomp.c/task-3.c: New test.
18179         * testsuite/libgomp.c/task-4.c: New test.
18180         * testsuite/libgomp.c++/c++.exp: Add libstdc++-v3 build includes
18181         to C++ testsuite default compiler options.
18182         * testsuite/libgomp.c++/collapse-1.C: New test.
18183         * testsuite/libgomp.c++/collapse-2.C: New test.
18184         * testsuite/libgomp.c++/ctor-10.C: New test.
18185         * testsuite/libgomp.c++/for-1.C: New test.
18186         * testsuite/libgomp.c++/for-2.C: New test.
18187         * testsuite/libgomp.c++/for-3.C: New test.
18188         * testsuite/libgomp.c++/for-4.C: New test.
18189         * testsuite/libgomp.c++/for-5.C: New test.
18190         * testsuite/libgomp.c++/loop-8.C: New test.
18191         * testsuite/libgomp.c++/loop-9.C: New test.
18192         * testsuite/libgomp.c++/loop-10.C: New test.
18193         * testsuite/libgomp.c++/task-1.C: New test.
18194         * testsuite/libgomp.c++/task-2.C: New test.
18195         * testsuite/libgomp.c++/task-3.C: New test.
18196         * testsuite/libgomp.c++/task-4.C: New test.
18197         * testsuite/libgomp.c++/task-5.C: New test.
18198         * testsuite/libgomp.c++/task-6.C: New test.
18199         * testsuite/libgomp.fortran/allocatable1.f90: New test.
18200         * testsuite/libgomp.fortran/allocatable2.f90: New test.
18201         * testsuite/libgomp.fortran/allocatable3.f90: New test.
18202         * testsuite/libgomp.fortran/allocatable4.f90: New test.
18203         * testsuite/libgomp.fortran/collapse1.f90: New test.
18204         * testsuite/libgomp.fortran/collapse2.f90: New test.
18205         * testsuite/libgomp.fortran/collapse3.f90: New test.
18206         * testsuite/libgomp.fortran/collapse4.f90: New test.
18207         * testsuite/libgomp.fortran/lastprivate1.f90: New test.
18208         * testsuite/libgomp.fortran/lastprivate2.f90: New test.
18209         * testsuite/libgomp.fortran/lib4.f90: New test.
18210         * testsuite/libgomp.fortran/lock-1.f90: New test.
18211         * testsuite/libgomp.fortran/lock-2.f90: New test.
18212         * testsuite/libgomp.fortran/nested1.f90: New test.
18213         * testsuite/libgomp.fortran/nestedfn4.f90: New test.
18214         * testsuite/libgomp.fortran/strassen.f90: New test.
18215         * testsuite/libgomp.fortran/tabs1.f90: New test.
18216         * testsuite/libgomp.fortran/tabs2.f: New test.
18217         * testsuite/libgomp.fortran/task1.f90: New test.
18218         * testsuite/libgomp.fortran/task2.f90: New test.
18219         * testsuite/libgomp.fortran/vla4.f90: Add dg-warning.
18220         * testsuite/libgomp.fortran/vla5.f90: Likewise.
18221         * testsuite/libgomp.c/pr26943-2.c: Likewise.
18222         * testsuite/libgomp.c/pr26943-3.c: Likewise.
18223         * testsuite/libgomp.c/pr26943-4.c: Likewise.
18225 2008-05-23  Jakub Jelinek  <jakub@redhat.com>
18227         PR c++/36308
18228         * testsuite/libgomp.c++/ctor-11.C: New test.
18229         * testsuite/libgomp.c++/ctor-12.C: New test.
18231 2008-05-15  Janis Johnson  <janis187@us.ibm.com>
18233         * testsuite/lib/libgomp.exp: Load torture-options.exp from gcc lib.
18235 2008-05-07  Jakub Jelinek  <jakub@redhat.com>
18237         PR middle-end/36106
18238         * testsuite/libgomp.c/atomic-5.c: New test.
18239         * testsuite/libgomp.c/atomic-6.c: New test.
18240         * testsuite/libgomp.c/autopar-1.c: New test.
18242 2008-04-21  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18244         * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS)
18245         (LIBGOMP_CHECK_ATTRIBUTE_VISIBILITY)
18246         (LIBGOMP_CHECK_ATTRIBUTE_DLLEXPORT)
18247         (LIBGOMP_CHECK_ATTRIBUTE_ALIAS): Fix cache variable names.
18248         * configure: Regenerate.
18249         * Makefile.in, testsuite/Makefile.in: Likewise.
18251 2008-04-18  Paolo Bonzini  <bonzini@gnu.org>
18253         PR bootstrap/35457
18254         * aclocal.m4: Regenerate.
18255         * configure: Regenerate.
18257 2008-03-18  Jakub Jelinek  <jakub@redhat.com>
18259         PR middle-end/35611
18260         * testsuite/libgomp.c/atomic-4.c: New test.
18262         PR libgomp/35625
18263         * iter.c (gomp_iter_guided_next_locked): If q > n, set end to ws->end.
18264         (gomp_iter_guided_next): Likewise.
18265         * testsuite/libgomp.c/pr35625.c: New test.
18267 2008-03-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18269         * aclocal.m4: Regenerate.
18270         * configure: Likewise.
18271         * Makefile.in: Likewise.
18272         * testsuite/Makefile.in: Likewise.
18274 2008-03-13  Jakub Jelinek  <jakub@redhat.com>
18276         PR middle-end/35185
18277         * testsuite/libgomp.c++/pr35185.C: New test.
18279 2008-03-12  Jakub Jelinek  <jakub@redhat.com>
18281         PR middle-end/35549
18282         * testsuite/libgomp.c/pr35549.c: New test.
18284 2008-03-06  Jakub Jelinek  <jakub@redhat.com>
18286         * testsuite/libgomp.c/atomic-3.c: New test.
18288 2008-03-03  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
18290         PR fortran/33197
18291         * testsuite/libgomp.fortran/fortran.exp: Add .f08 and
18292         .F08 file suffixes.
18294 2008-03-03  Peter O'Gorman  <pogma@thewrittenword.com>
18296         PR libgomp/33131
18297         * configure.ac: Add ACX_HEADER_STRING.
18298         * env.c: Include strings.h.
18299         * aclocal.m4: Regenerate.
18300         * config.h.in: Regenerate.
18301         * configure: Regenerate.
18302         * Makefile.in: Regenerate.
18303         * testsuite/Makefile.in: Regenerate.
18305 2008-02-15  Jakub Jelinek  <jakub@redhat.com>
18307         PR middle-end/35196
18308         * testsuite/libgomp.c/pr35196.c: New test.
18310         PR middle-end/35130
18311         * testsuite/libgomp.fortran/pr35130.f90: New test.
18312         * testsuite/libgomp.c/pr35130.c: New test.
18314 2008-01-25  Jakub Jelinek  <jakub@redhat.com>
18316         PR middle-end/33880
18317         * testsuite/libgomp.c/pr33880.c: New test.
18318         * testsuite/libgomp.fortran/pr33880.f90: New test.
18320 2008-01-24  David Edelsohn  <edelsohn@gnu.org>
18322         * configure: Regenerate.
18324 2008-01-08  Jakub Jelinek  <jakub@redhat.com>
18326         * configure.ac: Move futex checking into ../config/futex.m4.
18327         * configure: Rebuilt.
18328         * aclocal.m4: Rebuilt.
18329         * Makefile.in: Rebuilt.
18331         * configure.tgt: Rename have_tls to gcc_cv_have_tls to match
18332         2007-10-15 ../config/tls.m4 change.
18334 2007-12-19  Jakub Jelinek  <jakub@redhat.com>
18336         PR c++/34513
18337         * testsuite/libgomp.c/pr34513.c: New test.
18338         * testsuite/libgomp.c++/pr34513.C: New test.
18340 2007-12-17  Jack Howarth  <howarth@bromo.med.uc.edu>
18342         PR target/32765
18343         * testsuite/libgomp.fortran/crayptr2.f90: Move dg-options for darwin.
18345 2007-12-04  Jakub Jelinek  <jakub@redhat.com>
18347         * omp.h.in (__GOMP_NOTHROW): Define.  Use it on omp_* prototypes.
18349 2007-12-03  Jakub Jelinek  <jakub@redhat.com>
18351         * testsuite/libgomp.c/private-1.c: New test.
18353 2007-11-29  Andris Pavenis <andris.pavenis@iki.fi>
18354             Paolo Bonzini  <bonzini@gnu.org>
18356         * Makefile.am: Use space as vpath separator.  Use 'vpath %'
18357         instead of 'VPATH ='.
18358         * Makefile.in: Regenerate.
18360 2007-11-23  Matthias Klose  <doko@ubuntu.com>
18362         * configure.ac: Adjust makeinfo version check.
18363         * configure: Regenerate.
18365 2007-11-10  Jakub Jelinek  <jakub@redhat.com>
18367         PR fortran/34020
18368         * testsuite/libgomp.fortran/pr34020.f90: New test.
18370 2007-11-06  Jakub Jelinek  <jakub@redhat.com>
18372         PR c++/33894
18373         * testsuite/libgomp.c++/atomic-1.C: New test.
18375 2007-10-25  Jakub Jelinek  <jakub@redhat.com>
18377         PR libgomp/33275
18378         * testsuite/libgomp.fortran/omp_parse3.f90 (test_threadprivate):
18379         Make x and y integers rather than (implicit) reals.  Add private (j)
18380         clause to the last omp parallel.
18382 2007-10-15  Maciej W. Rozycki  <macro@linux-mips.org>
18384         * configure: Regenerate following changes to ../config/tls.m4.
18386 2007-09-28  Jakub Jelinek  <jakub@redhat.com>
18388         * testsuite/libgomp.fortran/stack.f90: New test.
18390 2007-09-10  Danny Smith  <dannysmith@users.sourceforge.net>
18392         * config/mingw32/proc.c: New file.
18394 2007-09-05  Uros Bizjak  <ubizjak@gmail.com>
18396         * testsuite/libgomp.c/atomic-1.c: Include cpuid.h for i386 targets.
18397         (main): Use __get_cpuid to get i386 target fetaures.
18398         * testsuite/libgomp.c/atomic-2.c: Include cpuid.h for x86_64 targets.
18399         (main): Use __get_cpuid to get x86_64 target fetaures.
18401 2007-08-15  Jack Howarth  <howarth@bromo.med.uc.edu>
18403         PR target/32765
18404         * testsuite/libgomp.fortran/pr32550.f90: Use -static-libgcc on Darwin.
18405         * testsuite/libgomp.fortran/crayptr2.f90: Likwise.
18407 2007-07-12  Jakub Jelinek  <jakub@redhat.com>
18409         PR fortran/32550
18410         * testsuite/libgomp.fortran/pr32550.f90: New test.
18411         * testsuite/libgomp.fortran/crayptr2.f90: New test.
18413 2007-07-05  H.J. Lu  <hongjiu.lu@intel.com>
18415         * aclocal.m4: Regenerated.
18417 2007-07-05  Tobias Burnus  <burnus@net-b.de>
18419         PR fortran/32359
18420         * testsuite/libgomp.fortran/pr32359.f90: New.
18422 2007-07-02  Jakub Jelinek  <jakub@redhat.com>
18424         PR libgomp/32468
18425         * sections.c (GOMP_parallel_sections_start): Only decrease
18426         number of threads to COUNT if dyn_var is true.
18427         * testsuite/libgomp.c/pr32468.c: New test.
18429 2007-07-02  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
18431         PR libgomp/26308
18432         * config/posix/lock.c (_XOPEN_SOURCE): Don't define on Tru64 UNIX.
18434 2007-06-21  Jakub Jelinek  <jakub@redhat.com>
18436         PR middle-end/32362
18437         * testsuite/libgomp.c/pr32362-1.c: New test.
18438         * testsuite/libgomp.c/pr32362-2.c: New test.
18439         * testsuite/libgomp.c/pr32362-3.c: New test.
18441 2007-06-07  Jakub Jelinek  <jakub@redhat.com>
18443         * team.c (gomp_team_start): Fix setting up thread_attr
18444         stack size.
18446 2007-06-02  Paolo Bonzini  <bonzini@gnu.org>
18448         * configure: Regenerate.
18450 2007-05-23  Steve Ellcey  <sje@cup.hp.com>
18452         * Makefile.in: Regenerate.
18453         * configure: Regenerate.
18454         * aclocal.m4: Regenerate.
18455         * testsuite/Makefile.in: Regenerate.
18457 2007-05-04  Jakub Jelinek  <jakub@redhat.com>
18459         * config/linux/proc.c: New file.
18461         PR libgomp/28482
18462         * configure.tgt: Don't link with -Wl,-z,nodlopen even on Linux.
18464 2007-04-19  Daniel Franke  <franke.daniel@gmail.com>
18466         * libgomp.texi (GOMP_CPU_AFFINITY): Updated.
18468 2007-04-16  Matthias Klose  <doko@debian.org>
18470         * configure.tgt (i[456]86-*-linux*): Only add ia32 specific
18471         flags if not building with -m64.
18472         * testsuite/lib/libgomp-dg.exp (libgomp_init): Don't add -march
18473         flag for i?86-*-* targets, if current target matches -m64.
18475 2007-04-14  Steve Ellcey  <sje@cup.hp.com>
18477         * Makefile.am: Add -I .. to ACLOCAL_AMFLAGS.
18478         * Makefile.in: Regenerate.
18480 2007-04-07  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
18482         PR testsuite/31369
18483         * testsuite/libgomp.c++/c++.exp: Don't use concat when setting
18484         ld_library_path.
18485         * testsuite/libgomp.fortran/fortran.exp: Likewise.
18487 2007-04-04  Jakub Jelinek  <jakub@redhat.com>
18489         * libgomp.h (gomp_cpu_affinity, gomp_cpu_affinity_len): New extern
18490         decls.
18491         (gomp_init_affinity, gomp_init_thread_affinity): New prototypes.
18492         * env.c (gomp_cpu_affinity, gomp_cpu_affinity_len): New variables.
18493         (parse_affinity): New function.
18494         (initialize_env): Call it and gomp_init_affinity.
18495         * team.c (gomp_team_start): If gomp_cpu_affinity != NULL,
18496         create new pthread_attr_t and call gomp_init_thread_affinity
18497         on it for each thread before passing the attribute to pthread_create.
18498         * config/linux/affinity.c: New file.
18499         * config/posix/affinity.c: New file.
18500         * configure.ac (HAVE_PTHREAD_AFFINITY_NP): New test.
18501         * configure: Rebuilt.
18502         * config.h.in: Rebuilt.
18503         * Makefile.am (libgomp_la_SOURCES): Add affinity.c.
18504         * Makefile.in: Rebuilt.
18506 2007-03-23  Andreas Tobler  <a.tobler@schweiz.org>
18508         * testsuite/lib/libgomp.exp (libgomp_init): Add -shared-libgcc for
18509         *-*-darwin*.
18510         * testsuite/libgomp.c++/c++.exp: Look for shared libstdc++ library
18511         and use it if found.
18513 2007-03-18  Uros Bizjak  <ubizjak@gmail.com>
18515         * testsuite/config/default.exp: New file.
18516         * testsuite/lib/libgomp.exp: New file.
18517         * testsuite/lib/libgomp.dg (load_gcc_lib, libgomp_init,
18518         libgomp_target_compile, libgomp_option_help, libgomp_option_proc,
18519         load_lib *, load_gcc_lib *): Move to libgomp.exp.
18520         (libgomp_load): Remove.
18521         * testsuite/lib/libgomp.exp (libgomp_init): Compute
18522         always_ld_library_path, not ld_library_path.  Set additional_flags
18523         to -march=i486 for ilp32 x86_64-*-* and i386-*-* targets.
18524         (target_compile): Do not call libgomp_init.  Append lang_library_path
18525         and lang_link_flags to options.
18526         * testsuite/libgomp.c/c.exp: Set DEFAULT_FLAGS to -O2.  Set
18527         ld_library_path from always_ld_library_path.  Set LD_LIBRARY_PATH
18528         here.
18529         * testsuite/libgomp.c++/c++.exp: Set ld_library_path from
18530         always_ld_library_path.  Set LD_LIBRARY_PATH here.
18531         * testsuite/libgomp.fortran/fortran.exp: Ditto.
18532         * testsuite/libgomp.c/atomic-1.c: Set dg-options to
18533         "-O2 -march=pentium" for ilp32 x86 targets. Simplify check for
18534         CX8 flag.
18535         * testsuite/libgomp.c/atomic-2.c: Set dg-options to "-O2 -mcx16" for
18536         lp64 x86 targets. Do not check for SSE3 bit. Do not define bit_SSE3.
18537         * testsuite/libgomp.c/pr29947-1.c: Remove default dg-options.
18538         * testsuite/libgomp.c/pr29947-1.c: Ditto.
18539         * testsuite/libgomp.c/atomic-10.c: Ditto.
18541 2007-03-21  Jakub Jelinek  <jakub@redhat.com>
18543         * testsuite/libgomp.fortran/appendix-a/a.22.8.f90: Add
18544         dg-final cleanup-modules line.
18545         * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: Likewise.
18546         * testsuite/libgomp.fortran/appendix-a/a.31.5.f90: Likewise.
18547         * testsuite/libgomp.fortran/appendix-a/a.31.4.f90: Likewise.
18548         * testsuite/libgomp.fortran/threadprivate2.f90: Likewise.
18549         * testsuite/libgomp.fortran/reduction5.f90: Likewise.
18550         * testsuite/libgomp.fortran/threadprivate3.f90: Likewise.
18551         * testsuite/libgomp.fortran/threadprivate1.f90: Likewise.
18553 2007-03-18  Andreas Schwab  <schwab@suse.de>
18555         * acinclude.m4: Adjust regular expression for ld version
18556         extraction.
18557         * configure: Regenerate.
18559 2007-03-01  Brooks Moses  <brooks.moses@codesourcery.com>
18561         * Makefile.am: Add install-pdf target as copied from
18562         automake v1.10 rules.
18563         * Makefile.in: Regenerate
18565 2007-02-07  Jakub Jelinek  <jakub@redhat.com>
18567         PR libgomp/28486
18568         * configure: Regenerate.
18570         PR c++/30703
18571         * testsuite/libgomp.c++/pr30703.C: New test.
18573 2007-02-02  Jakub Jelinek  <jakub@redhat.com>
18575         Revert:
18576         2006-07-05  Eric Christopher  <echristo@apple.com>
18577         * configure.ac: Depend addition of -pthread on host OS.
18578         * configure: Regenerate.
18580 2007-01-31  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18582         * libgomp.texi: Fix spacing after abbreviations.
18584 2007-01-31  Daniel Franke <franke.daniel@gmail.com>
18586         PR libgomp/30546
18587         * configure.ac: Add check for makeinfo
18588         * Makefile.am: Redefined target libgomp.info, build libgomp.info only
18589         if an appropriate version of makeinfo is found.
18590         * aclocal.m4: Regenerated.
18591         * configure: Regenerated.
18592         * Makefile.in: Regenerated.
18593         * testsuite/Makefile.in: Regenerated.
18595 2007-01-29  Daniel Franke <franke.daniel@gmail.com>
18597         PR libgomp/30540
18598         * libgomp.texi: More about implementation-dependent settings.
18600 2007-01-26  Tobias Burnus  <burnus@net-b.de>
18602         * testsuite/libgomp.fortran/fortran.exp: Support .f03 extension.
18604 2007-01-24  Jakub Jelinek  <jakub@redhat.com>
18606         PR middle-end/30494
18607         * testsuite/libgomp.c/pr30494.c: New test.
18609 2007-01-15  Tom Tromey  <tromey@redhat.com>
18611         * configure: Rebuilt.
18612         * configure.ac: Fixed comment.
18614 2007-01-14  Daniel Franke  <franke.daniel@gmail.com>
18616         * libgomp.texi: Document implementation specific default values of
18617         environment variables.
18619 2006-12-21  Daniel Franke  <franke.daniel@gmail.com>
18621         PR libgomp/28209
18622         * libgomp.texi: New file.
18623         * configure.ac: Add --enable-generated-files-in-srcdir option.
18624         * Makefile.am: Add info, dvi, pdf, html targets. On request, copy
18625         files to srcdir.
18626         * Makefile.in: Regenerated.
18627         * config.h.in: Regenerated.
18628         * testsuite/Makefile.in: Regenerated.
18629         * NOTES: Removed.
18631 2006-12-04  Daniel Franke  <franke.daniel@gmail.com>
18633         PR libgomp/29949
18634         * env.c (omp_set_num_threads): Set illegal thread count to 1.
18636 2006-12-04  Eric Botcazou  <ebotcazou@libertysurf.fr>
18638         * configure: Regenerate.
18640 2006-12-04  Jakub Jelinek  <jakub@redhat.com>
18642         PR libgomp/29947
18643         * loop.c (gomp_loop_init): Make parameters signed.  Set ws->end to
18644         start if there shouldn't be any loop iterations.
18645         (gomp_loop_ordered_static_start): Remove start == end test.
18646         * testsuite/libgomp.c/pr29947-1.c: New test.
18647         * testsuite/libgomp.c/pr29947-2.c: New test.
18649 2006-12-02  Eric Botcazou  <ebotcazou@libertysurf.fr>
18651         * configure.tgt: Force initial-exec TLS model on Linux only.
18653 2006-11-13  Daniel Jacobowitz  <dan@codesourcery.com>
18655         * configure: Regenerated.
18657 2006-11-09  Uros Bizjak  <ubizjak@gmail.com>
18659         * env.c (parse_schedule): Reject out of range values.
18660         (parse_unsigned_long): Reject out of range, negative or zero values.
18662 2006-10-29  Jakub Jelinek  <jakub@redhat.com>
18664         PR fortran/29629
18665         * testsuite/libgomp.fortran/pr29629.f90: New test.
18667 2006-10-24  Eric Botcazou  <ebotcazou@libertysurf.fr>
18669         PR libgomp/29494
18670         * configure.tgt: Use posix95 configuration for Solaris 2.5.1 and 2.6.
18671         * config/posix95: New directory.
18672         * config/posix95/omp-lock.h: New file.
18673         * config/posix95/lock.c: Likewise.
18675 2006-10-14  Geoffrey Keating  <geoffk@apple.com>
18677         * aclocal.m4: Regenerate.
18678         * configure: Regenerate.
18680 2006-10-05  Danny Smith  <dannysmith@users.sourceforge.net>
18682         * testsuite/libgomp.c/barrier-1.c: Change timestamp tests from
18683         '<' to '<='.
18685 2006-10-05  Danny Smith  <dannysmith@users.sourceforge.net>
18687         * acinclude.m4 (HAVE_ATTRIBUTE_ALIAS): Remove __USER_LABEL_PREFIX__ from
18688         test.
18689         * configure: Regenerate.
18690         * fortran.c  (ialias_redirect): Add __USER_LABEL_PREFIX__ to alias.
18692 2006-09-26  Jakub Jelinek  <jakub@redhat.com>
18694         PR middle-end/25261
18695         PR middle-end/28790
18696         * testsuite/libgomp.c/nestedfn-4.c: New test.
18697         * testsuite/libgomp.c/nestedfn-5.c: New test.
18698         * testsuite/libgomp.fortran/nestedfn3.f90: New test.
18700         PR fortran/29097
18701         * testsuite/libgomp.fortran/condinc1.f: New test.
18702         * testsuite/libgomp.fortran/condinc2.f: New test.
18703         * testsuite/libgomp.fortran/condinc3.f90: New test.
18704         * testsuite/libgomp.fortran/condinc4.f90: New test.
18705         * testsuite/libgomp.fortran/condinc1.inc: New file.
18707 2006-09-18  Tom Tromey  <tromey@redhat.com>
18709         * configure: Rebuilt.
18711 2006-09-13  Joseph S. Myers  <joseph@codesourcery.com>
18713         PR c/28768
18714         PR preprocessor/14634
18715         * configure.ac (HAVE_CLOCK_GETTIME): Add missing second argument
18716         to AC_DEFINE.
18717         * configure: Regenerate.
18719 2006-09-08  Steven G. Kargl  <kargl@gcc.gnu.org>
18721         * testsuite/libgomp.fortran/reduction3.f90: Change
18722         -2147483648 to -huge(i)-1 to avoid overflow.
18723         * testsuite/libgomp.fortran/reduction4.f90: Change
18724         Z'ffffffff' to not(0) to avoid overflow.
18726 2006-08-26  Joseph S. Myers  <joseph@codesourcery.com>
18728         PR libgomp/25938
18729         * Makefile.am (libsubincludedir): New.
18730         (nodist_include_HEADERS): Rename to nodist_libsubinclude_HEADERS.
18731         * Makefile.in: Regenerate.
18733 2006-08-17  Jakub Jelinek  <jakub@redhat.com>
18735         PR libgomp/28725
18736         * env.c: Include ctype.h.
18737         (parse_schedule, parse_unsigned_long, parse_boolean): Allow
18738         leading and/or trailing whitespace and compare strings case
18739         insensitively.
18741 2006-07-16  Jakub Jelinek  <jakub@redhat.com>
18743         PR fortran/28390
18744         * testsuite/libgomp.fortran/pr28390.f: New test.
18746 2006-07-05  Eric Christopher  <echristo@apple.com>
18748         * configure.ac: Depend addition of -pthread on host OS.
18749         * configure: Regenerate.
18751 2006-06-21  Jakub Jelinek  <jakub@redhat.com>
18753         * critical.c (GOMP_critical_name_start): Fix *pptr initialization
18754         when gomp_mutex_t is larger than pointer and HAVE_SYNC_BUILTINS is
18755         defined.
18757 2006-06-20  Jakub Jelinek  <jakub@redhat.com>
18759         PR libgomp/26175
18760         PR libgomp/26477
18761         * configure.ac: If neither --enable-linux-futex nor
18762         --disable-linux-futex is passed, determine the default by checking
18763         for compiling and/or running against NPTL.  With --enable-linux-futex,
18764         check if SYS_gettid and SYS_futex are defined.
18765         * configure: Rebuilt.
18767 2006-06-14  Richard Henderson  <rth@redhat.com>
18769         PR libgomp/28008
18770         * env.c (initialize_env): Avoid using PTHREAD_STACK_MIN when
18771         undefined.  Use GOMP_STACKSIZE not OMP_STACKSIZE for environment.
18773 2006-06-09  Richard Henderson  <rth@redhat.com>
18775         * env.c (gomp_nthreads_var): Change to unsigned long.
18776         (gomp_run_sched_chunk): Likewise.
18777         (parse_unsigned_long): Rename from parse_num_threads and generalize.
18778         (initialize_env): Initialize gomp_thread_attr.
18779         * libgomp.h (gomp_nthreads_var): Update decl.
18780         (gomp_run_sched_chunk): Likewise.
18781         (gomp_thread_attr): Declare.
18782         * team.c (gomp_thread_attr): Export.
18783         (initialize_team): Don't initialize it.
18785 2006-06-09  Jakub Jelinek  <jakub@redhat.com>
18787         PR fortran/27916
18788         * testsuite/libgomp.fortran/pr27916-1.f90: New test.
18789         * testsuite/libgomp.fortran/pr27916-2.f90: New test.
18791 2006-06-06  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
18793         * config/mingw32/time.c: New file.
18794         * configure.tgt: Use it.
18796 2006-05-23  Carlos O'Donell  <carlos@codesourcery.com>
18798         * Makefile.am: Add install-html target. Add install-html to .PHONY
18799         * Makefile.in: Regenerate.
18801 2006-05-22  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
18803         PR libgomp/27612
18804         * testsuite/libgomp.c/sections-1.c: Require sync_int_long.
18805         * testsuite/libgomp.c/critical-1.c: Likewise.
18806         * testsuite/libgomp.c/loop-1.c: Likewise.
18807         * testsuite/libgomp.c/loop-2.c: Likewise.
18808         * testsuite/libgomp.c/single-1.c: Likewise.
18809         * testsuite/libgomp.c/ordered-1.c: Likewise.
18810         * testsuite/libgomp.c/ordered-2.c: Likewise.
18812 2006-05-15  Jakub Jelinek  <jakub@redhat.com>
18814         PR middle-end/27416
18815         * libgomp.fortran/pr27416-1.f90: New test.
18817 2006-05-03  Jakub Jelinek  <jakub@redhat.com>
18819         PR fortran/27395
18820         * testsuite/libgomp.fortran/pr27395-1.f90: New test.
18821         * testsuite/libgomp.fortran/pr27395-2.f90: New test.
18823 2006-05-02  Jakub Jelinek  <jakub@redhat.com>
18825         PR c++/26943
18826         * testsuite/libgomp.c/pr26943-1.c: New test.
18827         * testsuite/libgomp.c/pr26943-2.c: New test.
18828         * testsuite/libgomp.c/pr26943-3.c: New test.
18829         * testsuite/libgomp.c/pr26943-4.c: New test.
18830         * testsuite/libgomp.c++/pr27337.C: Remove barrier.
18831         * testsuite/libgomp.c++/pr26943.C: New test.
18833 2006-05-02  Jakub Jelinek  <jakub@redhat.com>
18835         PR middle-end/27337
18836         * testsuite/libgomp.c++/pr27337.C: New test.
18838 2006-04-26  Jakub Jelinek  <jakub@redhat.com>
18840         PR c/26171
18841         * testsuite/libgomp.c/pr26171.c: New test.
18843 2006-04-25  Richard Henderson  <rth@redhat.com>
18845         PR libgomp/25865
18846         * configure.ac: Use GCC_CHECK_TLS.
18847         * acinclude.m4 (LIBGOMP_CHECK_TLS): Remove.
18848         * Makefile.in, aclocal.m4, configure: Regenerate.
18850 2006-04-10  Matthias Klose  <doko@debian.org>
18852         * testsuite/lib/libgomp.exp (libgomp_init): Recognize multilib
18853         directory names containing underscores.
18855 2006-03-21  Jakub Jelinek  <jakub@redhat.com>
18857         PR c++/26691
18858         * testsuite/libgomp.c++/pr26691.C: New test.
18860 2006-03-13  Jakub Jelinek  <jakub@redhat.com>
18862         * testsuite/libgomp.fortran/retval2.f90: New test.
18864 2006-03-09  Diego Novillo  <dnovillo@redhat.com>
18866         * testsuite/libgomp.c++: New directory.
18868 2006-02-25  Shantonu Sen  <ssen@opendarwin.org>
18870         * config/posix/sem.h: Define BROKEN_POSIX_SEMAPHORES functions.
18871         * config/posix/sem.c: Implement the above.
18873 2006-02-25  Andreas Tobler  <a.tobler@schweiz.ch>
18875         * configure.ac (HAVE_BROKEN_POSIX_SEMAPHORES): Check for darwin and
18876         define HAVE_BROKEN_POSIX_SEMAPHORES.
18877         * configure: Rebuilt.
18878         * config.h.in: Rebuilt.
18880 2006-02-17  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
18882         PR bootstrap/26161
18883         * configure.ac: Remove AC_CHECK_HEADER for pthread.h. Add comment
18884         for the other pthread check.
18885         * configure: Regenerate.
18886         * config.h.in: Regenerate.
18888 2006-02-15  Jakub Jelinek  <jakub@redhat.com>
18890         PR libgomp/25938
18891         PR libgomp/25984
18892         * Makefile.am (fincludedir): New variable.
18893         (nodist_include_HEADERS): Remove Fortran files.
18894         (nodist_finclude_HEADERS): New variable.
18895         * Makefile.in: Regenerated.
18897 2006-02-13  Jakub Jelinek  <jakub@redhat.com>
18899         * testsuite/libgomp.fortran/vla7.f90: Add -w to options.
18900         Remove tests for returning assumed character length arrays.
18902 2006-02-12  Roger Sayle  <roger@eyesopen.com>
18903             John David Anglin  <dave@hiauly1.hia.nrc.ca>
18905         PR libgomp/25936
18906         * configure.tgt: Link against -lrt for sem_init on HPUX v11 systems.
18908 2006-02-08  Ulrich Weigand  <uweigand@de.ibm.com>
18910         * testsuite/lib/libgomp-dg.exp: Load scanrtl.exp library.
18912 2006-02-07  Eric Botcazou  <ebotcazou@libertysurf.fr>
18914         * testsuite/lib/libgomp-dg.exp (libgomp_init): Compute multilib related
18915         part of LD_LIBRARY_PATH manually.
18917 2006-02-03  H.J. Lu  <hongjiu.lu@intel.com>
18919         PR libgomp/25852
18920         * testsuite/lib/libgomp-dg.exp (blddir): Set it in
18921         libgomp_init.
18923 2005-01-25  Paolo Bonzini  <bonzini@gnu.org>
18925         PR libgomp/25884
18926         * Makefile.am (omp.h, omp_lib.h, omp_lib.f90, libgomp_f.h): Remove.
18927         * configure.ac (PERL): Don't set.
18928         (gstdint.h, omp.h, omp_lib.h, omp_lib.f90, libgomp_f.h): Create here.
18929         (OMP_LOCK_SIZE, OMP_LOCK_ALIGN, OMP_LOCK_KIND, OMP_NEST_LOCK_SIZE,
18930         OMP_NEST_LOCK_ALIGN, OMP_NEST_LOCK_KIND): New substitutions.
18931         * omp.h.in: Wrap the new configure substitutions with @ characters.
18932         * omp_lib.h.in, omp_lib.f90.in, libgomp_f.h.in: Likewise.
18933         * aclocal.m4, configure, Makefile.in: Regenerate.
18934         * mkomp_h.pl: Delete.
18936 2005-01-24  Paolo Bonzini  <bonzini@gnu.org>
18938         PR libgomp/25259
18939         * configure.ac: Use GCC_HEADER_STDINT.
18940         * libgomp.h: Include gstdint.h.
18941         * libgomp_f.h.in: Don't include stdint.h or inttypes.h.
18942         * configure, Makefile.in, testsuite/Makefile.in, aclocal.m4: Rebuild.
18944 2006-01-24  Richard Henderson  <rth@redhat.com>
18946         PR libgomp/25942
18947         * configure.ac: Add AM_MAINTAINER_MODE.
18948         * Makefile.in, aclocal.m4, configure, testsuite/Makefile.in: Rebuild.
18950 2006-01-24  Diego Novillo  <dnovillo@redhat.com>
18952         * Makefile.in: Regenerate.
18953         * testsuite/Makefile.in: Regenerate.
18954         * aclocal.m4: Regenerate.
18956 2006-01-23  Andreas Tobler  <a.tobler@schweiz.ch>
18958         * config/posix/proc.c: Conditional include of sys/loadavg.h for
18959         Solaris.
18960         * configure.ac: Add check for loadavg.h.
18961         (link_gomp): Adjust comment.
18962         * configure: Regenerate.
18963         * config.h.in: Regenerate.
18965 2006-01-21  Steve Ellcey  <sje@cup.hp.com>
18967         PR libgomp/25877
18968         * configure.ac: Remove check for alloca.h.
18969         * configure: Regenerate.
18970         * config.h.in: Regenerate.
18971         * libgomp.h: define gomp_alloca to be __builtin_alloca.
18972         * team.c: Remove use of alloca.h.
18973         Call gomp_alloca instead of alloca.
18975 2006-01-20  Steve Ellcey  <sje@cup.hp.com>
18977         PR libgomp/25877
18978         * team.c: Add include of alloca.h.
18979         * configure.ac: Add check for alloca.h.
18980         * configure: Regenerate.
18981         * config.h.in: Regenerate.
18983 2006-01-17  Jakub Jelinek  <jakub@redhat.com>
18985         PR fortran/25219
18986         * testsuite/libgomp.fortran/pr25219.f90: New test.
18988 2005-12-05  Uros Bizjak  <uros@kss-loka.si>
18990         * testsuite/libgomp.c/pr24455.c, testsuite/libgomp.c/copyin-1.c,
18991         testsuite/libgomp.c/copyin-2.c, testsuite/libgomp.c/copyin-3.c,
18992         testsuite/libgomp.c++/copyin-1.C, testsuite/libgomp.c++/copyin-2.C,
18993         testsuite/libgomp.c++/ctor-5.C, testsuite/libgomp.c++/ctor-8.C,
18994         testsuite/libgomp.c++/ctor-9.C, testsuite/libgomp.c++/pr24455.C,
18995         testsuite/libgomp.fortran/threadprivate1.f90,
18996         testsuite/libgomp.fortran/threadprivate2.f90,
18997         testsuite/libgomp.fortran/threadprivate3.f90,
18998         testsuite/libgomp.fortran/appendix-a/a.22.7.f9,
18999         testsuite/libgomp.fortran/appendix-a/a.22.8.f9,
19000         testsuite/libgomp.fortran/omp_parse3.f90: Change required
19001         effective-target to TLS runtime.
19003         * testsuite/libgomp.fortran/pr25162.f: Require
19004         effective-target TLS runtime.
19006 2005-12-01  Jakub Jelinek  <jakub@redhat.com>
19008         * testsuite/libgomp.fortran/nestedfn2.f90: New test.
19009         * testsuite/libgomp.c/nestedfn-3.c: New test.
19011 2005-11-30  Jakub Jelinek  <jakub@redhat.com>
19013         PR fortran/25162
19014         * testsuite/libgomp.fortran/pr25162.f: New test.
19016 2005-11-28  Jakub Jelinek  <jakub@redhat.com>
19018         * config/posix/time.c (omp_get_wtime, omp_get_wtick): Fall back to
19019         CLOCK_REALTIME if clock_* (CLOCK_MONOTONIC, &ts) call failed.
19021 2005-11-25  Jakub Jelinek  <jakub@redhat.com>
19023         * alloc.c, barrier.c, critical.c, env.c, error.c, fortran.c, iter.c,
19024         libgomp.h, libgomp_f.h.in, libgomp_g.h, loop.c, mkomp_h.pl, omp.h.in,
19025         omp_lib.f90.in, omp_lib.h.in, ordered.c, parallel.c, sections.c,
19026         single.c, team.c, work.c, config/linux/alpha/futex.h,
19027         config/linux/bar.c, config/linux/bar.h, config/linux/ia64/futex.h,
19028         config/linux/lock.c, config/linux/mutex.c, config/linux/mutex.h,
19029         config/linux/powerpc/futex.h, config/linux/s390/futex.h,
19030         config/linux/sem.c, config/linux/sem.h, config/linux/sparc/futex.h,
19031         config/linux/x86/futex.h, config/posix/bar.c, config/posix/bar.h,
19032         config/posix/lock.c, config/posix/mutex.h, config/posix/proc.c,
19033         config/posix/sem.c, config/posix/sem.h, config/posix/time.c: Update
19034         FSF address.
19036 2005-11-18  Jakub Jelinek  <jakub@redhat.com>
19038         * Makefile.am: Move libgomp_f.h from nodist_include_HEADERS
19039         to nodist_noinst_HEADERS.
19040         * Makefile.in: Rebuilt.
19042         * config/posix/omp-lock.h (omp_nest_lock_t): Change into struct,
19043         add integer count field.
19044         * config/posix/lock.c (omp_destroy_nest_lock): Adjust for
19045         omp_nest_lock_t type change.
19046         (omp_init_nest_lock): Likewise.  Initialize count to 0.
19047         (omp_set_nest_lock): Adjust for omp_nest_lock_t type change.
19048         Increment count.
19049         (omp_unset_nest_lock): Adjust for omp_nest_lock_t type change.
19050         Decrement count.
19051         (omp_test_nest_lock): Adjust for omp_nest_lock_t type change.
19052         Increment count if successful and return the new nesting level.
19053         * config/linux/lock.c (omp_test_nest_lock): Return new nesting level.
19054         * omp_lib.f90.in (omp_test_lock): Fix LOCK argument type.
19055         * testsuite/libgomp.c/lib-1.c: New test.
19056         * testsuite/libgomp.fortran/lib1.f90: New test.
19057         * testsuite/libgomp.fortran/lib2.f: New test.
19058         * testsuite/libgomp.fortran/lib3.f: New test.
19060 2005-11-17  Richard Henderson  <rth@redhat.com>
19062         PR 24845
19063         * Makefile.am (nodist_toolexeclib_HEADERS): New.
19064         * configure.ac (link_gomp): New.  Substitute it.
19065         (AC_CONFIG_FILES): Add libgomp.spec.
19066         * libgomp.spec.in: New file.
19067         * Makefile.in, testsuite/Makefile.in, configure: Rebuild.
19068         * testsuite/lib/libgomp-dg.exp: Add -B${blddir}/ to flags.
19070 2005-11-18  Jakub Jelinek  <jakub@redhat.com>
19072         * testsuite/libgomp.fortran/reduction1.f90: Adjust for
19073         reduction(-:var) behaving the same as reduction(+:var).
19074         * testsuite/libgomp.c/reduction-4.c: New test.
19076 2005-11-15  Uros Bizjak  <uros@kss-loka.si>
19078         * testsuite/libgomp.c/pr24455-1.c, testsuite/libgomp.c/pr24455.c,
19079         testsuite/libgomp.c/copyin-1.c, testsuite/libgomp.c/copyin-2.c,
19080         testsuite/libgomp.c/copyin-3.c,
19081         testsuite/libgomp.c++/copyin-1.C, testsuite/libgomp.c++/copyin-2.C,
19082         testsuite/libgomp.c++/ctor-5.C, testsuite/libgomp.c++/ctor-8.C,
19083         testsuite/libgomp.c++/ctor-9.C, testsuite/libgomp.c++/pr24455-1.C,
19084         testsuite/libgomp.c++/pr24455.C,
19085         testsuite/libgomp.fortran/threadprivate1.f90,
19086         testsuite/libgomp.fortran/threadprivate2.f90,
19087         testsuite/libgomp.fortran/threadprivate3.f90,
19088         testsuite/libgomp.fortran/appendix-a/a.22.7.f9,
19089         testsuite/libgomp.fortran/appendix-a/a.22.8.f9,
19090         testsuite/libgomp.fortran/omp_parse3.f90: Require
19091         effective-target TLS.
19093 2005-11-14  Diego Novillo  <dnovillo@redhat.com>
19095         * HEADER: Remove.
19097 2005-11-13  Jakub Jelinek  <jakub@redhat.com>
19099         PR libgomp/24797
19100         * team.c (initialize_team): Pass NULL rather than free as
19101         pthread_key_create destructor.  Initialize thread specific data
19102         pointer in initial thread to a static local variable rather than
19103         malloced memory.
19105 2005-11-11  Uros Bizjak  <uros@kss-loka.si>
19107         * testsuite/lib/libgomp-dg.exp: Locate libgcc.a and append
19108         its location to ld_library_path.
19110 2005-11-10  Diego Novillo  <dnovillo@redhat.com>
19112         * testsuite/libgomp.c/c.exp: Rename from dg.exp.
19114 2005-11-10  Diego Novillo  <dnovillo@redhat.com>
19116         * testsuite/libgomp.c: Rename from libgomp.dg.
19118 2005-11-09  Diego Novillo  <dnovillo@redhat.com>
19120         * testsuite/libgomp.c++/pr24455.C: Add copyin clause for
19121         threadprivate variable 'i'.
19123 2005-11-09  Jakub Jelinek  <jakub@redhat.com>
19125         * config/linux/s390/futex.h: New file.
19126         * configure.tgt: Use it.
19128         * testsuite/libgomp.fortran/omp_parse4.f90: Move n initialization
19129         before the parallel.
19131 2005-11-08  Jakub Jelinek  <jakub@redhat.com>
19133         PR c++/24734
19134         * testsuite/libgomp.c++/master-1.C: New test.
19136 2005-11-07  Jakub Jelinek  <jakub@redhat.com>
19138         * testsuite/libgomp.dg/copyin-3.c: New test.
19140 2005-11-07  Jakub Jelinek  <jakub@redhat.com>
19142         * testsuite/libgomp.fortran/retval1.f90: New test.
19143         * testsuite/libgomp.fortran/vla7.f90: New test.
19145 2005-11-06  Jakub Jelinek  <jakub@redhat.com>
19147         * testsuite/libgomp.fortran/vla2.f90: New test.
19148         * testsuite/libgomp.fortran/vla3.f90: New test.
19149         * testsuite/libgomp.fortran/vla4.f90: New test.
19150         * testsuite/libgomp.fortran/vla5.f90: New test.
19151         * testsuite/libgomp.fortran/vla6.f90: New test.
19153 2005-11-01  Jakub Jelinek  <jakub@redhat.com>
19155         * config/linux/sparc/futex.h: New file.
19156         * configure.tgt: Use it.
19157         * testsuite/lib/libgomp-dg.exp: Use -mcpu=v9 for sparc testing.
19159         * critical.c: Include stdlib.h.
19160         * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS): Avoid warnings about
19161         ignoring return value.
19162         * configure.ac: Don't put -Wc,-pthread into XCFLAGS until after
19163         LIBGOMP_CHECK_SYNC_BUILTINS check.
19164         * configure: Rebuilt.
19166 2005-10-31  Jakub Jelinek  <jakub@redhat.com>
19168         * testsuite/libgomp.fortran/vla1.f90: New test.
19170 2005-10-31  Richard Henderson  <rth@redhat.com>
19172         * testsuite/libgomp.fortran/character2.f90: Fix race condition
19173         setting 's' in different threads.
19175 2005-10-31  Jakub Jelinek  <jakub@redhat.com>
19177         * libgomp.h (attribute_hidden, ialias): Define.
19178         * config/posix/proc.c (omp_get_num_procs): Add ialias.
19179         * config/posix/time.c (omp_get_wtime, omp_get_wtick): Likewise.
19180         * config/posix/lock.c (omp_init_lock, omp_init_nest_lock,
19181         omp_destroy_lock, omp_destroy_nest_lock, omp_set_lock,
19182         omp_set_nest_lock, omp_unset_lock, omp_unset_nest_lock,
19183         omp_test_lock, omp_test_nest_lock): Likewise.
19184         * config/linux/lock.c (omp_init_lock, omp_init_nest_lock,
19185         omp_destroy_lock, omp_destroy_nest_lock, omp_set_lock,
19186         omp_set_nest_lock, omp_unset_lock, omp_unset_nest_lock,
19187         omp_test_lock, omp_test_nest_lock): Likewise.
19188         * env.c (omp_set_dynamic, omp_set_nested, omp_set_num_threads,
19189         omp_get_dynamic, omp_get_nested): Likewise.
19190         * parallel.c (omp_get_num_threads, omp_get_max_threads,
19191         omp_get_thread_num, omp_in_parallel): Likewise.
19192         * fortran.c (ialias_redirect): Define.
19193         (omp_init_lock, omp_init_nest_lock, omp_destroy_lock,
19194         omp_destroy_nest_lock, omp_set_lock, omp_set_nest_lock,
19195         omp_unset_lock, omp_unset_nest_lock, omp_test_lock,
19196         omp_test_nest_lock, omp_set_dynamic, omp_set_nested,
19197         omp_set_num_threads, omp_get_dynamic, omp_get_nested,
19198         omp_in_parallel, omp_get_max_threads, omp_get_num_procs,
19199         omp_get_num_threads, omp_get_thread_num, omp_get_wtick,
19200         omp_get_wtime): Add ialias_redirect.
19202 2005-10-30  Jakub Jelinek  <jakub@redhat.com>
19204         * fortran.c: Include stdlib.h.
19206 2005-10-29  Jakub Jelinek  <jakub@redhat.com>
19208         * Makefile.am (env.o, env.lo): Depend on libgomp_f.h.
19209         * Makefile.in: Regenerated.
19211 2005-10-28  Jakub Jelinek  <jakub@redhat.com>
19213         * mkomp_h.pl: Remove all -Wc, option prefixes in $COMPILE.
19214         * libgomp_f.h.in (omp_check_defines): New function.
19215         * env.c: Include libgomp_f.h.
19216         (initialize_env): Call omp_check_defines.
19218         * testsuite/libgomp.dg/copyin-2.c: New test.
19219         * testsuite/libgomp.c++/copyin-2.C: New test.
19220         * testsuite/libgomp.fortran/threadprivate3.f90: New test.
19222         * testsuite/libgomp.fortran/threadprivate2.f90: New test.
19223         * testsuite/libgomp.fortran/sharing2.f90: New test.
19225         * testsuite/libgomp.dg/copyin-1.c: New test.
19226         * testsuite/libgomp.c++/copyin-1.C: New test.
19228 2005-10-26  Jakub Jelinek  <jakub@redhat.com>
19230         * testsuite/libgomp.fortran/crayptr1.f90: New test.
19232         * testsuite/libgomp.fortran/workshare1.f90: New test.
19234         * libgomp.fortran/appendix-a/a.28.5.f90: Change into compile
19235         only test.
19236         * libgomp.fortran/sharing1.f90: New test.
19238 2005-10-24  Jakub Jelinek  <jakub@redhat.com>
19240         PR c++/24502
19241         * testsuite/libgomp.c++/loop-7.C: New test.
19243         * testsuite/libgomp.dg/nestedfn-2.c: New test.
19245         * testsuite/libgomp.dg/nestedfn-1.c: New test.
19246         * testsuite/libgomp.fortran/reduction6.f90: New test.
19247         * testsuite/libgomp.fortran/nestedfn1.f90: New test.
19249 2005-10-23  Richard Henderson  <rth@redhat.com>
19251         * testsuite/libgomp.c++/ctor-1.C: New.
19252         * testsuite/libgomp.c++/ctor-2.C: New.
19253         * testsuite/libgomp.c++/ctor-3.C: New.
19254         * testsuite/libgomp.c++/ctor-4.C: New.
19255         * testsuite/libgomp.c++/ctor-5.C: New.
19256         * testsuite/libgomp.c++/ctor-6.C: New.
19257         * testsuite/libgomp.c++/ctor-7.C: New.
19258         * testsuite/libgomp.c++/ctor-8.C: New.
19259         * testsuite/libgomp.c++/ctor-9.C: New.
19261 2005-10-21  Diego Novillo  <dnovillo@redhat.com>
19263         PR 24455
19264         * testsuite/libgomp.c++/pr24455-1.C: New test.
19265         * testsuite/libgomp.c++/pr24455.C: New test.
19266         * testsuite/libgomp.dg/pr24455-1.c: New test.
19267         * testsuite/libgomp.dg/pr24455.c: New test.
19269 2005-10-20  Richard Henderson  <rth@redhat.com>
19271         * testsuite/libgomp.c++/loop-6.C: New.
19272         * testsuite/libgomp.dg/loop-3.c: New.
19274 2005-10-20  Jakub Jelinek  <jakub@redhat.com>
19276         * testsuite/libgomp.fortran/jacobi.f: Don't make i and j
19277         explicitly private.
19278         * testsuite/libgomp.fortran/omp_parse1.f90 (test_do): Make i
19279         explicitly shared.
19281 2005-10-19  Diego Novillo  <dnovillo@redhat.com>
19283         * testsuite/libgomp.fortran/jacobi.f: New test.
19285 2005-10-19  Richard Henderson  <rth@redhat.com>
19287         * configure.tgt (i?86-linux): Default to with_arch instead of
19288         CFLAGS.  Add -mtune to match target_cpu.
19289         (x86_64-linux): Tune to i686.
19291         * fortran.c (omp_test_nest_lock_): Fix typo.
19293 2005-10-19  Jakub Jelinek  <jakub@redhat.com>
19295         * ordered.c (gomp_ordered_first, gomp_ordered_last, gomp_ordered_next,
19296         gomp_ordered_sync): Do nothing if team->nthreads == 1.
19297         * testsuite/libgomp.dg/ordered-3.c: New test.
19299         * testsuite/libgomp.dg/appendix-a/a.18.1.c: Remove unconditional abort.
19300         Remove volatile keyword.
19302         * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: Reorder variables
19303         in COMMON block to avoid warnings on 64-bit targets.
19305 2005-10-18  Diego Novillo  <dnovillo@redhat.com>
19307         * testsuite/libgomp.dg/shared-3.c: New test.
19309 2005-10-18  Jakub Jelinek  <jakub@redhat.com>
19311         * testsuite/libgomp.fortran/appendix-a/a.31.3.f90: Removed.
19312         * testsuite/libgomp.fortran/reduction5.f90: New test.
19314 2005-10-18  Jakub Jelinek  <jakub@redhat.com>
19316         * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: Add -ffixed-form to
19317         dg-options.
19318         * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: Likewise.  Enable
19319         flush loop now that __sync_synchronize has proper memory barrier.
19320         * testsuite/libgomp.fortran/appendix-a/a.3.1.f90: Fix a typo.
19321         Add -ffixed-form to dg-options.
19323 2005-10-17  Diego Novillo  <dnovillo@redhat.com>
19325         * testsuite/libgomp.fortran/fortran.exp: Also gather tests
19326         from subdirectories.
19327         * testsuite/libgomp.fortran/appendix-a/a.15.1.f90: New test.
19328         * testsuite/libgomp.fortran/appendix-a/a.16.1.f90: New test.
19329         * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: New test.
19330         * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: New test.
19331         * testsuite/libgomp.fortran/appendix-a/a.2.1.f90: New test.
19332         * testsuite/libgomp.fortran/appendix-a/a.21.1.f90: New test.
19333         * testsuite/libgomp.fortran/appendix-a/a.22.7.f90: New test.
19334         * testsuite/libgomp.fortran/appendix-a/a.22.8.f90: New test.
19335         * testsuite/libgomp.fortran/appendix-a/a.26.1.f90: New test.
19336         * testsuite/libgomp.fortran/appendix-a/a.28.1.f90: New test.
19337         * testsuite/libgomp.fortran/appendix-a/a.28.2.f90: New test.
19338         * testsuite/libgomp.fortran/appendix-a/a.28.3.f90: New test.
19339         * testsuite/libgomp.fortran/appendix-a/a.28.4.f90: New test.
19340         * testsuite/libgomp.fortran/appendix-a/a.28.5.f90: New test.
19341         * testsuite/libgomp.fortran/appendix-a/a.3.1.f90: New test.
19342         * testsuite/libgomp.fortran/appendix-a/a.31.3.f90: New test.
19343         * testsuite/libgomp.fortran/appendix-a/a.31.4.f90: New test.
19344         * testsuite/libgomp.fortran/appendix-a/a.31.5.f90: New test.
19345         * testsuite/libgomp.fortran/appendix-a/a.33.3.f90: New test.
19346         * testsuite/libgomp.fortran/appendix-a/a.38.1.f90: New test.
19347         * testsuite/libgomp.fortran/appendix-a/a.39.1.f90: New test.
19348         * testsuite/libgomp.fortran/appendix-a/a.4.1.f90: New test.
19349         * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: New test.
19350         * testsuite/libgomp.fortran/appendix-a/a.5.1.f90: New test.
19351         * testsuite/libgomp.fortran/appendix-a/a10.1.f90: New test.
19353 2005-10-17  Jakub Jelinek  <jakub@redhat.com>
19355         * testsuite/libgomp.dg/dg.exp: Only unset lang_* if
19356         lang_library_path exists.  Use find instead of glob to gather tests.
19357         * testsuite/libgomp.dg/appendix-a/appendix-a.exp: Removed.
19359 2005-10-17  Diego Novillo  <dnovillo@redhat.com>
19361         * testsuite/libgomp.dg/appendix-a/a.15.1.c: New test.
19362         * testsuite/libgomp.dg/appendix-a/a.16.1.c: New test.
19363         * testsuite/libgomp.dg/appendix-a/a.18.1.c: New test.
19364         * testsuite/libgomp.dg/appendix-a/a.19.1.c: New test.
19365         * testsuite/libgomp.dg/appendix-a/a.2.1.c: New test.
19366         * testsuite/libgomp.dg/appendix-a/a.21.1.c: New test.
19367         * testsuite/libgomp.dg/appendix-a/a.26.1.c: New test.
19368         * testsuite/libgomp.dg/appendix-a/a.29.1.c: New test.
19369         * testsuite/libgomp.dg/appendix-a/a.3.1.c: New test.
19370         * testsuite/libgomp.dg/appendix-a/a.39.1.c: New test.
19371         * testsuite/libgomp.dg/appendix-a/a.4.1.c: New test.
19372         * testsuite/libgomp.dg/appendix-a/a.5.1.c: New test.
19373         * testsuite/libgomp.dg/appendix-a/appendix-a.exp: New file.
19375 2005-10-15  Jakub Jelinek  <jakub@redhat.com>
19377         * testsuite/libgomp.dg/vla-1.c: New test.
19379         * testsuite/libgomp.fortran/reference2.f90: New test.
19381         * testsuite/libgomp.fortran/character2.f90: Remove explicit
19382         declaration of omp_get_thread_num.
19383         * testsuite/libgomp.fortran/threadprivate1.f90: Likewise.  Add
19384         use omp_lib.
19386         * testsuite/libgomp.fortran/reduction1.f90: New test.
19387         * testsuite/libgomp.fortran/reduction2.f90: New test.
19388         * testsuite/libgomp.fortran/reduction3.f90: New test.
19389         * testsuite/libgomp.fortran/reduction4.f90: New test.
19391 2005-10-13  Richard Henderson  <rth@redhat.com>
19393         * Makefile.am (libgomp_la_SOURCES): Add bar.c.
19394         * Makefile.in: Regenerate.
19395         * barrier.c (GOMP_barrier): Use gomp_barrier_wait.
19396         * libgomp.h: Include bar.h.
19397         (struct gomp_barrier): Remove.
19398         (struct gomp_team): Add barrier.  Replace master_barrier with
19399         master_release.  Replace threads with ordered_release.
19400         (struct gomp_thread): Replace barrier with release.
19401         * ordered.c (gomp_ordered_first): Update for ordered_release change.
19402         (gomp_ordered_last, gomp_ordered_next, gomp_ordered_static_init,
19403         gomp_ordered_static_next, gomp_ordered_sync): Likewise.
19404         * single.c (GOMP_single_copy_start): Use gomp_barrier_wait.
19405         (GOMP_single_copy_end): Likewise.
19406         * team.c (gomp_threads_dock): New.
19407         (gomp_barrier_init, gomp_barrier_destroy): Remove.
19408         (gomp_thread_start): Use gomp_barrier_wait.
19409         (new_team, free_team): Update for gomp_team changes.
19410         (gomp_team_start): Use gomp_barrier_wait and gomp_barrier_reinit.
19411         (gomp_team_end): Use gomp_barrier_wait.
19412         (initialize_team): Update for gomp_thread changes.
19413         * work.c (gomp_work_share_end): Use gomp_barrier_wait_start.
19414         (gomp_work_share_end_nowait): Use atomic ops when available.
19415         * config/linux/bar.c, config/linux/bar.h: New files.
19416         * config/posix/bar.c, config/posix/bar.h: New files.
19418 2005-10-13  Jakub Jelinek  <jakub@redhat.com>
19420         * single.c (GOMP_single_copy_end): Don't segfault if team is NULL.
19421         * testsuite/libgomp.dg/single-2.c: New test.
19423         * testsuite/libgomp.dg/dg.exp (lang_library_path, lang_test_file,
19424         lang_link_flags): Unset, so that they aren't inherited from previously
19425         sourced *.exp.
19427         * testsuite/libgomp.fortran/threadprivate1.f90: New test.
19429 2005-10-12  Richard Henderson  <rth@redhat.com>
19431         * testsuite/lib/libgomp-dg.exp: Set blddir at toplevel.
19432         (libgomp_init): Use lang_test_file, lang_library_path, and
19433         lang_link_flags, set by the subdirectory files.  Add -fopenmp here.
19435         * testsuite/libgomp.fortran/fortran.exp (lang_library_path): New.
19436         (lang_test_file, lang_link_flags): New.
19437         (DEFAULT_FFLAGS, ALWAYS_CFLAGS, multilibs, blddir): Remove.
19439         * testsuite/libgomp.c++/c++.exp, testsuite/libgomp.c++/loop-1.C,
19440         testsuite/libgomp.c++/loop-2.C, testsuite/libgomp.c++/loop-3.C,
19441         testsuite/libgomp.c++/loop-4.C, testsuite/libgomp.c++/nested-1.C,
19442         testsuite/libgomp.c++/parallel-1.C,
19443         testsuite/libgomp.c++/reduction-1.C,
19444         testsuite/libgomp.c++/reduction-2.C,
19445         testsuite/libgomp.c++/reduction-3.C,
19446         testsuite/libgomp.c++/sections-1.C, testsuite/libgomp.c++/shared-1.C,
19447         testsuite/libgomp.c++/shared-2.C, testsuite/libgomp.c++/single-1.C,
19448         testsuite/libgomp.c++/single-2.C, testsuite/libgomp.c++/single-3.C:
19449         New files, largely cribbed from the C testsuite.
19451 2005-10-12  Jakub Jelinek  <jakub@redhat.com>
19453         * testsuite/libgomp.fortran/character1.f90: New test.
19454         * testsuite/libgomp.fortran/character2.f90: New test.
19456         * testsuite/libgomp.dg/nested-1.c: New test.
19457         * testsuite/libgomp.dg/nested-2.c: New test.
19458         * testsuite/libgomp.fortran/do1.f90: New test.
19459         * testsuite/libgomp.fortran/do2.f90: New test.
19461         * testsuite/libgomp.fortran/reference1.f90: New test.
19463 2005-10-11  Jakub Jelinek  <jakub@redhat.com>
19465         * testsuite/libgomp.dg/reduction-1.c: New test.
19466         * testsuite/libgomp.dg/reduction-2.c: New test.
19467         * testsuite/libgomp.dg/reduction-3.c: New test.
19469 2005-10-10  Jakub Jelinek  <jakub@redhat.com>
19471         * testsuite/libgomp.dg/atomic-1.c: New test.
19472         * testsuite/libgomp.dg/atomic-2.c: New test.
19474 2005-10-09  Richard Henderson  <rth@redhat.com>
19476         * critical.c (atomic_lock): New.
19477         (initialize_critical): Initialize it.
19478         (GOMP_atomic_start, GOMP_atomic_end): New.
19479         * libgomp.map: Export them.
19480         * libgomp_g.h: Declare them.
19482         * testsuite/libgomp.dg/atomic-10.c: Move from gcc testsuite.
19484 2005-10-02  Richard Henderson  <rth@redhat.com>
19486         * configure.ac: Move save_CFLAGS hack earlier.  Append -Wall/-Werror
19487         to XCFLAGS instead of CFLAGS.
19489 2005-09-30  Richard Henderson  <rth@redhat.com>
19491         * configure.ac: Determine whether -pthread or -lpthread is needed.
19492         * Makefile.am (libgomp_la_LDFLAGS): Remove explicit -lpthread.
19493         * Makefile.in, configure: Rebuild.
19495 2005-09-28  Richard Henderson  <rth@redhat.com>
19497         * testsuite/libgomp.dg/omp-loop03.c: Fix return code.
19498         * testsuite/libgomp.dg/omp-single-3.c: New test.
19500 2005-09-28  Diego Novillo  <dnovillo@redhat.com>
19502         * testsuite/libgomp.dg/omp-single-2.c: New test.
19503         * testsuite/libgomp.dg/shared-2.c: Fix return code.
19505 2005-09-27  Richard Henderson  <rth@redhat.com>
19507         * testsuite/libgomp.dg/omp-loop03.c: Add initial barrier.
19508         * testsuite/libgomp.dg/omp-parallel-for.c: Specify static schedule.
19510 2005-09-27  Jakub Jelinek  <jakub@redhat.com>
19512         * testsuite/libgomp.dg/omp-loop03.c: New test.
19514 2005-09-27  Diego Novillo  <dnovillo@redhat.com>
19516         * testsuite/libgomp.dg/omp-parallel-for.c: New test.
19518 2005-09-27  Diego Novillo  <dnovillo@redhat.com>
19520         * testsuite/libgomp.dg/omp-single-1.c: New test.
19521         * testsuite/libgomp.dg/shared-1.c: Return 0.
19522         Add prototype for abort.
19523         * testsuite/libgomp.dg/shared-2.c: Likewise.
19525 2005-09-26  Jakub Jelinek  <jakub@redhat.com>
19527         * testsuite/libgomp.fortran/omp_parse3.f90: Fix non-conforming
19528         constructs.
19530 2005-09-26  Diego Novillo  <dnovillo@redhat.com>
19532         * testsuite/libgomp.dg/shared-1.c: New test.
19533         * testsuite/libgomp.dg/shared-2.c: New test.
19535 2005-09-24  Richard Henderson  <rth@redhat.com>
19537         * testsuite/libgomp.dg/omp_workshare3.c: Mark dg-error.
19539 2005-09-24  Richard Henderson  <rth@redhat.com>
19541         * iter.c (gomp_iter_static_next): Round up when computing number
19542         of iterations.  Don't bother distributing a remainder equally.
19544         * testsuite/libgomp.dg/omp-loop01.c (main1): Rename from main.
19545         Don't call srand.  Zero b before testing.
19546         (main): New.
19548 2005-09-24  Jakub Jelinek  <jakub@redhat.com>
19550         * testsuite/libgomp.fortran/omp_atomic1.f90: New test.
19551         * testsuite/libgomp.fortran/omp_atomic2.f90: New test.
19553 2005-09-23  Jakub Jelinek  <jakub@redhat.com>
19555         * testsuite/libgomp.fortran/omp_parse1.f90: Add a test for !$omp do
19556         without !$omp end do, followed immediately by subroutine end.
19558 2005-09-23  Diego Novillo  <dnovillo@redhat.com>
19560         * testsuite/libgomp.dg/omp-parallel-if.c: New test.
19562 2005-09-22  Richard Henderson  <rth@redhat.com>
19564         * critical.c (GOMP_critical_name_start): Change argument to void**.
19565         Reuse the pointer space if the mutex fits.
19566         (GOMP_critical_name_end): Likewise.
19567         (initialize_critical): Don't define if GOMP_MUTEX_INIT_0.
19568         * libgomp_g.h (GOMP_critical_name_start): Update decl.
19569         (GOMP_critical_name_end): Likewise.
19570         * config/linux/mutex.h (GOMP_MUTEX_INIT_0): New.
19571         * config/posix/mutex.h (GOMP_MUTEX_INIT_0): New.
19573 2005-09-20  Richard Henderson  <rth@redhat.com>
19575         * critical.c (GOMP_critical_name_start, GOMP_critical_name_end): New.
19576         (create_lock_lock): New.
19577         (initialize_critical): Initialize it.
19578         * libgomp.map (GOMP_critical_name_start, GOMP_critical_name_end): New.
19579         * libgomp_g.h (GOMP_ordered_start, GOMP_ordered_end): Declare.
19581 2005-09-20  Diego Novillo  <dnovillo@redhat.com>
19583         * testsuite/libgom.dg/omp-loop01.c: Include stdio.h.
19585 2005-09-20  Diego Novillo  <dnovillo@redhat.com>
19587         * testsuite/libgomp.dg/omp-loop01.c: New test.
19588         * testsuite/libgomp.dg/omp-loop02.c: New test.
19590 2005-09-20  Jakub Jelinek  <jakub@redhat.com>
19592         * configure.ac (AC_PROG_FC): Add.
19593         (USE_FORTRAN): New automake conditional.
19594         * configure: Rebuilt.
19595         * Makefile.am (libgomp_la_SOURCES): Add fortran.c.
19596         (nodist_include_HEADERS): Add omp_lib.h, omp_lib.f90 and libgomp_f.h.
19597         If USE_FORTRAN, add also omp_lib.mod and omp_lib_kinds.mod.
19598         Add rules to build them.
19599         * Makefile.in: Rebuilt.
19600         * mkomp_h.pl: Compute and replace also OMP_LOCK_KIND and
19601         OMP_NEST_LOCK_KIND.
19602         * libgomp.map: Add Fortran wrappers.
19603         * libgomp_f.h.in: New file.
19604         * omp_lib.h.in: New file.
19605         * omp_lib.f90.in: New file.
19606         * fortran.c: New file.
19607         * testsuite/lib/libgomp-dg.exp: Load a few more .exp files.
19608         Append libgfortran directory to LD_LIBRARY_PATH if it exists.
19609         Add -Lpath_to_libgfortran and -lgfortran -lgfortranbegin if
19610         libgfortran has been built.
19611         * testsuite/libgomp.fortran/fortran.exp: New file.
19612         * testsuite/libgomp.fortran/omp_cond1.f: New test.
19613         * testsuite/libgomp.fortran/omp_cond2.f: New test.
19614         * testsuite/libgomp.fortran/omp_cond3.F90: New test.
19615         * testsuite/libgomp.fortran/omp_cond4.F90: New test.
19616         * testsuite/libgomp.fortran/omp_hello.f: New test.
19617         * testsuite/libgomp.fortran/omp_orphan.f: New test.
19618         * testsuite/libgomp.fortran/omp_parse1.f90: New test.
19619         * testsuite/libgomp.fortran/omp_parse2.f90: New test.
19620         * testsuite/libgomp.fortran/omp_parse3.f90: New test.
19621         * testsuite/libgomp.fortran/omp_parse4.f90: New test.
19622         * testsuite/libgomp.fortran/omp_reduction.f: New test.
19623         * testsuite/libgomp.fortran/omp_workshare1.f: New test.
19624         * testsuite/libgomp.fortran/omp_workshare2.f: New test.
19626 2005-08-30  Richard Henderson  <rth@redhat.com>
19628         * loop.c (GOMP_loop_static_start): Provide fallback wrapper
19629         function for when aliases are not usable.
19630         (GOMP_loop_dynamic_start, GOMP_loop_guided_start,
19631         GOMP_loop_ordered_static_start, GOMP_loop_ordered_dynamic_start,
19632         GOMP_loop_ordered_guided_start, GOMP_loop_static_next,
19633         GOMP_loop_dynamic_next, GOMP_loop_guided_next,
19634         GOMP_loop_ordered_static_next, GOMP_loop_ordered_dynamic_next,
19635         GOMP_loop_ordered_guided_next): Likewise.
19636         * ordered.c (GOMP_ordered_start): Likewise.
19638 2005-08-01  Diego Novillo  <dnovillo@redhat.com>
19640         * testsuite/libgomp.dg/dg.exp: Use -O2 for now.
19641         * testsuite/libgomp.dg/omp_hello.c: Fix return code
19642         * testsuite/libgomp.dg/omp_matvec.c: Likewise.
19643         * testsuite/libgomp.dg/omp_orphan.c: Likewise
19644         * testsuite/libgomp.dg/omp_reduction.c: Likewise
19645         * testsuite/libgomp.dg/omp_workshare1.c: Likewise
19646         * testsuite/libgomp.dg/omp_workshare2.c: Likewise
19647         * testsuite/libgomp.dg/omp_workshare3.c: Likewise
19648         * testsuite/libgomp.dg/omp_workshare4.c: Likewise
19650 2005-07-07  Eric Christopher  <echristo@redhat.com>
19651             Diego Novillo  <dnovillo@redhat.com>
19653         * testsuite/libgomp.dg/dg.exp: Add -fopenmp to DEFAULT_CFLAGS.
19654         * testsuite/libgomp.dg/omp_hello.c: Add standard includes, fix
19655         up code.
19656         * testsuite/libgomp.dg/omp_matvec.c: Ditto.
19657         * testsuite/libgomp.dg/omp_orphan.c: Ditto.
19658         * testsuite/libgomp.dg/omp_reduction.c: Ditto.
19659         * testsuite/libgomp.dg/omp_workshare1.c: Ditto.
19660         * testsuite/libgomp.dg/omp_workshare2.c: Ditto.
19661         * testsuite/libgomp.dg/omp_workshare3.c: Ditto.
19662         * testsuite/libgomp.dg/omp_workshare4.c: Ditto.
19664 2005-06-13  Diego Novillo  <dnovillo@redhat.com>
19666         * TOPLEVEL.patch: Remove.
19668 2005-05-16  Richard Henderson  <rth@redhat.com>
19670         * configure.ac: Test for clock_gettime.
19671         * config.h.in, configure: Rebuild.
19672         * config/posix/time.c: Use recommended TIME_WITH_SYS_TIME pattern.
19673         (omp_get_wtime): Use clock_gettime if available.
19674         (omp_get_wtick): Use clock_getres if available.
19676 2005-05-11  Richard Henderson  <rth@redhat.com>
19678         * config/linux/ia64/futex.h: New file.
19679         * configure.tgt: Use it.
19681         * team.c (gomp_barrier_init, gomp_barrier_destroy): Mark inline.
19683 2005-05-07  Richard Henderson  <rth@redhat.com>
19685         * config/linux/powerpc/futex.h: New file.
19686         * configure.tgt: Use it.
19688         * config/linux/i486/futex.h: Merge ...
19689         * config/linux/x86_64/futex.h: ... into ...
19690         * config/linux/x86/futex.h: ... here.
19691         * configure.tgt: Update to match.
19693 2005-05-06  Richard Henderson  <rth@redhat.com>
19695         * config/linux/alpha/futex.h: Conditionally define SYS_futex.
19696         * config/linux/i486/futex.h: Likewise.
19697         * config/linux/x86_64/futex.h: Likewise.
19699         * config/linux/lock.c: New file.
19700         * config/linux/omp-lock.h: New file.
19702         * critical.c, env.h: Don't include omp.h
19703         * config/posix/lock.c: Include libgomp.h instead of omp.h.
19704         * config/posix/time.c: Likewise.
19705         * config/posix/omp-lock.h: New file.
19706         * libgomp.h: Include omp-lock.h and omp.h.
19707         * Makefile.am (nodist_include_HEADERS): New.
19708         (omp.h): New rule.
19709         * configure.ac (PERL): New.
19710         * mkomp_h.pl: New file.
19711         * omp.h.in: Rename from omp.h; replace omp_lock_t and omp_nest_lock_t
19712         with templates.
19713         * Makefile.in, configure, testsuite/Makefile.in: Rebuild.
19715         * testsuite/lib/libgomp-dg.exp (libgomp_init): Add include into
19716         build directory.  Re-add -march=i486 hack.
19718         * testsuite/lib/libgomp-dg.exp (libgomp_compile_flags): Remove.
19719         (libgomp_link_flags): Remove.
19720         (libgomp_initialized): Remove.
19721         (libgomp_init): Don't protect from reinitialization.  Copy code
19722         from libstdc++ for getting the multilib set correctly.
19724 2005-05-05  Richard Henderson  <rth@redhat.com>
19726         * config/linux/alpha/futex.h: New file.
19727         * configure.tgt (alpha*-*-linux*): Use it.
19729         * config/posix/mutex.c: New file.
19730         * config/posix/sem.c: Use libgomp.h.
19732         * configure.tgt (x86_64-linux): Also test CC for -m32.
19733         * config/linux/x86_64/futex.h (futex_wait): Fix r10 usage.
19735         * testsuite/lib/libgomp-dg.exp (libgomp_link_flags): Add /
19736         after $gccpath.
19738         * Makefile.am (SUBDIRS): New.
19739         (libgomp_la_LDFLAGS): Add -lpthread.
19740         * configure.ac (AM_INIT_AUTOMAKE): Enable dependencies.
19741         * Makefile.in, aclocal.m4, config.h.in, configure: Rebuild.
19743         * libgomp_g.h: New file.
19744         * libgomp.h: Split out all public declarations to libgomp_g.h.
19745         Use pragma GCC visibility instead of ATTRIBUTE_HIDDEN.
19746         * config/linux/mutex.h: Remove ATTRIBUTE_HIDDEN.
19747         * config/linux/sem.h: Likewise.
19748         * config/posix/sem.h: Likewise.
19750         * Makefile.am (AM_LDFLAGS): New.
19751         (libgomp_version_script): Split out from ...
19752         (libgomp_la_LDFLAGS): ... here.
19753         (libgomp_version_info): New.
19754         * acinclude.m4 (LIBGOMP_CHECK_TLS): Use LIBGOMP_ENABLE.
19755         (LIBGOMP_ENABLE): New.
19756         (LIBGOMP_CHECK_LINKER_FEATURES): New.
19757         (LIBGOMP_ENABLE_SYMVERS): New.
19758         * configure.ac (AC_INIT): Version 1.0.
19759         (enable-version-specific-runtime-libs): Use LIBGOMP_ENABLE.
19760         (enable-linux-futex): Likewise.  Rename from enable-futex.
19761         (libtool_VERSION): New.
19762         (LIBGOMP_ENABLE_SYMVERS): Use it.
19763         * configure.tgt: Check with_gnu_ld wrt have_tls optimizations.
19764         * Makefile.in, aclocal.m4, configure: Rebuild.
19766         * config/linux/mutex.c: Include libgomp.h instead of mutex.h.
19767         (gomp_mutex_unlock_slow): Fix typo.
19768         * config/linux/sem.c: Similarly.
19769         (gomp_sem_post_slow): Fix typo.
19770         * config/linux/sem.h (gomp_sem_post_slow): Fix typo.
19771         * config/linux/i486/futex.h: Remove USE_LINUX_SYSENTER code.
19772         [__PIC__] (sys_futex0): Don't use tmp output in asm.
19774         * Makefile.am (AM_CFLAGS): Expand with XCFLAGS.
19775         (libgomp_la_LDFLAGS): Add top_srcdir to path.
19776         * acinclude.m4: Copy libtool.m4 stuff from libgfortran.
19777         * configure.ac: Check for getloadavg.  Substitute XCFLAGS and
19778         XLDFLAGS.  Add XCFLAGS to CFLAGS around LIBGOMP_CHECK_SYNC_BUILTINS.
19779         * configure.tgt: Set XCFLAGS and XLDFLAGS instead of CFLAGS and
19780         LDFLAGS.  Pull enable_futex check to top-level.
19781         * libgomp.h: Fix sem.h and mutex.h includes.  Define ATTRIBUTE_HIDDEN.
19782         * Makefile.in, aclocal.m4, config.h.in, configure: Regenerate.
19784         First attempt at real configury.
19785         * Makefile, config.h: Remove file.
19786         * Makefile.am, Makefile.in: New file.
19787         * acinclude.m4 aclocal.m4: New file.
19788         * configure.ac, configure.tgt, configure: New file.
19790         * config/posix/lock.c: Rename from sys-lock.c.
19791         * config/posix/mutex.h: Rename from sys-mutex.h.
19792         * config/posix/sem.c: Rename from sys-sem.c.
19793         * config/posix/sem.h: Rename from sys-sem.h.
19794         * config/posix/proc.c: Rename from sys-proc.c.
19795         * config/posix/time.c: Rename from sys-proc.c.
19797         * config/linux/mutex.c: New file.
19798         * config/linux/mutex.h: New file.
19799         * config/linux/sem.c: New file.
19800         * config/linux/sem.h: New file.
19801         * config/linux/i486/futex.h: New file.
19802         * config/linux/x86_64/futex.h: New file.
19804 2005-05-04  Richard Henderson  <rth@redhat.com>
19806         * iter.c (gomp_iter_dynamic_next, gomp_iter_guided_next): New.
19807         * libgomp.h: Declare them.
19808         * loop.c (gomp_loop_dynamic_start, gomp_loop_guided_start,
19809         gomp_loop_dynamic_next, gomp_loop_guided_next): Use them.
19811 2005-05-04  Richard Henderson  <rth@redhat.com>
19813         * libgomp-1 code drop
19815 2005-05-04  Richard Henderson  <rth@redhat.com>
19817         * iter.c (gomp_iter_static_next): Return tri-state on 0.
19818         * ordered.c (gomp_ordered_static_next): Remove not_last argument.
19819         * libgomp.h (struct gomp_team_state): Make static_trip unsigned.
19820         (gomp_iter_static_next): Update.
19821         (gomp_ordered_static_next): Update.
19822         * loop.c (gomp_loop_static_start): Update for gomp_iter_static_next.
19823         (gomp_loop_ordered_static_start): Likewise.  Exit early for a
19824         totally empty range.
19825         (gomp_loop_ordered_static_next): Refine test for calling
19826         gomp_ordered_static_next.
19827         * testsuite/ordered-1.c: Add case for more threads than iterations.
19829         * iter.c (gomp_iter_runtime_next_locked): Remove.
19830         * loop.c (gomp_loop_static_start, gomp_loop_dynamic_start,
19831         gomp_loop_guided_start, gomp_loop_ordered_static_start,
19832         gomp_loop_ordered_dynamic_start, gomp_loop_ordered_guided_start,
19833         gomp_loop_static_next, gomp_loop_dynamic_next, gomp_loop_guided_next,
19834         gomp_loop_ordered_static_next, gomp_loop_ordered_dynamic_next,
19835         gomp_loop_ordered_guided_next): Downcase name, make static, add
19836         an external alias with the old name.
19837         (GOMP_loop_runtime_start, GOMP_loop_ordered_runtime_start,
19838         GOMP_loop_runtime_next, GOMP_loop_ordered_runtime_next): Use a
19839         switch and call one of the above static functions.
19840         * libgomp.h: Update.
19842         * work.c (gomp_work_share_start): Lock the mutex for !first too.
19843         * loop.c (GOMP_loop_static_start, GOMP_loop_dynamic_start,
19844         GOMP_loop_guided_start, GOMP_loop_runtime_start,
19845         GOMP_loop_ordered_static_start, GOMP_loop_ordered_dynamic_start,
19846         GOMP_loop_ordered_guided_start): Update to match.
19847         * sections.c (GOMP_sections_start): Likewise.
19848         * single.c (GOMP_single_start, GOMP_single_copy_start): Likewise.
19850         * ordered.c (gomp_ordered_first, gomp_ordered_last, gomp_ordered_next,
19851         gomp_ordered_static_init, gomp_ordered_static_next): Rename s/_loop//.
19852         Use bounds check instead of modulus.
19853         (gomp_ordered_sync): Split out of GOMP_ordered_start.
19854         (gomp_ordered_last): Don't sync with ordered_owner here.
19855         (gomp_ordered_next): Likewise.
19856         (gomp_ordered_static_loop_next): Likewise.
19857         * loop.c, libgomp.h: Update to match.
19859         * libgomp.h (GOMP_barrier): Declare.
19861         * testsuite/barrier-1.c: New file.
19862         * testsuite/critical-1.c: New file.
19863         * testsuite/ordered-2.c: New file.
19864         * testsuite/ordered-1.c: New file.
19865         * testsuite/sections-1.c: New file.
19866         * testsuite/single-1.c: New file.
19867         * testsuite/Makefile (TESTS): Add them.
19869 2005-05-04  Richard Henderson  <rth@redhat.com>
19871         * libgomp.h (struct gomp_work_share): Add ordered_owner.
19872         * loop.c (GOMP_loop_static_start): If not the startup thread,
19873         acquire the mutex to wait for initialization complete.
19874         (GOMP_loop_ordered_static_start): Likewise.
19875         (GOMP_loop_ordered_runtime_start): Likewise.
19876         (GOMP_loop_ordered_static_first): Remove.
19877         (GOMP_loop_ordered_dynamic_first): Remove.
19878         (GOMP_loop_ordered_guided_first): Remove.
19879         (GOMP_loop_ordered_runtime_first): Remove.
19880         * ordered.c (gomp_ordered_loop_first): Post to own release when
19881         we're the first thread.
19882         (gomp_ordered_loop_last): Wait on release if not owner.
19883         (gomp_ordered_loop_next): Likewise.
19884         (gomp_ordered_static_loop_init): New.
19885         (gomp_ordered_static_loop_next): Use ordered_owner.
19886         (GOMP_ordered_start): Likewise.
19887         * work.c (gomp_new_work_share): Initialize ordered_owner.
19889 2005-05-03  Richard Henderson  <rth@redhat.com>
19891         * Makefile (OPT): New.
19892         (CFLAGS): Use it.
19894         * loop.c (GOMP_loop_end, GOMP_loop_end_nowait): New.
19895         * sections.c (GOMP_sections_end, GOMP_sections_end_nowait): New.
19896         * libgomp.h, libgomp.map, NOTES: Update to match.
19898         * team.c (struct gomp_thread_start_data): Remove ts, fn, data.
19899         Add initialized and thr members.
19900         (gomp_thread_start): Pause when initially spawned to wait for
19901         the whole team to be created.
19902         (gomp_team_start): Release team members at the end.
19904         * testsuite/loop-1.c (N): New.  Use it instead of hardcoded 100.
19905         (f_foo_1): Use GOMP_loop_end.
19906         (f_foo_2): Use GOMP_loop_end_nowait.
19908         * testsuite/loop-2.c: New file.
19909         * testsuite/Makefile (TESTS): Add it.
19911 2005-05-03  Richard Henderson  <rth@redhat.com>
19913         * iter.c (gomp_iter_static_next): Fix overflow check typo.
19914         (gomp_iter_dynamic_next_locked): Fix overflow check thinko.
19915         * team.c (new_team): Initialize oldest_live_gen to 1 if no
19916         initial work_share.
19918         * testsuite/Makefile: New file.
19919         * testsuite/loop-1.c: New file.
19921 2005-05-03  Richard Henderson  <rth@redhat.com>
19923         Initial implementation and checkin.
19925 Copyright (C) 2005-2023 Free Software Foundation, Inc.
19927 Copying and distribution of this file, with or without modification,
19928 are permitted in any medium without royalty provided the copyright
19929 notice and this notice are preserved.