Consistently use "rG" constraint for copy instruction in move patterns
[official-gcc.git] / libgomp / ChangeLog
blob41ef255a2908131a6303d5348796d1c4124a9e29
1 2021-10-14  Kwok Cheung Yeung  <kcy@codesourcery.com>
3         * libgomp.texi (OpenMP 5.0): Update entry for declare variant
4         directive.
6 2021-10-14  Kwok Cheung Yeung  <kcy@codesourcery.com>
8         * testsuite/libgomp.fortran/declare-variant-1.f90: New test.
10 2021-10-12  Julian Brown  <julian@codesourcery.com>
12         * target.c (gomp_copy_host2dev): Release device lock on cbuf
13         error path.
15 2021-10-12  Tobias Burnus  <tobias@codesourcery.com>
17         * testsuite/libgomp.fortran/icv-3.f90: New.
18         * testsuite/libgomp.fortran/icv-4.f90: New.
20 2021-10-12  Jakub Jelinek  <jakub@redhat.com>
22         * libgomp.texi (omp_get_max_teams, omp_get_teams_thread_limit,
23         omp_set_num_teams, omp_set_teams_thread_limit, OMP_NUM_TEAMS,
24         OMP_TEAMS_THREAD_LIMIT): Document.
26 2021-10-12  Jakub Jelinek  <jakub@redhat.com>
28         * libgomp.texi (omp_get_device_num): Move @node before omp_get_dynamic
29         to avoid makeinfo warnings.
31 2021-10-12  Jakub Jelinek  <jakub@redhat.com>
33         * testsuite/libgomp.c-c++-common/icv-3.c: New test.
34         * testsuite/libgomp.c-c++-common/icv-4.c: New test.
36 2021-10-12  Jakub Jelinek  <jakub@redhat.com>
38         PR libgomp/102628
39         PR libgomp/102668
40         * testsuite/libgomp.c-c++-common/alloc-9.c (main): Decrease
41         allocation sizes from 420 to 320 and from 768 to 568.
42         * testsuite/libgomp.fortran/alloc-11.f90: Likewise.
43         * testsuite/libgomp.fortran/alloc-1.F90: Change expected alignment
44         for cr from 16 to 4.
46 2021-10-12  Jakub Jelinek  <jakub@redhat.com>
48         * testsuite/libgomp.c/scan-11.c: Remove option -fvect-cost-model=cheap.
49         * testsuite/libgomp.c/scan-12.c: Likewise.
50         * testsuite/libgomp.c/scan-13.c: Likewise.
51         * testsuite/libgomp.c/scan-14.c: Likewise.
52         * testsuite/libgomp.c/scan-15.c: Likewise.
53         * testsuite/libgomp.c/scan-16.c: Likewise.
54         * testsuite/libgomp.c/scan-17.c: Likewise.
55         * testsuite/libgomp.c/scan-18.c: Likewise.
56         * testsuite/libgomp.c/scan-19.c: Likewise.
57         * testsuite/libgomp.c/scan-20.c: Likewise.
58         * testsuite/libgomp.c/scan-21.c: Likewise.
59         * testsuite/libgomp.c/scan-22.c: Likewise.
60         * testsuite/libgomp.c++/scan-9.C: Likewise.
61         * testsuite/libgomp.c++/scan-10.C: Likewise.
62         * testsuite/libgomp.c++/scan-11.C: Likewise.
63         * testsuite/libgomp.c++/scan-12.C: Likewise.
64         * testsuite/libgomp.c++/scan-13.C: Likewise.
65         * testsuite/libgomp.c++/scan-14.C: Likewise.
66         * testsuite/libgomp.c++/scan-15.C: Likewise.
67         * testsuite/libgomp.c++/scan-16.C: Likewise.
69 2021-10-12  Kewen Lin  <linkw@linux.ibm.com>
71         * testsuite/libgomp.graphite/force-parallel-8.c: Add --param max-stores-to-sink=0.
73 2021-10-11  Marcel Vollweiler  <marcel@codesourcery.com>
75         * allocator.c (omp_init_allocator): Replace omp_atv_sequential with
76         omp_atv_serialized.
77         * omp.h.in: Add deprecated flag for omp_atv_sequential.
78         * omp_lib.f90.in: Add deprecated flag for omp_atv_sequential.
79         * testsuite/libgomp.c-c++-common/alloc-10.c: New test.
80         * testsuite/libgomp.fortran/alloc-12.f90: New test.
82 2021-10-11  Jakub Jelinek  <jakub@redhat.com>
84         * omp.h.in (omp_set_num_teams, omp_get_max_teams,
85         omp_set_teams_thread_limit, omp_get_teams_thread_limit): Declare.
86         * omp_lib.f90.in (omp_set_num_teams, omp_get_max_teams,
87         omp_set_teams_thread_limit, omp_get_teams_thread_limit): Declare.
88         * omp_lib.h.in (omp_set_num_teams, omp_get_max_teams,
89         omp_set_teams_thread_limit, omp_get_teams_thread_limit): Declare.
90         * libgomp.h (gomp_nteams_var, gomp_teams_thread_limit_var): Declare.
91         * libgomp.map (OMP_5.1): Export omp_get_max_teams{,_},
92         omp_get_teams_thread_limit{,_}, omp_set_num_teams{,_,_8_} and
93         omp_set_teams_thread_limit{,_,_8_}.
94         * icv.c (omp_set_num_teams, omp_get_max_teams,
95         omp_set_teams_thread_limit, omp_get_teams_thread_limit): New
96         functions.
97         * env.c (gomp_nteams_var, gomp_teams_thread_limit_var): Define.
98         (omp_display_env): Print OMP_NUM_TEAMS and OMP_TEAMS_THREAD_LIMIT.
99         (initialize_env): Handle OMP_NUM_TEAMS and OMP_TEAMS_THREAD_LIMIT env
100         vars.
101         * teams.c (GOMP_teams_reg): If thread_limit is not specified, use
102         gomp_teams_thread_limit_var as fallback if not zero.  If num_teams
103         is not specified, use gomp_nteams_var.
104         * fortran.c (omp_set_num_teams, omp_get_max_teams,
105         omp_set_teams_thread_limit, omp_get_teams_thread_limit): Add
106         ialias_redirect.
107         (omp_set_num_teams_, omp_set_num_teams_8_, omp_get_max_teams_,
108         omp_set_teams_thread_limit_, omp_set_teams_thread_limit_8_,
109         omp_get_teams_thread_limit_): New functions.
111 2021-10-09  liuhongt  <hongtao.liu@intel.com>
113         * testsuite/libgomp.c++/scan-10.C: Add option -fvect-cost-model=cheap.
114         * testsuite/libgomp.c++/scan-11.C: Ditto.
115         * testsuite/libgomp.c++/scan-12.C: Ditto.
116         * testsuite/libgomp.c++/scan-13.C: Ditto.
117         * testsuite/libgomp.c++/scan-14.C: Ditto.
118         * testsuite/libgomp.c++/scan-15.C: Ditto.
119         * testsuite/libgomp.c++/scan-16.C: Ditto.
120         * testsuite/libgomp.c++/scan-9.C: Ditto.
121         * testsuite/libgomp.c-c++-common/lastprivate-conditional-7.c: Ditto.
122         * testsuite/libgomp.c-c++-common/lastprivate-conditional-8.c: Ditto.
123         * testsuite/libgomp.c/scan-11.c: Ditto.
124         * testsuite/libgomp.c/scan-12.c: Ditto.
125         * testsuite/libgomp.c/scan-13.c: Ditto.
126         * testsuite/libgomp.c/scan-14.c: Ditto.
127         * testsuite/libgomp.c/scan-15.c: Ditto.
128         * testsuite/libgomp.c/scan-16.c: Ditto.
129         * testsuite/libgomp.c/scan-17.c: Ditto.
130         * testsuite/libgomp.c/scan-18.c: Ditto.
131         * testsuite/libgomp.c/scan-19.c: Ditto.
132         * testsuite/libgomp.c/scan-20.c: Ditto.
133         * testsuite/libgomp.c/scan-21.c: Ditto.
134         * testsuite/libgomp.c/scan-22.c: Ditto.
136 2021-10-09  Jakub Jelinek  <jakub@redhat.com>
138         * libgomp.texi (OpenMP 5.1): Mention implemented support for
139         structured block sequences in C/C++.  Mention support for
140         unconstrained/reproducible modifiers on order clause.
141         Mention partial (C/C++ only) support of extentensions to atomics
142         construct.  Mention partial (C/C++ on clause only) support of
143         align/allocator modifiers on allocate clause.
145 2021-10-02  Tobias Burnus  <tobias@codesourcery.com>
147         * testsuite/libgomp.fortran/order-reproducible-1.f90: New test
148         based on libgomp.c-c++-common/order-reproducible-1.c.
149         * testsuite/libgomp.fortran/order-reproducible-2.f90: Likewise.
150         * testsuite/libgomp.fortran/my-usleep.c: New test.
152 2021-10-01  Tobias Burnus  <tobias@codesourcery.com>
154         * testsuite/libgomp.fortran/alloc-10.f90: Fix alignment check.
155         * testsuite/libgomp.fortran/alloc-7.f90: Fix array access.
156         * testsuite/libgomp.fortran/alloc-8.f90: Likewise.
157         * testsuite/libgomp.fortran/alloc-11.f90: New test for omp_realloc,
158         based on libgomp.c-c++-common/alloc-9.c.
160 2021-10-01  Jakub Jelinek  <jakub@redhat.com>
162         * testsuite/libgomp.c-c++-common/order-reproducible-1.c: New test.
163         * testsuite/libgomp.c-c++-common/order-reproducible-2.c: New test.
165 2021-10-01  Jakub Jelinek  <jakub@redhat.com>
167         * affinity-fmt.c (omp_get_team_num, omp_get_num_teams): Add
168         ialias_redirect.
169         * env.c (handle_omp_display_env): Use ialias_call.
170         * icv-device.c: Move ialias right below each function.
171         (omp_get_device_num): Use ialias_call.
172         * fortran.c (omp_fulfill_event): Add ialias_redirect.
173         * icv.c (omp_get_active_level): Add ialias_redirect.
175 2021-10-01  Jakub Jelinek  <jakub@redhat.com>
177         * omp.h.in (omp_aligned_alloc, omp_aligned_calloc): Add
178         __alloc_align__ (1) attribute.
179         * testsuite/libgomp.c-c++-common/alloc-9.c: New test.
181 2021-09-30  Tobias Burnus  <tobias@codesourcery.com>
183         * testsuite/libgomp.fortran/alloc-7.f90: Add dg-prune-output
184         for -fintrinsic-modules-path= warning of the C compiler.
185         * testsuite/libgomp.fortran/alloc-9.f90: Likewise.
186         * testsuite/libgomp.fortran/alloc-10.f90: Likewise.
188 2021-09-30  Tobias Burnus  <tobias@codesourcery.com>
190         * libgomp.texi (OpenMP 5.1): Set implementation status to Y for
191         omp_aligned_{,c}alloc and omp_{c,re}alloc routines.
192         * omp_lib.f90.in (omp_aligned_alloc, omp_aligned_calloc, omp_calloc,
193         omp_realloc): Add.
194         * omp_lib.h.in (omp_aligned_alloc, omp_aligned_calloc, omp_calloc,
195         omp_realloc): Add.
196         * testsuite/libgomp.fortran/alloc-10.f90: New test.
197         * testsuite/libgomp.fortran/alloc-6.f90: New test.
198         * testsuite/libgomp.fortran/alloc-7.c: New test.
199         * testsuite/libgomp.fortran/alloc-7.f90: New test.
200         * testsuite/libgomp.fortran/alloc-8.f90: New test.
201         * testsuite/libgomp.fortran/alloc-9.f90: New test.
203 2021-09-30  Jakub Jelinek  <jakub@redhat.com>
205         * omp.h.in (omp_aligned_alloc, omp_calloc, omp_aligned_calloc,
206         omp_realloc): New prototypes.
207         (omp_alloc): Move after omp_free prototype, add __malloc__ (omp_free)
208         attribute.
209         * allocator.c: Include string.h.
210         (omp_aligned_alloc): No longer static, add ialias.  Add new_alignment
211         variable and use it instead of alignment so that when retrying the old
212         alignment is used again.  Don't retry if new alignment is the same
213         as old alignment, unless allocator had pool size.
214         (omp_alloc, GOMP_alloc, GOMP_free): Use ialias_call.
215         (omp_aligned_calloc, omp_calloc, omp_realloc): New functions.
216         * libgomp.map (OMP_5.0.2): Export omp_aligned_alloc, omp_calloc,
217         omp_aligned_calloc and omp_realloc.
218         * testsuite/libgomp.c-c++-common/alloc-4.c (main): Add
219         omp_aligned_alloc, omp_calloc and omp_aligned_calloc tests.
220         * testsuite/libgomp.c-c++-common/alloc-5.c: New test.
221         * testsuite/libgomp.c-c++-common/alloc-6.c: New test.
222         * testsuite/libgomp.c-c++-common/alloc-7.c: New test.
223         * testsuite/libgomp.c-c++-common/alloc-8.c: New test.
225 2021-09-28  Tobias Burnus  <tobias@codesourcery.com>
227         PR libgomp/96661
228         * configure.ac: Only check for int-type = 2*size_t support when
229         building with Fortran support.
230         * configure: Regenerate.
232 2021-09-28  Thomas Schwinge  <thomas@codesourcery.com>
234         * testsuite/libgomp.oacc-fortran/if-1.f90: Adjust.
235         * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Likewise.
237 2021-09-27  Aldy Hernandez  <aldyh@redhat.com>
239         * team.c: Initialize start_data.
240         * testsuite/libgomp.graphite/force-parallel-4.c: Adjust.
241         * testsuite/libgomp.graphite/force-parallel-8.c: Adjust.
243 2021-09-27  Tobias Burnus  <tobias@codesourcery.com>
245         * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Change
246         dg-message back to dg-note.
248 2021-09-27  Tobias Burnus  <tobias@codesourcery.com>
250         PR fortran/94070
251         * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Update
252         expected dg-note output.
254 2021-09-22  Tobias Burnus  <tobias@codesourcery.com>
256         PR fortran/55534
257         * testsuite/libgomp.fortran/fortran.exp (ALWAYS_CFLAGS): Revert
258         r12-3722 by removing -Wno-missing-include-dirs.
259         * testsuite/libgomp.oacc-fortran/fortran.exp (ALWAYS_CFLAGS): Likewise.
261 2021-09-22  Jakub Jelinek  <jakub@redhat.com>
263         * testsuite/libgomp.c-c++-common/allocate-2.c: New test.
264         * testsuite/libgomp.c-c++-common/allocate-3.c: New test.
266 2021-09-21  Tobias Burnus  <tobias@codesourcery.com>
268         PR fortran/55534
269         * testsuite/libgomp.fortran/fortran.exp: Add -Wno-missing-include-dirs
270         to ALWAYS_CFLAGS.
271         * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
273 2021-09-18  Jakub Jelinek  <jakub@redhat.com>
275         * testsuite/libgomp.c++/default-1.C: New test.
276         * testsuite/libgomp.c-c++-common/default-1.c: New test.
277         * libgomp.texi (OpenMP 5.1): Mark "private and firstprivate argument
278         to default clause in C and C++" as implemented.
280 2021-09-17  Julian Brown  <julian@codesourcery.com>
282         * testsuite/libgomp.oacc-c-c++-common/broadcast-many.c: Update.
284 2021-09-17  Julian Brown  <julian@codesourcery.com>
286         * testsuite/libgomp.oacc-c-c++-common/broadcast-many.c: New test.
288 2021-09-17  Jakub Jelinek  <jakub@redhat.com>
290         * libgomp.texi (OpenMP 5.1): Spelling fix,
291         declare variante -> declare variant.
293 2021-09-17  Jakub Jelinek  <jakub@redhat.com>
295         * testsuite/libgomp.c-c++-common/atomic-19.c: Drop c effective target.
296         Use /* */ comments instead of //.
297         * testsuite/libgomp.c-c++-common/atomic-20.c: Likewise.
298         * testsuite/libgomp.c-c++-common/atomic-21.c: Likewise.
299         * testsuite/libgomp.c++/atomic-16.C: New test.
300         * testsuite/libgomp.c++/atomic-17.C: New test.
302 2021-09-10  Jakub Jelinek  <jakub@redhat.com>
304         * testsuite/libgomp.c-c++-common/atomic-19.c: New test.
305         * testsuite/libgomp.c-c++-common/atomic-20.c: New test.
306         * testsuite/libgomp.c-c++-common/atomic-21.c: New test.
308 2021-09-07  Tobias Burnus  <tobias@codesourcery.com>
310         * libgomp.texi (OpenMP Implementation Status): Extend
311         OpenMP 5.0 section.
312         (OpenACC Profiling Interface): Fix typo.
314 2021-09-07  Tobias Burnus  <tobias@codesourcery.com>
316         * libgomp.texi (Enabling OpenMP): Refer to OMP spec in general
317         not to 4.5; link to new section.
318         (OpenMP Implementation Status): New.
320 2021-09-06  Thomas Schwinge  <thomas@codesourcery.com>
322         * testsuite/libgomp.c/target-43.c: '-latomic' for nvptx offloading.
324 2021-09-03  Tobias Burnus  <tobias@codesourcery.com>
326         * testsuite/libgomp.c-c++-common/error-1.c: Use \r\n not \n\r in
327         dg-output.
328         * testsuite/libgomp.fortran/error-1.f90: Likewise.
330 2021-08-23  Thomas Schwinge  <thomas@codesourcery.com>
331             Jakub Jelinek  <jakub@redhat.com>
333         * testsuite/libgomp.c/address-space-1.c: New file.
335 2021-08-23  Thomas Schwinge  <thomas@codesourcery.com>
337         * testsuite/lib/libgomp.exp
338         (check_effective_target_offload_target_intelmic): Remove 'proc'.
339         (check_effective_target_offload_device_intel_mic): New 'proc'.
340         * testsuite/libgomp.c-c++-common/on_device_arch.h
341         (device_arch_intel_mic, on_device_arch_intel_mic): New.
342         * testsuite/libgomp.c-c++-common/target-45.c: Use that for
343         'dg-xfail-run-if'.
344         * testsuite/libgomp.fortran/target10.f90: Likewise.
346 2021-08-23  Tobias Burnus  <tobias@codesourcery.com>
348         * testsuite/libgomp.fortran/taskloop-4-a.f90: New test.
349         * testsuite/libgomp.fortran/taskloop-4.f90: New test.
350         * testsuite/libgomp.fortran/taskloop-5-a.f90: New test.
351         * testsuite/libgomp.fortran/taskloop-5.f90: New test.
353 2021-08-23  Jakub Jelinek  <jakub@redhat.com>
355         * taskloop.c (GOMP_taskloop): Handle GOMP_TASK_FLAG_STRICT.
356         * testsuite/libgomp.c-c++-common/taskloop-4.c (main): Fix up comment.
357         * testsuite/libgomp.c-c++-common/taskloop-5.c: New test.
359 2021-08-22  Thomas Schwinge  <thomas@codesourcery.com>
361         * config/nvptx/error.c (fwrite, exit): Override, too.
362         * testsuite/libgomp.c-c++-common/error-1.c: Add a minimum amount
363         of offloading testing.
364         * testsuite/libgomp.fortran/error-1.f90: Likewise.
366 2021-08-20  Tobias Burnus  <tobias@codesourcery.com>
368         * testsuite/libgomp.fortran/error-1.f90: New test.
370 2021-08-20  Jakub Jelinek  <jakub@redhat.com>
372         * libgomp.map (GOMP_5.1): Add GOMP_error and GOMP_warning.
373         * libgomp_g.h (GOMP_warning, GOMP_error): Declare.
374         * error.c (GOMP_warning, GOMP_error): New functions.
375         * testsuite/libgomp.c-c++-common/error-1.c: New test.
377 2021-08-18  Tobias Burnus  <tobias@codesourcery.com>
379         * omp_lib.f90.in (omp_alloc, omp_free, omp_target_alloc,
380         omp_target_free. omp_target_is_present, omp_target_memcpy,
381         omp_target_memcpy_rect, omp_target_associate_ptr,
382         omp_target_disassociate_ptr): Add interface.
383         * omp_lib.h.in (omp_alloc, omp_free, omp_target_alloc,
384         omp_target_free. omp_target_is_present, omp_target_memcpy,
385         omp_target_memcpy_rect, omp_target_associate_ptr,
386         omp_target_disassociate_ptr): Add interface.
387         * testsuite/libgomp.fortran/alloc-1.F90: Remove local
388         interface block for omp_alloc + omp_free.
389         * testsuite/libgomp.fortran/alloc-4.f90: Likewise.
390         * testsuite/libgomp.fortran/refcount-1.f90: New test.
391         * testsuite/libgomp.fortran/target-12.f90: New test.
393 2021-08-18  Jakub Jelinek  <jakub@redhat.com>
395         * testsuite/libgomp.c-c++-common/nothing-1.c: New test.
397 2021-08-17  Tobias Burnus  <tobias@codesourcery.com>
399         * testsuite/libgomp.fortran/scope-1.f90: New test.
400         * testsuite/libgomp.fortran/task-reduction-16.f90: New test.
402 2021-08-17  Jakub Jelinek  <jakub@redhat.com>
404         * Makefile.am (libgomp_la_SOURCES): Add scope.c
405         * Makefile.in: Regenerated.
406         * libgomp_g.h (GOMP_scope_start): Declare.
407         * libgomp.map: Add GOMP_scope_start@@GOMP_5.1.
408         * scope.c: New file.
409         * testsuite/libgomp.c-c++-common/scope-1.c: New test.
410         * testsuite/libgomp.c-c++-common/task-reduction-16.c: New test.
412 2021-08-16  Thomas Schwinge  <thomas@codesourcery.com>
414         * testsuite/libgomp.oacc-c-c++-common/mode-transitions.c: Address
415         '?:' issues.
417 2021-08-16  Tobias Burnus  <tobias@codesourcery.com>
419         * testsuite/libgomp.fortran/masked-1.f90: New test.
421 2021-08-13  Thomas Schwinge  <thomas@codesourcery.com>
423         * testsuite/libgomp.oacc-c-c++-common/static-variable-1.c: Adjust.
425 2021-08-12  Jakub Jelinek  <jakub@redhat.com>
427         * testsuite/libgomp.c-c++-common/masked-1.c: New test.
429 2021-08-12  Tobias Burnus  <tobias@codesourcery.com>
431         * env.c (parse_bind_var): Accept 'primary' as alias for
432         'master'.
433         (omp_display_env): Add TODO comment to
434         change 'master' to 'primary' in proc_bind for OpenMP 5.1.
435         * libgomp.texi: Change 'master thread' to 'primary thread'
436         in line with OpenMP 5.1.
437         (omp_get_proc_bind): Add omp_proc_bind_primary and note that
438         omp_proc_bind_master is an alias of it.
439         (OMP_PROC_BIND): Mention 'PRIMARY'.
440         * omp.h.in (__GOMP_DEPRECATED_5_1): Define.
441         (omp_proc_bind_primary): Add.
442         (omp_proc_bind_master): Deprecate for OpenMP 5.1.
443         * omp_lib.f90.in (omp_proc_bind_primary): Add.
444         (omp_proc_bind_master): Deprecate for OpenMP 5.1.
445         * omp_lib.h.in (omp_proc_bind_primary): Add.
446         * testsuite/libgomp.c/affinity-1.c: Check that
447         'primary' works and is identical to 'master'.
449 2021-08-09  Julian Brown  <julian@codesourcery.com>
450             Kwok Cheung Yeung  <kcy@codesourcery.com>
451             Thomas Schwinge  <thomas@codesourcery.com>
453         * plugin/plugin-gcn.c (gcn_exec): Change default number of workers to
454         16.
455         * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c
456         [acc_device_radeon]: Update.
457         * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c
458         [ACC_DEVICE_TYPE_radeon]: Likewise.
459         * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c
460         [acc_device_radeon]: Likewise.
461         * testsuite/libgomp.oacc-c-c++-common/routine-wv-2.c
462         [ACC_DEVICE_TYPE_radeon]: Likewise.
463         * testsuite/libgomp.oacc-fortran/optional-reduction.f90: XFAIL for
464         'openacc_radeon_accel_selected' and '-O0'.
465         * testsuite/libgomp.oacc-fortran/reduction-7.f90: Likewise.
467 2021-08-05  Chung-Lin Tang  <cltang@codesourcery.com>
469         * icv-device.c (omp_get_device_num): New API function, host side.
470         * fortran.c (omp_get_device_num_): New interface function.
471         * libgomp-plugin.h (GOMP_DEVICE_NUM_VAR): Define macro symbol.
472         * libgomp.map (OMP_5.0.2): New version space with omp_get_device_num,
473         omp_get_device_num_.
474         * libgomp.texi (omp_get_device_num): Add documentation for new API
475         function.
476         * omp.h.in (omp_get_device_num): Add declaration.
477         * omp_lib.f90.in (omp_get_device_num): Likewise.
478         * omp_lib.h.in (omp_get_device_num): Likewise.
479         * target.c (gomp_load_image_to_device): If additional entry for device
480         number exists at end of returned entries from 'load_image_func' hook,
481         copy the assigned device number over to the device variable.
482         * config/gcn/icv-device.c (GOMP_DEVICE_NUM_VAR): Define static global.
483         (omp_get_device_num): New API function, device side.
484         * plugin/plugin-gcn.c ("symcat.h"): Add include.
485         (GOMP_OFFLOAD_load_image): Add addresses of device GOMP_DEVICE_NUM_VAR
486         at end of returned 'target_table' entries.
487         * config/nvptx/icv-device.c (GOMP_DEVICE_NUM_VAR): Define static global.
488         (omp_get_device_num): New API function, device side.
489         * plugin/plugin-nvptx.c ("symcat.h"): Add include.
490         (GOMP_OFFLOAD_load_image): Add addresses of device GOMP_DEVICE_NUM_VAR
491         at end of returned 'target_table' entries.
492         * testsuite/lib/libgomp.exp
493         (check_effective_target_offload_target_intelmic): New function for
494         testing for intelmic offloading.
495         * testsuite/libgomp.c-c++-common/target-45.c: New test.
496         * testsuite/libgomp.fortran/target10.f90: New test.
498 2021-07-30  Thomas Schwinge  <thomas@codesourcery.com>
499             Ulrich Drepper  <drepper@redhat.com>
501         * fortran.c (omp_display_env_, omp_display_env_8_): Only
502         '#ifndef LIBGOMP_OFFLOADED_ONLY'.
504 2021-07-29  Thomas Schwinge  <thomas@codesourcery.com>
505             Julian Brown  <julian@codesourcery.com>
506             Kwok Cheung Yeung  <kcy@codesourcery.com>
508         * testsuite/libgomp.oacc-c-c++-common/pr85486-2.c:
509         's%oaccdevlow%oaccloops%g'.
510         * testsuite/libgomp.oacc-c-c++-common/pr85486-3.c: Likewise.
511         * testsuite/libgomp.oacc-c-c++-common/pr85486.c: Likewise.
512         * testsuite/libgomp.oacc-c-c++-common/routine-nohost-1.c:
513         Likewise.
514         * testsuite/libgomp.oacc-c-c++-common/vector-length-128-1.c:
515         Likewise.
516         * testsuite/libgomp.oacc-c-c++-common/vector-length-128-2.c:
517         Likewise.
518         * testsuite/libgomp.oacc-c-c++-common/vector-length-128-3.c:
519         Likewise.
520         * testsuite/libgomp.oacc-c-c++-common/vector-length-128-4.c:
521         Likewise.
522         * testsuite/libgomp.oacc-c-c++-common/vector-length-128-5.c:
523         Likewise.
524         * testsuite/libgomp.oacc-c-c++-common/vector-length-128-6.c:
525         Likewise.
526         * testsuite/libgomp.oacc-c-c++-common/vector-length-128-7.c:
527         Likewise.
528         * testsuite/libgomp.oacc-fortran/routine-nohost-1.f90: Likewise.
530 2021-07-29  Aldy Hernandez  <aldyh@redhat.com>
532         * testsuite/libgomp.graphite/force-parallel-4.c: Adjust for
533         threader.
534         * testsuite/libgomp.graphite/force-parallel-8.c: Same.
536 2021-07-27  Ulrich Drepper  <drepper@gmail.com>
538         * env.c (wait_policy, stacksize): New static variables,
539         move out of handle_omp_display_env.
540         (omp_display_env): New function.  The meat of the old
541         handle_omp_display_env function.
542         (handle_omp_display_env): Change to not take parameters
543         and instead use the global variables.  Only perform
544         parsing, defer to omp_display_env for the implementation.
545         (initialize_env): Remove local variables wait_policy and
546         stacksize.  Don't pass parameters to handle_omp_display_env.
547         * fortran.c: Add ialias_redirect for omp_display_env.
548         (omp_display_env_, omp_display_env_8_): New functions.
549         * libgomp.map (OMP_5.1): New version.  Add omp_display_env,
550         omp_display_env_, and omp_display_env_8_.
551         * omp.h.in: Declare omp_display_env.
552         * omp_lib.f90.in: Likewise.
553         * omp_lib.h.in: Likewise.
555 2021-07-27  Thomas Schwinge  <thomas@codesourcery.com>
556             Julian Brown  <julian@codesourcery.com>
558         * target.c (gomp_coalesce_buf_add): Update comment.
559         (gomp_copy_host2dev, gomp_map_vars_internal): Don't expect to see
560         'aq && cbuf'.
561         (gomp_map_vars_internal): Only 'if (!aq)', do
562         'gomp_coalesce_buf_add'.
563         * testsuite/libgomp.oacc-c-c++-common/async-data-1-2.c: Remove
564         XFAIL.
566 2021-07-27  Julian Brown  <julian@codesourcery.com>
567             Thomas Schwinge  <thomas@codesourcery.com>
569         * libgomp.h (gomp_copy_host2dev): Update prototype.
570         * oacc-mem.c (memcpy_tofrom_device, update_dev_host): Add new
571         argument to gomp_copy_host2dev (false).
572         * plugin/plugin-gcn.c (struct copy_data): Remove free_src field.
573         (copy_data): Don't free src.
574         (queue_push_copy): Remove free_src handling.
575         (GOMP_OFFLOAD_dev2dev): Update call to queue_push_copy.
576         (GOMP_OFFLOAD_openacc_async_host2dev): Remove source-data
577         snapshotting.
578         (GOMP_OFFLOAD_openacc_async_dev2host): Update call to
579         queue_push_copy.
580         * target.c (goacc_device_copy_async): Add SRCADDR_ORIG parameter.
581         (gomp_copy_host2dev): Add EPHEMERAL parameter.  Snapshot source
582         data when true, and set up deferred freeing of temporary buffer.
583         (gomp_copy_dev2host): Update call to goacc_device_copy_async.
584         (gomp_map_vars_existing, gomp_map_pointer, gomp_attach_pointer)
585         (gomp_detach_pointer, gomp_map_vars_internal, gomp_update): Update
586         calls to gomp_copy_host2dev with appropriate ephemeral argument.
587         * testsuite/libgomp.oacc-c-c++-common/async-data-1-1.c: Remove
588         XFAIL.
590 2021-07-27  Thomas Schwinge  <thomas@codesourcery.com>
591             Tom de Vries  <tom@codesourcery.com>
593         * testsuite/libgomp.oacc-c-c++-common/async-data-1-1.c: New file.
594         * testsuite/libgomp.oacc-c-c++-common/async-data-1-2.c: Likewise.
596 2021-07-27  Thomas Schwinge  <thomas@codesourcery.com>
598         * testsuite/libgomp.oacc-c-c++-common/acc_prof-init-1.c: Clarify
599         sequencing of 'async' data copying vs. profiling events.
600         * testsuite/libgomp.oacc-c-c++-common/acc_prof-parallel-1.c:
601         Likewise.
603 2021-07-27  Thomas Schwinge  <thomas@codesourcery.com>
604             Julian Brown  <julian@codesourcery.com>
606         * testsuite/libgomp.oacc-c-c++-common/lib-94.c: Fix OpenACC
607         'async'/'wait' issue.
608         * testsuite/libgomp.oacc-c-c++-common/lib-95.c: Likewise.
609         * testsuite/libgomp.oacc-fortran/lib-16-2.f90: Likewise.
610         * testsuite/libgomp.oacc-fortran/lib-16.f90: Likewise.
612 2021-07-21  Thomas Schwinge  <thomas@codesourcery.com>
613             Joseph Myers  <joseph@codesourcery.com>
614             Cesar Philippidis  <cesar@codesourcery.com>
616         * testsuite/libgomp.oacc-c-c++-common/routine-nohost-1.c: New
617         file.
618         * testsuite/libgomp.oacc-c-c++-common/routine-nohost-2.c:
619         Likewise.
620         * testsuite/libgomp.oacc-c-c++-common/routine-nohost-2_2.c:
621         Likewise.
622         * testsuite/libgomp.oacc-fortran/routine-nohost-1.f90: Likewise.
624 2021-07-20  Thomas Schwinge  <thomas@codesourcery.com>
626         PR target/101484
627         * configure.tgt [amdgcn*-*-*] (XCFLAGS): Add
628         '-Wno-error=array-bounds'.
629         * config/gcn/team.c: Remove '-Werror=array-bounds' work-around.
630         * libgomp.h [__AMDGCN__]: Likewise.
632 2021-07-19  Thomas Schwinge  <thomas@codesourcery.com>
634         PR target/101484
635         * config/gcn/team.c: Apply '-Werror=array-bounds' work-around.
636         * libgomp.h [__AMDGCN__]: Likewise.
638 2021-07-13  Jakub Jelinek  <jakub@redhat.com>
639             Florian Weimer  <fweimer@redhat.com>
641         * config/linux/sem.h: Don't include limits.h.
642         (SEM_WAIT): Define to -__INT_MAX__ - 1 instead of INT_MIN.
643         * config/linux/affinity.c: Include limits.h.
645 2021-07-01  Jakub Jelinek  <jakub@redhat.com>
647         PR middle-end/94366
648         * testsuite/libgomp.c-c++-common/pr94366.c: New test.
650 2021-06-29  Tobias Burnus  <tobias@codesourcery.com>
652         PR other/67300
653         * testsuite/libgomp.c-c++-common/reduction-16.c: Replace
654         -foffload=nvptx-none= by -foffload-options=nvptx-none= to
655         avoid disabling other offload targets.
656         * testsuite/libgomp.c-c++-common/reduction-5.c: Likewise.
657         * testsuite/libgomp.c-c++-common/reduction-6.c: Likewise.
658         * testsuite/libgomp.c/target-44.c: Likewise.
660 2021-06-29  Tobias Burnus  <tobias@codesourcery.com>
662         * testsuite/libgomp.fortran/defaultmap-8.f90 (bar): Determine whether
663         target has shared memory and disable some scalar pointer/allocatable
664         checks if not as firstprivate does not work.
666 2021-06-25  Chung-Lin Tang  <cltang@codesourcery.com>
668         PR testsuite/101114
669         * testsuite/libgomp.c-c++-common/struct-elem-5.c:
670         Add "target offload_device_nonshared_as" condition for enabling test.
672 2021-06-24  Jakub Jelinek  <jakub@redhat.com>
674         * testsuite/libgomp.c-c++-common/target-in-reduction-1.c: New test.
675         * testsuite/libgomp.c-c++-common/target-in-reduction-2.c: New test.
676         * testsuite/libgomp.c++/target-in-reduction-1.C: New test.
677         * testsuite/libgomp.c++/target-in-reduction-2.C: New test.
679 2021-06-23  Jakub Jelinek  <jakub@redhat.com>
681         PR middle-end/101167
682         * testsuite/libgomp.c-c++-common/task-reduction-15.c: New test.
684 2021-06-17  Chung-Lin Tang  <cltang@codesourcery.com>
686         * hashtab.h (htab_clear): New function with initialization code
687         factored out from...
688         (htab_create): ...here, adjust to use htab_clear function.
689         * libgomp.h (REFCOUNT_SPECIAL): New symbol to denote range of
690         special refcount values, add comments.
691         (REFCOUNT_INFINITY): Adjust definition to use REFCOUNT_SPECIAL.
692         (REFCOUNT_LINK): Likewise.
693         (REFCOUNT_STRUCTELEM): New special refcount range for structure
694         element siblings.
695         (REFCOUNT_STRUCTELEM_P): Macro for testing for structure element
696         sibling maps.
697         (REFCOUNT_STRUCTELEM_FLAG_FIRST): Flag to indicate first sibling.
698         (REFCOUNT_STRUCTELEM_FLAG_LAST):  Flag to indicate last sibling.
699         (REFCOUNT_STRUCTELEM_FIRST_P): Macro to test _FIRST flag.
700         (REFCOUNT_STRUCTELEM_LAST_P): Macro to test _LAST flag.
701         (struct splay_tree_key_s): Add structelem_refcount and
702         structelem_refcount_ptr fields into a union with dynamic_refcount.
703         Add comments.
704         (gomp_map_vars): Delete declaration.
705         (gomp_map_vars_async): Likewise.
706         (gomp_unmap_vars): Likewise.
707         (gomp_unmap_vars_async): Likewise.
708         (goacc_map_vars): New declaration.
709         (goacc_unmap_vars): Likewise.
710         * oacc-mem.c (acc_map_data): Adjust to use goacc_map_vars.
711         (goacc_enter_datum): Likewise.
712         (goacc_enter_data_internal): Likewise.
713         * oacc-parallel.c (GOACC_parallel_keyed): Adjust to use goacc_map_vars
714         and goacc_unmap_vars.
715         (GOACC_data_start): Adjust to use goacc_map_vars.
716         (GOACC_data_end): Adjust to use goacc_unmap_vars.
717         * target.c (hash_entry_type): New typedef.
718         (htab_alloc): New function hook for hashtab.h.
719         (htab_free): Likewise.
720         (htab_hash): Likewise.
721         (htab_eq): Likewise.
722         (hashtab.h): Add file include.
723         (gomp_increment_refcount): New function.
724         (gomp_decrement_refcount): Likewise.
725         (gomp_map_vars_existing): Add refcount_set parameter, adjust to use
726         gomp_increment_refcount.
727         (gomp_map_fields_existing): Add refcount_set parameter, adjust calls
728         to gomp_map_vars_existing.
729         (gomp_map_vars_internal): Add refcount_set parameter, add local openmp_p
730         variable to guard OpenMP specific paths, adjust calls to
731         gomp_map_vars_existing, add structure element sibling splay_tree_key
732         sequence creation code, adjust Fortran map case to avoid increment
733         under OpenMP.
734         (gomp_map_vars): Adjust to static, add refcount_set parameter, manage
735         local refcount_set if caller passed in NULL, adjust call to
736         gomp_map_vars_internal.
737         (gomp_map_vars_async): Adjust and rename into...
738         (goacc_map_vars): ...this new function, adjust call to
739         gomp_map_vars_internal.
740         (gomp_remove_splay_tree_key): New function with code factored out from
741         gomp_remove_var_internal.
742         (gomp_remove_var_internal): Add code to handle removing multiple
743         splay_tree_key sequence for structure elements, adjust code to use
744         gomp_remove_splay_tree_key for splay-tree key removal.
745         (gomp_unmap_vars_internal): Add refcount_set parameter, adjust to use
746         gomp_decrement_refcount.
747         (gomp_unmap_vars): Adjust to static, add refcount_set parameter, manage
748         local refcount_set if caller passed in NULL, adjust call to
749         gomp_unmap_vars_internal.
750         (gomp_unmap_vars_async): Adjust and rename into...
751         (goacc_unmap_vars): ...this new function, adjust call to
752         gomp_unmap_vars_internal.
753         (GOMP_target): Manage refcount_set and adjust calls to gomp_map_vars and
754         gomp_unmap_vars.
755         (GOMP_target_ext): Likewise.
756         (gomp_target_data_fallback): Adjust call to gomp_map_vars.
757         (GOMP_target_data): Likewise.
758         (GOMP_target_data_ext): Likewise.
759         (GOMP_target_end_data): Adjust call to gomp_unmap_vars.
760         (gomp_exit_data): Add refcount_set parameter, adjust to use
761         gomp_decrement_refcount, adjust to queue splay-tree keys for removal
762         after main loop.
763         (GOMP_target_enter_exit_data): Manage refcount_set and adjust calls to
764         gomp_map_vars and gomp_exit_data.
765         (gomp_target_task_fn): Likewise.
766         * testsuite/libgomp.c-c++-common/refcount-1.c: New testcase.
767         * testsuite/libgomp.c-c++-common/struct-elem-1.c: New testcase.
768         * testsuite/libgomp.c-c++-common/struct-elem-2.c: New testcase.
769         * testsuite/libgomp.c-c++-common/struct-elem-3.c: New testcase.
770         * testsuite/libgomp.c-c++-common/struct-elem-4.c: New testcase.
771         * testsuite/libgomp.c-c++-common/struct-elem-5.c: New testcase.
773 2021-06-15  Tobias Burnus  <tobias@codesourcery.com>
775         PR fortran/92568
776         * testsuite/libgomp.fortran/defaultmap-8.f90: New test.
778 2021-06-10  Andrew Stubbs  <ams@codesourcery.com>
779             Thomas Schwinge  <thomas@codesourcery.com>
781         * libgomp.map (GOACC_2.0.2): New symbol version.
782         * libgomp_g.h (GOACC_enter_data, GOACC_exit_data) New prototypes.
783         * oacc-mem.c (GOACC_enter_data, GOACC_exit_data) New functions.
785 2021-06-10  Thomas Schwinge  <thomas@codesourcery.com>
786             Andrew Stubbs  <ams@codesourcery.com>
788         * oacc-mem.c (goacc_enter_exit_data_internal): New function,
789         extracted from...
790         (GOACC_enter_exit_data): ... here.
791         (GOACC_declare): Use it.
793 2021-06-10  Thomas Schwinge  <thomas@codesourcery.com>
795         * oacc-parallel.c (GOACC_declare): Move...
796         * oacc-mem.c: ... here.
797         * libgomp_g.h: Adjust.
799 2021-06-10  Andrew Stubbs  <ams@codesourcery.com>
800             Thomas Schwinge  <thomas@codesourcery.com>
802         * oacc-parallel.c (GOACC_declare): Clean up 'GOMP_MAP_POINTER'
803         handling.
805 2021-06-10  Jakub Jelinek  <jakub@redhat.com>
807         PR tree-optimization/100981
808         * testsuite/libgomp.fortran/pr100981-2.f90 (cdcdot): Initialize
809         dsdotr and dsdoti to 0.
811 2021-06-09  H.J. Lu  <hjl.tools@gmail.com>
813         * testsuite/lib/libgomp.exp (libgomp_init): Don't add -march=i486
814         if atomic compare-and-swap is supported on 'int'.
816 2021-06-09  Richard Biener  <rguenther@suse.de>
818         PR tree-optimization/100981
819         * testsuite/libgomp.fortran/pr100981-2.f90: New testcase.
821 2021-06-08  Thomas Schwinge  <thomas@codesourcery.com>
823         * plugin/plugin-gcn.c (gcn_exec): Force 'num_workers (1)'
824         unconditionally.
825         * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c:
826         Update.
827         * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Likewise.
828         * testsuite/libgomp.oacc-c-c++-common/routine-wv-2.c: Likewise.
830 2021-06-08  Thomas Schwinge  <thomas@codesourcery.com>
832         * testsuite/libgomp.oacc-c-c++-common/lib-11.c: Enable for all but
833         '-DACC_MEM_SHARED=0'.
834         * testsuite/libgomp.oacc-c-c++-common/lib-13.c: Likewise.
835         * testsuite/libgomp.oacc-c-c++-common/lib-14.c: Likewise.
836         * testsuite/libgomp.oacc-c-c++-common/lib-15.c: Likewise.
837         * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
838         * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
839         * testsuite/libgomp.oacc-c-c++-common/lib-24.c: Likewise.
840         * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
841         * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
842         * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
843         * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
844         * testsuite/libgomp.oacc-c-c++-common/lib-88.c: Likewise.
845         * testsuite/libgomp.oacc-c-c++-common/lib-89.c: Likewise.
846         * testsuite/libgomp.oacc-c-c++-common/lib-92.c: Likewise.
847         * testsuite/libgomp.oacc-fortran/lib-14.f90: Likewise.
848         * testsuite/libgomp.oacc-c-c++-common/lib-5.c: Add
849         'acc_device_radeon' testing.
850         * testsuite/libgomp.oacc-c-c++-common/lib-6.c: Likewise.
851         * testsuite/libgomp.oacc-fortran/lib-5.f90: Likewise.
852         * testsuite/libgomp.oacc-fortran/lib-7.f90: Likewise.
853         * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Enable for all.
854         * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
855         * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
856         * testsuite/libgomp.oacc-c-c++-common/lib-86.c: Likewise.
857         * testsuite/libgomp.oacc-c-c++-common/lib-87.c: Likewise.
858         * testsuite/libgomp.oacc-fortran/lib-10.f90: Likewise.
859         * testsuite/libgomp.oacc-fortran/lib-8.f90: Likewise.
860         * testsuite/libgomp.oacc-c-c++-common/lib-57.c: Improve checking
861         for non-'openacc_nvidia_accel_selected'.
862         * testsuite/libgomp.oacc-c-c++-common/lib-58.c: Likewise.
863         * testsuite/libgomp.oacc-c-c++-common/lib-62.c: Clarify that "Not
864         all implement this checking".
865         * testsuite/libgomp.oacc-c-c++-common/lib-63.c: Likewise.
866         * testsuite/libgomp.oacc-c-c++-common/lib-64.c: Likewise.
867         * testsuite/libgomp.oacc-c-c++-common/lib-65.c: Likewise.
868         * testsuite/libgomp.oacc-c-c++-common/lib-67.c: Likewise.
869         * testsuite/libgomp.oacc-c-c++-common/lib-68.c: Likewise.
871 2021-06-08  Thomas Schwinge  <thomas@codesourcery.com>
873         * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Simplify.
874         * testsuite/libgomp.oacc-fortran/parallel-dims-aux.c: Update.
876 2021-06-08  Thomas Schwinge  <thomas@codesourcery.com>
878         * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c: Fix
879         for 'acc_device_radeon'.
881 2021-06-08  Thomas Schwinge  <thomas@codesourcery.com>
883         * testsuite/libgomp.oacc-c-c++-common/firstprivate-1.c: Enhance
884         for non-'acc_device_nvidia'.
886 2021-06-08  Thomas Schwinge  <thomas@codesourcery.com>
888         * testsuite/libgomp.oacc-c-c++-common/acc_on_device-1.c: Add
889         'acc_device_radeon' testing.
890         * testsuite/libgomp.oacc-fortran/acc_on_device-1-1.f90: Likewise.
891         * testsuite/libgomp.oacc-fortran/acc_on_device-1-2.f: Likewise.
892         * testsuite/libgomp.oacc-fortran/acc_on_device-1-3.f: Likewise.
894 2021-06-08  Thomas Schwinge  <thomas@codesourcery.com>
896         * testsuite/libgomp.oacc-c-c++-common/async_queue-1.c: Don't
897         require 'openacc_nvidia_accel_selected'.  Fix up for
898         'ACC_DEVICE_TYPE_radeon'.
900 2021-06-08  Thomas Schwinge  <thomas@codesourcery.com>
902         * testsuite/libgomp.oacc-c++/declare-1.C: Don't require
903         'openacc_nvidia_accel_selected'.
904         * testsuite/libgomp.oacc-c-c++-common/declare-3.c: Likewise.
906 2021-06-08  Thomas Schwinge  <thomas@codesourcery.com>
908         * testsuite/lib/libgomp.exp
909         (check_effective_target_openacc_radeon_accel_selected):
910         Streamline.
912 2021-06-08  Thomas Schwinge  <thomas@codesourcery.com>
914         * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Revert
915         PR80547 workaround.
917 2021-06-08  Thomas Schwinge  <thomas@codesourcery.com>
919         * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c
920         <acc_device_nvidia>: Update comment.
922 2021-05-28  Tobias Burnus  <tobias@codesourcery.com>
924         * testsuite/libgomp.fortran/depend-iterator-2.f90: New test.
926 2021-05-27  Jakub Jelinek  <jakub@redhat.com>
928         * testsuite/lib/libgomp.exp (check_effective_target_openacc_cuda,
929         check_effective_target_openacc_cublas,
930         check_effective_target_openacc_cudart): New.
931         * testsuite/libgomp.oacc-fortran/host_data-4.f90: Require effective
932         target openacc_cublas.
933         * testsuite/libgomp.oacc-fortran/host_data-2.f90: Likewise.
934         * testsuite/libgomp.oacc-fortran/host_data-3.f: Likewise.
935         * testsuite/libgomp.oacc-c-c++-common/lib-91.c: Require effective
936         target openacc_cuda.
937         * testsuite/libgomp.oacc-c-c++-common/lib-70.c: Likewise.
938         * testsuite/libgomp.oacc-c-c++-common/lib-90.c: Likewise.
939         * testsuite/libgomp.oacc-c-c++-common/lib-75.c: Likewise.
940         * testsuite/libgomp.oacc-c-c++-common/lib-69.c: Likewise.
941         * testsuite/libgomp.oacc-c-c++-common/lib-74.c: Likewise.
942         * testsuite/libgomp.oacc-c-c++-common/lib-81.c: Likewise.
943         * testsuite/libgomp.oacc-c-c++-common/lib-72.c: Likewise.
944         * testsuite/libgomp.oacc-c-c++-common/lib-85.c: Likewise.
945         * testsuite/libgomp.oacc-c-c++-common/pr87835.c: Likewise.
946         * testsuite/libgomp.oacc-c-c++-common/lib-82.c: Likewise.
947         * testsuite/libgomp.oacc-c-c++-common/lib-73.c: Likewise.
948         * testsuite/libgomp.oacc-c-c++-common/lib-83.c: Likewise.
949         * testsuite/libgomp.oacc-c-c++-common/lib-78.c: Likewise.
950         * testsuite/libgomp.oacc-c-c++-common/lib-76.c: Likewise.
951         * testsuite/libgomp.oacc-c-c++-common/lib-84.c: Likewise.
952         * testsuite/libgomp.oacc-c-c++-common/lib-79.c: Likewise.
953         * testsuite/libgomp.oacc-c-c++-common/host_data-1.c: Require effective
954         targets openacc_cublas and openacc_cudart.
955         * testsuite/libgomp.oacc-c-c++-common/context-1.c: Likewise.
956         * testsuite/libgomp.oacc-c-c++-common/context-2.c: Likewise.
957         * testsuite/libgomp.oacc-c-c++-common/context-3.c: Likewise.
958         * testsuite/libgomp.oacc-c-c++-common/context-4.c: Likewise.
959         * testsuite/libgomp.oacc-c-c++-common/acc_get_property-nvptx.c:
960         Require effective target openacc_cudart.
961         * testsuite/libgomp.oacc-c-c++-common/asyncwait-1.c: Add -DUSE_CUDA_H
962         for effective target openacc_cuda and add && defined USE_CUDA_H to
963         preprocessor conditionals.  Guard -lcuda also on openacc_cuda
964         effective target.
966 2021-05-26  Jakub Jelinek  <jakub@redhat.com>
968         PR libgomp/100573
969         * config/nvptx/target.c (GOMP_target_ext, GOMP_target_data_ext,
970         GOMP_target_end_data, GOMP_target_update_ext,
971         GOMP_target_enter_exit_data): New dummy entrypoints.
972         * config/gcn/target.c (GOMP_target_ext, GOMP_target_data_ext,
973         GOMP_target_end_data, GOMP_target_update_ext,
974         GOMP_target_enter_exit_data): Likewise.
975         * testsuite/libgomp.c-c++-common/for-3.c (DO_PRAGMA, OMPTEAMS,
976         OMPFROM, OMPTO): Define.
977         (main): Remove #pragma omp target teams around all the tests.
978         * testsuite/libgomp.c-c++-common/target-41.c: New test.
979         * testsuite/libgomp.c-c++-common/target-42.c: New test.
981 2021-05-25  Jakub Jelinek  <jakub@redhat.com>
983         PR middle-end/99928
984         * testsuite/libgomp.c-c++-common/reduction-17.c: New test.
986 2021-05-24  Tobias Burnus  <tobias@codesourcery.com>
988         PR fortran/86470
989         * testsuite/libgomp.fortran/class-firstprivate-1.f90: New test.
990         * testsuite/libgomp.fortran/class-firstprivate-2.f90: New test.
991         * testsuite/libgomp.fortran/class-firstprivate-3.f90: New test.
993 2021-05-22  Thomas Schwinge  <thomas@codesourcery.com>
995         PR testsuite/90115
996         * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Prune
997         uninteresting/varying diagnostics.
999 2021-05-21  Thomas Schwinge  <thomas@codesourcery.com>
1001         PR middle-end/90115
1002         * testsuite/libgomp.oacc-c-c++-common/static-variable-1.c: Update.
1003         * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Likewise.
1005 2021-05-21  Thomas Schwinge  <thomas@codesourcery.com>
1007         PR middle-end/90115
1008         * testsuite/libgomp.oacc-fortran/private-atomic-1-vector.f90: New
1009         file.
1010         * testsuite/libgomp.oacc-c-c++-common/firstprivate-1.c: Update.
1011         * testsuite/libgomp.oacc-c-c++-common/host_data-7.c: Likewise.
1012         * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c:
1013         Likewise.
1014         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-1.c:
1015         Likewise.
1016         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-2.c:
1017         Likewise.
1018         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-3.c:
1019         Likewise.
1020         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-4.c:
1021         Likewise.
1022         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-5.c:
1023         Likewise.
1024         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-1.c:
1025         Likewise.
1026         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-2.c:
1027         Likewise.
1028         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-3.c:
1029         Likewise.
1030         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-4.c:
1031         Likewise.
1032         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-5.c:
1033         Likewise.
1034         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-6.c:
1035         Likewise.
1036         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-vector-1.c:
1037         Likewise.
1038         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-vector-2.c:
1039         Likewise.
1040         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-1.c:
1041         Likewise.
1042         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-2.c:
1043         Likewise.
1044         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-3.c:
1045         Likewise.
1046         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-4.c:
1047         Likewise.
1048         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-5.c:
1049         Likewise.
1050         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-6.c:
1051         Likewise.
1052         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-7.c:
1053         Likewise.
1054         * testsuite/libgomp.oacc-c-c++-common/loop-g-1.c: Likewise.
1055         * testsuite/libgomp.oacc-c-c++-common/loop-g-2.c: Likewise.
1056         * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c: Likewise.
1057         * testsuite/libgomp.oacc-c-c++-common/loop-gwv-2.c: Likewise.
1058         * testsuite/libgomp.oacc-c-c++-common/loop-red-g-1.c: Likewise.
1059         * testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c: Likewise.
1060         * testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c: Likewise.
1061         * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c: Likewise.
1062         * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c: Likewise.
1063         * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c: Likewise.
1064         * testsuite/libgomp.oacc-c-c++-common/loop-red-wv-1.c: Likewise.
1065         * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c: Likewise.
1066         * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c: Likewise.
1067         * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c: Likewise.
1068         * testsuite/libgomp.oacc-c-c++-common/parallel-reduction.c:
1069         Likewise.
1070         * testsuite/libgomp.oacc-c-c++-common/private-atomic-1-gang.c:
1071         Likewise.
1072         * testsuite/libgomp.oacc-c-c++-common/private-atomic-1.c:
1073         Likewise.
1074         * testsuite/libgomp.oacc-c-c++-common/private-variables.c:
1075         Likewise.
1076         * testsuite/libgomp.oacc-c-c++-common/routine-4.c: Likewise.
1077         * testsuite/libgomp.oacc-c-c++-common/static-variable-1.c:
1078         Likewise.
1079         * testsuite/libgomp.oacc-fortran/acc_on_device-1-1.f90: Likewise.
1080         * testsuite/libgomp.oacc-fortran/acc_on_device-1-2.f: Likewise.
1081         * testsuite/libgomp.oacc-fortran/acc_on_device-1-3.f: Likewise.
1082         * testsuite/libgomp.oacc-fortran/declare-1.f90: Likewise.
1083         * testsuite/libgomp.oacc-fortran/host_data-5.F90: Likewise.
1084         * testsuite/libgomp.oacc-fortran/if-1.f90: Likewise.
1085         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-1.f90:
1086         Likewise.
1087         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-2.f90:
1088         Likewise.
1089         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-3.f90:
1090         Likewise.
1091         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-6.f90:
1092         Likewise.
1093         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-vector-1.f90:
1094         Likewise.
1095         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-vector-2.f90:
1096         Likewise.
1097         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-1.f90:
1098         Likewise.
1099         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-2.f90:
1100         Likewise.
1101         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-3.f90:
1102         Likewise.
1103         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-4.f90:
1104         Likewise.
1105         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-5.f90:
1106         Likewise.
1107         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-6.f90:
1108         Likewise.
1109         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-7.f90:
1110         Likewise.
1111         * testsuite/libgomp.oacc-fortran/optional-private.f90: Likewise.
1112         * testsuite/libgomp.oacc-fortran/parallel-dims.f90: Likewise.
1113         * testsuite/libgomp.oacc-fortran/private-atomic-1-gang.f90:
1114         Likewise.
1115         * testsuite/libgomp.oacc-fortran/private-atomic-1-worker.f90:
1116         Likewise.
1117         * testsuite/libgomp.oacc-fortran/private-variables.f90: Likewise.
1118         * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Likewise.
1119         * testsuite/libgomp.oacc-fortran/routine-7.f90: Likewise.
1121 2021-05-21  Julian Brown  <julian@codesourcery.com>
1122             Chung-Lin Tang  <cltang@codesourcery.com>
1123             Thomas Schwinge  <thomas@codesourcery.com>
1125         PR middle-end/90115
1126         * testsuite/libgomp.oacc-c-c++-common/private-atomic-1-gang.c: New
1127         test.
1128         * testsuite/libgomp.oacc-fortran/private-atomic-1-gang.f90:
1129         Likewise.
1130         * testsuite/libgomp.oacc-fortran/private-atomic-1-worker.f90:
1131         Likewise.
1133 2021-05-21  Thomas Schwinge  <thomas@codesourcery.com>
1135         * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Don't skip
1136         for nvptx offloading.
1138 2021-05-21  Tobias Burnus  <tobias@codesourcery.com>
1140         * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: New.
1142 2021-05-19  Thomas Schwinge  <thomas@codesourcery.com>
1144         PR target/83812
1145         * testsuite/libgomp.oacc-c-c++-common/private-atomic-1.c: New.
1147 2021-05-19  Julian Brown  <julian@codesourcery.com>
1149         * testsuite/libgomp.oacc-c-c++-common/loop-gwv-2.c: New.
1151 2021-05-18  Thomas Schwinge  <thomas@codesourcery.com>
1153         * testsuite/lib/libgomp.exp
1154         (check_effective_target_offload_target_nvptx): Don't shadow global
1155         'offload_targets' variable.
1157 2021-05-18  Thomas Schwinge  <thomas@codesourcery.com>
1159         * testsuite/libgomp.c-c++-common/reduction-5.c: Restrict
1160         '-latomic' to nvptx offloading compilation.
1161         * testsuite/libgomp.c-c++-common/reduction-6.c: Likewise.
1163 2021-05-18  Thomas Schwinge  <thomas@codesourcery.com>
1165         * testsuite/libgomp.c/target-44.c: Restrict '-latomic' to nvptx
1166         offloading compilation.
1168 2021-05-17  Kwok Cheung Yeung  <kcy@codesourcery.com>
1170         * task.c (omp_fulfill_event): Call gomp_team_barrier_set_task_pending
1171         if new tasks generated.
1172         * testsuite/libgomp.c-c++-common/task-detach-13.c: New.
1174 2021-05-14  Tobias Burnus  <tobias@codesourcery.com>
1176         * testsuite/libgomp.fortran/parallel-master.f90: New test.
1178 2021-05-13  Martin Liska  <mliska@suse.cz>
1180         PR testsuite/100569
1181         * testsuite/libgomp.c/omp-nested-3.c: Prune new LTO warning.
1182         * testsuite/libgomp.c/pr46032-2.c: Likewise.
1183         * testsuite/libgomp.oacc-c-c++-common/data-clauses-kernels-ipa-pta.c: Likewise.
1184         * testsuite/libgomp.oacc-c-c++-common/data-clauses-parallel-ipa-pta.c: Likewise.
1186 2021-05-12  Tobias Burnus  <tobias@codesourcery.com>
1188         * testsuite/libgomp.c-c++-common/task-detach-12.c: New test.
1189         * testsuite/libgomp.fortran/task-detach-12.f90: New test.
1191 2021-05-11  Jakub Jelinek  <jakub@redhat.com>
1193         PR middle-end/100471
1194         * taskloop.c (GOMP_taskloop): If GOMP_TASK_FLAG_REDUCTION and not
1195         GOMP_TASK_FLAG_NOGROUP, when doing early return clear the task
1196         reduction pointer.
1197         * testsuite/libgomp.c/task-reduction-4.c: New test.
1199 2021-05-07  Tobias Burnus  <tobias@codesourcery.com>
1200             Tom de Vries  <tdevries@suse.de>
1202         * testsuite/libgomp.c-c++-common/reduction-5.c: New test, testing
1203         complex/floating-point || + && reduction with 'omp target'.
1204         * testsuite/libgomp.c-c++-common/reduction-6.c: Likewise.
1206 2021-05-04  Tobias Burnus  <tobias@codesourcery.com>
1208         * testsuite/libgomp.c-c++-common/reduction-1.c: New test.
1209         * testsuite/libgomp.c-c++-common/reduction-2.c: New test.
1210         * testsuite/libgomp.c-c++-common/reduction-3.c: New test.
1211         * testsuite/libgomp.c-c++-common/reduction-4.c: New file.
1213 2021-05-04  Tobias Burnus  <tobias@codesourcery.com>
1215         PR testsuite/100397
1216         * testsuite/libgomp.fortran/depobj-1.f90 (dep2, dep3): Move var
1217         declaration to scope of non-'depend'-guarded assignment to avoid races.
1219 2021-05-03  Tom de Vries  <tdevries@suse.de>
1221         PR target/100321
1222         * testsuite/libgomp.c/target-44.c: New test.
1224 2021-04-30  Roman Zhuykov  <zhroma@ispras.ru>
1226         * testsuite/libgomp.oacc-c-c++-common/atomic_capture-3.c: New test.
1228 2021-04-29  Tom de Vries  <tdevries@suse.de>
1230         * testsuite/libgomp.c/pr81778.c: New test.
1232 2021-04-29  Tom de Vries  <tdevries@suse.de>
1234         PR target/100232
1235         * testsuite/libgomp.c/target-43.c: New file.
1237 2021-04-28  Jakub Jelinek  <jakub@redhat.com>
1238             Tobias Burnus  <tobias@codesourcery.com>
1240         * configure.ac (OFFLOAD_DEFAULTED): AC_DEFINE if offload-defaulted.
1241         * target.c (gomp_load_plugin_for_device): If set and if a plugin
1242         can't be dlopened, silently assume it has no devices.
1243         * Makefile.in: Regenerate.
1244         * config.h.in: Regenerate.
1245         * configure: Regenerate.
1247 2021-04-26  Tobias Burnus  <tobias@codesourcery.com>
1249         * testsuite/libgomp.oacc-fortran/par-reduction-2-1.f:
1250         Use [Ww]arning in dg-bogus as FE diagnostic and default
1251         diagnostic differ and the result depends on ENABLE_OFFLOAD.
1252         * testsuite/libgomp.oacc-fortran/par-reduction-2-2.f: Likewise.
1253         * testsuite/libgomp.oacc-fortran/parallel-dims.f90: Likewise.
1254         * testsuite/libgomp.oacc-fortran/parallel-reduction.f90: Likewise.
1256 2021-04-26  Tobias Burnus  <tobias@codesourcery.com>
1258         * testsuite/libgomp.oacc-fortran/par-reduction-2-1.f:
1259         Correct spelling in dg-bogus to match -Wopenacc-parallelism.
1260         * testsuite/libgomp.oacc-fortran/par-reduction-2-2.f: Likewise.
1261         * testsuite/libgomp.oacc-fortran/parallel-dims.f90: Likewise.
1262         * testsuite/libgomp.oacc-fortran/parallel-reduction.f90: Likewise.
1264 2021-04-26  Thomas Schwinge  <thomas@codesourcery.com>
1265             Nathan Sidwell  <nathan@codesourcery.com>
1266             Tom de Vries  <vries@codesourcery.com>
1267             Julian Brown  <julian@codesourcery.com>
1268             Kwok Cheung Yeung  <kcy@codesourcery.com>
1270         * testsuite/libgomp.oacc-c-c++-common/firstprivate-1.c: Specify
1271         '-Wopenacc-parallelism', and match diagnostics, as appropriate.
1272         * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Likewise.
1273         * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c: Likewise.
1274         * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c: Likewise.
1275         * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c: Likewise.
1276         * testsuite/libgomp.oacc-c-c++-common/mode-transitions.c:
1277         Likewise.
1278         * testsuite/libgomp.oacc-c-c++-common/par-reduction-1.c: Likewise.
1279         * testsuite/libgomp.oacc-c-c++-common/par-reduction-2.c: Likewise.
1280         * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Likewise.
1281         * testsuite/libgomp.oacc-c-c++-common/parallel-reduction.c:
1282         Likewise.
1283         * testsuite/libgomp.oacc-c-c++-common/pr85381-3.c: Likewise.
1284         * testsuite/libgomp.oacc-c-c++-common/private-variables.c:
1285         Likewise.
1286         * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Likewise.
1287         * testsuite/libgomp.oacc-c-c++-common/reduction-7.c: Likewise.
1288         * testsuite/libgomp.oacc-c-c++-common/routine-g-1.c: Likewise.
1289         * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c: Likewise.
1290         * testsuite/libgomp.oacc-c-c++-common/routine-wv-2.c: Likewise.
1291         * testsuite/libgomp.oacc-c-c++-common/static-variable-1.c:
1292         Likewise.
1293         * testsuite/libgomp.oacc-fortran/optional-private.f90: Likewise.
1294         * testsuite/libgomp.oacc-fortran/par-reduction-2-1.f: Likewise.
1295         * testsuite/libgomp.oacc-fortran/par-reduction-2-2.f: Likewise.
1296         * testsuite/libgomp.oacc-fortran/parallel-dims.f90: Likewise.
1297         * testsuite/libgomp.oacc-fortran/parallel-reduction.f90: Likewise.
1298         * testsuite/libgomp.oacc-fortran/pr84028.f90: Likewise.
1299         * testsuite/libgomp.oacc-fortran/private-variables.f90: Likewise.
1300         * testsuite/libgomp.oacc-fortran/reduction-1.f90: Likewise.
1301         * testsuite/libgomp.oacc-fortran/reduction-5.f90: Likewise.
1302         * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
1303         * testsuite/libgomp.oacc-fortran/routine-7.f90: Likewise.
1305 2021-04-26  Thomas Schwinge  <thomas@codesourcery.com>
1307         * testsuite/libgomp.oacc-c-c++-common/par-reduction-1.c: Don't
1308         compile with '-w'.
1309         * testsuite/libgomp.oacc-c-c++-common/par-reduction-2.c: Likewise.
1310         * testsuite/libgomp.oacc-c-c++-common/parallel-reduction.c:
1311         Likewise.
1312         * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Likewise.
1313         * testsuite/libgomp.oacc-c-c++-common/reduction-6.c: Likewise.
1314         * testsuite/libgomp.oacc-fortran/parallel-reduction.f90: Likewise.
1315         * testsuite/libgomp.oacc-fortran/reduction-1.f90: Likewise.
1316         * testsuite/libgomp.oacc-fortran/reduction-5.f90: Likewise.
1317         * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
1318         * testsuite/libgomp.oacc-fortran/reduction-7.f90: Likewise.
1320 2021-04-22  Richard Biener  <rguenther@suse.de>
1322         * testsuite/libgomp.c-c++-common/reduction-16.c: Use -latomic
1323         only on nvptx-none.
1325 2021-04-21  Tobias Burnus  <tobias@codesourcery.com>
1327         * testsuite/libgomp.fortran/depobj-1.f90: Use omp_lib's
1328         omp_depend_kind instead of defining it as 16.
1330 2021-04-21  Tobias Burnus  <tobias@codesourcery.com>
1332         * testsuite/lib/libgomp.exp (offload_target_to_openacc_device_type):
1333         New, based on check_effective_target_offload_target_nvptx.
1334         (check_effective_target_offload_target_nvptx): Call it.
1335         (check_effective_target_offload_target_amdgcn): New.
1336         * testsuite/libgomp.c-c++-common/function-not-offloaded.c:
1337         Require target offload_target_nvptx || offload_target_amdgcn.
1338         * testsuite/libgomp.c-c++-common/variable-not-offloaded.c: Likewise.
1339         * testsuite/libgomp.c/pr86416-1.c: Likewise.
1340         * testsuite/libgomp.c/pr86416-2.c: Likewise.
1342 2021-04-21  Tobias Burnus  <tobias@codesourcery.com>
1344         * testsuite/libgomp.fortran/depobj-1.f90: New test.
1346 2021-04-19  Thomas Schwinge  <thomas@codesourcery.com>
1348         * testsuite/libgomp.oacc-c-c++-common/declare-vla-kernels-decompose-ice-1.c:
1349         '-fopenacc-kernels=[...]' -> '--param=openacc-kernels=[...]'.
1350         * testsuite/libgomp.oacc-c-c++-common/declare-vla-kernels-decompose.c:
1351         Likewise.
1352         * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c:
1353         Likewise.
1354         * testsuite/libgomp.oacc-fortran/pr94358-1.f90: Likewise.
1356 2021-04-15  Thomas Schwinge  <thomas@codesourcery.com>
1358         PR target/99555
1359         * testsuite/lib/libgomp.exp
1360         (check_effective_target_offload_device_nvptx): New.
1361         * testsuite/libgomp.c/pr99555-1.c <nvptx offload device>: Until
1362         resolved, make sure that we exit quickly, with error status,
1363         XFAILed.
1364         * testsuite/libgomp.c-c++-common/task-detach-6.c: Likewise.
1365         * testsuite/libgomp.fortran/task-detach-6.f90: Likewise.
1367 2021-04-14  Jakub Jelinek  <jakub@redhat.com>
1369         PR testsuite/100071
1370         * testsuite/libgomp.fortran/alloc-1.F90: Call c_f_pointer after last
1371         cp = omp_alloc with cp, p arguments instead of cq, q and call
1372         c_f_pointer after last cq = omp_alloc with cq, q.
1374 2021-04-11  Hafiz Abid Qadeer  <abidh@codesourcery.com>
1376         PR middle-end/98088
1377         * testsuite/libgomp.oacc-c-c++-common/collapse-2.c: Add check
1378         for loop with GT/GE condition.
1379         * testsuite/libgomp.oacc-c-c++-common/collapse-3.c: Likewise.
1381 2021-04-09  Thomas Schwinge  <thomas@codesourcery.com>
1383         PR middle-end/84991
1384         PR middle-end/84992
1385         PR middle-end/90779
1386         * testsuite/libgomp.oacc-c-c++-common/static-variable-1.c: New.
1388 2021-04-09  Jakub Jelinek  <jakub@redhat.com>
1390         PR libgomp/99984
1391         * team.c (gomp_thread_start): Call pthread_setspecific for
1392         !(defined HAVE_TLS || defined USE_EMUTLS) only after local_thr
1393         has been initialized to avoid false positive warning.
1395 2021-03-29  Tobias Burnus  <tobias@codesourcery.com>
1397         PR target/99555
1398         * testsuite/lib/on_device_arch.c: Move to ...
1399         * testsuite/libgomp.c-c++-common/on_device_arch.h: ... here.
1400         * testsuite/libgomp.fortran/on_device_arch.c: New file;
1401         #include on_device_arch.h.
1402         * testsuite/libgomp.c-c++-common/task-detach-6.c: #include
1403         on_device_arch.h instead of using dg-additional-source.
1404         * testsuite/libgomp.c/pr99555-1.c: Likewise.
1405         * testsuite/libgomp.fortran/task-detach-6.f90: Update to use
1406         on_device_arch.c without relative paths.
1408 2021-03-25  Thomas Schwinge  <thomas@codesourcery.com>
1410         * plugin/plugin-gcn.c (init_environment_variables): Don't prepend
1411         the 'HSA_RUNTIME_LIB' path to 'libhsa-runtime64.so'.
1412         * plugin/configfrag.ac (HSA_RUNTIME_LIB): Clean up.
1413         * config.h.in: Regenerate.
1414         * configure: Likewise.
1416 2021-03-25  Thomas Schwinge  <thomas@codesourcery.com>
1418         PR target/99555
1419         * testsuite/lib/on_device_arch.c: New file.
1420         * testsuite/libgomp.c/pr99555-1.c: Likewise.
1421         * testsuite/libgomp.c-c++-common/task-detach-6.c: Until resolved,
1422         skip for nvptx offloading, with error status.
1423         * testsuite/libgomp.fortran/task-detach-6.f90: Likewise.
1425 2021-03-25  Thomas Schwinge  <thomas@codesourcery.com>
1427         * testsuite/libgomp.oacc-fortran/derivedtypes-arrays-1.f90:
1428         OpenACC 'serial' construct diagnostic for nvptx offloading.
1430 2021-03-15  Tobias Burnus  <tobias@codesourcery.com>
1432         PR c++/99509
1433         * testsuite/libgomp.c-c++-common/declare_target-1.c: New test.
1435 2021-03-12  Tobias Burnus  <tobias@codesourcery.com>
1437         PR fortran/98858
1438         * testsuite/libgomp.fortran/use_device_ptr-3.f90: New test.
1440 2021-03-04  Jakub Jelinek  <jakub@redhat.com>
1442         * configure.ac: Add AC_CHECK_SIZEOF([void *]).
1443         * plugin/configfrag.ac: Check $ac_cv_sizeof_void_p value instead of
1444         checking of -m32 or -mx32 options on the command line.
1445         * config.h.in: Regenerated.
1446         * configure: Regenerated.
1448 2021-02-27  Iain Sandoe  <iain@sandoe.co.uk>
1450         * testsuite/libgomp.c-c++-common/pr96390.c: Require alias
1451         support from the target.
1453 2021-02-25  Kwok Cheung Yeung  <kcy@codesourcery.com>
1454             Jakub Jelinek  <jakub@redhat.com>
1456         PR libgomp/98738
1457         * libgomp.h (enum gomp_task_kind): Add GOMP_TASK_DETACHED.
1458         (struct gomp_task): Replace detach and completion_sem fields with
1459         union containing completion_sem and detach_team.  Add deferred_p
1460         field.
1461         (struct gomp_team): Remove task_detach_queue.
1462         * task.c: Include assert.h.
1463         (gomp_init_task): Initialize deferred_p and completion_sem fields.
1464         Rearrange initialization order of fields.
1465         (task_fulfilled_p): Delete.
1466         (GOMP_task): Use address of task as the event handle.  Remove
1467         initialization of detach field.  Initialize deferred_p field.
1468         Use automatic local for completion_sem.  Initialize detach_team field
1469         for deferred tasks.
1470         (gomp_barrier_handle_tasks): Remove handling of task_detach_queue.
1471         Set kind of suspended detach task to GOMP_TASK_DETACHED and
1472         decrement task_running_count.  Move finish_cancelled block out of
1473         else branch.  Relocate call to gomp_team_barrier_done.
1474         (GOMP_taskwait): Handle tasks with completion events that have not
1475         been fulfilled.
1476         (GOMP_taskgroup_end): Likewise.
1477         (omp_fulfill_event): Use address of task as event handle.  Post to
1478         completion_sem for undeferred tasks.  Clear detach_team if task
1479         has not finished.  For finished tasks, handle post-execution tasks,
1480         call gomp_team_barrier_wake if necessary, and free task.
1481         * team.c (gomp_new_team): Remove initialization of task_detach_queue.
1482         (free_team): Remove free of task_detach_queue.
1483         * testsuite/libgomp.c-c++-common/task-detach-1.c: Fix formatting.
1484         * testsuite/libgomp.c-c++-common/task-detach-2.c: Fix formatting.
1485         * testsuite/libgomp.c-c++-common/task-detach-3.c: Fix formatting.
1486         * testsuite/libgomp.c-c++-common/task-detach-4.c: Fix formatting.
1487         * testsuite/libgomp.c-c++-common/task-detach-5.c: Fix formatting.
1488         Change data-sharing of detach events on enclosing parallel to private.
1489         * testsuite/libgomp.c-c++-common/task-detach-6.c: Likewise.  Remove
1490         taskwait directive.
1491         * testsuite/libgomp.c-c++-common/task-detach-7.c: New.
1492         * testsuite/libgomp.c-c++-common/task-detach-8.c: New.
1493         * testsuite/libgomp.c-c++-common/task-detach-9.c: New.
1494         * testsuite/libgomp.c-c++-common/task-detach-10.c: New.
1495         * testsuite/libgomp.c-c++-common/task-detach-11.c: New.
1496         * testsuite/libgomp.fortran/task-detach-1.f90: Fix formatting.
1497         * testsuite/libgomp.fortran/task-detach-2.f90: Fix formatting.
1498         * testsuite/libgomp.fortran/task-detach-3.f90: Fix formatting.
1499         * testsuite/libgomp.fortran/task-detach-4.f90: Fix formatting.
1500         * testsuite/libgomp.fortran/task-detach-5.f90: Fix formatting.
1501         Change data-sharing of detach events on enclosing parallel to private.
1502         * testsuite/libgomp.fortran/task-detach-6.f90: Likewise.  Remove
1503         taskwait directive.
1504         * testsuite/libgomp.fortran/task-detach-7.f90: New.
1505         * testsuite/libgomp.fortran/task-detach-8.f90: New.
1506         * testsuite/libgomp.fortran/task-detach-9.f90: New.
1507         * testsuite/libgomp.fortran/task-detach-10.f90: New.
1508         * testsuite/libgomp.fortran/task-detach-11.f90: New.
1510 2021-02-22  Tobias Burnus  <tobias@codesourcery.com>
1512         PR fortran/99171
1513         * testsuite/libgomp.fortran/dummy-procs-1.f90: New test.
1515 2021-02-17  Julian Brown  <julian@codesourcery.com>
1517         * testsuite/libgomp.oacc-fortran/array-stride-dt-1.f90: Remove
1518         expected errors.
1520 2021-02-17  Julian Brown  <julian@codesourcery.com>
1522         * testsuite/libgomp.oacc-fortran/derivedtypes-arrays-1.f90: New test.
1523         * testsuite/libgomp.oacc-fortran/update-dt-array.f90: Likewise.
1525 2021-02-11  UroÅ¡ Bizjak  <ubizjak@gmail.com>
1527         * config/linux/x86/futex.h (__futex_wait):
1528         Revert output type back to long.
1529         (__futex_wake): Ditto.
1530         (futex_wait): Update for revert.
1531         (futex_wake): Ditto.
1533 2021-02-11  UroÅ¡ Bizjak  <ubizjak@gmail.com>
1535         * config/linux/x86/futex.h (__futex_wait): New static inline
1536         wrapper function.  Correct output type to int and
1537         timeout type to void *.
1538         (__futex_wake): New static inline wrapper function.
1539         Correct output type to int.
1540         (futex_wait): Use __futex_wait.
1541         (futex_wake): Use __futex_wake.
1543 2021-02-10  Julian Brown  <julian@codesourcery.com>
1545         PR fortran/98979
1546         * testsuite/libgomp.oacc-fortran/array-stride-dt-1.f90: Add expected
1547         errors.
1549 2021-02-04  Julian Brown  <julian@codesourcery.com>
1551         * testsuite/libgomp.oacc-fortran/array-stride-dt-1.f90: New test.
1553 2021-02-03  Andrew Stubbs  <ams@codesourcery.com>
1555         * plugin/plugin-gcn.c (EF_AMDGPU_MACH): Add
1556         EF_AMDGPU_MACH_AMDGCN_GFX908.
1557         (gcn_gfx908_s): New constant string.
1558         (isa_hsa_name): Add gfx908.
1559         (isa_code): Add gfx908.
1561 2021-01-25  Kwok Cheung Yeung  <kcy@codesourcery.com>
1563         * libgomp.texi (omp_fulfill_event): New entry.
1565 2021-01-20  Jakub Jelinek  <jakub@redhat.com>
1567         * task.c (GOMP_task): Rename priority argument to priority_arg,
1568         add priority automatic variable and modify that variable.  Instead of
1569         clearing detach argument when GOMP_TASK_FLAG_DETACH bit is not set,
1570         check flags for that bit.
1572 2021-01-19  Tobias Burnus  <tobias@codesourcery.com>
1574         PR fortran/98476
1575         * testsuite/libgomp.fortran/is_device_ptr-1.f90: New test.
1577 2021-01-18  Andreas Schwab  <schwab@suse.de>
1579         * configure.tgt (riscv64*-*-linux*): Add linux to config_path.
1581 2021-01-18  Sebastian Huber  <sebastian.huber@embedded-brains.de>
1583         * config/rtems/sem.h (gomp_sem_getcount): New function.
1585 2021-01-18  Jakub Jelinek  <jakub@redhat.com>
1587         * config/linux/sem.h (gomp_sem_getcount): New function.
1588         * config/posix/sem.h (gomp_sem_getcount): New function.
1589         * config/posix/sem.c (gomp_sem_getcount): New function.
1590         * config/accel/sem.h (gomp_sem_getcount): New function.
1591         * task.c (task_fulfilled_p): Use gomp_sem_getcount.
1592         (omp_fulfill_event): Likewise.
1594 2021-01-16  Kwok Cheung Yeung  <kcy@codesourcery.com>
1596         * fortran.c (omp_fulfill_event_): New.
1597         * libgomp.h (struct gomp_task): Add detach and completion_sem fields.
1598         (struct gomp_team): Add task_detach_queue and task_detach_count
1599         fields.
1600         * libgomp.map (OMP_5.0.1): Add omp_fulfill_event and omp_fulfill_event_.
1601         * libgomp_g.h (GOMP_task): Add extra argument.
1602         * omp.h.in (enum omp_event_handle_t): New.
1603         (omp_fulfill_event): New.
1604         * omp_lib.f90.in (omp_event_handle_kind): New.
1605         (omp_fulfill_event): New.
1606         * omp_lib.h.in (omp_event_handle_kind): New.
1607         (omp_fulfill_event): Declare.
1608         * priority_queue.c (priority_tree_find): New.
1609         (priority_list_find): New.
1610         (priority_queue_find): New.
1611         * priority_queue.h (priority_queue_predicate): New.
1612         (priority_queue_find): New.
1613         * task.c (gomp_init_task): Initialize detach field.
1614         (task_fulfilled_p): New.
1615         (GOMP_task): Add detach argument.  Ignore detach argument if
1616         GOMP_TASK_FLAG_DETACH not set in flags.  Initialize completion_sem
1617         field.  Copy address of completion_sem into detach argument and
1618         into the start of the data record.  Wait for detach event if task
1619         not deferred.
1620         (gomp_barrier_handle_tasks): Queue tasks with unfulfilled events.
1621         Remove completed tasks and requeue dependent tasks.
1622         (omp_fulfill_event): New.
1623         * team.c (gomp_new_team): Initialize task_detach_queue and
1624         task_detach_count fields.
1625         (free_team): Free task_detach_queue field.
1626         * testsuite/libgomp.c-c++-common/task-detach-1.c: New testcase.
1627         * testsuite/libgomp.c-c++-common/task-detach-2.c: New testcase.
1628         * testsuite/libgomp.c-c++-common/task-detach-3.c: New testcase.
1629         * testsuite/libgomp.c-c++-common/task-detach-4.c: New testcase.
1630         * testsuite/libgomp.c-c++-common/task-detach-5.c: New testcase.
1631         * testsuite/libgomp.c-c++-common/task-detach-6.c: New testcase.
1632         * testsuite/libgomp.fortran/task-detach-1.f90: New testcase.
1633         * testsuite/libgomp.fortran/task-detach-2.f90: New testcase.
1634         * testsuite/libgomp.fortran/task-detach-3.f90: New testcase.
1635         * testsuite/libgomp.fortran/task-detach-4.f90: New testcase.
1636         * testsuite/libgomp.fortran/task-detach-5.f90: New testcase.
1637         * testsuite/libgomp.fortran/task-detach-6.f90: New testcase.
1639 2021-01-15  Jakub Jelinek  <jakub@redhat.com>
1641         PR target/70454
1642         * configure.tgt: For i?86 and x86_64 determine if -march=i486 needs to
1643         be added through preprocessor check on
1644         __GCC_HAVE_SYNC_COMPARE_AND_SWAP_4.
1646 2021-01-14  Thomas Schwinge  <thomas@codesourcery.com>
1648         PR libgomp/65099
1649         * plugin/configfrag.ac (PLUGIN_NVPTX): Restrict to supported
1650         configurations.
1651         * configure: Regenerate.
1652         * plugin/plugin-nvptx.c (nvptx_get_num_devices): Remove 64-bit
1653         check.
1655 2021-01-05  Samuel Thibault  <samuel.thibault@ens-lyon.org>
1657         * configure: Re-generate.
1659 2021-01-05  Samuel Thibault  <samuel.thibault@ens-lyon.org>
1661         * configure: Re-generate.
1663 2021-01-05  Julian Brown  <julian@codesourcery.com>
1665         * plugin/plugin-nvptx.c (SOFTSTACK_CACHE_LIMIT): New define.
1666         (struct ptx_device): Add omp_stacks struct.
1667         (nvptx_open_device): Initialise cached-stacks housekeeping info.
1668         (nvptx_close_device): Free cached stacks block and mutex.
1669         (nvptx_stacks_free): New function.
1670         (nvptx_alloc): Add SUPPRESS_ERRORS parameter.
1671         (GOMP_OFFLOAD_alloc): Add strategies for freeing soft-stacks block.
1672         (nvptx_stacks_alloc): Rename to...
1673         (nvptx_stacks_acquire): This.  Cache stacks block between runs if same
1674         size or smaller is required.
1675         (nvptx_stacks_free): Remove.
1676         (GOMP_OFFLOAD_run): Call nvptx_stacks_acquire and lock stacks block
1677         during kernel execution.
1679 2021-01-01  Jakub Jelinek  <jakub@redhat.com>
1681         * libgomp.texi: Bump @copying's copyright year.
1683 2020-12-28  Gerald Pfeifer  <gerald@pfeifer.com>
1685         * libgomp.texi (Top): Avoid bad "up" link.
1687 2020-12-18  Jakub Jelinek  <jakub@redhat.com>
1689         * testsuite/libgomp.c/task-6.c: New test.
1691 2020-12-09  Andrew Stubbs  <ams@codesourcery.com>
1693         * plugin/plugin-gcn.c: Include hsa_ext_amd.h.
1694         (HSA_AMD_AGENT_INFO_COMPUTE_UNIT_COUNT): Delete redundant definition.
1696 2020-12-08  Tobias Burnus  <tobias@codesourcery.com>
1698         * testsuite/libgomp.fortran/scan-1.f90: New test.
1700 2020-12-05  Iain Sandoe  <iain@sandoe.co.uk>
1702         PR target/97865
1703         * configure: Regenerate.
1705 2020-11-29  John David Anglin  <danglin@gcc.gnu.org>
1707         * configure: Regenerate.
1709 2020-11-25  Thomas Schwinge  <thomas@codesourcery.com>
1711         * testsuite/libgomp.oacc-c++/cache-1.C: New.
1712         * testsuite/libgomp.oacc-c-c++-common/cache-1.c: Update.
1714 2020-11-25  Andrew Stubbs  <ams@codesourcery.com>
1716         * testsuite/libgomp.oacc-fortran/atomic_capture-1.f90 (main): Adjust
1717         expected results.
1719 2020-11-24  Andrew Stubbs  <ams@codesourcery.com>
1721         * plugin/plugin-gcn.c: Don't redefine relocations if elf.h has them.
1722         (reserved): Delete unused define.
1724 2020-11-24  Thomas Schwinge  <thomas@codesourcery.com>
1726         * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c: Avoid
1727         Tcl 8.5-specific behavior.
1728         * testsuite/libgomp.oacc-fortran/pr94358-1.f90: Likewise.
1730 2020-11-18  Kwok Cheung Yeung  <kcy@codesourcery.com>
1732         * env.c (gomp_global_icv): Remove nest_var field.  Add
1733         max_active_levels_var field.
1734         (gomp_max_active_levels_var): Remove.
1735         (parse_boolean): Return true on success.
1736         (handle_omp_display_env): Express OMP_NESTED in terms of
1737         max_active_levels_var.  Change format specifier for
1738         max_active_levels_var.
1739         (initialize_env): Set max_active_levels_var from
1740         OMP_MAX_ACTIVE_LEVELS, OMP_NESTED, OMP_NUM_THREADS and
1741         OMP_PROC_BIND.
1742         * icv.c (omp_set_nested): Express in terms of
1743         max_active_levels_var.
1744         (omp_get_nested): Likewise.
1745         (omp_set_max_active_levels): Use max_active_levels_var field instead
1746         of gomp_max_active_levels_var.
1747         (omp_get_max_active_levels): Likewise.
1748         * libgomp.h (struct gomp_task_icv): Remove nest_var field.  Add
1749         max_active_levels_var field.
1750         (gomp_supported_active_levels): Set to UCHAR_MAX.
1751         (gomp_max_active_levels_var): Delete.
1752         * libgomp.texi (omp_get_nested): Update documentation.
1753         (omp_set_nested): Likewise.
1754         (OMP_MAX_ACTIVE_LEVELS): Likewise.
1755         (OMP_NESTED): Likewise.
1756         (OMP_NUM_THREADS): Likewise.
1757         (OMP_PROC_BIND): Likewise.
1758         * parallel.c (gomp_resolve_num_threads): Replace reference
1759         to nest_var with max_active_levels_var.  Use max_active_levels_var
1760         field instead of gomp_max_active_levels_var.
1762 2020-11-18  Tobias Burnus  <tobias@codesourcery.com>
1764         * testsuite/libgomp.c/usleep.h (fallback_usleep): Renamed from
1765         nvptx_usleep; use also for device={arch(gcn)}.
1767 2020-11-14  Jakub Jelinek  <jakub@redhat.com>
1769         * testsuite/libgomp.c-c++-common/allocate-1.c (struct S): New type.
1770         (foo): Add tests for non-VLA private and firstprivate clauses on
1771         omp task.
1772         (bar): Likewise.  Remove taking of address from private/firstprivate
1773         variables.
1774         * testsuite/libgomp.c++/allocate-1.C (struct S): New type.
1775         (foo): Add p, q, px and s arguments.  Add tests for array reductions
1776         and for non-VLA private and firstprivate clauses on omp task.
1777         (bar): Removed.
1778         (main): Adjust foo caller.  Don't call bar.
1780 2020-11-13  Gergö Barany  <gergo@codesourcery.com>
1781             Thomas Schwinge  <thomas@codesourcery.com>
1783         * testsuite/libgomp.oacc-c-c++-common/declare-vla-kernels-decompose-ice-1.c:
1784         New.
1785         * testsuite/libgomp.oacc-c-c++-common/declare-vla-kernels-decompose.c:
1786         Likewise.
1787         * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c:
1788         Likewise.
1789         * testsuite/libgomp.oacc-c-c++-common/declare-vla.c: Adjust.
1790         * testsuite/libgomp.oacc-fortran/pr94358-1.f90: Likewise.
1792 2020-11-13  Gergö Barany  <gergo@codesourcery.com>
1793             Thomas Schwinge  <thomas@codesourcery.com>
1795         PR fortran/94358
1796         * testsuite/libgomp.oacc-fortran/pr94358-1.f90: New.
1798 2020-11-13  Jakub Jelinek  <jakub@redhat.com>
1800         * testsuite/libgomp.c-c++-common/allocate-1.c (foo): Add tests
1801         for array reductions.
1802         (main): Adjust foo callers.
1804 2020-11-12  Jakub Jelinek  <jakub@redhat.com>
1806         * libgomp.map (GOMP_alloc, GOMP_free): Export at GOMP_5.0.1.
1807         * omp.h.in (omp_alloc): Add malloc and alloc_size attributes.
1808         * libgomp_g.h (GOMP_alloc, GOMP_free): Declare.
1809         * allocator.c (omp_aligned_alloc): New for now static function,
1810         add alignment argument and handle it.
1811         (omp_alloc): Reimplement using omp_aligned_alloc.
1812         (GOMP_alloc, GOMP_free): New functions.
1813         (omp_free): Add ialias.
1814         * testsuite/libgomp.c-c++-common/allocate-1.c: New test.
1815         * testsuite/libgomp.c++/allocate-1.C: New test.
1817 2020-11-12  Thomas Schwinge  <thomas@codesourcery.com>
1819         PR fortran/97782
1820         * testsuite/libgomp.oacc-fortran/attach-descriptor-1.f90: Adjust.
1822 2020-11-10  Chung-Lin Tang  <cltang@codesourcery.com>
1824         * libgomp.h (enum gomp_map_vars_kind): Adjust enum values to be bit-flag
1825         usable.
1826         * oacc-mem.c (acc_map_data): Adjust gomp_map_vars argument flags to
1827         'GOMP_MAP_VARS_OPENACC | GOMP_MAP_VARS_ENTER_DATA'.
1828         (goacc_enter_datum): Likewise for call to gomp_map_vars_async.
1829         (goacc_enter_data_internal): Likewise.
1830         * target.c (gomp_map_vars_internal):
1831         Change checks of GOMP_MAP_VARS_ENTER_DATA to use bit-and (&). Adjust use
1832         of gomp_attach_pointer for OpenMP cases.
1833         (gomp_exit_data): Add handling of GOMP_MAP_DETACH.
1834         (GOMP_target_enter_exit_data): Add handling of GOMP_MAP_ATTACH.
1835         * testsuite/libgomp.c-c++-common/ptr-attach-1.c: New testcase.
1837 2020-11-05  Ulrich Drepper  <drepper@redhat.com>
1838             Kwok Cheung Yeung  <kcy@codesourcery.com>
1840         * Makefile.am (%.mod): Add -cpp and -fopenmp to compile flags.
1841         * Makefile.in: Regenerate.
1842         * fortran.c: Wrap uses of omp_set_nested and omp_get_nested with
1843         pragmas to ignore -Wdeprecated-declarations warnings.
1844         * icv.c: Likewise.
1845         * omp.h.in (__GOMP_DEPRECATED_5_0): Define.
1846         Mark omp_lock_hint_* enum values, omp_lock_hint_t, omp_set_nested,
1847         and omp_get_nested with __GOMP_DEPRECATED_5_0.
1848         * omp_lib.f90.in: Mark omp_get_nested and omp_set_nested as
1849         deprecated.
1850         * testsuite/libgomp.c++/affinity-1.C: Add -Wno-deprecated-declarations
1851         to test options.
1852         * testsuite/libgomp.c/affinity-1.c: Likewise.
1853         * testsuite/libgomp.c/affinity-2.c: Likewise.
1854         * testsuite/libgomp.c/appendix-a/a.15.1.c: Likewise.
1855         * testsuite/libgomp.c/lib-1.c: Likewise.
1856         * testsuite/libgomp.c/nested-1.c: Likewise.
1857         * testsuite/libgomp.c/nested-2.c: Likewise.
1858         * testsuite/libgomp.c/nested-3.c: Likewise.
1859         * testsuite/libgomp.c/pr32362-1.c: Likewise.
1860         * testsuite/libgomp.c/pr32362-2.c: Likewise.
1861         * testsuite/libgomp.c/pr32362-3.c: Likewise.
1862         * testsuite/libgomp.c/pr35549.c: Likewise.
1863         * testsuite/libgomp.c/pr42942.c: Likewise.
1864         * testsuite/libgomp.c/pr61200.c: Likewise.
1865         * testsuite/libgomp.c/sort-1.c: Likewise.
1866         * testsuite/libgomp.c/target-5.c: Likewise.
1867         * testsuite/libgomp.c/target-6.c: Likewise.
1868         * testsuite/libgomp.c/teams-1.c: Likewise.
1869         * testsuite/libgomp.c/thread-limit-1.c: Likewise.
1870         * testsuite/libgomp.c/thread-limit-2.c: Likewise.
1871         * testsuite/libgomp.c/thread-limit-4.c: Likewise.
1872         * testsuite/libgomp.fortran/affinity1.f90: Likewise.
1873         * testsuite/libgomp.fortran/lib1.f90: Likewise.
1874         * testsuite/libgomp.fortran/lib2.f: Likewise.
1875         * testsuite/libgomp.fortran/nested1.f90: Likewise.
1876         * testsuite/libgomp.fortran/teams1.f90: Likewise.
1878 2020-11-02  Thomas Schwinge  <thomas@codesourcery.com>
1880         PR target/85486
1881         * testsuite/libgomp.oacc-c-c++-common/pr85486-2.c: Simplify and enhance.
1882         * testsuite/libgomp.oacc-c-c++-common/pr85486-3.c: Likewise.
1883         * testsuite/libgomp.oacc-c-c++-common/pr85486.c: Likewise.
1885 2020-11-02  Thomas Schwinge  <thomas@codesourcery.com>
1887         PR testsuite/80219
1888         PR testsuite/85303
1889         * testsuite/lib/libgomp.exp (libgomp_init): Set
1890         'gcc_warning_prefix', 'gcc_error_prefix'.
1892 2020-10-30  Jakub Jelinek  <jakub@redhat.com>
1894         * target.c (gomp_map_vars_internal): Use FIELD_TGT_EMPTY macro
1895         even in field_tgt_clear initializer.
1897 2020-10-28  Jakub Jelinek  <jakub@redhat.com>
1899         * testsuite/libgomp.c/target-42.c: New test.
1901 2020-10-28  Jakub Jelinek  <jakub@redhat.com>
1902             Tom de Vries  <tdevries@suse.de>
1904         PR testsuite/81690
1905         * testsuite/libgomp.c/usleep.h: New file.
1906         * testsuite/libgomp.c/target-32.c: Include usleep.h.
1907         (main): Use tgt_usleep instead of usleep.
1908         * testsuite/libgomp.c/thread-limit-2.c: Include usleep.h.
1909         (main): Use tgt_usleep instead of usleep.
1911 2020-10-28  Jakub Jelinek  <jakub@redhat.com>
1913         PR lto/96680
1914         * testsuite/libgomp.c/declare-variant-1.c: New test.
1916 2020-10-22  Jakub Jelinek  <jakub@redhat.com>
1918         * testsuite/libgomp.c/target-41.c: New test.
1920 2020-10-22  Jakub Jelinek  <jakub@redhat.com>
1922         * icv.c (omp_get_initial_device): Remove including corresponding
1923         ialias.
1924         * icv-device.c (omp_get_initial_device): New function.  Return
1925         gomp_get_num_devices ().  Add ialias.
1926         * target.c (resolve_device): Don't fail with
1927         OMP_TARGET_OFFLOAD=mandatory if device_id is equal to
1928         gomp_get_num_devices ().
1929         (omp_target_alloc, omp_target_free, omp_target_is_present,
1930         omp_target_memcpy, omp_target_memcpy_rect, omp_target_associate_ptr,
1931         omp_target_disassociate_ptr, omp_pause_resource): Use
1932         gomp_get_num_devices () instead of GOMP_DEVICE_HOST_FALLBACK on the
1933         first use in the functions, in uses dominated by the
1934         gomp_get_num_devices call use num_devices_openmp instead.
1935         * libgomp.texi (omp_get_initial_device): Document.
1936         * config/gcn/icv-device.c (omp_get_initial_device): New function.
1937         Add ialias.
1938         * config/nvptx/icv-device.c (omp_get_initial_device): Likewise.
1939         * testsuite/libgomp.c/target-40.c: New test.
1941 2020-10-21  Jakub Jelinek  <jakub@redhat.com>
1943         * env.c (parse_target_offload): Change new_offload var type to int,
1944         preinitialize to -1, remove found var and test new_offload != -1
1945         instead of found.
1947 2020-10-20  Jakub Jelinek  <jakub@redhat.com>
1949         * target.c (gomp_target_init): Inside of the function, use automatic
1950         variables corresponding to num_devices, num_devices_openmp and devices
1951         global variables and update the globals only at the end of the
1952         function.
1954 2020-10-20  Kwok Cheung Yeung  <kcy@codesourcery.com>
1956         * env.c (gomp_target_offload_var): New.
1957         (parse_target_offload): New.
1958         (handle_omp_display_env): Print value of OMP_TARGET_OFFLOAD.
1959         (initialize_env): Parse OMP_TARGET_OFFLOAD.
1960         * libgomp.h (gomp_target_offload_t): New.
1961         (gomp_target_offload_var): New.
1962         * libgomp.texi (OMP_TARGET_OFFLOAD): New section.
1963         * target.c (resolve_device): Generate error if device not found and
1964         offloading is mandatory.
1965         (gomp_target_fallback): Generate error if offloading is mandatory.
1966         (GOMP_target): Add argument in call to gomp_target_fallback.
1967         (GOMP_target_ext): Likewise.
1968         (gomp_target_data_fallback): Generate error if offloading is mandatory.
1969         (GOMP_target_data): Add argument in call to gomp_target_data_fallback.
1970         (GOMP_target_data_ext): Likewise.
1971         (gomp_target_task_fn): Add argument in call to gomp_target_fallback.
1972         (gomp_target_init): Return early if offloading is disabled.
1974 2020-10-15  Kwok Cheung Yeung  <kcy@codesourcery.com>
1976         * libgomp.texi (omp_get_max_active_levels): Modify description.
1977         (omp_get_supported_active_levels): Make descriptions consistent.
1979 2020-10-14  Jakub Jelinek  <jakub@redhat.com>
1981         * libgomp.texi (omp_get_supported_active_levels): Fix a typo.
1983 2020-10-13  Kwok Cheung Yeung  <kcy@codesourcery.com>
1985         * env.c (gomp_max_active_levels_var): Initialize to
1986         gomp_supported_active_levels.
1987         (initialize_env): Limit gomp_max_active_levels_var to be at most
1988         equal to gomp_supported_active_levels.
1989         * fortran.c (omp_get_supported_active_levels): Add ialias_redirect.
1990         (omp_get_supported_active_levels_): New.
1991         * icv.c (omp_set_max_active_levels): Limit gomp_max_active_levels_var
1992         to at most equal to gomp_supported_active_levels.
1993         (omp_get_supported_active_levels): New.
1994         * libgomp.h (gomp_supported_active_levels): New.
1995         * libgomp.map (OMP_5.0.1): Add omp_get_supported_active_levels and
1996         omp_get_supported_active_levels_.
1997         * libgomp.texi (omp_get_supported_active_levels): New.
1998         (omp_set_max_active_levels): Update.  Add reference to
1999         omp_get_supported_active_levels.
2000         * omp.h.in (omp_get_supported_active_levels): New.
2001         * omp_lib.f90.in (omp_get_supported_active_levels): New.
2002         * omp_lib.h.in (omp_get_supported_active_levels): New.
2003         * testsuite/libgomp.c/lib-2.c (main): Check omp_get_max_active_levels
2004         against omp_get_supported_active_levels.
2005         * testsuite/libgomp.fortran/lib4.f90 (lib4): Likewise.
2007 2020-10-11  Clement Chigot  <clement.chigot@atos.net>
2009         * config/t-aix: Delete and recreate libgomp before creating
2010         FAT library.
2012 2020-10-08  Tom de Vries  <tdevries@suse.de>
2014         PR libgomp/81802
2015         * plugin/plugin-nvptx.c (GOMP_OFFLOAD_run): Report launch
2016         dimensions.
2018 2020-10-06  Tom de Vries  <tdevries@suse.de>
2020         * testsuite/libgomp.oacc-fortran/declare-5.f90: Add xfail for PR92790.
2022 2020-10-06  Tom de Vries  <tdevries@suse.de>
2024         PR middle-end/90861
2025         * testsuite/libgomp.oacc-c-c++-common/declare-vla.c: Remove xfail.
2027 2020-10-05  Tom de Vries  <tdevries@suse.de>
2029         PR fortran/95654
2030         * testsuite/libgomp.fortran/pr95654.f90: New test.
2032 2020-10-02  Tobias Burnus  <tobias@codesourcery.com>
2034         * Makefile.in: Regenerate with automake 1.15.1.
2035         * aclocal.m4: Likewise.
2036         * configure: Likewise.
2037         * testsuite/Makefile.in: Likewise.
2039 2020-09-30  Andrew Stubbs  <ams@codesourcery.com>
2041         * parallel.c (gomp_resolve_num_threads): Ignore nest_var on nvptx
2042         and amdgcn targets.
2044 2020-09-30  Tobias Burnus  <tobias@codesourcery.com>
2046         * testsuite/libgomp.fortran/declare-target-3.f90: New test.
2048 2020-09-29  Andrew Stubbs  <ams@codesourcery.com>
2050         * config/gcn/bar.c (gomp_barrier_wait_end): Skip the barrier if the
2051         total number of threads is one.
2052         (gomp_team_barrier_wake): Likewise.
2053         (gomp_team_barrier_wait_end): Likewise.
2054         (gomp_team_barrier_wait_cancel_end): Likewise.
2055         * config/nvptx/bar.c (gomp_barrier_wait_end): Likewise.
2056         (gomp_team_barrier_wake): Likewise.
2057         (gomp_team_barrier_wait_end): Likewise.
2058         (gomp_team_barrier_wait_cancel_end): Likewise.
2059         * testsuite/libgomp.c-c++-common/nested-parallel-unbalanced.c: New test.
2061 2020-09-28  Tobias Burnus  <tobias@codesourcery.com>
2063         PR middle-end/96390
2064         * testsuite/libgomp.c++/pr96390.C: New test.
2065         * testsuite/libgomp.c-c++-common/pr96390.c: New test.
2067 2020-09-27  Clement Chigot  <clement.chigot@atos.net>
2069         * config/t-aix: Use $(AR) without -X32_64.
2071 2020-09-25  Jakub Jelinek  <jakub@redhat.com>
2073         * testsuite/libgomp.c/loop-25.c: New test.
2075 2020-09-22  Tobias Burnus  <tobias@codesourcery.com>
2077         PR fortran/95654
2078         * testsuite/libgomp.fortran/pr66199-5.f90: Make stop codes unique.
2080 2020-09-22  Tom de Vries  <tdevries@suse.de>
2082         * plugin/plugin-nvptx.c (link_ptx): Print elog if cuLinkComplete call
2083         fails.
2085 2020-09-16  Nathan Sidwell  <nathan@acm.org>
2087         * testsuite/libgomp.c++/udr-3.C: Add missing ctor.
2089 2020-09-15  Tobias Burnus  <tobias@codesourcery.com>
2091         PR fortran/96668
2092         * target.c (gomp_map_vars_internal): Initialize has_nullptr.
2094 2020-09-15  Tobias Burnus  <tobias@codesourcery.com>
2096         PR fortran/96668
2097         * libgomp.h (struct target_var_desc): Add has_null_ptr_assoc member.
2098         * target.c (gomp_map_vars_existing): Add always_to_flag flag.
2099         (gomp_map_vars_existing): Update call to it.
2100         (gomp_map_fields_existing): Likewise
2101         (gomp_map_vars_internal): Update PSET handling such that if a nullptr is
2102         now allocated or if GOMP_MAP_POINTER is used PSET is updated and pointer
2103         remapped.
2104         (GOMP_target_enter_exit_data): Hanlde GOMP_MAP_ALWAYS_POINTER like
2105         GOMP_MAP_POINTER.
2106         * testsuite/libgomp.fortran/map-alloc-ptr-1.f90: New test.
2107         * testsuite/libgomp.fortran/map-alloc-ptr-2.f90: New test.
2109 2020-09-14  Tom de Vries  <tdevries@suse.de>
2111         * config/nvptx/atomic.c: New file.  Add
2112         __sync_val_compare_and_swap_16.
2113         * testsuite/libgomp.c-c++-common/reduction-16.c: Add -latomic for
2114         target offload_target_nvptx.
2116 2020-09-08  Julian Brown  <julian@codesourcery.com>
2118         * testsuite/libgomp.oacc-c-c++-common/atomic_capture-2.c: Remove
2119         iteration-ordering assumptions.
2121 2020-09-08  Julian Brown  <julian@codesourcery.com>
2123         * testsuite/libgomp.oacc-fortran/collapse-1.f90: Fix race condition.
2124         * testsuite/libgomp.oacc-fortran/collapse-2.f90: Likewise.
2126 2020-08-20  Chung-Lin Tang  <cltang@codesourcery.com>
2128         * plugin/plugin-nvptx.c (nvptx_free):
2129         Change "GOMP_PLUGIN_acc_thread () == NULL" test into check of
2130         CUDA_ERROR_NOT_PERMITTED status for cuMemGetAddressRange. Adjust
2131         comments.
2133 2020-08-20  Tobias Burnus  <tobias@codesourcery.com>
2135         * testsuite/libgomp.fortran/lastprivate-conditional-10.f90: New test.
2137 2020-08-13  Kwok Cheung Yeung  <kcy@codesourcery.com>
2139         * testsuite/libgomp.c-c++-common/reduction-16.c: New.
2141 2020-08-13  Jakub Jelinek  <jakub@redhat.com>
2143         * testsuite/libgomp.c/loop-22.c (main): Add some further tests.
2144         * testsuite/libgomp.c/loop-23.c (main): Likewise.
2145         * testsuite/libgomp.c/loop-24.c: New test.
2147 2020-08-08  Jakub Jelinek  <jakub@redhat.com>
2148             Tobias Burnus  <tobias@codesourcery.com>
2150         PR fortran/93553
2151         * testsuite/libgomp.fortran/pr93553.f90: New test.
2153 2020-08-05  Jakub Jelinek  <jakub@redhat.com>
2155         * testsuite/libgomp.c/loop-22.c: New test.
2156         * testsuite/libgomp.c/loop-23.c: New test.
2158 2020-08-05  Jakub Jelinek  <jakub@redhat.com>
2160         PR middle-end/96459
2161         * testsuite/libgomp.c/teams-3.c: New test.
2162         * testsuite/libgomp.c-c++-common/for-2.h (OMPTEAMS): Define to nothing
2163         if not defined yet.
2164         (N(test)): Use it before all N(f*) calls.
2165         * testsuite/libgomp.c-c++-common/for-14.c (DO_PRAGMA, OMPTEAMS): Define.
2166         (main): Don't call all test_* functions from within
2167         #pragma omp teams reduction(|:err), call them directly.
2169 2020-08-04  Tom de Vries  <tdevries@suse.de>
2171         PR target/96428
2172         * testsuite/libgomp.oacc-fortran/pr96628-part1.f90: New test.
2173         * testsuite/libgomp.oacc-fortran/pr96628-part2.f90: New test.
2175 2020-08-03  Julian Brown  <julian@codesourcery.com>
2176             Thomas Schwinge  <thomas@codesourcery.com>
2178         * testsuite/libgomp.oacc-fortran/attach-descriptor-1.f90: Don't run for
2179         shared-memory devices.  Extend with further checking.
2181 2020-08-03  Martin Jambor  <mjambor@suse.cz>
2183         * plugin/Makefrag.am: Remove configuration of HSA plugin.
2184         * aclocal.m4: Regenerated.
2185         * Makefile.in: Regenerated.
2186         * config.h.in: Regenerated.
2187         * configure: Regenerated.
2188         * plugin/configfrag.ac: Likewise.
2189         * plugin/hsa_ext_finalize.h: Removed.
2190         * plugin/plugin-hsa.c: Likewise.
2191         * testsuite/Makefile.in: Regenerated.
2192         * testsuite/lib/libgomp.exp
2193         (offload_target_to_openacc_device_type): Remove hsa case.
2194         (check_effective_target_hsa_offloading_selected_nocache): Removed
2195         (check_effective_target_hsa_offloading_selected): Likewise.
2196         (libgomp_init): Do not add -Wno-hsa to additional_flags.
2197         * testsuite/libgomp.hsa.c/alloca-1.c: Removed test.
2198         * testsuite/libgomp.hsa.c/bitfield-1.c: Likewise.
2199         * testsuite/libgomp.hsa.c/bits-insns.c: Likewise.
2200         * testsuite/libgomp.hsa.c/builtins-1.c: Likewise.
2201         * testsuite/libgomp.hsa.c/c.exp: Likewise.
2202         * testsuite/libgomp.hsa.c/complex-1.c: Likewise.
2203         * testsuite/libgomp.hsa.c/complex-align-2.c: Likewise.
2204         * testsuite/libgomp.hsa.c/formal-actual-args-1.c: Likewise.
2205         * testsuite/libgomp.hsa.c/function-call-1.c: Likewise.
2206         * testsuite/libgomp.hsa.c/get-level-1.c: Likewise.
2207         * testsuite/libgomp.hsa.c/gridify-1.c: Likewise.
2208         * testsuite/libgomp.hsa.c/gridify-2.c: Likewise.
2209         * testsuite/libgomp.hsa.c/gridify-3.c: Likewise.
2210         * testsuite/libgomp.hsa.c/gridify-4.c: Likewise.
2211         * testsuite/libgomp.hsa.c/memory-operations-1.c: Likewise.
2212         * testsuite/libgomp.hsa.c/pr69568.c: Likewise.
2213         * testsuite/libgomp.hsa.c/pr82416.c: Likewise.
2214         * testsuite/libgomp.hsa.c/rotate-1.c: Likewise.
2215         * testsuite/libgomp.hsa.c/staticvar.c: Likewise.
2216         * testsuite/libgomp.hsa.c/switch-1.c: Likewise.
2217         * testsuite/libgomp.hsa.c/switch-branch-1.c: Likewise.
2218         * testsuite/libgomp.hsa.c/switch-sbr-2.c: Likewise.
2219         * testsuite/libgomp.hsa.c/tiling-1.c: Likewise.
2220         * testsuite/libgomp.hsa.c/tiling-2.c: Likewise.
2222 2020-07-27  Julian Brown  <julian@codesourcery.com>
2223             Thomas Schwinge  <thomas@codesourcery.com>
2225         * libgomp.h (struct target_var_desc): Rename do_detach field to
2226         is_attach.
2227         * oacc-mem.c (goacc_exit_datum_1): Add assert.  Don't set finalize for
2228         GOMP_MAP_FORCE_DETACH. Update checking to use is_attach field.
2229         (goacc_enter_data_internal): Don't affect reference counts
2230         for attach mappings.
2231         (goacc_exit_data_internal): Don't affect reference counts for detach
2232         mappings.
2233         * target.c (gomp_map_vars_existing): Don't affect reference counts for
2234         attach mappings.
2235         (gomp_map_vars_internal): Set renamed is_attach flag unconditionally to
2236         mark attach mappings.
2237         (gomp_unmap_vars_internal): Use is_attach flag to prevent affecting
2238         reference count for attach mappings.
2239         * testsuite/libgomp.oacc-c-c++-common/mdc-refcount-1.c: New test.
2240         * testsuite/libgomp.oacc-c-c++-common/mdc-refcount-2.c: New test.
2241         * testsuite/libgomp.oacc-c-c++-common/mdc-refcount-2.c: New test.
2242         * testsuite/libgomp.oacc-fortran/deep-copy-6-no_finalize.F90: Mark
2243         test as shouldfail.
2244         * testsuite/libgomp.oacc-fortran/deep-copy-6.f90: Adjust to fail
2245         gracefully in no-finalize mode.
2246         * testsuite/libgomp.oacc-c-c++-common/mdc-refcount-3.c: New file.
2248 2020-07-24  Thomas Schwinge  <thomas@codesourcery.com>
2250         * testsuite/libgomp.oacc-c++/c++.exp: Unset 'offload_target' after
2251         use.
2252         * testsuite/libgomp.oacc-c/c.exp: Likewise.
2253         * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
2255 2020-07-23  Julian Brown  <julian@codesourcery.com>
2256             Thomas Schwinge  <thomas@codesourcery.com>
2258         * target.c (gomp_unmap_vars_internal): Remove unnecessary forcing of
2259         finalization for detach operation.
2260         * testsuite/libgomp.oacc-c-c++-common/structured-detach-underflow.c:
2261         New test.
2263 2020-07-23  Tobias Burnus  <tobias@codesourcery.com>
2265         * configure.ac: Add OMP_DEPEND_KIND and OMP_INT128_SIZE.
2266         * libgomp_f.h.in (omp_check_defines): Check whether
2267         sizeof of determined Fortran kind and C typedef match.
2268         * omp_lib.f90.in: Add omp_depened_kind.
2269         * omp_lib.h.in: Likewise; fix omp_alloctrait_key_kind.
2270         * configure: Regenerate.
2271         * Makefile.in: Regenerate.
2272         * testsuite/Makefile.in: Regenerate.
2274 2020-07-22  Tobias Burnus  <tobias@codesourcery.com>
2276         * testsuite/libgomp.c-c++-common/critical-hint-1.c: New; moved from
2277         gcc/testsuite/c-c++-common/gomp/.
2278         * testsuite/libgomp.c-c++-common/critical-hint-2.c: Likewise.
2279         * testsuite/libgomp.fortran/critical-hint-1.f90: New; moved
2280         from gcc/testsuite/gfortran.dg/gomp/.
2281         * testsuite/libgomp.fortran/critical-hint-2.f90: Likewise.
2283 2020-07-22  Tobias Burnus  <tobias@codesourcery.com>
2285         * omp_lib.f90.in: Add omp_sync_hint_* and omp_sync_hint_kind.
2286         * omp_lib.h.in: Likewise.
2288 2020-07-18  H.J. Lu  <hjl.tools@gmail.com>
2290         PR target/95620
2291         * testsuite/libgomp.c/pr95620.c: New test.
2293 2020-07-16  Julian Brown  <julian@codesourcery.com>
2294             Thomas Schwinge  <thomas@codesourcery.com>
2296         * testsuite/libgomp.oacc-fortran/attach-descriptor-1.f90: New test.
2297         * testsuite/libgomp.oacc-fortran/attach-descriptor-2.f90: New test.
2299 2020-07-15  Tobias Burnus  <tobias@codesourcery.com>
2301         * testsuite/libgomp.fortran/alloc-1.F90: Use c_size_t to
2302         avoid conversion on 32bit systems from 32bit to 64bit due
2303         to -fdefault-integer-8.
2305 2020-07-15  Tobias Burnus  <tobias@codesourcery.com>
2307         * testsuite/libgomp.fortran/struct-elem-map-1.f90: Remove unused
2308         variables; add character(kind=4) tests; update TODO comment.
2310 2020-07-15  Tobias Burnus  <tobias@codesourcery.com>
2312         * allocator.c: Add ialias for omp_init_allocator and
2313         omp_destroy_allocator.
2314         * configure.ac: Set INTPTR_T_KIND.
2315         * configure: Regenerate.
2316         * Makefile.in: Regenerate.
2317         * testsuite/Makefile.in: Regenerate.
2318         * fortran.c (omp_init_allocator_, omp_destroy_allocator_,
2319         omp_set_default_allocator_, omp_get_default_allocator_): New
2320         functions and ialias_redirect.
2321         * icv.c: Add ialias for omp_set_default_allocator and
2322         omp_get_default_allocator.
2323         * libgomp.map (OMP_5.0.1): Add omp_init_allocator_,
2324         omp_destroy_allocator_, omp_set_default_allocator_ and
2325         omp_get_default_allocator_.
2326         * omp_lib.f90.in: Add allocator traits parameters, declare
2327         allocator routines and add related kind parameters.
2328         * omp_lib.h.in: Likewise.
2329         * testsuite/libgomp.c-c++-common/alloc-2.c: Fix sizeof.
2330         * testsuite/libgomp.fortran/alloc-1.F90: New test.
2331         * testsuite/libgomp.fortran/alloc-2.F90: New test.
2332         * testsuite/libgomp.fortran/alloc-3.F: New test.
2333         * testsuite/libgomp.fortran/alloc-4.f90: New test.
2334         * testsuite/libgomp.fortran/alloc-5.f90: New test.
2336 2020-07-14  Tom de Vries  <tom@codesourcery.com>
2337             Cesar Philippidis  <cesar@codesourcery.com>
2338             Thomas Schwinge  <thomas@codesourcery.com>
2339             Kwok Cheung Yeung  <kcy@codesourcery.com>
2341         * oacc-init.c (acc_init_state_lock, acc_init_state, acc_init_thread):
2342         New variable.
2343         (acc_init_1): Set acc_init_thread to pthread_self ().  Set
2344         acc_init_state to initializing at the start, and to initialized at the
2345         end.
2346         (self_initializing_p): New function.
2347         (acc_get_device_type): Return acc_device_none if called by thread that
2348         is currently executing acc_init_1.
2349         * libgomp.texi (acc_get_device_type): Update documentation.
2350         (Implementation Status and Implementation-Defined Behavior): Likewise.
2351         * testsuite/libgomp.oacc-c-c++-common/acc_prof-init-2.c: New.
2353 2020-07-14  David Edelsohn  <dje.gcc@gmail.com>
2355         * config/t-aix: Set BITS from compiler cpp macro.
2357 2020-07-14  Tobias Burnus  <tobias@codesourcery.com>
2359         * testsuite/libgomp.fortran/struct-elem-map-1.f90: New test.
2361 2020-07-14  Tobias Burnus  <tobias@codesourcery.com>
2363         PR fortran/67311
2364         * testsuite/libgomp.fortran/target-map-1.f90: New test.
2366 2020-07-14  Jakub Jelinek  <jakub@redhat.com>
2368         * testsuite/libgomp.c/loop-21.c: New test.
2370 2020-07-13  Julian Brown  <julian@codesourcery.com>
2371             Thomas Schwinge  <thomas@codesourcery.com>
2373         * testsuite/libgomp.oacc-fortran/dynamic-pointer-1.f90: New test.
2375 2020-07-10  Julian Brown  <julian@codesourcery.com>
2376             Thomas Schwinge  <thomas@codesourcery.com>
2378         * libgomp.h (struct splay_tree_key_s): Change virtual_refcount to
2379         dynamic_refcount.
2380         (struct gomp_device_descr): Remove GOMP_MAP_VARS_OPENACC_ENTER_DATA.
2381         * oacc-mem.c (acc_map_data): Substitute virtual_refcount for
2382         dynamic_refcount.
2383         (acc_unmap_data): Update comment.
2384         (goacc_map_var_existing, goacc_enter_datum): Adjust for
2385         dynamic_refcount semantics.
2386         (goacc_exit_datum_1, goacc_exit_datum): Re-add some error checking.
2387         Adjust for dynamic_refcount semantics.
2388         (goacc_enter_data_internal): Implement "present" case of dynamic
2389         memory-map handling here.  Update "non-present" case for
2390         dynamic_refcount semantics.
2391         (goacc_exit_data_internal): Use goacc_exit_datum_1.
2392         * target.c (gomp_map_vars_internal): Remove
2393         GOMP_MAP_VARS_OPENACC_ENTER_DATA handling.  Update for dynamic_refcount
2394         handling.
2395         (gomp_unmap_vars_internal): Remove virtual_refcount handling.
2396         (gomp_load_image_to_device): Substitute dynamic_refcount for
2397         virtual_refcount.
2398         * testsuite/libgomp.oacc-c-c++-common/pr92843-1.c: Remove XFAILs.
2399         * testsuite/libgomp.oacc-c-c++-common/refcounting-1.c: New test.
2400         * testsuite/libgomp.oacc-c-c++-common/refcounting-2.c: New test.
2401         * testsuite/libgomp.oacc-c-c++-common/struct-3-1-1.c: New test.
2402         * testsuite/libgomp.oacc-fortran/deep-copy-6.f90: Remove XFAILs and
2403         trace output.
2404         * testsuite/libgomp.oacc-fortran/deep-copy-6-no_finalize.F90: Remove
2405         trace output.
2406         * testsuite/libgomp.oacc-fortran/dynamic-incr-structural-1.f90: New
2407         test.
2408         * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-4.c:
2409         Remove stale comment.
2410         * testsuite/libgomp.oacc-fortran/mdc-refcount-1-1-1.f90: Remove XFAILs.
2411         * testsuite/libgomp.oacc-fortran/mdc-refcount-1-1-2.F90: Likewise.
2412         * testsuite/libgomp.oacc-fortran/mdc-refcount-1-2-1.f90: Likewise.
2413         * testsuite/libgomp.oacc-fortran/mdc-refcount-1-2-2.f90: Likewise.
2414         * testsuite/libgomp.oacc-fortran/mdc-refcount-1-3-1.f90: Likewise.
2415         * testsuite/libgomp.oacc-fortran/mdc-refcount-1-4-1.f90: Adjust XFAIL.
2417 2020-07-10  Julian Brown  <julian@codesourcery.com>
2418             Thomas Schwinge  <thomas@codesourcery.com>
2420         * oacc-mem.c (goacc_map_var_existing): New function.
2421         (goacc_enter_datum): Use above function.
2422         (goacc_exit_datum_1): New function.
2423         (goacc_exit_datum): Use above function.
2425 2020-07-09  Julian Brown  <julian@codesourcery.com>
2426             Thomas Schwinge  <thomas@codesourcery.com>
2428         PR middle-end/95270
2429         * testsuite/libgomp.oacc-c-c++-common/pr95270-1.c: New test.
2430         * testsuite/libgomp.oacc-c-c++-common/pr95270-2.c: New test.
2432 2020-07-09  Julian Brown  <julian@codesourcery.com>
2434         * oacc-mem.c (find_group_last): Group data-movement clauses
2435         (GOMP_MAP_TO_PSET, GOMP_MAP_TO, etc.) together with a subsequent
2436         GOMP_MAP_ATTACH.  Allow standalone GOMP_MAP_ATTACH also.
2438 2020-07-09  Jakub Jelinek  <jakub@redhat.com>
2440         * testsuite/libgomp.c/loop-19.c: New test.
2441         * testsuite/libgomp.c/loop-20.c: New test.
2443 2020-07-09  Jakub Jelinek  <jakub@redhat.com>
2445         * omp.h.in (omp_alloctrait_value_t): Change omp_atv_default from
2446         2 to -1.  Add omp_atv_serialized and define omp_atv_sequential using
2447         it.  Remove __omp_alloctrait_value_max__.
2448         * allocator.c (omp_init_allocator): Handle omp_atv_default for
2449         omp_atk_alignment and omp_atk_pool_size.
2451 2020-07-03  Thomas Schwinge  <thomas@codesourcery.com>
2453         * oacc-mem.c (goacc_exit_data_internal): Revert always-copyfrom
2454         behavior for 'GOMP_MAP_FORCE_FROM'.
2455         * testsuite/libgomp.oacc-c-c++-common/pr92843-1.c: Adjust XFAIL.
2457 2020-07-03  Thomas Schwinge  <thomas@codesourcery.com>
2459         * oacc-mem.c (goacc_exit_data_internal): Remove
2460         'GOMP_MAP_ALWAYS_FROM' handling.
2462 2020-06-30  Thomas Schwinge  <thomas@codesourcery.com>
2464         * testsuite/libgomp.oacc-c-c++-common/pr85381-2.c: Replace fragile
2465         'scan-assembler' with 'scan-offload-rtl'.
2466         * testsuite/libgomp.oacc-c-c++-common/pr85381-3.c: Likewise.
2467         * testsuite/libgomp.oacc-c-c++-common/pr85381-4.c: Likewise.
2468         * testsuite/libgomp.oacc-c-c++-common/pr85381-5.c: Likewise.
2469         * testsuite/libgomp.oacc-c-c++-common/pr85381.c: Likewise.
2471 2020-06-30  Thomas Schwinge  <thomas@codesourcery.com>
2473         * target.c (gomp_map_vars_existing): Assert 'kind !=
2474         GOMP_MAP_ATTACH'.
2475         (gomp_map_vars_internal): Clean up.
2477 2020-06-27  Jakub Jelinek  <jakub@redhat.com>
2479         * testsuite/libgomp.c/loop-17.c: New test.
2480         * testsuite/libgomp.c/loop-18.c: New test.
2482 2020-06-26  Marek Polacek  <polacek@redhat.com>
2484         * testsuite/libgomp.c++/atomic-3.C: Use -std=gnu++14.
2486 2020-06-23  Alexandre Oliva  <oliva@adacore.com>
2488         * testsuite/lib/libgomp.exp: Load gcc lib scanoffload.exp.
2489         * testsuite/lib/libgomp-dg.exp: Drop now-obsolete -save-temps.
2491 2020-06-22  David Edelsohn  <dje.gcc@gmail.com>
2493         * Makefile.am: Use -include.
2494         * Makefile.in: Regenerate.
2496 2020-06-21  David Edelsohn  <dje.gcc@gmail.com>
2498         * Makefile.am (tmake_file): Build and install AIX-style FAT libraries.
2499         * Makefile.in: Regenerate
2500         * configure.ac (tmake_file): Substitute.
2501         * configure: Regenerate.
2502         * configure.tgt (powerpc-ibm-aix*): Define tmake_file.
2503         * config/t-aix: New file.
2505 2020-06-17  Thomas Schwinge  <thomas@codesourcery.com>
2507         PR lto/94848
2508         * testsuite/libgomp.fortran/use_device_ptr-optional-3.f90: Add
2509         'dg-do run'.
2511 2020-06-17  Andrew Stubbs  <ams@codesourcery.com>
2513         * plugin/plugin-gcn.c (init_environment_variables): Use ".so.1"
2514         variant for HSA_RUNTIME_LIB name.
2515         (find_executable_symbol_1): Delete.
2516         (find_executable_symbol): Delete.
2517         (init_kernel_properties): Add ".kd" suffix to symbol names.
2518         (find_load_offset): Delete.
2519         (create_and_finalize_hsa_program): Remove relocation handling.
2521 2020-06-16  Tobias Burnus  <tobias@codesourcery.com>
2523         * testsuite/libgomp.oacc-fortran/routine-10.f90: New test.
2525 2020-06-08  Tobias Burnus  <tobias@codesourcery.com>
2527         PR lto/94848
2528         PR middle-end/95551
2529         * testsuite/libgomp.fortran/target-var.f90: New test.
2531 2020-06-05  Thomas Schwinge  <thomas@codesourcery.com>
2532             Julian Brown  <julian@codesourcery.com>
2534         * oacc-mem.c (goacc_exit_data_internal) <GOMP_MAP_STRUCT>: Explain
2535         special handling.
2537 2020-06-05  Thomas Schwinge  <thomas@codesourcery.com>
2538             Julian Brown  <julian@codesourcery.com>
2540         * oacc-mem.c (goacc_exit_data_internal) <GOMP_MAP_STRUCT>:
2541         Simplify.
2543 2020-06-05  Julian Brown  <julian@codesourcery.com>
2545         * testsuite/libgomp.oacc-c-c++-common/struct-copyout-1.c: New test.
2546         * testsuite/libgomp.oacc-c-c++-common/struct-copyout-2.c: New test.
2548 2020-06-04  Thomas Schwinge  <thomas@codesourcery.com>
2550         * oacc-mem.c (goacc_exit_data_internal) <GOMP_MAP_STRUCT>:
2551         Evaluate 'copyfrom' individually for each entry.
2552         * testsuite/libgomp.oacc-c-c++-common/struct-1.c: Update.
2554 2020-06-04  Thomas Schwinge  <thomas@codesourcery.com>
2556         * oacc-mem.c (goacc_exit_data_internal) <GOMP_MAP_STRUCT>:
2557         Evaluate 'finalize' individually for each entry.
2558         * testsuite/libgomp.oacc-c-c++-common/struct-1.c: New file.
2559         * testsuite/libgomp.oacc-c-c++-common/struct-refcount-1.c: Remove
2560         file.
2562 2020-06-04  Thomas Schwinge  <thomas@codesourcery.com>
2564         * testsuite/libgomp.oacc-c-c++-common/deep-copy-7.c: Fix 'sizeof'
2565         usage.
2566         * testsuite/libgomp.oacc-c-c++-common/deep-copy-8.c: Likewise.
2568 2020-06-04  Thomas Schwinge  <thomas@codesourcery.com>
2569             Julian Brown  <julian@codesourcery.com>
2571         * oacc-mem.c (goacc_exit_datum): Repair 'is_tgt_unmapped'
2572         checking.
2573         (acc_unmap_data, goacc_exit_data_internal): Restore
2574         'is_tgt_unmapped' checking.
2575         * testsuite/libgomp.oacc-c-c++-common/struct-refcount-1.c: New
2576         file.
2577         * testsuite/libgomp.oacc-fortran/deep-copy-6.f90: Adjust.
2578         * testsuite/libgomp.oacc-fortran/mdc-refcount-1-1-1.f90: Likewise.
2579         * testsuite/libgomp.oacc-fortran/mdc-refcount-1-2-1.f90: Likewise.
2580         * testsuite/libgomp.oacc-fortran/mdc-refcount-1-2-2.f90: Likewise.
2581         * testsuite/libgomp.oacc-fortran/mdc-refcount-1-3-1.f90: Likewise.
2582         * testsuite/libgomp.oacc-fortran/mdc-refcount-1-4-1.f90: Likewise.
2584 2020-06-04  Thomas Schwinge  <thomas@codesourcery.com>
2585             Julian Brown  <julian@codesourcery.com>
2587         * oacc-mem.c (acc_unmap_data): Don't open-code 'gomp_remove_var'.
2589 2020-06-04  Thomas Schwinge  <thomas@codesourcery.com>
2591         PR libgomp/92854
2592         * oacc-mem.c (acc_unmap_data): Remove 'tgt' reference counting.
2594 2020-06-04  Thomas Schwinge  <thomas@codesourcery.com>
2596         PR libgomp/92854
2597         * testsuite/libgomp.oacc-c-c++-common/pr92854-1.c: Extend some
2598         more.
2600 2020-06-04  Thomas Schwinge  <thomas@codesourcery.com>
2601             Julian Brown  <julian@codesourcery.com>
2603         * oacc-mem.c (goacc_enter_datum): Use 'tgt' returned from
2604         'gomp_map_vars'.
2605          (acc_map_data): Clean up accordingly.
2607 2020-06-04  Thomas Schwinge  <thomas@codesourcery.com>
2609         * testsuite/libgomp.oacc-fortran/deep-copy-6.f90: XFAIL behavior
2610         of over-eager 'finalize' clause.
2611         * testsuite/libgomp.oacc-fortran/deep-copy-6-no_finalize.F90: New
2612         file.
2613         * testsuite/libgomp.oacc-fortran/mdc-refcount-1-1-1.f90: Likewise.
2614         * testsuite/libgomp.oacc-fortran/mdc-refcount-1-1-2.F90: Likewise.
2615         * testsuite/libgomp.oacc-fortran/mdc-refcount-1-2-1.f90: Likewise.
2616         * testsuite/libgomp.oacc-fortran/mdc-refcount-1-2-2.f90: Likewise.
2617         * testsuite/libgomp.oacc-fortran/mdc-refcount-1-3-1.f90: Likewise.
2618         * testsuite/libgomp.oacc-fortran/mdc-refcount-1-3-2.f90: Likewise.
2619         * testsuite/libgomp.oacc-fortran/mdc-refcount-1-4-1.f90: Likewise.
2620         * testsuite/libgomp.oacc-fortran/mdc-refcount-1-4-2.f90: Likewise.
2622 2020-06-04  Thomas Schwinge  <thomas@codesourcery.com>
2624         * oacc-mem.c (goacc_exit_data_internal): Unlock on error path.
2626 2020-06-04  Julian Brown  <julian@codesourcery.com>
2628         * oacc-mem.c (acc_attach_async): Add missing gomp_mutex_unlock on
2629         error path.
2630         (goacc_detach_internal): Likewise.
2632 2020-06-04  Thomas Schwinge  <thomas@codesourcery.com>
2634         * testsuite/libgomp.oacc-fortran/error_stop-1.f: Initialize before
2635         the checkpoint.
2636         * testsuite/libgomp.oacc-fortran/error_stop-2.f: Likewise.
2637         * testsuite/libgomp.oacc-fortran/error_stop-3.f: Likewise.
2638         * testsuite/libgomp.oacc-fortran/stop-1.f: Likewise.
2639         * testsuite/libgomp.oacc-fortran/stop-2.f: Likewise.
2640         * testsuite/libgomp.oacc-fortran/stop-3.f: Likewise.
2642 2020-06-02  Jakub Jelinek  <jakub@redhat.com>
2644         * allocator.c (omp_free): Fix up build if HAVE_SYNC_BUILTINS is not
2645         defined.
2647 2020-05-30  Jakub Jelinek  <jakub@redhat.com>
2649         * testsuite/libgomp.c-c++-common/alloc-4.c: New test.
2651 2020-05-30  Jakub Jelinek  <jakub@redhat.com>
2653         * allocator.c (omp_alloc): For size == 0, return NULL early.
2655 2020-05-29  H.J. Lu  <hjl.tools@gmail.com>
2657         PR bootstrap/95413
2658         * configure: Regenerated.
2660 2020-05-23  Thomas Koenig  <tkoenig@gcc.gnu.org>
2662         PR libfortran/95191
2663         * testsuite/libgomp.fortran/async_io_9.f90: New test.
2665 2020-05-19  Jakub Jelinek  <jakub@redhat.com>
2667         * omp.h.in (omp_uintptr_t): New typedef.
2668         (__GOMP_UINTPTR_T_ENUM): Define.
2669         (omp_memspace_handle_t, omp_allocator_handle_t, omp_alloctrait_key_t,
2670         omp_alloctrait_value_t, omp_alloctrait_t): New typedefs.
2671         (__GOMP_DEFAULT_NULL_ALLOCATOR): Define.
2672         (omp_init_allocator, omp_destroy_allocator, omp_set_default_allocator,
2673         omp_get_default_allocator, omp_alloc, omp_free): Declare.
2674         * libgomp.h (struct gomp_team_state): Add def_allocator field.
2675         (gomp_def_allocator): Declare.
2676         * libgomp.map (OMP_5.0.1): Export omp_set_default_allocator,
2677         omp_get_default_allocator, omp_init_allocator, omp_destroy_allocator,
2678         omp_alloc and omp_free.
2679         * team.c (gomp_team_start): Copy over ts.def_allocator.
2680         * env.c (gomp_def_allocator): New variable.
2681         (parse_wait_policy): Adjust function comment.
2682         (parse_allocator): New function.
2683         (handle_omp_display_env): Print OMP_ALLOCATOR.
2684         (initialize_env): Call parse_allocator.
2685         * Makefile.am (libgomp_la_SOURCES): Add allocator.c.
2686         * allocator.c: New file.
2687         * icv.c (omp_set_default_allocator, omp_get_default_allocator): New
2688         functions.
2689         * testsuite/libgomp.c-c++-common/alloc-1.c: New test.
2690         * testsuite/libgomp.c-c++-common/alloc-2.c: New test.
2691         * testsuite/libgomp.c-c++-common/alloc-3.c: New test.
2692         * Makefile.in: Regenerated.
2694 2020-05-15  H.J. Lu  <hongjiu.lu@intel.com>
2696         PR bootstrap/95147
2697         * configure: Regenerated.
2699 2020-05-14  Thomas Koenig  <tkoenig@gcc.gnu.org>
2701         PR libfortran/95119
2702         * testsuite/libgomp.fortran/close_errors_1.f90: New test.
2704 2020-05-14  H.J. Lu  <hongjiu.lu@intel.com>
2706         * configure: Regenerated.
2708 2020-05-14  Jakub Jelinek  <jakub@redhat.com>
2710         * testsuite/libgomp.c-c++-common/target-40.c: New test.
2712 2020-05-13  Tobias Burnus  <tobias@codesourcery.com>
2714         PR fortran/94690
2715         * testsuite/libgomp.fortran/pr66199-3.f90: New.
2716         * testsuite/libgomp.fortran/pr66199-4.f90: New.
2717         * testsuite/libgomp.fortran/pr66199-5.f90: New.
2718         * testsuite/libgomp.fortran/pr66199-6.f90: New.
2719         * testsuite/libgomp.fortran/pr66199-7.f90: New.
2720         * testsuite/libgomp.fortran/pr66199-8.f90: New.
2721         * testsuite/libgomp.fortran/pr66199-9.f90: New.
2723 2020-05-12  Jakub Jelinek  <jakub@redhat.com>
2725         * testsuite/libgomp.c/target-39.c: New test.
2727 2020-04-29  Thomas Schwinge  <thomas@codesourcery.com>
2729         * config/accel/openacc.f90 (acc_device_current): Set to '-1'.
2730         * openacc.f90 (acc_device_current): Likewise.
2731         * openacc.h (acc_device_current): Likewise.
2732         * openacc_lib.h (acc_device_current): Likewise.
2734         PR target/94282
2735         * testsuite/libgomp.c-c++-common/function-not-offloaded.c: Remove
2736         'dg-allow-blank-lines-in-output'.
2738         * oacc-init.c (get_openacc_name): Handle 'gcn'.
2739         * testsuite/lib/libgomp.exp
2740         (offload_target_to_openacc_device_type) [amdgcn*]: Return
2741         'radeon'.  Adjust all users.
2742         (check_effective_target_openacc_amdgcn_accel_present): Rename
2743         to...
2744         (check_effective_target_openacc_radeon_accel_present): ... this.
2745         Adjust all users.
2746         (check_effective_target_openacc_amdgcn_accel_selected): Rename to...
2747         (check_effective_target_openacc_radeon_accel_selected): ... this.
2748         Adjust all users.
2750         * testsuite/libgomp.fortran/use_device_ptr-optional-2.f90: Add
2751         'dg-do run'.
2753 2020-04-23  Andrew Stubbs  <ams@codesourcery.com>
2755         PR other/94629
2757         * plugin/plugin-gcn.c (init_hsa_context): Check return value from
2758         hsa_iterate_agents.
2759         (GOMP_OFFLOAD_init_device): Check return values from both calls to
2760         hsa_agent_iterate_regions.
2762 2020-04-20  Thomas Schwinge  <thomas@codesourcery.com>
2764         PR middle-end/94635
2765         * testsuite/libgomp.fortran/target-enter-data-2.F90: Add 'dg-do
2766         run'.
2768 2020-04-20  Tobias Burnus  <tobias@codesourcery.com>
2770         PR middle-end/94120
2771         * testsuite/libgomp.oacc-c++/declare-pr94120.C: Fix 'declare copy(out)'
2772         test case.
2774 2020-04-17  Tobias Burnus  <tobias@codesourcery.com>
2776         PR middle-end/94635
2777         * testsuite/libgomp.fortran/target-enter-data-2.F90: New.
2779 2020-04-13  Thomas Schwinge  <thomas@codesourcery.com>
2781         PR libgomp/92843
2782         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-1-lib.c:
2783         Rename to...
2784         * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-1-lib.c:
2785         ... this.
2786         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-1.c:
2787         Rename to...
2788         * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-1.c:
2789         ... this.
2790         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-2-lib.c:
2791         Rename to...
2792         * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-2-lib.c:
2793         ... this.
2794         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-2.c:
2795         Rename to...
2796         * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-2.c:
2797         ... this.
2798         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-3-lib.c:
2799         Rename to...
2800         * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-3-lib.c:
2801         ... this.
2802         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-3.c:
2803         Rename to...
2804         * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-3.c:
2805         ... this.
2806         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-4-lib.c:
2807         Rename to...
2808         * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-4-lib.c:
2809         ... this.
2810         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-4.c:
2811         Rename to...
2812         * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-4.c:
2813         ... this.
2814         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-5-lib.c:
2815         Rename to...
2816         * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-5-lib.c:
2817         ... this.
2818         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-5.c:
2819         Rename to...
2820         * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-5.c:
2821         ... this.
2822         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-6-lib.c:
2823         Rename to...
2824         * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-6-lib.c:
2825         ... this.
2826         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-6.c:
2827         Rename to...
2828         * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-6.c:
2829         ... this.
2830         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-7-lib.c:
2831         Rename to...
2832         * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-7-lib.c:
2833         ... this.
2834         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-7.c:
2835         Rename to...
2836         * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-7.c:
2837         ... this.
2838         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-8-lib.c:
2839         Rename to...
2840         * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-8-lib.c:
2841         ... this.
2842         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-8.c::
2843         Rename to...
2844         * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-8.c:
2845         ... this.
2847 2020-04-10  Julian Brown  <julian@codesourcery.com>
2848             Thomas Schwinge  <thomas@codesourcery.com>
2850         PR libgomp/92843
2851         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-1-lib.c:
2852         New file.
2853         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-1.c:
2854         Likewise.
2855         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-2-lib.c:
2856         Likewise.
2857         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-2.c:
2858         Likewise.
2859         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-3-lib.c:
2860         Likewise.
2861         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-3.c:
2862         Likewise.
2863         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-4-lib.c:
2864         Likewise.
2865         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-4.c:
2866         Likewise.
2867         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-5-lib.c:
2868         Likewise.
2869         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-5.c:
2870         Likewise.
2871         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-6-lib.c:
2872         Likewise.
2873         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-6.c:
2874         Likewise.
2875         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-7-lib.c:
2876         Likewise.
2877         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-7.c:
2878         Likewise.
2879         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-8-lib.c:
2880         Likewise.
2881         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-8.c:
2882         Likewise.
2884 2020-04-10  Thomas Schwinge  <thomas@codesourcery.com>
2886         * testsuite/libgomp.fortran/target-enter-data-1.f90: Add 'dg-do
2887         run'.
2889 2020-04-08  Tobias Burnus  <tobias@codesourcery.com>
2891         PR middle-end/94120
2892         * libgomp.oacc-c++/declare-pr94120.C: New.
2894 2020-04-06  Maciej W. Rozycki  <macro@wdc.com>
2896         * configure.ac: Add testsuite/libgomp-site-extra.exp to output
2897         files.
2898         * configure: Regenerate.
2899         * testsuite/libgomp-site-extra.exp.in: New file.
2900         * testsuite/libgomp-test-support.exp.in (GCC_UNDER_TEST): Remove
2901         variable.
2902         * testsuite/Makefile.am (EXTRA_DEJAGNU_SITE_CONFIG): New
2903         variable.
2904         * testsuite/Makefile.in: Regenerate.
2906 2020-04-03  Thomas Schwinge  <thomas@codesourcery.com>
2908         PR tree-optimization/89713
2909         PR c/94392
2910         * testsuite/libgomp.oacc-c-c++-common/pr85381-2.c: Again expect
2911         'bar.sync'.
2912         * testsuite/libgomp.oacc-c-c++-common/pr85381-4.c: Likewise.
2914 2020-03-31  Tobias Burnus  <tobias@codesourcery.com>
2916         * target.c (GOMP_target_enter_exit_data): Handle PSET/MAP_POINTER.
2917         * testsuite/libgomp.fortran/target-enter-data-1.f90: New.
2919 2020-03-24  Tobias Burnus  <tobias@codesourcery.com>
2921         PR libgomp/81689
2922         * testsuite/libgomp.c/target-link-1.c: Remove xfail.
2924 2020-03-20  Tobias Burnus  <tobias@codesourcery.com>
2926         PR libgomp/94251
2927         * target.c (gomp_load_image_to_device): Fix link
2928         variable handling.
2930 2020-03-19  Jakub Jelinek  <jakub@redhat.com>
2932         PR c++/93931
2933         * testsuite/libgomp.c++/pr93931.C: New test.
2935 2020-03-19  Tobias Burnus  <tobias@codesourcery.com>
2937         * testsuite/libgomp.c-c++-common/function-not-offloaded.c: Add
2938         dg-allow-blank-lines-in-output.
2940 2020-03-18  Julian Brown <julian@codesourcery.com>
2941             Tobias Burnus  <tobias@codesourcery.com>
2943         * testsuite/libgomp.oacc-fortran/atomic_capture-1.f90: Really make
2944         it work concurrently.
2946 2020-03-18  Tobias Burnus  <tobias@codesourcery.com>
2948         * testsuite/libgomp.oacc-c++/firstprivate-mappings-1.C: Add
2949         #define DO_LONG_DOUBLE; set to 1, except for nvidia + gcn.
2950         * libgomp.oacc-c-c++-common/firstprivate-mappings-1.c: Likewise.
2952 2020-03-14  Jakub Jelinek  <jakub@redhat.com>
2954         PR middle-end/93566
2955         * testsuite/libgomp.c/pr93566.c: New test.
2957 2020-02-21  Frederik Harwath  <frederik@codesourcery.com>
2959         * testsuite/libgomp.oacc-fortran/acc_get_property.f90: Adapt to
2960         changes from 2020-02-19, i.e. use integer(c_size_t) instead of
2961         integer(acc_device_property) for the type of the return value of
2962         acc_get_property.
2964 2020-02-19  Tobias Burnus  <tobias@codesourcery.com>
2966         * .gitattributes: New; whitespace handling for Fortran's openacc_lib.h.
2967         * config/accel/openacc.f90 (openacc_kinds): Add acc_device_current.
2968         (openacc_internal, acc_on_device_h): Fix argument name; minor cleanup.
2969         * libgomp.texi (Enabling OpenACC): No longer mark as experimental.
2970         (acc_set_device_num): Fix Fortran argument name, use same name for C.
2971         (acc_get_property): Update Fortran interface to post-OpenACC 3.0
2972         corrections; add note about the previous interface and named constant.
2973         (OpenACC library and environment variables): Fix two typos.
2974         * openacc.f90: Use for all procedures the argument names from the spec
2975         as for â€¦_h they are user visible.
2976         (openacc_kinds): Rename acc_device_property to
2977         acc_device_property_kinds and change value to int32 ; and update users.
2978         Re-add acc_device_property for for backward compatibility.
2979         (acc_get_property_string_h): Clean up as acc_device_property_kind
2980         changed.
2981         (acc_get_property_h): Likewise and return c_size_t instead of
2982         acc_device_property.
2983         (openacc): Also export acc_device_property_kinds.
2984         (acc_async_test_h, acc_async_test_all_h, acc_on_device_h,
2985         acc_is_present_32_h, acc_is_present_64_h): Simplify logical-return-value
2986         handling; check against /= 0 instead of == 1 to match C.
2987         * openacc_lib.h: Use for all procedures the argument names from the spec
2988         as for â€¦_h they are user visible. Place !GCC$ into the first column to
2989         be active also for fixed-form souce form.
2990         (acc_device_current, acc_device_property_kind, acc_device_property,
2991         acc_property_memory, acc_property_free_memory, acc_property_name,
2992         acc_property_vendor, acc_property_driver): New named constants.
2993         (acc_get_property, acc_get_property_string): New generic interface.
2995 2020-02-13  Frederik Harwath  <frederik@codesourcery.com>
2997         PR libgomp/93481
2998         * plugin/plugin-nvptx.c: Remove GOMP_OFFLOAD_async_run stub.
2999         * target.c (gomp_load_plugin_for_device): Make "async_run" loading
3000         optional.
3001         (gomp_target_task_fn): Assert "devicep->async_run_func".
3002         (clear_unsupported_flags): New function to remove unsupported flags
3003         (right now only GOMP_TARGET_FLAG_NOWAIT) that can be be ignored.
3004         (GOMP_target_ext): Apply clear_unsupported_flags to flags.
3005         * testsuite/libgomp.c/target-33.c:
3006         Remove xfail for offload_target_nvptx.
3007         * testsuite/libgomp.c/target-34.c: Likewise.
3009 2020-02-10  Frederik Harwath  <frederik@codesourcery.com>
3011         * testsuite/libgomp.c/target-33.c: Add xfail for execution on
3012         offload_target_nvptx, cf. https://gcc.gnu.org/PR81688.
3013         * testsuite/libgomp.c/target-34.c: Likewise.
3014         * testsuite/libgomp.c/target-link-1.c: Add xfail for
3015         offload_target_nvptx, cf. https://gcc.gnu.org/PR81689.
3017 2020-02-09  Jakub Jelinek  <jakub@redhat.com>
3019         * testsuite/libgomp.c/target-38.c: New test.
3021 2020-02-06  Jakub Jelinek  <jakub@redhat.com>
3023         PR libgomp/93515
3024         * testsuite/libgomp.c-c++-common/pr93515.c: New test.
3026 2020-02-05  Tobias Burnus  <tobias@codesourcery.com>
3028         * testsuite/lib/libgomp.exp
3029         (check_effective_target_offload_target_nvptx): Pass flags as 'options'
3030         and not as 'source' argument to libgomp_target_compile.
3032 2020-02-03  Andrew Stubbs  <ams@codesourcery.com>
3034         * plugin/plugin-gcn.c (EF_AMDGPU_MACH_AMDGCN_GFX801): Remove.
3035         (gcn_gfx801_s): Remove.
3036         (isa_hsa_name): Remove gfx801.
3037         (isa_gcc_name): Remove gfx801/carizzo.
3038         (isa_code): Remove gfx801.
3040 2020-02-03  Julian Brown  <julian@codesourcery.com>
3041             Tobias Burnus  <tobias@codesourcery.com>
3043         * libgomp.texi (OpenACC Runtime Library Routines): Document *_async
3044         and *_finalize variants; document acc_attach and acc_detach; update
3045         references from OpenACC 2.0 to 2.6.
3046         * openacc.f90 (openacc_version): Update to 201711.
3047         * openacc_lib.h (openacc_version): Update to 201711.
3048         * testsuite/libgomp.oacc-fortran/openacc_version-1.f: Update expected
3049         openacc_version to 201711.
3050         * testsuite/libgomp.oacc-fortran/openacc_version-2.f90: Likewise.
3052 2020-01-31  Kwok Cheung Yeung  <kcy@codesourcery.com>
3054         * plugin/plugin-gcn.c (struct hsa_kernel_description): Add sgpr_count
3055         and vgpr_count fields.
3056         (struct kernel_info): Add a field for a hsa_kernel_description.
3057         (run_kernel): Reduce the number of threads/workers if the requested
3058         number would require too many VGPRs.
3059         (init_basic_kernel_info): Initialize description field with
3060         the hsa_kernel_description entry for the kernel.
3062 2020-01-29  Tobias Burnus  <tobias@codesourcery.com>
3064         PR bootstrap/93409
3065         * plugin/configfrag.ac (enable_offload_targets): Skip
3066         HSA and GCN plugin besides -m32 also for -mx32.
3067         * configure: Regenerate.
3069 2020-01-29  Frederik Harwath  <frederik@codesourcery.com>
3071         * oacc-init.c (name_of_acc_device_t): Handle acc_device_radeon.
3073 2020-01-29  Frederik Harwath  <frederik@codesourcery.com>
3075         * plugin-gcn.c (struct agent_info): Add fields "name" and
3076         "vendor_name" ...
3077         (GOMP_OFFLOAD_init_device): ... and init from here.
3078         (struct hsa_context_info): Add field "driver_version_s" ...
3079         (init_hsa_contest): ... and init from here.
3080         (GOMP_OFFLOAD_openacc_get_property): Replace stub with a proper
3081         implementation.
3082         * testsuite/libgomp.oacc-c-c++-common/acc_get_property.c:
3083         Enable test execution for amdgcn and host offloading targets.
3084         * testsuite/libgomp.oacc-fortran/acc_get_property.f90: Likewise.
3085         * testsuite/libgomp.oacc-c-c++-common/acc_get_property-aux.c
3086         (expect_device_properties): Split function into ...
3087         (expect_device_string_properties): ... this new function ...
3088         (expect_device_memory): ... and this new function.
3089         * testsuite/libgomp.oacc-c-c++-common/acc_get_property-gcn.c:
3090         Add test.
3092 2020-01-28  Julian Brown  <julian@codesourcery.com>
3094         * testsuite/libgomp.oacc-fortran/deep-copy-2.f90: Remove test from here.
3095         * testsuite/libgomp.oacc-fortran/deep-copy-3.f90: Don't use mixed
3096         component/non-component variable refs in a single directive.
3097         * testsuite/libgomp.oacc-fortran/classtypes-1.f95: Likewise.
3099 2020-01-24  Maciej W. Rozycki  <macro@wdc.com>
3101         * configure.ac: Handle `--with-toolexeclibdir='.
3102         * Makefile.in: Regenerate.
3103         * aclocal.m4: Regenerate.
3104         * configure: Regenerate.
3105         * testsuite/Makefile.in: Regenerate.
3107 2020-01-24  Frederik Harwath  <frederik@codesourcery.com>
3109         * testsuite/libgomp.oacc-c-c++-common/acc_get_property-aux.c
3110         (expect_device_properties): Remove "expected_free_mem" argument,
3111         change "expected_total_mem" argument type to size_t;
3112         change types of acc_get_property results to size_t,
3113         adapt format strings.
3114         * testsuite/libgomp.oacc-c-c++-common/acc_get_property.c:
3115         Use %zu instead of %zd to print size_t values.
3116         * testsuite/libgomp.oacc-c-c++-common/acc_get_property-2.c: Adapt and
3117         rename to ...
3118         * testsuite/libgomp.oacc-c-c++-common/acc_get_property-nvptx.c: ... this.
3119         * testsuite/libgomp.oacc-c-c++-common/acc_get_property-3.c: Adapt and
3120         rename to ...
3121         * testsuite/libgomp.oacc-c-c++-common/acc_get_property-host.c: ... this.
3123 2020-01-23  Andrew Stubbs  <ams@codesourcery.com>
3125         * plugin/plugin-gcn.c (parse_target_attributes): Use correct mask for
3126         the device id.
3128 2020-01-20  Andrew Stubbs  <ams@codesourcery.com>
3130         * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Skip test on gcn.
3131         * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c (main):
3132         Adjust test dimensions for amdgcn.
3133         * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c (main): Adjust
3134         gang/worker/vector expectations dynamically.
3135         * testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c
3136         (main): Likewise.
3137         * testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c (main): Likewise.
3138         * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c (main): Likewise.
3139         * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c (main): Likewise.
3140         * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c (main): Likewise.
3141         * testsuite/libgomp.oacc-c-c++-common/loop-red-wv-1.c (main): Likewise.
3142         * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c (main): Likewise.
3143         * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c (main): Likewise.
3144         * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c (main): Likewise.
3145         * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c
3146         (acc_gang): Recognise acc_device_radeon.
3147         (acc_worker): Likewise.
3148         (acc_vector): Likewise.
3149         (main): Set expectations for amdgcn.
3150         * testsuite/libgomp.oacc-c-c++-common/routine-gwv-1.c
3151         (main): Adjust gang/worker/vector expectations dynamically.
3152         * testsuite/libgomp.oacc-c-c++-common/routine-v-1.c (main): Likewise.
3153         * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c (main): Likewise.
3154         * testsuite/libgomp.oacc-c-c++-common/routine-wv-1.c (main): Likewise.
3155         * testsuite/libgomp.oacc-c-c++-common/routine-wv-2.c: Set expectations
3156         for amdgcn.
3158 2020-01-17  Andrew Stubbs  <ams@codesourcery.com>
3160         * config/accel/openacc.f90 (openacc_kinds): Rename acc_device_gcn to
3161         acc_device_radeon.
3162         (openacc): Likewise.
3163         * openacc.f90 (openacc_kinds): Likewise.
3164         (openacc): Likewise.
3165         * openacc.h (acc_device_t): Likewise.
3166         * openacc_lib.h: Likewise.
3167         * testsuite/lib/libgomp.exp
3168         (check_effective_target_openacc_amdgcn_accel_present): Likewise.
3169         * testsuite/libgomp.oacc-c-c++-common/acc_prof-init-1.c
3170         (cb_compute_construct_end): Likewise.
3171         * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c
3172         (cb_enqueue_launch_start): Likewise.
3173         * testsuite/libgomp.oacc-c-c++-common/acc_prof-parallel-1.c
3174         (cb_enter_data_end): Likewise.
3175         (cb_exit_data_start): Likewise.
3176         (cb_exit_data_end): Likewise.
3177         (cb_compute_construct_end): Likewise.
3178         (cb_enqueue_launch_start): Likewise.
3179         (cb_enqueue_launch_end): Likewise.
3180         * testsuite/libgomp.oacc-c-c++-common/asyncwait-nop-1.c
3181         (main): Likewise.
3183 2020-01-10  Thomas Schwinge  <thomas@codesourcery.com>
3185         * libgomp-plugin.h (enum goacc_property): New.  Adjust all users
3186         to use this instead of 'enum gomp_device_property'.
3187         (GOMP_OFFLOAD_get_property): Rename to...
3188         (GOMP_OFFLOAD_openacc_get_property): ... this.  Adjust all users.
3189         * libgomp.h (struct gomp_device_descr): Move
3190         'GOMP_OFFLOAD_openacc_get_property'...
3191         (struct acc_dispatch_t): ... here.  Adjust all users.
3192         * plugin/plugin-hsa.c (GOMP_OFFLOAD_get_property): Remove.
3194         * target.c (gomp_map_vars_internal)
3195         <GOMP_MAP_USE_DEVICE_PTR_IF_PRESENT>: Clean up/elaborate code
3196         paths.
3198 2020-01-10  Jakub Jelinek  <jakub@redhat.com>
3200         PR libgomp/93219
3201         * libgomp.h (gomp_print_string): Change return type from void to int.
3202         * affinity-fmt.c (gomp_print_string): Likewise.  Return true if
3203         not all characters have been written.
3205 2020-01-08  Tobias Burnus  <tobias@codesourcery.com>
3207         * libgomp.texi: Fix typos, use https.
3209 2020-01-03  Tobias Burnus  <tobias@codesourcery.com>
3211         * testsuite/libgomp.fortran/optional-map.f90: Add test for
3212         unallocated/disassociated actual arguments to nonallocatable/nonpointer
3213         dummy arguments; those are/shall be regarded as absent arguments.
3214         * testsuite/libgomp.fortran/use_device_ptr-optional-2.f90: Ditto.
3215         * testsuite/libgomp.fortran/use_device_ptr-optional-3.f90: New.
3217 2020-01-01  Jakub Jelinek  <jakub@redhat.com>
3219         Update copyright years.
3221         * libgomp.texi: Bump @copying's copyright year.
3223 2019-12-31  Ayush Mittal  <ayush.m@samsung.com>
3225         PR libgomp/93065
3226         * oacc-init.c (goacc_runtime_deinitialize): New function.
3228 2019-12-28  Jakub Jelinek  <jakub@redhat.com>
3230         PR bootstrap/93074
3231         * plugin/cuda/cuda.h (cuDeviceGetName, cuDriverGetVersion): Declare.
3232         (cuDeviceTotalMem, cuMemGetInfo): Likewise.  Define to *_v2.
3234 2019-12-22  Maciej W. Rozycki  <macro@codesourcery.com>
3235             Frederik Harwath  <frederik@codesourcery.com>
3236             Thomas Schwinge  <tschwinge@codesourcery.com>
3238         * libgomp.h (gomp_device_descr): Add `get_property_func' member.
3239         * libgomp-plugin.h (gomp_device_property_value): New union.
3240         (gomp_device_property_value): New prototype.
3241         * openacc.h (acc_device_t): Add `acc_device_current' enumeration
3242         constant.
3243         (acc_device_property_t): New enum.
3244         (acc_get_property, acc_get_property_string): New prototypes.
3245         * oacc-init.c (acc_get_device_type): Also assert that result
3246         is not `acc_device_current'.
3247         (get_property_any, acc_get_property, acc_get_property_string):
3248         New functions.
3249         * openacc.f90 (openacc_kinds): Add `acc_device_current' and
3250         `acc_property_memory', `acc_property_free_memory',
3251         `acc_property_name', `acc_property_vendor' and
3252         `acc_property_driver' constants.  Add `acc_device_property' data
3253         type.
3254         (openacc_internal): Add `acc_get_property' and
3255         `acc_get_property_string' interfaces.  Add `acc_get_property_h',
3256         `acc_get_property_string_h', `acc_get_property_l' and
3257         `acc_get_property_string_l'.
3258         * oacc-host.c (host_get_property): New function.
3259         (host_dispatch): Wire it.
3260         * target.c (gomp_load_plugin_for_device): Handle `get_property'.
3261         * libgomp.map (OACC_2.6): Add `acc_get_property', `acc_get_property_h_',
3262         `acc_get_property_string' and `acc_get_property_string_h_' symbols.
3263         * libgomp.texi (OpenACC Runtime Library Routines): Add
3264         `acc_get_property'.
3265         (acc_get_property): New node.
3266         * plugin/plugin-gcn.c (GOMP_OFFLOAD_get_property): New
3267         function (stub).
3268         * plugin/plugin-hsa.c (GOMP_OFFLOAD_get_property): New function.
3269         * plugin/plugin-nvptx.c (CUDA_CALLS): Add `cuDeviceGetName',
3270         `cuDeviceTotalMem', `cuDriverGetVersion' and `cuMemGetInfo'
3271         calls.
3272         (GOMP_OFFLOAD_get_property): New function.
3273         (struct ptx_device): Add new field "name".
3274         (cuda_driver_version_s): Add new static variable ...
3275         (nvptx_init): ... and init from here.
3277         * testsuite/libgomp.oacc-c-c++-common/acc_get_property.c: New test.
3278         * testsuite/libgomp.oacc-c-c++-common/acc_get_property-2.c: New test.
3279         * testsuite/libgomp.oacc-c-c++-common/acc_get_property-3.c: New test.
3280         * testsuite/libgomp.oacc-c-c++-common/acc_get_property-aux.c: New file
3281         with test helper functions.
3283         * testsuite/libgomp.oacc-fortran/acc_get_property.f90: New test.
3285 2019-12-22  Maciej W. Rozycki  <macro@wdc.com>
3287         * testsuite/libgomp-test-support.exp.in (GCC_UNDER_TEST): New
3288         variable.
3290 2019-12-21  Thomas Schwinge  <thomas@codesourcery.com>
3292         * target.c (gomp_map_vars_internal): Restore 'omp declare target
3293         link' handling.
3295 2019-12-19  Julian Brown  <julian@codesourcery.com>
3297         * testsuite/libgomp.oacc-fortran/class-ptr-param.f95: New test.
3298         * testsuite/libgomp.oacc-fortran/classtypes-1.f95: New test.
3299         * testsuite/libgomp.oacc-fortran/classtypes-2.f95: New test.
3301 2019-12-19  Julian Brown  <julian@codesourcery.com>
3302             Cesar Philippidis  <cesar@codesourcery.com>
3304         * testsuite/libgomp.oacc-fortran/deep-copy-1.f90: New test.
3305         * testsuite/libgomp.oacc-fortran/deep-copy-2.f90: New test.
3306         * testsuite/libgomp.oacc-fortran/deep-copy-3.f90: New test.
3307         * testsuite/libgomp.oacc-fortran/deep-copy-4.f90: New test.
3308         * testsuite/libgomp.oacc-fortran/deep-copy-5.f90: New test.
3309         * testsuite/libgomp.oacc-fortran/deep-copy-6.f90: New test.
3310         * testsuite/libgomp.oacc-fortran/deep-copy-7.f90: New test.
3311         * testsuite/libgomp.oacc-fortran/deep-copy-8.f90: New test.
3312         * testsuite/libgomp.oacc-fortran/derived-type-1.f90: New test.
3313         * testsuite/libgomp.oacc-fortran/derivedtype-1.f95: New test.
3314         * testsuite/libgomp.oacc-fortran/derivedtype-2.f95: New test.
3315         * testsuite/libgomp.oacc-fortran/multidim-slice.f95: New test.
3316         * testsuite/libgomp.oacc-fortran/update-2.f90: New test.
3318 2019-12-19  Julian Brown  <julian@codesourcery.com>
3320         * testsuite/libgomp.oacc-c-c++-common/deep-copy-1.c: New test.
3321         * testsuite/libgomp.oacc-c-c++-common/deep-copy-2.c: New test.
3322         * testsuite/libgomp.oacc-c-c++-common/deep-copy-4.c: New test.
3323         * testsuite/libgomp.oacc-c-c++-common/deep-copy-6.c: New test.
3324         * testsuite/libgomp.oacc-c-c++-common/deep-copy-7.c: New test.
3325         * testsuite/libgomp.oacc-c-c++-common/deep-copy-8.c: New test.
3326         * testsuite/libgomp.oacc-c-c++-common/deep-copy-9.c: New test.
3327         * testsuite/libgomp.oacc-c-c++-common/deep-copy-10.c: New test.
3328         * testsuite/libgomp.oacc-c-c++-common/deep-copy-11.c: New test.
3329         * testsuite/libgomp.oacc-c-c++-common/deep-copy-14.c: New test.
3330         * testsuite/libgomp.oacc-c++/deep-copy-12.C: New test.
3331         * testsuite/libgomp.oacc-c++/deep-copy-13.C: New test.
3333 2019-12-19  Julian Brown  <julian@codesourcery.com>
3335         * libgomp.h (struct target_var_desc): Add do_detach flag.
3336         * oacc-init.c (acc_shutdown_1): Free aux block if present.
3337         * oacc-mem.c (find_group_last): Add SIZES parameter. Support
3338         struct components.  Tidy up and add some new checks.
3339         (goacc_enter_data_internal): Update call to find_group_last.
3340         (goacc_exit_data_internal): Support detach operations and
3341         GOMP_MAP_STRUCT.
3342         (GOACC_enter_exit_data): Handle initial GOMP_MAP_STRUCT or
3343         GOMP_MAP_FORCE_PRESENT in finalization detection code.  Handle
3344         attach/detach in enter/exit data detection code.
3345         * target.c (gomp_map_vars_existing): Initialise do_detach field of
3346         tgt_var_desc.
3347         (gomp_map_vars_internal): Support attach.
3348         (gomp_unmap_vars_internal): Support detach.
3350 2019-12-19  Julian Brown  <julian@codesourcery.com>
3351             Thomas Schwinge  <thomas@codesourcery.com>
3353         * libgomp.h (struct splay_tree_aux): Add attach_count field.
3354         (gomp_attach_pointer, gomp_detach_pointer): Add prototypes.
3355         * libgomp.map (OACC_2.6): New section. Add acc_attach,
3356         acc_attach_async, acc_detach, acc_detach_async, acc_detach_finalize,
3357         acc_detach_finalize_async.
3358         * oacc-mem.c (acc_attach_async, acc_attach, goacc_detach_internal,
3359         acc_detach, acc_detach_async, acc_detach_finalize,
3360         acc_detach_finalize_async): New functions.
3361         * openacc.h (acc_attach, acc_attach_async, acc_detach,
3362         (acc_detach_async, acc_detach_finalize, acc_detach_finalize_async): Add
3363         prototypes.
3364         * target.c (gomp_attach_pointer, gomp_detach_pointer): New functions.
3365         (gomp_remove_var_internal): Free attachment counts if present.
3366         * testsuite/libgomp.oacc-c-c++-common/deep-copy-3.c: New test.
3367         * testsuite/libgomp.oacc-c-c++-common/deep-copy-5.c: New test.
3369 2019-12-19  Julian Brown  <julian@codesourcery.com>
3370             Cesar Philippidis  <cesar@codesourcery.com>
3372         * libgomp.h (gomp_map_val): Add prototype.
3373         * oacc-parallel.c (GOACC_parallel_keyed): Use gomp_map_val instead of
3374         open-coding device-address calculation.
3375         * target.c (gomp_map_val): Make global. Use OFFSET_POINTER in
3376         non-present case.
3378 2019-12-19  Julian Brown  <julian@codesourcery.com>
3380         * libgomp.h (struct splay_tree_key_s): Substitute dynamic_refcount
3381         field for virtual_refcount.
3382         (enum gomp_map_vars_kind): Add GOMP_MAP_VARS_OPENACC_ENTER_DATA.
3383         (gomp_free_memmap): Remove prototype.
3384         * oacc-init.c (acc_shutdown_1): Iteratively call gomp_remove_var
3385         instead of calling gomp_free_memmap.
3386         * oacc-mem.c (acc_map_data): Use virtual_refcount instead of
3387         dynamic_refcount.
3388         (acc_unmap_data): Open code instead of forcing target_mem_desc's
3389         to_free field to NULL then calling gomp_unmap_vars.  Handle
3390         REFCOUNT_INFINITY on target blocks.
3391         (goacc_enter_data): Rename to...
3392         (goacc_enter_datum): ...this.  Remove MAPNUM parameter and special
3393         handling for mapping groups.  Use virtual_refcount instead of
3394         dynamic_refcount.  Use GOMP_MAP_VARS_OPENACC_ENTER_DATA for
3395         map_map_vars_async call.  Re-do lookup for target pointer return value.
3396         (acc_create, acc_create_async, acc_copyin, acc_copyin_async): Call
3397         renamed goacc_enter_datum function.
3398         (goacc_exit_data): Rename to...
3399         (goacc_exit_datum): ...this.  Update for virtual_refcount semantics.
3400         (acc_delete, acc_delete_async, acc_delete_finalize,
3401         acc_delete_finalize_async, acc_copyout, acc_copyout_async,
3402         acc_copyout_finalize, acc_copyout_finalize_async): Call renamed
3403         goacc_exit_datum function.
3404         (gomp_acc_remove_pointer, find_pointer): Remove functions.
3405         (find_group_last, goacc_enter_data_internal, goacc_exit_data_internal):
3406         New functions.
3407         (GOACC_enter_exit_data): Use goacc_enter_data_internal and
3408         goacc_exit_data_internal helper functions.
3409         * target.c (gomp_map_vars_internal): Handle
3410         GOMP_MAP_VARS_OPENACC_ENTER_DATA.  Update for virtual_refcount
3411         semantics.
3412         (gomp_unmap_vars_internal): Update for virtual_refcount semantics.
3413         (gomp_load_image_to_device, omp_target_associate_ptr): Zero-initialise
3414         virtual_refcount field instead of dynamic_refcount.
3415         (gomp_free_memmap): Remove function.
3416         * testsuite/libgomp.oacc-c-c++-common/unmap-infinity-1.c: New test.
3417         * testsuite/libgomp.c-c++-common/unmap-infinity-2.c: New test.
3418         * testsuite/libgomp.oacc-c-c++-common/pr92843-1.c: Add XFAIL.
3420 2019-12-19  Julian Brown  <julian@codesourcery.com>
3421             Thomas Schwinge  <thomas@codesourcery.com>
3423         * libgomp.h (struct splay_tree_aux): New.
3424         (struct splay_tree_key_s): Replace link_key field with aux pointer.
3425         * target.c (gomp_map_vars_internal): Adjust for link_key being moved
3426         to aux struct.
3427         (gomp_remove_var_internal): Free aux block if present.
3428         (gomp_load_image_to_device): Zero-initialise aux field instead of
3429         link_key field.
3430         (omp_target_associate_pointer): Zero-initialise aux field.
3432 2019-12-18  Jakub Jelinek  <jakub@redhat.com>
3434         PR middle-end/86416
3435         * testsuite/libgomp.c/pr86416-1.c (main): Use L suffixes rather than
3436         q or none.
3437         * testsuite/libgomp.c/pr86416-2.c (main): Use Q suffixes rather than
3438         L or none.
3440 2019-12-19  Julian Brown  <julian@codesourcery.com>
3441             Maciej W. Rozycki  <macro@codesourcery.com>
3442             Tobias Burnus  <tobias@codesourcery.com>
3443             Thomas Schwinge  <thomas@codesourcery.com>
3445         * target.c (gomp_map_vars_async): Support GOMP_MAP_NO_ALLOC.
3446         * testsuite/libgomp.oacc-c-c++-common/no_create-1.c: New test.
3447         * testsuite/libgomp.oacc-c-c++-common/no_create-2.c: New test.
3448         * testsuite/libgomp.oacc-c-c++-common/no_create-3.c: New test.
3449         * testsuite/libgomp.oacc-c-c++-common/no_create-4.c: New test.
3450         * testsuite/libgomp.oacc-c-c++-common/no_create-5.c: New test.
3451         * testsuite/libgomp.oacc-fortran/no_create-1.f90: New test.
3452         * testsuite/libgomp.oacc-fortran/no_create-2.f90: New test.
3453         * testsuite/libgomp.oacc-fortran/no_create-3.F90: New test.
3455 2019-12-18  Thomas Schwinge  <thomas@codesourcery.com>
3457         * oacc-mem.c (goacc_enter_data): Refactor, so that it can be
3458         called...
3459         (goacc_insert_pointer): ... from here, "present" case.
3460         (goacc_insert_pointer): Inline function into...
3461         (GOACC_enter_exit_data): ... here, and simplify.
3463         * oacc-mem.c (goacc_enter_data): Refactor, so that it can be
3464         called...
3465         (goacc_insert_pointer): ... from here, "not present" case.
3467         * oacc-mem.c (goacc_remove_pointer): Refactor interface.  Adjust
3468         all users.
3470         * oacc-mem.c (GOACC_enter_exit_data): Refactor code to call
3471         'goacc_enter_data', 'goacc_exit_data'.
3473         * oacc-mem.c (delete_copyout): Refactor into...
3474         (goacc_exit_data): ... this.  Adjust all users.
3476         * oacc-mem.c (present_create_copy): Refactor into...
3477         (goacc_enter_data): ... this.  Adjust all users.
3479         * target.c (gomp_unmap_vars_internal): Add a safeguard to
3480         'gomp_remove_var'.
3482         * target.c (gomp_to_device_kind_p): Handle 'GOMP_MAP_FORCE_FROM'
3483         like 'GOMP_MAP_FROM'.
3485         PR libgomp/92726
3486         PR libgomp/92970
3487         PR libgomp/92984
3488         * oacc-mem.c (delete_copyout): No-op behavior if 'lookup_host'
3489         fails.
3490         (GOACC_enter_exit_data): Simplify accordingly.
3491         * testsuite/libgomp.oacc-c-c++-common/pr92970-1.c: New file,
3492         subsuming...
3493         * testsuite/libgomp.oacc-c-c++-common/lib-17.c: ... this file...
3494         * testsuite/libgomp.oacc-c-c++-common/lib-18.c: ..., and this
3495         file.
3496         * testsuite/libgomp.oacc-c-c++-common/pr92984-1.c: New file,
3497         subsuming...
3498         * testsuite/libgomp.oacc-c-c++-common/lib-21.c: ... this file...
3499         * testsuite/libgomp.oacc-c-c++-common/lib-29.c: ..., and this
3500         file.
3501         * testsuite/libgomp.oacc-c-c++-common/pr92726-1.c: New file,
3502         subsuming...
3503         * testsuite/libgomp.oacc-c-c++-common/lib-28.c: ... this file.
3505         * oacc-mem.c (GOACC_enter_exit_data): Simplify 'exit data'
3506         'finalize' handling.
3508         PR libgomp/92848
3509         * oacc-mem.c (acc_map_data, present_create_copy)
3510         (goacc_insert_pointer): Use 'GOMP_MAP_VARS_ENTER_DATA'.
3511         (acc_unmap_data, delete_copyout, goacc_remove_pointer): Adjust.
3512         * testsuite/libgomp.oacc-c-c++-common/lib-50.c: Remove.
3513         * testsuite/libgomp.oacc-c-c++-common/pr92848-1-d-a.c: New file
3514         * testsuite/libgomp.oacc-c-c++-common/pr92848-1-d-p.c: Likewise.
3515         * testsuite/libgomp.oacc-c-c++-common/pr92848-1-r-a.c: Likewise.
3516         * testsuite/libgomp.oacc-c-c++-common/pr92848-1-r-p.c: Likewise.
3517         * testsuite/libgomp.oacc-c-c++-common/subset-subarray-mappings-1-r-p.c:
3518         Remove "XFAIL"s.
3520         * target.c (gomp_unmap_tgt): Make it 'static'.
3521         * libgomp.h (gomp_unmap_tgt): Remove.
3523 2019-12-18  Tobias Burnus  <tobias@codesourcery.com>
3525         PR middle-end/86416
3526         * testsuite/libgomp.c/pr86416-1.c: New.
3527         * testsuite/libgomp.c/pr86416-2.c: New.
3529 2019-12-17  Tobias Burnus  <tobias@codesourcery.com>
3531         * config/accel/openacc.f90 (module openacc_kinds): Use 'PUBLIC' to mark
3532         all symbols as public except for the 'use â€¦, only' imported symbol,
3533         which is private.
3534         (module openacc): Default to 'PRIVATE' to exclude openacc_internal; mark
3535         all symbols from module openacc_kinds as PUBLIC
3536         * openacc.f90: Add comment with crossref to that file and openmp_lib.h;
3537         fix comment typo.
3538         * openacc_lib.h (acc_device_gcn): Add this PARAMETER.
3540 2019-12-13  Julian Brown  <julian@codesourcery.com>
3542         PR libgomp/92881
3544         * libgomp.h (gomp_remove_var_async): Add prototype.
3545         * oacc-mem.c (delete_copyout): Call gomp_remove_var_async instead of
3546         gomp_remove_var.
3547         * target.c (gomp_unref_tgt): Change return type to bool, indicating
3548         whether target_mem_desc was unmapped.
3549         (gomp_unref_tgt_void): New.
3550         (gomp_remove_var): Reimplement in terms of...
3551         (gomp_remove_var_internal): ...this new helper function.
3552         (gomp_remove_var_async): New, implemented using above helper function.
3553         (gomp_unmap_vars_internal): Use gomp_unref_tgt_void instead of
3554         gomp_unref_tgt.
3556 2019-12-13  Andrew Stubbs  <ams@codesourcery.com>
3558         * testsuite/libgomp.oacc-c-c++-common/acc_prof-init-1.c: Handle gcn.
3559         * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c: Likewise.
3560         * testsuite/libgomp.oacc-c-c++-common/acc_prof-parallel-1.c: Likewise.
3561         * testsuite/libgomp.oacc-c-c++-common/asyncwait-nop-1.c: Likewise.
3562         * testsuite/libgomp.oacc-c-c++-common/function-not-offloaded.c:
3563         Likewise.
3564         * testsuite/libgomp.oacc-c-c++-common/async_queue-1.c: Disable on GCN.
3565         * testsuite/libgomp.oacc-c-c++-common/tile-1.c: Likewise.
3567 2019-12-13  Tobias Burnus  <tobias@codesourcery.com>
3569         * openacc.f90 (module openacc_kinds): Use 'PUBLIC' to mark all symbols
3570         as public except for the 'use â€¦, only' imported symbol, which is
3571         private.
3572         (module openacc): Default to 'PRIVATE' to exclude openacc_internal; mark
3573         all symbols from module openacc_kinds as PUBLIC; add missing PUBLIC
3574         attributes for acc_copyout_finalize and acc_delete_finalize.
3576 2019-12-11  Jakub Jelinek  <jakub@redhat.com>
3578         PR fortran/92899
3579         * testsuite/libgomp.fortran/atomic1.f90: New test.
3581 2019-12-11  Thomas Schwinge  <thomas@codesourcery.com>
3583         PR libgomp/92843
3584         * oacc-mem.c (present_create_copy, delete_copyout): Fix dynamic
3585         reference counting for structured 'REFCOUNT_INFINITY'.  Add some
3586         assertions.
3587         (goacc_insert_pointer, goacc_remove_pointer): Adjust accordingly.
3588         * testsuite/libgomp.oacc-c-c++-common/pr92843-1.c: New file.
3589         * testsuite/libgomp.oacc-c-c++-common/clauses-1.c: Fix OpenACC.
3590         * testsuite/libgomp.oacc-c-c++-common/lib-82.c: Likewise.
3591         * testsuite/libgomp.oacc-c-c++-common/nested-1.c: Likewise.
3593         * oacc-parallel.c (find_pointer, GOACC_enter_exit_data): Move...
3594         * oacc-mem.c: ... here.
3595         (gomp_acc_insert_pointer, gomp_acc_remove_pointer): Rename to
3596         'goacc_insert_pointer', 'goacc_remove_pointer', and make 'static'.
3597         * libgomp.h (gomp_acc_insert_pointer, gomp_acc_remove_pointer):
3598         Remove.
3599         * libgomp_g.h: Update.
3601         * oacc-parallel.c (GOACC_wait, goacc_wait): Move...
3602         * oacc-async.c: ... here.
3603         * oacc-int.h (goacc_wait): Declare.
3604         * libgomp_g.h: Update
3606         PR libgomp/92854
3607         * testsuite/libgomp.oacc-c-c++-common/acc_map_data-device_already-1.c:
3608         New file.
3609         * testsuite/libgomp.oacc-c-c++-common/acc_map_data-device_already-2.c:
3610         Likewise.
3611         * testsuite/libgomp.oacc-c-c++-common/acc_map_data-device_already-3.c:
3612         Likewise.
3613         * testsuite/libgomp.oacc-c-c++-common/acc_map_data-host_already-1.c:
3614         Likewise.
3615         * testsuite/libgomp.oacc-c-c++-common/acc_map_data-host_already-2.c:
3616         Likewise.
3617         * testsuite/libgomp.oacc-c-c++-common/acc_map_data-host_already-3.c:
3618         Likewise.
3620 2019-12-11  Thomas Schwinge  <thomas@codesourcery.com>
3621             Julian Brown  <julian@codesourcery.com>
3623         * target.c (gomp_load_image_to_device, omp_target_associate_ptr):
3624         Initialize 'dynamic_refcount' whenever we initialize 'refcount'.
3626 2019-12-11  Tobias Burnus  <tobias@codesourcery.com>
3628         * omp_lib.h.in: Fix spelling of function declaration
3629         omp_get_cancell(l)ation.
3630         * libgomp.texi (acc_is_present, acc_async_test, acc_async_test_all):
3631         Fix typos.
3632         * env.c: Fix comment typos.
3633         * oacc-host.c: Likewise.
3634         * ordered.c: Likewise.
3635         * task.c: Likewise.
3636         * team.c: Likewise.
3637         * config/gcn/task.c: Likewise.
3638         * config/gcn/team.c: Likewise.
3639         * config/nvptx/task.c: Likewise.
3640         * config/nvptx/team.c: Likewise.
3641         * plugin/plugin-gcn.c: Likewise.
3642         * testsuite/libgomp.fortran/jacobi.f: Likewise.
3643         * testsuite/libgomp.hsa.c/tiling-2.c: Likewise.
3644         * testsuite/libgomp.oacc-c-c++-common/enter_exit-lib.c: Likewise.
3646 2019-12-11  Tobias Burnus  <tobias@codesourcery.com>
3648         * testsuite/libgomp.oacc-fortran/optional-cache.f95: Add 'dg-do run'.
3649         * testsuite/libgomp.oacc-fortran/optional-reduction.f90: Remove
3650         unnecessary 'dg-additional-options "-w"'.
3652 2019-12-09  Thomas Schwinge  <thomas@codesourcery.com>
3653             Julian Brown  <julian@codesourcery.com>
3655         PR libgomp/92116
3656         PR libgomp/92877
3658         * oacc-mem.c (lookup_dev): Reimplement.  Adjust all users.
3659         * libgomp.h (struct acc_dispatch_t): Remove 'data_environ' member.
3660         Adjust all users.
3661         * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-4-2.c:
3662         Remove XFAIL.
3663         * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-4.c:
3664         Likewise.
3665         * testsuite/libgomp.oacc-c-c++-common/pr92877-1.c: New file.
3667 2019-12-09  Thomas Schwinge  <thomas@codesourcery.com>
3669         PR libgomp/92503
3670         * oacc-mem.c (acc_free): Error out instead of 'acc_unmap_data'.
3671         * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-1.c: New
3672         file.
3673         * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-2.c:
3674         Likewise.
3675         * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-3-2.c:
3676         Likewise.
3677         * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-3.c:
3678         Likewise.
3679         * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-4-2.c:
3680         Likewise.
3681         * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-4.c:
3682         Likewise.
3683         * testsuite/libgomp.oacc-c-c++-common/clauses-1.c: Adjust.
3684         * testsuite/libgomp.oacc-c-c++-common/context-1.c: Likewise.
3685         * testsuite/libgomp.oacc-c-c++-common/context-2.c: Likewise.
3686         * testsuite/libgomp.oacc-c-c++-common/context-3.c: Likewise.
3687         * testsuite/libgomp.oacc-c-c++-common/context-4.c: Likewise.
3688         * testsuite/libgomp.oacc-c-c++-common/lib-13.c: Likewise.
3689         * testsuite/libgomp.oacc-c-c++-common/lib-14.c: Likewise.
3690         * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
3691         * testsuite/libgomp.oacc-c-c++-common/lib-91.c: Likewise.
3692         * testsuite/libgomp.oacc-c-c++-common/nested-1.c: Likewise.
3694         PR libgomp/92840
3695         * oacc-mem.c (acc_map_data): Clarify reference counting behavior.
3696         (acc_unmap_data): Add error case for 'REFCOUNT_INFINITY'.
3697         * testsuite/libgomp.oacc-c-c++-common/acc_unmap_data-pr92840-1.c:
3698         New file.
3699         * testsuite/libgomp.oacc-c-c++-common/acc_unmap_data-pr92840-2.c:
3700         Likewise.
3701         * testsuite/libgomp.oacc-c-c++-common/acc_unmap_data-pr92840-3.c:
3702         Likewise.
3703         * testsuite/libgomp.oacc-c-c++-common/clauses-1.c: Adjust.
3704         * testsuite/libgomp.oacc-c-c++-common/nested-1.c: Adjust.
3706         PR libgomp/92511
3707         * testsuite/libgomp.oacc-c-c++-common/copyin-devptr-1.c: Remove
3708         this file...
3709         * testsuite/libgomp.oacc-c-c++-common/copyin-devptr-2.c: ..., and
3710         this file...
3711         * testsuite/libgomp.oacc-c-c++-common/lib-22.c: ..., and this
3712         file...
3713         * testsuite/libgomp.oacc-c-c++-common/lib-30.c: ..., and this
3714         file...
3715         * testsuite/libgomp.oacc-c-c++-common/subset-subarray-mappings-1-r-p.c:
3716         ... with their content moved into, and extended in this new file.
3717         * testsuite/libgomp.oacc-c-c++-common/subset-subarray-mappings-1-d-a.c:
3718         New file.
3719         * testsuite/libgomp.oacc-c-c++-common/subset-subarray-mappings-1-d-p.c:
3720         Likewise.
3721         * testsuite/libgomp.oacc-c-c++-common/subset-subarray-mappings-1-r-a.c:
3722         Likewise.
3723         * testsuite/libgomp.oacc-c-c++-common/subset-subarray-mappings-2.c:
3724         Likewise.
3726         * testsuite/libgomp.oacc-c-c++-common/map-data-1.c: New file.
3728         PR libgomp/92854
3729         * testsuite/libgomp.oacc-c-c++-common/pr92854-1.c: New file.
3731         * testsuite/libgomp.oacc-c-c++-common/host_data-6.c: New file.
3733         * target.c (gomp_exit_data): Use 'gomp_remove_var'.
3735 2019-12-09  Tobias Burnus  <tobias@codesourcery.com>
3737         * testsuite/libgomp.fortran/use_device_addr-3.f90: Make 'stop' codes
3738         unique.
3739         * testsuite/libgomp.fortran/use_device_addr-4.f90: Ditto.
3740         * testsuite/libgomp.fortran/use_device_ptr-optional-2.f90: Ditto.
3741         * testsuite/libgomp.oacc-fortran/declare-5.f90: Ditto.
3742         * testsuite/libgomp.oacc-fortran/optional-data-copyin-by-value.f90:
3743         Ditto.
3744         * testsuite/libgomp.oacc-fortran/optional-firstprivate.f90: Ditto.
3745         * testsuite/libgomp.oacc-fortran/optional-update-host.f90: Ditto.
3747 2019-12-06  Kwok Cheung Yeung  <kcy@codesourcery.com>
3749         * config/accel/proc.c (omp_get_num_procs): Apply ialias macro.
3751 2019-12-06  Tobias Burnus  <tobias@codesourcery.com>
3752             Kwok Cheung Yeung <kcy@codesourcery.com>
3754         * oacc-mem.c (update_dev_host, gomp_acc_insert_pointer): Just return
3755         if input it a NULL pointer.
3756         * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Remove; dependent on
3757         diagnostic of NULL pointer.
3758         * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Ditto.
3759         * testsuite/libgomp.fortran/optional-map.f90: New.
3760         * testsuite/libgomp.fortran/use_device_addr-1.f90
3761         (test_dummy_opt_callee_1_absent): New.
3762         (test_dummy_opt_call_1): Call it.
3763         * testsuite/libgomp.fortran/use_device_addr-2.f90: Likewise.
3764         * testsuite/libgomp.fortran/use_device_addr-3.f90: Likewise.
3765         * testsuite/libgomp.fortran/use_device_addr-4.f90: Likewise.
3766         * testsuite/libgomp.oacc-fortran/optional-cache.f95: New.
3767         * testsuite/libgomp.oacc-fortran/optional-data-copyin-by-value.f90: New.
3768         * testsuite/libgomp.oacc-fortran/optional-data-copyin.f90: New.
3769         * testsuite/libgomp.oacc-fortran/optional-data-copyout.f90: New.
3770         * testsuite/libgomp.oacc-fortran/optional-data-enter-exit.f90: New.
3771         * testsuite/libgomp.oacc-fortran/optional-declare.f90: New.
3772         * testsuite/libgomp.oacc-fortran/optional-firstprivate.f90: New.
3773         * testsuite/libgomp.oacc-fortran/optional-host_data.f90: New.
3774         * testsuite/libgomp.oacc-fortran/optional-nested-calls.f90: New.
3775         * testsuite/libgomp.oacc-fortran/optional-private.f90: New.
3776         * testsuite/libgomp.oacc-fortran/optional-reduction.f90: New.
3777         * testsuite/libgomp.oacc-fortran/optional-update-device.f90: New.
3778         * testsuite/libgomp.oacc-fortran/optional-update-host.f90: New.
3780 2019-12-05  Tobias Burnus  <tobias@codesourcery.com>
3782         * testsuite/libgomp.oacc-fortran/error_stop-1.f: Also don't
3783         expect dg-output of 'Error termination.' for GCN.
3784         * testsuite/libgomp.oacc-fortran/error_stop-2.f: Likewise.
3785         * testsuite/libgomp.oacc-fortran/error_stop-3.f: Likewise.
3787 2019-12-04  Jakub Jelinek  <jakub@redhat.com>
3789         PR fortran/92756
3790         * testsuite/libgomp.fortran/teams1.f90: New test.
3791         * testsuite/libgomp.fortran/teams2.f90: New test.
3793 2019-12-03  Frederik Harwath  <frederik@codesourcery.com>
3795         * oacc-init.c (acc_known_device_type): Add function.
3796         (unknown_device_type_error): Add function.
3797         (name_of_acc_device_t): Change to call unknown_device_type_error
3798         on unknown type.
3799         (resolve_device): Use acc_known_device_type.
3800         (acc_init): Fail if acc_device_t argument is not valid.
3801         (acc_shutdown): Likewise.
3802         (acc_get_num_devices): Likewise.
3803         (acc_set_device_type): Likewise.
3804         (acc_get_device_num): Likewise.
3805         (acc_set_device_num): Likewise.
3806         (acc_on_device): Add comment that argument validity is not checked.
3808 2019-12-03  Andrew Stubbs  <ams@codesourcery.com>
3810         * testsuite/lib/libgomp.exp (offload_target_to_openacc_device_type):
3811         Recognize amdgcn.
3812         (check_effective_target_openacc_amdgcn_accel_present): New proc.
3813         (check_effective_target_openacc_amdgcn_accel_selected): New proc.
3814         * testsuite/libgomp.oacc-c++/c++.exp: Add support for amdgcn.
3815         * testsuite/libgomp.oacc-c/c.exp: Likewise.
3816         * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
3818 2019-12-03  Szabolcs Nagy  <szabolcs.nagy@arm.com>
3820         PR libgomp/91938
3821         * configure.tgt: Avoid IE tls on *-*-musl*.
3823 2019-11-29  Tobias Burnus  <tobias@codesourcery.com>
3825         * testsuite/libgomp.oacc-fortran/declare-5.f90: Extend by
3826         adding a common-block test case.
3828 2019-11-29  Jakub Jelinek  <jakub@redhat.com>
3830         PR c++/60228
3831         * testsuite/libgomp.c++/udr-20.C: New test.
3832         * testsuite/libgomp.c++/udr-21.C: New test.
3834 2019-11-27  Thomas Schwinge  <thomas@codesourcery.com>
3836         * testsuite/lib/libgomp.exp
3837         (check_effective_target_offload_target_nvptx): New proc.
3838         * testsuite/libgomp.fortran/target-print-1.f90: Use it with
3839         'dg-skip-if'.
3840         * testsuite/libgomp.oacc-fortran/print-1.f90: Likewise.
3841         * testsuite/libgomp.fortran/target-print-1-nvptx.f90: New file.
3842         * testsuite/libgomp.oacc-fortran/print-1-nvptx.f90: Likewise.
3844 2019-11-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3846         * testsuite/libgomp.c/pr39591-1.c: Rename err to e.
3847         * testsuite/libgomp.c/pr39591-2.c: Likewise.
3848         * testsuite/libgomp.c/pr39591-3.c: Likewise.
3849         * testsuite/libgomp.c/private-1.c: Likewise.
3850         * testsuite/libgomp.c/task-1.c: Likewise.
3851         * testsuite/libgomp.c/task-5.c: Renamed err to serr.
3853 2019-11-20  Julian Brown  <julian@codesourcery.com>
3855         * plugin/plugin-gcn.c (wait_for_queue_nonfull): Don't lock/unlock
3856         aq->mutex here.
3857         (queue_push_launch): Lock aq->mutex before calling
3858         wait_for_queue_nonfull.
3859         (queue_push_callback): Likewise.
3860         (queue_push_asyncwait): Likewise.
3861         (queue_push_placeholder): Likewise.
3863 2019-11-20  Julian Brown  <julian@codesourcery.com>
3865         * plugin/plugin-gcn.c (hsa_memory_copy_wrapper): New.
3866         (copy_data, GOMP_OFFLOAD_host2dev): Use above function.
3867         (GOMP_OFFLOAD_dev2host, GOMP_OFFLOAD_dev2dev): Check hsa_memory_copy
3868         return code.
3870 2019-11-20  Julian Brown  <julian@codesourcery.com>
3872         PR libgomp/92511
3874         * oacc-mem.c (present_create_copy): Fix device pointer return value in
3875         case of "present" subarray.  Use tgt->tgt_start instead of tgt->to_free
3876         in non-present/create case.
3877         (delete_copyout): Change error condition to fail only on copies outside
3878         of mapped block.  Adjust error message accordingly.
3879         * testsuite/libgomp.oacc-c-c++-common/copyin-devptr-1.c: New test.
3880         * testsuite/libgomp.oacc-c-c++-common/copyin-devptr-2.c: New test.
3881         * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Adjust expected error
3882         message.
3883         * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
3884         * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Allow test to pass now.
3885         * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
3887 2019-11-20  Maciej W. Rozycki  <macro@wdc.com>
3889         * testsuite/lib/libgomp.exp (libgomp_init): Add flags to find
3890         libatomic in build-tree testing.
3892 2019-11-18  Maciej W. Rozycki  <macro@wdc.com>
3894         * testsuite/Makefile.in: Regenerate.
3896 2019-11-15  Andrew Stubbs  <ams@codesourcery.com>
3898         * testsuite/libgomp.c/target-print-1.c: New file.
3899         * testsuite/libgomp.fortran/target-print-1.f90: New file.
3900         * testsuite/libgomp.oacc-c/print-1.c: New file.
3901         * testsuite/libgomp.oacc-fortran/print-1.f90: New file.
3903 2019-11-13  Andrew Stubbs  <ams@codesourcery.com>
3904             Kwok Cheung Yeung  <kcy@codesourcery.com>
3905             Julian Brown  <julian@codesourcery.com>
3906             Tom de Vries  <tom@codesourcery.com>
3908         * plugin/Makefrag.am: Add amdgcn plugin support.
3909         * plugin/configfrag.ac: Likewise.
3910         * plugin/plugin-gcn.c: New file.
3911         * configure: Regenerate.
3912         * Makefile.in: Regenerate.
3913         * testsuite/Makefile.in: Regenerate.
3915 2019-11-13  Andrew Stubbs  <ams@codesourcery.com>
3917         * config/gcn/team.c (gomp_gcn_enter_kernel): Set up the team arena
3918         and use team_malloc variants.
3919         (gomp_gcn_exit_kernel): Use team_free.
3920         * libgomp.h (TEAM_ARENA_SIZE): Define.
3921         (TEAM_ARENA_START): Define.
3922         (TEAM_ARENA_FREE): Define.
3923         (TEAM_ARENA_END): Define.
3924         (team_malloc): New function.
3925         (team_malloc_cleared): New function.
3926         (team_free): New function.
3927         * team.c (gomp_new_team): Initialize and use team_malloc.
3928         (free_team): Use team_free.
3929         (gomp_free_thread): Use team_free.
3930         (gomp_pause_host): Use team_free.
3931         * work.c (gomp_init_work_share): Use team_malloc.
3932         (gomp_fini_work_share): Use team_free.
3934 2019-11-13  Andrew Stubbs  <ams@codesourcery.com>
3935             Kwok Cheung Yeung  <kcy@codesourcery.com>
3936             Julian Brown  <julian@codesourcery.com>
3937             Tom de Vries  <tom@codesourcery.com>
3939         * Makefile.am (libgomp_la_SOURCES): Add oacc-target.c.
3940         * Makefile.in: Regenerate.
3941         * config.h.in (PLUGIN_GCN): Add new undef.
3942         * config/accel/openacc.f90 (acc_device_gcn): New parameter.
3943         * config/gcn/affinity-fmt.c: New file.
3944         * config/gcn/bar.c: New file.
3945         * config/gcn/bar.h: New file.
3946         * config/gcn/doacross.h: New file.
3947         * config/gcn/icv-device.c: New file.
3948         * config/gcn/oacc-target.c: New file.
3949         * config/gcn/simple-bar.h: New file.
3950         * config/gcn/target.c: New file.
3951         * config/gcn/task.c: New file.
3952         * config/gcn/team.c: New file.
3953         * config/gcn/time.c: New file.
3954         * configure.ac: Add amdgcn*-*-*.
3955         * configure: Regenerate.
3956         * configure.tgt: Add amdgcn*-*-*.
3957         * libgomp-plugin.h (offload_target_type): Add OFFLOAD_TARGET_TYPE_GCN.
3958         * libgomp.h (gcn_thrs): Add amdgcn variant.
3959         (set_gcn_thrs): Likewise.
3960         (gomp_thread): Likewise.
3961         * oacc-int.h (goacc_thread): Likewise.
3962         * oacc-target.c: New file.
3963         * openacc.f90 (acc_device_gcn): New parameter.
3964         * openacc.h (acc_device_t): Add acc_device_gcn.
3965         * team.c (gomp_free_pool_helper): Add amdgcn support.
3967 2019-11-13  Andrew Stubbs  <ams@codesourcery.com>
3968             Julian Brown  <julian@codesourcery.com>
3970         * libgomp-plugin.h (GOMP_OFFLOAD_openacc_async_construct): Add int
3971         parameter.
3972         * oacc-async.c (lookup_goacc_asyncqueue): Pass device number to the
3973         queue constructor.
3974         * oacc-host.c (host_openacc_async_construct): Add device parameter.
3975         * plugin/plugin-nvptx.c (GOMP_OFFLOAD_openacc_async_construct): Add
3976         device parameter.
3978 2019-11-13  Andrew Stubbs  <ams@codesourcery.com>
3980         * configure.tgt (nvptx*-*-*): Add "accel" directory.
3981         * config/nvptx/libgomp-plugin.c: Move ...
3982         * config/accel/libgomp-plugin.c: ... to here.
3983         * config/nvptx/lock.c: Move ...
3984         * config/accel/lock.c: ... to here.
3985         * config/nvptx/mutex.c: Move ...
3986         * config/accel/mutex.c: ... to here.
3987         * config/nvptx/mutex.h: Move ...
3988         * config/accel/mutex.h: ... to here.
3989         * config/nvptx/oacc-async.c: Move ...
3990         * config/accel/oacc-async.c: ... to here.
3991         * config/nvptx/oacc-cuda.c: Move ...
3992         * config/accel/oacc-cuda.c: ... to here.
3993         * config/nvptx/oacc-host.c: Move ...
3994         * config/accel/oacc-host.c: ... to here.
3995         * config/nvptx/oacc-init.c: Move ...
3996         * config/accel/oacc-init.c: ... to here.
3997         * config/nvptx/oacc-mem.c: Move ...
3998         * config/accel/oacc-mem.c: ... to here.
3999         * config/nvptx/oacc-plugin.c: Move ...
4000         * config/accel/oacc-plugin.c: ... to here.
4001         * config/nvptx/omp-lock.h: Move ...
4002         * config/accel/omp-lock.h: ... to here.
4003         * config/nvptx/openacc.f90: Move ...
4004         * config/accel/openacc.f90: ... to here.
4005         * config/nvptx/pool.h: Move ...
4006         * config/accel/pool.h: ... to here.
4007         * config/nvptx/proc.c: Move ...
4008         * config/accel/proc.c: ... to here.
4009         * config/nvptx/ptrlock.c: Move ...
4010         * config/accel/ptrlock.c: ... to here.
4011         * config/nvptx/ptrlock.h: Move ...
4012         * config/accel/ptrlock.h: ... to here.
4013         * config/nvptx/sem.c: Move ...
4014         * config/accel/sem.c: ... to here.
4015         * config/nvptx/sem.h: Move ...
4016         * config/accel/sem.h: ... to here.
4017         * config/nvptx/thread-stacksize.h: Move ...
4018         * config/accel/thread-stacksize.h: ... to here.
4020 2019-11-12  Maciej W. Rozycki  <macro@codesourcery.com>
4021             Tobias Burnus  <tobias@codesourcery.com>
4022             Frederik Harwath  <frederik@codesourcery.com>
4023             Thomas Schwinge  <thomas@codesourcery.com>
4025         libgomp/
4026         * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: New test.
4027         * testsuite/libgomp.oacc-fortran/parallel-dims-aux.c: New test.
4028         * testsuite/libgomp.oacc-fortran/parallel-dims.f89: New test.
4030 2019-11-11  Tobias Burnus  <tobias@codesourcery.com>
4031             Kwok Cheung Yeung  <kcy@codesourcery.com>
4033         * testsuite/libgomp.fortran/use_device_ptr-optional-1.f90: Extend.
4034         * testsuite/libgomp.fortran/use_device_ptr-optional-2.f90: New.
4036 2019-11-11  Thomas Schwinge  <thomas@codesourcery.com>
4038         * testsuite/libgomp.fortran/target9.f90: Specify 'dg-do run'.
4040         * testsuite/libgomp.fortran/use_device_addr-3.f90: Specify 'dg-do
4041         run'.
4042         * testsuite/libgomp.fortran/use_device_addr-4.f90: Likewise.
4043         * testsuite/libgomp.fortran/use_device_ptr-1.f90: Likewise.
4045 2019-11-06  Thomas Schwinge  <thomas@codesourcery.com>
4047         * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-1.c:
4048         Add expected warnings about missing reduction clauses.
4049         * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-2.c:
4050         Likewise.
4051         * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-3.c:
4052         Likewise.
4053         * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-4.c:
4054         Likewise.
4056 2019-11-04  Tobias Burnus  <tobias@codesourcery.com>
4058         * testsuite/libgomp.fortran/pr66199-1.f90: Remove
4059         'dg-do run' (implies torture test) as 'dg-options "O2"' is used.
4060         * testsuite/libgomp.fortran/pr66199-2.f90: Ditto.
4061         * testsuite/libgomp.fortran/taskloop2.f90: Ditto.
4062         * testsuite/libgomp.fortran/taskloop3.f90: Ditto.
4063         * testsuite/libgomp.fortran/taskloop4.f90: Ditto.
4065 2019-11-04  Tobias Burnus  <tobias@codesourcery.com>
4067         PR fortran/92305
4068         * testsuite/libgomp.fortran/allocatable2.f90: Use
4069         unique numbers with 'stop'.
4070         * testsuite/libgomp.fortran/use_device_addr-1.f90: Ditto.
4071         * testsuite/libgomp.fortran/use_device_addr-2.f90: Ditto.
4072         * testsuite/libgomp.fortran/use_device_ptr-1.f90: Ditto.
4073         * testsuite/libgomp.oacc-fortran/lib-15.f90: Ditto.
4074         * testsuite/libgomp.oacc-fortran/pset-1.f90: Ditto.
4076 2019-11-01  Tobias Burnus  <tobias@codesourcery.com>
4078         * testsuite/libgomp.fortran/use_device_addr-1.f90 (test_nullptr_1,
4079         test_dummy_opt_nullptr_callee_1): Add present but unallocated test.
4080         * testsuite/libgomp.fortran/use_device_addr-2.f90: Likewise.
4081         * testsuite/libgomp.fortran/use_device_addr-3.f90: New.
4082         * testsuite/libgomp.fortran/use_device_addr-4.f90: New.
4083         * testsuite/testsuite/libgomp.fortran/use_device_ptr-1.f90: New.
4085 2019-10-30  Tobias Burnus  <tobias@codesourcery.com>
4087         * testsuite/libgomp.fortran/target9.f90: New.
4089 2019-10-30  Tobias Burnus  <tobias@codesourcery.com>
4091         * testsuite/libgomp.fortran/aligned1.f03: Replace 'STOP' by 'stop'.
4092         * testsuite/libgomp.fortran/alloc-comp-1.f90: Ditto.
4093         * testsuite/libgomp.fortran/alloc-comp-2.f90: Ditto.
4094         * testsuite/libgomp.fortran/alloc-comp-3.f90: Ditto.
4095         * testsuite/libgomp.fortran/allocatable1.f90: Ditto.
4096         * testsuite/libgomp.fortran/allocatable10.f90: Ditto.
4097         * testsuite/libgomp.fortran/allocatable11.f90: Ditto.
4098         * testsuite/libgomp.fortran/allocatable12.f90: Ditto.
4099         * testsuite/libgomp.fortran/allocatable2.f90: Ditto.
4100         * testsuite/libgomp.fortran/allocatable3.f90: Ditto.
4101         * testsuite/libgomp.fortran/allocatable4.f90: Ditto.
4102         * testsuite/libgomp.fortran/allocatable5.f90: Ditto.
4103         * testsuite/libgomp.fortran/allocatable6.f90: Ditto.
4104         * testsuite/libgomp.fortran/allocatable7.f90: Ditto.
4105         * testsuite/libgomp.fortran/allocatable8.f90: Ditto.
4106         * testsuite/libgomp.fortran/allocatable9.f90: Ditto.
4107         * testsuite/libgomp.fortran/associate1.f90: Ditto.
4108         * testsuite/libgomp.fortran/associate2.f90: Ditto.
4109         * testsuite/libgomp.fortran/associate3.f90: Ditto.
4110         * testsuite/libgomp.fortran/async_io_4.f90: Ditto.
4111         * testsuite/libgomp.fortran/async_io_5.f90: Ditto.
4112         * testsuite/libgomp.fortran/async_io_6.f90: Ditto.
4113         * testsuite/libgomp.fortran/async_io_7.f90: Ditto.
4114         * testsuite/libgomp.fortran/cancel-do-1.f90: Ditto.
4115         * testsuite/libgomp.fortran/cancel-do-2.f90: Ditto.
4116         * testsuite/libgomp.fortran/cancel-parallel-1.f90: Ditto.
4117         * testsuite/libgomp.fortran/cancel-sections-1.f90: Ditto.
4118         * testsuite/libgomp.fortran/cancel-taskgroup-2.f90: Ditto.
4119         * testsuite/libgomp.fortran/character1.f90: Ditto.
4120         * testsuite/libgomp.fortran/character2.f90: Ditto.
4121         * testsuite/libgomp.fortran/collapse1.f90: Ditto.
4122         * testsuite/libgomp.fortran/collapse2.f90: Ditto.
4123         * testsuite/libgomp.fortran/collapse3.f90: Ditto.
4124         * testsuite/libgomp.fortran/collapse4.f90: Ditto.
4125         * testsuite/libgomp.fortran/crayptr1.f90: Ditto.
4126         * testsuite/libgomp.fortran/crayptr2.f90: Ditto.
4127         * testsuite/libgomp.fortran/crayptr3.f90: Ditto.
4128         * testsuite/libgomp.fortran/declare-simd-1.f90: Ditto.
4129         * testsuite/libgomp.fortran/declare-simd-3.f90: Ditto.
4130         * testsuite/libgomp.fortran/declare-target-2.f90: Ditto.
4131         * testsuite/libgomp.fortran/depend-1.f90: Ditto.
4132         * testsuite/libgomp.fortran/depend-2.f90: Ditto.
4133         * testsuite/libgomp.fortran/depend-3.f90: Ditto.
4134         * testsuite/libgomp.fortran/do1.f90: Ditto.
4135         * testsuite/libgomp.fortran/do2.f90: Ditto.
4136         * testsuite/libgomp.fortran/do_concurrent_5.f90: Ditto.
4137         * testsuite/libgomp.fortran/doacross1.f90: Ditto.
4138         * testsuite/libgomp.fortran/doacross2.f90: Ditto.
4139         * testsuite/libgomp.fortran/doacross3.f90: Ditto.
4140         * testsuite/libgomp.fortran/examples-4/array_sections-3.f90: Ditto.
4141         * testsuite/libgomp.fortran/examples-4/array_sections-4.f90: Ditto.
4142         * testsuite/libgomp.fortran/examples-4/async_target-1.f90: Ditto.
4143         * testsuite/libgomp.fortran/examples-4/async_target-2.f90: Ditto.
4144         * testsuite/libgomp.fortran/examples-4/declare_target-1.f90: Ditto.
4145         * testsuite/libgomp.fortran/examples-4/declare_target-2.f90: Ditto.
4146         * testsuite/libgomp.fortran/examples-4/declare_target-3.f90: Ditto.
4147         * testsuite/libgomp.fortran/examples-4/declare_target-4.f90: Ditto.
4148         * testsuite/libgomp.fortran/examples-4/declare_target-5.f90: Ditto.
4149         * testsuite/libgomp.fortran/examples-4/device-1.f90: Ditto.
4150         * testsuite/libgomp.fortran/examples-4/device-2.f90: Ditto.
4151         * testsuite/libgomp.fortran/examples-4/device-3.f90: Ditto.
4152         * testsuite/libgomp.fortran/examples-4/simd-1.f90: Ditto.
4153         * testsuite/libgomp.fortran/examples-4/simd-2.f90: Ditto.
4154         * testsuite/libgomp.fortran/examples-4/simd-3.f90: Ditto.
4155         * testsuite/libgomp.fortran/examples-4/simd-4.f90: Ditto.
4156         * testsuite/libgomp.fortran/examples-4/simd-5.f90: Ditto.
4157         * testsuite/libgomp.fortran/examples-4/simd-6.f90: Ditto.
4158         * testsuite/libgomp.fortran/examples-4/simd-7.f90: Ditto.
4159         * testsuite/libgomp.fortran/examples-4/simd-8.f90: Ditto.
4160         * testsuite/libgomp.fortran/examples-4/target-1.f90: Ditto.
4161         * testsuite/libgomp.fortran/examples-4/target-2.f90: Ditto.
4162         * testsuite/libgomp.fortran/examples-4/target-3.f90: Ditto.
4163         * testsuite/libgomp.fortran/examples-4/target-4.f90: Ditto.
4164         * testsuite/libgomp.fortran/examples-4/target-5.f90: Ditto.
4165         * testsuite/libgomp.fortran/examples-4/target_data-1.f90: Ditto.
4166         * testsuite/libgomp.fortran/examples-4/target_data-2.f90: Ditto.
4167         * testsuite/libgomp.fortran/examples-4/target_data-3.f90: Ditto.
4168         * testsuite/libgomp.fortran/examples-4/target_data-4.f90: Ditto.
4169         * testsuite/libgomp.fortran/examples-4/target_data-5.f90: Ditto.
4170         * testsuite/libgomp.fortran/examples-4/target_data-6.f90: Ditto.
4171         * testsuite/libgomp.fortran/examples-4/target_data-7.f90: Ditto.
4172         * testsuite/libgomp.fortran/examples-4/target_update-1.f90: Ditto.
4173         * testsuite/libgomp.fortran/examples-4/target_update-2.f90: Ditto.
4174         * testsuite/libgomp.fortran/examples-4/task_dep-1.f90: Ditto.
4175         * testsuite/libgomp.fortran/examples-4/task_dep-2.f90: Ditto.
4176         * testsuite/libgomp.fortran/examples-4/task_dep-3.f90: Ditto.
4177         * testsuite/libgomp.fortran/examples-4/task_dep-4.f90: Ditto.
4178         * testsuite/libgomp.fortran/examples-4/task_dep-5.f90: Ditto.
4179         * testsuite/libgomp.fortran/examples-4/teams-2.f90: Ditto.
4180         * testsuite/libgomp.fortran/examples-4/teams-3.f90: Ditto.
4181         * testsuite/libgomp.fortran/examples-4/teams-4.f90: Ditto.
4182         * testsuite/libgomp.fortran/examples-4/teams-5.f90: Ditto.
4183         * testsuite/libgomp.fortran/examples-4/teams-6.f90: Ditto.
4184         * testsuite/libgomp.fortran/lastprivate1.f90: Ditto.
4185         * testsuite/libgomp.fortran/lastprivate2.f90: Ditto.
4186         * testsuite/libgomp.fortran/lib1.f90: Ditto.
4187         * testsuite/libgomp.fortran/lib4.f90: Ditto.
4188         * testsuite/libgomp.fortran/lock-1.f90: Ditto.
4189         * testsuite/libgomp.fortran/lock-2.f90: Ditto.
4190         * testsuite/libgomp.fortran/nested1.f90: Ditto.
4191         * testsuite/libgomp.fortran/nestedfn1.f90: Ditto.
4192         * testsuite/libgomp.fortran/nestedfn2.f90: Ditto.
4193         * testsuite/libgomp.fortran/nestedfn3.f90: Ditto.
4194         * testsuite/libgomp.fortran/nestedfn4.f90: Ditto.
4195         * testsuite/libgomp.fortran/nestedfn5.f90: Ditto.
4196         * testsuite/libgomp.fortran/omp_atomic1.f90: Ditto.
4197         * testsuite/libgomp.fortran/omp_atomic2.f90: Ditto.
4198         * testsuite/libgomp.fortran/omp_atomic3.f90: Ditto.
4199         * testsuite/libgomp.fortran/omp_atomic4.f90: Ditto.
4200         * testsuite/libgomp.fortran/omp_atomic5.f90: Ditto.
4201         * testsuite/libgomp.fortran/omp_cond1.f: Ditto.
4202         * testsuite/libgomp.fortran/omp_cond2.f: Ditto.
4203         * testsuite/libgomp.fortran/omp_cond3.F90: Ditto.
4204         * testsuite/libgomp.fortran/omp_cond4.F90: Ditto.
4205         * testsuite/libgomp.fortran/omp_parse1.f90: Ditto.
4206         * testsuite/libgomp.fortran/omp_parse2.f90: Ditto.
4207         * testsuite/libgomp.fortran/omp_parse3.f90: Ditto.
4208         * testsuite/libgomp.fortran/omp_parse4.f90: Ditto.
4209         * testsuite/libgomp.fortran/openmp_version-1.f: Ditto.
4210         * testsuite/libgomp.fortran/openmp_version-2.f90: Ditto.
4211         * testsuite/libgomp.fortran/parloops-exit-first-loop-alt-2.f95: Ditto.
4212         * testsuite/libgomp.fortran/parloops-exit-first-loop-alt.f95: Ditto.
4213         * testsuite/libgomp.fortran/pointer1.f90: Ditto.
4214         * testsuite/libgomp.fortran/pointer2.f90: Ditto.
4215         * testsuite/libgomp.fortran/pr25219.f90: Ditto.
4216         * testsuite/libgomp.fortran/pr27395-1.f90: Ditto.
4217         * testsuite/libgomp.fortran/pr27395-2.f90: Ditto.
4218         * testsuite/libgomp.fortran/pr27416-1.f90: Ditto.
4219         * testsuite/libgomp.fortran/pr27916-1.f90: Ditto.
4220         * testsuite/libgomp.fortran/pr27916-2.f90: Ditto.
4221         * testsuite/libgomp.fortran/pr28390.f: Ditto.
4222         * testsuite/libgomp.fortran/pr29629.f90: Ditto.
4223         * testsuite/libgomp.fortran/pr32550.f90: Ditto.
4224         * testsuite/libgomp.fortran/pr33880.f90: Ditto.
4225         * testsuite/libgomp.fortran/pr34020.f90: Ditto.
4226         * testsuite/libgomp.fortran/pr35130.f90: Ditto.
4227         * testsuite/libgomp.fortran/pr42162.f90: Ditto.
4228         * testsuite/libgomp.fortran/pr46753.f90: Ditto.
4229         * testsuite/libgomp.fortran/pr48894.f90: Ditto.
4230         * testsuite/libgomp.fortran/pr49792-1.f90: Ditto.
4231         * testsuite/libgomp.fortran/pr49792-2.f90: Ditto.
4232         * testsuite/libgomp.fortran/pr63938-1.f90: Ditto.
4233         * testsuite/libgomp.fortran/pr63938-2.f90: Ditto.
4234         * testsuite/libgomp.fortran/pr65597.f90: Ditto.
4235         * testsuite/libgomp.fortran/pr66199-1.f90: Ditto.
4236         * testsuite/libgomp.fortran/pr71014.f90: Ditto.
4237         * testsuite/libgomp.fortran/pr81304.f90: Ditto.
4238         * testsuite/libgomp.fortran/pr81841.f90: Ditto.
4239         * testsuite/libgomp.fortran/pr84418-1.f90: Ditto.
4240         * testsuite/libgomp.fortran/pr84418-2.f90: Ditto.
4241         * testsuite/libgomp.fortran/procptr1.f90: Ditto.
4242         * testsuite/libgomp.fortran/recursion1.f90: Ditto.
4243         * testsuite/libgomp.fortran/reduction1.f90: Ditto.
4244         * testsuite/libgomp.fortran/reduction2.f90: Ditto.
4245         * testsuite/libgomp.fortran/reduction3.f90: Ditto.
4246         * testsuite/libgomp.fortran/reduction4.f90: Ditto.
4247         * testsuite/libgomp.fortran/reduction5.f90: Ditto.
4248         * testsuite/libgomp.fortran/reduction6.f90: Ditto.
4249         * testsuite/libgomp.fortran/reference1.f90: Ditto.
4250         * testsuite/libgomp.fortran/reference2.f90: Ditto.
4251         * testsuite/libgomp.fortran/retval1.f90: Ditto.
4252         * testsuite/libgomp.fortran/retval2.f90: Ditto.
4253         * testsuite/libgomp.fortran/sharing1.f90: Ditto.
4254         * testsuite/libgomp.fortran/sharing2.f90: Ditto.
4255         * testsuite/libgomp.fortran/simd1.f90: Ditto.
4256         * testsuite/libgomp.fortran/simd2.f90: Ditto.
4257         * testsuite/libgomp.fortran/simd3.f90: Ditto.
4258         * testsuite/libgomp.fortran/simd4.f90: Ditto.
4259         * testsuite/libgomp.fortran/simd5.f90: Ditto.
4260         * testsuite/libgomp.fortran/simd6.f90: Ditto.
4261         * testsuite/libgomp.fortran/simd7.f90: Ditto.
4262         * testsuite/libgomp.fortran/stack.f90: Ditto.
4263         * testsuite/libgomp.fortran/strassen.f90: Ditto.
4264         * testsuite/libgomp.fortran/tabs1.f90: Ditto.
4265         * testsuite/libgomp.fortran/tabs2.f: Ditto.
4266         * testsuite/libgomp.fortran/target1.f90: Ditto.
4267         * testsuite/libgomp.fortran/target2.f90: Ditto.
4268         * testsuite/libgomp.fortran/target3.f90: Ditto.
4269         * testsuite/libgomp.fortran/target4.f90: Ditto.
4270         * testsuite/libgomp.fortran/target5.f90: Ditto.
4271         * testsuite/libgomp.fortran/target6.f90: Ditto.
4272         * testsuite/libgomp.fortran/target7.f90: Ditto.
4273         * testsuite/libgomp.fortran/target8.f90: Ditto.
4274         * testsuite/libgomp.fortran/task1.f90: Ditto.
4275         * testsuite/libgomp.fortran/task2.f90: Ditto.
4276         * testsuite/libgomp.fortran/task3.f90: Ditto.
4277         * testsuite/libgomp.fortran/task4.f90: Ditto.
4278         * testsuite/libgomp.fortran/taskgroup1.f90: Ditto.
4279         * testsuite/libgomp.fortran/taskloop1.f90: Ditto.
4280         * testsuite/libgomp.fortran/taskloop2.f90: Ditto.
4281         * testsuite/libgomp.fortran/taskloop3.f90: Ditto.
4282         * testsuite/libgomp.fortran/taskloop4.f90: Ditto.
4283         * testsuite/libgomp.fortran/threadprivate1.f90: Ditto.
4284         * testsuite/libgomp.fortran/threadprivate2.f90: Ditto.
4285         * testsuite/libgomp.fortran/threadprivate3.f90: Ditto.
4286         * testsuite/libgomp.fortran/threadprivate4.f90: Ditto.
4287         * testsuite/libgomp.fortran/udr1.f90: Ditto.
4288         * testsuite/libgomp.fortran/udr10.f90: Ditto.
4289         * testsuite/libgomp.fortran/udr11.f90: Ditto.
4290         * testsuite/libgomp.fortran/udr12.f90: Ditto.
4291         * testsuite/libgomp.fortran/udr13.f90: Ditto.
4292         * testsuite/libgomp.fortran/udr14.f90: Ditto.
4293         * testsuite/libgomp.fortran/udr15.f90: Ditto.
4294         * testsuite/libgomp.fortran/udr2.f90: Ditto.
4295         * testsuite/libgomp.fortran/udr3.f90: Ditto.
4296         * testsuite/libgomp.fortran/udr4.f90: Ditto.
4297         * testsuite/libgomp.fortran/udr5.f90: Ditto.
4298         * testsuite/libgomp.fortran/udr6.f90: Ditto.
4299         * testsuite/libgomp.fortran/udr7.f90: Ditto.
4300         * testsuite/libgomp.fortran/udr8.f90: Ditto.
4301         * testsuite/libgomp.fortran/udr9.f90: Ditto.
4302         * testsuite/libgomp.fortran/vla1.f90: Ditto.
4303         * testsuite/libgomp.fortran/vla2.f90: Ditto.
4304         * testsuite/libgomp.fortran/vla3.f90: Ditto.
4305         * testsuite/libgomp.fortran/vla4.f90: Ditto.
4306         * testsuite/libgomp.fortran/vla5.f90: Ditto.
4307         * testsuite/libgomp.fortran/vla6.f90: Ditto.
4308         * testsuite/libgomp.fortran/vla7.f90: Ditto.
4309         * testsuite/libgomp.fortran/vla8.f90: Ditto.
4310         * testsuite/libgomp.fortran/workshare1.f90: Ditto.
4311         * testsuite/libgomp.fortran/workshare2.f90: Ditto.
4313 2019-10-30  Tobias Burnus  <tobias@codesourcery.com>
4315         * testsuite/libgomp.fortran/target-simd.f90: Use stop not abort.
4316         * testsuite/libgomp.fortran/use_device_ptr-optional-1.f90:
4317         Ditto; add 'dg-do run' for torture testing.
4318         * testsuite/libgomp.fortran/lastprivate1.f90:  Add 'dg-do run'.
4319         * testsuite/libgomp.fortran/lastprivate2.f90: Ditto.
4320         * testsuite/libgomp.fortran/nestedfn4.f90: Ditto.
4321         * testsuite/libgomp.fortran/pr25219.f90: Ditto.
4322         * testsuite/libgomp.fortran/pr28390.f: Ditto.
4323         * testsuite/libgomp.fortran/pr35130.f90: Ditto.
4324         * testsuite/libgomp.fortran/pr90779.f90: Ditto.
4325         * testsuite/libgomp.fortran/task2.f90: Ditto.
4326         * testsuite/libgomp.fortran/taskgroup1.f90: Ditto.
4327         * testsuite/libgomp.fortran/taskloop1.f90: Ditto.
4328         * testsuite/libgomp.fortran/use_device_addr-1.f90: Ditto.
4329         * testsuite/libgomp.fortran/use_device_addr-2.f90: Ditto.
4330         * testsuite/libgomp.fortran/workshare1.f90: Ditto.
4331         * testsuite/libgomp.fortran/workshare2.f90: Ditto.
4333 2019-10-28  Tobias Burnus  <tobias@codesourcery.com>
4335         * testsuite/libgomp.oacc-fortran/abort-1.f90: Add 'dg-do run'.
4336         * testsuite/libgomp.oacc-fortran/abort-2.f90: Ditto.
4337         * testsuite/libgomp.oacc-fortran/acc_on_device-1-1.f90: Ditto.
4338         * testsuite/libgomp.oacc-fortran/acc_on_device-1-2.f90: Ditto.
4339         * testsuite/libgomp.oacc-fortran/acc_on_device-1-3.f90: Ditto.
4340         * testsuite/libgomp.oacc-fortran/lib-1.f90: Ditto.
4341         * testsuite/libgomp.oacc-fortran/common-block-1.f90:
4342         Use 'stop' not abort().
4343         * testsuite/libgomp.oacc-fortran/common-block-2.f90: Ditto.
4344         * testsuite/libgomp.oacc-fortran/common-block-3.f90: Ditto.
4345         * testsuite/libgomp.oacc-fortran/data-1.f90: Ditto.
4346         * testsuite/libgomp.oacc-fortran/data-2.f90: Ditto.
4347         * testsuite/libgomp.oacc-fortran/data-5.f90: Ditto.
4348         * testsuite/libgomp.oacc-fortran/dummy-array.f90: Ditto.
4349         * testsuite/libgomp.oacc-fortran/gemm-2.f90: Ditto.
4350         * testsuite/libgomp.oacc-fortran/gemm.f90: Ditto.
4351         * testsuite/libgomp.oacc-fortran/host_data-2.f90: Ditto.
4352         * testsuite/libgomp.oacc-fortran/host_data-3.f90: Ditto.
4353         * testsuite/libgomp.oacc-fortran/host_data-4.f90: Ditto.
4354         * testsuite/libgomp.oacc-fortran/kernels-collapse-3.f90: Ditto.
4355         * testsuite/libgomp.oacc-fortran/kernels-collapse-4.f90: Ditto.
4356         * testsuite/libgomp.oacc-fortran/kernels-independent.f90: Ditto.
4357         * testsuite/libgomp.oacc-fortran/kernels-loop-1.f90: Ditto.
4358         * testsuite/libgomp.oacc-fortran/kernels-map-1.f90: Ditto.
4359         * testsuite/libgomp.oacc-fortran/kernels-parallel-loop-data-enter-exit.f95:
4360         Ditto.
4361         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-1.f90:
4362         Ditto.
4363         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-2.f90:
4364         Ditto.
4365         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-3.f90:
4366         Ditto.
4367         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-6.f90:
4368         Ditto.
4369         * testsuite/libgomp.oacc-fortran/kernels-private-vars-vector-1.f90:
4370         Ditto.
4371         * testsuite/libgomp.oacc-fortran/kernels-private-vars-vector-2.f90:
4372         Ditto.
4373         * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-1.f90:
4374         Ditto.
4375         * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-2.f90:
4376         Ditto.
4377         * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-3.f90:
4378         Ditto.
4379         * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-4.f90:
4380         Ditto.
4381         * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-5.f90:
4382         Ditto.
4383         * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-6.f90:
4384         Ditto.
4385         * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-7.f90:
4386         Ditto.
4387         * testsuite/libgomp.oacc-fortran/kernels-reduction-1.f90: Ditto.
4388         * testsuite/libgomp.oacc-fortran/lib-12.f90: Ditto.
4389         * testsuite/libgomp.oacc-fortran/lib-13.f90: Ditto.
4390         * testsuite/libgomp.oacc-fortran/lib-14.f90: Ditto.
4391         * testsuite/libgomp.oacc-fortran/kernels-acc-loop-reduction-2.f90:
4392         Likewise and also add 'dg-do run'.
4393         * testsuite/libgomp.oacc-fortran/kernels-acc-loop-reduction.f90:
4394         Ditto.
4396 2019-10-25  Cesar Philippidis <cesar@codesourcery.com>
4397             Tobias Burnus  <tobias@codesourcery.com>
4399         * testsuite/libgomp.oacc-fortran/common-block-1.f90: New test.
4400         * testsuite/libgomp.oacc-fortran/common-block-2.f90: New test.
4401         * testsuite/libgomp.oacc-fortran/common-block-3.f90: New test.
4403 2019-10-14  Jakub Jelinek  <jakub@redhat.com>
4405         PR libgomp/92081
4406         * testsuite/libgomp.fortran/target-simd.f90: Iterate from 1 rather
4407         than 0.
4409 2019-10-11  Tobias Burnus  <tobias@codesourcery.com>
4411         * testsuite/libgomp.fortran/use_device_addr-1.f90: New.
4412         * testsuite/libgomp.fortran/use_device_addr-2.f90: New.
4414 2019-10-09  Thomas Schwinge  <thomas@codesourcery.com>
4416         PR middle-end/92036
4417         * testsuite/libgomp.oacc-c-c++-common/data-firstprivate-1.c: New
4418         file.
4420 2019-10-09  Tobias Burnus  <tobias@codesourcery.com>
4422         PR testsuite/91884
4423         * testsuite/libgomp.fortran/fortran.exp: Conditionally
4424         add -lquadmath.
4425         * testsuite/libgomp.oacc-fortran/fortran.exp: Ditto.
4427 2019-10-09  Jakub Jelinek  <jakub@redhat.com>
4429         PR libgomp/92028
4430         * target.c (gomp_map_vars_internal): Readd the previous
4431         GOMP_MAP_USE_DEVICE_PTR handling code in the first loop,
4432         though do that just in the !not_found_cnt case.
4434 2019-10-08  Tobias Burnus  <tobias@codesourcery.com>
4436         * gfortran.dg/gomp/target-simd.f90: New.
4438 2019-10-02  Julian Brown  <julian@codesourcery.com>
4439             Cesar Philippidis  <cesar@codesourcery.com>
4441         * libgomp.h (OFFSET_INLINED, OFFSET_POINTER, OFFSET_STRUCT): Define.
4442         * target.c (FIELD_TGT_EMPTY): Define.
4443         (gomp_map_val): Use OFFSET_* macros instead of magic constants.  Write
4444         as switch instead of list of ifs.
4445         (gomp_map_vars_internal): Use OFFSET_* and FIELD_TGT_EMPTY macros.
4447 2019-10-02  Andreas Tobler  <andreast@gcc.gnu.org>
4449         * testsuite/libgomp.oacc-c-c++-common/loop-default.h: Remove alloca.h
4450         include. Replace alloca () with __builtin_alloca ().
4451         * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: Likewise.
4453 2019-10-01  Jakub Jelinek  <jakub@redhat.com>
4455         * configure.ac: Remove GCC_HEADER_STDINT(gstdint.h).
4456         * libgomp.h: Include <stdint.h> instead of "gstdint.h".
4457         * oacc-parallel.c: Don't include "libgomp_g.h".
4458         * plugin/plugin-hsa.c: Include <stdint.h> instead of "gstdint.h".
4459         * plugin/plugin-nvptx.c: Don't include "gstdint.h".
4460         * aclocal.m4: Regenerated.
4461         * config.h.in: Regenerated.
4462         * configure: Regenerated.
4463         * Makefile.in: Regenerated.
4465 2019-09-30  Kwok Cheung Yeung  <kcy@codesourcery.com>
4467         * libgomp_g.h: Include stdint.h instead of gstdint.h.
4469 2019-09-27  Maciej W. Rozycki  <macro@wdc.com>
4471         * configure: Regenerate.
4473 2019-09-13  Tobias Burnus  <tobias@codesourcery.com>
4475         * plugin/plugin-hsa.c (hsa_warn, hsa_fatal, hsa_error): Ensure
4476         string is initialized.
4478 2019-09-06  Florian Weimer  <fweimer@redhat.com>
4480         * configure: Regenerate.
4482 2019-09-03  Chung-Lin Tang  <cltang@codesourcery.com>
4484         PR other/79543
4485         * acinclude.m4 (LIBGOMP_CHECK_LINKER_FEATURES): Fix GNU ld --version
4486         scanning to conform to the GNU Coding Standards.
4487         * configure: Regenerate.
4489 2019-08-28  Jakub Jelinek  <jakub@redhat.com>
4491         PR libgomp/91530
4492         * testsuite/libgomp.c/scan-21.c: New test.
4493         * testsuite/libgomp.c/scan-22.c: New test.
4495 2019-08-27  Jakub Jelinek  <jakub@redhat.com>
4497         PR libgomp/91530
4498         * testsuite/libgomp.c/scan-11.c: Add -msse2 option for sse2_runtime
4499         targets.
4500         * testsuite/libgomp.c/scan-12.c: Likewise.
4501         * testsuite/libgomp.c/scan-13.c: Likewise.
4502         * testsuite/libgomp.c/scan-14.c: Likewise.
4503         * testsuite/libgomp.c/scan-15.c: Likewise.
4504         * testsuite/libgomp.c/scan-16.c: Likewise.
4505         * testsuite/libgomp.c/scan-17.c: Likewise.
4506         * testsuite/libgomp.c/scan-18.c: Likewise.
4507         * testsuite/libgomp.c/scan-19.c: Likewise.
4508         * testsuite/libgomp.c/scan-20.c: Likewise.
4509         * testsuite/libgomp.c++/scan-9.C: Likewise.
4510         * testsuite/libgomp.c++/scan-10.C: Likewise.
4511         * testsuite/libgomp.c++/scan-11.C: Likewise.
4512         * testsuite/libgomp.c++/scan-12.C: Likewise.
4513         * testsuite/libgomp.c++/scan-14.C: Likewise.
4514         * testsuite/libgomp.c++/scan-15.C: Likewise.
4515         * testsuite/libgomp.c++/scan-13.C: Likewise.  Use sse2_runtime
4516         instead of i?86-*-* x86_64-*-* as target for scan-tree-dump-times.
4517         * testsuite/libgomp.c++/scan-16.C: Likewise.
4519 2019-08-17  Thomas Koenig  <tkoenig@gcc.gnu.org>
4521         PR fortran/91473
4522         * testsuite/libgomp.fortran/appendix-a/a.28.5.f90: Add
4523         -std=legacy so invalid code in the test case is accepted.
4525 2019-08-12  Thomas Koenig  <tkoenig@gcc.gnu.org>
4527         PR fortran/91422
4528         * testsuite/libgomp.oacc-fortran/routine-7.f90: Correct array
4529         dimension.
4531 2019-08-08  Jakub Jelinek  <jakub@redhat.com>
4533         * target.c (gomp_map_vars_internal): For GOMP_MAP_USE_DEVICE_PTR
4534         perform the lookup in the first loop only if !not_found_cnt, otherwise
4535         perform lookups for it in the second loop guarded with
4536         if (not_found_cnt || has_firstprivate).
4537         * testsuite/libgomp.c/target-37.c: New test.
4538         * testsuite/libgomp.c++/target-22.C: New test.
4540 2019-08-07  Jakub Jelinek  <jakub@redhat.com>
4542         * testsuite/libgomp.c/target-18.c (struct S): New type.
4543         (foo): Use use_device_addr clause instead of use_device_ptr clause
4544         where required by OpenMP 5.0, add further tests for both use_device_ptr
4545         and use_device_addr clauses.
4546         * testsuite/libgomp.c++/target-9.C (struct S): New type.
4547         (foo): Use use_device_addr clause instead of use_device_ptr clause
4548         where required by OpenMP 5.0, add further tests for both use_device_ptr
4549         and use_device_addr clauses.  Add t and u arguments.
4550         (main): Adjust caller.
4552 2019-08-06  Jakub Jelinek  <jakub@redhat.com>
4554         * testsuite/libgomp.c++/loop-13.C: New test.
4555         * testsuite/libgomp.c++/loop-14.C: New test.
4556         * testsuite/libgomp.c++/loop-15.C: New test.
4558 2019-07-31  Jakub Jelinek  <jakub@redhat.com>
4560         PR middle-end/91301
4561         * testsuite/libgomp.c++/for-27.C: New test.
4563 2019-07-23  Steven G. Kargl  <kargl@gcc.gnu.org>
4565         * testsuite/libgomp.fortran/reduction4.f90: Update BOZ usage.
4566         * testsuite/libgomp.fortran/reduction5.f90: Ditto.
4568 2019-07-20  Jakub Jelinek  <jakub@redhat.com>
4570         * testsuite/libgomp.c-c++-common/loop-1.c: New test.
4572 2019-07-08  Jakub Jelinek  <jakub@redhat.com>
4574         * testsuite/libgomp.c++/scan-13.C: Replace xfail with target x86.
4575         * testsuite/libgomp.c++/scan-16.C: Likewise.
4577 2019-07-06  Jakub Jelinek  <jakub@redhat.com>
4579         * testsuite/libgomp.c/scan-19.c: New test.
4580         * testsuite/libgomp.c/scan-20.c: New test.
4582         * testsuite/libgomp.c/scan-11.c: New test.
4583         * testsuite/libgomp.c/scan-12.c: New test.
4584         * testsuite/libgomp.c/scan-13.c: New test.
4585         * testsuite/libgomp.c/scan-14.c: New test.
4586         * testsuite/libgomp.c/scan-15.c: New test.
4587         * testsuite/libgomp.c/scan-16.c: New test.
4588         * testsuite/libgomp.c/scan-17.c: New test.
4589         * testsuite/libgomp.c/scan-18.c: New test.
4590         * testsuite/libgomp.c++/scan-9.C: New test.
4591         * testsuite/libgomp.c++/scan-10.C: New test.
4592         * testsuite/libgomp.c++/scan-11.C: New test.
4593         * testsuite/libgomp.c++/scan-12.C: New test.
4594         * testsuite/libgomp.c++/scan-13.C: New test.
4595         * testsuite/libgomp.c++/scan-14.C: New test.
4596         * testsuite/libgomp.c++/scan-15.C: New test.
4597         * testsuite/libgomp.c++/scan-16.C: New test.
4599 2019-07-04  Jakub Jelinek  <jakub@redhat.com>
4601         * testsuite/libgomp.c/scan-9.c: New test.
4602         * testsuite/libgomp.c/scan-10.c: New test.
4604 2019-07-03  Jakub Jelinek  <jakub@redhat.com>
4606         * testsuite/libgomp.c++/scan-1.C: New test.
4607         * testsuite/libgomp.c++/scan-2.C: New test.
4608         * testsuite/libgomp.c++/scan-3.C: New test.
4609         * testsuite/libgomp.c++/scan-4.C: New test.
4610         * testsuite/libgomp.c++/scan-5.C: New test.
4611         * testsuite/libgomp.c++/scan-6.C: New test.
4612         * testsuite/libgomp.c++/scan-7.C: New test.
4613         * testsuite/libgomp.c++/scan-8.C: New test.
4614         * testsuite/libgomp.c/scan-1.c: New test.
4615         * testsuite/libgomp.c/scan-2.c: New test.
4616         * testsuite/libgomp.c/scan-3.c: New test.
4617         * testsuite/libgomp.c/scan-4.c: New test.
4618         * testsuite/libgomp.c/scan-5.c: New test.
4619         * testsuite/libgomp.c/scan-6.c: New test.
4620         * testsuite/libgomp.c/scan-7.c: New test.
4621         * testsuite/libgomp.c/scan-8.c: New test.
4623 2019-06-18  Thomas Schwinge  <thomas@codesourcery.com>
4625         * testsuite/libgomp.oacc-c++/firstprivate-mappings-1.C: New file.
4626         * testsuite/libgomp.oacc-c-c++-common/firstprivate-mappings-1.c:
4627         Likewise.
4629         * testsuite/libgomp.fortran/allocatable3.f90: Add missing results
4630         check.
4632 2019-06-18  Cesar Philippidis  <cesar@codesourcery.com>
4634         * testsuite/libgomp.oacc-fortran/allocatable-array-1.f90: New
4635         file.
4637 2019-06-18  Thomas Schwinge  <thomas@codesourcery.com>
4639         PR fortran/90743
4640         * oacc-parallel.c (GOACC_parallel_keyed): Handle NULL mapping
4641         case.
4642         * testsuite/libgomp.fortran/target-allocatable-1-1.f90: New file.
4643         * testsuite/libgomp.fortran/target-allocatable-1-2.f90: Likewise.
4644         * testsuite/libgomp.oacc-fortran/allocatable-1-1.f90: Likewise.
4645         * testsuite/libgomp.oacc-fortran/allocatable-1-2.f90: Likewise.
4647         PR testsuite/90861
4648         * testsuite/libgomp.oacc-c-c++-common/declare-vla.c: Update.
4650         PR middle-end/90862
4651         * testsuite/libgomp.oacc-c-c++-common/declare-1.c: Update.
4653 2019-06-16  Tom de Vries  <tdevries@suse.de>
4655         PR tree-optimization/89376
4656         * testsuite/libgomp.oacc-c-c++-common/pr89376.c: New test.
4658 2019-06-15  Tom de Vries  <tdevries@suse.de>
4660         PR tree-optimization/89713
4661         * testsuite/libgomp.oacc-c-c++-common/pr85381-2.c: Expect no bar.sync.
4662         * testsuite/libgomp.oacc-c-c++-common/pr85381-4.c: Same.
4664 2019-06-15  Jakub Jelinek  <jakub@redhat.com>
4666         PR middle-end/90779
4667         * testsuite/libgomp.c/pr90779.c: New test.
4668         * testsuite/libgomp.fortran/pr90779.f90: New test.
4670 2019-06-15  Tom de Vries  <tdevries@suse.de>
4672         PR tree-optimization/90009
4673         * testsuite/libgomp.oacc-c-c++-common/pr90009.c: New test.
4675 2019-06-13  Feng Xue  <fxue@os.amperecomputing.com>
4677         PR tree-optimization/89713
4678         * testsuite/libgomp.oacc-c-c++-common/pr84955-1.c: New test.
4680 2019-06-11  Jakub Jelinek  <jakub@redhat.com>
4682         PR target/90811
4683         * testsuite/libgomp.c/pr90811.c: New test.
4685 2019-06-05  Jakub Jelinek  <jakub@redhat.com>
4687         * testsuite/libgomp.c++/lastprivate-conditional-1.C: New test.
4688         * testsuite/libgomp.c++/lastprivate-conditional-2.C: New test.
4690 2019-06-04  Jakub Jelinek  <jakub@redhat.com>
4692         * testsuite/libgomp.c-c++-common/lastprivate-conditional-7.c: New test.
4693         * testsuite/libgomp.c-c++-common/lastprivate-conditional-8.c: New test.
4694         * testsuite/libgomp.c-c++-common/lastprivate-conditional-9.c: New test.
4695         * testsuite/libgomp.c-c++-common/lastprivate-conditional-10.c: New test.
4697 2019-05-30  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
4699         * configure.ac: Call AX_COUNT_CPUS.
4700         Substitute CPU_COUNT.
4701         * testsuite/Makefile.am (check-am): Use CPU_COUNT as processor
4702         count fallback.
4703         * aclocal.m4: Regenerate.
4704         * configure: Regenerate.
4705         * Makefile.in, testsuite/Makefile.in: Regenerate.
4707 2019-05-29  Jakub Jelinek  <jakub@redhat.com>
4709         * testsuite/libgomp.c-c++-common/lastprivate_conditional_4.c: Rename
4710         to ...
4711         * testsuite/libgomp.c-c++-common/lastprivate-conditional-4.c: ... this.
4712         * testsuite/libgomp.c-c++-common/lastprivate-conditional-5.c: New test.
4713         * testsuite/libgomp.c-c++-common/lastprivate-conditional-6.c: New test.
4715 2019-05-27  Jakub Jelinek  <jakub@redhat.com>
4717         * testsuite/libgomp.c-c++-common/lastprivate_conditional_4.c: New test.
4719         * testsuite/libgomp.c-c++-common/lastprivate-conditional-3.c: New test.
4721         PR libgomp/90641
4722         * work.c (gomp_init_work_share): Instead of aligning final ordered
4723         value to multiples of long long alignment, align to that the
4724         first part (ordered team ids) and if inline_ordered_team_ids
4725         is not on a long long alignment boundary within the structure,
4726         use __alignof__ (long long) - 1 pad size always.
4727         * loop.c (GOMP_loop_start): Fix *mem computation if
4728         inline_ordered_team_ids is not aligned on long long alignment boundary
4729         within the structure.
4730         * loop-ull.c (GOMP_loop_ull_start): Likewise.
4731         * sections.c (GOMP_sections2_start): Likewise.
4733 2019-05-24  Jakub Jelinek  <jakub@redhat.com>
4735         * testsuite/libgomp.c-c++-common/lastprivate-conditional-1.c: New test.
4736         * testsuite/libgomp.c-c++-common/lastprivate-conditional-2.c: New test.
4738         PR libgomp/90585
4739         * plugin/plugin-hsa.c: Include gstdint.h.  Include inttypes.h only if
4740         HAVE_INTTYPES_H is defined.
4741         (print_uint64_t): New typedef.
4742         (PRIu64): Define if HAVE_INTTYPES_H is not defined.
4743         (print_kernel_dispatch, run_kernel): Use PRIu64 macro instead of
4744         "lu", cast uint64_t HSA_DEBUG and fprintf arguments to print_uint64_t.
4745         (release_kernel_dispatch): Likewise.  Cast shadow->debug to uintptr_t
4746         before casting to void *.
4747         * plugin/plugin-nvptx.c: Include gstdint.h instead of stdint.h.
4748         * oacc-mem.c: Don't include config.h nor stdint.h.
4749         * target.c: Don't include config.h.
4750         * oacc-cuda.c: Likewise.
4751         * oacc-host.c: Don't include stdint.h.
4753 2019-05-20  Jakub Jelinek  <jakub@redhat.com>
4755         PR libgomp/90527
4756         * alloc.c (_GNU_SOURCE): Define.
4758 2019-05-17  Thomas Schwinge  <thomas@codesourcery.com>
4760         * acc_prof.h: New file.
4761         * oacc-profiling.c: Likewise.
4762         * Makefile.am (nodist_libsubinclude_HEADERS, libgomp_la_SOURCES):
4763         Add these, respectively.
4764         * Makefile.in: Regenerate.
4765         * env.c (initialize_env): Call goacc_profiling_initialize.
4766         * oacc-plugin.c (GOMP_PLUGIN_goacc_thread)
4767         (GOMP_PLUGIN_goacc_profiling_dispatch): New functions.
4768         * oacc-plugin.h (GOMP_PLUGIN_goacc_thread)
4769         (GOMP_PLUGIN_goacc_profiling_dispatch): Declare.
4770         * libgomp.map (OACC_2.5.1): Add acc_prof_lookup,
4771         acc_prof_register, acc_prof_unregister, and acc_register_library.
4772         (GOMP_PLUGIN_1.3): Add GOMP_PLUGIN_goacc_profiling_dispatch, and
4773         GOMP_PLUGIN_goacc_thread.
4774         * oacc-int.h (struct goacc_thread): Add prof_info, api_info,
4775         prof_callbacks_enabled members.
4776         (goacc_prof_enabled, goacc_profiling_initialize)
4777         (_goacc_profiling_dispatch_p, _goacc_profiling_setup_p)
4778         (goacc_profiling_dispatch): Declare.
4779         (GOACC_PROF_ENABLED, GOACC_PROFILING_DISPATCH_P)
4780         (GOACC_PROFILING_SETUP_P): Define.
4781         * oacc-async.c (acc_async_test, acc_async_test_all, acc_wait)
4782         (acc_wait_async, acc_wait_all, acc_wait_all_async): Update for
4783         OpenACC Profiling Interface.
4784         * oacc-cuda.c (acc_get_current_cuda_device)
4785         (acc_get_current_cuda_context, acc_get_cuda_stream)
4786         (acc_set_cuda_stream): Likewise.
4787         * oacc-init.c (acc_init_1, goacc_attach_host_thread_to_device)
4788         (acc_init, acc_set_device_type, acc_get_device_type)
4789         (acc_get_device_num, goacc_lazy_initialize): Likewise.
4790         * oacc-mem.c (acc_malloc, acc_free, memcpy_tofrom_device)
4791         (acc_deviceptr, acc_hostptr, acc_is_present, acc_map_data)
4792         (acc_unmap_data, present_create_copy, delete_copyout)
4793         (update_dev_host): Likewise.
4794         * oacc-parallel.c (GOACC_parallel_keyed, GOACC_data_start)
4795         (GOACC_data_end, GOACC_enter_exit_data, GOACC_update, GOACC_wait):
4796         Likewise.
4797         * plugin/plugin-nvptx.c (nvptx_exec, nvptx_alloc, nvptx_free)
4798         (GOMP_OFFLOAD_openacc_exec, GOMP_OFFLOAD_openacc_async_exec):
4799         Likewise.
4800         * libgomp.texi: Update.
4801         * testsuite/libgomp.oacc-c-c++-common/acc_prof-dispatch-1.c: New
4802         file.
4803         * testsuite/libgomp.oacc-c-c++-common/acc_prof-init-1.c: Likewise.
4804         * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c:
4805         Likewise.
4806         * testsuite/libgomp.oacc-c-c++-common/acc_prof-parallel-1.c:
4807         Likewise.
4808         * testsuite/libgomp.oacc-c-c++-common/acc_prof-valid_bytes-1.c:
4809         Likewise.
4810         * testsuite/libgomp.oacc-c-c++-common/acc_prof-version-1.c:
4811         Likewise.
4813 2019-05-13  Chung-Lin Tang <cltang@codesourcery.com>
4815         * libgomp-plugin.h (struct goacc_asyncqueue): Declare.
4816         (struct goacc_asyncqueue_list): Likewise.
4817         (goacc_aq): Likewise.
4818         (goacc_aq_list): Likewise.
4819         (GOMP_OFFLOAD_openacc_register_async_cleanup): Remove.
4820         (GOMP_OFFLOAD_openacc_async_test): Remove.
4821         (GOMP_OFFLOAD_openacc_async_test_all): Remove.
4822         (GOMP_OFFLOAD_openacc_async_wait): Remove.
4823         (GOMP_OFFLOAD_openacc_async_wait_async): Remove.
4824         (GOMP_OFFLOAD_openacc_async_wait_all): Remove.
4825         (GOMP_OFFLOAD_openacc_async_wait_all_async): Remove.
4826         (GOMP_OFFLOAD_openacc_async_set_async): Remove.
4827         (GOMP_OFFLOAD_openacc_exec): Adjust declaration.
4828         (GOMP_OFFLOAD_openacc_cuda_get_stream): Likewise.
4829         (GOMP_OFFLOAD_openacc_cuda_set_stream): Likewise.
4830         (GOMP_OFFLOAD_openacc_async_exec): Declare.
4831         (GOMP_OFFLOAD_openacc_async_construct): Declare.
4832         (GOMP_OFFLOAD_openacc_async_destruct): Declare.
4833         (GOMP_OFFLOAD_openacc_async_test): Declare.
4834         (GOMP_OFFLOAD_openacc_async_synchronize): Declare.
4835         (GOMP_OFFLOAD_openacc_async_serialize): Declare.
4836         (GOMP_OFFLOAD_openacc_async_queue_callback): Declare.
4837         (GOMP_OFFLOAD_openacc_async_host2dev): Declare.
4838         (GOMP_OFFLOAD_openacc_async_dev2host): Declare.
4840         * libgomp.h (struct acc_dispatch_t): Define 'async' sub-struct.
4841         (gomp_acc_insert_pointer): Adjust declaration.
4842         (gomp_copy_host2dev): New declaration.
4843         (gomp_copy_dev2host): Likewise.
4844         (gomp_map_vars_async): Likewise.
4845         (gomp_unmap_tgt): Likewise.
4846         (gomp_unmap_vars_async): Likewise.
4847         (gomp_fini_device): Likewise.
4849         * oacc-async.c (get_goacc_thread): New function.
4850         (get_goacc_thread_device): New function.
4851         (lookup_goacc_asyncqueue): New function.
4852         (get_goacc_asyncqueue): New function.
4853         (acc_async_test): Adjust code to use new async design.
4854         (acc_async_test_all): Likewise.
4855         (acc_wait): Likewise.
4856         (acc_wait_async): Likewise.
4857         (acc_wait_all): Likewise.
4858         (acc_wait_all_async): Likewise.
4859         (goacc_async_free): New function.
4860         (goacc_init_asyncqueues): Likewise.
4861         (goacc_fini_asyncqueues): Likewise.
4862         * oacc-cuda.c (acc_get_cuda_stream): Adjust code to use new async
4863         design.
4864         (acc_set_cuda_stream): Likewise.
4865         * oacc-host.c (host_openacc_exec): Adjust parameters, remove 'async'.
4866         (host_openacc_register_async_cleanup): Remove.
4867         (host_openacc_async_exec): New function.
4868         (host_openacc_async_test): Adjust parameters.
4869         (host_openacc_async_test_all): Remove.
4870         (host_openacc_async_wait): Remove.
4871         (host_openacc_async_wait_async): Remove.
4872         (host_openacc_async_wait_all): Remove.
4873         (host_openacc_async_wait_all_async): Remove.
4874         (host_openacc_async_set_async): Remove.
4875         (host_openacc_async_synchronize): New function.
4876         (host_openacc_async_serialize): New function.
4877         (host_openacc_async_host2dev): New function.
4878         (host_openacc_async_dev2host): New function.
4879         (host_openacc_async_queue_callback): New function.
4880         (host_openacc_async_construct): New function.
4881         (host_openacc_async_destruct): New function.
4882         (struct gomp_device_descr host_dispatch): Remove initialization of old
4883         interface, add initialization of new async sub-struct.
4884         * oacc-init.c (acc_shutdown_1): Adjust to use gomp_fini_device.
4885         (goacc_attach_host_thread_to_device): Remove old async code usage.
4886         * oacc-int.h (goacc_init_asyncqueues): New declaration.
4887         (goacc_fini_asyncqueues): Likewise.
4888         (goacc_async_copyout_unmap_vars): Likewise.
4889         (goacc_async_free): Likewise.
4890         (get_goacc_asyncqueue): Likewise.
4891         (lookup_goacc_asyncqueue): Likewise.
4892         * oacc-mem.c (memcpy_tofrom_device): Adjust code to use new async
4893         design.
4894         (present_create_copy): Adjust code to use new async design.
4895         (delete_copyout): Likewise.
4896         (update_dev_host): Likewise.
4897         (gomp_acc_insert_pointer): Add async parameter, adjust code to use new
4898         async design.
4899         (gomp_acc_remove_pointer): Adjust code to use new async design.
4900         * oacc-parallel.c (GOACC_parallel_keyed): Adjust code to use new async
4901         design.
4902         (GOACC_enter_exit_data): Likewise.
4903         (goacc_wait): Likewise.
4904         (GOACC_update): Likewise.
4905         * oacc-plugin.c (GOMP_PLUGIN_async_unmap_vars): Change to assert fail
4906         when called, warn as obsolete in comment.
4907         * target.c (goacc_device_copy_async): New function.
4908         (gomp_copy_host2dev): Remove 'static', add goacc_asyncqueue parameter,
4909         add goacc_device_copy_async case.
4910         (gomp_copy_dev2host): Likewise.
4911         (gomp_map_vars_existing): Add goacc_asyncqueue parameter, adjust code.
4912         (gomp_map_pointer): Likewise.
4913         (gomp_map_fields_existing): Likewise.
4914         (gomp_map_vars_internal): New always_inline function, renamed from
4915         gomp_map_vars.
4916         (gomp_map_vars): Implement by calling gomp_map_vars_internal.
4917         (gomp_map_vars_async): Implement by calling gomp_map_vars_internal,
4918         passing goacc_asyncqueue argument.
4919         (gomp_unmap_tgt): Remove static, add attribute_hidden.
4920         (gomp_unref_tgt): New function.
4921         (gomp_unmap_vars_internal): New always_inline function, renamed from
4922         gomp_unmap_vars.
4923         (gomp_unmap_vars): Implement by calling gomp_unmap_vars_internal.
4924         (gomp_unmap_vars_async): Implement by calling
4925         gomp_unmap_vars_internal, passing goacc_asyncqueue argument.
4926         (gomp_fini_device): New function.
4927         (gomp_exit_data): Adjust gomp_copy_dev2host call.
4928         (gomp_load_plugin_for_device): Remove old interface, adjust to load
4929         new async interface.
4930         (gomp_target_fini): Adjust code to call gomp_fini_device.
4932         * plugin/plugin-nvptx.c (struct cuda_map): Remove.
4933         (struct ptx_stream): Remove.
4934         (struct nvptx_thread): Remove current_stream field.
4935         (cuda_map_create): Remove.
4936         (cuda_map_destroy): Remove.
4937         (map_init): Remove.
4938         (map_fini): Remove.
4939         (map_pop): Remove.
4940         (map_push): Remove.
4941         (struct goacc_asyncqueue): Define.
4942         (struct nvptx_callback): Define.
4943         (struct ptx_free_block): Define.
4944         (struct ptx_device): Remove null_stream, active_streams, async_streams,
4945         stream_lock, and next fields.
4946         (enum ptx_event_type): Remove.
4947         (struct ptx_event): Remove.
4948         (ptx_event_lock): Remove.
4949         (ptx_events): Remove.
4950         (init_streams_for_device): Remove.
4951         (fini_streams_for_device): Remove.
4952         (select_stream_for_async): Remove.
4953         (nvptx_init): Remove ptx_events and ptx_event_lock references.
4954         (nvptx_attach_host_thread_to_device): Remove CUDA_ERROR_NOT_PERMITTED
4955         case.
4956         (nvptx_open_device): Add free_blocks initialization, remove
4957         init_streams_for_device call.
4958         (nvptx_close_device): Remove fini_streams_for_device call, add
4959         free_blocks destruct code.
4960         (event_gc): Remove.
4961         (event_add): Remove.
4962         (nvptx_exec): Adjust parameters and code.
4963         (nvptx_free): Likewise.
4964         (nvptx_host2dev): Remove.
4965         (nvptx_dev2host): Remove.
4966         (nvptx_set_async): Remove.
4967         (nvptx_async_test): Remove.
4968         (nvptx_async_test_all): Remove.
4969         (nvptx_wait): Remove.
4970         (nvptx_wait_async): Remove.
4971         (nvptx_wait_all): Remove.
4972         (nvptx_wait_all_async): Remove.
4973         (nvptx_get_cuda_stream): Remove.
4974         (nvptx_set_cuda_stream): Remove.
4975         (GOMP_OFFLOAD_alloc): Adjust code.
4976         (GOMP_OFFLOAD_free): Likewise.
4977         (GOMP_OFFLOAD_openacc_register_async_cleanup): Remove.
4978         (GOMP_OFFLOAD_openacc_exec): Adjust parameters and code.
4979         (GOMP_OFFLOAD_openacc_async_test_all): Remove.
4980         (GOMP_OFFLOAD_openacc_async_wait): Remove.
4981         (GOMP_OFFLOAD_openacc_async_wait_async): Remove.
4982         (GOMP_OFFLOAD_openacc_async_wait_all): Remove.
4983         (GOMP_OFFLOAD_openacc_async_wait_all_async): Remove.
4984         (GOMP_OFFLOAD_openacc_async_set_async): Remove.
4985         (cuda_free_argmem): New function.
4986         (GOMP_OFFLOAD_openacc_async_exec): New plugin hook function.
4987         (GOMP_OFFLOAD_openacc_create_thread_data): Adjust code.
4988         (GOMP_OFFLOAD_openacc_cuda_get_stream): Adjust code.
4989         (GOMP_OFFLOAD_openacc_cuda_set_stream): Adjust code.
4990         (GOMP_OFFLOAD_openacc_async_construct): New plugin hook function.
4991         (GOMP_OFFLOAD_openacc_async_destruct): New plugin hook function.
4992         (GOMP_OFFLOAD_openacc_async_test): Remove and re-implement.
4993         (GOMP_OFFLOAD_openacc_async_synchronize): New plugin hook function.
4994         (GOMP_OFFLOAD_openacc_async_serialize): New plugin hook function.
4995         (GOMP_OFFLOAD_openacc_async_queue_callback): New plugin hook function.
4996         (cuda_callback_wrapper): New function.
4997         (cuda_memcpy_sanity_check): New function.
4998         (GOMP_OFFLOAD_host2dev): Remove and re-implement.
4999         (GOMP_OFFLOAD_dev2host): Remove and re-implement.
5000         (GOMP_OFFLOAD_openacc_async_host2dev): New plugin hook function.
5001         (GOMP_OFFLOAD_openacc_async_dev2host): New plugin hook function.
5003 2019-05-07  Thomas Schwinge  <thomas@codesourcery.com>
5005         PR target/87835
5006         * testsuite/libgomp.oacc-c-c++-common/pr87835.c: Update.
5008 2019-05-06  Thomas Schwinge  <thomas@codesourcery.com>
5010         * oacc-parallel.c: Add comments to legacy entry points (GCC 5).
5012 2019-03-27  Kevin Buettner  <kevinb@redhat.com>
5014         * team.c (gomp_team_start): Initialize pool->threads[0].
5016 2019-02-22  Thomas Schwinge  <thomas@codesourcery.com>
5018         * testsuite/libgomp.oacc-c++/c++.exp: Specify
5019         "-foffload=$offload_target".
5020         * testsuite/libgomp.oacc-c/c.exp: Likewise.
5021         * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
5022         * testsuite/lib/libgomp.exp
5023         (check_effective_target_openacc_nvidia_accel_configured): Remove,
5024         as (conceptually) merged into
5025         check_effective_target_openacc_nvidia_accel_selected.  Adjust all
5026         users.
5028         * plugin/configfrag.ac: Populate and AC_SUBST offload_targets.
5029         * testsuite/libgomp-test-support.exp.in: Adjust.
5030         * testsuite/lib/libgomp.exp: Likewise.  Don't populate
5031         openacc_device_types_s.
5032         (offload_target_to_openacc_device_type): New proc.
5033         * testsuite/libgomp.oacc-c++/c++.exp: Adjust.
5034         * testsuite/libgomp.oacc-c/c.exp: Likewise.
5035         * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
5036         * Makefile.in: Regenerate.
5037         * configure: Likewise.
5038         * testsuite/Makefile.in: Likewise.
5040         * plugin/configfrag.ac: Populate and AC_SUBST offload_plugins
5041         instead of offload_targets, and AC_DEFINE_UNQUOTED OFFLOAD_PLUGINS
5042         instead of OFFLOAD_TARGETS.
5043         * target.c (gomp_target_init): Adjust.
5044         * testsuite/libgomp-test-support.exp.in: Likewise.
5045         * testsuite/lib/libgomp.exp: Likewise.  Populate
5046         openacc_device_types_s instead of offload_targets_s_openacc.
5047         (check_effective_target_openacc_nvidia_accel_selected)
5048         (check_effective_target_openacc_host_selected): Adjust.
5049         * testsuite/libgomp.oacc-c++/c++.exp: Likewise.
5050         * testsuite/libgomp.oacc-c/c.exp: Likewise.
5051         * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
5052         * Makefile.in: Regenerate.
5053         * config.h.in: Likewise.
5054         * configure: Likewise.
5055         * testsuite/Makefile.in: Likewise.
5057         * testsuite/lib/libgomp.exp: Error out for unknown offload target.
5058         * testsuite/libgomp.oacc-c++/c++.exp: Likewise.  Report if
5059         "offloading: supported, but hardware not accessible".
5060         * testsuite/libgomp.oacc-c/c.exp: Likewise.
5061         * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
5063 2019-02-19  Chung-Lin Tang <cltang@codesourcery.com>
5065         PR c/87924
5066         * oacc-parallel.c (GOACC_parallel_keyed): Remove condition on call to
5067         goacc_wait().
5068         (goacc_wait): Handle ACC_ASYNC_NOVAL case, remove goacc_thread() call
5069         and related adjustment.
5071 2019-01-30  Jakub Jelinek  <jakub@redhat.com>
5073         PR c++/88988
5074         * testsuite/libgomp.c++/pr88988.C: New test.
5076 2019-01-28  Jakub Jelinek  <jakub@redhat.com>
5078         PR middle-end/89002
5079         * testsuite/libgomp.c/pr89002.c: New test.
5081 2019-01-28  Richard Biener  <rguenther@suse.de>
5083         PR testsuite/89064
5084         PR tree-optimization/86865
5085         * testsuite/libgomp.graphite/force-parallel-5.c: XFAIL.
5087 2019-01-24  Tom de Vries  <tdevries@suse.de>
5089         * plugin/plugin-nvptx.c (GOMP_OFFLOAD_fini_device): Free ptx_devices
5090         once instantiated_devices drops to 0.
5092 2019-01-23  Tom de Vries  <tdevries@suse.de>
5094         PR target/PR88946
5095         * plugin/plugin-nvptx.c (cuda_map_destroy): Use CUDA_CALL_NOCHECK for
5096         cuMemFree.
5097         (nvptx_exec): Don't call map_push if mapnum == 0.
5098         * testsuite/libgomp.oacc-c-c++-common/pr88946.c: New test.
5100 2019-01-23  Tom de Vries  <tdevries@suse.de>
5102         PR target/88941
5103         PR target/88939
5104         * plugin/plugin-nvptx.c (cuda_map_destroy): Handle map->active case.
5105         (map_fini): Remove "assert (!s->map->active)".
5106         * testsuite/libgomp.oacc-c-c++-common/pr88941.c: New test.
5108 2019-01-23  Tom de Vries  <tdevries@suse.de>
5110         PR target/87835
5111         * plugin/plugin-nvptx.c (map_push): Fix adding of allocated element.
5112         * testsuite/libgomp.oacc-c-c++-common/pr87835.c: New test.
5114 2019-01-15  Tom de Vries  <tdevries@suse.de>
5116         PR target/80547
5117         * testsuite/libgomp.oacc-c-c++-common/gang-reduction-var-assignment.c:
5118         New test.
5120 2019-01-12  Tom de Vries  <tdevries@suse.de>
5122         * testsuite/libgomp.oacc-c-c++-common/pr85486-2.c: New test.
5123         * testsuite/libgomp.oacc-c-c++-common/vector-length-128-2.c: New test.
5124         * testsuite/libgomp.oacc-c-c++-common/vector-length-128-5.c: New test.
5125         * testsuite/libgomp.oacc-fortran/gemm-2.f90: New test.
5127 2019-01-12  Tom de Vries  <tdevries@suse.de>
5129         * plugin/plugin-nvptx.c (nvptx_exec): Update error message.
5131 2019-01-12  Tom de Vries  <tdevries@suse.de>
5133         * testsuite/libgomp.oacc-c-c++-common/vector-length-64-1.c: New test.
5134         * testsuite/libgomp.oacc-c-c++-common/vector-length-64-2.c: New test.
5135         * testsuite/libgomp.oacc-c-c++-common/vector-length-64-3.c: New test.
5137 2019-01-12  Tom de Vries  <tdevries@suse.de>
5139         PR target/85486
5140         * testsuite/libgomp.oacc-c-c++-common/pr85486-3.c: New test.
5141         * testsuite/libgomp.oacc-c-c++-common/pr85486.c: New test.
5143 2019-01-12  Tom de Vries  <tdevries@suse.de>
5145         PR target/85381
5146         * testsuite/libgomp.oacc-c-c++-common/pr85381-5.c: New test.
5147         * testsuite/libgomp.oacc-c-c++-common/pr85381.c: New test.
5149 2019-01-12  Tom de Vries  <tdevries@suse.de>
5151         * testsuite/libgomp.oacc-c-c++-common/vred2d-128.c: New test.
5152         * testsuite/libgomp.oacc-fortran/gemm.f90: New test.
5153         * testsuite/libgomp.oacc-c-c++-common/vector-length-128-10.c: New test.
5155 2019-01-12  Tom de Vries  <tdevries@suse.de>
5157         * testsuite/libgomp.oacc-c-c++-common/vector-length-128-7.c: New test.
5158         * testsuite/libgomp.oacc-c-c++-common/vector-length-128-4.c: New test.
5159         * testsuite/libgomp.oacc-c-c++-common/vector-length-128-6.c: New test.
5161 2019-01-12  Tom de Vries  <tdevries@suse.de>
5163         * plugin/plugin-nvptx.c (nvptx_exec): Update insufficient hardware
5164         resources diagnostic.
5166 2019-01-12  Tom de Vries  <tdevries@suse.de>
5168         * testsuite/libgomp.oacc-c-c++-common/vector-length-128-1.c: Expect
5169         vector length to be 128.
5170         * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Expect vector
5171         length 2097152 to be reduced to 1024 instead of 32.
5173 2019-01-11  Thomas Schwinge  <thomas@codesourcery.com>
5174             James Norris  <jnorris@codesourcery.com>
5176         * libgomp.texi: Better distinguish OpenACC and OpenMP "Runtime
5177         Library Routines", and "Environment Variables".
5179 2019-01-11  Tom de Vries  <tdevries@suse.de>
5181         * plugin/plugin-nvptx.c (nvptx_exec): Prevent vector_length 64 and
5182         num_workers 16.
5184 2019-01-11  Tom de Vries  <tdevries@suse.de>
5186         * testsuite/libgomp.oacc-c-c++-common/reduction-1.c: Remove
5187         -foffload=-w.
5188         * testsuite/libgomp.oacc-c-c++-common/reduction-2.c: Same.
5189         * testsuite/libgomp.oacc-c-c++-common/reduction-3.c: Same.
5190         * testsuite/libgomp.oacc-c-c++-common/reduction-4.c: Same.
5191         * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Same.
5193 2019-01-11  Tom de Vries  <tdevries@suse.de>
5195         * testsuite/libgomp.oacc-c-c++-common/insufficient-resources.c: New
5196         test.
5198 2019-01-10  Nathan Sidwell  <nathan@acm.org>
5199             Julian Brown  <julian@codesourcery.com>
5201         PR lto/71959
5202         * testsuite/libgomp.oacc-c++/pr71959-aux.cc: New.
5203         * testsuite/libgomp.oacc-c++/pr71959.C: New.
5205 2019-01-09  Sebastian Huber  <sebastian.huber@embedded-brains.de>
5207         * config/rtems/bar.c: Include "../linux/bar.c" and delete copy
5208         and paste code.
5210 2019-01-09  Sebastian Huber  <sebastian.huber@embedded-brains.de>
5212         * config/rtems/affinity-fmt.c: New file.  Include affinity-fmt.c,
5213         undefining HAVE_GETPID and HAVE_GETHOSTNAME, and mapping fwrite to
5214         write.
5216 2019-01-09  Tom de Vries  <tdevries@suse.de>
5218         PR target/88756
5219         * testsuite/libgomp.oacc-c-c++-common/reduction-1.c (ng, nw, vl): Use
5220         #define instead of "const int".
5221         * testsuite/libgomp.oacc-c-c++-common/reduction-2.c (ng, nw, vl): Same.
5222         * testsuite/libgomp.oacc-c-c++-common/reduction-3.c (ng, nw, vl): Same.
5223         * testsuite/libgomp.oacc-c-c++-common/reduction-4.c (ng, nw, vl): Same.
5224         * testsuite/libgomp.oacc-c-c++-common/reduction-5.c (ng, nw, vl): Same.
5226 2019-01-09  Tom de Vries  <tdevries@suse.de>
5228         * plugin/plugin-nvptx.c (nvptx_exec): Make sure to launch with at least
5229         one worker.
5231 2019-01-07  Tom de Vries  <tdevries@suse.de>
5233         * testsuite/libgomp.oacc-c-c++-common/vector-length-128-3.c: Fix
5234         GOMP_OPENACC_DIM argument.
5236 2019-01-03  Tom de Vries  <tdevries@suse.de>
5238         * testsuite/libgomp.oacc-c-c++-common/vector-length-128-1.c: New test.
5239         * testsuite/libgomp.oacc-c-c++-common/vector-length-128-3.c: New test.
5241 2019-01-01  Jakub Jelinek  <jakub@redhat.com>
5243         Update copyright years.
5245 2019-01-01  Jakub Jelinek  <jakub@redhat.com>
5247         * libgomp.texi: Bump @copying's copyright year.
5249 2018-12-28  Thomas Schwinge  <thomas@codesourcery.com>
5251         * oacc-parallel.c (GOACC_parallel_keyed, GOACC_parallel)
5252         (GOACC_data_start, GOACC_enter_exit_data, GOACC_update)
5253         (GOACC_declare): Redefine the "device" argument to "flags".
5255 2018-12-28  Thomas Schwinge  <thomas@codesourcery.com>
5256             Cesar Philippidis  <cesar@codesourcery.com>
5258         * target.c (struct gomp_coalesce_chunk): New structure.
5259         (struct gomp_coalesce_buf): Update the chunks member to use that
5260         type.  Adjust all users.
5262 2018-12-19  Tom de Vries  <tdevries@suse.de>
5264         * testsuite/libgomp.oacc-c-c++-common/pr85381-2.c: New test.
5265         * testsuite/libgomp.oacc-c-c++-common/pr85381-3.c: New test.
5266         * testsuite/libgomp.oacc-c-c++-common/pr85381-4.c: New test.
5268 2018-12-19  Tom de Vries  <tdevries@suse.de>
5270         * testsuite/lib/libgomp.exp: Add load_lib of scanoffloadrtl.exp.
5271         * testsuite/libgomp.oacc-c-c++-common/nvptx-merged-loop.c: Move from
5272         gcc/testsuite/gcc.dg/goacc.
5273         * testsuite/libgomp.oacc-c-c++-common/nvptx-sese-1.c: Same.
5275 2018-12-14  Thomas Schwinge  <thomas@codesourcery.com>
5276             Chung-Lin Tang  <cltang@codesourcery.com>
5278         * oacc-mem.c (acc_present_or_create): Remove definition and change
5279         to alias of acc_create.
5280         (acc_present_or_copyin): Remove definition and change to alias of
5281         acc_copyin.
5282         * oacc-parallel.c (GOACC_enter_exit_data): Call acc_create instead
5283         of acc_present_or_create.
5284         * testsuite/libgomp.oacc-c-c++-common/data-already-1.c: Remove.
5285         * testsuite/libgomp.oacc-c-c++-common/data-already-2.c: Likewise.
5286         * testsuite/libgomp.oacc-c-c++-common/data-already-3.c: Likewise.
5287         * testsuite/libgomp.oacc-c-c++-common/data-already-4.c: Likewise.
5288         * testsuite/libgomp.oacc-c-c++-common/data-already-5.c: Likewise.
5289         * testsuite/libgomp.oacc-c-c++-common/data-already-6.c: Likewise.
5290         * testsuite/libgomp.oacc-c-c++-common/data-already-7.c: Likewise.
5291         * testsuite/libgomp.oacc-c-c++-common/data-already-8.c: Likewise.
5292         * testsuite/libgomp.oacc-fortran/data-already-1.f: Likewise.
5293         * testsuite/libgomp.oacc-fortran/data-already-2.f: Likewise.
5294         * testsuite/libgomp.oacc-fortran/data-already-3.f: Likewise.
5295         * testsuite/libgomp.oacc-fortran/data-already-4.f: Likewise.
5296         * testsuite/libgomp.oacc-fortran/data-already-5.f: Likewise.
5297         * testsuite/libgomp.oacc-fortran/data-already-6.f: Likewise.
5298         * testsuite/libgomp.oacc-fortran/data-already-7.f: Likewise.
5299         * testsuite/libgomp.oacc-fortran/data-already-8.f: Likewise.
5301 2018-12-14  Thomas Schwinge  <thomas@codesourcery.com>
5303         PR libgomp/88495
5304         * plugin/plugin-nvptx.c (nvptx_wait_async): Don't refuse
5305         "identical parameters".
5306         * testsuite/libgomp.oacc-c-c++-common/asyncwait-nop-1.c: Update.
5307         * testsuite/libgomp.oacc-c-c++-common/lib-80.c: Remove.
5309         PR libgomp/88484
5310         * oacc-parallel.c (GOACC_wait): Correct handling for "async >= 0".
5311         * testsuite/libgomp.oacc-c-c++-common/asyncwait-nop-1.c: New file.
5313         PR libgomp/88407
5314         * plugin/plugin-nvptx.c (nvptx_async_test, nvptx_wait)
5315         (nvptx_wait_async): Unseen async-argument is a no-op.
5316         * testsuite/libgomp.oacc-c-c++-common/async_queue-1.c: Update.
5317         * testsuite/libgomp.oacc-c-c++-common/data-2-lib.c: Likewise.
5318         * testsuite/libgomp.oacc-c-c++-common/data-2.c: Likewise.
5319         * testsuite/libgomp.oacc-c-c++-common/lib-79.c: Likewise.
5320         * testsuite/libgomp.oacc-fortran/lib-12.f90: Likewise.
5321         * testsuite/libgomp.oacc-c-c++-common/lib-71.c: Merge into...
5322         * testsuite/libgomp.oacc-c-c++-common/lib-69.c: ... this.  Update.
5323         * testsuite/libgomp.oacc-c-c++-common/lib-77.c: Merge into...
5324         * testsuite/libgomp.oacc-c-c++-common/lib-74.c: ... this.  Update
5326         * testsuite/libgomp.oacc-c-c++-common/data-2-lib.c: Revise.
5327         * testsuite/libgomp.oacc-c-c++-common/data-2.c: Likewise.
5329 2018-12-14  Chung-Lin Tang  <cltang@codesourcery.com>
5331         * testsuite/libgomp.oacc-c-c++-common/data-2-lib.c: Adjust.
5332         * testsuite/libgomp.oacc-c-c++-common/data-2.c: Likewise.
5333         * testsuite/libgomp.oacc-c-c++-common/data-3.c: Likewise.
5335 2018-12-14  Thomas Schwinge  <thomas@codesourcery.com>
5337         PR libgomp/88370
5338         * libgomp.texi (acc_get_current_cuda_context, acc_get_cuda_stream)
5339         (acc_set_cuda_stream): Clarify.
5340         * oacc-cuda.c (acc_get_cuda_stream, acc_set_cuda_stream): Use
5341         "async_valid_p".
5342         * plugin/plugin-nvptx.c (nvptx_set_cuda_stream): Refuse "async ==
5343         acc_async_sync".
5344         * testsuite/libgomp.oacc-c-c++-common/acc_set_cuda_stream-1.c: New file.
5345         * testsuite/libgomp.oacc-c-c++-common/async_queue-1.c: Likewise.
5346         * testsuite/libgomp.oacc-c-c++-common/lib-84.c: Update.
5347         * testsuite/libgomp.oacc-c-c++-common/lib-85.c: Likewise.
5349 2018-12-14  Tom de Vries  <tdevries@suse.de>
5351         * testsuite/libgomp.c-c++-common/function-not-offloaded-aux.c: New test.
5352         * testsuite/libgomp.c-c++-common/function-not-offloaded.c: New test.
5353         * testsuite/libgomp.c-c++-common/variable-not-offloaded.c: New test.
5354         * testsuite/libgomp.oacc-c-c++-common/function-not-offloaded.c: New test.
5355         * testsuite/libgomp.oacc-c-c++-common/variable-not-offloaded.c: New test.
5357 2018-12-13  Tom de Vries  <tdevries@suse.de>
5359         * affinity-fmt.c (gomp_print_string): New function, factored out of ...
5360         (omp_display_affinity, gomp_display_affinity_thread): ... here, and ...
5361         * fortran.c (omp_display_affinity_): ... here.
5362         * libgomp.h (gomp_print_string): Declare.
5363         * config/nvptx/affinity-fmt.c: New file.  Include affinity-fmt.c,
5364         undefining HAVE_GETPID and HAVE_GETHOSTNAME, and mapping fwrite to
5365         write.
5367 2018-12-13  Jakub Jelinek  <jakub@redhat.com>
5369         PR libgomp/88460
5370         * testsuite/libgomp.c++/for-24.C (results): Include it in
5371         omp declare target region.
5372         (main): Use map (always, tofrom: results) instead of
5373         map (tofrom: results).
5375 2018-12-12  Jakub Jelinek  <jakub@redhat.com>
5377         PR fortran/88463
5378         * testsuite/libgomp.fortran/pr88463-1.f90: New test.
5379         * testsuite/libgomp.fortran/pr88463-2.f90: New test.
5381         * testsuite/libgomp.c-c++-common/for-16.c: New test.
5383 2018-12-12  Andreas Schwab  <schwab@suse.de>
5385         * config/linux/ia64/futex.h (sys_futex0): Don't mark r12 as
5386         clobbered.
5388 2018-12-09  Thomas Koenig  <tkoenig@gcc.gnu.org>
5390         PR fortran/88411
5391         * testsuite/libgomp.fortran/async_io_8.f90: New test.
5393 2018-12-09  Thomas Schwinge  <thomas@codesourcery.com>
5394             Jakub Jelinek  <jakub@redhat.com>
5396         * target.c (gomp_map_vars): Call gomp_copy_host2dev instead of
5397         devicep->host2dev_func.
5399 2018-12-08  Jakub Jelinek  <jakub@redhat.com>
5401         PR libgomp/87995
5402         * testsuite/libgomp.c-c++-common/cancel-taskgroup-3.c: Require
5403         tls_runtime effective target.
5404         (t): New threadprivate variable.
5405         (main): Set t in threads which execute iterations of the worksharing
5406         loop.  Propagate that to the task after the loop and don't abort
5407         if the current taskgroup hasn't been cancelled.
5409 2018-12-02  Jakub Jelinek  <jakub@redhat.com>
5411         * testsuite/libgomp.c/task-reduction-3.c: New test.
5413         * testsuite/libgomp.c-c++-common/cancel-taskgroup-4.c: New test.
5415 2018-11-30  Cesar Philippidis  <cesar@codesourcery.com>
5417         PR libgomp/88288
5418         * oacc-parallel.c (GOACC_parallel_keyed): Add offset to devaddrs.
5419         * testsuite/libgomp.oacc-c-c++-common/pr88288.c: New test.
5421 2018-11-30  Thomas Schwinge  <thomas@codesourcery.com>
5423         * testsuite/libgomp.oacc-fortran/lib-16-2.f90: New file.
5425 2018-10-19  Richard Biener  <rguenther@suse.de>
5427         PR tree-optimization/88182
5428         * testsuite/libgomp.c++/pr88182.C: Move to g++.dg/gomp.
5430 2018-11-26  Jakub Jelinek  <jakub@redhat.com>
5432         * testsuite/Makefile.am (AUTOMAKE_OPTIONS): Drop dejagnu.
5433         (RUNTEST): Don't define.
5434         (RUNTESTDEFAULTFLAGS): Add.
5435         (check-DEJAGNU, site.exp, distclean-DEJAGNU): New goals.
5436         (distclean-am): Depend on distclean-DEJAGNU.
5437         (check-am): If -j% option is present in MFLAGS and if
5438         `getconf _NPROCESSORS_ONLN` is more than 8, export OMP_NUM_THREADS=8.
5439         (.PHONY): Add check-DEJAGNU and distclean-DEJAGNU.
5440         * testsuite/Makefile.in: Regenerated.
5442 2018-11-26  Richard Biener  <rguenther@suse.de>
5444         PR tree-optimization/88182
5445         * testsuite/libgomp.c++/pr88182.C: New testcase.
5447 2018-11-20  Jakub Jelinek  <jakub@redhat.com>
5449         PR bootstrap/88106
5450         * config/mingw32/affinity-fmt.c: New file.
5452 2018-11-09  Jakub Jelinek  <jakub@redhat.com>
5454         * affinity-fmt.c: Include inttypes.h if HAVE_INTTYPES_H.
5455         (gomp_display_affinity): Use __builtin_choose_expr to handle
5456         properly handle argument having integral, or pointer or some other
5457         type.  If inttypes.h is available and PRIx64 is defined, use PRIx64
5458         with uint64_t type instead of %llx and unsigned long long.
5460         * testsuite/libgomp.c-c++-common/task-reduction-13.c: New test.
5461         * testsuite/libgomp.c-c++-common/task-reduction-14.c: New test.
5463 2018-11-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
5465         * affinity.c: Include <string.h>, <stdio.h>.
5466         (gomp_display_affinity_place): Remove cpusetp.
5467         * teams.c: Include <limits.h>.
5469 2018-11-08  Jakub Jelinek  <jakub@redhat.com>
5471         * testsuite/libgomp.c-c++-common/task-reduction-8.c (bar): Add
5472         in_reduction clause for s[0].
5474         * affinity.c (gomp_display_affinity_place): New function.
5475         * affinity-fmt.c: New file.
5476         * alloc.c (gomp_aligned_alloc, gomp_aligned_free): New functions.
5477         * config/linux/affinity.c (gomp_display_affinity_place): New function.
5478         * config/nvptx/icv-device.c (omp_get_num_teams, omp_get_team_num):
5479         Move these functions to ...
5480         * config/nvptx/teams.c: ... here.  New file.
5481         * config/nvptx/target.c (omp_pause_resource, omp_pause_resource_all):
5482         New functions.
5483         * config/nvptx/team.c (gomp_team_start, gomp_pause_host): New
5484         functions.
5485         * configure.ac: Check for aligned_alloc, posix_memalign, memalign
5486         and _aligned_malloc.
5487         (HAVE_UNAME, HAVE_GETHOSTNAME, HAVE_GETPID): Add new tests.
5488         * configure.tgt: Add -DUSING_INITIAL_EXEC_TLS to XCFLAGS for Linux.
5489         * env.c (gomp_display_affinity_var, gomp_affinity_format_var,
5490         gomp_affinity_format_len): New variables.
5491         (parse_schedule): Parse monotonic and nonmonotonic modifiers in
5492         OMP_SCHEDULE variable.  Set GFS_MONOTONIC for monotonic schedules.
5493         (handle_omp_display_env): Display monotonic/nonmonotonic schedule
5494         modifiers.  Display (non-default) chunk sizes.  Print
5495         OMP_DISPLAY_AFFINITY and OMP_AFFINITY_FORMAT.
5496         (initialize_env): Don't call pthread_attr_setdetachstate.  Handle
5497         OMP_DISPLAY_AFFINITY and OMP_AFFINITY_FORMAT env vars.
5498         * fortran.c: Include stdio.h and string.h.
5499         (omp_pause_resource, omp_pause_resource_all): Add ialias_redirect.
5500         (omp_get_schedule_, omp_get_schedule_8_): Mask off GFS_MONOTONIC bit.
5501         (omp_set_affinity_format_, omp_get_affinity_format_,
5502         omp_display_affinity_, omp_capture_affinity_, omp_pause_resource_,
5503         omp_pause_resource_all_): New functions.
5504         * icv.c (omp_set_schedule): Mask off omp_sched_monotonic bit in
5505         switch.
5506         * icv-device.c (omp_get_num_teams, omp_get_team_num): Move these
5507         functions to ...
5508         * teams.c: ... here.  New file.
5509         * libgomp_g.h: Include gstdint.h.
5510         (GOMP_loop_nonmonotonic_runtime_start,
5511         GOMP_loop_maybe_nonmonotonic_runtime_start, GOMP_loop_start,
5512         GOMP_loop_ordered_start, GOMP_loop_nonmonotonic_runtime_next,
5513         GOMP_loop_maybe_nonmonotonic_runtime_next, GOMP_loop_doacross_start,
5514         GOMP_parallel_loop_nonmonotonic_runtime,
5515         GOMP_parallel_loop_maybe_nonmonotonic_runtime,
5516         GOMP_loop_ull_nonmonotonic_runtime_start,
5517         GOMP_loop_ull_maybe_nonmonotonic_runtime_start, GOMP_loop_ull_start,
5518         GOMP_loop_ull_ordered_start, GOMP_loop_ull_nonmonotonic_runtime_next,
5519         GOMP_loop_ull_maybe_nonmonotonic_runtime_next,
5520         GOMP_loop_ull_doacross_start, GOMP_parallel_reductions,
5521         GOMP_taskwait_depend, GOMP_taskgroup_reduction_register,
5522         GOMP_taskgroup_reduction_unregister, GOMP_task_reduction_remap,
5523         GOMP_workshare_task_reduction_unregister, GOMP_sections2_start,
5524         GOMP_teams_reg): Declare.
5525         * libgomp.h (GOMP_HAVE_EFFICIENT_ALIGNED_ALLOC): Define unless
5526         gomp_aligned_alloc uses fallback implementation.
5527         (gomp_aligned_alloc, gomp_aligned_free): Declare.
5528         (enum gomp_schedule_type): Add GFS_MONOTONIC.
5529         (struct gomp_doacross_work_share): Add extra field.
5530         (struct gomp_work_share): Add task_reductions field.
5531         (struct gomp_taskgroup): Add workshare and reductions fields.
5532         (GOMP_NEEDS_THREAD_HANDLE): Define if needed.
5533         (gomp_thread_handle): New typedef.
5534         (gomp_display_affinity_place, gomp_set_affinity_format,
5535         gomp_display_string, gomp_display_affinity,
5536         gomp_display_affinity_thread): Declare.
5537         (gomp_doacross_init, gomp_doacross_ull_init): Add size_t argument.
5538         (gomp_parallel_reduction_register, gomp_workshare_taskgroup_start,
5539         gomp_workshare_task_reduction_register): Declare.
5540         (gomp_team_start): Add taskgroup argument.
5541         (gomp_pause_host): Declare.
5542         (gomp_init_work_share, gomp_work_share_start): Change bool argument
5543         to size_t.
5544         (gomp_thread_self, gomp_thread_to_pthread_t): New inline functions.
5545         * libgomp.map (GOMP_5.0): Export GOMP_loop_start,
5546         GOMP_loop_ordered_start, GOMP_loop_doacross_start,
5547         GOMP_loop_ull_start, GOMP_loop_ull_ordered_start,
5548         GOMP_loop_ull_doacross_start,
5549         GOMP_workshare_task_reduction_unregister, GOMP_sections2_start,
5550         GOMP_loop_maybe_nonmonotonic_runtime_next,
5551         GOMP_loop_maybe_nonmonotonic_runtime_start,
5552         GOMP_loop_nonmonotonic_runtime_next,
5553         GOMP_loop_nonmonotonic_runtime_start,
5554         GOMP_loop_ull_maybe_nonmonotonic_runtime_next,
5555         GOMP_loop_ull_maybe_nonmonotonic_runtime_start,
5556         GOMP_loop_ull_nonmonotonic_runtime_next,
5557         GOMP_loop_ull_nonmonotonic_runtime_start,
5558         GOMP_parallel_loop_maybe_nonmonotonic_runtime,
5559         GOMP_parallel_loop_nonmonotonic_runtime, GOMP_parallel_reductions,
5560         GOMP_taskgroup_reduction_register,
5561         GOMP_taskgroup_reduction_unregister, GOMP_task_reduction_remap,
5562         GOMP_teams_reg and GOMP_taskwait_depend.
5563         (OMP_5.0): Export omp_pause_resource{,_all}{,_},
5564         omp_{capture,display}_affinity{,_}, and
5565         omp_[gs]et_affinity_format{,_}.
5566         * loop.c: Include string.h.
5567         (GOMP_loop_runtime_next): Add ialias.
5568         (GOMP_taskgroup_reduction_register): Add ialias_redirect.
5569         (gomp_loop_static_start, gomp_loop_dynamic_start,
5570         gomp_loop_guided_start, gomp_loop_ordered_static_start,
5571         gomp_loop_ordered_dynamic_start, gomp_loop_ordered_guided_start,
5572         gomp_loop_doacross_static_start, gomp_loop_doacross_dynamic_start,
5573         gomp_loop_doacross_guided_start): Adjust gomp_work_share_start
5574         or gomp_doacross_init callers.
5575         (gomp_adjust_sched, GOMP_loop_start, GOMP_loop_ordered_start,
5576         GOMP_loop_doacross_start): New functions.
5577         (GOMP_loop_runtime_start, GOMP_loop_ordered_runtime_start,
5578         GOMP_loop_doacross_runtime_start, GOMP_parallel_loop_runtime_start):
5579         Mask off GFS_MONOTONIC bit.
5580         (GOMP_loop_maybe_nonmonotonic_runtime_next,
5581         GOMP_loop_maybe_nonmonotonic_runtime_start,
5582         GOMP_loop_nonmonotonic_runtime_next,
5583         GOMP_loop_nonmonotonic_runtime_start,
5584         GOMP_parallel_loop_maybe_nonmonotonic_runtime,
5585         GOMP_parallel_loop_nonmonotonic_runtime): New aliases or wrapper
5586         functions.
5587         (gomp_parallel_loop_start): Pass NULL as taskgroup to
5588         gomp_team_start.
5589         * loop_ull.c: Include string.h.
5590         (GOMP_loop_ull_runtime_next): Add ialias.
5591         (GOMP_taskgroup_reduction_register): Add ialias_redirect.
5592         (gomp_loop_ull_static_start, gomp_loop_ull_dynamic_start,
5593         gomp_loop_ull_guided_start, gomp_loop_ull_ordered_static_start,
5594         gomp_loop_ull_ordered_dynamic_start,
5595         gomp_loop_ull_ordered_guided_start,
5596         gomp_loop_ull_doacross_static_start,
5597         gomp_loop_ull_doacross_dynamic_start,
5598         gomp_loop_ull_doacross_guided_start): Adjust gomp_work_share_start
5599         and gomp_doacross_ull_init callers.
5600         (gomp_adjust_sched, GOMP_loop_ull_start, GOMP_loop_ull_ordered_start,
5601         GOMP_loop_ull_doacross_start): New functions.
5602         (GOMP_loop_ull_runtime_start,
5603         GOMP_loop_ull_ordered_runtime_start,
5604         GOMP_loop_ull_doacross_runtime_start): Mask off GFS_MONOTONIC bit.
5605         (GOMP_loop_ull_maybe_nonmonotonic_runtime_next,
5606         GOMP_loop_ull_maybe_nonmonotonic_runtime_start,
5607         GOMP_loop_ull_nonmonotonic_runtime_next,
5608         GOMP_loop_ull_nonmonotonic_runtime_start): Likewise.
5609         * Makefile.am (libgomp_la_SOURCES): Add teams.c and affinity-fmt.c.
5610         * omp.h.in (enum omp_sched_t): Add omp_sched_monotonic.
5611         (omp_pause_resource_t, omp_depend_t): New typedefs.
5612         (enum omp_lock_hint_t): Renamed to ...
5613         (enum omp_sync_hint_t): ... this.  Define omp_sync_hint_*
5614         enumerators using numbers and omp_lock_hint_* as their aliases.
5615         (omp_lock_hint_t): New typedef.  Rename to ...
5616         (omp_sync_hint_t): ... this.
5617         (omp_init_lock_with_hint, omp_init_nest_lock_with_hint): Use
5618         omp_sync_hint_t instead of omp_lock_hint_t.
5619         (omp_pause_resource, omp_pause_resource_all, omp_set_affinity_format,
5620         omp_get_affinity_format, omp_display_affinity, omp_capture_affinity):
5621         Declare.
5622         (omp_target_is_present, omp_target_disassociate_ptr):
5623         Change first argument from void * to const void *.
5624         (omp_target_memcpy, omp_target_memcpy_rect): Change second argument
5625         from void * to const void *.
5626         (omp_target_associate_ptr): Change first and second arguments from
5627         void * to const void *.
5628         * omp_lib.f90.in (omp_pause_resource_kind, omp_pause_soft,
5629         omp_pause_hard): New parameters.
5630         (omp_pause_resource, omp_pause_resource_all, omp_set_affinity_format,
5631         omp_get_affinity_format, omp_display_affinity, omp_capture_affinity):
5632         New interfaces.
5633         * omp_lib.h.in (omp_pause_resource_kind, omp_pause_soft,
5634         omp_pause_hard): New parameters.
5635         (omp_pause_resource, omp_pause_resource_all, omp_set_affinity_format,
5636         omp_get_affinity_format, omp_display_affinity, omp_capture_affinity):
5637         New externals.
5638         * ordered.c (gomp_doacross_init, gomp_doacross_ull_init): Add
5639         EXTRA argument.  If not needed to prepare array, if extra is 0,
5640         clear ws->doacross, otherwise allocate just doacross structure and
5641         extra payload.  If array is needed, allocate also extra payload.
5642         (GOMP_doacross_post, GOMP_doacross_wait, GOMP_doacross_ull_post,
5643         GOMP_doacross_ull_wait): Handle doacross->array == NULL like
5644         doacross == NULL.
5645         * parallel.c (GOMP_parallel_start): Pass NULL as taskgroup to
5646         gomp_team_start.
5647         (GOMP_parallel): Likewise.  Formatting fix.
5648         (GOMP_parallel_reductions): New function.
5649         (GOMP_cancellation_point): If taskgroup has workshare
5650         flag set, check cancelled of prev taskgroup if any.
5651         (GOMP_cancel): If taskgroup has workshare flag set, set cancelled
5652         on prev taskgroup if any.
5653         * sections.c: Include string.h.
5654         (GOMP_taskgroup_reduction_register): Add ialias_redirect.
5655         (GOMP_sections_start): Adjust gomp_work_share_start caller.
5656         (GOMP_sections2_start): New function.
5657         (GOMP_parallel_sections_start, GOMP_parallel_sections):
5658         Pass NULL as taskgroup to gomp_team_start.
5659         * single.c (GOMP_single_start, GOMP_single_copy_start): Adjust
5660         gomp_work_share_start callers.
5661         * target.c (GOMP_target_update_ext, GOMP_target_enter_exit_data):
5662         If taskgroup has workshare flag set, check cancelled on prev
5663         taskgroup if any.  Guard all cancellation tests with
5664         gomp_cancel_var test.
5665         (omp_target_is_present, omp_target_disassociate_ptr):
5666         Change ptr argument from void * to const void *.
5667         (omp_target_memcpy): Change src argument from void * to const void *.
5668         (omp_target_memcpy_rect): Likewise.
5669         (omp_target_memcpy_rect_worker): Likewise.  Use const char * casts
5670         instead of char * where needed.
5671         (omp_target_associate_ptr): Change host_ptr and device_ptr arguments
5672         from void * to const void *.
5673         (omp_pause_resource, omp_pause_resource_all): New functions.
5674         * task.c (gomp_task_handle_depend): Handle new depend array format
5675         in addition to the old.  Handle mutexinoutset kinds the same as
5676         inout for now, handle unspecified kinds.
5677         (gomp_create_target_task): If taskgroup has workshare flag set, check
5678         cancelled on prev taskgroup if any.  Guard all cancellation tests with
5679         gomp_cancel_var test.  Handle new depend array format count in
5680         addition to the old.
5681         (GOMP_task): Likewise.  Adjust function comment.
5682         (gomp_task_run_pre): If taskgroup has workshare flag set, check
5683         cancelled on prev taskgroup if any.  Guard all cancellation tests with
5684         gomp_cancel_var test.
5685         (GOMP_taskwait_depend): New function.
5686         (gomp_task_maybe_wait_for_dependencies): Handle new depend array
5687         format in addition to the old.  Handle mutexinoutset kinds the same as
5688         inout for now, handle unspecified kinds.  Fix a function comment typo.
5689         (gomp_taskgroup_init): New function.
5690         (GOMP_taskgroup_start): Use it.
5691         (gomp_reduction_register, gomp_create_artificial_team,
5692         GOMP_taskgroup_reduction_register,
5693         GOMP_taskgroup_reduction_unregister, GOMP_task_reduction_remap,
5694         gomp_parallel_reduction_register,
5695         gomp_workshare_task_reduction_register,
5696         gomp_workshare_taskgroup_start,
5697         GOMP_workshare_task_reduction_unregister): New functions.
5698         * taskloop.c (GOMP_taskloop): If taskgroup has workshare flag set,
5699         check cancelled on prev taskgroup if any.  Guard all cancellation
5700         tests with gomp_cancel_var test.  Handle GOMP_TASK_FLAG_REDUCTION flag
5701         by calling GOMP_taskgroup_reduction_register.
5702         * team.c (gomp_thread_attr): Remove comment.
5703         (struct gomp_thread_start_data): Add handle field.
5704         (gomp_thread_start): Call pthread_detach.
5705         (gomp_new_team): Adjust gomp_init_work_share caller.
5706         (gomp_free_pool_helper): Call pthread_detach.
5707         (gomp_team_start): Add taskgroup argument, initialize implicit
5708         tasks' taskgroup field to that.  Don't call
5709         pthread_attr_setdetachstate.  Handle OMP_DISPLAY_AFFINITY env var.
5710         (gomp_team_end): Determine nesting by thr->ts.level != 0
5711         rather than thr->ts.team != NULL.
5712         (gomp_pause_pool_helper, gomp_pause_host): New functions.
5713         * work.c (alloc_work_share): Use gomp_aligned_alloc instead of
5714         gomp_malloc if GOMP_HAVE_EFFICIENT_ALIGNED_ALLOC is defined.
5715         (gomp_init_work_share): Change ORDERED argument from bool to size_t,
5716         if more than 1 allocate also extra payload at the end of array.  Never
5717         keep ordered_team_ids NULL, set it to inline_ordered_team_ids instead.
5718         (gomp_work_share_start): Change ORDERED argument from bool to size_t,
5719         return true instead of ws.
5720         * Makefile.in: Regenerated.
5721         * configure: Regenerated.
5722         * config.h.in: Regenerated.
5723         * testsuite/libgomp.c/cancel-for-2.c (foo): Use cancel modifier
5724         in some cases.
5725         * testsuite/libgomp.c-c++-common/cancel-parallel-1.c: New test.
5726         * testsuite/libgomp.c-c++-common/cancel-taskgroup-3.c: New test.
5727         * testsuite/libgomp.c-c++-common/depend-iterator-1.c: New test.
5728         * testsuite/libgomp.c-c++-common/depend-iterator-2.c: New test.
5729         * testsuite/libgomp.c-c++-common/depend-mutexinout-1.c: New test.
5730         * testsuite/libgomp.c-c++-common/depend-mutexinout-2.c: New test.
5731         * testsuite/libgomp.c-c++-common/depobj-1.c: New test.
5732         * testsuite/libgomp.c-c++-common/display-affinity-1.c: New test.
5733         * testsuite/libgomp.c-c++-common/for-10.c: New test.
5734         * testsuite/libgomp.c-c++-common/for-11.c: New test.
5735         * testsuite/libgomp.c-c++-common/for-12.c: New test.
5736         * testsuite/libgomp.c-c++-common/for-13.c: New test.
5737         * testsuite/libgomp.c-c++-common/for-14.c: New test.
5738         * testsuite/libgomp.c-c++-common/for-15.c: New test.
5739         * testsuite/libgomp.c-c++-common/for-2.h: If CONDNE macro is defined,
5740         define a different N(test), don't define N(f0) to N(f14), but instead
5741         define N(f20) to N(f34) using != comparisons.
5742         * testsuite/libgomp.c-c++-common/for-7.c: New test.
5743         * testsuite/libgomp.c-c++-common/for-8.c: New test.
5744         * testsuite/libgomp.c-c++-common/for-9.c: New test.
5745         * testsuite/libgomp.c-c++-common/master-combined-1.c: New test.
5746         * testsuite/libgomp.c-c++-common/pause-1.c: New test.
5747         * testsuite/libgomp.c-c++-common/pause-2.c: New test.
5748         * testsuite/libgomp.c-c++-common/pr66199-10.c: New test.
5749         * testsuite/libgomp.c-c++-common/pr66199-11.c: New test.
5750         * testsuite/libgomp.c-c++-common/pr66199-12.c: New test.
5751         * testsuite/libgomp.c-c++-common/pr66199-13.c: New test.
5752         * testsuite/libgomp.c-c++-common/pr66199-14.c: New test.
5753         * testsuite/libgomp.c-c++-common/simd-1.c: New test.
5754         * testsuite/libgomp.c-c++-common/taskloop-reduction-1.c: New test.
5755         * testsuite/libgomp.c-c++-common/taskloop-reduction-2.c: New test.
5756         * testsuite/libgomp.c-c++-common/taskloop-reduction-3.c: New test.
5757         * testsuite/libgomp.c-c++-common/taskloop-reduction-4.c: New test.
5758         * testsuite/libgomp.c-c++-common/task-reduction-11.c: New test.
5759         * testsuite/libgomp.c-c++-common/task-reduction-12.c: New test.
5760         * testsuite/libgomp.c-c++-common/task-reduction-1.c: New test.
5761         * testsuite/libgomp.c-c++-common/task-reduction-2.c: New test.
5762         * testsuite/libgomp.c-c++-common/task-reduction-3.c: New test.
5763         * testsuite/libgomp.c-c++-common/task-reduction-4.c: New test.
5764         * testsuite/libgomp.c-c++-common/task-reduction-5.c: New test.
5765         * testsuite/libgomp.c-c++-common/task-reduction-6.c: New test.
5766         * testsuite/libgomp.c-c++-common/task-reduction-7.c: New test.
5767         * testsuite/libgomp.c-c++-common/task-reduction-8.c: New test.
5768         * testsuite/libgomp.c-c++-common/task-reduction-9.c: New test.
5769         * testsuite/libgomp.c-c++-common/taskwait-depend-1.c: New test.
5770         * testsuite/libgomp.c++/depend-1.C: New test.
5771         * testsuite/libgomp.c++/depend-iterator-1.C: New test.
5772         * testsuite/libgomp.c++/depobj-1.C: New test.
5773         * testsuite/libgomp.c++/for-16.C: New test.
5774         * testsuite/libgomp.c++/for-21.C: New test.
5775         * testsuite/libgomp.c++/for-22.C: New test.
5776         * testsuite/libgomp.c++/for-23.C: New test.
5777         * testsuite/libgomp.c++/for-24.C: New test.
5778         * testsuite/libgomp.c++/for-25.C: New test.
5779         * testsuite/libgomp.c++/for-26.C: New test.
5780         * testsuite/libgomp.c++/taskloop-reduction-1.C: New test.
5781         * testsuite/libgomp.c++/taskloop-reduction-2.C: New test.
5782         * testsuite/libgomp.c++/taskloop-reduction-3.C: New test.
5783         * testsuite/libgomp.c++/taskloop-reduction-4.C: New test.
5784         * testsuite/libgomp.c++/task-reduction-10.C: New test.
5785         * testsuite/libgomp.c++/task-reduction-11.C: New test.
5786         * testsuite/libgomp.c++/task-reduction-12.C: New test.
5787         * testsuite/libgomp.c++/task-reduction-13.C: New test.
5788         * testsuite/libgomp.c++/task-reduction-14.C: New test.
5789         * testsuite/libgomp.c++/task-reduction-15.C: New test.
5790         * testsuite/libgomp.c++/task-reduction-16.C: New test.
5791         * testsuite/libgomp.c++/task-reduction-17.C: New test.
5792         * testsuite/libgomp.c++/task-reduction-18.C: New test.
5793         * testsuite/libgomp.c++/task-reduction-19.C: New test.
5794         * testsuite/libgomp.c/task-reduction-1.c: New test.
5795         * testsuite/libgomp.c++/task-reduction-1.C: New test.
5796         * testsuite/libgomp.c/task-reduction-2.c: New test.
5797         * testsuite/libgomp.c++/task-reduction-2.C: New test.
5798         * testsuite/libgomp.c++/task-reduction-3.C: New test.
5799         * testsuite/libgomp.c++/task-reduction-4.C: New test.
5800         * testsuite/libgomp.c++/task-reduction-5.C: New test.
5801         * testsuite/libgomp.c++/task-reduction-6.C: New test.
5802         * testsuite/libgomp.c++/task-reduction-7.C: New test.
5803         * testsuite/libgomp.c++/task-reduction-8.C: New test.
5804         * testsuite/libgomp.c++/task-reduction-9.C: New test.
5805         * testsuite/libgomp.c/teams-1.c: New test.
5806         * testsuite/libgomp.c/teams-2.c: New test.
5807         * testsuite/libgomp.c/thread-limit-4.c: New test.
5808         * testsuite/libgomp.c/thread-limit-5.c: New test.
5809         * testsuite/libgomp.fortran/display-affinity-1.f90: New test.
5811 2018-11-06  Chung-Lin Tang <cltang@codesourcery.com>
5813         * oacc-mem.c (memcpy_tofrom_device): New function, combined from
5814         acc_memcpy_to/from_device functions, now with async parameter.
5815         (acc_memcpy_to_device): Modify to use memcpy_tofrom_device.
5816         (acc_memcpy_from_device): Likewise.
5817         (acc_memcpy_to_device_async): New API function.
5818         (acc_memcpy_from_device_async): Likewise.
5819         (present_create_copy): Add async parameter and async setting/unsetting.
5820         (acc_create): Adjust present_create_copy call.
5821         (acc_copyin): Likewise.
5822         (acc_present_or_create): Likewise.
5823         (acc_present_or_copyin): Likewise.
5824         (acc_create_async): New API function.
5825         (acc_copyin_async): New API function.
5826         (delete_copyout): Add async parameter and async setting/unsetting.
5827         (acc_delete): Adjust delete_copyout call.
5828         (acc_copyout): Likewise.
5829         (acc_delete_async): New API function.
5830         (acc_copyout_async): Likewise.
5831         (update_dev_host): Add async parameter and async setting/unsetting.
5832         (acc_update_device): Adjust update_dev_host call.
5833         (acc_update_self): Likewise.
5834         (acc_update_device_async): New API function.
5835         (acc_update_self_async): Likewise.
5836         * openacc.h (acc_copyin_async): Declare new API function.
5837         (acc_create_async): Likewise.
5838         (acc_copyout_async): Likewise.
5839         (acc_delete_async): Likewise.
5840         (acc_update_device_async): Likewise.
5841         (acc_update_self_async): Likewise.
5842         (acc_memcpy_to_device_async): Likewise.
5843         (acc_memcpy_from_device_async): Likewise.
5844         * openacc_lib.h (acc_copyin_async_32_h): New subroutine.
5845         (acc_copyin_async_64_h): New subroutine.
5846         (acc_copyin_async_array_h): New subroutine.
5847         (acc_create_async_32_h): New subroutine.
5848         (acc_create_async_64_h): New subroutine.
5849         (acc_create_async_array_h): New subroutine.
5850         (acc_copyout_async_32_h): New subroutine.
5851         (acc_copyout_async_64_h): New subroutine.
5852         (acc_copyout_async_array_h): New subroutine.
5853         (acc_delete_async_32_h): New subroutine.
5854         (acc_delete_async_64_h): New subroutine.
5855         (acc_delete_async_array_h): New subroutine.
5856         (acc_update_device_async_32_h): New subroutine.
5857         (acc_update_device_async_64_h): New subroutine.
5858         (acc_update_device_async_array_h): New subroutine.
5859         (acc_update_self_async_32_h): New subroutine.
5860         (acc_update_self_async_64_h): New subroutine.
5861         (acc_update_self_async_array_h): New subroutine.
5862         * openacc.f90 (acc_copyin_async_32_h): New subroutine.
5863         (acc_copyin_async_64_h): New subroutine.
5864         (acc_copyin_async_array_h): New subroutine.
5865         (acc_create_async_32_h): New subroutine.
5866         (acc_create_async_64_h): New subroutine.
5867         (acc_create_async_array_h): New subroutine.
5868         (acc_copyout_async_32_h): New subroutine.
5869         (acc_copyout_async_64_h): New subroutine.
5870         (acc_copyout_async_array_h): New subroutine.
5871         (acc_delete_async_32_h): New subroutine.
5872         (acc_delete_async_64_h): New subroutine.
5873         (acc_delete_async_array_h): New subroutine.
5874         (acc_update_device_async_32_h): New subroutine.
5875         (acc_update_device_async_64_h): New subroutine.
5876         (acc_update_device_async_array_h): New subroutine.
5877         (acc_update_self_async_32_h): New subroutine.
5878         (acc_update_self_async_64_h): New subroutine.
5879         (acc_update_self_async_array_h): New subroutine.
5880         * libgomp.map (OACC_2.5): Add acc_copyin_async*, acc_copyout_async*,
5881         acc_copyout_finalize_async*, acc_create_async*, acc_delete_async*,
5882         acc_delete_finalize_async*, acc_memcpy_from_device_async*,
5883         acc_memcpy_to_device_async*, acc_update_device_async*, and
5884         acc_update_self_async* entries.
5885         * testsuite/libgomp.oacc-c-c++-common/lib-94.c: New test.
5886         * testsuite/libgomp.oacc-c-c++-common/lib-95.c: New test.
5887         * testsuite/libgomp.oacc-fortran/lib-16.f90: New test.
5889 2018-10-31  Joseph Myers  <joseph@codesourcery.com>
5891         PR bootstrap/82856
5892         * Makefile.am: Include multilib.am
5893         (AUTOMAKE_OPTIONS): Add info-in-builddir.
5894         (CLEANFILES): Remove libgomp.info.
5895         * configure.ac: Remove AC_PREREQ.
5896         * testsuite/Makefile.am (RUNTEST): Remove quotes.
5897         * Makefile.in, aclocal.m4, configure, testsuite/Makefile.in:
5898         Regenerate.
5900 2018-10-29  Joseph Myers  <joseph@codesourcery.com>
5901             Julian Brown  <julian@codesourcery.com>
5903         * testsuite/libgomp.oacc-c++/this.C: New.
5905 2018-09-18  Cesar Philippidis  <cesar@codesourcery.com>
5907         * plugin/plugin-nvptx.c (struct cuda_map): New.
5908         (struct ptx_stream): Replace d, h, h_begin, h_end, h_next, h_prev,
5909         h_tail with (cuda_map *) map.
5910         (cuda_map_create): New function.
5911         (cuda_map_destroy): New function.
5912         (map_init): Update to use a linked list of cuda_map objects.
5913         (map_fini): Likewise.
5914         (map_pop): Likewise.
5915         (map_push): Likewise.  Return CUdeviceptr instead of void.
5916         (init_streams_for_device): Remove stales references to ptx_stream
5917         members.
5918         (select_stream_for_async): Likewise.
5919         (nvptx_exec): Update call to map_init.
5921 2018-09-09  Cesar Philippidis  <cesar@codesourcery.com>
5922             Julian Brown  <julian@codesourcery.com>
5924         PR middle-end/86336
5925         * testsuite/libgomp.oacc-c++/non-scalar-data.C: Remove XFAIL.
5927 2018-08-21  Nicolas Koenig  <koenigni@gcc.gnu.org>
5928         Thomas Koenig <tkoenig@gcc.gnu.org>
5930         PR fortran/25829
5931         * testsuite/libgomp.fortran/async_io_1.f90: New test.
5932         * testsuite/libgomp.fortran/async_io_2.f90: New test.
5933         * testsuite/libgomp.fortran/async_io_3.f90: New test.
5934         * testsuite/libgomp.fortran/async_io_4.f90: New test.
5935         * testsuite/libgomp.fortran/async_io_5.f90: New test.
5936         * testsuite/libgomp.fortran/async_io_6.f90: New test.
5937         * testsuite/libgomp.fortran/async_io_7.f90: New test.
5939 2018-08-13  Cesar Philippidis  <cesar@codesourcery.com>
5940             Tom de Vries  <tdevries@suse.de>
5942         PR target/85590
5943         * plugin/cuda/cuda.h (CUoccupancyB2DSize): New typedef.
5944         (cuOccupancyMaxPotentialBlockSize): Declare.
5945         * plugin/cuda-lib.def (cuOccupancyMaxPotentialBlockSize): New
5946         CUDA_ONE_CALL_MAYBE_NULL.
5947         * plugin/plugin-nvptx.c (CUDA_VERSION < 6050): Define
5948         CUoccupancyB2DSize and declare
5949         cuOccupancyMaxPotentialBlockSize.
5950         (nvptx_exec): Use cuOccupancyMaxPotentialBlockSize to set the
5951         default num_gangs and num_workers when the driver supports it.
5953 2018-08-08  Tom de Vries  <tdevries@suse.de>
5955         * plugin/cuda-lib.def (cuLinkAddData_v2, cuLinkCreate_v2): Declare using
5956         CUDA_ONE_CALL_MAYBE_NULL.
5957         * plugin/plugin-nvptx.c (cuLinkAddData, cuLinkCreate): Undef and declare.
5958         (cuLinkAddData_v2, cuLinkCreate_v2): Declare.
5959         (link_ptx): Fall back to cuLinkAddData/cuLinkCreate if the _v2 versions
5960         are not found.
5962 2018-08-08  Tom de Vries  <tdevries@suse.de>
5964         * plugin/cuda-lib.def (cuGetErrorString): Use CUDA_ONE_CALL_MAYBE_NULL.
5965         * plugin/plugin-nvptx.c (cuda_error): Handle if cuGetErrorString is not
5966         present.
5968 2018-08-08  Tom de Vries  <tdevries@suse.de>
5970         * plugin/plugin-nvptx.c
5971         (CU_DEVICE_ATTRIBUTE_MAX_REGISTERS_PER_MULTIPROCESSOR): Define.
5972         (nvptx_open_device): Use
5973         CU_DEVICE_ATTRIBUTE_MAX_REGISTERS_PER_MULTIPROCESSOR.
5975 2018-08-08  Tom de Vries  <tdevries@suse.de>
5977         * plugin/plugin-nvptx.c (cuda_error): Move declaration of cuGetErrorString ...
5978         (cuGetErrorString): ... here.  Guard with CUDA_VERSION < 6000.
5980 2018-08-07  Tom de Vries  <tdevries@suse.de>
5982         * plugin/plugin-nvptx.c (DO_PRAGMA): Define.
5983         (struct cuda_lib_s): Add def/undef of CUDA_ONE_CALL_MAYBE_NULL.
5984         (init_cuda_lib): Add new param to CUDA_ONE_CALL_1.  Add arg to
5985         corresponding call in CUDA_ONE_CALL.  Add def/undef of
5986         CUDA_ONE_CALL_MAYBE_NULL.
5987         (CUDA_CALL_EXISTS): Define.
5989 2018-08-07  Tom de Vries  <tdevries@suse.de>
5991         * plugin/plugin-nvptx.c (struct cuda_lib_s, init_cuda_lib): Put
5992         CUDA_ONE_CALL defines right before the cuda-lib.def include, and the
5993         corresponding undefs right after.
5995 2018-08-04  Tom de Vries  <tdevries@suse.de>
5997         * plugin/configfrag.ac: For --without-cuda-driver, set
5998         CUDA_DRIVER_INCLUDE and CUDA_DRIVER_LIB to no.  Handle
5999         CUDA_DRIVER_INCLUDE == no and CUDA_DRIVER_LIB == no.
6000         * configure: Regenerate.
6002 2018-08-02  Tom de Vries  <tdevries@suse.de>
6004         PR target/86660
6005         * testsuite/libgomp.oacc-c++/routine-1-auto.C: Remove -fno-exceptions.
6006         * testsuite/libgomp.oacc-c++/routine-1-template-auto.C: Same.
6007         * testsuite/libgomp.oacc-c++/routine-1-template-trailing-return-type.C:
6008         Same.
6009         * testsuite/libgomp.oacc-c++/routine-1-template.C: Same.
6010         * testsuite/libgomp.oacc-c++/routine-1-trailing-return-type.C: Same.
6011         * testsuite/libgomp.oacc-c-c++-common/routine-1.c: Same.
6013 2018-08-01  Cesar Philippidis  <cesar@codesourcery.com>
6014             Thomas Schwinge <thomas@codesourcery.com>
6016         * config/nvptx/oacc-parallel.c: Truncate.
6018 2018-08-01  Cesar Philippidis  <cesar@codesourcery.com>
6019             James Norris <jnorris@codesourcery.com>
6021         * plugin/plugin-nvptx.c (struct map): Removed.
6022         (map_init, map_pop): Remove use of struct map.
6023         (map_push): Likewise and change argument list.
6024         * testsuite/libgomp.oacc-c-c++-common/mapping-1.c: New
6026 2018-08-01  Tom de Vries  <tdevries@suse.de>
6028         * plugin/cuda-lib.def: New file.  Factor out of ...
6029         * plugin/plugin-nvptx.c (CUDA_CALLS): ... here.
6030         (struct cuda_lib_s, init_cuda_lib): Include cuda-lib.def instead of
6031         using CUDA_CALLS.
6033 2018-07-31  Andre Vieira  <andre.simoesdiasvieira@arm.com>
6035         Revert 'AsyncI/O patch committed'.
6036         2018-07-25  Nicolas Koenig  <koenigni@gcc.gnu.org>
6037                 Thomas Koenig <tkoenig@gcc.gnu.org>
6039         PR fortran/25829
6040         * testsuite/libgomp.fortran/async_io_1.f90: New test.
6041         * testsuite/libgomp.fortran/async_io_2.f90: New test.
6042         * testsuite/libgomp.fortran/async_io_3.f90: New test.
6043         * testsuite/libgomp.fortran/async_io_4.f90: New test.
6044         * testsuite/libgomp.fortran/async_io_5.f90: New test.
6045         * testsuite/libgomp.fortran/async_io_6.f90: New test.
6046         * testsuite/libgomp.fortran/async_io_7.f90: New test.
6048 2018-07-30  Tom de Vries  <tdevries@suse.de>
6050         * plugin/plugin-nvptx.c (MIN, MAX): Redefine.
6051         (nvptx_exec): Ensure worker and vector default dims don't exceed
6052         targ_fn->max_threads_per_block.
6054 2018-07-30  Tom de Vries  <tdevries@suse.de>
6056         * plugin/plugin-nvptx.c (struct ptx_device): Add default_dims field.
6057         (nvptx_open_device): Init default_dims for device.
6058         (nvptx_exec): Use default_dims from device.
6060 2018-07-26  Jakub Jelinek  <jakub@redhat.com>
6062         PR testsuite/86660
6063         * testsuite/libgomp.c++/for-15.C (results): Include it in
6064         omp declare target region.
6065         (main): Use map (always, tofrom: results) instead of
6066         map (tofrom: results).
6068         PR middle-end/86660
6069         * testsuite/libgomp.c/pr86660.c: New test.
6071 2018-07-26  Cesar Philippidis  <cesar@codesourcery.com>
6072             Tom de Vries  <tdevries@suse.de>
6074         * plugin/plugin-nvptx.c (nvptx_exec): Error if the hardware doesn't have
6075         sufficient resources to launch a kernel, and give a hint on how to fix
6076         it.
6078 2018-07-26  Cesar Philippidis  <cesar@codesourcery.com>
6079             Tom de Vries  <tdevries@suse.de>
6081         * plugin/plugin-nvptx.c (struct ptx_device): Add warp_size,
6082         max_threads_per_block and max_threads_per_multiprocessor fields.
6083         (nvptx_open_device): Initialize new fields.
6084         (nvptx_exec): Use num_sms, and new fields.
6086 2018-07-26  Tom de Vries  <tdevries@suse.de>
6088         * testsuite/libgomp.oacc-fortran/lib-12.f90: Move acc_async_test calls
6089         to correct locations.  Remove xfail.
6091 2018-07-26  Tom de Vries  <tdevries@suse.de>
6093         * testsuite/libgomp.oacc-fortran/lib-13.f90: Replace acc_wait_all with
6094         acc_wait.  Move acc_async_test calls to correct locations.  Remove
6095         xfail.
6097 2018-07-25  Nicolas Koenig  <koenigni@gcc.gnu.org>
6098         Thomas Koenig <tkoenig@gcc.gnu.org>
6100         PR fortran/25829
6101         * testsuite/libgomp.fortran/async_io_1.f90: New test.
6102         * testsuite/libgomp.fortran/async_io_2.f90: New test.
6103         * testsuite/libgomp.fortran/async_io_3.f90: New test.
6104         * testsuite/libgomp.fortran/async_io_4.f90: New test.
6105         * testsuite/libgomp.fortran/async_io_5.f90: New test.
6106         * testsuite/libgomp.fortran/async_io_6.f90: New test.
6107         * testsuite/libgomp.fortran/async_io_7.f90: New test.
6109 2018-07-17  Jakub Jelinek  <jakub@redhat.com>
6111         PR middle-end/86542
6112         * testsuite/libgomp.c++/pr86542.C: New test.
6114         PR middle-end/86539
6115         * testsuite/libgomp.c++/pr86539.C: New test.
6117 2018-07-11  Jakub Jelinek  <jakub@redhat.com>
6119         PR c++/86443
6120         * testsuite/libgomp.c++/for-15.C (a): Remove unused variable.
6121         (results): Make sure the variable is not inside declare target region.
6122         (qux): Remove unused function.
6124 2018-07-10  Jakub Jelinek  <jakub@redhat.com>
6126         PR c++/86443
6127         * testsuite/libgomp.c++/for-15.C: New test.
6129 2018-06-26  Jakub Jelinek  <jakub@redhat.com>
6131         PR c++/86291
6132         * testsuite/libgomp.c++/pr86291.C: New test.
6134 2018-06-24  Gerald Pfeifer  <gerald@pfeifer.com>
6136         * libgomp.texi (Top): Move www.openmp.org to https.
6137         (Enabling OpenMP): Ditto.
6138         (omp_get_active_level): Ditto.
6139         (omp_get_ancestor_thread_num): Ditto.
6140         (omp_get_cancellation): Ditto.
6141         (omp_get_default_device): Ditto.
6142         (omp_get_dynamic): Ditto.
6143         (omp_get_level): Ditto.
6144         (omp_get_max_active_levels): Ditto.
6145         (omp_get_max_task_priority): Ditto.
6146         (omp_get_max_threads): Ditto.
6147         (omp_get_nested): Ditto.
6148         (omp_get_num_devices): Ditto.
6149         (omp_get_num_procs): Ditto.
6150         (omp_get_num_teams): Ditto.
6151         (omp_get_num_threads): Ditto.
6152         (omp_get_proc_bind): Ditto.
6153         (omp_get_schedule): Ditto.
6154         (omp_get_team_num): Ditto.
6155         (omp_get_team_size): Ditto.
6156         (omp_get_thread_limit): Ditto.
6157         (omp_get_thread_num): Ditto.
6158         (omp_in_parallel): Ditto.
6159         (omp_in_final): Ditto.
6160         (omp_is_initial_device): Ditto.
6161         (omp_set_default_device): Ditto.
6162         (omp_set_dynamic): Ditto.
6163         (omp_set_max_active_levels): Ditto.
6164         (omp_set_nested): Ditto.
6165         (omp_set_num_threads): Ditto.
6166         (omp_set_schedule): Ditto.
6167         (omp_init_lock): Ditto.
6168         (omp_set_lock): Ditto.
6169         (omp_test_lock): Ditto.
6170         (omp_unset_lock): Ditto.
6171         (omp_destroy_lock): Ditto.
6172         (omp_init_nest_lock): Ditto.
6173         (omp_set_nest_lock): Ditto.
6174         (omp_test_nest_lock): Ditto.
6175         (omp_unset_nest_lock): Ditto.
6176         (omp_destroy_nest_lock): Ditto.
6177         (omp_get_wtick): Ditto.
6178         (omp_get_wtime): Ditto.
6179         (OMP_CANCELLATION): Ditto.
6180         (OMP_DISPLAY_ENV): Ditto.
6181         (OMP_DEFAULT_DEVICE): Ditto.
6182         (OMP_DYNAMIC): Ditto.
6183         (OMP_MAX_ACTIVE_LEVELS): Ditto.
6184         (OMP_MAX_TASK_PRIORITY): Ditto.
6185         (OMP_NESTED): Ditto.
6186         (OMP_NUM_THREADS): Ditto.
6187         (OMP_PROC_BIND): Ditto.
6188         (OMP_PLACES): Ditto.
6189         (OMP_STACKSIZE): Ditto.
6190         (OMP_SCHEDULE): Ditto.
6191         (OMP_THREAD_LIMIT): Ditto.
6192         (OMP_WAIT_POLICY): Ditto.
6194 2018-06-22  Cesar Philippidis  <cesar@codesourcery.com>
6195             James Norris  <jnorris@codesourcery.com>
6196             Julian Brown  <julian@codesourcery.com>
6197             Thomas Schwinge  <thomas@codesourcery.com>
6198             Tom de Vries  <tom@codesourcery.com>
6200         * testsuite/libgomp.oacc-c-c++-common/loop-red-wv-1.c: Don't force "-O2".
6201         * testsuite/libgomp.oacc-c-c++-common/data-2.c: Update.
6202         * testsuite/libgomp.oacc-c-c++-common/host_data-1.c: Likewise.
6203         * testsuite/libgomp.oacc-c-c++-common/mode-transitions.c: Likewise.
6204         * testsuite/libgomp.oacc-fortran/data-1.f90: Likewise.
6205         * testsuite/libgomp.oacc-fortran/data-2.f90: Likewise.
6206         * testsuite/libgomp.oacc-c++/non-scalar-data.C: New file.
6207         * testsuite/libgomp.oacc-c-c++-common/declare-3.c: Likewise.
6208         * testsuite/libgomp.oacc-c-c++-common/enter-data.c: Likewise.
6209         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-2.c:
6210         Likewise.
6211         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-enter-exit-2.c:
6212         Likewise.
6213         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-enter-exit.c:
6214         Likewise.
6215         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-update.c:
6216         Likewise.
6217         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data.c:
6218         Likewise.
6219         * testsuite/libgomp.oacc-c-c++-common/kernels-parallel-loop-data-enter-exit.c:
6220         Likewise.
6221         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-1.c:
6222         Likewise.
6223         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-2.c:
6224         Likewise.
6225         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-3.c:
6226         Likewise.
6227         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-4.c:
6228         Likewise.
6229         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-5.c:
6230         Likewise.
6231         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-1.c:
6232         Likewise.
6233         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-2.c:
6234         Likewise.
6235         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-3.c:
6236         Likewise.
6237         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-4.c:
6238         Likewise.
6239         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-5.c:
6240         Likewise.
6241         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-6.c:
6242         Likewise.
6243         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-vector-1.c:
6244         Likewise.
6245         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-vector-2.c:
6246         Likewise.
6247         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-1.c:
6248         Likewise.
6249         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-2.c:
6250         Likewise.
6251         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-3.c:
6252         Likewise.
6253         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-4.c:
6254         Likewise.
6255         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-5.c:
6256         Likewise.
6257         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-6.c:
6258         Likewise.
6259         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-7.c:
6260         Likewise.
6261         * testsuite/libgomp.oacc-c-c++-common/kernels-reduction-1.c:
6262         Likewise.
6263         * testsuite/libgomp.oacc-c-c++-common/parallel-loop-1.c: Likewise.
6264         * testsuite/libgomp.oacc-c-c++-common/parallel-loop-1.h: Likewise.
6265         * testsuite/libgomp.oacc-c-c++-common/parallel-loop-2.h: Likewise.
6266         * testsuite/libgomp.oacc-fortran/cublas-fixed.h: Likewise.
6267         * testsuite/libgomp.oacc-fortran/dummy-array.f90: Likewise.
6268         * testsuite/libgomp.oacc-fortran/host_data-2.f90: Likewise.
6269         * testsuite/libgomp.oacc-fortran/host_data-3.f: Likewise.
6270         * testsuite/libgomp.oacc-fortran/host_data-4.f90: Likewise.
6271         * testsuite/libgomp.oacc-fortran/kernels-acc-loop-reduction-2.f90:
6272         Likewise.
6273         * testsuite/libgomp.oacc-fortran/kernels-acc-loop-reduction.f90:
6274         Likewise.
6275         * testsuite/libgomp.oacc-fortran/kernels-collapse-3.f90: Likewise.
6276         * testsuite/libgomp.oacc-fortran/kernels-collapse-4.f90: Likewise.
6277         * testsuite/libgomp.oacc-fortran/kernels-independent.f90:
6278         Likewise.
6279         * testsuite/libgomp.oacc-fortran/kernels-loop-1.f90: Likewise.
6280         * testsuite/libgomp.oacc-fortran/kernels-map-1.f90: Likewise.
6281         * testsuite/libgomp.oacc-fortran/kernels-parallel-loop-data-enter-exit.f95:
6282         Likewise.
6283         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-1.f90:
6284         Likewise.
6285         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-2.f90:
6286         Likewise.
6287         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-3.f90:
6288         Likewise.
6289         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-6.f90:
6290         Likewise.
6291         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-vector-1.f90:
6292         Likewise.
6293         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-vector-2.f90:
6294         Likewise.
6295         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-1.f90:
6296         Likewise.
6297         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-2.f90:
6298         Likewise.
6299         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-3.f90:
6300         Likewise.
6301         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-4.f90:
6302         Likewise.
6303         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-5.f90:
6304         Likewise.
6305         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-6.f90:
6306         Likewise.
6307         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-7.f90:
6308         Likewise.
6309         * testsuite/libgomp.oacc-fortran/kernels-reduction-1.f90:
6310         Likewise.
6311         * testsuite/libgomp.oacc-fortran/lib-12.f90: Likewise.
6312         * testsuite/libgomp.oacc-fortran/lib-13.f90: Likewise.
6313         * testsuite/libgomp.oacc-fortran/lib-14.f90: Likewise.
6314         * testsuite/libgomp.oacc-fortran/lib-15.f90: Likewise.
6315         * testsuite/libgomp.oacc-fortran/parallel-loop-1.f90: Likewise.
6316         * testsuite/libgomp.oacc-fortran/reference-reductions.f90: Likewise.
6317         * testsuite/libgomp.oacc-fortran/vector-routine.f90: Likewise.
6319 2018-06-20  Chung-Lin Tang <cltang@codesourcery.com>
6320             Thomas Schwinge <thomas@codesourcery.com>
6321             Cesar Philippidis  <cesar@codesourcery.com>
6323         * libgomp.h (struct splay_tree_key_s): Add dynamic_refcount member.
6324         (gomp_acc_remove_pointer): Update declaration.
6325         (gomp_acc_declare_allocate): Declare.
6326         (gomp_remove_var): Declare.
6327         * libgomp.map (OACC_2.5): Define.
6328         * oacc-mem.c (acc_map_data): Update refcount.
6329         (acc_unmap_data): Likewise.
6330         (present_create_copy): Likewise.
6331         (acc_create): Add FLAG_PRESENT when calling present_create_copy.
6332         (acc_copyin): Likewise.
6333         (FLAG_FINALIZE): Define.
6334         (delete_copyout): Update dynamic refcounts, add support for FINALIZE.
6335         (acc_delete_finalize): New function.
6336         (acc_delete_finalize_async): New function.
6337         (acc_copyout_finalize): New function.
6338         (acc_copyout_finalize_async): New function.
6339         (gomp_acc_insert_pointer): Update refcounts.
6340         (gomp_acc_remove_pointer): Return if data is not present on the
6341         accelerator.
6342         * oacc-parallel.c (find_pset): Rename to find_pointer.
6343         (find_pointer): Add support for GOMP_MAP_POINTER.
6344         (handle_ftn_pointers): New function.
6345         (GOACC_parallel_keyed): Update refcounts of variables.
6346         (GOACC_enter_exit_data): Add support for finalized data mappings.
6347         Add support for GOMP_MAP_{TO,ALLOC,RELESE,FROM}. Update handling
6348         of fortran arrays.
6349         (GOACC_update): Add support for GOMP_MAP_{ALWAYS_POINTER,TO,FROM}.
6350         (GOACC_declare): Add support for GOMP_MAP_RELEASE, remove support
6351         for GOMP_MAP_FORCE_FROM.
6352         * openacc.f90 (module openacc_internal): Add
6353         acc_copyout_finalize_{32_h,64_h,array_h,_l}, and
6354         acc_delete_finalize_{32_h,64_h,array_h,_l}. Add interfaces for
6355         acc_copyout_finalize and acc_delete_finalize.
6356         (acc_copyout_finalize_32_h): New subroutine.
6357         (acc_copyout_finalize_64_h): New subroutine.
6358         (acc_copyout_finalize_array_h): New subroutine.
6359         (acc_delete_finalize_32_h): New subroutine.
6360         (acc_delete_finalize_64_h): New subroutine.
6361         (acc_delete_finalize_array_h): New subroutine.
6362         * openacc.h (acc_copyout_finalize): Declare.
6363         (acc_copyout_finalize_async): Declare.
6364         (acc_delete_finalize): Declare.
6365         (acc_delete_finalize_async): Declare.
6366         * openacc_lib.h (acc_copyout_finalize): New interface.
6367         (acc_delete_finalize): New interface.
6368         * target.c (gomp_map_vars): Update dynamic_refcount.
6369         (gomp_remove_var): New function.
6370         (gomp_unmap_vars): Use it.
6371         (gomp_unload_image_from_device): Likewise.
6372         * testsuite/libgomp.oacc-c-c++-common/data-already-1.c: Update test
6373         case to utilize OpenACC 2.5 data clause semantics.
6374         * testsuite/libgomp.oacc-c-c++-common/data-already-2.c: Likewise.
6375         * testsuite/libgomp.oacc-c-c++-common/data-already-3.c: Likewise.
6376         * testsuite/libgomp.oacc-c-c++-common/data-already-4.c: Likewise.
6377         * testsuite/libgomp.oacc-c-c++-common/data-already-5.c: Likewise.
6378         * testsuite/libgomp.oacc-c-c++-common/data-already-6.c: Likewise.
6379         * testsuite/libgomp.oacc-c-c++-common/data-already-7.c: Likewise.
6380         * testsuite/libgomp.oacc-c-c++-common/data-already-8.c: Likewise.
6381         * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
6382         * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
6383         * testsuite/libgomp.oacc-c-c++-common/lib-32.c: Likewise.
6384         * testsuite/libgomp.oacc-c-c++-common/lib-83.c: Likewise.
6385         * testsuite/libgomp.oacc-fortran/data-5.f90: New test.
6386         * testsuite/libgomp.oacc-fortran/data-already-1.f: Update test case to
6387         utilize OpenACC 2.5 data clause semantics.
6388         * testsuite/libgomp.oacc-fortran/data-already-2.f: Likewise.
6389         * testsuite/libgomp.oacc-fortran/data-already-3.f: Likewise.
6390         * testsuite/libgomp.oacc-fortran/data-already-4.f: Likewise.
6391         * testsuite/libgomp.oacc-fortran/data-already-5.f: Likewise.
6392         * testsuite/libgomp.oacc-fortran/data-already-6.f: Likewise.
6393         * testsuite/libgomp.oacc-fortran/data-already-7.f: Likewise.
6394         * testsuite/libgomp.oacc-fortran/data-already-8.f: Likewise.
6395         * testsuite/libgomp.oacc-fortran/lib-32-1.f: Likewise.
6396         * testsuite/libgomp.oacc-fortran/lib-32-2.f: Likewise.
6398 2018-05-21  Janus Weil  <janus@gcc.gnu.org>
6400         PR fortran/85841
6401         PR testsuite/85865
6402         * testsuite/libgomp.fortran/collapse2.f90: Add option "-std=legacy".
6403         * testsuite/libgomp.fortran/omp_atomic2.f90: Ditto.
6404         * testsuite/libgomp.fortran/omp_parse1.f90: Ditto.
6405         * testsuite/libgomp.fortran/omp_parse3.f90: Ditto.
6406         * testsuite/libgomp.fortran/task2.f90: Ditto.
6407         * testsuite/libgomp.fortran/vla1.f90: Ditto.
6408         * testsuite/libgomp.fortran/vla2.f90: Ditto.
6409         * testsuite/libgomp.fortran/vla3.f90: Ditto.
6410         * testsuite/libgomp.fortran/vla4.f90: Ditto.
6411         * testsuite/libgomp.fortran/vla5.f90: Ditto.
6412         * testsuite/libgomp.fortran/vla6.f90: Ditto.
6413         * testsuite/libgomp.fortran/vla8.f90: Ditto.
6414         * testsuite/libgomp.oacc-fortran/collapse-2.f90: Ditto.
6415         * testsuite/libgomp.oacc-fortran/nested-function-1.f90: Ditto.
6417 2018-05-18  Cesar Philippidis  <cesar@codesourcery.com>
6419         PR c++/85782
6420         * testsuite/libgomp.oacc-c-c++-common/pr85782.c: New test.
6422 2018-05-09  Tom de Vries  <tom@codesourcery.com>
6424         PR libgomp/82901
6425         * oacc-parallel.c (GOACC_declare): Use GOMP_ASYNC_SYNC as async argument
6426         to GOACC_enter_exit_data.
6428 2018-05-09  Tom de Vries  <tom@codesourcery.com>
6430         PR libgomp/83792
6431         * oacc-int.h (async_valid_stream_id_p, async_valid_p)
6432         (async_synchronous_p): New function.
6433         * oacc-async.c (acc_async_test, acc_wait, acc_wait_all_async): Use
6434         async_valid_p.
6435         * oacc-cuda.c (acc_get_cuda_stream, acc_set_cuda_stream): Use
6436         async_valid_stream_id_p.
6437         * oacc-mem.c (gomp_acc_remove_pointer): Use async_synchronous_p.
6438         * oacc-parallel.c (GOACC_parallel_keyed): Same.
6440 2018-05-07  Tom de Vries  <tom@codesourcery.com>
6442         PR testsuite/85677
6443         * testsuite/lib/libgomp.exp (libgomp_init): Move inclusion of top-level
6444         include directory in ALWAYS_CFLAGS out of $blddir != "" condition.
6446 2018-05-03  Tom de Vries  <tom@codesourcery.com>
6448         PR testsuite/85106
6449         * testsuite/lib/libgomp-dg.exp (libgomp-dg-test): Add save-temps to
6450         extra_tool_flags if it contains an -foffload=-fdump-* flag.
6451         * testsuite/lib/libgomp.exp: Include scanoffloadtree.exp.
6452         * testsuite/libgomp.oacc-c/vec.c: Use scan-offload-tree-dump.
6454 2018-05-02  Tom de Vries  <tom@codesourcery.com>
6456         PR libgomp/85411
6457         * plugin/plugin-nvptx.c (nvptx_exec): Move parsing of
6458         GOMP_OPENACC_DIM ...
6459         * env.c (parse_gomp_openacc_dim): ... here.  New function.
6460         (initialize_env): Call parse_gomp_openacc_dim.
6461         (goacc_default_dims): Define.
6462         * libgomp.h (goacc_default_dims): Declare.
6463         * oacc-plugin.c (GOMP_PLUGIN_acc_default_dim): New function.
6464         * oacc-plugin.h (GOMP_PLUGIN_acc_default_dim): Declare.
6465         * libgomp.map: New version "GOMP_PLUGIN_1.2". Add
6466         GOMP_PLUGIN_acc_default_dim.
6467         * testsuite/libgomp.oacc-c-c++-common/loop-default-runtime.c: New test.
6468         * testsuite/libgomp.oacc-c-c++-common/loop-default.h: New test.
6470 2018-05-02  Tom de Vries  <tom@codesourcery.com>
6472         PR testsuite/83791
6473         * testsuite/libgomp.c++/udr-9.C: Update.
6474         * testsuite/libgomp.c++/atomic-16.C: Remove.
6475         * testsuite/libgomp.c++/cancel-taskgroup-2.C: Remove.
6476         * testsuite/libgomp.c++/loop-13.C: Remove.
6477         * testsuite/libgomp.c++/loop-14.C: Remove.
6478         * testsuite/libgomp.c++/loop-15.C: Remove.
6479         * testsuite/libgomp.c++/monotonic-1.C: Remove.
6480         * testsuite/libgomp.c++/monotonic-2.C: Remove.
6481         * testsuite/libgomp.c++/nonmonotonic-1.C: Remove.
6482         * testsuite/libgomp.c++/nonmonotonic-2.C: Remove.
6483         * testsuite/libgomp.c++/ordered-1.C: Remove.
6484         * testsuite/libgomp.c++/pr45784.C: Remove.
6485         * testsuite/libgomp.c++/pr64824.C: Remove.
6486         * testsuite/libgomp.c++/pr64868.C: Remove.
6487         * testsuite/libgomp.c++/pr66199-1.C: Remove.
6488         * testsuite/libgomp.c++/pr66199-2.C: Remove.
6489         * testsuite/libgomp.c++/pr66199-3.C: Remove.
6490         * testsuite/libgomp.c++/pr66199-4.C: Remove.
6491         * testsuite/libgomp.c++/pr66199-5.C: Remove.
6492         * testsuite/libgomp.c++/pr66199-6.C: Remove.
6493         * testsuite/libgomp.c++/pr66199-7.C: Remove.
6494         * testsuite/libgomp.c++/pr66199-8.C: Remove.
6495         * testsuite/libgomp.c++/pr66199-9.C: Remove.
6496         * testsuite/libgomp.c++/pr69389.C: Remove.
6497         * testsuite/libgomp.c++/simd10.C: Remove.
6498         * testsuite/libgomp.c++/simd11.C: Remove.
6499         * testsuite/libgomp.c++/simd12.C: Remove.
6500         * testsuite/libgomp.c++/simd13.C: Remove.
6501         * testsuite/libgomp.c++/target-1.C: Remove.
6502         * testsuite/libgomp.c++/target-3.C: Remove.
6503         * testsuite/libgomp.c++/target-4.C: Remove.
6504         * testsuite/libgomp.c++/target-5.C: Remove.
6505         * testsuite/libgomp.c++/taskgroup-1.C: Remove.
6506         * testsuite/libgomp.c++/taskloop-1.C: Remove.
6507         * testsuite/libgomp.c++/taskloop-2.C: Remove.
6508         * testsuite/libgomp.c++/taskloop-3.C: Remove.
6509         * testsuite/libgomp.c++/taskloop-4.C: Remove.
6510         * testsuite/libgomp.c++/udr-9.C: Remove.
6511         * testsuite/libgomp.c++/for-10.C: Remove.
6512         * testsuite/libgomp.c++/for-11.C: Remove.
6513         * testsuite/libgomp.c++/for-12.C: Remove.
6514         * testsuite/libgomp.c++/for-13.C: Remove.
6515         * testsuite/libgomp.c++/for-14.C: Remove.
6516         * testsuite/libgomp.c++/for-9.C: Remove.
6517         * testsuite/libgomp.c/atomic-18.c: Move ...
6518         * testsuite/libgomp.c-c++-common/atomic-18.c: ... here.
6519         * testsuite/libgomp.c/cancel-taskgroup-2.c: Move ...
6520         * testsuite/libgomp.c-c++-common/cancel-taskgroup-2.c: here.
6521         * testsuite/libgomp.c/loop-13.c: Move ...
6522         * testsuite/libgomp.c-c++-common/loop-13.c: ... here.
6523         * testsuite/libgomp.c/loop-14.c: Move ...
6524         * testsuite/libgomp.c-c++-common/loop-14.c: ... here.
6525         * testsuite/libgomp.c/loop-15.c: Remove.
6526         * testsuite/libgomp.c-c++-common/loop-15.c: New test.
6527         * testsuite/libgomp.c/monotonic-1.c: Move ...
6528         * testsuite/libgomp.c-c++-common/monotonic-1.c: ... here.
6529         * testsuite/libgomp.c/monotonic-2.c: Move ...
6530         * testsuite/libgomp.c-c++-common/monotonic-2.c: ... here.
6531         * testsuite/libgomp.c/nonmonotonic-1.c: Move ...
6532         * testsuite/libgomp.c-c++-common/nonmonotonic-1.c: ... here.
6533         * testsuite/libgomp.c/nonmonotonic-2.c: Move ...
6534         * testsuite/libgomp.c-c++-common/nonmonotonic-2.c: ... here.
6535         * testsuite/libgomp.c/ordered-4.c: Move ...
6536         * testsuite/libgomp.c-c++-common/ordered-4.c: ... here.
6537         * testsuite/libgomp.c/pr45784.c: Move ...
6538         * testsuite/libgomp.c-c++-common/pr45784.c: ... here.
6539         * testsuite/libgomp.c/pr64824.c: Move ...
6540         * testsuite/libgomp.c-c++-common/pr64824.c: ... here.
6541         * testsuite/libgomp.c/pr64868.c: Move ...
6542         * testsuite/libgomp.c-c++-common/pr64868.c: ... here.
6543         * testsuite/libgomp.c/pr66199-1.c: Move ...
6544         * testsuite/libgomp.c-c++-common/pr66199-1.c: ... here.
6545         * testsuite/libgomp.c/pr66199-2.c: Move ...
6546         * testsuite/libgomp.c-c++-common/pr66199-2.c: ... here.
6547         * testsuite/libgomp.c/pr66199-3.c: Move ...
6548         * testsuite/libgomp.c-c++-common/pr66199-3.c: ... here.
6549         * testsuite/libgomp.c/pr66199-4.c: Move ...
6550         * testsuite/libgomp.c-c++-common/pr66199-4.c: ... here.
6551         * testsuite/libgomp.c/pr66199-5.c: Move ...
6552         * testsuite/libgomp.c-c++-common/pr66199-5.c: ... here.
6553         * testsuite/libgomp.c/pr66199-6.c: Move ...
6554         * testsuite/libgomp.c-c++-common/pr66199-6.c: ... here.
6555         * testsuite/libgomp.c/pr66199-7.c: Move ...
6556         * testsuite/libgomp.c-c++-common/pr66199-7.c: ... here.
6557         * testsuite/libgomp.c/pr66199-8.c: Move ...
6558         * testsuite/libgomp.c-c++-common/pr66199-8.c: ... here.
6559         * testsuite/libgomp.c/pr66199-9.c: Move ...
6560         * testsuite/libgomp.c-c++-common/pr66199-9.c: ... here.
6561         * testsuite/libgomp.c/pr69389.c: Move ...
6562         * testsuite/libgomp.c-c++-common/pr69389.c: ... here.
6563         * testsuite/libgomp.c/simd-14.c: Move ...
6564         * testsuite/libgomp.c-c++-common/simd-14.c: ... here.
6565         * testsuite/libgomp.c/simd-15.c: Move ...
6566         * testsuite/libgomp.c-c++-common/simd-15.c: ... here.
6567         * testsuite/libgomp.c/simd-16.c: Move ...
6568         * testsuite/libgomp.c-c++-common/simd-16.c: ... here.
6569         * testsuite/libgomp.c/simd-17.c: Move ...
6570         * testsuite/libgomp.c-c++-common/simd-17.c: ... here.
6571         * testsuite/libgomp.c/target-1.c: Move ...
6572         * testsuite/libgomp.c-c++-common/target-1.c: ... here.
6573         * testsuite/libgomp.c/target-10.c: Move ...
6574         * testsuite/libgomp.c-c++-common/target-10.c: ... here.
6575         * testsuite/libgomp.c/target-13.c: Move ...
6576         * testsuite/libgomp.c-c++-common/target-13.c: ... here.
6577         * testsuite/libgomp.c/target-2.c: Move ...
6578         * testsuite/libgomp.c-c++-common/target-2.c: ... here.
6579         * testsuite/libgomp.c/taskgroup-1.c: Move ...
6580         * testsuite/libgomp.c-c++-common/taskgroup-1.c: ... here.
6581         * testsuite/libgomp.c/taskloop-1.c: Move ...
6582         * testsuite/libgomp.c-c++-common/taskloop-1.c: ... here.
6583         * testsuite/libgomp.c/taskloop-2.c: Move ...
6584         * testsuite/libgomp.c-c++-common/taskloop-2.c: ... here.
6585         * testsuite/libgomp.c/taskloop-3.c: Move ...
6586         * testsuite/libgomp.c-c++-common/taskloop-3.c: ... here.
6587         * testsuite/libgomp.c/taskloop-4.c: Move ...
6588         * testsuite/libgomp.c-c++-common/taskloop-4.c: ... here.
6589         * testsuite/libgomp.c/udr-1.c: Move ...
6590         * testsuite/libgomp.c-c++-common/udr-1.c: ... here.
6591         * testsuite/libgomp.c/for-1.c: Move ...
6592         * testsuite/libgomp.c-c++-common/for-1.c: ... here.
6593         * testsuite/libgomp.c/for-1.h: Move ...
6594         * testsuite/libgomp.c-c++-common/for-1.h: ... here.
6595         * testsuite/libgomp.c/for-2.c: Move ...
6596         * testsuite/libgomp.c-c++-common/for-2.c: ... here.
6597         * testsuite/libgomp.c/for-2.h: Move ...
6598         * testsuite/libgomp.c-c++-common/for-2.h: ... here.
6599         * testsuite/libgomp.c/for-3.c: Move ...
6600         * testsuite/libgomp.c-c++-common/for-3.c: ... here.
6601         * testsuite/libgomp.c/for-4.c: Move ...
6602         * testsuite/libgomp.c-c++-common/for-4.c: ... here.
6603         * testsuite/libgomp.c/for-5.c: Move ...
6604         * testsuite/libgomp.c-c++-common/for-5.c: ... here.
6605         * testsuite/libgomp.c/for-6.c: Move ...
6606         * testsuite/libgomp.c-c++-common/for-6.c: ... here.
6608 2018-05-02  Tom de Vries  <tom@codesourcery.com>
6610         PR libgomp/82428
6611         * testsuite/libgomp.oacc-c-c++-common/gang-static-2.c: Use
6612         __builtin_goacc_parlevel_{id,size}.
6613         * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Same.
6614         * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: Same.
6615         * testsuite/libgomp.oacc-c-c++-common/loop-g-1.c: Same.
6616         * testsuite/libgomp.oacc-c-c++-common/loop-g-2.c: Same.
6617         * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c: Same.
6618         * testsuite/libgomp.oacc-c-c++-common/loop-red-g-1.c: Same.
6619         * testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c: Same.
6620         * testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c: Same.
6621         * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c: Same.
6622         * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c: Same.
6623         * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c: Same.
6624         * testsuite/libgomp.oacc-c-c++-common/loop-red-wv-1.c: Same.
6625         * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c: Same.
6626         * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c: Same.
6627         * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c: Same.
6628         * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Same.
6629         * testsuite/libgomp.oacc-c-c++-common/routine-g-1.c: Same.
6630         * testsuite/libgomp.oacc-c-c++-common/routine-gwv-1.c: Same.
6631         * testsuite/libgomp.oacc-c-c++-common/routine-v-1.c: Same.
6632         * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c: Same.
6633         * testsuite/libgomp.oacc-c-c++-common/routine-wv-1.c: Same.
6634         * testsuite/libgomp.oacc-c-c++-common/routine-wv-2.c: Same.
6635         * testsuite/libgomp.oacc-c-c++-common/tile-1.c: Same.
6637 2018-05-02  Tom de Vries  <tom@codesourcery.com>
6639         PR testsuite/85106
6640         * testsuite/lib/libgomp.exp: Include scanltranstree.exp.
6642 2018-05-02  Tom de Vries  <tom@codesourcery.com>
6644         PR testsuite/85106
6645         * testsuite/lib/libgomp.exp: Include scanwpaipa.exp.
6647 2018-04-29  Julian Brown  <julian@codesourcery.com>
6648             Tom de Vries  <tom@codesourcery.com>
6650         PR testsuite/85527
6651         * testsuite/libgomp.oacc-c-c++-common/atomic_capture-1.c: Allow
6652         arbitrary order for iterations of atomic subtract check.
6654 2018-04-28  Tom de Vries  <tom@codesourcery.com>
6656         PR testsuite/85527
6657         * testsuite/libgomp.oacc-fortran/atomic_capture-1.f90 (main): Store
6658         atomic capture results obtained in parallel loop to an array, instead of
6659         to a scalar.
6661 2018-04-26  Tom de Vries  <tom@codesourcery.com>
6663         PR libgomp/84020
6664         * plugin/cuda/cuda.h (CUjit_option): Add CU_JIT_OPTIMIZATION_LEVEL.
6665         * plugin/plugin-nvptx.c (_GNU_SOURCE): Define.
6666         (process_GOMP_NVPTX_JIT): New function.
6667         (link_ptx): Use process_GOMP_NVPTX_JIT.
6669 2018-04-26  Richard Biener <rguenther@suse.de>
6670             Tom de Vries  <tom@codesourcery.com>
6672         PR lto/85422
6673         * testsuite/libgomp.oacc-c-c++-common/pr85422.c: New test.
6675 2018-04-26  Tom de Vries  <tom@codesourcery.com>
6677         PR target/85519
6678         * testsuite/libgomp.fortran/examples-4/declare_target-1.f90: Reduce
6679         recursion depth from 25 to 23.
6680         * testsuite/libgomp.fortran/examples-4/declare_target-2.f90: Same.
6682 2018-04-24  H.J. Lu  <hongjiu.lu@intel.com>
6684         * configure: Regenerated.
6686 2018-04-20  Nathan Sidwell  <nathan@codesourcery.com>
6687             Tom de Vries  <tom@codesourcery.com>
6689         PR target/85445
6690         * testsuite/libgomp.oacc-c++/ref-1.C: New.
6692 2018-04-19  Thomas Schwinge  <thomas@codesourcery.com>
6694         PR libgomp/85463
6695         * testsuite/libgomp.oacc-fortran/error_stop-1.f: New file.
6696         * testsuite/libgomp.oacc-fortran/error_stop-2.f: Likewise.
6697         * testsuite/libgomp.oacc-fortran/error_stop-3.f: Likewise.
6698         * testsuite/libgomp.oacc-fortran/stop-1.f: Likewise.
6699         * testsuite/libgomp.oacc-fortran/stop-2.f: Likewise.
6700         * testsuite/libgomp.oacc-fortran/stop-3.f: Likewise.
6702         PR libfortran/85166
6703         * testsuite/libgomp.oacc-fortran/abort-1.f90: Switch back to "call
6704         abort".
6705         * testsuite/libgomp.oacc-fortran/abort-2.f90: Likewise.
6707 2018-04-19  Jakub Jelinek  <jakub@redhat.com>
6709         * configure: Regenerated.
6711 2018-04-18  David Malcolm  <dmalcolm@redhat.com>
6713         PR jit/85384
6714         * configure: Regenerate.
6716 2018-04-16  Cesar Philippidis  <cesar@codesourcery.com>
6717             Tom de Vries  <tom@codesourcery.com>
6719         PR middle-end/84955
6720         * testsuite/libgomp.oacc-c-c++-common/pr84955.c: New test.
6721         * testsuite/libgomp.oacc-fortran/pr84955.f90: New test.
6723 2018-04-12  Thomas Koenig  <tkoenig@gcc.gnu.org>
6725         PR fortran/83064
6726         PR testsuite/85346
6727         * testsuite/libgomp.fortran/do_concurrent_5.f90: Move modified
6728         test from gfortran.dg to here.
6730 2018-04-12  Cesar Philippidis  <cesar@codesourcery.com>
6732         * testsuite/libgomp.oacc-c-c++-common/pr84955.c: Revert 259346.
6733         * testsuite/libgomp.oacc-fortran/pr84955.f90: Likewise.
6735 2018-04-12  Cesar Philippidis  <cesar@codesourcery.com>
6737         PR middle-end/84955
6738         * testsuite/libgomp.oacc-c-c++-common/pr84955.c: New test.
6739         * testsuite/libgomp.oacc-fortran/pr84955.f90: New test.
6741 2018-04-05  Tom de Vries  <tom@codesourcery.com>
6743         PR target/85204
6744         * testsuite/libgomp.oacc-c-c++-common/broadcast-1.c: New test.
6746 2018-03-26  Tom de Vries  <tom@codesourcery.com>
6748         PR tree-optimization/85063
6749         * testsuite/libgomp.c/switch-conversion-2.c: New test.
6750         * testsuite/libgomp.c/switch-conversion.c: New test.
6751         * testsuite/libgomp.oacc-c-c++-common/switch-conversion-2.c: New test.
6752         * testsuite/libgomp.oacc-c-c++-common/switch-conversion.c: New test.
6754 2018-03-25  Thomas Koenig  <tkoenig@gcc.gnu.org>
6756         PR fortran/84381
6757         * testsuite/libgomp.fortran/aligned1.f03: Replace non-standard
6758         call abort by STOP n.
6759         * testsuite/libgomp.fortran/alloc-comp-1.f90: Likewise.
6760         * testsuite/libgomp.fortran/alloc-comp-2.f90: Likewise.
6761         * testsuite/libgomp.fortran/alloc-comp-3.f90: Likewise.
6762         * testsuite/libgomp.fortran/allocatable1.f90: Likewise.
6763         * testsuite/libgomp.fortran/allocatable10.f90: Likewise.
6764         * testsuite/libgomp.fortran/allocatable11.f90: Likewise.
6765         * testsuite/libgomp.fortran/allocatable12.f90: Likewise.
6766         * testsuite/libgomp.fortran/allocatable2.f90: Likewise.
6767         * testsuite/libgomp.fortran/allocatable3.f90: Likewise.
6768         * testsuite/libgomp.fortran/allocatable4.f90: Likewise.
6769         * testsuite/libgomp.fortran/allocatable5.f90: Likewise.
6770         * testsuite/libgomp.fortran/allocatable6.f90: Likewise.
6771         * testsuite/libgomp.fortran/allocatable7.f90: Likewise.
6772         * testsuite/libgomp.fortran/allocatable8.f90: Likewise.
6773         * testsuite/libgomp.fortran/allocatable9.f90: Likewise.
6774         * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: Likewise.
6775         * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: Likewise.
6776         * testsuite/libgomp.fortran/associate1.f90: Likewise.
6777         * testsuite/libgomp.fortran/associate2.f90: Likewise.
6778         * testsuite/libgomp.fortran/associate3.f90: Likewise.
6779         * testsuite/libgomp.fortran/cancel-do-1.f90: Likewise.
6780         * testsuite/libgomp.fortran/cancel-do-2.f90: Likewise.
6781         * testsuite/libgomp.fortran/cancel-parallel-1.f90: Likewise.
6782         * testsuite/libgomp.fortran/cancel-sections-1.f90: Likewise.
6783         * testsuite/libgomp.fortran/cancel-taskgroup-2.f90: Likewise.
6784         * testsuite/libgomp.fortran/character1.f90: Likewise.
6785         * testsuite/libgomp.fortran/character2.f90: Likewise.
6786         * testsuite/libgomp.fortran/collapse1.f90: Likewise.
6787         * testsuite/libgomp.fortran/collapse2.f90: Likewise.
6788         * testsuite/libgomp.fortran/collapse3.f90: Likewise.
6789         * testsuite/libgomp.fortran/collapse4.f90: Likewise.
6790         * testsuite/libgomp.fortran/crayptr1.f90: Likewise.
6791         * testsuite/libgomp.fortran/crayptr2.f90: Likewise.
6792         * testsuite/libgomp.fortran/crayptr3.f90: Likewise.
6793         * testsuite/libgomp.fortran/declare-simd-1.f90: Likewise.
6794         * testsuite/libgomp.fortran/declare-simd-3.f90: Likewise.
6795         * testsuite/libgomp.fortran/declare-target-2.f90: Likewise.
6796         * testsuite/libgomp.fortran/depend-1.f90: Likewise.
6797         * testsuite/libgomp.fortran/depend-2.f90: Likewise.
6798         * testsuite/libgomp.fortran/depend-3.f90: Likewise.
6799         * testsuite/libgomp.fortran/do1.f90: Likewise.
6800         * testsuite/libgomp.fortran/do2.f90: Likewise.
6801         * testsuite/libgomp.fortran/doacross1.f90: Likewise.
6802         * testsuite/libgomp.fortran/doacross2.f90: Likewise.
6803         * testsuite/libgomp.fortran/doacross3.f90: Likewise.
6804         * testsuite/libgomp.fortran/examples-4/array_sections-3.f90: Likewise.
6805         * testsuite/libgomp.fortran/examples-4/array_sections-4.f90: Likewise.
6806         * testsuite/libgomp.fortran/examples-4/async_target-1.f90: Likewise.
6807         * testsuite/libgomp.fortran/examples-4/async_target-2.f90: Likewise.
6808         * testsuite/libgomp.fortran/examples-4/declare_target-1.f90: Likewise.
6809         * testsuite/libgomp.fortran/examples-4/declare_target-2.f90: Likewise.
6810         * testsuite/libgomp.fortran/examples-4/declare_target-3.f90: Likewise.
6811         * testsuite/libgomp.fortran/examples-4/declare_target-4.f90: Likewise.
6812         * testsuite/libgomp.fortran/examples-4/declare_target-5.f90: Likewise.
6813         * testsuite/libgomp.fortran/examples-4/device-1.f90: Likewise.
6814         * testsuite/libgomp.fortran/examples-4/device-2.f90: Likewise.
6815         * testsuite/libgomp.fortran/examples-4/device-3.f90: Likewise.
6816         * testsuite/libgomp.fortran/examples-4/simd-1.f90: Likewise.
6817         * testsuite/libgomp.fortran/examples-4/simd-2.f90: Likewise.
6818         * testsuite/libgomp.fortran/examples-4/simd-3.f90: Likewise.
6819         * testsuite/libgomp.fortran/examples-4/simd-4.f90: Likewise.
6820         * testsuite/libgomp.fortran/examples-4/simd-5.f90: Likewise.
6821         * testsuite/libgomp.fortran/examples-4/simd-6.f90: Likewise.
6822         * testsuite/libgomp.fortran/examples-4/simd-7.f90: Likewise.
6823         * testsuite/libgomp.fortran/examples-4/simd-8.f90: Likewise.
6824         * testsuite/libgomp.fortran/examples-4/target-1.f90: Likewise.
6825         * testsuite/libgomp.fortran/examples-4/target-2.f90: Likewise.
6826         * testsuite/libgomp.fortran/examples-4/target-3.f90: Likewise.
6827         * testsuite/libgomp.fortran/examples-4/target-4.f90: Likewise.
6828         * testsuite/libgomp.fortran/examples-4/target-5.f90: Likewise.
6829         * testsuite/libgomp.fortran/examples-4/target_data-1.f90: Likewise.
6830         * testsuite/libgomp.fortran/examples-4/target_data-2.f90: Likewise.
6831         * testsuite/libgomp.fortran/examples-4/target_data-3.f90: Likewise.
6832         * testsuite/libgomp.fortran/examples-4/target_data-4.f90: Likewise.
6833         * testsuite/libgomp.fortran/examples-4/target_data-5.f90: Likewise.
6834         * testsuite/libgomp.fortran/examples-4/target_data-6.f90: Likewise.
6835         * testsuite/libgomp.fortran/examples-4/target_data-7.f90: Likewise.
6836         * testsuite/libgomp.fortran/examples-4/target_update-1.f90: Likewise.
6837         * testsuite/libgomp.fortran/examples-4/target_update-2.f90: Likewise.
6838         * testsuite/libgomp.fortran/examples-4/task_dep-1.f90: Likewise.
6839         * testsuite/libgomp.fortran/examples-4/task_dep-2.f90: Likewise.
6840         * testsuite/libgomp.fortran/examples-4/task_dep-3.f90: Likewise.
6841         * testsuite/libgomp.fortran/examples-4/task_dep-4.f90: Likewise.
6842         * testsuite/libgomp.fortran/examples-4/task_dep-5.f90: Likewise.
6843         * testsuite/libgomp.fortran/examples-4/teams-2.f90: Likewise.
6844         * testsuite/libgomp.fortran/examples-4/teams-3.f90: Likewise.
6845         * testsuite/libgomp.fortran/examples-4/teams-4.f90: Likewise.
6846         * testsuite/libgomp.fortran/examples-4/teams-5.f90: Likewise.
6847         * testsuite/libgomp.fortran/examples-4/teams-6.f90: Likewise.
6848         * testsuite/libgomp.fortran/lastprivate1.f90: Likewise.
6849         * testsuite/libgomp.fortran/lastprivate2.f90: Likewise.
6850         * testsuite/libgomp.fortran/lib1.f90: Likewise.
6851         * testsuite/libgomp.fortran/lib2.f: Likewise.
6852         * testsuite/libgomp.fortran/lib3.f: Likewise.
6853         * testsuite/libgomp.fortran/lib4.f90: Likewise.
6854         * testsuite/libgomp.fortran/lock-1.f90: Likewise.
6855         * testsuite/libgomp.fortran/lock-2.f90: Likewise.
6856         * testsuite/libgomp.fortran/nested1.f90: Likewise.
6857         * testsuite/libgomp.fortran/nestedfn1.f90: Likewise.
6858         * testsuite/libgomp.fortran/nestedfn2.f90: Likewise.
6859         * testsuite/libgomp.fortran/nestedfn3.f90: Likewise.
6860         * testsuite/libgomp.fortran/nestedfn4.f90: Likewise.
6861         * testsuite/libgomp.fortran/nestedfn5.f90: Likewise.
6862         * testsuite/libgomp.fortran/omp_atomic1.f90: Likewise.
6863         * testsuite/libgomp.fortran/omp_atomic2.f90: Likewise.
6864         * testsuite/libgomp.fortran/omp_atomic3.f90: Likewise.
6865         * testsuite/libgomp.fortran/omp_atomic4.f90: Likewise.
6866         * testsuite/libgomp.fortran/omp_atomic5.f90: Likewise.
6867         * testsuite/libgomp.fortran/omp_cond1.f: Likewise.
6868         * testsuite/libgomp.fortran/omp_cond2.f: Likewise.
6869         * testsuite/libgomp.fortran/omp_cond3.F90: Likewise.
6870         * testsuite/libgomp.fortran/omp_cond4.F90: Likewise.
6871         * testsuite/libgomp.fortran/omp_parse1.f90: Likewise.
6872         * testsuite/libgomp.fortran/omp_parse2.f90: Likewise.
6873         * testsuite/libgomp.fortran/omp_parse3.f90: Likewise.
6874         * testsuite/libgomp.fortran/omp_parse4.f90: Likewise.
6875         * testsuite/libgomp.fortran/openmp_version-1.f: Likewise.
6876         * testsuite/libgomp.fortran/openmp_version-2.f90: Likewise.
6877         * testsuite/libgomp.fortran/parloops-exit-first-loop-alt-2.f95: Likewise.
6878         * testsuite/libgomp.fortran/parloops-exit-first-loop-alt.f95: Likewise.
6879         * testsuite/libgomp.fortran/pointer1.f90: Likewise.
6880         * testsuite/libgomp.fortran/pointer2.f90: Likewise.
6881         * testsuite/libgomp.fortran/pr25162.f: Likewise.
6882         * testsuite/libgomp.fortran/pr25219.f90: Likewise.
6883         * testsuite/libgomp.fortran/pr27395-1.f90: Likewise.
6884         * testsuite/libgomp.fortran/pr27395-2.f90: Likewise.
6885         * testsuite/libgomp.fortran/pr27416-1.f90: Likewise.
6886         * testsuite/libgomp.fortran/pr27916-1.f90: Likewise.
6887         * testsuite/libgomp.fortran/pr27916-2.f90: Likewise.
6888         * testsuite/libgomp.fortran/pr28390.f: Likewise.
6889         * testsuite/libgomp.fortran/pr29629.f90: Likewise.
6890         * testsuite/libgomp.fortran/pr32550.f90: Likewise.
6891         * testsuite/libgomp.fortran/pr33880.f90: Likewise.
6892         * testsuite/libgomp.fortran/pr34020.f90: Likewise.
6893         * testsuite/libgomp.fortran/pr35130.f90: Likewise.
6894         * testsuite/libgomp.fortran/pr42162.f90: Likewise.
6895         * testsuite/libgomp.fortran/pr46753.f90: Likewise.
6896         * testsuite/libgomp.fortran/pr48894.f90: Likewise.
6897         * testsuite/libgomp.fortran/pr49792-1.f90: Likewise.
6898         * testsuite/libgomp.fortran/pr49792-2.f90: Likewise.
6899         * testsuite/libgomp.fortran/pr63938-1.f90: Likewise.
6900         * testsuite/libgomp.fortran/pr63938-2.f90: Likewise.
6901         * testsuite/libgomp.fortran/pr65597.f90: Likewise.
6902         * testsuite/libgomp.fortran/pr66199-1.f90: Likewise.
6903         * testsuite/libgomp.fortran/pr71014.f90: Likewise.
6904         * testsuite/libgomp.fortran/pr81304.f90: Likewise.
6905         * testsuite/libgomp.fortran/pr81841.f90: Likewise.
6906         * testsuite/libgomp.fortran/pr84418-1.f90: Likewise.
6907         * testsuite/libgomp.fortran/pr84418-2.f90: Likewise.
6908         * testsuite/libgomp.fortran/procptr1.f90: Likewise.
6909         * testsuite/libgomp.fortran/recursion1.f90: Likewise.
6910         * testsuite/libgomp.fortran/reduction1.f90: Likewise.
6911         * testsuite/libgomp.fortran/reduction2.f90: Likewise.
6912         * testsuite/libgomp.fortran/reduction3.f90: Likewise.
6913         * testsuite/libgomp.fortran/reduction4.f90: Likewise.
6914         * testsuite/libgomp.fortran/reduction5.f90: Likewise.
6915         * testsuite/libgomp.fortran/reduction6.f90: Likewise.
6916         * testsuite/libgomp.fortran/reference1.f90: Likewise.
6917         * testsuite/libgomp.fortran/reference2.f90: Likewise.
6918         * testsuite/libgomp.fortran/retval1.f90: Likewise.
6919         * testsuite/libgomp.fortran/retval2.f90: Likewise.
6920         * testsuite/libgomp.fortran/sharing1.f90: Likewise.
6921         * testsuite/libgomp.fortran/sharing2.f90: Likewise.
6922         * testsuite/libgomp.fortran/simd1.f90: Likewise.
6923         * testsuite/libgomp.fortran/simd2.f90: Likewise.
6924         * testsuite/libgomp.fortran/simd3.f90: Likewise.
6925         * testsuite/libgomp.fortran/simd4.f90: Likewise.
6926         * testsuite/libgomp.fortran/simd5.f90: Likewise.
6927         * testsuite/libgomp.fortran/simd6.f90: Likewise.
6928         * testsuite/libgomp.fortran/simd7.f90: Likewise.
6929         * testsuite/libgomp.fortran/stack.f90: Likewise.
6930         * testsuite/libgomp.fortran/strassen.f90: Likewise.
6931         * testsuite/libgomp.fortran/tabs1.f90: Likewise.
6932         * testsuite/libgomp.fortran/tabs2.f: Likewise.
6933         * testsuite/libgomp.fortran/target1.f90: Likewise.
6934         * testsuite/libgomp.fortran/target2.f90: Likewise.
6935         * testsuite/libgomp.fortran/target3.f90: Likewise.
6936         * testsuite/libgomp.fortran/target4.f90: Likewise.
6937         * testsuite/libgomp.fortran/target5.f90: Likewise.
6938         * testsuite/libgomp.fortran/target6.f90: Likewise.
6939         * testsuite/libgomp.fortran/target7.f90: Likewise.
6940         * testsuite/libgomp.fortran/target8.f90: Likewise.
6941         * testsuite/libgomp.fortran/task1.f90: Likewise.
6942         * testsuite/libgomp.fortran/task2.f90: Likewise.
6943         * testsuite/libgomp.fortran/task3.f90: Likewise.
6944         * testsuite/libgomp.fortran/task4.f90: Likewise.
6945         * testsuite/libgomp.fortran/taskgroup1.f90: Likewise.
6946         * testsuite/libgomp.fortran/taskloop1.f90: Likewise.
6947         * testsuite/libgomp.fortran/taskloop2.f90: Likewise.
6948         * testsuite/libgomp.fortran/taskloop3.f90: Likewise.
6949         * testsuite/libgomp.fortran/taskloop4.f90: Likewise.
6950         * testsuite/libgomp.fortran/threadprivate1.f90: Likewise.
6951         * testsuite/libgomp.fortran/threadprivate2.f90: Likewise.
6952         * testsuite/libgomp.fortran/threadprivate3.f90: Likewise.
6953         * testsuite/libgomp.fortran/threadprivate4.f90: Likewise.
6954         * testsuite/libgomp.fortran/udr1.f90: Likewise.
6955         * testsuite/libgomp.fortran/udr10.f90: Likewise.
6956         * testsuite/libgomp.fortran/udr11.f90: Likewise.
6957         * testsuite/libgomp.fortran/udr12.f90: Likewise.
6958         * testsuite/libgomp.fortran/udr13.f90: Likewise.
6959         * testsuite/libgomp.fortran/udr14.f90: Likewise.
6960         * testsuite/libgomp.fortran/udr15.f90: Likewise.
6961         * testsuite/libgomp.fortran/udr2.f90: Likewise.
6962         * testsuite/libgomp.fortran/udr3.f90: Likewise.
6963         * testsuite/libgomp.fortran/udr4.f90: Likewise.
6964         * testsuite/libgomp.fortran/udr5.f90: Likewise.
6965         * testsuite/libgomp.fortran/udr6.f90: Likewise.
6966         * testsuite/libgomp.fortran/udr7.f90: Likewise.
6967         * testsuite/libgomp.fortran/udr8.f90: Likewise.
6968         * testsuite/libgomp.fortran/udr9.f90: Likewise.
6969         * testsuite/libgomp.fortran/vla1.f90: Likewise.
6970         * testsuite/libgomp.fortran/vla2.f90: Likewise.
6971         * testsuite/libgomp.fortran/vla3.f90: Likewise.
6972         * testsuite/libgomp.fortran/vla4.f90: Likewise.
6973         * testsuite/libgomp.fortran/vla5.f90: Likewise.
6974         * testsuite/libgomp.fortran/vla6.f90: Likewise.
6975         * testsuite/libgomp.fortran/vla7.f90: Likewise.
6976         * testsuite/libgomp.fortran/vla8.f90: Likewise.
6977         * testsuite/libgomp.fortran/workshare1.f90: Likewise.
6978         * testsuite/libgomp.fortran/workshare2.f90: Likewise.
6979         * testsuite/libgomp.oacc-fortran/abort-1.f90: Likewise.
6980         * testsuite/libgomp.oacc-fortran/abort-2.f90: Likewise.
6981         * testsuite/libgomp.oacc-fortran/acc_on_device-1-1.f90: Likewise.
6982         * testsuite/libgomp.oacc-fortran/acc_on_device-1-2.f: Likewise.
6983         * testsuite/libgomp.oacc-fortran/acc_on_device-1-3.f: Likewise.
6984         * testsuite/libgomp.oacc-fortran/asyncwait-1.f90: Likewise.
6985         * testsuite/libgomp.oacc-fortran/asyncwait-2.f90: Likewise.
6986         * testsuite/libgomp.oacc-fortran/asyncwait-3.f90: Likewise.
6987         * testsuite/libgomp.oacc-fortran/atomic_capture-1.f90: Likewise.
6988         * testsuite/libgomp.oacc-fortran/atomic_rw-1.f90: Likewise.
6989         * testsuite/libgomp.oacc-fortran/atomic_update-1.f90: Likewise.
6990         * testsuite/libgomp.oacc-fortran/c2.pl: Likewise.
6991         * testsuite/libgomp.oacc-fortran/clauses-1.f90: Likewise.
6992         * testsuite/libgomp.oacc-fortran/collapse-1.f90: Likewise.
6993         * testsuite/libgomp.oacc-fortran/collapse-2.f90: Likewise.
6994         * testsuite/libgomp.oacc-fortran/collapse-3.f90: Likewise.
6995         * testsuite/libgomp.oacc-fortran/collapse-4.f90: Likewise.
6996         * testsuite/libgomp.oacc-fortran/collapse-5.f90: Likewise.
6997         * testsuite/libgomp.oacc-fortran/collapse-6.f90: Likewise.
6998         * testsuite/libgomp.oacc-fortran/collapse-7.f90: Likewise.
6999         * testsuite/libgomp.oacc-fortran/collapse-8.f90: Likewise.
7000         * testsuite/libgomp.oacc-fortran/combined-directives-1.f90: Likewise.
7001         * testsuite/libgomp.oacc-fortran/combined-reduction.f90: Likewise.
7002         * testsuite/libgomp.oacc-fortran/data-1.f90: Likewise.
7003         * testsuite/libgomp.oacc-fortran/data-2.f90: Likewise.
7004         * testsuite/libgomp.oacc-fortran/data-3.f90: Likewise.
7005         * testsuite/libgomp.oacc-fortran/data-4-2.f90: Likewise.
7006         * testsuite/libgomp.oacc-fortran/data-4.f90: Likewise.
7007         * testsuite/libgomp.oacc-fortran/declare-1.f90: Likewise.
7008         * testsuite/libgomp.oacc-fortran/declare-2.f90: Likewise.
7009         * testsuite/libgomp.oacc-fortran/declare-3.f90: Likewise.
7010         * testsuite/libgomp.oacc-fortran/declare-4.f90: Likewise.
7011         * testsuite/libgomp.oacc-fortran/declare-5.f90: Likewise.
7012         * testsuite/libgomp.oacc-fortran/default-1.f90: Likewise.
7013         * testsuite/libgomp.oacc-fortran/firstprivate-1.f90: Likewise.
7014         * testsuite/libgomp.oacc-fortran/gang-static-1.f90: Likewise.
7015         * testsuite/libgomp.oacc-fortran/host_data-1.f90: Likewise.
7016         * testsuite/libgomp.oacc-fortran/if-1.f90: Likewise.
7017         * testsuite/libgomp.oacc-fortran/implicit-firstprivate-ref.f90: Likewise.
7018         * testsuite/libgomp.oacc-fortran/kernels-loop-2.f95: Likewise.
7019         * testsuite/libgomp.oacc-fortran/kernels-loop-data-2.f95: Likewise.
7020         * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit-2.f95: Likewise.
7021         * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit.f95: Likewise.
7022         * testsuite/libgomp.oacc-fortran/kernels-loop-data-update.f95: Likewise.
7023         * testsuite/libgomp.oacc-fortran/kernels-loop-data.f95: Likewise.
7024         * testsuite/libgomp.oacc-fortran/kernels-loop.f95: Likewise.
7025         * testsuite/libgomp.oacc-fortran/lib-1.f90: Likewise.
7026         * testsuite/libgomp.oacc-fortran/lib-10.f90: Likewise.
7027         * testsuite/libgomp.oacc-fortran/lib-2.f: Likewise.
7028         * testsuite/libgomp.oacc-fortran/lib-3.f: Likewise.
7029         * testsuite/libgomp.oacc-fortran/lib-32-1.f: Likewise.
7030         * testsuite/libgomp.oacc-fortran/lib-32-2.f: Likewise.
7031         * testsuite/libgomp.oacc-fortran/lib-4.f90: Likewise.
7032         * testsuite/libgomp.oacc-fortran/lib-5.f90: Likewise.
7033         * testsuite/libgomp.oacc-fortran/lib-6.f90: Likewise.
7034         * testsuite/libgomp.oacc-fortran/lib-7.f90: Likewise.
7035         * testsuite/libgomp.oacc-fortran/lib-8.f90: Likewise.
7036         * testsuite/libgomp.oacc-fortran/map-1.f90: Likewise.
7037         * testsuite/libgomp.oacc-fortran/nested-function-1.f90: Likewise.
7038         * testsuite/libgomp.oacc-fortran/nested-function-2.f90: Likewise.
7039         * testsuite/libgomp.oacc-fortran/nested-function-3.f90: Likewise.
7040         * testsuite/libgomp.oacc-fortran/non-scalar-data.f90: Likewise.
7041         * testsuite/libgomp.oacc-fortran/openacc_version-1.f: Likewise.
7042         * testsuite/libgomp.oacc-fortran/openacc_version-2.f90: Likewise.
7043         * testsuite/libgomp.oacc-fortran/par-reduction-2-1.f: Likewise.
7044         * testsuite/libgomp.oacc-fortran/par-reduction-2-2.f: Likewise.
7045         * testsuite/libgomp.oacc-fortran/parallel-reduction.f90: Likewise.
7046         * testsuite/libgomp.oacc-fortran/pointer-align-1.f90: Likewise.
7047         * testsuite/libgomp.oacc-fortran/pr70643.f90: Likewise.
7048         * testsuite/libgomp.oacc-fortran/pr81352.f90: Likewise.
7049         * testsuite/libgomp.oacc-fortran/pr83920.f90: Likewise.
7050         * testsuite/libgomp.oacc-fortran/pr84028.f90: Likewise.
7051         * testsuite/libgomp.oacc-fortran/private-variables.f90: Likewise.
7052         * testsuite/libgomp.oacc-fortran/pset-1.f90: Likewise.
7053         * testsuite/libgomp.oacc-fortran/reduction-1.f90: Likewise.
7054         * testsuite/libgomp.oacc-fortran/reduction-2.f90: Likewise.
7055         * testsuite/libgomp.oacc-fortran/reduction-3.f90: Likewise.
7056         * testsuite/libgomp.oacc-fortran/reduction-4.f90: Likewise.
7057         * testsuite/libgomp.oacc-fortran/reduction-5.f90: Likewise.
7058         * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
7059         * testsuite/libgomp.oacc-fortran/reduction-7.f90: Likewise.
7060         * testsuite/libgomp.oacc-fortran/reduction-8.f90: Likewise.
7061         * testsuite/libgomp.oacc-fortran/routine-1.f90: Likewise.
7062         * testsuite/libgomp.oacc-fortran/routine-2.f90: Likewise.
7063         * testsuite/libgomp.oacc-fortran/routine-3.f90: Likewise.
7064         * testsuite/libgomp.oacc-fortran/routine-4.f90: Likewise.
7065         * testsuite/libgomp.oacc-fortran/routine-5.f90: Likewise.
7066         * testsuite/libgomp.oacc-fortran/routine-7.f90: Likewise.
7067         * testsuite/libgomp.oacc-fortran/routine-9.f90: Likewise.
7068         * testsuite/libgomp.oacc-fortran/subarrays-1.f90: Likewise.
7069         * testsuite/libgomp.oacc-fortran/subarrays-2.f90: Likewise.
7070         * testsuite/libgomp.oacc-fortran/update-1.f90: Likewise.
7072 2018-03-20  Richard Biener  <rguenther@suse.de>
7074         * testsuite/libgomp.graphite/force-parallel-4.c: XFAIL one
7075         parallelizable loop.
7077 2018-02-19  Igor Tsimbalist  <igor.v.tsimbalist@intel.com>
7079         PR target/84148
7080         * configure: Regenerate.
7082 2018-02-16  Jakub Jelinek  <jakub@redhat.com>
7084         PR fortran/84418
7085         * libgomp.fortran/pr84418-1.f90: New test.
7086         * libgomp.fortran/pr84418-2.f90: New test.
7088 2018-02-14  Jakub Jelinek  <jakub@redhat.com>
7090         PR fortran/84313
7091         * testsuite/libgomp.fortran/threadprivate4.f90: Add
7092         -std=f2003 -fall-intrinsics into dg-additional-options.
7094 2018-02-08  Martin Jambor  <mjambor@suse.cz>
7096         * testsuite/libgomp.hsa.c/pr82416.c: Make the function with target
7097         clonable.
7099 2018-02-08  Martin Jambor  <mjambor@suse.cz>
7101         * testsuite/libgomp.hsa.c/staticvar.c: New test.
7103 2018-02-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7105         * testsuite/libgomp.oacc-c-c++-common/pr84217.c (abort)
7106         [__cplusplus]: Declare extern "C".
7108 2018-02-07  Tom de Vries  <tom@codesourcery.com>
7110         PR libgomp/84217
7111         * testsuite/libgomp.oacc-c-c++-common/pr84217.c: New test.
7113 2018-01-29  Christoph Spiel  <cspiel@freenet.de>
7114             Jakub Jelinek  <jakub@redhat.com>
7116         PR libgomp/84096
7117         * omp.h.in (omp_init_nest_lock_with_hint): Use omp_nest_lock_t
7118         instead of omp_lock_t.
7120 2018-01-25  Tom de Vries  <tom@codesourcery.com>
7122         PR target/84028
7123         * testsuite/libgomp.oacc-fortran/pr84028.f90: New test.
7125 2018-01-24  Tom de Vries  <tom@codesourcery.com>
7127         PR target/83589
7128         * testsuite/libgomp.oacc-c-c++-common/pr83589.c: New test.
7130 2018-01-24  Tom de Vries  <tom@codesourcery.com>
7132         PR target/81352
7133         * testsuite/libgomp.oacc-fortran/pr81352.f90: New test.
7135 2018-01-19  Tom de Vries  <tom@codesourcery.com>
7136             Cesar Philippidis  <cesar@codesourcery.com>
7138         PR target/83920
7139         * testsuite/libgomp.oacc-c-c++-common/pr83920.c: New test.
7140         * testsuite/libgomp.oacc-fortran/pr83920.f90: New test.
7142 2018-01-03  Jakub Jelinek  <jakub@redhat.com>
7144         Update copyright years.
7146         * libgomp.texi: Bump @copying's copyright year.
7148 2017-12-30  Tom de Vries  <tom@codesourcery.com>
7150         PR libgomp/83046
7151         * testsuite/libgomp.oacc-c-c++-common/pr83046.c: New test.
7152         * testsuite/libgomp.c-c++-common/pr83046.c: New test.
7154 2017-12-27  Tom de Vries  <tom@codesourcery.com>
7156         PR c++/83046
7157         * testsuite/libgomp.oacc-c-c++-common/gang-static-2.c (test_static)
7158         (test_nonstatic): Fix return type to workaround PR83046.
7160 2017-12-05  Jakub Jelinek  <jakub@redhat.com>
7162         PR testsuite/83281
7163         * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-flt.c (main): Use
7164         j suffix instead of i.
7165         * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-dbl.c (main):
7166         Likewise.
7168 2017-12-01  Cesar Philippidis  <cesar@codesourcery.com>
7170         * testsuite/libgomp.oacc-c-c++-common/data-2-lib.c: Add missing
7171         call to acc_wait (1).
7173 2017-11-24  Jakub Jelinek  <jakub@redhat.com>
7175         PR fortran/81304
7176         * testsuite/libgomp.fortran/pr81304.f90: New test.
7178 2017-11-23  Jakub Jelinek  <jakub@redhat.com>
7180         PR fortran/81841
7181         * libgomp.fortran/pr81841.f90: New test.
7183 2017-11-22  Jakub Jelinek  <jakub@redhat.com>
7185         PR libgomp/83106
7186         * target.c (gomp_target_init): Compute lengths just once and
7187         use them in both malloc size and subsequent copying.
7189 2017-11-17  Igor Tsimbalist  <igor.v.tsimbalist@intel.com>
7191         * configure.ac: Set CET_FLAGS, update XCFLAGS and FCFLAGS.
7192         * acinclude.m4: Add cet.m4.
7193         * configure: Regenerate.
7194         * Makefile.in: Likewise.
7195         * testsuite/Makefile.in: Likewise.
7197 2017-11-15  Tom de Vries  <tom@codesourcery.com>
7199         * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-1.c: New test, copied
7200         from asyncwait-1.f90.  Rewrite into C.  Rewrite from float to int.
7201         * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-2.c: New test, copied
7202         from asyncwait-2.f90.  Rewrite into C.  Rewrite from float to int.
7203         * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-3.c: New test, copied
7204         from asyncwait-3.f90.  Rewrite into C.  Rewrite from float to int.
7206 2017-11-14  Tom de Vries  <tom@codesourcery.com>
7208         * testsuite/libgomp.oacc-c-c++-common/asyncwait-1.c: Allow to run for
7209         non-nvidia devices.
7211 2017-11-07  Jakub Jelinek  <jakub@redhat.com>
7213         PR c++/82835
7214         * testsuite/libgomp.c++/pr82835.C: New test.
7216 2017-11-06  Martin Liska  <mliska@suse.cz>
7218         * testsuite/libgomp.c++/loop-2.C: Return a value
7219         for functions with non-void return type, or change type to void,
7220         or add -Wno-return-type for test.
7221         * testsuite/libgomp.c++/loop-4.C: Likewise.
7222         * testsuite/libgomp.c++/parallel-1.C: Likewise.
7223         * testsuite/libgomp.c++/shared-1.C: Likewise.
7224         * testsuite/libgomp.c++/single-1.C: Likewise.
7225         * testsuite/libgomp.c++/single-2.C: Likewise.
7227 2017-10-31  Tom de Vries  <tom@codesourcery.com>
7229         * plugin/plugin-hsa.c (HSA_LOG): Remove semicolon after
7230         "do {} while (false)".
7231         (init_single_kernel, GOMP_OFFLOAD_async_run): Add missing semicolon
7232         after HSA_DEBUG call.
7234 2017-10-28  Jakub Jelinek  <jakub@redhat.com>
7236         * target.c (struct gomp_coalesce_buf): New type.
7237         (MAX_COALESCE_BUF_SIZE, MAX_COALESCE_BUF_GAP): Define.
7238         (gomp_coalesce_buf_add, gomp_to_device_kind_p): New functions.
7239         (gomp_copy_host2dev): Add CBUF argument, if copying into
7240         the cached ranges, memcpy into buffer instead of copying
7241         into device.
7242         (gomp_map_vars_existing, gomp_map_pointer, gomp_map_fields_existing):
7243         Add CBUF argument, pass it through to other calls.
7244         (gomp_map_vars): Aggregate copies from host to device if small enough
7245         and with small enough gaps in between into memcpy into a buffer and
7246         fewer host to device copies from the buffer.
7247         (gomp_update): Adjust gomp_copy_host2dev caller.
7249 2017-10-17  Thomas Schwinge  <thomas@codesourcery.com>
7251         * testsuite/libgomp.oacc-fortran/declare-1.f90: Restore "dg-do
7252         run" directive.
7253         * testsuite/libgomp.oacc-fortran/declare-2.f90: Likewise.
7254         * testsuite/libgomp.oacc-fortran/declare-3.f90: Likewise.
7255         * testsuite/libgomp.oacc-fortran/declare-4.f90: Likewise.
7256         * testsuite/libgomp.oacc-fortran/declare-5.f90: Likewise.
7258 2017-10-16  Tom de Vries  <tom@codesourcery.com>
7260         * testsuite/libgomp.oacc-c-c++-common/declare-1.c: Don't require
7261         openacc_nvidia_accel_selected.
7262         * testsuite/libgomp.oacc-c-c++-common/declare-2.c: Same.
7263         * testsuite/libgomp.oacc-c-c++-common/declare-4.c: Same.
7264         * testsuite/libgomp.oacc-fortran/declare-2.f90: Same.
7265         * testsuite/libgomp.oacc-fortran/declare-4.f90: Same
7266         * testsuite/libgomp.oacc-fortran/declare-5.f90: Same.
7267         * testsuite/libgomp.oacc-c-c++-common/declare-5.c: Don't require
7268         openacc_nvidia_accel_selected. Skip for shared memory device.
7269         * testsuite/libgomp.oacc-fortran/declare-1.f90: Same.
7270         * testsuite/libgomp.oacc-fortran/declare-3.f90: Same.
7272 2017-10-09  Martin Jambor  <mjambor@suse.cz>
7274         PR hsa/82416
7275         * testsuite/libgomp.hsa.c/pr82416.c: New test.
7277 2017-10-07  Tom de Vries  <tom@codesourcery.com>
7279         * testsuite/libgomp.oacc-fortran/firstprivate-1.f90 (firstprivate):
7280         Remove acc_device_nvidia references.
7281         * testsuite/libgomp.oacc-fortran/parallel-reduction.f90 (reduction):
7282         Same.
7284 2017-10-05  Tom de Vries  <tom@codesourcery.com>
7286         * testsuite/libgomp.oacc-c-c++-common/loop-red-g-1.c (main): Remove
7287         vector_length(32) clause from acc parallel directive.
7288         * testsuite/libgomp.oacc-c-c++-common/routine-g-1.c (main): Same.
7290 2017-10-04  Tom de Vries  <tom@codesourcery.com>
7292         * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-3.c
7293         (main): Reduce sum of arr elements.  Assert that hres is exactly
7294         representable in 32-bit floating point.
7295         * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-4.c
7296         (main): Reduce sum of arr elements.  Assert that hres and hmres are
7297         exactly representable in 32-bit floating point.
7298         * testsuite/libgomp.oacc-c-c++-common/reduction-7.c (gwv_np_4): Same.
7300 2017-09-28  Tom de Vries  <tom@codesourcery.com>
7302         * testsuite/libgomp.c++/for-12.C: Remove superfluous -fopenmp option
7303         setting.
7304         * testsuite/libgomp.c++/pr69393.C: Same.
7305         * testsuite/libgomp.c++/taskloop-1.C: Same.
7306         * testsuite/libgomp.c++/taskloop-3.C: Same.
7307         * testsuite/libgomp.c++/taskloop-4.C: Same.
7308         * testsuite/libgomp.c/for-4.c: Same.
7309         * testsuite/libgomp.c/pr66199-3.c: Same.
7310         * testsuite/libgomp.c/pr66199-4.c: Same.
7311         * testsuite/libgomp.c/pr66199-6.c: Same.
7312         * testsuite/libgomp.c/taskloop-1.c: Same.
7313         * testsuite/libgomp.c/taskloop-3.c: Same.
7314         * testsuite/libgomp.c/taskloop-4.c: Same.
7315         * testsuite/libgomp.fortran/aligned1.f03: Same.
7316         * testsuite/libgomp.fortran/condinc1.f: Same.
7317         * testsuite/libgomp.fortran/condinc3.f90: Same.
7318         * testsuite/libgomp.fortran/crayptr1.f90: Same.
7319         * testsuite/libgomp.fortran/crayptr2.f90: Same.
7320         * testsuite/libgomp.fortran/crayptr3.f90: Same.
7321         * testsuite/libgomp.fortran/omp_cond1.f: Same.
7322         * testsuite/libgomp.fortran/omp_cond3.F90: Same.
7323         * testsuite/libgomp.fortran/pr66199-1.f90: Same.
7324         * testsuite/libgomp.fortran/pr66199-2.f90: Same.
7325         * testsuite/libgomp.fortran/recursion1.f90: Same.
7326         * testsuite/libgomp.fortran/target2.f90: Same.
7327         * testsuite/libgomp.fortran/target5.f90: Same.
7328         * testsuite/libgomp.fortran/task3.f90: Same.
7330 2017-09-28  Tom de Vries  <tom@codesourcery.com>
7332         * testsuite/libgomp.oacc-c-c++-common/loop-g-1.c (main): Remove
7333         vector_length(32) clause from acc parallel directive.
7334         * testsuite/libgomp.oacc-c-c++-common/loop-g-2.c (main): Same.
7336 2017-09-27  Tom de Vries  <tom@codesourcery.com>
7338         * testsuite/libgomp.oacc-c-c++-common/parallel-reduction.c (main):
7339         Remove acc_device_nvidia references.
7341 2017-09-16  Tom de Vries  <tom@codesourcery.com>
7343         PR c/81875
7344         * testsuite/libgomp.c-c++-common/pr81875.c: New test.
7346 2017-09-14  Tom de Vries  <tom@codesourcery.com>
7348         * testsuite/libgomp.c++/cancel-taskgroup-1.C: Remove.
7349         * testsuite/libgomp.c/cancel-taskgroup-1.c: Move to ...
7350         * testsuite/libgomp.c-c++-common/cancel-taskgroup-1.c: ... here.
7351         * testsuite/libgomp.c/c.exp: Include test-cases from
7352         libgomp.c-c++-common.
7353         * testsuite/libgomp.c++/c++.exp: Same.  Force c++-mode compilation of .c
7354         files.
7356 2017-09-14  Jakub Jelinek  <jakub@redhat.com>
7358         PR c++/81314
7359         * testsuite/libgomp.c++/pr81314.C: New test.
7361 2017-09-03  Gerald Pfeifer  <gerald@pfeifer.com>
7363         * libgomp.texi (Top): www.openacc.org now uses https.
7364         (Enabling OpenACC): Ditto.
7365         (acc_get_num_devices): Ditto.
7366         (acc_set_device_type): Ditto.
7367         (acc_get_device_type): Ditto.
7368         (acc_set_device_num): Ditto.
7369         (acc_get_device_num): Ditto.
7370         (acc_async_test): Ditto.
7371         (acc_async_test_all): Ditto.
7372         (acc_wait): Ditto.
7373         (acc_wait_all): Ditto.
7374         (acc_wait_all_async): Ditto.
7375         (acc_wait_async): Ditto.
7376         (acc_init): Ditto.
7377         (acc_shutdown): Ditto.
7378         (acc_on_device): Ditto.
7379         (acc_malloc): Ditto.
7380         (acc_free): Ditto.
7381         (acc_copyin): Ditto.
7382         (acc_present_or_copyin): Ditto.
7383         (acc_create): Ditto.
7384         (acc_present_or_create): Ditto.
7385         (acc_copyout): Ditto.
7386         (acc_delete): Ditto.
7387         (acc_update_device): Ditto.
7388         (acc_update_self): Ditto.
7389         (acc_map_data): Ditto.
7390         (acc_unmap_data): Ditto.
7391         (acc_deviceptr): Ditto.
7392         (acc_hostptr): Ditto.
7393         (acc_is_present): Ditto.
7394         (acc_memcpy_to_device): Ditto.
7395         (acc_memcpy_from_device): Ditto.
7396         (acc_get_current_cuda_device): Ditto.
7397         (acc_get_current_cuda_context): Ditto.
7398         (acc_get_cuda_stream): Ditto.
7399         (acc_set_cuda_stream): Ditto.
7400         (ACC_DEVICE_TYPE): Ditto.
7401         (ACC_DEVICE_NUM): Ditto.
7402         (OpenACC Library Interoperability): Ditto.
7404 2017-08-09  Jakub Jelinek  <jakub@redhat.com>
7406         PR c/81687
7407         * testsuite/libgomp.c/pr81687-1.c: New test.
7408         * testsuite/libgomp.c/pr81687-2.c: New test.
7410 2017-08-07  Jakub Jelinek  <jakub@redhat.com>
7412         PR c/69389
7413         * testsuite/libgomp.c/pr69389.c: New test.
7414         * testsuite/libgomp.c++/pr69389.C: New test.
7416 2017-08-07  Tom de Vries  <tom@codesourcery.com>
7418         PR middle-end/78266
7419         * testsuite/libgomp.oacc-c-c++-common/vprop-2.c: New test.
7420         * testsuite/libgomp.oacc-c-c++-common/vprop.c: Remove xfail.
7422 2017-07-27  Jakub Jelinek  <jakub@redhat.com>
7424         PR c/45784
7425         * testsuite/libgomp.c/pr45784.c: New test.
7426         * testsuite/libgomp.c++/pr45784.C: New test.
7428 2017-07-19  Tom de Vries  <tom@codesourcery.com>
7430         * testsuite/libgomp.oacc-c/vec.c: New test.
7432 2017-07-03  Tom de Vries  <tom@codesourcery.com>
7434         * plugin/plugin-hsa.c: Fix secure_getenv.h include.
7436 2017-06-27  Tom de Vries  <tom@codesourcery.com>
7438         * plugin/plugin-nvptx.c (notify_var): New function.
7439         (nvptx_exec): Use notify_var for GOMP_OPENACC_DIM.
7441 2017-06-27  Tom de Vries  <tom@codesourcery.com>
7443         * env.c (parse_unsigned_long_1): Factor out of ...
7444         (parse_unsigned_long): ... here.
7445         (parse_int_1): Factor out of ...
7446         (parse_int): ... here.
7447         (parse_int_secure): New function.
7448         (initialize_env): Use parse_int_secure for GOMP_DEBUG.
7449         * secure_getenv.h: Factor out of ...
7450         * plugin/plugin-hsa.c: ... here.
7451         * testsuite/libgomp.oacc-c-c++-common/gomp-debug-env.c: New test.
7453 2017-06-21  Jakub Jelinek  <jakub@redhat.com>
7455         PR c++/81130
7456         * testsuite/libgomp.c++/pr81130.C: New test.
7458 2017-06-17  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7460         * testsuite/libgomp.fortran/strassen.f90: Remove dg-skip-if
7461         default args.
7462         * testsuite/libgomp.oacc-c-c++-common/vprop.c: Remove
7463         dg-xfail-run-if default args.
7465 2017-06-02  Bernd Edlinger  <bernd.edlinger@hotmail.de>
7467         * testsuite/libgomp.c/pr39591-2.c: Fix test case.
7468         * testsuite/libgomp.c/pr39591-3.c: Likewise.
7470 2017-05-30  Jakub Jelinek  <jakub@redhat.com>
7472         PR libgomp/80822
7473         * config/linux/affinity.c (gomp_affinity_init_level_1): New function.
7474         (gomp_affinity_init_level): Use it.  Always analyze the core and thread
7475         sibling lists, depending on level just pick up what CPUs to put
7476         together into a place vs. whether add multiple ordered places.
7478 2017-05-24  Thomas Schwinge  <thomas@codesourcery.com>
7480         * openacc.h (acc_async_wait, acc_async_wait_all): New prototypes.
7481         * libgomp.map (OACC_2.0.1): Add these.
7482         * oacc-async.c (acc_async_wait, acc_async_wait_all): New aliases
7483         for "acc_wait", and "acc_wait_all", respectively.
7484         * openacc.f90 (acc_async_wait, acc_async_wait_all): New interfaces
7485         for "acc_wait", and "acc_wait_all", respectively.
7486         * openacc_lib.h (acc_async_wait, acc_async_wait_all): Likewise.
7487         * libgomp.texi (acc_wait, acc_wait_all): Update.
7488         * testsuite/libgomp.oacc-c-c++-common/par-reduction-2.c: Update.
7489         * testsuite/libgomp.oacc-fortran/par-reduction-2-1.f: New file.
7490         * testsuite/libgomp.oacc-fortran/par-reduction-2-2.f: Likewise.
7492         * openacc_lib.h (acc_pcopyin, acc_pcreate): Route to
7493         acc_present_or_copyin and acc_present_or_create procedures,
7494         respectively.
7495         * testsuite/libgomp.oacc-fortran/lib-32-1.f: Exercise these, and
7496         generally different variants of OpenACC Runtime Library functions.
7497         * testsuite/libgomp.oacc-fortran/lib-32-2.f: Likewise.
7499         * testsuite/libgomp.oacc-fortran/lib-32-1.f: New file.
7500         * testsuite/libgomp.oacc-fortran/lib-32-2.f: Likewise.
7502         * openacc.h (acc_pcopyin, acc_pcreate): Provide prototypes instead
7503         of preprocessor definitions.
7504         * libgomp.h (strong_alias): Guard by "#ifdef
7505         HAVE_ATTRIBUTE_ALIAS".
7506         * oacc-mem.c: Provide "acc_pcreate" as alias for
7507         "acc_present_or_create", and "acc_pcopyin" as alias for
7508         "acc_present_or_copyin".
7509         * libgomp.map: New version "OACC_2.0.1".
7510         (OACC_2.0.1): Add "acc_pcopyin", and "acc_pcreate".
7511         * testsuite/libgomp.oacc-c-c++-common/lib-38.c: Remove, merging
7512         its content into...
7513         * testsuite/libgomp.oacc-c-c++-common/lib-32.c: ... this file.
7514         Extend testing.
7516         * plugin/plugin-nvptx.c (nvptx_get_num_devices): Debugging output
7517         when disabling nvptx offloading.
7519 2017-05-23  Thomas Schwinge  <thomas@codesourcery.com>
7521         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-2.c: Update.
7522         * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Likewise.
7523         * testsuite/libgomp.oacc-fortran/kernels-loop-2.f95: Likewise.
7525         * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Rewrite.
7526         * testsuite/lib/libgomp.exp
7527         (check_effective_target_openacc_nvidia_accel_configured): New
7528         proc.
7529         * testsuite/libgomp.oacc-c++/c++.exp (check_effective_target_c)
7530         (check_effective_target_c++): New procs.
7531         * testsuite/libgomp.oacc-c/c.exp (check_effective_target_c)
7532         (check_effective_target_c++): Likewise.
7534 2017-05-22  Jakub Jelinek  <jakub@redhat.com>
7536         PR middle-end/80809
7537         * testsuite/libgomp.c/pr80809-2.c: New test.
7538         * testsuite/libgomp.c/pr80809-3.c: New test.
7540         PR middle-end/80809
7541         * testsuite/libgomp.c/pr80809-1.c: New test.
7543         PR middle-end/80853
7544         * testsuite/libgomp.c/pr80853.c: New test.
7546 2017-05-19  Thomas Schwinge  <thomas@codesourcery.com>
7548         * testsuite/libgomp.oacc-c++/template-reduction.C: Update.
7549         * testsuite/libgomp.oacc-c-c++-common/nested-2.c: Update.
7550         * testsuite/libgomp.oacc-fortran/data-4-2.f90: Likewise.
7551         * testsuite/libgomp.oacc-fortran/default-1.f90: Likewise.
7552         * testsuite/libgomp.oacc-fortran/non-scalar-data.f90: Likewise.
7554         * plugin/plugin-hsa.c (DLSYM_FN, init_hsa_runtime_functions):
7555         Debug output for failure.
7557 2017-05-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7559         * testsuite/lib/libgomp.exp: Load scanlang.exp.
7561 2017-04-27  Jakub Jelinek  <jakub@redhat.com>
7563         PR bootstrap/80531
7564         * configure.tgt (*-*-aix*): Add -frandom-seed=$@ to XCFLAGS to avoid
7565         bootstrap compare failures.
7567 2017-04-20  Alexander Monakov  <amonakov@ispras.ru>
7569         * testsuite/libgomp.c/target-36.c: New testcase.
7571 2017-04-13  Jakub Jelinek  <jakub@redhat.com>
7573         * plugin/plugin-nvptx.c (cuda_lib_inited): Use signed char type
7574         instead of char.
7576 2017-04-11  Jakub Jelinek  <jakub@redhat.com>
7578         PR libgomp/80394
7579         * testsuite/libgomp.c/pr80394.c: New test.
7581 2017-04-04  Jakub Jelinek  <jakub@redhat.com>
7583         PR libgomp/79876
7584         * config/posix/thread-stacksize.h: New file.
7585         * config/darwin/thread-stacksize.h: New file.
7586         * config/nvptx/thread-stacksize.h: New file.
7587         * env.c: Include thread-stacksize.h.
7588         (initialize_env): Initialize stacksize to GOMP_DEFAULT_STACKSIZE
7589         instead of 0.  Call pthread_attr_setstacksize even if
7590         GOMP_DEFAULT_STACKSIZE is non-zero.
7592 2017-03-30  Jakub Jelinek  <jakub@redhat.com>
7594         * env.c (initialize_env): Initialize stacksize to 0.
7596 2017-03-22  Cesar Philippidis  <cesar@codesourcery.com>
7598         PR c++/80029
7599         * testsuite/libgomp.oacc-c-c++-common/declare-vla.c: New test.
7601 2017-03-08  Jakub Jelinek  <jakub@redhat.com>
7603         PR c/79940
7604         * testsuite/libgomp.c/pr79940.c: New test.
7606 2017-02-15  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7608         * testsuite/libgomp.c/pr48591.c: Enable on all __float128
7609         targets.
7610         Add __float128 options.
7612 2017-02-11  John David Anglin  <danglin@gcc.gnu.org>
7614         * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: Remove
7615         hppa*-*-* dg-skip-if directive.
7617 2017-02-09  Jakub Jelinek  <jakub@redhat.com>
7619         * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: Move
7620         dg-skip-if directive into a comment.
7622 2017-02-09  Nathan Sidwell  <nathan@codesourcery.com>
7623             Chung-Lin Tang  <cltang@codesourcery.com>
7625         * testsuite/libgomp.oacc-c-c++-common/tile-1.c: New.
7626         * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Adjust and
7627         add additional case.
7628         * testsuite/libgomp.oacc-c-c++-common/vprop.c: XFAIL under
7629         "openacc_nvidia_accel_selected".
7630         * libgomp.oacc-fortran/nested-function-1.f90 (test2):
7631         Add num_workers(8) clause.
7633 2017-02-08  John David Anglin  <danglin@gcc.gnu.org>
7635         * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: Skip on
7636         hppa*-*-*.
7637         * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-dbl.c: Don't
7638         include complex.h on hppa*-*-hpux*.
7639         * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-flt.c: Likewise.
7641 2017-02-02  Thomas Schwinge  <thomas@codesourcery.com>
7643         * plugin/plugin-nvptx.c (nvptx_exec): Make it static.
7645         * libgomp-plugin.h (GOMP_OFFLOAD_openacc_parallel): Rename to
7646         GOMP_OFFLOAD_openacc_exec.  Adjust all users.
7647         (GOMP_OFFLOAD_openacc_get_current_cuda_device): Rename to
7648         GOMP_OFFLOAD_openacc_cuda_get_current_device.  Adjust all users.
7649         (GOMP_OFFLOAD_openacc_get_current_cuda_context): Rename to
7650         GOMP_OFFLOAD_openacc_cuda_get_current_context.  Adjust all users.
7651         (GOMP_OFFLOAD_openacc_get_cuda_stream): Rename to
7652         GOMP_OFFLOAD_openacc_cuda_get_stream.  Adjust all users.
7653         (GOMP_OFFLOAD_openacc_set_cuda_stream): Rename to
7654         GOMP_OFFLOAD_openacc_cuda_set_stream.  Adjust all users.
7656 2017-01-31  Thomas Schwinge  <thomas@codesourcery.com>
7658         * libgomp-plugin.h: #include <stdbool.h>.
7659         (GOMP_OFFLOAD_get_name, GOMP_OFFLOAD_get_caps)
7660         (GOMP_OFFLOAD_get_type, GOMP_OFFLOAD_get_num_devices)
7661         (GOMP_OFFLOAD_init_device, GOMP_OFFLOAD_fini_device)
7662         (GOMP_OFFLOAD_version, GOMP_OFFLOAD_load_image)
7663         (GOMP_OFFLOAD_unload_image, GOMP_OFFLOAD_alloc, GOMP_OFFLOAD_free)
7664         (GOMP_OFFLOAD_dev2host, GOMP_OFFLOAD_host2dev)
7665         (GOMP_OFFLOAD_dev2dev, GOMP_OFFLOAD_can_run, GOMP_OFFLOAD_run)
7666         (GOMP_OFFLOAD_async_run, GOMP_OFFLOAD_openacc_parallel)
7667         (GOMP_OFFLOAD_openacc_register_async_cleanup)
7668         (GOMP_OFFLOAD_openacc_async_test)
7669         (GOMP_OFFLOAD_openacc_async_test_all)
7670         (GOMP_OFFLOAD_openacc_async_wait)
7671         (GOMP_OFFLOAD_openacc_async_wait_async)
7672         (GOMP_OFFLOAD_openacc_async_wait_all)
7673         (GOMP_OFFLOAD_openacc_async_wait_all_async)
7674         (GOMP_OFFLOAD_openacc_async_set_async)
7675         (GOMP_OFFLOAD_openacc_create_thread_data)
7676         (GOMP_OFFLOAD_openacc_destroy_thread_data)
7677         (GOMP_OFFLOAD_openacc_get_current_cuda_device)
7678         (GOMP_OFFLOAD_openacc_get_current_cuda_context)
7679         (GOMP_OFFLOAD_openacc_get_cuda_stream)
7680         (GOMP_OFFLOAD_openacc_set_cuda_stream): New prototypes.
7681         * libgomp.h (struct acc_dispatch_t, struct gomp_device_descr): Use
7682         these.
7683         * plugin/plugin-hsa.c (GOMP_OFFLOAD_load_image)
7684         (GOMP_OFFLOAD_unload_image): Fix argument types.
7686 2017-01-26  Jakub Jelinek  <jakub@redhat.com>
7688         * testsuite/lib/libgomp.exp
7689         (check_effective_target_hsa_offloading_selected_nocache): Fix up
7690         check_compile invocation.  Fix up removal of executable.  Drop
7691         bogus "2>&1" argument.
7693         * testsuite/libgomp.fortran/declare-simd-4.f90: Add cleanup-modules
7694         directive.
7696 2017-01-24  Pekka Jääskeläinen  <pekka@parmance.com>
7697             Martin Jambor  <mjambor@suse.cz>
7699         * plugin/hsa.h: Moved to top level include.
7700         * plugin/plugin-hsa.c: Chanfgd include of hsa.h accordingly.
7702 2017-01-21  Jakub Jelinek  <jakub@redhat.com>
7704         PR other/79046
7705         * testsuite/Makefile.am (gcc_version): Use @get_gcc_base_ver@ instead
7706         of cat to get version from BASE-VER file.
7707         * testsuite/Makefile.in: Regenerated.
7709 2017-01-19  Jakub Jelinek  <jakub@redhat.com>
7711         * plugin/cuda/cuda.h (CUdeviceptr): Typedef to unsigned long long even
7712         for _WIN64.
7714 2017-01-17  Jakub Jelinek  <jakub@redhat.com>
7716         * plugin/hsa.h: Add GCC runtime library exception.
7717         * plugin/hsa_ext_finalize.h: Likewise.
7719         * plugin/configfrag.ac: For --without-cuda-driver don't initialize
7720         CUDA_DRIVER_INCLUDE nor CUDA_DRIVER_LIB.  If both
7721         CUDA_DRIVER_INCLUDE and CUDA_DRIVER_LIB are empty and linking small
7722         cuda program fails, define PLUGIN_NVPTX_DYNAMIC to 1 and use
7723         plugin/include/cuda as include dir and -ldl instead of -lcuda as
7724         library to link ptx plugin against.
7725         * plugin/plugin-nvptx.c: Include dlfcn.h if PLUGIN_NVPTX_DYNAMIC.
7726         (CUDA_CALLS): Define.
7727         (cuda_lib, cuda_lib_inited): New variables.
7728         (init_cuda_lib): New function.
7729         (CUDA_CALL_PREFIX): Define.
7730         (CUDA_CALL_ERET, CUDA_CALL_ASSERT): Use CUDA_CALL_PREFIX.
7731         (CUDA_CALL): Use FN instead of (FN).
7732         (CUDA_CALL_NOCHECK): Define.
7733         (cuda_error, fini_streams_for_device, select_stream_for_async,
7734         nvptx_attach_host_thread_to_device, nvptx_open_device, link_ptx,
7735         event_gc, nvptx_exec, nvptx_async_test, nvptx_async_test_all,
7736         nvptx_wait_all, nvptx_set_clocktick, GOMP_OFFLOAD_unload_image,
7737         nvptx_stacks_alloc, nvptx_stacks_free, GOMP_OFFLOAD_run): Use
7738         CUDA_CALL_NOCHECK.
7739         (nvptx_init): Call init_cuda_lib, if it fails, return false.  Use
7740         CUDA_CALL_NOCHECK.
7741         (nvptx_get_num_devices): Call init_cuda_lib, if it fails, return 0.
7742         Use CUDA_CALL_NOCHECK.
7743         * plugin/cuda/cuda.h: New file.
7744         * config.h.in: Regenerated.
7745         * configure: Regenerated.
7747         PR other/79046
7748         * configure.ac: Add GCC_BASE_VER.
7749         * Makefile.am (gcc_version): Use @get_gcc_base_ver@ instead of cat to
7750         get version from BASE-VER file.
7751         * testsuite/Makefile.in: Regenerated.
7752         * configure: Regenerated.
7753         * Makefile.in: Regenerated.
7755 2017-01-09  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
7757         PR libgomp/60670
7758         * Makefile.am: Make fincludedir multilib-aware.
7759         * Makefile.in: Regenerate.
7761 2017-01-01  Jakub Jelinek  <jakub@redhat.com>
7763         Update copyright years.
7765         * libgomp.texi: Bump @copying's copyright year.
7767 2016-12-02  Sebastian Huber  <sebastian.huber@embedded-brains.de>
7769         * libgomp/config/rtems/pool.h (gomp_thread_pool_reservoir): Use
7770         pthread_spinlock_t instead of gomp_mutex_t lock.
7771         (gomp_get_thread_pool): Likewise.
7772         (gomp_release_thread_pool): Likewise.
7773         * libgomp/config/rtems/proc.c (allocate_thread_pool_reservoir):
7774         Likewise.
7776 2016-12-02  Sebastian Huber  <sebastian.huber@embedded-brains.de>
7778         * config/rtems/pool.h (gomp_get_thread_pool): Return proper
7779         thread pool in case nthreads == 1.
7781 2016-11-30  Alexander Monakov  <amonakov@ispras.ru>
7783         * config/nvptx/env.c: Delete.
7784         * icv.c: Move definitions of ICV variables back ...
7785         * env.c: ...here.  Do not compile environment-related functionality if
7786         LIBGOMP_OFFLOADED_ONLY is set.
7788 2016-11-30  Alexander Monakov  <amonakov@ispras.ru>
7790         * configure.ac [nvptx*-*-*] (libgomp_offloaded_only): Set and use it...
7791         (LIBGOMP_OFFLOADED_ONLY): ...here; new define.
7792         * configure: Regenerate.
7793         * config.h.in: Likewise.
7795 2016-11-30  Alexander Monakov  <amonakov@ispras.ru>
7797         * Makefile.in: Regenerate with automake-1.11.6.
7798         * aclocal.m4: Likewise.
7799         * configure: Likewise.
7800         * testsuite/Makefile.in: Likewise.
7802 2016-11-28  Alexander Monakov  <amonakov@ispras.ru>
7804         * config/nvptx/critical.c: Delete to use generic implementation.
7806 2016-11-28  Jonas Hahnfeld  <Hahnfeld@itc.rwth-aachen.de>
7808         * config/linux/affinity.c [!HAVE_PTHREAD_AFFINITY_NP]: Include
7809         ../../affinity.c as fallback.
7810         * config/nvptx/affinity.c: Delete to use fallback implementation.
7812 2016-11-23  Alexander Monakov  <amonakov@ispras.ru>
7813             Jakub Jelinek  <jakub@redhat.com>
7814             Dmitry Melnik  <dm@ispras.ru>
7816         * Makefile.am (libgomp_la_SOURCES): Add atomic.c, icv.c, icv-device.c.
7817         * Makefile.in. Regenerate.
7818         * configure.ac [nvptx*-*-*] (libgomp_use_pthreads): Set and use it...
7819         (LIBGOMP_USE_PTHREADS): ...here; new define.
7820         * configure: Regenerate.
7821         * config.h.in: Likewise.
7822         * config/posix/affinity.c: Move to...
7823         * affinity.c: ...here (new file).  Guard use of Pthreads-specific
7824         interface by LIBGOMP_USE_PTHREADS. 
7825         * critical.c: Split out GOMP_atomic_{start,end} into...
7826         * atomic.c: ...here (new file).
7827         * env.c: Split out ICV definitions into...
7828         * icv.c: ...here (new file) and...
7829         * icv-device.c: ...here. New file.
7830         * config/linux/lock.c (gomp_init_lock_30): Move to generic lock.c.
7831         (gomp_destroy_lock_30): Ditto.
7832         (gomp_set_lock_30): Ditto.
7833         (gomp_unset_lock_30): Ditto.
7834         (gomp_test_lock_30): Ditto.
7835         (gomp_init_nest_lock_30): Ditto.
7836         (gomp_destroy_nest_lock_30): Ditto.
7837         (gomp_set_nest_lock_30): Ditto.
7838         (gomp_unset_nest_lock_30): Ditto.
7839         (gomp_test_nest_lock_30): Ditto.
7840         * lock.c: New.
7841         * config/nvptx/lock.c: New.
7842         * config/nvptx/bar.c: New.
7843         * config/nvptx/bar.h: New.
7844         * config/nvptx/doacross.h: New.
7845         * config/nvptx/error.c: New.
7846         * config/nvptx/icv-device.c: New.
7847         * config/nvptx/mutex.h: New.
7848         * config/nvptx/pool.h: New.
7849         * config/nvptx/proc.c: New.
7850         * config/nvptx/ptrlock.h: New.
7851         * config/nvptx/sem.h: New.
7852         * config/nvptx/simple-bar.h: New.
7853         * config/nvptx/target.c: New.
7854         * config/nvptx/task.c: New.
7855         * config/nvptx/team.c: New.
7856         * config/nvptx/time.c: New.
7857         * config/posix/simple-bar.h: New.
7858         * libgomp.h: Guard pthread.h inclusion.  Include simple-bar.h.
7859         (gomp_num_teams_var): Declare.
7860         (struct gomp_thread_pool): Change threads_dock member to
7861         gomp_simple_barrier_t.
7862         [__nvptx__] (gomp_thread): New implementation.
7863         (gomp_thread_attr): Guard by LIBGOMP_USE_PTHREADS.
7864         (gomp_thread_destructor): Ditto.
7865         (gomp_init_thread_affinity): Ditto.
7866         * team.c: Guard uses of Pthreads-specific interfaces by
7867         LIBGOMP_USE_PTHREADS.  Adjust all uses of threads_dock.
7868         (gomp_free_thread) [__nvptx__]: Do not call 'free'.
7869         * config/nvptx/alloc.c: Delete.
7870         * config/nvptx/barrier.c: Ditto.
7871         * config/nvptx/fortran.c: Ditto.
7872         * config/nvptx/iter.c: Ditto.
7873         * config/nvptx/iter_ull.c: Ditto.
7874         * config/nvptx/loop.c: Ditto.
7875         * config/nvptx/loop_ull.c: Ditto.
7876         * config/nvptx/ordered.c: Ditto.
7877         * config/nvptx/parallel.c: Ditto.
7878         * config/nvptx/priority_queue.c: Ditto.
7879         * config/nvptx/sections.c: Ditto.
7880         * config/nvptx/single.c: Ditto.
7881         * config/nvptx/splay-tree.c: Ditto.
7882         * config/nvptx/work.c: Ditto.
7883         * testsuite/libgomp.fortran/fortran.exp (lang_link_flags): Pass
7884         -foffload=-lgfortran in addition to -lgfortran.
7885         * testsuite/libgomp.oacc-fortran/fortran.exp (lang_link_flags): Ditto.
7886         * plugin/plugin-nvptx.c: Include <limits.h>.
7887         (struct targ_fn_descriptor): Add new fields.
7888         (struct ptx_device): Ditto.  Set them...
7889         (nvptx_open_device): ...here.
7890         (nvptx_adjust_launch_bounds): New.
7891         (nvptx_host2dev): Allow NULL 'nvthd'.
7892         (nvptx_dev2host): Ditto.
7893         (GOMP_OFFLOAD_get_caps): Add GOMP_OFFLOAD_CAP_OPENMP_400.
7894         (link_ptx): Adjust log sizes.
7895         (nvptx_host2dev): Allow NULL 'nvthd'.
7896         (nvptx_dev2host): Ditto.
7897         (nvptx_set_clocktick): New.  Use it...
7898         (GOMP_OFFLOAD_load_image): ...here.  Set new targ_fn_descriptor
7899         fields.
7900         (GOMP_OFFLOAD_dev2dev): New.
7901         (nvptx_adjust_launch_bounds): New.
7902         (nvptx_stacks_size): New.
7903         (nvptx_stacks_alloc): New.
7904         (nvptx_stacks_free): New.
7905         (GOMP_OFFLOAD_run): New.
7906         (GOMP_OFFLOAD_async_run): New (stub).
7908 2016-11-23  Martin Jambor  <mjambor@suse.cz>
7910         * testsuite/libgomp.hsa.c/bits-insns.c: New test.
7911         * testsuite/libgomp.hsa.c/tiling-1.c: Likewise.
7912         * testsuite/libgomp.hsa.c/tiling-2.c: Likewise.
7914 2016-11-23  Martin Liska  <mliska@suse.cz>
7915             Martin Jambor  <mjambor@suse.cz>
7917         * plugin/hsa.h: New file.
7918         * plugin/hsa_ext_finalize.h: New file.
7919         * plugin/configfrag.ac: Remove hsa-kmt-lib test.  Added checks for
7920         header file unistd.h, and functions secure_getenv, __secure_getenv,
7921         getuid, geteuid, getgid and getegid.
7922         * plugin/Makefrag.am (libgomp_plugin_hsa_la_CPPFLAGS): Added
7923         -D_GNU_SOURCE.
7924         * plugin/plugin-hsa.c: Include config.h, inttypes.h and stdbool.h.
7925         Handle various cases of secure_getenv presence, add an implementation
7926         when we can test effective UID and GID.
7927         (struct hsa_runtime_fn_info): New structure.
7928         (hsa_runtime_fn_info hsa_fns): New variable.
7929         (hsa_runtime_lib): Likewise.
7930         (support_cpu_devices): Likewise.
7931         (init_enviroment_variables): Load newly introduced ENV
7932         variables.
7933         (hsa_warn): Call hsa run-time functions via hsa_fns structure.
7934         (hsa_fatal): Likewise.
7935         (DLSYM_FN): New macro.
7936         (init_hsa_runtime_functions): New function.
7937         (suitable_hsa_agent_p): Call hsa run-time functions via hsa_fns
7938         structure.  Depending on environment, also allow CPU devices.
7939         (init_hsa_context): Call hsa run-time functions via hsa_fns structure.
7940         (get_kernarg_memory_region): Likewise.
7941         (GOMP_OFFLOAD_init_device): Likewise.
7942         (destroy_hsa_program): Likewise.
7943         (init_basic_kernel_info): New function.
7944         (GOMP_OFFLOAD_load_image): Use it.
7945         (create_and_finalize_hsa_program): Call hsa run-time functions via
7946         hsa_fns structure.
7947         (create_single_kernel_dispatch): Likewise.
7948         (release_kernel_dispatch): Likewise.
7949         (init_single_kernel): Likewise.
7950         (parse_target_attributes): Allow up multiple HSA grid dimensions.
7951         (get_group_size): New function.
7952         (run_kernel): Likewise.
7953         (GOMP_OFFLOAD_run): Outline most functionality to run_kernel.
7954         (GOMP_OFFLOAD_fini_device): Call hsa run-time functions via hsa_fns
7955         structure.
7956         * testsuite/lib/libgomp.exp: Remove hsa_kmt_lib support.
7957         * testsuite/libgomp-test-support.exp.in: Likewise.
7958         * Makefile.in: Regenerated.
7959         * aclocal.m4: Likewise.
7960         * config.h.in: Likewise.
7961         * configure: Likewise.
7962         * testsuite/Makefile.in: Likewise.
7964 2016-11-15  Martin Jambor  <mjambor@suse.cz>
7965             Alexander Monakov  <amonakov@ispras.ru>
7967         * testsuite/libgomp.fortran/examples-4/device-1.f90 (e_57_1): Add
7968         mapping clauses to target constructs.
7969         * testsuite/libgomp.fortran/examples-4/device-3.f90 (e_57_3): Ditto.
7971 2016-11-15  Matthias Klose  <doko@ubuntu.com>
7973         * configure: Regenerate.
7975 2016-11-10  Jakub Jelinek  <jakub@redhat.com>
7977         * omp_lib.f90.in (openmp_version): Change to 201511 from 201307.
7978         * omp_lib.h.in (openmp_version): Likewise.
7979         * testsuite/libgomp.fortran/openmp_version-1.f: Expect 201511 instead
7980         of 201307.
7981         * testsuite/libgomp.fortran/openmp_version-2.f90: Likewise.
7983         * testsuite/libgomp.fortran/examples-4/declare_target-1.f90
7984         (fib_wrapper): Add map(from: x) clause.
7985         * testsuite/libgomp.fortran/examples-4/declare_target-2.f90
7986         (e_53_2): Likewise.
7987         * testsuite/libgomp.fortran/examples-4/declare_target-4.f90
7988         (accum): Add map(tmp) clause.
7989         * testsuite/libgomp.fortran/examples-4/declare_target-5.f90
7990         (accum): Add map(tofrom: tmp) clause.
7991         * testsuite/libgomp.fortran/examples-4/target_data-3.f90
7992         (gramSchmidt): Likewise.
7993         * testsuite/libgomp.fortran/examples-4/teams-2.f90 (dotprod): Add
7994         map(tofrom: sum) clause.
7995         * testsuite/libgomp.fortran/nestedfn5.f90 (foo): Add twice
7996         map (alloc: a, l) clause.  Add defaultmap(tofrom: scalar) clause.
7997         * testsuite/libgomp.fortran/pr66199-2.f90: Adjust for linear clause
7998         only allowed on the loop iterator.
7999         * testsuite/libgomp.fortran/target4.f90 (foo): Add map(t) clause.
8000         * testsuite/libgomp.fortran/taskloop2.f90: New test.
8001         * testsuite/libgomp.fortran/taskloop4.f90: New test.
8002         * testsuite/libgomp.fortran/doacross1.f90: New test.
8003         * testsuite/libgomp.fortran/doacross3.f90: New test.
8004         * testsuite/libgomp.fortran/taskloop1.f90: New test.
8005         * testsuite/libgomp.fortran/taskloop3.f90: New test.
8006         * testsuite/libgomp.fortran/doacross2.f90: New test.
8007         * testsuite/libgomp.c/doacross-1.c (main): Add missing
8008         #pragma omp atomic read.
8009         * testsuite/libgomp.c/doacross-2.c (main): Likewise.
8010         * testsuite/libgomp.c/doacross-3.c (main): Likewise.
8012 2016-11-02  Cesar Philippidis  <cesar@codesourcery.com>
8013             Nathan Sidwell  <nathan@acm.org>
8015         * plugin/plugin-nvptx.c (nvptx_exec): Interrogate board attributes
8016         to determine default geometry.
8017         * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Set gang
8018         dimension.
8020 2016-11-01  Jakub Jelinek  <jakub@redhat.com>
8022         * hashtab.h: Use standard GPLv3 with runtime exception
8023         boilerplate.
8025 2016-10-27  Aldy Hernandez  <aldyh@redhat.com>
8027         * oacc-init.c (goacc_new_thread): Use sizeof of the appropriate
8028         size when allocating new thread.
8030 2016-09-14  Marek Polacek  <polacek@redhat.com>
8032         * testsuite/libgomp.c++/atomic-3.C: Use -Wno-deprecated.
8034 2016-08-19  Jakub Jelinek  <jakub@redhat.com>
8036         PR fortran/71014
8037         * testsuite/libgomp.fortran/pr71014.f90: New test.
8039 2016-08-18  Chung-Lin Tang  <cltang@codesourcery.com>
8041         PR middle-end/70895
8042         * testsuite/libgomp.oacc-fortran/reduction-7.f90: Add explicit
8043         firstprivate clauses.
8044         * testsuite/libgomp.oacc-fortran/reduction-6.f90: Remove explicit
8045         copy clauses.
8046         * testsuite/libgomp.oacc-c-c++-common/reduction-7.c: Likewise.
8047         * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-flt.c: Likewise.
8048         * testsuite/libgomp.oacc-c-c++-common/reduction-flt.c: Likewise.
8049         * testsuite/libgomp.oacc-c-c++-common/collapse-2.c: Likewise.
8050         * testsuite/libgomp.oacc-c-c++-common/loop-red-wv-1.c: Likewise.
8051         * testsuite/libgomp.oacc-c-c++-common/collapse-4.c: Likewise.
8052         * testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c: Likewise.
8053         * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-dbl.c: Likewise.
8054         * testsuite/libgomp.oacc-c-c++-common/loop-red-g-1.c: Likewise.
8055         * testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c: Likewise.
8056         * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c: Likewise.
8057         * testsuite/libgomp.oacc-c-c++-common/reduction-dbl.c: Likewise.
8059 2016-08-14  Chung-Lin Tang  <cltang@codesourcery.com>
8061         PR fortran/70598
8062         * testsuite/libgomp.oacc-fortran/host_data-1.f90: New test.
8064 2016-08-08  Jakub Jelinek  <jakub@redhat.com>
8066         PR c++/58706
8067         * testsuite/libgomp.c++/pr58706.C: New test.
8069 2016-08-04  Thomas Schwinge  <thomas@codesourcery.com>
8071         * testsuite/libgomp.oacc-c++/routine-1-auto.C: New file.
8072         * testsuite/libgomp.oacc-c++/routine-1-template-auto.C: Likewise.
8073         * testsuite/libgomp.oacc-c++/routine-1-template-trailing-return-type.C:
8074         Likewise.
8075         * testsuite/libgomp.oacc-c++/routine-1-template.C: Likewise.
8076         * testsuite/libgomp.oacc-c++/routine-1-trailing-return-type.C:
8077         Likewise.
8078         * testsuite/libgomp.oacc-c-c++-common/routine-1.c: Adjust.
8080         * testsuite/libgomp.oacc-c-c++-common/crash-1.c: Make it a "link"
8081         test, and don't hardcode -O0.
8083 2016-08-03  Nathan Sidwell  <nathan@codesourcery.com>
8085         * testsuite/libgomp.oacc-c-c++-common/crash-1.c: New.
8087 2016-07-15  Cesar Philippidis  <cesar@codesourcery.com>
8089         * testsuite/libgomp.oacc-c-c++-common/zero_length_subarrays.c: New
8090         test.
8092 2016-07-03  H.J. Lu  <hongjiu.lu@intel.com>
8094         PR middle-end/71734
8095         * testsuite/libgomp.fortran/pr71734-1.f90: New test.
8096         * testsuite/libgomp.fortran/pr71734-2.f90: Likewise.
8098 2016-07-01  Jakub Jelinek  <jakub@redhat.com>
8100         PR fortran/71717
8101         * testsuite/libgomp.fortran/associate3.f90: New test.
8103 2016-06-17  Jakub Jelinek  <jakub@redhat.com>
8105         * testsuite/libgomp.c++/target-21.C: New test.
8107 2016-06-16  Jakub Jelinek  <jakub@redhat.com>
8109         * testsuite/libgomp.c++/target-20.C: New test.
8111 2016-06-10  Thomas Schwinge  <thomas@codesourcery.com>
8112             Cesar Philippidis  <cesar@codesourcery.com>
8114         PR middle-end/71373
8115         * libgomp.oacc-c/nested-function-1.c: New file.
8116         * libgomp.oacc-c/nested-function-2.c: Likewise.
8117         * libgomp.oacc-fortran/nested-function-1.f90: Likewise.
8118         * libgomp.oacc-fortran/nested-function-2.f90: Likewise.
8119         * libgomp.oacc-fortran/nested-function-3.f90: Likewise.
8121 2016-06-10  Thomas Schwinge  <thomas@codesourcery.com>
8123         PR c/71381
8124         * testsuite/libgomp.oacc-c-c++-common/cache-1.c: #include
8125         "../../../gcc/testsuite/c-c++-common/goacc/cache-1.c".
8126         * testsuite/libgomp.oacc-fortran/cache-1.f95: New file.
8128 2016-06-03  Chung-Lin Tang  <cltang@codesourcery.com>
8130         * testsuite/libgomp.oacc-fortran/reduction-8.f90: New testcase.
8131         * testsuite/libgomp.oacc-c-c++-common/reduction-8.c: New testcase.
8133 2016-06-01  Cesar Philippidis  <cesar@codesourcery.com>
8135         PR c/70688
8136         * testsuite/libgomp.oacc-c-c++-common/pr70688.c: New file.
8138 2016-05-26  Jakub Jelinek  <jakub@redhat.com>
8140         * testsuite/libgomp.c/doacross-1.c (main): Use schedule(static)
8141         instead of invalid schedule(static, 0).
8142         * testsuite/libgomp.c/doacross-2.c (main): Likewise.
8144 2016-05-26  Chung-Lin Tang  <cltang@codesourcery.com>
8146         * oacc-plugin.h (GOMP_PLUGIN_async_unmap_vars): Add int parameter.
8147         * oacc-plugin.c (GOMP_PLUGIN_async_unmap_vars): Add 'int async'
8148         parameter, use to set async stream around call to gomp_unmap_vars,
8149         call gomp_unmap_vars() with 'do_copyfrom' set to true.
8150         * plugin/plugin-nvptx.c (struct ptx_event): Add 'int val' field.
8151         (event_gc): Adjust event handling loop, collect PTX_EVT_ASYNC_CLEANUP
8152         events and call GOMP_PLUGIN_async_unmap_vars() for each of them.
8153         (event_add): Add int parameter, initialize 'val' field when
8154         adding new ptx_event struct.
8155         (nvptx_evec): Adjust event_add() call arguments.
8156         (nvptx_host2dev): Likewise.
8157         (nvptx_dev2host): Likewise.
8158         (nvptx_wait_async): Likewise.
8159         (nvptx_wait_all_async): Likewise.
8160         (GOMP_OFFLOAD_openacc_register_async_cleanup): Add async parameter,
8161         pass to event_add() call.
8162         * oacc-host.c (host_openacc_register_async_cleanup): Add 'int async'
8163         parameter.
8164         * oacc-mem.c (gomp_acc_remove_pointer): Adjust async case to
8165         call openacc.register_async_cleanup_func() hook.
8166         * oacc-parallel.c (GOACC_parallel_keyed): Likewise.
8167         * target.c (gomp_copy_from_async): Delete function.
8168         (gomp_map_vars): Remove async_refcount.
8169         (gomp_unmap_vars): Likewise.
8170         (gomp_load_image_to_device): Likewise.
8171         (omp_target_associate_ptr): Likewise.
8172         * libgomp.h (struct splay_tree_key_s): Remove async_refcount.
8173         (acc_dispatch_t.register_async_cleanup_func): Add int parameter.
8174         (gomp_copy_from_async): Remove.
8176 2016-05-26  Chung-Lin Tang  <cltang@codesourcery.com>
8178         * target.c (gomp_device_copy): New function.
8179         (gomp_copy_host2dev): Likewise.
8180         (gomp_copy_dev2host): Likewise.
8181         (gomp_free_device_memory): Likewise.
8182         (gomp_map_vars_existing): Adjust to call gomp_copy_host2dev.
8183         (gomp_map_pointer): Likewise.
8184         (gomp_map_vars): Adjust to call gomp_copy_host2dev, handle
8185         NULL value from alloc_func plugin hook.
8186         (gomp_unmap_tgt): Adjust to call gomp_free_device_memory.
8187         (gomp_copy_from_async): Adjust to call gomp_copy_dev2host.
8188         (gomp_unmap_vars): Likewise.
8189         (gomp_update): Adjust to call gomp_copy_dev2host and
8190         gomp_copy_host2dev functions.
8191         (gomp_unload_image_from_device): Handle false value from
8192         unload_image_func plugin hook.
8193         (gomp_init_device): Handle false value from init_device_func
8194         plugin hook.
8195         (gomp_exit_data): Adjust to call gomp_copy_dev2host.
8196         (omp_target_free): Adjust to call gomp_free_device_memory.
8197         (omp_target_memcpy): Handle return values from host2dev_func,
8198         dev2host_func, and dev2dev_func plugin hooks.
8199         (omp_target_memcpy_rect_worker): Likewise.
8200         (gomp_target_fini): Handle false value from fini_device_func
8201         plugin hook.
8202         * libgomp.h (struct gomp_device_descr): Adjust return type of
8203         init_device_func, fini_device_func, unload_image_func, free_func,
8204         dev2host_func,host2dev_func, and dev2dev_func plugin hooks to 'bool'.
8205         * oacc-init.c (acc_shutdown_1): Handle false value from
8206         fini_device_func plugin hook.
8207         * oacc-host.c (host_init_device): Change return type to bool.
8208         (host_fini_device): Likewise.
8209         (host_unload_image): Likewise.
8210         (host_free): Likewise.
8211         (host_dev2host): Likewise.
8212         (host_host2dev): Likewise.
8213         * oacc-mem.c (acc_free): Handle plugin hook fatal error case.
8214         (acc_memcpy_to_device): Likewise.
8215         (acc_memcpy_from_device): Likewise.
8216         (delete_copyout): Add libfnname parameter, handle free_func
8217         hook fatal error case.
8218         (acc_delete): Adjust delete_copyout call.
8219         (acc_copyout): Likewise.
8220         (update_dev_host): Move gomp_mutex_unlock to after
8221         host2dev/dev2host hook calls.
8223         * plugin/plugin-hsa.c (hsa_warn): Adjust 'hsa_error' local variable
8224         to 'hsa_error_msg', for clarity.
8225         (hsa_fatal): Likewise.
8226         (hsa_error): New function.
8227         (init_hsa_context): Change return type to bool, adjust to return
8228         false on error.
8229         (GOMP_OFFLOAD_get_num_devices): Adjust to handle init_hsa_context
8230         return value.
8231         (GOMP_OFFLOAD_init_device): Change return type to bool, adjust to
8232         return false on error.
8233         (get_agent_info): Adjust to return NULL on error.
8234         (destroy_hsa_program): Change return type to bool, adjust to
8235         return false on error.
8236         (GOMP_OFFLOAD_load_image): Adjust to return -1 on error.
8237         (destroy_module): Change return type to bool, adjust to
8238         return false on error.
8239         (GOMP_OFFLOAD_unload_image): Likewise.
8240         (GOMP_OFFLOAD_fini_device): Likewise.
8241         (GOMP_OFFLOAD_alloc): Change to return NULL when called.
8242         (GOMP_OFFLOAD_free): Change to return false when called.
8243         (GOMP_OFFLOAD_dev2host): Likewise.
8244         (GOMP_OFFLOAD_host2dev): Likewise.
8245         (GOMP_OFFLOAD_dev2dev): Likewise.
8247         * plugin/plugin-nvptx.c (CUDA_CALL_ERET): New convenience macro.
8248         (CUDA_CALL): Likewise.
8249         (CUDA_CALL_ASSERT): Likewise.
8250         (map_init): Change return type to bool, use CUDA_CALL* macros.
8251         (map_fini): Likewise.
8252         (init_streams_for_device): Change return type to bool, adjust
8253         call to map_init.
8254         (fini_streams_for_device): Change return type to bool, adjust
8255         call to map_fini.
8256         (select_stream_for_async): Release stream_lock before calls to
8257         GOMP_PLUGIN_fatal, adjust call to map_init.
8258         (nvptx_init): Use CUDA_CALL* macros.
8259         (nvptx_attach_host_thread_to_device): Change return type to bool,
8260         use CUDA_CALL* macros.
8261         (nvptx_open_device): Use CUDA_CALL* macros.
8262         (nvptx_close_device): Change return type to bool, use CUDA_CALL*
8263         macros.
8264         (nvptx_get_num_devices): Use CUDA_CALL* macros.
8265         (link_ptx): Change return type to bool, use CUDA_CALL* macros.
8266         (nvptx_exec): Use CUDA_CALL* macros.
8267         (nvptx_alloc): Use CUDA_CALL* macros.
8268         (nvptx_free): Change return type to bool, use CUDA_CALL* macros.
8269         (nvptx_host2dev): Likewise.
8270         (nvptx_dev2host): Likewise.
8271         (nvptx_wait): Use CUDA_CALL* macros.
8272         (nvptx_wait_async): Likewise.
8273         (nvptx_wait_all): Likewise.
8274         (nvptx_wait_all_async): Likewise.
8275         (nvptx_set_cuda_stream): Adjust order of stream_lock acquire,
8276         use CUDA_CALL* macros, adjust call to map_fini.
8277         (GOMP_OFFLOAD_init_device): Change return type to bool,
8278         adjust code accordingly.
8279         (GOMP_OFFLOAD_fini_device): Likewise.
8280         (GOMP_OFFLOAD_load_image): Adjust calls to
8281         nvptx_attach_host_thread_to_device/link_ptx to handle errors,
8282         use CUDA_CALL* macros.
8283         (GOMP_OFFLOAD_unload_image): Change return type to bool, adjust
8284         return code.
8285         (GOMP_OFFLOAD_alloc): Adjust calls to code to handle error return.
8286         (GOMP_OFFLOAD_free): Change return type to bool, adjust calls to
8287         handle error return.
8288         (GOMP_OFFLOAD_dev2host): Likewise.
8289         (GOMP_OFFLOAD_host2dev): Likewise.
8290         (GOMP_OFFLOAD_openacc_register_async_cleanup): Use CUDA_CALL* macros.
8291         (GOMP_OFFLOAD_openacc_create_thread_data): Likewise.
8293 2016-05-24  Cesar Philippidis  <cesar@codesourcery.com>
8295         * oacc-mem.c (acc_malloc): Update handling of shared-memory targets.
8296         (acc_free): Likewise.
8297         (acc_memcpy_to_device): Likewise.
8298         (acc_memcpy_from_device): Likewise.
8299         (acc_deviceptr): Likewise.
8300         (acc_hostptr): Likewise.
8301         (acc_is_present): Likewise.
8302         (acc_map_data): Likewise.
8303         (acc_unmap_data): Likewise.
8304         (present_create_copy): Likewise.
8305         (delete_copyout): Likewise.
8306         (update_dev_host): Likewise.
8307         * testsuite/libgomp.oacc-c-c++-common/asyncwait-1.c: Remove xfail.
8308         * testsuite/libgomp.oacc-c-c++-common/data-2-lib.c: New test.
8309         * testsuite/libgomp.oacc-c-c++-common/data-2.c: Adjust test.
8310         * testsuite/libgomp.oacc-c-c++-common/data-3.c: Likewise.
8311         * testsuite/libgomp.oacc-c-c++-common/enter_exit-lib.c: New test.
8312         * testsuite/libgomp.oacc-c-c++-common/lib-13.c: Adjust test so that
8313         it only runs on nvptx targets.
8314         * testsuite/libgomp.oacc-c-c++-common/lib-14.c: Likewise.
8315         * testsuite/libgomp.oacc-c-c++-common/lib-15.c: Likewise.
8316         * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
8317         * testsuite/libgomp.oacc-c-c++-common/lib-17.c: Likewise.
8318         * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
8319         * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
8320         * testsuite/libgomp.oacc-c-c++-common/lib-21.c: Likewise.
8321         * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Likewise.
8322         * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
8323         * testsuite/libgomp.oacc-c-c++-common/lib-24.c: Likewise.
8324         * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
8325         * testsuite/libgomp.oacc-c-c++-common/lib-28.c: Likewise.
8326         * testsuite/libgomp.oacc-c-c++-common/lib-29.c: Likewise.
8327         * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
8328         * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
8329         * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
8330         * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Likewise.
8331         * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
8332         * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Likewise.
8333         * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
8334         * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Likewise.
8335         * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
8336         * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
8338 2016-05-23  Martin Jambor  <mjambor@suse.cz>
8340         * testsuite/libgomp.hsa.c/switch-sbr-2.c: New test.
8342 2016-05-17  Chung-Lin Tang  <cltang@codesourcery.com>
8344         * oacc-init.c (acc_init): Remove !cached_base_dev condition on call
8345         to gomp_init_targets_once.
8346         (acc_set_device_type): Remove !cached_base_dev condition on call to
8347         gomp_init_targets_once, move call to before acc_device_lock acquire,
8348         to avoid deadlock.
8349         (acc_get_device_num): Remove !cached_base_dev condition on call to
8350         gomp_init_targets_once.
8351         (acc_set_device_num): Likewise.
8353 2016-05-16  Martin Jambor  <mjambor@suse.cz>
8355         * testsuite/libgomp.hsa.c/complex-align-2.c: New test.
8357 2016-05-02  Nathan Sidwell  <nathan@codesourcery.com>
8359         * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Adjust
8360         expected partitioning.
8362 2016-04-29  Cesar Philippidis  <cesar@codesourcery.com>
8364         PR middle-end/70626
8365         * testsuite/libgomp.oacc-c++/template-reduction.C: Adjust test.
8366         * testsuite/libgomp.oacc-c-c++-common/combined-reduction.c: New test.
8367         * testsuite/libgomp.oacc-fortran/combined-reduction.f90: New test.
8369 2016-04-21  Alexander Monakov  <amonakov@ispras.ru>
8371         * plugin/plugin-nvptx.c (map_fini): Make cuMemFreeHost error
8372         non-fatal.
8374 2016-04-19  Jakub Jelinek  <jakub@redhat.com>
8376         PR middle-end/70680
8377         * testsuite/libgomp.c/pr70680-1.c: New test.
8378         * testsuite/libgomp.c/pr70680-2.c: New test.
8380 2016-04-14  Cesar Philippidis  <cesar@codesourcery.com>
8382         * testsuite/libgomp.oacc-fortran/non-scalar-data.f90: Don't
8383         pass parameter variables to subroutines.
8385 2016-04-14  Cesar Philippidis  <cesar@codesourcery.com>
8387         PR middle-end/70643
8388         * testsuite/libgomp.oacc-fortran/pr70643.f90: New test.
8390 2016-04-13  Cesar Philippidis  <cesar@codesourcery.com>
8392         PR testsuite/68242
8393         * testsuite/libgomp.oacc-c-c++-common/reduction-1.c: Adjust test.
8394         * testsuite/libgomp.oacc-c-c++-common/reduction-2.c: Likewise.
8396 2016-04-12  Thomas Schwinge  <thomas@codesourcery.com>
8398         * libgomp_g.h: Rename GOACC_parallel_keyd prototype to
8399         GOACC_parallel_keyed, restore GOACC_parallel prototype, new
8400         GOACC_declare prototype.
8402         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gang-np-1.c:
8403         Merge this file, and...
8404         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gv-np-1.c:
8405         ... this file, and...
8406         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gw-np-1.c:
8407         ... this file, and...
8408         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-1.c:
8409         ... this file, and...
8410         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-2.c:
8411         ... this file, and...
8412         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-3.c:
8413         ... this file, and...
8414         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-4.c:
8415         ... this file, and...
8416         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-vector-p-1.c:
8417         ... this file, and...
8418         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-vector-p-2.c:
8419         ... this file, and...
8420         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-worker-p-1.c:
8421         ... this file, and...
8422         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-1.c:
8423         ... this file, and...
8424         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-2.c:
8425         ... this file, and...
8426         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-3.c:
8427         ... this file into...
8428         * testsuite/libgomp.oacc-c-c++-common/reduction-7.c: ... this
8429         file.
8431         * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-2.c:
8432         Make failure observable.
8434 2016-04-12  Jakub Jelinek  <jakub@redhat.com>
8436         * libgomp.h (struct gomp_target_task): Remove firstprivate_copies
8437         field.
8438         * target.c (gomp_target_fallback_firstprivate,
8439         gomp_target_unshare_firstprivate): Removed.
8440         (GOMP_target_ext): Copy firstprivate vars into gomp_allocaed memory
8441         before waiting for dependencies.
8442         (gomp_target_task_fn): Don't copy firstprivate vars here.
8443         * task.c (GOMP_PLUGIN_target_task_completion): Don't free
8444         firstprivate_copies here.
8445         (gomp_create_target_task): Don't initialize firstprivate_copies field.
8446         * testsuite/libgomp.c/target-25.c (main): Use map (to:) instead of
8447         explicit/implicit firstprivate.
8449 2016-04-08  Cesar Philippidis  <cesar@codesourcery.com>
8451         PR lto/70289
8452         PR ipa/70348
8453         PR tree-optimization/70373
8454         PR middle-end/70533
8455         PR middle-end/70534
8456         PR middle-end/70535
8457         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gang-np-1.c: New
8458         test.
8459         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gw-np-1.c: New
8460         test.
8461         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-1.c: New
8462         test.
8463         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-2.c: New
8464         test.
8465         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-3.c: New
8466         test.
8467         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-4.c: New
8468         test.
8469         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-vector-p-1.c: New
8470         test.
8471         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-vector-p-2.c: New
8472         test.
8473         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-worker-p-1.c: New
8474         test.
8475         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-1.c: New test.
8476         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-2.c: New test.
8477         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-3.c: New test.
8478         * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-1.c: New
8479         test.
8480         * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-2.c: New
8481         test.
8482         * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-3.c: New
8483         test.
8484         * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-4.c: New
8485         test.
8486         * testsuite/libgomp.oacc-c-c++-common/par-reduction-1.c: Add test
8487         coverage.
8488         * testsuite/libgomp.oacc-c-c++-common/par-reduction-2.c: Likewise.
8489         * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Likewise.
8490         * testsuite/libgomp.oacc-c-c++-common/parallel-reduction.c: New test.
8491         * testsuite/libgomp.oacc-c-c++-common/pr70289.c: New test.
8492         * testsuite/libgomp.oacc-c-c++-common/pr70373.c: New test.
8493         * testsuite/libgomp.oacc-c-c++-common/reduction-1.c: Add test
8494         coverage.
8495         * testsuite/libgomp.oacc-c-c++-common/reduction-2.c: Likewise.
8496         * testsuite/libgomp.oacc-c-c++-common/reduction-3.c: Likewise.
8497         * testsuite/libgomp.oacc-c-c++-common/reduction-4.c: Likewise.
8498         * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Likewise.
8499         * testsuite/libgomp.oacc-c-c++-common/reduction-6.c: New test.
8500         * testsuite/libgomp.oacc-c-c++-common/reduction.h: New test.
8501         * testsuite/libgomp.oacc-fortran/parallel-reduction.f90: New test.
8502         * testsuite/libgomp.oacc-fortran/pr70289.f90: New test.
8503         * testsuite/libgomp.oacc-fortran/reduction-1.f90: Add test coverage.
8504         * testsuite/libgomp.oacc-fortran/reduction-2.f90: Likewise.
8505         * testsuite/libgomp.oacc-fortran/reduction-3.f90: Likewise.
8506         * testsuite/libgomp.oacc-fortran/reduction-4.f90: Likewise.
8507         * testsuite/libgomp.oacc-fortran/reduction-5.f90: Likewise.
8508         * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
8509         * testsuite/libgomp.oacc-fortran/reduction-7.f90: New test.
8511 2016-03-30  Thomas Schwinge  <thomas@codesourcery.com>
8512             James Norris  <jnorris@codesourcery.com>
8513             Nathan Sidwell  <nathan@codesourcery.com>
8514             Julian Brown  <julian@codesourcery.com>
8515             Cesar Philippidis  <cesar@codesourcery.com>
8516             Chung-Lin Tang  <cltang@codesourcery.com>
8517             Tom de Vries  <tom@codesourcery.com>
8519         * testsuite/libgomp.oacc-c-c++-common/clauses-1.c: Update.
8520         * testsuite/libgomp.oacc-c-c++-common/deviceptr-1.c: Likewise.
8521         * testsuite/libgomp.oacc-c-c++-common/if-1.c: Likewise.
8522         * testsuite/libgomp.oacc-c-c++-common/vector-loop.c: Likewise.
8523         * testsuite/libgomp.oacc-fortran/asyncwait-1.f90: Likewise.
8524         * testsuite/libgomp.oacc-fortran/asyncwait-2.f90: Likewise.
8525         * testsuite/libgomp.oacc-fortran/asyncwait-3.f90: Likewise.
8526         * testsuite/libgomp.oacc-fortran/declare-1.f90: Likewise.
8527         * testsuite/libgomp.oacc-c-c++-common/asyncwait-1.c: Likewise.
8528         XFAIL.
8529         * testsuite/libgomp.oacc-c-c++-common/firstprivate-1.c: Update.
8530         Incorporate...
8531         * testsuite/libgomp.oacc-c-c++-common/firstprivate-2.c: ... this
8532         file.
8533         * testsuite/libgomp.oacc-c++/template-reduction.C: New file.
8534         * testsuite/libgomp.oacc-c-c++-common/gang-static-1.c: Likewise.
8535         * testsuite/libgomp.oacc-c-c++-common/gang-static-2.c: Likewise.
8536         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-clauses.c:
8537         Likewise.
8538         * testsuite/libgomp.oacc-c-c++-common/private-variables.c:
8539         Likewise.
8540         * testsuite/libgomp.oacc-c-c++-common/reduction-7.c: Likewise.
8541         * testsuite/libgomp.oacc-c-c++-common/routine-1.c: Likewise.
8542         * testsuite/libgomp.oacc-c-c++-common/routine-4.c: Likewise.
8543         * testsuite/libgomp.oacc-c-c++-common/routine-wv-2.c: Likewise.
8544         * testsuite/libgomp.oacc-fortran/clauses-1.f90: Likewise.
8545         * testsuite/libgomp.oacc-fortran/default-1.f90: Likewise.
8546         * testsuite/libgomp.oacc-fortran/firstprivate-1.f90: Likewise.
8547         * testsuite/libgomp.oacc-fortran/gang-static-1.f90: Likewise.
8548         * testsuite/libgomp.oacc-fortran/if-1.f90: Likewise.
8549         * testsuite/libgomp.oacc-fortran/implicit-firstprivate-ref.f90:
8550         Likewise.
8551         * testsuite/libgomp.oacc-fortran/pr68813.f90: Likewise.
8552         * testsuite/libgomp.oacc-fortran/private-variables.f90: Likewise.
8553         * testsuite/libgomp.oacc-c-c++-common/kernels-1.c: Merge this
8554         file...
8555         * testsuite/libgomp.oacc-c-c++-common/parallel-1.c: ..., and this
8556         file into...
8557         * testsuite/libgomp.oacc-c-c++-common/data-clauses.h: ... this new
8558         file.  Update.
8559         * testsuite/libgomp.oacc-c-c++-common/data-clauses-kernels.c: New
8560         file.
8561         * testsuite/libgomp.oacc-c-c++-common/data-clauses-parallel.c:
8562         Likewise.
8563         * testsuite/libgomp.oacc-c-c++-common/kernels-2.c: Rename to...
8564         * testsuite/libgomp.oacc-c-c++-common/data-clauses-kernels-ipa-pta.c:
8565         ... this new file.  Update.
8566         * testsuite/libgomp.oacc-c-c++-common/parallel-2.c: Rename to...
8567         * testsuite/libgomp.oacc-c-c++-common/data-clauses-parallel-ipa-pta.c:
8568         ... this new file.  Update.
8569         * testsuite/libgomp.oacc-c-c++-common/mode-transitions.c: New
8570         file.  Incorporate...
8571         * testsuite/libgomp.oacc-c-c++-common/worker-single-1a.c: ... this
8572         file, and...
8573         * testsuite/libgomp.oacc-c-c++-common/worker-single-4.c: ... this
8574         file, and...
8575         * testsuite/libgomp.oacc-c-c++-common/worker-single-6.c: ... this
8576         file.
8577         * testsuite/libgomp.oacc-c-c++-common/update-1-2.c: Remove file.
8579 2016-03-29  Thomas Schwinge  <thomas@codesourcery.com>
8581         * testsuite/libgomp.oacc-c++/c++.exp [!lang_test_file_found]: Call
8582         set-torture-options.
8584 2016-03-24  Thomas Schwinge  <thomas@codesourcery.com>
8586         * testsuite/libgomp.oacc-c++/c++.exp: Set up torture testing, use
8587         gcc-dg-runtest.
8588         * testsuite/libgomp.oacc-c/c.exp: Likewise.
8589         * testsuite/libgomp.oacc-c-c++-common/acc-on-device-2.c: Specify
8590         -fno-builtin-acc_on_device instead of -O0.
8591         * testsuite/libgomp.oacc-c-c++-common/acc-on-device.c: Skip for
8592         -O0.
8593         * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Likewise.
8594         * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c:
8595         Likewise.
8596         * testsuite/libgomp.oacc-c-c++-common/loop-g-1.c: Likewise.
8597         * testsuite/libgomp.oacc-c-c++-common/loop-g-2.c: Likewise.
8598         * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c: Likewise.
8599         * testsuite/libgomp.oacc-c-c++-common/loop-red-g-1.c: Likewise.
8600         * testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c: Likewise.
8601         * testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c: Likewise.
8602         * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c: Likewise.
8603         * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c: Likewise.
8604         * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c: Likewise.
8605         * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c: Likewise.
8606         * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c: Likewise.
8607         * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c: Likewise.
8608         * testsuite/libgomp.oacc-c-c++-common/routine-g-1.c: Likewise.
8609         * testsuite/libgomp.oacc-c-c++-common/routine-gwv-1.c: Likewise.
8610         * testsuite/libgomp.oacc-c-c++-common/routine-v-1.c: Likewise.
8611         * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c: Likewise.
8612         * testsuite/libgomp.oacc-c-c++-common/routine-wv-1.c: Likewise.
8613         * testsuite/libgomp.oacc-c-c++-common/kernels-alias-ipa-pta-2.c:
8614         Don't specify -O2.
8615         * testsuite/libgomp.oacc-c-c++-common/kernels-alias-ipa-pta-3.c:
8616         Likewise.
8617         * testsuite/libgomp.oacc-c-c++-common/kernels-alias-ipa-pta.c:
8618         Likewise.
8620 2016-03-24  Martin Liska  <mliska@suse.cz>
8622         * plugin/plugin-hsa.c (packet_store_release): New function
8623         that is taken from the HSA runtime manual.
8624         (GOMP_OFFLOAD_run): Use the function.
8626 2016-03-23  Jakub Jelinek  <jakub@redhat.com>
8628         PR c++/70376
8629         * testsuite/libgomp.c++/pr70376.C: New test.
8631 2016-03-23  Tom de Vries  <tom@codesourcery.com>
8633         * testsuite/libgomp.oacc-fortran/reduction-2.f90: Add missing
8634         initialization of lresult and lvresult.
8635         * testsuite/libgomp.oacc-fortran/reduction-3.f90: Same.
8637 2016-03-23  James Norris  <jnorris@codesourcery.com>
8638             Daichi Fukuoka <dc-fukuoka@sgi.com>
8640         PR libgomp/69414
8641         * oacc-mem.c (delete_copyout, update_dev_host): Fix device address.
8642         * testsuite/libgomp.oacc-c-c++-common/update-1.c: Additional tests.
8643         * testsuite/libgomp.oacc-c-c++-common/update-1-2.c: Likewise.
8644         * testsuite/libgomp.oacc-fortran/update-1.f90: New file.
8646 2016-03-23  Martin Liska  <mliska@suse.cz>
8648         PR hsa/70337
8649         * plugin/plugin-hsa.c (GOMP_OFFLOAD_run): Copy shadow
8650         argument just in case a dispatched kernel uses that argument.
8652 2016-03-16  Thomas Schwinge  <thomas@codesourcery.com>
8654         * testsuite/libgomp.oacc-fortran/kernels-loop-2.f95: Adjust to
8655         -ftree-parallelize-loops/-fopenacc changes.
8656         * testsuite/libgomp.oacc-fortran/kernels-loop-data-2.f95:
8657         Likewise.
8658         * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit-2.f95:
8659         Likewise.
8660         * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit.f95:
8661         Likewise.
8662         * testsuite/libgomp.oacc-fortran/kernels-loop-data-update.f95:
8663         Likewise.
8664         * testsuite/libgomp.oacc-fortran/kernels-loop-data.f95: Likewise.
8665         * testsuite/libgomp.oacc-fortran/kernels-loop.f95: Likewise.
8667 2016-03-13  Thomas Schwinge  <thomas@codesourcery.com>
8669         * testsuite/lib/libgomp.exp (libgomp_init): Potentially append to
8670         always_ld_library_path the path to libgcc_s.
8672 2016-03-10  Cesar Philippidis  <cesar@codesourcery.com>
8674         PR testsuite/70009
8675         * testsuite/libgomp.oacc-c-c++-common/vprop.c: Make test data signed.
8677 2016-03-09  Tom de Vries  <tom@codesourcery.com>
8679         * testsuite/libgomp.oacc-fortran/kernels-loop-2.f95: New test.
8680         * testsuite/libgomp.oacc-fortran/kernels-loop-data-2.f95: Same.
8681         * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit-2.f95:
8682         Same.
8683         * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit.f95: Same.
8684         * testsuite/libgomp.oacc-fortran/kernels-loop-data-update.f95: Same.
8685         * testsuite/libgomp.oacc-fortran/kernels-loop-data.f95: Same.
8686         * testsuite/libgomp.oacc-fortran/kernels-loop.f95: Same.
8688 2016-03-07  Martin Jambor  <mjambor@suse.cz>
8690         * testsuite/lib/libgomp.exp
8691         (check_effective_target_hsa_offloading_selected_nocache): New.
8692         (check_effective_target_hsa_offloading_selected): Likewise.
8693         * testsuite/libgomp.hsa.c/c.exp: Likewise.
8694         * testsuite/libgomp.hsa.c/alloca-1.c: Likewise.
8695         * testsuite/libgomp.hsa.c/bitfield-1.c: Likewise.
8696         * testsuite/libgomp.hsa.c/builtins-1.c: Likewise.
8697         * testsuite/libgomp.hsa.c/complex-1.c: Likewise.
8698         * testsuite/libgomp.hsa.c/formal-actual-args-1.c: Likewise.
8699         * testsuite/libgomp.hsa.c/function-call-1.c: Likewise.
8700         * testsuite/libgomp.hsa.c/get-level-1.c: Likewise.
8701         * testsuite/libgomp.hsa.c/gridify-1.c: Likewise.
8702         * testsuite/libgomp.hsa.c/gridify-2.c: Likewise.
8703         * testsuite/libgomp.hsa.c/gridify-3.c: Likewise.
8704         * testsuite/libgomp.hsa.c/gridify-4.c: Likewise.
8705         * testsuite/libgomp.hsa.c/memory-operations-1.c: Likewise.
8706         * testsuite/libgomp.hsa.c/pr69568.c: Likewise.
8707         * testsuite/libgomp.hsa.c/rotate-1.c: Likewise.
8708         * testsuite/libgomp.hsa.c/switch-1.c: Likewise.
8709         * testsuite/libgomp.hsa.c/switch-branch-1.c: Likewise.
8711 2016-03-07  Martin Jambor  <mjambor@suse.cz>
8713         * testsuite/libgomp.c/examples-4/async_target-2.c: Only run on
8714         non-shared memory accelerators.
8715         * testsuite/libgomp.c/examples-4/device-1.c: Likewise.
8716         * testsuite/libgomp.c/examples-4/target-5.c: Likewise.
8717         * testsuite/libgomp.c/examples-4/target_data-6.c: Likewise.
8718         * testsuite/libgomp.c/examples-4/target_data-7.c: Likewise.
8719         * testsuite/libgomp.fortran/examples-4/async_target-2.f90: Likewise.
8720         * testsuite/libgomp.fortran/examples-4/device-1.f90: Likewise.
8721         * testsuite/libgomp.fortran/examples-4/target-5.f90: Likewise.
8722         * testsuite/libgomp.fortran/examples-4/target_data-6.f90: Likewise.
8723         * testsuite/libgomp.fortran/examples-4/target_data-7.f90: Likewise.
8725 2016-03-07  Martin Jambor  <mjambor@suse.cz>
8727         * testsuite/lib/libgomp.exp (libgomp_init): Append -Wno-hsa to
8728         ALWAYS_CFLAGS.
8730 2016-03-02  Jakub Jelinek  <jakub@redhat.com>
8732         PR libgomp/69555
8733         * testsuite/libgomp.c++/pr69555-1.C: New test.
8734         * testsuite/libgomp.c++/pr69555-2.C: New test.
8736 2016-02-26  Keith McDaniel <k.allen.mcdaniel@gmail.com>
8737             Martin Jambor  <mjambor@suse.cz>
8739         * testsuite/lib/libgomp.exp
8740         (check_effective_target_offload_device_shared_as): New proc.
8741         * testsuite/libgomp.c++/declare_target-1.C: New test.
8743 2016-02-25  Ilya Verbin  <ilya.verbin@intel.com>
8745         PR driver/68463
8746         * testsuite/libgomp.oacc-c-c++-common/parallel-dims-2.c: Remove.
8748 2016-02-23  Thomas Schwinge  <thomas@codesourcery.com>
8750         * oacc-parallel.c (GOACC_parallel_keyed): Initialize dims.
8751         * plugin/plugin-nvptx.c (nvptx_exec): Provide default values for
8752         dims.
8753         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-2.c: Adjust to
8754         -ftree-parallelize-loops/-fopenacc changes.
8755         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-3.c: Likewise.
8756         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-2.c:
8757         Likewise.
8758         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-3.c:
8759         Likewise.
8760         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-4.c:
8761         Likewise.
8762         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-5.c:
8763         Likewise.
8764         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-6.c:
8765         Likewise.
8766         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq.c:
8767         Likewise.
8768         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-collapse.c:
8769         Likewise.
8770         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-g.c: Likewise.
8771         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-mod-not-zero.c:
8772         Likewise.
8773         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-n.c: Likewise.
8774         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-nest.c:
8775         Likewise.
8776         * testsuite/libgomp.oacc-c-c++-common/kernels-loop.c: Likewise.
8777         * testsuite/libgomp.oacc-c-c++-common/kernels-reduction.c:
8778         Likewise.
8780 2016-02-22  Cesar Philippidis  <cesar@codesourcery.com>
8782         * testsuite/libgomp.oacc-c-c++-common/vprop.c: New test.
8784 2016-02-19  Jakub Jelinek  <jakub@redhat.com>
8786         PR driver/69805
8787         * testsuite/libgomp.c/pr69805.c: New test.
8789 2016-02-16  Tom de Vries  <tom@codesourcery.com>
8791         PR lto/67709
8792         * testsuite/libgomp.fortran/declare-simd-4.f90: New test.
8794 2016-02-09  Tom de Vries  <tom@codesourcery.com>
8796         PR tree-optimization/69599
8797         * testsuite/libgomp.c/omp-nested-3.c: New test.
8798         * testsuite/libgomp.c/pr46032-2.c: New test.
8799         * testsuite/libgomp.oacc-c-c++-common/kernels-2.c: New test.
8800         * testsuite/libgomp.oacc-c-c++-common/parallel-2.c: New test.
8802 2016-02-09  Tom de Vries  <tom@codesourcery.com>
8804         PR lto/69707
8805         * testsuite/libgomp.oacc-c-c++-common/parallel-dims-2.c: New test.
8807 2016-02-02  Alexander Monakov  <amonakov@ispras.ru>
8809         * testsuite/libgomp.c/target-31.c: Fix testcase.
8811 2016-02-02  Alexander Monakov  <amonakov@ispras.ru>
8813         * testsuite/libgomp.c/examples-4/teams-3.c: Add missing reduction
8814         clause.
8815         * testsuite/libgomp.c/examples-4/teams-4.c: Likewise.
8816         * testsuite/libgomp.fortran/examples-4/teams-3.f90: Add missing
8817         reduction and map clauses.
8818         * testsuite/libgomp.fortran/examples-4/teams-4.f90: Likewise.
8820 2016-02-02  James Norris  <jnorris@codesourcery.com>
8822         * testsuite/libgomp.oacc-c-c++-common/declare-4.c: Fix clause.
8824 2016-02-02  Thomas Schwinge  <thomas@codesourcery.com>
8826         * libgomp.map (GOACC_2.0): Remove GOACC_host_data.
8827         * oacc-parallel.c (GOACC_host_data): Remove function definition.
8829         * testsuite/lib/libgomp.exp: Skip hsa offloading for OpenACC test
8830         cases.
8832         * plugin/configfrag.ac (HSA_KMT_LIB, HSA_KMT_LDFLAGS): New
8833         variables.
8834         * testsuite/libgomp-test-support.exp.in (hsa_runtime_lib)
8835         (hsa_kmt_lib): Set variables.
8836         * testsuite/lib/libgomp.exp (libgomp_init): Use them to amend
8837         always_ld_library_path.
8838         * Makefile.in: Regenerate.
8839         * configure: Likewise.
8840         * testsuite/Makefile.in: Likewise.
8842         * plugin/configfrag.ac (offload_additional_options)
8843         (offload_additional_lib_paths): Don't amend for hsa offloading.
8844         * configure: Regenerate.
8846         * plugin/configfrag.ac: Don't configure for offloading target if
8847         we don't build the corresponding plugin.
8848         * configure: Regenerate.
8850 2016-02-01  Nathan Sidwell  <nathan@codesourcery.com>
8852         * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: New.
8853         * testsuite/libgomp.oacc-fortran/routine-7.f90: Serialize loop.
8855 2016-01-26  Tom de Vries  <tom@codesourcery.com>
8857         PR tree-optimization/69110
8858         * testsuite/libgomp.c/pr69110.c: New test.
8860 2016-01-25  Richard Biener  <rguenther@suse.de>
8862         PR lto/69393
8863         * testsuite/libgomp.c++/pr69393.C: New testcase.
8865 2016-01-22  Ilya Verbin  <ilya.verbin@intel.com>
8867         * target.c (gomp_get_target_fn_addr): Allow host fallback if target
8868         function wasn't mapped to the device with non-shared memory.
8870 2016-01-20  Ilya Verbin  <ilya.verbin@intel.com>
8872         * task.c (gomp_create_target_task): Set firstprivate_copies to NULL.
8874 2016-01-19  Martin Jambor  <mjambor@suse.cz>
8875             Martin Liska  <mliska@suse.cz>
8877         * plugin/Makefrag.am: Add HSA plugin requirements.
8878         * plugin/configfrag.ac (HSA_RUNTIME_INCLUDE): New variable.
8879         (HSA_RUNTIME_LIB): Likewise.
8880         (HSA_RUNTIME_CPPFLAGS): Likewise.
8881         (HSA_RUNTIME_INCLUDE): New substitution.
8882         (HSA_RUNTIME_LIB): Likewise.
8883         (HSA_RUNTIME_LDFLAGS): Likewise.
8884         (hsa-runtime): New configure option.
8885         (hsa-runtime-include): Likewise.
8886         (hsa-runtime-lib): Likewise.
8887         (PLUGIN_HSA): New substitution variable.
8888         Fill HSA_RUNTIME_INCLUDE and HSA_RUNTIME_LIB according to the new
8889         configure options.
8890         (PLUGIN_HSA_CPPFLAGS): Likewise.
8891         (PLUGIN_HSA_LDFLAGS): Likewise.
8892         (PLUGIN_HSA_LIBS): Likewise.
8893         Check that we have access to HSA run-time.
8894         * libgomp-plugin.h (offload_target_type): New element
8895         OFFLOAD_TARGET_TYPE_HSA.
8896         * libgomp.h (gomp_target_task): New fields firstprivate_copies and
8897         args.
8898         (bool gomp_create_target_task): Updated.
8899         (gomp_device_descr): Extra parameter of run_func and async_run_func,
8900         new field can_run_func.
8901         * libgomp_g.h (GOMP_target_ext): Update prototype.
8902         * oacc-host.c (host_run): Added a new parameter args.
8903         * target.c (calculate_firstprivate_requirements): New function.
8904         (copy_firstprivate_data): Likewise.
8905         (gomp_target_fallback_firstprivate): Use them.
8906         (gomp_target_unshare_firstprivate): New function.
8907         (gomp_get_target_fn_addr): Allow returning NULL for shared memory
8908         devices.
8909         (GOMP_target): Do host fallback for all shared memory devices.  Do not
8910         pass any args to plugins.
8911         (GOMP_target_ext): Introduce device-specific argument parameter args.
8912         Allow host fallback if device shares memory.  Do not remap data if
8913         device has shared memory.
8914         (gomp_target_task_fn): Likewise.  Also treat shared memory devices
8915         like host fallback for mappings.
8916         (GOMP_target_data): Treat shared memory devices like host fallback.
8917         (GOMP_target_data_ext): Likewise.
8918         (GOMP_target_update): Likewise.
8919         (GOMP_target_update_ext): Likewise.  Also pass NULL as args to
8920         gomp_create_target_task.
8921         (GOMP_target_enter_exit_data): Likewise.
8922         (omp_target_alloc): Treat shared memory devices like host fallback.
8923         (omp_target_free): Likewise.
8924         (omp_target_is_present): Likewise.
8925         (omp_target_memcpy): Likewise.
8926         (omp_target_memcpy_rect): Likewise.
8927         (omp_target_associate_ptr): Likewise.
8928         (gomp_load_plugin_for_device): Also load can_run.
8929         * task.c (GOMP_PLUGIN_target_task_completion): Free
8930         firstprivate_copies.
8931         (gomp_create_target_task): Accept new argument args and store it to
8932         ttask.
8933         * plugin/plugin-hsa.c: New file.
8935 2016-01-18  Tom de Vries  <tom@codesourcery.com>
8937         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-2.c: New test.
8938         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-3.c: Same.
8939         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-2.c: Same.
8940         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-3.c: Same.
8941         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-4.c: Same.
8942         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-5.c: Same.
8943         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-6.c: Same.
8944         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq.c: Same.
8945         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-collapse.c: Same.
8946         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-2.c: Same.
8947         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-enter-exit-2.c:
8948         Same.
8949         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-enter-exit.c:
8950         Same.
8951         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-update.c: Same.
8952         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data.c: Same.
8953         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-g.c: Same.
8954         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-mod-not-zero.c: Same.
8955         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-n.c: Same.
8956         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-nest.c: Same.
8957         * testsuite/libgomp.oacc-c-c++-common/kernels-loop.c: Same.
8958         * testsuite/libgomp.oacc-c-c++-common/kernels-parallel-loop-data-enter-exit.c:
8959         Same.
8960         * testsuite/libgomp.oacc-c-c++-common/kernels-reduction.c: Same.
8962 2016-01-15  Jakub Jelinek  <jakub@redhat.com>
8964         * task.c (GOMP_PLUGIN_target_task_completion): Add missing return.
8966 2016-01-15  Cesar Philippidis  <cesar@codesourcery.com>
8968         * testsuite/libgomp.oacc-fortran/kernels-data.f90: New test.
8970 2016-01-12  James Norris  <jnorris@codesourcery.com>
8972         * libgomp.texi: Updates for OpenACC.
8974 2016-01-11  Alexander Monakov  <amonakov@ispras.ru>
8976         * plugin/plugin-nvptx.c (link_ptx): Do not set CU_JIT_TARGET.
8978 2016-01-07  H.J. Lu  <hongjiu.lu@intel.com>
8980         PR fortran/66680
8981         * testsuite/libgomp.fortran/pr66680.f90: New test.
8983 2016-01-07  Jakub Jelinek  <jakub@redhat.com>
8985         PR middle-end/68960
8986         * testsuite/libgomp.c/pr68960.c: New test.
8988 2016-01-06  Nathan Sidwell  <nathan@acm.org>
8990         * openacc.h (acc_on_device): Add routine pragma for C++ wrapper.
8991         * testsuite/libgomp.oacc-c-c++-common/acc-on-device-2.c: New.
8993 2016-01-04  Jakub Jelinek  <jakub@redhat.com>
8995         Update copyright years.
8997         * libgomp.texi: Bump @copying's copyright year.
8999 2015-12-31  Nathan Sidwell  <nathan@acm.org>
9001         * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c: Correct
9002         dg-additional-options syntax.
9003         * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c: Likewise.
9004         * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c: Likewise.
9005         * testsuite/libgomp.oacc-c-c++-common/routine-v-1.c: Likewise.
9006         * testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c: Likewise.
9007         * testsuite/libgomp.oacc-c-c++-common/routine-gwv-1.c: Likewise.
9008         * testsuite/libgomp.oacc-c-c++-common/routine-g-1.c: Likewise.
9009         * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c: Likewise.
9010         * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Likewise.
9011         * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c: Likewise.
9012         * testsuite/libgomp.oacc-c-c++-common/routine-wv-1.c: Likewise.
9013         * testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c: Likewise.
9014         * testsuite/libgomp.oacc-c-c++-common/loop-g-1.c: Likewise.
9015         * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c: Likewise.
9016         * testsuite/libgomp.oacc-c-c++-common/loop-red-wv-1.c: Likewise.
9017         * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c: Likewise.
9018         * testsuite/libgomp.oacc-c-c++-common/loop-g-2.c: Likewise.
9019         * testsuite/libgomp.oacc-c-c++-common/loop-red-g-1.c: Likewise.
9020         * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c: Likewise.
9022 2015-12-15  Ilya Verbin  <ilya.verbin@intel.com>
9024         * libgomp.h (REFCOUNT_LINK): Define.
9025         (struct splay_tree_key_s): Add link_key.
9026         * target.c (gomp_map_vars): Treat REFCOUNT_LINK objects as not mapped.
9027         Replace target address of the pointer with target address of newly
9028         mapped object in the splay tree.  Set link pointer on target to the
9029         device address of the mapped object.
9030         (gomp_unmap_vars): Restore target address of the pointer in the splay
9031         tree for REFCOUNT_LINK objects after unmapping.
9032         (gomp_load_image_to_device): Set refcount to REFCOUNT_LINK for "omp
9033         declare target link" objects.
9034         (gomp_unload_image_from_device): Replace j with i.  Force unmap of all
9035         "omp declare target link" objects, which were mapped for the image.
9036         (gomp_exit_data): Restore target address of the pointer in the splay
9037         tree for REFCOUNT_LINK objects after unmapping.
9038         * testsuite/libgomp.c/target-link-1.c: New file.
9040 2015-12-14  Ilya Verbin  <ilya.verbin@intel.com>
9042         * libgomp.h (gomp_device_state): New enum.
9043         (struct gomp_device_descr): Replace is_initialized with state.
9044         (gomp_fini_device): Remove declaration.
9045         * oacc-host.c (host_dispatch): Use state instead of is_initialized.
9046         * oacc-init.c (acc_init_1): Use state instead of is_initialized.
9047         (acc_shutdown_1): Likewise.  Inline gomp_fini_device.
9048         (acc_set_device_type): Use state instead of is_initialized.
9049         (acc_set_device_num): Likewise.
9050         * target.c (resolve_device): Use state instead of is_initialized.
9051         Do not initialize finalized device.
9052         (gomp_map_vars): Do nothing if device is finalized.
9053         (gomp_unmap_vars): Likewise.
9054         (gomp_update): Likewise.
9055         (GOMP_offload_register_ver): Use state instead of is_initialized.
9056         (GOMP_offload_unregister_ver): Likewise.
9057         (gomp_init_device): Likewise.
9058         (gomp_unload_device): Likewise.
9059         (gomp_fini_device): Remove.
9060         (gomp_get_target_fn_addr): Do nothing if device is finalized.
9061         (GOMP_target): Go to host fallback if device is finalized.
9062         (GOMP_target_ext): Likewise.
9063         (gomp_exit_data): Do nothing if device is finalized.
9064         (gomp_target_task_fn): Go to host fallback if device is finalized.
9065         (gomp_target_fini): New static function.
9066         (gomp_target_init): Use state instead of is_initialized.
9067         Call gomp_target_fini at exit.
9069 2015-12-09  Tom de Vries  <tom@codesourcery.com>
9071         PR tree-optimization/68716
9072         * testsuite/libgomp.c/omp-nested-2.c: New test.
9074 2015-12-02  Thomas Schwinge  <thomas@codesourcery.com>
9076         * testsuite/libgomp.oacc-c-c++-common/host_data-2.c: Restrict to
9077         target openacc_nvidia_accel_selected.
9078         * testsuite/libgomp.oacc-c-c++-common/host_data-4.c: Likewise.
9079         * testsuite/libgomp.oacc-c-c++-common/host_data-5.c: Likewise.
9080         * testsuite/libgomp.oacc-c-c++-common/host_data-3.c: Remove file.
9081         * testsuite/libgomp.oacc-c-c++-common/host_data-6.c: Remove file.
9083 2015-12-01  Julian Brown  <julian@codesourcery.com>
9084             James Norris  <James_Norris@mentor.com>
9086         * oacc-parallel.c (GOACC_host_data): New function.
9087         * libgomp.map (GOACC_host_data): Add to GOACC_2.0.1.
9088         * testsuite/libgomp.oacc-c-c++-common/host_data-1.c: New test.
9089         * testsuite/libgomp.oacc-c-c++-common/host_data-2.c: New test.
9090         * testsuite/libgomp.oacc-c-c++-common/host_data-3.c: New test.
9091         * testsuite/libgomp.oacc-c-c++-common/host_data-4.c: New test.
9092         * testsuite/libgomp.oacc-c-c++-common/host_data-5.c: New test.
9093         * testsuite/libgomp.oacc-c-c++-common/host_data-6.c: New test.
9095 2015-11-30  James Norris  <jnorris@codesourcery.com>
9096             Cesar Philippidis  <cesar@codesourcery.com>
9098         libgomp/
9099         * libgomp.oacc-fortran/routine-5.f90: New test.
9100         * libgomp.oacc-fortran/routine-7.f90: New test.
9101         * libgomp.oacc-fortran/routine-9.f90: New test.
9103 2015-11-30  Tom de Vries  <tom@codesourcery.com>
9105         PR tree-optimization/46032
9106         * testsuite/libgomp.c/pr46032.c: New test.
9108 2015-11-27  Jakub Jelinek  <jakub@redhat.com>
9110         PR libgomp/68579
9111         * task.c (gomp_task_run_post_handle_depend_hash): New forward decl.
9112         (gomp_create_target_task): Call it before freeing
9113         GOMP_TARGET_TASK_DATA tasks.
9115         PR c/63326
9116         * testsuite/libgomp.c/cancel-parallel-2.c (foo): Add semicolon
9117         in between case label and OpenMP standalone directives.
9118         * testsuite/libgomp.c++/cancel-parallel-2.C (foo): Likewise.
9120 2015-11-26  David Edelsohn  <dje.gcc@gmail.com>
9122         * configure: Regenerate.
9124 2015-11-26  Jakub Jelinek  <jakub@redhat.com>
9126         * testsuite/libgomp.c/target-35.c: New test.
9128 2015-11-22  James Norris  <jnorris@codesourcery.com>
9129             Cesar Philippidis  <cesar@codesourcery.com>
9131         * testsuite/libgomp.oacc-fortran/declare-1.f90: New test.
9132         * testsuite/libgomp.oacc-fortran/declare-2.f90: Likewise.
9133         * testsuite/libgomp.oacc-fortran/declare-3.f90: Likewise.
9134         * testsuite/libgomp.oacc-fortran/declare-4.f90: Likewise.
9135         * testsuite/libgomp.oacc-fortran/declare-5.f90: Likewise.
9137 2015-11-20  Jakub Jelinek  <jakub@redhat.com>
9139         PR middle-end/68221
9140         * testsuite/libgomp.c/reduction-11.c: Remove xfail.
9141         * testsuite/libgomp.c/reduction-12.c: Likewise.
9142         * testsuite/libgomp.c++/reduction-11.C: Likewise.
9143         * testsuite/libgomp.c++/reduction-12.C: Likewise.
9145 2015-11-19  Nathan Sidwell  <nathan@codesourcery.com>
9147         * libgomp.oacc-c-c++-common/reduction-dbl.c: New.
9148         * libgomp.oacc-c-c++-common/reduction-flt.c: New.
9149         * libgomp.oacc-c-c++-common/reduction-cplx-dbl.c: Use typedef.
9150         * libgomp.oacc-c-c++-common/reduction-cplx-flt.c: Use typedef.
9151         * libgomp.oacc-c-c++-common/reduction-2.c: Uncomment broken tests
9152         and fix.
9153         * libgomp.oacc-c-c++-common/reduction-3.c: Likewise.
9154         * libgomp.oacc-c-c++-common/reduction-4.c: Likewise.
9156 2015-11-18  Nathan Sidwell  <nathan@codesourcery.com>
9158         * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-flt.c: Add
9159         worker & gang cases.
9160         * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-dbl.c: Likewise.
9162 2015-11-17  Cesar Philippidis  <cesar@codesourcery.com>
9164         * config/nvptx/priority_queue.c: New file.
9166 2015-11-14  Jakub Jelinek  <jakub@redhat.com>
9168         * libgomp.texi: Update references from OpenMP 4.0 to OpenMP 4.5
9169         sections.
9171 2015-11-14  Jakub Jelinek  <jakub@redhat.com>
9172             Aldy Hernandez  <aldyh@redhat.com>
9173             Ilya Verbin  <ilya.verbin@intel.com>
9175         * ordered.c (gomp_doacross_init, GOMP_doacross_post,
9176         GOMP_doacross_wait, gomp_doacross_ull_init, GOMP_doacross_ull_post,
9177         GOMP_doacross_ull_wait): For GFS_GUIDED don't divide number of
9178         iterators or IV by chunk size.
9179         * parallel.c (gomp_resolve_num_threads): Don't assume that
9180         if thr->ts.team is non-NULL, then pool must be non-NULL.
9181         * libgomp-plugin.h (GOMP_PLUGIN_target_task_completion): Declare.
9182         * libgomp.map (GOMP_PLUGIN_1.1): New symbol version, export
9183         GOMP_PLUGIN_target_task_completion.
9184         * Makefile.am (libgomp_la_SOURCES): Add priority_queue.c.
9185         * Makefile.in: Regenerate.
9186         * libgomp.h: Shuffle prototypes and forward definitions around so
9187         priority queues can be defined.
9188         (enum gomp_task_kind): Add GOMP_TASK_ASYNC_RUNNING.
9189         (enum gomp_target_task_state): New enum.
9190         (struct gomp_target_task): Add state, tgt, task and team fields.
9191         (gomp_create_target_task): Change return type to bool, add
9192         state argument.
9193         (gomp_target_task_fn): Change return type to bool.
9194         (struct gomp_device_descr): Add async_run_func.
9195         (struct gomp_task): Remove children, next_child, prev_child,
9196         next_queue, prev_queue, next_taskgroup, prev_taskgroup.
9197         Add pnode field.
9198         (struct gomp_taskgroup): Remove children.
9199         Add taskgroup_queue.
9200         (struct gomp_team): Change task_queue type to a priority queue.
9201         (splay_compare): Define inline.
9202         (priority_queue_offset): New.
9203         (priority_node_to_task): New.
9204         (task_to_priority_node): New.
9205         * oacc-mem.c: Do not include splay-tree.h.
9206         * priority_queue.c: New file.
9207         * priority_queue.h: New file.
9208         * splay-tree.c: Do not include splay-tree.h.
9209         (splay_tree_foreach_internal): New.
9210         (splay_tree_foreach): New.
9211         * splay-tree.h: Become re-entrant if splay_tree_prefix is defined.
9212         (splay_tree_callback): Define typedef.
9213         * target.c (splay_compare): Move to libgomp.h.
9214         (GOMP_target): Don't adjust *thr in any way around running offloaded
9215         task.
9216         (GOMP_target_ext): Likewise.  Handle target nowait.
9217         (GOMP_target_update_ext, GOMP_target_enter_exit_data): Check
9218         return value from gomp_create_target_task, if false, fallthrough
9219         as if no dependencies exist.
9220         (gomp_target_task_fn): Change return type to bool, return true
9221         if the task should have another part scheduled later.  Handle
9222         target nowait.
9223         (gomp_load_plugin_for_device): Initialize async_run.
9224         * task.c (gomp_init_task): Initialize children_queue.
9225         (gomp_clear_parent_in_list): New.
9226         (gomp_clear_parent_in_tree): New.
9227         (gomp_clear_parent): Handle priorities.
9228         (GOMP_task): Likewise.
9229         (priority_queue_move_task_first,
9230         gomp_target_task_completion, GOMP_PLUGIN_target_task_completion):
9231         New functions.
9232         (gomp_create_target_task): Use priority queues.  Change return type
9233         to bool, add state argument, return false if for async
9234         {{enter,exit} data,update} constructs no dependencies need to be
9235         waited for, handle target nowait.  Set task->fn to NULL instead of
9236         gomp_target_task_fn.
9237         (verify_children_queue): Remove.
9238         (priority_list_upgrade_task): New.
9239         (priority_queue_upgrade_task): New.
9240         (verify_task_queue): Remove.
9241         (priority_list_downgrade_task): New.
9242         (priority_queue_downgrade_task): New.
9243         (gomp_task_run_pre): Use priority queues.
9244         Abstract code out to priority_queue_downgrade_task.
9245         (gomp_task_run_post_handle_dependers): Use priority queues.
9246         (gomp_task_run_post_remove_parent): Likewise.
9247         (gomp_task_run_post_remove_taskgroup): Likewise.
9248         (gomp_barrier_handle_tasks): Likewise.  Handle target nowait target
9249         tasks specially.
9250         (GOMP_taskwait): Likewise.
9251         (gomp_task_maybe_wait_for_dependencies): Likewise.  Abstract code to
9252         priority-queue_upgrade_task.
9253         (GOMP_taskgroup_start): Use priority queues.
9254         (GOMP_taskgroup_end): Likewise.  Handle target nowait target tasks
9255         specially.  If taskgroup is NULL, and thr->ts.level is 0, act as a
9256         barrier.
9257         * taskloop.c (GOMP_taskloop): Handle priorities.
9258         * team.c (gomp_new_team): Call priority_queue_init.
9259         (free_team): Call priority_queue_free.
9260         (gomp_free_thread): Call gomp_team_end if thr->ts.team is artificial
9261         team created for target nowait in implicit parallel region.
9262         (gomp_team_start): For nested check, test thr->ts.level instead of
9263         thr->ts.team != NULL.
9264         * testsuite/libgomp.c/doacross-3.c: New test.
9265         * testsuite/libgomp.c/ordered-5.c: New test.
9266         * testsuite/libgomp.c/priority.c: New test.
9267         * testsuite/libgomp.c/target-31.c: New test.
9268         * testsuite/libgomp.c/target-32.c: New test.
9269         * testsuite/libgomp.c/target-33.c: New test.
9270         * testsuite/libgomp.c/target-34.c: New test.
9272 2015-11-13  Nathan Sidwell  <nathan@codesourcery.com>
9274         * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: New.
9276         * testsuite/libgomp.oacc-c-c++-common/collapse-2.c: Sequential
9277         loop is sequential.
9279 2015-11-13  Nathan Sidwell  <nathan@codesourcery.com>
9281         * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-dbl.c: New.
9282         * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-flt.c: New.
9284 2015-11-12  James Norris  <jnorris@codesourcery.com>
9285             Joseph Myers  <joseph@codesourcery.com>
9287         * libgomp.map (GOACC_2.0.1): Export GOACC_declare.
9288         * oacc-parallel.c (GOACC_declare): New function.
9289         * testsuite/libgomp.oacc-c-c++-common/declare-1.c: New test.
9290         * testsuite/libgomp.oacc-c-c++-common/declare-2.c: Likewise.
9291         * testsuite/libgomp.oacc-c-c++-common/declare-4.c: Likewise.
9292         * testsuite/libgomp.oacc-c-c++-common/declare-5.c: Likewise.
9293         * testsuite/libgomp.oacc-c++/declare-1.C: Likewise.
9295 2015-11-12  Nathan Sidwell  <nathan@codesourcery.com>
9297         * testsuite/libgomp.oacc-c-c++-common/default-1.c: New.
9299 2015-11-1  Nathan Sidwell  <nathan@codesourcery.com>
9301         * testsuite/libgomp.oacc-c-c++-common/firstprivate-1.c: New.
9302         * testsuite/libgomp.oacc-c-c++-common/firstprivate-2.c: New.
9304 2015-11-09  Nathan Sidwell  <nathan@codesourcery.com>
9306         * testsuite/libgomp.oacc-c-c++-common/firstprivate-1.c: Remove
9307         inadvertent commit.
9309 2015-11-09  Nathan Sidwell  <nathan@codesourcery.com>
9311         * testsuite/libgomp.oacc-c-c++-common/routine-g-1.c: New.
9312         * testsuite/libgomp.oacc-c-c++-common/routine-gwv-1.c: New.
9313         * testsuite/libgomp.oacc-c-c++-common/routine-v-1.c: New.
9314         * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c: New.
9315         * testsuite/libgomp.oacc-c-c++-common/routine-wv-1.c: New.
9317 2015-11-06  Thomas Schwinge  <thomas@codesourcery.com>
9319         * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c: XFAIL.
9320         * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c: Likewise.
9322 2015-11-05  Jakub Jelinek  <jakub@redhat.com>
9323             Ilya Verbin  <ilya.verbin@intel.com>
9325         * libgomp_g.h (GOMP_loop_nonmonotonic_dynamic_next,
9326         GOMP_loop_nonmonotonic_dynamic_start,
9327         GOMP_loop_nonmonotonic_guided_next,
9328         GOMP_loop_nonmonotonic_guided_start,
9329         GOMP_loop_ull_nonmonotonic_dynamic_next,
9330         GOMP_loop_ull_nonmonotonic_dynamic_start,
9331         GOMP_loop_ull_nonmonotonic_guided_next,
9332         GOMP_loop_ull_nonmonotonic_guided_start,
9333         GOMP_parallel_loop_nonmonotonic_dynamic,
9334         GOMP_parallel_loop_nonmonotonic_guided): New prototypes.
9335         (GOMP_target_41): Renamed to ...
9336         (GOMP_target_ext): ... this.  Add num_teams and thread_limit
9337         arguments.
9338         (GOMP_target_data_41): Renamed to ...
9339         (GOMP_target_data_ext): ... this.
9340         (GOMP_target_update_41): Renamed to ...
9341         (GOMP_target_update_ext): ... this.
9342         * libgomp.map (GOMP_4.5): Export GOMP_target_ext,
9343         GOMP_target_data_ext and GOMP_target_update_ext instead of
9344         GOMP_target_41, GOMP_target_data_41 and GOMP_target_update_41.
9345         Export GOMP_loop_nonmonotonic_dynamic_next,
9346         GOMP_loop_nonmonotonic_dynamic_start,
9347         GOMP_loop_nonmonotonic_guided_next,
9348         GOMP_loop_nonmonotonic_guided_start,
9349         GOMP_loop_ull_nonmonotonic_dynamic_next,
9350         GOMP_loop_ull_nonmonotonic_dynamic_start,
9351         GOMP_loop_ull_nonmonotonic_guided_next,
9352         GOMP_loop_ull_nonmonotonic_guided_start,
9353         GOMP_parallel_loop_nonmonotonic_dynamic and
9354         GOMP_parallel_loop_nonmonotonic_guided.
9355         * loop.c (GOMP_parallel_loop_nonmonotonic_dynamic,
9356         GOMP_parallel_loop_nonmonotonic_guided,
9357         GOMP_loop_nonmonotonic_dynamic_start,
9358         GOMP_loop_nonmonotonic_guided_start,
9359         GOMP_loop_nonmonotonic_dynamic_next,
9360         GOMP_loop_nonmonotonic_guided_next): New aliases or functions.
9361         * loop_ull.c (GOMP_loop_ull_nonmonotonic_dynamic_start,
9362         GOMP_loop_ull_nonmonotonic_guided_start,
9363         GOMP_loop_ull_nonmonotonic_dynamic_next,
9364         GOMP_loop_ull_nonmonotonic_guided_next): Likewise.
9365         * target.c (gomp_map_0len_lookup, gomp_map_val): New inline
9366         functions.
9367         (gomp_map_vars): Handle GOMP_MAP_ALWAYS_POINTER.  For
9368         GOMP_MAP_ZERO_LEN_ARRAY_SECTION use gomp_map_0len_lookup.
9369         Use gomp_map_val function.
9370         (gomp_target_fallback_firstprivate): New static function.
9371         (GOMP_target_41): Renamed to ...
9372         (GOMP_target_ext): ... this.  Add num_teams and thread_limit
9373         arguments.  Move firstprivate fallback handling into a new
9374         function.
9375         (GOMP_target_data_41): Renamed to ...
9376         (GOMP_target_data_ext): ... this.
9377         (GOMP_target_update_41): Renamed to ...
9378         (GOMP_target_update_ext): ... this.
9379         (gomp_exit_data): For GOMP_MAP_*ZERO_LEN* use
9380         gomp_map_0len_lookup instead of gomp_map_lookup.
9381         (omp_target_is_present): Use gomp_map_0len_lookup instead of
9382         gomp_map_lookup.
9383         * testsuite/libgomp.c/target-28.c: Likewise.
9384         * testsuite/libgomp.c/monotonic-1.c: New test.
9385         * testsuite/libgomp.c/monotonic-2.c: New test.
9386         * testsuite/libgomp.c/nonmonotonic-1.c: New test.
9387         * testsuite/libgomp.c/nonmonotonic-2.c: New test.
9388         * testsuite/libgomp.c/pr66199-5.c: New test.
9389         * testsuite/libgomp.c/pr66199-6.c: New test.
9390         * testsuite/libgomp.c/pr66199-7.c: New test.
9391         * testsuite/libgomp.c/pr66199-8.c: New test.
9392         * testsuite/libgomp.c/pr66199-9.c: New test.
9393         * testsuite/libgomp.c/reduction-11.c: New test.
9394         * testsuite/libgomp.c/reduction-12.c: New test.
9395         * testsuite/libgomp.c/reduction-13.c: New test.
9396         * testsuite/libgomp.c/reduction-14.c: New test.
9397         * testsuite/libgomp.c/reduction-15.c: New test.
9398         * testsuite/libgomp.c/target-12.c (main): Adjust for
9399         omp_target_is_present change for one-past-last element.
9400         * testsuite/libgomp.c/target-17.c (foo): Drop tests where
9401         the same var is both mapped and privatized.
9402         * testsuite/libgomp.c/target-19.c (foo): Adjust for different
9403         handling of zero-length array sections.
9404         * testsuite/libgomp.c/target-28.c: New test.
9405         * testsuite/libgomp.c/target-29.c: New test.
9406         * testsuite/libgomp.c/target-30.c: New test.
9407         * testsuite/libgomp.c/target-teams-1.c: New test.
9408         * testsuite/libgomp.c++/member-6.C: New test.
9409         * testsuite/libgomp.c++/member-7.C: New test.
9410         * testsuite/libgomp.c++/monotonic-1.C: New test.
9411         * testsuite/libgomp.c++/monotonic-2.C: New test.
9412         * testsuite/libgomp.c++/nonmonotonic-1.C: New test.
9413         * testsuite/libgomp.c++/nonmonotonic-2.C: New test.
9414         * testsuite/libgomp.c++/pr66199-3.C: New test.
9415         * testsuite/libgomp.c++/pr66199-4.C: New test.
9416         * testsuite/libgomp.c++/pr66199-5.C: New test.
9417         * testsuite/libgomp.c++/pr66199-6.C: New test.
9418         * testsuite/libgomp.c++/pr66199-7.C: New test.
9419         * testsuite/libgomp.c++/pr66199-8.C: New test.
9420         * testsuite/libgomp.c++/pr66199-9.C: New test.
9421         * testsuite/libgomp.c++/reduction-11.C: New test.
9422         * testsuite/libgomp.c++/reduction-12.C: New test.
9423         * testsuite/libgomp.c++/target-13.C: New test.
9424         * testsuite/libgomp.c++/target-14.C: New test.
9425         * testsuite/libgomp.c++/target-15.C: New test.
9426         * testsuite/libgomp.c++/target-16.C: New test.
9427         * testsuite/libgomp.c++/target-17.C: New test.
9428         * testsuite/libgomp.c++/target-18.C: New test.
9429         * testsuite/libgomp.c++/target-19.C: New test.
9431 2015-11-04  Nathan Sidwell  <nathan@codesourcery.com>
9433         * testsuite/libgomp.oacc-fortran/reduction-1.f90: Fix dimensions
9434         and reduction copy.
9435         * testsuite/libgomp.oacc-fortran/reduction-2.f90: Likewise.
9436         * testsuite/libgomp.oacc-fortran/reduction-3.f90: Likewise.
9437         * testsuite/libgomp.oacc-fortran/reduction-4.f90: Likewise.
9438         * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
9439         * testsuite/libgomp.oacc-c-c++-common/par-reduction-1.c: Likewise.
9440         * testsuite/libgomp.oacc-c-c++-common/reduction-3.c: Likewise.
9441         * testsuite/libgomp.oacc-c-c++-common/collapse-2.c: Likewise.
9442         * testsuite/libgomp.oacc-c-c++-common/par-reduction-2.c: Likewise.
9443         * testsuite/libgomp.oacc-c-c++-common/reduction-4.c: Likewise.
9444         * testsuite/libgomp.oacc-c-c++-common/reduction-initial-1.c: Likewise.
9445         * testsuite/libgomp.oacc-c-c++-common/reduction-1.c: Likewise.
9446         * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Likewise.
9447         * testsuite/libgomp.oacc-c-c++-common/reduction-2.c: Likewise.
9448         * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: New.
9450 2015-11-04  Nathan Sidwell  <nathan@codesourcery.com>
9452         * libgomp.oacc-c-c++-common/loop-red-g-1.c: New.
9453         * libgomp.oacc-c-c++-common/loop-red-gwv-1.c: New.
9454         * libgomp.oacc-c-c++-common/loop-red-v-1.c: New.
9455         * libgomp.oacc-c-c++-common/loop-red-v-2.c: New.
9456         * libgomp.oacc-c-c++-common/loop-red-w-1.c: New.
9457         * libgomp.oacc-c-c++-common/loop-red-w-2.c: New.
9458         * libgomp.oacc-c-c++-common/loop-red-wv-1.c: New.
9459         * libgomp.oacc-fortran/reduction-5.f90: Avoid reference var.
9461 2015-11-03  Nathan Sidwell  <nathan@codesourcery.com>
9463         * libgomp.h (struct acc_dispatch_t): Remove args from exec_func.
9464         * plugin/plugin-nvptx.c (nvptx_exec): Remove sizes & kinds arg.
9465         (GOMP_OFFLOAD_openacc_parallel): Likewise.
9466         * oacc-host.c (host_openacc_exec): Likewise.
9467         * oacc-parallel.c (GOACC_parallel_keyed): Adjust exec_func call.
9469 2015-11-03  Julian Brown  <julian@codesourcery.com>
9470             Thomas Schwinge  <thomas@codesourcery.com>
9472         * testsuite/libgomp.oacc-c-c++-common/par-reduction-1.c: New file.
9473         * testsuite/libgomp.oacc-c-c++-common/par-reduction-2.c: Likewise.
9474         * testsuite/libgomp.oacc-c-c++-common/worker-single-1a.c:
9475         Likewise.
9476         * testsuite/libgomp.oacc-c-c++-common/worker-single-4.c: Likewise.
9477         * testsuite/libgomp.oacc-c-c++-common/worker-single-6.c: Likewise.
9479 2015-11-03  James Norris  <jnorris@codesourcery.com>
9481         * testsuite/libgomp.oacc-c-c++-common/atomic_capture-1.c: New
9482         file.
9483         * testsuite/libgomp.oacc-c-c++-common/atomic_capture-2.c:
9484         Likewise.
9485         * testsuite/libgomp.oacc-c-c++-common/atomic_rw-1.c: Likewise.
9486         * testsuite/libgomp.oacc-c-c++-common/atomic_update-1.c: Likewise.
9487         * testsuite/libgomp.oacc-fortran/atomic_capture-1.f90: Likewise.
9488         * testsuite/libgomp.oacc-fortran/atomic_rw-1.f90: New file.
9489         * testsuite/libgomp.oacc-fortran/atomic_update-1.f90: Likewise.
9491 2015-10-29  Nathan Sidwell  <nathan@codesourcery.com>
9493         * openacc.h (enum acc_device_t): Reformat. Ensure layout
9494         compatibility.
9495         (enum acc_async_t): Reformat.
9496         (acc_on_device): Declare compatible with builtin and provide C++
9497         wrapper.
9498         * testsuite/libgomp.oacc-c-c++-common/acc-on-device.c: New.
9500 2015-10-29  Thomas Schwinge  <thomas@codesourcery.com>
9501             Cesar Philippidis  <cesar@codesourcery.com>
9503         * testsuite/libgomp.oacc-c-c++-common/combdir-1.c: Rename to...
9504         * testsuite/libgomp.oacc-c-c++-common/combined-directives-1.c:
9505         ... this.  Add a description of the test at the top of the file.
9506         * testsuite/libgomp.oacc-fortran/combdir-1.f90: Rename file to...
9507         * testsuite/libgomp.oacc-fortran/combined-directives-1.f90:
9508         ... this.  Add a description of the test at the top of the file.
9510 2015-10-28  Nathan Sidwell  <nathan@codesourcery.com>
9512         * testsuite/libgomp.oacc-c-c++-common/loop-g-1.c: New.
9513         * testsuite/libgomp.oacc-c-c++-common/loop-g-2.c: New.
9514         * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c: New.
9515         * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c: New.
9516         * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c: New.
9517         * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c: New.
9519 2015-10-27  Nathan Sidwell  <nathan@codesourcery.com>
9521         * plugin/plugin-nvptx.c (nvptx_exec): Remove check on compute
9522         dimensions.
9524 2015-10-27  Thomas Schwinge  <thomas@codesourcery.com>
9526         PR testsuite/68063
9527         * testsuite/libgomp.c++/member-1.C (A::m1): Add missing private clause.
9529 2015-10-27  James Norris  <jnorris@codesourcery.com>
9531         * testsuite/libgomp.oacc-c-c++-common/combdir-1.c: New file.
9532         * testsuite/libgomp.oacc-fortran/combdir-1.f90: Likewise.
9534 2015-10-26  Thomas Schwinge  <thomas@codesourcery.com>
9536         * testsuite/libgomp.oacc-c-c++-common/abort-1.c: Print to stderr.
9537         * testsuite/libgomp.oacc-c-c++-common/abort-3.c: Likewise.
9539         * testsuite/libgomp.oacc-c-c++-common/lib-1.c: Remove explicit
9540         acc_device_nvidia usage.
9541         * testsuite/libgomp.oacc-c-c++-common/lib-10.c: Likewise.
9542         * testsuite/libgomp.oacc-c-c++-common/lib-2.c: Likewise.
9543         * testsuite/libgomp.oacc-c-c++-common/lib-9.c: Likewise.
9545         * oacc-init.c (acc_shutdown): Call gomp_init_targets_once.
9546         * testsuite/libgomp.oacc-c-c++-common/lib-8.c: New file.
9548         PR libgomp/66518
9549         * testsuite/libgomp.oacc-c-c++-common/lib-3.c: Resolve XFAIL.
9551         PR libgomp/65437
9552         PR libgomp/66518
9553         * oacc-mem.c (update_dev_host): Call goacc_lazy_initialize.
9554         * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Remove XFAIL.
9556 2015-10-23  Tom de Vries  <tom@codesourcery.com>
9558         PR testsuite/68063
9559         * testsuite/libgomp.c++/member-2.C (A::m1): Add missing private clause.
9561 2015-10-20  Nathan Sidwell  <nathan@codesourcery.com>
9563         * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Set sane
9564         vector_length.
9565         * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
9567 2015-10-14  Ilya Verbin  <ilya.verbin@intel.com>
9568             Aleksander Ivanushenko  <aleksander.ivanushenko@intel.com>
9570         * target.c (gomp_map_vars): Initialize tgt->tgt_start and tgt->tgt_end
9571         to 0 when mapnum is 0.
9573 2015-10-14  Sebastian Huber  <sebastian.huber@embedded-brains.de>
9575         * fortran.c (omp_get_place_proc_ids_, omp_get_partition_place_nums_):
9576         Cast to int from int32_t.
9578 2015-10-13  Jakub Jelinek  <jakub@redhat.com>
9579             Aldy Hernandez  <aldyh@redhat.com>
9580             Ilya Verbin  <ilya.verbin@intel.com>
9582         * config/linux/affinity.c (omp_get_place_num_procs,
9583         omp_get_place_proc_ids, gomp_get_place_proc_ids_8): New functions.
9584         * config/linux/doacross.h: New file.
9585         * config/posix/affinity.c (omp_get_place_num_procs,
9586         omp_get_place_proc_ids, gomp_get_place_proc_ids_8): New functions.
9587         * config/posix/doacross.h: New file.
9588         * env.c: Include gomp-constants.h.
9589         (struct gomp_task_icv): Rename run_sched_modifier to
9590         run_sched_chunk_size.
9591         (gomp_max_task_priority_var): New variable.
9592         (parse_schedule): Rename run_sched_modifier to run_sched_chunk_size.
9593         (handle_omp_display_env): Change _OPENMP value from 201307 to
9594         201511.  Print OMP_MAX_TASK_PRIORITY.
9595         (initialize_env): Parse OMP_MAX_TASK_PRIORITY.
9596         (omp_set_schedule, omp_get_schedule): Rename modifier argument to
9597         chunk_size and run_sched_modifier to run_sched_chunk_size.
9598         (omp_get_max_task_priority, omp_get_initial_device,
9599         omp_get_num_places, omp_get_place_num, omp_get_partition_num_places,
9600         omp_get_partition_place_nums): New functions.
9601         * fortran.c (omp_set_schedule_, omp_set_schedule_8_,
9602         omp_get_schedule_, omp_get_schedule_8_): Rename modifier argument
9603         to chunk_size.
9604         (omp_get_num_places_, omp_get_place_num_procs_,
9605         omp_get_place_num_procs_8_, omp_get_place_proc_ids_,
9606         omp_get_place_proc_ids_8_, omp_get_place_num_,
9607         omp_get_partition_num_places_, omp_get_partition_place_nums_,
9608         omp_get_partition_place_nums_8_, omp_get_initial_device_,
9609         omp_get_max_task_priority_): New functions.
9610         * libgomp_g.h (GOMP_loop_doacross_static_start,
9611         GOMP_loop_doacross_dynamic_start, GOMP_loop_doacross_guided_start,
9612         GOMP_loop_doacross_runtime_start, GOMP_loop_ull_doacross_static_start,
9613         GOMP_loop_ull_doacross_dynamic_start,
9614         GOMP_loop_ull_doacross_guided_start,
9615         GOMP_loop_ull_doacross_runtime_start, GOMP_doacross_post,
9616         GOMP_doacross_wait, GOMP_doacross_ull_post, GOMP_doacross_wait,
9617         GOMP_taskloop, GOMP_taskloop_ull, GOMP_target_41,
9618         GOMP_target_data_41, GOMP_target_update_41,
9619         GOMP_target_enter_exit_data): New prototypes.
9620         (GOMP_task): Add prototype argument.
9621         * libgomp.h (_LIBGOMP_CHECKING_): Define to 0 if not yet defined.
9622         (struct gomp_doacross_work_share): New type.
9623         (struct gomp_work_share): Add doacross field.
9624         (struct gomp_task_icv): Rename run_sched_modifier to
9625         run_sched_chunk_size.
9626         (enum gomp_task_kind): Rename GOMP_TASK_IFFALSE to
9627         GOMP_TASK_UNDEFERRED.  Add comments.
9628         (struct gomp_task_depend_entry): Add comments.
9629         (struct gomp_task): Likewise.
9630         (struct gomp_taskgroup): Likewise.
9631         (struct gomp_target_task): New type.
9632         (struct gomp_team): Add comment.
9633         (gomp_get_place_proc_ids_8, gomp_doacross_init,
9634         gomp_doacross_ull_init, gomp_task_maybe_wait_for_dependencies,
9635         gomp_create_target_task, gomp_target_task_fn): New prototypes.
9636         (struct target_var_desc): New type.
9637         (struct target_mem_desc): Adjust comment.  Use struct
9638         target_var_desc instead of splay_tree_key for list.
9639         (REFCOUNT_INFINITY): Define.
9640         (struct splay_tree_key_s): Remove copy_from field.
9641         (struct gomp_device_descr): Add dev2dev_func field.
9642         (enum gomp_map_vars_kind): New enum.
9643         (gomp_map_vars): Add one argument.
9644         * libgomp.map (OMP_4.5): Export omp_get_max_task_priority,
9645         omp_get_max_task_priority_, omp_get_num_places, omp_get_num_places_,
9646         omp_get_place_num_procs, omp_get_place_num_procs_,
9647         omp_get_place_num_procs_8_, omp_get_place_proc_ids,
9648         omp_get_place_proc_ids_, omp_get_place_proc_ids_8_, omp_get_place_num,
9649         omp_get_place_num_, omp_get_partition_num_places,
9650         omp_get_partition_num_places_, omp_get_partition_place_nums,
9651         omp_get_partition_place_nums_, omp_get_partition_place_nums_8_,
9652         omp_get_initial_device, omp_get_initial_device_, omp_target_alloc,
9653         omp_target_free, omp_target_is_present, omp_target_memcpy,
9654         omp_target_memcpy_rect, omp_target_associate_ptr and
9655         omp_target_disassociate_ptr.
9656         (GOMP_4.0.2): Renamed to ...
9657         (GOMP_4.5): ... this.  Export GOMP_target_41, GOMP_target_data_41,
9658         GOMP_target_update_41, GOMP_target_enter_exit_data, GOMP_taskloop,
9659         GOMP_taskloop_ull, GOMP_loop_doacross_dynamic_start,
9660         GOMP_loop_doacross_guided_start, GOMP_loop_doacross_runtime_start,
9661         GOMP_loop_doacross_static_start, GOMP_doacross_post,
9662         GOMP_doacross_wait, GOMP_loop_ull_doacross_dynamic_start,
9663         GOMP_loop_ull_doacross_guided_start,
9664         GOMP_loop_ull_doacross_runtime_start,
9665         GOMP_loop_ull_doacross_static_start, GOMP_doacross_ull_post and
9666         GOMP_doacross_ull_wait.
9667         * libgomp.texi: Document omp_get_max_task_priority.
9668         Rename modifier argument to chunk_size for omp_set_schedule and
9669         omp_get_schedule.  Document OMP_MAX_TASK_PRIORITY env var.
9670         * loop.c (GOMP_loop_runtime_start): Adjust for run_sched_modifier
9671         to run_sched_chunk_size renaming.
9672         (GOMP_loop_ordered_runtime_start): Likewise.
9673         (gomp_loop_doacross_static_start, gomp_loop_doacross_dynamic_start,
9674         gomp_loop_doacross_guided_start, GOMP_loop_doacross_runtime_start,
9675         GOMP_parallel_loop_runtime_start): New functions.
9676         (GOMP_parallel_loop_runtime): Adjust for run_sched_modifier
9677         to run_sched_chunk_size renaming.
9678         (GOMP_loop_doacross_static_start, GOMP_loop_doacross_dynamic_start,
9679         GOMP_loop_doacross_guided_start): New functions or aliases.
9680         * loop_ull.c (GOMP_loop_ull_runtime_start): Adjust for
9681         run_sched_modifier to run_sched_chunk_size renaming.
9682         (GOMP_loop_ull_ordered_runtime_start): Likewise.
9683         (gomp_loop_ull_doacross_static_start,
9684         gomp_loop_ull_doacross_dynamic_start,
9685         gomp_loop_ull_doacross_guided_start,
9686         GOMP_loop_ull_doacross_runtime_start): New functions.
9687         (GOMP_loop_ull_doacross_static_start,
9688         GOMP_loop_ull_doacross_dynamic_start,
9689         GOMP_loop_ull_doacross_guided_start): New functions or aliases.
9690         * oacc-mem.c (acc_map_data, present_create_copy,
9691         gomp_acc_insert_pointer): Pass GOMP_MAP_VARS_OPENACC instead of false
9692         to gomp_map_vars.
9693         (gomp_acc_remove_pointer): Use copy_from from target_var_desc.
9694         * oacc-parallel.c (GOACC_data_start): Pass GOMP_MAP_VARS_OPENACC
9695         instead of false to gomp_map_vars.
9696         (GOACC_parallel_keyed): Likewise.  Use copy_from from target_var_desc.
9697         * omp.h.in (omp_lock_hint_t): New type.
9698         (omp_init_lock_with_hint, omp_init_nest_lock_with_hint,
9699         omp_get_num_places, omp_get_place_num_procs, omp_get_place_proc_ids,
9700         omp_get_place_num, omp_get_partition_num_places,
9701         omp_get_partition_place_nums, omp_get_initial_device,
9702         omp_get_max_task_priority, omp_target_alloc, omp_target_free,
9703         omp_target_is_present, omp_target_memcpy, omp_target_memcpy_rect,
9704         omp_target_associate_ptr, omp_target_disassociate_ptr): New
9705         prototypes.
9706         * omp_lib.f90.in (omp_lock_hint_kind): New parameter.
9707         (omp_lock_hint_none, omp_lock_hint_uncontended,
9708         omp_lock_hint_contended, omp_lock_hint_nonspeculative,
9709         omp_lock_hint_speculative): New parameters.
9710         (omp_init_lock_with_hint, omp_init_nest_lock_with_hint,
9711         omp_get_num_places, omp_get_place_num_procs, omp_get_place_proc_ids,
9712         omp_get_place_num, omp_get_partition_num_places,
9713         omp_get_partition_place_nums, omp_get_initial_device,
9714         omp_get_max_task_priority): New interfaces.
9715         (omp_set_schedule, omp_get_schedule): Rename modifier argument
9716         to chunk_size.
9717         * omp_lib.h.in (omp_lock_hint_kind): New parameter.
9718         (omp_lock_hint_none, omp_lock_hint_uncontended,
9719         omp_lock_hint_contended, omp_lock_hint_nonspeculative,
9720         omp_lock_hint_speculative): New parameters.
9721         (omp_init_lock_with_hint, omp_init_nest_lock_with_hint,
9722         omp_get_num_places, omp_get_place_num_procs, omp_get_place_proc_ids,
9723         omp_get_place_num, omp_get_partition_num_places,
9724         omp_get_partition_place_nums, omp_get_initial_device,
9725         omp_get_max_task_priority): New functions and subroutines.
9726         * ordered.c: Include stdarg.h and string.h.
9727         (MAX_COLLAPSED_BITS): Define.
9728         (gomp_doacross_init, GOMP_doacross_post, GOMP_doacross_wait,
9729         gomp_doacross_ull_init, GOMP_doacross_ull_post,
9730         GOMP_doacross_ull_wait): New functions.
9731         * target.c: Include errno.h.
9732         (resolve_device): If device is not initialized, call
9733         gomp_init_device on it.
9734         (gomp_map_lookup): New function.
9735         (gomp_map_vars_existing): Add tgt_var argument, fill it in.
9736         Don't bump refcount if REFCOUNT_INFINITY.  Handle
9737         GOMP_MAP_ALWAYS_TO_P.
9738         (get_kind): Rename is_openacc argument to short_mapkind.
9739         (gomp_map_pointer): Use gomp_map_lookup.
9740         (gomp_map_fields_existing): New function.
9741         (gomp_map_vars): Rename is_openacc argument to short_mapkind
9742         and is_target to pragma_kind.  Handle GOMP_MAP_VARS_ENTER_DATA,
9743         handle GOMP_MAP_FIRSTPRIVATE_INT, GOMP_MAP_STRUCT,
9744         GOMP_MAP_USE_DEVICE_PTR, GOMP_MAP_ZERO_LEN_ARRAY_SECTION.
9745         Adjust for tgt->list changed type and copy_from living in there.
9746         (gomp_copy_from_async): Adjust for tgt->list changed type and
9747         copy_from living in there.
9748         (gomp_unmap_vars): Likewise.
9749         (gomp_update): Likewise.  Rename is_openacc argument to
9750         short_mapkind.  Don't fail if object is not mapped.
9751         (gomp_load_image_to_device): Initialize refcount to
9752         REFCOUNT_INFINITY.
9753         (gomp_target_fallback): New function.
9754         (gomp_get_target_fn_addr): Likewise.
9755         (GOMP_target): Adjust gomp_map_vars caller, use
9756         gomp_get_target_fn_addr and gomp_target_fallback.
9757         (GOMP_target_41): New function.
9758         (gomp_target_data_fallback): New function.
9759         (GOMP_target_data): Use it, adjust gomp_map_vars caller.
9760         (GOMP_target_data_41): New function.
9761         (GOMP_target_update): Adjust gomp_update caller.
9762         (GOMP_target_update_41): New function.
9763         (gomp_exit_data, GOMP_target_enter_exit_data,
9764         gomp_target_task_fn, omp_target_alloc, omp_target_free,
9765         omp_target_is_present, omp_target_memcpy,
9766         omp_target_memcpy_rect_worker, omp_target_memcpy_rect,
9767         omp_target_associate_ptr, omp_target_disassociate_ptr,
9768         gomp_load_plugin_for_device): New functions.
9769         * task.c: Include gomp-constants.h.  Include taskloop.c
9770         twice to get GOMP_taskloop and GOMP_taskloop_ull definitions.
9771         (gomp_task_handle_depend): New function.
9772         (GOMP_task): Use it.  Add priority argument.  Use
9773         gomp-constant.h constants instead of hardcoded numbers.
9774         Rename GOMP_TASK_IFFALSE to GOMP_TASK_UNDEFERRED.
9775         (gomp_create_target_task): New function.
9776         (verify_children_queue, verify_taskgroup_queue,
9777         verify_task_queue): New functions.
9778         (gomp_task_run_pre): Call verify_*_queue functions.
9779         If an upcoming tied task is about to leave the sibling or
9780         taskgroup queues in an invalid state, adjust appropriately.
9781         Remove taskgroup argument.  Add comments.
9782         (gomp_task_run_post_handle_dependers): Add comments.
9783         (gomp_task_run_post_remove_parent): Likewise.
9784         (gomp_barrier_handle_tasks): Adjust gomp_task_run_pre caller.
9785         (GOMP_taskwait): Likewise.  Add comments.
9786         (gomp_task_maybe_wait_for_dependencies): Fix scheduling
9787         problem such that the first non parent_depends_on task does not
9788         end up at the end of the children queue.
9789         (GOMP_taskgroup_start): Rename GOMP_TASK_IFFALSE to
9790         GOMP_TASK_UNDEFERRED.
9791         (GOMP_taskgroup_end): Adjust gomp_task_run_pre caller.
9792         * taskloop.c: New file.
9793         * testsuite/lib/libgomp.exp
9794         (check_effective_target_offload_device_nonshared_as): New proc.
9795         * testsuite/libgomp.c/affinity-2.c: New test.
9796         * testsuite/libgomp.c/doacross-1.c: New test.
9797         * testsuite/libgomp.c/doacross-2.c: New test.
9798         * testsuite/libgomp.c/examples-4/declare_target-1.c (fib_wrapper):
9799         Add map clause to target.
9800         * testsuite/libgomp.c/examples-4/declare_target-4.c (accum): Likewise.
9801         * testsuite/libgomp.c/examples-4/declare_target-5.c (accum): Likewise.
9802         * testsuite/libgomp.c/examples-4/device-1.c (main): Likewise.
9803         * testsuite/libgomp.c/examples-4/device-3.c (main): Likewise.
9804         * testsuite/libgomp.c/examples-4/target_data-3.c (gramSchmidt):
9805         Likewise.
9806         * testsuite/libgomp.c/examples-4/teams-2.c (dotprod): Likewise.
9807         * testsuite/libgomp.c/examples-4/teams-3.c (dotprod): Likewise.
9808         * testsuite/libgomp.c/examples-4/teams-4.c (dotprod): Likewise.
9809         * testsuite/libgomp.c/for-2.h (OMPTGT, OMPTO, OMPFROM): Define if
9810         not defined.  Use those where needed.
9811         * testsuite/libgomp.c/for-4.c: New test.
9812         * testsuite/libgomp.c/for-5.c: New test.
9813         * testsuite/libgomp.c/for-6.c: New test.
9814         * testsuite/libgomp.c/linear-1.c: New test.
9815         * testsuite/libgomp.c/ordered-4.c: New test.
9816         * testsuite/libgomp.c/pr66199-2.c (f2): Adjust for linear clause
9817         only allowed on the loop iterator.
9818         * testsuite/libgomp.c/pr66199-3.c: New test.
9819         * testsuite/libgomp.c/pr66199-4.c: New test.
9820         * testsuite/libgomp.c/reduction-7.c: New test.
9821         * testsuite/libgomp.c/reduction-8.c: New test.
9822         * testsuite/libgomp.c/reduction-9.c: New test.
9823         * testsuite/libgomp.c/reduction-10.c: New test.
9824         * testsuite/libgomp.c/target-1.c (fn2, fn3, fn4): Add
9825         map(tofrom:s).
9826         * testsuite/libgomp.c/target-2.c (fn2, fn3, fn4): Likewise.
9827         * testsuite/libgomp.c/target-7.c (foo): Add map(h) where needed.
9828         * testsuite/libgomp.c/target-11.c: New test.
9829         * testsuite/libgomp.c/target-12.c: New test.
9830         * testsuite/libgomp.c/target-13.c: New test.
9831         * testsuite/libgomp.c/target-14.c: New test.
9832         * testsuite/libgomp.c/target-15.c: New test.
9833         * testsuite/libgomp.c/target-16.c: New test.
9834         * testsuite/libgomp.c/target-17.c: New test.
9835         * testsuite/libgomp.c/target-18.c: New test.
9836         * testsuite/libgomp.c/target-19.c: New test.
9837         * testsuite/libgomp.c/target-20.c: New test.
9838         * testsuite/libgomp.c/target-21.c: New test.
9839         * testsuite/libgomp.c/target-22.c: New test.
9840         * testsuite/libgomp.c/target-23.c: New test.
9841         * testsuite/libgomp.c/target-24.c: New test.
9842         * testsuite/libgomp.c/target-25.c: New test.
9843         * testsuite/libgomp.c/target-26.c: New test.
9844         * testsuite/libgomp.c/target-27.c: New test.
9845         * testsuite/libgomp.c/taskloop-1.c: New test.
9846         * testsuite/libgomp.c/taskloop-2.c: New test.
9847         * testsuite/libgomp.c/taskloop-3.c: New test.
9848         * testsuite/libgomp.c/taskloop-4.c: New test.
9849         * testsuite/libgomp.c++/ctor-13.C: New test.
9850         * testsuite/libgomp.c++/doacross-1.C: New test.
9851         * testsuite/libgomp.c++/examples-4/declare_target-2.C:
9852         Replace offload_device with offload_device_nonshared_as.
9853         * testsuite/libgomp.c++/for-12.C: New test.
9854         * testsuite/libgomp.c++/for-13.C: New test.
9855         * testsuite/libgomp.c++/for-14.C: New test.
9856         * testsuite/libgomp.c++/linear-1.C: New test.
9857         * testsuite/libgomp.c++/member-1.C: New test.
9858         * testsuite/libgomp.c++/member-2.C: New test.
9859         * testsuite/libgomp.c++/member-3.C: New test.
9860         * testsuite/libgomp.c++/member-4.C: New test.
9861         * testsuite/libgomp.c++/member-5.C: New test.
9862         * testsuite/libgomp.c++/ordered-1.C: New test.
9863         * testsuite/libgomp.c++/reduction-5.C: New test.
9864         * testsuite/libgomp.c++/reduction-6.C: New test.
9865         * testsuite/libgomp.c++/reduction-7.C: New test.
9866         * testsuite/libgomp.c++/reduction-8.C: New test.
9867         * testsuite/libgomp.c++/reduction-9.C: New test.
9868         * testsuite/libgomp.c++/reduction-10.C: New test.
9869         * testsuite/libgomp.c++/reference-1.C: New test.
9870         * testsuite/libgomp.c++/simd14.C: New test.
9871         * testsuite/libgomp.c++/target-2.C (fn2): Add map(tofrom: s) clause.
9872         * testsuite/libgomp.c++/target-5.C: New test.
9873         * testsuite/libgomp.c++/target-6.C: New test.
9874         * testsuite/libgomp.c++/target-7.C: New test.
9875         * testsuite/libgomp.c++/target-8.C: New test.
9876         * testsuite/libgomp.c++/target-9.C: New test.
9877         * testsuite/libgomp.c++/target-10.C: New test.
9878         * testsuite/libgomp.c++/target-11.C: New test.
9879         * testsuite/libgomp.c++/target-12.C: New test.
9880         * testsuite/libgomp.c++/taskloop-1.C: New test.
9881         * testsuite/libgomp.c++/taskloop-2.C: New test.
9882         * testsuite/libgomp.c++/taskloop-3.C: New test.
9883         * testsuite/libgomp.c++/taskloop-4.C: New test.
9884         * testsuite/libgomp.c++/taskloop-5.C: New test.
9885         * testsuite/libgomp.c++/taskloop-6.C: New test.
9886         * testsuite/libgomp.c++/taskloop-7.C: New test.
9887         * testsuite/libgomp.c++/taskloop-8.C: New test.
9888         * testsuite/libgomp.c++/taskloop-9.C: New test.
9889         * testsuite/libgomp.fortran/affinity1.f90: New test.
9890         * testsuite/libgomp.fortran/affinity2.f90: New test.
9892 2015-10-13  Tom de Vries  <tom@codesourcery.com>
9894         PR tree-optimization/67476
9895         * testsuite/libgomp.c/autopar-3.c: New test.
9896         * testsuite/libgomp.c/autopar-4.c: New test.
9897         * testsuite/libgomp.c/autopar-5.c: New test.
9898         * testsuite/libgomp.c/autopar-6.c: New test.
9899         * testsuite/libgomp.c/autopar-7.c: New test.
9900         * testsuite/libgomp.c/autopar-8.c: New test.
9902 2015-10-12  James Norris  <jnorris@codesourcery.com>
9904         * testsuite/libgomp.oacc-c-c++-common/vector-loop.c: Fix loop
9905         initializer.
9907 2015-10-09  David Malcolm  <dmalcolm@redhat.com>
9909         * testsuite/lib/libgomp.exp: Load multiline.exp before prune.exp,
9910         using load_gcc_lib.
9912 2015-10-02  Thomas Schwinge  <thomas@codesourcery.com>
9914         * oacc-ptx.h: Remove file, moving its content into...
9915         * config/nvptx/fortran.c: ... here...
9916         * config/nvptx/oacc-init.c: ..., here...
9917         * config/nvptx/oacc-parallel.c: ..., and here.
9918         * config/nvptx/openacc.f90: New file.
9919         * plugin/plugin-nvptx.c: Don't include "oacc-ptx.h".
9920         (link_ptx): Don't link in predefined bits of PTX code.
9922 2015-09-30  Nathan Sidwell  <nathan@codesourcery.com>
9923             Bernd Schmidt <bernds@codesourcery.com>
9925         * plugin/plugin-nvptx.c (targ_fn_launch): Use GOMP_DIM_MAX.
9926         (struct targ_ptx_obj): New.
9927         (nvptx_tdata): Move earlier, change data format.
9928         (link_ptx): Take targ_ptx_obj ptr and count.  Allow multiple
9929         objects.
9930         (GOMP_OFFLOAD_load_image): Adjust.
9932 2015-09-30  Thomas Schwinge  <thomas@codesourcery.com>
9934         * testsuite/libgomp.oacc-c-c++-common/abort-1.c: Add checkpoint.
9935         * testsuite/libgomp.oacc-c-c++-common/abort-3.c: Likewise.
9936         * testsuite/libgomp.oacc-c-c++-common/clauses-2.c: Likewise.
9937         * testsuite/libgomp.oacc-c-c++-common/data-already-1.c: Likewise.
9938         * testsuite/libgomp.oacc-c-c++-common/data-already-2.c: Likewise.
9939         * testsuite/libgomp.oacc-c-c++-common/data-already-3.c: Likewise.
9940         * testsuite/libgomp.oacc-c-c++-common/data-already-4.c: Likewise.
9941         * testsuite/libgomp.oacc-c-c++-common/data-already-5.c: Likewise.
9942         * testsuite/libgomp.oacc-c-c++-common/data-already-6.c: Likewise.
9943         * testsuite/libgomp.oacc-c-c++-common/data-already-7.c: Likewise.
9944         * testsuite/libgomp.oacc-c-c++-common/data-already-8.c: Likewise.
9945         * testsuite/libgomp.oacc-c-c++-common/lib-1.c: Likewise.
9946         * testsuite/libgomp.oacc-c-c++-common/lib-11.c: Likewise.
9947         * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
9948         * testsuite/libgomp.oacc-c-c++-common/lib-17.c: Likewise.
9949         * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
9950         * testsuite/libgomp.oacc-c-c++-common/lib-2.c: Likewise.
9951         * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
9952         * testsuite/libgomp.oacc-c-c++-common/lib-21.c: Likewise.
9953         * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Likewise.
9954         * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
9955         * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
9956         * testsuite/libgomp.oacc-c-c++-common/lib-26.c: Likewise.
9957         * testsuite/libgomp.oacc-c-c++-common/lib-27.c: Likewise.
9958         * testsuite/libgomp.oacc-c-c++-common/lib-28.c: Likewise.
9959         * testsuite/libgomp.oacc-c-c++-common/lib-29.c: Likewise.
9960         * testsuite/libgomp.oacc-c-c++-common/lib-3.c: Likewise.
9961         * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
9962         * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
9963         * testsuite/libgomp.oacc-c-c++-common/lib-35.c: Likewise.
9964         * testsuite/libgomp.oacc-c-c++-common/lib-36.c: Likewise.
9965         * testsuite/libgomp.oacc-c-c++-common/lib-39.c: Likewise.
9966         * testsuite/libgomp.oacc-c-c++-common/lib-4.c: Likewise.
9967         * testsuite/libgomp.oacc-c-c++-common/lib-40.c: Likewise.
9968         * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
9969         * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Likewise.
9970         * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
9971         * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Likewise.
9972         * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
9973         * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Likewise.
9974         * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
9975         * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
9976         * testsuite/libgomp.oacc-c-c++-common/lib-57.c: Likewise.
9977         * testsuite/libgomp.oacc-c-c++-common/lib-58.c: Likewise.
9978         * testsuite/libgomp.oacc-c-c++-common/lib-62.c: Likewise.
9979         * testsuite/libgomp.oacc-c-c++-common/lib-63.c: Likewise.
9980         * testsuite/libgomp.oacc-c-c++-common/lib-64.c: Likewise.
9981         * testsuite/libgomp.oacc-c-c++-common/lib-65.c: Likewise.
9982         * testsuite/libgomp.oacc-c-c++-common/lib-67.c: Likewise.
9983         * testsuite/libgomp.oacc-c-c++-common/lib-68.c: Likewise.
9984         * testsuite/libgomp.oacc-c-c++-common/lib-71.c: Likewise.
9985         * testsuite/libgomp.oacc-c-c++-common/lib-77.c: Likewise.
9986         * testsuite/libgomp.oacc-c-c++-common/lib-80.c: Likewise.
9987         * testsuite/libgomp.oacc-c-c++-common/present-1.c: Likewise.
9988         * testsuite/libgomp.oacc-fortran/abort-1.f90: Likewise.
9989         * testsuite/libgomp.oacc-fortran/data-already-1.f: Likewise.
9990         * testsuite/libgomp.oacc-fortran/data-already-2.f: Likewise.
9991         * testsuite/libgomp.oacc-fortran/data-already-3.f: Likewise.
9992         * testsuite/libgomp.oacc-fortran/data-already-4.f: Likewise.
9993         * testsuite/libgomp.oacc-fortran/data-already-5.f: Likewise.
9994         * testsuite/libgomp.oacc-fortran/data-already-6.f: Likewise.
9995         * testsuite/libgomp.oacc-fortran/data-already-7.f: Likewise.
9996         * testsuite/libgomp.oacc-fortran/data-already-8.f: Likewise.
9998 2015-09-29  Nathan Sidwell  <nathan@codesourcery.com>
10000         * oacc-init.c (acc_on_device): Force optimization level.
10002 2015-09-29  Nathan Sidwell  <nathan@codesourcery.com>
10004         * plugin/plugin-nvptx.c (ARRAYSIZE): Delete.
10005         (cuda_errlist): Delete.
10006         (cuda_error): Reimplement.
10008 2015-09-28  Nathan Sidwell  <nathan@codesourcery.com>
10010         * libgomp.h (acc_dispatch_t): Replace separate geometry args with
10011         array.
10012         * libgomp.map (GOACC_parallel_keyed): New.
10013         * oacc-parallel.c (goacc_wait): Take pointer to va_list.  Adjust
10014         all callers.
10015         (GOACC_parallel_keyed): New interface.  Lose geometry arguments
10016         and take keyed varargs list.  Adjust call to exec_func.
10017         (GOACC_parallel): Force host fallback.
10018         * libgomp_g.h (GOACC_parallel): Remove.
10019         (GOACC_parallel_keyed): Declare.
10020         * plugin/plugin-nvptx.c (struct targ_fn_launch): New struct.
10021         (struct targ_gn_descriptor): Replace name field with launch field.
10022         (nvptx_exec): Lose separate geometry args, take array.  Process
10023         dynamic dimensions and adjust.
10024         (struct nvptx_tdata): Replace fn_names field with fn_descs.
10025         (GOMP_OFFLOAD_load_image): Adjust for change in function table
10026         data.
10027         (GOMP_OFFLOAD_openacc_parallel): Adjust for change in dimension
10028         passing.
10029         * oacc-host.c (host_openacc_exec): Adjust for change in dimension
10030         passing.
10032 2015-09-22  Chung-Lin Tang  <cltang@codesourcery.com>
10034         PR libgomp/67141
10035         * oacc-int.h (goacc_host_init): Add declaration.
10036         * oacc-host.c (goacc_host_init): Remove static and constructor attribute.
10037         * oacc-init.c (goacc_runtime_initialize): Call goacc_host_init() at end.
10039 2015-09-08  Aditya Kumar  <hiraditya@msn.com>
10040             Sebastian Pop  <s.pop@samsung.com>
10042         * testsuite/libgomp.graphite/bounds.c (int foo): Modified test case to
10043         match o/p.
10044         * testsuite/libgomp.graphite/force-parallel-1.c (void parloop): Same.
10045         * testsuite/libgomp.graphite/force-parallel-4.c: Same.
10046         * testsuite/libgomp.graphite/force-parallel-5.c: Same.
10047         * testsuite/libgomp.graphite/force-parallel-7.c: Same.
10048         * testsuite/libgomp.graphite/force-parallel-8.c: Same.
10050 2015-09-03  Jakub Jelinek  <jakub@redhat.com>
10052         * configure.tgt: Add missing ;; in between nvptx and rtems
10053         snippets.
10055 2015-09-03  Sebastian Huber  <sebastian.huber@embedded-brains.de>
10057         * config/posix/pool.h (gomp_adjust_thread_attr): New.
10058         * config/rtems/pool.h (gomp_adjust_thread_attr): Likewise.
10059         (gomp_thread_pool_reservoir): Add priority member.
10060         * confi/rtems/proc.c (allocate_thread_pool_reservoir): Add
10061         priority.
10062         (parse_thread_pools): Likewise.
10063         * team.c (gomp_team_start): Call configuration provided
10064         gomp_adjust_thread_attr(). Destroy thread attributes if
10065         necessary.
10066         * libgomp.texi: Document GOMP_RTEMS_THREAD_POOLS.
10068 2015-09-03  Sebastian Huber  <sebastian.huber@embedded-brains.de>
10070         * config/posix/pool.h: New.
10071         * config/rtems/pool.h: Likewise.
10072         * config/rtems/proc.c: Likewise.
10073         * libgomp.h (gomp_thread_destructor): Declare.
10074         * team.c: Include configuration provided "pool.h".
10075         (gomp_get_thread_pool): Define in configuration.
10076         (gomp_team_end): Call configuration defined
10077         gomp_release_thread_pool().
10079 2015-09-03  Sebastian Huber  <sebastian.huber@embedded-brains.de>
10081         * config/rtems/bar.c: New.
10082         * config/rtems/bar.h: Likewise.
10083         * config/rtems/mutex.c: Likewise.
10084         * config/rtems/mutex.h: Likewise.
10085         * config/rtems/sem.c: Likewise.
10086         * config/rtems/sem.h: Likewise.
10087         * configure.ac (*-*-rtems*): Check that Newlib provides a proper
10088         <sys/lock.h> header file.
10089         * configure.tgt (*-*-rtems*): Enable RTEMS configuration if
10090         supported by Newlib.
10091         * configure: Regenerate.
10093 2015-09-03  Sebastian Huber  <sebastian.huber@embedded-brains.de>
10095         * team.c (gomp_new_thread_pool): Delete and move content to ...
10096         (gomp_get_thread_pool): ... new function.  Allocate and
10097         initialize thread pool on demand.
10098         (get_last_team): Use gomp_get_thread_pool().
10099         (gomp_team_start): Delete thread pool initialization.
10101 2015-09-03  Tom de Vries  <tom@codesourcery.com>
10103         PR tree-optimization/65637
10104         * testsuite/libgomp.c/autopar-2.c: New test.
10106 2015-08-29  Tom de Vries  <tom@codesourcery.com>
10108         PR tree-optimization/46193
10109         * testsuite/libgomp.c/pr46193.c: New test.
10111 2015-08-24  Nathan Sidwell  <nathan@codesourcery.com>
10113         libgomp/
10114         * libgomp.map: Add 4.0.2 version.
10115         * target.c (offload_image_descr): Add version field.
10116         (gomp_load_image_to_device): Add version argument.  Adjust plugin
10117         call.  Improve load mismatch diagnostic.
10118         (gomp_unload_image_from_device): Add version argument.  Adjust plugin
10119         call.
10120         (GOMP_offload_regster): Make stub function, move bulk to ...
10121         (GOMP_offload_register_ver): ... here.  Process version argument.
10122         (GOMP_offload_unregister): Make stub function, move bulk to ...
10123         (GOMP_offload_unregister_ver): ... here.  Process version argument.
10124         (gomp_init_device): Process version field.
10125         (gomp_unload_device): Process version field.
10126         (gomp_load_plugin_for_device): Reimplement DLSYM & DLSYM_OPT
10127         macros.  Check plugin version.
10128         * libgomp.h (gomp_device_descr): Add version function field.  Adjust
10129         loader and unloader types.
10130         * oacc-host.c: Include gomp-constants.h.
10131         (host_version): New.
10132         (host_load_image, host_unload_image): Adjust.
10133         (host_dispatch): Add host_version.
10134         * plugin/plugin-nvptx.c: Include gomp-constants.h.
10135         (GOMP_OFFLOAD_version): New.
10136         (GOMP_OFFLOAD_load_image): Add version arg and check it.
10137         (GOMP_OFFLOAD_unload_image): Likewise.
10138         * plugin/plugin-host.c: Include gomp-constants.h.
10139         (GOMP_OFFLOAD_version): New.
10140         (GOMP_OFFLOAD_load_image): Add version arg.
10141         (GOMP_OFFLOAD_unload_image): Likewise.
10143 2015-08-24  Tom de Vries  <tom@codesourcery.com>
10145         PR tree-optimization/65468
10146         * testsuite/libgomp.oacc-c-c++-common/vector-loop.c: New test.
10148 2015-08-24  Tom de Vries  <tom@codesourcery.com>
10150         PR tree-optimization/65468
10151         * testsuite/libgomp.c/static-chunk-size-one.c: New test.
10153 2015-08-24  Joost VandeVondele  <vondele@gnu.gcc.org>
10155         PR libgomp/66761
10156         PR libgomp/67303
10157         * iter.c (gomp_iter_dynamic_next): Employ an atomic load.
10158         (gomp_iter_guided_next): Idem.
10159         * iter_ull.c (gomp_iter_ull_dynamic_next): Idem.
10160         (gomp_iter_ull_guided_next): Idem.
10161         * config/linux/wait.h (do_spin): Idem.
10163 2015-08-10  Thomas Schwinge  <thomas@codesourcery.com>
10165         * libgomp-plugin.h (enum offload_target_type): Remove
10166         OFFLOAD_TARGET_TYPE_HOST_NONSHM.
10167         * openacc.f90 (openacc_kinds): Remove acc_device_host_nonshm.
10168         * openacc.h (enum acc_device_t): Likewise.
10169         * openacc_lib.h: Likewise.
10170         * oacc-init.c (name_of_acc_device_t): Don't handle it.
10171         (acc_on_device): Just use __builtin_acc_on_device.
10172         * testsuite/libgomp.oacc-c-c++-common/if-1.c: Don't forbid usage
10173         of acc_on_device builtin.
10174         * plugin/plugin-host.h: Remove file.
10175         * plugin/plugin-host.c: Likewise, but salvage some content into...
10176         * oacc-host.c: ... this file.
10177         * plugin/Makefrag.am: Don't build libgomp-plugin-host_nonshm.la.
10178         * plugin/configfrag.ac (offload_targets): Don't add host_nonshm.
10179         * Makefile.in: Regenerate.
10180         * configure: Likewise.
10181         * testsuite/lib/libgomp.exp
10182         (check_effective_target_openacc_host_nonshm_selected): Remove.
10183         * testsuite/libgomp.oacc-c++/c++.exp: Don't handle
10184         ACC_DEVICE_TYPE=host_nonshm.
10185         * testsuite/libgomp.oacc-c/c.exp: Likewise.
10186         * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
10187         * testsuite/libgomp.oacc-c-c++-common/acc_on_device-1.c: Likewise.
10188         * testsuite/libgomp.oacc-fortran/acc_on_device-1-1.f90: Likewise.
10189         * testsuite/libgomp.oacc-fortran/acc_on_device-1-2.f: Likewise.
10190         * testsuite/libgomp.oacc-fortran/acc_on_device-1-3.f: Likewise.
10192 2015-08-10  Thomas Schwinge  <thomas@codesourcery.com>
10193             Jakub Jelinek  <jakub@redhat.com>
10195         * config/nvptx/affinity.c: New file.
10196         * config/nvptx/alloc.c: Likewise.
10197         * config/nvptx/bar.c: Likewise.
10198         * config/nvptx/barrier.c: Likewise.
10199         * config/nvptx/critical.c: Likewise.
10200         * config/nvptx/env.c: Likewise.
10201         * config/nvptx/error.c: Likewise.
10202         * config/nvptx/fortran.c: Likewise.
10203         * config/nvptx/iter.c: Likewise.
10204         * config/nvptx/iter_ull.c: Likewise.
10205         * config/nvptx/libgomp-plugin.c: Likewise.
10206         * config/nvptx/lock.c: Likewise.
10207         * config/nvptx/loop.c: Likewise.
10208         * config/nvptx/loop_ull.c: Likewise.
10209         * config/nvptx/mutex.c: Likewise.
10210         * config/nvptx/oacc-async.c: Likewise.
10211         * config/nvptx/oacc-cuda.c: Likewise.
10212         * config/nvptx/oacc-host.c: Likewise.
10213         * config/nvptx/oacc-init.c: Likewise.
10214         * config/nvptx/oacc-mem.c: Likewise.
10215         * config/nvptx/oacc-parallel.c: Likewise.
10216         * config/nvptx/oacc-plugin.c: Likewise.
10217         * config/nvptx/omp-lock.h: Likewise.
10218         * config/nvptx/ordered.c: Likewise.
10219         * config/nvptx/parallel.c: Likewise.
10220         * config/nvptx/proc.c: Likewise.
10221         * config/nvptx/ptrlock.c: Likewise.
10222         * config/nvptx/sections.c: Likewise.
10223         * config/nvptx/sem.c: Likewise.
10224         * config/nvptx/single.c: Likewise.
10225         * config/nvptx/splay-tree.c: Likewise.
10226         * config/nvptx/target.c: Likewise.
10227         * config/nvptx/task.c: Likewise.
10228         * config/nvptx/team.c: Likewise.
10229         * config/nvptx/time.c: Likewise.
10230         * config/nvptx/work.c: Likewise.
10231         * configure.ac: Don't probe pthreads support for host nvptx*-*-*.
10232         * configure: Regenerate.
10233         * configure.tgt (config_path): Set to "nvptx" for target
10234         nvptx*-*-*.
10236 2015-08-10  Thomas Schwinge  <thomas@codesourcery.com>
10238         * testsuite/libgomp.oacc-c-c++-common/vector-type-1.c: New file.
10240 2015-08-03  Nathan Sidwell  <nathan@codesourcery.com>
10242         * plugin/plugin-nvptx.c: Don't include dlfcn.h.
10243         (cuda_errlist): Constify.
10244         (errmsg):  Move into ...
10245         (cuda_error): ... here.  Make smaller.
10246         (_XSTR, _STR): Delete.
10247         (cuda_synames): Delete.
10248         (verify_device_library): Delete.
10249         (nvptx_init): Don't call it.
10251 2015-07-28  Tom de Vries  <tom@codesourcery.com>
10253         * testsuite/libgomp.c/uns-outer-4.c: New test.
10255 2015-07-24  Cesar Philippidis  <cesar@codesourcery.com>
10257         * testsuite/libgomp.c/pr66714.c: New test.
10259 2015-07-22  Maxim Blumenthal  <maxim.blumenthal@intel.com>
10261         PR libgomp/66950
10262         * testsuite/libgomp.c/examples-4/simd-7.c (N): Change to 30 from 45.
10263         (fib_ref): New function.
10264         (fib): Correct corner cases in the recursion.
10265         (main): Replace the non-simd loop with fib_ref call.
10266         * testsuite/libgomp.fortran/examples-4/simd-7.f90: (fib_ref): New
10267         subroutine.
10268         (fibonacci): Lower the parameter N to 30.  Correct accordingly check
10269         for the last array element value.  Replace the non-simd loop with
10270         fib_ref call.  Remove redundant b_ref array.  Remove the comparison
10271         of the last array element with according Fibonacci sequence element.
10272         (fib): Correct corner cases in the recursion.
10274 2015-07-21  Nathan Sidwell  <nathan@codesourcery.com>
10276         * target.c (gomp_offload_image_to_device): Rename to ...
10277         (gomp_load_image_to_device): ... here.
10278         (GOMP_offload_register): Adjust call.
10279         (gomp_init_device): Likewise.
10280         (gomp_unload_image_from_device): New.  Broken out of ...
10281         (GOMP_offload_unregister): ... here.  Call it.
10282         (gomp_unload_device): New.
10283         * libgomp.h (gomp_unload_device): Declare.
10284         * oacc-init.c (acc_shutdown_1): Unload from device before deleting
10285         mem maps.
10287 2015-07-20  Nathan Sidwell  <nathan@codesourcery.com>
10289         * oacc-parallel.c (GOACC_parallel): Move variadic handling into
10290         wait=-specific if.
10291         (GOACC_enter_exit_data, GOACC_update): Use consistent num_waits
10292         !=0 condition.
10293         (goacc_waits): Move !num_waits handling to ...
10294         (GOACC_wait): ... here, the only caller that might have zero waits.
10296         * plugin/plugin-nvptx.c (struct targ_fn_descriptor): Move later.
10297         (struct ptx_image_data): Move earlier, add fns field.
10298         (struct ptx_device): Add images and image_lock fields.
10299         (ptx_images, ptx_image_lock): Delete.
10300         (nvptx_open_device): Initialize images and image_lock fields.
10301         (nvptx_close_device): Destroy image_lock.
10302         (GOMP_OFFLOAD_load_image): Register image to device-specific fields.
10303         (GOMP_OFFLOAD_unload_image): Unregister image from device-specific
10304         fields.
10306 2015-07-17  Nathan Sidwell  <nathan@codesourcery.com>
10308         * target.c (GOMP_offload_register): Use int for device type arg.
10309         (GOMP_offload_unregister): Likewise.
10311         * target.c (struct_offload_image_descr): Constify host_table.
10312         (gomp_offload_image_to_device): Likewise.
10313         (GOMP_offload_register, GOMP_offload_unregister): Likewise.
10315         * libgomp.h (gomp_device_descr): Constify target data arguments.
10316         * target.c (struct offload_image_descr): Constify target_data.
10317         (gomp_offload_image_to_device): Likewise.
10318         (GOMP_offload_register): Likewise.
10319         (GOMP_offload_unregister): Likewise.
10320         * plugin/plugin-host.c (GOMP_OFFLOAD_load_image,
10321         GOMP_OFFLOAD_unload_image): Constify target data.
10322         * plugin/plugin-nvptx.c (struct ptx_image_data): Constify target data.
10323         (GOMP_OFFLOAD_load_image, GOMP_OFFLOAD_unload_image): Likewise.
10325 2015-07-16  Nathan Sidwell  <nathan@codesourcery.com>
10327         * plugin/plugin-nvptx.c (link_ptx): Constify string argument.
10328         Workaround driver library const error.
10329         (struct nvptx_tdata, nvptx_tdata_t): New.
10330         (GOMP_OFFLOAD_load_image): Use struct for target_data's real
10331         type.
10333 2015-07-15  Maxim Blumenthal  <maxim.blumenthal@intel.com>
10335         * testsuite/libgomp.fortran/examples-4/simd-8.f90: (main): Change type
10336         of EPS parameter from integer to real.
10337         * testsuite/libgomp.fortran/examples-4/task_dep-5.f90: (check): Change
10338         type of EPS parameter from integer to real.
10340 2015-07-15  Sebastian Huber  <sebastian.huber@embedded-brains.de>
10342         * team.c (get_last_team): New.
10343         (gomp_new_team): Recycle last non-nested team if possible.
10344         (gomp_team_end): Move team work share list free lock destruction
10345         to ...
10346         (free_team): ... here.
10348 2015-07-14  Maxim Blumenthal  <maxim.blumenthal@intel.com>
10350         * testsuite/libgomp.c/examples-4/simd-3.c: (main): Change type of res
10351         and ref from int to double.  Replaced their comparison with
10352         an inequality of their difference and EPS.
10353         * testsuite/libgomp.c/examples-4/simd-8.c: (main): Replace the
10354         comparison of pri and a reference number with an inequality of their
10355         difference and EPS.
10356         * testsuite/libgomp.fortran/examples-4/simd-3.f90: (main): Replaced
10357         the comparison of sum and sum_ref with an inequality of their
10358         difference and EPS.
10359         * testsuite/libgomp.fortran/examples-4/simd-8.f90: (main): Replace
10360         the comparison of pri and a reference number with an inequality of
10361         their difference and EPS.
10363 2015-07-13  Maxim Blumenthal  <maxim.blumenthal@intel.com>
10365         * testsuite/libgomp.c++/examples-4/e.53.2.C: Renamed to...
10366         * testsuite/libgomp.c++/examples-4/declare_target-2.C: ...this.
10367         * testsuite/libgomp.c++/examples-4/e.51.5.C: Renamed to...
10368         * testsuite/libgomp.c++/examples-4/target_data-5.C: ...this.
10369         * testsuite/libgomp.c/examples-4/e.56.3.c: Renamed to...
10370         * testsuite/libgomp.c/examples-4/array_sections-3.c: ...this.
10371         * testsuite/libgomp.c/examples-4/e.56.4.c: Renamed to...
10372         * testsuite/libgomp.c/examples-4/array_sections-4.c: ...this.
10373         * testsuite/libgomp.c/examples-4/e.55.1.c: Renamed to...
10374         * testsuite/libgomp.c/examples-4/async_target-1.c: ...this.
10375         * testsuite/libgomp.c/examples-4/e.55.2.c: Renamed to...
10376         * testsuite/libgomp.c/examples-4/async_target-2.c: ...this.
10377         (vec_mult_ref): Remove v1 and v2 arguments, turn them into local
10378         variables.
10379         (vec_mult): Likewise.  Add #pragma omp taskwait.
10380         (main): Adjust caller.
10381         * testsuite/libgomp.c/examples-4/e.53.1.c: Renamed to...
10382         * testsuite/libgomp.c/examples-4/declare_target-1.c: ...this.
10383         * testsuite/libgomp.c/examples-4/e.53.3.c: Renamed to...
10384         * testsuite/libgomp.c/examples-4/declare_target-3.c: ...this.
10385         * testsuite/libgomp.c/examples-4/e.53.4.c: Renamed to...
10386         * testsuite/libgomp.c/examples-4/declare_target-4.c: ...this.
10387         * testsuite/libgomp.c/examples-4/e.53.5.c: Renamed to...
10388         * testsuite/libgomp.c/examples-4/declare_target-5.c: ...this.
10389         * testsuite/libgomp.c/examples-4/e.57.1.c: Renamed to...
10390         * testsuite/libgomp.c/examples-4/device-1.c: ...this.
10391         * testsuite/libgomp.c/examples-4/e.57.2.c: Renamed to...
10392         * testsuite/libgomp.c/examples-4/device-2.c: ...this.
10393         * testsuite/libgomp.c/examples-4/e.57.3.c: Renamed to...
10394         * testsuite/libgomp.c/examples-4/device-3.c: ...this.
10395         * testsuite/libgomp.c/examples-4/simd-1.c: New file.
10396         * testsuite/libgomp.c/examples-4/simd-2.c: New file.
10397         * testsuite/libgomp.c/examples-4/simd-3.c: New file.
10398         * testsuite/libgomp.c/examples-4/simd-4.c: New file.
10399         * testsuite/libgomp.c/examples-4/simd-5.c: New file.
10400         * testsuite/libgomp.c/examples-4/simd-6.c: New file.
10401         * testsuite/libgomp.c/examples-4/simd-7.c: New file.
10402         * testsuite/libgomp.c/examples-4/simd-8.c: New file.
10403         * testsuite/libgomp.c/examples-4/e.50.1.c: Renamed to...
10404         * testsuite/libgomp.c/examples-4/target-1.c: ...this.
10405         * testsuite/libgomp.c/examples-4/e.50.2.c: Renamed to...
10406         * testsuite/libgomp.c/examples-4/target-2.c: ...this.
10407         * testsuite/libgomp.c/examples-4/e.50.3.c: Renamed to...
10408         * testsuite/libgomp.c/examples-4/target-3.c: ...this.
10409         * testsuite/libgomp.c/examples-4/e.50.4.c: Renamed to...
10410         * testsuite/libgomp.c/examples-4/target-4.c: ...this.
10411         * testsuite/libgomp.c/examples-4/e.50.5.c: Renamed to...
10412         * testsuite/libgomp.c/examples-4/target-5.c: ...this.
10413         * testsuite/libgomp.c/examples-4/e.51.1.c: Renamed to...
10414         * testsuite/libgomp.c/examples-4/target_data-1.c: ...this.
10415         * testsuite/libgomp.c/examples-4/e.51.2.c: Renamed to...
10416         * testsuite/libgomp.c/examples-4/target_data-2.c: ...this.
10417         * testsuite/libgomp.c/examples-4/e.51.3.c: Renamed to...
10418         * testsuite/libgomp.c/examples-4/target_data-3.c: ...this.
10419         * testsuite/libgomp.c/examples-4/e.51.4.c: Renamed to...
10420         * testsuite/libgomp.c/examples-4/target_data-4.c: ...this.
10421         * testsuite/libgomp.c/examples-4/e.51.6.c: Renamed to...
10422         * testsuite/libgomp.c/examples-4/target_data-6.c: ...this.
10423         * testsuite/libgomp.c/examples-4/e.51.7.c: Renamed to...
10424         * testsuite/libgomp.c/examples-4/target_data-7.c: ...this.
10425         * testsuite/libgomp.c/examples-4/e.52.1.c: Renamed to...
10426         * testsuite/libgomp.c/examples-4/target_update-1.c: ...this.
10427         * testsuite/libgomp.c/examples-4/e.52.2.c: Renamed to...
10428         * testsuite/libgomp.c/examples-4/target_update-2.c: ...this.
10429         * testsuite/libgomp.c/examples-4/task_dep-1.c: New file.
10430         * testsuite/libgomp.c/examples-4/task_dep-2.c: New file.
10431         * testsuite/libgomp.c/examples-4/task_dep-3.c: New file.
10432         * testsuite/libgomp.c/examples-4/task_dep-4.c: New file.
10433         * testsuite/libgomp.c/examples-4/task_dep-5.c: New file.
10434         * testsuite/libgomp.c/examples-4/e.54.2.c: Renamed to...
10435         * testsuite/libgomp.c/examples-4/teams-2.c: ...this.
10436         * testsuite/libgomp.c/examples-4/e.54.3.c: Renamed to...
10437         * testsuite/libgomp.c/examples-4/teams-3.c: ...this.
10438         * testsuite/libgomp.c/examples-4/e.54.4.c: Renamed to...
10439         * testsuite/libgomp.c/examples-4/teams-4.c: ...this.
10440         * testsuite/libgomp.c/examples-4/e.54.5.c: Renamed to...
10441         * testsuite/libgomp.c/examples-4/teams-5.c: ...this.
10442         * testsuite/libgomp.c/examples-4/e.54.6.c: Renamed to...
10443         * testsuite/libgomp.c/examples-4/teams-6.c: ...this.
10444         * testsuite/libgomp.fortran/examples-4/e.56.3.f90: Renamed to...
10445         * testsuite/libgomp.fortran/examples-4/array_sections-3.f90: ...this.
10446         * testsuite/libgomp.fortran/examples-4/e.56.4.f90: Renamed to...
10447         * testsuite/libgomp.fortran/examples-4/array_sections-4.f90: ...this.
10448         * testsuite/libgomp.fortran/examples-4/e.55.1.f90: Renamed to...
10449         * testsuite/libgomp.fortran/examples-4/async_target-1.f90: ...this.
10450         * testsuite/libgomp.fortran/examples-4/e.55.2.f90: Renamed to...
10451         * testsuite/libgomp.fortran/examples-4/async_target-2.f90: ...this.
10452         (vec_mult): Add !$omp taskwait.
10453         * testsuite/libgomp.fortran/examples-4/e.53.1.f90: Renamed to...
10454         * testsuite/libgomp.fortran/examples-4/declare_target-1.f90: ...this.
10455         * testsuite/libgomp.fortran/examples-4/e.53.2.f90: Renamed to...
10456         * testsuite/libgomp.fortran/examples-4/declare_target-2.f90: ...this.
10457         * testsuite/libgomp.fortran/examples-4/e.53.3.f90: Renamed to...
10458         * testsuite/libgomp.fortran/examples-4/declare_target-3.f90: ...this.
10459         * testsuite/libgomp.fortran/examples-4/e.53.4.f90: Renamed to...
10460         * testsuite/libgomp.fortran/examples-4/declare_target-4.f90: ...this.
10461         * testsuite/libgomp.fortran/examples-4/e.53.5.f90: Renamed to...
10462         * testsuite/libgomp.fortran/examples-4/declare_target-5.f90: ...this.
10463         * testsuite/libgomp.fortran/examples-4/e.57.1.f90: Renamed to...
10464         * testsuite/libgomp.fortran/examples-4/device-1.f90: ...this.
10465         * testsuite/libgomp.fortran/examples-4/e.57.2.f90: Renamed to...
10466         * testsuite/libgomp.fortran/examples-4/device-2.f90: ...this.
10467         * testsuite/libgomp.fortran/examples-4/e.57.3.f90: Renamed to...
10468         * testsuite/libgomp.fortran/examples-4/device-3.f90: ...this.
10469         * testsuite/libgomp.fortran/examples-4/simd-1.f90: New file.
10470         * testsuite/libgomp.fortran/examples-4/simd-2.f90: New file.
10471         * testsuite/libgomp.fortran/examples-4/simd-3.f90: New file.
10472         * testsuite/libgomp.fortran/examples-4/simd-4.f90: New file.
10473         * testsuite/libgomp.fortran/examples-4/simd-5.f90: New file.
10474         * testsuite/libgomp.fortran/examples-4/simd-6.f90: New file.
10475         * testsuite/libgomp.fortran/examples-4/simd-7.f90: New file.
10476         * testsuite/libgomp.fortran/examples-4/simd-8.f90: New file.
10477         * testsuite/libgomp.fortran/examples-4/e.50.1.f90: Renamed to...
10478         * testsuite/libgomp.fortran/examples-4/target-1.f90: ...this.
10479         * testsuite/libgomp.fortran/examples-4/e.50.2.f90: Renamed to...
10480         * testsuite/libgomp.fortran/examples-4/target-2.f90: ...this.
10481         * testsuite/libgomp.fortran/examples-4/e.50.3.f90: Renamed to...
10482         * testsuite/libgomp.fortran/examples-4/target-3.f90: ...this.
10483         * testsuite/libgomp.fortran/examples-4/e.50.4.f90: Renamed to...
10484         * testsuite/libgomp.fortran/examples-4/target-4.f90: ...this.
10485         * testsuite/libgomp.fortran/examples-4/e.50.5.f90: Renamed to...
10486         * testsuite/libgomp.fortran/examples-4/target-5.f90: ...this.
10487         * testsuite/libgomp.fortran/examples-4/e.51.1.f90: Renamed to...
10488         * testsuite/libgomp.fortran/examples-4/target_data-1.f90: ...this.
10489         * testsuite/libgomp.fortran/examples-4/e.51.2.f90: Renamed to...
10490         * testsuite/libgomp.fortran/examples-4/target_data-2.f90: ...this.
10491         * testsuite/libgomp.fortran/examples-4/e.51.3.f90: Renamed to...
10492         * testsuite/libgomp.fortran/examples-4/target_data-3.f90: ...this.
10493         * testsuite/libgomp.fortran/examples-4/e.51.4.f90: Renamed to...
10494         * testsuite/libgomp.fortran/examples-4/target_data-4.f90: ...this.
10495         * testsuite/libgomp.fortran/examples-4/e.51.5.f90: Renamed to...
10496         * testsuite/libgomp.fortran/examples-4/target_data-5.f90: ...this.
10497         * testsuite/libgomp.fortran/examples-4/e.51.6.f90: Renamed to...
10498         * testsuite/libgomp.fortran/examples-4/target_data-6.f90: ...this.
10499         * testsuite/libgomp.fortran/examples-4/e.51.7.f90: Renamed to...
10500         * testsuite/libgomp.fortran/examples-4/target_data-7.f90: ...this.
10501         * testsuite/libgomp.fortran/examples-4/e.52.1.f90: Renamed to...
10502         * testsuite/libgomp.fortran/examples-4/target_update-1.f90: ...this.
10503         * testsuite/libgomp.fortran/examples-4/e.52.2.f90: Renamed to...
10504         * testsuite/libgomp.fortran/examples-4/target_update-2.f90: ...this.
10505         * testsuite/libgomp.fortran/examples-4/task_dep-1.f90: New file.
10506         * testsuite/libgomp.fortran/examples-4/task_dep-2.f90: New file.
10507         * testsuite/libgomp.fortran/examples-4/task_dep-3.f90: New file.
10508         * testsuite/libgomp.fortran/examples-4/task_dep-4.f90: New file.
10509         * testsuite/libgomp.fortran/examples-4/task_dep-5.f90: New file.
10510         * testsuite/libgomp.fortran/examples-4/e.54.2.f90: Renamed to...
10511         * testsuite/libgomp.fortran/examples-4/teams-2.f90: ...this.
10512         * testsuite/libgomp.fortran/examples-4/e.54.3.f90: Renamed to...
10513         * testsuite/libgomp.fortran/examples-4/teams-3.f90: ...this.
10514         * testsuite/libgomp.fortran/examples-4/e.54.4.f90: Renamed to...
10515         * testsuite/libgomp.fortran/examples-4/teams-4.f90: ...this.
10516         * testsuite/libgomp.fortran/examples-4/e.54.5.f90: Renamed to...
10517         * testsuite/libgomp.fortran/examples-4/teams-5.f90: ...this.
10518         * testsuite/libgomp.fortran/examples-4/e.54.6.f90: Renamed to...
10519         * testsuite/libgomp.fortran/examples-4/teams-6.f90: ...this.
10521 2015-07-10  Tom de Vries  <tom@codesourcery.com>
10523         * testsuite/libgomp.fortran/parloops-exit-first-loop-alt-2.f95: New test.
10524         * testsuite/libgomp.fortran/parloops-exit-first-loop-alt.f95: New test.
10526 2015-07-08  Thomas Schwinge  <thomas@codesourcery.com>
10528         PR libgomp/65099
10529         * plugin/plugin-nvptx.c (nvptx_get_num_devices): Return 0 if not
10530         in a 64-bit configuration.
10531         * testsuite/libgomp.oacc-c++/c++.exp: Don't attempt nvidia
10532         offloading testing if no such device is available.
10533         * testsuite/libgomp.oacc-c/c.exp: Likewise.
10534         * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
10536 2015-07-08  Tom de Vries  <tom@codesourcery.com>
10538         * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c (main): Fix
10539         second call to f.
10540         * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: Same.
10542 2015-07-07  Tom de Vries  <tom@codesourcery.com>
10544         PR tree-optimization/66642
10545         * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c (main): Test low
10546         iteration count case.
10547         * testsuite/libgomp.c/parloops-exit-first-loop-alt.c (init): New
10548         function, factor out of ...
10549         (main): ... here.  Test low iteration count case.
10551 2015-07-06  Sebastian Huber  <sebastian.huber@embedded-brains.de>
10553         * libgomp.h (gomp_thread_pool): Comment last_team field.
10555 2015-07-02  Uros Bizjak  <ubizjak@gmail.com>
10557         * testsuite/libgomp.c++/pr66702-1.C: Require
10558         vect_simd_clones effective target.
10559         * testsuite/libgomp.c++/pr66702-2.C: Ditto.
10561 2015-06-30  Tom de Vries  <tom@codesourcery.com>
10563         * testsuite/libgomp.oacc-c++/c++.exp: Set DEFAULT_CFLAGS to -O2 if not
10564         already set.  Use DEFAULT_CFLAGS in dg-runtest.
10565         * testsuite/libgomp.oacc-c-c++-common/collapse-3.c: Remove dg-options
10566         "-O2".
10568 2015-06-30  Tom de Vries  <tom@codesourcery.com>
10570         * testsuite/libgomp.c++/c++.exp: Set DEFAULT_CFLAGS to -O2 if not
10571         already set.  Use DEFAULT_CFLAGS in dg-runtest.
10572         * testsuite/libgomp.c++/atomic-16.C: Remove dg-options "-O2 -fopenmp".
10573         * testsuite/libgomp.c++/pr64824.C: Same.
10574         * testsuite/libgomp.c++/pr64868.C: Same.
10575         * testsuite/libgomp.c++/pr66199-1.C: Same.
10576         * testsuite/libgomp.c++/pr66199-2.C: Same.
10577         * testsuite/libgomp.c++/target-2.C: Same.
10578         * testsuite/libgomp.c++/for-7.C: Use dg-additional-options for
10579         -std=<standard> option.
10580         * testsuite/libgomp.c++/udr-11.C: Same.
10581         * testsuite/libgomp.c++/udr-12.C: Same.
10582         * testsuite/libgomp.c++/udr-13.C: Same.
10583         * testsuite/libgomp.c++/udr-14.C: Same.
10584         * testsuite/libgomp.c++/udr-15.C: Same.
10585         * testsuite/libgomp.c++/udr-16.C: Same.
10586         * testsuite/libgomp.c++/udr-17.C: Same.
10587         * testsuite/libgomp.c++/udr-18.C: Same.
10588         * testsuite/libgomp.c++/udr-19.C: Same.
10589         * testsuite/libgomp.c++/atomic-1.C: Remove dg-options "-O2".
10590         * testsuite/libgomp.c++/simd-1.C: Same.
10591         * testsuite/libgomp.c++/simd-2.C: Same.
10592         * testsuite/libgomp.c++/simd-3.C: Same.
10593         * testsuite/libgomp.c++/simd-4.C: Same.
10594         * testsuite/libgomp.c++/simd-5.C: Same.
10595         * testsuite/libgomp.c++/simd-6.C: Same.
10596         * testsuite/libgomp.c++/simd-7.C: Same.
10597         * testsuite/libgomp.c++/simd-8.C: Same.
10598         * testsuite/libgomp.c++/simd-9.C: Same.
10599         * testsuite/libgomp.c++/simd10.C: Same.
10600         * testsuite/libgomp.c++/simd11.C: Same.
10601         * testsuite/libgomp.c++/simd12.C: Same.
10602         * testsuite/libgomp.c++/simd13.C: Same.
10604 2015-06-30  Jakub Jelinek  <jakub@redhat.com>
10606         PR middle-end/66702
10607         * testsuite/libgomp.c++/pr66702-1.C: New test.
10608         * testsuite/libgomp.c++/pr66702-2.C: New test.
10610 2015-06-30  Tom de Vries  <tom@codesourcery.com>
10612         * testsuite/libgomp.c/parloops-exit-first-loop-alt-5.c: New test.
10613         * testsuite/libgomp.c/parloops-exit-first-loop-alt-6.c: New test.
10614         * testsuite/libgomp.c/parloops-exit-first-loop-alt-7.c: New test.
10615         * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: Update comment.
10617 2015-06-30  Tom de Vries  <tom@codesourcery.com>
10619         PR tree-optimization/66652
10620         * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c (f): Rewrite
10621         using restrict pointers.
10622         (main): Add arguments to calls to f.
10623         * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: Same.
10625 2015-06-23  Andreas Tobler  <andreast@gcc.gnu.org>
10627         * configure.ac: Fix check for header <sys/sysctl.h>.
10628         * configure: Regenerate.
10629         * config.h.in: Likewise.
10631 2015-06-23  Tom de Vries  <tom@codesourcery.com>
10633         * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c (main): Use
10634         abort.
10635         * testsuite/libgomp.c/parloops-exit-first-loop-alt-4.c (main): Same.
10637 2015-06-19  Thomas Schwinge  <thomas@codesourcery.com>
10639         * testsuite/libgomp.oacc-c-c++-common/lib-62.c: Only consider for
10640         acc_device_nvidia.
10642         PR libgomp/66518
10643         * testsuite/libgomp.oacc-c-c++-common/lib-3.c: XFAIL.
10644         * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
10646 2015-06-15  Tom de Vries  <tom@codesourcery.com>
10648         * testsuite/libgomp.c/atomic-1.c: Remove dg-options "-O2".  Use
10649         dg-additional-options for any remaining options.
10650         * testsuite/libgomp.c/atomic-2.c: Same.
10651         * testsuite/libgomp.c/atomic-4.c: Same.
10652         * testsuite/libgomp.c/atomic-5.c: Same.
10653         * testsuite/libgomp.c/atomic-6.c: Same.
10654         * testsuite/libgomp.c/autopar-1.c: Same.
10655         * testsuite/libgomp.c/copyin-1.c: Same.
10656         * testsuite/libgomp.c/copyin-2.c: Same.
10657         * testsuite/libgomp.c/copyin-3.c: Same.
10658         * testsuite/libgomp.c/examples-4/e.53.5.c: Same.
10659         * testsuite/libgomp.c/nestedfn-5.c: Same.
10660         * testsuite/libgomp.c/parloops-exit-first-loop-alt-2.c: Same.
10661         * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c: Same.
10662         * testsuite/libgomp.c/parloops-exit-first-loop-alt-4.c: Same.
10663         * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: Same.
10664         * testsuite/libgomp.c/pr32362-1.c: Same.
10665         * testsuite/libgomp.c/pr32362-2.c: Same.
10666         * testsuite/libgomp.c/pr32362-3.c: Same.
10667         * testsuite/libgomp.c/pr39591-1.c: Same.
10668         * testsuite/libgomp.c/pr39591-2.c: Same.
10669         * testsuite/libgomp.c/pr39591-3.c: Same.
10670         * testsuite/libgomp.c/pr58392.c: Same.
10671         * testsuite/libgomp.c/pr58756.c: Same.
10672         * testsuite/libgomp.c/simd-1.c: Same.
10673         * testsuite/libgomp.c/simd-10.c: Same.
10674         * testsuite/libgomp.c/simd-11.c: Same.
10675         * testsuite/libgomp.c/simd-12.c: Same.
10676         * testsuite/libgomp.c/simd-13.c: Same.
10677         * testsuite/libgomp.c/simd-14.c: Same.
10678         * testsuite/libgomp.c/simd-15.c: Same.
10679         * testsuite/libgomp.c/simd-2.c: Same.
10680         * testsuite/libgomp.c/simd-3.c: Same.
10681         * testsuite/libgomp.c/simd-4.c: Same.
10682         * testsuite/libgomp.c/simd-5.c: Same.
10683         * testsuite/libgomp.c/simd-6.c: Same.
10684         * testsuite/libgomp.c/simd-7.c: Same.
10685         * testsuite/libgomp.c/simd-8.c: Same.
10686         * testsuite/libgomp.c/simd-9.c: Same.
10688 2015-06-15  Tom de Vries  <tom@codesourcery.com>
10690         * testsuite/libgomp.c/pr35625.c: Fix typo.
10692 2015-06-15  Tom de Vries  <tom@codesourcery.com>
10694         * testsuite/libgomp.c/atomic-18.c: Remove superfluous -fopenmp setting
10695         in dg-options.
10696         * testsuite/libgomp.c/atomic-3.c: Same.
10697         * testsuite/libgomp.c/debug-1.c: Same.
10698         * testsuite/libgomp.c/nqueens-1.c: Same.
10699         * testsuite/libgomp.c/pr26171.c: Same.
10700         * testsuite/libgomp.c/pr48591.c: Same.
10701         * testsuite/libgomp.c/pr64824.c: Same.
10702         * testsuite/libgomp.c/pr64868.c: Same.
10703         * testsuite/libgomp.c/pr66133.c: Same.
10704         * testsuite/libgomp.c/pr66199-1.c: Same.
10705         * testsuite/libgomp.c/pr66199-2.c: Same.
10706         * testsuite/libgomp.c/target-8.c: Same.
10708 2015-06-15  Tom de Vries  <tom@codesourcery.com>
10710         * testsuite/libgomp.c/collapse-3.c: Use dg-additional-options for
10711         -std={gnu99,c99}.
10712         * testsuite/libgomp.c/for-1.c: Same.
10713         * testsuite/libgomp.c/for-2.c: Same.
10714         * testsuite/libgomp.c/for-3.c: Same.
10715         * testsuite/libgomp.c/pr35625.c: Same.
10716         * testsuite/libgomp.c/pr39154.c: Same.
10717         * testsuite/libgomp.c/simd-16.c: Same.
10718         * testsuite/libgomp.c/simd-17.c: Same.
10720 2015-06-13  Tom de Vries  <tom@codesourcery.com>
10722         * testsuite/libgomp.c/parloops-exit-first-loop-alt-4.c: New test.
10724 2015-06-13  Tom de Vries  <tom@codesourcery.com>
10726         * testsuite/libgomp.c/parloops-exit-first-loop-alt-2.c: Add comment.
10727         * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: Same.
10728         * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c: Add comment.
10729         (N): Define.
10730         (main): Use N instead of hardcoded constants.
10732 2015-06-05  Tom de Vries  <tom@codesourcery.com>
10734         merge from gomp4 branch:
10735         2015-05-28  Tom de Vries  <tom@codesourcery.com>
10737         PR tree-optimization/65443
10738         * testsuite/libgomp.c/parloops-exit-first-loop-alt-2.c: New test.
10739         * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c: New test.
10740         * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: New test.
10742 2015-05-29  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
10744         * testsuite/libgomp.graphite/bounds.c: Adjust for
10745         cleanup-tree-dump removal.
10746         * testsuite/libgomp.graphite/force-parallel-1.c: Likewise.
10747         * testsuite/libgomp.graphite/force-parallel-2.c: Likewise.
10748         * testsuite/libgomp.graphite/force-parallel-3.c: Likewise.
10749         * testsuite/libgomp.graphite/force-parallel-4.c: Likewise.
10750         * testsuite/libgomp.graphite/force-parallel-5.c: Likewise.
10751         * testsuite/libgomp.graphite/force-parallel-6.c: Likewise.
10752         * testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
10753         * testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
10754         * testsuite/libgomp.graphite/force-parallel-9.c: Likewise.
10755         * testsuite/libgomp.graphite/pr41118.c: Likewise.
10757 2015-05-28  Uros Bizjak  <ubizjak@gmail.com>
10759         * config/linux/x86/futex.h (sys_futex0) [!__x86_64__]: Remove function.
10760         (futex_wait) [!__x86_64__]: Use __asm operand instead of sys_futex0.
10761         (futex_wake) [!__x86_64__]: Ditto.
10763 2015-05-28  Julian Brown  <julian@codesourcery.com>
10765         * oacc-init.c (resolve_device): Add FAIL_IS_ERROR argument. Update
10766         function comment. Only call gomp_fatal if new argument is true.
10767         (acc_dev_num_out_of_range): New function.
10768         (acc_init_1, acc_shutdown_1): Update call to resolve_device. Call
10769         acc_dev_num_out_of_range as appropriate.
10770         (acc_get_num_devices, acc_set_device_type, acc_get_device_type)
10771         (acc_get_device_num, acc_set_device_num): Update calls to
10772         resolve_device.
10773         * testsuite/libgomp.oacc-c-c++-common/lib-4.c: Update expected test
10774         output.
10776 2015-05-28  Julian Brown  <julian@codesourcery.com>
10778         PR libgomp/65742
10779         * oacc-init.c (plugin/plugin-host.h): Include.
10780         (acc_on_device): Check whether we're in an offloaded region for
10781         host_nonshm
10782         plugin. Don't use __builtin_acc_on_device.
10783         * plugin/plugin-host.c (GOMP_OFFLOAD_openacc_parallel): Set
10784         nonshm_exec flag in thread-local data.
10785         (GOMP_OFFLOAD_openacc_create_thread_data): Allocate thread-local
10786         data for host_nonshm plugin.
10787         (GOMP_OFFLOAD_openacc_destroy_thread_data): Free thread-local data
10788         for host_nonshm plugin.
10789         * plugin/plugin-host.h: New.
10791 2015-05-27  Uros Bizjak  <ubizjak@gmail.com>
10793         * config/linux/ia64/futex.h (sys_futex0) Change operand "op" to int.
10795 2015-05-27  Uros Bizjak  <ubizjak@gmail.com>
10797         * config/linux/wait.h (gomp_futex_wait, gomp_futex_wake):
10798         Declare as int.
10799         (FUTEX_PRIVATE_FLAG): Remove L suffix.
10800         * config/linux/mutex.c (gomp_futex_wait, gomp_futex_wake):
10801         Declare as int.
10803 2015-05-27  Uros Bizjak  <ubizjak@gmail.com>
10805         * config/linux/x86/futex.h (sys_futex0) [__PIC__]: Remove function.
10807 2015-05-27  Chung-Lin Tang  <cltang@codesourcery.com>
10809         * target.c (gomp_map_pointer): New function abstracting out
10810         GOMP_MAP_POINTER handling.
10811         (gomp_map_vars): Remove GOMP_MAP_POINTER handling code and use
10812         gomp_map_pointer().
10814 2015-05-19  Jakub Jelinek  <jakub@redhat.com>
10816         PR middle-end/66199
10817         * testsuite/libgomp.c/pr66199-1.c: New test.
10818         * testsuite/libgomp.c/pr66199-2.c: New test.
10819         * testsuite/libgomp.c++/pr66199-1.C: New test.
10820         * testsuite/libgomp.c++/pr66199-2.C: New test.
10821         * testsuite/libgomp.fortran/pr66199-1.f90: New test.
10822         * testsuite/libgomp.fortran/pr66199-2.f90: New test.
10824 2015-05-19  Julian Brown  <julian@codesourcery.com>
10826         * plugin/plugin-nvptx.c (nvptx_get_num_devices): Return zero
10827         on cuInit failure.
10829 2015-05-13  Jakub Jelinek  <jakub@redhat.com>
10831         PR middle-end/66133
10832         * testsuite/libgomp.c/pr66133.c: New test.
10834 2015-05-13  Michael Haubenwallner  <michael.haubenwallner@ssi-schaefer.com>
10836         * Makefile.in: Regenerated with automake-1.11.6.
10837         * aclocal.m4: Likewise.
10838         * config.h.in: Likewise.
10839         * configure: Likewise.
10840         * testsuite/Makefile.in: Likewise.
10842 2015-05-08  Jason Merrill  <jason@redhat.com>
10844         * testsuite/libgomp.oacc-c-c++-common/reduction-4.c (main): Use
10845         _Complex.
10847         * openacc.h (__GOACC_NOTHROW): Fix noexcept syntax.
10849 2015-05-06  Julian Brown  <julian@codesourcery.com>
10851         * oacc-init.c (acc_device_lock): Add explanatory comment.
10852         (resolve_device): Add comment about locking requirement.
10853         (acc_init_1, acc_shutdown_1): Likewise. Add locking around
10854         gomp_init_device and gomp_fini_device calls.
10855         (acc_get_num_devices, acc_set_device_type, acc_get_device_type)
10856         (acc_get_device_num, acc_set_device_num): Add locking around
10857         resolve_device and gomp_init_device calls.
10859 2015-05-06  Julian Brown  <julian@codesourcery.com>
10861         * oacc-init.c (acc_shutdown_1): Call gomp_mutex_unlock for
10862         goacc_thread_lock on error paths.
10863         * oacc-mem.c (lookup_host): Remove locking from function. Note
10864         locking requirement for caller in function comment.
10865         (lookup_dev): Likewise.
10866         (acc_free, acc_deviceptr, acc_hostptr, acc_is_present)
10867         (acc_map_data, acc_unmap_data, present_create_copy, delete_copyout)
10868         (update_dev_host, gomp_acc_insert_pointer, gomp_acc_remove_pointer):
10869         Add locking.
10871 2015-05-05  Thomas Schwinge  <thomas@codesourcery.com>
10873         PR testsuite/65205
10874         PR libgomp/65993
10875         * testsuite/libgomp.oacc-c-c++-common/clauses-2.c: In dg-output,
10876         don't expect "0x" prefix for "%p" format specifier, don't expect
10877         "(nil)" for NULL pointer.
10878         * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
10879         * testsuite/libgomp.oacc-c-c++-common/lib-17.c: Likewise.
10880         * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
10881         * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
10882         * testsuite/libgomp.oacc-c-c++-common/lib-21.c: Likewise.
10883         * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Likewise.
10884         * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
10885         * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
10886         * testsuite/libgomp.oacc-c-c++-common/lib-26.c: Likewise.
10887         * testsuite/libgomp.oacc-c-c++-common/lib-27.c: Likewise.
10888         * testsuite/libgomp.oacc-c-c++-common/lib-28.c: Likewise.
10889         * testsuite/libgomp.oacc-c-c++-common/lib-29.c: Likewise.
10890         * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
10891         * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
10892         * testsuite/libgomp.oacc-c-c++-common/lib-35.c: Likewise.
10893         * testsuite/libgomp.oacc-c-c++-common/lib-36.c: Likewise.
10894         * testsuite/libgomp.oacc-c-c++-common/lib-39.c: Likewise.
10895         * testsuite/libgomp.oacc-c-c++-common/lib-40.c: Likewise.
10896         * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
10897         * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Likewise.
10898         * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
10899         * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Likewise.
10900         * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
10901         * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Likewise.
10902         * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
10903         * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
10904         * testsuite/libgomp.oacc-c-c++-common/lib-57.c: Likewise.
10905         * testsuite/libgomp.oacc-c-c++-common/lib-58.c: Likewise.
10906         * testsuite/libgomp.oacc-c-c++-common/data-already-1.c: More
10907         accurately specify what we're looking for.
10908         * testsuite/libgomp.oacc-c-c++-common/data-already-2.c: Likewise.
10909         * testsuite/libgomp.oacc-c-c++-common/data-already-8.c: Likewise.
10910         * testsuite/libgomp.oacc-fortran/data-already-1.f: Likewise.
10911         * testsuite/libgomp.oacc-fortran/data-already-2.f: Likewise.
10912         * testsuite/libgomp.oacc-fortran/data-already-8.f: Likewise.
10914 2015-04-30  James Norris  <jnorris@codesourcery.com>
10916         PR testsuite/65205
10917         * testsuite/lib/libgomp.exp
10918         (check_effective_target_openacc_host_selected)
10919         (check_effective_target_openacc_host_nonshm_selected): New
10920         procedures.
10921         * testsuite/libgomp.oacc-c-c++-common/clauses-2.c: Fix misuse of
10922         dg-shouldfail.
10923         * testsuite/libgomp.oacc-c-c++-common/lib-1.c: Likewise.
10924         * testsuite/libgomp.oacc-c-c++-common/lib-11.c: Likewise.
10925         * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
10926         * testsuite/libgomp.oacc-c-c++-common/lib-17.c: Likewise.
10927         * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
10928         * testsuite/libgomp.oacc-c-c++-common/lib-2.c: Likewise.
10929         * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
10930         * testsuite/libgomp.oacc-c-c++-common/lib-21.c: Likewise.
10931         * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Likewise.
10932         * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
10933         * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
10934         * testsuite/libgomp.oacc-c-c++-common/lib-26.c: Likewise.
10935         * testsuite/libgomp.oacc-c-c++-common/lib-27.c: Likewise.
10936         * testsuite/libgomp.oacc-c-c++-common/lib-28.c: Likewise.
10937         * testsuite/libgomp.oacc-c-c++-common/lib-29.c: Likewise.
10938         * testsuite/libgomp.oacc-c-c++-common/lib-3.c: Likewise.
10939         * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
10940         * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
10941         * testsuite/libgomp.oacc-c-c++-common/lib-35.c: Likewise.
10942         * testsuite/libgomp.oacc-c-c++-common/lib-36.c: Likewise.
10943         * testsuite/libgomp.oacc-c-c++-common/lib-39.c: Likewise.
10944         * testsuite/libgomp.oacc-c-c++-common/lib-4.c: Likewise.
10945         * testsuite/libgomp.oacc-c-c++-common/lib-40.c: Likewise.
10946         * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
10947         * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Likewise.
10948         * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
10949         * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Likewise.
10950         * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
10951         * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Likewise.
10952         * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
10953         * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
10954         * testsuite/libgomp.oacc-c-c++-common/lib-57.c: Likewise.
10955         * testsuite/libgomp.oacc-c-c++-common/lib-58.c: Likewise.
10956         * testsuite/libgomp.oacc-c-c++-common/lib-62.c: Likewise.
10957         * testsuite/libgomp.oacc-c-c++-common/lib-63.c: Likewise.
10958         * testsuite/libgomp.oacc-c-c++-common/lib-64.c: Likewise.
10959         * testsuite/libgomp.oacc-c-c++-common/lib-65.c: Likewise.
10960         * testsuite/libgomp.oacc-c-c++-common/lib-67.c: Likewise.
10961         * testsuite/libgomp.oacc-c-c++-common/lib-68.c: Likewise.
10962         * testsuite/libgomp.oacc-c-c++-common/lib-71.c: Likewise.
10963         * testsuite/libgomp.oacc-c-c++-common/lib-77.c: Likewise.
10964         * testsuite/libgomp.oacc-c-c++-common/lib-80.c: Likewise.
10965         * testsuite/libgomp.oacc-c-c++-common/present-1.c: Likewise.
10967 2015-04-08  Julian Brown  <julian@codesourcery.com>
10969         * libgomp.h (target_mem_desc: Remove mem_map field.
10970         (acc_dispatch_t): Remove open_device_func, close_device_func,
10971         get_device_num_func, set_device_num_func, target_data members.
10972         Change create_thread_data_func argument to device number instead of
10973         generic pointer.
10974         * oacc-async.c (assert.h): Include.
10975         (acc_async_test, acc_async_test_all, acc_wait, acc_wait_async)
10976         (acc_wait_all, acc_wait_all_async): Use current host thread's
10977         active device, not base_dev.
10978         * oacc-cuda.c (acc_get_current_cuda_device)
10979         (acc_get_current_cuda_context, acc_get_cuda_stream)
10980         (acc_set_cuda_stream): Likewise.
10981         * oacc-host.c (host_dispatch): Don't set open_device_func,
10982         close_device_func, get_device_num_func or set_device_num_func.
10983         * oacc-init.c (base_dev, init_key): Remove.
10984         (cached_base_dev): New.
10985         (name_of_acc_device_t): New.
10986         (acc_init_1): Initialise default-numbered device, not zeroth.
10987         (acc_shutdown_1): Close all devices of a given type.
10988         (goacc_destroy_thread): Don't use base_dev.
10989         (lazy_open, lazy_init, lazy_init_and_open): Remove.
10990         (goacc_attach_host_thread_to_device): New.
10991         (acc_init): Reimplement with goacc_attach_host_thread_to_device.
10992         (acc_get_num_devices): Don't use base_dev.
10993         (acc_set_device_type): Reimplement.
10994         (acc_get_device_type): Don't use base_dev.
10995         (acc_get_device_num): Tweak logic.
10996         (acc_set_device_num): Likewise.
10997         (acc_on_device): Use acc_get_device_type.
10998         (goacc_runtime_initialize): Initialize cached_base_dev not base_dev.
10999         (goacc_lazy_initialize): Reimplement with acc_init and
11000         goacc_attach_host_thread_to_device.
11001         * oacc-int.h (goacc_thread): Add base_dev field.
11002         (base_dev): Remove extern declaration.
11003         (goacc_attach_host_thread_to_device): Add prototype.
11004         * oacc-mem.c (acc_malloc): Use current thread's device instead of
11005         base_dev.
11006         (acc_free): Likewise.
11007         (acc_memcpy_to_device): Likewise.
11008         (acc_memcpy_from_device): Likewise.
11009         * oacc-parallel.c (select_acc_device): Remove. Replace calls with
11010         goacc_lazy_initialize (throughout).
11011         (GOACC_parallel): Use tgt_offset to locate target functions.
11012         * target.c (gomp_map_vars): Don't set tgt->mem_map.
11013         (gomp_unmap_vars): Use devicep->mem_map pointer not tgt->mem_map.
11014         (gomp_load_plugin_for_device): Remove open_device, close_device,
11015         get_device_num, set_device_num openacc hook initialisation. Don't set
11016         openacc.target_data.
11017         * plugin/plugin-host.c (GOMP_OFFLOAD_openacc_open_device)
11018         (GOMP_OFFLOAD_openacc_close_device)
11019         (GOMP_OFFLOAD_openacc_get_device_num)
11020         (GOMP_OFFLOAD_openacc_set_device_num): Remove.
11021         (GOMP_OFFLOAD_openacc_create_thread_data): Change (unused) argument
11022         to int.
11023         * plugin/plugin-nvptx.c (ptx_inited): Remove.
11024         (instantiated_devices, ptx_dev_lock): New.
11025         (struct ptx_image_data): New.
11026         (ptx_devices, ptx_images, ptx_image_lock): New.
11027         (fini_streams_for_device): Reorder cuStreamDestroy call.
11028         (nvptx_get_num_devices): Remove forward declaration.
11029         (nvptx_init): Change return type to bool.
11030         (nvptx_fini): Remove.
11031         (nvptx_attach_host_thread_to_device): New.
11032         (nvptx_open_device): Return struct ptx_device* instead of void*.
11033         (nvptx_close_device): Change argument type to struct ptx_device*,
11034         return type to void.
11035         (nvptx_get_num_devices): Use instantiated_devices not ptx_inited.
11036         (kernel_target_data, kernel_host_table): Remove static globals.
11037         (GOMP_OFFLOAD_register_image, GOMP_OFFLOAD_get_table): Remove.
11038         (GOMP_OFFLOAD_init_device): Reimplement.
11039         (GOMP_OFFLOAD_fini_device): Likewise.
11040         (GOMP_OFFLOAD_load_image, GOMP_OFFLOAD_unload_image): New.
11041         (GOMP_OFFLOAD_alloc, GOMP_OFFLOAD_free, GOMP_OFFLOAD_dev2host)
11042         (GOMP_OFFLOAD_host2dev): Use ORD argument.
11043         (GOMP_OFFLOAD_openacc_open_device)
11044         (GOMP_OFFLOAD_openacc_close_device)
11045         (GOMP_OFFLOAD_openacc_set_device_num)
11046         (GOMP_OFFLOAD_openacc_get_device_num): Remove.
11047         (GOMP_OFFLOAD_openacc_create_thread_data): Change argument to int
11048         (device number).
11050         testsuite/
11051         * libgomp.oacc-c-c++-common/lib-9.c: Fix devnum check in test.
11053 2015-04-06  Ilya Verbin  <ilya.verbin@intel.com>
11055         * libgomp-plugin.h (struct mapping_table): Replace with addr_pair.
11056         * libgomp.h (struct gomp_memory_mapping): Remove.
11057         (struct target_mem_desc): Change type of mem_map from
11058         gomp_memory_mapping * to splay_tree_s *.
11059         (struct gomp_device_descr): Remove register_image_func, get_table_func.
11060         Add load_image_func, unload_image_func.
11061         Change type of mem_map from gomp_memory_mapping to splay_tree_s.
11062         Remove offload_regions_registered.
11063         (gomp_init_tables): Remove.
11064         (gomp_free_memmap): Change type of argument from gomp_memory_mapping *
11065         to splay_tree_s *.
11066         * libgomp.map (GOMP_4.0.1): Add GOMP_offload_unregister.
11067         * oacc-host.c (host_dispatch): Do not initialize register_image_func,
11068         get_table_func, mem_map.is_initialized, mem_map.splay_tree.root,
11069         offload_regions_registered.
11070         Initialize load_image_func, unload_image_func, mem_map.root.
11071         (goacc_host_init): Do not initialize host_dispatch.mem_map.lock.
11072         * oacc-init.c (lazy_open): Don't call gomp_init_tables.
11073         (acc_shutdown_1): Use dev's lock and splay_tree instead of mem_map's.
11074         * oacc-mem.c (lookup_host): Get gomp_device_descr *dev instead of
11075         gomp_memory_mapping *.  Use dev's lock and splay_tree.
11076         (lookup_dev): Use dev's lock.
11077         (acc_deviceptr): Pass dev to lookup_host instead of mem_map.
11078         (acc_is_present): Likewise.
11079         (acc_map_data): Likewise.
11080         (acc_unmap_data): Likewise.  Use dev's lock.
11081         (present_create_copy): Likewise.
11082         (delete_copyout): Pass dev to lookup_host instead of mem_map.
11083         (update_dev_host): Likewise.
11084         (gomp_acc_remove_pointer): Likewise.  Use dev's lock.
11085         * oacc-parallel.c (GOACC_parallel): Use dev's lock and splay_tree.
11086         * plugin/plugin-host.c (GOMP_OFFLOAD_register_image): Remove.
11087         (GOMP_OFFLOAD_get_table): Remove
11088         (GOMP_OFFLOAD_load_image): New function.
11089         (GOMP_OFFLOAD_unload_image): New function.
11090         * target.c (register_lock): New mutex for offload image registration.
11091         (num_devices): Do not guard with PLUGIN_SUPPORT.
11092         (gomp_realloc_unlock): New static function.
11093         (gomp_map_vars_existing): Add device descriptor argument.  Unlock mutex
11094         before gomp_fatal.
11095         (gomp_map_vars): Use dev's lock and splay_tree instead of mem_map's.
11096         Pass devicep to gomp_map_vars_existing.  Unlock mutex before gomp_fatal.
11097         (gomp_copy_from_async): Use dev's lock and splay_tree instead of
11098         mem_map's.
11099         (gomp_unmap_vars): Likewise.
11100         (gomp_update): Remove gomp_memory_mapping argument.  Use dev's lock and
11101         splay_tree instead of mm's.  Unlock mutex before gomp_fatal.
11102         (gomp_offload_image_to_device): New static function.
11103         (GOMP_offload_register): Add mutex lock.
11104         Call gomp_offload_image_to_device for all initialized devices.
11105         Replace gomp_realloc with gomp_realloc_unlock.
11106         (GOMP_offload_unregister): New function.
11107         (gomp_init_tables): Replace with gomp_init_device.  Replace a call to
11108         get_table_func from the plugin with calls to init_device_func and
11109         gomp_offload_image_to_device.
11110         (gomp_free_memmap): Change type of argument from gomp_memory_mapping *
11111         to splay_tree_s *.
11112         (GOMP_target): Do not call gomp_init_tables.  Use dev's lock and
11113         splay_tree instead of mem_map's.  Unlock mutex before gomp_fatal.
11114         (GOMP_target_data): Do not call gomp_init_tables.
11115         (GOMP_target_update): Likewise.  Remove argument from gomp_update.
11116         (gomp_load_plugin_for_device): Replace register_image and get_table
11117         with load_image and unload_image in DLSYM ().
11118         (gomp_register_images_for_device): Remove function.
11119         (gomp_target_init): Do not initialize current_device.mem_map.*,
11120         current_device.offload_regions_registered.
11121         Remove call to gomp_register_images_for_device.
11122         Do not free offload_images and num_offload_images.
11124 2015-03-30  Jakub Jelinek  <jakub@redhat.com>
11126         PR fortran/65597
11127         * testsuite/libgomp.fortran/pr65597.f90: New test.
11129 2015-03-27  Tom de Vries  <tom@codesourcery.com>
11131         PR testsuite/65594
11132         * testsuite/libgomp.graphite/force-parallel-6.c (abort): Declare.
11133         (init, check): New function.
11134         (foo): Change return type to void.
11135         (main): Call init and check.
11137 2015-03-27  Tom de Vries  <tom@codesourcery.com>
11139         PR testsuite/65594
11140         * testsuite/libgomp.graphite/force-parallel-6.c (M): Define.
11141         (foo): Use M for non-inner loops to scale down test-case.
11143 2015-03-25  Kai Tietz  <ktietz@redhat.com>
11145         PR libgomp/64972
11146         * oacc-parallel.c (GOACC_parallel): Use PRIu64 if available.
11147         (GOACC_data_start): Likewise.
11148         * target.c (gomp_map_vars): Likewise.
11150 2015-03-21  John David Anglin  <danglin@gcc.gnu.org>
11152         * testsuite/libgomp.oacc-c-c++-common/reduction-4.c: Don't run on
11153         hppa*-*-hpux*.
11155 2015-03-19  Jakub Jelinek  <jakub@redhat.com>
11157         * testsuite/libgomp.c/target-10.c: New test.
11158         * testsuite/libgomp.c++/target-4.C: New test.
11160 2015-03-13  Ilya Verbin  <ilya.verbin@intel.com>
11162         * testsuite/libgomp.fortran/declare-target-1.f90: New test.
11163         * testsuite/libgomp.fortran/declare-target-2.f90: New file.
11165 2015-03-13  Sebastian Huber  <sebastian.huber@embedded-brains.de>
11167         * configure.tgt (*-*-rtems*): Use local-exec TLS model.
11168         * configure.ac (*-*-rtems*): Assume Pthread is supported.
11169         (pthread.h): Check for this header file.
11170         * configure: Regenerate.
11172 2015-02-25  Tom de Vries  <tom@codesourcery.com>
11174         * testsuite/libgomp.oacc-c-c++-common/reduction-1.c (DO_PRAGMA)
11175         (check_reduction_op, check_reduction_macro, max, min):
11176         Declare.
11177         (test_reductions_int, test_reductions_minmax, test_reductions_bool): New
11178         function.
11179         (main): Use new functions.
11181 2015-02-18  Ilya Tocar  <ilya.tocar@intel.com>
11183         * target.c (gomp_load_plugin_for_device): Use const char * instead of
11184         char * for variables holding dlerror return values.
11185         (DLSYM_OPT): Ditto.
11187 2015-02-17  Thomas Schwinge  <thomas@codesourcery.com>
11189         * libgomp-plugin.c (GOMP_PLUGIN_debug): Fix typo.
11191 2015-02-17  Thomas Schwinge  <thomas@codesourcery.com>
11192             Cesar Philippidis  <cesar@codesourcery.com>
11194         * oacc-ptx.h (GOACC_INTERNAL_PTX): Add GOACC_tid, GOACC_ntid,
11195         GOACC_ctaid, and GOACC_nctaid routines.
11197 2015-02-11  Jakub Jelinek  <jakub@redhat.com>
11199         PR c/64824
11200         * testsuite/libgomp.c/atomic-18.c: New test.
11201         * testsuite/libgomp.c++/atomic-16.C: New test.
11203 2015-02-04  Jakub Jelinek  <jakub@redhat.com>
11205         PR c/64824
11206         PR c/64868
11207         * testsuite/libgomp.c/pr64824.c: New test.
11208         * testsuite/libgomp.c/pr64868.c: New test.
11209         * testsuite/libgomp.c++/pr64824.C: New test.
11210         * testsuite/libgomp.c++/pr64868.C: New test.
11212 2015-02-01  David Edelsohn  <dje.gcc@gmail.com>
11214         PR libgomp/64635
11215         * configure.tgt (*-*-aix*): Use standard posix plugin-suffix.h.
11216         Link with -lpthread.
11217         * config/aix/plugin-suffix.h: Delete.
11219 2015-01-28  Jack Howarth  <howarth.at.gcc@gmail.com>
11221         PR libgomp/64635
11222         * configure.tgt (*-*-aix*): Use config_path "aix posix".
11223         (*-*-darwin*): Use config_path "bsd darwin posix".
11224         (*-*-hpux*): Use config_path "hpux posix".
11225         * target.c: Add include of plugin-suffix.h and use
11226         SONAME_SUFFIX macro.
11227         * config/aix/plugin-suffix.h: New file.
11228         * config/darwin/plugin-suffix.h: New file.
11229         * config/hpux/plugin-suffix.h: New file.
11230         * config/posix/plugin-suffix.h: New file.
11232 2015-01-23  Jakub Jelinek  <jakub@redhat.com>
11234         PR middle-end/64734
11235         * libgomp.c/pr64734.c: New test.
11237 2015-01-23  Tom de Vries  <tom@codesourcery.com>
11239         PR libgomp/64672
11240         * testsuite/libgomp.oacc-c-c++-common/abort-5.c: New test.
11242 2015-01-23  Tom de Vries  <tom@codesourcery.com>
11244         PR libgomp/64707
11245         * testsuite/libgomp.c/target-9.c: Add -ftree-parallelize-loops=0 to
11246         dg-options.
11248 2015-01-19  Thomas Schwinge  <thomas@codesourcery.com>
11250         PR libgomp/64625
11251         * libgomp_g.h (GOACC_data_start, GOACC_enter_exit_data)
11252         (GOACC_parallel, GOACC_update): Remove const_void *offload_table
11253         formal parameter.  Update all users.
11254         * target.c (GOMP_target, GOMP_target_data, GOMP_target_update):
11255         Document unused formal parameter.
11257 2015-01-16  Thomas Schwinge  <thomas@codesourcery.com>
11259         * oacc-parallel.c: Don't include <alloca.h>.
11260         (GOACC_parallel): Use gomp_alloca instead of alloca.
11262 2015-01-16  Gerald Pfeifer  <gerald@pfeifer.com>
11264         * target.c (num_devices): Guard with PLUGIN_SUPPORT.
11266 2015-01-15  Thomas Schwinge  <thomas@codesourcery.com>
11267             James Norris  <jnorris@codesourcery.com>
11268             Tom de Vries  <tom@codesourcery.com>
11269             Julian Brown  <julian@codesourcery.com>
11270             Cesar Philippidis  <cesar@codesourcery.com>
11271             Nathan Sidwell  <nathan@codesourcery.com>
11272             Tobias Burnus  <burnus@net-b.de>
11274         * Makefile.am (search_path): Add $(top_srcdir)/../include.
11275         (libgomp_la_SOURCES): Add splay-tree.c, libgomp-plugin.c,
11276         oacc-parallel.c, oacc-host.c, oacc-init.c, oacc-mem.c,
11277         oacc-async.c, oacc-plugin.c, oacc-cuda.c.
11278         [USE_FORTRAN] (libgomp_la_SOURCES): Add openacc.f90.
11279         Include $(top_srcdir)/plugin/Makefrag.am.
11280         (nodist_libsubinclude_HEADERS): Add openacc.h.
11281         [USE_FORTRAN] (nodist_finclude_HEADERS): Add openacc_lib.h,
11282         openacc.f90, openacc.mod, openacc_kinds.mod.
11283         (omp_lib.mod): Generalize into...
11284         (%.mod): ... this new rule.
11285         (openacc_kinds.mod, openacc.mod): New rules.
11286         * plugin/configfrag.ac: New file.
11287         * configure.ac: Move plugin/offloading support into it.  Include
11288         it.  Instantiate testsuite/libgomp-test-support.pt.exp.
11289         * plugin/Makefrag.am: New file.
11290         * testsuite/Makefile.am (OFFLOAD_TARGETS)
11291         (OFFLOAD_ADDITIONAL_OPTIONS, OFFLOAD_ADDITIONAL_LIB_PATHS): Don't
11292         export.
11293         (libgomp-test-support.exp): New rule.
11294         (all-local): Depend on it.
11295         * Makefile.in: Regenerate.
11296         * testsuite/Makefile.in: Regenerate.
11297         * config.h.in: Likewise.
11298         * configure: Likewise.
11299         * configure.tgt: Harden shell syntax.
11300         * env.c: Include "oacc-int.h".
11301         (parse_acc_device_type): New function.
11302         (gomp_debug_var, goacc_device_type, goacc_device_num): New
11303         variables.
11304         (initialize_env): Initialize those.  Call
11305         goacc_runtime_initialize.
11306         * error.c (gomp_vdebug, gomp_debug, gomp_vfatal): New functions.
11307         (gomp_fatal): Call gomp_vfatal.
11308         * libgomp.h: Include "libgomp-plugin.h" and <stdarg.h>.
11309         (gomp_debug_var, goacc_device_type, goacc_device_num, gomp_vdebug)
11310         (gomp_debug, gomp_verror, gomp_vfatal, gomp_init_targets_once)
11311         (splay_tree_node, splay_tree, splay_tree_key)
11312         (struct target_mem_desc, struct splay_tree_key_s)
11313         (struct gomp_memory_mapping, struct acc_dispatch_t)
11314         (struct gomp_device_descr, gomp_acc_insert_pointer)
11315         (gomp_acc_remove_pointer, target_mem_desc, gomp_copy_from_async)
11316         (gomp_unmap_vars, gomp_init_device, gomp_init_tables)
11317         (gomp_free_memmap, gomp_fini_device): New declarations.
11318         (gomp_vdebug, gomp_debug): New macros.
11319         Include "splay-tree.h".
11320         * libgomp.map (OACC_2.0): New symbol version.  Use for
11321         acc_get_num_devices, acc_get_num_devices_h_, acc_set_device_type,
11322         acc_set_device_type_h_, acc_get_device_type,
11323         acc_get_device_type_h_, acc_set_device_num, acc_set_device_num_h_,
11324         acc_get_device_num, acc_get_device_num_h_, acc_async_test,
11325         acc_async_test_h_, acc_async_test_all, acc_async_test_all_h_,
11326         acc_wait, acc_wait_h_, acc_wait_async, acc_wait_async_h_,
11327         acc_wait_all, acc_wait_all_h_, acc_wait_all_async,
11328         acc_wait_all_async_h_, acc_init, acc_init_h_, acc_shutdown,
11329         acc_shutdown_h_, acc_on_device, acc_on_device_h_, acc_malloc,
11330         acc_free, acc_copyin, acc_copyin_32_h_, acc_copyin_64_h_,
11331         acc_copyin_array_h_, acc_present_or_copyin,
11332         acc_present_or_copyin_32_h_, acc_present_or_copyin_64_h_,
11333         acc_present_or_copyin_array_h_, acc_create, acc_create_32_h_,
11334         acc_create_64_h_, acc_create_array_h_, acc_present_or_create,
11335         acc_present_or_create_32_h_, acc_present_or_create_64_h_,
11336         acc_present_or_create_array_h_, acc_copyout, acc_copyout_32_h_,
11337         acc_copyout_64_h_, acc_copyout_array_h_, acc_delete,
11338         acc_delete_32_h_, acc_delete_64_h_, acc_delete_array_h_,
11339         acc_update_device, acc_update_device_32_h_,
11340         acc_update_device_64_h_, acc_update_device_array_h_,
11341         acc_update_self, acc_update_self_32_h_, acc_update_self_64_h_,
11342         acc_update_self_array_h_, acc_map_data, acc_unmap_data,
11343         acc_deviceptr, acc_hostptr, acc_is_present, acc_is_present_32_h_,
11344         acc_is_present_64_h_, acc_is_present_array_h_,
11345         acc_memcpy_to_device, acc_memcpy_from_device,
11346         acc_get_current_cuda_device, acc_get_current_cuda_context,
11347         acc_get_cuda_stream, acc_set_cuda_stream.
11348         (GOACC_2.0): New symbol version.  Use for GOACC_data_end,
11349         GOACC_data_start, GOACC_enter_exit_data, GOACC_parallel,
11350         GOACC_update, GOACC_wait, GOACC_get_thread_num,
11351         GOACC_get_num_threads.
11352         (GOMP_PLUGIN_1.0): New symbol version.  Use for
11353         GOMP_PLUGIN_malloc, GOMP_PLUGIN_malloc_cleared,
11354         GOMP_PLUGIN_realloc, GOMP_PLUGIN_debug, GOMP_PLUGIN_error,
11355         GOMP_PLUGIN_fatal, GOMP_PLUGIN_async_unmap_vars,
11356         GOMP_PLUGIN_acc_thread.
11357         * libgomp.texi: Update for OpenACC changes, and GOMP_DEBUG
11358         environment variable.
11359         * libgomp_g.h (GOACC_data_start, GOACC_data_end)
11360         (GOACC_enter_exit_data, GOACC_parallel, GOACC_update, GOACC_wait)
11361         (GOACC_get_num_threads, GOACC_get_thread_num): New declarations.
11362         * splay-tree.h (splay_tree_lookup, splay_tree_insert)
11363         (splay_tree_remove): New declarations.
11364         (rotate_left, rotate_right, splay_tree_splay, splay_tree_insert)
11365         (splay_tree_remove, splay_tree_lookup): Move into...
11366         * splay-tree.c: ... this new file.
11367         * target.c: Include "oacc-plugin.h", "oacc-int.h", <assert.h>.
11368         (splay_tree_node, splay_tree, splay_tree_key)
11369         (struct target_mem_desc, struct splay_tree_key_s)
11370         (struct gomp_device_descr): Don't declare.
11371         (num_devices_openmp): New variable.
11372         (gomp_get_num_devices ): Use it.
11373         (gomp_init_targets_once): New function.
11374         (gomp_get_num_devices ): Use it.
11375         (get_kind, gomp_copy_from_async, gomp_free_memmap)
11376         (gomp_fini_device, gomp_register_image_for_device): New functions.
11377         (gomp_map_vars): Add devaddrs parameter.
11378         (gomp_update): Add mm parameter.
11379         (gomp_init_device): Move most of it into...
11380         (gomp_init_tables): ... this new function.
11381         (gomp_register_images_for_device): Remove function.
11382         (splay_compare, gomp_map_vars, gomp_unmap_vars, gomp_init_device):
11383         Make them hidden instead of static.
11384         (gomp_map_vars_existing, gomp_map_vars, gomp_unmap_vars)
11385         (gomp_update, gomp_init_device, GOMP_target, GOMP_target_data)
11386         (GOMP_target_end_data, GOMP_target_update)
11387         (gomp_load_plugin_for_device, gomp_target_init): Update for
11388         OpenACC changes.
11389         * oacc-async.c: New file.
11390         * oacc-cuda.c: Likewise.
11391         * oacc-host.c: Likewise.
11392         * oacc-init.c: Likewise.
11393         * oacc-int.h: Likewise.
11394         * oacc-mem.c: Likewise.
11395         * oacc-parallel.c: Likewise.
11396         * oacc-plugin.c: Likewise.
11397         * oacc-plugin.h: Likewise.
11398         * oacc-ptx.h: Likewise.
11399         * openacc.f90: Likewise.
11400         * openacc.h: Likewise.
11401         * openacc_lib.h: Likewise.
11402         * plugin/plugin-host.c: Likewise.
11403         * plugin/plugin-nvptx.c: Likewise.
11404         * libgomp-plugin.c: Likewise.
11405         * libgomp-plugin.h: Likewise.
11406         * libgomp_target.h: Remove file after merging content into the
11407         former file.  Update all users.
11408         * testsuite/lib/libgomp.exp: Load libgomp-test-support.exp.
11409         (offload_targets_s, offload_targets_s_openacc): New variables.
11410         (check_effective_target_openacc_nvidia_accel_present)
11411         (check_effective_target_openacc_nvidia_accel_selected): New
11412         procedures.
11413         (libgomp_init): Update for OpenACC changes.
11414         * testsuite/libgomp-test-support.exp.in: New file.
11415         * testsuite/libgomp.oacc-c++/c++.exp: Likewise.
11416         * testsuite/libgomp.oacc-c/c.exp: Likewise.
11417         * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
11418         * testsuite/libgomp.oacc-c-c++-common/abort-1.c: Likewise.
11419         * testsuite/libgomp.oacc-c-c++-common/abort-2.c: Likewise.
11420         * testsuite/libgomp.oacc-c-c++-common/abort-3.c: Likewise.
11421         * testsuite/libgomp.oacc-c-c++-common/abort-4.c: Likewise.
11422         * testsuite/libgomp.oacc-c-c++-common/acc_on_device-1.c: Likewise.
11423         * testsuite/libgomp.oacc-c-c++-common/asyncwait-1.c: Likewise.
11424         * testsuite/libgomp.oacc-c-c++-common/cache-1.c: Likewise.
11425         * testsuite/libgomp.oacc-c-c++-common/clauses-1.c: Likewise.
11426         * testsuite/libgomp.oacc-c-c++-common/clauses-2.c: Likewise.
11427         * testsuite/libgomp.oacc-c-c++-common/collapse-1.c: Likewise.
11428         * testsuite/libgomp.oacc-c-c++-common/collapse-2.c: Likewise.
11429         * testsuite/libgomp.oacc-c-c++-common/collapse-3.c: Likewise.
11430         * testsuite/libgomp.oacc-c-c++-common/collapse-4.c: Likewise.
11431         * testsuite/libgomp.oacc-c-c++-common/context-1.c: Likewise.
11432         * testsuite/libgomp.oacc-c-c++-common/context-2.c: Likewise.
11433         * testsuite/libgomp.oacc-c-c++-common/context-3.c: Likewise.
11434         * testsuite/libgomp.oacc-c-c++-common/context-4.c: Likewise.
11435         * testsuite/libgomp.oacc-c-c++-common/data-1.c: Likewise.
11436         * testsuite/libgomp.oacc-c-c++-common/data-2.c: Likewise.
11437         * testsuite/libgomp.oacc-c-c++-common/data-3.c: Likewise.
11438         * testsuite/libgomp.oacc-c-c++-common/data-already-1.c: Likewise.
11439         * testsuite/libgomp.oacc-c-c++-common/data-already-2.c: Likewise.
11440         * testsuite/libgomp.oacc-c-c++-common/data-already-3.c: Likewise.
11441         * testsuite/libgomp.oacc-c-c++-common/data-already-4.c: Likewise.
11442         * testsuite/libgomp.oacc-c-c++-common/data-already-5.c: Likewise.
11443         * testsuite/libgomp.oacc-c-c++-common/data-already-6.c: Likewise.
11444         * testsuite/libgomp.oacc-c-c++-common/data-already-7.c: Likewise.
11445         * testsuite/libgomp.oacc-c-c++-common/data-already-8.c: Likewise.
11446         * testsuite/libgomp.oacc-c-c++-common/deviceptr-1.c: Likewise.
11447         * testsuite/libgomp.oacc-c-c++-common/if-1.c: Likewise.
11448         * testsuite/libgomp.oacc-c-c++-common/kernels-1.c: Likewise.
11449         * testsuite/libgomp.oacc-c-c++-common/kernels-empty.c: Likewise.
11450         * testsuite/libgomp.oacc-c-c++-common/lib-1.c: Likewise.
11451         * testsuite/libgomp.oacc-c-c++-common/lib-10.c: Likewise.
11452         * testsuite/libgomp.oacc-c-c++-common/lib-11.c: Likewise.
11453         * testsuite/libgomp.oacc-c-c++-common/lib-12.c: Likewise.
11454         * testsuite/libgomp.oacc-c-c++-common/lib-13.c: Likewise.
11455         * testsuite/libgomp.oacc-c-c++-common/lib-14.c: Likewise.
11456         * testsuite/libgomp.oacc-c-c++-common/lib-15.c: Likewise.
11457         * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
11458         * testsuite/libgomp.oacc-c-c++-common/lib-17.c: Likewise.
11459         * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
11460         * testsuite/libgomp.oacc-c-c++-common/lib-19.c: Likewise.
11461         * testsuite/libgomp.oacc-c-c++-common/lib-2.c: Likewise.
11462         * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
11463         * testsuite/libgomp.oacc-c-c++-common/lib-21.c: Likewise.
11464         * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Likewise.
11465         * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
11466         * testsuite/libgomp.oacc-c-c++-common/lib-24.c: Likewise.
11467         * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
11468         * testsuite/libgomp.oacc-c-c++-common/lib-26.c: Likewise.
11469         * testsuite/libgomp.oacc-c-c++-common/lib-27.c: Likewise.
11470         * testsuite/libgomp.oacc-c-c++-common/lib-28.c: Likewise.
11471         * testsuite/libgomp.oacc-c-c++-common/lib-29.c: Likewise.
11472         * testsuite/libgomp.oacc-c-c++-common/lib-3.c: Likewise.
11473         * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
11474         * testsuite/libgomp.oacc-c-c++-common/lib-31.c: Likewise.
11475         * testsuite/libgomp.oacc-c-c++-common/lib-32.c: Likewise.
11476         * testsuite/libgomp.oacc-c-c++-common/lib-33.c: Likewise.
11477         * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
11478         * testsuite/libgomp.oacc-c-c++-common/lib-35.c: Likewise.
11479         * testsuite/libgomp.oacc-c-c++-common/lib-36.c: Likewise.
11480         * testsuite/libgomp.oacc-c-c++-common/lib-37.c: Likewise.
11481         * testsuite/libgomp.oacc-c-c++-common/lib-38.c: Likewise.
11482         * testsuite/libgomp.oacc-c-c++-common/lib-39.c: Likewise.
11483         * testsuite/libgomp.oacc-c-c++-common/lib-4.c: Likewise.
11484         * testsuite/libgomp.oacc-c-c++-common/lib-40.c: Likewise.
11485         * testsuite/libgomp.oacc-c-c++-common/lib-41.c: Likewise.
11486         * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
11487         * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Likewise.
11488         * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
11489         * testsuite/libgomp.oacc-c-c++-common/lib-45.c: Likewise.
11490         * testsuite/libgomp.oacc-c-c++-common/lib-46.c: Likewise.
11491         * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Likewise.
11492         * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
11493         * testsuite/libgomp.oacc-c-c++-common/lib-49.c: Likewise.
11494         * testsuite/libgomp.oacc-c-c++-common/lib-5.c: Likewise.
11495         * testsuite/libgomp.oacc-c-c++-common/lib-50.c: Likewise.
11496         * testsuite/libgomp.oacc-c-c++-common/lib-51.c: Likewise.
11497         * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Likewise.
11498         * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
11499         * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
11500         * testsuite/libgomp.oacc-c-c++-common/lib-55.c: Likewise.
11501         * testsuite/libgomp.oacc-c-c++-common/lib-56.c: Likewise.
11502         * testsuite/libgomp.oacc-c-c++-common/lib-57.c: Likewise.
11503         * testsuite/libgomp.oacc-c-c++-common/lib-58.c: Likewise.
11504         * testsuite/libgomp.oacc-c-c++-common/lib-59.c: Likewise.
11505         * testsuite/libgomp.oacc-c-c++-common/lib-6.c: Likewise.
11506         * testsuite/libgomp.oacc-c-c++-common/lib-60.c: Likewise.
11507         * testsuite/libgomp.oacc-c-c++-common/lib-61.c: Likewise.
11508         * testsuite/libgomp.oacc-c-c++-common/lib-62.c: Likewise.
11509         * testsuite/libgomp.oacc-c-c++-common/lib-63.c: Likewise.
11510         * testsuite/libgomp.oacc-c-c++-common/lib-64.c: Likewise.
11511         * testsuite/libgomp.oacc-c-c++-common/lib-65.c: Likewise.
11512         * testsuite/libgomp.oacc-c-c++-common/lib-66.c: Likewise.
11513         * testsuite/libgomp.oacc-c-c++-common/lib-67.c: Likewise.
11514         * testsuite/libgomp.oacc-c-c++-common/lib-68.c: Likewise.
11515         * testsuite/libgomp.oacc-c-c++-common/lib-69.c: Likewise.
11516         * testsuite/libgomp.oacc-c-c++-common/lib-7.c: Likewise.
11517         * testsuite/libgomp.oacc-c-c++-common/lib-70.c: Likewise.
11518         * testsuite/libgomp.oacc-c-c++-common/lib-71.c: Likewise.
11519         * testsuite/libgomp.oacc-c-c++-common/lib-72.c: Likewise.
11520         * testsuite/libgomp.oacc-c-c++-common/lib-73.c: Likewise.
11521         * testsuite/libgomp.oacc-c-c++-common/lib-74.c: Likewise.
11522         * testsuite/libgomp.oacc-c-c++-common/lib-75.c: Likewise.
11523         * testsuite/libgomp.oacc-c-c++-common/lib-76.c: Likewise.
11524         * testsuite/libgomp.oacc-c-c++-common/lib-77.c: Likewise.
11525         * testsuite/libgomp.oacc-c-c++-common/lib-78.c: Likewise.
11526         * testsuite/libgomp.oacc-c-c++-common/lib-79.c: Likewise.
11527         * testsuite/libgomp.oacc-c-c++-common/lib-80.c: Likewise.
11528         * testsuite/libgomp.oacc-c-c++-common/lib-81.c: Likewise.
11529         * testsuite/libgomp.oacc-c-c++-common/lib-82.c: Likewise.
11530         * testsuite/libgomp.oacc-c-c++-common/lib-83.c: Likewise.
11531         * testsuite/libgomp.oacc-c-c++-common/lib-84.c: Likewise.
11532         * testsuite/libgomp.oacc-c-c++-common/lib-85.c: Likewise.
11533         * testsuite/libgomp.oacc-c-c++-common/lib-86.c: Likewise.
11534         * testsuite/libgomp.oacc-c-c++-common/lib-87.c: Likewise.
11535         * testsuite/libgomp.oacc-c-c++-common/lib-88.c: Likewise.
11536         * testsuite/libgomp.oacc-c-c++-common/lib-89.c: Likewise.
11537         * testsuite/libgomp.oacc-c-c++-common/lib-9.c: Likewise.
11538         * testsuite/libgomp.oacc-c-c++-common/lib-90.c: Likewise.
11539         * testsuite/libgomp.oacc-c-c++-common/lib-91.c: Likewise.
11540         * testsuite/libgomp.oacc-c-c++-common/lib-92.c: Likewise.
11541         * testsuite/libgomp.oacc-c-c++-common/nested-1.c: Likewise.
11542         * testsuite/libgomp.oacc-c-c++-common/nested-2.c: Likewise.
11543         * testsuite/libgomp.oacc-c-c++-common/offset-1.c: Likewise.
11544         * testsuite/libgomp.oacc-c-c++-common/parallel-1.c: Likewise.
11545         * testsuite/libgomp.oacc-c-c++-common/parallel-empty.c: Likewise.
11546         * testsuite/libgomp.oacc-c-c++-common/pointer-align-1.c: Likewise.
11547         * testsuite/libgomp.oacc-c-c++-common/present-1.c: Likewise.
11548         * testsuite/libgomp.oacc-c-c++-common/present-2.c: Likewise.
11549         * testsuite/libgomp.oacc-c-c++-common/reduction-1.c: Likewise.
11550         * testsuite/libgomp.oacc-c-c++-common/reduction-2.c: Likewise.
11551         * testsuite/libgomp.oacc-c-c++-common/reduction-3.c: Likewise.
11552         * testsuite/libgomp.oacc-c-c++-common/reduction-4.c: Likewise.
11553         * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Likewise.
11554         * testsuite/libgomp.oacc-c-c++-common/reduction-initial-1.c:
11555         Likewise.
11556         * testsuite/libgomp.oacc-c-c++-common/subr.h: Likewise.
11557         * testsuite/libgomp.oacc-c-c++-common/subr.ptx: Likewise.
11558         * testsuite/libgomp.oacc-c-c++-common/timer.h: Likewise.
11559         * testsuite/libgomp.oacc-c-c++-common/update-1-2.c: Likewise.
11560         * testsuite/libgomp.oacc-c-c++-common/update-1.c: Likewise.
11561         * testsuite/libgomp.oacc-fortran/abort-1.f90: Likewise.
11562         * testsuite/libgomp.oacc-fortran/abort-2.f90: Likewise.
11563         * testsuite/libgomp.oacc-fortran/acc_on_device-1-1.f90: Likewise.
11564         * testsuite/libgomp.oacc-fortran/acc_on_device-1-2.f: Likewise.
11565         * testsuite/libgomp.oacc-fortran/acc_on_device-1-3.f: Likewise.
11566         * testsuite/libgomp.oacc-fortran/asyncwait-1.f90: Likewise.
11567         * testsuite/libgomp.oacc-fortran/asyncwait-2.f90: Likewise.
11568         * testsuite/libgomp.oacc-fortran/asyncwait-3.f90: Likewise.
11569         * testsuite/libgomp.oacc-fortran/collapse-1.f90: Likewise.
11570         * testsuite/libgomp.oacc-fortran/collapse-2.f90: Likewise.
11571         * testsuite/libgomp.oacc-fortran/collapse-3.f90: Likewise.
11572         * testsuite/libgomp.oacc-fortran/collapse-4.f90: Likewise.
11573         * testsuite/libgomp.oacc-fortran/collapse-5.f90: Likewise.
11574         * testsuite/libgomp.oacc-fortran/collapse-6.f90: Likewise.
11575         * testsuite/libgomp.oacc-fortran/collapse-7.f90: Likewise.
11576         * testsuite/libgomp.oacc-fortran/collapse-8.f90: Likewise.
11577         * testsuite/libgomp.oacc-fortran/data-1.f90: Likewise.
11578         * testsuite/libgomp.oacc-fortran/data-2.f90: Likewise.
11579         * testsuite/libgomp.oacc-fortran/data-3.f90: Likewise.
11580         * testsuite/libgomp.oacc-fortran/data-4-2.f90: Likewise.
11581         * testsuite/libgomp.oacc-fortran/data-4.f90: Likewise.
11582         * testsuite/libgomp.oacc-fortran/data-already-1.f: Likewise.
11583         * testsuite/libgomp.oacc-fortran/data-already-2.f: Likewise.
11584         * testsuite/libgomp.oacc-fortran/data-already-3.f: Likewise.
11585         * testsuite/libgomp.oacc-fortran/data-already-4.f: Likewise.
11586         * testsuite/libgomp.oacc-fortran/data-already-5.f: Likewise.
11587         * testsuite/libgomp.oacc-fortran/data-already-6.f: Likewise.
11588         * testsuite/libgomp.oacc-fortran/data-already-7.f: Likewise.
11589         * testsuite/libgomp.oacc-fortran/data-already-8.f: Likewise.
11590         * testsuite/libgomp.oacc-fortran/lib-1.f90: Likewise.
11591         * testsuite/libgomp.oacc-fortran/lib-10.f90: Likewise.
11592         * testsuite/libgomp.oacc-fortran/lib-2.f: Likewise.
11593         * testsuite/libgomp.oacc-fortran/lib-3.f: Likewise.
11594         * testsuite/libgomp.oacc-fortran/lib-4.f90: Likewise.
11595         * testsuite/libgomp.oacc-fortran/lib-5.f90: Likewise.
11596         * testsuite/libgomp.oacc-fortran/lib-6.f90: Likewise.
11597         * testsuite/libgomp.oacc-fortran/lib-7.f90: Likewise.
11598         * testsuite/libgomp.oacc-fortran/lib-8.f90: Likewise.
11599         * testsuite/libgomp.oacc-fortran/map-1.f90: Likewise.
11600         * testsuite/libgomp.oacc-fortran/openacc_version-1.f: Likewise.
11601         * testsuite/libgomp.oacc-fortran/openacc_version-2.f90: Likewise.
11602         * testsuite/libgomp.oacc-fortran/pointer-align-1.f90: Likewise.
11603         * testsuite/libgomp.oacc-fortran/pset-1.f90: Likewise.
11604         * testsuite/libgomp.oacc-fortran/reduction-1.f90: Likewise.
11605         * testsuite/libgomp.oacc-fortran/reduction-2.f90: Likewise.
11606         * testsuite/libgomp.oacc-fortran/reduction-3.f90: Likewise.
11607         * testsuite/libgomp.oacc-fortran/reduction-4.f90: Likewise.
11608         * testsuite/libgomp.oacc-fortran/reduction-5.f90: Likewise.
11609         * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
11610         * testsuite/libgomp.oacc-fortran/routine-1.f90: Likewise.
11611         * testsuite/libgomp.oacc-fortran/routine-2.f90: Likewise.
11612         * testsuite/libgomp.oacc-fortran/routine-3.f90: Likewise.
11613         * testsuite/libgomp.oacc-fortran/routine-4.f90: Likewise.
11614         * testsuite/libgomp.oacc-fortran/subarrays-1.f90: Likewise.
11615         * testsuite/libgomp.oacc-fortran/subarrays-2.f90: Likewise.
11617 2015-01-10  Thomas Schwinge  <thomas@codesourcery.com>
11618             Julian Brown  <julian@codesourcery.com>
11619             David Malcolm  <dmalcolm@redhat.com>
11621         * configure.ac: Rename libgomp from "GNU OpenMP Runtime Library"
11622         to "GNU Offloading and Multi Processing Runtime Library".  Change
11623         all users.
11624         * configure: Regenerate.
11625         * libgomp.texi: Update.
11627 2015-01-08  Thomas Schwinge  <thomas@codesourcery.com>
11629         * configure.ac [tgt_dir] (offload_additional_lib_paths): Also add
11630         "$tgt_dir/lib32".
11631         * configure: Regenerate.
11633         * testsuite/lib/libgomp.exp (libgomp_init): Correctly match
11634         "intelmic" in $offload_targets.
11636 2015-01-05  Jakub Jelinek  <jakub@redhat.com>
11638         Update copyright years.
11640         * libgomp.texi: Bump @copying's copyright year.
11642 2014-12-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
11644         * testsuite/lib/libgomp.exp: Load target-utils.exp.
11645         Move load of target-supports.exp earlier.
11647 2014-12-10  Ilya Verbin  <ilya.verbin@intel.com>
11649         * testsuite/libgomp.c/target-9.c: New test.
11651 2014-12-09  Varvara Rainchik  <varvara.rainchik@intel.com>
11653         * config.h.in: Regenerate.
11654         * configure: Regenerate.
11655         * configure.ac: Add GCC_CHECK_EMUTLS.
11656         * libgomp.h: Add check for USE_EMUTLS: this case
11657         is equal to HAVE_TLS.
11658         * team.c: Likewise.
11660 2014-12-03  Uros Bizjak  <ubizjak@gmail.com>
11662         * configure.tgt (x86_64-*-linux*): Tune -m32 multilib to generic.
11664 2014-11-28  Andrey Turetskiy  <andrey.turetskiy@intel.com>
11665             Ilya Verbin  <ilya.verbin@intel.com>
11667         * testsuite/libgomp.c/target-critical-1.c: New test.
11669 2014-11-26  Jakub Jelinek  <jakub@redhat.com>
11671         * testsuite/libgomp.c/examples-4/e.53.4.c: Add -DITESTITERS=20
11672         to dg-options unless expensive testing is on.
11673         (TESTITERS): Define to N if not defined.
11674         (main): Use TESTITERS instead of N.
11675         * testsuite/libgomp.c/examples-4/e.55.1.c: Define CHUNKSZ from
11676         dg-additional-options depending on whether expensive testing is on.
11677         * testsuite/libgomp.fortran/examples-4/e.55.1.f90 (e_55_1_mod):
11678         Decrease N to 100000 and CHUNKSZ to 10000.
11680 2014-11-24  Jakub Jelinek  <jakub@redhat.com>
11682         PR fortran/63938
11683         * testsuite/libgomp.fortran/pr63938-1.f90: New test.
11684         * testsuite/libgomp.fortran/pr63938-2.f90: New test.
11686 2014-11-21  Steve Ellcey  <sellcey@imgtec.com>
11688         * config/linux/mips/futex.h (SYS_futex): Define if not already done.
11690 2014-11-21  H.J. Lu  <hongjiu.lu@intel.com>
11692         PR bootstrap/63784
11693         * configure: Regenerated.
11695 2014-11-19  Uros Bizjak  <ubizjak@gmail.com>
11697         * testsuite/libgomp.c/examples-4/e.53.5.c: Require
11698         vect_simd_clones effective target.
11699         * testsuite/libgomp.fortran/examples-4/e.53.5.f90: Ditto.
11701 2014-11-14  Jakub Jelinek  <jakub@redhat.com>
11703         * libgomp.c/examples-4/e.54.2.c (main): Use N / 8 instead
11704         of 32 as block_size.
11705         * libgomp.fortran/examples-4/e.54.2.f90 (e_54_1): Use n / 8
11706         instead of 32 as block_size.
11708 2014-11-13  Andrey Turetskiy  <andrey.turetskiy@intel.com>
11709             Ilya Verbin  <ilya.verbin@intel.com>
11711         * Makefile.in: Regenerate.
11712         * configure: Regenerate.
11713         * configure.ac: Set up offload_additional_options,
11714         offload_additional_lib_paths and offload_targets.
11715         * testsuite/Makefile.am: Export environment variables: OFFLOAD_TARGETS,
11716         OFFLOAD_ADDITIONAL_OPTIONS, OFFLOAD_ADDITIONAL_LIB_PATHS.
11717         * testsuite/Makefile.in: Regenerate.
11718         * testsuite/lib/libgomp.exp (libgomp_init): Append
11719         offload_additional_lib_paths to LD_LIBRARY_PATH.  Append
11720         offload_additional_options to ALWAYS_CFLAGS.  Append liboffloadmic
11721         build directory to LD_LIBRARY_PATH for intelmic offload targets.
11723 2014-11-13  Andrey Turetskiy  <andrey.turetskiy@intel.com>
11724             Ilya Verbin  <ilya.verbin@intel.com>
11725             Kirill Yukhin  <kirill.yukhin@intel.com>
11726             Ilya Tocar  <ilya.tocar@intel.com>
11728         * testsuite/lib/libgomp.exp
11729         (check_effective_target_offload_device): New.
11730         * testsuite/libgomp.c++/c++.exp: Include tests from subdirectories.
11731         * testsuite/libgomp.c++/examples-4/e.51.5.C: New test.
11732         * testsuite/libgomp.c++/examples-4/e.53.2.C: Ditto.
11733         * testsuite/libgomp.c/examples-4/e.50.1.c: Ditto.
11734         * testsuite/libgomp.c/examples-4/e.50.2.c: Ditto.
11735         * testsuite/libgomp.c/examples-4/e.50.3.c: Ditto.
11736         * testsuite/libgomp.c/examples-4/e.50.4.c: Ditto.
11737         * testsuite/libgomp.c/examples-4/e.50.5.c: Ditto.
11738         * testsuite/libgomp.c/examples-4/e.51.1.c: Ditto.
11739         * testsuite/libgomp.c/examples-4/e.51.2.c: Ditto.
11740         * testsuite/libgomp.c/examples-4/e.51.3.c: Ditto.
11741         * testsuite/libgomp.c/examples-4/e.51.4.c: Ditto.
11742         * testsuite/libgomp.c/examples-4/e.51.6.c: Ditto.
11743         * testsuite/libgomp.c/examples-4/e.51.7.c: Ditto.
11744         * testsuite/libgomp.c/examples-4/e.52.1.c: Ditto.
11745         * testsuite/libgomp.c/examples-4/e.52.2.c: Ditto.
11746         * testsuite/libgomp.c/examples-4/e.53.1.c: Ditto.
11747         * testsuite/libgomp.c/examples-4/e.53.3.c: Ditto.
11748         * testsuite/libgomp.c/examples-4/e.53.4.c: Ditto.
11749         * testsuite/libgomp.c/examples-4/e.53.5.c: Ditto.
11750         * testsuite/libgomp.c/examples-4/e.54.2.c: Ditto.
11751         * testsuite/libgomp.c/examples-4/e.54.3.c: Ditto.
11752         * testsuite/libgomp.c/examples-4/e.54.4.c: Ditto.
11753         * testsuite/libgomp.c/examples-4/e.54.5.c: Ditto.
11754         * testsuite/libgomp.c/examples-4/e.54.6.c: Ditto.
11755         * testsuite/libgomp.c/examples-4/e.55.1.c: Ditto.
11756         * testsuite/libgomp.c/examples-4/e.55.2.c: Ditto.
11757         * testsuite/libgomp.c/examples-4/e.56.3.c: Ditto.
11758         * testsuite/libgomp.c/examples-4/e.56.4.c: Ditto.
11759         * testsuite/libgomp.c/examples-4/e.57.1.c: Ditto.
11760         * testsuite/libgomp.c/examples-4/e.57.2.c: Ditto.
11761         * testsuite/libgomp.c/examples-4/e.57.3.c: Ditto.
11762         * testsuite/libgomp.c/target-7.c: Fix test.
11763         * testsuite/libgomp.fortran/examples-4/e.50.1.f90: New test.
11764         * testsuite/libgomp.fortran/examples-4/e.50.2.f90: Ditto.
11765         * testsuite/libgomp.fortran/examples-4/e.50.3.f90: Ditto.
11766         * testsuite/libgomp.fortran/examples-4/e.50.4.f90: Ditto.
11767         * testsuite/libgomp.fortran/examples-4/e.50.5.f90: Ditto.
11768         * testsuite/libgomp.fortran/examples-4/e.51.1.f90: Ditto.
11769         * testsuite/libgomp.fortran/examples-4/e.51.2.f90: Ditto.
11770         * testsuite/libgomp.fortran/examples-4/e.51.3.f90: Ditto.
11771         * testsuite/libgomp.fortran/examples-4/e.51.4.f90: Ditto.
11772         * testsuite/libgomp.fortran/examples-4/e.51.5.f90: Ditto.
11773         * testsuite/libgomp.fortran/examples-4/e.51.6.f90: Ditto.
11774         * testsuite/libgomp.fortran/examples-4/e.51.7.f90: Ditto.
11775         * testsuite/libgomp.fortran/examples-4/e.52.1.f90: Ditto.
11776         * testsuite/libgomp.fortran/examples-4/e.52.2.f90: Ditto.
11777         * testsuite/libgomp.fortran/examples-4/e.53.1.f90: Ditto.
11778         * testsuite/libgomp.fortran/examples-4/e.53.2.f90: Ditto.
11779         * testsuite/libgomp.fortran/examples-4/e.53.3.f90: Ditto.
11780         * testsuite/libgomp.fortran/examples-4/e.53.4.f90: Ditto.
11781         * testsuite/libgomp.fortran/examples-4/e.53.5.f90: Ditto.
11782         * testsuite/libgomp.fortran/examples-4/e.54.2.f90: Ditto.
11783         * testsuite/libgomp.fortran/examples-4/e.54.3.f90: Ditto.
11784         * testsuite/libgomp.fortran/examples-4/e.54.4.f90: Ditto.
11785         * testsuite/libgomp.fortran/examples-4/e.54.5.f90: Ditto.
11786         * testsuite/libgomp.fortran/examples-4/e.54.6.f90: Ditto.
11787         * testsuite/libgomp.fortran/examples-4/e.55.1.f90: Ditto.
11788         * testsuite/libgomp.fortran/examples-4/e.55.2.f90: Ditto.
11789         * testsuite/libgomp.fortran/examples-4/e.56.3.f90: Ditto.
11790         * testsuite/libgomp.fortran/examples-4/e.56.4.f90: Ditto.
11791         * testsuite/libgomp.fortran/examples-4/e.57.1.f90: Ditto.
11792         * testsuite/libgomp.fortran/examples-4/e.57.2.f90: Ditto.
11793         * testsuite/libgomp.fortran/examples-4/e.57.3.f90: Ditto.
11795 2014-11-13  Jakub Jelinek  <jakub@redhat.com>
11796             Ilya Verbin  <ilya.verbin@intel.com>
11797             Thomas Schwinge  <thomas@codesourcery.com>
11798             Andrey Turetskiy  <andrey.turetskiy@intel.com>
11800         * libgomp.map (GOMP_4.0.1): New symbol version.
11801         Add GOMP_offload_register.
11802         * libgomp_target.h: New file.
11803         * splay-tree.h: New file.
11804         * target.c: Include config.h, libgomp_target.h, dlfcn.h, splay-tree.h.
11805         (gomp_target_init): New forward declaration.
11806         (gomp_is_initialized): New static variable.
11807         (splay_tree_node, splay_tree, splay_tree_key): New typedefs.
11808         (struct target_mem_desc, struct splay_tree_key_s, offload_image_descr):
11809         New structures.
11810         (offload_images, num_offload_images, devices, num_devices): New static
11811         variables.
11812         (splay_compare): New static function.
11813         (struct gomp_device_descr): New structure.
11814         (gomp_get_num_devices): Call gomp_target_init.
11815         (resolve_device, gomp_map_vars_existing, gomp_map_vars, gomp_unmap_tgt)
11816         (gomp_unmap_vars, gomp_update, gomp_init_device): New static functions.
11817         (GOMP_offload_register): New function.
11818         (GOMP_target): Arrange for host callback to be performed in a separate
11819         initial thread and contention group, inheriting ICVs from
11820         gomp_global_icv etc.  Call gomp_map_vars and gomp_unmap_vars.
11821         Add device initialization and lookup for target function in splay tree.
11822         (GOMP_target_data): Add device initialization and call gomp_map_vars.
11823         (GOMP_target_end_data): Call gomp_unmap_vars.
11824         (GOMP_target_update): Add device initialization and call gomp_update.
11825         (gomp_load_plugin_for_device, gomp_register_images_for_device)
11826         (gomp_target_init): New static functions.
11828 2014-11-13  Bernd Schmidt  <bernds@codesourcery.com>
11829             Thomas Schwinge  <thomas@codesourcery.com>
11830             Ilya Verbin  <ilya.verbin@intel.com>
11831             Andrey Turetskiy  <andrey.turetskiy@intel.com>
11833         * config.h.in: Regenerate.
11834         * configure: Regenerate.
11835         * configure.ac: Check for libdl, required for plugin support.
11836         (PLUGIN_SUPPORT): Define if plugins are supported.
11837         (enable_offload_targets): Support Intel MIC targets.
11838         (OFFLOAD_TARGETS): List of target names suitable for offloading.
11840 2014-11-11  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
11842         PR target/63610
11843         * configure: Regenerate.
11845 2014-11-05  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11847         * config/posix/lock.c (_XOPEN_SOURCE) Define as 600.
11849 2014-10-06  Marek Polacek  <polacek@redhat.com>
11851         * testsuite/libgomp.c/affinity-1.c: Include <sys/wait.h>.
11852         * testsuite/libgomp.c/nqueens-1.c: Include <stdlib.h>.
11853         * testsuite/libgomp.c/thread-limit-1.c: Include <omp.h>
11854         * testsuite/libgomp.c/thread-limit-2.c: Likewise.
11856 2014-10-06  Marek Polacek  <polacek@redhat.com>
11858         * testsuite/libgomp.c/affinity-1.c: Fix implicit declarations.
11859         * testsuite/libgomp.c/nqueens-1.c: Likewise.
11860         * testsuite/libgomp.c/pr26943-3.c: Likewise.
11861         * testsuite/libgomp.c/pr26943-4.c: Likewise.
11862         * testsuite/libgomp.c/pr36802-2.c: Likewise.
11863         * testsuite/libgomp.c/pr36802-3.c: Likewise.
11864         * testsuite/libgomp.c/thread-limit-1.c: Likewise.
11865         * testsuite/libgomp.c/thread-limit-2.c: Likewise.
11866         * testsuite/libgomp.c/appendix-a/a.15.1.c: Include <omp.h>.
11867         * testsuite/libgomp.c/omp-loop02.c: Fix defaulting to int.
11868         * testsuite/libgomp.c/omp-parallel-for.c: Likewise.
11869         * testsuite/libgomp.c/omp-parallel-if.c: Likewise.
11870         * testsuite/libgomp.c/omp-single-1.c: Likewise.
11871         * testsuite/libgomp.c/omp-single-2.c: Likewise.
11872         * testsuite/libgomp.c/omp_matvec.c: Likewise.
11873         * testsuite/libgomp.c/omp_workshare3.c: Likewise.
11874         * testsuite/libgomp.c/omp_workshare4.c: Likewise.
11875         * testsuite/libgomp.c/shared-1.c: Fix defaulting to int.  Fix implicit
11876         declarations.
11878 2014-10-03  Jakub Jelinek  <jakub@redhat.com>
11880         PR libgomp/61200
11881         * testsuite/libgomp.c/pr61200.c: New test.
11883 2014-09-18  Jakub Jelinek  <jakub@redhat.com>
11885         PR c++/63248
11886         * testsuite/libgomp.c++/pr63248.C: New test.
11888 2014-08-04  Jakub Jelinek  <jakub@redhat.com>
11890         * task.c (GOMP_taskgroup_end): If taskgroup->num_children
11891         is not zero, but taskgroup->children is NULL and there are
11892         any task->children, schedule those instead of waiting.
11893         * testsuite/libgomp.c/depend-6.c: New test.
11894         * testsuite/libgomp.c/depend-7.c: New test.
11895         * testsuite/libgomp.c/depend-8.c: New test.
11896         * testsuite/libgomp.c/depend-9.c: New test.
11897         * testsuite/libgomp.c/depend-10.c: New test.
11899 2014-08-01  Jakub Jelinek  <jakub@redhat.com>
11901         * libgomp.h (struct gomp_task_depend_entry): Add redundant_out field.
11902         (struct gomp_taskwait): New type.
11903         (struct gomp_task): Add taskwait and parent_depends_on, remove
11904         in_taskwait and taskwait_sem fields.
11905         (gomp_finish_task): Don't destroy taskwait_sem.
11906         * task.c (gomp_init_task): Don't init in_taskwait, instead init
11907         taskwait and parent_depends_on.
11908         (GOMP_task): For if (0) tasks with depend clause that depend on
11909         earlier tasks don't defer them, instead call
11910         gomp_task_maybe_wait_for_dependencies to wait for the dependencies.
11911         Initialize redundant_out field, for redundant out entries just
11912         move them at the end of linked list instead of removing them
11913         completely, and set redundant_out flag instead of redundant.
11914         (gomp_task_run_pre): Update last_parent_depends_on if scheduling
11915         that task.
11916         (gomp_task_run_post_handle_dependers): If parent is in
11917         gomp_task_maybe_wait_for_dependencies and newly runnable task
11918         is not parent_depends_on, queue it in parent->children linked
11919         list after all runnable tasks with parent_depends_on set.
11920         Adjust for addition of taskwait indirection.
11921         (gomp_task_run_post_remove_parent): If parent is in
11922         gomp_task_maybe_wait_for_dependencies and task to be removed
11923         is parent_depends_on, decrement n_depend and if needed awake
11924         parent.  Adjust for addition of taskwait indirection.
11925         (GOMP_taskwait): Adjust for addition of taskwait indirection.
11926         (gomp_task_maybe_wait_for_dependencies): New function.
11927         * testsuite/libgomp.c/depend-5.c: New test.
11929 2014-07-13  Tobias Burnus  <burnus@net-b.de>
11931         * testsuite/libgomp.fortran/pr34020.f90: Make compile
11932         with TS 18508/Fortran 2015.
11934 2014-07-06  Marek Polacek  <polacek@redhat.com>
11936         PR c/6940
11937         * testsuite/libgomp.c/appendix-a/a.29.1.c (f): Add dg-warnings.
11939 2014-07-03  Jakub Jelinek  <jakub@redhat.com>
11941         * testsuite/lib/libgomp.exp (libgomp_target_compile): If $source
11942         matches regex $lang_source_re, add $lang_include_flags to options.
11943         * testsuite/libgomp.c/c.exp: Unset lang_include_flags.
11944         * testsuite/libgomp.c++/c++.exp: Likewise.
11945         * testsuite/libgomp.fortran/fortran.exp: Likewise.  Set lang_source_re
11946         and lang_include_flags instead of adding -fintrinsic-modules-path= to
11947         ALWAYS_CFLAGS.
11948         * testsuite/libgomp.graphite/graphite.exp: Unset lang_include_flags.
11950 2014-07-03  Thomas Schwinge  <thomas@codesourcery.com>
11952         * testsuite/libgomp.fortran/fortran.exp: Explain
11953         gfortran-dg-runtest usage.
11955 2014-06-25  Jakub Jelinek  <jakub@redhat.com>
11957         * testsuite/libgomp.fortran/simd5.f90: New test.
11958         * testsuite/libgomp.fortran/simd6.f90: New test.
11959         * testsuite/libgomp.fortran/simd7.f90: New test.
11961 2014-06-24  Jakub Jelinek  <jakub@redhat.com>
11963         * testsuite/libgomp.c/for-2.c: Define SC to static for
11964         #pragma omp for simd testing.
11965         * testsuite/libgomp.c/for-2.h (SC): Define if not defined.
11966         (N(f5), N(f6), N(f7), N(f8), N(f10), N(f12), N(f14)): Use
11967         SC macro.
11968         * testsuite/libgomp.c/simd-14.c: New test.
11969         * testsuite/libgomp.c/simd-15.c: New test.
11970         * testsuite/libgomp.c/simd-16.c: New test.
11971         * testsuite/libgomp.c/simd-17.c: New test.
11972         * testsuite/libgomp.c++/for-10.C: Define SC to static for
11973         #pragma omp for simd testing.
11974         * testsuite/libgomp.c++/simd10.C: New test.
11975         * testsuite/libgomp.c++/simd11.C: New test.
11976         * testsuite/libgomp.c++/simd12.C: New test.
11977         * testsuite/libgomp.c++/simd13.C: New test.
11979         * testsuite/libgomp.fortran/aligned1.f03: New test.
11980         * testsuite/libgomp.fortran/nestedfn5.f90: New test.
11981         * testsuite/libgomp.fortran/target7.f90: Surround loop spawning
11982         tasks with !$omp parallel !$omp single.
11983         * testsuite/libgomp.fortran/target8.f90: New test.
11984         * testsuite/libgomp.fortran/udr4.f90 (foo UDR, bar UDR): Adjust
11985         not to use trim in the combiner, instead call elemental function.
11986         (fn): New elemental function.
11987         * testsuite/libgomp.fortran/udr6.f90 (do_add, dp_add, dp_init):
11988         Make elemental.
11989         * testsuite/libgomp.fortran/udr7.f90 (omp_priv, omp_orig, omp_out,
11990         omp_in): Likewise.
11991         * testsuite/libgomp.fortran/udr12.f90: New test.
11992         * testsuite/libgomp.fortran/udr13.f90: New test.
11993         * testsuite/libgomp.fortran/udr14.f90: New test.
11994         * testsuite/libgomp.fortran/udr15.f90: New test.
11996 2014-06-18  Jakub Jelinek  <jakub@redhat.com>
11998         * omp_lib.f90.in (openmp_version): Set to 201307.
11999         * omp_lib.h.in (openmp_version): Likewise.
12000         * testsuite/libgomp.c/target-8.c: New test.
12001         * testsuite/libgomp.fortran/declare-simd-1.f90: Add notinbranch
12002         and inbranch clauses.
12003         * testsuite/libgomp.fortran/depend-3.f90: New test.
12004         * testsuite/libgomp.fortran/openmp_version-1.f: Adjust for new
12005         openmp_version.
12006         * testsuite/libgomp.fortran/openmp_version-2.f90: Likewise.
12007         * testsuite/libgomp.fortran/target1.f90: New test.
12008         * testsuite/libgomp.fortran/target2.f90: New test.
12009         * testsuite/libgomp.fortran/target3.f90: New test.
12010         * testsuite/libgomp.fortran/target4.f90: New test.
12011         * testsuite/libgomp.fortran/target5.f90: New test.
12012         * testsuite/libgomp.fortran/target6.f90: New test.
12013         * testsuite/libgomp.fortran/target7.f90: New test.
12015 2014-06-10  Jakub Jelinek  <jakub@redhat.com>
12017         PR fortran/60928
12018         * testsuite/libgomp.fortran/allocatable9.f90: New test.
12019         * testsuite/libgomp.fortran/allocatable10.f90: New test.
12020         * testsuite/libgomp.fortran/allocatable11.f90: New test.
12021         * testsuite/libgomp.fortran/allocatable12.f90: New test.
12022         * testsuite/libgomp.fortran/alloc-comp-1.f90: New test.
12023         * testsuite/libgomp.fortran/alloc-comp-2.f90: New test.
12024         * testsuite/libgomp.fortran/alloc-comp-3.f90: New test.
12025         * testsuite/libgomp.fortran/associate1.f90: New test.
12026         * testsuite/libgomp.fortran/associate2.f90: New test.
12027         * testsuite/libgomp.fortran/procptr1.f90: New test.
12029 2014-06-06  Jakub Jelinek  <jakub@redhat.com>
12031         * testsuite/libgomp.fortran/simd1.f90: New test.
12032         * testsuite/libgomp.fortran/udr1.f90: New test.
12033         * testsuite/libgomp.fortran/udr2.f90: New test.
12034         * testsuite/libgomp.fortran/udr3.f90: New test.
12035         * testsuite/libgomp.fortran/udr4.f90: New test.
12036         * testsuite/libgomp.fortran/udr5.f90: New test.
12037         * testsuite/libgomp.fortran/udr6.f90: New test.
12038         * testsuite/libgomp.fortran/udr7.f90: New test.
12039         * testsuite/libgomp.fortran/udr8.f90: New test.
12040         * testsuite/libgomp.fortran/udr9.f90: New test.
12041         * testsuite/libgomp.fortran/udr10.f90: New test.
12042         * testsuite/libgomp.fortran/udr11.f90: New test.
12044 2014-05-27  Uros Bizjak  <ubizjak@gmail.com>
12046         * testsuite/libgomp.fortran/declare-simd-1.f90: Require
12047         vect_simd_clones effective target.
12048         * testsuite/libgomp.fortran/declare-simd-2.f90: Ditto.
12050 2014-05-21  Jakub Jelinek  <jakub@redhat.com>
12052         PR middle-end/61252
12053         * testsuite/libgomp.c++/simd-9.C: New test.
12055 2014-05-18  Uros Bizjak  <ubizjak@gmail.com>
12057         * libgomp.texi (Runitme Library Routines): Remove multiple @menu.
12058         (Environment Variables) Move OMP_PROC_BIND and OMP_STACKSIZE node
12059         texts according to their @menu entry positions.
12061 2014-05-11  Jakub Jelinek  <jakub@redhat.com>
12063         * testsuite/libgomp.fortran/cancel-do-1.f90: New test.
12064         * testsuite/libgomp.fortran/cancel-do-2.f90: New test.
12065         * testsuite/libgomp.fortran/cancel-parallel-1.f90: New test.
12066         * testsuite/libgomp.fortran/cancel-parallel-3.f90: New test.
12067         * testsuite/libgomp.fortran/cancel-sections-1.f90: New test.
12068         * testsuite/libgomp.fortran/cancel-taskgroup-2.f90: New test.
12069         * testsuite/libgomp.fortran/declare-simd-1.f90: New test.
12070         * testsuite/libgomp.fortran/declare-simd-2.f90: New test.
12071         * testsuite/libgomp.fortran/declare-simd-3.f90: New test.
12072         * testsuite/libgomp.fortran/depend-1.f90: New test.
12073         * testsuite/libgomp.fortran/depend-2.f90: New test.
12074         * testsuite/libgomp.fortran/omp_atomic5.f90: New test.
12075         * testsuite/libgomp.fortran/simd1.f90: New test.
12076         * testsuite/libgomp.fortran/simd2.f90: New test.
12077         * testsuite/libgomp.fortran/simd3.f90: New test.
12078         * testsuite/libgomp.fortran/simd4.f90: New test.
12079         * testsuite/libgomp.fortran/taskgroup1.f90: New test.
12081 2014-05-02  Jakub Jelinek  <jakub@redhat.com>
12083         * testsuite/libgomp.c/simd-10.c: New test.
12084         * testsuite/libgomp.c/simd-11.c: New test.
12085         * testsuite/libgomp.c/simd-12.c: New test.
12086         * testsuite/libgomp.c/simd-13.c: New test.
12088 2014-04-24  Jakub Jelinek  <jakub@redhat.com>
12090         * testsuite/libgomp.c++/atomic-14.C: Allow seq_cst and
12091         atomic type clauses in any order and optional comma in between.
12092         * testsuite/libgomp.c++/atomic-15.C: Likewise.
12093         * testsuite/libgomp.c/atomic-17.c: Likewise.
12095         * testsuite/libgomp.c/simd-7.c: New test.
12096         * testsuite/libgomp.c/simd-8.c: New test.
12097         * testsuite/libgomp.c/simd-9.c: New test.
12098         * testsuite/libgomp.c/loop-16.c: New test.
12100 2014-04-02  Richard Henderson  <rth@redhat.com>
12102         * config/linux/futex.h (futex_wait): Get error value from errno.
12103         (futex_wake): Likewise.
12105 2014-03-25  Jakub Jelinek  <jakub@redhat.com>
12107         PR c++/60331
12108         * testsuite/libgomp.c++/udr-11.C: New test.
12109         * testsuite/libgomp.c++/udr-12.C: New test.
12110         * testsuite/libgomp.c++/udr-13.C: New test.
12111         * testsuite/libgomp.c++/udr-14.C: New test.
12112         * testsuite/libgomp.c++/udr-15.C: New test.
12113         * testsuite/libgomp.c++/udr-16.C: New test.
12114         * testsuite/libgomp.c++/udr-17.C: New test.
12115         * testsuite/libgomp.c++/udr-18.C: New test.
12116         * testsuite/libgomp.c++/udr-19.C: New test.
12118 2014-01-02  Richard Sandiford  <rdsandiford@googlemail.com>
12120         Update copyright years
12122 2014-01-02  Richard Sandiford  <rdsandiford@googlemail.com>
12124         * hashtab.h: Use the standard form for the copyright notice.
12126 2014-01-02  Tobias Burnus  <burnus@net-b.de>
12128         * libgomp.texi: Bump @copying's copyright year.
12130 2013-12-17  Andreas Tobler  <andreast@gcc.gnu.org>
12132         * testsuite/libgomp.c/affinity-1.c: Remove alloca.h include. Replace
12133         alloca () with __builtin_alloca ().
12134         * testsuite/libgomp.c/icv-2.c: Add FreeBSD coverage.
12135         * testsuite/libgomp.c/lock-3.c: Likewise.
12136         * testsuite/libgomp.c/pr48591.c: Likewise.
12138 2013-12-17  Jakub Jelinek  <jakub@redhat.com>
12140         PR testsuite/59534
12141         * testsuite/libgomp.fortran/retval1.f90 (e5): Avoid non-shortcircuited
12142         comparisons.
12144 2013-12-16  Jakub Jelinek  <jakub@redhat.com>
12146         PR libgomp/58756
12147         * testsuite/libgomp.c/pr58756.c: New test.
12149 2013-12-12  Jakub Jelinek  <jakub@redhat.com>
12151         PR libgomp/59467
12152         * testsuite/libgomp.fortran/crayptr2.f90: Add private (d) clause to
12153         !$omp parallel.
12155 2013-11-07  Thomas Schwinge  <thomas@codesourcery.com>
12157         * testsuite/lib/libgomp.exp (libgomp_init): Don't add -fopenmp to
12158         ALWAYS_CFLAGS.
12159         * testsuite/libgomp.c++/c++.exp (ALWAYS_CFLAGS): Add -fopenmp.
12160         * testsuite/libgomp.c/c.exp (ALWAYS_CFLAGS): Likewise.
12161         * testsuite/libgomp.fortran/fortran.exp (ALWAYS_CFLAGS): Likewise.
12162         * testsuite/libgomp.graphite/graphite.exp (ALWAYS_CFLAGS):
12163         Likewise.
12165         * libgomp_g.h: Include <stddef.h> for size_t.
12167         * libgomp.spec.in: Update comment about libgomp's dependencies.
12168         * configure.ac: Likewise.
12169         * configure: Regenerate.
12171 2013-10-16  Tobias Burnus  <burnus@net-b.de>
12173         * libgomp.texi: (Runtime Library Routines): Update references for
12174         OpenMP 4.0. Add omp_get_cancellation, omp_get_default_device,
12175         omp_get_num_devices, omp_get_num_teams, omp_get_proc_bind,
12176         omp_get_team_num, omp_is_initial_device, omp_set_default_device.
12177         (Environment Variables): Update references for OpenMP 4.0. Add
12178         OMP_CANCELLATION, OMP_DEFAULT_DEVICE, OMP_PLACES.
12179         Move OMP_DISPLAY_ENV and OMP_PROC_BIND up to be in alphabetical
12180         order.
12182 2013-10-14  Jakub Jelinek  <jakub@redhat.com>
12184         * env.c (parse_bind_var): Initialize value to avoid
12185         (false positive) warning.
12187 2013-10-12  Jakub Jelinek  <jakub@redhat.com>
12189         PR libgomp/58691
12190         * config/linux/proc.c (gomp_cpuset_popcount): Add unused attribute
12191         to check variable.
12192         (gomp_init_num_threads): Move i variable declaration into
12193         #ifdef CPU_ALLOC_SIZE block.
12194         * config/linux/affinity.c (gomp_affinity_init_level): Test
12195         gomp_places_list_len == 0 rather than gomp_places_list == 0
12196         when checking for topology reading error.
12197         * team.c (gomp_team_start): Don't handle bind == omp_proc_bind_false.
12198         * env.c (parse_affinity): Add ignore argument, if true, don't populate
12199         gomp_places_list, only parse env var and always return false.
12200         (parse_places_var): Likewise.  Don't check gomp_global_icv.bind_var.
12201         (initialize_env): Always parse OMP_PLACES and GOMP_CPU_AFFINITY env
12202         vars, default to OMP_PROC_BIND=true if OMP_PROC_BIND wasn't specified
12203         and either of these variables were parsed correctly into a places
12204         list.
12206 2013-10-11  Thomas Schwinge  <thomas@codesourcery.com>
12207             Jakub Jelinek  <jakub@redhat.com>
12209         * testsuite/libgomp.graphite/force-parallel-1.c: Expect 4 instead
12210         of 5 loopfn matches.
12211         * testsuite/libgomp.graphite/force-parallel-2.c: Likewise.
12212         * testsuite/libgomp.graphite/force-parallel-3.c: Likewise.
12213         * testsuite/libgomp.graphite/force-parallel-4.c: Likewise.
12214         * testsuite/libgomp.graphite/force-parallel-5.c: Likewise.
12215         * testsuite/libgomp.graphite/force-parallel-6.c: Likewise.
12216         * testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
12217         * testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
12218         * testsuite/libgomp.graphite/force-parallel-9.c: Likewise.
12220 2013-10-11  Thomas Schwinge  <thomas@codesourcery.com>
12222         * Makefile.am (omp_lib.mod): Streamline rule.
12223         * Makefile.in: Regenerate.
12225         * libgomp.texi (Runtime Library Routines): C linkage, don't throw
12226         exceptions.
12228         * testsuite/libgomp.c/lib-1.c (main): Add missing error check.
12229         * testsuite/libgomp.fortran/lib1.f90: Likewise.
12230         * testsuite/libgomp.fortran/lib2.f: Likewise.
12231         * testsuite/libgomp.fortran/lib3.f: Likewise.
12233         * configure.ac: Typo fix.
12234         * configure: Regenerate.
12236         * testsuite/libgomp.fortran/openmp_version-1.f: New file.
12237         * testsuite/libgomp.fortran/openmp_version-2.f90: Likewise.
12239         * omp.h.in: Don't touch the user's namespace.
12241 2013-10-11  Jakub Jelinek  <jakub@redhat.com>
12242             Tobias Burnus  <burnus@net-b.de>
12243             Richard Henderson  <rth@redhat.com>
12245         * target.c: New file.
12246         * Makefile.am (libgomp_la_SOURCES): Add target.c.
12247         * Makefile.in: Regenerated.
12248         * libgomp_g.h (GOMP_task): Add depend argument.
12249         (GOMP_barrier_cancel, GOMP_loop_end_cancel,
12250         GOMP_sections_end_cancel, GOMP_target, GOMP_target_data,
12251         GOMP_target_end_data, GOMP_target_update, GOMP_teams,
12252         GOMP_parallel_loop_static, GOMP_parallel_loop_dynamic,
12253         GOMP_parallel_loop_guided, GOMP_parallel_loop_runtime,
12254         GOMP_parallel, GOMP_cancel, GOMP_cancellation_point,
12255         GOMP_taskgroup_start, GOMP_taskgroup_end,
12256         GOMP_parallel_sections): New prototypes.
12257         * fortran.c (omp_is_initial_device): Add ialias_redirect.
12258         (omp_is_initial_device_): New function.
12259         (ULP, STR1, STR2, ialias_redirect): Removed.
12260         (omp_get_cancellation_, omp_get_proc_bind_, omp_set_default_device_,
12261         omp_set_default_device_8_, omp_get_default_device_,
12262         omp_get_num_devices_, omp_get_num_teams_, omp_get_team_num_): New
12263         functions.
12264         * libgomp.map (GOMP_barrier_cancel, GOMP_loop_end_cancel,
12265         GOMP_sections_end_cancel, GOMP_target, GOMP_target_data,
12266         GOMP_target_end_data, GOMP_target_update, GOMP_teams): Export
12267         @@GOMP_4.0.
12268         (omp_is_initial_device, omp_is_initial_device_, omp_get_cancellation,
12269         omp_get_cancellation_, omp_get_proc_bind, omp_get_proc_bind_,
12270         omp_set_default_device, omp_set_default_device_,
12271         omp_set_default_device_8_, omp_get_default_device,
12272         omp_get_default_device_, omp_get_num_devices, omp_get_num_devices_,
12273         omp_get_num_teams, omp_get_num_teams_, omp_get_team_num,
12274         omp_get_team_num_): Export @@OMP_4.0.
12275         * team.c (struct gomp_thread_start_data): Add place field.
12276         (gomp_thread_start): Clear thr->thread_pool and
12277         thr->task before returning.  Use gomp_team_barrier_wait_final
12278         instead of gomp_team_barrier_wait.  Initialize thr->place.
12279         (gomp_new_team): Initialize work_shares_to_free, work_share_cancelled,
12280         team_cancelled and task_queued_count fields.
12281         (gomp_free_pool_helper): Clear thr->thread_pool and thr->task
12282         before calling pthread_exit.
12283         (gomp_free_thread): No longer static.  Use
12284         gomp_managed_threads_lock instead of gomp_remaining_threads_lock.
12285         (gomp_team_start): Add flags argument.  Set
12286         thr->thread_pool->threads_busy to nthreads immediately after creating
12287         new pool.  Use gomp_managed_threads_lock instead of
12288         gomp_remaining_threads_lock.  Handle OpenMP 4.0 affinity.
12289         (gomp_team_end): Use gomp_managed_threads_lock instead of
12290         gomp_remaining_threads_lock.  Use gomp_team_barrier_wait_final instead
12291         of gomp_team_barrier_wait.  If team->team_cancelled, call
12292         gomp_fini_workshare on ws chain starting at team->work_shares_to_free
12293         rather than thr->ts.work_share.
12294         (initialize_team): Don't call gomp_sem_init here.
12295         * sections.c (GOMP_parallel_sections_start): Adjust gomp_team_start
12296         caller.
12297         (GOMP_parallel_sections, GOMP_sections_end_cancel): New functions.
12298         * env.c (gomp_global_icv): Add default_device_var, target_data and
12299         bind_var initializers.
12300         (gomp_cpu_affinity, gomp_cpu_affinity_len): Remove.
12301         (gomp_bind_var_list, gomp_bind_var_list_len, gomp_places_list,
12302         gomp_places_list_len): New variables.
12303         (parse_bind_var, parse_one_place, parse_places_var): New functions.
12304         (parse_affinity): Rewritten to construct OMP_PLACES list with unit
12305         sized places.
12306         (gomp_cancel_var): New global variable.
12307         (parse_int): New function.
12308         (handle_omp_display_env): New function.
12309         (initialize_env): Use it.  Initialize default_device_var.
12310         Parse OMP_CANCELLATION env var.  Use parse_bind_var to parse
12311         OMP_PROC_BIND instead of parse_boolean.  Use parse_places_var for
12312         OMP_PLACES parsing.  Don't call parse_affinity if OMP_PLACES has
12313         been successfully parsed (and call gomp_init_affinity in that case).
12314         (omp_get_cancellation, omp_get_proc_bind, omp_set_default_device,
12315         omp_get_default_device, omp_get_num_devices, omp_get_num_teams,
12316         omp_get_team_num, omp_is_initial_device): New functions.
12317         * libgomp.h: Include stdlib.h.
12318         (ialias_ulp, ialias_str1, ialias_str2, ialias_redirect, ialias_call):
12319         Define.
12320         (struct target_mem_desc): Forward declare.
12321         (struct gomp_task_icv): Add default_device_var, target_data, bind_var
12322         and thread_limit_var fields.
12323         (gomp_get_num_devices): New prototype.
12324         (gomp_cancel_var): New extern decl.
12325         (struct gomp_team): Add work_shares_to_free, work_share_cancelled,
12326         team_cancelled and task_queued_count fields.  Add comments about
12327         task_{,queued_,running_}count.
12328         (gomp_cancel_kind): New enum.
12329         (gomp_work_share_end_cancel): New prototype.
12330         (struct gomp_task): Add next_taskgroup, prev_taskgroup, taskgroup,
12331         copy_ctors_done, dependers, depend_hash, depend_count, num_dependees
12332         and depend fields.
12333         (struct gomp_taskgroup): New type.
12334         (struct gomp_task_depend_entry,
12335         struct gomp_dependers_vec): New types.
12336         (gomp_finish_task): Free depend_hash if non-NULL.
12337         (struct gomp_team_state): Add place_partition_off
12338         and place_partition_len fields.
12339         (gomp_bind_var_list, gomp_bind_var_list_len, gomp_places_list,
12340         gomp_places_list_len): New extern decls.
12341         (struct gomp_thread): Add place field.
12342         (gomp_cpu_affinity, gomp_cpu_affinity_len): Remove.
12343         (gomp_init_thread_affinity): Add place argument.
12344         (gomp_affinity_alloc, gomp_affinity_init_place, gomp_affinity_add_cpus,
12345         gomp_affinity_remove_cpu, gomp_affinity_copy_place,
12346         gomp_affinity_same_place, gomp_affinity_finalize_place_list,
12347         gomp_affinity_init_level, gomp_affinity_print_place): New
12348         prototypes.
12349         (gomp_team_start): Add flags argument.
12350         (gomp_thread_limit_var, gomp_remaining_threads_count,
12351         gomp_remaining_threads_lock): Remove.
12352         (gomp_managed_threads_lock): New variable.
12353         (struct gomp_thread_pool): Add threads_busy field.
12354         (gomp_free_thread): New prototype.
12355         * task.c: Include hashtab.h.
12356         (hash_entry_type): New typedef.
12357         (htab_alloc, htab_free, htab_hash, htab_eq): New inlines.
12358         (gomp_init_task): Clear dependers, depend_hash, depend_count,
12359         copy_ctors_done and taskgroup fields.
12360         (GOMP_task): Add depend argument, handle depend clauses.  If
12361         gomp_team_barrier_cancelled or if it's taskgroup has been
12362         cancelled, don't queue or start new tasks.  Set copy_ctors_done
12363         field if needed.  Initialize taskgroup field.  If copy_ctors_done
12364         and already cancelled, don't discard the task.  If taskgroup is
12365         non-NULL, enqueue the task into taskgroup queue.  Increment
12366         num_children field in taskgroup.  Increment task_queued_count.
12367         (gomp_task_run_pre, gomp_task_run_post_remove_parent,
12368         gomp_task_run_post_remove_taskgroup): New inline functions.
12369         (gomp_task_run_post_handle_depend_hash,
12370         gomp_task_run_post_handle_dependers,
12371         gomp_task_run_post_handle_depend): New functions.
12372         (GOMP_taskwait): Use them.  If more than one new tasks
12373         have been queued, wake other threads if needed.
12374         (gomp_barrier_handle_tasks): Likewise.  If
12375         gomp_team_barrier_cancelled, don't start any new tasks, just free
12376         all tasks.
12377         (GOMP_taskgroup_start, GOMP_taskgroup_end): New functions.
12378         * omp_lib.f90.in
12379         (omp_proc_bind_kind, omp_proc_bind_false,
12380         omp_proc_bind_true, omp_proc_bind_master, omp_proc_bind_close,
12381         omp_proc_bind_spread): New params.
12382         (omp_get_cancellation, omp_get_proc_bind, omp_set_default_device,
12383         omp_get_default_device, omp_get_num_devices, omp_get_num_teams,
12384         omp_get_team_num, omp_is_initial_device): New interfaces.
12385         (omp_get_dynamic, omp_get_nested, omp_in_parallel,
12386         omp_get_max_threads, omp_get_num_procs, omp_get_num_threads,
12387         omp_get_thread_num, omp_get_thread_limit, omp_set_max_active_levels,
12388         omp_get_max_active_levels, omp_get_level, omp_get_ancestor_thread_num,
12389         omp_get_team_size, omp_get_active_level, omp_in_final): Remove
12390         useless use omp_lib_kinds.
12391         * omp.h.in (omp_proc_bind_t): New typedef.
12392         (omp_get_cancellation, omp_get_proc_bind, omp_set_default_device,
12393         omp_get_default_device, omp_get_num_devices, omp_get_num_teams,
12394         omp_get_team_num, omp_is_initial_device): New prototypes.
12395         * loop.c (gomp_parallel_loop_start): Add flags argument, pass it
12396         through to gomp_team_start.
12397         (GOMP_parallel_loop_static_start, GOMP_parallel_loop_dynamic_start,
12398         GOMP_parallel_loop_guided_start, GOMP_parallel_loop_runtime_start):
12399         Adjust gomp_parallel_loop_start callers.
12400         (GOMP_parallel_loop_static, GOMP_parallel_loop_dynamic,
12401         GOMP_parallel_loop_guided, GOMP_parallel_loop_runtime,
12402         GOMP_loop_end_cancel): New functions.
12403         (GOMP_parallel_end): Add ialias_redirect.
12404         * hashtab.h: New file.
12405         * libgomp.texi (Environment Variables): Minor cleanup,
12406         update section refs to OpenMP 4.0rc2.
12407         (OMP_DISPLAY_ENV, GOMP_SPINCOUNT): Document these
12408         environment variables.
12409         * work.c (gomp_work_share_end, gomp_work_share_end_nowait): Set
12410         team->work_shares_to_free to thr->ts.work_share before calling
12411         free_work_share.
12412         (gomp_work_share_end_cancel): New function.
12413         * config/linux/proc.c: Include errno.h.
12414         (gomp_get_cpuset_size, gomp_cpuset_size, gomp_cpusetp): New variables.
12415         (gomp_cpuset_popcount): Add cpusetsize argument, use it instead of
12416         sizeof (cpu_set_t) to determine number of iterations.  Fix up check
12417         extern decl.  Use CPU_COUNT_S if available, or CPU_COUNT if
12418         gomp_cpuset_size is sizeof (cpu_set_t).
12419         (gomp_init_num_threads): Initialize gomp_cpuset_size,
12420         gomp_get_cpuset_size and gomp_cpusetp here, use gomp_cpusetp instead
12421         of &cpuset and pass gomp_cpuset_size instead of sizeof (cpu_set_t)
12422         to pthread_getaffinity_np.  Free and clear gomp_cpusetp if it didn't
12423         contain any logical CPUs.
12424         (get_num_procs): Don't call pthread_getaffinity_np if gomp_cpusetp
12425         is NULL.  Use gomp_cpusetp instead of &cpuset and pass
12426         gomp_get_cpuset_size instead of sizeof (cpu_set_t) to
12427         pthread_getaffinity_np.  Check gomp_places_list instead of
12428         gomp_cpu_affinity.  Adjust gomp_cpuset_popcount caller.
12429         * config/linux/bar.c (gomp_barrier_wait_end,
12430         gomp_barrier_wait_last): Use BAR_* defines.
12431         (gomp_team_barrier_wait_end): Likewise.  Clear BAR_CANCELLED
12432         from state where needed.  Set work_share_cancelled to 0 on last
12433         thread.
12434         (gomp_team_barrier_wait_final, gomp_team_barrier_wait_cancel_end,
12435         gomp_team_barrier_wait_cancel, gomp_team_barrier_cancel): New
12436         functions.
12437         * config/linux/proc.h (gomp_cpuset_popcount): Add attribute_hidden.
12438         Add cpusetsize argument.
12439         (gomp_cpuset_size, gomp_cpusetp): Declare.
12440         * config/linux/affinity.c: Include errno.h, stdio.h and string.h.
12441         (affinity_counter): Remove.
12442         (CPU_ISSET_S, CPU_ZERO_S, CPU_SET_S, CPU_CLR_S): Define
12443         if CPU_ALLOC_SIZE isn't defined.
12444         (gomp_init_affinity): Rewritten, if gomp_places_list is NULL, try
12445         silently create OMP_PLACES=threads, if it is non-NULL afterwards,
12446         bind current thread to the first place.
12447         (gomp_init_thread_affinity): Rewritten.  Add place argument, just
12448         pthread_setaffinity_np to gomp_places_list[place].
12449         (gomp_affinity_alloc, gomp_affinity_init_place, gomp_affinity_add_cpus,
12450         gomp_affinity_remove_cpu, gomp_affinity_copy_place,
12451         gomp_affinity_same_place, gomp_affinity_finalize_place_list,
12452         gomp_affinity_init_level, gomp_affinity_print_place): New functions.
12453         * config/linux/bar.h (BAR_TASK_PENDING, BAR_WAS_LAST,
12454         BAR_WAITING_FOR_TASK, BAR_INCR, BAR_CANCELLED): Define.
12455         (gomp_barrier_t): Add awaited_final field.
12456         (gomp_barrier_init): Initialize awaited_final field.
12457         (gomp_team_barrier_wait_final, gomp_team_barrier_wait_cancel,
12458         gomp_team_barrier_wait_cancel_end, gomp_team_barrier_cancel): New
12459         prototypes.
12460         (gomp_barrier_wait_start): Preserve BAR_CANCELLED bit.  Use BAR_*
12461         defines.
12462         (gomp_barrier_wait_cancel_start, gomp_team_barrier_wait_final_start,
12463         gomp_team_barrier_cancelled): New inline functions.
12464         (gomp_barrier_last_thread,
12465         gomp_team_barrier_set_task_pending,
12466         gomp_team_barrier_clear_task_pending,
12467         gomp_team_barrier_set_waiting_for_tasks,
12468         gomp_team_barrier_waiting_for_tasks,
12469         gomp_team_barrier_done): Use BAR_* defines.
12470         * config/posix/bar.c (gomp_barrier_init): Clear cancellable field.
12471         (gomp_barrier_wait_end): Use BAR_* defines.
12472         (gomp_team_barrier_wait_end): Clear BAR_CANCELLED from state.
12473         Set work_share_cancelled to 0 on last thread, use __atomic_load_n.
12474         Use BAR_* defines.
12475         (gomp_team_barrier_wait_cancel_end, gomp_team_barrier_wait_cancel,
12476         gomp_team_barrier_cancel): New functions.
12477         * config/posix/affinity.c (gomp_init_thread_affinity): Add place
12478         argument.
12479         (gomp_affinity_alloc, gomp_affinity_init_place, gomp_affinity_add_cpus,
12480         gomp_affinity_remove_cpu, gomp_affinity_copy_place,
12481         gomp_affinity_same_place, gomp_affinity_finalize_place_list,
12482         gomp_affinity_init_level, gomp_affinity_print_place): New stubs.
12483         * config/posix/bar.h (BAR_TASK_PENDING, BAR_WAS_LAST,
12484         BAR_WAITING_FOR_TASK, BAR_INCR, BAR_CANCELLED): Define.
12485         (gomp_barrier_t): Add cancellable field.
12486         (gomp_team_barrier_wait_cancel, gomp_team_barrier_wait_cancel_end,
12487         gomp_team_barrier_cancel): New prototypes.
12488         (gomp_barrier_wait_start): Preserve BAR_CANCELLED bit.
12489         (gomp_barrier_wait_cancel_start, gomp_team_barrier_wait_final,
12490         gomp_team_barrier_cancelled): New inline functions.
12491         (gomp_barrier_wait_start, gomp_barrier_last_thread,
12492         gomp_team_barrier_set_task_pending,
12493         gomp_team_barrier_clear_task_pending,
12494         gomp_team_barrier_set_waiting_for_tasks,
12495         gomp_team_barrier_waiting_for_tasks,
12496         gomp_team_barrier_done): Use BAR_* defines.
12497         * barrier.c (GOMP_barrier_cancel): New function.
12498         * omp_lib.h.in (omp_proc_bind_kind, omp_proc_bind_false,
12499         omp_proc_bind_true, omp_proc_bind_master, omp_proc_bind_close,
12500         omp_proc_bind_spread): New params.
12501         (omp_get_cancellation, omp_get_proc_bind, omp_set_default_device,
12502         omp_get_default_device, omp_get_num_devices, omp_get_num_teams,
12503         omp_get_team_num, omp_is_initial_device): New externals.
12504         * parallel.c (GOMP_parallel, GOMP_cancel, GOMP_cancellation_point):
12505         New functions.
12506         (gomp_resolve_num_threads): Adjust for thread_limit now being in
12507         icv->thread_limit_var.  Use UINT_MAX instead of ULONG_MAX as
12508         infinity.  If not nested, just return minimum of max_num_threads
12509         and icv->thread_limit_var and if thr->thread_pool, set threads_busy
12510         to the returned value.  Otherwise, don't update atomically
12511         gomp_remaining_threads_count, but instead thr->thread_pool->threads_busy.
12512         (GOMP_parallel_end): Adjust for thread_limit now being in
12513         icv->thread_limit_var.  Use UINT_MAX instead of ULONG_MAX as
12514         infinity.  Adjust threads_busy in the pool rather than
12515         gomp_remaining_threads_count.  Remember team->nthreads and call
12516         gomp_team_end before adjusting threads_busy, if not nested
12517         afterwards, just set it to 1 non-atomically.  Add ialias.
12518         (GOMP_parallel_start): Adjust gomp_team_start caller.
12519         * testsuite/libgomp.c/atomic-14.c: Add parens to make it valid.
12520         * testsuite/libgomp.c/affinity-1.c: New test.
12521         * testsuite/libgomp.c/atomic-15.c: New test.
12522         * testsuite/libgomp.c/atomic-16.c: New test.
12523         * testsuite/libgomp.c/atomic-17.c: New test.
12524         * testsuite/libgomp.c/cancel-for-1.c: New test.
12525         * testsuite/libgomp.c/cancel-for-2.c: New test.
12526         * testsuite/libgomp.c/cancel-parallel-1.c: New test.
12527         * testsuite/libgomp.c/cancel-parallel-2.c: New test.
12528         * testsuite/libgomp.c/cancel-parallel-3.c: New test.
12529         * testsuite/libgomp.c/cancel-sections-1.c: New test.
12530         * testsuite/libgomp.c/cancel-taskgroup-1.c: New test.
12531         * testsuite/libgomp.c/cancel-taskgroup-2.c: New test.
12532         * testsuite/libgomp.c/depend-1.c: New test.
12533         * testsuite/libgomp.c/depend-2.c: New test.
12534         * testsuite/libgomp.c/depend-3.c: New test.
12535         * testsuite/libgomp.c/depend-4.c: New test.
12536         * testsuite/libgomp.c/for-1.c: New test.
12537         * testsuite/libgomp.c/for-1.h: New file.
12538         * testsuite/libgomp.c/for-2.c: New test.
12539         * testsuite/libgomp.c/for-2.h: New file.
12540         * testsuite/libgomp.c/for-3.c: New test.
12541         * testsuite/libgomp.c/pr58392.c: New test.
12542         * testsuite/libgomp.c/simd-1.c: New test.
12543         * testsuite/libgomp.c/simd-2.c: New test.
12544         * testsuite/libgomp.c/simd-3.c: New test.
12545         * testsuite/libgomp.c/simd-4.c: New test.
12546         * testsuite/libgomp.c/simd-5.c: New test.
12547         * testsuite/libgomp.c/simd-6.c: New test.
12548         * testsuite/libgomp.c/target-1.c: New test.
12549         * testsuite/libgomp.c/target-2.c: New test.
12550         * testsuite/libgomp.c/target-3.c: New test.
12551         * testsuite/libgomp.c/target-4.c: New test.
12552         * testsuite/libgomp.c/target-5.c: New test.
12553         * testsuite/libgomp.c/target-6.c: New test.
12554         * testsuite/libgomp.c/target-7.c: New test.
12555         * testsuite/libgomp.c/taskgroup-1.c: New test.
12556         * testsuite/libgomp.c/thread-limit-1.c: New test.
12557         * testsuite/libgomp.c/thread-limit-2.c: New test.
12558         * testsuite/libgomp.c/thread-limit-3.c: New test.
12559         * testsuite/libgomp.c/udr-1.c: New test.
12560         * testsuite/libgomp.c/udr-2.c: New test.
12561         * testsuite/libgomp.c/udr-3.c: New test.
12562         * testsuite/libgomp.c++/affinity-1.C: New test.
12563         * testsuite/libgomp.c++/atomic-10.C: New test.
12564         * testsuite/libgomp.c++/atomic-11.C: New test.
12565         * testsuite/libgomp.c++/atomic-12.C: New test.
12566         * testsuite/libgomp.c++/atomic-13.C: New test.
12567         * testsuite/libgomp.c++/atomic-14.C: New test.
12568         * testsuite/libgomp.c++/atomic-15.C: New test.
12569         * testsuite/libgomp.c++/cancel-for-1.C: New test.
12570         * testsuite/libgomp.c++/cancel-for-2.C: New test.
12571         * testsuite/libgomp.c++/cancel-parallel-1.C: New test.
12572         * testsuite/libgomp.c++/cancel-parallel-2.C: New test.
12573         * testsuite/libgomp.c++/cancel-parallel-3.C: New test.
12574         * testsuite/libgomp.c++/cancel-sections-1.C: New test.
12575         * testsuite/libgomp.c++/cancel-taskgroup-1.C: New test.
12576         * testsuite/libgomp.c++/cancel-taskgroup-2.C: New test.
12577         * testsuite/libgomp.c++/cancel-taskgroup-3.C: New test.
12578         * testsuite/libgomp.c++/cancel-test.h: New file.
12579         * testsuite/libgomp.c++/for-9.C: New test.
12580         * testsuite/libgomp.c++/for-10.C: New test.
12581         * testsuite/libgomp.c++/for-11.C: New test.
12582         * testsuite/libgomp.c++/simd-1.C: New test.
12583         * testsuite/libgomp.c++/simd-2.C: New test.
12584         * testsuite/libgomp.c++/simd-3.C: New test.
12585         * testsuite/libgomp.c++/simd-4.C: New test.
12586         * testsuite/libgomp.c++/simd-5.C: New test.
12587         * testsuite/libgomp.c++/simd-6.C: New test.
12588         * testsuite/libgomp.c++/simd-7.C: New test.
12589         * testsuite/libgomp.c++/simd-8.C: New test.
12590         * testsuite/libgomp.c++/target-1.C: New test.
12591         * testsuite/libgomp.c++/target-2.C: New test.
12592         * testsuite/libgomp.c++/target-2-aux.cc: New file.
12593         * testsuite/libgomp.c++/target-3.C: New test.
12594         * testsuite/libgomp.c++/taskgroup-1.C: New test.
12595         * testsuite/libgomp.c++/udr-1.C: New test.
12596         * testsuite/libgomp.c++/udr-2.C: New test.
12597         * testsuite/libgomp.c++/udr-3.C: New test.
12598         * testsuite/libgomp.c++/udr-4.C: New test.
12599         * testsuite/libgomp.c++/udr-5.C: New test.
12600         * testsuite/libgomp.c++/udr-6.C: New test.
12601         * testsuite/libgomp.c++/udr-7.C: New test.
12602         * testsuite/libgomp.c++/udr-8.C: New test.
12603         * testsuite/libgomp.c++/udr-9.C: New test.
12605 2013-09-20  Jakub Jelinek  <jakub@redhat.com>
12607         PR testsuite/57605
12608         * testsuite/lib/libgomp.exp: Add -fdiagnostics-color=never to
12609         ALWAYS_CFLAGS.
12611 2013-09-20  Alan Modra  <amodra@gmail.com>
12613         * configure: Regenerate.
12615 2013-09-19  Jakub Jelinek  <jakub@redhat.com>
12617         * testsuite/libgomp.c/sections-2.c: New test.
12619 2013-06-28  Marcus Shawcroft  <marcus.shawcroft@arm.com>
12621         * testsuite/libgomp.fortran/strassen.f90:
12622         Add dg-skip-if aarch64_tiny.
12624 2013-06-20  Iain Sandoe  <iain@codesourcery.com>
12625             Cesar Philippidis  <cesar@codesourcery.com>
12627         * testsuite/lib/libgomp.exp: Reorder lib loads into dependency order.
12628         Do not load_gcc_lib gcc-dg.exp and add a comment as to why.
12629         * testsuite/libgomp.c/c.exp: load_gcc_lib gcc-dg.exp.
12630         * testsuite/libgomp.fortran/fortran.exp: Likewise.
12631         * testsuite/libgomp.graphite/graphite.exp: Likewise.
12632         * testsuite/libgomp.c++/c++.exp: load_gcc_lib gcc-dg.exp.
12633         Use dg-runtest rather than gfortran-dg-runtest.
12635 2013-06-10  Thomas Schwinge  <thomas@codesourcery.com>
12637         * testsuite/libgomp.c/icv-2.c: Extend current handling of
12638         Linux-based x86 systems to cover all GNU systems.
12639         * testsuite/libgomp.c/lock-3.c: Likewise.
12640         * testsuite/libgomp.c/pr48591.c: Likewise.
12642 2013-06-06  Thomas Schwinge  <thomas@codesourcery.com>
12644         * configure.tgt (XCFLAGS): Add -ftls-model=initial-exec for
12645         GNU/Hurd, as done for Linux-based systems.
12647         * config/posix/ptrlock.h: Fix comment.
12649 2013-05-27  Tobias Burnus  <burnus@net-b.de>
12651         PR fortran/57423
12652         * libgomp.texi (omp_set_dynamic, omp_set_nested, omp_set_nested,
12653         omp_set_num_threads, omp_init_lock, omp_set_lock, omp_test_lock,
12654         omp_unset_lock, omp_destroy_lock, omp_init_nest_lock,
12655         omp_set_nest_lock, omp_test_nest_lock, omp_unset_nest_lock,
12656         omp_destroy_nest_lock): Correct arguments to match the one in
12657         the OpenMP spec.
12658         * omp_lib.f90.in (omp_init_lock, omp_init_nest_lock, omp_destroy_lock
12659         omp_destroy_nest_lock, omp_set_lock, omp_set_nest_lock, omp_unset_lock,
12660         omp_unset_nest_lock, omp_set_dynamic, omp_set_nested,
12661         omp_set_num_threads, omp_test_lock, omp_test_nest_lock): Ditto.
12663 2013-05-16  Jakub Jelinek  <jakub@redhat.com>
12665         * testsuite/libgomp.c/loop-13.c: New test.
12666         * testsuite/libgomp.c/loop-14.c: New test.
12667         * testsuite/libgomp.c/loop-15.c: New test.
12668         * testsuite/libgomp.c++/loop-13.C: New test.
12669         * testsuite/libgomp.c++/loop-14.C: New test.
12670         * testsuite/libgomp.c++/loop-15.C: New test.
12672 2013-02-06  Jakub Jelinek  <jakub@redhat.com>
12674         PR middle-end/56217
12675         * testsuite/libgomp.c++/pr56217.C: New test.
12677 2013-02-01  Alan Modra  <amodra@gmail.com>
12679         * task.c (GOMP_task, GOMP_taskwait): Comment.
12681 2013-01-31  Dmitry Vyukov  <dvyukov@gcc.gnu.org>
12682             Joost VandeVondele  <Joost.VandeVondele@mat.ethz.ch>
12684         PR libgomp/55561
12685         * config/linux/wait.h (do_spin): Use atomic load for addr.
12686         * config/linux/ptrlock.c (gomp_ptrlock_get_slow): Use atomic
12687         for intptr and ptrlock.
12688         * config/linux/ptrlock.h (gomp_ptrlock_get): Use atomic load
12689         for ptrlock.
12691 2013-01-22  Alan Modra  <amodra@gmail.com>
12693         PR libgomp/51376
12694         PR libgomp/56073
12695         * task.c (GOMP_task): Revert 2011-12-09 change.
12696         (GOMP_taskwait): Likewise.  Instead use atomic load with acquire
12697         barrier to read task->children..
12698         (gomp_barrier_handle_tasks): ..and matching atomic store with
12699         release barrier here when setting parent->children to NULL.
12701 2013-01-16  Jakub Jelinek  <jakub@redhat.com>
12702             Tobias Burnus  <burnus@net-b.de>
12704         PR driver/55884
12705         * testsuite/libgomp.fortran/fortran.exp: Use
12706         -fintrinsic-modules-path= instead of
12707         -fintrinsic-modules-path.
12709 2013-01-14  Richard Sandiford  <rdsandiford@googlemail.com>
12711         Update copyright years.
12713 2012-12-19  Tobias Burnus  <burnus@net-b.de>
12715         * testsuite/libgomp.fortran/fortran.exp: Set
12716         -fintrinsic-modules-path.
12718 2012-12-19  Tobias Burnus  <burnus@net-b.de>
12720         * testsuite/libgomp.fortran/use_intrinsic_1.f90: New; moved
12721         from gcc/testsuite/gfortran.dg/gomp/use_intrinsic_1.f90.
12723 2012-11-21  Jakub Jelinek  <jakub@redhat.com>
12725         PR libgomp/55411
12726         * team.c (gomp_free_thread): Decrease gomp_managed_threads
12727         if pool had any threads_used.
12729 2012-11-07  Jack Howarth <howarth@bromo.med.uc.edu>
12731         * testsuite/libgomp.c++/pr24455.C: Use
12732         -Wl,-undefined,dynamic_lookup on darwin.
12734 2012-11-07  David Edelsohn  <dje.gcc@gmail.com>
12736         * testsuite/libgomp.c++/pr24455.C: Use -Wl,-G on AIX.
12738 2012-10-24  Dominique d'Humieres  <dominiq@lps.ens.fr>
12740         * testsuite/libgomp.graphite/force-parallel-6.c: Adjust the loops.
12742 2012-10-23  Ian Bolton  <ian.bolton@arm.com>
12743             Jim MacArthur  <jim.macarthur@arm.com>
12744             Marcus Shawcroft  <marcus.shawcroft@arm.com>
12745             Nigel Stephens  <nigel.stephens@arm.com>
12746             Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
12747             Richard Earnshaw  <rearnsha@arm.com>
12748             Sofiane Naci  <sofiane.naci@arm.com>
12749             Stephen Thomas  <stephen.thomas@arm.com>
12750             Tejas Belagod  <tejas.belagod@arm.com>
12751             Yufeng Zhang  <yufeng.zhang@arm.com>
12753         * configure.tgt: Add AArch64.
12755 2012-10-04  Jason Merrill  <jason@redhat.com>
12757         * testsuite/libgomp.c++/tls-init1.C: New.
12759 2012-09-14  David Edelsohn  <dje.gcc@gmail.com>
12761         * configure: Regenerated.
12763 2012-08-29  Chung-Lin Tang  <cltang@codesourcery.com>
12765         * config/linux/mips/futex.h (sys_futex0): Change to static
12766         function with noinline, nomips16 attributes under MIPS16. Adjust
12767         asm statement to place 'li v0,SYS_futex' immediately before
12768         syscall insn.
12770 2012-07-04  Sandra Loosemore <sandra@codesourcery.com>
12772         * libgomp.texi (Library Index): Renamed from "Index" to prevent
12773         conflict with index.html on case-insensitive file systems.
12775 2012-07-03  Uros Bizjak  <ubizjak@gmail.com>
12777         * config/linux/x86/futex.h (cpu_relax): Use __builtin_ia32_pause.
12778         * testsuite/libgomp.c/sort-1.c (busy_wait): Ditto.
12780 2012-07-02  Richard Guenther  <rguenther@suse.de>
12781             Michael Matz  <matz@suse.de>
12782             Tobias Grosser <tobias@grosser.es>
12783             Sebastian Pop <sebpop@gmail.com>
12785         * testsuite/libgomp.graphite/force-parallel-4.c: Adjust.
12786         * testsuite/libgomp.graphite/force-parallel-5.c: Likewise.
12787         * testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
12788         * testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
12790 2012-06-28  Andreas Schwab  <schwab@linux-m68k.org>
12792         * libgomp.texi: Include gpl_v3.texi instead of gpl.texi.
12794 2012-06-22  Richard Guenther  <rguenther@suse.de>
12796         Merge from graphite branch
12797         2012-01-13  Tobias Grosser  <tobias@grosser.es>
12799         * testsuite/libgomp.graphite/force-parallel-1.c: Adjust.
12800         * testsuite/libgomp.graphite/force-parallel-2.c: Likewise.
12802 2012-06-07  Jakub Jelinek  <jakub@redhat.com>
12804         PR middle-end/53580
12805         * testsuite/libgomp.c/pr26943-2.c: Remove #pragma omp barrier,
12806         use GOMP_barrier () call instead.
12807         * testsuite/libgomp.c/pr26943-3.c: Likewise.
12808         * testsuite/libgomp.c/pr26943-4.c: Likewise.
12809         * testsuite/libgomp.fortran/vla4.f90: Remove !$omp barrier,
12810         call GOMP_barrier instead.
12811         * testsuite/libgomp.fortran/vla5.f90: Likewise.
12813 2012-06-06  Jakub Jelinek  <jakub@redhat.com>
12815         PR libgomp/52993
12816         * config/linux/lock.c (gomp_init_nest_lock_25): Fix up last
12817         argument to memset call.
12819 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
12821         * configure: Regenerated.
12823 2012-04-11  Manuel López-Ibáñez  <manu@gcc.gnu.org>
12825         * testsuite/lib/libgomp.exp: Add -fno-diagnostics-show-caret.
12827 2012-03-31  H.J. Lu  <hongjiu.lu@intel.com>
12829         PR bootstrap/52812
12830         * configure.tgt (i[456]86-*-linux*): Handle -mx32 like -m64.
12832 2012-03-22  Jakub Jelinek  <jakub@redhat.com>
12834         PR middle-end/52547
12835         * testsuite/libgomp.c/pr52547.c: New test.
12837 2012-03-16  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
12839         * testsuite/lib/libgomp.exp: load fortran-modules.exp
12841 2012-03-14  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
12843         * configure.tgt (mips-sgi-irix6*): Remove.
12845 2012-03-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
12847         * configure.tgt (alpha*-dec-osf*): Remove.
12849         * config/osf/sem.h: Remove.
12850         * config/posix/lock.c (_XOPEN_SOURCE): Define unconditionally.
12852 2012-02-29  Eric Botcazou  <ebotcazou@adacore.com>
12854         * config/linux/sparc/futex.h (cpu_relax): Read from CC register.
12856 2012-02-27  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
12858         PR libstdc++/52188
12859         * acinclude.m4 (LIBGOMP_ENABLE_SYMVERS): Remove symvers_renaming.
12860         Remove ENABLE_SYMVERS_SOL2.
12861         * configure: Regenerate.
12862         * Makefile.am [LIBGOMP_BUILD_VERSIONED_SHLIB] (comma): New variable.
12863         (PREPROCESS): New variable.
12864         (libgomp.ver): New target.
12865         [LIBGOMP_BUILD_VERSIONED_SHLIB &&
12866         LIBGOMP_BUILD_VERSIONED_SHLIB_GNU]: Remove
12867         LIBGOMP_BUILD_VERSIONED_SHLIB_SOL2 handling.
12868         Use libgomp.ver.
12869         [LIBGOMP_BUILD_VERSIONED_SHLIB_SUN]: Use libgomp.ver, libgomp.ver-sun.
12870         * Makefile.in: Regenerate.
12872 2012-02-14  Walter Lee  <walt@tilera.com>
12874         * configure.tgt: Handle tilegx and tilepro.
12875         * config/linux/tile/futex.h: New file.
12877 2012-02-08  Richard Guenther  <rguenther@suse.de>
12879         PR tree-optimization/46886
12880         * testsuite/libgomp.c/pr46886.c: New testcase.
12882 2012-01-25  Matthias Klose  <doko@ubuntu.com>
12884         * config/linux/arm: Remove empty directory.
12885         * configure.tgt (config_path): Remove linux-arm for arm*-*-linux*.
12887 2011-12-09  Alan Modra  <amodra@gmail.com>
12889         PR libgomp/51376
12890         * task.c (GOMP_taskwait): Don't access task->children outside of
12891         task_lock mutex region.
12892         (GOMP_task): Likewise.
12894 2011-12-06  Jakub Jelinek  <jakub@redhat.com>
12896         PR libgomp/51132
12897         * testsuite/libgomp.graphite/force-parallel-1.c: Move large arrays
12898         to file scope.
12899         * testsuite/libgomp.graphite/force-parallel-3.c: Likewise.
12900         * testsuite/libgomp.graphite/force-parallel-6.c: Likewise.
12901         * testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
12902         * testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
12903         * testsuite/libgomp.graphite/force-parallel-9.c: Likewise.
12905 2011-12-02  Alan Modra  <amodra@gmail.com>
12907         * config/linux/affinity.c: Use atomic rather than sync builtin.
12908         * config/linux/lock.c: Likewise.
12909         * config/linux/ptrlock.h: Likewise.
12910         * config/linux/ptrlock.c: Likewise.
12911         * config/linux/ptrlock.h (gomp_ptrlock_set): Always write here..
12912         * config/linux/ptrlock.c (gomp_ptrlock_set_slow): ..not here.
12913         * config/linux/futex.h (atomic_write_barrier): Delete unused function.
12914         * config/linux/alpha/futex.h (atomic_write_barrier): Likewise.
12915         * config/linux/ia64/futex.h (atomic_write_barrier): Likewise.
12916         * config/linux/mips/futex.h (atomic_write_barrier): Likewise.
12917         * config/linux/powerpc/futex.h (atomic_write_barrier): Likewise.
12918         * config/linux/s390/futex.h (atomic_write_barrier): Likewise.
12919         * config/linux/sparc/futex.h (atomic_write_barrier): Likewise.
12920         * config/linux/x86/futex.h (atomic_write_barrier): Likewise.
12922 2011-11-30  Alan Modra  <amodra@gmail.com>
12924         PR libgomp/51298
12925         * config/linux/bar.h: Use atomic rather than sync builtins.
12926         * config/linux/bar.c: Likewise.  Add missing acquire
12927         synchronisation on generation field.
12928         * task.c (gomp_barrier_handle_tasks): Regain lock so as to not
12929         double unlock.
12931 2011-11-30  Alan Modra  <amodra@gmail.com>
12933         * ordered.c (gomp_ordered_sync): Add MEMMODEL_ACQ_REL fence.
12934         * critical.c (GOMP_critical_start): Add MEMMODEL_RELEASE fence.
12935         * config/linux/mutex.h: Use atomic rather than sync builtins.
12936         * config/linux/mutex.c: Likewise.  Comment.  Use -1 for waiting state.
12937         * config/linux/omp-lock.h: Comment fix.
12938         * config/linux/arm/mutex.h: Delete.
12939         * config/linux/powerpc/mutex.h: Delete.
12940         * config/linux/ia64/mutex.h: Delete.
12941         * config/linux/mips/mutex.h: Delete.
12943 2011-11-30  Alan Modra  <amodra@gmail.com>
12945         PR libgomp/51249
12946         * config/linux/sem.h: Rewrite.
12947         * config/linux/sem.c: Rewrite.
12949 2011-11-28  Richard Henderson  <rth@redhat.com>
12951         * libgomp.h (enum memmodel): New.
12953 2011-11-21  Andreas Tobler  <andreast@fgznet.ch>
12955         * configure: Regenerate.
12957 2011-10-10  Matthias Klose  <doko@ubuntu.com>
12959         * config/posix95: Remove empty directory.
12961 2011-08-26  Jakub Jelinek  <jakub@redhat.com>
12963         * testsuite/libgomp.fortran/threadprivate4.f90: New test.
12965 2011-08-19  Jakub Jelinek  <jakub@redhat.com>
12967         PR fortran/49792
12968         * testsuite/libgomp.fortran/pr49792-1.f90: New test.
12969         * testsuite/libgomp.fortran/pr49792-2.f90: New test.
12971 2011-08-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
12973         * config/posix95/lock.c, posix95/omp-lock.h: Remove.
12975 2011-08-05  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
12977         PR libgomp/49965
12978         * testsuite/libgomp.c++/task-8.C: Replaced err by errval.
12980 2011-08-03  Uros Bizjak  <ubizjak@gmail.com>
12982         * config/linux/proc.h: New.
12983         * config/linux/proc.c: Include "proc.h".  Do not include <sched.h>.
12984         (gomp_cpuset_popcount): Rename from cpuset_popcount.  No more static.
12985         (gomp_init_num_threads): Update call to cpuset_popcount.
12986         (get_num_procs): Ditto.
12987         * config/linux/affinity.c (gomp_init_affinity): Call
12988         gomp_cpuset_popcount.
12990 2011-08-02  Jakub Jelinek  <jakub@redhat.com>
12992         PR fortran/42041
12993         PR fortran/46752
12994         * omp.h.in (omp_in_final): New prototype.
12995         * omp_lib.f90.in (omp_in_final): New interface.
12996         (omp_integer_kind, omp_logical_kind): Remove
12997         and replace all its uses in the module with 4.
12998         (openmp_version): Change to 201107.
12999         * omp_lib.h.in (omp_sched_static, omp_sched_dynamic,
13000         omp_sched_guided, omp_sched_auto): Use omp_sched_kind
13001         kind for the parameters.
13002         (omp_in_final): New external.
13003         (openmp_version): Change to 201107.
13004         * task.c (omp_in_final): New function.
13005         (gomp_init_task): Initialize final_task.
13006         (GOMP_task): Remove unused attribute from flags.  Handle final
13007         tasks.
13008         (GOMP_taskyield): New function.
13009         (omp_in_final): Return true if if (false) or final (true) task
13010         or descendant of final (true).
13011         * fortran.c (omp_in_final_): New function.
13012         * libgomp.map (OMP_3.1): Export omp_in_final and omp_in_final_.
13013         (GOMP_3.0): Export GOMP_taskyield.
13014         * env.c (gomp_nthreads_var_list, gomp_nthreads_var_list_len): New
13015         variables.
13016         (parse_unsigned_long_list): New function.
13017         (initialize_env): Use it for OMP_NUM_THREADS.  Call parse_boolean
13018         with "OMP_PROC_BIND".  If OMP_PROC_BIND=true, call gomp_init_affinity
13019         even if parse_affinity returned false.
13020         * config/linux/affinity.c (gomp_init_affinity): Handle
13021         gomp_cpu_affinity_len == 0.
13022         * libgomp_g.h (GOMP_taskyield): New prototype.
13023         * libgomp.h (struct gomp_task): Add final_task field.
13024         (gomp_nthreads_var_list, gomp_nthreads_var_list_len): New externs.
13025         * team.c (gomp_team_start): Override new task's nthreads_var icv
13026         if list form OMP_NUM_THREADS has been used and it has value for
13027         the new nesting level.
13029         * testsuite/libgomp.c/atomic-11.c: New test.
13030         * testsuite/libgomp.c/atomic-12.c: New test.
13031         * testsuite/libgomp.c/atomic-13.c: New test.
13032         * testsuite/libgomp.c/atomic-14.c: New test.
13033         * testsuite/libgomp.c/reduction-6.c: New test.
13034         * testsuite/libgomp.c/task-5.c: New test.
13035         * testsuite/libgomp.c++/atomic-2.C: New test.
13036         * testsuite/libgomp.c++/atomic-3.C: New test.
13037         * testsuite/libgomp.c++/atomic-4.C: New test.
13038         * testsuite/libgomp.c++/atomic-5.C: New test.
13039         * testsuite/libgomp.c++/atomic-6.C: New test.
13040         * testsuite/libgomp.c++/atomic-7.C: New test.
13041         * testsuite/libgomp.c++/atomic-8.C: New test.
13042         * testsuite/libgomp.c++/atomic-9.C: New test.
13043         * testsuite/libgomp.c++/task-8.C: New test.
13044         * testsuite/libgomp.c++/reduction-4.C: New test.
13045         * testsuite/libgomp.fortran/allocatable7.f90: New test.
13046         * testsuite/libgomp.fortran/allocatable8.f90: New test.
13047         * testsuite/libgomp.fortran/crayptr3.f90: New test.
13048         * testsuite/libgomp.fortran/omp_atomic3.f90: New test.
13049         * testsuite/libgomp.fortran/omp_atomic4.f90: New test.
13050         * testsuite/libgomp.fortran/pointer1.f90: New test.
13051         * testsuite/libgomp.fortran/pointer2.f90: New test.
13052         * testsuite/libgomp.fortran/task4.f90: New test.
13054 2011-08-02  Tobias Burnus  <burnus@net-b.de>
13056         * libgomp.texi: Update OpenMP spec references to 3.1.
13057         (omp_in_final,OMP_PROC_BIND): New sections.
13058         (OMP_NUM_THREADS): Document that the value can be now a list.
13059         (GOMP_STACKSIZE,GOMP_CPU_AFFINITY): Update @ref.
13061 2011-08-02  H.J. Lu  <hongjiu.lu@intel.com>
13063         * config/linux/x86/futex.h: Check __x86_64__ instead of
13064         __LP64__.
13066 2011-07-29  Jakub Jelinek  <jakub@redhat.com>
13068         PR middle-end/49897
13069         PR middle-end/49898
13070         * testsuite/libgomp.c/pr49897-1.c: New test.
13071         * testsuite/libgomp.c/pr49897-2.c: New test.
13072         * testsuite/libgomp.c/pr49898-1.c: New test.
13073         * testsuite/libgomp.c/pr49898-2.c: New test.
13075 2011-07-28  H.J. Lu  <hongjiu.lu@intel.com>
13077         * testsuite/lib/libgomp.exp (libgomp_init): Add -march=i486
13078         for ia32 instead of ilp32.
13080         * testsuite/libgomp.c/atomic-1.c: Require ia32 instead of ilp32.
13081         * testsuite/libgomp.c/atomic-6.c: Likewise.
13083 2011-07-23  Sebastian Pop  <sebastian.pop@amd.com>
13085         * testsuite/libgomp.graphite/force-parallel-1.c: Un-xfail.
13086         * testsuite/libgomp.graphite/force-parallel-2.c: Adjust pattern.
13088 2011-07-25  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
13090         PR libgomp/45351
13091         * config/osf/sem.h: New file.
13092         * configure.tgt (alpha*-dec-osf*): Prepend osf to config_path.
13094 2011-07-18  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
13096         PR target/49541
13097         * testsuite/lib/libgomp.exp (libgomp_init): Don't add -lgomp to
13098         ldflags.
13100 2011-07-15  Jakub Jelinek  <jakub@redhat.com>
13102         * config/linux/wait.h (do_spin): New inline, largely copied
13103         from do_wait, just don't do futex_wait here, instead return true if
13104         it should be done.
13105         (do_wait): Implement using do_spin.
13106         * config/linux/mutex.h (gomp_mutex_lock_slow): Add an int argument
13107         to prototype.
13108         (gomp_mutex_lock): Use __sync_val_compare_and_swap instead of
13109         __sync_bool_compare_and_swap, pass the oldval to
13110         gomp_mutex_lock_slow.
13111         * config/linux/mutex.c (gomp_mutex_lock_slow): Add oldval argument.
13112         If all mutex contenders are just spinning and not sleeping, don't
13113         change state to 2 unnecessarily.  Optimize the loop when state has
13114         already become 2 to use just one atomic operation per loop instead
13115         of two.
13116         * config/linux/ia64/mutex.h (gomp_mutex_lock_slow): Add an int argument
13117         to prototype.
13118         (gomp_mutex_lock): Use __sync_val_compare_and_swap instead of
13119         __sync_bool_compare_and_swap, pass the oldval to
13120         gomp_mutex_lock_slow.
13122 2011-06-22  Jakub Jelinek  <jakub@redhat.com>
13124         PR libgomp/49490
13125         * iter.c (gomp_iter_static_next): For chunk size 0
13126         only use n ceil/ nthreads size for the first
13127         n % nthreads threads in the team instead of
13128         all threads except for the last few ones which
13129         get less work or none at all.
13130         * iter_ull.c (gomp_iter_ull_static_next): Likewise.
13131         * env.c (parse_schedule): If OMP_SCHEDULE doesn't have
13132         chunk argument, set run_sched_modifier to 0 for static
13133         resp. 1 for other kinds.  If chunk argument is 0
13134         and not static, set value to 1.
13136 2011-05-19  Jakub Jelinek  <jakub@redhat.com>
13138         PR c++/49043
13139         * testsuite/libgomp.c++/pr49043.C: New test.
13141         PR c++/48869
13142         * testsuite/libgomp.c++/pr48869.C: New test.
13144 2011-05-06  Jakub Jelinek  <jakub@redhat.com>
13146         PR fortran/48894
13147         * fortran.c: Include limits.h.
13148         (TO_INT): Define.
13149         (omp_set_dynamic_8_, omp_set_num_threads_8_): Use !!*set instead of
13150         *set.
13151         (omp_set_num_threads_8_, omp_set_schedule_8_,
13152         omp_set_max_active_levels_8_, omp_get_ancestor_thread_num_8_,
13153         omp_get_team_size_8_): Use TO_INT macro.
13154         * testsuite/libgomp.fortran/pr48894.f90: New test.
13156 2011-04-13  Jakub Jelinek  <jakub@redhat.com>
13158         PR middle-end/48591
13159         * testsuite/libgomp.c/pr48591.c: New test.
13161 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
13163         PR bootstrap/48135
13164         * acinclude.m4 (enable_symvers): Handle --disable-symvers.
13165         * configure: Regenerate.
13167 2011-02-27  Jakub Jelinek  <jakub@redhat.com>
13169         PR fortran/47886
13170         * testsuite/libgomp.fortran/task3.f90: New test.
13172 2011-02-24  Tobias Burnus  <burnus@net-b.de>
13174         * libgomp.texi (GOMP_STACKSIZE): Fix @ref to OMP_STACKSIZE.
13176 2011-02-23  Jakub Jelinek  <jakub@redhat.com>
13178         PR libgomp/47854
13179         * libgomp.texi (omp_get_wtime): Don't say time in the past
13180         must be Unix Epoch.
13182 2011-02-18  Jakub Jelinek  <jakub@redhat.com>
13184         PR libgomp/47804
13185         * testsuite/libgomp.fortran/fortran.exp: Check for both
13186         libquadmath.a and libquadmath.${shlib_ext}.  If neither exists,
13187         but $blddir != "", still append ${blddir}/${lang_library_path}
13188         to ld_library_path.
13190 2011-02-16  Tobias Burnus  <burnus@net-b.de>
13192         PR libgomp/47758
13193         * testsuite/libgomp.fortran/fortran.exp: Check for the existence
13194         of libquadmath.a before adding its libpath to ldflags.
13196 2011-02-14  Jakub Jelinek  <jakub@redhat.com>
13198         PR libgomp/47731
13199         * config/linux/futex.h (futex_wait): Pass NULL as timeout argument
13200         to FUTEX_WAIT futex syscall.
13201         * config/linux/wait.h: Include <futex.h> instead of "futex.h".
13203 2011-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13205         * configure: Regenerate.
13207 2011-01-20  Benjamin Kosnik  <bkoz@redhat.com>
13209         PR libstdc++/36104
13210         * acinclude.m4 (LIBGOMP_ENABLE_SYMVERS): Accept gnu variants.
13212 2011-01-16  Gerald Pfeifer
13214         * configure.tgt (*-*-freebsd*): Add -lpthread to XLDFLAGS.
13216 2010-12-14  Jakub Jelinek  <jakub@redhat.com>
13218         PR fortran/46874
13219         * libgomp.fortran/allocatable6.f90: New test.
13221 2010-12-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
13223         * acinclude.m4 (symvers_renaming): Also set if enable_symvers = no.
13224         * configure: Regenerate.
13226 2010-12-06  Dave Korn  <dave.korn.cygwin@gmail.com>
13228         PR target/40125
13229         PR lto/46695
13230         * configure.ac: Invoke ACX_LT_HOST_FLAGS.
13231         * Makefile.am (libgomp_la_LDFLAGS): Use lt_host_flags.
13232         * aclocal.m4: Regenerate.
13233         * configure: Regenerate.
13234         * Makefile.in: Regenerate.
13235         * testsuite/Makefile.in: Regenerate.
13237 2010-12-02  Jakub Jelinek  <jakub@redhat.com>
13239         PR fortran/46753
13240         * libgomp.fortran/pr46753.f90: New test.
13242         PR libgomp/43706
13243         * env.c (initialize_env): Default to spin count 300000
13244         instead of 20000000 if neither OMP_WAIT_POLICY nor GOMP_SPINCOUNT
13245         is specified.
13247         PR libgomp/45240
13248         * parallel.c (GOMP_parallel_end): Unlock gomp_remaining_threads_lock
13249         at the end if sync builtins aren't supported.
13251 2010-12-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
13253         * configure.tgt (mips-sgi-irix6*): Add -lpthread to XLDFLAGS.
13255 2010-12-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
13257         * testsuite/libgomp.fortran/vla8.f90: Use dg-timeout-factor 2.0.
13259 2010-11-24  Iain Sandoe  <iains@gcc.gnu.org>
13261         * testsuite/libgomp.fortran/fortran.exp: Add paths for libquadmath.
13263 2010-11-16  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
13264             Tobias Burnus  <burnus@net-b.de>
13266         PR fortran/32049
13267         * configure.ac:
13268         * configure: Regenerate.
13270 2010-10-06  Marcus Shawcroft  <marcus.shawcroft@arm.com>
13272         * config/linux/futex.h: New.
13273         * config/linux/arm/mutex.h: New.
13274         * configure.tgt (arm*-*-linux*): Add config path.
13276 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
13278         * testsuite/libgomp.graphite/force-parallel-1.c: Adjust.
13280 2010-09-23  Tobias Burnus  <burnus@net-b.de>
13282         * libgomp.texi (omp_get_nested, omp_set_nested, omp_set_dynamic):
13283         Change Fortran datatype to LOGICAL.
13284         (omp_set_lock, omp_test_lock, omp_unset_lock, omp_set_nested_lock,
13285         omp_unset_nested_lock): Use intent(inout) instead of intent(out).
13287 2010-08-21  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13289         * configure: Regenerate.
13291 2010-07-26  Jakub Jelinek  <jakub@redhat.com>
13293         * libgomp.texi: Add function keyword to a couple of Fortran
13294         interfaces, use integer instead of int for Fortran.
13296 2010-07-26  Aldy Hernandez  <aldyh@redhat.com>
13298         * libgomp.texi: Fix spelling and pasto problems throughout.
13299         Adjust prototypes to match code.
13301 2010-07-24  Tobias Burnus  <burnus@net-b.de>
13303         * testsuite/libgomp.fortran/appendix-a/a.28.5.f90: Add -w to
13304         silence -fwhole-file warning.
13306 2010-07-23  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
13308         * configure.tgt (*-*-solaris2.[56]*): Removed.
13310 2010-07-05  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
13312         * acinclude.m4 (LIBGOMP_ENABLE_SYMVERS): Handle sun style.
13313         Define LIBGOMP_BUILD_VERSIONED_SHLIB_GNU,
13314         LIBGOMP_BUILD_VERSIONED_SHLIB_SUN automake conditionals.
13315         (HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT): Define unless
13316         targetting solaris2*.
13317         * configure: Regenerate.
13318         * config.h.in: Regenerate.
13320         * Makefile.am [LIBGOMP_BUILD_VERSIONED_SHLIB]: Protect
13321         libgomp_version_script with LIBGOMP_BUILD_VERSIONED_SHLIB_GNU.
13322         Add libgomp_version_dep.
13323         [LIBGOMP_BUILD_VERSIONED_SHLIB_SUN]: Handle Sun symbol
13324         versioning.
13325         [!LIBGOMP_BUILD_VERSIONED_SHLIB]: Add libgomp_version_dep.
13326         (libgomp_la_DEPENDENCIES): Set to $(libgomp_version_dep).
13327         * Makefile.in: Regenerate.
13329         * libgomp.h (LIBGOMP_GNU_SYMBOL_VERSIONING): Undef unless
13330         HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT.
13331         * libgomp.map (OMP_1.0): Move symbols both in OMP_1.0 and OMP_3.0
13332         to common block, protected by
13333         HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT.
13335 2010-06-10  Gerald Pfeifer  <gerald@pfeifer.com>
13337         * libgomp.texi: Move to GFDL version 1.3.  Update copyright years.
13339 2010-06-09  Iain Sandoe  <iains@gcc.gnu.org>
13341         PR bootstrap/43170
13342         * configure: Regenerate.
13344 2010-05-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13346         PR other/43620
13347         * configure.ac (AM_INIT_AUTOMAKE): Add no-dist.
13348         * configure: Regenerate.
13349         * Makefile.in: Regenerate.
13350         * testsuite/Makefile.in: Regenerate.
13352 2010-04-26  Jakub Jelinek  <jakub@redhat.com>
13354         PR c/43893
13355         * testsuite/libgomp.c/pr43893.c: New test.
13356         * testsuite/libgomp.c++/pr43893.C: New test.
13358 2010-04-21  Jakub Jelinek  <jakub@redhat.com>
13360         PR middle-end/43570
13361         * testsuite/libgomp.fortran/vla8.f90: New test.
13363 2010-04-20  Jakub Jelinek  <jakub@redhat.com>
13365         PR libgomp/43706
13366         * config/linux/affinity.c (gomp_init_affinity): Decrease
13367         gomp_available_cpus if affinity mask confines the process to fewer
13368         CPUs.
13369         * config/linux/proc.c (get_num_procs): If gomp_cpu_affinity is
13370         non-NULL, just return gomp_available_cpus.
13372         PR libgomp/43569
13373         * sections.c (gomp_sections_init): Initialize ws->mode.
13375 2010-04-14  Uros Bizjak  <ubizjak@gmail.com>
13377         * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS): Remove set but
13378         not unused bar variable.
13379         * configure: Regenerate.
13381 2010-04-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13383         * Makefile.in: Regenerate.
13384         * aclocal.m4: Regenerate.
13385         * testsuite/Makefile.in: Regenerate.
13387 2010-03-22  Jakub Jelinek  <jakub@redhat.com>
13389         PR libgomp/42942
13390         * env.c (parse_unsigned_long): Add ALLOW_ZERO argument.
13391         (initialize_env): Adjust callers.
13392         (omp_set_max_active_levels): Set gomp_max_active_levels_var even
13393         when the argument is 0.
13395         * testsuite/libgomp.c/pr42942.c: New test.
13397 2010-03-08  Tobias Grosser  <grosser@fim.uni-passau.de>
13399         PR middle-end/42644
13400         PR middle-end/42130
13401         * testsuite/libgomp.graphite/force-parallel-1.c: Adjust.
13402         * testsuite/libgomp.graphite/force-parallel-2.c: Adjust.
13404 2010-01-29  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
13406         * testsuite/libgomp.c++/task-1.C: Renamed err to e.
13407         * testsuite/libgomp.c++/task-6.C: Likewise.
13409 2010-01-28  Steve Ellcey  <sje@cup.hp.com>
13411         * configure.tgt (*-*-hpux*): Add -frandom-seed flag.
13413 2010-01-26  Paolo Bonzini  <bonzini@gnu.org>
13415         * configure.ac: Test for executability of _the first word_ of GFORTRAN.
13416         * configure: Regenerate.
13418 2010-01-26  Jakub Jelinek  <jakub@redhat.com>
13420         PR fortran/42866
13421         * testsuite/libgomp.fortran/allocatable5.f90: New test.
13423 2010-01-20  Paolo Bonzini  <bonzini@gnu.org>
13425         * configure.ac: Test for executability of GFORTRAN.
13426         * configure: Regenerate.
13428 2010-01-05  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
13430         * configure: Regenerate.
13432 2010-01-04  H.J. Lu  <hongjiu.lu@intel.com>
13434         PR libgomp/42602
13435         * libgomp.fortran/recursion1.f90 (sub): Make 's' atomic.
13437 2010-01-03  Richard Guenther  <rguenther@suse.de>
13439         * testsuite/libgomp.fortran/recursion1.f90: New testcase.
13441 2009-12-23  Sebastian Pop  <sebpop@gmail.com>
13443         * testsuite/libgomp.graphite/pr4118.c: New.
13445 2009-12-22  Iain Sandoe  <iain.sandoe@sandoe-acoustics.co.uk>
13447         * testsuite/libgomp.fortran/crayptr2.f90: Remove forced static linkage
13448         for darwin, protect the test with require-effective-target tls_runtime.
13449         * testsuite/libgomp.fortran/pr32550.f90: Ditto.
13451 2009-12-22  Iain Sandoe  <iain.sandoe@sandoe-acoustics.co.uk>
13453         PR target/41605
13454         * testsuite/lib/libgomp.exp: Provide -B options to allow for
13455         link spec %s substitutions for static libraries.
13457 2009-12-18  Jack Howarth <howarth@bromo.med.uc.edu>
13459         PR testsuite/42135
13460         * libgomp.graphite/force-parallel-2.c: Reduce array size.
13462 2009-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13464         * Makefile.in: Regenerate.
13465         * configure: Regenerate.
13466         * testsuite/Makefile.in: Regenerate.
13468 2009-11-30  Dave Korn  <dave.korn.cygwin@gmail.com>
13470         * testsuite/lib/libgomp.exp (libgomp_init): Add host-dependent
13471         settings for LC_ALL and LANG.
13473 2009-11-25  Jakub Jelinek  <jakub@redhat.com>
13475         PR fortran/42162
13476         * testsuite/libgomp.fortran/pr42162.f90: New test.
13478 2009-11-13  Jakub Jelinek  <jakub@redhat.com>
13480         PR middle-end/42029
13481         * testsuite/libgomp.c/pr42029.c: New test.
13483 2009-10-26  Jakub Jelinek  <jakub@redhat.com>
13485         * acinclude.m4 (LIBGOMP_CHECK_LINKER_FEATURES): Avoid using too many
13486         *s.  Accept ld version without text in ()s.
13487         * configure: Regenerated.
13489 2009-10-22  Razya Ladelsky  <razya@il.ibm.com>
13491         * testsuite/libgomp.graphite/force-parallel-2.c: Adjust scan.
13493 2009-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13495         PR libgomp/41418
13496         * configure.ac: Set FC to "no" if $GFORTRAN starts with "no"
13497         or a hyphen (happens with fortran language disabled).
13498         * configure: Regenerate.
13500 2009-09-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13502         * acinclude.m4 (LIBGOMP_CHECK_LINKER_FEATURES): Avoid 'head',
13503         use sed script portable to Solaris /bin/sed for extracting ld
13504         version.
13505         * configure: Regenerate.
13507 2009-09-17  Alexander Monakov  <amonakov@ispras.ru>
13509         * testsuite/libgomp.graphite/bounds.c: New test.
13511 2009-09-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13513         * Makefile.am (libgomp_la_LINK): New.
13514         * Makefile.in: Regenerate.
13516 2009-08-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13518         * configure.ac (AC_PREREQ): Bump to 2.64.
13520 2009-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13522         * Makefile.am (install-html, install-pdf): Remove.
13523         * Makefile.in: Regenerate.
13525         * Makefile.in: Regenerate.
13526         * aclocal.m4: Regenerate.
13527         * config.h.in: Regenerate.
13528         * configure: Regenerate.
13529         * testsuite/Makefile.in: Regenerate.
13531 2009-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13533         * Makefile.am (LINK): Add $(AM_LIBTOOLFLAGS) and $(LIBTOOLFLAGS).
13534         * Makefile.in: Regenerate.
13536 2009-08-20  Dave Korn  <dave.korn.cygwin@gmail.com>
13538         * Makefile.am (libgomp_la_LDFLAGS): Add -bindir flag.
13539         * Makefile.in: Regenerate.
13541 2009-08-19  Tobias Burnus  <burnus@net-b.de>
13543         PR fortran/41102
13544         omp_lib.h.in: Fix -std=f95 errors.
13546 2009-08-14  David Edelsohn  <edelsohn@gnu.org>
13548         * testsuite/libgomp.graphite: Move from gcc.dg/graphite.
13549         * testsuite/libgomp.graphite/graphite_autopar.exp: Delete.
13550         * testsuite/libgomp.graphite/graphite.exp: New.
13552 2009-08-05  Andreas Tobler  <a.tobler@schweiz.org>
13554         * testsuite/libgomp.fortran/fortran.exp: Add flags in case of shared
13555         only build.
13557 2009-08-04  David Daney  <ddaney@caviumnetworks.com>
13559         * config/linux/mutex.h (gomp_mutex_unlock): Add comment about
13560         needed memory barrier semantics.
13561         * config/linux/mips/mutex.h: New file.
13563 2009-07-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13565         * configure.ac (_AC_ARG_VAR_PRECIOUS): Use m4_rename_force.
13567 2009-07-16  Joseph Myers  <joseph@codesourcery.com>
13569         * configure: Regenerate.
13571 2009-07-11  Richard Sandiford  <rdsandiford@googlemail.com>
13573         PR testsuite/40699
13574         PR testsuite/40707
13575         PR testsuite/40709
13576         * testsuite/lib/libgomp.exp: Revert 2009-07-02 and 2009-06-30 commits.
13577         * testsuite/libgomp.c/c.exp, testsuite/libgomp.c++/c++.exp,
13578         testsuite/libgomp.fortran/fortran.exp: Revert 2009-06-30 commits.
13580 2009-07-02  Richard Sandiford  <r.sandiford@uk.ibm.com>
13582         * testsuite/lib/libgomp.exp (libgomp_init): Use the ALWAYS_CFLAGS
13583         options when choosing a multilib.
13585 2009-06-30  Richard Sandiford  <r.sandiford@uk.ibm.com>
13587         * testsuite/lib/libgomp.exp (libgomp_init): Don't add "." to
13588         ld_library_path.  Use add_path.  Add just find_libgcc_s to
13589         ld_library_path, not every libgcc multilib directory.
13590         * testsuite/libgomp.c/c.exp (ld_library_path): Don't call
13591         gcc-set-multilib-library-path; rely on $always_ld_library_path instead.
13592         * testsuite/libgomp.c++/c++.exp (ld_library_path): Likewise.
13593         Use add_path.
13594         * testsuite/libgomp.fortran/fortran.exp (ld_library_path): Likewise.
13596 2009-06-09  Nathan Froyd  <froydnj@codesourcery.com>
13598         * Makefile.am (LTLDFLAGS): Define.
13599         (LINK): Define.
13600         * Makefile.in: Regenerate.
13602 2009-05-27  Janne Blomqvist  <jb@gcc.gnu.org>
13604         PR fortran/39718
13605         * testsuite/libgomp.fortran/fortran.exp: Don't link with
13606         libgfortranbegin, check existence of libgfortran.a instead of
13607         libgfortranbegin.a.
13609 2009-05-20  Jakub Jelinek  <jakub@redhat.com>
13611         PR libgomp/40174
13612         * team.c (gomp_thread_start): Destroy thr->release semaphore.
13613         (gomp_free_pool_helper): Likewise.
13615 2009-04-20  Vasilis Liaskovitis  <vliaskov@gmail.com>
13616             Jakub Jelinek  <jakub@redhat.com>
13618         PR fortran/35423
13619         * testsuite/libgomp.fortran/workshare2.f90: New test.
13621 2009-04-09  Nick Clifton  <nickc@redhat.com>
13623         * iter.c: Change copyright header to refer to version 3 of the
13624         GNU General Public License with version 3.1 of the GCC Runtime
13625         Library Exception and to point readers at the COPYING3 and
13626         COPYING3.RUNTIME files and the FSF's license web page.
13627         * alloc.c: Likewise.
13628         * barrier.c: Likewise.
13629         * config/bsd/proc.c: Likewise.
13630         * config/linux/affinity.c: Likewise.
13631         * config/linux/alpha/futex.h: Likewise.
13632         * config/linux/bar.c: Likewise.
13633         * config/linux/bar.h: Likewise.
13634         * config/linux/ia64/futex.h: Likewise.
13635         * config/linux/ia64/mutex.h: Likewise.
13636         * config/linux/lock.c: Likewise.
13637         * config/linux/mips/futex.h: Likewise.
13638         * config/linux/mutex.c: Likewise.
13639         * config/linux/mutex.h: Likewise.
13640         * config/linux/powerpc/futex.h: Likewise.
13641         * config/linux/proc.c: Likewise.
13642         * config/linux/ptrlock.c: Likewise.
13643         * config/linux/ptrlock.h: Likewise.
13644         * config/linux/s390/futex.h: Likewise.
13645         * config/linux/sem.c: Likewise.
13646         * config/linux/sem.h: Likewise.
13647         * config/linux/sparc/futex.h: Likewise.
13648         * config/linux/wait.h: Likewise.
13649         * config/linux/x86/futex.h: Likewise.
13650         * config/mingw32/proc.c: Likewise.
13651         * config/mingw32/time.c: Likewise.
13652         * config/posix/affinity.c: Likewise.
13653         * config/posix/bar.c: Likewise.
13654         * config/posix/bar.h: Likewise.
13655         * config/posix/lock.c: Likewise.
13656         * config/posix/mutex.h: Likewise.
13657         * config/posix/proc.c: Likewise.
13658         * config/posix/ptrlock.h: Likewise.
13659         * config/posix/sem.c: Likewise.
13660         * config/posix/sem.h: Likewise.
13661         * config/posix/time.c: Likewise.
13662         * config/posix95/lock.c: Likewise.
13663         * critical.c: Likewise.
13664         * env.c: Likewise.
13665         * error.c: Likewise.
13666         * fortran.c: Likewise.
13667         * iter_ull.c: Likewise.
13668         * libgomp.h: Likewise.
13669         * libgomp_f.h.in: Likewise.
13670         * libgomp_g.h: Likewise.
13671         * loop.c: Likewise.
13672         * loop_ull.c: Likewise.
13673         * omp.h.in: Likewise.
13674         * omp_lib.f90.in: Likewise.
13675         * omp_lib.h.in: Likewise.
13676         * ordered.c: Likewise.
13677         * parallel.c: Likewise.
13678         * sections.c: Likewise.
13679         * single.c: Likewise.
13680         * task.c: Likewise.
13681         * team.c: Likewise.
13682         * work.c: Likewise.
13684 2009-04-09  Jakub Jelinek  <jakub@redhat.com>
13686         * testsuite/config/default.exp: Change copyright header to refer to
13687         version 3 of the GNU General Public License and to point readers
13688         at the COPYING3 file and the FSF's license web page.
13690 2009-04-08  Jakub Jelinek  <jakub@redhat.com>
13692         PR middle-end/39573
13693         * libgomp.c++/pr39573.C: New test.
13695 2009-04-01  Jakub Jelinek  <jakub@redhat.com>
13697         PR other/39591
13698         * testsuite/libgomp.c/pr39591-1.c: New test.
13699         * testsuite/libgomp.c/pr39591-2.c: New test.
13700         * testsuite/libgomp.c/pr39591-3.c: New test.
13702 2009-03-25  Uros Bizjak  <ubizjak@gmail.com>
13704         * testsuite/libgomp.c/atomic-5.c: Cleanup cpuid usage.
13705         * testsuite/libgomp.c/atomic-6.c: Ditto.
13707 2009-03-23  Jakub Jelinek  <jakub@redhat.com>
13709         PR c/39495
13710         * testsuite/libgomp.c/loop-12.c: New test.
13711         * testsuite/libgomp.c/loop-11.c: New test.
13712         * testsuite/libgomp.c++/loop-11.C: New test.
13713         * testsuite/libgomp.c++/loop-12.C: New test.
13714         * testsuite/libgomp.c++/for-8.C: New test.
13716 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13718         * configure: Regenerate.
13720 2009-02-11  Jakub Jelinek  <jakub@redhat.com>
13722         PR middle-end/39154
13723         * testsuite/libgomp.c/pr39154.c: New test.
13725 2009-01-30  Ian Lance Taylor  <iant@google.com>
13727         * acinclude.m4 (LIBCOMP_CHECK_LINKER_FEATURES): Set
13728         libgomp_ld_is_gold.  Get gold version number.
13729         (LIBGOMP_ENABLE_SYMVERS): Gold always support symbol versioning.
13730         * configure: Rebuild.
13732 2009-01-19  Iain Sandoe  <iain.sandoe@sandoe-acoustics.co.uk>
13734         * testsuite/lib/libgomp.exp: Add -B option for targets that
13735         use libgfortran.a%s in their specs.
13737 2009-01-07  Jakub Jelinek  <jakub@redhat.com>
13739         PR libgomp/38086
13740         * acinclude.m4 (HAVE_AS_SYMVER_DIRECTIVE): New check.
13741         * libgomp.h (LIBGOMP_GNU_SYMBOL_VERSIONING): Undefine if
13742         HAVE_AS_SYMVER_DIRECTIVE is not defined.
13743         * configure: Regenerated.
13744         * config.h.in: Likewise.
13746 2008-12-28  Jakub Jelinek  <jakub@redhat.com>
13748         PR c++/38650
13749         * testsuite/libgomp.c/pr38650.c: New test.
13750         * testsuite/libgomp.c++/pr38650.C: New test.
13752 2008-12-27  Jakub Jelinek  <jakub@redhat.com>
13754         * testsuite/libgomp.c/collapse-1.c (main): Add private(k) clause.
13756 2008-12-26  Uros Bizjak  <ubizjak@gmail.com>
13758         * testsuite/libgomp.c/atomic-6.c: Add -mieee for alpha*-*-* targets.
13760 2008-12-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13762         * configure: Regenerate.
13764 2008-12-08  Jakub Jelinek  <jakub@redhat.com>
13766         PR middle-end/36802
13767         * testsuite/libgomp.c/pr36802-1.c: New test.
13768         * testsuite/libgomp.c/pr36802-2.c: New test.
13769         * testsuite/libgomp.c/pr36802-3.c: New test.
13771 2008-12-01  Janis Johnson  <janis187@us.ibm.com>
13773         PR libgomp/38270
13774         * config/linux/powerpc/mutex.h: New.
13776 2008-12-01  Jakub Jelinek  <jakub@redhat.com>
13778         PR c++/38257
13779         * testsuite/libgomp.c++/for-7.C: New test.
13781         PR c++/38348
13782         * testsuite/libgomp.c++/for-6.C: New test.
13784 2008-11-26  Janis Johnson  <janis187@us.ibm.com>
13786         PR testsuite/28870
13787         * testsuite/lib/libgomp.exp: Include new timeout library files.
13788         (libgomp_target_compile): Set timeout value from new proc.
13790 2008-11-13  Steve Ellcey  <sje@cup.hp.com>
13792         PR libgomp/37938
13793         * config/linux/ia64/mutex.h: New.
13795 2008-11-04  Tobias Burnus  <burnus@net-b.de>
13797         PR libgomp/37935
13798         * libgomp.texi (Runtime library routines, environment variables):
13799         Update for OpenMP version 3.0.
13801 2008-09-26  Peter O'Gorman  <pogma@thewrittenword.com>
13802             Steve Ellcey  <sje@cup.hp.com>
13804         * configure: Regenerate for new libtool.
13805         * Makefile.in: Ditto.
13806         * testsuite/Makefile.in: Ditto.
13808 2008-09-19  Jakub Jelinek  <jakub@redhat.com>
13809             Andreas Tobler  <a.tobler@schweiz.org>
13811         * config/bsd/proc.c: New file.
13812         * configure.tgt (*-*-darwin*): Use config_path "bsd posix".
13813         * configure.ac: Check for header <sys/sysctl.h>
13814         * configure: Regenerate.
13815         * config.h.in: Likewise.
13817 2008-09-05  Janis Johnson  <janis187@us.ibm.com>
13819         * testsuite/ligbomp.c/c.exp: Unset lang_test_file only if it exists.
13821 2008-08-31  Aaron W. LaFramboise  <aaronavay62@aaronwl.com>
13823         * Makefile.am (libgomp_la_LDFLAGS): Add -no-undefined.
13824         * Makefile.in: Regenerated.
13825         * testsuite/Makefile.in: Regenerated.
13827 2008-08-21  Nathan Froyd  <froydnj@codesourcery.com>
13829         * testsuite/lib/libgomp.exp (libgomp_init): Only set things that
13830         depend on blddir if blddir exists.
13831         (libgomp_target_compile): Likewise.
13832         * testsuite/libgomp.c++/c++.exp: Likewise.
13833         * testsuite/libgomp.fortran/fortran.exp: Likewise.
13835 2008-07-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13837         * libgomp.texi: Update to GFDL 1.2.  Update copyright years.
13838         Do not list GPL as Invariant Section.
13840 2008-07-28  Ilie Garbacea  <ilie@mips.com>
13841             Chao-ying Fu  <fu@mips.com>
13843         * configure.tgt: Enable futex for MIPS.
13844         * config/linux/mips/futex.h: New file.
13846 2008-07-16  Jakub Jelinek  <jakub@redhat.com>
13848         * team.c (gomp_team_end): Free team immediately if it has
13849         just one thread.
13851 2008-07-08  David Edelsohn  <edelsohn@gnu.org>
13853         * testsuite/libgomp.c++/c++.exp: Append multilib library path.
13854         * testsuite/libgomp.fortran/fortran.exp: Same.
13855         * testsuite/libgomp.c/c.exp: Same.
13856         * testsuite/lib/libgomp.exp: Append AIX libgcc pthread multilib
13857         directory to library path first.
13859 2008-06-29  Krister Walfridsson  <krister.walfridsson@gmail.com>
13861         * env.c (parse_stacksize): Add cast to avoid warning.
13862         (parse_spincount): Likewise.
13864 2008-06-27  Jakub Jelinek  <jakub@redhat.com>
13866         * testsuite/libgomp.c/loop-10.c: New test.
13867         * libgomp.c/loop-3.c (main): Add lastprivate clause.
13868         * libgomp.c++/loop-6.C (main): Likewise.
13870         PR debug/36617
13871         * testsuite/libgomp.c/debug-1.c: New test.
13873 2008-06-19  Jakub Jelinek  <jakub@redhat.com>
13875         * testsuite/libgomp.c/nqueens-1.c: New test.
13877         PR c++/36523
13878         * testsuite/libgomp.c++/task-7.C: New function.
13880 2008-06-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13882         * configure: Regenerate.
13884 2008-06-15  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
13886         * env.c (initialize_env): Always initialize gomp_remaining_threads_lock
13887         mutex when HAVE_SYNC_BUILTINS isn't defined.
13889 2008-06-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13891         * libgomp.texi (omp_test_lock): Fix typo.
13893 2008-06-12  Tobias Burnus  <burnus@net-b.de>
13895         * omp_lib.f90.in: Add "implicit none".
13897 2008-06-12  Jakub Jelinek  <jakub@redhat.com>
13899         PR middle-end/36506
13900         * testsuite/libgomp.c/reduction-5.c: New test.
13902 2008-06-11  Jakub Jelinek  <jakub@redhat.com>
13904         * libgomp.h (struct gomp_task): Add in_tied_task field.
13905         * task.c (gomp_init_task): Initialize it.
13906         (GOMP_task): Likewise.  Call gomp_team_barrier_set_task_pending
13907         unconditionally.  Don't call gomp_team_barrier_wake if
13908         current task is implicit or if(0) from implicit and number of
13909         running tasks is equal to nthreads - 1.
13911         PR libgomp/36471
13912         * omp_lib.f90.in (omp_get_ancestor_thread_num_8,
13913         omp_get_team_size_8): Fix pastos.
13915         PR libgomp/36469
13916         * configure.ac: Add AC_CHECK_FUNCS (strtoull).
13917         * configure: Regenerated.
13918         * config.h.in: Regenerated.
13919         * env.c (strtoull): Define to strtoul if HAVE_STRTOULL is not
13920         defined.
13922 2008-06-06  Andreas Tobler  <a.tobler@schweiz.org>
13924         PR bootstrap/36452
13925         * loop_ull.c (GOMP_loop_ull_static_start): Adjust API.
13926         (GOMP_loop_ull_dynamic_start): Likewise.
13927         (GOMP_loop_ull_guided_start): Likewise.
13928         (GOMP_loop_ull_ordered_static_start): Likewise.
13929         (GOMP_loop_ull_ordered_dynamic_start): Likewise.
13930         (GOMP_loop_ull_ordered_guided_start): Likewise.
13932 2008-06-06  Jakub Jelinek  <jakub@redhat.com>
13933             Richard Henderson  <rth@redhat.com>
13934             Ulrich Drepper  <drepper@redhat.com>
13935             Jakob Blomer  <jakob.blomer@ira.uka.de>
13937         * configure.ac (LIBGOMP_GNU_SYMBOL_VERSIONING): New AC_DEFINE.
13938         Substitute also OMP_*LOCK_25*.
13939         * configure: Regenerated.
13940         * config.h.in: Regenerated.
13941         * Makefile.am (libgomp_la_SOURCES): Add loop_ull.c, iter_ull.c,
13942         ptrlock.c and task.c.
13943         * Makefile.in: Regenerated.
13944         * testsuite/Makefile.in: Regenerated.
13945         * task.c: New file.
13946         * loop_ull.c: New file.
13947         * iter_ull.c: New file.
13948         * libgomp.h: Include ptrlock.h.
13949         (enum gomp_task_kind): New type.
13950         (struct gomp_team): Add task_lock, task_queue, task_count,
13951         task_running_count, single_count fields.  Add
13952         work_share_list_free_lock ifndef HAVE_SYNC_BUILTINS.
13953         Remove work_share_lock, generation_mask,
13954         oldest_live_gen, num_live_gen and init_work_shares fields, add
13955         work work_share_list_alloc, work_share_list_free and work_share_chunk
13956         fields.  Change work_shares from pointer to pointers into an array.
13957         Change ordered_release field into gomp_sem_t ** from flexible array
13958         member.  Add implicit_task and initial_work_shares fields.
13959         Move close to the end of the struct.
13960         (struct gomp_team_state): Add single_count, last_work_share,
13961         active_level and level fields, remove work_share_generation.
13962         (gomp_barrier_handle_tasks): New prototype.
13963         (gomp_finish_task): New inline function.
13964         (struct gomp_work_share): Move chunk_size, end, incr into
13965         transparent union/struct, add chunk_size_ull, end_ll, incr_ll and
13966         next_ll fields.  Reshuffle fields.  Add next_alloc,
13967         next_ws, next_free and inline_ordered_team_ids fields, change
13968         ordered_team_ids into pointer from flexible array member.
13969         Add mode field.  Put lock and next into a different cache line
13970         from most of the write-once fields.
13971         (gomp_iter_ull_static_next, gomp_iter_ull_dynamic_next_locked,
13972         gomp_iter_ull_guided_next_locked, gomp_iter_ull_dynamic_next,
13973         gomp_iter_ull_guided_next): New prototypes.
13974         (gomp_new_icv): New prototype.
13975         (struct gomp_thread): Add thread_pool and task fields.
13976         (struct gomp_thread_pool): New type.
13977         (gomp_new_team): New prototype.
13978         (gomp_team_start): Change type of last argument.
13979         (gomp_new_work_share): Removed.
13980         (gomp_init_work_share, gomp_fini_work_share): New prototypes.
13981         (gomp_work_share_init_done): New static inline.
13982         (gomp_throttled_spin_count_var, gomp_available_cpus,
13983         gomp_managed_threads): New extern decls.
13984         (gomp_init_task): New prototype.
13985         (gomp_spin_count_var): New extern var decl.
13986         (LIBGOMP_GNU_SYMBOL_VERSIONING): Undef if no visibility
13987         or no alias support, or if not PIC.
13988         (gomp_init_lock_30, gomp_destroy_lock_30, gomp_set_lock_30,
13989         gomp_unset_lock_30, gomp_test_lock_30, gomp_init_nest_lock_30,
13990         gomp_destroy_nest_lock_30, gomp_set_nest_lock_30,
13991         gomp_unset_nest_lock_30, gomp_test_nest_lock_30, gomp_init_lock_25,
13992         gomp_destroy_lock_25, gomp_set_lock_25, gomp_unset_lock_25,
13993         gomp_test_lock_25, gomp_init_nest_lock_25, gomp_destroy_nest_lock_25,
13994         gomp_set_nest_lock_25, gomp_unset_nest_lock_25,
13995         gomp_test_nest_lock_25): New prototypes.
13996         (omp_lock_symver, strong_alias): Define.
13997         (gomp_remaining_threads_count, gomp_remaining_threads_lock): New
13998         decls.
13999         (gomp_end_task): New.
14000         (struct gomp_task_icv, gomp_global_icv): New.
14001         (gomp_thread_limit_var, gomp_max_active_levels_var): New.
14002         (struct gomp_task): New.
14003         (gomp_nthreads_var, gomp_dyn_var, gomp_nest_var,
14004         gomp_run_sched_var, gomp_run_sched_chunk): Remove.
14005         (gomp_icv): New.
14006         (gomp_schedule_type): Reorder enum to match
14007         omp_sched_t.
14008         * team.c (struct gomp_thread_start_data): Add thread_pool and task
14009         fields.
14010         (gomp_thread_start): Add gomp_team_barrier_wait call.
14011         For non-nested case remove clearing of docked thread thr fields.
14012         Use pool fields instead of global gomp_* variables.  Use
14013         gomp_barrier_wait_last when needed.  Initialize ts.active_level.
14014         Create tasks for each member thread.
14015         (free_team): Only destroy team barrier, task_lock here and free it.
14016         (gomp_free_thread): Free last_team if non-NULL.
14017         (gomp_team_end): Call gomp_team_barrier_wait instead of
14018         gomp_barrier_wait.  For nested case call one extra
14019         gomp_barrier_wait.  Move here some destruction from free_team.
14020         Call free_team on pool->last_team if any, rather than freeing
14021         current team.  Destroy work_share_list_free_lock ifndef
14022         HAVE_SYNC_BUILTINS.
14023         (gomp_new_icv): New function.
14024         (gomp_threads, gomp_threads_size, gomp_threads_used,
14025         gomp_threads_dock): Removed.
14026         (gomp_thread_destructor): New variable.
14027         (gomp_new_thread_pool, gomp_free_pool_helper, gomp_free_thread): New
14028         functions.
14029         (gomp_team_start): Create new pool if current thread doesn't have
14030         one.  Use pool fields instead of global gomp_* variables.
14031         Initialize thread_pool field for new threads.  Clear single_count.
14032         Change last argument from ws to team, don't create
14033         new team, set ts.work_share to &team->work_shares[0] and clear
14034         ts.last_work_share.  Don't clear ts.work_share_generation.
14035         If number of threads changed, adjust atomically gomp_managed_threads.
14036         Use gomp_init_task instead of gomp_new_task,
14037         set thr->task to the corresponding implicit_task array entry.
14038         Create tasks for each member thread.  Initialize ts.level.
14039         (initialize_team): Call pthread_key_create on
14040         gomp_thread_destructor.
14041         (team_destructor): New function.
14042         (new_team): Removed.
14043         (gomp_new_team): New function.
14044         (free_team): Free gomp_work_share blocks chained through next_alloc,
14045         instead of freeing work_shares and destroying work_share_lock.
14046         (gomp_team_end): Call gomp_fini_work_share.  If number of threads
14047         changed, adjust atomically gomp_managed_threads.  Use gomp_end_task.
14048         * barrier.c (GOMP_barrier): Call gomp_team_barrier_wait instead
14049         of gomp_barrier_wait.
14050         * single.c (GOMP_single_copy_start): Call gomp_team_barrier_wait
14051         instead of gomp_barrier_wait.  Call gomp_work_share_init_done
14052         if gomp_work_share_start returned true.  Don't unlock ws->lock.
14053         (GOMP_single_copy_end): Call gomp_team_barrier_wait instead
14054         of gomp_barrier_wait.
14055         (GOMP_single_start): Rewritten if HAVE_SYNC_BUILTINS.  Call
14056         gomp_work_share_init_done if gomp_work_share_start returned true.
14057         Don't unlock ws->lock.
14058         * work.c: Include stddef.h.
14059         (free_work_share): Use work_share_list_free_lock instead
14060         of atomic chaining ifndef HAVE_SYNC_BUILTINS.  Add team argument.
14061         Call gomp_fini_work_share and then either free ws if orphaned, or
14062         put it into work_share_list_free list of the current team.
14063         (alloc_work_share, gomp_init_work_share, gomp_fini_work_share): New
14064         functions.
14065         (gomp_work_share_start, gomp_work_share_end,
14066         gomp_work_share_end_nowait): Rewritten.
14067         * omp_lib.f90.in Change some tabs to spaces to prevent warnings.
14068         (openmp_version): Set to 200805.
14069         (omp_sched_kind, omp_sched_static, omp_sched_dynamic,
14070         omp_sched_guided, omp_sched_auto): New parameters.
14071         (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
14072         omp_set_max_active_levels, omp_get_max_active_levels,
14073         omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
14074         omp_get_active_level): New interfaces.
14075         * omp_lib.h.in (openmp_version): Set to 200805.
14076         (omp_sched_kind, omp_sched_static, omp_sched_dynamic,
14077         omp_sched_guided, omp_sched_auto): New parameters.
14078         (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
14079         omp_set_max_active_levels, omp_get_max_active_levels,
14080         omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
14081         omp_get_active_level): New externals.
14082         * loop.c: Include limits.h.
14083         (GOMP_loop_runtime_next, GOMP_loop_ordered_runtime_next): Handle
14084         GFS_AUTO.
14085         (GOMP_loop_runtime_start, GOMP_loop_ordered_runtime_start):
14086         Likewise.  Use gomp_icv.
14087         (gomp_loop_static_start, gomp_loop_dynamic_start): Clear
14088         ts.static_trip here.
14089         (gomp_loop_static_start, gomp_loop_ordered_static_start): Call
14090         gomp_work_share_init_done after gomp_loop_init.  Don't unlock ws->lock.
14091         (gomp_loop_dynamic_start, gomp_loop_guided_start): Call
14092         gomp_work_share_init_done after gomp_loop_init.  If HAVE_SYNC_BUILTINS,
14093         don't unlock ws->lock, otherwise lock it.
14094         (gomp_loop_ordered_dynamic_start, gomp_loop_ordered_guided_start): Call
14095         gomp_work_share_init_done after gomp_loop_init.  Lock ws->lock.
14096         (gomp_parallel_loop_start): Call gomp_new_team instead of
14097         gomp_new_work_share.  Call gomp_loop_init on &team->work_shares[0].
14098         Adjust gomp_team_start caller.  Pass 0 as second argument to
14099         gomp_resolve_num_threads.
14100         (gomp_loop_init): For GFS_DYNAMIC, multiply ws->chunk_size by incr.
14101         If adding ws->chunk_size nthreads + 1 times after end won't
14102         overflow, set ws->mode to 1.
14103         * libgomp_g.h (GOMP_loop_ull_static_start, GOMP_loop_ull_dynamic_start,
14104         GOMP_loop_ull_guided_start, GOMP_loop_ull_runtime_start,
14105         GOMP_loop_ull_ordered_static_start,
14106         GOMP_loop_ull_ordered_dynamic_start,
14107         GOMP_loop_ull_ordered_guided_start,
14108         GOMP_loop_ull_ordered_runtime_start, GOMP_loop_ull_static_next,
14109         GOMP_loop_ull_dynamic_next, GOMP_loop_ull_guided_next,
14110         GOMP_loop_ull_runtime_next, GOMP_loop_ull_ordered_static_next,
14111         GOMP_loop_ull_ordered_dynamic_next, GOMP_loop_ull_ordered_guided_next,
14112         GOMP_loop_ull_ordered_runtime_next, GOMP_task, GOMP_taskwait): New
14113         prototypes.
14114         * libgomp.map: Export lock routines also @@OMP_2.0.
14115         (GOMP_loop_ordered_dynamic_first,
14116         GOMP_loop_ordered_guided_first, GOMP_loop_ordered_runtime_first,
14117         GOMP_loop_ordered_static_first): Remove.
14118         (GOMP_loop_ull_dynamic_next, GOMP_loop_ull_dynamic_start,
14119         GOMP_loop_ull_guided_next, GOMP_loop_ull_guided_start,
14120         GOMP_loop_ull_ordered_dynamic_next,
14121         GOMP_loop_ull_ordered_dynamic_start,
14122         GOMP_loop_ull_ordered_guided_next,
14123         GOMP_loop_ull_ordered_guided_start,
14124         GOMP_loop_ull_ordered_runtime_next,
14125         GOMP_loop_ull_ordered_runtime_start,
14126         GOMP_loop_ull_ordered_static_next,
14127         GOMP_loop_ull_ordered_static_start,
14128         GOMP_loop_ull_runtime_next, GOMP_loop_ull_runtime_start,
14129         GOMP_loop_ull_static_next, GOMP_loop_ull_static_start,
14130         GOMP_task, GOMP_taskwait): Export @@GOMP_2.0.
14131         (omp_set_schedule, omp_get_schedule,
14132         omp_get_thread_limit, omp_set_max_active_levels,
14133         omp_get_max_active_levels, omp_get_level,
14134         omp_get_ancestor_thread_num, omp_get_team_size, omp_get_active_level,
14135         omp_set_schedule_, omp_set_schedule_8_,
14136         omp_get_schedule_, omp_get_schedule_8_, omp_get_thread_limit_,
14137         omp_set_max_active_levels_, omp_set_max_active_levels_8_,
14138         omp_get_max_active_levels_, omp_get_level_,
14139         omp_get_ancestor_thread_num_, omp_get_ancestor_thread_num_8_,
14140         omp_get_team_size_, omp_get_team_size_8_, omp_get_active_level_):
14141         New exports @@OMP_3.0.
14142         * omp.h.in (omp_sched_t): New type.
14143         (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
14144         omp_set_max_active_levels, omp_get_max_active_levels,
14145         omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
14146         omp_get_active_level): New prototypes.
14147         * env.c (gomp_spin_count_var, gomp_throttled_spin_count_var,
14148         gomp_available_cpus, gomp_managed_threads, gomp_max_active_levels_var,
14149         gomp_thread_limit_var, gomp_remaining_threads_count,
14150         gomp_remaining_threads_lock): New variables.
14151         (parse_spincount): New function.
14152         (initialize_env): Call gomp_init_num_threads unconditionally.
14153         Initialize gomp_available_cpus.  Call parse_spincount,
14154         initialize gomp_{,throttled_}spin_count_var
14155         depending on presence and value of OMP_WAIT_POLICY and
14156         GOMP_SPINCOUNT env vars.  Handle GOMP_BLOCKTIME env var.
14157         Handle OMP_WAIT_POLICY, OMP_MAX_ACTIVE_LEVELS,
14158         OMP_THREAD_LIMIT, OMP_STACKSIZE env vars.  Handle unit specification
14159         for GOMP_STACKSIZE.  Initialize gomp_remaining_threads_count and
14160         gomp_remaining_threads_lock if needed.  Use gomp_global_icv.
14161         (gomp_nthreads_var, gomp_dyn_var, gomp_nest_var,
14162         gomp_run_sched_var, gomp_run_sched_chunk): Remove.
14163         (gomp_global_icv): New.
14164         (parse_schedule): Use it.  Parse "auto".
14165         (omp_set_num_threads): Use gomp_icv.
14166         (omp_set_dynamic, omp_get_dynamic, omp_set_nested, omp_get_nested):
14167         Likewise.
14168         (omp_get_max_threads): Move from parallel.c.
14169         (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
14170         omp_set_max_active_levels, omp_get_max_active_levels): New functions,
14171         add ialias.
14172         (parse_stacksize, parse_wait_policy): New functions.
14173         * fortran.c: Rewrite lock wrappers, if symbol versioning provide
14174         both wrappers for compatibility and new locks.
14175         (omp_set_schedule, omp_get_schedule,
14176         omp_get_thread_limit, omp_set_max_active_levels,
14177         omp_get_max_active_levels, omp_get_level,
14178         omp_get_ancestor_thread_num, omp_get_team_size,
14179         omp_get_active_level): New ialias_redirect.
14180         (omp_set_schedule_, omp_set_schedule_8_,
14181         omp_get_schedule_, omp_get_schedule_8_, omp_get_thread_limit_,
14182         omp_set_max_active_levels_, omp_set_max_active_levels_8_,
14183         omp_get_max_active_levels_, omp_get_level_,
14184         omp_get_ancestor_thread_num_, omp_get_ancestor_thread_num_8_,
14185         omp_get_team_size_, omp_get_team_size_8_, omp_get_active_level_):
14186         New functions.
14187         * parallel.c: Include limits.h.
14188         (gomp_resolve_num_threads): Add count argument.  Rewritten.
14189         (GOMP_parallel_start): Call gomp_new_team and pass that as last
14190         argument to gomp_team_start.  Pass 0 as second argument to
14191         gomp_resolve_num_threads.
14192         (GOMP_parallel_end): Decrease gomp_remaining_threads_count
14193         if gomp_thread_limit_var != ULONG_MAX.
14194         (omp_in_parallel): Implement using ts.active_level.
14195         (omp_get_max_threads): Move to env.c.
14196         (omp_get_level, omp_get_ancestor_thread_num,
14197         omp_get_team_size, omp_get_active_level): New functions,
14198         add ialias.
14199         * sections.c (GOMP_sections_start): Call gomp_work_share_init_done
14200         after gomp_sections_init.  If HAVE_SYNC_BUILTINS, call
14201         gomp_iter_dynamic_next instead of the _locked variant and don't take
14202         lock around it, otherwise acquire it before calling
14203         gomp_iter_dynamic_next_locked.
14204         (GOMP_sections_next): If HAVE_SYNC_BUILTINS, call
14205         gomp_iter_dynamic_next instead of the _locked variant and don't take
14206         lock around it.
14207         (GOMP_parallel_sections_start): Call gomp_new_team instead of
14208         gomp_new_work_share.  Call gomp_sections_init on &team->work_shares[0].
14209         Adjust gomp_team_start caller.  Pass count as second argument to
14210         gomp_resolve_num_threads, don't adjust num_threads after the call.
14211         Use gomp_icv.
14212         * iter.c (gomp_iter_dynamic_next_locked): Don't multiply
14213         ws->chunk_size by incr.
14214         (gomp_iter_dynamic_next): Likewise.  If ws->mode, use more efficient
14215         code.
14216         * libgomp_f.h.in (omp_lock_25_arg_t, omp_nest_lock_25_arg_t): New
14217         types.
14218         (omp_lock_25_arg, omp_nest_lock_25_arg): New macros.
14219         (omp_check_defines): Check even the compat defines.
14220         * config/linux/ptrlock.c: New file.
14221         * config/linux/ptrlock.h: New file.
14222         * config/linux/wait.h: New file.
14223         * config/posix/ptrlock.c: New file.
14224         * config/posix/ptrlock.h: New file.
14225         * config/linux/bar.h (gomp_team_barrier_wait,
14226         gomp_team_barrier_wait_end, gomp_team_barrier_wake): New prototypes.
14227         (gomp_team_barrier_set_task_pending,
14228         gomp_team_barrier_clear_task_pending,
14229         gomp_team_barrier_set_waiting_for_tasks,
14230         gomp_team_barrier_waiting_for_tasks,
14231         gomp_team_barrier_done): New inlines.
14232         (gomp_barrier_t): Rewritten.
14233         (gomp_barrier_state_t): New typedef.
14234         (gomp_barrier_init, gomp_barrier_reinit, gomp_barrier_destroy,
14235         gomp_barrier_wait_start): Rewritten.
14236         (gomp_barrier_wait_end): Change second argument to
14237         gomp_barrier_state_t.
14238         (gomp_barrier_last_thread, gomp_barrier_wait_last): New static
14239         inlines.
14240         * config/linux/bar.c: Include wait.h instead of libgomp.h and
14241         futex.h.
14242         (gomp_barrier_wait_end): Rewritten.
14243         (gomp_team_barrier_wait, gomp_team_barrier_wait_end,
14244         gomp_team_barrier_wake, gomp_barrier_wait_last): New functions.
14245         * config/posix/bar.h (gomp_barrier_t): Add generation field.
14246         (gomp_barrier_state_t): New typedef.
14247         (gomp_team_barrier_wait,
14248         gomp_team_barrier_wait_end, gomp_team_barrier_wake): New prototypes.
14249         (gomp_barrier_wait_start): Or all but low 2 bits from generation
14250         into the return value.  Return gomp_barrier_state_t.
14251         (gomp_team_barrier_set_task_pending,
14252         gomp_team_barrier_clear_task_pending,
14253         gomp_team_barrier_set_waiting_for_tasks,
14254         gomp_team_barrier_waiting_for_tasks,
14255         gomp_team_barrier_done): New inlines.
14256         (gomp_barrier_wait_end): Change second argument to
14257         gomp_barrier_state_t.
14258         (gomp_barrier_last_thread, gomp_barrier_wait_last): New static
14259         inlines.
14260         * config/posix/bar.c (gomp_barrier_init): Clear generation field.
14261         (gomp_barrier_wait_end): Change second argument to
14262         gomp_barrier_state_t.
14263         (gomp_team_barrier_wait, gomp_team_barrier_wait_end,
14264         gomp_team_barrier_wake): New functions.
14265         * config/linux/mutex.c: Include wait.h instead of libgomp.h and
14266         futex.h.
14267         (gomp_futex_wake, gomp_futex_wait): New variables.
14268         (gomp_mutex_lock_slow): Call do_wait instead of futex_wait.
14269         * config/linux/lock.c: Rewrite to make locks task owned,
14270         for backwards compatibility provide the old entrypoints
14271         if symbol versioning.  Include wait.h instead of libgomp.h and
14272         futex.h.
14273         (gomp_set_nest_lock_25): Call do_wait instead of futex_wait.
14274         * config/posix95/lock.c: Rewrite to make locks task owned,
14275         for backwards compatibility provide the old entrypoints
14276         if symbol versioning.
14277         * config/posix/lock.c: Rewrite to make locks task owned,
14278         for backwards compatibility provide the old entrypoints
14279         if symbol versioning.
14280         * config/linux/proc.c (gomp_init_num_threads): Use gomp_global_icv.
14281         (get_num_procs, gomp_dynamic_max_threads): Use gomp_icv.
14282         * config/posix/proc.c, config/mingw32/proc.c: Similarly.
14283         * config/linux/powerpc/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
14284         (sys_futex0): Return error code.
14285         (futex_wake, futex_wait): If ENOSYS was returned, clear
14286         FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
14287         (cpu_relax, atomic_write_barrier): New static inlines.
14288         * config/linux/alpha/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
14289         (futex_wake, futex_wait): If ENOSYS was returned, clear
14290         FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
14291         (cpu_relax, atomic_write_barrier): New static inlines.
14292         * config/linux/x86/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
14293         (sys_futex0): Return error code.
14294         (futex_wake, futex_wait): If ENOSYS was returned, clear
14295         FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
14296         (cpu_relax, atomic_write_barrier): New static inlines.
14297         * config/linux/s390/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
14298         (sys_futex0): Return error code.
14299         (futex_wake, futex_wait): If ENOSYS was returned, clear
14300         FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
14301         (cpu_relax, atomic_write_barrier): New static inlines.
14302         * config/linux/ia64/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
14303         (sys_futex0): Return error code.
14304         (futex_wake, futex_wait): If ENOSYS was returned, clear
14305         FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
14306         (cpu_relax, atomic_write_barrier): New static inlines.
14307         * config/linux/sparc/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
14308         (sys_futex0): Return error code.
14309         (futex_wake, futex_wait): If ENOSYS was returned, clear
14310         FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
14311         (cpu_relax, atomic_write_barrier): New static inlines.
14312         * config/linux/sem.c: Include wait.h instead of libgomp.h and
14313         futex.h.
14314         (gomp_sem_wait_slow): Call do_wait instead of futex_wait.
14315         * config/linux/affinity.c: Assume HAVE_SYNC_BUILTINS.
14316         * config/linux/omp-lock.h (omp_lock_25_t, omp_nest_lock_25_t): New
14317         types.
14318         (omp_nest_lock_t): Change owner into void *, add lock field.
14319         * config/posix95/omp-lock.h: Include semaphore.h.
14320         (omp_lock_25_t, omp_nest_lock_25_t): New types.
14321         (omp_lock_t): Use sem_t instead of mutex if semaphores
14322         aren't broken.
14323         (omp_nest_lock_t): Likewise.  Change owner to void *.
14324         * config/posix/omp-lock.h: Include semaphore.h.
14325         (omp_lock_25_t, omp_nest_lock_25_t): New types.
14326         (omp_lock_t): Use sem_t instead of mutex if semaphores
14327         aren't broken.
14328         (omp_nest_lock_t): Likewise.  Add owner field.
14330 2008-06-06  Jakub Jelinek  <jakub@redhat.com>
14332         * testsuite/libgomp.c/collapse-1.c: New test.
14333         * testsuite/libgomp.c/collapse-2.c: New test.
14334         * testsuite/libgomp.c/collapse-3.c: New test.
14335         * testsuite/libgomp.c/icv-1.c: New test.
14336         * testsuite/libgomp.c/icv-2.c: New test.
14337         * testsuite/libgomp.c/lib-2.c: New test.
14338         * testsuite/libgomp.c/lock-1.c: New test.
14339         * testsuite/libgomp.c/lock-2.c: New test.
14340         * testsuite/libgomp.c/lock-3.c: New test.
14341         * testsuite/libgomp.c/loop-4.c: New test.
14342         * testsuite/libgomp.c/loop-5.c: New test.
14343         * testsuite/libgomp.c/loop-6.c: New test.
14344         * testsuite/libgomp.c/loop-7.c: New test.
14345         * testsuite/libgomp.c/loop-8.c: New test.
14346         * testsuite/libgomp.c/loop-9.c: New test.
14347         * testsuite/libgomp.c/nested-3.c: New test.
14348         * testsuite/libgomp.c/nestedfn-6.c: New test.
14349         * testsuite/libgomp.c/sort-1.c: New test.
14350         * testsuite/libgomp.c/task-1.c: New test.
14351         * testsuite/libgomp.c/task-2.c: New test.
14352         * testsuite/libgomp.c/task-3.c: New test.
14353         * testsuite/libgomp.c/task-4.c: New test.
14354         * testsuite/libgomp.c++/c++.exp: Add libstdc++-v3 build includes
14355         to C++ testsuite default compiler options.
14356         * testsuite/libgomp.c++/collapse-1.C: New test.
14357         * testsuite/libgomp.c++/collapse-2.C: New test.
14358         * testsuite/libgomp.c++/ctor-10.C: New test.
14359         * testsuite/libgomp.c++/for-1.C: New test.
14360         * testsuite/libgomp.c++/for-2.C: New test.
14361         * testsuite/libgomp.c++/for-3.C: New test.
14362         * testsuite/libgomp.c++/for-4.C: New test.
14363         * testsuite/libgomp.c++/for-5.C: New test.
14364         * testsuite/libgomp.c++/loop-8.C: New test.
14365         * testsuite/libgomp.c++/loop-9.C: New test.
14366         * testsuite/libgomp.c++/loop-10.C: New test.
14367         * testsuite/libgomp.c++/task-1.C: New test.
14368         * testsuite/libgomp.c++/task-2.C: New test.
14369         * testsuite/libgomp.c++/task-3.C: New test.
14370         * testsuite/libgomp.c++/task-4.C: New test.
14371         * testsuite/libgomp.c++/task-5.C: New test.
14372         * testsuite/libgomp.c++/task-6.C: New test.
14373         * testsuite/libgomp.fortran/allocatable1.f90: New test.
14374         * testsuite/libgomp.fortran/allocatable2.f90: New test.
14375         * testsuite/libgomp.fortran/allocatable3.f90: New test.
14376         * testsuite/libgomp.fortran/allocatable4.f90: New test.
14377         * testsuite/libgomp.fortran/collapse1.f90: New test.
14378         * testsuite/libgomp.fortran/collapse2.f90: New test.
14379         * testsuite/libgomp.fortran/collapse3.f90: New test.
14380         * testsuite/libgomp.fortran/collapse4.f90: New test.
14381         * testsuite/libgomp.fortran/lastprivate1.f90: New test.
14382         * testsuite/libgomp.fortran/lastprivate2.f90: New test.
14383         * testsuite/libgomp.fortran/lib4.f90: New test.
14384         * testsuite/libgomp.fortran/lock-1.f90: New test.
14385         * testsuite/libgomp.fortran/lock-2.f90: New test.
14386         * testsuite/libgomp.fortran/nested1.f90: New test.
14387         * testsuite/libgomp.fortran/nestedfn4.f90: New test.
14388         * testsuite/libgomp.fortran/strassen.f90: New test.
14389         * testsuite/libgomp.fortran/tabs1.f90: New test.
14390         * testsuite/libgomp.fortran/tabs2.f: New test.
14391         * testsuite/libgomp.fortran/task1.f90: New test.
14392         * testsuite/libgomp.fortran/task2.f90: New test.
14393         * testsuite/libgomp.fortran/vla4.f90: Add dg-warning.
14394         * testsuite/libgomp.fortran/vla5.f90: Likewise.
14395         * testsuite/libgomp.c/pr26943-2.c: Likewise.
14396         * testsuite/libgomp.c/pr26943-3.c: Likewise.
14397         * testsuite/libgomp.c/pr26943-4.c: Likewise.
14399 2008-05-23  Jakub Jelinek  <jakub@redhat.com>
14401         PR c++/36308
14402         * testsuite/libgomp.c++/ctor-11.C: New test.
14403         * testsuite/libgomp.c++/ctor-12.C: New test.
14405 2008-05-15  Janis Johnson  <janis187@us.ibm.com>
14407         * testsuite/lib/libgomp.exp: Load torture-options.exp from gcc lib.
14409 2008-05-07  Jakub Jelinek  <jakub@redhat.com>
14411         PR middle-end/36106
14412         * testsuite/libgomp.c/atomic-5.c: New test.
14413         * testsuite/libgomp.c/atomic-6.c: New test.
14414         * testsuite/libgomp.c/autopar-1.c: New test.
14416 2008-04-21  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14418         * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS)
14419         (LIBGOMP_CHECK_ATTRIBUTE_VISIBILITY)
14420         (LIBGOMP_CHECK_ATTRIBUTE_DLLEXPORT)
14421         (LIBGOMP_CHECK_ATTRIBUTE_ALIAS): Fix cache variable names.
14422         * configure: Regenerate.
14423         * Makefile.in, testsuite/Makefile.in: Likewise.
14425 2008-04-18  Paolo Bonzini  <bonzini@gnu.org>
14427         PR bootstrap/35457
14428         * aclocal.m4: Regenerate.
14429         * configure: Regenerate.
14431 2008-03-18  Jakub Jelinek  <jakub@redhat.com>
14433         PR middle-end/35611
14434         * testsuite/libgomp.c/atomic-4.c: New test.
14436         PR libgomp/35625
14437         * iter.c (gomp_iter_guided_next_locked): If q > n, set end to ws->end.
14438         (gomp_iter_guided_next): Likewise.
14439         * testsuite/libgomp.c/pr35625.c: New test.
14441 2008-03-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14443         * aclocal.m4: Regenerate.
14444         * configure: Likewise.
14445         * Makefile.in: Likewise.
14446         * testsuite/Makefile.in: Likewise.
14448 2008-03-13  Jakub Jelinek  <jakub@redhat.com>
14450         PR middle-end/35185
14451         * testsuite/libgomp.c++/pr35185.C: New test.
14453 2008-03-12  Jakub Jelinek  <jakub@redhat.com>
14455         PR middle-end/35549
14456         * testsuite/libgomp.c/pr35549.c: New test.
14458 2008-03-06  Jakub Jelinek  <jakub@redhat.com>
14460         * testsuite/libgomp.c/atomic-3.c: New test.
14462 2008-03-03  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
14464         PR fortran/33197
14465         * testsuite/libgomp.fortran/fortran.exp: Add .f08 and
14466         .F08 file suffixes.
14468 2008-03-03  Peter O'Gorman  <pogma@thewrittenword.com>
14470         PR libgomp/33131
14471         * configure.ac: Add ACX_HEADER_STRING.
14472         * env.c: Include strings.h.
14473         * aclocal.m4: Regenerate.
14474         * config.h.in: Regenerate.
14475         * configure: Regenerate.
14476         * Makefile.in: Regenerate.
14477         * testsuite/Makefile.in: Regenerate.
14479 2008-02-15  Jakub Jelinek  <jakub@redhat.com>
14481         PR middle-end/35196
14482         * testsuite/libgomp.c/pr35196.c: New test.
14484         PR middle-end/35130
14485         * testsuite/libgomp.fortran/pr35130.f90: New test.
14486         * testsuite/libgomp.c/pr35130.c: New test.
14488 2008-01-25  Jakub Jelinek  <jakub@redhat.com>
14490         PR middle-end/33880
14491         * testsuite/libgomp.c/pr33880.c: New test.
14492         * testsuite/libgomp.fortran/pr33880.f90: New test.
14494 2008-01-24  David Edelsohn  <edelsohn@gnu.org>
14496         * configure: Regenerate.
14498 2008-01-08  Jakub Jelinek  <jakub@redhat.com>
14500         * configure.ac: Move futex checking into ../config/futex.m4.
14501         * configure: Rebuilt.
14502         * aclocal.m4: Rebuilt.
14503         * Makefile.in: Rebuilt.
14505         * configure.tgt: Rename have_tls to gcc_cv_have_tls to match
14506         2007-10-15 ../config/tls.m4 change.
14508 2007-12-19  Jakub Jelinek  <jakub@redhat.com>
14510         PR c++/34513
14511         * testsuite/libgomp.c/pr34513.c: New test.
14512         * testsuite/libgomp.c++/pr34513.C: New test.
14514 2007-12-17  Jack Howarth  <howarth@bromo.med.uc.edu>
14516         PR target/32765
14517         * testsuite/libgomp.fortran/crayptr2.f90: Move dg-options for darwin.
14519 2007-12-04  Jakub Jelinek  <jakub@redhat.com>
14521         * omp.h.in (__GOMP_NOTHROW): Define.  Use it on omp_* prototypes.
14523 2007-12-03  Jakub Jelinek  <jakub@redhat.com>
14525         * testsuite/libgomp.c/private-1.c: New test.
14527 2007-11-29  Andris Pavenis <andris.pavenis@iki.fi>
14528             Paolo Bonzini  <bonzini@gnu.org>
14530         * Makefile.am: Use space as vpath separator.  Use 'vpath %'
14531         instead of 'VPATH ='.
14532         * Makefile.in: Regenerate.
14534 2007-11-23  Matthias Klose  <doko@ubuntu.com>
14536         * configure.ac: Adjust makeinfo version check.
14537         * configure: Regenerate.
14539 2007-11-10  Jakub Jelinek  <jakub@redhat.com>
14541         PR fortran/34020
14542         * testsuite/libgomp.fortran/pr34020.f90: New test.
14544 2007-11-06  Jakub Jelinek  <jakub@redhat.com>
14546         PR c++/33894
14547         * testsuite/libgomp.c++/atomic-1.C: New test.
14549 2007-10-25  Jakub Jelinek  <jakub@redhat.com>
14551         PR libgomp/33275
14552         * testsuite/libgomp.fortran/omp_parse3.f90 (test_threadprivate):
14553         Make x and y integers rather than (implicit) reals.  Add private (j)
14554         clause to the last omp parallel.
14556 2007-10-15  Maciej W. Rozycki  <macro@linux-mips.org>
14558         * configure: Regenerate following changes to ../config/tls.m4.
14560 2007-09-28  Jakub Jelinek  <jakub@redhat.com>
14562         * testsuite/libgomp.fortran/stack.f90: New test.
14564 2007-09-10  Danny Smith  <dannysmith@users.sourceforge.net>
14566         * config/mingw32/proc.c: New file.
14568 2007-09-05  Uros Bizjak  <ubizjak@gmail.com>
14570         * testsuite/libgomp.c/atomic-1.c: Include cpuid.h for i386 targets.
14571         (main): Use __get_cpuid to get i386 target fetaures.
14572         * testsuite/libgomp.c/atomic-2.c: Include cpuid.h for x86_64 targets.
14573         (main): Use __get_cpuid to get x86_64 target fetaures.
14575 2007-08-15  Jack Howarth  <howarth@bromo.med.uc.edu>
14577         PR target/32765
14578         * testsuite/libgomp.fortran/pr32550.f90: Use -static-libgcc on Darwin.
14579         * testsuite/libgomp.fortran/crayptr2.f90: Likwise.
14581 2007-07-12  Jakub Jelinek  <jakub@redhat.com>
14583         PR fortran/32550
14584         * testsuite/libgomp.fortran/pr32550.f90: New test.
14585         * testsuite/libgomp.fortran/crayptr2.f90: New test.
14587 2007-07-05  H.J. Lu  <hongjiu.lu@intel.com>
14589         * aclocal.m4: Regenerated.
14591 2007-07-05  Tobias Burnus  <burnus@net-b.de>
14593         PR fortran/32359
14594         * testsuite/libgomp.fortran/pr32359.f90: New.
14596 2007-07-02  Jakub Jelinek  <jakub@redhat.com>
14598         PR libgomp/32468
14599         * sections.c (GOMP_parallel_sections_start): Only decrease
14600         number of threads to COUNT if dyn_var is true.
14601         * testsuite/libgomp.c/pr32468.c: New test.
14603 2007-07-02  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
14605         PR libgomp/26308
14606         * config/posix/lock.c (_XOPEN_SOURCE): Don't define on Tru64 UNIX.
14608 2007-06-21  Jakub Jelinek  <jakub@redhat.com>
14610         PR middle-end/32362
14611         * testsuite/libgomp.c/pr32362-1.c: New test.
14612         * testsuite/libgomp.c/pr32362-2.c: New test.
14613         * testsuite/libgomp.c/pr32362-3.c: New test.
14615 2007-06-07  Jakub Jelinek  <jakub@redhat.com>
14617         * team.c (gomp_team_start): Fix setting up thread_attr
14618         stack size.
14620 2007-06-02  Paolo Bonzini  <bonzini@gnu.org>
14622         * configure: Regenerate.
14624 2007-05-23  Steve Ellcey  <sje@cup.hp.com>
14626         * Makefile.in: Regenerate.
14627         * configure: Regenerate.
14628         * aclocal.m4: Regenerate.
14629         * testsuite/Makefile.in: Regenerate.
14631 2007-05-04  Jakub Jelinek  <jakub@redhat.com>
14633         * config/linux/proc.c: New file.
14635         PR libgomp/28482
14636         * configure.tgt: Don't link with -Wl,-z,nodlopen even on Linux.
14638 2007-04-19  Daniel Franke  <franke.daniel@gmail.com>
14640         * libgomp.texi (GOMP_CPU_AFFINITY): Updated.
14642 2007-04-16  Matthias Klose  <doko@debian.org>
14644         * configure.tgt (i[456]86-*-linux*): Only add ia32 specific
14645         flags if not building with -m64.
14646         * testsuite/lib/libgomp-dg.exp (libgomp_init): Don't add -march
14647         flag for i?86-*-* targets, if current target matches -m64.
14649 2007-04-14  Steve Ellcey  <sje@cup.hp.com>
14651         * Makefile.am: Add -I .. to ACLOCAL_AMFLAGS.
14652         * Makefile.in: Regenerate.
14654 2007-04-07  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
14656         PR testsuite/31369
14657         * testsuite/libgomp.c++/c++.exp: Don't use concat when setting
14658         ld_library_path.
14659         * testsuite/libgomp.fortran/fortran.exp: Likewise.
14661 2007-04-04  Jakub Jelinek  <jakub@redhat.com>
14663         * libgomp.h (gomp_cpu_affinity, gomp_cpu_affinity_len): New extern
14664         decls.
14665         (gomp_init_affinity, gomp_init_thread_affinity): New prototypes.
14666         * env.c (gomp_cpu_affinity, gomp_cpu_affinity_len): New variables.
14667         (parse_affinity): New function.
14668         (initialize_env): Call it and gomp_init_affinity.
14669         * team.c (gomp_team_start): If gomp_cpu_affinity != NULL,
14670         create new pthread_attr_t and call gomp_init_thread_affinity
14671         on it for each thread before passing the attribute to pthread_create.
14672         * config/linux/affinity.c: New file.
14673         * config/posix/affinity.c: New file.
14674         * configure.ac (HAVE_PTHREAD_AFFINITY_NP): New test.
14675         * configure: Rebuilt.
14676         * config.h.in: Rebuilt.
14677         * Makefile.am (libgomp_la_SOURCES): Add affinity.c.
14678         * Makefile.in: Rebuilt.
14680 2007-03-23  Andreas Tobler  <a.tobler@schweiz.org>
14682         * testsuite/lib/libgomp.exp (libgomp_init): Add -shared-libgcc for
14683         *-*-darwin*.
14684         * testsuite/libgomp.c++/c++.exp: Look for shared libstdc++ library
14685         and use it if found.
14687 2007-03-18  Uros Bizjak  <ubizjak@gmail.com>
14689         * testsuite/config/default.exp: New file.
14690         * testsuite/lib/libgomp.exp: New file.
14691         * testsuite/lib/libgomp.dg (load_gcc_lib, libgomp_init,
14692         libgomp_target_compile, libgomp_option_help, libgomp_option_proc,
14693         load_lib *, load_gcc_lib *): Move to libgomp.exp.
14694         (libgomp_load): Remove.
14695         * testsuite/lib/libgomp.exp (libgomp_init): Compute
14696         always_ld_library_path, not ld_library_path.  Set additional_flags
14697         to -march=i486 for ilp32 x86_64-*-* and i386-*-* targets.
14698         (target_compile): Do not call libgomp_init.  Append lang_library_path
14699         and lang_link_flags to options.
14700         * testsuite/libgomp.c/c.exp: Set DEFAULT_FLAGS to -O2.  Set
14701         ld_library_path from always_ld_library_path.  Set LD_LIBRARY_PATH
14702         here.
14703         * testsuite/libgomp.c++/c++.exp: Set ld_library_path from
14704         always_ld_library_path.  Set LD_LIBRARY_PATH here.
14705         * testsuite/libgomp.fortran/fortran.exp: Ditto.
14706         * testsuite/libgomp.c/atomic-1.c: Set dg-options to
14707         "-O2 -march=pentium" for ilp32 x86 targets. Simplify check for
14708         CX8 flag.
14709         * testsuite/libgomp.c/atomic-2.c: Set dg-options to "-O2 -mcx16" for
14710         lp64 x86 targets. Do not check for SSE3 bit. Do not define bit_SSE3.
14711         * testsuite/libgomp.c/pr29947-1.c: Remove default dg-options.
14712         * testsuite/libgomp.c/pr29947-1.c: Ditto.
14713         * testsuite/libgomp.c/atomic-10.c: Ditto.
14715 2007-03-21  Jakub Jelinek  <jakub@redhat.com>
14717         * testsuite/libgomp.fortran/appendix-a/a.22.8.f90: Add
14718         dg-final cleanup-modules line.
14719         * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: Likewise.
14720         * testsuite/libgomp.fortran/appendix-a/a.31.5.f90: Likewise.
14721         * testsuite/libgomp.fortran/appendix-a/a.31.4.f90: Likewise.
14722         * testsuite/libgomp.fortran/threadprivate2.f90: Likewise.
14723         * testsuite/libgomp.fortran/reduction5.f90: Likewise.
14724         * testsuite/libgomp.fortran/threadprivate3.f90: Likewise.
14725         * testsuite/libgomp.fortran/threadprivate1.f90: Likewise.
14727 2007-03-18  Andreas Schwab  <schwab@suse.de>
14729         * acinclude.m4: Adjust regular expression for ld version
14730         extraction.
14731         * configure: Regenerate.
14733 2007-03-01  Brooks Moses  <brooks.moses@codesourcery.com>
14735         * Makefile.am: Add install-pdf target as copied from
14736         automake v1.10 rules.
14737         * Makefile.in: Regenerate
14739 2007-02-07  Jakub Jelinek  <jakub@redhat.com>
14741         PR libgomp/28486
14742         * configure: Regenerate.
14744         PR c++/30703
14745         * testsuite/libgomp.c++/pr30703.C: New test.
14747 2007-02-02  Jakub Jelinek  <jakub@redhat.com>
14749         Revert:
14750         2006-07-05  Eric Christopher  <echristo@apple.com>
14751         * configure.ac: Depend addition of -pthread on host OS.
14752         * configure: Regenerate.
14754 2007-01-31  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14756         * libgomp.texi: Fix spacing after abbreviations.
14758 2007-01-31  Daniel Franke <franke.daniel@gmail.com>
14760         PR libgomp/30546
14761         * configure.ac: Add check for makeinfo
14762         * Makefile.am: Redefined target libgomp.info, build libgomp.info only
14763         if an appropriate version of makeinfo is found.
14764         * aclocal.m4: Regenerated.
14765         * configure: Regenerated.
14766         * Makefile.in: Regenerated.
14767         * testsuite/Makefile.in: Regenerated.
14769 2007-01-29  Daniel Franke <franke.daniel@gmail.com>
14771         PR libgomp/30540
14772         * libgomp.texi: More about implementation-dependent settings.
14774 2007-01-26  Tobias Burnus  <burnus@net-b.de>
14776         * testsuite/libgomp.fortran/fortran.exp: Support .f03 extension.
14778 2007-01-24  Jakub Jelinek  <jakub@redhat.com>
14780         PR middle-end/30494
14781         * testsuite/libgomp.c/pr30494.c: New test.
14783 2007-01-15  Tom Tromey  <tromey@redhat.com>
14785         * configure: Rebuilt.
14786         * configure.ac: Fixed comment.
14788 2007-01-14  Daniel Franke  <franke.daniel@gmail.com>
14790         * libgomp.texi: Document implementation specific default values of
14791         environment variables.
14793 2006-12-21  Daniel Franke  <franke.daniel@gmail.com>
14795         PR libgomp/28209
14796         * libgomp.texi: New file.
14797         * configure.ac: Add --enable-generated-files-in-srcdir option.
14798         * Makefile.am: Add info, dvi, pdf, html targets. On request, copy
14799         files to srcdir.
14800         * Makefile.in: Regenerated.
14801         * config.h.in: Regenerated.
14802         * testsuite/Makefile.in: Regenerated.
14803         * NOTES: Removed.
14805 2006-12-04  Daniel Franke  <franke.daniel@gmail.com>
14807         PR libgomp/29949
14808         * env.c (omp_set_num_threads): Set illegal thread count to 1.
14810 2006-12-04  Eric Botcazou  <ebotcazou@libertysurf.fr>
14812         * configure: Regenerate.
14814 2006-12-04  Jakub Jelinek  <jakub@redhat.com>
14816         PR libgomp/29947
14817         * loop.c (gomp_loop_init): Make parameters signed.  Set ws->end to
14818         start if there shouldn't be any loop iterations.
14819         (gomp_loop_ordered_static_start): Remove start == end test.
14820         * testsuite/libgomp.c/pr29947-1.c: New test.
14821         * testsuite/libgomp.c/pr29947-2.c: New test.
14823 2006-12-02  Eric Botcazou  <ebotcazou@libertysurf.fr>
14825         * configure.tgt: Force initial-exec TLS model on Linux only.
14827 2006-11-13  Daniel Jacobowitz  <dan@codesourcery.com>
14829         * configure: Regenerated.
14831 2006-11-09  Uros Bizjak  <ubizjak@gmail.com>
14833         * env.c (parse_schedule): Reject out of range values.
14834         (parse_unsigned_long): Reject out of range, negative or zero values.
14836 2006-10-29  Jakub Jelinek  <jakub@redhat.com>
14838         PR fortran/29629
14839         * testsuite/libgomp.fortran/pr29629.f90: New test.
14841 2006-10-24  Eric Botcazou  <ebotcazou@libertysurf.fr>
14843         PR libgomp/29494
14844         * configure.tgt: Use posix95 configuration for Solaris 2.5.1 and 2.6.
14845         * config/posix95: New directory.
14846         * config/posix95/omp-lock.h: New file.
14847         * config/posix95/lock.c: Likewise.
14849 2006-10-14  Geoffrey Keating  <geoffk@apple.com>
14851         * aclocal.m4: Regenerate.
14852         * configure: Regenerate.
14854 2006-10-05  Danny Smith  <dannysmith@users.sourceforge.net>
14856         * testsuite/libgomp.c/barrier-1.c: Change timestamp tests from
14857         '<' to '<='.
14859 2006-10-05  Danny Smith  <dannysmith@users.sourceforge.net>
14861         * acinclude.m4 (HAVE_ATTRIBUTE_ALIAS): Remove __USER_LABEL_PREFIX__ from
14862         test.
14863         * configure: Regenerate.
14864         * fortran.c  (ialias_redirect): Add __USER_LABEL_PREFIX__ to alias.
14866 2006-09-26  Jakub Jelinek  <jakub@redhat.com>
14868         PR middle-end/25261
14869         PR middle-end/28790
14870         * testsuite/libgomp.c/nestedfn-4.c: New test.
14871         * testsuite/libgomp.c/nestedfn-5.c: New test.
14872         * testsuite/libgomp.fortran/nestedfn3.f90: New test.
14874         PR fortran/29097
14875         * testsuite/libgomp.fortran/condinc1.f: New test.
14876         * testsuite/libgomp.fortran/condinc2.f: New test.
14877         * testsuite/libgomp.fortran/condinc3.f90: New test.
14878         * testsuite/libgomp.fortran/condinc4.f90: New test.
14879         * testsuite/libgomp.fortran/condinc1.inc: New file.
14881 2006-09-18  Tom Tromey  <tromey@redhat.com>
14883         * configure: Rebuilt.
14885 2006-09-13  Joseph S. Myers  <joseph@codesourcery.com>
14887         PR c/28768
14888         PR preprocessor/14634
14889         * configure.ac (HAVE_CLOCK_GETTIME): Add missing second argument
14890         to AC_DEFINE.
14891         * configure: Regenerate.
14893 2006-09-08  Steven G. Kargl  <kargl@gcc.gnu.org>
14895         * testsuite/libgomp.fortran/reduction3.f90: Change
14896         -2147483648 to -huge(i)-1 to avoid overflow.
14897         * testsuite/libgomp.fortran/reduction4.f90: Change
14898         Z'ffffffff' to not(0) to avoid overflow.
14900 2006-08-26  Joseph S. Myers  <joseph@codesourcery.com>
14902         PR libgomp/25938
14903         * Makefile.am (libsubincludedir): New.
14904         (nodist_include_HEADERS): Rename to nodist_libsubinclude_HEADERS.
14905         * Makefile.in: Regenerate.
14907 2006-08-17  Jakub Jelinek  <jakub@redhat.com>
14909         PR libgomp/28725
14910         * env.c: Include ctype.h.
14911         (parse_schedule, parse_unsigned_long, parse_boolean): Allow
14912         leading and/or trailing whitespace and compare strings case
14913         insensitively.
14915 2006-07-16  Jakub Jelinek  <jakub@redhat.com>
14917         PR fortran/28390
14918         * testsuite/libgomp.fortran/pr28390.f: New test.
14920 2006-07-05  Eric Christopher  <echristo@apple.com>
14922         * configure.ac: Depend addition of -pthread on host OS.
14923         * configure: Regenerate.
14925 2006-06-21  Jakub Jelinek  <jakub@redhat.com>
14927         * critical.c (GOMP_critical_name_start): Fix *pptr initialization
14928         when gomp_mutex_t is larger than pointer and HAVE_SYNC_BUILTINS is
14929         defined.
14931 2006-06-20  Jakub Jelinek  <jakub@redhat.com>
14933         PR libgomp/26175
14934         PR libgomp/26477
14935         * configure.ac: If neither --enable-linux-futex nor
14936         --disable-linux-futex is passed, determine the default by checking
14937         for compiling and/or running against NPTL.  With --enable-linux-futex,
14938         check if SYS_gettid and SYS_futex are defined.
14939         * configure: Rebuilt.
14941 2006-06-14  Richard Henderson  <rth@redhat.com>
14943         PR libgomp/28008
14944         * env.c (initialize_env): Avoid using PTHREAD_STACK_MIN when
14945         undefined.  Use GOMP_STACKSIZE not OMP_STACKSIZE for environment.
14947 2006-06-09  Richard Henderson  <rth@redhat.com>
14949         * env.c (gomp_nthreads_var): Change to unsigned long.
14950         (gomp_run_sched_chunk): Likewise.
14951         (parse_unsigned_long): Rename from parse_num_threads and generalize.
14952         (initialize_env): Initialize gomp_thread_attr.
14953         * libgomp.h (gomp_nthreads_var): Update decl.
14954         (gomp_run_sched_chunk): Likewise.
14955         (gomp_thread_attr): Declare.
14956         * team.c (gomp_thread_attr): Export.
14957         (initialize_team): Don't initialize it.
14959 2006-06-09  Jakub Jelinek  <jakub@redhat.com>
14961         PR fortran/27916
14962         * testsuite/libgomp.fortran/pr27916-1.f90: New test.
14963         * testsuite/libgomp.fortran/pr27916-2.f90: New test.
14965 2006-06-06  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
14967         * config/mingw32/time.c: New file.
14968         * configure.tgt: Use it.
14970 2006-05-23  Carlos O'Donell  <carlos@codesourcery.com>
14972         * Makefile.am: Add install-html target. Add install-html to .PHONY
14973         * Makefile.in: Regenerate.
14975 2006-05-22  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
14977         PR libgomp/27612
14978         * testsuite/libgomp.c/sections-1.c: Require sync_int_long.
14979         * testsuite/libgomp.c/critical-1.c: Likewise.
14980         * testsuite/libgomp.c/loop-1.c: Likewise.
14981         * testsuite/libgomp.c/loop-2.c: Likewise.
14982         * testsuite/libgomp.c/single-1.c: Likewise.
14983         * testsuite/libgomp.c/ordered-1.c: Likewise.
14984         * testsuite/libgomp.c/ordered-2.c: Likewise.
14986 2006-05-15  Jakub Jelinek  <jakub@redhat.com>
14988         PR middle-end/27416
14989         * libgomp.fortran/pr27416-1.f90: New test.
14991 2006-05-03  Jakub Jelinek  <jakub@redhat.com>
14993         PR fortran/27395
14994         * testsuite/libgomp.fortran/pr27395-1.f90: New test.
14995         * testsuite/libgomp.fortran/pr27395-2.f90: New test.
14997 2006-05-02  Jakub Jelinek  <jakub@redhat.com>
14999         PR c++/26943
15000         * testsuite/libgomp.c/pr26943-1.c: New test.
15001         * testsuite/libgomp.c/pr26943-2.c: New test.
15002         * testsuite/libgomp.c/pr26943-3.c: New test.
15003         * testsuite/libgomp.c/pr26943-4.c: New test.
15004         * testsuite/libgomp.c++/pr27337.C: Remove barrier.
15005         * testsuite/libgomp.c++/pr26943.C: New test.
15007 2006-05-02  Jakub Jelinek  <jakub@redhat.com>
15009         PR middle-end/27337
15010         * testsuite/libgomp.c++/pr27337.C: New test.
15012 2006-04-26  Jakub Jelinek  <jakub@redhat.com>
15014         PR c/26171
15015         * testsuite/libgomp.c/pr26171.c: New test.
15017 2006-04-25  Richard Henderson  <rth@redhat.com>
15019         PR libgomp/25865
15020         * configure.ac: Use GCC_CHECK_TLS.
15021         * acinclude.m4 (LIBGOMP_CHECK_TLS): Remove.
15022         * Makefile.in, aclocal.m4, configure: Regenerate.
15024 2006-04-10  Matthias Klose  <doko@debian.org>
15026         * testsuite/lib/libgomp.exp (libgomp_init): Recognize multilib
15027         directory names containing underscores.
15029 2006-03-21  Jakub Jelinek  <jakub@redhat.com>
15031         PR c++/26691
15032         * testsuite/libgomp.c++/pr26691.C: New test.
15034 2006-03-13  Jakub Jelinek  <jakub@redhat.com>
15036         * testsuite/libgomp.fortran/retval2.f90: New test.
15038 2006-03-09  Diego Novillo  <dnovillo@redhat.com>
15040         * testsuite/libgomp.c++: New directory.
15042 2006-02-25  Shantonu Sen  <ssen@opendarwin.org>
15044         * config/posix/sem.h: Define BROKEN_POSIX_SEMAPHORES functions.
15045         * config/posix/sem.c: Implement the above.
15047 2006-02-25  Andreas Tobler  <a.tobler@schweiz.ch>
15049         * configure.ac (HAVE_BROKEN_POSIX_SEMAPHORES): Check for darwin and
15050         define HAVE_BROKEN_POSIX_SEMAPHORES.
15051         * configure: Rebuilt.
15052         * config.h.in: Rebuilt.
15054 2006-02-17  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
15056         PR bootstrap/26161
15057         * configure.ac: Remove AC_CHECK_HEADER for pthread.h. Add comment
15058         for the other pthread check.
15059         * configure: Regenerate.
15060         * config.h.in: Regenerate.
15062 2006-02-15  Jakub Jelinek  <jakub@redhat.com>
15064         PR libgomp/25938
15065         PR libgomp/25984
15066         * Makefile.am (fincludedir): New variable.
15067         (nodist_include_HEADERS): Remove Fortran files.
15068         (nodist_finclude_HEADERS): New variable.
15069         * Makefile.in: Regenerated.
15071 2006-02-13  Jakub Jelinek  <jakub@redhat.com>
15073         * testsuite/libgomp.fortran/vla7.f90: Add -w to options.
15074         Remove tests for returning assumed character length arrays.
15076 2006-02-12  Roger Sayle  <roger@eyesopen.com>
15077             John David Anglin  <dave@hiauly1.hia.nrc.ca>
15079         PR libgomp/25936
15080         * configure.tgt: Link against -lrt for sem_init on HPUX v11 systems.
15082 2006-02-08  Ulrich Weigand  <uweigand@de.ibm.com>
15084         * testsuite/lib/libgomp-dg.exp: Load scanrtl.exp library.
15086 2006-02-07  Eric Botcazou  <ebotcazou@libertysurf.fr>
15088         * testsuite/lib/libgomp-dg.exp (libgomp_init): Compute multilib related
15089         part of LD_LIBRARY_PATH manually.
15091 2006-02-03  H.J. Lu  <hongjiu.lu@intel.com>
15093         PR libgomp/25852
15094         * testsuite/lib/libgomp-dg.exp (blddir): Set it in
15095         libgomp_init.
15097 2005-01-25  Paolo Bonzini  <bonzini@gnu.org>
15099         PR libgomp/25884
15100         * Makefile.am (omp.h, omp_lib.h, omp_lib.f90, libgomp_f.h): Remove.
15101         * configure.ac (PERL): Don't set.
15102         (gstdint.h, omp.h, omp_lib.h, omp_lib.f90, libgomp_f.h): Create here.
15103         (OMP_LOCK_SIZE, OMP_LOCK_ALIGN, OMP_LOCK_KIND, OMP_NEST_LOCK_SIZE,
15104         OMP_NEST_LOCK_ALIGN, OMP_NEST_LOCK_KIND): New substitutions.
15105         * omp.h.in: Wrap the new configure substitutions with @ characters.
15106         * omp_lib.h.in, omp_lib.f90.in, libgomp_f.h.in: Likewise.
15107         * aclocal.m4, configure, Makefile.in: Regenerate.
15108         * mkomp_h.pl: Delete.
15110 2005-01-24  Paolo Bonzini  <bonzini@gnu.org>
15112         PR libgomp/25259
15113         * configure.ac: Use GCC_HEADER_STDINT.
15114         * libgomp.h: Include gstdint.h.
15115         * libgomp_f.h.in: Don't include stdint.h or inttypes.h.
15116         * configure, Makefile.in, testsuite/Makefile.in, aclocal.m4: Rebuild.
15118 2006-01-24  Richard Henderson  <rth@redhat.com>
15120         PR libgomp/25942
15121         * configure.ac: Add AM_MAINTAINER_MODE.
15122         * Makefile.in, aclocal.m4, configure, testsuite/Makefile.in: Rebuild.
15124 2006-01-24  Diego Novillo  <dnovillo@redhat.com>
15126         * Makefile.in: Regenerate.
15127         * testsuite/Makefile.in: Regenerate.
15128         * aclocal.m4: Regenerate.
15130 2006-01-23  Andreas Tobler  <a.tobler@schweiz.ch>
15132         * config/posix/proc.c: Conditional include of sys/loadavg.h for
15133         Solaris.
15134         * configure.ac: Add check for loadavg.h.
15135         (link_gomp): Adjust comment.
15136         * configure: Regenerate.
15137         * config.h.in: Regenerate.
15139 2006-01-21  Steve Ellcey  <sje@cup.hp.com>
15141         PR libgomp/25877
15142         * configure.ac: Remove check for alloca.h.
15143         * configure: Regenerate.
15144         * config.h.in: Regenerate.
15145         * libgomp.h: define gomp_alloca to be __builtin_alloca.
15146         * team.c: Remove use of alloca.h.
15147         Call gomp_alloca instead of alloca.
15149 2006-01-20  Steve Ellcey  <sje@cup.hp.com>
15151         PR libgomp/25877
15152         * team.c: Add include of alloca.h.
15153         * configure.ac: Add check for alloca.h.
15154         * configure: Regenerate.
15155         * config.h.in: Regenerate.
15157 2006-01-17  Jakub Jelinek  <jakub@redhat.com>
15159         PR fortran/25219
15160         * testsuite/libgomp.fortran/pr25219.f90: New test.
15162 2005-12-05  Uros Bizjak  <uros@kss-loka.si>
15164         * testsuite/libgomp.c/pr24455.c, testsuite/libgomp.c/copyin-1.c,
15165         testsuite/libgomp.c/copyin-2.c, testsuite/libgomp.c/copyin-3.c,
15166         testsuite/libgomp.c++/copyin-1.C, testsuite/libgomp.c++/copyin-2.C,
15167         testsuite/libgomp.c++/ctor-5.C, testsuite/libgomp.c++/ctor-8.C,
15168         testsuite/libgomp.c++/ctor-9.C, testsuite/libgomp.c++/pr24455.C,
15169         testsuite/libgomp.fortran/threadprivate1.f90,
15170         testsuite/libgomp.fortran/threadprivate2.f90,
15171         testsuite/libgomp.fortran/threadprivate3.f90,
15172         testsuite/libgomp.fortran/appendix-a/a.22.7.f9,
15173         testsuite/libgomp.fortran/appendix-a/a.22.8.f9,
15174         testsuite/libgomp.fortran/omp_parse3.f90: Change required
15175         effective-target to TLS runtime.
15177         * testsuite/libgomp.fortran/pr25162.f: Require
15178         effective-target TLS runtime.
15180 2005-12-01  Jakub Jelinek  <jakub@redhat.com>
15182         * testsuite/libgomp.fortran/nestedfn2.f90: New test.
15183         * testsuite/libgomp.c/nestedfn-3.c: New test.
15185 2005-11-30  Jakub Jelinek  <jakub@redhat.com>
15187         PR fortran/25162
15188         * testsuite/libgomp.fortran/pr25162.f: New test.
15190 2005-11-28  Jakub Jelinek  <jakub@redhat.com>
15192         * config/posix/time.c (omp_get_wtime, omp_get_wtick): Fall back to
15193         CLOCK_REALTIME if clock_* (CLOCK_MONOTONIC, &ts) call failed.
15195 2005-11-25  Jakub Jelinek  <jakub@redhat.com>
15197         * alloc.c, barrier.c, critical.c, env.c, error.c, fortran.c, iter.c,
15198         libgomp.h, libgomp_f.h.in, libgomp_g.h, loop.c, mkomp_h.pl, omp.h.in,
15199         omp_lib.f90.in, omp_lib.h.in, ordered.c, parallel.c, sections.c,
15200         single.c, team.c, work.c, config/linux/alpha/futex.h,
15201         config/linux/bar.c, config/linux/bar.h, config/linux/ia64/futex.h,
15202         config/linux/lock.c, config/linux/mutex.c, config/linux/mutex.h,
15203         config/linux/powerpc/futex.h, config/linux/s390/futex.h,
15204         config/linux/sem.c, config/linux/sem.h, config/linux/sparc/futex.h,
15205         config/linux/x86/futex.h, config/posix/bar.c, config/posix/bar.h,
15206         config/posix/lock.c, config/posix/mutex.h, config/posix/proc.c,
15207         config/posix/sem.c, config/posix/sem.h, config/posix/time.c: Update
15208         FSF address.
15210 2005-11-18  Jakub Jelinek  <jakub@redhat.com>
15212         * Makefile.am: Move libgomp_f.h from nodist_include_HEADERS
15213         to nodist_noinst_HEADERS.
15214         * Makefile.in: Rebuilt.
15216         * config/posix/omp-lock.h (omp_nest_lock_t): Change into struct,
15217         add integer count field.
15218         * config/posix/lock.c (omp_destroy_nest_lock): Adjust for
15219         omp_nest_lock_t type change.
15220         (omp_init_nest_lock): Likewise.  Initialize count to 0.
15221         (omp_set_nest_lock): Adjust for omp_nest_lock_t type change.
15222         Increment count.
15223         (omp_unset_nest_lock): Adjust for omp_nest_lock_t type change.
15224         Decrement count.
15225         (omp_test_nest_lock): Adjust for omp_nest_lock_t type change.
15226         Increment count if successful and return the new nesting level.
15227         * config/linux/lock.c (omp_test_nest_lock): Return new nesting level.
15228         * omp_lib.f90.in (omp_test_lock): Fix LOCK argument type.
15229         * testsuite/libgomp.c/lib-1.c: New test.
15230         * testsuite/libgomp.fortran/lib1.f90: New test.
15231         * testsuite/libgomp.fortran/lib2.f: New test.
15232         * testsuite/libgomp.fortran/lib3.f: New test.
15234 2005-11-17  Richard Henderson  <rth@redhat.com>
15236         PR 24845
15237         * Makefile.am (nodist_toolexeclib_HEADERS): New.
15238         * configure.ac (link_gomp): New.  Substitute it.
15239         (AC_CONFIG_FILES): Add libgomp.spec.
15240         * libgomp.spec.in: New file.
15241         * Makefile.in, testsuite/Makefile.in, configure: Rebuild.
15242         * testsuite/lib/libgomp-dg.exp: Add -B${blddir}/ to flags.
15244 2005-11-18  Jakub Jelinek  <jakub@redhat.com>
15246         * testsuite/libgomp.fortran/reduction1.f90: Adjust for
15247         reduction(-:var) behaving the same as reduction(+:var).
15248         * testsuite/libgomp.c/reduction-4.c: New test.
15250 2005-11-15  Uros Bizjak  <uros@kss-loka.si>
15252         * testsuite/libgomp.c/pr24455-1.c, testsuite/libgomp.c/pr24455.c,
15253         testsuite/libgomp.c/copyin-1.c, testsuite/libgomp.c/copyin-2.c,
15254         testsuite/libgomp.c/copyin-3.c,
15255         testsuite/libgomp.c++/copyin-1.C, testsuite/libgomp.c++/copyin-2.C,
15256         testsuite/libgomp.c++/ctor-5.C, testsuite/libgomp.c++/ctor-8.C,
15257         testsuite/libgomp.c++/ctor-9.C, testsuite/libgomp.c++/pr24455-1.C,
15258         testsuite/libgomp.c++/pr24455.C,
15259         testsuite/libgomp.fortran/threadprivate1.f90,
15260         testsuite/libgomp.fortran/threadprivate2.f90,
15261         testsuite/libgomp.fortran/threadprivate3.f90,
15262         testsuite/libgomp.fortran/appendix-a/a.22.7.f9,
15263         testsuite/libgomp.fortran/appendix-a/a.22.8.f9,
15264         testsuite/libgomp.fortran/omp_parse3.f90: Require
15265         effective-target TLS.
15267 2005-11-14  Diego Novillo  <dnovillo@redhat.com>
15269         * HEADER: Remove.
15271 2005-11-13  Jakub Jelinek  <jakub@redhat.com>
15273         PR libgomp/24797
15274         * team.c (initialize_team): Pass NULL rather than free as
15275         pthread_key_create destructor.  Initialize thread specific data
15276         pointer in initial thread to a static local variable rather than
15277         malloced memory.
15279 2005-11-11  Uros Bizjak  <uros@kss-loka.si>
15281         * testsuite/lib/libgomp-dg.exp: Locate libgcc.a and append
15282         its location to ld_library_path.
15284 2005-11-10  Diego Novillo  <dnovillo@redhat.com>
15286         * testsuite/libgomp.c/c.exp: Rename from dg.exp.
15288 2005-11-10  Diego Novillo  <dnovillo@redhat.com>
15290         * testsuite/libgomp.c: Rename from libgomp.dg.
15292 2005-11-09  Diego Novillo  <dnovillo@redhat.com>
15294         * testsuite/libgomp.c++/pr24455.C: Add copyin clause for
15295         threadprivate variable 'i'.
15297 2005-11-09  Jakub Jelinek  <jakub@redhat.com>
15299         * config/linux/s390/futex.h: New file.
15300         * configure.tgt: Use it.
15302         * testsuite/libgomp.fortran/omp_parse4.f90: Move n initialization
15303         before the parallel.
15305 2005-11-08  Jakub Jelinek  <jakub@redhat.com>
15307         PR c++/24734
15308         * testsuite/libgomp.c++/master-1.C: New test.
15310 2005-11-07  Jakub Jelinek  <jakub@redhat.com>
15312         * testsuite/libgomp.dg/copyin-3.c: New test.
15314 2005-11-07  Jakub Jelinek  <jakub@redhat.com>
15316         * testsuite/libgomp.fortran/retval1.f90: New test.
15317         * testsuite/libgomp.fortran/vla7.f90: New test.
15319 2005-11-06  Jakub Jelinek  <jakub@redhat.com>
15321         * testsuite/libgomp.fortran/vla2.f90: New test.
15322         * testsuite/libgomp.fortran/vla3.f90: New test.
15323         * testsuite/libgomp.fortran/vla4.f90: New test.
15324         * testsuite/libgomp.fortran/vla5.f90: New test.
15325         * testsuite/libgomp.fortran/vla6.f90: New test.
15327 2005-11-01  Jakub Jelinek  <jakub@redhat.com>
15329         * config/linux/sparc/futex.h: New file.
15330         * configure.tgt: Use it.
15331         * testsuite/lib/libgomp-dg.exp: Use -mcpu=v9 for sparc testing.
15333         * critical.c: Include stdlib.h.
15334         * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS): Avoid warnings about
15335         ignoring return value.
15336         * configure.ac: Don't put -Wc,-pthread into XCFLAGS until after
15337         LIBGOMP_CHECK_SYNC_BUILTINS check.
15338         * configure: Rebuilt.
15340 2005-10-31  Jakub Jelinek  <jakub@redhat.com>
15342         * testsuite/libgomp.fortran/vla1.f90: New test.
15344 2005-10-31  Richard Henderson  <rth@redhat.com>
15346         * testsuite/libgomp.fortran/character2.f90: Fix race condition
15347         setting 's' in different threads.
15349 2005-10-31  Jakub Jelinek  <jakub@redhat.com>
15351         * libgomp.h (attribute_hidden, ialias): Define.
15352         * config/posix/proc.c (omp_get_num_procs): Add ialias.
15353         * config/posix/time.c (omp_get_wtime, omp_get_wtick): Likewise.
15354         * config/posix/lock.c (omp_init_lock, omp_init_nest_lock,
15355         omp_destroy_lock, omp_destroy_nest_lock, omp_set_lock,
15356         omp_set_nest_lock, omp_unset_lock, omp_unset_nest_lock,
15357         omp_test_lock, omp_test_nest_lock): Likewise.
15358         * config/linux/lock.c (omp_init_lock, omp_init_nest_lock,
15359         omp_destroy_lock, omp_destroy_nest_lock, omp_set_lock,
15360         omp_set_nest_lock, omp_unset_lock, omp_unset_nest_lock,
15361         omp_test_lock, omp_test_nest_lock): Likewise.
15362         * env.c (omp_set_dynamic, omp_set_nested, omp_set_num_threads,
15363         omp_get_dynamic, omp_get_nested): Likewise.
15364         * parallel.c (omp_get_num_threads, omp_get_max_threads,
15365         omp_get_thread_num, omp_in_parallel): Likewise.
15366         * fortran.c (ialias_redirect): Define.
15367         (omp_init_lock, omp_init_nest_lock, omp_destroy_lock,
15368         omp_destroy_nest_lock, omp_set_lock, omp_set_nest_lock,
15369         omp_unset_lock, omp_unset_nest_lock, omp_test_lock,
15370         omp_test_nest_lock, omp_set_dynamic, omp_set_nested,
15371         omp_set_num_threads, omp_get_dynamic, omp_get_nested,
15372         omp_in_parallel, omp_get_max_threads, omp_get_num_procs,
15373         omp_get_num_threads, omp_get_thread_num, omp_get_wtick,
15374         omp_get_wtime): Add ialias_redirect.
15376 2005-10-30  Jakub Jelinek  <jakub@redhat.com>
15378         * fortran.c: Include stdlib.h.
15380 2005-10-29  Jakub Jelinek  <jakub@redhat.com>
15382         * Makefile.am (env.o, env.lo): Depend on libgomp_f.h.
15383         * Makefile.in: Regenerated.
15385 2005-10-28  Jakub Jelinek  <jakub@redhat.com>
15387         * mkomp_h.pl: Remove all -Wc, option prefixes in $COMPILE.
15388         * libgomp_f.h.in (omp_check_defines): New function.
15389         * env.c: Include libgomp_f.h.
15390         (initialize_env): Call omp_check_defines.
15392         * testsuite/libgomp.dg/copyin-2.c: New test.
15393         * testsuite/libgomp.c++/copyin-2.C: New test.
15394         * testsuite/libgomp.fortran/threadprivate3.f90: New test.
15396         * testsuite/libgomp.fortran/threadprivate2.f90: New test.
15397         * testsuite/libgomp.fortran/sharing2.f90: New test.
15399         * testsuite/libgomp.dg/copyin-1.c: New test.
15400         * testsuite/libgomp.c++/copyin-1.C: New test.
15402 2005-10-26  Jakub Jelinek  <jakub@redhat.com>
15404         * testsuite/libgomp.fortran/crayptr1.f90: New test.
15406         * testsuite/libgomp.fortran/workshare1.f90: New test.
15408         * libgomp.fortran/appendix-a/a.28.5.f90: Change into compile
15409         only test.
15410         * libgomp.fortran/sharing1.f90: New test.
15412 2005-10-24  Jakub Jelinek  <jakub@redhat.com>
15414         PR c++/24502
15415         * testsuite/libgomp.c++/loop-7.C: New test.
15417         * testsuite/libgomp.dg/nestedfn-2.c: New test.
15419         * testsuite/libgomp.dg/nestedfn-1.c: New test.
15420         * testsuite/libgomp.fortran/reduction6.f90: New test.
15421         * testsuite/libgomp.fortran/nestedfn1.f90: New test.
15423 2005-10-23  Richard Henderson  <rth@redhat.com>
15425         * testsuite/libgomp.c++/ctor-1.C: New.
15426         * testsuite/libgomp.c++/ctor-2.C: New.
15427         * testsuite/libgomp.c++/ctor-3.C: New.
15428         * testsuite/libgomp.c++/ctor-4.C: New.
15429         * testsuite/libgomp.c++/ctor-5.C: New.
15430         * testsuite/libgomp.c++/ctor-6.C: New.
15431         * testsuite/libgomp.c++/ctor-7.C: New.
15432         * testsuite/libgomp.c++/ctor-8.C: New.
15433         * testsuite/libgomp.c++/ctor-9.C: New.
15435 2005-10-21  Diego Novillo  <dnovillo@redhat.com>
15437         PR 24455
15438         * testsuite/libgomp.c++/pr24455-1.C: New test.
15439         * testsuite/libgomp.c++/pr24455.C: New test.
15440         * testsuite/libgomp.dg/pr24455-1.c: New test.
15441         * testsuite/libgomp.dg/pr24455.c: New test.
15443 2005-10-20  Richard Henderson  <rth@redhat.com>
15445         * testsuite/libgomp.c++/loop-6.C: New.
15446         * testsuite/libgomp.dg/loop-3.c: New.
15448 2005-10-20  Jakub Jelinek  <jakub@redhat.com>
15450         * testsuite/libgomp.fortran/jacobi.f: Don't make i and j
15451         explicitly private.
15452         * testsuite/libgomp.fortran/omp_parse1.f90 (test_do): Make i
15453         explicitly shared.
15455 2005-10-19  Diego Novillo  <dnovillo@redhat.com>
15457         * testsuite/libgomp.fortran/jacobi.f: New test.
15459 2005-10-19  Richard Henderson  <rth@redhat.com>
15461         * configure.tgt (i?86-linux): Default to with_arch instead of
15462         CFLAGS.  Add -mtune to match target_cpu.
15463         (x86_64-linux): Tune to i686.
15465         * fortran.c (omp_test_nest_lock_): Fix typo.
15467 2005-10-19  Jakub Jelinek  <jakub@redhat.com>
15469         * ordered.c (gomp_ordered_first, gomp_ordered_last, gomp_ordered_next,
15470         gomp_ordered_sync): Do nothing if team->nthreads == 1.
15471         * testsuite/libgomp.dg/ordered-3.c: New test.
15473         * testsuite/libgomp.dg/appendix-a/a.18.1.c: Remove unconditional abort.
15474         Remove volatile keyword.
15476         * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: Reorder variables
15477         in COMMON block to avoid warnings on 64-bit targets.
15479 2005-10-18  Diego Novillo  <dnovillo@redhat.com>
15481         * testsuite/libgomp.dg/shared-3.c: New test.
15483 2005-10-18  Jakub Jelinek  <jakub@redhat.com>
15485         * testsuite/libgomp.fortran/appendix-a/a.31.3.f90: Removed.
15486         * testsuite/libgomp.fortran/reduction5.f90: New test.
15488 2005-10-18  Jakub Jelinek  <jakub@redhat.com>
15490         * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: Add -ffixed-form to
15491         dg-options.
15492         * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: Likewise.  Enable
15493         flush loop now that __sync_synchronize has proper memory barrier.
15494         * testsuite/libgomp.fortran/appendix-a/a.3.1.f90: Fix a typo.
15495         Add -ffixed-form to dg-options.
15497 2005-10-17  Diego Novillo  <dnovillo@redhat.com>
15499         * testsuite/libgomp.fortran/fortran.exp: Also gather tests
15500         from subdirectories.
15501         * testsuite/libgomp.fortran/appendix-a/a.15.1.f90: New test.
15502         * testsuite/libgomp.fortran/appendix-a/a.16.1.f90: New test.
15503         * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: New test.
15504         * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: New test.
15505         * testsuite/libgomp.fortran/appendix-a/a.2.1.f90: New test.
15506         * testsuite/libgomp.fortran/appendix-a/a.21.1.f90: New test.
15507         * testsuite/libgomp.fortran/appendix-a/a.22.7.f90: New test.
15508         * testsuite/libgomp.fortran/appendix-a/a.22.8.f90: New test.
15509         * testsuite/libgomp.fortran/appendix-a/a.26.1.f90: New test.
15510         * testsuite/libgomp.fortran/appendix-a/a.28.1.f90: New test.
15511         * testsuite/libgomp.fortran/appendix-a/a.28.2.f90: New test.
15512         * testsuite/libgomp.fortran/appendix-a/a.28.3.f90: New test.
15513         * testsuite/libgomp.fortran/appendix-a/a.28.4.f90: New test.
15514         * testsuite/libgomp.fortran/appendix-a/a.28.5.f90: New test.
15515         * testsuite/libgomp.fortran/appendix-a/a.3.1.f90: New test.
15516         * testsuite/libgomp.fortran/appendix-a/a.31.3.f90: New test.
15517         * testsuite/libgomp.fortran/appendix-a/a.31.4.f90: New test.
15518         * testsuite/libgomp.fortran/appendix-a/a.31.5.f90: New test.
15519         * testsuite/libgomp.fortran/appendix-a/a.33.3.f90: New test.
15520         * testsuite/libgomp.fortran/appendix-a/a.38.1.f90: New test.
15521         * testsuite/libgomp.fortran/appendix-a/a.39.1.f90: New test.
15522         * testsuite/libgomp.fortran/appendix-a/a.4.1.f90: New test.
15523         * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: New test.
15524         * testsuite/libgomp.fortran/appendix-a/a.5.1.f90: New test.
15525         * testsuite/libgomp.fortran/appendix-a/a10.1.f90: New test.
15527 2005-10-17  Jakub Jelinek  <jakub@redhat.com>
15529         * testsuite/libgomp.dg/dg.exp: Only unset lang_* if
15530         lang_library_path exists.  Use find instead of glob to gather tests.
15531         * testsuite/libgomp.dg/appendix-a/appendix-a.exp: Removed.
15533 2005-10-17  Diego Novillo  <dnovillo@redhat.com>
15535         * testsuite/libgomp.dg/appendix-a/a.15.1.c: New test.
15536         * testsuite/libgomp.dg/appendix-a/a.16.1.c: New test.
15537         * testsuite/libgomp.dg/appendix-a/a.18.1.c: New test.
15538         * testsuite/libgomp.dg/appendix-a/a.19.1.c: New test.
15539         * testsuite/libgomp.dg/appendix-a/a.2.1.c: New test.
15540         * testsuite/libgomp.dg/appendix-a/a.21.1.c: New test.
15541         * testsuite/libgomp.dg/appendix-a/a.26.1.c: New test.
15542         * testsuite/libgomp.dg/appendix-a/a.29.1.c: New test.
15543         * testsuite/libgomp.dg/appendix-a/a.3.1.c: New test.
15544         * testsuite/libgomp.dg/appendix-a/a.39.1.c: New test.
15545         * testsuite/libgomp.dg/appendix-a/a.4.1.c: New test.
15546         * testsuite/libgomp.dg/appendix-a/a.5.1.c: New test.
15547         * testsuite/libgomp.dg/appendix-a/appendix-a.exp: New file.
15549 2005-10-15  Jakub Jelinek  <jakub@redhat.com>
15551         * testsuite/libgomp.dg/vla-1.c: New test.
15553         * testsuite/libgomp.fortran/reference2.f90: New test.
15555         * testsuite/libgomp.fortran/character2.f90: Remove explicit
15556         declaration of omp_get_thread_num.
15557         * testsuite/libgomp.fortran/threadprivate1.f90: Likewise.  Add
15558         use omp_lib.
15560         * testsuite/libgomp.fortran/reduction1.f90: New test.
15561         * testsuite/libgomp.fortran/reduction2.f90: New test.
15562         * testsuite/libgomp.fortran/reduction3.f90: New test.
15563         * testsuite/libgomp.fortran/reduction4.f90: New test.
15565 2005-10-13  Richard Henderson  <rth@redhat.com>
15567         * Makefile.am (libgomp_la_SOURCES): Add bar.c.
15568         * Makefile.in: Regenerate.
15569         * barrier.c (GOMP_barrier): Use gomp_barrier_wait.
15570         * libgomp.h: Include bar.h.
15571         (struct gomp_barrier): Remove.
15572         (struct gomp_team): Add barrier.  Replace master_barrier with
15573         master_release.  Replace threads with ordered_release.
15574         (struct gomp_thread): Replace barrier with release.
15575         * ordered.c (gomp_ordered_first): Update for ordered_release change.
15576         (gomp_ordered_last, gomp_ordered_next, gomp_ordered_static_init,
15577         gomp_ordered_static_next, gomp_ordered_sync): Likewise.
15578         * single.c (GOMP_single_copy_start): Use gomp_barrier_wait.
15579         (GOMP_single_copy_end): Likewise.
15580         * team.c (gomp_threads_dock): New.
15581         (gomp_barrier_init, gomp_barrier_destroy): Remove.
15582         (gomp_thread_start): Use gomp_barrier_wait.
15583         (new_team, free_team): Update for gomp_team changes.
15584         (gomp_team_start): Use gomp_barrier_wait and gomp_barrier_reinit.
15585         (gomp_team_end): Use gomp_barrier_wait.
15586         (initialize_team): Update for gomp_thread changes.
15587         * work.c (gomp_work_share_end): Use gomp_barrier_wait_start.
15588         (gomp_work_share_end_nowait): Use atomic ops when available.
15589         * config/linux/bar.c, config/linux/bar.h: New files.
15590         * config/posix/bar.c, config/posix/bar.h: New files.
15592 2005-10-13  Jakub Jelinek  <jakub@redhat.com>
15594         * single.c (GOMP_single_copy_end): Don't segfault if team is NULL.
15595         * testsuite/libgomp.dg/single-2.c: New test.
15597         * testsuite/libgomp.dg/dg.exp (lang_library_path, lang_test_file,
15598         lang_link_flags): Unset, so that they aren't inherited from previously
15599         sourced *.exp.
15601         * testsuite/libgomp.fortran/threadprivate1.f90: New test.
15603 2005-10-12  Richard Henderson  <rth@redhat.com>
15605         * testsuite/lib/libgomp-dg.exp: Set blddir at toplevel.
15606         (libgomp_init): Use lang_test_file, lang_library_path, and
15607         lang_link_flags, set by the subdirectory files.  Add -fopenmp here.
15609         * testsuite/libgomp.fortran/fortran.exp (lang_library_path): New.
15610         (lang_test_file, lang_link_flags): New.
15611         (DEFAULT_FFLAGS, ALWAYS_CFLAGS, multilibs, blddir): Remove.
15613         * testsuite/libgomp.c++/c++.exp, testsuite/libgomp.c++/loop-1.C,
15614         testsuite/libgomp.c++/loop-2.C, testsuite/libgomp.c++/loop-3.C,
15615         testsuite/libgomp.c++/loop-4.C, testsuite/libgomp.c++/nested-1.C,
15616         testsuite/libgomp.c++/parallel-1.C,
15617         testsuite/libgomp.c++/reduction-1.C,
15618         testsuite/libgomp.c++/reduction-2.C,
15619         testsuite/libgomp.c++/reduction-3.C,
15620         testsuite/libgomp.c++/sections-1.C, testsuite/libgomp.c++/shared-1.C,
15621         testsuite/libgomp.c++/shared-2.C, testsuite/libgomp.c++/single-1.C,
15622         testsuite/libgomp.c++/single-2.C, testsuite/libgomp.c++/single-3.C:
15623         New files, largely cribbed from the C testsuite.
15625 2005-10-12  Jakub Jelinek  <jakub@redhat.com>
15627         * testsuite/libgomp.fortran/character1.f90: New test.
15628         * testsuite/libgomp.fortran/character2.f90: New test.
15630         * testsuite/libgomp.dg/nested-1.c: New test.
15631         * testsuite/libgomp.dg/nested-2.c: New test.
15632         * testsuite/libgomp.fortran/do1.f90: New test.
15633         * testsuite/libgomp.fortran/do2.f90: New test.
15635         * testsuite/libgomp.fortran/reference1.f90: New test.
15637 2005-10-11  Jakub Jelinek  <jakub@redhat.com>
15639         * testsuite/libgomp.dg/reduction-1.c: New test.
15640         * testsuite/libgomp.dg/reduction-2.c: New test.
15641         * testsuite/libgomp.dg/reduction-3.c: New test.
15643 2005-10-10  Jakub Jelinek  <jakub@redhat.com>
15645         * testsuite/libgomp.dg/atomic-1.c: New test.
15646         * testsuite/libgomp.dg/atomic-2.c: New test.
15648 2005-10-09  Richard Henderson  <rth@redhat.com>
15650         * critical.c (atomic_lock): New.
15651         (initialize_critical): Initialize it.
15652         (GOMP_atomic_start, GOMP_atomic_end): New.
15653         * libgomp.map: Export them.
15654         * libgomp_g.h: Declare them.
15656         * testsuite/libgomp.dg/atomic-10.c: Move from gcc testsuite.
15658 2005-10-02  Richard Henderson  <rth@redhat.com>
15660         * configure.ac: Move save_CFLAGS hack earlier.  Append -Wall/-Werror
15661         to XCFLAGS instead of CFLAGS.
15663 2005-09-30  Richard Henderson  <rth@redhat.com>
15665         * configure.ac: Determine whether -pthread or -lpthread is needed.
15666         * Makefile.am (libgomp_la_LDFLAGS): Remove explicit -lpthread.
15667         * Makefile.in, configure: Rebuild.
15669 2005-09-28  Richard Henderson  <rth@redhat.com>
15671         * testsuite/libgomp.dg/omp-loop03.c: Fix return code.
15672         * testsuite/libgomp.dg/omp-single-3.c: New test.
15674 2005-09-28  Diego Novillo  <dnovillo@redhat.com>
15676         * testsuite/libgomp.dg/omp-single-2.c: New test.
15677         * testsuite/libgomp.dg/shared-2.c: Fix return code.
15679 2005-09-27  Richard Henderson  <rth@redhat.com>
15681         * testsuite/libgomp.dg/omp-loop03.c: Add initial barrier.
15682         * testsuite/libgomp.dg/omp-parallel-for.c: Specify static schedule.
15684 2005-09-27  Jakub Jelinek  <jakub@redhat.com>
15686         * testsuite/libgomp.dg/omp-loop03.c: New test.
15688 2005-09-27  Diego Novillo  <dnovillo@redhat.com>
15690         * testsuite/libgomp.dg/omp-parallel-for.c: New test.
15692 2005-09-27  Diego Novillo  <dnovillo@redhat.com>
15694         * testsuite/libgomp.dg/omp-single-1.c: New test.
15695         * testsuite/libgomp.dg/shared-1.c: Return 0.
15696         Add prototype for abort.
15697         * testsuite/libgomp.dg/shared-2.c: Likewise.
15699 2005-09-26  Jakub Jelinek  <jakub@redhat.com>
15701         * testsuite/libgomp.fortran/omp_parse3.f90: Fix non-conforming
15702         constructs.
15704 2005-09-26  Diego Novillo  <dnovillo@redhat.com>
15706         * testsuite/libgomp.dg/shared-1.c: New test.
15707         * testsuite/libgomp.dg/shared-2.c: New test.
15709 2005-09-24  Richard Henderson  <rth@redhat.com>
15711         * testsuite/libgomp.dg/omp_workshare3.c: Mark dg-error.
15713 2005-09-24  Richard Henderson  <rth@redhat.com>
15715         * iter.c (gomp_iter_static_next): Round up when computing number
15716         of iterations.  Don't bother distributing a remainder equally.
15718         * testsuite/libgomp.dg/omp-loop01.c (main1): Rename from main.
15719         Don't call srand.  Zero b before testing.
15720         (main): New.
15722 2005-09-24  Jakub Jelinek  <jakub@redhat.com>
15724         * testsuite/libgomp.fortran/omp_atomic1.f90: New test.
15725         * testsuite/libgomp.fortran/omp_atomic2.f90: New test.
15727 2005-09-23  Jakub Jelinek  <jakub@redhat.com>
15729         * testsuite/libgomp.fortran/omp_parse1.f90: Add a test for !$omp do
15730         without !$omp end do, followed immediately by subroutine end.
15732 2005-09-23  Diego Novillo  <dnovillo@redhat.com>
15734         * testsuite/libgomp.dg/omp-parallel-if.c: New test.
15736 2005-09-22  Richard Henderson  <rth@redhat.com>
15738         * critical.c (GOMP_critical_name_start): Change argument to void**.
15739         Reuse the pointer space if the mutex fits.
15740         (GOMP_critical_name_end): Likewise.
15741         (initialize_critical): Don't define if GOMP_MUTEX_INIT_0.
15742         * libgomp_g.h (GOMP_critical_name_start): Update decl.
15743         (GOMP_critical_name_end): Likewise.
15744         * config/linux/mutex.h (GOMP_MUTEX_INIT_0): New.
15745         * config/posix/mutex.h (GOMP_MUTEX_INIT_0): New.
15747 2005-09-20  Richard Henderson  <rth@redhat.com>
15749         * critical.c (GOMP_critical_name_start, GOMP_critical_name_end): New.
15750         (create_lock_lock): New.
15751         (initialize_critical): Initialize it.
15752         * libgomp.map (GOMP_critical_name_start, GOMP_critical_name_end): New.
15753         * libgomp_g.h (GOMP_ordered_start, GOMP_ordered_end): Declare.
15755 2005-09-20  Diego Novillo  <dnovillo@redhat.com>
15757         * testsuite/libgom.dg/omp-loop01.c: Include stdio.h.
15759 2005-09-20  Diego Novillo  <dnovillo@redhat.com>
15761         * testsuite/libgomp.dg/omp-loop01.c: New test.
15762         * testsuite/libgomp.dg/omp-loop02.c: New test.
15764 2005-09-20  Jakub Jelinek  <jakub@redhat.com>
15766         * configure.ac (AC_PROG_FC): Add.
15767         (USE_FORTRAN): New automake conditional.
15768         * configure: Rebuilt.
15769         * Makefile.am (libgomp_la_SOURCES): Add fortran.c.
15770         (nodist_include_HEADERS): Add omp_lib.h, omp_lib.f90 and libgomp_f.h.
15771         If USE_FORTRAN, add also omp_lib.mod and omp_lib_kinds.mod.
15772         Add rules to build them.
15773         * Makefile.in: Rebuilt.
15774         * mkomp_h.pl: Compute and replace also OMP_LOCK_KIND and
15775         OMP_NEST_LOCK_KIND.
15776         * libgomp.map: Add Fortran wrappers.
15777         * libgomp_f.h.in: New file.
15778         * omp_lib.h.in: New file.
15779         * omp_lib.f90.in: New file.
15780         * fortran.c: New file.
15781         * testsuite/lib/libgomp-dg.exp: Load a few more .exp files.
15782         Append libgfortran directory to LD_LIBRARY_PATH if it exists.
15783         Add -Lpath_to_libgfortran and -lgfortran -lgfortranbegin if
15784         libgfortran has been built.
15785         * testsuite/libgomp.fortran/fortran.exp: New file.
15786         * testsuite/libgomp.fortran/omp_cond1.f: New test.
15787         * testsuite/libgomp.fortran/omp_cond2.f: New test.
15788         * testsuite/libgomp.fortran/omp_cond3.F90: New test.
15789         * testsuite/libgomp.fortran/omp_cond4.F90: New test.
15790         * testsuite/libgomp.fortran/omp_hello.f: New test.
15791         * testsuite/libgomp.fortran/omp_orphan.f: New test.
15792         * testsuite/libgomp.fortran/omp_parse1.f90: New test.
15793         * testsuite/libgomp.fortran/omp_parse2.f90: New test.
15794         * testsuite/libgomp.fortran/omp_parse3.f90: New test.
15795         * testsuite/libgomp.fortran/omp_parse4.f90: New test.
15796         * testsuite/libgomp.fortran/omp_reduction.f: New test.
15797         * testsuite/libgomp.fortran/omp_workshare1.f: New test.
15798         * testsuite/libgomp.fortran/omp_workshare2.f: New test.
15800 2005-08-30  Richard Henderson  <rth@redhat.com>
15802         * loop.c (GOMP_loop_static_start): Provide fallback wrapper
15803         function for when aliases are not usable.
15804         (GOMP_loop_dynamic_start, GOMP_loop_guided_start,
15805         GOMP_loop_ordered_static_start, GOMP_loop_ordered_dynamic_start,
15806         GOMP_loop_ordered_guided_start, GOMP_loop_static_next,
15807         GOMP_loop_dynamic_next, GOMP_loop_guided_next,
15808         GOMP_loop_ordered_static_next, GOMP_loop_ordered_dynamic_next,
15809         GOMP_loop_ordered_guided_next): Likewise.
15810         * ordered.c (GOMP_ordered_start): Likewise.
15812 2005-08-01  Diego Novillo  <dnovillo@redhat.com>
15814         * testsuite/libgomp.dg/dg.exp: Use -O2 for now.
15815         * testsuite/libgomp.dg/omp_hello.c: Fix return code
15816         * testsuite/libgomp.dg/omp_matvec.c: Likewise.
15817         * testsuite/libgomp.dg/omp_orphan.c: Likewise
15818         * testsuite/libgomp.dg/omp_reduction.c: Likewise
15819         * testsuite/libgomp.dg/omp_workshare1.c: Likewise
15820         * testsuite/libgomp.dg/omp_workshare2.c: Likewise
15821         * testsuite/libgomp.dg/omp_workshare3.c: Likewise
15822         * testsuite/libgomp.dg/omp_workshare4.c: Likewise
15824 2005-07-07  Eric Christopher  <echristo@redhat.com>
15825             Diego Novillo  <dnovillo@redhat.com>
15827         * testsuite/libgomp.dg/dg.exp: Add -fopenmp to DEFAULT_CFLAGS.
15828         * testsuite/libgomp.dg/omp_hello.c: Add standard includes, fix
15829         up code.
15830         * testsuite/libgomp.dg/omp_matvec.c: Ditto.
15831         * testsuite/libgomp.dg/omp_orphan.c: Ditto.
15832         * testsuite/libgomp.dg/omp_reduction.c: Ditto.
15833         * testsuite/libgomp.dg/omp_workshare1.c: Ditto.
15834         * testsuite/libgomp.dg/omp_workshare2.c: Ditto.
15835         * testsuite/libgomp.dg/omp_workshare3.c: Ditto.
15836         * testsuite/libgomp.dg/omp_workshare4.c: Ditto.
15838 2005-06-13  Diego Novillo  <dnovillo@redhat.com>
15840         * TOPLEVEL.patch: Remove.
15842 2005-05-16  Richard Henderson  <rth@redhat.com>
15844         * configure.ac: Test for clock_gettime.
15845         * config.h.in, configure: Rebuild.
15846         * config/posix/time.c: Use recommended TIME_WITH_SYS_TIME pattern.
15847         (omp_get_wtime): Use clock_gettime if available.
15848         (omp_get_wtick): Use clock_getres if available.
15850 2005-05-11  Richard Henderson  <rth@redhat.com>
15852         * config/linux/ia64/futex.h: New file.
15853         * configure.tgt: Use it.
15855         * team.c (gomp_barrier_init, gomp_barrier_destroy): Mark inline.
15857 2005-05-07  Richard Henderson  <rth@redhat.com>
15859         * config/linux/powerpc/futex.h: New file.
15860         * configure.tgt: Use it.
15862         * config/linux/i486/futex.h: Merge ...
15863         * config/linux/x86_64/futex.h: ... into ...
15864         * config/linux/x86/futex.h: ... here.
15865         * configure.tgt: Update to match.
15867 2005-05-06  Richard Henderson  <rth@redhat.com>
15869         * config/linux/alpha/futex.h: Conditionally define SYS_futex.
15870         * config/linux/i486/futex.h: Likewise.
15871         * config/linux/x86_64/futex.h: Likewise.
15873         * config/linux/lock.c: New file.
15874         * config/linux/omp-lock.h: New file.
15876         * critical.c, env.h: Don't include omp.h
15877         * config/posix/lock.c: Include libgomp.h instead of omp.h.
15878         * config/posix/time.c: Likewise.
15879         * config/posix/omp-lock.h: New file.
15880         * libgomp.h: Include omp-lock.h and omp.h.
15881         * Makefile.am (nodist_include_HEADERS): New.
15882         (omp.h): New rule.
15883         * configure.ac (PERL): New.
15884         * mkomp_h.pl: New file.
15885         * omp.h.in: Rename from omp.h; replace omp_lock_t and omp_nest_lock_t
15886         with templates.
15887         * Makefile.in, configure, testsuite/Makefile.in: Rebuild.
15889         * testsuite/lib/libgomp-dg.exp (libgomp_init): Add include into
15890         build directory.  Re-add -march=i486 hack.
15892         * testsuite/lib/libgomp-dg.exp (libgomp_compile_flags): Remove.
15893         (libgomp_link_flags): Remove.
15894         (libgomp_initialized): Remove.
15895         (libgomp_init): Don't protect from reinitialization.  Copy code
15896         from libstdc++ for getting the multilib set correctly.
15898 2005-05-05  Richard Henderson  <rth@redhat.com>
15900         * config/linux/alpha/futex.h: New file.
15901         * configure.tgt (alpha*-*-linux*): Use it.
15903         * config/posix/mutex.c: New file.
15904         * config/posix/sem.c: Use libgomp.h.
15906         * configure.tgt (x86_64-linux): Also test CC for -m32.
15907         * config/linux/x86_64/futex.h (futex_wait): Fix r10 usage.
15909         * testsuite/lib/libgomp-dg.exp (libgomp_link_flags): Add /
15910         after $gccpath.
15912         * Makefile.am (SUBDIRS): New.
15913         (libgomp_la_LDFLAGS): Add -lpthread.
15914         * configure.ac (AM_INIT_AUTOMAKE): Enable dependencies.
15915         * Makefile.in, aclocal.m4, config.h.in, configure: Rebuild.
15917         * libgomp_g.h: New file.
15918         * libgomp.h: Split out all public declarations to libgomp_g.h.
15919         Use pragma GCC visibility instead of ATTRIBUTE_HIDDEN.
15920         * config/linux/mutex.h: Remove ATTRIBUTE_HIDDEN.
15921         * config/linux/sem.h: Likewise.
15922         * config/posix/sem.h: Likewise.
15924         * Makefile.am (AM_LDFLAGS): New.
15925         (libgomp_version_script): Split out from ...
15926         (libgomp_la_LDFLAGS): ... here.
15927         (libgomp_version_info): New.
15928         * acinclude.m4 (LIBGOMP_CHECK_TLS): Use LIBGOMP_ENABLE.
15929         (LIBGOMP_ENABLE): New.
15930         (LIBGOMP_CHECK_LINKER_FEATURES): New.
15931         (LIBGOMP_ENABLE_SYMVERS): New.
15932         * configure.ac (AC_INIT): Version 1.0.
15933         (enable-version-specific-runtime-libs): Use LIBGOMP_ENABLE.
15934         (enable-linux-futex): Likewise.  Rename from enable-futex.
15935         (libtool_VERSION): New.
15936         (LIBGOMP_ENABLE_SYMVERS): Use it.
15937         * configure.tgt: Check with_gnu_ld wrt have_tls optimizations.
15938         * Makefile.in, aclocal.m4, configure: Rebuild.
15940         * config/linux/mutex.c: Include libgomp.h instead of mutex.h.
15941         (gomp_mutex_unlock_slow): Fix typo.
15942         * config/linux/sem.c: Similarly.
15943         (gomp_sem_post_slow): Fix typo.
15944         * config/linux/sem.h (gomp_sem_post_slow): Fix typo.
15945         * config/linux/i486/futex.h: Remove USE_LINUX_SYSENTER code.
15946         [__PIC__] (sys_futex0): Don't use tmp output in asm.
15948         * Makefile.am (AM_CFLAGS): Expand with XCFLAGS.
15949         (libgomp_la_LDFLAGS): Add top_srcdir to path.
15950         * acinclude.m4: Copy libtool.m4 stuff from libgfortran.
15951         * configure.ac: Check for getloadavg.  Substitute XCFLAGS and
15952         XLDFLAGS.  Add XCFLAGS to CFLAGS around LIBGOMP_CHECK_SYNC_BUILTINS.
15953         * configure.tgt: Set XCFLAGS and XLDFLAGS instead of CFLAGS and
15954         LDFLAGS.  Pull enable_futex check to top-level.
15955         * libgomp.h: Fix sem.h and mutex.h includes.  Define ATTRIBUTE_HIDDEN.
15956         * Makefile.in, aclocal.m4, config.h.in, configure: Regenerate.
15958         First attempt at real configury.
15959         * Makefile, config.h: Remove file.
15960         * Makefile.am, Makefile.in: New file.
15961         * acinclude.m4 aclocal.m4: New file.
15962         * configure.ac, configure.tgt, configure: New file.
15964         * config/posix/lock.c: Rename from sys-lock.c.
15965         * config/posix/mutex.h: Rename from sys-mutex.h.
15966         * config/posix/sem.c: Rename from sys-sem.c.
15967         * config/posix/sem.h: Rename from sys-sem.h.
15968         * config/posix/proc.c: Rename from sys-proc.c.
15969         * config/posix/time.c: Rename from sys-proc.c.
15971         * config/linux/mutex.c: New file.
15972         * config/linux/mutex.h: New file.
15973         * config/linux/sem.c: New file.
15974         * config/linux/sem.h: New file.
15975         * config/linux/i486/futex.h: New file.
15976         * config/linux/x86_64/futex.h: New file.
15978 2005-05-04  Richard Henderson  <rth@redhat.com>
15980         * iter.c (gomp_iter_dynamic_next, gomp_iter_guided_next): New.
15981         * libgomp.h: Declare them.
15982         * loop.c (gomp_loop_dynamic_start, gomp_loop_guided_start,
15983         gomp_loop_dynamic_next, gomp_loop_guided_next): Use them.
15985 2005-05-04  Richard Henderson  <rth@redhat.com>
15987         * libgomp-1 code drop
15989 2005-05-04  Richard Henderson  <rth@redhat.com>
15991         * iter.c (gomp_iter_static_next): Return tri-state on 0.
15992         * ordered.c (gomp_ordered_static_next): Remove not_last argument.
15993         * libgomp.h (struct gomp_team_state): Make static_trip unsigned.
15994         (gomp_iter_static_next): Update.
15995         (gomp_ordered_static_next): Update.
15996         * loop.c (gomp_loop_static_start): Update for gomp_iter_static_next.
15997         (gomp_loop_ordered_static_start): Likewise.  Exit early for a
15998         totally empty range.
15999         (gomp_loop_ordered_static_next): Refine test for calling
16000         gomp_ordered_static_next.
16001         * testsuite/ordered-1.c: Add case for more threads than iterations.
16003         * iter.c (gomp_iter_runtime_next_locked): Remove.
16004         * loop.c (gomp_loop_static_start, gomp_loop_dynamic_start,
16005         gomp_loop_guided_start, gomp_loop_ordered_static_start,
16006         gomp_loop_ordered_dynamic_start, gomp_loop_ordered_guided_start,
16007         gomp_loop_static_next, gomp_loop_dynamic_next, gomp_loop_guided_next,
16008         gomp_loop_ordered_static_next, gomp_loop_ordered_dynamic_next,
16009         gomp_loop_ordered_guided_next): Downcase name, make static, add
16010         an external alias with the old name.
16011         (GOMP_loop_runtime_start, GOMP_loop_ordered_runtime_start,
16012         GOMP_loop_runtime_next, GOMP_loop_ordered_runtime_next): Use a
16013         switch and call one of the above static functions.
16014         * libgomp.h: Update.
16016         * work.c (gomp_work_share_start): Lock the mutex for !first too.
16017         * loop.c (GOMP_loop_static_start, GOMP_loop_dynamic_start,
16018         GOMP_loop_guided_start, GOMP_loop_runtime_start,
16019         GOMP_loop_ordered_static_start, GOMP_loop_ordered_dynamic_start,
16020         GOMP_loop_ordered_guided_start): Update to match.
16021         * sections.c (GOMP_sections_start): Likewise.
16022         * single.c (GOMP_single_start, GOMP_single_copy_start): Likewise.
16024         * ordered.c (gomp_ordered_first, gomp_ordered_last, gomp_ordered_next,
16025         gomp_ordered_static_init, gomp_ordered_static_next): Rename s/_loop//.
16026         Use bounds check instead of modulus.
16027         (gomp_ordered_sync): Split out of GOMP_ordered_start.
16028         (gomp_ordered_last): Don't sync with ordered_owner here.
16029         (gomp_ordered_next): Likewise.
16030         (gomp_ordered_static_loop_next): Likewise.
16031         * loop.c, libgomp.h: Update to match.
16033         * libgomp.h (GOMP_barrier): Declare.
16035         * testsuite/barrier-1.c: New file.
16036         * testsuite/critical-1.c: New file.
16037         * testsuite/ordered-2.c: New file.
16038         * testsuite/ordered-1.c: New file.
16039         * testsuite/sections-1.c: New file.
16040         * testsuite/single-1.c: New file.
16041         * testsuite/Makefile (TESTS): Add them.
16043 2005-05-04  Richard Henderson  <rth@redhat.com>
16045         * libgomp.h (struct gomp_work_share): Add ordered_owner.
16046         * loop.c (GOMP_loop_static_start): If not the startup thread,
16047         acquire the mutex to wait for initialization complete.
16048         (GOMP_loop_ordered_static_start): Likewise.
16049         (GOMP_loop_ordered_runtime_start): Likewise.
16050         (GOMP_loop_ordered_static_first): Remove.
16051         (GOMP_loop_ordered_dynamic_first): Remove.
16052         (GOMP_loop_ordered_guided_first): Remove.
16053         (GOMP_loop_ordered_runtime_first): Remove.
16054         * ordered.c (gomp_ordered_loop_first): Post to own release when
16055         we're the first thread.
16056         (gomp_ordered_loop_last): Wait on release if not owner.
16057         (gomp_ordered_loop_next): Likewise.
16058         (gomp_ordered_static_loop_init): New.
16059         (gomp_ordered_static_loop_next): Use ordered_owner.
16060         (GOMP_ordered_start): Likewise.
16061         * work.c (gomp_new_work_share): Initialize ordered_owner.
16063 2005-05-03  Richard Henderson  <rth@redhat.com>
16065         * Makefile (OPT): New.
16066         (CFLAGS): Use it.
16068         * loop.c (GOMP_loop_end, GOMP_loop_end_nowait): New.
16069         * sections.c (GOMP_sections_end, GOMP_sections_end_nowait): New.
16070         * libgomp.h, libgomp.map, NOTES: Update to match.
16072         * team.c (struct gomp_thread_start_data): Remove ts, fn, data.
16073         Add initialized and thr members.
16074         (gomp_thread_start): Pause when initially spawned to wait for
16075         the whole team to be created.
16076         (gomp_team_start): Release team members at the end.
16078         * testsuite/loop-1.c (N): New.  Use it instead of hardcoded 100.
16079         (f_foo_1): Use GOMP_loop_end.
16080         (f_foo_2): Use GOMP_loop_end_nowait.
16082         * testsuite/loop-2.c: New file.
16083         * testsuite/Makefile (TESTS): Add it.
16085 2005-05-03  Richard Henderson  <rth@redhat.com>
16087         * iter.c (gomp_iter_static_next): Fix overflow check typo.
16088         (gomp_iter_dynamic_next_locked): Fix overflow check thinko.
16089         * team.c (new_team): Initialize oldest_live_gen to 1 if no
16090         initial work_share.
16092         * testsuite/Makefile: New file.
16093         * testsuite/loop-1.c: New file.
16095 2005-05-03  Richard Henderson  <rth@redhat.com>
16097         Initial implementation and checkin.
16099 Copyright (C) 2005-2021 Free Software Foundation, Inc.
16101 Copying and distribution of this file, with or without modification,
16102 are permitted in any medium without royalty provided the copyright
16103 notice and this notice are preserved.