Fix thinko in operator_bitwise_xor::op1_range
[official-gcc.git] / libgomp / ChangeLog
blob490f093dbcec0193b7019bd93481a39beef6a41d
1 2022-11-21  Tobias Burnus  <tobias@codesourcery.com>
3         * config/gcn/libgomp-gcn.h (struct output):
4         Remove 'msg_u64' from the union, change
5         value_u64[2] to value_u64[6].
6         * config/gcn/target.c (GOMP_target_ext): Update accordingly.
7         * plugin/plugin-gcn.c (process_reverse_offload, console_output):
8         Likewise.
10 2022-11-19  Tobias Burnus  <tobias@codesourcery.com>
12         * config/gcn/libgomp-gcn.h: New file; contains
13         struct output, declared previously in plugin-gcn.c.
14         * config/gcn/target.c: Include it.
15         (GOMP_ADDITIONAL_ICVS): Declare as extern var.
16         (GOMP_target_ext): Handle reverse offload.
17         * plugin/plugin-gcn.c: Include libgomp-gcn.h.
18         (struct kernargs): Replace struct def by the one
19         from libgomp-gcn.h for output_data.
20         (process_reverse_offload): New.
21         (console_output): Call it.
23 2022-11-16  Tobias Burnus  <tobias@codesourcery.com>
24             Andrew Stubbs  <ams@codesourcery.com>
26         * config/gcn/team.c (gomp_gcn_enter_kernel): Use
27         __builtin_gcn_kernarg_ptr instead of asm ("s8").
29 2022-11-14  Martin Liska  <mliska@suse.cz>
31         Revert:
32         2022-11-14  Martin Liska  <mliska@suse.cz>
34         * doc/amd-radeon-gcn.rst: New file.
35         * doc/conf.py: New file.
36         * doc/copyright.rst: New file.
37         * doc/cuda-streams-usage.rst: New file.
38         * doc/enabling-openacc.rst: New file.
39         * doc/enabling-openmp.rst: New file.
40         * doc/first-invocation-nvidia-cublas-library-api.rst: New file.
41         * doc/first-invocation-openacc-library-api.rst: New file.
42         * doc/funding.rst: New file.
43         * doc/general-public-license-3.rst: New file.
44         * doc/gnu-free-documentation-license.rst: New file.
45         * doc/implementation-status-and-implementation-defined-behavior.rst: New file.
46         * doc/index.rst: New file.
47         * doc/indices-and-tables.rst: New file.
48         * doc/introduction.rst: New file.
49         * doc/memory-allocation-with-libmemkind.rst: New file.
50         * doc/nvptx.rst: New file.
51         * doc/offload-target-specifics.rst: New file.
52         * doc/openacc-environment-variables.rst: New file.
53         * doc/openacc-environment-variables/accdevicenum.rst: New file.
54         * doc/openacc-environment-variables/accdevicetype.rst: New file.
55         * doc/openacc-environment-variables/accproflib.rst: New file.
56         * doc/openacc-environment-variables/gccaccnotify.rst: New file.
57         * doc/openacc-introduction.rst: New file.
58         * doc/openacc-library-and-environment-variables.rst: New file.
59         * doc/openacc-library-interoperability.rst: New file.
60         * doc/openacc-profiling-interface.rst: New file.
61         * doc/openacc-runtime-library-routines.rst: New file.
62         * doc/openacc-runtime-library-routines/accasynctest.rst: New file.
63         * doc/openacc-runtime-library-routines/accasynctestall.rst: New file.
64         * doc/openacc-runtime-library-routines/accattach.rst: New file.
65         * doc/openacc-runtime-library-routines/acccopyin.rst: New file.
66         * doc/openacc-runtime-library-routines/acccopyout.rst: New file.
67         * doc/openacc-runtime-library-routines/acccreate.rst: New file.
68         * doc/openacc-runtime-library-routines/accdelete.rst: New file.
69         * doc/openacc-runtime-library-routines/accdetach.rst: New file.
70         * doc/openacc-runtime-library-routines/accdeviceptr.rst: New file.
71         * doc/openacc-runtime-library-routines/accfree.rst: New file.
72         * doc/openacc-runtime-library-routines/accgetcudastream.rst: New file.
73         * doc/openacc-runtime-library-routines/accgetcurrentcudacontext.rst: New file.
74         * doc/openacc-runtime-library-routines/accgetcurrentcudadevice.rst: New file.
75         * doc/openacc-runtime-library-routines/accgetdevicenum.rst: New file.
76         * doc/openacc-runtime-library-routines/accgetdevicetype.rst: New file.
77         * doc/openacc-runtime-library-routines/accgetnumdevices.rst: New file.
78         * doc/openacc-runtime-library-routines/accgetproperty.rst: New file.
79         * doc/openacc-runtime-library-routines/acchostptr.rst: New file.
80         * doc/openacc-runtime-library-routines/accinit.rst: New file.
81         * doc/openacc-runtime-library-routines/accispresent.rst: New file.
82         * doc/openacc-runtime-library-routines/accmalloc.rst: New file.
83         * doc/openacc-runtime-library-routines/accmapdata.rst: New file.
84         * doc/openacc-runtime-library-routines/accmemcpyfromdevice.rst: New file.
85         * doc/openacc-runtime-library-routines/accmemcpytodevice.rst: New file.
86         * doc/openacc-runtime-library-routines/accondevice.rst: New file.
87         * doc/openacc-runtime-library-routines/accpresentorcopyin.rst: New file.
88         * doc/openacc-runtime-library-routines/accpresentorcreate.rst: New file.
89         * doc/openacc-runtime-library-routines/accproflookup.rst: New file.
90         * doc/openacc-runtime-library-routines/accprofregister.rst: New file.
91         * doc/openacc-runtime-library-routines/accprofunregister.rst: New file.
92         * doc/openacc-runtime-library-routines/accregisterlibrary.rst: New file.
93         * doc/openacc-runtime-library-routines/accsetcudastream.rst: New file.
94         * doc/openacc-runtime-library-routines/accsetdevicenum.rst: New file.
95         * doc/openacc-runtime-library-routines/accsetdevicetype.rst: New file.
96         * doc/openacc-runtime-library-routines/accshutdown.rst: New file.
97         * doc/openacc-runtime-library-routines/accunmapdata.rst: New file.
98         * doc/openacc-runtime-library-routines/accupdatedevice.rst: New file.
99         * doc/openacc-runtime-library-routines/accupdateself.rst: New file.
100         * doc/openacc-runtime-library-routines/accwait.rst: New file.
101         * doc/openacc-runtime-library-routines/accwaitall.rst: New file.
102         * doc/openacc-runtime-library-routines/accwaitallasync.rst: New file.
103         * doc/openacc-runtime-library-routines/accwaitasync.rst: New file.
104         * doc/openmp-context-selectors.rst: New file.
105         * doc/openmp-environment-variables.rst: New file.
106         * doc/openmp-environment-variables/gompcpuaffinity.rst: New file.
107         * doc/openmp-environment-variables/gompdebug.rst: New file.
108         * doc/openmp-environment-variables/gomprtemsthreadpools.rst: New file.
109         * doc/openmp-environment-variables/gompspincount.rst: New file.
110         * doc/openmp-environment-variables/gompstacksize.rst: New file.
111         * doc/openmp-environment-variables/ompcancellation.rst: New file.
112         * doc/openmp-environment-variables/ompdefaultdevice.rst: New file.
113         * doc/openmp-environment-variables/ompdisplayenv.rst: New file.
114         * doc/openmp-environment-variables/ompdynamic.rst: New file.
115         * doc/openmp-environment-variables/ompmaxactivelevels.rst: New file.
116         * doc/openmp-environment-variables/ompmaxtaskpriority.rst: New file.
117         * doc/openmp-environment-variables/ompnested.rst: New file.
118         * doc/openmp-environment-variables/ompnumteams.rst: New file.
119         * doc/openmp-environment-variables/ompnumthreads.rst: New file.
120         * doc/openmp-environment-variables/ompplaces.rst: New file.
121         * doc/openmp-environment-variables/ompprocbind.rst: New file.
122         * doc/openmp-environment-variables/ompschedule.rst: New file.
123         * doc/openmp-environment-variables/ompstacksize.rst: New file.
124         * doc/openmp-environment-variables/omptargetoffload.rst: New file.
125         * doc/openmp-environment-variables/ompteamsthreadlimit.rst: New file.
126         * doc/openmp-environment-variables/ompthreadlimit.rst: New file.
127         * doc/openmp-environment-variables/ompwaitpolicy.rst: New file.
128         * doc/openmp-implementation-specifics.rst: New file.
129         * doc/openmp-implementation-status.rst: New file.
130         * doc/openmp-implementation-status/openmp-45.rst: New file.
131         * doc/openmp-implementation-status/openmp-50.rst: New file.
132         * doc/openmp-implementation-status/openmp-51.rst: New file.
133         * doc/openmp-implementation-status/openmp-52.rst: New file.
134         * doc/openmp-runtime-library-routines.rst: New file.
135         * doc/openmp-runtime-library-routines/ompdestroylock.rst: New file.
136         * doc/openmp-runtime-library-routines/ompdestroynestlock.rst: New file.
137         * doc/openmp-runtime-library-routines/ompfulfillevent.rst: New file.
138         * doc/openmp-runtime-library-routines/ompgetactivelevel.rst: New file.
139         * doc/openmp-runtime-library-routines/ompgetancestorthreadnum.rst: New file.
140         * doc/openmp-runtime-library-routines/ompgetcancellation.rst: New file.
141         * doc/openmp-runtime-library-routines/ompgetdefaultdevice.rst: New file.
142         * doc/openmp-runtime-library-routines/ompgetdevicenum.rst: New file.
143         * doc/openmp-runtime-library-routines/ompgetdynamic.rst: New file.
144         * doc/openmp-runtime-library-routines/ompgetinitialdevice.rst: New file.
145         * doc/openmp-runtime-library-routines/ompgetlevel.rst: New file.
146         * doc/openmp-runtime-library-routines/ompgetmaxactivelevels.rst: New file.
147         * doc/openmp-runtime-library-routines/ompgetmaxtaskpriority.rst: New file.
148         * doc/openmp-runtime-library-routines/ompgetmaxteams.rst: New file.
149         * doc/openmp-runtime-library-routines/ompgetmaxthreads.rst: New file.
150         * doc/openmp-runtime-library-routines/ompgetnested.rst: New file.
151         * doc/openmp-runtime-library-routines/ompgetnumdevices.rst: New file.
152         * doc/openmp-runtime-library-routines/ompgetnumprocs.rst: New file.
153         * doc/openmp-runtime-library-routines/ompgetnumteams.rst: New file.
154         * doc/openmp-runtime-library-routines/ompgetnumthreads.rst: New file.
155         * doc/openmp-runtime-library-routines/ompgetprocbind.rst: New file.
156         * doc/openmp-runtime-library-routines/ompgetschedule.rst: New file.
157         * doc/openmp-runtime-library-routines/ompgetsupportedactivelevels.rst: New file.
158         * doc/openmp-runtime-library-routines/ompgetteamnum.rst: New file.
159         * doc/openmp-runtime-library-routines/ompgetteamsize.rst: New file.
160         * doc/openmp-runtime-library-routines/ompgetteamsthreadlimit.rst: New file.
161         * doc/openmp-runtime-library-routines/ompgetthreadlimit.rst: New file.
162         * doc/openmp-runtime-library-routines/ompgetthreadnum.rst: New file.
163         * doc/openmp-runtime-library-routines/ompgetwtick.rst: New file.
164         * doc/openmp-runtime-library-routines/ompgetwtime.rst: New file.
165         * doc/openmp-runtime-library-routines/ompinfinal.rst: New file.
166         * doc/openmp-runtime-library-routines/ompinitlock.rst: New file.
167         * doc/openmp-runtime-library-routines/ompinitnestlock.rst: New file.
168         * doc/openmp-runtime-library-routines/ompinparallel.rst: New file.
169         * doc/openmp-runtime-library-routines/ompisinitialdevice.rst: New file.
170         * doc/openmp-runtime-library-routines/ompsetdefaultdevice.rst: New file.
171         * doc/openmp-runtime-library-routines/ompsetdynamic.rst: New file.
172         * doc/openmp-runtime-library-routines/ompsetlock.rst: New file.
173         * doc/openmp-runtime-library-routines/ompsetmaxactivelevels.rst: New file.
174         * doc/openmp-runtime-library-routines/ompsetnested.rst: New file.
175         * doc/openmp-runtime-library-routines/ompsetnestlock.rst: New file.
176         * doc/openmp-runtime-library-routines/ompsetnumteams.rst: New file.
177         * doc/openmp-runtime-library-routines/ompsetnumthreads.rst: New file.
178         * doc/openmp-runtime-library-routines/ompsetschedule.rst: New file.
179         * doc/openmp-runtime-library-routines/ompsetteamsthreadlimit.rst: New file.
180         * doc/openmp-runtime-library-routines/omptestlock.rst: New file.
181         * doc/openmp-runtime-library-routines/omptestnestlock.rst: New file.
182         * doc/openmp-runtime-library-routines/ompunsetlock.rst: New file.
183         * doc/openmp-runtime-library-routines/ompunsetnestlock.rst: New file.
184         * doc/reporting-bugs.rst: New file.
185         * doc/the-libgomp-abi.rst: New file.
186         * doc/the-libgomp-abi/implementing-atomic-construct.rst: New file.
187         * doc/the-libgomp-abi/implementing-barrier-construct.rst: New file.
188         * doc/the-libgomp-abi/implementing-critical-construct.rst: New file.
189         * doc/the-libgomp-abi/implementing-firstprivate-lastprivate-copyin-and-copyprivate-clauses.rst:
190         New file.
191         * doc/the-libgomp-abi/implementing-flush-construct.rst: New file.
192         * doc/the-libgomp-abi/implementing-for-construct.rst: New file.
193         * doc/the-libgomp-abi/implementing-master-construct.rst: New file.
194         * doc/the-libgomp-abi/implementing-openaccs-parallel-construct.rst: New file.
195         * doc/the-libgomp-abi/implementing-ordered-construct.rst: New file.
196         * doc/the-libgomp-abi/implementing-parallel-construct.rst: New file.
197         * doc/the-libgomp-abi/implementing-private-clause.rst: New file.
198         * doc/the-libgomp-abi/implementing-reduction-clause.rst: New file.
199         * doc/the-libgomp-abi/implementing-sections-construct.rst: New file.
200         * doc/the-libgomp-abi/implementing-single-construct.rst: New file.
201         * doc/the-libgomp-abi/implementing-threadprivate-construct.rst: New file.
203 2022-11-14  Martin Liska  <mliska@suse.cz>
205         Revert:
206         2022-11-14  Martin Liska  <mliska@suse.cz>
208         * Makefile.in: Support Sphinx based documentation.
210 2022-11-14  Martin Liska  <mliska@suse.cz>
212         Revert:
213         2022-11-14  Martin Liska  <mliska@suse.cz>
215         * libgomp.texi: Removed.
217 2022-11-14  Martin Liska  <mliska@suse.cz>
219         Revert:
220         2022-11-14  Martin Liska  <mliska@suse.cz>
222         * Makefile.in: Support --with-sphinx-build.
223         * configure.ac: Likewise..
224         * configure: Regenerate.
226 2022-11-14  Martin Liska  <mliska@suse.cz>
228         Revert:
229         2022-11-09  Martin Liska  <mliska@suse.cz>
231         * Makefile.in: Build info pages conditionally.
233 2022-11-14  Martin Liska  <mliska@suse.cz>
235         Revert:
236         2022-11-14  Martin Liska  <mliska@suse.cz>
238         * doc/amd-radeon-gcn.rst:
239         Add trailing newline.
240         * doc/copyright.rst:
241         Add trailing newline.
242         * doc/cuda-streams-usage.rst:
243         Add trailing newline.
244         * doc/enabling-openacc.rst:
245         Add trailing newline.
246         * doc/enabling-openmp.rst:
247         Add trailing newline.
248         * doc/first-invocation-nvidia-cublas-library-api.rst:
249         Add trailing newline.
250         * doc/first-invocation-openacc-library-api.rst:
251         Add trailing newline.
252         * doc/funding.rst:
253         Add trailing newline.
254         * doc/general-public-license-3.rst:
255         Add trailing newline.
256         * doc/gnu-free-documentation-license.rst:
257         Add trailing newline.
258         * doc/implementation-status-and-implementation-defined-behavior.rst:
259         Add trailing newline.
260         * doc/index.rst:
261         Add trailing newline.
262         * doc/indices-and-tables.rst:
263         Add trailing newline.
264         * doc/introduction.rst:
265         Add trailing newline.
266         * doc/memory-allocation-with-libmemkind.rst:
267         Add trailing newline.
268         * doc/nvptx.rst:
269         Add trailing newline.
270         * doc/offload-target-specifics.rst:
271         Add trailing newline.
272         * doc/openacc-environment-variables.rst:
273         Add trailing newline.
274         * doc/openacc-environment-variables/accdevicenum.rst:
275         Add trailing newline.
276         * doc/openacc-environment-variables/accdevicetype.rst:
277         Add trailing newline.
278         * doc/openacc-environment-variables/accproflib.rst:
279         Add trailing newline.
280         * doc/openacc-environment-variables/gccaccnotify.rst:
281         Add trailing newline.
282         * doc/openacc-introduction.rst:
283         Add trailing newline.
284         * doc/openacc-library-and-environment-variables.rst:
285         Add trailing newline.
286         * doc/openacc-library-interoperability.rst:
287         Add trailing newline.
288         * doc/openacc-profiling-interface.rst:
289         Add trailing newline.
290         * doc/openacc-runtime-library-routines.rst:
291         Add trailing newline.
292         * doc/openacc-runtime-library-routines/accasynctest.rst:
293         Add trailing newline.
294         * doc/openacc-runtime-library-routines/accasynctestall.rst:
295         Add trailing newline.
296         * doc/openacc-runtime-library-routines/accattach.rst:
297         Add trailing newline.
298         * doc/openacc-runtime-library-routines/acccopyin.rst:
299         Add trailing newline.
300         * doc/openacc-runtime-library-routines/acccopyout.rst:
301         Add trailing newline.
302         * doc/openacc-runtime-library-routines/acccreate.rst:
303         Add trailing newline.
304         * doc/openacc-runtime-library-routines/accdelete.rst:
305         Add trailing newline.
306         * doc/openacc-runtime-library-routines/accdetach.rst:
307         Add trailing newline.
308         * doc/openacc-runtime-library-routines/accdeviceptr.rst:
309         Add trailing newline.
310         * doc/openacc-runtime-library-routines/accfree.rst:
311         Add trailing newline.
312         * doc/openacc-runtime-library-routines/accgetcudastream.rst:
313         Add trailing newline.
314         * doc/openacc-runtime-library-routines/accgetcurrentcudacontext.rst:
315         Add trailing newline.
316         * doc/openacc-runtime-library-routines/accgetcurrentcudadevice.rst:
317         Add trailing newline.
318         * doc/openacc-runtime-library-routines/accgetdevicenum.rst:
319         Add trailing newline.
320         * doc/openacc-runtime-library-routines/accgetdevicetype.rst:
321         Add trailing newline.
322         * doc/openacc-runtime-library-routines/accgetnumdevices.rst:
323         Add trailing newline.
324         * doc/openacc-runtime-library-routines/accgetproperty.rst:
325         Add trailing newline.
326         * doc/openacc-runtime-library-routines/acchostptr.rst:
327         Add trailing newline.
328         * doc/openacc-runtime-library-routines/accinit.rst:
329         Add trailing newline.
330         * doc/openacc-runtime-library-routines/accispresent.rst:
331         Add trailing newline.
332         * doc/openacc-runtime-library-routines/accmalloc.rst:
333         Add trailing newline.
334         * doc/openacc-runtime-library-routines/accmapdata.rst:
335         Add trailing newline.
336         * doc/openacc-runtime-library-routines/accmemcpyfromdevice.rst:
337         Add trailing newline.
338         * doc/openacc-runtime-library-routines/accmemcpytodevice.rst:
339         Add trailing newline.
340         * doc/openacc-runtime-library-routines/accondevice.rst:
341         Add trailing newline.
342         * doc/openacc-runtime-library-routines/accpresentorcopyin.rst:
343         Add trailing newline.
344         * doc/openacc-runtime-library-routines/accpresentorcreate.rst:
345         Add trailing newline.
346         * doc/openacc-runtime-library-routines/accproflookup.rst:
347         Add trailing newline.
348         * doc/openacc-runtime-library-routines/accprofregister.rst:
349         Add trailing newline.
350         * doc/openacc-runtime-library-routines/accprofunregister.rst:
351         Add trailing newline.
352         * doc/openacc-runtime-library-routines/accregisterlibrary.rst:
353         Add trailing newline.
354         * doc/openacc-runtime-library-routines/accsetcudastream.rst:
355         Add trailing newline.
356         * doc/openacc-runtime-library-routines/accsetdevicenum.rst:
357         Add trailing newline.
358         * doc/openacc-runtime-library-routines/accsetdevicetype.rst:
359         Add trailing newline.
360         * doc/openacc-runtime-library-routines/accshutdown.rst:
361         Add trailing newline.
362         * doc/openacc-runtime-library-routines/accunmapdata.rst:
363         Add trailing newline.
364         * doc/openacc-runtime-library-routines/accupdatedevice.rst:
365         Add trailing newline.
366         * doc/openacc-runtime-library-routines/accupdateself.rst:
367         Add trailing newline.
368         * doc/openacc-runtime-library-routines/accwait.rst:
369         Add trailing newline.
370         * doc/openacc-runtime-library-routines/accwaitall.rst:
371         Add trailing newline.
372         * doc/openacc-runtime-library-routines/accwaitallasync.rst:
373         Add trailing newline.
374         * doc/openacc-runtime-library-routines/accwaitasync.rst:
375         Add trailing newline.
376         * doc/openmp-context-selectors.rst:
377         Add trailing newline.
378         * doc/openmp-environment-variables.rst:
379         Add trailing newline.
380         * doc/openmp-environment-variables/gompcpuaffinity.rst:
381         Add trailing newline.
382         * doc/openmp-environment-variables/gompdebug.rst:
383         Add trailing newline.
384         * doc/openmp-environment-variables/gomprtemsthreadpools.rst:
385         Add trailing newline.
386         * doc/openmp-environment-variables/gompspincount.rst:
387         Add trailing newline.
388         * doc/openmp-environment-variables/gompstacksize.rst:
389         Add trailing newline.
390         * doc/openmp-environment-variables/ompcancellation.rst:
391         Add trailing newline.
392         * doc/openmp-environment-variables/ompdefaultdevice.rst:
393         Add trailing newline.
394         * doc/openmp-environment-variables/ompdisplayenv.rst:
395         Add trailing newline.
396         * doc/openmp-environment-variables/ompdynamic.rst:
397         Add trailing newline.
398         * doc/openmp-environment-variables/ompmaxactivelevels.rst:
399         Add trailing newline.
400         * doc/openmp-environment-variables/ompmaxtaskpriority.rst:
401         Add trailing newline.
402         * doc/openmp-environment-variables/ompnested.rst:
403         Add trailing newline.
404         * doc/openmp-environment-variables/ompnumteams.rst:
405         Add trailing newline.
406         * doc/openmp-environment-variables/ompnumthreads.rst:
407         Add trailing newline.
408         * doc/openmp-environment-variables/ompplaces.rst:
409         Add trailing newline.
410         * doc/openmp-environment-variables/ompprocbind.rst:
411         Add trailing newline.
412         * doc/openmp-environment-variables/ompschedule.rst:
413         Add trailing newline.
414         * doc/openmp-environment-variables/ompstacksize.rst:
415         Add trailing newline.
416         * doc/openmp-environment-variables/omptargetoffload.rst:
417         Add trailing newline.
418         * doc/openmp-environment-variables/ompteamsthreadlimit.rst:
419         Add trailing newline.
420         * doc/openmp-environment-variables/ompthreadlimit.rst:
421         Add trailing newline.
422         * doc/openmp-environment-variables/ompwaitpolicy.rst:
423         Add trailing newline.
424         * doc/openmp-implementation-specifics.rst:
425         Add trailing newline.
426         * doc/openmp-implementation-status.rst:
427         Add trailing newline.
428         * doc/openmp-implementation-status/openmp-45.rst:
429         Add trailing newline.
430         * doc/openmp-implementation-status/openmp-50.rst:
431         Add trailing newline.
432         * doc/openmp-implementation-status/openmp-51.rst:
433         Add trailing newline.
434         * doc/openmp-implementation-status/openmp-52.rst:
435         Add trailing newline.
436         * doc/openmp-runtime-library-routines.rst:
437         Add trailing newline.
438         * doc/openmp-runtime-library-routines/ompdestroylock.rst:
439         Add trailing newline.
440         * doc/openmp-runtime-library-routines/ompdestroynestlock.rst:
441         Add trailing newline.
442         * doc/openmp-runtime-library-routines/ompfulfillevent.rst:
443         Add trailing newline.
444         * doc/openmp-runtime-library-routines/ompgetactivelevel.rst:
445         Add trailing newline.
446         * doc/openmp-runtime-library-routines/ompgetancestorthreadnum.rst:
447         Add trailing newline.
448         * doc/openmp-runtime-library-routines/ompgetcancellation.rst:
449         Add trailing newline.
450         * doc/openmp-runtime-library-routines/ompgetdefaultdevice.rst:
451         Add trailing newline.
452         * doc/openmp-runtime-library-routines/ompgetdevicenum.rst:
453         Add trailing newline.
454         * doc/openmp-runtime-library-routines/ompgetdynamic.rst:
455         Add trailing newline.
456         * doc/openmp-runtime-library-routines/ompgetinitialdevice.rst:
457         Add trailing newline.
458         * doc/openmp-runtime-library-routines/ompgetlevel.rst:
459         Add trailing newline.
460         * doc/openmp-runtime-library-routines/ompgetmaxactivelevels.rst:
461         Add trailing newline.
462         * doc/openmp-runtime-library-routines/ompgetmaxtaskpriority.rst:
463         Add trailing newline.
464         * doc/openmp-runtime-library-routines/ompgetmaxteams.rst:
465         Add trailing newline.
466         * doc/openmp-runtime-library-routines/ompgetmaxthreads.rst:
467         Add trailing newline.
468         * doc/openmp-runtime-library-routines/ompgetnested.rst:
469         Add trailing newline.
470         * doc/openmp-runtime-library-routines/ompgetnumdevices.rst:
471         Add trailing newline.
472         * doc/openmp-runtime-library-routines/ompgetnumprocs.rst:
473         Add trailing newline.
474         * doc/openmp-runtime-library-routines/ompgetnumteams.rst:
475         Add trailing newline.
476         * doc/openmp-runtime-library-routines/ompgetnumthreads.rst:
477         Add trailing newline.
478         * doc/openmp-runtime-library-routines/ompgetprocbind.rst:
479         Add trailing newline.
480         * doc/openmp-runtime-library-routines/ompgetschedule.rst:
481         Add trailing newline.
482         * doc/openmp-runtime-library-routines/ompgetsupportedactivelevels.rst:
483         Add trailing newline.
484         * doc/openmp-runtime-library-routines/ompgetteamnum.rst:
485         Add trailing newline.
486         * doc/openmp-runtime-library-routines/ompgetteamsize.rst:
487         Add trailing newline.
488         * doc/openmp-runtime-library-routines/ompgetteamsthreadlimit.rst:
489         Add trailing newline.
490         * doc/openmp-runtime-library-routines/ompgetthreadlimit.rst:
491         Add trailing newline.
492         * doc/openmp-runtime-library-routines/ompgetthreadnum.rst:
493         Add trailing newline.
494         * doc/openmp-runtime-library-routines/ompgetwtick.rst:
495         Add trailing newline.
496         * doc/openmp-runtime-library-routines/ompgetwtime.rst:
497         Add trailing newline.
498         * doc/openmp-runtime-library-routines/ompinfinal.rst:
499         Add trailing newline.
500         * doc/openmp-runtime-library-routines/ompinitlock.rst:
501         Add trailing newline.
502         * doc/openmp-runtime-library-routines/ompinitnestlock.rst:
503         Add trailing newline.
504         * doc/openmp-runtime-library-routines/ompinparallel.rst:
505         Add trailing newline.
506         * doc/openmp-runtime-library-routines/ompisinitialdevice.rst:
507         Add trailing newline.
508         * doc/openmp-runtime-library-routines/ompsetdefaultdevice.rst:
509         Add trailing newline.
510         * doc/openmp-runtime-library-routines/ompsetdynamic.rst:
511         Add trailing newline.
512         * doc/openmp-runtime-library-routines/ompsetlock.rst:
513         Add trailing newline.
514         * doc/openmp-runtime-library-routines/ompsetmaxactivelevels.rst:
515         Add trailing newline.
516         * doc/openmp-runtime-library-routines/ompsetnested.rst:
517         Add trailing newline.
518         * doc/openmp-runtime-library-routines/ompsetnestlock.rst:
519         Add trailing newline.
520         * doc/openmp-runtime-library-routines/ompsetnumteams.rst:
521         Add trailing newline.
522         * doc/openmp-runtime-library-routines/ompsetnumthreads.rst:
523         Add trailing newline.
524         * doc/openmp-runtime-library-routines/ompsetschedule.rst:
525         Add trailing newline.
526         * doc/openmp-runtime-library-routines/ompsetteamsthreadlimit.rst:
527         Add trailing newline.
528         * doc/openmp-runtime-library-routines/omptestlock.rst:
529         Add trailing newline.
530         * doc/openmp-runtime-library-routines/omptestnestlock.rst:
531         Add trailing newline.
532         * doc/openmp-runtime-library-routines/ompunsetlock.rst:
533         Add trailing newline.
534         * doc/openmp-runtime-library-routines/ompunsetnestlock.rst:
535         Add trailing newline.
536         * doc/reporting-bugs.rst:
537         Add trailing newline.
538         * doc/the-libgomp-abi.rst:
539         Add trailing newline.
540         * doc/the-libgomp-abi/implementing-atomic-construct.rst:
541         Add trailing newline.
542         * doc/the-libgomp-abi/implementing-barrier-construct.rst:
543         Add trailing newline.
544         * doc/the-libgomp-abi/implementing-critical-construct.rst:
545         Add trailing newline.
546         * doc/the-libgomp-abi/implementing-firstprivate-lastprivate-copyin-and-copyprivate-clauses.rst:
547         Add trailing newline.
548         * doc/the-libgomp-abi/implementing-flush-construct.rst:
549         Add trailing newline.
550         * doc/the-libgomp-abi/implementing-for-construct.rst:
551         Add trailing newline.
552         * doc/the-libgomp-abi/implementing-master-construct.rst:
553         Add trailing newline.
554         * doc/the-libgomp-abi/implementing-openaccs-parallel-construct.rst:
555         Add trailing newline.
556         * doc/the-libgomp-abi/implementing-ordered-construct.rst:
557         Add trailing newline.
558         * doc/the-libgomp-abi/implementing-parallel-construct.rst:
559         Add trailing newline.
560         * doc/the-libgomp-abi/implementing-private-clause.rst:
561         Add trailing newline.
562         * doc/the-libgomp-abi/implementing-reduction-clause.rst:
563         Add trailing newline.
564         * doc/the-libgomp-abi/implementing-sections-construct.rst:
565         Add trailing newline.
566         * doc/the-libgomp-abi/implementing-single-construct.rst:
567         Add trailing newline.
568         * doc/the-libgomp-abi/implementing-threadprivate-construct.rst:
569         Add trailing newline.
571 2022-11-14  Martin Liska  <mliska@suse.cz>
573         Revert:
574         2022-11-09  Martin Liska  <mliska@suse.cz>
576         * Makefile.in: Add missing HAS_SPHINX_BUILD.
578 2022-11-14  Martin Liska  <mliska@suse.cz>
580         Revert:
581         2022-11-14  Martin Liska  <mliska@suse.cz>
583         * doc/conf.py: Add newline at last line.
585 2022-11-14  Martin Liska  <mliska@suse.cz>
587         Revert:
588         2022-11-14  Martin Liska  <mliska@suse.cz>
590         PR other/107620
591         * configure: Regenerate.
592         * configure.ac: Always set sphinx-build.
594 2022-11-13  Martin Liska  <mliska@suse.cz>
596         PR other/107620
597         * configure: Regenerate.
598         * configure.ac: Always set sphinx-build.
600 2022-11-12  Jakub Jelinek  <jakub@redhat.com>
602         PR libgomp/107641
603         * env.c (parse_unsigned_long): Cast params[2] to uintptr_t rather than
604         unsigned long.  Change type of upper from unsigned to unsigned long.
606 2022-11-10  Martin Liska  <mliska@suse.cz>
608         * doc/conf.py: Add newline at last line.
610 2022-11-09  Martin Liska  <mliska@suse.cz>
612         * Makefile.in: Add missing HAS_SPHINX_BUILD.
614 2022-11-09  Martin Liska  <mliska@suse.cz>
616         * doc/amd-radeon-gcn.rst:
617         Add trailing newline.
618         * doc/copyright.rst:
619         Add trailing newline.
620         * doc/cuda-streams-usage.rst:
621         Add trailing newline.
622         * doc/enabling-openacc.rst:
623         Add trailing newline.
624         * doc/enabling-openmp.rst:
625         Add trailing newline.
626         * doc/first-invocation-nvidia-cublas-library-api.rst:
627         Add trailing newline.
628         * doc/first-invocation-openacc-library-api.rst:
629         Add trailing newline.
630         * doc/funding.rst:
631         Add trailing newline.
632         * doc/general-public-license-3.rst:
633         Add trailing newline.
634         * doc/gnu-free-documentation-license.rst:
635         Add trailing newline.
636         * doc/implementation-status-and-implementation-defined-behavior.rst:
637         Add trailing newline.
638         * doc/index.rst:
639         Add trailing newline.
640         * doc/indices-and-tables.rst:
641         Add trailing newline.
642         * doc/introduction.rst:
643         Add trailing newline.
644         * doc/memory-allocation-with-libmemkind.rst:
645         Add trailing newline.
646         * doc/nvptx.rst:
647         Add trailing newline.
648         * doc/offload-target-specifics.rst:
649         Add trailing newline.
650         * doc/openacc-environment-variables.rst:
651         Add trailing newline.
652         * doc/openacc-environment-variables/accdevicenum.rst:
653         Add trailing newline.
654         * doc/openacc-environment-variables/accdevicetype.rst:
655         Add trailing newline.
656         * doc/openacc-environment-variables/accproflib.rst:
657         Add trailing newline.
658         * doc/openacc-environment-variables/gccaccnotify.rst:
659         Add trailing newline.
660         * doc/openacc-introduction.rst:
661         Add trailing newline.
662         * doc/openacc-library-and-environment-variables.rst:
663         Add trailing newline.
664         * doc/openacc-library-interoperability.rst:
665         Add trailing newline.
666         * doc/openacc-profiling-interface.rst:
667         Add trailing newline.
668         * doc/openacc-runtime-library-routines.rst:
669         Add trailing newline.
670         * doc/openacc-runtime-library-routines/accasynctest.rst:
671         Add trailing newline.
672         * doc/openacc-runtime-library-routines/accasynctestall.rst:
673         Add trailing newline.
674         * doc/openacc-runtime-library-routines/accattach.rst:
675         Add trailing newline.
676         * doc/openacc-runtime-library-routines/acccopyin.rst:
677         Add trailing newline.
678         * doc/openacc-runtime-library-routines/acccopyout.rst:
679         Add trailing newline.
680         * doc/openacc-runtime-library-routines/acccreate.rst:
681         Add trailing newline.
682         * doc/openacc-runtime-library-routines/accdelete.rst:
683         Add trailing newline.
684         * doc/openacc-runtime-library-routines/accdetach.rst:
685         Add trailing newline.
686         * doc/openacc-runtime-library-routines/accdeviceptr.rst:
687         Add trailing newline.
688         * doc/openacc-runtime-library-routines/accfree.rst:
689         Add trailing newline.
690         * doc/openacc-runtime-library-routines/accgetcudastream.rst:
691         Add trailing newline.
692         * doc/openacc-runtime-library-routines/accgetcurrentcudacontext.rst:
693         Add trailing newline.
694         * doc/openacc-runtime-library-routines/accgetcurrentcudadevice.rst:
695         Add trailing newline.
696         * doc/openacc-runtime-library-routines/accgetdevicenum.rst:
697         Add trailing newline.
698         * doc/openacc-runtime-library-routines/accgetdevicetype.rst:
699         Add trailing newline.
700         * doc/openacc-runtime-library-routines/accgetnumdevices.rst:
701         Add trailing newline.
702         * doc/openacc-runtime-library-routines/accgetproperty.rst:
703         Add trailing newline.
704         * doc/openacc-runtime-library-routines/acchostptr.rst:
705         Add trailing newline.
706         * doc/openacc-runtime-library-routines/accinit.rst:
707         Add trailing newline.
708         * doc/openacc-runtime-library-routines/accispresent.rst:
709         Add trailing newline.
710         * doc/openacc-runtime-library-routines/accmalloc.rst:
711         Add trailing newline.
712         * doc/openacc-runtime-library-routines/accmapdata.rst:
713         Add trailing newline.
714         * doc/openacc-runtime-library-routines/accmemcpyfromdevice.rst:
715         Add trailing newline.
716         * doc/openacc-runtime-library-routines/accmemcpytodevice.rst:
717         Add trailing newline.
718         * doc/openacc-runtime-library-routines/accondevice.rst:
719         Add trailing newline.
720         * doc/openacc-runtime-library-routines/accpresentorcopyin.rst:
721         Add trailing newline.
722         * doc/openacc-runtime-library-routines/accpresentorcreate.rst:
723         Add trailing newline.
724         * doc/openacc-runtime-library-routines/accproflookup.rst:
725         Add trailing newline.
726         * doc/openacc-runtime-library-routines/accprofregister.rst:
727         Add trailing newline.
728         * doc/openacc-runtime-library-routines/accprofunregister.rst:
729         Add trailing newline.
730         * doc/openacc-runtime-library-routines/accregisterlibrary.rst:
731         Add trailing newline.
732         * doc/openacc-runtime-library-routines/accsetcudastream.rst:
733         Add trailing newline.
734         * doc/openacc-runtime-library-routines/accsetdevicenum.rst:
735         Add trailing newline.
736         * doc/openacc-runtime-library-routines/accsetdevicetype.rst:
737         Add trailing newline.
738         * doc/openacc-runtime-library-routines/accshutdown.rst:
739         Add trailing newline.
740         * doc/openacc-runtime-library-routines/accunmapdata.rst:
741         Add trailing newline.
742         * doc/openacc-runtime-library-routines/accupdatedevice.rst:
743         Add trailing newline.
744         * doc/openacc-runtime-library-routines/accupdateself.rst:
745         Add trailing newline.
746         * doc/openacc-runtime-library-routines/accwait.rst:
747         Add trailing newline.
748         * doc/openacc-runtime-library-routines/accwaitall.rst:
749         Add trailing newline.
750         * doc/openacc-runtime-library-routines/accwaitallasync.rst:
751         Add trailing newline.
752         * doc/openacc-runtime-library-routines/accwaitasync.rst:
753         Add trailing newline.
754         * doc/openmp-context-selectors.rst:
755         Add trailing newline.
756         * doc/openmp-environment-variables.rst:
757         Add trailing newline.
758         * doc/openmp-environment-variables/gompcpuaffinity.rst:
759         Add trailing newline.
760         * doc/openmp-environment-variables/gompdebug.rst:
761         Add trailing newline.
762         * doc/openmp-environment-variables/gomprtemsthreadpools.rst:
763         Add trailing newline.
764         * doc/openmp-environment-variables/gompspincount.rst:
765         Add trailing newline.
766         * doc/openmp-environment-variables/gompstacksize.rst:
767         Add trailing newline.
768         * doc/openmp-environment-variables/ompcancellation.rst:
769         Add trailing newline.
770         * doc/openmp-environment-variables/ompdefaultdevice.rst:
771         Add trailing newline.
772         * doc/openmp-environment-variables/ompdisplayenv.rst:
773         Add trailing newline.
774         * doc/openmp-environment-variables/ompdynamic.rst:
775         Add trailing newline.
776         * doc/openmp-environment-variables/ompmaxactivelevels.rst:
777         Add trailing newline.
778         * doc/openmp-environment-variables/ompmaxtaskpriority.rst:
779         Add trailing newline.
780         * doc/openmp-environment-variables/ompnested.rst:
781         Add trailing newline.
782         * doc/openmp-environment-variables/ompnumteams.rst:
783         Add trailing newline.
784         * doc/openmp-environment-variables/ompnumthreads.rst:
785         Add trailing newline.
786         * doc/openmp-environment-variables/ompplaces.rst:
787         Add trailing newline.
788         * doc/openmp-environment-variables/ompprocbind.rst:
789         Add trailing newline.
790         * doc/openmp-environment-variables/ompschedule.rst:
791         Add trailing newline.
792         * doc/openmp-environment-variables/ompstacksize.rst:
793         Add trailing newline.
794         * doc/openmp-environment-variables/omptargetoffload.rst:
795         Add trailing newline.
796         * doc/openmp-environment-variables/ompteamsthreadlimit.rst:
797         Add trailing newline.
798         * doc/openmp-environment-variables/ompthreadlimit.rst:
799         Add trailing newline.
800         * doc/openmp-environment-variables/ompwaitpolicy.rst:
801         Add trailing newline.
802         * doc/openmp-implementation-specifics.rst:
803         Add trailing newline.
804         * doc/openmp-implementation-status.rst:
805         Add trailing newline.
806         * doc/openmp-implementation-status/openmp-45.rst:
807         Add trailing newline.
808         * doc/openmp-implementation-status/openmp-50.rst:
809         Add trailing newline.
810         * doc/openmp-implementation-status/openmp-51.rst:
811         Add trailing newline.
812         * doc/openmp-implementation-status/openmp-52.rst:
813         Add trailing newline.
814         * doc/openmp-runtime-library-routines.rst:
815         Add trailing newline.
816         * doc/openmp-runtime-library-routines/ompdestroylock.rst:
817         Add trailing newline.
818         * doc/openmp-runtime-library-routines/ompdestroynestlock.rst:
819         Add trailing newline.
820         * doc/openmp-runtime-library-routines/ompfulfillevent.rst:
821         Add trailing newline.
822         * doc/openmp-runtime-library-routines/ompgetactivelevel.rst:
823         Add trailing newline.
824         * doc/openmp-runtime-library-routines/ompgetancestorthreadnum.rst:
825         Add trailing newline.
826         * doc/openmp-runtime-library-routines/ompgetcancellation.rst:
827         Add trailing newline.
828         * doc/openmp-runtime-library-routines/ompgetdefaultdevice.rst:
829         Add trailing newline.
830         * doc/openmp-runtime-library-routines/ompgetdevicenum.rst:
831         Add trailing newline.
832         * doc/openmp-runtime-library-routines/ompgetdynamic.rst:
833         Add trailing newline.
834         * doc/openmp-runtime-library-routines/ompgetinitialdevice.rst:
835         Add trailing newline.
836         * doc/openmp-runtime-library-routines/ompgetlevel.rst:
837         Add trailing newline.
838         * doc/openmp-runtime-library-routines/ompgetmaxactivelevels.rst:
839         Add trailing newline.
840         * doc/openmp-runtime-library-routines/ompgetmaxtaskpriority.rst:
841         Add trailing newline.
842         * doc/openmp-runtime-library-routines/ompgetmaxteams.rst:
843         Add trailing newline.
844         * doc/openmp-runtime-library-routines/ompgetmaxthreads.rst:
845         Add trailing newline.
846         * doc/openmp-runtime-library-routines/ompgetnested.rst:
847         Add trailing newline.
848         * doc/openmp-runtime-library-routines/ompgetnumdevices.rst:
849         Add trailing newline.
850         * doc/openmp-runtime-library-routines/ompgetnumprocs.rst:
851         Add trailing newline.
852         * doc/openmp-runtime-library-routines/ompgetnumteams.rst:
853         Add trailing newline.
854         * doc/openmp-runtime-library-routines/ompgetnumthreads.rst:
855         Add trailing newline.
856         * doc/openmp-runtime-library-routines/ompgetprocbind.rst:
857         Add trailing newline.
858         * doc/openmp-runtime-library-routines/ompgetschedule.rst:
859         Add trailing newline.
860         * doc/openmp-runtime-library-routines/ompgetsupportedactivelevels.rst:
861         Add trailing newline.
862         * doc/openmp-runtime-library-routines/ompgetteamnum.rst:
863         Add trailing newline.
864         * doc/openmp-runtime-library-routines/ompgetteamsize.rst:
865         Add trailing newline.
866         * doc/openmp-runtime-library-routines/ompgetteamsthreadlimit.rst:
867         Add trailing newline.
868         * doc/openmp-runtime-library-routines/ompgetthreadlimit.rst:
869         Add trailing newline.
870         * doc/openmp-runtime-library-routines/ompgetthreadnum.rst:
871         Add trailing newline.
872         * doc/openmp-runtime-library-routines/ompgetwtick.rst:
873         Add trailing newline.
874         * doc/openmp-runtime-library-routines/ompgetwtime.rst:
875         Add trailing newline.
876         * doc/openmp-runtime-library-routines/ompinfinal.rst:
877         Add trailing newline.
878         * doc/openmp-runtime-library-routines/ompinitlock.rst:
879         Add trailing newline.
880         * doc/openmp-runtime-library-routines/ompinitnestlock.rst:
881         Add trailing newline.
882         * doc/openmp-runtime-library-routines/ompinparallel.rst:
883         Add trailing newline.
884         * doc/openmp-runtime-library-routines/ompisinitialdevice.rst:
885         Add trailing newline.
886         * doc/openmp-runtime-library-routines/ompsetdefaultdevice.rst:
887         Add trailing newline.
888         * doc/openmp-runtime-library-routines/ompsetdynamic.rst:
889         Add trailing newline.
890         * doc/openmp-runtime-library-routines/ompsetlock.rst:
891         Add trailing newline.
892         * doc/openmp-runtime-library-routines/ompsetmaxactivelevels.rst:
893         Add trailing newline.
894         * doc/openmp-runtime-library-routines/ompsetnested.rst:
895         Add trailing newline.
896         * doc/openmp-runtime-library-routines/ompsetnestlock.rst:
897         Add trailing newline.
898         * doc/openmp-runtime-library-routines/ompsetnumteams.rst:
899         Add trailing newline.
900         * doc/openmp-runtime-library-routines/ompsetnumthreads.rst:
901         Add trailing newline.
902         * doc/openmp-runtime-library-routines/ompsetschedule.rst:
903         Add trailing newline.
904         * doc/openmp-runtime-library-routines/ompsetteamsthreadlimit.rst:
905         Add trailing newline.
906         * doc/openmp-runtime-library-routines/omptestlock.rst:
907         Add trailing newline.
908         * doc/openmp-runtime-library-routines/omptestnestlock.rst:
909         Add trailing newline.
910         * doc/openmp-runtime-library-routines/ompunsetlock.rst:
911         Add trailing newline.
912         * doc/openmp-runtime-library-routines/ompunsetnestlock.rst:
913         Add trailing newline.
914         * doc/reporting-bugs.rst:
915         Add trailing newline.
916         * doc/the-libgomp-abi.rst:
917         Add trailing newline.
918         * doc/the-libgomp-abi/implementing-atomic-construct.rst:
919         Add trailing newline.
920         * doc/the-libgomp-abi/implementing-barrier-construct.rst:
921         Add trailing newline.
922         * doc/the-libgomp-abi/implementing-critical-construct.rst:
923         Add trailing newline.
924         * doc/the-libgomp-abi/implementing-firstprivate-lastprivate-copyin-and-copyprivate-clauses.rst:
925         Add trailing newline.
926         * doc/the-libgomp-abi/implementing-flush-construct.rst:
927         Add trailing newline.
928         * doc/the-libgomp-abi/implementing-for-construct.rst:
929         Add trailing newline.
930         * doc/the-libgomp-abi/implementing-master-construct.rst:
931         Add trailing newline.
932         * doc/the-libgomp-abi/implementing-openaccs-parallel-construct.rst:
933         Add trailing newline.
934         * doc/the-libgomp-abi/implementing-ordered-construct.rst:
935         Add trailing newline.
936         * doc/the-libgomp-abi/implementing-parallel-construct.rst:
937         Add trailing newline.
938         * doc/the-libgomp-abi/implementing-private-clause.rst:
939         Add trailing newline.
940         * doc/the-libgomp-abi/implementing-reduction-clause.rst:
941         Add trailing newline.
942         * doc/the-libgomp-abi/implementing-sections-construct.rst:
943         Add trailing newline.
944         * doc/the-libgomp-abi/implementing-single-construct.rst:
945         Add trailing newline.
946         * doc/the-libgomp-abi/implementing-threadprivate-construct.rst:
947         Add trailing newline.
949 2022-11-09  Martin Liska  <mliska@suse.cz>
951         * Makefile.in: Build info pages conditionally.
953 2022-11-09  Martin Liska  <mliska@suse.cz>
955         * Makefile.in: Support --with-sphinx-build.
956         * configure.ac: Likewise..
957         * configure: Regenerate.
959 2022-11-09  Martin Liska  <mliska@suse.cz>
961         * libgomp.texi: Removed.
963 2022-11-09  Martin Liska  <mliska@suse.cz>
965         * Makefile.in: Support Sphinx based documentation.
967 2022-11-09  Martin Liska  <mliska@suse.cz>
969         * doc/amd-radeon-gcn.rst: New file.
970         * doc/conf.py: New file.
971         * doc/copyright.rst: New file.
972         * doc/cuda-streams-usage.rst: New file.
973         * doc/enabling-openacc.rst: New file.
974         * doc/enabling-openmp.rst: New file.
975         * doc/first-invocation-nvidia-cublas-library-api.rst: New file.
976         * doc/first-invocation-openacc-library-api.rst: New file.
977         * doc/funding.rst: New file.
978         * doc/general-public-license-3.rst: New file.
979         * doc/gnu-free-documentation-license.rst: New file.
980         * doc/implementation-status-and-implementation-defined-behavior.rst: New file.
981         * doc/index.rst: New file.
982         * doc/indices-and-tables.rst: New file.
983         * doc/introduction.rst: New file.
984         * doc/memory-allocation-with-libmemkind.rst: New file.
985         * doc/nvptx.rst: New file.
986         * doc/offload-target-specifics.rst: New file.
987         * doc/openacc-environment-variables.rst: New file.
988         * doc/openacc-environment-variables/accdevicenum.rst: New file.
989         * doc/openacc-environment-variables/accdevicetype.rst: New file.
990         * doc/openacc-environment-variables/accproflib.rst: New file.
991         * doc/openacc-environment-variables/gccaccnotify.rst: New file.
992         * doc/openacc-introduction.rst: New file.
993         * doc/openacc-library-and-environment-variables.rst: New file.
994         * doc/openacc-library-interoperability.rst: New file.
995         * doc/openacc-profiling-interface.rst: New file.
996         * doc/openacc-runtime-library-routines.rst: New file.
997         * doc/openacc-runtime-library-routines/accasynctest.rst: New file.
998         * doc/openacc-runtime-library-routines/accasynctestall.rst: New file.
999         * doc/openacc-runtime-library-routines/accattach.rst: New file.
1000         * doc/openacc-runtime-library-routines/acccopyin.rst: New file.
1001         * doc/openacc-runtime-library-routines/acccopyout.rst: New file.
1002         * doc/openacc-runtime-library-routines/acccreate.rst: New file.
1003         * doc/openacc-runtime-library-routines/accdelete.rst: New file.
1004         * doc/openacc-runtime-library-routines/accdetach.rst: New file.
1005         * doc/openacc-runtime-library-routines/accdeviceptr.rst: New file.
1006         * doc/openacc-runtime-library-routines/accfree.rst: New file.
1007         * doc/openacc-runtime-library-routines/accgetcudastream.rst: New file.
1008         * doc/openacc-runtime-library-routines/accgetcurrentcudacontext.rst: New file.
1009         * doc/openacc-runtime-library-routines/accgetcurrentcudadevice.rst: New file.
1010         * doc/openacc-runtime-library-routines/accgetdevicenum.rst: New file.
1011         * doc/openacc-runtime-library-routines/accgetdevicetype.rst: New file.
1012         * doc/openacc-runtime-library-routines/accgetnumdevices.rst: New file.
1013         * doc/openacc-runtime-library-routines/accgetproperty.rst: New file.
1014         * doc/openacc-runtime-library-routines/acchostptr.rst: New file.
1015         * doc/openacc-runtime-library-routines/accinit.rst: New file.
1016         * doc/openacc-runtime-library-routines/accispresent.rst: New file.
1017         * doc/openacc-runtime-library-routines/accmalloc.rst: New file.
1018         * doc/openacc-runtime-library-routines/accmapdata.rst: New file.
1019         * doc/openacc-runtime-library-routines/accmemcpyfromdevice.rst: New file.
1020         * doc/openacc-runtime-library-routines/accmemcpytodevice.rst: New file.
1021         * doc/openacc-runtime-library-routines/accondevice.rst: New file.
1022         * doc/openacc-runtime-library-routines/accpresentorcopyin.rst: New file.
1023         * doc/openacc-runtime-library-routines/accpresentorcreate.rst: New file.
1024         * doc/openacc-runtime-library-routines/accproflookup.rst: New file.
1025         * doc/openacc-runtime-library-routines/accprofregister.rst: New file.
1026         * doc/openacc-runtime-library-routines/accprofunregister.rst: New file.
1027         * doc/openacc-runtime-library-routines/accregisterlibrary.rst: New file.
1028         * doc/openacc-runtime-library-routines/accsetcudastream.rst: New file.
1029         * doc/openacc-runtime-library-routines/accsetdevicenum.rst: New file.
1030         * doc/openacc-runtime-library-routines/accsetdevicetype.rst: New file.
1031         * doc/openacc-runtime-library-routines/accshutdown.rst: New file.
1032         * doc/openacc-runtime-library-routines/accunmapdata.rst: New file.
1033         * doc/openacc-runtime-library-routines/accupdatedevice.rst: New file.
1034         * doc/openacc-runtime-library-routines/accupdateself.rst: New file.
1035         * doc/openacc-runtime-library-routines/accwait.rst: New file.
1036         * doc/openacc-runtime-library-routines/accwaitall.rst: New file.
1037         * doc/openacc-runtime-library-routines/accwaitallasync.rst: New file.
1038         * doc/openacc-runtime-library-routines/accwaitasync.rst: New file.
1039         * doc/openmp-context-selectors.rst: New file.
1040         * doc/openmp-environment-variables.rst: New file.
1041         * doc/openmp-environment-variables/gompcpuaffinity.rst: New file.
1042         * doc/openmp-environment-variables/gompdebug.rst: New file.
1043         * doc/openmp-environment-variables/gomprtemsthreadpools.rst: New file.
1044         * doc/openmp-environment-variables/gompspincount.rst: New file.
1045         * doc/openmp-environment-variables/gompstacksize.rst: New file.
1046         * doc/openmp-environment-variables/ompcancellation.rst: New file.
1047         * doc/openmp-environment-variables/ompdefaultdevice.rst: New file.
1048         * doc/openmp-environment-variables/ompdisplayenv.rst: New file.
1049         * doc/openmp-environment-variables/ompdynamic.rst: New file.
1050         * doc/openmp-environment-variables/ompmaxactivelevels.rst: New file.
1051         * doc/openmp-environment-variables/ompmaxtaskpriority.rst: New file.
1052         * doc/openmp-environment-variables/ompnested.rst: New file.
1053         * doc/openmp-environment-variables/ompnumteams.rst: New file.
1054         * doc/openmp-environment-variables/ompnumthreads.rst: New file.
1055         * doc/openmp-environment-variables/ompplaces.rst: New file.
1056         * doc/openmp-environment-variables/ompprocbind.rst: New file.
1057         * doc/openmp-environment-variables/ompschedule.rst: New file.
1058         * doc/openmp-environment-variables/ompstacksize.rst: New file.
1059         * doc/openmp-environment-variables/omptargetoffload.rst: New file.
1060         * doc/openmp-environment-variables/ompteamsthreadlimit.rst: New file.
1061         * doc/openmp-environment-variables/ompthreadlimit.rst: New file.
1062         * doc/openmp-environment-variables/ompwaitpolicy.rst: New file.
1063         * doc/openmp-implementation-specifics.rst: New file.
1064         * doc/openmp-implementation-status.rst: New file.
1065         * doc/openmp-implementation-status/openmp-45.rst: New file.
1066         * doc/openmp-implementation-status/openmp-50.rst: New file.
1067         * doc/openmp-implementation-status/openmp-51.rst: New file.
1068         * doc/openmp-implementation-status/openmp-52.rst: New file.
1069         * doc/openmp-runtime-library-routines.rst: New file.
1070         * doc/openmp-runtime-library-routines/ompdestroylock.rst: New file.
1071         * doc/openmp-runtime-library-routines/ompdestroynestlock.rst: New file.
1072         * doc/openmp-runtime-library-routines/ompfulfillevent.rst: New file.
1073         * doc/openmp-runtime-library-routines/ompgetactivelevel.rst: New file.
1074         * doc/openmp-runtime-library-routines/ompgetancestorthreadnum.rst: New file.
1075         * doc/openmp-runtime-library-routines/ompgetcancellation.rst: New file.
1076         * doc/openmp-runtime-library-routines/ompgetdefaultdevice.rst: New file.
1077         * doc/openmp-runtime-library-routines/ompgetdevicenum.rst: New file.
1078         * doc/openmp-runtime-library-routines/ompgetdynamic.rst: New file.
1079         * doc/openmp-runtime-library-routines/ompgetinitialdevice.rst: New file.
1080         * doc/openmp-runtime-library-routines/ompgetlevel.rst: New file.
1081         * doc/openmp-runtime-library-routines/ompgetmaxactivelevels.rst: New file.
1082         * doc/openmp-runtime-library-routines/ompgetmaxtaskpriority.rst: New file.
1083         * doc/openmp-runtime-library-routines/ompgetmaxteams.rst: New file.
1084         * doc/openmp-runtime-library-routines/ompgetmaxthreads.rst: New file.
1085         * doc/openmp-runtime-library-routines/ompgetnested.rst: New file.
1086         * doc/openmp-runtime-library-routines/ompgetnumdevices.rst: New file.
1087         * doc/openmp-runtime-library-routines/ompgetnumprocs.rst: New file.
1088         * doc/openmp-runtime-library-routines/ompgetnumteams.rst: New file.
1089         * doc/openmp-runtime-library-routines/ompgetnumthreads.rst: New file.
1090         * doc/openmp-runtime-library-routines/ompgetprocbind.rst: New file.
1091         * doc/openmp-runtime-library-routines/ompgetschedule.rst: New file.
1092         * doc/openmp-runtime-library-routines/ompgetsupportedactivelevels.rst: New file.
1093         * doc/openmp-runtime-library-routines/ompgetteamnum.rst: New file.
1094         * doc/openmp-runtime-library-routines/ompgetteamsize.rst: New file.
1095         * doc/openmp-runtime-library-routines/ompgetteamsthreadlimit.rst: New file.
1096         * doc/openmp-runtime-library-routines/ompgetthreadlimit.rst: New file.
1097         * doc/openmp-runtime-library-routines/ompgetthreadnum.rst: New file.
1098         * doc/openmp-runtime-library-routines/ompgetwtick.rst: New file.
1099         * doc/openmp-runtime-library-routines/ompgetwtime.rst: New file.
1100         * doc/openmp-runtime-library-routines/ompinfinal.rst: New file.
1101         * doc/openmp-runtime-library-routines/ompinitlock.rst: New file.
1102         * doc/openmp-runtime-library-routines/ompinitnestlock.rst: New file.
1103         * doc/openmp-runtime-library-routines/ompinparallel.rst: New file.
1104         * doc/openmp-runtime-library-routines/ompisinitialdevice.rst: New file.
1105         * doc/openmp-runtime-library-routines/ompsetdefaultdevice.rst: New file.
1106         * doc/openmp-runtime-library-routines/ompsetdynamic.rst: New file.
1107         * doc/openmp-runtime-library-routines/ompsetlock.rst: New file.
1108         * doc/openmp-runtime-library-routines/ompsetmaxactivelevels.rst: New file.
1109         * doc/openmp-runtime-library-routines/ompsetnested.rst: New file.
1110         * doc/openmp-runtime-library-routines/ompsetnestlock.rst: New file.
1111         * doc/openmp-runtime-library-routines/ompsetnumteams.rst: New file.
1112         * doc/openmp-runtime-library-routines/ompsetnumthreads.rst: New file.
1113         * doc/openmp-runtime-library-routines/ompsetschedule.rst: New file.
1114         * doc/openmp-runtime-library-routines/ompsetteamsthreadlimit.rst: New file.
1115         * doc/openmp-runtime-library-routines/omptestlock.rst: New file.
1116         * doc/openmp-runtime-library-routines/omptestnestlock.rst: New file.
1117         * doc/openmp-runtime-library-routines/ompunsetlock.rst: New file.
1118         * doc/openmp-runtime-library-routines/ompunsetnestlock.rst: New file.
1119         * doc/reporting-bugs.rst: New file.
1120         * doc/the-libgomp-abi.rst: New file.
1121         * doc/the-libgomp-abi/implementing-atomic-construct.rst: New file.
1122         * doc/the-libgomp-abi/implementing-barrier-construct.rst: New file.
1123         * doc/the-libgomp-abi/implementing-critical-construct.rst: New file.
1124         * doc/the-libgomp-abi/implementing-firstprivate-lastprivate-copyin-and-copyprivate-clauses.rst:
1125         New file.
1126         * doc/the-libgomp-abi/implementing-flush-construct.rst: New file.
1127         * doc/the-libgomp-abi/implementing-for-construct.rst: New file.
1128         * doc/the-libgomp-abi/implementing-master-construct.rst: New file.
1129         * doc/the-libgomp-abi/implementing-openaccs-parallel-construct.rst: New file.
1130         * doc/the-libgomp-abi/implementing-ordered-construct.rst: New file.
1131         * doc/the-libgomp-abi/implementing-parallel-construct.rst: New file.
1132         * doc/the-libgomp-abi/implementing-private-clause.rst: New file.
1133         * doc/the-libgomp-abi/implementing-reduction-clause.rst: New file.
1134         * doc/the-libgomp-abi/implementing-sections-construct.rst: New file.
1135         * doc/the-libgomp-abi/implementing-single-construct.rst: New file.
1136         * doc/the-libgomp-abi/implementing-threadprivate-construct.rst: New file.
1138 2022-11-04  Thomas Schwinge  <thomas@codesourcery.com>
1140         * libgomp-plugin.h (OFFLOAD_TARGET_TYPE_INTEL_MIC): Remove.
1141         * libgomp.texi (OpenMP Context Selectors): Remove Intel MIC
1142         documentation.
1143         * plugin/configfrag.ac <enable_offload_targets>
1144         [*-intelmic-* | *-intelmicemul-*]: Remove.
1145         * configure: Regenerate.
1146         * testsuite/lib/libgomp.exp (libgomp_init): Remove 'liboffloadmic'
1147         handling.
1148         (offload_target_to_openacc_device_type)
1149         [$offload_target = *-intelmic*]: Remove.
1150         (check_effective_target_offload_device_intel_mic)
1151         (check_effective_target_offload_device_any_intel_mic): Remove.
1152         * testsuite/libgomp.c-c++-common/on_device_arch.h
1153         (device_arch_intel_mic, on_device_arch_intel_mic, any_device_arch)
1154         (any_device_arch_intel_mic): Remove.
1155         * testsuite/libgomp.c-c++-common/target-45.c: Remove
1156         'offload_device_any_intel_mic' XFAIL.
1157         * testsuite/libgomp.fortran/target10.f90: Likewise.
1159 2022-11-03  Tobias Burnus  <tobias@codesourcery.com>
1161         * testsuite/libgomp.fortran/target-11.f90: New test.
1162         * testsuite/libgomp.fortran/target-13.f90: New test.
1164 2022-11-02  Thomas Schwinge  <thomas@codesourcery.com>
1166         PR libgomp/106643
1167         PR fortran/96668
1168         * oacc-mem.c (goacc_enter_data_internal): Support
1169         OpenACC 'declare create' with Fortran allocatable arrays, part II.
1170         * testsuite/libgomp.oacc-fortran/declare-allocatable-array_descriptor-1-directive.f90:
1171         Adjust.
1172         * testsuite/libgomp.oacc-fortran/pr106643-1.f90: New.
1174 2022-11-02  Thomas Schwinge  <thomas@codesourcery.com>
1176         PR libgomp/106643
1177         * oacc-mem.c (goacc_enter_data_internal): Support
1178         OpenACC 'declare create' with Fortran allocatable arrays, part I.
1179         * testsuite/libgomp.oacc-fortran/declare-allocatable-1-directive.f90:
1180         New.
1181         * testsuite/libgomp.oacc-fortran/declare-allocatable-array_descriptor-1-directive.f90:
1182         New.
1184 2022-11-02  Thomas Schwinge  <thomas@codesourcery.com>
1186         * testsuite/libgomp.oacc-fortran/declare-allocatable-array_descriptor-1-runtime.f90:
1187         New.
1189 2022-11-02  Thomas Schwinge  <thomas@codesourcery.com>
1191         * testsuite/libgomp.oacc-fortran/declare-allocatable-1-runtime.f90:
1192         New.
1194 2022-11-02  Cesar Philippidis  <cesar@codesourcery.com>
1195             Thomas Schwinge  <thomas@codesourcery.com>
1197         * testsuite/libgomp.oacc-fortran/declare-allocatable-1.f90: New.
1199 2022-10-28  Julian Brown  <julian@codesourcery.com>
1200             Thomas Schwinge  <thomas@codesourcery.com>
1202         PR middle-end/90115
1203         * testsuite/libgomp.oacc-fortran/declare-1.f90: Adjust scan output.
1204         * testsuite/libgomp.oacc-fortran/host_data-5.F90: Likewise.
1205         * testsuite/libgomp.oacc-fortran/if-1.f90: Likewise.
1206         * testsuite/libgomp.oacc-fortran/print-1.f90: Likewise.
1207         * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Likewise.
1209 2022-10-24  Thomas Schwinge  <thomas@codesourcery.com>
1211         * plugin/plugin-nvptx.c (nvptx_open_device): Initialize
1212         'ptx_dev->rev_data'.
1214 2022-10-24  Tobias Burnus  <tobias@codesourcery.com>
1216         * config/nvptx/icv-device.c (GOMP_DEVICE_NUM_VAR): Remove
1217         'static' for this variable.
1218         * config/nvptx/libgomp-nvptx.h: New file.
1219         * config/nvptx/target.c: Include it.
1220         (GOMP_ADDITIONAL_ICVS): Declare extern var.
1221         (GOMP_REV_OFFLOAD_VAR): Declare var.
1222         (GOMP_target_ext): Handle reverse offload.
1223         * libgomp-plugin.h (GOMP_PLUGIN_target_rev): New prototype.
1224         * libgomp-plugin.c (GOMP_PLUGIN_target_rev): New, call ...
1225         * target.c (gomp_target_rev): ... this new stub function.
1226         * libgomp.h (gomp_target_rev): Declare.
1227         * libgomp.map (GOMP_PLUGIN_1.4): New; add GOMP_PLUGIN_target_rev.
1228         * plugin/cuda-lib.def (cuMemHostAlloc): Add.
1229         * plugin/plugin-nvptx.c: Include libgomp-nvptx.h.
1230         (struct ptx_device): Add rev_data member.
1231         (nvptx_open_device): Remove async_engines query, last used in
1232         r10-304-g1f4c5b9b; add unified-address assert check.
1233         (GOMP_OFFLOAD_get_num_devices): Claim unified address
1234         support.
1235         (GOMP_OFFLOAD_load_image): Free rev_fn_table if no
1236         offload functions exist. Make offload var available
1237         on host and device.
1238         (rev_off_dev_to_host_cpy, rev_off_host_to_dev_cpy): New.
1239         (GOMP_OFFLOAD_run): Handle reverse offload.
1241 2022-10-21  Thomas Schwinge  <thomas@codesourcery.com>
1243         PR tree-optimization/107195
1244         PR target/107344
1245         * testsuite/libgomp.oacc-c-c++-common/nvptx-sese-1.c: Restore SESE
1246         regions checking.
1248 2022-10-20  Tobias Burnus  <tobias@codesourcery.com>
1250         * testsuite/lib/libgomp.exp (check_effective_target_offload_device_gcn):
1251         New.
1252         * testsuite/libgomp.c-c++-common/on_device_arch.h (device_arch_gcn,
1253         on_device_arch_gcn): New.
1254         * testsuite/libgomp.c-c++-common/requires-4a.c: New test; copied from
1255         requires-4.c but using heap-allocated memory.
1257 2022-10-20  Thomas Schwinge  <thomas@codesourcery.com>
1259         PR target/105421
1260         * testsuite/libgomp.oacc-c-c++-common/private-big-1.c: New.
1262 2022-10-17  Thomas Schwinge  <thomas@codesourcery.com>
1264         * testsuite/libgomp.c/reverse-offload-sm30.c: Fix nvptx-specific
1265         '-foffload-options' syntax.
1267 2022-10-13  Tobias Burnus  <tobias@codesourcery.com>
1269         * testsuite/libgomp.fortran/task-7.f90: New test.
1270         * testsuite/libgomp.fortran/task-8.f90: New test.
1271         * testsuite/libgomp.fortran/task-in-explicit-1.f90: New test.
1272         * testsuite/libgomp.fortran/task-in-explicit-2.f90: New test.
1273         * testsuite/libgomp.fortran/task-in-explicit-3.f90: New test.
1274         * testsuite/libgomp.fortran/task-reduction-17.f90: New test.
1275         * testsuite/libgomp.fortran/task-reduction-18.f90: New test.
1277 2022-10-12  Jakub Jelinek  <jakub@redhat.com>
1279         * libgomp.texi (OpenMP 5.2): Fix up allocator -> allocate directive
1280         in deprecation bullet.
1282 2022-10-12  Jakub Jelinek  <jakub@redhat.com>
1284         * omp.h.in (omp_in_explicit_task): Declare.
1285         * omp_lib.h.in (omp_in_explicit_task): Likewise.
1286         * omp_lib.f90.in (omp_in_explicit_task): New interface.
1287         * libgomp.map (OMP_5.2): New symbol version, export
1288         omp_in_explicit_task and omp_in_explicit_task_.
1289         * task.c (omp_in_explicit_task): New function.
1290         * fortran.c (omp_in_explicit_task): Add ialias_redirect.
1291         (omp_in_explicit_task_): New function.
1292         * libgomp.texi (OpenMP 5.2): Mark omp_in_explicit_task as implemented.
1293         * testsuite/libgomp.c-c++-common/task-in-explicit-1.c: New test.
1294         * testsuite/libgomp.c-c++-common/task-in-explicit-2.c: New test.
1295         * testsuite/libgomp.c-c++-common/task-in-explicit-3.c: New test.
1297 2022-10-12  Jakub Jelinek  <jakub@redhat.com>
1299         * task.c (gomp_create_artificial_team): Fix up handling of invocations
1300         from within explicit task.
1301         * target.c (GOMP_target_ext): Likewise.
1302         * testsuite/libgomp.c/task-7.c: New test.
1303         * testsuite/libgomp.c/task-8.c: New test.
1304         * testsuite/libgomp.c-c++-common/task-reduction-17.c: New test.
1305         * testsuite/libgomp.c-c++-common/task-reduction-18.c: New test.
1307 2022-10-12  Martin Liska  <mliska@suse.cz>
1309         * configure: Regenerate.
1311 2022-10-11  Olivier Hainque  <hainque@adacore.com>
1312             Olivier Hainque  <hainque@adacore.com>
1314         * configure: Regenerate.
1316 2022-10-05  Tobias Burnus  <tobias@codesourcery.com>
1318         * libgomp.texi (OpenMP 5.1 Impl. Status): Mark 'assume' as 'Y'.
1320 2022-10-04  Jakub Jelinek  <jakub@redhat.com>
1322         * libgomp.texi (Support begin/end declare target syntax in C/C++):
1323         Mark as implemented.
1325 2022-09-30  Tobias Burnus  <tobias@codesourcery.com>
1327         PR fortran/105318
1328         * testsuite/libgomp.fortran/is_device_ptr-2.f90: New test.
1330 2022-09-28  Tobias Burnus  <tobias@codesourcery.com>
1332         * libgomp.texi (OpenMP 5.1): Mark 'assume' as implemented
1333         for C/C++. Remove duplicated 'begin declare target' entry.
1335 2022-09-24  Jakub Jelinek  <jakub@redhat.com>
1337         PR c/106981
1338         * testsuite/libgomp.c-c++-common/pr106981.c: New test.
1340 2022-09-14  Julian Brown  <julian@codesourcery.com>
1342         * testsuite/libgomp.oacc-c-c++-common/deep-copy-15.c: New test.
1343         * testsuite/libgomp.oacc-c-c++-common/deep-copy-16.c: New test.
1344         * testsuite/libgomp.oacc-c++/deep-copy-17.C: New test.
1345         * testsuite/libgomp.oacc-c-c++-common/deep-copy-arrayofstruct.c: Move
1346         test to here, make "run" test.
1348 2022-09-13  Jakub Jelinek  <jakub@redhat.com>
1350         PR libgomp/106906
1351         * env.c (get_icv_member_addr): Cast false to void * before assigning
1352         it to icv_addr[1], and comment the whole assignment out.
1354 2022-09-13  Tobias Burnus  <tobias@codesourcery.com>
1356         * libgomp.texi (gcn): Move misplaced -march=sm_30 remark to ...
1357         (nvptx): ... here.
1359 2022-09-12  Tobias Burnus  <tobias@codesourcery.com>
1361         * libgomp.texi (Offload-Target Specifics: nvptx): Document
1362         that reverse offload requires >= -march=sm_35.
1363         * testsuite/libgomp.c-c++-common/requires-4.c: Build for nvptx
1364         with -misa=sm_35.
1365         * testsuite/libgomp.c-c++-common/requires-5.c: Likewise.
1366         * testsuite/libgomp.c-c++-common/requires-6.c: Likewise.
1367         * testsuite/libgomp.c-c++-common/reverse-offload-1.c: Likewise.
1368         * testsuite/libgomp.fortran/reverse-offload-1.f90: Likewise.
1369         * testsuite/libgomp.c/reverse-offload-sm30.c: New test.
1371 2022-09-12  Tobias Burnus  <tobias@codesourcery.com>
1373         * libgomp.texi (OpenMP 5.1 Impl. Status): Add two new minor items.
1374         (OpenMP 5.2 Impl. Status): Improve omp/omx/ompx wording.
1376 2022-09-12  Jakub Jelinek  <jakub@redhat.com>
1378         PR libgomp/106894
1379         * testsuite/libgomp.c-c++-common/icv-6.c: Include string.h.
1380         (main): Avoid tests for which corresponding non-_ALL suffixed variable
1381         is in the environment, or for OMP_NUM_TEAMS on the device
1382         OMP_NUM_TEAMS_DEV_?.
1384 2022-09-10  Iain Sandoe  <iain@sandoe.co.uk>
1386         * env.c (initialize_env): Include libiberty environ.h.
1388 2022-09-09  Tobias Burnus  <tobias@codesourcery.com>
1390         * plugin/plugin-nvptx.c (GOMP_OFFLOAD_load_image): Read offload
1391         function address table '$offload_func_table' if rev_fn_table
1392         is not NULL.
1394 2022-09-09  Tobias Burnus  <tobias@codesourcery.com>
1396         * plugin/plugin-gcn.c (GOMP_OFFLOAD_load_image): Read
1397         .offload_func_table to populate rev_fn_table when requested.
1399 2022-09-09  Tobias Burnus  <tobias@codesourcery.com>
1401         * libgomp-plugin.h (GOMP_OFFLOAD_load_image): Add
1402         'uint64_t **rev_fn_table' argument.
1403         * oacc-host.c (host_load_image): Likewise.
1404         * plugin/plugin-gcn.c (GOMP_OFFLOAD_load_image): Likewise;
1405         currently unused.
1406         * plugin/plugin-nvptx.c (GOMP_OFFLOAD_load_image): Likewise.
1407         * target.c (gomp_load_image_to_device): Update call but pass
1408         NULL for now.
1410 2022-09-09  Jakub Jelinek  <jakub@redhat.com>
1412         PR libgomp/106894
1413         * env.c (initialize_env) <case PARSE_BIND>: Use char ** instead of
1414         char * for dest[1] initialization from params[1].  Formatting fixes.
1416 2022-09-08  Tobias Burnus  <tobias@codesourcery.com>
1418         PR fortran/106670
1419         * libgomp.texi (OpenMP 5.2): Add comment to ompx/omx entry.
1421 2022-09-08  Tobias Burnus  <tobias@codesourcery.com>
1423         * libgomp.texi (OpenMP-Implementation Specifics): New; add libmemkind
1424         section; move OpenMP Context Selectors from ...
1425         (Offload-Target Specifics): ... here; add 'AMD Radeo (GCN)' and
1426         'nvptx' sections.
1428 2022-09-08  Marcel Vollweiler  <marcel@codesourcery.com>
1430         * config/gcn/icv-device.c (omp_get_default_device): Return device-
1431         specific ICV.
1432         (omp_get_max_teams): Added for GCN devices.
1433         (omp_set_num_teams): Likewise.
1434         (ialias): Likewise.
1435         * config/nvptx/icv-device.c (omp_get_default_device): Return device-
1436         specific ICV.
1437         (omp_get_max_teams): Added for NVPTX devices.
1438         (omp_set_num_teams): Likewise.
1439         (ialias): Likewise.
1440         * env.c (struct gomp_icv_list): New struct to store entries of initial
1441         ICV values.
1442         (struct gomp_offload_icv_list): New struct to store entries of device-
1443         specific ICV values that are copied to the device and back.
1444         (struct gomp_default_icv_values): New struct to store default values of
1445         ICVs according to the OpenMP standard.
1446         (parse_schedule): Generalized for different variants of OMP_SCHEDULE.
1447         (print_env_var_error): Function that prints an error for invalid values
1448         for ICVs.
1449         (parse_unsigned_long_1): Removed getenv.  Generalized.
1450         (parse_unsigned_long): Likewise.
1451         (parse_int_1): Likewise.
1452         (parse_int): Likewise.
1453         (parse_int_secure): Likewise.
1454         (parse_unsigned_long_list): Likewise.
1455         (parse_target_offload): Likewise.
1456         (parse_bind_var): Likewise.
1457         (parse_stacksize): Likewise.
1458         (parse_boolean): Likewise.
1459         (parse_wait_policy): Likewise.
1460         (parse_allocator): Likewise.
1461         (omp_display_env): Extended to output different variants of environment
1462         variables.
1463         (print_schedule): New helper function for omp_display_env which prints
1464         the values of run_sched_var.
1465         (print_proc_bind): New helper function for omp_display_env which prints
1466         the values of proc_bind_var.
1467         (enum gomp_parse_type): Collection of types used for parsing environment
1468         variables.
1469         (ENTRY): Preprocess string lengths of environment variables.
1470         (OMP_VAR_CNT): Preprocess table size.
1471         (OMP_HOST_VAR_CNT): Likewise.
1472         (INT_MAX_STR_LEN): Constant for the maximal number of digits of a device
1473         number.
1474         (gomp_get_icv_flag): Returns if a flag for a particular ICV is set.
1475         (gomp_set_icv_flag): Sets a flag for a particular ICV.
1476         (print_device_specific_icvs): New helper function for omp_display_env to
1477         print device specific ICV values.
1478         (get_device_num): New helper function for parse_device_specific.
1479         Extracts the device number from an environment variable name.
1480         (get_icv_member_addr): Gets the memory address for a particular member
1481         of an ICV struct.
1482         (gomp_get_initial_icv_item): Get a list item of gomp_initial_icv_list.
1483         (initialize_icvs): New function to initialize a gomp_initial_icvs
1484         struct.
1485         (add_initial_icv_to_list): Adds an ICV struct to gomp_initial_icv_list.
1486         (startswith): Checks if a string starts with a given prefix.
1487         (initialize_env): Extended to parse the new syntax of environment
1488         variables.
1489         * icv-device.c (omp_get_max_teams): Added.
1490         (ialias): Likewise.
1491         (omp_set_num_teams): Likewise.
1492         * icv.c (omp_set_num_teams): Moved to icv-device.c.
1493         (omp_get_max_teams): Likewise.
1494         (ialias): Likewise.
1495         * libgomp-plugin.h (GOMP_DEVICE_NUM_VAR): Removed.
1496         (GOMP_ADDITIONAL_ICVS): New target-side struct that
1497         holds the designated ICVs of the target device.
1498         * libgomp.h (enum gomp_icvs): Collection of ICVs.
1499         (enum gomp_device_num): Definition of device numbers for _ALL, _DEV, and
1500         no suffix.
1501         (enum gomp_env_suffix): Collection of possible suffixes of environment
1502         variables.
1503         (struct gomp_initial_icvs): Contains all ICVs for which we need to store
1504         initial values.
1505         (struct gomp_default_icv):New struct to hold ICVs for which we need
1506         to store initial values.
1507         (struct gomp_icv_list): Definition of a linked list that is used for
1508         storing ICVs for the devices and also for _DEV, _ALL, and without
1509         suffix.
1510         (struct gomp_offload_icvs): New struct to hold ICVs that are copied to
1511         a device.
1512         (struct gomp_offload_icv_list): Definition of a linked list that holds
1513         device-specific ICVs that are copied to devices.
1514         (gomp_get_initial_icv_item): Get a list item of gomp_initial_icv_list.
1515         (gomp_get_icv_flag): Returns if a flag for a particular ICV is set.
1516         * libgomp.texi: Updated.
1517         * plugin/plugin-gcn.c (GOMP_OFFLOAD_load_image): Extended to read
1518         further ICVs from the offload image.
1519         * plugin/plugin-nvptx.c (GOMP_OFFLOAD_load_image): Likewise.
1520         * target.c (gomp_get_offload_icv_item): Get a list item of
1521         gomp_offload_icv_list.
1522         (get_gomp_offload_icvs): New. Returns the ICV values
1523         depending on the device num and the variable hierarchy.
1524         (gomp_load_image_to_device): Extended to copy further ICVs to a device.
1525         * testsuite/libgomp.c-c++-common/icv-5.c: New test.
1526         * testsuite/libgomp.c-c++-common/icv-6.c: New test.
1527         * testsuite/libgomp.c-c++-common/icv-7.c: New test.
1528         * testsuite/libgomp.c-c++-common/icv-8.c: New test.
1529         * testsuite/libgomp.c-c++-common/omp-display-env-1.c: New test.
1530         * testsuite/libgomp.c-c++-common/omp-display-env-2.c: New test.
1532 2022-09-08  Jakub Jelinek  <jakub@redhat.com>
1534         * libgomp.texi (OpenMP 5.2): Mention that omp_cur_iteration is now
1535         fully supported.
1536         * testsuite/libgomp.c/doacross-4.c: New test.
1537         * testsuite/libgomp.c/doacross-5.c: New test.
1538         * testsuite/libgomp.c/doacross-6.c: New test.
1539         * testsuite/libgomp.c/doacross-7.c: New test.
1541 2022-09-05  Tobias Burnus  <tobias@codesourcery.com>
1543         * libgomp.texi (OpenMP 5.2): Update doacross/omp_cur_iteration status.
1545 2022-08-26  Tobias Burnus  <tobias@codesourcery.com>
1547         * libgomp.texi (OpenMP 5.0): Mark 'ancestor' as implemented but
1548         refer to 'requires'.
1549         * testsuite/libgomp.c-c++-common/reverse-offload-1-aux.c: New test.
1550         * testsuite/libgomp.c-c++-common/reverse-offload-1.c: New test.
1551         * testsuite/libgomp.fortran/reverse-offload-1-aux.f90: New test.
1552         * testsuite/libgomp.fortran/reverse-offload-1.f90: New test.
1554 2022-08-17  Tobias Burnus  <tobias@codesourcery.com>
1556         PR middle-end/106548
1557         * testsuite/libgomp.c/linear-2.c: New test.
1559 2022-08-17  Tobias Burnus  <tobias@codesourcery.com>
1561         * splay-tree.h: Fix splay_* macro unsetting if
1562         splay_tree_prefix is defined.
1564 2022-07-29  Tobias Burnus  <tobias@codesourcery.com>
1566         * testsuite/libgomp.c-c++-common/pr106449-2.c: New test.
1568 2022-07-29  Jakub Jelinek  <jakub@redhat.com>
1570         PR middle-end/106449
1571         * testsuite/libgomp.c-c++-common/pr106449.c: New test.
1573 2022-07-12  Tobias Burnus  <tobias@codesourcery.com>
1575         * target.c (gomp_target_init): Added tailing '\n' to gomp_debug.
1577 2022-07-12  Thomas Schwinge  <thomas@codesourcery.com>
1579         PR middle-end/101551
1580         * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: XFAIL
1581         'offloading_enabled' diagnostics issue.
1583 2022-07-11  Thomas Schwinge  <thomas@codesourcery.com>
1585         * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Enhance
1586         '_Pragma' diagnostics verification.
1588 2022-07-10  Lewis Hyatt  <lhyatt@gmail.com>
1590         * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Adapt for
1591         improved warning locations.
1592         * testsuite/libgomp.oacc-c-c++-common/vred2d-128.c: Likewise.
1594 2022-07-08  Thomas Schwinge  <thomas@codesourcery.com>
1596         * testsuite/libgomp.c-c++-common/requires-1.c: Add 'dg-note's.
1597         * testsuite/libgomp.c-c++-common/requires-2.c: Likewise.
1598         * testsuite/libgomp.c-c++-common/requires-3.c: Likewise.
1599         * testsuite/libgomp.c-c++-common/requires-7.c: Likewise.
1600         * testsuite/libgomp.fortran/requires-1.f90: Likewise.
1602 2022-07-07  Thomas Schwinge  <thomas@codesourcery.com>
1604         * target.c (GOMP_offload_register, GOMP_offload_unregister):
1605         Denote as legacy entry points.
1606         * testsuite/lib/libgomp.exp
1607         (check_effective_target_offload_target_any): New proc.
1608         * testsuite/libgomp.c-c++-common/requires-1.c: Enable for
1609         'offload_target_any'.
1610         * testsuite/libgomp.c-c++-common/requires-3.c: Likewise.
1611         * testsuite/libgomp.c-c++-common/requires-7.c: Likewise.
1612         * testsuite/libgomp.fortran/requires-1.f90: Likewise.
1614 2022-07-07  Thomas Schwinge  <thomas@codesourcery.com>
1616         * testsuite/libgomp.c-c++-common/requires-4.c: Enhance testing.
1617         * testsuite/libgomp.c-c++-common/requires-5.c: Likewise.
1619 2022-07-07  Thomas Schwinge  <thomas@codesourcery.com>
1621         * testsuite/libgomp.c-c++-common/requires-3.c: Adjust.
1623 2022-07-06  Thomas Schwinge  <thomas@codesourcery.com>
1625         * target.c (GOMP_offload_register_ver): Clarify 'target_data' ->
1626         'data'.
1627         (GOMP_offload_unregister_ver): Likewise.  Fix up 'target_data'.
1629 2022-07-04  Tobias Burnus  <tobias@codesourcery.com>
1630             Jakub Jelinek  <jakub@redhat.com>
1632         * libgomp.texi (OpenMP 5.2): Mark linear-clause change as 'Y'.
1634 2022-07-04  Tobias Burnus  <tobias@codesourcery.com>
1635             Chung-Lin Tang  <cltang@codesourcery.com>
1636             Thomas Schwinge  <thomas@codesourcery.com>
1638         * libgomp-plugin.h (GOMP_OFFLOAD_get_num_devices): Add
1639         omp_requires_mask arg.
1640         * plugin/plugin-gcn.c (GOMP_OFFLOAD_get_num_devices): Likewise;
1641         return -1 when device available but omp_requires_mask != 0.
1642         * plugin/plugin-nvptx.c (GOMP_OFFLOAD_get_num_devices): Likewise.
1643         * oacc-host.c (host_get_num_devices, host_openacc_get_property):
1644         Update call.
1645         * oacc-init.c (resolve_device, acc_init_1, acc_shutdown_1,
1646         goacc_attach_host_thread_to_device, acc_get_num_devices,
1647         acc_set_device_num, get_property_any): Likewise.
1648         * target.c (omp_requires_mask): New global var.
1649         (gomp_requires_to_name): New.
1650         (GOMP_offload_register_ver): Handle passed omp_requires_mask.
1651         (gomp_target_init): Handle omp_requires_mask.
1652         * libgomp.texi (OpenMP 5.0): Update requires impl. status.
1653         (OpenMP 5.1): Add a missed item.
1654         (OpenMP 5.2): Mark linear-clause change as supported in C/C++.
1655         * testsuite/libgomp.c-c++-common/requires-1-aux.c: New test.
1656         * testsuite/libgomp.c-c++-common/requires-1.c: New test.
1657         * testsuite/libgomp.c-c++-common/requires-2-aux.c: New test.
1658         * testsuite/libgomp.c-c++-common/requires-2.c: New test.
1659         * testsuite/libgomp.c-c++-common/requires-3-aux.c: New test.
1660         * testsuite/libgomp.c-c++-common/requires-3.c: New test.
1661         * testsuite/libgomp.c-c++-common/requires-4-aux.c: New test.
1662         * testsuite/libgomp.c-c++-common/requires-4.c: New test.
1663         * testsuite/libgomp.c-c++-common/requires-5-aux.c: New test.
1664         * testsuite/libgomp.c-c++-common/requires-5.c: New test.
1665         * testsuite/libgomp.c-c++-common/requires-6.c: New test.
1666         * testsuite/libgomp.c-c++-common/requires-7-aux.c: New test.
1667         * testsuite/libgomp.c-c++-common/requires-7.c: New test.
1668         * testsuite/libgomp.fortran/requires-1-aux.f90: New test.
1669         * testsuite/libgomp.fortran/requires-1.f90: New test.
1671 2022-07-01  Tobias Burnus  <tobias@codesourcery.com>
1673         * libgomp.texi (OpenMP 5.2): Mark target enter/exit data
1674         with fromto as implemented.
1676 2022-06-28  Martin Liska  <mliska@suse.cz>
1678         * acinclude.m4: Fix typo in mold linker detection.
1679         * Makefile.in: Regenerate.
1680         * configure: Regenerate.
1682 2022-06-21  Jakub Jelinek  <jakub@redhat.com>
1683             Paul Iannetta  <piannetta@kalrayinc.com>
1685         PR libgomp/106045
1686         * testsuite/libgomp.c/target-31.c: Add private (i) clause.
1688 2022-06-17  Martin Liska  <mliska@suse.cz>
1690         * libgomp.texi: Add table header for new features of
1691         OpenMP 5.2.
1693 2022-06-15  Jakub Jelinek  <jakub@redhat.com>
1695         * testsuite/libgomp.c-c++-common/get-mapped-ptr-1.c (main): Initialize
1696         q to ddress of an automatic variable.  Use -5 instead of -1 in
1697         omp_get_mapped_ptr call.  Add test with omp_initial_device.
1698         * testsuite/libgomp.fortran/get-mapped-ptr-1.f90 (main): Use -5 instead
1699         of -1 in omp_get_mapped_ptr call.  Add test with omp_initial_device.
1700         Renumber stop arguments afterwards.
1702 2022-06-13  Jakub Jelinek  <jakub@redhat.com>
1704         * omp.h.in (omp_initial_device, omp_invalid_device): New enumerators.
1705         * omp_lib.f90.in (omp_initial_device, omp_invalid_device): New
1706         parameters.
1707         * omp_lib.h.in (omp_initial_device, omp_invalid_device): Likewise.
1708         * target.c (resolve_device): Add remapped argument, handle
1709         GOMP_DEVICE_ICV only if remapped is true (and clear remapped),
1710         for negative values, treat GOMP_DEVICE_FALLBACK as fallback only
1711         if remapped, otherwise treat omp_initial_device that way.  For
1712         omp_invalid_device, always emit gomp_fatal, even when
1713         OMP_TARGET_OFFLOAD isn't mandatory.
1714         (GOMP_target, GOMP_target_ext, GOMP_target_data, GOMP_target_data_ext,
1715         GOMP_target_update, GOMP_target_update_ext,
1716         GOMP_target_enter_exit_data): Pass true as remapped argument to
1717         resolve_device.
1718         (omp_target_alloc, omp_target_free, omp_target_is_present,
1719         omp_target_memcpy_check, omp_target_associate_ptr,
1720         omp_target_disassociate_ptr, omp_get_mapped_ptr,
1721         omp_target_is_accessible): Pass false as remapped argument to
1722         resolve_device.  Treat omp_initial_device the same as
1723         gomp_get_num_devices ().  Don't bypass resolve_device calls if
1724         device_num is negative.
1725         (omp_pause_resource): Treat omp_initial_device the same as
1726         gomp_get_num_devices ().  Call resolve_device.
1727         * icv-device.c (omp_set_default_device): Always set to device_num
1728         even when it is negative.
1729         * libgomp.texi: Document that Conforming device numbers,
1730         omp_initial_device and omp_invalid_device is implemented.
1731         * testsuite/libgomp.c/target-41.c (main): Add test with
1732         omp_initial_device.
1733         * testsuite/libgomp.c/target-45.c: New test.
1734         * testsuite/libgomp.c/target-46.c: New test.
1735         * testsuite/libgomp.c/target-47.c: New test.
1736         * testsuite/libgomp.c-c++-common/target-is-accessible-1.c (main): Add
1737         test with omp_initial_device.  Use -5 instead of -1 for negative value
1738         test.
1739         * testsuite/libgomp.fortran/target-is-accessible-1.f90 (main):
1740         Likewise.  Reorder stop numbers.
1742 2022-06-10  Jakub Jelinek  <jakub@redhat.com>
1744         * allocator.c (gomp_init_memkind): Call dlopen with "libmemkind.so.0"
1745         rather than "libmemkind.so".
1747 2022-06-10  Thomas Schwinge  <thomas@codesourcery.com>
1749         * plugin/Makefrag.am: Evaluate 'if PLUGIN_NVPTX_DYNAMIC' to true.
1750         * plugin/configfrag.ac (--with-cuda-driver)
1751         (--with-cuda-driver-include, --with-cuda-driver-lib)
1752         (CUDA_DRIVER_INCLUDE, CUDA_DRIVER_LIB, PLUGIN_NVPTX_CPPFLAGS)
1753         (PLUGIN_NVPTX_LDFLAGS, PLUGIN_NVPTX_LIBS, PLUGIN_NVPTX_DYNAMIC):
1754         Remove.
1755         * testsuite/libgomp-test-support.exp.in (cuda_driver_include)
1756         (cuda_driver_lib): Remove.
1757         * testsuite/lib/libgomp.exp (libgomp_init): Don't consider these.
1758         * Makefile.in: Regenerate.
1759         * configure: Likewise.
1760         * testsuite/Makefile.in: Likewise.
1762 2022-06-09  Jakub Jelinek  <jakub@redhat.com>
1764         * config/linux/allocator.c: Fix up #include directive.
1766 2022-06-09  Jakub Jelinek  <jakub@redhat.com>
1768         * allocator.c: Include dlfcn.h if LIBGOMP_USE_MEMKIND is defined.
1769         (enum gomp_memkind_kind): New type.
1770         (struct omp_allocator_data): Add memkind field if LIBGOMP_USE_MEMKIND
1771         is defined.
1772         (struct gomp_memkind_data): New type.
1773         (memkind_data, memkind_data_once): New variables.
1774         (gomp_init_memkind, gomp_get_memkind): New functions.
1775         (omp_init_allocator): Initialize data.memkind, don't fail for
1776         omp_high_bw_mem_space if libmemkind supports it.
1777         (omp_aligned_alloc, omp_free, omp_aligned_calloc, omp_realloc): Add
1778         memkind support of LIBGOMP_USE_MEMKIND is defined.
1779         * config/linux/allocator.c: New file.
1781 2022-06-03  Tobias Burnus  <tobias@codesourcery.com>
1783         * libgomp.texi (OpenMP 5.2): Mark scope w/ firstprivate/allocate as Y.
1784         * testsuite/libgomp.fortran/scope-2.f90: New test.
1786 2022-06-02  David Malcolm  <dmalcolm@redhat.com>
1788         * testsuite/lib/libgomp.exp: Add load_gcc_lib of scansarif.exp.
1790 2022-05-31  Jakub Jelinek  <jakub@redhat.com>
1792         * testsuite/libgomp.c-c++-common/allocate-1.c (foo): Add testcase for
1793         scope construct with allocate clause.
1794         * testsuite/libgomp.c-c++-common/allocate-3.c (foo): Likewise.
1795         * testsuite/libgomp.c-c++-common/scope-2.c: New test.
1797 2022-05-28  Tobias Burnus  <tobias@codesourcery.com>
1799         * libgomp.texi (OpenMP 5.2): Mark 'enter' clause as supported.
1800         * testsuite/libgomp.fortran/declare-target-1.f90: Extend to test
1801         explicit 'to' and 'enter' clause.
1802         * testsuite/libgomp.fortran/declare-target-2.f90: Update accordingly.
1804 2022-05-28  Jakub Jelinek  <jakub@redhat.com>
1806         PR libgomp/105745
1807         * libgomp.h (GOMP_HAVE_EFFICIENT_ALIGNED_ALLOC): Don't define for
1808         defined(HAVE__ALIGNED_MALLOC) case.
1809         * alloc.c (gomp_aligned_alloc): Move defined(HAVE__ALIGNED_MALLOC)
1810         handling as last option before fallback instead of first.
1811         (gomp_aligned_free): For defined(HAVE__ALIGNED_MALLOC) call
1812         _aligned_free.
1814 2022-05-27  Jakub Jelinek  <jakub@redhat.com>
1816         * testsuite/libgomp.c-c++-common/target-40.c: Modify some existing to
1817         clauses to enter.
1818         * testsuite/libgomp.c/target-41.c: Likewise.
1820 2022-05-27  Tobias Burnus  <tobias@codesourcery.com>
1822         * libgomp.texi (Other new OpenMP 5.1 features): Add
1823         'begin declare target'.
1824         (Other new OpenMP 5.2 features): New.
1826 2022-05-25  Jakub Jelinek  <jakub@redhat.com>
1828         * task.c (gomp_task_run_post_handle_dependers): If empty_task
1829         is the last task taskwait depend depends on, wake it up.
1830         Similarly if it is the last child of a taskgroup, use atomic
1831         store instead of decrement and awak taskgroup wait if any.
1832         * testsuite/libgomp.c-c++-common/taskwait-depend-nowait-2.c: New test.
1834 2022-05-24  Andrew Stubbs  <ams@codesourcery.com>
1836         * plugin/plugin-gcn.c (EF_AMDGPU_MACH): Add
1837         EF_AMDGPU_MACH_AMDGCN_GFX90a.
1838         (gcn_gfx90a_s): New.
1839         (isa_hsa_name): Support gfx90a.
1840         (isa_code): Likewise.
1842 2022-05-24  Tobias Burnus  <tobias@codesourcery.com>
1844         PR c/105378
1845         * libgomp.texi (OpenMP 5.1): Set 'taskwait nowait' to 'Y'.
1846         * testsuite/libgomp.fortran/taskwait-depend-nowait-1.f90: New.
1848 2022-05-24  Jakub Jelinek  <jakub@redhat.com>
1850         PR c/105378
1851         * libgomp_g.h (GOMP_taskwait_depend_nowait): Declare.
1852         * libgomp.map (GOMP_taskwait_depend_nowait): Export at GOMP_5.1.1.
1853         * task.c (empty_task): New function.
1854         (gomp_task_run_post_handle_depend_hash): Declare earlier.
1855         (gomp_task_run_post_handle_depend): Declare.
1856         (GOMP_task): Optimize fn == empty_task if there is nothing to wait
1857         for.
1858         (gomp_task_run_post_handle_dependers): Optimize task->fn == empty_task.
1859         (GOMP_taskwait_depend_nowait): New function.
1860         * testsuite/libgomp.c-c++-common/taskwait-depend-nowait-1.c: New test.
1862 2022-05-23  Tobias Burnus  <tobias@codesourcery.com>
1864         PR fortran/104949
1865         * target.c (gomp_map_vars_internal, copy_firstprivate_data):
1866         Support attach for GOMP_MAP_FIRSTPRIVATE.
1867         * testsuite/libgomp.fortran/target-firstprivate-1.f90: New test.
1868         * testsuite/libgomp.fortran/target-firstprivate-2.f90: New test.
1869         * testsuite/libgomp.fortran/target-firstprivate-3.f90: New test.
1871 2022-05-20  Marcel Vollweiler  <marcel@codesourcery.com>
1873         * libgomp.map: Added omp_target_memcpy_async and
1874         omp_target_memcpy_rect_async.
1875         * libgomp.texi: Both functions are now supported.
1876         * omp.h.in: Added omp_target_memcpy_async and
1877         omp_target_memcpy_rect_async.
1878         * omp_lib.f90.in: Added interfaces for both new functions.
1879         * omp_lib.h.in: Likewise.
1880         * target.c (ialias_redirect): Added for GOMP_task.
1881         (omp_target_memcpy): Restructured into check and copy part.
1882         (omp_target_memcpy_check): New helper function for omp_target_memcpy and
1883         omp_target_memcpy_async that checks requirements.
1884         (omp_target_memcpy_copy): New helper function for omp_target_memcpy and
1885         omp_target_memcpy_async that performs the memcpy.
1886         (omp_target_memcpy_async_helper): New helper function that is used in
1887         omp_target_memcpy_async for the asynchronous task.
1888         (omp_target_memcpy_async): Added.
1889         (omp_target_memcpy_rect): Restructured into check and copy part.
1890         (omp_target_memcpy_rect_check): New helper function for
1891         omp_target_memcpy_rect and omp_target_memcpy_rect_async that checks
1892         requirements.
1893         (omp_target_memcpy_rect_copy): New helper function for
1894         omp_target_memcpy_rect and omp_target_memcpy_rect_async that performs
1895         the memcpy.
1896         (omp_target_memcpy_rect_async_helper): New helper function that is used
1897         in omp_target_memcpy_rect_async for the asynchronous task.
1898         (omp_target_memcpy_rect_async): Added.
1899         * task.c (ialias): Added for GOMP_task.
1900         * testsuite/libgomp.c-c++-common/target-memcpy-async-1.c: New test.
1901         * testsuite/libgomp.c-c++-common/target-memcpy-async-2.c: New test.
1902         * testsuite/libgomp.c-c++-common/target-memcpy-rect-async-1.c: New test.
1903         * testsuite/libgomp.c-c++-common/target-memcpy-rect-async-2.c: New test.
1904         * testsuite/libgomp.fortran/target-memcpy-async-1.f90: New test.
1905         * testsuite/libgomp.fortran/target-memcpy-async-2.f90: New test.
1906         * testsuite/libgomp.fortran/target-memcpy-rect-async-1.f90: New test.
1907         * testsuite/libgomp.fortran/target-memcpy-rect-async-2.f90: New test.
1909 2022-05-18  Tobias Burnus  <tobias@codesourcery.com>
1911         * libgomp.texi (OpenMP 5.1): Set 'inoutset' to Y.
1912         (OpenMP Context Selectors): Add missing comma.
1913         * testsuite/libgomp.fortran/depend-5.f90: Add inoutset test.
1914         * testsuite/libgomp.fortran/depend-6.f90: Likewise.
1915         * testsuite/libgomp.fortran/depend-7.f90: Likewise.
1916         * testsuite/libgomp.fortran/depend-inoutset-1.f90: New test.
1918 2022-05-17  Jakub Jelinek  <jakub@redhat.com>
1920         * libgomp.texi (OpenMP 5.1): Remove "Not inside target regions"
1921         comment for omp_display_env feature.
1923 2022-05-17  Tobias Burnus  <tobias@codesourcery.com>
1925         * libgomp.texi (Offload-Target Specifics): New chapter; add section
1926         to document OpenMP context selectors.
1928 2022-05-17  Jakub Jelinek  <jakub@redhat.com>
1930         * libgomp.h (struct gomp_task_depend_entry): Change is_in type
1931         from bool to unsigned char.
1932         * task.c (gomp_task_handle_depend): Handle GOMP_DEPEND_INOUTSET.
1933         Ignore dependencies where
1934         task->depend[i].is_in && task->depend[i].is_in == ent->is_in
1935         rather than just task->depend[i].is_in && ent->is_in.  Remember
1936         whether GOMP_DEPEND_IN loop is needed and guard the loop with that
1937         conditional.
1938         (gomp_task_maybe_wait_for_dependencies): Handle GOMP_DEPEND_INOUTSET.
1939         Ignore dependencies where elem.is_in && elem.is_in == ent->is_in
1940         rather than just elem.is_in && ent->is_in.
1941         * testsuite/libgomp.c-c++-common/depend-1.c (test): Add task with
1942         inoutset depend-kind.
1943         * testsuite/libgomp.c-c++-common/depend-2.c (test): Likewise.
1944         * testsuite/libgomp.c-c++-common/depend-3.c (test): Likewise.
1945         * testsuite/libgomp.c-c++-common/depend-inoutset-1.c: New test.
1947 2022-05-17  Tobias Burnus  <tobias@codesourcery.com>
1949         * libgomp.texi (OpenMP Implementation Status): Add 5.2 table.
1951 2022-05-17  Tobias Burnus  <tobias@codesourcery.com>
1953         * libgomp.texi (OpenMP 5.1): Set omp_all_memory to 'Y'.
1954         * testsuite/libgomp.fortran/depend-5.f90: New test.
1955         * testsuite/libgomp.fortran/depend-6.f90: New test.
1956         * testsuite/libgomp.fortran/depend-7.f90: New test.
1958 2022-05-16  Marcel Vollweiler  <marcel@codesourcery.com>
1960         * testsuite/libgomp.c++/target-has-device-addr-7.C: New test.
1961         * testsuite/libgomp.c++/target-has-device-addr-8.C: New test.
1962         * testsuite/libgomp.c++/target-has-device-addr-9.C: New test.
1964 2022-05-13  Tobias Burnus  <tobias@codesourcery.com>
1966         * testsuite/libgomp.fortran/target-nowait-array-section.f90: New test.
1968 2022-05-13  Tobias Burnus  <tobias@codesourcery.com>
1970         * testsuite/libgomp.fortran/target-nowait-array-section.f90: New test.
1972 2022-05-13  Thomas Schwinge  <thomas@codesourcery.com>
1974         * plugin/Makefrag.am (libgomp_plugin_nvptx_la_CPPFLAGS)
1975         [PLUGIN_NVPTX_DYNAMIC]: Don't append '$(PLUGIN_NVPTX_CPPFLAGS)'.
1976         (libgomp_plugin_nvptx_la_LDFLAGS) [PLUGIN_NVPTX_DYNAMIC]: Don't
1977         append '$(PLUGIN_NVPTX_LDFLAGS)'.
1978         * Makefile.in: Regenerate.
1980 2022-05-12  Thomas Schwinge  <thomas@codesourcery.com>
1982         * Makefile.am (libgomp_la_LIBADD): Initialize.
1983         * plugin/configfrag.ac (DL_LIBS): New.
1984         (PLUGIN_GCN_LIBS): Remove.
1985         (PLUGIN_NVPTX_LIBS): Don't set in the 'PLUGIN_NVPTX_DYNAMIC' case.
1986         * plugin/Makefrag.am (libgomp_la_LIBADD)
1987         (libgomp_plugin_gcn_la_LIBADD): Consider '$(DL_LIBS)'.
1988         (libgomp_plugin_nvptx_la_LIBADD) <PLUGIN_NVPTX_DYNAMIC>: Likewise.
1989         * Makefile.in: Regenerate.
1990         * config.h.in: Likewise.
1991         * configure: Likewise.
1992         * testsuite/Makefile.in: Likewise.
1994 2022-05-12  Thomas Schwinge  <thomas@codesourcery.com>
1996         * plugin/Makefrag.am: Handle 'PLUGIN_NVPTX_DYNAMIC'.
1997         * plugin/configfrag.ac (PLUGIN_NVPTX_DYNAMIC): Change
1998         'AC_DEFINE_UNQUOTED' into 'AM_CONDITIONAL'.
1999         * plugin/plugin-nvptx.c: Split 'PLUGIN_NVPTX_DYNAMIC' into
2000         'PLUGIN_NVPTX_INCLUDE_SYSTEM_CUDA_H' and
2001         'PLUGIN_NVPTX_LINK_LIBCUDA'.
2002         * Makefile.in: Regenerate.
2003         * config.h.in: Likewise.
2004         * configure: Likewise.
2006 2022-05-12  Thomas Schwinge  <thomas@codesourcery.com>
2008         * plugin/configfrag.ac: Don't 'AC_SUBST' and 'AC_DEFINE_UNQUOTED'
2009         for 'PLUGIN_GCN', 'PLUGIN_NVPTX'.
2010         * Makefile.in: Regenerate.
2011         * config.h.in: Likewise.
2012         * configure: Likewise.
2013         * testsuite/Makefile.in: Likewise.
2015 2022-05-12  Jakub Jelinek  <jakub@redhat.com>
2017         * libgomp.h (struct gomp_task): Add depend_all_memory member.
2018         * task.c (gomp_init_task): Initialize depend_all_memory.
2019         (gomp_task_handle_depend): Handle omp_all_memory.
2020         (gomp_task_run_post_handle_depend_hash): Clear
2021         parent->depend_all_memory if equal to current task.
2022         (gomp_task_maybe_wait_for_dependencies): Handle omp_all_memory.
2023         * testsuite/libgomp.c-c++-common/depend-1.c: New test.
2024         * testsuite/libgomp.c-c++-common/depend-2.c: New test.
2025         * testsuite/libgomp.c-c++-common/depend-3.c: New test.
2027 2022-05-11  Thomas Schwinge  <thomas@codesourcery.com>
2029         * plugin/configfrag.ac: Remove '--with-hsa-runtime',
2030         '--with-hsa-runtime-include', '--with-hsa-runtime-lib' processing.
2031         * Makefile.in: Regenerate.
2032         * configure: Likewise.
2033         * testsuite/Makefile.in: Likewise.
2035 2022-05-11  Thomas Schwinge  <thomas@codesourcery.com>
2037         * plugin/Makefrag.am (libgomp_plugin_gcn_la_CPPFLAGS): Don't
2038         consider 'PLUGIN_GCN_CPPFLAGS'.
2039         (libgomp_plugin_gcn_la_LDFLAGS): Don't consider
2040         'PLUGIN_GCN_LDFLAGS'.
2041         * plugin/configfrag.ac (PLUGIN_GCN_CPPFLAGS, PLUGIN_GCN_LDFLAGS):
2042         Remove.
2043         * Makefile.in: Regenerate.
2044         * configure: Likewise.
2045         * testsuite/Makefile.in: Likewise.
2047 2022-05-11  Thomas Schwinge  <thomas@codesourcery.com>
2049         * plugin/configfrag.ac (HSA_RUNTIME_CPPFLAGS)
2050         (HSA_RUNTIME_LDFLAGS): Remove.
2051         * configure: Regenerate.
2053 2022-05-11  Thomas Schwinge  <thomas@codesourcery.com>
2055         * testsuite/lib/libgomp.exp (libgomp_init): Don't
2056         'append always_ld_library_path ":$hsa_runtime_lib"'.
2057         * testsuite/libgomp-test-support.exp.in (hsa_runtime_lib): Don't set.
2059 2022-05-10  Thomas Schwinge  <thomas@codesourcery.com>
2061         * testsuite/libgomp.fortran/use_device_addr-5.f90: Fix up
2062         multi-device testing.
2064 2022-05-06  Marcel Vollweiler  <marcel@codesourcery.com>
2066         * libgomp.map: Added omp_target_is_accessible.
2067         * libgomp.texi: Tagged omp_target_is_accessible as supported.
2068         * omp.h.in: Added omp_target_is_accessible.
2069         * omp_lib.f90.in: Added interface for omp_target_is_accessible.
2070         * omp_lib.h.in: Likewise.
2071         * target.c (omp_target_is_accessible): Added implementation of
2072         omp_target_is_accessible.
2073         * testsuite/libgomp.c-c++-common/target-is-accessible-1.c: New test.
2074         * testsuite/libgomp.fortran/target-is-accessible-1.f90: New test.
2076 2022-05-05  Sandra Loosemore  <sandra@codesourcery.com>
2078         * libgomp.texi (OpenMP 5.0): Feature is now fully supported.
2080 2022-05-04  Tobias Burnus  <tobias@codesourcery.com>
2082         * plugin/plugin-gcn.c (isa_matches_agent): Suggest -foffload-options.
2084 2022-05-04  Tobias Burnus  <tobias@codesourcery.com>
2086         * testsuite/libgomp.fortran/use_device_addr-5.f90: New test.
2088 2022-05-03  Marcel Vollweiler  <marcel@codesourcery.com>
2090         * libgomp.map: Added omp_get_mapped_ptr.
2091         * libgomp.texi: Tagged omp_get_mapped_ptr as supported.
2092         * omp.h.in: Added omp_get_mapped_ptr.
2093         * omp_lib.f90.in: Added interface for omp_get_mapped_ptr.
2094         * omp_lib.h.in: Likewise.
2095         * target.c (omp_get_mapped_ptr): Added implementation of
2096         omp_get_mapped_ptr.
2097         * testsuite/libgomp.c-c++-common/get-mapped-ptr-1.c: New test.
2098         * testsuite/libgomp.c-c++-common/get-mapped-ptr-2.c: New test.
2099         * testsuite/libgomp.c-c++-common/get-mapped-ptr-3.c: New test.
2100         * testsuite/libgomp.c-c++-common/get-mapped-ptr-4.c: New test.
2101         * testsuite/libgomp.fortran/get-mapped-ptr-1.f90: New test.
2102         * testsuite/libgomp.fortran/get-mapped-ptr-2.f90: New test.
2103         * testsuite/libgomp.fortran/get-mapped-ptr-3.f90: New test.
2104         * testsuite/libgomp.fortran/get-mapped-ptr-4.f90: New test.
2106 2022-04-28  Thomas Schwinge  <thomas@codesourcery.com>
2108         PR fortran/104717
2109         * testsuite/libgomp.oacc-fortran/print-1.f90: Add OpenACC
2110         privatization scanning.  For GCN offloading compilation, raise
2111         '-mgang-private-size'.
2113 2022-04-26  Jakub Jelinek  <jakub@redhat.com>
2115         PR libgomp/105358
2116         * work.c (gomp_init_work_share): Don't mask of adjustment for
2117         dynamic long long realignment if struct gomp_work_share has smaller
2118         alignof than long long.
2119         * loop.c (GOMP_loop_start): Don't use inline_ordered_team_ids if
2120         struct gomp_work_share has smaller alignof than long long or if
2121         sizeof (struct gomp_work_share) is smaller than
2122         INLINE_ORDERED_TEAM_IDS_OFF.
2123         * loop_ull.c (GOMP_loop_ull_start): Likewise.
2124         * sections.c (GOMP_sections2_start): Likewise.
2126 2022-04-25  Jakub Jelinek  <jakub@redhat.com>
2127             Thomas Schwinge  <thomas@codesourcery.com>
2129         PR fortran/104717
2130         * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Adjust.
2132 2022-04-13  Jakub Jelinek  <jakub@redhat.com>
2134         * libgomp.texi: Fix a typo - mutexinouset -> mutexinoutset.
2136 2022-04-06  Thomas Schwinge  <thomas@codesourcery.com>
2138         * plugin/cuda/cuda.h: Remove file.
2139         * plugin/plugin-nvptx.c [PLUGIN_NVPTX_DYNAMIC]: Include
2140         "cuda/cuda.h" instead of <cuda.h>.
2141         * plugin/configfrag.ac <PLUGIN_NVPTX_DYNAMIC>: Don't set
2142         'PLUGIN_NVPTX_CPPFLAGS'.
2143         * configure: Regenerate.
2145 2022-04-05  Chung-Lin Tang  <cltang@codesourcery.com>
2147         * testsuite/libgomp.fortran/use_device_ptr-4.f90: New testcase.
2149 2022-04-04  Tom de Vries  <tdevries@suse.de>
2151         * testsuite/libgomp.fortran/examples-4/declare_target-1.f90: Use
2152         on_device_arch_nvptx instead of offload_target_nvptx.
2153         * testsuite/libgomp.fortran/examples-4/declare_target-2.f90: Same.
2155 2022-04-01  Tom de Vries  <tdevries@suse.de>
2157         * testsuite/libgomp.fortran/examples-4/declare_target-1.f90: Define
2158         and use REC_DEPTH.
2159         * testsuite/libgomp.fortran/examples-4/declare_target-2.f90: Same.
2161 2022-04-01  Tom de Vries  <tdevries@suse.de>
2163         * testsuite/libgomp.oacc-c-c++-common/vector-length-128-7.c: Fix
2164         num_workers check.
2166 2022-03-29  Chenghua Xu  <xuchenghua@loongson.cn>
2167             Lulu Cheng  <chenglulu@loongson.cn>
2169         * configure.tgt: Add LoongArch triplet.
2171 2022-03-28  Tom de Vries  <tdevries@suse.de>
2173         * plugin/configfrag.ac: Use /$(libexecdir:\$(exec_prefix)/%=%)/
2174         instead of /libexec/.
2175         * configure: Regenerate.
2177 2022-03-25  Tom de Vries  <tdevries@suse.de>
2179         PR libgomp/105042
2180         * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Reduce
2181         execution time.
2182         * testsuite/libgomp.oacc-c-c++-common/vred2d-128.c: Same.
2183         * testsuite/libgomp.oacc-fortran/parallel-dims.f90: Same.
2185 2022-03-23  Tobias Burnus  <tobias@codesourcery.com>
2187         PR middle-end/104285
2188         * testsuite/libgomp.c++/target-same-name-2-a.C: New test.
2189         * testsuite/libgomp.c++/target-same-name-2-b.C: New test.
2190         * testsuite/libgomp.c++/target-same-name-2.C: New test.
2191         * testsuite/libgomp.c-c++-common/target-same-name-1-a.c: New test.
2192         * testsuite/libgomp.c-c++-common/target-same-name-1-b.c: New test.
2193         * testsuite/libgomp.c-c++-common/target-same-name-1.c: New test.
2195 2022-03-22  Tom de Vries  <tdevries@suse.de>
2197         PR target/104916
2198         PR target/104783
2199         * testsuite/libgomp.c/pr104783-2.c: New test.
2201 2022-03-18  Tobias Burnus  <tobias@codesourcery.com>
2203         PR fortran/103039
2204         * testsuite/libgomp.fortran/associate4.f90: New test.
2206 2022-03-18  Tom de Vries  <tdevries@suse.de>
2208         PR target/104952
2209         * testsuite/libgomp.c/pr104952-1.c: New test.
2210         * testsuite/libgomp.c/pr104952-2.c: New test.
2212 2022-03-18  Jakub Jelinek  <jakub@redhat.com>
2214         * config/linux/affinity.c (gomp_affinity_init_numa_domains): Move seen
2215         variable next to pl variable.
2217 2022-03-17  Thomas Schwinge  <thomas@codesourcery.com>
2219         * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c:
2220         Enhance.
2221         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-g.c: Likewise.
2222         * testsuite/libgomp.oacc-fortran/if-1.f90: Likewise.
2224 2022-03-17  Thomas Schwinge  <thomas@codesourcery.com>
2226         PR middle-end/90115
2227         * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c: Enhance.
2228         * testsuite/libgomp.oacc-fortran/if-1.f90: Likewise.
2230 2022-03-16  Marcel Vollweiler  <marcel@codesourcery.com>
2232         * fortran.c (omp_set_num_teams_8_): Call omp_set_num_teams instead of
2233         omp_set_max_active_levels.
2234         * testsuite/libgomp.fortran/icv-8.f90: New test.
2236 2022-03-16  Thomas Schwinge  <thomas@codesourcery.com>
2238         PR testsuite/102841
2239         * testsuite/libgomp.oacc-c-c++-common/host_data-7.c: Adjust.
2241 2022-03-13  Tobias Burnus  <tobias@codesourcery.com>
2243         * libgomp.texi: Fix typo.
2245 2022-03-12  Thomas Schwinge  <thomas@codesourcery.com>
2247         PR middle-end/100280
2248         PR middle-end/104892
2249         * testsuite/libgomp.oacc-c-c++-common/declare-vla.c: Adjust.
2250         * testsuite/libgomp.oacc-c-c++-common/default-1.c: Likewise.
2251         * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c:
2252         Likewise.
2253         * testsuite/libgomp.oacc-c-c++-common/kernels-reduction-1.c:
2254         Likewise.
2255         * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Likewise.
2256         * testsuite/libgomp.oacc-fortran/asyncwait-1.f90: Likewise.
2257         * testsuite/libgomp.oacc-fortran/kernels-reduction-1.f90:
2258         Likewise.
2260 2022-03-12  Thomas Schwinge  <thomas@codesourcery.com>
2262         PR middle-end/104892
2263         * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c: Point
2264         to PR104892.
2265         * testsuite/libgomp.oacc-c-c++-common/default-1.c: Likewise,
2266         enable '--param=openacc-kernels=decompose' and adjust.
2267         * testsuite/libgomp.oacc-c-c++-common/kernels-reduction-1.c:
2268         Likewise.
2269         * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Likewise.
2270         * testsuite/libgomp.oacc-fortran/kernels-reduction-1.f90:
2271         Likewise.
2273 2022-03-12  Thomas Schwinge  <thomas@codesourcery.com>
2275         PR middle-end/90115
2276         * testsuite/libgomp.oacc-c-c++-common/default-1.c: Enhance.
2277         * testsuite/libgomp.oacc-c-c++-common/kernels-reduction-1.c: Likewise.
2278         * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Likewise.
2279         * testsuite/libgomp.oacc-fortran/kernels-reduction-1.f90: Likewise.
2281 2022-03-12  Thomas Schwinge  <thomas@codesourcery.com>
2283         PR middle-end/100280
2284         PR middle-end/104086
2285         * testsuite/libgomp.oacc-c-c++-common/declare-vla-kernels-decompose-ice-1.c:
2286         Merge this...
2287         * testsuite/libgomp.oacc-c-c++-common/declare-vla-kernels-decompose.c:
2288         ..., and this...
2289         * testsuite/libgomp.oacc-c-c++-common/declare-vla.c: ... into
2290         this, and adjust.
2291         * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c:
2292         Extend.
2294 2022-03-10  Hafiz Abid Qadeer  <abidh@codesourcery.com>
2296         * testsuite/libgomp.fortran/allocate-1.f90: Remove pool_size
2297         trait.  Test last index in w and v array.  Remove redundant
2298         assignment to V(1).  Move alignment checks at the end of
2299         parallel region.
2301 2022-03-10  Tom de Vries  <tdevries@suse.de>
2303         * testsuite/libgomp.c/pr104783.c: New test.
2305 2022-03-10  Thomas Schwinge  <thomas@codesourcery.com>
2307         PR middle-end/90115
2308         PR middle-end/102330
2309         PR middle-end/104774
2310         * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c:
2311         Enhance.
2312         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-1.c:
2313         Adjust.
2314         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-2.c:
2315         Likewise.
2316         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-3.c:
2317         Likewise.
2318         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-4.c:
2319         Likewise.
2320         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-5.c:
2321         Likewise.
2322         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-vector-1.c:
2323         Likewise.
2324         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-vector-2.c:
2325         Likewise.
2326         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-2.c:
2327         Likewise.
2328         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-3.c:
2329         Likewise.
2330         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-4.c:
2331         Likewise.
2332         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-5.c:
2333         Likewise.
2334         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-6.c:
2335         Likewise.
2336         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-7.c:
2337         Likewise.
2338         * testsuite/libgomp.oacc-fortran/optional-private.f90: Likewise.
2339         * testsuite/libgomp.oacc-fortran/privatized-ref-1.f95: Likewise.
2340         * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Likewise.
2342 2022-03-10  Thomas Schwinge  <thomas@codesourcery.com>
2344         PR middle-end/90115
2345         * testsuite/libgomp.oacc-fortran/routine-1.f90: Enhance.
2346         * testsuite/libgomp.oacc-fortran/routine-2.f90: Likewise.
2347         * testsuite/libgomp.oacc-fortran/routine-3.f90: Likewise.
2348         * testsuite/libgomp.oacc-fortran/routine-9.f90: Likewise.
2350 2022-03-04  Thomas Schwinge  <thomas@codesourcery.com>
2352         PR testsuite/104791
2353         * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c: Fix
2354         expected diagnostics.
2356 2022-03-04  Thomas Schwinge  <thomas@codesourcery.com>
2358         PR middle-end/104784
2359         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-1.c:
2360         Test with '--param=openacc-kernels=decompose'.
2361         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-2.c:
2362         Likewise.
2363         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-3.c:
2364         Likewise.
2365         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-4.c:
2366         Likewise.
2367         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-5.c:
2368         Likewise.
2369         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-1.c:
2370         Likewise.
2371         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-2.c:
2372         Likewise.
2373         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-3.c:
2374         Likewise.
2375         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-4.c:
2376         Likewise.
2377         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-5.c:
2378         Likewise.
2379         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-6.c:
2380         Likewise.
2381         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-vector-1.c:
2382         Likewise.
2383         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-vector-2.c:
2384         Likewise.
2385         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-1.c:
2386         Likewise.
2387         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-2.c:
2388         Likewise.
2389         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-3.c:
2390         Likewise.
2391         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-4.c:
2392         Likewise.
2393         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-5.c:
2394         Likewise.
2395         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-6.c:
2396         Likewise.
2397         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-7.c:
2398         Likewise.
2399         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-1.f90:
2400         Likewise.
2401         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-2.f90:
2402         Likewise.
2403         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-3.f90:
2404         Likewise.
2405         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-6.f90:
2406         Likewise.
2407         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-vector-1.f90:
2408         Likewise.
2409         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-vector-2.f90:
2410         Likewise.
2411         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-1.f90:
2412         Likewise.
2413         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-2.f90:
2414         Likewise.
2415         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-3.f90:
2416         Likewise.
2417         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-4.f90:
2418         Likewise.
2419         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-5.f90:
2420         Likewise.
2421         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-6.f90:
2422         Likewise.
2423         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-7.f90:
2424         Likewise.
2426 2022-03-04  Thomas Schwinge  <thomas@codesourcery.com>
2428         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-1.c:
2429         Test '-fopt-info-omp-all'.
2430         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-2.c:
2431         Likewise.
2432         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-3.c:
2433         Likewise.
2434         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-4.c:
2435         Likewise.
2436         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-5.c:
2437         Likewise.
2438         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-1.c:
2439         Likewise.
2440         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-2.c:
2441         Likewise.
2442         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-3.c:
2443         Likewise.
2444         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-4.c:
2445         Likewise.
2446         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-5.c:
2447         Likewise.
2448         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-6.c:
2449         Likewise.
2450         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-vector-1.c:
2451         Likewise.
2452         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-vector-2.c:
2453         Likewise.
2454         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-1.c:
2455         Likewise.
2456         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-2.c:
2457         Likewise.
2458         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-3.c:
2459         Likewise.
2460         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-4.c:
2461         Likewise.
2462         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-5.c:
2463         Likewise.
2464         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-6.c:
2465         Likewise.
2466         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-7.c:
2467         Likewise.
2468         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-1.f90:
2469         Likewise.
2470         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-2.f90:
2471         Likewise.
2472         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-3.f90:
2473         Likewise.
2474         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-6.f90:
2475         Likewise.
2476         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-vector-1.f90:
2477         Likewise.
2478         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-vector-2.f90:
2479         Likewise.
2480         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-1.f90:
2481         Likewise.
2482         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-2.f90:
2483         Likewise.
2484         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-3.f90:
2485         Likewise.
2486         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-4.f90:
2487         Likewise.
2488         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-5.f90:
2489         Likewise.
2490         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-6.f90:
2491         Likewise.
2492         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-7.f90:
2493         Likewise.
2495 2022-03-04  Thomas Schwinge  <thomas@codesourcery.com>
2497         PR middle-end/100280
2498         PR middle-end/104132
2499         PR middle-end/104133
2500         * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c:
2501         Extend.
2503 2022-03-04  Thomas Schwinge  <thomas@codesourcery.com>
2505         PR middle-end/100280
2506         * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-1.c: Adjust.
2507         * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c:
2508         Likewise.
2510 2022-03-04  Thomas Schwinge  <thomas@codesourcery.com>
2512         PR middle-end/100280
2513         * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-1.c: Adjust.
2514         * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c:
2515         Likewise.
2517 2022-02-28  Tom de Vries  <tdevries@suse.de>
2519         * testsuite/libgomp.c/declare-variant-3-sm30.c: Add -foffload=-mptx=_.
2520         * testsuite/libgomp.c/declare-variant-3-sm35.c: Same.
2521         * testsuite/libgomp.c/declare-variant-3-sm53.c: Same.
2522         * testsuite/libgomp.c/declare-variant-3-sm70.c: Same.
2523         * testsuite/libgomp.c/declare-variant-3-sm75.c: Same.
2524         * testsuite/libgomp.c/declare-variant-3-sm80.c: Same.
2526 2022-02-24  Tom de Vries  <tdevries@suse.de>
2528         * testsuite/libgomp.c/declare-variant-3-sm30.c: New test.
2529         * testsuite/libgomp.c/declare-variant-3-sm35.c: New test.
2530         * testsuite/libgomp.c/declare-variant-3-sm53.c: New test.
2531         * testsuite/libgomp.c/declare-variant-3-sm70.c: New test.
2532         * testsuite/libgomp.c/declare-variant-3-sm75.c: New test.
2533         * testsuite/libgomp.c/declare-variant-3-sm80.c: New test.
2534         * testsuite/libgomp.c/declare-variant-3.h: New header file.
2536 2022-02-22  Thomas Schwinge  <thomas@codesourcery.com>
2538         * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Fix OpenACC
2539         gang-redundant execution.
2541 2022-02-22  Tom de Vries  <tdevries@suse.de>
2543         PR target/99555
2544         * config/nvptx/bar.c (generation_to_barrier): New function, copied
2545         from config/rtems/bar.c.
2546         (futex_wait, futex_wake): New function.
2547         (do_spin, do_wait): New function, copied from config/linux/wait.h.
2548         (gomp_barrier_wait_end, gomp_barrier_wait_last)
2549         (gomp_team_barrier_wake, gomp_team_barrier_wait_end):
2550         (gomp_team_barrier_wait_cancel_end, gomp_team_barrier_cancel): Remove
2551         and replace with include of config/linux/bar.c.
2552         * config/nvptx/bar.h (gomp_barrier_t): Add fields waiters and lock.
2553         (gomp_barrier_init): Init new fields.
2554         * testsuite/libgomp.c-c++-common/task-detach-6.c: Remove nvptx-specific
2555         workarounds.
2556         * testsuite/libgomp.c/pr99555-1.c: Same.
2557         * testsuite/libgomp.fortran/task-detach-6.f90: Same.
2559 2022-02-22  Tom de Vries  <tdevries@suse.de>
2561         PR testsuite/104146
2562         * testsuite/libgomp.c++/pr96390.C: Add additional-option
2563         -foffload=-Wa,--verify for nvptx.
2564         * testsuite/libgomp.c-c++-common/pr96390.c: Same.
2566 2022-02-15  Tobias Burnus  <tobias@codesourcery.com>
2568         * testsuite/libgomp.fortran/depend-4.f90: New test.
2570 2022-02-10  Tobias Burnus  <tobias@codesourcery.com>
2572         PR c++/102204
2573         * testsuite/libgomp.c++/target-virtual-1.C: New test.
2575 2022-02-10  Marcel Vollweiler  <marcel@codesourcery.com>
2577         * libgomp.texi: Updated entry for HAS_DEVICE_ADDR.
2578         * target.c (copy_firstprivate_data): Copy only if host address is not
2579         NULL.
2580         * testsuite/libgomp.c++/target-has-device-addr-2.C: New test.
2581         * testsuite/libgomp.c++/target-has-device-addr-4.C: New test.
2582         * testsuite/libgomp.c++/target-has-device-addr-5.C: New test.
2583         * testsuite/libgomp.c++/target-has-device-addr-6.C: New test.
2584         * testsuite/libgomp.c-c++-common/target-has-device-addr-1.c: New test.
2585         * testsuite/libgomp.c/target-has-device-addr-3.c: New test.
2586         * testsuite/libgomp.fortran/target-has-device-addr-1.f90: New test.
2587         * testsuite/libgomp.fortran/target-has-device-addr-2.f90: New test.
2588         * testsuite/libgomp.fortran/target-has-device-addr-3.f90: New test.
2589         * testsuite/libgomp.fortran/target-has-device-addr-4.f90: New test.
2591 2022-02-08  Jakub Jelinek  <jakub@redhat.com>
2593         PR libgomp/104385
2594         * task.c (gomp_task_run_post_handle_dependers): If parent is NULL,
2595         clear task->parent.
2596         * testsuite/libgomp.c/pr104385.c: New test.
2598 2022-02-04  Tobias Burnus  <tobias@codesourcery.com>
2600         * testsuite/libgomp.fortran/allocate-1.f90: Remove spurious
2601         STOP of previous commit.
2603 2022-02-04  Tobias Burnus  <tobias@codesourcery.com>
2605         * testsuite/libgomp.fortran/allocate-1.c (is_64bit_aligned): Renamed
2606         from is_64bit_aligned_.
2607         * testsuite/libgomp.fortran/allocate-1.f90: Fix interface decl
2608         and use it, more implicit none, remove unused argument.
2610 2022-02-03  David Seifert  <soap@gentoo.org>
2611             Jakub Jelinek  <jakub@redhat.com>
2613         * configure.ac: Support --disable-werror.
2614         * configure: Regenerate.
2616 2022-02-01  Tom de Vries  <tdevries@suse.de>
2618         * testsuite/libgomp.oacc-c-c++-common/private-atomic-1.c: Remove
2619         PR83812 workaround.
2620         * testsuite/libgomp.oacc-fortran/private-atomic-1-vector.f90: Same.
2621         * testsuite/libgomp.oacc-fortran/private-atomic-1-worker.f90: Same.
2623 2022-02-01  Tom de Vries  <tdevries@suse.de>
2625         * testsuite/libgomp.oacc-c-c++-common/broadcast-many.c: Reduce
2626         num_workers for nvidia accelerator to fix libgomp error 'insufficient
2627         resources'.
2628         * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-4.c:
2629         Same.
2630         * testsuite/libgomp.oacc-c-c++-common/reduction-7.c: Same.
2632 2022-02-01  Tom de Vries  <tdevries@suse.de>
2634         * testsuite/libgomp.fortran/examples-4/declare_target-1.f90: Reduce
2635         recursion depth.
2636         * testsuite/libgomp.fortran/examples-4/declare_target-2.f90: Same.
2638 2022-01-31  Martin Liska  <mliska@suse.cz>
2640         * acinclude.m4: Detect *_ld_is_mold and use it.
2641         * configure: Regenerate.
2643 2022-01-27  Tobias Burnus  <tobias@codesourcery.com>
2645         * libgomp.texi (OpenMP 5.0): Update implementation status.
2647 2022-01-21  Thomas Schwinge  <thomas@codesourcery.com>
2649         * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c: Strengthen.
2650         * testsuite/libgomp.oacc-c-c++-common/loop-gwv-2.c: Likewise.
2651         * testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c: Likewise.
2652         * testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c: Likewise.
2653         * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c: Likewise.
2654         * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c: Likewise.
2655         * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c: Likewise.
2656         * testsuite/libgomp.oacc-c-c++-common/loop-red-wv-1.c: Likewise.
2657         * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c: Likewise.
2658         * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c: Likewise.
2659         * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c: Likewise.
2660         * testsuite/libgomp.oacc-c-c++-common/routine-gwv-1.c: Likewise.
2661         * testsuite/libgomp.oacc-c-c++-common/routine-v-1.c: Likewise.
2662         * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c: Likewise.
2663         * testsuite/libgomp.oacc-c-c++-common/routine-wv-1.c: Likewise.
2665 2022-01-19  Marcel Vollweiler  <marcel@codesourcery.com>
2667         * config/gcn/icv-device.c: Make GOMP_DEVICE_NUM_VAR public (remove
2668         "static") to make the device num available in the offload image.
2670 2022-01-19  Martin Liska  <mliska@suse.cz>
2671             Thomas Schwinge  <thomas@codesourcery.com>
2673         * testsuite/libgomp.oacc-c++/privatized-ref-2.C: Update scanning
2674         patterns.
2675         * testsuite/libgomp.oacc-c++/privatized-ref-3.C: Likewise.
2676         * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c:
2677         Likewise.
2678         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-2.c: Likewise.
2679         * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Likewise.
2680         * testsuite/libgomp.oacc-c-c++-common/pr85486.c: Likewise.
2681         * testsuite/libgomp.oacc-c-c++-common/pr95270-1.c: Likewise.
2682         * testsuite/libgomp.oacc-c-c++-common/routine-nohost-2.c:
2683         Likewise.
2684         * testsuite/libgomp.oacc-c-c++-common/struct-copyout-1.c:
2685         Likewise.
2686         * testsuite/libgomp.oacc-c-c++-common/struct-copyout-2.c:
2687         Likewise.
2688         * testsuite/libgomp.oacc-c-c++-common/vector-length-64-1.c:
2689         Likewise.
2690         * testsuite/libgomp.oacc-fortran/attach-descriptor-1.f90:
2691         Likewise.
2692         * testsuite/libgomp.oacc-fortran/derivedtypes-arrays-1.f90:
2693         Likewise.
2694         * testsuite/libgomp.oacc-fortran/kernels-loop-2.f95: Likewise.
2695         * testsuite/libgomp.oacc-fortran/parallel-dims.f90: Likewise.
2696         * testsuite/libgomp.oacc-fortran/privatized-ref-1.f95: Likewise.
2698 2022-01-18  Martin Liska  <mliska@suse.cz>
2700         * testsuite/libgomp.oacc-c++/privatized-ref-2.C: Update keyword
2701         in dg-warning.
2702         * testsuite/libgomp.oacc-c++/privatized-ref-3.C: Likewise.
2703         * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c: Likewise.
2704         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-2.c: Likewise.
2705         * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Likewise.
2706         * testsuite/libgomp.oacc-c-c++-common/pr85486.c: Likewise.
2707         * testsuite/libgomp.oacc-c-c++-common/pr95270-1.c: Likewise.
2708         * testsuite/libgomp.oacc-c-c++-common/routine-nohost-2.c: Likewise.
2709         * testsuite/libgomp.oacc-c-c++-common/struct-copyout-1.c: Likewise.
2710         * testsuite/libgomp.oacc-c-c++-common/struct-copyout-2.c: Likewise.
2711         * testsuite/libgomp.oacc-c-c++-common/vector-length-64-1.c: Likewise.
2712         * testsuite/libgomp.oacc-fortran/attach-descriptor-1.f90: Likewise.
2713         * testsuite/libgomp.oacc-fortran/derivedtypes-arrays-1.f90: Likewise.
2714         * testsuite/libgomp.oacc-fortran/kernels-loop-2.f95: Likewise.
2715         * testsuite/libgomp.oacc-fortran/parallel-dims.f90: Likewise.
2716         * testsuite/libgomp.oacc-fortran/privatized-ref-1.f95: Likewise.
2718 2022-01-17  Thomas Schwinge  <thomas@codesourcery.com>
2720         * testsuite/libgomp.oacc-c++/privatized-ref-2.C: Extend.
2721         * testsuite/libgomp.oacc-c++/privatized-ref-3.C: Likewise.
2722         * testsuite/libgomp.oacc-fortran/privatized-ref-1.f95: Likewise.
2724 2022-01-17  Julian Brown  <julian@codesourcery.com>
2725             Thomas Schwinge  <thomas@codesourcery.com>
2727         * testsuite/libgomp.oacc-fortran/privatized-ref-1.f95: New test.
2728         * testsuite/libgomp.oacc-c++/privatized-ref-2.C: New test.
2729         * testsuite/libgomp.oacc-c++/privatized-ref-3.C: New test.
2731 2022-01-16  Kwok Cheung Yeung  <kcy@codesourcery.com>
2732             Andrew Stubbs   <ams@codesourcery.com>
2734         * plugin/plugin-gcn.c (parse_target_attributes): Automatically set
2735         the number of teams and threads if necessary.
2736         (gcn_exec): Automatically set the number of gangs and workers if
2737         necessary.
2739 2022-01-13  Hafiz Abid Qadeer  <abidh@codesourcery.com>
2741         * testsuite/libgomp.fortran/allocate-1.c: New test.
2742         * testsuite/libgomp.fortran/allocate-1.f90: New test.
2743         * libgomp.texi: Remove string that says that allocate clause
2744         support is for C/C++ only.
2746 2022-01-13  Thomas Schwinge  <thomas@codesourcery.com>
2748         * testsuite/libgomp.c-c++-common/on_device_arch.h
2749         (any_device_arch, any_device_arch_intel_mic): New.
2750         * testsuite/lib/libgomp.exp
2751         (check_effective_target_offload_device_any_intel_mic): New.
2752         * testsuite/libgomp.c-c++-common/target-45.c: Use it.
2753         * testsuite/libgomp.fortran/target10.f90: Likewise.
2755 2022-01-13  Thomas Schwinge  <thomas@codesourcery.com>
2757         PR tree-optimization/102192
2758         * testsuite/libgomp.oacc-fortran/routine-10.f90: Document current
2759         '-Wuninitialized' diagnostics.
2761 2022-01-13  Thomas Schwinge  <thomas@codesourcery.com>
2763         * testsuite/libgomp.oacc-c-c++-common/vred2d-128.c: Document
2764         current '-Wuninitialized' diagnostics.
2765         * testsuite/libgomp.oacc-fortran/data-5.f90: Likewise.
2766         * testsuite/libgomp.oacc-fortran/gemm-2.f90: Likewise.
2767         * testsuite/libgomp.oacc-fortran/gemm.f90: Likewise.
2768         * testsuite/libgomp.oacc-fortran/optional-reduction.f90: Likewise.
2769         * testsuite/libgomp.oacc-fortran/parallel-reduction.f90: Likewise.
2770         * testsuite/libgomp.oacc-fortran/pr70643.f90: Likewise.
2771         * testsuite/libgomp.oacc-fortran/pr96628-part1.f90: Likewise.
2772         * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Likewise.
2773         * testsuite/libgomp.oacc-fortran/reduction-5.f90: Likewise.
2774         * testsuite/libgomp.oacc-fortran/reduction-7.f90: Likewise.
2775         * testsuite/libgomp.oacc-fortran/reference-reductions.f90:
2776         Likewise.
2778 2022-01-13  Thomas Schwinge  <thomas@codesourcery.com>
2780         * testsuite/libgomp.c/address-space-1.c: Remove 'dg-xfail-run-if'
2781         for 'offload_device_intel_mic'.
2783 2022-01-13  Julian Brown  <julian@codesourcery.com>
2784             Thomas Schwinge  <thomas@codesourcery.com>
2786         * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-1.c: Remove GCN
2787         offloading execution XFAIL.
2789 2022-01-13  Thomas Schwinge  <thomas@codesourcery.com>
2791         PR middle-end/100280
2792         * testsuite/libgomp.oacc-c-c++-common/declare-vla-kernels-decompose-ice-1.c:
2793         Update.
2794         * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-1.c: Likewise.
2795         * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c:
2796         Likewise.
2798 2022-01-13  Thomas Schwinge  <thomas@codesourcery.com>
2800         * testsuite/libgomp.oacc-c-c++-common/declare-vla-kernels-decompose-ice-1.c:
2801         Enhance.
2802         * testsuite/libgomp.oacc-c-c++-common/declare-vla-kernels-decompose.c:
2803         Likewise.
2804         * testsuite/libgomp.oacc-c-c++-common/declare-vla.c: Likewise.
2805         * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-1.c: Likewise.
2806         * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-2.c: Likewise.
2807         * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-3.c: Likewise.
2808         * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c:
2809         Likewise.
2810         * testsuite/libgomp.oacc-fortran/asyncwait-1.f90: Likewise.
2811         * testsuite/libgomp.oacc-fortran/asyncwait-2.f90: Likewise.
2812         * testsuite/libgomp.oacc-fortran/asyncwait-3.f90: Likewise.
2813         * testsuite/libgomp.oacc-fortran/pr94358-1.f90: Likewise.
2815 2022-01-04  Tobias Burnus  <tobias@codesourcery.com>
2817         * testsuite/libgomp.c-c++-common/target-45.c: Iterate over all devices.
2818         * testsuite/libgomp.fortran/target10.f90: Likewise.
2820 2022-01-04  Chung-Lin Tang  <cltang@codesourcery.com>
2822         * plugin/plugin-gcn.c (GOMP_OFFLOAD_load_image): Change uses of STRINGX
2823         into XSTRING when looking for GOMP_DEVICE_NUM_VAR in offload image.
2824         * plugin/plugin-nvptx.c (GOMP_OFFLOAD_load_image): Likewise.
2826 2022-01-03  Jakub Jelinek  <jakub@redhat.com>
2828         * libgomp.texi: Bump @copying's copyright year.
2830 2021-12-13  Tobias Burnus  <tobias@codesourcery.com>
2832         * libgomp.texi (OpenMP 5.1): Set Fortran support for atomic to 'Y'.
2833         * testsuite/libgomp.fortran/atomic-19.f90: New test.
2835 2021-12-10  Andrew Stubbs  <ams@codesourcery.com>
2837         * plugin/plugin-gcn.c (struct gcn_image_desc): Remove global_variables.
2838         (GOMP_OFFLOAD_load_image): Locate the offload variables via the
2839         table, not individual symbols.
2841 2021-12-09  Chung-Lin Tang  <cltang@codesourcery.com>
2843         * testsuite/libgomp.c++/target-lambda-1.C: Only run under
2844         "target offload_device_nonshared_as"
2845         * testsuite/libgomp.c++/target-this-3.C: Likewise.
2846         * testsuite/libgomp.c++/target-this-4.C: Likewise.
2848 2021-12-08  Chung-Lin Tang  <cltang@codesourcery.com>
2850         * target.c (gomp_map_vars_existing): Make sure attached pointer is
2851         not overwritten during cross-host/device copying.
2852         (gomp_update): Likewise.
2853         (gomp_exit_data): Likewise.
2854         * testsuite/libgomp.c++/target-11.C: Adjust testcase.
2855         * testsuite/libgomp.c++/target-12.C: Likewise.
2856         * testsuite/libgomp.c++/target-15.C: Likewise.
2857         * testsuite/libgomp.c++/target-16.C: Likewise.
2858         * testsuite/libgomp.c++/target-17.C: Likewise.
2859         * testsuite/libgomp.c++/target-21.C: Likewise.
2860         * testsuite/libgomp.c++/target-23.C: Likewise.
2861         * testsuite/libgomp.c/target-23.c: Likewise.
2862         * testsuite/libgomp.c/target-29.c: Likewise.
2863         * testsuite/libgomp.c-c++-common/target-implicit-map-2.c: New testcase.
2865 2021-12-08  Chung-Lin Tang  <cltang@codesourcery.com>
2867         PR middle-end/92120
2868         * libgomp.h (gomp_attach_pointer): Add bool parameter.
2869         * oacc-mem.c (acc_attach_async): Update call to gomp_attach_pointer.
2870         (goacc_enter_data_internal): Likewise.
2871         * target.c (gomp_map_vars_existing): Update assert condition to
2872         include GOMP_MAP_ATTACH_ZERO_LENGTH_ARRAY_SECTION.
2873         (gomp_map_pointer): Add 'bool allow_zero_length_array_sections'
2874         parameter, add support for mapping a pointer with NULL target.
2875         (gomp_attach_pointer): Add 'bool allow_zero_length_array_sections'
2876         parameter, add support for attaching a pointer with NULL target.
2877         (gomp_map_vars_internal): Update calls to gomp_map_pointer and
2878         gomp_attach_pointer, add handling for
2879         GOMP_MAP_ATTACH_ZERO_LENGTH_ARRAY_SECTION, and
2880         GOMP_MAP_POINTER_TO_ZERO_LENGTH_ARRAY_SECTION cases.
2881         * testsuite/libgomp.c++/target-23.C: New testcase.
2882         * testsuite/libgomp.c++/target-lambda-1.C: New testcase.
2883         * testsuite/libgomp.c++/target-lambda-2.C: New testcase.
2884         * testsuite/libgomp.c++/target-this-1.C: New testcase.
2885         * testsuite/libgomp.c++/target-this-2.C: New testcase.
2886         * testsuite/libgomp.c++/target-this-3.C: New testcase.
2887         * testsuite/libgomp.c++/target-this-4.C: New testcase.
2888         * testsuite/libgomp.c++/target-this-5.C: New testcase.
2890 2021-12-04  Tobias Burnus  <tobias@codesourcery.com>
2892         * libgomp.texi (OpenMP 5.1): Update status.
2894 2021-12-04  Tobias Burnus  <tobias@codesourcery.com>
2896         * libgomp.texi (OMP_PLACES): Extend description for OMP 5.1 changes.
2898 2021-12-02  Chung-Lin Tang  <cltang@codesourcery.com>
2900         PR fortran/90030
2901         * testsuite/libgomp.oacc-fortran/pr90030.f90: New test.
2902         * testsuite/libgomp.fortran/pr90030.f90: New test.
2904 2021-11-30  Kwok Cheung Yeung  <kcy@codesourcery.com>
2905             Thomas Schwinge  <thomas@codesourcery.com>
2907         * testsuite/libgomp.oacc-fortran/parallel-dims.f90: Remove
2908         temporary skip.
2910 2021-11-30  Cesar Philippidis  <cesar@codesourcery.com>
2911             Thomas Schwinge  <thomas@codesourcery.com>
2913         * testsuite/libgomp.oacc-fortran/parallel-dims.f90: Temporarily
2914         skip.
2916 2021-11-29  Richard Biener  <rguenther@suse.de>
2918         * oacc-plugin.c (GOMP_PLUGIN_acc_default_dim): Remove unreachable
2919         return.
2921 2021-11-24  Jakub Jelinek  <jakub@redhat.com>
2923         PR middle-end/103384
2924         * testsuite/libgomp.c/declare-variant-2.c: New test.
2926 2021-11-18  David Edelsohn  <dje.gcc@gmail.com>
2928         * alloc.c (gomp_aligned_alloc): Fix typo.
2930 2021-11-18  Jakub Jelinek  <jakub@redhat.com>
2932         PR libgomp/102838
2933         * libgomp.h (GOMP_USE_ALIGNED_WORK_SHARES): Define if
2934         GOMP_HAVE_EFFICIENT_ALIGNED_ALLOC is defined and __AMDGCN__ is not.
2935         (struct gomp_work_share): Use GOMP_USE_ALIGNED_WORK_SHARES instead of
2936         GOMP_HAVE_EFFICIENT_ALIGNED_ALLOC.
2937         * work.c (alloc_work_share, gomp_work_share_start): Likewise.
2938         * team.c (gomp_new_team): If GOMP_USE_ALIGNED_WORK_SHARES, use
2939         gomp_aligned_alloc instead of team_malloc.
2941 2021-11-18  Jakub Jelinek  <jakub@redhat.com>
2943         PR libgomp/102838
2944         * alloc.c (gomp_aligned_alloc): Prefer _aligned_alloc over
2945         memalign over posix_memalign over aligned_alloc over fallback
2946         with malloc instead of aligned_alloc over _aligned_alloc over
2947         posix_memalign over memalign over fallback with malloc.  For
2948         aligned_alloc, round up size up to multiple of al.
2950 2021-11-16  Jakub Jelinek  <jakub@redhat.com>
2952         * libgomp.texi (OpenMP 5.1): Mark thread_limit clause to target
2953         construct as implemented.
2955 2021-11-15  Tobias Burnus  <tobias@codesourcery.com>
2957         * testsuite/libgomp.fortran/thread-limit-1.f90: New test.
2959 2021-11-15  Jakub Jelinek  <jakub@redhat.com>
2961         * task.c (gomp_create_target_task): Copy args array as well.
2962         * target.c (gomp_target_fallback): Add args argument.
2963         Set gomp_icv (true)->thread_limit_var if thread_limit is present.
2964         (GOMP_target): Adjust gomp_target_fallback caller.
2965         (GOMP_target_ext): Likewise.
2966         (gomp_target_task_fn): Likewise.
2967         * config/nvptx/team.c (gomp_nvptx_main): Set
2968         gomp_global_icv.thread_limit_var.
2969         * testsuite/libgomp.c-c++-common/thread-limit-1.c: New test.
2971 2021-11-15  Jakub Jelinek  <jakub@redhat.com>
2973         * config/nvptx/team.c (__gomp_team_num): Define as
2974         __attribute__((shared)) var.
2975         (gomp_nvptx_main): Initialize __gomp_team_num to 0.
2976         * config/nvptx/target.c (__gomp_team_num): Declare as
2977         extern __attribute__((shared)) var.
2978         (GOMP_teams4): Use __gomp_team_num as the team number instead of
2979         %ctaid.x.  If first, initialize it to %ctaid.x.  If num_teams_lower
2980         is bigger than num_blocks, use num_teams_lower teams and arrange for
2981         bumping of __gomp_team_num if !first and returning false once we run
2982         out of teams.
2983         * config/nvptx/teams.c (__gomp_team_num): Declare as
2984         extern __attribute__((shared)) var.
2985         (omp_get_team_num): Return __gomp_team_num value instead of %ctaid.x.
2987 2021-11-15  Jakub Jelinek  <jakub@redhat.com>
2989         * testsuite/libgomp.c/teams-5.c: New test.
2991 2021-11-12  Jakub Jelinek  <jakub@redhat.com>
2993         PR target/103201
2994         * config/gcn/icv-device.c (omp_get_num_teams, omp_get_team_num): Move
2995         to ...
2996         * config/gcn/teams.c: ... here.  New file.
2998 2021-11-12  Chung-Lin Tang  <cltang@codesourcery.com>
3000         * target.c (gomp_map_vars_existing): Add 'bool implicit' parameter, add
3001         implicit map handling to allow a "superset" existing map as valid case.
3002         (get_kind): Adjust to filter out GOMP_MAP_IMPLICIT bits in return value.
3003         (get_implicit): New function to extract implicit status.
3004         (gomp_map_fields_existing): Adjust arguments in calls to
3005         gomp_map_vars_existing, and add uses of get_implicit.
3006         (gomp_map_vars_internal): Likewise.
3007         * testsuite/libgomp.c-c++-common/target-implicit-map-1.c: New test.
3009 2021-11-12  Jakub Jelinek  <jakub@redhat.com>
3011         * libgomp_g.h (GOMP_teams4): Declare.
3012         * libgomp.map (GOMP_5.1): Export GOMP_teams4.
3013         * target.c (GOMP_teams4): New function.
3014         * config/nvptx/target.c (GOMP_teams): Remove.
3015         (GOMP_teams4): New function.
3016         * config/gcn/target.c (GOMP_teams): Remove.
3017         (GOMP_teams4): New function.
3018         * testsuite/libgomp.c/teams-4.c (main): Expect exactly 2
3019         teams instead of <= 2.
3020         * testsuite/libgomp.c-c++-common/teams-2.c: New test.
3022 2021-11-11  Tobias Burnus  <tobias@codesourcery.com>
3024         * testsuite/libgomp.fortran/teams-1.f90: New test.
3026 2021-11-11  Jakub Jelinek  <jakub@redhat.com>
3028         * libgomp.h (struct gomp_thread): Add num_teams and team_num members.
3029         * team.c (struct gomp_thread_start_data): Likewise.
3030         (gomp_thread_start): Initialize thr->num_teams and thr->team_num.
3031         (gomp_team_start): Initialize start_data->num_teams and
3032         start_data->team_num.  Update nthr->num_teams and nthr->team_num.
3033         * teams.c (gomp_num_teams, gomp_team_num): Remove.
3034         (GOMP_teams_reg): Set and restore thr->num_teams and thr->team_num
3035         instead of gomp_num_teams and gomp_team_num.
3036         (omp_get_num_teams): Use thr->num_teams + 1 instead of gomp_num_teams.
3037         (omp_get_team_num): Use thr->team_num instead of gomp_team_num.
3038         * testsuite/libgomp.c/teams-4.c: New test.
3040 2021-11-11  Jakub Jelinek  <jakub@redhat.com>
3042         * testsuite/libgomp.c-c++-common/teams-1.c: New test.
3044 2021-11-09  Thomas Schwinge  <thomas@codesourcery.com>
3046         * env.c (parse_gomp_openacc_dim): Restore parsing.
3048 2021-10-30  Tobias Burnus  <tobias@codesourcery.com>
3050         PR middle-end/102972
3051         * testsuite/libgomp.c-c++-common/icv-3.c: Nest API calls inside
3052         parallel construct.
3053         * testsuite/libgomp.c-c++-common/icv-4.c: Likewise.
3054         * testsuite/libgomp.c/target-3.c: Likewise.
3055         * testsuite/libgomp.c/target-5.c: Likewise.
3056         * testsuite/libgomp.c/target-6.c: Likewise.
3057         * testsuite/libgomp.c/target-teams-1.c: Likewise.
3058         * testsuite/libgomp.c/teams-1.c: Likewise.
3059         * testsuite/libgomp.c/thread-limit-2.c: Likewise.
3060         * testsuite/libgomp.c/thread-limit-3.c: Likewise.
3061         * testsuite/libgomp.c/thread-limit-4.c: Likewise.
3062         * testsuite/libgomp.c/thread-limit-5.c: Likewise.
3063         * testsuite/libgomp.fortran/icv-3.f90: Likewise.
3064         * testsuite/libgomp.fortran/icv-4.f90: Likewise.
3065         * testsuite/libgomp.fortran/teams1.f90: Likewise.
3067 2021-10-29  Aldy Hernandez  <aldyh@redhat.com>
3069         * testsuite/libgomp.graphite/force-parallel-4.c: Adjust for threading changes.
3070         * testsuite/libgomp.graphite/force-parallel-8.c: Same.
3072 2021-10-27  Jakub Jelinek  <jakub@redhat.com>
3074         * libgomp.texi (OpenMP 5.0): Mention that Non-rectangular loop nests
3075         aren't implemented for Fortran yet.
3077 2021-10-27  Jakub Jelinek  <jakub@redhat.com>
3079         * testsuite/libgomp.c/loop-26.c: New test.
3080         * testsuite/libgomp.c/loop-27.c: New test.
3082 2021-10-25  Tobias Burnus  <tobias@codesourcery.com>
3084         PR testsuite/102910
3085         * testsuite/libgomp.oacc-c-c++-common/loop-gwv-2.c: Use __builtin_alloca
3086         instead of #include <alloca.h> + alloca.
3088 2021-10-21  Chung-Lin Tang  <cltang@codesourcery.com>
3090         * libgomp.texi (Support of strictly structured blocks in Fortran):
3091         Adjust to 'Y'.
3092         * testsuite/libgomp.fortran/task-reduction-16.f90: Adjust testcase.
3094 2021-10-20  Chung-Lin Tang  <cltang@codesourcery.com>
3096         * testsuite/libgomp.fortran/target-in-reduction-1.f90: New test.
3097         * testsuite/libgomp.fortran/target-in-reduction-2.f90: New test.
3099 2021-10-20  Jakub Jelinek  <jakub@redhat.com>
3101         PR libgomp/102838
3102         * libgomp.h (struct gomp_work_share_1st_cacheline): New type.
3103         (struct gomp_work_share): Only use aligned(64) attribute if
3104         GOMP_HAVE_EFFICIENT_ALIGNED_ALLOC is defined, otherwise just
3105         add padding before lock to ensure lock is at offset 64 bytes
3106         into the structure.
3107         (gomp_workshare_struct_check1, gomp_workshare_struct_check2):
3108         New poor man's static assertions.
3109         * work.c (gomp_work_share_start): Use gomp_aligned_alloc instead of
3110         gomp_malloc if GOMP_HAVE_EFFICIENT_ALIGNED_ALLOC.
3112 2021-10-20  Aldy Hernandez  <aldyh@redhat.com>
3113             Richard Biener  <rguenther@suse.de>
3115         * testsuite/libgomp.graphite/force-parallel-5.c: Remove xfail.
3117 2021-10-18  Jakub Jelinek  <jakub@redhat.com>
3119         * config/linux/affinity.c (gomp_affinity_init_numa_domains): Add
3120         && gomp_places_list_len < count after nfirst <= nlast loop condition.
3122 2021-10-18  Tobias Burnus  <tobias@codesourcery.com>
3124         PR fortran/102086
3125         PR fortran/92189
3126         PR fortran/92621
3127         PR fortran/101308
3128         PR fortran/101309
3129         PR fortran/101635
3130         PR fortran/92482
3131         * testsuite/libgomp.fortran/optional-bind-c.f90: New test.
3133 2021-10-15  Jakub Jelinek  <jakub@redhat.com>
3135         * testsuite/libgomp.c/affinity-1.c (struct places): Change name field
3136         type from char [50] to const char *.
3137         (places_array): Add a testcase for simplified syntax place followed
3138         by length or length and stride.
3140 2021-10-15  Jakub Jelinek  <jakub@redhat.com>
3142         * env.c (parse_one_place): Handle non-negative-number the same
3143         as { non-negative-number }.  Reject even !number:1 and
3144         !number:1:stride or !place:1 or !place:1:stride instead of just
3145         length other than 1.
3146         * libgomp.texi (OpenMP 5.1): Document OMP_PLACES syntax extensions
3147         and OMP_NUM_TEAMS/OMP_TEAMS_THREAD_LIMIT and
3148         omp_{set_num,get_max}_teams/omp_{s,g}et_teams_thread_limit features
3149         as implemented.
3150         * testsuite/libgomp.c/affinity-1.c: Add a test for the 5.1 place
3151         simplified syntax.
3153 2021-10-15  Jakub Jelinek  <jakub@redhat.com>
3155         * env.c (parse_schedule): For strtoul or strtoull calls which don't
3156         clearly reject return value 0 as invalid handle the case where end
3157         pointer is the same as first argument as invalid.
3158         (parse_unsigned_long_1): Likewise.
3159         (parse_one_place): Likewise.
3160         (parse_places_var): Likewise.
3161         (parse_stacksize): Likewise.
3162         (parse_spincount): Likewise.
3163         (parse_affinity): Likewise.
3164         (parse_gomp_openacc_dim): Likewise.  Avoid strict aliasing violation.
3165         Make code valid C89.
3166         * config/linux/affinity.c (gomp_affinity_find_last_cache_level):
3167         For strtoul calls which don't clearly reject return value 0 as
3168         invalid handle the case where end pointer is the same as first
3169         argument as invalid.
3170         (gomp_affinity_init_level_1): Likewise.
3171         (gomp_affinity_init_numa_domains): Likewise.
3172         * config/rtems/proc.c (parse_thread_pools): Likewise.
3174 2021-10-15  Jakub Jelinek  <jakub@redhat.com>
3176         * config/linux/affinity.c (gomp_affinity_init_level_1): For level 1
3177         after creating count places clean up and return immediately.
3178         * testsuite/libgomp.c/places-6.c: New test.
3179         * testsuite/libgomp.c/places-7.c: New test.
3180         * testsuite/libgomp.c/places-8.c: New test.
3181         * testsuite/libgomp.c/places-9.c: New test.
3182         * testsuite/libgomp.c/places-10.c: New test.
3184 2021-10-15  Jakub Jelinek  <jakub@redhat.com>
3186         * env.c (parse_places_var): Handle numa_domains as level 5.
3187         * config/linux/affinity.c (gomp_affinity_init_numa_domains): New
3188         function.
3189         (gomp_affinity_init_level): Use it instead of
3190         gomp_affinity_init_level_1 for level == 5.
3191         * testsuite/libgomp.c/places-5.c: New test.
3193 2021-10-15  Jakub Jelinek  <jakub@redhat.com>
3195         * env.c (parse_places_var): Handle ll_caches as level 4.
3196         * config/linux/affinity.c (gomp_affinity_find_last_cache_level): New
3197         function.
3198         (gomp_affinity_init_level_1): Handle level 4 as logical cpus sharing
3199         last level cache.
3200         (gomp_affinity_init_level): Likewise.
3201         * testsuite/libgomp.c/places-1.c: New test.
3202         * testsuite/libgomp.c/places-2.c: New test.
3203         * testsuite/libgomp.c/places-3.c: New test.
3204         * testsuite/libgomp.c/places-4.c: New test.
3206 2021-10-14  Kwok Cheung Yeung  <kcy@codesourcery.com>
3208         * libgomp.texi (OpenMP 5.0): Update entry for declare variant
3209         directive.
3211 2021-10-14  Kwok Cheung Yeung  <kcy@codesourcery.com>
3213         * testsuite/libgomp.fortran/declare-variant-1.f90: New test.
3215 2021-10-12  Julian Brown  <julian@codesourcery.com>
3217         * target.c (gomp_copy_host2dev): Release device lock on cbuf
3218         error path.
3220 2021-10-12  Tobias Burnus  <tobias@codesourcery.com>
3222         * testsuite/libgomp.fortran/icv-3.f90: New.
3223         * testsuite/libgomp.fortran/icv-4.f90: New.
3225 2021-10-12  Jakub Jelinek  <jakub@redhat.com>
3227         * libgomp.texi (omp_get_max_teams, omp_get_teams_thread_limit,
3228         omp_set_num_teams, omp_set_teams_thread_limit, OMP_NUM_TEAMS,
3229         OMP_TEAMS_THREAD_LIMIT): Document.
3231 2021-10-12  Jakub Jelinek  <jakub@redhat.com>
3233         * libgomp.texi (omp_get_device_num): Move @node before omp_get_dynamic
3234         to avoid makeinfo warnings.
3236 2021-10-12  Jakub Jelinek  <jakub@redhat.com>
3238         * testsuite/libgomp.c-c++-common/icv-3.c: New test.
3239         * testsuite/libgomp.c-c++-common/icv-4.c: New test.
3241 2021-10-12  Jakub Jelinek  <jakub@redhat.com>
3243         PR libgomp/102628
3244         PR libgomp/102668
3245         * testsuite/libgomp.c-c++-common/alloc-9.c (main): Decrease
3246         allocation sizes from 420 to 320 and from 768 to 568.
3247         * testsuite/libgomp.fortran/alloc-11.f90: Likewise.
3248         * testsuite/libgomp.fortran/alloc-1.F90: Change expected alignment
3249         for cr from 16 to 4.
3251 2021-10-12  Jakub Jelinek  <jakub@redhat.com>
3253         * testsuite/libgomp.c/scan-11.c: Remove option -fvect-cost-model=cheap.
3254         * testsuite/libgomp.c/scan-12.c: Likewise.
3255         * testsuite/libgomp.c/scan-13.c: Likewise.
3256         * testsuite/libgomp.c/scan-14.c: Likewise.
3257         * testsuite/libgomp.c/scan-15.c: Likewise.
3258         * testsuite/libgomp.c/scan-16.c: Likewise.
3259         * testsuite/libgomp.c/scan-17.c: Likewise.
3260         * testsuite/libgomp.c/scan-18.c: Likewise.
3261         * testsuite/libgomp.c/scan-19.c: Likewise.
3262         * testsuite/libgomp.c/scan-20.c: Likewise.
3263         * testsuite/libgomp.c/scan-21.c: Likewise.
3264         * testsuite/libgomp.c/scan-22.c: Likewise.
3265         * testsuite/libgomp.c++/scan-9.C: Likewise.
3266         * testsuite/libgomp.c++/scan-10.C: Likewise.
3267         * testsuite/libgomp.c++/scan-11.C: Likewise.
3268         * testsuite/libgomp.c++/scan-12.C: Likewise.
3269         * testsuite/libgomp.c++/scan-13.C: Likewise.
3270         * testsuite/libgomp.c++/scan-14.C: Likewise.
3271         * testsuite/libgomp.c++/scan-15.C: Likewise.
3272         * testsuite/libgomp.c++/scan-16.C: Likewise.
3274 2021-10-12  Kewen Lin  <linkw@linux.ibm.com>
3276         * testsuite/libgomp.graphite/force-parallel-8.c: Add --param max-stores-to-sink=0.
3278 2021-10-11  Marcel Vollweiler  <marcel@codesourcery.com>
3280         * allocator.c (omp_init_allocator): Replace omp_atv_sequential with
3281         omp_atv_serialized.
3282         * omp.h.in: Add deprecated flag for omp_atv_sequential.
3283         * omp_lib.f90.in: Add deprecated flag for omp_atv_sequential.
3284         * testsuite/libgomp.c-c++-common/alloc-10.c: New test.
3285         * testsuite/libgomp.fortran/alloc-12.f90: New test.
3287 2021-10-11  Jakub Jelinek  <jakub@redhat.com>
3289         * omp.h.in (omp_set_num_teams, omp_get_max_teams,
3290         omp_set_teams_thread_limit, omp_get_teams_thread_limit): Declare.
3291         * omp_lib.f90.in (omp_set_num_teams, omp_get_max_teams,
3292         omp_set_teams_thread_limit, omp_get_teams_thread_limit): Declare.
3293         * omp_lib.h.in (omp_set_num_teams, omp_get_max_teams,
3294         omp_set_teams_thread_limit, omp_get_teams_thread_limit): Declare.
3295         * libgomp.h (gomp_nteams_var, gomp_teams_thread_limit_var): Declare.
3296         * libgomp.map (OMP_5.1): Export omp_get_max_teams{,_},
3297         omp_get_teams_thread_limit{,_}, omp_set_num_teams{,_,_8_} and
3298         omp_set_teams_thread_limit{,_,_8_}.
3299         * icv.c (omp_set_num_teams, omp_get_max_teams,
3300         omp_set_teams_thread_limit, omp_get_teams_thread_limit): New
3301         functions.
3302         * env.c (gomp_nteams_var, gomp_teams_thread_limit_var): Define.
3303         (omp_display_env): Print OMP_NUM_TEAMS and OMP_TEAMS_THREAD_LIMIT.
3304         (initialize_env): Handle OMP_NUM_TEAMS and OMP_TEAMS_THREAD_LIMIT env
3305         vars.
3306         * teams.c (GOMP_teams_reg): If thread_limit is not specified, use
3307         gomp_teams_thread_limit_var as fallback if not zero.  If num_teams
3308         is not specified, use gomp_nteams_var.
3309         * fortran.c (omp_set_num_teams, omp_get_max_teams,
3310         omp_set_teams_thread_limit, omp_get_teams_thread_limit): Add
3311         ialias_redirect.
3312         (omp_set_num_teams_, omp_set_num_teams_8_, omp_get_max_teams_,
3313         omp_set_teams_thread_limit_, omp_set_teams_thread_limit_8_,
3314         omp_get_teams_thread_limit_): New functions.
3316 2021-10-09  liuhongt  <hongtao.liu@intel.com>
3318         * testsuite/libgomp.c++/scan-10.C: Add option -fvect-cost-model=cheap.
3319         * testsuite/libgomp.c++/scan-11.C: Ditto.
3320         * testsuite/libgomp.c++/scan-12.C: Ditto.
3321         * testsuite/libgomp.c++/scan-13.C: Ditto.
3322         * testsuite/libgomp.c++/scan-14.C: Ditto.
3323         * testsuite/libgomp.c++/scan-15.C: Ditto.
3324         * testsuite/libgomp.c++/scan-16.C: Ditto.
3325         * testsuite/libgomp.c++/scan-9.C: Ditto.
3326         * testsuite/libgomp.c-c++-common/lastprivate-conditional-7.c: Ditto.
3327         * testsuite/libgomp.c-c++-common/lastprivate-conditional-8.c: Ditto.
3328         * testsuite/libgomp.c/scan-11.c: Ditto.
3329         * testsuite/libgomp.c/scan-12.c: Ditto.
3330         * testsuite/libgomp.c/scan-13.c: Ditto.
3331         * testsuite/libgomp.c/scan-14.c: Ditto.
3332         * testsuite/libgomp.c/scan-15.c: Ditto.
3333         * testsuite/libgomp.c/scan-16.c: Ditto.
3334         * testsuite/libgomp.c/scan-17.c: Ditto.
3335         * testsuite/libgomp.c/scan-18.c: Ditto.
3336         * testsuite/libgomp.c/scan-19.c: Ditto.
3337         * testsuite/libgomp.c/scan-20.c: Ditto.
3338         * testsuite/libgomp.c/scan-21.c: Ditto.
3339         * testsuite/libgomp.c/scan-22.c: Ditto.
3341 2021-10-09  Jakub Jelinek  <jakub@redhat.com>
3343         * libgomp.texi (OpenMP 5.1): Mention implemented support for
3344         structured block sequences in C/C++.  Mention support for
3345         unconstrained/reproducible modifiers on order clause.
3346         Mention partial (C/C++ only) support of extentensions to atomics
3347         construct.  Mention partial (C/C++ on clause only) support of
3348         align/allocator modifiers on allocate clause.
3350 2021-10-02  Tobias Burnus  <tobias@codesourcery.com>
3352         * testsuite/libgomp.fortran/order-reproducible-1.f90: New test
3353         based on libgomp.c-c++-common/order-reproducible-1.c.
3354         * testsuite/libgomp.fortran/order-reproducible-2.f90: Likewise.
3355         * testsuite/libgomp.fortran/my-usleep.c: New test.
3357 2021-10-01  Tobias Burnus  <tobias@codesourcery.com>
3359         * testsuite/libgomp.fortran/alloc-10.f90: Fix alignment check.
3360         * testsuite/libgomp.fortran/alloc-7.f90: Fix array access.
3361         * testsuite/libgomp.fortran/alloc-8.f90: Likewise.
3362         * testsuite/libgomp.fortran/alloc-11.f90: New test for omp_realloc,
3363         based on libgomp.c-c++-common/alloc-9.c.
3365 2021-10-01  Jakub Jelinek  <jakub@redhat.com>
3367         * testsuite/libgomp.c-c++-common/order-reproducible-1.c: New test.
3368         * testsuite/libgomp.c-c++-common/order-reproducible-2.c: New test.
3370 2021-10-01  Jakub Jelinek  <jakub@redhat.com>
3372         * affinity-fmt.c (omp_get_team_num, omp_get_num_teams): Add
3373         ialias_redirect.
3374         * env.c (handle_omp_display_env): Use ialias_call.
3375         * icv-device.c: Move ialias right below each function.
3376         (omp_get_device_num): Use ialias_call.
3377         * fortran.c (omp_fulfill_event): Add ialias_redirect.
3378         * icv.c (omp_get_active_level): Add ialias_redirect.
3380 2021-10-01  Jakub Jelinek  <jakub@redhat.com>
3382         * omp.h.in (omp_aligned_alloc, omp_aligned_calloc): Add
3383         __alloc_align__ (1) attribute.
3384         * testsuite/libgomp.c-c++-common/alloc-9.c: New test.
3386 2021-09-30  Tobias Burnus  <tobias@codesourcery.com>
3388         * testsuite/libgomp.fortran/alloc-7.f90: Add dg-prune-output
3389         for -fintrinsic-modules-path= warning of the C compiler.
3390         * testsuite/libgomp.fortran/alloc-9.f90: Likewise.
3391         * testsuite/libgomp.fortran/alloc-10.f90: Likewise.
3393 2021-09-30  Tobias Burnus  <tobias@codesourcery.com>
3395         * libgomp.texi (OpenMP 5.1): Set implementation status to Y for
3396         omp_aligned_{,c}alloc and omp_{c,re}alloc routines.
3397         * omp_lib.f90.in (omp_aligned_alloc, omp_aligned_calloc, omp_calloc,
3398         omp_realloc): Add.
3399         * omp_lib.h.in (omp_aligned_alloc, omp_aligned_calloc, omp_calloc,
3400         omp_realloc): Add.
3401         * testsuite/libgomp.fortran/alloc-10.f90: New test.
3402         * testsuite/libgomp.fortran/alloc-6.f90: New test.
3403         * testsuite/libgomp.fortran/alloc-7.c: New test.
3404         * testsuite/libgomp.fortran/alloc-7.f90: New test.
3405         * testsuite/libgomp.fortran/alloc-8.f90: New test.
3406         * testsuite/libgomp.fortran/alloc-9.f90: New test.
3408 2021-09-30  Jakub Jelinek  <jakub@redhat.com>
3410         * omp.h.in (omp_aligned_alloc, omp_calloc, omp_aligned_calloc,
3411         omp_realloc): New prototypes.
3412         (omp_alloc): Move after omp_free prototype, add __malloc__ (omp_free)
3413         attribute.
3414         * allocator.c: Include string.h.
3415         (omp_aligned_alloc): No longer static, add ialias.  Add new_alignment
3416         variable and use it instead of alignment so that when retrying the old
3417         alignment is used again.  Don't retry if new alignment is the same
3418         as old alignment, unless allocator had pool size.
3419         (omp_alloc, GOMP_alloc, GOMP_free): Use ialias_call.
3420         (omp_aligned_calloc, omp_calloc, omp_realloc): New functions.
3421         * libgomp.map (OMP_5.0.2): Export omp_aligned_alloc, omp_calloc,
3422         omp_aligned_calloc and omp_realloc.
3423         * testsuite/libgomp.c-c++-common/alloc-4.c (main): Add
3424         omp_aligned_alloc, omp_calloc and omp_aligned_calloc tests.
3425         * testsuite/libgomp.c-c++-common/alloc-5.c: New test.
3426         * testsuite/libgomp.c-c++-common/alloc-6.c: New test.
3427         * testsuite/libgomp.c-c++-common/alloc-7.c: New test.
3428         * testsuite/libgomp.c-c++-common/alloc-8.c: New test.
3430 2021-09-28  Tobias Burnus  <tobias@codesourcery.com>
3432         PR libgomp/96661
3433         * configure.ac: Only check for int-type = 2*size_t support when
3434         building with Fortran support.
3435         * configure: Regenerate.
3437 2021-09-28  Thomas Schwinge  <thomas@codesourcery.com>
3439         * testsuite/libgomp.oacc-fortran/if-1.f90: Adjust.
3440         * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Likewise.
3442 2021-09-27  Aldy Hernandez  <aldyh@redhat.com>
3444         * team.c: Initialize start_data.
3445         * testsuite/libgomp.graphite/force-parallel-4.c: Adjust.
3446         * testsuite/libgomp.graphite/force-parallel-8.c: Adjust.
3448 2021-09-27  Tobias Burnus  <tobias@codesourcery.com>
3450         * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Change
3451         dg-message back to dg-note.
3453 2021-09-27  Tobias Burnus  <tobias@codesourcery.com>
3455         PR fortran/94070
3456         * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Update
3457         expected dg-note output.
3459 2021-09-22  Tobias Burnus  <tobias@codesourcery.com>
3461         PR fortran/55534
3462         * testsuite/libgomp.fortran/fortran.exp (ALWAYS_CFLAGS): Revert
3463         r12-3722 by removing -Wno-missing-include-dirs.
3464         * testsuite/libgomp.oacc-fortran/fortran.exp (ALWAYS_CFLAGS): Likewise.
3466 2021-09-22  Jakub Jelinek  <jakub@redhat.com>
3468         * testsuite/libgomp.c-c++-common/allocate-2.c: New test.
3469         * testsuite/libgomp.c-c++-common/allocate-3.c: New test.
3471 2021-09-21  Tobias Burnus  <tobias@codesourcery.com>
3473         PR fortran/55534
3474         * testsuite/libgomp.fortran/fortran.exp: Add -Wno-missing-include-dirs
3475         to ALWAYS_CFLAGS.
3476         * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
3478 2021-09-18  Jakub Jelinek  <jakub@redhat.com>
3480         * testsuite/libgomp.c++/default-1.C: New test.
3481         * testsuite/libgomp.c-c++-common/default-1.c: New test.
3482         * libgomp.texi (OpenMP 5.1): Mark "private and firstprivate argument
3483         to default clause in C and C++" as implemented.
3485 2021-09-17  Julian Brown  <julian@codesourcery.com>
3487         * testsuite/libgomp.oacc-c-c++-common/broadcast-many.c: Update.
3489 2021-09-17  Julian Brown  <julian@codesourcery.com>
3491         * testsuite/libgomp.oacc-c-c++-common/broadcast-many.c: New test.
3493 2021-09-17  Jakub Jelinek  <jakub@redhat.com>
3495         * libgomp.texi (OpenMP 5.1): Spelling fix,
3496         declare variante -> declare variant.
3498 2021-09-17  Jakub Jelinek  <jakub@redhat.com>
3500         * testsuite/libgomp.c-c++-common/atomic-19.c: Drop c effective target.
3501         Use /* */ comments instead of //.
3502         * testsuite/libgomp.c-c++-common/atomic-20.c: Likewise.
3503         * testsuite/libgomp.c-c++-common/atomic-21.c: Likewise.
3504         * testsuite/libgomp.c++/atomic-16.C: New test.
3505         * testsuite/libgomp.c++/atomic-17.C: New test.
3507 2021-09-10  Jakub Jelinek  <jakub@redhat.com>
3509         * testsuite/libgomp.c-c++-common/atomic-19.c: New test.
3510         * testsuite/libgomp.c-c++-common/atomic-20.c: New test.
3511         * testsuite/libgomp.c-c++-common/atomic-21.c: New test.
3513 2021-09-07  Tobias Burnus  <tobias@codesourcery.com>
3515         * libgomp.texi (OpenMP Implementation Status): Extend
3516         OpenMP 5.0 section.
3517         (OpenACC Profiling Interface): Fix typo.
3519 2021-09-07  Tobias Burnus  <tobias@codesourcery.com>
3521         * libgomp.texi (Enabling OpenMP): Refer to OMP spec in general
3522         not to 4.5; link to new section.
3523         (OpenMP Implementation Status): New.
3525 2021-09-06  Thomas Schwinge  <thomas@codesourcery.com>
3527         * testsuite/libgomp.c/target-43.c: '-latomic' for nvptx offloading.
3529 2021-09-03  Tobias Burnus  <tobias@codesourcery.com>
3531         * testsuite/libgomp.c-c++-common/error-1.c: Use \r\n not \n\r in
3532         dg-output.
3533         * testsuite/libgomp.fortran/error-1.f90: Likewise.
3535 2021-08-23  Thomas Schwinge  <thomas@codesourcery.com>
3536             Jakub Jelinek  <jakub@redhat.com>
3538         * testsuite/libgomp.c/address-space-1.c: New file.
3540 2021-08-23  Thomas Schwinge  <thomas@codesourcery.com>
3542         * testsuite/lib/libgomp.exp
3543         (check_effective_target_offload_target_intelmic): Remove 'proc'.
3544         (check_effective_target_offload_device_intel_mic): New 'proc'.
3545         * testsuite/libgomp.c-c++-common/on_device_arch.h
3546         (device_arch_intel_mic, on_device_arch_intel_mic): New.
3547         * testsuite/libgomp.c-c++-common/target-45.c: Use that for
3548         'dg-xfail-run-if'.
3549         * testsuite/libgomp.fortran/target10.f90: Likewise.
3551 2021-08-23  Tobias Burnus  <tobias@codesourcery.com>
3553         * testsuite/libgomp.fortran/taskloop-4-a.f90: New test.
3554         * testsuite/libgomp.fortran/taskloop-4.f90: New test.
3555         * testsuite/libgomp.fortran/taskloop-5-a.f90: New test.
3556         * testsuite/libgomp.fortran/taskloop-5.f90: New test.
3558 2021-08-23  Jakub Jelinek  <jakub@redhat.com>
3560         * taskloop.c (GOMP_taskloop): Handle GOMP_TASK_FLAG_STRICT.
3561         * testsuite/libgomp.c-c++-common/taskloop-4.c (main): Fix up comment.
3562         * testsuite/libgomp.c-c++-common/taskloop-5.c: New test.
3564 2021-08-22  Thomas Schwinge  <thomas@codesourcery.com>
3566         * config/nvptx/error.c (fwrite, exit): Override, too.
3567         * testsuite/libgomp.c-c++-common/error-1.c: Add a minimum amount
3568         of offloading testing.
3569         * testsuite/libgomp.fortran/error-1.f90: Likewise.
3571 2021-08-20  Tobias Burnus  <tobias@codesourcery.com>
3573         * testsuite/libgomp.fortran/error-1.f90: New test.
3575 2021-08-20  Jakub Jelinek  <jakub@redhat.com>
3577         * libgomp.map (GOMP_5.1): Add GOMP_error and GOMP_warning.
3578         * libgomp_g.h (GOMP_warning, GOMP_error): Declare.
3579         * error.c (GOMP_warning, GOMP_error): New functions.
3580         * testsuite/libgomp.c-c++-common/error-1.c: New test.
3582 2021-08-18  Tobias Burnus  <tobias@codesourcery.com>
3584         * omp_lib.f90.in (omp_alloc, omp_free, omp_target_alloc,
3585         omp_target_free. omp_target_is_present, omp_target_memcpy,
3586         omp_target_memcpy_rect, omp_target_associate_ptr,
3587         omp_target_disassociate_ptr): Add interface.
3588         * omp_lib.h.in (omp_alloc, omp_free, omp_target_alloc,
3589         omp_target_free. omp_target_is_present, omp_target_memcpy,
3590         omp_target_memcpy_rect, omp_target_associate_ptr,
3591         omp_target_disassociate_ptr): Add interface.
3592         * testsuite/libgomp.fortran/alloc-1.F90: Remove local
3593         interface block for omp_alloc + omp_free.
3594         * testsuite/libgomp.fortran/alloc-4.f90: Likewise.
3595         * testsuite/libgomp.fortran/refcount-1.f90: New test.
3596         * testsuite/libgomp.fortran/target-12.f90: New test.
3598 2021-08-18  Jakub Jelinek  <jakub@redhat.com>
3600         * testsuite/libgomp.c-c++-common/nothing-1.c: New test.
3602 2021-08-17  Tobias Burnus  <tobias@codesourcery.com>
3604         * testsuite/libgomp.fortran/scope-1.f90: New test.
3605         * testsuite/libgomp.fortran/task-reduction-16.f90: New test.
3607 2021-08-17  Jakub Jelinek  <jakub@redhat.com>
3609         * Makefile.am (libgomp_la_SOURCES): Add scope.c
3610         * Makefile.in: Regenerated.
3611         * libgomp_g.h (GOMP_scope_start): Declare.
3612         * libgomp.map: Add GOMP_scope_start@@GOMP_5.1.
3613         * scope.c: New file.
3614         * testsuite/libgomp.c-c++-common/scope-1.c: New test.
3615         * testsuite/libgomp.c-c++-common/task-reduction-16.c: New test.
3617 2021-08-16  Thomas Schwinge  <thomas@codesourcery.com>
3619         * testsuite/libgomp.oacc-c-c++-common/mode-transitions.c: Address
3620         '?:' issues.
3622 2021-08-16  Tobias Burnus  <tobias@codesourcery.com>
3624         * testsuite/libgomp.fortran/masked-1.f90: New test.
3626 2021-08-13  Thomas Schwinge  <thomas@codesourcery.com>
3628         * testsuite/libgomp.oacc-c-c++-common/static-variable-1.c: Adjust.
3630 2021-08-12  Jakub Jelinek  <jakub@redhat.com>
3632         * testsuite/libgomp.c-c++-common/masked-1.c: New test.
3634 2021-08-12  Tobias Burnus  <tobias@codesourcery.com>
3636         * env.c (parse_bind_var): Accept 'primary' as alias for
3637         'master'.
3638         (omp_display_env): Add TODO comment to
3639         change 'master' to 'primary' in proc_bind for OpenMP 5.1.
3640         * libgomp.texi: Change 'master thread' to 'primary thread'
3641         in line with OpenMP 5.1.
3642         (omp_get_proc_bind): Add omp_proc_bind_primary and note that
3643         omp_proc_bind_master is an alias of it.
3644         (OMP_PROC_BIND): Mention 'PRIMARY'.
3645         * omp.h.in (__GOMP_DEPRECATED_5_1): Define.
3646         (omp_proc_bind_primary): Add.
3647         (omp_proc_bind_master): Deprecate for OpenMP 5.1.
3648         * omp_lib.f90.in (omp_proc_bind_primary): Add.
3649         (omp_proc_bind_master): Deprecate for OpenMP 5.1.
3650         * omp_lib.h.in (omp_proc_bind_primary): Add.
3651         * testsuite/libgomp.c/affinity-1.c: Check that
3652         'primary' works and is identical to 'master'.
3654 2021-08-09  Julian Brown  <julian@codesourcery.com>
3655             Kwok Cheung Yeung  <kcy@codesourcery.com>
3656             Thomas Schwinge  <thomas@codesourcery.com>
3658         * plugin/plugin-gcn.c (gcn_exec): Change default number of workers to
3659         16.
3660         * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c
3661         [acc_device_radeon]: Update.
3662         * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c
3663         [ACC_DEVICE_TYPE_radeon]: Likewise.
3664         * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c
3665         [acc_device_radeon]: Likewise.
3666         * testsuite/libgomp.oacc-c-c++-common/routine-wv-2.c
3667         [ACC_DEVICE_TYPE_radeon]: Likewise.
3668         * testsuite/libgomp.oacc-fortran/optional-reduction.f90: XFAIL for
3669         'openacc_radeon_accel_selected' and '-O0'.
3670         * testsuite/libgomp.oacc-fortran/reduction-7.f90: Likewise.
3672 2021-08-05  Chung-Lin Tang  <cltang@codesourcery.com>
3674         * icv-device.c (omp_get_device_num): New API function, host side.
3675         * fortran.c (omp_get_device_num_): New interface function.
3676         * libgomp-plugin.h (GOMP_DEVICE_NUM_VAR): Define macro symbol.
3677         * libgomp.map (OMP_5.0.2): New version space with omp_get_device_num,
3678         omp_get_device_num_.
3679         * libgomp.texi (omp_get_device_num): Add documentation for new API
3680         function.
3681         * omp.h.in (omp_get_device_num): Add declaration.
3682         * omp_lib.f90.in (omp_get_device_num): Likewise.
3683         * omp_lib.h.in (omp_get_device_num): Likewise.
3684         * target.c (gomp_load_image_to_device): If additional entry for device
3685         number exists at end of returned entries from 'load_image_func' hook,
3686         copy the assigned device number over to the device variable.
3687         * config/gcn/icv-device.c (GOMP_DEVICE_NUM_VAR): Define static global.
3688         (omp_get_device_num): New API function, device side.
3689         * plugin/plugin-gcn.c ("symcat.h"): Add include.
3690         (GOMP_OFFLOAD_load_image): Add addresses of device GOMP_DEVICE_NUM_VAR
3691         at end of returned 'target_table' entries.
3692         * config/nvptx/icv-device.c (GOMP_DEVICE_NUM_VAR): Define static global.
3693         (omp_get_device_num): New API function, device side.
3694         * plugin/plugin-nvptx.c ("symcat.h"): Add include.
3695         (GOMP_OFFLOAD_load_image): Add addresses of device GOMP_DEVICE_NUM_VAR
3696         at end of returned 'target_table' entries.
3697         * testsuite/lib/libgomp.exp
3698         (check_effective_target_offload_target_intelmic): New function for
3699         testing for intelmic offloading.
3700         * testsuite/libgomp.c-c++-common/target-45.c: New test.
3701         * testsuite/libgomp.fortran/target10.f90: New test.
3703 2021-07-30  Thomas Schwinge  <thomas@codesourcery.com>
3704             Ulrich Drepper  <drepper@redhat.com>
3706         * fortran.c (omp_display_env_, omp_display_env_8_): Only
3707         '#ifndef LIBGOMP_OFFLOADED_ONLY'.
3709 2021-07-29  Thomas Schwinge  <thomas@codesourcery.com>
3710             Julian Brown  <julian@codesourcery.com>
3711             Kwok Cheung Yeung  <kcy@codesourcery.com>
3713         * testsuite/libgomp.oacc-c-c++-common/pr85486-2.c:
3714         's%oaccdevlow%oaccloops%g'.
3715         * testsuite/libgomp.oacc-c-c++-common/pr85486-3.c: Likewise.
3716         * testsuite/libgomp.oacc-c-c++-common/pr85486.c: Likewise.
3717         * testsuite/libgomp.oacc-c-c++-common/routine-nohost-1.c:
3718         Likewise.
3719         * testsuite/libgomp.oacc-c-c++-common/vector-length-128-1.c:
3720         Likewise.
3721         * testsuite/libgomp.oacc-c-c++-common/vector-length-128-2.c:
3722         Likewise.
3723         * testsuite/libgomp.oacc-c-c++-common/vector-length-128-3.c:
3724         Likewise.
3725         * testsuite/libgomp.oacc-c-c++-common/vector-length-128-4.c:
3726         Likewise.
3727         * testsuite/libgomp.oacc-c-c++-common/vector-length-128-5.c:
3728         Likewise.
3729         * testsuite/libgomp.oacc-c-c++-common/vector-length-128-6.c:
3730         Likewise.
3731         * testsuite/libgomp.oacc-c-c++-common/vector-length-128-7.c:
3732         Likewise.
3733         * testsuite/libgomp.oacc-fortran/routine-nohost-1.f90: Likewise.
3735 2021-07-29  Aldy Hernandez  <aldyh@redhat.com>
3737         * testsuite/libgomp.graphite/force-parallel-4.c: Adjust for
3738         threader.
3739         * testsuite/libgomp.graphite/force-parallel-8.c: Same.
3741 2021-07-27  Ulrich Drepper  <drepper@gmail.com>
3743         * env.c (wait_policy, stacksize): New static variables,
3744         move out of handle_omp_display_env.
3745         (omp_display_env): New function.  The meat of the old
3746         handle_omp_display_env function.
3747         (handle_omp_display_env): Change to not take parameters
3748         and instead use the global variables.  Only perform
3749         parsing, defer to omp_display_env for the implementation.
3750         (initialize_env): Remove local variables wait_policy and
3751         stacksize.  Don't pass parameters to handle_omp_display_env.
3752         * fortran.c: Add ialias_redirect for omp_display_env.
3753         (omp_display_env_, omp_display_env_8_): New functions.
3754         * libgomp.map (OMP_5.1): New version.  Add omp_display_env,
3755         omp_display_env_, and omp_display_env_8_.
3756         * omp.h.in: Declare omp_display_env.
3757         * omp_lib.f90.in: Likewise.
3758         * omp_lib.h.in: Likewise.
3760 2021-07-27  Thomas Schwinge  <thomas@codesourcery.com>
3761             Julian Brown  <julian@codesourcery.com>
3763         * target.c (gomp_coalesce_buf_add): Update comment.
3764         (gomp_copy_host2dev, gomp_map_vars_internal): Don't expect to see
3765         'aq && cbuf'.
3766         (gomp_map_vars_internal): Only 'if (!aq)', do
3767         'gomp_coalesce_buf_add'.
3768         * testsuite/libgomp.oacc-c-c++-common/async-data-1-2.c: Remove
3769         XFAIL.
3771 2021-07-27  Julian Brown  <julian@codesourcery.com>
3772             Thomas Schwinge  <thomas@codesourcery.com>
3774         * libgomp.h (gomp_copy_host2dev): Update prototype.
3775         * oacc-mem.c (memcpy_tofrom_device, update_dev_host): Add new
3776         argument to gomp_copy_host2dev (false).
3777         * plugin/plugin-gcn.c (struct copy_data): Remove free_src field.
3778         (copy_data): Don't free src.
3779         (queue_push_copy): Remove free_src handling.
3780         (GOMP_OFFLOAD_dev2dev): Update call to queue_push_copy.
3781         (GOMP_OFFLOAD_openacc_async_host2dev): Remove source-data
3782         snapshotting.
3783         (GOMP_OFFLOAD_openacc_async_dev2host): Update call to
3784         queue_push_copy.
3785         * target.c (goacc_device_copy_async): Add SRCADDR_ORIG parameter.
3786         (gomp_copy_host2dev): Add EPHEMERAL parameter.  Snapshot source
3787         data when true, and set up deferred freeing of temporary buffer.
3788         (gomp_copy_dev2host): Update call to goacc_device_copy_async.
3789         (gomp_map_vars_existing, gomp_map_pointer, gomp_attach_pointer)
3790         (gomp_detach_pointer, gomp_map_vars_internal, gomp_update): Update
3791         calls to gomp_copy_host2dev with appropriate ephemeral argument.
3792         * testsuite/libgomp.oacc-c-c++-common/async-data-1-1.c: Remove
3793         XFAIL.
3795 2021-07-27  Thomas Schwinge  <thomas@codesourcery.com>
3796             Tom de Vries  <tom@codesourcery.com>
3798         * testsuite/libgomp.oacc-c-c++-common/async-data-1-1.c: New file.
3799         * testsuite/libgomp.oacc-c-c++-common/async-data-1-2.c: Likewise.
3801 2021-07-27  Thomas Schwinge  <thomas@codesourcery.com>
3803         * testsuite/libgomp.oacc-c-c++-common/acc_prof-init-1.c: Clarify
3804         sequencing of 'async' data copying vs. profiling events.
3805         * testsuite/libgomp.oacc-c-c++-common/acc_prof-parallel-1.c:
3806         Likewise.
3808 2021-07-27  Thomas Schwinge  <thomas@codesourcery.com>
3809             Julian Brown  <julian@codesourcery.com>
3811         * testsuite/libgomp.oacc-c-c++-common/lib-94.c: Fix OpenACC
3812         'async'/'wait' issue.
3813         * testsuite/libgomp.oacc-c-c++-common/lib-95.c: Likewise.
3814         * testsuite/libgomp.oacc-fortran/lib-16-2.f90: Likewise.
3815         * testsuite/libgomp.oacc-fortran/lib-16.f90: Likewise.
3817 2021-07-21  Thomas Schwinge  <thomas@codesourcery.com>
3818             Joseph Myers  <joseph@codesourcery.com>
3819             Cesar Philippidis  <cesar@codesourcery.com>
3821         * testsuite/libgomp.oacc-c-c++-common/routine-nohost-1.c: New
3822         file.
3823         * testsuite/libgomp.oacc-c-c++-common/routine-nohost-2.c:
3824         Likewise.
3825         * testsuite/libgomp.oacc-c-c++-common/routine-nohost-2_2.c:
3826         Likewise.
3827         * testsuite/libgomp.oacc-fortran/routine-nohost-1.f90: Likewise.
3829 2021-07-20  Thomas Schwinge  <thomas@codesourcery.com>
3831         PR target/101484
3832         * configure.tgt [amdgcn*-*-*] (XCFLAGS): Add
3833         '-Wno-error=array-bounds'.
3834         * config/gcn/team.c: Remove '-Werror=array-bounds' work-around.
3835         * libgomp.h [__AMDGCN__]: Likewise.
3837 2021-07-19  Thomas Schwinge  <thomas@codesourcery.com>
3839         PR target/101484
3840         * config/gcn/team.c: Apply '-Werror=array-bounds' work-around.
3841         * libgomp.h [__AMDGCN__]: Likewise.
3843 2021-07-13  Jakub Jelinek  <jakub@redhat.com>
3844             Florian Weimer  <fweimer@redhat.com>
3846         * config/linux/sem.h: Don't include limits.h.
3847         (SEM_WAIT): Define to -__INT_MAX__ - 1 instead of INT_MIN.
3848         * config/linux/affinity.c: Include limits.h.
3850 2021-07-01  Jakub Jelinek  <jakub@redhat.com>
3852         PR middle-end/94366
3853         * testsuite/libgomp.c-c++-common/pr94366.c: New test.
3855 2021-06-29  Tobias Burnus  <tobias@codesourcery.com>
3857         PR other/67300
3858         * testsuite/libgomp.c-c++-common/reduction-16.c: Replace
3859         -foffload=nvptx-none= by -foffload-options=nvptx-none= to
3860         avoid disabling other offload targets.
3861         * testsuite/libgomp.c-c++-common/reduction-5.c: Likewise.
3862         * testsuite/libgomp.c-c++-common/reduction-6.c: Likewise.
3863         * testsuite/libgomp.c/target-44.c: Likewise.
3865 2021-06-29  Tobias Burnus  <tobias@codesourcery.com>
3867         * testsuite/libgomp.fortran/defaultmap-8.f90 (bar): Determine whether
3868         target has shared memory and disable some scalar pointer/allocatable
3869         checks if not as firstprivate does not work.
3871 2021-06-25  Chung-Lin Tang  <cltang@codesourcery.com>
3873         PR testsuite/101114
3874         * testsuite/libgomp.c-c++-common/struct-elem-5.c:
3875         Add "target offload_device_nonshared_as" condition for enabling test.
3877 2021-06-24  Jakub Jelinek  <jakub@redhat.com>
3879         * testsuite/libgomp.c-c++-common/target-in-reduction-1.c: New test.
3880         * testsuite/libgomp.c-c++-common/target-in-reduction-2.c: New test.
3881         * testsuite/libgomp.c++/target-in-reduction-1.C: New test.
3882         * testsuite/libgomp.c++/target-in-reduction-2.C: New test.
3884 2021-06-23  Jakub Jelinek  <jakub@redhat.com>
3886         PR middle-end/101167
3887         * testsuite/libgomp.c-c++-common/task-reduction-15.c: New test.
3889 2021-06-17  Chung-Lin Tang  <cltang@codesourcery.com>
3891         * hashtab.h (htab_clear): New function with initialization code
3892         factored out from...
3893         (htab_create): ...here, adjust to use htab_clear function.
3894         * libgomp.h (REFCOUNT_SPECIAL): New symbol to denote range of
3895         special refcount values, add comments.
3896         (REFCOUNT_INFINITY): Adjust definition to use REFCOUNT_SPECIAL.
3897         (REFCOUNT_LINK): Likewise.
3898         (REFCOUNT_STRUCTELEM): New special refcount range for structure
3899         element siblings.
3900         (REFCOUNT_STRUCTELEM_P): Macro for testing for structure element
3901         sibling maps.
3902         (REFCOUNT_STRUCTELEM_FLAG_FIRST): Flag to indicate first sibling.
3903         (REFCOUNT_STRUCTELEM_FLAG_LAST):  Flag to indicate last sibling.
3904         (REFCOUNT_STRUCTELEM_FIRST_P): Macro to test _FIRST flag.
3905         (REFCOUNT_STRUCTELEM_LAST_P): Macro to test _LAST flag.
3906         (struct splay_tree_key_s): Add structelem_refcount and
3907         structelem_refcount_ptr fields into a union with dynamic_refcount.
3908         Add comments.
3909         (gomp_map_vars): Delete declaration.
3910         (gomp_map_vars_async): Likewise.
3911         (gomp_unmap_vars): Likewise.
3912         (gomp_unmap_vars_async): Likewise.
3913         (goacc_map_vars): New declaration.
3914         (goacc_unmap_vars): Likewise.
3915         * oacc-mem.c (acc_map_data): Adjust to use goacc_map_vars.
3916         (goacc_enter_datum): Likewise.
3917         (goacc_enter_data_internal): Likewise.
3918         * oacc-parallel.c (GOACC_parallel_keyed): Adjust to use goacc_map_vars
3919         and goacc_unmap_vars.
3920         (GOACC_data_start): Adjust to use goacc_map_vars.
3921         (GOACC_data_end): Adjust to use goacc_unmap_vars.
3922         * target.c (hash_entry_type): New typedef.
3923         (htab_alloc): New function hook for hashtab.h.
3924         (htab_free): Likewise.
3925         (htab_hash): Likewise.
3926         (htab_eq): Likewise.
3927         (hashtab.h): Add file include.
3928         (gomp_increment_refcount): New function.
3929         (gomp_decrement_refcount): Likewise.
3930         (gomp_map_vars_existing): Add refcount_set parameter, adjust to use
3931         gomp_increment_refcount.
3932         (gomp_map_fields_existing): Add refcount_set parameter, adjust calls
3933         to gomp_map_vars_existing.
3934         (gomp_map_vars_internal): Add refcount_set parameter, add local openmp_p
3935         variable to guard OpenMP specific paths, adjust calls to
3936         gomp_map_vars_existing, add structure element sibling splay_tree_key
3937         sequence creation code, adjust Fortran map case to avoid increment
3938         under OpenMP.
3939         (gomp_map_vars): Adjust to static, add refcount_set parameter, manage
3940         local refcount_set if caller passed in NULL, adjust call to
3941         gomp_map_vars_internal.
3942         (gomp_map_vars_async): Adjust and rename into...
3943         (goacc_map_vars): ...this new function, adjust call to
3944         gomp_map_vars_internal.
3945         (gomp_remove_splay_tree_key): New function with code factored out from
3946         gomp_remove_var_internal.
3947         (gomp_remove_var_internal): Add code to handle removing multiple
3948         splay_tree_key sequence for structure elements, adjust code to use
3949         gomp_remove_splay_tree_key for splay-tree key removal.
3950         (gomp_unmap_vars_internal): Add refcount_set parameter, adjust to use
3951         gomp_decrement_refcount.
3952         (gomp_unmap_vars): Adjust to static, add refcount_set parameter, manage
3953         local refcount_set if caller passed in NULL, adjust call to
3954         gomp_unmap_vars_internal.
3955         (gomp_unmap_vars_async): Adjust and rename into...
3956         (goacc_unmap_vars): ...this new function, adjust call to
3957         gomp_unmap_vars_internal.
3958         (GOMP_target): Manage refcount_set and adjust calls to gomp_map_vars and
3959         gomp_unmap_vars.
3960         (GOMP_target_ext): Likewise.
3961         (gomp_target_data_fallback): Adjust call to gomp_map_vars.
3962         (GOMP_target_data): Likewise.
3963         (GOMP_target_data_ext): Likewise.
3964         (GOMP_target_end_data): Adjust call to gomp_unmap_vars.
3965         (gomp_exit_data): Add refcount_set parameter, adjust to use
3966         gomp_decrement_refcount, adjust to queue splay-tree keys for removal
3967         after main loop.
3968         (GOMP_target_enter_exit_data): Manage refcount_set and adjust calls to
3969         gomp_map_vars and gomp_exit_data.
3970         (gomp_target_task_fn): Likewise.
3971         * testsuite/libgomp.c-c++-common/refcount-1.c: New testcase.
3972         * testsuite/libgomp.c-c++-common/struct-elem-1.c: New testcase.
3973         * testsuite/libgomp.c-c++-common/struct-elem-2.c: New testcase.
3974         * testsuite/libgomp.c-c++-common/struct-elem-3.c: New testcase.
3975         * testsuite/libgomp.c-c++-common/struct-elem-4.c: New testcase.
3976         * testsuite/libgomp.c-c++-common/struct-elem-5.c: New testcase.
3978 2021-06-15  Tobias Burnus  <tobias@codesourcery.com>
3980         PR fortran/92568
3981         * testsuite/libgomp.fortran/defaultmap-8.f90: New test.
3983 2021-06-10  Andrew Stubbs  <ams@codesourcery.com>
3984             Thomas Schwinge  <thomas@codesourcery.com>
3986         * libgomp.map (GOACC_2.0.2): New symbol version.
3987         * libgomp_g.h (GOACC_enter_data, GOACC_exit_data) New prototypes.
3988         * oacc-mem.c (GOACC_enter_data, GOACC_exit_data) New functions.
3990 2021-06-10  Thomas Schwinge  <thomas@codesourcery.com>
3991             Andrew Stubbs  <ams@codesourcery.com>
3993         * oacc-mem.c (goacc_enter_exit_data_internal): New function,
3994         extracted from...
3995         (GOACC_enter_exit_data): ... here.
3996         (GOACC_declare): Use it.
3998 2021-06-10  Thomas Schwinge  <thomas@codesourcery.com>
4000         * oacc-parallel.c (GOACC_declare): Move...
4001         * oacc-mem.c: ... here.
4002         * libgomp_g.h: Adjust.
4004 2021-06-10  Andrew Stubbs  <ams@codesourcery.com>
4005             Thomas Schwinge  <thomas@codesourcery.com>
4007         * oacc-parallel.c (GOACC_declare): Clean up 'GOMP_MAP_POINTER'
4008         handling.
4010 2021-06-10  Jakub Jelinek  <jakub@redhat.com>
4012         PR tree-optimization/100981
4013         * testsuite/libgomp.fortran/pr100981-2.f90 (cdcdot): Initialize
4014         dsdotr and dsdoti to 0.
4016 2021-06-09  H.J. Lu  <hjl.tools@gmail.com>
4018         * testsuite/lib/libgomp.exp (libgomp_init): Don't add -march=i486
4019         if atomic compare-and-swap is supported on 'int'.
4021 2021-06-09  Richard Biener  <rguenther@suse.de>
4023         PR tree-optimization/100981
4024         * testsuite/libgomp.fortran/pr100981-2.f90: New testcase.
4026 2021-06-08  Thomas Schwinge  <thomas@codesourcery.com>
4028         * plugin/plugin-gcn.c (gcn_exec): Force 'num_workers (1)'
4029         unconditionally.
4030         * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c:
4031         Update.
4032         * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Likewise.
4033         * testsuite/libgomp.oacc-c-c++-common/routine-wv-2.c: Likewise.
4035 2021-06-08  Thomas Schwinge  <thomas@codesourcery.com>
4037         * testsuite/libgomp.oacc-c-c++-common/lib-11.c: Enable for all but
4038         '-DACC_MEM_SHARED=0'.
4039         * testsuite/libgomp.oacc-c-c++-common/lib-13.c: Likewise.
4040         * testsuite/libgomp.oacc-c-c++-common/lib-14.c: Likewise.
4041         * testsuite/libgomp.oacc-c-c++-common/lib-15.c: Likewise.
4042         * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
4043         * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
4044         * testsuite/libgomp.oacc-c-c++-common/lib-24.c: Likewise.
4045         * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
4046         * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
4047         * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
4048         * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
4049         * testsuite/libgomp.oacc-c-c++-common/lib-88.c: Likewise.
4050         * testsuite/libgomp.oacc-c-c++-common/lib-89.c: Likewise.
4051         * testsuite/libgomp.oacc-c-c++-common/lib-92.c: Likewise.
4052         * testsuite/libgomp.oacc-fortran/lib-14.f90: Likewise.
4053         * testsuite/libgomp.oacc-c-c++-common/lib-5.c: Add
4054         'acc_device_radeon' testing.
4055         * testsuite/libgomp.oacc-c-c++-common/lib-6.c: Likewise.
4056         * testsuite/libgomp.oacc-fortran/lib-5.f90: Likewise.
4057         * testsuite/libgomp.oacc-fortran/lib-7.f90: Likewise.
4058         * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Enable for all.
4059         * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
4060         * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
4061         * testsuite/libgomp.oacc-c-c++-common/lib-86.c: Likewise.
4062         * testsuite/libgomp.oacc-c-c++-common/lib-87.c: Likewise.
4063         * testsuite/libgomp.oacc-fortran/lib-10.f90: Likewise.
4064         * testsuite/libgomp.oacc-fortran/lib-8.f90: Likewise.
4065         * testsuite/libgomp.oacc-c-c++-common/lib-57.c: Improve checking
4066         for non-'openacc_nvidia_accel_selected'.
4067         * testsuite/libgomp.oacc-c-c++-common/lib-58.c: Likewise.
4068         * testsuite/libgomp.oacc-c-c++-common/lib-62.c: Clarify that "Not
4069         all implement this checking".
4070         * testsuite/libgomp.oacc-c-c++-common/lib-63.c: Likewise.
4071         * testsuite/libgomp.oacc-c-c++-common/lib-64.c: Likewise.
4072         * testsuite/libgomp.oacc-c-c++-common/lib-65.c: Likewise.
4073         * testsuite/libgomp.oacc-c-c++-common/lib-67.c: Likewise.
4074         * testsuite/libgomp.oacc-c-c++-common/lib-68.c: Likewise.
4076 2021-06-08  Thomas Schwinge  <thomas@codesourcery.com>
4078         * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Simplify.
4079         * testsuite/libgomp.oacc-fortran/parallel-dims-aux.c: Update.
4081 2021-06-08  Thomas Schwinge  <thomas@codesourcery.com>
4083         * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c: Fix
4084         for 'acc_device_radeon'.
4086 2021-06-08  Thomas Schwinge  <thomas@codesourcery.com>
4088         * testsuite/libgomp.oacc-c-c++-common/firstprivate-1.c: Enhance
4089         for non-'acc_device_nvidia'.
4091 2021-06-08  Thomas Schwinge  <thomas@codesourcery.com>
4093         * testsuite/libgomp.oacc-c-c++-common/acc_on_device-1.c: Add
4094         'acc_device_radeon' testing.
4095         * testsuite/libgomp.oacc-fortran/acc_on_device-1-1.f90: Likewise.
4096         * testsuite/libgomp.oacc-fortran/acc_on_device-1-2.f: Likewise.
4097         * testsuite/libgomp.oacc-fortran/acc_on_device-1-3.f: Likewise.
4099 2021-06-08  Thomas Schwinge  <thomas@codesourcery.com>
4101         * testsuite/libgomp.oacc-c-c++-common/async_queue-1.c: Don't
4102         require 'openacc_nvidia_accel_selected'.  Fix up for
4103         'ACC_DEVICE_TYPE_radeon'.
4105 2021-06-08  Thomas Schwinge  <thomas@codesourcery.com>
4107         * testsuite/libgomp.oacc-c++/declare-1.C: Don't require
4108         'openacc_nvidia_accel_selected'.
4109         * testsuite/libgomp.oacc-c-c++-common/declare-3.c: Likewise.
4111 2021-06-08  Thomas Schwinge  <thomas@codesourcery.com>
4113         * testsuite/lib/libgomp.exp
4114         (check_effective_target_openacc_radeon_accel_selected):
4115         Streamline.
4117 2021-06-08  Thomas Schwinge  <thomas@codesourcery.com>
4119         * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Revert
4120         PR80547 workaround.
4122 2021-06-08  Thomas Schwinge  <thomas@codesourcery.com>
4124         * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c
4125         <acc_device_nvidia>: Update comment.
4127 2021-05-28  Tobias Burnus  <tobias@codesourcery.com>
4129         * testsuite/libgomp.fortran/depend-iterator-2.f90: New test.
4131 2021-05-27  Jakub Jelinek  <jakub@redhat.com>
4133         * testsuite/lib/libgomp.exp (check_effective_target_openacc_cuda,
4134         check_effective_target_openacc_cublas,
4135         check_effective_target_openacc_cudart): New.
4136         * testsuite/libgomp.oacc-fortran/host_data-4.f90: Require effective
4137         target openacc_cublas.
4138         * testsuite/libgomp.oacc-fortran/host_data-2.f90: Likewise.
4139         * testsuite/libgomp.oacc-fortran/host_data-3.f: Likewise.
4140         * testsuite/libgomp.oacc-c-c++-common/lib-91.c: Require effective
4141         target openacc_cuda.
4142         * testsuite/libgomp.oacc-c-c++-common/lib-70.c: Likewise.
4143         * testsuite/libgomp.oacc-c-c++-common/lib-90.c: Likewise.
4144         * testsuite/libgomp.oacc-c-c++-common/lib-75.c: Likewise.
4145         * testsuite/libgomp.oacc-c-c++-common/lib-69.c: Likewise.
4146         * testsuite/libgomp.oacc-c-c++-common/lib-74.c: Likewise.
4147         * testsuite/libgomp.oacc-c-c++-common/lib-81.c: Likewise.
4148         * testsuite/libgomp.oacc-c-c++-common/lib-72.c: Likewise.
4149         * testsuite/libgomp.oacc-c-c++-common/lib-85.c: Likewise.
4150         * testsuite/libgomp.oacc-c-c++-common/pr87835.c: Likewise.
4151         * testsuite/libgomp.oacc-c-c++-common/lib-82.c: Likewise.
4152         * testsuite/libgomp.oacc-c-c++-common/lib-73.c: Likewise.
4153         * testsuite/libgomp.oacc-c-c++-common/lib-83.c: Likewise.
4154         * testsuite/libgomp.oacc-c-c++-common/lib-78.c: Likewise.
4155         * testsuite/libgomp.oacc-c-c++-common/lib-76.c: Likewise.
4156         * testsuite/libgomp.oacc-c-c++-common/lib-84.c: Likewise.
4157         * testsuite/libgomp.oacc-c-c++-common/lib-79.c: Likewise.
4158         * testsuite/libgomp.oacc-c-c++-common/host_data-1.c: Require effective
4159         targets openacc_cublas and openacc_cudart.
4160         * testsuite/libgomp.oacc-c-c++-common/context-1.c: Likewise.
4161         * testsuite/libgomp.oacc-c-c++-common/context-2.c: Likewise.
4162         * testsuite/libgomp.oacc-c-c++-common/context-3.c: Likewise.
4163         * testsuite/libgomp.oacc-c-c++-common/context-4.c: Likewise.
4164         * testsuite/libgomp.oacc-c-c++-common/acc_get_property-nvptx.c:
4165         Require effective target openacc_cudart.
4166         * testsuite/libgomp.oacc-c-c++-common/asyncwait-1.c: Add -DUSE_CUDA_H
4167         for effective target openacc_cuda and add && defined USE_CUDA_H to
4168         preprocessor conditionals.  Guard -lcuda also on openacc_cuda
4169         effective target.
4171 2021-05-26  Jakub Jelinek  <jakub@redhat.com>
4173         PR libgomp/100573
4174         * config/nvptx/target.c (GOMP_target_ext, GOMP_target_data_ext,
4175         GOMP_target_end_data, GOMP_target_update_ext,
4176         GOMP_target_enter_exit_data): New dummy entrypoints.
4177         * config/gcn/target.c (GOMP_target_ext, GOMP_target_data_ext,
4178         GOMP_target_end_data, GOMP_target_update_ext,
4179         GOMP_target_enter_exit_data): Likewise.
4180         * testsuite/libgomp.c-c++-common/for-3.c (DO_PRAGMA, OMPTEAMS,
4181         OMPFROM, OMPTO): Define.
4182         (main): Remove #pragma omp target teams around all the tests.
4183         * testsuite/libgomp.c-c++-common/target-41.c: New test.
4184         * testsuite/libgomp.c-c++-common/target-42.c: New test.
4186 2021-05-25  Jakub Jelinek  <jakub@redhat.com>
4188         PR middle-end/99928
4189         * testsuite/libgomp.c-c++-common/reduction-17.c: New test.
4191 2021-05-24  Tobias Burnus  <tobias@codesourcery.com>
4193         PR fortran/86470
4194         * testsuite/libgomp.fortran/class-firstprivate-1.f90: New test.
4195         * testsuite/libgomp.fortran/class-firstprivate-2.f90: New test.
4196         * testsuite/libgomp.fortran/class-firstprivate-3.f90: New test.
4198 2021-05-22  Thomas Schwinge  <thomas@codesourcery.com>
4200         PR testsuite/90115
4201         * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Prune
4202         uninteresting/varying diagnostics.
4204 2021-05-21  Thomas Schwinge  <thomas@codesourcery.com>
4206         PR middle-end/90115
4207         * testsuite/libgomp.oacc-c-c++-common/static-variable-1.c: Update.
4208         * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Likewise.
4210 2021-05-21  Thomas Schwinge  <thomas@codesourcery.com>
4212         PR middle-end/90115
4213         * testsuite/libgomp.oacc-fortran/private-atomic-1-vector.f90: New
4214         file.
4215         * testsuite/libgomp.oacc-c-c++-common/firstprivate-1.c: Update.
4216         * testsuite/libgomp.oacc-c-c++-common/host_data-7.c: Likewise.
4217         * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c:
4218         Likewise.
4219         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-1.c:
4220         Likewise.
4221         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-2.c:
4222         Likewise.
4223         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-3.c:
4224         Likewise.
4225         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-4.c:
4226         Likewise.
4227         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-5.c:
4228         Likewise.
4229         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-1.c:
4230         Likewise.
4231         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-2.c:
4232         Likewise.
4233         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-3.c:
4234         Likewise.
4235         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-4.c:
4236         Likewise.
4237         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-5.c:
4238         Likewise.
4239         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-6.c:
4240         Likewise.
4241         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-vector-1.c:
4242         Likewise.
4243         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-vector-2.c:
4244         Likewise.
4245         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-1.c:
4246         Likewise.
4247         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-2.c:
4248         Likewise.
4249         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-3.c:
4250         Likewise.
4251         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-4.c:
4252         Likewise.
4253         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-5.c:
4254         Likewise.
4255         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-6.c:
4256         Likewise.
4257         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-7.c:
4258         Likewise.
4259         * testsuite/libgomp.oacc-c-c++-common/loop-g-1.c: Likewise.
4260         * testsuite/libgomp.oacc-c-c++-common/loop-g-2.c: Likewise.
4261         * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c: Likewise.
4262         * testsuite/libgomp.oacc-c-c++-common/loop-gwv-2.c: Likewise.
4263         * testsuite/libgomp.oacc-c-c++-common/loop-red-g-1.c: Likewise.
4264         * testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c: Likewise.
4265         * testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c: Likewise.
4266         * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c: Likewise.
4267         * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c: Likewise.
4268         * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c: Likewise.
4269         * testsuite/libgomp.oacc-c-c++-common/loop-red-wv-1.c: Likewise.
4270         * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c: Likewise.
4271         * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c: Likewise.
4272         * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c: Likewise.
4273         * testsuite/libgomp.oacc-c-c++-common/parallel-reduction.c:
4274         Likewise.
4275         * testsuite/libgomp.oacc-c-c++-common/private-atomic-1-gang.c:
4276         Likewise.
4277         * testsuite/libgomp.oacc-c-c++-common/private-atomic-1.c:
4278         Likewise.
4279         * testsuite/libgomp.oacc-c-c++-common/private-variables.c:
4280         Likewise.
4281         * testsuite/libgomp.oacc-c-c++-common/routine-4.c: Likewise.
4282         * testsuite/libgomp.oacc-c-c++-common/static-variable-1.c:
4283         Likewise.
4284         * testsuite/libgomp.oacc-fortran/acc_on_device-1-1.f90: Likewise.
4285         * testsuite/libgomp.oacc-fortran/acc_on_device-1-2.f: Likewise.
4286         * testsuite/libgomp.oacc-fortran/acc_on_device-1-3.f: Likewise.
4287         * testsuite/libgomp.oacc-fortran/declare-1.f90: Likewise.
4288         * testsuite/libgomp.oacc-fortran/host_data-5.F90: Likewise.
4289         * testsuite/libgomp.oacc-fortran/if-1.f90: Likewise.
4290         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-1.f90:
4291         Likewise.
4292         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-2.f90:
4293         Likewise.
4294         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-3.f90:
4295         Likewise.
4296         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-6.f90:
4297         Likewise.
4298         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-vector-1.f90:
4299         Likewise.
4300         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-vector-2.f90:
4301         Likewise.
4302         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-1.f90:
4303         Likewise.
4304         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-2.f90:
4305         Likewise.
4306         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-3.f90:
4307         Likewise.
4308         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-4.f90:
4309         Likewise.
4310         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-5.f90:
4311         Likewise.
4312         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-6.f90:
4313         Likewise.
4314         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-7.f90:
4315         Likewise.
4316         * testsuite/libgomp.oacc-fortran/optional-private.f90: Likewise.
4317         * testsuite/libgomp.oacc-fortran/parallel-dims.f90: Likewise.
4318         * testsuite/libgomp.oacc-fortran/private-atomic-1-gang.f90:
4319         Likewise.
4320         * testsuite/libgomp.oacc-fortran/private-atomic-1-worker.f90:
4321         Likewise.
4322         * testsuite/libgomp.oacc-fortran/private-variables.f90: Likewise.
4323         * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Likewise.
4324         * testsuite/libgomp.oacc-fortran/routine-7.f90: Likewise.
4326 2021-05-21  Julian Brown  <julian@codesourcery.com>
4327             Chung-Lin Tang  <cltang@codesourcery.com>
4328             Thomas Schwinge  <thomas@codesourcery.com>
4330         PR middle-end/90115
4331         * testsuite/libgomp.oacc-c-c++-common/private-atomic-1-gang.c: New
4332         test.
4333         * testsuite/libgomp.oacc-fortran/private-atomic-1-gang.f90:
4334         Likewise.
4335         * testsuite/libgomp.oacc-fortran/private-atomic-1-worker.f90:
4336         Likewise.
4338 2021-05-21  Thomas Schwinge  <thomas@codesourcery.com>
4340         * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Don't skip
4341         for nvptx offloading.
4343 2021-05-21  Tobias Burnus  <tobias@codesourcery.com>
4345         * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: New.
4347 2021-05-19  Thomas Schwinge  <thomas@codesourcery.com>
4349         PR target/83812
4350         * testsuite/libgomp.oacc-c-c++-common/private-atomic-1.c: New.
4352 2021-05-19  Julian Brown  <julian@codesourcery.com>
4354         * testsuite/libgomp.oacc-c-c++-common/loop-gwv-2.c: New.
4356 2021-05-18  Thomas Schwinge  <thomas@codesourcery.com>
4358         * testsuite/lib/libgomp.exp
4359         (check_effective_target_offload_target_nvptx): Don't shadow global
4360         'offload_targets' variable.
4362 2021-05-18  Thomas Schwinge  <thomas@codesourcery.com>
4364         * testsuite/libgomp.c-c++-common/reduction-5.c: Restrict
4365         '-latomic' to nvptx offloading compilation.
4366         * testsuite/libgomp.c-c++-common/reduction-6.c: Likewise.
4368 2021-05-18  Thomas Schwinge  <thomas@codesourcery.com>
4370         * testsuite/libgomp.c/target-44.c: Restrict '-latomic' to nvptx
4371         offloading compilation.
4373 2021-05-17  Kwok Cheung Yeung  <kcy@codesourcery.com>
4375         * task.c (omp_fulfill_event): Call gomp_team_barrier_set_task_pending
4376         if new tasks generated.
4377         * testsuite/libgomp.c-c++-common/task-detach-13.c: New.
4379 2021-05-14  Tobias Burnus  <tobias@codesourcery.com>
4381         * testsuite/libgomp.fortran/parallel-master.f90: New test.
4383 2021-05-13  Martin Liska  <mliska@suse.cz>
4385         PR testsuite/100569
4386         * testsuite/libgomp.c/omp-nested-3.c: Prune new LTO warning.
4387         * testsuite/libgomp.c/pr46032-2.c: Likewise.
4388         * testsuite/libgomp.oacc-c-c++-common/data-clauses-kernels-ipa-pta.c: Likewise.
4389         * testsuite/libgomp.oacc-c-c++-common/data-clauses-parallel-ipa-pta.c: Likewise.
4391 2021-05-12  Tobias Burnus  <tobias@codesourcery.com>
4393         * testsuite/libgomp.c-c++-common/task-detach-12.c: New test.
4394         * testsuite/libgomp.fortran/task-detach-12.f90: New test.
4396 2021-05-11  Jakub Jelinek  <jakub@redhat.com>
4398         PR middle-end/100471
4399         * taskloop.c (GOMP_taskloop): If GOMP_TASK_FLAG_REDUCTION and not
4400         GOMP_TASK_FLAG_NOGROUP, when doing early return clear the task
4401         reduction pointer.
4402         * testsuite/libgomp.c/task-reduction-4.c: New test.
4404 2021-05-07  Tobias Burnus  <tobias@codesourcery.com>
4405             Tom de Vries  <tdevries@suse.de>
4407         * testsuite/libgomp.c-c++-common/reduction-5.c: New test, testing
4408         complex/floating-point || + && reduction with 'omp target'.
4409         * testsuite/libgomp.c-c++-common/reduction-6.c: Likewise.
4411 2021-05-04  Tobias Burnus  <tobias@codesourcery.com>
4413         * testsuite/libgomp.c-c++-common/reduction-1.c: New test.
4414         * testsuite/libgomp.c-c++-common/reduction-2.c: New test.
4415         * testsuite/libgomp.c-c++-common/reduction-3.c: New test.
4416         * testsuite/libgomp.c-c++-common/reduction-4.c: New file.
4418 2021-05-04  Tobias Burnus  <tobias@codesourcery.com>
4420         PR testsuite/100397
4421         * testsuite/libgomp.fortran/depobj-1.f90 (dep2, dep3): Move var
4422         declaration to scope of non-'depend'-guarded assignment to avoid races.
4424 2021-05-03  Tom de Vries  <tdevries@suse.de>
4426         PR target/100321
4427         * testsuite/libgomp.c/target-44.c: New test.
4429 2021-04-30  Roman Zhuykov  <zhroma@ispras.ru>
4431         * testsuite/libgomp.oacc-c-c++-common/atomic_capture-3.c: New test.
4433 2021-04-29  Tom de Vries  <tdevries@suse.de>
4435         * testsuite/libgomp.c/pr81778.c: New test.
4437 2021-04-29  Tom de Vries  <tdevries@suse.de>
4439         PR target/100232
4440         * testsuite/libgomp.c/target-43.c: New file.
4442 2021-04-28  Jakub Jelinek  <jakub@redhat.com>
4443             Tobias Burnus  <tobias@codesourcery.com>
4445         * configure.ac (OFFLOAD_DEFAULTED): AC_DEFINE if offload-defaulted.
4446         * target.c (gomp_load_plugin_for_device): If set and if a plugin
4447         can't be dlopened, silently assume it has no devices.
4448         * Makefile.in: Regenerate.
4449         * config.h.in: Regenerate.
4450         * configure: Regenerate.
4452 2021-04-26  Tobias Burnus  <tobias@codesourcery.com>
4454         * testsuite/libgomp.oacc-fortran/par-reduction-2-1.f:
4455         Use [Ww]arning in dg-bogus as FE diagnostic and default
4456         diagnostic differ and the result depends on ENABLE_OFFLOAD.
4457         * testsuite/libgomp.oacc-fortran/par-reduction-2-2.f: Likewise.
4458         * testsuite/libgomp.oacc-fortran/parallel-dims.f90: Likewise.
4459         * testsuite/libgomp.oacc-fortran/parallel-reduction.f90: Likewise.
4461 2021-04-26  Tobias Burnus  <tobias@codesourcery.com>
4463         * testsuite/libgomp.oacc-fortran/par-reduction-2-1.f:
4464         Correct spelling in dg-bogus to match -Wopenacc-parallelism.
4465         * testsuite/libgomp.oacc-fortran/par-reduction-2-2.f: Likewise.
4466         * testsuite/libgomp.oacc-fortran/parallel-dims.f90: Likewise.
4467         * testsuite/libgomp.oacc-fortran/parallel-reduction.f90: Likewise.
4469 2021-04-26  Thomas Schwinge  <thomas@codesourcery.com>
4470             Nathan Sidwell  <nathan@codesourcery.com>
4471             Tom de Vries  <vries@codesourcery.com>
4472             Julian Brown  <julian@codesourcery.com>
4473             Kwok Cheung Yeung  <kcy@codesourcery.com>
4475         * testsuite/libgomp.oacc-c-c++-common/firstprivate-1.c: Specify
4476         '-Wopenacc-parallelism', and match diagnostics, as appropriate.
4477         * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Likewise.
4478         * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c: Likewise.
4479         * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c: Likewise.
4480         * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c: Likewise.
4481         * testsuite/libgomp.oacc-c-c++-common/mode-transitions.c:
4482         Likewise.
4483         * testsuite/libgomp.oacc-c-c++-common/par-reduction-1.c: Likewise.
4484         * testsuite/libgomp.oacc-c-c++-common/par-reduction-2.c: Likewise.
4485         * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Likewise.
4486         * testsuite/libgomp.oacc-c-c++-common/parallel-reduction.c:
4487         Likewise.
4488         * testsuite/libgomp.oacc-c-c++-common/pr85381-3.c: Likewise.
4489         * testsuite/libgomp.oacc-c-c++-common/private-variables.c:
4490         Likewise.
4491         * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Likewise.
4492         * testsuite/libgomp.oacc-c-c++-common/reduction-7.c: Likewise.
4493         * testsuite/libgomp.oacc-c-c++-common/routine-g-1.c: Likewise.
4494         * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c: Likewise.
4495         * testsuite/libgomp.oacc-c-c++-common/routine-wv-2.c: Likewise.
4496         * testsuite/libgomp.oacc-c-c++-common/static-variable-1.c:
4497         Likewise.
4498         * testsuite/libgomp.oacc-fortran/optional-private.f90: Likewise.
4499         * testsuite/libgomp.oacc-fortran/par-reduction-2-1.f: Likewise.
4500         * testsuite/libgomp.oacc-fortran/par-reduction-2-2.f: Likewise.
4501         * testsuite/libgomp.oacc-fortran/parallel-dims.f90: Likewise.
4502         * testsuite/libgomp.oacc-fortran/parallel-reduction.f90: Likewise.
4503         * testsuite/libgomp.oacc-fortran/pr84028.f90: Likewise.
4504         * testsuite/libgomp.oacc-fortran/private-variables.f90: Likewise.
4505         * testsuite/libgomp.oacc-fortran/reduction-1.f90: Likewise.
4506         * testsuite/libgomp.oacc-fortran/reduction-5.f90: Likewise.
4507         * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
4508         * testsuite/libgomp.oacc-fortran/routine-7.f90: Likewise.
4510 2021-04-26  Thomas Schwinge  <thomas@codesourcery.com>
4512         * testsuite/libgomp.oacc-c-c++-common/par-reduction-1.c: Don't
4513         compile with '-w'.
4514         * testsuite/libgomp.oacc-c-c++-common/par-reduction-2.c: Likewise.
4515         * testsuite/libgomp.oacc-c-c++-common/parallel-reduction.c:
4516         Likewise.
4517         * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Likewise.
4518         * testsuite/libgomp.oacc-c-c++-common/reduction-6.c: Likewise.
4519         * testsuite/libgomp.oacc-fortran/parallel-reduction.f90: Likewise.
4520         * testsuite/libgomp.oacc-fortran/reduction-1.f90: Likewise.
4521         * testsuite/libgomp.oacc-fortran/reduction-5.f90: Likewise.
4522         * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
4523         * testsuite/libgomp.oacc-fortran/reduction-7.f90: Likewise.
4525 2021-04-22  Richard Biener  <rguenther@suse.de>
4527         * testsuite/libgomp.c-c++-common/reduction-16.c: Use -latomic
4528         only on nvptx-none.
4530 2021-04-21  Tobias Burnus  <tobias@codesourcery.com>
4532         * testsuite/libgomp.fortran/depobj-1.f90: Use omp_lib's
4533         omp_depend_kind instead of defining it as 16.
4535 2021-04-21  Tobias Burnus  <tobias@codesourcery.com>
4537         * testsuite/lib/libgomp.exp (offload_target_to_openacc_device_type):
4538         New, based on check_effective_target_offload_target_nvptx.
4539         (check_effective_target_offload_target_nvptx): Call it.
4540         (check_effective_target_offload_target_amdgcn): New.
4541         * testsuite/libgomp.c-c++-common/function-not-offloaded.c:
4542         Require target offload_target_nvptx || offload_target_amdgcn.
4543         * testsuite/libgomp.c-c++-common/variable-not-offloaded.c: Likewise.
4544         * testsuite/libgomp.c/pr86416-1.c: Likewise.
4545         * testsuite/libgomp.c/pr86416-2.c: Likewise.
4547 2021-04-21  Tobias Burnus  <tobias@codesourcery.com>
4549         * testsuite/libgomp.fortran/depobj-1.f90: New test.
4551 2021-04-19  Thomas Schwinge  <thomas@codesourcery.com>
4553         * testsuite/libgomp.oacc-c-c++-common/declare-vla-kernels-decompose-ice-1.c:
4554         '-fopenacc-kernels=[...]' -> '--param=openacc-kernels=[...]'.
4555         * testsuite/libgomp.oacc-c-c++-common/declare-vla-kernels-decompose.c:
4556         Likewise.
4557         * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c:
4558         Likewise.
4559         * testsuite/libgomp.oacc-fortran/pr94358-1.f90: Likewise.
4561 2021-04-15  Thomas Schwinge  <thomas@codesourcery.com>
4563         PR target/99555
4564         * testsuite/lib/libgomp.exp
4565         (check_effective_target_offload_device_nvptx): New.
4566         * testsuite/libgomp.c/pr99555-1.c <nvptx offload device>: Until
4567         resolved, make sure that we exit quickly, with error status,
4568         XFAILed.
4569         * testsuite/libgomp.c-c++-common/task-detach-6.c: Likewise.
4570         * testsuite/libgomp.fortran/task-detach-6.f90: Likewise.
4572 2021-04-14  Jakub Jelinek  <jakub@redhat.com>
4574         PR testsuite/100071
4575         * testsuite/libgomp.fortran/alloc-1.F90: Call c_f_pointer after last
4576         cp = omp_alloc with cp, p arguments instead of cq, q and call
4577         c_f_pointer after last cq = omp_alloc with cq, q.
4579 2021-04-11  Hafiz Abid Qadeer  <abidh@codesourcery.com>
4581         PR middle-end/98088
4582         * testsuite/libgomp.oacc-c-c++-common/collapse-2.c: Add check
4583         for loop with GT/GE condition.
4584         * testsuite/libgomp.oacc-c-c++-common/collapse-3.c: Likewise.
4586 2021-04-09  Thomas Schwinge  <thomas@codesourcery.com>
4588         PR middle-end/84991
4589         PR middle-end/84992
4590         PR middle-end/90779
4591         * testsuite/libgomp.oacc-c-c++-common/static-variable-1.c: New.
4593 2021-04-09  Jakub Jelinek  <jakub@redhat.com>
4595         PR libgomp/99984
4596         * team.c (gomp_thread_start): Call pthread_setspecific for
4597         !(defined HAVE_TLS || defined USE_EMUTLS) only after local_thr
4598         has been initialized to avoid false positive warning.
4600 2021-03-29  Tobias Burnus  <tobias@codesourcery.com>
4602         PR target/99555
4603         * testsuite/lib/on_device_arch.c: Move to ...
4604         * testsuite/libgomp.c-c++-common/on_device_arch.h: ... here.
4605         * testsuite/libgomp.fortran/on_device_arch.c: New file;
4606         #include on_device_arch.h.
4607         * testsuite/libgomp.c-c++-common/task-detach-6.c: #include
4608         on_device_arch.h instead of using dg-additional-source.
4609         * testsuite/libgomp.c/pr99555-1.c: Likewise.
4610         * testsuite/libgomp.fortran/task-detach-6.f90: Update to use
4611         on_device_arch.c without relative paths.
4613 2021-03-25  Thomas Schwinge  <thomas@codesourcery.com>
4615         * plugin/plugin-gcn.c (init_environment_variables): Don't prepend
4616         the 'HSA_RUNTIME_LIB' path to 'libhsa-runtime64.so'.
4617         * plugin/configfrag.ac (HSA_RUNTIME_LIB): Clean up.
4618         * config.h.in: Regenerate.
4619         * configure: Likewise.
4621 2021-03-25  Thomas Schwinge  <thomas@codesourcery.com>
4623         PR target/99555
4624         * testsuite/lib/on_device_arch.c: New file.
4625         * testsuite/libgomp.c/pr99555-1.c: Likewise.
4626         * testsuite/libgomp.c-c++-common/task-detach-6.c: Until resolved,
4627         skip for nvptx offloading, with error status.
4628         * testsuite/libgomp.fortran/task-detach-6.f90: Likewise.
4630 2021-03-25  Thomas Schwinge  <thomas@codesourcery.com>
4632         * testsuite/libgomp.oacc-fortran/derivedtypes-arrays-1.f90:
4633         OpenACC 'serial' construct diagnostic for nvptx offloading.
4635 2021-03-15  Tobias Burnus  <tobias@codesourcery.com>
4637         PR c++/99509
4638         * testsuite/libgomp.c-c++-common/declare_target-1.c: New test.
4640 2021-03-12  Tobias Burnus  <tobias@codesourcery.com>
4642         PR fortran/98858
4643         * testsuite/libgomp.fortran/use_device_ptr-3.f90: New test.
4645 2021-03-04  Jakub Jelinek  <jakub@redhat.com>
4647         * configure.ac: Add AC_CHECK_SIZEOF([void *]).
4648         * plugin/configfrag.ac: Check $ac_cv_sizeof_void_p value instead of
4649         checking of -m32 or -mx32 options on the command line.
4650         * config.h.in: Regenerated.
4651         * configure: Regenerated.
4653 2021-02-27  Iain Sandoe  <iain@sandoe.co.uk>
4655         * testsuite/libgomp.c-c++-common/pr96390.c: Require alias
4656         support from the target.
4658 2021-02-25  Kwok Cheung Yeung  <kcy@codesourcery.com>
4659             Jakub Jelinek  <jakub@redhat.com>
4661         PR libgomp/98738
4662         * libgomp.h (enum gomp_task_kind): Add GOMP_TASK_DETACHED.
4663         (struct gomp_task): Replace detach and completion_sem fields with
4664         union containing completion_sem and detach_team.  Add deferred_p
4665         field.
4666         (struct gomp_team): Remove task_detach_queue.
4667         * task.c: Include assert.h.
4668         (gomp_init_task): Initialize deferred_p and completion_sem fields.
4669         Rearrange initialization order of fields.
4670         (task_fulfilled_p): Delete.
4671         (GOMP_task): Use address of task as the event handle.  Remove
4672         initialization of detach field.  Initialize deferred_p field.
4673         Use automatic local for completion_sem.  Initialize detach_team field
4674         for deferred tasks.
4675         (gomp_barrier_handle_tasks): Remove handling of task_detach_queue.
4676         Set kind of suspended detach task to GOMP_TASK_DETACHED and
4677         decrement task_running_count.  Move finish_cancelled block out of
4678         else branch.  Relocate call to gomp_team_barrier_done.
4679         (GOMP_taskwait): Handle tasks with completion events that have not
4680         been fulfilled.
4681         (GOMP_taskgroup_end): Likewise.
4682         (omp_fulfill_event): Use address of task as event handle.  Post to
4683         completion_sem for undeferred tasks.  Clear detach_team if task
4684         has not finished.  For finished tasks, handle post-execution tasks,
4685         call gomp_team_barrier_wake if necessary, and free task.
4686         * team.c (gomp_new_team): Remove initialization of task_detach_queue.
4687         (free_team): Remove free of task_detach_queue.
4688         * testsuite/libgomp.c-c++-common/task-detach-1.c: Fix formatting.
4689         * testsuite/libgomp.c-c++-common/task-detach-2.c: Fix formatting.
4690         * testsuite/libgomp.c-c++-common/task-detach-3.c: Fix formatting.
4691         * testsuite/libgomp.c-c++-common/task-detach-4.c: Fix formatting.
4692         * testsuite/libgomp.c-c++-common/task-detach-5.c: Fix formatting.
4693         Change data-sharing of detach events on enclosing parallel to private.
4694         * testsuite/libgomp.c-c++-common/task-detach-6.c: Likewise.  Remove
4695         taskwait directive.
4696         * testsuite/libgomp.c-c++-common/task-detach-7.c: New.
4697         * testsuite/libgomp.c-c++-common/task-detach-8.c: New.
4698         * testsuite/libgomp.c-c++-common/task-detach-9.c: New.
4699         * testsuite/libgomp.c-c++-common/task-detach-10.c: New.
4700         * testsuite/libgomp.c-c++-common/task-detach-11.c: New.
4701         * testsuite/libgomp.fortran/task-detach-1.f90: Fix formatting.
4702         * testsuite/libgomp.fortran/task-detach-2.f90: Fix formatting.
4703         * testsuite/libgomp.fortran/task-detach-3.f90: Fix formatting.
4704         * testsuite/libgomp.fortran/task-detach-4.f90: Fix formatting.
4705         * testsuite/libgomp.fortran/task-detach-5.f90: Fix formatting.
4706         Change data-sharing of detach events on enclosing parallel to private.
4707         * testsuite/libgomp.fortran/task-detach-6.f90: Likewise.  Remove
4708         taskwait directive.
4709         * testsuite/libgomp.fortran/task-detach-7.f90: New.
4710         * testsuite/libgomp.fortran/task-detach-8.f90: New.
4711         * testsuite/libgomp.fortran/task-detach-9.f90: New.
4712         * testsuite/libgomp.fortran/task-detach-10.f90: New.
4713         * testsuite/libgomp.fortran/task-detach-11.f90: New.
4715 2021-02-22  Tobias Burnus  <tobias@codesourcery.com>
4717         PR fortran/99171
4718         * testsuite/libgomp.fortran/dummy-procs-1.f90: New test.
4720 2021-02-17  Julian Brown  <julian@codesourcery.com>
4722         * testsuite/libgomp.oacc-fortran/array-stride-dt-1.f90: Remove
4723         expected errors.
4725 2021-02-17  Julian Brown  <julian@codesourcery.com>
4727         * testsuite/libgomp.oacc-fortran/derivedtypes-arrays-1.f90: New test.
4728         * testsuite/libgomp.oacc-fortran/update-dt-array.f90: Likewise.
4730 2021-02-11  UroÅ¡ Bizjak  <ubizjak@gmail.com>
4732         * config/linux/x86/futex.h (__futex_wait):
4733         Revert output type back to long.
4734         (__futex_wake): Ditto.
4735         (futex_wait): Update for revert.
4736         (futex_wake): Ditto.
4738 2021-02-11  UroÅ¡ Bizjak  <ubizjak@gmail.com>
4740         * config/linux/x86/futex.h (__futex_wait): New static inline
4741         wrapper function.  Correct output type to int and
4742         timeout type to void *.
4743         (__futex_wake): New static inline wrapper function.
4744         Correct output type to int.
4745         (futex_wait): Use __futex_wait.
4746         (futex_wake): Use __futex_wake.
4748 2021-02-10  Julian Brown  <julian@codesourcery.com>
4750         PR fortran/98979
4751         * testsuite/libgomp.oacc-fortran/array-stride-dt-1.f90: Add expected
4752         errors.
4754 2021-02-04  Julian Brown  <julian@codesourcery.com>
4756         * testsuite/libgomp.oacc-fortran/array-stride-dt-1.f90: New test.
4758 2021-02-03  Andrew Stubbs  <ams@codesourcery.com>
4760         * plugin/plugin-gcn.c (EF_AMDGPU_MACH): Add
4761         EF_AMDGPU_MACH_AMDGCN_GFX908.
4762         (gcn_gfx908_s): New constant string.
4763         (isa_hsa_name): Add gfx908.
4764         (isa_code): Add gfx908.
4766 2021-01-25  Kwok Cheung Yeung  <kcy@codesourcery.com>
4768         * libgomp.texi (omp_fulfill_event): New entry.
4770 2021-01-20  Jakub Jelinek  <jakub@redhat.com>
4772         * task.c (GOMP_task): Rename priority argument to priority_arg,
4773         add priority automatic variable and modify that variable.  Instead of
4774         clearing detach argument when GOMP_TASK_FLAG_DETACH bit is not set,
4775         check flags for that bit.
4777 2021-01-19  Tobias Burnus  <tobias@codesourcery.com>
4779         PR fortran/98476
4780         * testsuite/libgomp.fortran/is_device_ptr-1.f90: New test.
4782 2021-01-18  Andreas Schwab  <schwab@suse.de>
4784         * configure.tgt (riscv64*-*-linux*): Add linux to config_path.
4786 2021-01-18  Sebastian Huber  <sebastian.huber@embedded-brains.de>
4788         * config/rtems/sem.h (gomp_sem_getcount): New function.
4790 2021-01-18  Jakub Jelinek  <jakub@redhat.com>
4792         * config/linux/sem.h (gomp_sem_getcount): New function.
4793         * config/posix/sem.h (gomp_sem_getcount): New function.
4794         * config/posix/sem.c (gomp_sem_getcount): New function.
4795         * config/accel/sem.h (gomp_sem_getcount): New function.
4796         * task.c (task_fulfilled_p): Use gomp_sem_getcount.
4797         (omp_fulfill_event): Likewise.
4799 2021-01-16  Kwok Cheung Yeung  <kcy@codesourcery.com>
4801         * fortran.c (omp_fulfill_event_): New.
4802         * libgomp.h (struct gomp_task): Add detach and completion_sem fields.
4803         (struct gomp_team): Add task_detach_queue and task_detach_count
4804         fields.
4805         * libgomp.map (OMP_5.0.1): Add omp_fulfill_event and omp_fulfill_event_.
4806         * libgomp_g.h (GOMP_task): Add extra argument.
4807         * omp.h.in (enum omp_event_handle_t): New.
4808         (omp_fulfill_event): New.
4809         * omp_lib.f90.in (omp_event_handle_kind): New.
4810         (omp_fulfill_event): New.
4811         * omp_lib.h.in (omp_event_handle_kind): New.
4812         (omp_fulfill_event): Declare.
4813         * priority_queue.c (priority_tree_find): New.
4814         (priority_list_find): New.
4815         (priority_queue_find): New.
4816         * priority_queue.h (priority_queue_predicate): New.
4817         (priority_queue_find): New.
4818         * task.c (gomp_init_task): Initialize detach field.
4819         (task_fulfilled_p): New.
4820         (GOMP_task): Add detach argument.  Ignore detach argument if
4821         GOMP_TASK_FLAG_DETACH not set in flags.  Initialize completion_sem
4822         field.  Copy address of completion_sem into detach argument and
4823         into the start of the data record.  Wait for detach event if task
4824         not deferred.
4825         (gomp_barrier_handle_tasks): Queue tasks with unfulfilled events.
4826         Remove completed tasks and requeue dependent tasks.
4827         (omp_fulfill_event): New.
4828         * team.c (gomp_new_team): Initialize task_detach_queue and
4829         task_detach_count fields.
4830         (free_team): Free task_detach_queue field.
4831         * testsuite/libgomp.c-c++-common/task-detach-1.c: New testcase.
4832         * testsuite/libgomp.c-c++-common/task-detach-2.c: New testcase.
4833         * testsuite/libgomp.c-c++-common/task-detach-3.c: New testcase.
4834         * testsuite/libgomp.c-c++-common/task-detach-4.c: New testcase.
4835         * testsuite/libgomp.c-c++-common/task-detach-5.c: New testcase.
4836         * testsuite/libgomp.c-c++-common/task-detach-6.c: New testcase.
4837         * testsuite/libgomp.fortran/task-detach-1.f90: New testcase.
4838         * testsuite/libgomp.fortran/task-detach-2.f90: New testcase.
4839         * testsuite/libgomp.fortran/task-detach-3.f90: New testcase.
4840         * testsuite/libgomp.fortran/task-detach-4.f90: New testcase.
4841         * testsuite/libgomp.fortran/task-detach-5.f90: New testcase.
4842         * testsuite/libgomp.fortran/task-detach-6.f90: New testcase.
4844 2021-01-15  Jakub Jelinek  <jakub@redhat.com>
4846         PR target/70454
4847         * configure.tgt: For i?86 and x86_64 determine if -march=i486 needs to
4848         be added through preprocessor check on
4849         __GCC_HAVE_SYNC_COMPARE_AND_SWAP_4.
4851 2021-01-14  Thomas Schwinge  <thomas@codesourcery.com>
4853         PR libgomp/65099
4854         * plugin/configfrag.ac (PLUGIN_NVPTX): Restrict to supported
4855         configurations.
4856         * configure: Regenerate.
4857         * plugin/plugin-nvptx.c (nvptx_get_num_devices): Remove 64-bit
4858         check.
4860 2021-01-05  Samuel Thibault  <samuel.thibault@ens-lyon.org>
4862         * configure: Re-generate.
4864 2021-01-05  Samuel Thibault  <samuel.thibault@ens-lyon.org>
4866         * configure: Re-generate.
4868 2021-01-05  Julian Brown  <julian@codesourcery.com>
4870         * plugin/plugin-nvptx.c (SOFTSTACK_CACHE_LIMIT): New define.
4871         (struct ptx_device): Add omp_stacks struct.
4872         (nvptx_open_device): Initialise cached-stacks housekeeping info.
4873         (nvptx_close_device): Free cached stacks block and mutex.
4874         (nvptx_stacks_free): New function.
4875         (nvptx_alloc): Add SUPPRESS_ERRORS parameter.
4876         (GOMP_OFFLOAD_alloc): Add strategies for freeing soft-stacks block.
4877         (nvptx_stacks_alloc): Rename to...
4878         (nvptx_stacks_acquire): This.  Cache stacks block between runs if same
4879         size or smaller is required.
4880         (nvptx_stacks_free): Remove.
4881         (GOMP_OFFLOAD_run): Call nvptx_stacks_acquire and lock stacks block
4882         during kernel execution.
4884 2021-01-01  Jakub Jelinek  <jakub@redhat.com>
4886         * libgomp.texi: Bump @copying's copyright year.
4888 2020-12-28  Gerald Pfeifer  <gerald@pfeifer.com>
4890         * libgomp.texi (Top): Avoid bad "up" link.
4892 2020-12-18  Jakub Jelinek  <jakub@redhat.com>
4894         * testsuite/libgomp.c/task-6.c: New test.
4896 2020-12-09  Andrew Stubbs  <ams@codesourcery.com>
4898         * plugin/plugin-gcn.c: Include hsa_ext_amd.h.
4899         (HSA_AMD_AGENT_INFO_COMPUTE_UNIT_COUNT): Delete redundant definition.
4901 2020-12-08  Tobias Burnus  <tobias@codesourcery.com>
4903         * testsuite/libgomp.fortran/scan-1.f90: New test.
4905 2020-12-05  Iain Sandoe  <iain@sandoe.co.uk>
4907         PR target/97865
4908         * configure: Regenerate.
4910 2020-11-29  John David Anglin  <danglin@gcc.gnu.org>
4912         * configure: Regenerate.
4914 2020-11-25  Thomas Schwinge  <thomas@codesourcery.com>
4916         * testsuite/libgomp.oacc-c++/cache-1.C: New.
4917         * testsuite/libgomp.oacc-c-c++-common/cache-1.c: Update.
4919 2020-11-25  Andrew Stubbs  <ams@codesourcery.com>
4921         * testsuite/libgomp.oacc-fortran/atomic_capture-1.f90 (main): Adjust
4922         expected results.
4924 2020-11-24  Andrew Stubbs  <ams@codesourcery.com>
4926         * plugin/plugin-gcn.c: Don't redefine relocations if elf.h has them.
4927         (reserved): Delete unused define.
4929 2020-11-24  Thomas Schwinge  <thomas@codesourcery.com>
4931         * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c: Avoid
4932         Tcl 8.5-specific behavior.
4933         * testsuite/libgomp.oacc-fortran/pr94358-1.f90: Likewise.
4935 2020-11-18  Kwok Cheung Yeung  <kcy@codesourcery.com>
4937         * env.c (gomp_global_icv): Remove nest_var field.  Add
4938         max_active_levels_var field.
4939         (gomp_max_active_levels_var): Remove.
4940         (parse_boolean): Return true on success.
4941         (handle_omp_display_env): Express OMP_NESTED in terms of
4942         max_active_levels_var.  Change format specifier for
4943         max_active_levels_var.
4944         (initialize_env): Set max_active_levels_var from
4945         OMP_MAX_ACTIVE_LEVELS, OMP_NESTED, OMP_NUM_THREADS and
4946         OMP_PROC_BIND.
4947         * icv.c (omp_set_nested): Express in terms of
4948         max_active_levels_var.
4949         (omp_get_nested): Likewise.
4950         (omp_set_max_active_levels): Use max_active_levels_var field instead
4951         of gomp_max_active_levels_var.
4952         (omp_get_max_active_levels): Likewise.
4953         * libgomp.h (struct gomp_task_icv): Remove nest_var field.  Add
4954         max_active_levels_var field.
4955         (gomp_supported_active_levels): Set to UCHAR_MAX.
4956         (gomp_max_active_levels_var): Delete.
4957         * libgomp.texi (omp_get_nested): Update documentation.
4958         (omp_set_nested): Likewise.
4959         (OMP_MAX_ACTIVE_LEVELS): Likewise.
4960         (OMP_NESTED): Likewise.
4961         (OMP_NUM_THREADS): Likewise.
4962         (OMP_PROC_BIND): Likewise.
4963         * parallel.c (gomp_resolve_num_threads): Replace reference
4964         to nest_var with max_active_levels_var.  Use max_active_levels_var
4965         field instead of gomp_max_active_levels_var.
4967 2020-11-18  Tobias Burnus  <tobias@codesourcery.com>
4969         * testsuite/libgomp.c/usleep.h (fallback_usleep): Renamed from
4970         nvptx_usleep; use also for device={arch(gcn)}.
4972 2020-11-14  Jakub Jelinek  <jakub@redhat.com>
4974         * testsuite/libgomp.c-c++-common/allocate-1.c (struct S): New type.
4975         (foo): Add tests for non-VLA private and firstprivate clauses on
4976         omp task.
4977         (bar): Likewise.  Remove taking of address from private/firstprivate
4978         variables.
4979         * testsuite/libgomp.c++/allocate-1.C (struct S): New type.
4980         (foo): Add p, q, px and s arguments.  Add tests for array reductions
4981         and for non-VLA private and firstprivate clauses on omp task.
4982         (bar): Removed.
4983         (main): Adjust foo caller.  Don't call bar.
4985 2020-11-13  Gergö Barany  <gergo@codesourcery.com>
4986             Thomas Schwinge  <thomas@codesourcery.com>
4988         * testsuite/libgomp.oacc-c-c++-common/declare-vla-kernels-decompose-ice-1.c:
4989         New.
4990         * testsuite/libgomp.oacc-c-c++-common/declare-vla-kernels-decompose.c:
4991         Likewise.
4992         * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c:
4993         Likewise.
4994         * testsuite/libgomp.oacc-c-c++-common/declare-vla.c: Adjust.
4995         * testsuite/libgomp.oacc-fortran/pr94358-1.f90: Likewise.
4997 2020-11-13  Gergö Barany  <gergo@codesourcery.com>
4998             Thomas Schwinge  <thomas@codesourcery.com>
5000         PR fortran/94358
5001         * testsuite/libgomp.oacc-fortran/pr94358-1.f90: New.
5003 2020-11-13  Jakub Jelinek  <jakub@redhat.com>
5005         * testsuite/libgomp.c-c++-common/allocate-1.c (foo): Add tests
5006         for array reductions.
5007         (main): Adjust foo callers.
5009 2020-11-12  Jakub Jelinek  <jakub@redhat.com>
5011         * libgomp.map (GOMP_alloc, GOMP_free): Export at GOMP_5.0.1.
5012         * omp.h.in (omp_alloc): Add malloc and alloc_size attributes.
5013         * libgomp_g.h (GOMP_alloc, GOMP_free): Declare.
5014         * allocator.c (omp_aligned_alloc): New for now static function,
5015         add alignment argument and handle it.
5016         (omp_alloc): Reimplement using omp_aligned_alloc.
5017         (GOMP_alloc, GOMP_free): New functions.
5018         (omp_free): Add ialias.
5019         * testsuite/libgomp.c-c++-common/allocate-1.c: New test.
5020         * testsuite/libgomp.c++/allocate-1.C: New test.
5022 2020-11-12  Thomas Schwinge  <thomas@codesourcery.com>
5024         PR fortran/97782
5025         * testsuite/libgomp.oacc-fortran/attach-descriptor-1.f90: Adjust.
5027 2020-11-10  Chung-Lin Tang  <cltang@codesourcery.com>
5029         * libgomp.h (enum gomp_map_vars_kind): Adjust enum values to be bit-flag
5030         usable.
5031         * oacc-mem.c (acc_map_data): Adjust gomp_map_vars argument flags to
5032         'GOMP_MAP_VARS_OPENACC | GOMP_MAP_VARS_ENTER_DATA'.
5033         (goacc_enter_datum): Likewise for call to gomp_map_vars_async.
5034         (goacc_enter_data_internal): Likewise.
5035         * target.c (gomp_map_vars_internal):
5036         Change checks of GOMP_MAP_VARS_ENTER_DATA to use bit-and (&). Adjust use
5037         of gomp_attach_pointer for OpenMP cases.
5038         (gomp_exit_data): Add handling of GOMP_MAP_DETACH.
5039         (GOMP_target_enter_exit_data): Add handling of GOMP_MAP_ATTACH.
5040         * testsuite/libgomp.c-c++-common/ptr-attach-1.c: New testcase.
5042 2020-11-05  Ulrich Drepper  <drepper@redhat.com>
5043             Kwok Cheung Yeung  <kcy@codesourcery.com>
5045         * Makefile.am (%.mod): Add -cpp and -fopenmp to compile flags.
5046         * Makefile.in: Regenerate.
5047         * fortran.c: Wrap uses of omp_set_nested and omp_get_nested with
5048         pragmas to ignore -Wdeprecated-declarations warnings.
5049         * icv.c: Likewise.
5050         * omp.h.in (__GOMP_DEPRECATED_5_0): Define.
5051         Mark omp_lock_hint_* enum values, omp_lock_hint_t, omp_set_nested,
5052         and omp_get_nested with __GOMP_DEPRECATED_5_0.
5053         * omp_lib.f90.in: Mark omp_get_nested and omp_set_nested as
5054         deprecated.
5055         * testsuite/libgomp.c++/affinity-1.C: Add -Wno-deprecated-declarations
5056         to test options.
5057         * testsuite/libgomp.c/affinity-1.c: Likewise.
5058         * testsuite/libgomp.c/affinity-2.c: Likewise.
5059         * testsuite/libgomp.c/appendix-a/a.15.1.c: Likewise.
5060         * testsuite/libgomp.c/lib-1.c: Likewise.
5061         * testsuite/libgomp.c/nested-1.c: Likewise.
5062         * testsuite/libgomp.c/nested-2.c: Likewise.
5063         * testsuite/libgomp.c/nested-3.c: Likewise.
5064         * testsuite/libgomp.c/pr32362-1.c: Likewise.
5065         * testsuite/libgomp.c/pr32362-2.c: Likewise.
5066         * testsuite/libgomp.c/pr32362-3.c: Likewise.
5067         * testsuite/libgomp.c/pr35549.c: Likewise.
5068         * testsuite/libgomp.c/pr42942.c: Likewise.
5069         * testsuite/libgomp.c/pr61200.c: Likewise.
5070         * testsuite/libgomp.c/sort-1.c: Likewise.
5071         * testsuite/libgomp.c/target-5.c: Likewise.
5072         * testsuite/libgomp.c/target-6.c: Likewise.
5073         * testsuite/libgomp.c/teams-1.c: Likewise.
5074         * testsuite/libgomp.c/thread-limit-1.c: Likewise.
5075         * testsuite/libgomp.c/thread-limit-2.c: Likewise.
5076         * testsuite/libgomp.c/thread-limit-4.c: Likewise.
5077         * testsuite/libgomp.fortran/affinity1.f90: Likewise.
5078         * testsuite/libgomp.fortran/lib1.f90: Likewise.
5079         * testsuite/libgomp.fortran/lib2.f: Likewise.
5080         * testsuite/libgomp.fortran/nested1.f90: Likewise.
5081         * testsuite/libgomp.fortran/teams1.f90: Likewise.
5083 2020-11-02  Thomas Schwinge  <thomas@codesourcery.com>
5085         PR target/85486
5086         * testsuite/libgomp.oacc-c-c++-common/pr85486-2.c: Simplify and enhance.
5087         * testsuite/libgomp.oacc-c-c++-common/pr85486-3.c: Likewise.
5088         * testsuite/libgomp.oacc-c-c++-common/pr85486.c: Likewise.
5090 2020-11-02  Thomas Schwinge  <thomas@codesourcery.com>
5092         PR testsuite/80219
5093         PR testsuite/85303
5094         * testsuite/lib/libgomp.exp (libgomp_init): Set
5095         'gcc_warning_prefix', 'gcc_error_prefix'.
5097 2020-10-30  Jakub Jelinek  <jakub@redhat.com>
5099         * target.c (gomp_map_vars_internal): Use FIELD_TGT_EMPTY macro
5100         even in field_tgt_clear initializer.
5102 2020-10-28  Jakub Jelinek  <jakub@redhat.com>
5104         * testsuite/libgomp.c/target-42.c: New test.
5106 2020-10-28  Jakub Jelinek  <jakub@redhat.com>
5107             Tom de Vries  <tdevries@suse.de>
5109         PR testsuite/81690
5110         * testsuite/libgomp.c/usleep.h: New file.
5111         * testsuite/libgomp.c/target-32.c: Include usleep.h.
5112         (main): Use tgt_usleep instead of usleep.
5113         * testsuite/libgomp.c/thread-limit-2.c: Include usleep.h.
5114         (main): Use tgt_usleep instead of usleep.
5116 2020-10-28  Jakub Jelinek  <jakub@redhat.com>
5118         PR lto/96680
5119         * testsuite/libgomp.c/declare-variant-1.c: New test.
5121 2020-10-22  Jakub Jelinek  <jakub@redhat.com>
5123         * testsuite/libgomp.c/target-41.c: New test.
5125 2020-10-22  Jakub Jelinek  <jakub@redhat.com>
5127         * icv.c (omp_get_initial_device): Remove including corresponding
5128         ialias.
5129         * icv-device.c (omp_get_initial_device): New function.  Return
5130         gomp_get_num_devices ().  Add ialias.
5131         * target.c (resolve_device): Don't fail with
5132         OMP_TARGET_OFFLOAD=mandatory if device_id is equal to
5133         gomp_get_num_devices ().
5134         (omp_target_alloc, omp_target_free, omp_target_is_present,
5135         omp_target_memcpy, omp_target_memcpy_rect, omp_target_associate_ptr,
5136         omp_target_disassociate_ptr, omp_pause_resource): Use
5137         gomp_get_num_devices () instead of GOMP_DEVICE_HOST_FALLBACK on the
5138         first use in the functions, in uses dominated by the
5139         gomp_get_num_devices call use num_devices_openmp instead.
5140         * libgomp.texi (omp_get_initial_device): Document.
5141         * config/gcn/icv-device.c (omp_get_initial_device): New function.
5142         Add ialias.
5143         * config/nvptx/icv-device.c (omp_get_initial_device): Likewise.
5144         * testsuite/libgomp.c/target-40.c: New test.
5146 2020-10-21  Jakub Jelinek  <jakub@redhat.com>
5148         * env.c (parse_target_offload): Change new_offload var type to int,
5149         preinitialize to -1, remove found var and test new_offload != -1
5150         instead of found.
5152 2020-10-20  Jakub Jelinek  <jakub@redhat.com>
5154         * target.c (gomp_target_init): Inside of the function, use automatic
5155         variables corresponding to num_devices, num_devices_openmp and devices
5156         global variables and update the globals only at the end of the
5157         function.
5159 2020-10-20  Kwok Cheung Yeung  <kcy@codesourcery.com>
5161         * env.c (gomp_target_offload_var): New.
5162         (parse_target_offload): New.
5163         (handle_omp_display_env): Print value of OMP_TARGET_OFFLOAD.
5164         (initialize_env): Parse OMP_TARGET_OFFLOAD.
5165         * libgomp.h (gomp_target_offload_t): New.
5166         (gomp_target_offload_var): New.
5167         * libgomp.texi (OMP_TARGET_OFFLOAD): New section.
5168         * target.c (resolve_device): Generate error if device not found and
5169         offloading is mandatory.
5170         (gomp_target_fallback): Generate error if offloading is mandatory.
5171         (GOMP_target): Add argument in call to gomp_target_fallback.
5172         (GOMP_target_ext): Likewise.
5173         (gomp_target_data_fallback): Generate error if offloading is mandatory.
5174         (GOMP_target_data): Add argument in call to gomp_target_data_fallback.
5175         (GOMP_target_data_ext): Likewise.
5176         (gomp_target_task_fn): Add argument in call to gomp_target_fallback.
5177         (gomp_target_init): Return early if offloading is disabled.
5179 2020-10-15  Kwok Cheung Yeung  <kcy@codesourcery.com>
5181         * libgomp.texi (omp_get_max_active_levels): Modify description.
5182         (omp_get_supported_active_levels): Make descriptions consistent.
5184 2020-10-14  Jakub Jelinek  <jakub@redhat.com>
5186         * libgomp.texi (omp_get_supported_active_levels): Fix a typo.
5188 2020-10-13  Kwok Cheung Yeung  <kcy@codesourcery.com>
5190         * env.c (gomp_max_active_levels_var): Initialize to
5191         gomp_supported_active_levels.
5192         (initialize_env): Limit gomp_max_active_levels_var to be at most
5193         equal to gomp_supported_active_levels.
5194         * fortran.c (omp_get_supported_active_levels): Add ialias_redirect.
5195         (omp_get_supported_active_levels_): New.
5196         * icv.c (omp_set_max_active_levels): Limit gomp_max_active_levels_var
5197         to at most equal to gomp_supported_active_levels.
5198         (omp_get_supported_active_levels): New.
5199         * libgomp.h (gomp_supported_active_levels): New.
5200         * libgomp.map (OMP_5.0.1): Add omp_get_supported_active_levels and
5201         omp_get_supported_active_levels_.
5202         * libgomp.texi (omp_get_supported_active_levels): New.
5203         (omp_set_max_active_levels): Update.  Add reference to
5204         omp_get_supported_active_levels.
5205         * omp.h.in (omp_get_supported_active_levels): New.
5206         * omp_lib.f90.in (omp_get_supported_active_levels): New.
5207         * omp_lib.h.in (omp_get_supported_active_levels): New.
5208         * testsuite/libgomp.c/lib-2.c (main): Check omp_get_max_active_levels
5209         against omp_get_supported_active_levels.
5210         * testsuite/libgomp.fortran/lib4.f90 (lib4): Likewise.
5212 2020-10-11  Clement Chigot  <clement.chigot@atos.net>
5214         * config/t-aix: Delete and recreate libgomp before creating
5215         FAT library.
5217 2020-10-08  Tom de Vries  <tdevries@suse.de>
5219         PR libgomp/81802
5220         * plugin/plugin-nvptx.c (GOMP_OFFLOAD_run): Report launch
5221         dimensions.
5223 2020-10-06  Tom de Vries  <tdevries@suse.de>
5225         * testsuite/libgomp.oacc-fortran/declare-5.f90: Add xfail for PR92790.
5227 2020-10-06  Tom de Vries  <tdevries@suse.de>
5229         PR middle-end/90861
5230         * testsuite/libgomp.oacc-c-c++-common/declare-vla.c: Remove xfail.
5232 2020-10-05  Tom de Vries  <tdevries@suse.de>
5234         PR fortran/95654
5235         * testsuite/libgomp.fortran/pr95654.f90: New test.
5237 2020-10-02  Tobias Burnus  <tobias@codesourcery.com>
5239         * Makefile.in: Regenerate with automake 1.15.1.
5240         * aclocal.m4: Likewise.
5241         * configure: Likewise.
5242         * testsuite/Makefile.in: Likewise.
5244 2020-09-30  Andrew Stubbs  <ams@codesourcery.com>
5246         * parallel.c (gomp_resolve_num_threads): Ignore nest_var on nvptx
5247         and amdgcn targets.
5249 2020-09-30  Tobias Burnus  <tobias@codesourcery.com>
5251         * testsuite/libgomp.fortran/declare-target-3.f90: New test.
5253 2020-09-29  Andrew Stubbs  <ams@codesourcery.com>
5255         * config/gcn/bar.c (gomp_barrier_wait_end): Skip the barrier if the
5256         total number of threads is one.
5257         (gomp_team_barrier_wake): Likewise.
5258         (gomp_team_barrier_wait_end): Likewise.
5259         (gomp_team_barrier_wait_cancel_end): Likewise.
5260         * config/nvptx/bar.c (gomp_barrier_wait_end): Likewise.
5261         (gomp_team_barrier_wake): Likewise.
5262         (gomp_team_barrier_wait_end): Likewise.
5263         (gomp_team_barrier_wait_cancel_end): Likewise.
5264         * testsuite/libgomp.c-c++-common/nested-parallel-unbalanced.c: New test.
5266 2020-09-28  Tobias Burnus  <tobias@codesourcery.com>
5268         PR middle-end/96390
5269         * testsuite/libgomp.c++/pr96390.C: New test.
5270         * testsuite/libgomp.c-c++-common/pr96390.c: New test.
5272 2020-09-27  Clement Chigot  <clement.chigot@atos.net>
5274         * config/t-aix: Use $(AR) without -X32_64.
5276 2020-09-25  Jakub Jelinek  <jakub@redhat.com>
5278         * testsuite/libgomp.c/loop-25.c: New test.
5280 2020-09-22  Tobias Burnus  <tobias@codesourcery.com>
5282         PR fortran/95654
5283         * testsuite/libgomp.fortran/pr66199-5.f90: Make stop codes unique.
5285 2020-09-22  Tom de Vries  <tdevries@suse.de>
5287         * plugin/plugin-nvptx.c (link_ptx): Print elog if cuLinkComplete call
5288         fails.
5290 2020-09-16  Nathan Sidwell  <nathan@acm.org>
5292         * testsuite/libgomp.c++/udr-3.C: Add missing ctor.
5294 2020-09-15  Tobias Burnus  <tobias@codesourcery.com>
5296         PR fortran/96668
5297         * target.c (gomp_map_vars_internal): Initialize has_nullptr.
5299 2020-09-15  Tobias Burnus  <tobias@codesourcery.com>
5301         PR fortran/96668
5302         * libgomp.h (struct target_var_desc): Add has_null_ptr_assoc member.
5303         * target.c (gomp_map_vars_existing): Add always_to_flag flag.
5304         (gomp_map_vars_existing): Update call to it.
5305         (gomp_map_fields_existing): Likewise
5306         (gomp_map_vars_internal): Update PSET handling such that if a nullptr is
5307         now allocated or if GOMP_MAP_POINTER is used PSET is updated and pointer
5308         remapped.
5309         (GOMP_target_enter_exit_data): Hanlde GOMP_MAP_ALWAYS_POINTER like
5310         GOMP_MAP_POINTER.
5311         * testsuite/libgomp.fortran/map-alloc-ptr-1.f90: New test.
5312         * testsuite/libgomp.fortran/map-alloc-ptr-2.f90: New test.
5314 2020-09-14  Tom de Vries  <tdevries@suse.de>
5316         * config/nvptx/atomic.c: New file.  Add
5317         __sync_val_compare_and_swap_16.
5318         * testsuite/libgomp.c-c++-common/reduction-16.c: Add -latomic for
5319         target offload_target_nvptx.
5321 2020-09-08  Julian Brown  <julian@codesourcery.com>
5323         * testsuite/libgomp.oacc-c-c++-common/atomic_capture-2.c: Remove
5324         iteration-ordering assumptions.
5326 2020-09-08  Julian Brown  <julian@codesourcery.com>
5328         * testsuite/libgomp.oacc-fortran/collapse-1.f90: Fix race condition.
5329         * testsuite/libgomp.oacc-fortran/collapse-2.f90: Likewise.
5331 2020-08-20  Chung-Lin Tang  <cltang@codesourcery.com>
5333         * plugin/plugin-nvptx.c (nvptx_free):
5334         Change "GOMP_PLUGIN_acc_thread () == NULL" test into check of
5335         CUDA_ERROR_NOT_PERMITTED status for cuMemGetAddressRange. Adjust
5336         comments.
5338 2020-08-20  Tobias Burnus  <tobias@codesourcery.com>
5340         * testsuite/libgomp.fortran/lastprivate-conditional-10.f90: New test.
5342 2020-08-13  Kwok Cheung Yeung  <kcy@codesourcery.com>
5344         * testsuite/libgomp.c-c++-common/reduction-16.c: New.
5346 2020-08-13  Jakub Jelinek  <jakub@redhat.com>
5348         * testsuite/libgomp.c/loop-22.c (main): Add some further tests.
5349         * testsuite/libgomp.c/loop-23.c (main): Likewise.
5350         * testsuite/libgomp.c/loop-24.c: New test.
5352 2020-08-08  Jakub Jelinek  <jakub@redhat.com>
5353             Tobias Burnus  <tobias@codesourcery.com>
5355         PR fortran/93553
5356         * testsuite/libgomp.fortran/pr93553.f90: New test.
5358 2020-08-05  Jakub Jelinek  <jakub@redhat.com>
5360         * testsuite/libgomp.c/loop-22.c: New test.
5361         * testsuite/libgomp.c/loop-23.c: New test.
5363 2020-08-05  Jakub Jelinek  <jakub@redhat.com>
5365         PR middle-end/96459
5366         * testsuite/libgomp.c/teams-3.c: New test.
5367         * testsuite/libgomp.c-c++-common/for-2.h (OMPTEAMS): Define to nothing
5368         if not defined yet.
5369         (N(test)): Use it before all N(f*) calls.
5370         * testsuite/libgomp.c-c++-common/for-14.c (DO_PRAGMA, OMPTEAMS): Define.
5371         (main): Don't call all test_* functions from within
5372         #pragma omp teams reduction(|:err), call them directly.
5374 2020-08-04  Tom de Vries  <tdevries@suse.de>
5376         PR target/96428
5377         * testsuite/libgomp.oacc-fortran/pr96628-part1.f90: New test.
5378         * testsuite/libgomp.oacc-fortran/pr96628-part2.f90: New test.
5380 2020-08-03  Julian Brown  <julian@codesourcery.com>
5381             Thomas Schwinge  <thomas@codesourcery.com>
5383         * testsuite/libgomp.oacc-fortran/attach-descriptor-1.f90: Don't run for
5384         shared-memory devices.  Extend with further checking.
5386 2020-08-03  Martin Jambor  <mjambor@suse.cz>
5388         * plugin/Makefrag.am: Remove configuration of HSA plugin.
5389         * aclocal.m4: Regenerated.
5390         * Makefile.in: Regenerated.
5391         * config.h.in: Regenerated.
5392         * configure: Regenerated.
5393         * plugin/configfrag.ac: Likewise.
5394         * plugin/hsa_ext_finalize.h: Removed.
5395         * plugin/plugin-hsa.c: Likewise.
5396         * testsuite/Makefile.in: Regenerated.
5397         * testsuite/lib/libgomp.exp
5398         (offload_target_to_openacc_device_type): Remove hsa case.
5399         (check_effective_target_hsa_offloading_selected_nocache): Removed
5400         (check_effective_target_hsa_offloading_selected): Likewise.
5401         (libgomp_init): Do not add -Wno-hsa to additional_flags.
5402         * testsuite/libgomp.hsa.c/alloca-1.c: Removed test.
5403         * testsuite/libgomp.hsa.c/bitfield-1.c: Likewise.
5404         * testsuite/libgomp.hsa.c/bits-insns.c: Likewise.
5405         * testsuite/libgomp.hsa.c/builtins-1.c: Likewise.
5406         * testsuite/libgomp.hsa.c/c.exp: Likewise.
5407         * testsuite/libgomp.hsa.c/complex-1.c: Likewise.
5408         * testsuite/libgomp.hsa.c/complex-align-2.c: Likewise.
5409         * testsuite/libgomp.hsa.c/formal-actual-args-1.c: Likewise.
5410         * testsuite/libgomp.hsa.c/function-call-1.c: Likewise.
5411         * testsuite/libgomp.hsa.c/get-level-1.c: Likewise.
5412         * testsuite/libgomp.hsa.c/gridify-1.c: Likewise.
5413         * testsuite/libgomp.hsa.c/gridify-2.c: Likewise.
5414         * testsuite/libgomp.hsa.c/gridify-3.c: Likewise.
5415         * testsuite/libgomp.hsa.c/gridify-4.c: Likewise.
5416         * testsuite/libgomp.hsa.c/memory-operations-1.c: Likewise.
5417         * testsuite/libgomp.hsa.c/pr69568.c: Likewise.
5418         * testsuite/libgomp.hsa.c/pr82416.c: Likewise.
5419         * testsuite/libgomp.hsa.c/rotate-1.c: Likewise.
5420         * testsuite/libgomp.hsa.c/staticvar.c: Likewise.
5421         * testsuite/libgomp.hsa.c/switch-1.c: Likewise.
5422         * testsuite/libgomp.hsa.c/switch-branch-1.c: Likewise.
5423         * testsuite/libgomp.hsa.c/switch-sbr-2.c: Likewise.
5424         * testsuite/libgomp.hsa.c/tiling-1.c: Likewise.
5425         * testsuite/libgomp.hsa.c/tiling-2.c: Likewise.
5427 2020-07-27  Julian Brown  <julian@codesourcery.com>
5428             Thomas Schwinge  <thomas@codesourcery.com>
5430         * libgomp.h (struct target_var_desc): Rename do_detach field to
5431         is_attach.
5432         * oacc-mem.c (goacc_exit_datum_1): Add assert.  Don't set finalize for
5433         GOMP_MAP_FORCE_DETACH. Update checking to use is_attach field.
5434         (goacc_enter_data_internal): Don't affect reference counts
5435         for attach mappings.
5436         (goacc_exit_data_internal): Don't affect reference counts for detach
5437         mappings.
5438         * target.c (gomp_map_vars_existing): Don't affect reference counts for
5439         attach mappings.
5440         (gomp_map_vars_internal): Set renamed is_attach flag unconditionally to
5441         mark attach mappings.
5442         (gomp_unmap_vars_internal): Use is_attach flag to prevent affecting
5443         reference count for attach mappings.
5444         * testsuite/libgomp.oacc-c-c++-common/mdc-refcount-1.c: New test.
5445         * testsuite/libgomp.oacc-c-c++-common/mdc-refcount-2.c: New test.
5446         * testsuite/libgomp.oacc-c-c++-common/mdc-refcount-2.c: New test.
5447         * testsuite/libgomp.oacc-fortran/deep-copy-6-no_finalize.F90: Mark
5448         test as shouldfail.
5449         * testsuite/libgomp.oacc-fortran/deep-copy-6.f90: Adjust to fail
5450         gracefully in no-finalize mode.
5451         * testsuite/libgomp.oacc-c-c++-common/mdc-refcount-3.c: New file.
5453 2020-07-24  Thomas Schwinge  <thomas@codesourcery.com>
5455         * testsuite/libgomp.oacc-c++/c++.exp: Unset 'offload_target' after
5456         use.
5457         * testsuite/libgomp.oacc-c/c.exp: Likewise.
5458         * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
5460 2020-07-23  Julian Brown  <julian@codesourcery.com>
5461             Thomas Schwinge  <thomas@codesourcery.com>
5463         * target.c (gomp_unmap_vars_internal): Remove unnecessary forcing of
5464         finalization for detach operation.
5465         * testsuite/libgomp.oacc-c-c++-common/structured-detach-underflow.c:
5466         New test.
5468 2020-07-23  Tobias Burnus  <tobias@codesourcery.com>
5470         * configure.ac: Add OMP_DEPEND_KIND and OMP_INT128_SIZE.
5471         * libgomp_f.h.in (omp_check_defines): Check whether
5472         sizeof of determined Fortran kind and C typedef match.
5473         * omp_lib.f90.in: Add omp_depened_kind.
5474         * omp_lib.h.in: Likewise; fix omp_alloctrait_key_kind.
5475         * configure: Regenerate.
5476         * Makefile.in: Regenerate.
5477         * testsuite/Makefile.in: Regenerate.
5479 2020-07-22  Tobias Burnus  <tobias@codesourcery.com>
5481         * testsuite/libgomp.c-c++-common/critical-hint-1.c: New; moved from
5482         gcc/testsuite/c-c++-common/gomp/.
5483         * testsuite/libgomp.c-c++-common/critical-hint-2.c: Likewise.
5484         * testsuite/libgomp.fortran/critical-hint-1.f90: New; moved
5485         from gcc/testsuite/gfortran.dg/gomp/.
5486         * testsuite/libgomp.fortran/critical-hint-2.f90: Likewise.
5488 2020-07-22  Tobias Burnus  <tobias@codesourcery.com>
5490         * omp_lib.f90.in: Add omp_sync_hint_* and omp_sync_hint_kind.
5491         * omp_lib.h.in: Likewise.
5493 2020-07-18  H.J. Lu  <hjl.tools@gmail.com>
5495         PR target/95620
5496         * testsuite/libgomp.c/pr95620.c: New test.
5498 2020-07-16  Julian Brown  <julian@codesourcery.com>
5499             Thomas Schwinge  <thomas@codesourcery.com>
5501         * testsuite/libgomp.oacc-fortran/attach-descriptor-1.f90: New test.
5502         * testsuite/libgomp.oacc-fortran/attach-descriptor-2.f90: New test.
5504 2020-07-15  Tobias Burnus  <tobias@codesourcery.com>
5506         * testsuite/libgomp.fortran/alloc-1.F90: Use c_size_t to
5507         avoid conversion on 32bit systems from 32bit to 64bit due
5508         to -fdefault-integer-8.
5510 2020-07-15  Tobias Burnus  <tobias@codesourcery.com>
5512         * testsuite/libgomp.fortran/struct-elem-map-1.f90: Remove unused
5513         variables; add character(kind=4) tests; update TODO comment.
5515 2020-07-15  Tobias Burnus  <tobias@codesourcery.com>
5517         * allocator.c: Add ialias for omp_init_allocator and
5518         omp_destroy_allocator.
5519         * configure.ac: Set INTPTR_T_KIND.
5520         * configure: Regenerate.
5521         * Makefile.in: Regenerate.
5522         * testsuite/Makefile.in: Regenerate.
5523         * fortran.c (omp_init_allocator_, omp_destroy_allocator_,
5524         omp_set_default_allocator_, omp_get_default_allocator_): New
5525         functions and ialias_redirect.
5526         * icv.c: Add ialias for omp_set_default_allocator and
5527         omp_get_default_allocator.
5528         * libgomp.map (OMP_5.0.1): Add omp_init_allocator_,
5529         omp_destroy_allocator_, omp_set_default_allocator_ and
5530         omp_get_default_allocator_.
5531         * omp_lib.f90.in: Add allocator traits parameters, declare
5532         allocator routines and add related kind parameters.
5533         * omp_lib.h.in: Likewise.
5534         * testsuite/libgomp.c-c++-common/alloc-2.c: Fix sizeof.
5535         * testsuite/libgomp.fortran/alloc-1.F90: New test.
5536         * testsuite/libgomp.fortran/alloc-2.F90: New test.
5537         * testsuite/libgomp.fortran/alloc-3.F: New test.
5538         * testsuite/libgomp.fortran/alloc-4.f90: New test.
5539         * testsuite/libgomp.fortran/alloc-5.f90: New test.
5541 2020-07-14  Tom de Vries  <tom@codesourcery.com>
5542             Cesar Philippidis  <cesar@codesourcery.com>
5543             Thomas Schwinge  <thomas@codesourcery.com>
5544             Kwok Cheung Yeung  <kcy@codesourcery.com>
5546         * oacc-init.c (acc_init_state_lock, acc_init_state, acc_init_thread):
5547         New variable.
5548         (acc_init_1): Set acc_init_thread to pthread_self ().  Set
5549         acc_init_state to initializing at the start, and to initialized at the
5550         end.
5551         (self_initializing_p): New function.
5552         (acc_get_device_type): Return acc_device_none if called by thread that
5553         is currently executing acc_init_1.
5554         * libgomp.texi (acc_get_device_type): Update documentation.
5555         (Implementation Status and Implementation-Defined Behavior): Likewise.
5556         * testsuite/libgomp.oacc-c-c++-common/acc_prof-init-2.c: New.
5558 2020-07-14  David Edelsohn  <dje.gcc@gmail.com>
5560         * config/t-aix: Set BITS from compiler cpp macro.
5562 2020-07-14  Tobias Burnus  <tobias@codesourcery.com>
5564         * testsuite/libgomp.fortran/struct-elem-map-1.f90: New test.
5566 2020-07-14  Tobias Burnus  <tobias@codesourcery.com>
5568         PR fortran/67311
5569         * testsuite/libgomp.fortran/target-map-1.f90: New test.
5571 2020-07-14  Jakub Jelinek  <jakub@redhat.com>
5573         * testsuite/libgomp.c/loop-21.c: New test.
5575 2020-07-13  Julian Brown  <julian@codesourcery.com>
5576             Thomas Schwinge  <thomas@codesourcery.com>
5578         * testsuite/libgomp.oacc-fortran/dynamic-pointer-1.f90: New test.
5580 2020-07-10  Julian Brown  <julian@codesourcery.com>
5581             Thomas Schwinge  <thomas@codesourcery.com>
5583         * libgomp.h (struct splay_tree_key_s): Change virtual_refcount to
5584         dynamic_refcount.
5585         (struct gomp_device_descr): Remove GOMP_MAP_VARS_OPENACC_ENTER_DATA.
5586         * oacc-mem.c (acc_map_data): Substitute virtual_refcount for
5587         dynamic_refcount.
5588         (acc_unmap_data): Update comment.
5589         (goacc_map_var_existing, goacc_enter_datum): Adjust for
5590         dynamic_refcount semantics.
5591         (goacc_exit_datum_1, goacc_exit_datum): Re-add some error checking.
5592         Adjust for dynamic_refcount semantics.
5593         (goacc_enter_data_internal): Implement "present" case of dynamic
5594         memory-map handling here.  Update "non-present" case for
5595         dynamic_refcount semantics.
5596         (goacc_exit_data_internal): Use goacc_exit_datum_1.
5597         * target.c (gomp_map_vars_internal): Remove
5598         GOMP_MAP_VARS_OPENACC_ENTER_DATA handling.  Update for dynamic_refcount
5599         handling.
5600         (gomp_unmap_vars_internal): Remove virtual_refcount handling.
5601         (gomp_load_image_to_device): Substitute dynamic_refcount for
5602         virtual_refcount.
5603         * testsuite/libgomp.oacc-c-c++-common/pr92843-1.c: Remove XFAILs.
5604         * testsuite/libgomp.oacc-c-c++-common/refcounting-1.c: New test.
5605         * testsuite/libgomp.oacc-c-c++-common/refcounting-2.c: New test.
5606         * testsuite/libgomp.oacc-c-c++-common/struct-3-1-1.c: New test.
5607         * testsuite/libgomp.oacc-fortran/deep-copy-6.f90: Remove XFAILs and
5608         trace output.
5609         * testsuite/libgomp.oacc-fortran/deep-copy-6-no_finalize.F90: Remove
5610         trace output.
5611         * testsuite/libgomp.oacc-fortran/dynamic-incr-structural-1.f90: New
5612         test.
5613         * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-4.c:
5614         Remove stale comment.
5615         * testsuite/libgomp.oacc-fortran/mdc-refcount-1-1-1.f90: Remove XFAILs.
5616         * testsuite/libgomp.oacc-fortran/mdc-refcount-1-1-2.F90: Likewise.
5617         * testsuite/libgomp.oacc-fortran/mdc-refcount-1-2-1.f90: Likewise.
5618         * testsuite/libgomp.oacc-fortran/mdc-refcount-1-2-2.f90: Likewise.
5619         * testsuite/libgomp.oacc-fortran/mdc-refcount-1-3-1.f90: Likewise.
5620         * testsuite/libgomp.oacc-fortran/mdc-refcount-1-4-1.f90: Adjust XFAIL.
5622 2020-07-10  Julian Brown  <julian@codesourcery.com>
5623             Thomas Schwinge  <thomas@codesourcery.com>
5625         * oacc-mem.c (goacc_map_var_existing): New function.
5626         (goacc_enter_datum): Use above function.
5627         (goacc_exit_datum_1): New function.
5628         (goacc_exit_datum): Use above function.
5630 2020-07-09  Julian Brown  <julian@codesourcery.com>
5631             Thomas Schwinge  <thomas@codesourcery.com>
5633         PR middle-end/95270
5634         * testsuite/libgomp.oacc-c-c++-common/pr95270-1.c: New test.
5635         * testsuite/libgomp.oacc-c-c++-common/pr95270-2.c: New test.
5637 2020-07-09  Julian Brown  <julian@codesourcery.com>
5639         * oacc-mem.c (find_group_last): Group data-movement clauses
5640         (GOMP_MAP_TO_PSET, GOMP_MAP_TO, etc.) together with a subsequent
5641         GOMP_MAP_ATTACH.  Allow standalone GOMP_MAP_ATTACH also.
5643 2020-07-09  Jakub Jelinek  <jakub@redhat.com>
5645         * testsuite/libgomp.c/loop-19.c: New test.
5646         * testsuite/libgomp.c/loop-20.c: New test.
5648 2020-07-09  Jakub Jelinek  <jakub@redhat.com>
5650         * omp.h.in (omp_alloctrait_value_t): Change omp_atv_default from
5651         2 to -1.  Add omp_atv_serialized and define omp_atv_sequential using
5652         it.  Remove __omp_alloctrait_value_max__.
5653         * allocator.c (omp_init_allocator): Handle omp_atv_default for
5654         omp_atk_alignment and omp_atk_pool_size.
5656 2020-07-03  Thomas Schwinge  <thomas@codesourcery.com>
5658         * oacc-mem.c (goacc_exit_data_internal): Revert always-copyfrom
5659         behavior for 'GOMP_MAP_FORCE_FROM'.
5660         * testsuite/libgomp.oacc-c-c++-common/pr92843-1.c: Adjust XFAIL.
5662 2020-07-03  Thomas Schwinge  <thomas@codesourcery.com>
5664         * oacc-mem.c (goacc_exit_data_internal): Remove
5665         'GOMP_MAP_ALWAYS_FROM' handling.
5667 2020-06-30  Thomas Schwinge  <thomas@codesourcery.com>
5669         * testsuite/libgomp.oacc-c-c++-common/pr85381-2.c: Replace fragile
5670         'scan-assembler' with 'scan-offload-rtl'.
5671         * testsuite/libgomp.oacc-c-c++-common/pr85381-3.c: Likewise.
5672         * testsuite/libgomp.oacc-c-c++-common/pr85381-4.c: Likewise.
5673         * testsuite/libgomp.oacc-c-c++-common/pr85381-5.c: Likewise.
5674         * testsuite/libgomp.oacc-c-c++-common/pr85381.c: Likewise.
5676 2020-06-30  Thomas Schwinge  <thomas@codesourcery.com>
5678         * target.c (gomp_map_vars_existing): Assert 'kind !=
5679         GOMP_MAP_ATTACH'.
5680         (gomp_map_vars_internal): Clean up.
5682 2020-06-27  Jakub Jelinek  <jakub@redhat.com>
5684         * testsuite/libgomp.c/loop-17.c: New test.
5685         * testsuite/libgomp.c/loop-18.c: New test.
5687 2020-06-26  Marek Polacek  <polacek@redhat.com>
5689         * testsuite/libgomp.c++/atomic-3.C: Use -std=gnu++14.
5691 2020-06-23  Alexandre Oliva  <oliva@adacore.com>
5693         * testsuite/lib/libgomp.exp: Load gcc lib scanoffload.exp.
5694         * testsuite/lib/libgomp-dg.exp: Drop now-obsolete -save-temps.
5696 2020-06-22  David Edelsohn  <dje.gcc@gmail.com>
5698         * Makefile.am: Use -include.
5699         * Makefile.in: Regenerate.
5701 2020-06-21  David Edelsohn  <dje.gcc@gmail.com>
5703         * Makefile.am (tmake_file): Build and install AIX-style FAT libraries.
5704         * Makefile.in: Regenerate
5705         * configure.ac (tmake_file): Substitute.
5706         * configure: Regenerate.
5707         * configure.tgt (powerpc-ibm-aix*): Define tmake_file.
5708         * config/t-aix: New file.
5710 2020-06-17  Thomas Schwinge  <thomas@codesourcery.com>
5712         PR lto/94848
5713         * testsuite/libgomp.fortran/use_device_ptr-optional-3.f90: Add
5714         'dg-do run'.
5716 2020-06-17  Andrew Stubbs  <ams@codesourcery.com>
5718         * plugin/plugin-gcn.c (init_environment_variables): Use ".so.1"
5719         variant for HSA_RUNTIME_LIB name.
5720         (find_executable_symbol_1): Delete.
5721         (find_executable_symbol): Delete.
5722         (init_kernel_properties): Add ".kd" suffix to symbol names.
5723         (find_load_offset): Delete.
5724         (create_and_finalize_hsa_program): Remove relocation handling.
5726 2020-06-16  Tobias Burnus  <tobias@codesourcery.com>
5728         * testsuite/libgomp.oacc-fortran/routine-10.f90: New test.
5730 2020-06-08  Tobias Burnus  <tobias@codesourcery.com>
5732         PR lto/94848
5733         PR middle-end/95551
5734         * testsuite/libgomp.fortran/target-var.f90: New test.
5736 2020-06-05  Thomas Schwinge  <thomas@codesourcery.com>
5737             Julian Brown  <julian@codesourcery.com>
5739         * oacc-mem.c (goacc_exit_data_internal) <GOMP_MAP_STRUCT>: Explain
5740         special handling.
5742 2020-06-05  Thomas Schwinge  <thomas@codesourcery.com>
5743             Julian Brown  <julian@codesourcery.com>
5745         * oacc-mem.c (goacc_exit_data_internal) <GOMP_MAP_STRUCT>:
5746         Simplify.
5748 2020-06-05  Julian Brown  <julian@codesourcery.com>
5750         * testsuite/libgomp.oacc-c-c++-common/struct-copyout-1.c: New test.
5751         * testsuite/libgomp.oacc-c-c++-common/struct-copyout-2.c: New test.
5753 2020-06-04  Thomas Schwinge  <thomas@codesourcery.com>
5755         * oacc-mem.c (goacc_exit_data_internal) <GOMP_MAP_STRUCT>:
5756         Evaluate 'copyfrom' individually for each entry.
5757         * testsuite/libgomp.oacc-c-c++-common/struct-1.c: Update.
5759 2020-06-04  Thomas Schwinge  <thomas@codesourcery.com>
5761         * oacc-mem.c (goacc_exit_data_internal) <GOMP_MAP_STRUCT>:
5762         Evaluate 'finalize' individually for each entry.
5763         * testsuite/libgomp.oacc-c-c++-common/struct-1.c: New file.
5764         * testsuite/libgomp.oacc-c-c++-common/struct-refcount-1.c: Remove
5765         file.
5767 2020-06-04  Thomas Schwinge  <thomas@codesourcery.com>
5769         * testsuite/libgomp.oacc-c-c++-common/deep-copy-7.c: Fix 'sizeof'
5770         usage.
5771         * testsuite/libgomp.oacc-c-c++-common/deep-copy-8.c: Likewise.
5773 2020-06-04  Thomas Schwinge  <thomas@codesourcery.com>
5774             Julian Brown  <julian@codesourcery.com>
5776         * oacc-mem.c (goacc_exit_datum): Repair 'is_tgt_unmapped'
5777         checking.
5778         (acc_unmap_data, goacc_exit_data_internal): Restore
5779         'is_tgt_unmapped' checking.
5780         * testsuite/libgomp.oacc-c-c++-common/struct-refcount-1.c: New
5781         file.
5782         * testsuite/libgomp.oacc-fortran/deep-copy-6.f90: Adjust.
5783         * testsuite/libgomp.oacc-fortran/mdc-refcount-1-1-1.f90: Likewise.
5784         * testsuite/libgomp.oacc-fortran/mdc-refcount-1-2-1.f90: Likewise.
5785         * testsuite/libgomp.oacc-fortran/mdc-refcount-1-2-2.f90: Likewise.
5786         * testsuite/libgomp.oacc-fortran/mdc-refcount-1-3-1.f90: Likewise.
5787         * testsuite/libgomp.oacc-fortran/mdc-refcount-1-4-1.f90: Likewise.
5789 2020-06-04  Thomas Schwinge  <thomas@codesourcery.com>
5790             Julian Brown  <julian@codesourcery.com>
5792         * oacc-mem.c (acc_unmap_data): Don't open-code 'gomp_remove_var'.
5794 2020-06-04  Thomas Schwinge  <thomas@codesourcery.com>
5796         PR libgomp/92854
5797         * oacc-mem.c (acc_unmap_data): Remove 'tgt' reference counting.
5799 2020-06-04  Thomas Schwinge  <thomas@codesourcery.com>
5801         PR libgomp/92854
5802         * testsuite/libgomp.oacc-c-c++-common/pr92854-1.c: Extend some
5803         more.
5805 2020-06-04  Thomas Schwinge  <thomas@codesourcery.com>
5806             Julian Brown  <julian@codesourcery.com>
5808         * oacc-mem.c (goacc_enter_datum): Use 'tgt' returned from
5809         'gomp_map_vars'.
5810         (acc_map_data): Clean up accordingly.
5812 2020-06-04  Thomas Schwinge  <thomas@codesourcery.com>
5814         * testsuite/libgomp.oacc-fortran/deep-copy-6.f90: XFAIL behavior
5815         of over-eager 'finalize' clause.
5816         * testsuite/libgomp.oacc-fortran/deep-copy-6-no_finalize.F90: New
5817         file.
5818         * testsuite/libgomp.oacc-fortran/mdc-refcount-1-1-1.f90: Likewise.
5819         * testsuite/libgomp.oacc-fortran/mdc-refcount-1-1-2.F90: Likewise.
5820         * testsuite/libgomp.oacc-fortran/mdc-refcount-1-2-1.f90: Likewise.
5821         * testsuite/libgomp.oacc-fortran/mdc-refcount-1-2-2.f90: Likewise.
5822         * testsuite/libgomp.oacc-fortran/mdc-refcount-1-3-1.f90: Likewise.
5823         * testsuite/libgomp.oacc-fortran/mdc-refcount-1-3-2.f90: Likewise.
5824         * testsuite/libgomp.oacc-fortran/mdc-refcount-1-4-1.f90: Likewise.
5825         * testsuite/libgomp.oacc-fortran/mdc-refcount-1-4-2.f90: Likewise.
5827 2020-06-04  Thomas Schwinge  <thomas@codesourcery.com>
5829         * oacc-mem.c (goacc_exit_data_internal): Unlock on error path.
5831 2020-06-04  Julian Brown  <julian@codesourcery.com>
5833         * oacc-mem.c (acc_attach_async): Add missing gomp_mutex_unlock on
5834         error path.
5835         (goacc_detach_internal): Likewise.
5837 2020-06-04  Thomas Schwinge  <thomas@codesourcery.com>
5839         * testsuite/libgomp.oacc-fortran/error_stop-1.f: Initialize before
5840         the checkpoint.
5841         * testsuite/libgomp.oacc-fortran/error_stop-2.f: Likewise.
5842         * testsuite/libgomp.oacc-fortran/error_stop-3.f: Likewise.
5843         * testsuite/libgomp.oacc-fortran/stop-1.f: Likewise.
5844         * testsuite/libgomp.oacc-fortran/stop-2.f: Likewise.
5845         * testsuite/libgomp.oacc-fortran/stop-3.f: Likewise.
5847 2020-06-02  Jakub Jelinek  <jakub@redhat.com>
5849         * allocator.c (omp_free): Fix up build if HAVE_SYNC_BUILTINS is not
5850         defined.
5852 2020-05-30  Jakub Jelinek  <jakub@redhat.com>
5854         * testsuite/libgomp.c-c++-common/alloc-4.c: New test.
5856 2020-05-30  Jakub Jelinek  <jakub@redhat.com>
5858         * allocator.c (omp_alloc): For size == 0, return NULL early.
5860 2020-05-29  H.J. Lu  <hjl.tools@gmail.com>
5862         PR bootstrap/95413
5863         * configure: Regenerated.
5865 2020-05-23  Thomas Koenig  <tkoenig@gcc.gnu.org>
5867         PR libfortran/95191
5868         * testsuite/libgomp.fortran/async_io_9.f90: New test.
5870 2020-05-19  Jakub Jelinek  <jakub@redhat.com>
5872         * omp.h.in (omp_uintptr_t): New typedef.
5873         (__GOMP_UINTPTR_T_ENUM): Define.
5874         (omp_memspace_handle_t, omp_allocator_handle_t, omp_alloctrait_key_t,
5875         omp_alloctrait_value_t, omp_alloctrait_t): New typedefs.
5876         (__GOMP_DEFAULT_NULL_ALLOCATOR): Define.
5877         (omp_init_allocator, omp_destroy_allocator, omp_set_default_allocator,
5878         omp_get_default_allocator, omp_alloc, omp_free): Declare.
5879         * libgomp.h (struct gomp_team_state): Add def_allocator field.
5880         (gomp_def_allocator): Declare.
5881         * libgomp.map (OMP_5.0.1): Export omp_set_default_allocator,
5882         omp_get_default_allocator, omp_init_allocator, omp_destroy_allocator,
5883         omp_alloc and omp_free.
5884         * team.c (gomp_team_start): Copy over ts.def_allocator.
5885         * env.c (gomp_def_allocator): New variable.
5886         (parse_wait_policy): Adjust function comment.
5887         (parse_allocator): New function.
5888         (handle_omp_display_env): Print OMP_ALLOCATOR.
5889         (initialize_env): Call parse_allocator.
5890         * Makefile.am (libgomp_la_SOURCES): Add allocator.c.
5891         * allocator.c: New file.
5892         * icv.c (omp_set_default_allocator, omp_get_default_allocator): New
5893         functions.
5894         * testsuite/libgomp.c-c++-common/alloc-1.c: New test.
5895         * testsuite/libgomp.c-c++-common/alloc-2.c: New test.
5896         * testsuite/libgomp.c-c++-common/alloc-3.c: New test.
5897         * Makefile.in: Regenerated.
5899 2020-05-15  H.J. Lu  <hongjiu.lu@intel.com>
5901         PR bootstrap/95147
5902         * configure: Regenerated.
5904 2020-05-14  Thomas Koenig  <tkoenig@gcc.gnu.org>
5906         PR libfortran/95119
5907         * testsuite/libgomp.fortran/close_errors_1.f90: New test.
5909 2020-05-14  H.J. Lu  <hongjiu.lu@intel.com>
5911         * configure: Regenerated.
5913 2020-05-14  Jakub Jelinek  <jakub@redhat.com>
5915         * testsuite/libgomp.c-c++-common/target-40.c: New test.
5917 2020-05-13  Tobias Burnus  <tobias@codesourcery.com>
5919         PR fortran/94690
5920         * testsuite/libgomp.fortran/pr66199-3.f90: New.
5921         * testsuite/libgomp.fortran/pr66199-4.f90: New.
5922         * testsuite/libgomp.fortran/pr66199-5.f90: New.
5923         * testsuite/libgomp.fortran/pr66199-6.f90: New.
5924         * testsuite/libgomp.fortran/pr66199-7.f90: New.
5925         * testsuite/libgomp.fortran/pr66199-8.f90: New.
5926         * testsuite/libgomp.fortran/pr66199-9.f90: New.
5928 2020-05-12  Jakub Jelinek  <jakub@redhat.com>
5930         * testsuite/libgomp.c/target-39.c: New test.
5932 2020-04-29  Thomas Schwinge  <thomas@codesourcery.com>
5934         * config/accel/openacc.f90 (acc_device_current): Set to '-1'.
5935         * openacc.f90 (acc_device_current): Likewise.
5936         * openacc.h (acc_device_current): Likewise.
5937         * openacc_lib.h (acc_device_current): Likewise.
5939         PR target/94282
5940         * testsuite/libgomp.c-c++-common/function-not-offloaded.c: Remove
5941         'dg-allow-blank-lines-in-output'.
5943         * oacc-init.c (get_openacc_name): Handle 'gcn'.
5944         * testsuite/lib/libgomp.exp
5945         (offload_target_to_openacc_device_type) [amdgcn*]: Return
5946         'radeon'.  Adjust all users.
5947         (check_effective_target_openacc_amdgcn_accel_present): Rename
5948         to...
5949         (check_effective_target_openacc_radeon_accel_present): ... this.
5950         Adjust all users.
5951         (check_effective_target_openacc_amdgcn_accel_selected): Rename to...
5952         (check_effective_target_openacc_radeon_accel_selected): ... this.
5953         Adjust all users.
5955         * testsuite/libgomp.fortran/use_device_ptr-optional-2.f90: Add
5956         'dg-do run'.
5958 2020-04-23  Andrew Stubbs  <ams@codesourcery.com>
5960         PR other/94629
5962         * plugin/plugin-gcn.c (init_hsa_context): Check return value from
5963         hsa_iterate_agents.
5964         (GOMP_OFFLOAD_init_device): Check return values from both calls to
5965         hsa_agent_iterate_regions.
5967 2020-04-20  Thomas Schwinge  <thomas@codesourcery.com>
5969         PR middle-end/94635
5970         * testsuite/libgomp.fortran/target-enter-data-2.F90: Add 'dg-do
5971         run'.
5973 2020-04-20  Tobias Burnus  <tobias@codesourcery.com>
5975         PR middle-end/94120
5976         * testsuite/libgomp.oacc-c++/declare-pr94120.C: Fix 'declare copy(out)'
5977         test case.
5979 2020-04-17  Tobias Burnus  <tobias@codesourcery.com>
5981         PR middle-end/94635
5982         * testsuite/libgomp.fortran/target-enter-data-2.F90: New.
5984 2020-04-13  Thomas Schwinge  <thomas@codesourcery.com>
5986         PR libgomp/92843
5987         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-1-lib.c:
5988         Rename to...
5989         * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-1-lib.c:
5990         ... this.
5991         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-1.c:
5992         Rename to...
5993         * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-1.c:
5994         ... this.
5995         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-2-lib.c:
5996         Rename to...
5997         * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-2-lib.c:
5998         ... this.
5999         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-2.c:
6000         Rename to...
6001         * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-2.c:
6002         ... this.
6003         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-3-lib.c:
6004         Rename to...
6005         * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-3-lib.c:
6006         ... this.
6007         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-3.c:
6008         Rename to...
6009         * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-3.c:
6010         ... this.
6011         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-4-lib.c:
6012         Rename to...
6013         * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-4-lib.c:
6014         ... this.
6015         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-4.c:
6016         Rename to...
6017         * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-4.c:
6018         ... this.
6019         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-5-lib.c:
6020         Rename to...
6021         * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-5-lib.c:
6022         ... this.
6023         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-5.c:
6024         Rename to...
6025         * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-5.c:
6026         ... this.
6027         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-6-lib.c:
6028         Rename to...
6029         * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-6-lib.c:
6030         ... this.
6031         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-6.c:
6032         Rename to...
6033         * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-6.c:
6034         ... this.
6035         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-7-lib.c:
6036         Rename to...
6037         * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-7-lib.c:
6038         ... this.
6039         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-7.c:
6040         Rename to...
6041         * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-7.c:
6042         ... this.
6043         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-8-lib.c:
6044         Rename to...
6045         * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-8-lib.c:
6046         ... this.
6047         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-8.c::
6048         Rename to...
6049         * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-8.c:
6050         ... this.
6052 2020-04-10  Julian Brown  <julian@codesourcery.com>
6053             Thomas Schwinge  <thomas@codesourcery.com>
6055         PR libgomp/92843
6056         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-1-lib.c:
6057         New file.
6058         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-1.c:
6059         Likewise.
6060         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-2-lib.c:
6061         Likewise.
6062         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-2.c:
6063         Likewise.
6064         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-3-lib.c:
6065         Likewise.
6066         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-3.c:
6067         Likewise.
6068         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-4-lib.c:
6069         Likewise.
6070         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-4.c:
6071         Likewise.
6072         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-5-lib.c:
6073         Likewise.
6074         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-5.c:
6075         Likewise.
6076         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-6-lib.c:
6077         Likewise.
6078         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-6.c:
6079         Likewise.
6080         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-7-lib.c:
6081         Likewise.
6082         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-7.c:
6083         Likewise.
6084         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-8-lib.c:
6085         Likewise.
6086         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-8.c:
6087         Likewise.
6089 2020-04-10  Thomas Schwinge  <thomas@codesourcery.com>
6091         * testsuite/libgomp.fortran/target-enter-data-1.f90: Add 'dg-do
6092         run'.
6094 2020-04-08  Tobias Burnus  <tobias@codesourcery.com>
6096         PR middle-end/94120
6097         * libgomp.oacc-c++/declare-pr94120.C: New.
6099 2020-04-06  Maciej W. Rozycki  <macro@wdc.com>
6101         * configure.ac: Add testsuite/libgomp-site-extra.exp to output
6102         files.
6103         * configure: Regenerate.
6104         * testsuite/libgomp-site-extra.exp.in: New file.
6105         * testsuite/libgomp-test-support.exp.in (GCC_UNDER_TEST): Remove
6106         variable.
6107         * testsuite/Makefile.am (EXTRA_DEJAGNU_SITE_CONFIG): New
6108         variable.
6109         * testsuite/Makefile.in: Regenerate.
6111 2020-04-03  Thomas Schwinge  <thomas@codesourcery.com>
6113         PR tree-optimization/89713
6114         PR c/94392
6115         * testsuite/libgomp.oacc-c-c++-common/pr85381-2.c: Again expect
6116         'bar.sync'.
6117         * testsuite/libgomp.oacc-c-c++-common/pr85381-4.c: Likewise.
6119 2020-03-31  Tobias Burnus  <tobias@codesourcery.com>
6121         * target.c (GOMP_target_enter_exit_data): Handle PSET/MAP_POINTER.
6122         * testsuite/libgomp.fortran/target-enter-data-1.f90: New.
6124 2020-03-24  Tobias Burnus  <tobias@codesourcery.com>
6126         PR libgomp/81689
6127         * testsuite/libgomp.c/target-link-1.c: Remove xfail.
6129 2020-03-20  Tobias Burnus  <tobias@codesourcery.com>
6131         PR libgomp/94251
6132         * target.c (gomp_load_image_to_device): Fix link
6133         variable handling.
6135 2020-03-19  Jakub Jelinek  <jakub@redhat.com>
6137         PR c++/93931
6138         * testsuite/libgomp.c++/pr93931.C: New test.
6140 2020-03-19  Tobias Burnus  <tobias@codesourcery.com>
6142         * testsuite/libgomp.c-c++-common/function-not-offloaded.c: Add
6143         dg-allow-blank-lines-in-output.
6145 2020-03-18  Julian Brown <julian@codesourcery.com>
6146             Tobias Burnus  <tobias@codesourcery.com>
6148         * testsuite/libgomp.oacc-fortran/atomic_capture-1.f90: Really make
6149         it work concurrently.
6151 2020-03-18  Tobias Burnus  <tobias@codesourcery.com>
6153         * testsuite/libgomp.oacc-c++/firstprivate-mappings-1.C: Add
6154         #define DO_LONG_DOUBLE; set to 1, except for nvidia + gcn.
6155         * libgomp.oacc-c-c++-common/firstprivate-mappings-1.c: Likewise.
6157 2020-03-14  Jakub Jelinek  <jakub@redhat.com>
6159         PR middle-end/93566
6160         * testsuite/libgomp.c/pr93566.c: New test.
6162 2020-02-21  Frederik Harwath  <frederik@codesourcery.com>
6164         * testsuite/libgomp.oacc-fortran/acc_get_property.f90: Adapt to
6165         changes from 2020-02-19, i.e. use integer(c_size_t) instead of
6166         integer(acc_device_property) for the type of the return value of
6167         acc_get_property.
6169 2020-02-19  Tobias Burnus  <tobias@codesourcery.com>
6171         * .gitattributes: New; whitespace handling for Fortran's openacc_lib.h.
6172         * config/accel/openacc.f90 (openacc_kinds): Add acc_device_current.
6173         (openacc_internal, acc_on_device_h): Fix argument name; minor cleanup.
6174         * libgomp.texi (Enabling OpenACC): No longer mark as experimental.
6175         (acc_set_device_num): Fix Fortran argument name, use same name for C.
6176         (acc_get_property): Update Fortran interface to post-OpenACC 3.0
6177         corrections; add note about the previous interface and named constant.
6178         (OpenACC library and environment variables): Fix two typos.
6179         * openacc.f90: Use for all procedures the argument names from the spec
6180         as for â€¦_h they are user visible.
6181         (openacc_kinds): Rename acc_device_property to
6182         acc_device_property_kinds and change value to int32 ; and update users.
6183         Re-add acc_device_property for for backward compatibility.
6184         (acc_get_property_string_h): Clean up as acc_device_property_kind
6185         changed.
6186         (acc_get_property_h): Likewise and return c_size_t instead of
6187         acc_device_property.
6188         (openacc): Also export acc_device_property_kinds.
6189         (acc_async_test_h, acc_async_test_all_h, acc_on_device_h,
6190         acc_is_present_32_h, acc_is_present_64_h): Simplify logical-return-value
6191         handling; check against /= 0 instead of == 1 to match C.
6192         * openacc_lib.h: Use for all procedures the argument names from the spec
6193         as for â€¦_h they are user visible. Place !GCC$ into the first column to
6194         be active also for fixed-form souce form.
6195         (acc_device_current, acc_device_property_kind, acc_device_property,
6196         acc_property_memory, acc_property_free_memory, acc_property_name,
6197         acc_property_vendor, acc_property_driver): New named constants.
6198         (acc_get_property, acc_get_property_string): New generic interface.
6200 2020-02-13  Frederik Harwath  <frederik@codesourcery.com>
6202         PR libgomp/93481
6203         * plugin/plugin-nvptx.c: Remove GOMP_OFFLOAD_async_run stub.
6204         * target.c (gomp_load_plugin_for_device): Make "async_run" loading
6205         optional.
6206         (gomp_target_task_fn): Assert "devicep->async_run_func".
6207         (clear_unsupported_flags): New function to remove unsupported flags
6208         (right now only GOMP_TARGET_FLAG_NOWAIT) that can be be ignored.
6209         (GOMP_target_ext): Apply clear_unsupported_flags to flags.
6210         * testsuite/libgomp.c/target-33.c:
6211         Remove xfail for offload_target_nvptx.
6212         * testsuite/libgomp.c/target-34.c: Likewise.
6214 2020-02-10  Frederik Harwath  <frederik@codesourcery.com>
6216         * testsuite/libgomp.c/target-33.c: Add xfail for execution on
6217         offload_target_nvptx, cf. https://gcc.gnu.org/PR81688.
6218         * testsuite/libgomp.c/target-34.c: Likewise.
6219         * testsuite/libgomp.c/target-link-1.c: Add xfail for
6220         offload_target_nvptx, cf. https://gcc.gnu.org/PR81689.
6222 2020-02-09  Jakub Jelinek  <jakub@redhat.com>
6224         * testsuite/libgomp.c/target-38.c: New test.
6226 2020-02-06  Jakub Jelinek  <jakub@redhat.com>
6228         PR libgomp/93515
6229         * testsuite/libgomp.c-c++-common/pr93515.c: New test.
6231 2020-02-05  Tobias Burnus  <tobias@codesourcery.com>
6233         * testsuite/lib/libgomp.exp
6234         (check_effective_target_offload_target_nvptx): Pass flags as 'options'
6235         and not as 'source' argument to libgomp_target_compile.
6237 2020-02-03  Andrew Stubbs  <ams@codesourcery.com>
6239         * plugin/plugin-gcn.c (EF_AMDGPU_MACH_AMDGCN_GFX801): Remove.
6240         (gcn_gfx801_s): Remove.
6241         (isa_hsa_name): Remove gfx801.
6242         (isa_gcc_name): Remove gfx801/carizzo.
6243         (isa_code): Remove gfx801.
6245 2020-02-03  Julian Brown  <julian@codesourcery.com>
6246             Tobias Burnus  <tobias@codesourcery.com>
6248         * libgomp.texi (OpenACC Runtime Library Routines): Document *_async
6249         and *_finalize variants; document acc_attach and acc_detach; update
6250         references from OpenACC 2.0 to 2.6.
6251         * openacc.f90 (openacc_version): Update to 201711.
6252         * openacc_lib.h (openacc_version): Update to 201711.
6253         * testsuite/libgomp.oacc-fortran/openacc_version-1.f: Update expected
6254         openacc_version to 201711.
6255         * testsuite/libgomp.oacc-fortran/openacc_version-2.f90: Likewise.
6257 2020-01-31  Kwok Cheung Yeung  <kcy@codesourcery.com>
6259         * plugin/plugin-gcn.c (struct hsa_kernel_description): Add sgpr_count
6260         and vgpr_count fields.
6261         (struct kernel_info): Add a field for a hsa_kernel_description.
6262         (run_kernel): Reduce the number of threads/workers if the requested
6263         number would require too many VGPRs.
6264         (init_basic_kernel_info): Initialize description field with
6265         the hsa_kernel_description entry for the kernel.
6267 2020-01-29  Tobias Burnus  <tobias@codesourcery.com>
6269         PR bootstrap/93409
6270         * plugin/configfrag.ac (enable_offload_targets): Skip
6271         HSA and GCN plugin besides -m32 also for -mx32.
6272         * configure: Regenerate.
6274 2020-01-29  Frederik Harwath  <frederik@codesourcery.com>
6276         * oacc-init.c (name_of_acc_device_t): Handle acc_device_radeon.
6278 2020-01-29  Frederik Harwath  <frederik@codesourcery.com>
6280         * plugin-gcn.c (struct agent_info): Add fields "name" and
6281         "vendor_name" ...
6282         (GOMP_OFFLOAD_init_device): ... and init from here.
6283         (struct hsa_context_info): Add field "driver_version_s" ...
6284         (init_hsa_contest): ... and init from here.
6285         (GOMP_OFFLOAD_openacc_get_property): Replace stub with a proper
6286         implementation.
6287         * testsuite/libgomp.oacc-c-c++-common/acc_get_property.c:
6288         Enable test execution for amdgcn and host offloading targets.
6289         * testsuite/libgomp.oacc-fortran/acc_get_property.f90: Likewise.
6290         * testsuite/libgomp.oacc-c-c++-common/acc_get_property-aux.c
6291         (expect_device_properties): Split function into ...
6292         (expect_device_string_properties): ... this new function ...
6293         (expect_device_memory): ... and this new function.
6294         * testsuite/libgomp.oacc-c-c++-common/acc_get_property-gcn.c:
6295         Add test.
6297 2020-01-28  Julian Brown  <julian@codesourcery.com>
6299         * testsuite/libgomp.oacc-fortran/deep-copy-2.f90: Remove test from here.
6300         * testsuite/libgomp.oacc-fortran/deep-copy-3.f90: Don't use mixed
6301         component/non-component variable refs in a single directive.
6302         * testsuite/libgomp.oacc-fortran/classtypes-1.f95: Likewise.
6304 2020-01-24  Maciej W. Rozycki  <macro@wdc.com>
6306         * configure.ac: Handle `--with-toolexeclibdir='.
6307         * Makefile.in: Regenerate.
6308         * aclocal.m4: Regenerate.
6309         * configure: Regenerate.
6310         * testsuite/Makefile.in: Regenerate.
6312 2020-01-24  Frederik Harwath  <frederik@codesourcery.com>
6314         * testsuite/libgomp.oacc-c-c++-common/acc_get_property-aux.c
6315         (expect_device_properties): Remove "expected_free_mem" argument,
6316         change "expected_total_mem" argument type to size_t;
6317         change types of acc_get_property results to size_t,
6318         adapt format strings.
6319         * testsuite/libgomp.oacc-c-c++-common/acc_get_property.c:
6320         Use %zu instead of %zd to print size_t values.
6321         * testsuite/libgomp.oacc-c-c++-common/acc_get_property-2.c: Adapt and
6322         rename to ...
6323         * testsuite/libgomp.oacc-c-c++-common/acc_get_property-nvptx.c: ... this.
6324         * testsuite/libgomp.oacc-c-c++-common/acc_get_property-3.c: Adapt and
6325         rename to ...
6326         * testsuite/libgomp.oacc-c-c++-common/acc_get_property-host.c: ... this.
6328 2020-01-23  Andrew Stubbs  <ams@codesourcery.com>
6330         * plugin/plugin-gcn.c (parse_target_attributes): Use correct mask for
6331         the device id.
6333 2020-01-20  Andrew Stubbs  <ams@codesourcery.com>
6335         * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Skip test on gcn.
6336         * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c (main):
6337         Adjust test dimensions for amdgcn.
6338         * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c (main): Adjust
6339         gang/worker/vector expectations dynamically.
6340         * testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c
6341         (main): Likewise.
6342         * testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c (main): Likewise.
6343         * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c (main): Likewise.
6344         * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c (main): Likewise.
6345         * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c (main): Likewise.
6346         * testsuite/libgomp.oacc-c-c++-common/loop-red-wv-1.c (main): Likewise.
6347         * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c (main): Likewise.
6348         * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c (main): Likewise.
6349         * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c (main): Likewise.
6350         * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c
6351         (acc_gang): Recognise acc_device_radeon.
6352         (acc_worker): Likewise.
6353         (acc_vector): Likewise.
6354         (main): Set expectations for amdgcn.
6355         * testsuite/libgomp.oacc-c-c++-common/routine-gwv-1.c
6356         (main): Adjust gang/worker/vector expectations dynamically.
6357         * testsuite/libgomp.oacc-c-c++-common/routine-v-1.c (main): Likewise.
6358         * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c (main): Likewise.
6359         * testsuite/libgomp.oacc-c-c++-common/routine-wv-1.c (main): Likewise.
6360         * testsuite/libgomp.oacc-c-c++-common/routine-wv-2.c: Set expectations
6361         for amdgcn.
6363 2020-01-17  Andrew Stubbs  <ams@codesourcery.com>
6365         * config/accel/openacc.f90 (openacc_kinds): Rename acc_device_gcn to
6366         acc_device_radeon.
6367         (openacc): Likewise.
6368         * openacc.f90 (openacc_kinds): Likewise.
6369         (openacc): Likewise.
6370         * openacc.h (acc_device_t): Likewise.
6371         * openacc_lib.h: Likewise.
6372         * testsuite/lib/libgomp.exp
6373         (check_effective_target_openacc_amdgcn_accel_present): Likewise.
6374         * testsuite/libgomp.oacc-c-c++-common/acc_prof-init-1.c
6375         (cb_compute_construct_end): Likewise.
6376         * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c
6377         (cb_enqueue_launch_start): Likewise.
6378         * testsuite/libgomp.oacc-c-c++-common/acc_prof-parallel-1.c
6379         (cb_enter_data_end): Likewise.
6380         (cb_exit_data_start): Likewise.
6381         (cb_exit_data_end): Likewise.
6382         (cb_compute_construct_end): Likewise.
6383         (cb_enqueue_launch_start): Likewise.
6384         (cb_enqueue_launch_end): Likewise.
6385         * testsuite/libgomp.oacc-c-c++-common/asyncwait-nop-1.c
6386         (main): Likewise.
6388 2020-01-10  Thomas Schwinge  <thomas@codesourcery.com>
6390         * libgomp-plugin.h (enum goacc_property): New.  Adjust all users
6391         to use this instead of 'enum gomp_device_property'.
6392         (GOMP_OFFLOAD_get_property): Rename to...
6393         (GOMP_OFFLOAD_openacc_get_property): ... this.  Adjust all users.
6394         * libgomp.h (struct gomp_device_descr): Move
6395         'GOMP_OFFLOAD_openacc_get_property'...
6396         (struct acc_dispatch_t): ... here.  Adjust all users.
6397         * plugin/plugin-hsa.c (GOMP_OFFLOAD_get_property): Remove.
6399         * target.c (gomp_map_vars_internal)
6400         <GOMP_MAP_USE_DEVICE_PTR_IF_PRESENT>: Clean up/elaborate code
6401         paths.
6403 2020-01-10  Jakub Jelinek  <jakub@redhat.com>
6405         PR libgomp/93219
6406         * libgomp.h (gomp_print_string): Change return type from void to int.
6407         * affinity-fmt.c (gomp_print_string): Likewise.  Return true if
6408         not all characters have been written.
6410 2020-01-08  Tobias Burnus  <tobias@codesourcery.com>
6412         * libgomp.texi: Fix typos, use https.
6414 2020-01-03  Tobias Burnus  <tobias@codesourcery.com>
6416         * testsuite/libgomp.fortran/optional-map.f90: Add test for
6417         unallocated/disassociated actual arguments to nonallocatable/nonpointer
6418         dummy arguments; those are/shall be regarded as absent arguments.
6419         * testsuite/libgomp.fortran/use_device_ptr-optional-2.f90: Ditto.
6420         * testsuite/libgomp.fortran/use_device_ptr-optional-3.f90: New.
6422 2020-01-01  Jakub Jelinek  <jakub@redhat.com>
6424         Update copyright years.
6426         * libgomp.texi: Bump @copying's copyright year.
6428 2019-12-31  Ayush Mittal  <ayush.m@samsung.com>
6430         PR libgomp/93065
6431         * oacc-init.c (goacc_runtime_deinitialize): New function.
6433 2019-12-28  Jakub Jelinek  <jakub@redhat.com>
6435         PR bootstrap/93074
6436         * plugin/cuda/cuda.h (cuDeviceGetName, cuDriverGetVersion): Declare.
6437         (cuDeviceTotalMem, cuMemGetInfo): Likewise.  Define to *_v2.
6439 2019-12-22  Maciej W. Rozycki  <macro@codesourcery.com>
6440             Frederik Harwath  <frederik@codesourcery.com>
6441             Thomas Schwinge  <tschwinge@codesourcery.com>
6443         * libgomp.h (gomp_device_descr): Add `get_property_func' member.
6444         * libgomp-plugin.h (gomp_device_property_value): New union.
6445         (gomp_device_property_value): New prototype.
6446         * openacc.h (acc_device_t): Add `acc_device_current' enumeration
6447         constant.
6448         (acc_device_property_t): New enum.
6449         (acc_get_property, acc_get_property_string): New prototypes.
6450         * oacc-init.c (acc_get_device_type): Also assert that result
6451         is not `acc_device_current'.
6452         (get_property_any, acc_get_property, acc_get_property_string):
6453         New functions.
6454         * openacc.f90 (openacc_kinds): Add `acc_device_current' and
6455         `acc_property_memory', `acc_property_free_memory',
6456         `acc_property_name', `acc_property_vendor' and
6457         `acc_property_driver' constants.  Add `acc_device_property' data
6458         type.
6459         (openacc_internal): Add `acc_get_property' and
6460         `acc_get_property_string' interfaces.  Add `acc_get_property_h',
6461         `acc_get_property_string_h', `acc_get_property_l' and
6462         `acc_get_property_string_l'.
6463         * oacc-host.c (host_get_property): New function.
6464         (host_dispatch): Wire it.
6465         * target.c (gomp_load_plugin_for_device): Handle `get_property'.
6466         * libgomp.map (OACC_2.6): Add `acc_get_property', `acc_get_property_h_',
6467         `acc_get_property_string' and `acc_get_property_string_h_' symbols.
6468         * libgomp.texi (OpenACC Runtime Library Routines): Add
6469         `acc_get_property'.
6470         (acc_get_property): New node.
6471         * plugin/plugin-gcn.c (GOMP_OFFLOAD_get_property): New
6472         function (stub).
6473         * plugin/plugin-hsa.c (GOMP_OFFLOAD_get_property): New function.
6474         * plugin/plugin-nvptx.c (CUDA_CALLS): Add `cuDeviceGetName',
6475         `cuDeviceTotalMem', `cuDriverGetVersion' and `cuMemGetInfo'
6476         calls.
6477         (GOMP_OFFLOAD_get_property): New function.
6478         (struct ptx_device): Add new field "name".
6479         (cuda_driver_version_s): Add new static variable ...
6480         (nvptx_init): ... and init from here.
6482         * testsuite/libgomp.oacc-c-c++-common/acc_get_property.c: New test.
6483         * testsuite/libgomp.oacc-c-c++-common/acc_get_property-2.c: New test.
6484         * testsuite/libgomp.oacc-c-c++-common/acc_get_property-3.c: New test.
6485         * testsuite/libgomp.oacc-c-c++-common/acc_get_property-aux.c: New file
6486         with test helper functions.
6488         * testsuite/libgomp.oacc-fortran/acc_get_property.f90: New test.
6490 2019-12-22  Maciej W. Rozycki  <macro@wdc.com>
6492         * testsuite/libgomp-test-support.exp.in (GCC_UNDER_TEST): New
6493         variable.
6495 2019-12-21  Thomas Schwinge  <thomas@codesourcery.com>
6497         * target.c (gomp_map_vars_internal): Restore 'omp declare target
6498         link' handling.
6500 2019-12-19  Julian Brown  <julian@codesourcery.com>
6502         * testsuite/libgomp.oacc-fortran/class-ptr-param.f95: New test.
6503         * testsuite/libgomp.oacc-fortran/classtypes-1.f95: New test.
6504         * testsuite/libgomp.oacc-fortran/classtypes-2.f95: New test.
6506 2019-12-19  Julian Brown  <julian@codesourcery.com>
6507             Cesar Philippidis  <cesar@codesourcery.com>
6509         * testsuite/libgomp.oacc-fortran/deep-copy-1.f90: New test.
6510         * testsuite/libgomp.oacc-fortran/deep-copy-2.f90: New test.
6511         * testsuite/libgomp.oacc-fortran/deep-copy-3.f90: New test.
6512         * testsuite/libgomp.oacc-fortran/deep-copy-4.f90: New test.
6513         * testsuite/libgomp.oacc-fortran/deep-copy-5.f90: New test.
6514         * testsuite/libgomp.oacc-fortran/deep-copy-6.f90: New test.
6515         * testsuite/libgomp.oacc-fortran/deep-copy-7.f90: New test.
6516         * testsuite/libgomp.oacc-fortran/deep-copy-8.f90: New test.
6517         * testsuite/libgomp.oacc-fortran/derived-type-1.f90: New test.
6518         * testsuite/libgomp.oacc-fortran/derivedtype-1.f95: New test.
6519         * testsuite/libgomp.oacc-fortran/derivedtype-2.f95: New test.
6520         * testsuite/libgomp.oacc-fortran/multidim-slice.f95: New test.
6521         * testsuite/libgomp.oacc-fortran/update-2.f90: New test.
6523 2019-12-19  Julian Brown  <julian@codesourcery.com>
6525         * testsuite/libgomp.oacc-c-c++-common/deep-copy-1.c: New test.
6526         * testsuite/libgomp.oacc-c-c++-common/deep-copy-2.c: New test.
6527         * testsuite/libgomp.oacc-c-c++-common/deep-copy-4.c: New test.
6528         * testsuite/libgomp.oacc-c-c++-common/deep-copy-6.c: New test.
6529         * testsuite/libgomp.oacc-c-c++-common/deep-copy-7.c: New test.
6530         * testsuite/libgomp.oacc-c-c++-common/deep-copy-8.c: New test.
6531         * testsuite/libgomp.oacc-c-c++-common/deep-copy-9.c: New test.
6532         * testsuite/libgomp.oacc-c-c++-common/deep-copy-10.c: New test.
6533         * testsuite/libgomp.oacc-c-c++-common/deep-copy-11.c: New test.
6534         * testsuite/libgomp.oacc-c-c++-common/deep-copy-14.c: New test.
6535         * testsuite/libgomp.oacc-c++/deep-copy-12.C: New test.
6536         * testsuite/libgomp.oacc-c++/deep-copy-13.C: New test.
6538 2019-12-19  Julian Brown  <julian@codesourcery.com>
6540         * libgomp.h (struct target_var_desc): Add do_detach flag.
6541         * oacc-init.c (acc_shutdown_1): Free aux block if present.
6542         * oacc-mem.c (find_group_last): Add SIZES parameter. Support
6543         struct components.  Tidy up and add some new checks.
6544         (goacc_enter_data_internal): Update call to find_group_last.
6545         (goacc_exit_data_internal): Support detach operations and
6546         GOMP_MAP_STRUCT.
6547         (GOACC_enter_exit_data): Handle initial GOMP_MAP_STRUCT or
6548         GOMP_MAP_FORCE_PRESENT in finalization detection code.  Handle
6549         attach/detach in enter/exit data detection code.
6550         * target.c (gomp_map_vars_existing): Initialise do_detach field of
6551         tgt_var_desc.
6552         (gomp_map_vars_internal): Support attach.
6553         (gomp_unmap_vars_internal): Support detach.
6555 2019-12-19  Julian Brown  <julian@codesourcery.com>
6556             Thomas Schwinge  <thomas@codesourcery.com>
6558         * libgomp.h (struct splay_tree_aux): Add attach_count field.
6559         (gomp_attach_pointer, gomp_detach_pointer): Add prototypes.
6560         * libgomp.map (OACC_2.6): New section. Add acc_attach,
6561         acc_attach_async, acc_detach, acc_detach_async, acc_detach_finalize,
6562         acc_detach_finalize_async.
6563         * oacc-mem.c (acc_attach_async, acc_attach, goacc_detach_internal,
6564         acc_detach, acc_detach_async, acc_detach_finalize,
6565         acc_detach_finalize_async): New functions.
6566         * openacc.h (acc_attach, acc_attach_async, acc_detach,
6567         (acc_detach_async, acc_detach_finalize, acc_detach_finalize_async): Add
6568         prototypes.
6569         * target.c (gomp_attach_pointer, gomp_detach_pointer): New functions.
6570         (gomp_remove_var_internal): Free attachment counts if present.
6571         * testsuite/libgomp.oacc-c-c++-common/deep-copy-3.c: New test.
6572         * testsuite/libgomp.oacc-c-c++-common/deep-copy-5.c: New test.
6574 2019-12-19  Julian Brown  <julian@codesourcery.com>
6575             Cesar Philippidis  <cesar@codesourcery.com>
6577         * libgomp.h (gomp_map_val): Add prototype.
6578         * oacc-parallel.c (GOACC_parallel_keyed): Use gomp_map_val instead of
6579         open-coding device-address calculation.
6580         * target.c (gomp_map_val): Make global. Use OFFSET_POINTER in
6581         non-present case.
6583 2019-12-19  Julian Brown  <julian@codesourcery.com>
6585         * libgomp.h (struct splay_tree_key_s): Substitute dynamic_refcount
6586         field for virtual_refcount.
6587         (enum gomp_map_vars_kind): Add GOMP_MAP_VARS_OPENACC_ENTER_DATA.
6588         (gomp_free_memmap): Remove prototype.
6589         * oacc-init.c (acc_shutdown_1): Iteratively call gomp_remove_var
6590         instead of calling gomp_free_memmap.
6591         * oacc-mem.c (acc_map_data): Use virtual_refcount instead of
6592         dynamic_refcount.
6593         (acc_unmap_data): Open code instead of forcing target_mem_desc's
6594         to_free field to NULL then calling gomp_unmap_vars.  Handle
6595         REFCOUNT_INFINITY on target blocks.
6596         (goacc_enter_data): Rename to...
6597         (goacc_enter_datum): ...this.  Remove MAPNUM parameter and special
6598         handling for mapping groups.  Use virtual_refcount instead of
6599         dynamic_refcount.  Use GOMP_MAP_VARS_OPENACC_ENTER_DATA for
6600         map_map_vars_async call.  Re-do lookup for target pointer return value.
6601         (acc_create, acc_create_async, acc_copyin, acc_copyin_async): Call
6602         renamed goacc_enter_datum function.
6603         (goacc_exit_data): Rename to...
6604         (goacc_exit_datum): ...this.  Update for virtual_refcount semantics.
6605         (acc_delete, acc_delete_async, acc_delete_finalize,
6606         acc_delete_finalize_async, acc_copyout, acc_copyout_async,
6607         acc_copyout_finalize, acc_copyout_finalize_async): Call renamed
6608         goacc_exit_datum function.
6609         (gomp_acc_remove_pointer, find_pointer): Remove functions.
6610         (find_group_last, goacc_enter_data_internal, goacc_exit_data_internal):
6611         New functions.
6612         (GOACC_enter_exit_data): Use goacc_enter_data_internal and
6613         goacc_exit_data_internal helper functions.
6614         * target.c (gomp_map_vars_internal): Handle
6615         GOMP_MAP_VARS_OPENACC_ENTER_DATA.  Update for virtual_refcount
6616         semantics.
6617         (gomp_unmap_vars_internal): Update for virtual_refcount semantics.
6618         (gomp_load_image_to_device, omp_target_associate_ptr): Zero-initialise
6619         virtual_refcount field instead of dynamic_refcount.
6620         (gomp_free_memmap): Remove function.
6621         * testsuite/libgomp.oacc-c-c++-common/unmap-infinity-1.c: New test.
6622         * testsuite/libgomp.c-c++-common/unmap-infinity-2.c: New test.
6623         * testsuite/libgomp.oacc-c-c++-common/pr92843-1.c: Add XFAIL.
6625 2019-12-19  Julian Brown  <julian@codesourcery.com>
6626             Thomas Schwinge  <thomas@codesourcery.com>
6628         * libgomp.h (struct splay_tree_aux): New.
6629         (struct splay_tree_key_s): Replace link_key field with aux pointer.
6630         * target.c (gomp_map_vars_internal): Adjust for link_key being moved
6631         to aux struct.
6632         (gomp_remove_var_internal): Free aux block if present.
6633         (gomp_load_image_to_device): Zero-initialise aux field instead of
6634         link_key field.
6635         (omp_target_associate_pointer): Zero-initialise aux field.
6637 2019-12-18  Jakub Jelinek  <jakub@redhat.com>
6639         PR middle-end/86416
6640         * testsuite/libgomp.c/pr86416-1.c (main): Use L suffixes rather than
6641         q or none.
6642         * testsuite/libgomp.c/pr86416-2.c (main): Use Q suffixes rather than
6643         L or none.
6645 2019-12-19  Julian Brown  <julian@codesourcery.com>
6646             Maciej W. Rozycki  <macro@codesourcery.com>
6647             Tobias Burnus  <tobias@codesourcery.com>
6648             Thomas Schwinge  <thomas@codesourcery.com>
6650         * target.c (gomp_map_vars_async): Support GOMP_MAP_NO_ALLOC.
6651         * testsuite/libgomp.oacc-c-c++-common/no_create-1.c: New test.
6652         * testsuite/libgomp.oacc-c-c++-common/no_create-2.c: New test.
6653         * testsuite/libgomp.oacc-c-c++-common/no_create-3.c: New test.
6654         * testsuite/libgomp.oacc-c-c++-common/no_create-4.c: New test.
6655         * testsuite/libgomp.oacc-c-c++-common/no_create-5.c: New test.
6656         * testsuite/libgomp.oacc-fortran/no_create-1.f90: New test.
6657         * testsuite/libgomp.oacc-fortran/no_create-2.f90: New test.
6658         * testsuite/libgomp.oacc-fortran/no_create-3.F90: New test.
6660 2019-12-18  Thomas Schwinge  <thomas@codesourcery.com>
6662         * oacc-mem.c (goacc_enter_data): Refactor, so that it can be
6663         called...
6664         (goacc_insert_pointer): ... from here, "present" case.
6665         (goacc_insert_pointer): Inline function into...
6666         (GOACC_enter_exit_data): ... here, and simplify.
6668         * oacc-mem.c (goacc_enter_data): Refactor, so that it can be
6669         called...
6670         (goacc_insert_pointer): ... from here, "not present" case.
6672         * oacc-mem.c (goacc_remove_pointer): Refactor interface.  Adjust
6673         all users.
6675         * oacc-mem.c (GOACC_enter_exit_data): Refactor code to call
6676         'goacc_enter_data', 'goacc_exit_data'.
6678         * oacc-mem.c (delete_copyout): Refactor into...
6679         (goacc_exit_data): ... this.  Adjust all users.
6681         * oacc-mem.c (present_create_copy): Refactor into...
6682         (goacc_enter_data): ... this.  Adjust all users.
6684         * target.c (gomp_unmap_vars_internal): Add a safeguard to
6685         'gomp_remove_var'.
6687         * target.c (gomp_to_device_kind_p): Handle 'GOMP_MAP_FORCE_FROM'
6688         like 'GOMP_MAP_FROM'.
6690         PR libgomp/92726
6691         PR libgomp/92970
6692         PR libgomp/92984
6693         * oacc-mem.c (delete_copyout): No-op behavior if 'lookup_host'
6694         fails.
6695         (GOACC_enter_exit_data): Simplify accordingly.
6696         * testsuite/libgomp.oacc-c-c++-common/pr92970-1.c: New file,
6697         subsuming...
6698         * testsuite/libgomp.oacc-c-c++-common/lib-17.c: ... this file...
6699         * testsuite/libgomp.oacc-c-c++-common/lib-18.c: ..., and this
6700         file.
6701         * testsuite/libgomp.oacc-c-c++-common/pr92984-1.c: New file,
6702         subsuming...
6703         * testsuite/libgomp.oacc-c-c++-common/lib-21.c: ... this file...
6704         * testsuite/libgomp.oacc-c-c++-common/lib-29.c: ..., and this
6705         file.
6706         * testsuite/libgomp.oacc-c-c++-common/pr92726-1.c: New file,
6707         subsuming...
6708         * testsuite/libgomp.oacc-c-c++-common/lib-28.c: ... this file.
6710         * oacc-mem.c (GOACC_enter_exit_data): Simplify 'exit data'
6711         'finalize' handling.
6713         PR libgomp/92848
6714         * oacc-mem.c (acc_map_data, present_create_copy)
6715         (goacc_insert_pointer): Use 'GOMP_MAP_VARS_ENTER_DATA'.
6716         (acc_unmap_data, delete_copyout, goacc_remove_pointer): Adjust.
6717         * testsuite/libgomp.oacc-c-c++-common/lib-50.c: Remove.
6718         * testsuite/libgomp.oacc-c-c++-common/pr92848-1-d-a.c: New file
6719         * testsuite/libgomp.oacc-c-c++-common/pr92848-1-d-p.c: Likewise.
6720         * testsuite/libgomp.oacc-c-c++-common/pr92848-1-r-a.c: Likewise.
6721         * testsuite/libgomp.oacc-c-c++-common/pr92848-1-r-p.c: Likewise.
6722         * testsuite/libgomp.oacc-c-c++-common/subset-subarray-mappings-1-r-p.c:
6723         Remove "XFAIL"s.
6725         * target.c (gomp_unmap_tgt): Make it 'static'.
6726         * libgomp.h (gomp_unmap_tgt): Remove.
6728 2019-12-18  Tobias Burnus  <tobias@codesourcery.com>
6730         PR middle-end/86416
6731         * testsuite/libgomp.c/pr86416-1.c: New.
6732         * testsuite/libgomp.c/pr86416-2.c: New.
6734 2019-12-17  Tobias Burnus  <tobias@codesourcery.com>
6736         * config/accel/openacc.f90 (module openacc_kinds): Use 'PUBLIC' to mark
6737         all symbols as public except for the 'use â€¦, only' imported symbol,
6738         which is private.
6739         (module openacc): Default to 'PRIVATE' to exclude openacc_internal; mark
6740         all symbols from module openacc_kinds as PUBLIC
6741         * openacc.f90: Add comment with crossref to that file and openmp_lib.h;
6742         fix comment typo.
6743         * openacc_lib.h (acc_device_gcn): Add this PARAMETER.
6745 2019-12-13  Julian Brown  <julian@codesourcery.com>
6747         PR libgomp/92881
6749         * libgomp.h (gomp_remove_var_async): Add prototype.
6750         * oacc-mem.c (delete_copyout): Call gomp_remove_var_async instead of
6751         gomp_remove_var.
6752         * target.c (gomp_unref_tgt): Change return type to bool, indicating
6753         whether target_mem_desc was unmapped.
6754         (gomp_unref_tgt_void): New.
6755         (gomp_remove_var): Reimplement in terms of...
6756         (gomp_remove_var_internal): ...this new helper function.
6757         (gomp_remove_var_async): New, implemented using above helper function.
6758         (gomp_unmap_vars_internal): Use gomp_unref_tgt_void instead of
6759         gomp_unref_tgt.
6761 2019-12-13  Andrew Stubbs  <ams@codesourcery.com>
6763         * testsuite/libgomp.oacc-c-c++-common/acc_prof-init-1.c: Handle gcn.
6764         * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c: Likewise.
6765         * testsuite/libgomp.oacc-c-c++-common/acc_prof-parallel-1.c: Likewise.
6766         * testsuite/libgomp.oacc-c-c++-common/asyncwait-nop-1.c: Likewise.
6767         * testsuite/libgomp.oacc-c-c++-common/function-not-offloaded.c:
6768         Likewise.
6769         * testsuite/libgomp.oacc-c-c++-common/async_queue-1.c: Disable on GCN.
6770         * testsuite/libgomp.oacc-c-c++-common/tile-1.c: Likewise.
6772 2019-12-13  Tobias Burnus  <tobias@codesourcery.com>
6774         * openacc.f90 (module openacc_kinds): Use 'PUBLIC' to mark all symbols
6775         as public except for the 'use â€¦, only' imported symbol, which is
6776         private.
6777         (module openacc): Default to 'PRIVATE' to exclude openacc_internal; mark
6778         all symbols from module openacc_kinds as PUBLIC; add missing PUBLIC
6779         attributes for acc_copyout_finalize and acc_delete_finalize.
6781 2019-12-11  Jakub Jelinek  <jakub@redhat.com>
6783         PR fortran/92899
6784         * testsuite/libgomp.fortran/atomic1.f90: New test.
6786 2019-12-11  Thomas Schwinge  <thomas@codesourcery.com>
6788         PR libgomp/92843
6789         * oacc-mem.c (present_create_copy, delete_copyout): Fix dynamic
6790         reference counting for structured 'REFCOUNT_INFINITY'.  Add some
6791         assertions.
6792         (goacc_insert_pointer, goacc_remove_pointer): Adjust accordingly.
6793         * testsuite/libgomp.oacc-c-c++-common/pr92843-1.c: New file.
6794         * testsuite/libgomp.oacc-c-c++-common/clauses-1.c: Fix OpenACC.
6795         * testsuite/libgomp.oacc-c-c++-common/lib-82.c: Likewise.
6796         * testsuite/libgomp.oacc-c-c++-common/nested-1.c: Likewise.
6798         * oacc-parallel.c (find_pointer, GOACC_enter_exit_data): Move...
6799         * oacc-mem.c: ... here.
6800         (gomp_acc_insert_pointer, gomp_acc_remove_pointer): Rename to
6801         'goacc_insert_pointer', 'goacc_remove_pointer', and make 'static'.
6802         * libgomp.h (gomp_acc_insert_pointer, gomp_acc_remove_pointer):
6803         Remove.
6804         * libgomp_g.h: Update.
6806         * oacc-parallel.c (GOACC_wait, goacc_wait): Move...
6807         * oacc-async.c: ... here.
6808         * oacc-int.h (goacc_wait): Declare.
6809         * libgomp_g.h: Update
6811         PR libgomp/92854
6812         * testsuite/libgomp.oacc-c-c++-common/acc_map_data-device_already-1.c:
6813         New file.
6814         * testsuite/libgomp.oacc-c-c++-common/acc_map_data-device_already-2.c:
6815         Likewise.
6816         * testsuite/libgomp.oacc-c-c++-common/acc_map_data-device_already-3.c:
6817         Likewise.
6818         * testsuite/libgomp.oacc-c-c++-common/acc_map_data-host_already-1.c:
6819         Likewise.
6820         * testsuite/libgomp.oacc-c-c++-common/acc_map_data-host_already-2.c:
6821         Likewise.
6822         * testsuite/libgomp.oacc-c-c++-common/acc_map_data-host_already-3.c:
6823         Likewise.
6825 2019-12-11  Thomas Schwinge  <thomas@codesourcery.com>
6826             Julian Brown  <julian@codesourcery.com>
6828         * target.c (gomp_load_image_to_device, omp_target_associate_ptr):
6829         Initialize 'dynamic_refcount' whenever we initialize 'refcount'.
6831 2019-12-11  Tobias Burnus  <tobias@codesourcery.com>
6833         * omp_lib.h.in: Fix spelling of function declaration
6834         omp_get_cancell(l)ation.
6835         * libgomp.texi (acc_is_present, acc_async_test, acc_async_test_all):
6836         Fix typos.
6837         * env.c: Fix comment typos.
6838         * oacc-host.c: Likewise.
6839         * ordered.c: Likewise.
6840         * task.c: Likewise.
6841         * team.c: Likewise.
6842         * config/gcn/task.c: Likewise.
6843         * config/gcn/team.c: Likewise.
6844         * config/nvptx/task.c: Likewise.
6845         * config/nvptx/team.c: Likewise.
6846         * plugin/plugin-gcn.c: Likewise.
6847         * testsuite/libgomp.fortran/jacobi.f: Likewise.
6848         * testsuite/libgomp.hsa.c/tiling-2.c: Likewise.
6849         * testsuite/libgomp.oacc-c-c++-common/enter_exit-lib.c: Likewise.
6851 2019-12-11  Tobias Burnus  <tobias@codesourcery.com>
6853         * testsuite/libgomp.oacc-fortran/optional-cache.f95: Add 'dg-do run'.
6854         * testsuite/libgomp.oacc-fortran/optional-reduction.f90: Remove
6855         unnecessary 'dg-additional-options "-w"'.
6857 2019-12-09  Thomas Schwinge  <thomas@codesourcery.com>
6858             Julian Brown  <julian@codesourcery.com>
6860         PR libgomp/92116
6861         PR libgomp/92877
6863         * oacc-mem.c (lookup_dev): Reimplement.  Adjust all users.
6864         * libgomp.h (struct acc_dispatch_t): Remove 'data_environ' member.
6865         Adjust all users.
6866         * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-4-2.c:
6867         Remove XFAIL.
6868         * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-4.c:
6869         Likewise.
6870         * testsuite/libgomp.oacc-c-c++-common/pr92877-1.c: New file.
6872 2019-12-09  Thomas Schwinge  <thomas@codesourcery.com>
6874         PR libgomp/92503
6875         * oacc-mem.c (acc_free): Error out instead of 'acc_unmap_data'.
6876         * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-1.c: New
6877         file.
6878         * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-2.c:
6879         Likewise.
6880         * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-3-2.c:
6881         Likewise.
6882         * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-3.c:
6883         Likewise.
6884         * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-4-2.c:
6885         Likewise.
6886         * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-4.c:
6887         Likewise.
6888         * testsuite/libgomp.oacc-c-c++-common/clauses-1.c: Adjust.
6889         * testsuite/libgomp.oacc-c-c++-common/context-1.c: Likewise.
6890         * testsuite/libgomp.oacc-c-c++-common/context-2.c: Likewise.
6891         * testsuite/libgomp.oacc-c-c++-common/context-3.c: Likewise.
6892         * testsuite/libgomp.oacc-c-c++-common/context-4.c: Likewise.
6893         * testsuite/libgomp.oacc-c-c++-common/lib-13.c: Likewise.
6894         * testsuite/libgomp.oacc-c-c++-common/lib-14.c: Likewise.
6895         * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
6896         * testsuite/libgomp.oacc-c-c++-common/lib-91.c: Likewise.
6897         * testsuite/libgomp.oacc-c-c++-common/nested-1.c: Likewise.
6899         PR libgomp/92840
6900         * oacc-mem.c (acc_map_data): Clarify reference counting behavior.
6901         (acc_unmap_data): Add error case for 'REFCOUNT_INFINITY'.
6902         * testsuite/libgomp.oacc-c-c++-common/acc_unmap_data-pr92840-1.c:
6903         New file.
6904         * testsuite/libgomp.oacc-c-c++-common/acc_unmap_data-pr92840-2.c:
6905         Likewise.
6906         * testsuite/libgomp.oacc-c-c++-common/acc_unmap_data-pr92840-3.c:
6907         Likewise.
6908         * testsuite/libgomp.oacc-c-c++-common/clauses-1.c: Adjust.
6909         * testsuite/libgomp.oacc-c-c++-common/nested-1.c: Adjust.
6911         PR libgomp/92511
6912         * testsuite/libgomp.oacc-c-c++-common/copyin-devptr-1.c: Remove
6913         this file...
6914         * testsuite/libgomp.oacc-c-c++-common/copyin-devptr-2.c: ..., and
6915         this file...
6916         * testsuite/libgomp.oacc-c-c++-common/lib-22.c: ..., and this
6917         file...
6918         * testsuite/libgomp.oacc-c-c++-common/lib-30.c: ..., and this
6919         file...
6920         * testsuite/libgomp.oacc-c-c++-common/subset-subarray-mappings-1-r-p.c:
6921         ... with their content moved into, and extended in this new file.
6922         * testsuite/libgomp.oacc-c-c++-common/subset-subarray-mappings-1-d-a.c:
6923         New file.
6924         * testsuite/libgomp.oacc-c-c++-common/subset-subarray-mappings-1-d-p.c:
6925         Likewise.
6926         * testsuite/libgomp.oacc-c-c++-common/subset-subarray-mappings-1-r-a.c:
6927         Likewise.
6928         * testsuite/libgomp.oacc-c-c++-common/subset-subarray-mappings-2.c:
6929         Likewise.
6931         * testsuite/libgomp.oacc-c-c++-common/map-data-1.c: New file.
6933         PR libgomp/92854
6934         * testsuite/libgomp.oacc-c-c++-common/pr92854-1.c: New file.
6936         * testsuite/libgomp.oacc-c-c++-common/host_data-6.c: New file.
6938         * target.c (gomp_exit_data): Use 'gomp_remove_var'.
6940 2019-12-09  Tobias Burnus  <tobias@codesourcery.com>
6942         * testsuite/libgomp.fortran/use_device_addr-3.f90: Make 'stop' codes
6943         unique.
6944         * testsuite/libgomp.fortran/use_device_addr-4.f90: Ditto.
6945         * testsuite/libgomp.fortran/use_device_ptr-optional-2.f90: Ditto.
6946         * testsuite/libgomp.oacc-fortran/declare-5.f90: Ditto.
6947         * testsuite/libgomp.oacc-fortran/optional-data-copyin-by-value.f90:
6948         Ditto.
6949         * testsuite/libgomp.oacc-fortran/optional-firstprivate.f90: Ditto.
6950         * testsuite/libgomp.oacc-fortran/optional-update-host.f90: Ditto.
6952 2019-12-06  Kwok Cheung Yeung  <kcy@codesourcery.com>
6954         * config/accel/proc.c (omp_get_num_procs): Apply ialias macro.
6956 2019-12-06  Tobias Burnus  <tobias@codesourcery.com>
6957             Kwok Cheung Yeung <kcy@codesourcery.com>
6959         * oacc-mem.c (update_dev_host, gomp_acc_insert_pointer): Just return
6960         if input it a NULL pointer.
6961         * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Remove; dependent on
6962         diagnostic of NULL pointer.
6963         * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Ditto.
6964         * testsuite/libgomp.fortran/optional-map.f90: New.
6965         * testsuite/libgomp.fortran/use_device_addr-1.f90
6966         (test_dummy_opt_callee_1_absent): New.
6967         (test_dummy_opt_call_1): Call it.
6968         * testsuite/libgomp.fortran/use_device_addr-2.f90: Likewise.
6969         * testsuite/libgomp.fortran/use_device_addr-3.f90: Likewise.
6970         * testsuite/libgomp.fortran/use_device_addr-4.f90: Likewise.
6971         * testsuite/libgomp.oacc-fortran/optional-cache.f95: New.
6972         * testsuite/libgomp.oacc-fortran/optional-data-copyin-by-value.f90: New.
6973         * testsuite/libgomp.oacc-fortran/optional-data-copyin.f90: New.
6974         * testsuite/libgomp.oacc-fortran/optional-data-copyout.f90: New.
6975         * testsuite/libgomp.oacc-fortran/optional-data-enter-exit.f90: New.
6976         * testsuite/libgomp.oacc-fortran/optional-declare.f90: New.
6977         * testsuite/libgomp.oacc-fortran/optional-firstprivate.f90: New.
6978         * testsuite/libgomp.oacc-fortran/optional-host_data.f90: New.
6979         * testsuite/libgomp.oacc-fortran/optional-nested-calls.f90: New.
6980         * testsuite/libgomp.oacc-fortran/optional-private.f90: New.
6981         * testsuite/libgomp.oacc-fortran/optional-reduction.f90: New.
6982         * testsuite/libgomp.oacc-fortran/optional-update-device.f90: New.
6983         * testsuite/libgomp.oacc-fortran/optional-update-host.f90: New.
6985 2019-12-05  Tobias Burnus  <tobias@codesourcery.com>
6987         * testsuite/libgomp.oacc-fortran/error_stop-1.f: Also don't
6988         expect dg-output of 'Error termination.' for GCN.
6989         * testsuite/libgomp.oacc-fortran/error_stop-2.f: Likewise.
6990         * testsuite/libgomp.oacc-fortran/error_stop-3.f: Likewise.
6992 2019-12-04  Jakub Jelinek  <jakub@redhat.com>
6994         PR fortran/92756
6995         * testsuite/libgomp.fortran/teams1.f90: New test.
6996         * testsuite/libgomp.fortran/teams2.f90: New test.
6998 2019-12-03  Frederik Harwath  <frederik@codesourcery.com>
7000         * oacc-init.c (acc_known_device_type): Add function.
7001         (unknown_device_type_error): Add function.
7002         (name_of_acc_device_t): Change to call unknown_device_type_error
7003         on unknown type.
7004         (resolve_device): Use acc_known_device_type.
7005         (acc_init): Fail if acc_device_t argument is not valid.
7006         (acc_shutdown): Likewise.
7007         (acc_get_num_devices): Likewise.
7008         (acc_set_device_type): Likewise.
7009         (acc_get_device_num): Likewise.
7010         (acc_set_device_num): Likewise.
7011         (acc_on_device): Add comment that argument validity is not checked.
7013 2019-12-03  Andrew Stubbs  <ams@codesourcery.com>
7015         * testsuite/lib/libgomp.exp (offload_target_to_openacc_device_type):
7016         Recognize amdgcn.
7017         (check_effective_target_openacc_amdgcn_accel_present): New proc.
7018         (check_effective_target_openacc_amdgcn_accel_selected): New proc.
7019         * testsuite/libgomp.oacc-c++/c++.exp: Add support for amdgcn.
7020         * testsuite/libgomp.oacc-c/c.exp: Likewise.
7021         * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
7023 2019-12-03  Szabolcs Nagy  <szabolcs.nagy@arm.com>
7025         PR libgomp/91938
7026         * configure.tgt: Avoid IE tls on *-*-musl*.
7028 2019-11-29  Tobias Burnus  <tobias@codesourcery.com>
7030         * testsuite/libgomp.oacc-fortran/declare-5.f90: Extend by
7031         adding a common-block test case.
7033 2019-11-29  Jakub Jelinek  <jakub@redhat.com>
7035         PR c++/60228
7036         * testsuite/libgomp.c++/udr-20.C: New test.
7037         * testsuite/libgomp.c++/udr-21.C: New test.
7039 2019-11-27  Thomas Schwinge  <thomas@codesourcery.com>
7041         * testsuite/lib/libgomp.exp
7042         (check_effective_target_offload_target_nvptx): New proc.
7043         * testsuite/libgomp.fortran/target-print-1.f90: Use it with
7044         'dg-skip-if'.
7045         * testsuite/libgomp.oacc-fortran/print-1.f90: Likewise.
7046         * testsuite/libgomp.fortran/target-print-1-nvptx.f90: New file.
7047         * testsuite/libgomp.oacc-fortran/print-1-nvptx.f90: Likewise.
7049 2019-11-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7051         * testsuite/libgomp.c/pr39591-1.c: Rename err to e.
7052         * testsuite/libgomp.c/pr39591-2.c: Likewise.
7053         * testsuite/libgomp.c/pr39591-3.c: Likewise.
7054         * testsuite/libgomp.c/private-1.c: Likewise.
7055         * testsuite/libgomp.c/task-1.c: Likewise.
7056         * testsuite/libgomp.c/task-5.c: Renamed err to serr.
7058 2019-11-20  Julian Brown  <julian@codesourcery.com>
7060         * plugin/plugin-gcn.c (wait_for_queue_nonfull): Don't lock/unlock
7061         aq->mutex here.
7062         (queue_push_launch): Lock aq->mutex before calling
7063         wait_for_queue_nonfull.
7064         (queue_push_callback): Likewise.
7065         (queue_push_asyncwait): Likewise.
7066         (queue_push_placeholder): Likewise.
7068 2019-11-20  Julian Brown  <julian@codesourcery.com>
7070         * plugin/plugin-gcn.c (hsa_memory_copy_wrapper): New.
7071         (copy_data, GOMP_OFFLOAD_host2dev): Use above function.
7072         (GOMP_OFFLOAD_dev2host, GOMP_OFFLOAD_dev2dev): Check hsa_memory_copy
7073         return code.
7075 2019-11-20  Julian Brown  <julian@codesourcery.com>
7077         PR libgomp/92511
7079         * oacc-mem.c (present_create_copy): Fix device pointer return value in
7080         case of "present" subarray.  Use tgt->tgt_start instead of tgt->to_free
7081         in non-present/create case.
7082         (delete_copyout): Change error condition to fail only on copies outside
7083         of mapped block.  Adjust error message accordingly.
7084         * testsuite/libgomp.oacc-c-c++-common/copyin-devptr-1.c: New test.
7085         * testsuite/libgomp.oacc-c-c++-common/copyin-devptr-2.c: New test.
7086         * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Adjust expected error
7087         message.
7088         * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
7089         * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Allow test to pass now.
7090         * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
7092 2019-11-20  Maciej W. Rozycki  <macro@wdc.com>
7094         * testsuite/lib/libgomp.exp (libgomp_init): Add flags to find
7095         libatomic in build-tree testing.
7097 2019-11-18  Maciej W. Rozycki  <macro@wdc.com>
7099         * testsuite/Makefile.in: Regenerate.
7101 2019-11-15  Andrew Stubbs  <ams@codesourcery.com>
7103         * testsuite/libgomp.c/target-print-1.c: New file.
7104         * testsuite/libgomp.fortran/target-print-1.f90: New file.
7105         * testsuite/libgomp.oacc-c/print-1.c: New file.
7106         * testsuite/libgomp.oacc-fortran/print-1.f90: New file.
7108 2019-11-13  Andrew Stubbs  <ams@codesourcery.com>
7109             Kwok Cheung Yeung  <kcy@codesourcery.com>
7110             Julian Brown  <julian@codesourcery.com>
7111             Tom de Vries  <tom@codesourcery.com>
7113         * plugin/Makefrag.am: Add amdgcn plugin support.
7114         * plugin/configfrag.ac: Likewise.
7115         * plugin/plugin-gcn.c: New file.
7116         * configure: Regenerate.
7117         * Makefile.in: Regenerate.
7118         * testsuite/Makefile.in: Regenerate.
7120 2019-11-13  Andrew Stubbs  <ams@codesourcery.com>
7122         * config/gcn/team.c (gomp_gcn_enter_kernel): Set up the team arena
7123         and use team_malloc variants.
7124         (gomp_gcn_exit_kernel): Use team_free.
7125         * libgomp.h (TEAM_ARENA_SIZE): Define.
7126         (TEAM_ARENA_START): Define.
7127         (TEAM_ARENA_FREE): Define.
7128         (TEAM_ARENA_END): Define.
7129         (team_malloc): New function.
7130         (team_malloc_cleared): New function.
7131         (team_free): New function.
7132         * team.c (gomp_new_team): Initialize and use team_malloc.
7133         (free_team): Use team_free.
7134         (gomp_free_thread): Use team_free.
7135         (gomp_pause_host): Use team_free.
7136         * work.c (gomp_init_work_share): Use team_malloc.
7137         (gomp_fini_work_share): Use team_free.
7139 2019-11-13  Andrew Stubbs  <ams@codesourcery.com>
7140             Kwok Cheung Yeung  <kcy@codesourcery.com>
7141             Julian Brown  <julian@codesourcery.com>
7142             Tom de Vries  <tom@codesourcery.com>
7144         * Makefile.am (libgomp_la_SOURCES): Add oacc-target.c.
7145         * Makefile.in: Regenerate.
7146         * config.h.in (PLUGIN_GCN): Add new undef.
7147         * config/accel/openacc.f90 (acc_device_gcn): New parameter.
7148         * config/gcn/affinity-fmt.c: New file.
7149         * config/gcn/bar.c: New file.
7150         * config/gcn/bar.h: New file.
7151         * config/gcn/doacross.h: New file.
7152         * config/gcn/icv-device.c: New file.
7153         * config/gcn/oacc-target.c: New file.
7154         * config/gcn/simple-bar.h: New file.
7155         * config/gcn/target.c: New file.
7156         * config/gcn/task.c: New file.
7157         * config/gcn/team.c: New file.
7158         * config/gcn/time.c: New file.
7159         * configure.ac: Add amdgcn*-*-*.
7160         * configure: Regenerate.
7161         * configure.tgt: Add amdgcn*-*-*.
7162         * libgomp-plugin.h (offload_target_type): Add OFFLOAD_TARGET_TYPE_GCN.
7163         * libgomp.h (gcn_thrs): Add amdgcn variant.
7164         (set_gcn_thrs): Likewise.
7165         (gomp_thread): Likewise.
7166         * oacc-int.h (goacc_thread): Likewise.
7167         * oacc-target.c: New file.
7168         * openacc.f90 (acc_device_gcn): New parameter.
7169         * openacc.h (acc_device_t): Add acc_device_gcn.
7170         * team.c (gomp_free_pool_helper): Add amdgcn support.
7172 2019-11-13  Andrew Stubbs  <ams@codesourcery.com>
7173             Julian Brown  <julian@codesourcery.com>
7175         * libgomp-plugin.h (GOMP_OFFLOAD_openacc_async_construct): Add int
7176         parameter.
7177         * oacc-async.c (lookup_goacc_asyncqueue): Pass device number to the
7178         queue constructor.
7179         * oacc-host.c (host_openacc_async_construct): Add device parameter.
7180         * plugin/plugin-nvptx.c (GOMP_OFFLOAD_openacc_async_construct): Add
7181         device parameter.
7183 2019-11-13  Andrew Stubbs  <ams@codesourcery.com>
7185         * configure.tgt (nvptx*-*-*): Add "accel" directory.
7186         * config/nvptx/libgomp-plugin.c: Move ...
7187         * config/accel/libgomp-plugin.c: ... to here.
7188         * config/nvptx/lock.c: Move ...
7189         * config/accel/lock.c: ... to here.
7190         * config/nvptx/mutex.c: Move ...
7191         * config/accel/mutex.c: ... to here.
7192         * config/nvptx/mutex.h: Move ...
7193         * config/accel/mutex.h: ... to here.
7194         * config/nvptx/oacc-async.c: Move ...
7195         * config/accel/oacc-async.c: ... to here.
7196         * config/nvptx/oacc-cuda.c: Move ...
7197         * config/accel/oacc-cuda.c: ... to here.
7198         * config/nvptx/oacc-host.c: Move ...
7199         * config/accel/oacc-host.c: ... to here.
7200         * config/nvptx/oacc-init.c: Move ...
7201         * config/accel/oacc-init.c: ... to here.
7202         * config/nvptx/oacc-mem.c: Move ...
7203         * config/accel/oacc-mem.c: ... to here.
7204         * config/nvptx/oacc-plugin.c: Move ...
7205         * config/accel/oacc-plugin.c: ... to here.
7206         * config/nvptx/omp-lock.h: Move ...
7207         * config/accel/omp-lock.h: ... to here.
7208         * config/nvptx/openacc.f90: Move ...
7209         * config/accel/openacc.f90: ... to here.
7210         * config/nvptx/pool.h: Move ...
7211         * config/accel/pool.h: ... to here.
7212         * config/nvptx/proc.c: Move ...
7213         * config/accel/proc.c: ... to here.
7214         * config/nvptx/ptrlock.c: Move ...
7215         * config/accel/ptrlock.c: ... to here.
7216         * config/nvptx/ptrlock.h: Move ...
7217         * config/accel/ptrlock.h: ... to here.
7218         * config/nvptx/sem.c: Move ...
7219         * config/accel/sem.c: ... to here.
7220         * config/nvptx/sem.h: Move ...
7221         * config/accel/sem.h: ... to here.
7222         * config/nvptx/thread-stacksize.h: Move ...
7223         * config/accel/thread-stacksize.h: ... to here.
7225 2019-11-12  Maciej W. Rozycki  <macro@codesourcery.com>
7226             Tobias Burnus  <tobias@codesourcery.com>
7227             Frederik Harwath  <frederik@codesourcery.com>
7228             Thomas Schwinge  <thomas@codesourcery.com>
7230         libgomp/
7231         * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: New test.
7232         * testsuite/libgomp.oacc-fortran/parallel-dims-aux.c: New test.
7233         * testsuite/libgomp.oacc-fortran/parallel-dims.f89: New test.
7235 2019-11-11  Tobias Burnus  <tobias@codesourcery.com>
7236             Kwok Cheung Yeung  <kcy@codesourcery.com>
7238         * testsuite/libgomp.fortran/use_device_ptr-optional-1.f90: Extend.
7239         * testsuite/libgomp.fortran/use_device_ptr-optional-2.f90: New.
7241 2019-11-11  Thomas Schwinge  <thomas@codesourcery.com>
7243         * testsuite/libgomp.fortran/target9.f90: Specify 'dg-do run'.
7245         * testsuite/libgomp.fortran/use_device_addr-3.f90: Specify 'dg-do
7246         run'.
7247         * testsuite/libgomp.fortran/use_device_addr-4.f90: Likewise.
7248         * testsuite/libgomp.fortran/use_device_ptr-1.f90: Likewise.
7250 2019-11-06  Thomas Schwinge  <thomas@codesourcery.com>
7252         * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-1.c:
7253         Add expected warnings about missing reduction clauses.
7254         * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-2.c:
7255         Likewise.
7256         * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-3.c:
7257         Likewise.
7258         * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-4.c:
7259         Likewise.
7261 2019-11-04  Tobias Burnus  <tobias@codesourcery.com>
7263         * testsuite/libgomp.fortran/pr66199-1.f90: Remove
7264         'dg-do run' (implies torture test) as 'dg-options "O2"' is used.
7265         * testsuite/libgomp.fortran/pr66199-2.f90: Ditto.
7266         * testsuite/libgomp.fortran/taskloop2.f90: Ditto.
7267         * testsuite/libgomp.fortran/taskloop3.f90: Ditto.
7268         * testsuite/libgomp.fortran/taskloop4.f90: Ditto.
7270 2019-11-04  Tobias Burnus  <tobias@codesourcery.com>
7272         PR fortran/92305
7273         * testsuite/libgomp.fortran/allocatable2.f90: Use
7274         unique numbers with 'stop'.
7275         * testsuite/libgomp.fortran/use_device_addr-1.f90: Ditto.
7276         * testsuite/libgomp.fortran/use_device_addr-2.f90: Ditto.
7277         * testsuite/libgomp.fortran/use_device_ptr-1.f90: Ditto.
7278         * testsuite/libgomp.oacc-fortran/lib-15.f90: Ditto.
7279         * testsuite/libgomp.oacc-fortran/pset-1.f90: Ditto.
7281 2019-11-01  Tobias Burnus  <tobias@codesourcery.com>
7283         * testsuite/libgomp.fortran/use_device_addr-1.f90 (test_nullptr_1,
7284         test_dummy_opt_nullptr_callee_1): Add present but unallocated test.
7285         * testsuite/libgomp.fortran/use_device_addr-2.f90: Likewise.
7286         * testsuite/libgomp.fortran/use_device_addr-3.f90: New.
7287         * testsuite/libgomp.fortran/use_device_addr-4.f90: New.
7288         * testsuite/testsuite/libgomp.fortran/use_device_ptr-1.f90: New.
7290 2019-10-30  Tobias Burnus  <tobias@codesourcery.com>
7292         * testsuite/libgomp.fortran/target9.f90: New.
7294 2019-10-30  Tobias Burnus  <tobias@codesourcery.com>
7296         * testsuite/libgomp.fortran/aligned1.f03: Replace 'STOP' by 'stop'.
7297         * testsuite/libgomp.fortran/alloc-comp-1.f90: Ditto.
7298         * testsuite/libgomp.fortran/alloc-comp-2.f90: Ditto.
7299         * testsuite/libgomp.fortran/alloc-comp-3.f90: Ditto.
7300         * testsuite/libgomp.fortran/allocatable1.f90: Ditto.
7301         * testsuite/libgomp.fortran/allocatable10.f90: Ditto.
7302         * testsuite/libgomp.fortran/allocatable11.f90: Ditto.
7303         * testsuite/libgomp.fortran/allocatable12.f90: Ditto.
7304         * testsuite/libgomp.fortran/allocatable2.f90: Ditto.
7305         * testsuite/libgomp.fortran/allocatable3.f90: Ditto.
7306         * testsuite/libgomp.fortran/allocatable4.f90: Ditto.
7307         * testsuite/libgomp.fortran/allocatable5.f90: Ditto.
7308         * testsuite/libgomp.fortran/allocatable6.f90: Ditto.
7309         * testsuite/libgomp.fortran/allocatable7.f90: Ditto.
7310         * testsuite/libgomp.fortran/allocatable8.f90: Ditto.
7311         * testsuite/libgomp.fortran/allocatable9.f90: Ditto.
7312         * testsuite/libgomp.fortran/associate1.f90: Ditto.
7313         * testsuite/libgomp.fortran/associate2.f90: Ditto.
7314         * testsuite/libgomp.fortran/associate3.f90: Ditto.
7315         * testsuite/libgomp.fortran/async_io_4.f90: Ditto.
7316         * testsuite/libgomp.fortran/async_io_5.f90: Ditto.
7317         * testsuite/libgomp.fortran/async_io_6.f90: Ditto.
7318         * testsuite/libgomp.fortran/async_io_7.f90: Ditto.
7319         * testsuite/libgomp.fortran/cancel-do-1.f90: Ditto.
7320         * testsuite/libgomp.fortran/cancel-do-2.f90: Ditto.
7321         * testsuite/libgomp.fortran/cancel-parallel-1.f90: Ditto.
7322         * testsuite/libgomp.fortran/cancel-sections-1.f90: Ditto.
7323         * testsuite/libgomp.fortran/cancel-taskgroup-2.f90: Ditto.
7324         * testsuite/libgomp.fortran/character1.f90: Ditto.
7325         * testsuite/libgomp.fortran/character2.f90: Ditto.
7326         * testsuite/libgomp.fortran/collapse1.f90: Ditto.
7327         * testsuite/libgomp.fortran/collapse2.f90: Ditto.
7328         * testsuite/libgomp.fortran/collapse3.f90: Ditto.
7329         * testsuite/libgomp.fortran/collapse4.f90: Ditto.
7330         * testsuite/libgomp.fortran/crayptr1.f90: Ditto.
7331         * testsuite/libgomp.fortran/crayptr2.f90: Ditto.
7332         * testsuite/libgomp.fortran/crayptr3.f90: Ditto.
7333         * testsuite/libgomp.fortran/declare-simd-1.f90: Ditto.
7334         * testsuite/libgomp.fortran/declare-simd-3.f90: Ditto.
7335         * testsuite/libgomp.fortran/declare-target-2.f90: Ditto.
7336         * testsuite/libgomp.fortran/depend-1.f90: Ditto.
7337         * testsuite/libgomp.fortran/depend-2.f90: Ditto.
7338         * testsuite/libgomp.fortran/depend-3.f90: Ditto.
7339         * testsuite/libgomp.fortran/do1.f90: Ditto.
7340         * testsuite/libgomp.fortran/do2.f90: Ditto.
7341         * testsuite/libgomp.fortran/do_concurrent_5.f90: Ditto.
7342         * testsuite/libgomp.fortran/doacross1.f90: Ditto.
7343         * testsuite/libgomp.fortran/doacross2.f90: Ditto.
7344         * testsuite/libgomp.fortran/doacross3.f90: Ditto.
7345         * testsuite/libgomp.fortran/examples-4/array_sections-3.f90: Ditto.
7346         * testsuite/libgomp.fortran/examples-4/array_sections-4.f90: Ditto.
7347         * testsuite/libgomp.fortran/examples-4/async_target-1.f90: Ditto.
7348         * testsuite/libgomp.fortran/examples-4/async_target-2.f90: Ditto.
7349         * testsuite/libgomp.fortran/examples-4/declare_target-1.f90: Ditto.
7350         * testsuite/libgomp.fortran/examples-4/declare_target-2.f90: Ditto.
7351         * testsuite/libgomp.fortran/examples-4/declare_target-3.f90: Ditto.
7352         * testsuite/libgomp.fortran/examples-4/declare_target-4.f90: Ditto.
7353         * testsuite/libgomp.fortran/examples-4/declare_target-5.f90: Ditto.
7354         * testsuite/libgomp.fortran/examples-4/device-1.f90: Ditto.
7355         * testsuite/libgomp.fortran/examples-4/device-2.f90: Ditto.
7356         * testsuite/libgomp.fortran/examples-4/device-3.f90: Ditto.
7357         * testsuite/libgomp.fortran/examples-4/simd-1.f90: Ditto.
7358         * testsuite/libgomp.fortran/examples-4/simd-2.f90: Ditto.
7359         * testsuite/libgomp.fortran/examples-4/simd-3.f90: Ditto.
7360         * testsuite/libgomp.fortran/examples-4/simd-4.f90: Ditto.
7361         * testsuite/libgomp.fortran/examples-4/simd-5.f90: Ditto.
7362         * testsuite/libgomp.fortran/examples-4/simd-6.f90: Ditto.
7363         * testsuite/libgomp.fortran/examples-4/simd-7.f90: Ditto.
7364         * testsuite/libgomp.fortran/examples-4/simd-8.f90: Ditto.
7365         * testsuite/libgomp.fortran/examples-4/target-1.f90: Ditto.
7366         * testsuite/libgomp.fortran/examples-4/target-2.f90: Ditto.
7367         * testsuite/libgomp.fortran/examples-4/target-3.f90: Ditto.
7368         * testsuite/libgomp.fortran/examples-4/target-4.f90: Ditto.
7369         * testsuite/libgomp.fortran/examples-4/target-5.f90: Ditto.
7370         * testsuite/libgomp.fortran/examples-4/target_data-1.f90: Ditto.
7371         * testsuite/libgomp.fortran/examples-4/target_data-2.f90: Ditto.
7372         * testsuite/libgomp.fortran/examples-4/target_data-3.f90: Ditto.
7373         * testsuite/libgomp.fortran/examples-4/target_data-4.f90: Ditto.
7374         * testsuite/libgomp.fortran/examples-4/target_data-5.f90: Ditto.
7375         * testsuite/libgomp.fortran/examples-4/target_data-6.f90: Ditto.
7376         * testsuite/libgomp.fortran/examples-4/target_data-7.f90: Ditto.
7377         * testsuite/libgomp.fortran/examples-4/target_update-1.f90: Ditto.
7378         * testsuite/libgomp.fortran/examples-4/target_update-2.f90: Ditto.
7379         * testsuite/libgomp.fortran/examples-4/task_dep-1.f90: Ditto.
7380         * testsuite/libgomp.fortran/examples-4/task_dep-2.f90: Ditto.
7381         * testsuite/libgomp.fortran/examples-4/task_dep-3.f90: Ditto.
7382         * testsuite/libgomp.fortran/examples-4/task_dep-4.f90: Ditto.
7383         * testsuite/libgomp.fortran/examples-4/task_dep-5.f90: Ditto.
7384         * testsuite/libgomp.fortran/examples-4/teams-2.f90: Ditto.
7385         * testsuite/libgomp.fortran/examples-4/teams-3.f90: Ditto.
7386         * testsuite/libgomp.fortran/examples-4/teams-4.f90: Ditto.
7387         * testsuite/libgomp.fortran/examples-4/teams-5.f90: Ditto.
7388         * testsuite/libgomp.fortran/examples-4/teams-6.f90: Ditto.
7389         * testsuite/libgomp.fortran/lastprivate1.f90: Ditto.
7390         * testsuite/libgomp.fortran/lastprivate2.f90: Ditto.
7391         * testsuite/libgomp.fortran/lib1.f90: Ditto.
7392         * testsuite/libgomp.fortran/lib4.f90: Ditto.
7393         * testsuite/libgomp.fortran/lock-1.f90: Ditto.
7394         * testsuite/libgomp.fortran/lock-2.f90: Ditto.
7395         * testsuite/libgomp.fortran/nested1.f90: Ditto.
7396         * testsuite/libgomp.fortran/nestedfn1.f90: Ditto.
7397         * testsuite/libgomp.fortran/nestedfn2.f90: Ditto.
7398         * testsuite/libgomp.fortran/nestedfn3.f90: Ditto.
7399         * testsuite/libgomp.fortran/nestedfn4.f90: Ditto.
7400         * testsuite/libgomp.fortran/nestedfn5.f90: Ditto.
7401         * testsuite/libgomp.fortran/omp_atomic1.f90: Ditto.
7402         * testsuite/libgomp.fortran/omp_atomic2.f90: Ditto.
7403         * testsuite/libgomp.fortran/omp_atomic3.f90: Ditto.
7404         * testsuite/libgomp.fortran/omp_atomic4.f90: Ditto.
7405         * testsuite/libgomp.fortran/omp_atomic5.f90: Ditto.
7406         * testsuite/libgomp.fortran/omp_cond1.f: Ditto.
7407         * testsuite/libgomp.fortran/omp_cond2.f: Ditto.
7408         * testsuite/libgomp.fortran/omp_cond3.F90: Ditto.
7409         * testsuite/libgomp.fortran/omp_cond4.F90: Ditto.
7410         * testsuite/libgomp.fortran/omp_parse1.f90: Ditto.
7411         * testsuite/libgomp.fortran/omp_parse2.f90: Ditto.
7412         * testsuite/libgomp.fortran/omp_parse3.f90: Ditto.
7413         * testsuite/libgomp.fortran/omp_parse4.f90: Ditto.
7414         * testsuite/libgomp.fortran/openmp_version-1.f: Ditto.
7415         * testsuite/libgomp.fortran/openmp_version-2.f90: Ditto.
7416         * testsuite/libgomp.fortran/parloops-exit-first-loop-alt-2.f95: Ditto.
7417         * testsuite/libgomp.fortran/parloops-exit-first-loop-alt.f95: Ditto.
7418         * testsuite/libgomp.fortran/pointer1.f90: Ditto.
7419         * testsuite/libgomp.fortran/pointer2.f90: Ditto.
7420         * testsuite/libgomp.fortran/pr25219.f90: Ditto.
7421         * testsuite/libgomp.fortran/pr27395-1.f90: Ditto.
7422         * testsuite/libgomp.fortran/pr27395-2.f90: Ditto.
7423         * testsuite/libgomp.fortran/pr27416-1.f90: Ditto.
7424         * testsuite/libgomp.fortran/pr27916-1.f90: Ditto.
7425         * testsuite/libgomp.fortran/pr27916-2.f90: Ditto.
7426         * testsuite/libgomp.fortran/pr28390.f: Ditto.
7427         * testsuite/libgomp.fortran/pr29629.f90: Ditto.
7428         * testsuite/libgomp.fortran/pr32550.f90: Ditto.
7429         * testsuite/libgomp.fortran/pr33880.f90: Ditto.
7430         * testsuite/libgomp.fortran/pr34020.f90: Ditto.
7431         * testsuite/libgomp.fortran/pr35130.f90: Ditto.
7432         * testsuite/libgomp.fortran/pr42162.f90: Ditto.
7433         * testsuite/libgomp.fortran/pr46753.f90: Ditto.
7434         * testsuite/libgomp.fortran/pr48894.f90: Ditto.
7435         * testsuite/libgomp.fortran/pr49792-1.f90: Ditto.
7436         * testsuite/libgomp.fortran/pr49792-2.f90: Ditto.
7437         * testsuite/libgomp.fortran/pr63938-1.f90: Ditto.
7438         * testsuite/libgomp.fortran/pr63938-2.f90: Ditto.
7439         * testsuite/libgomp.fortran/pr65597.f90: Ditto.
7440         * testsuite/libgomp.fortran/pr66199-1.f90: Ditto.
7441         * testsuite/libgomp.fortran/pr71014.f90: Ditto.
7442         * testsuite/libgomp.fortran/pr81304.f90: Ditto.
7443         * testsuite/libgomp.fortran/pr81841.f90: Ditto.
7444         * testsuite/libgomp.fortran/pr84418-1.f90: Ditto.
7445         * testsuite/libgomp.fortran/pr84418-2.f90: Ditto.
7446         * testsuite/libgomp.fortran/procptr1.f90: Ditto.
7447         * testsuite/libgomp.fortran/recursion1.f90: Ditto.
7448         * testsuite/libgomp.fortran/reduction1.f90: Ditto.
7449         * testsuite/libgomp.fortran/reduction2.f90: Ditto.
7450         * testsuite/libgomp.fortran/reduction3.f90: Ditto.
7451         * testsuite/libgomp.fortran/reduction4.f90: Ditto.
7452         * testsuite/libgomp.fortran/reduction5.f90: Ditto.
7453         * testsuite/libgomp.fortran/reduction6.f90: Ditto.
7454         * testsuite/libgomp.fortran/reference1.f90: Ditto.
7455         * testsuite/libgomp.fortran/reference2.f90: Ditto.
7456         * testsuite/libgomp.fortran/retval1.f90: Ditto.
7457         * testsuite/libgomp.fortran/retval2.f90: Ditto.
7458         * testsuite/libgomp.fortran/sharing1.f90: Ditto.
7459         * testsuite/libgomp.fortran/sharing2.f90: Ditto.
7460         * testsuite/libgomp.fortran/simd1.f90: Ditto.
7461         * testsuite/libgomp.fortran/simd2.f90: Ditto.
7462         * testsuite/libgomp.fortran/simd3.f90: Ditto.
7463         * testsuite/libgomp.fortran/simd4.f90: Ditto.
7464         * testsuite/libgomp.fortran/simd5.f90: Ditto.
7465         * testsuite/libgomp.fortran/simd6.f90: Ditto.
7466         * testsuite/libgomp.fortran/simd7.f90: Ditto.
7467         * testsuite/libgomp.fortran/stack.f90: Ditto.
7468         * testsuite/libgomp.fortran/strassen.f90: Ditto.
7469         * testsuite/libgomp.fortran/tabs1.f90: Ditto.
7470         * testsuite/libgomp.fortran/tabs2.f: Ditto.
7471         * testsuite/libgomp.fortran/target1.f90: Ditto.
7472         * testsuite/libgomp.fortran/target2.f90: Ditto.
7473         * testsuite/libgomp.fortran/target3.f90: Ditto.
7474         * testsuite/libgomp.fortran/target4.f90: Ditto.
7475         * testsuite/libgomp.fortran/target5.f90: Ditto.
7476         * testsuite/libgomp.fortran/target6.f90: Ditto.
7477         * testsuite/libgomp.fortran/target7.f90: Ditto.
7478         * testsuite/libgomp.fortran/target8.f90: Ditto.
7479         * testsuite/libgomp.fortran/task1.f90: Ditto.
7480         * testsuite/libgomp.fortran/task2.f90: Ditto.
7481         * testsuite/libgomp.fortran/task3.f90: Ditto.
7482         * testsuite/libgomp.fortran/task4.f90: Ditto.
7483         * testsuite/libgomp.fortran/taskgroup1.f90: Ditto.
7484         * testsuite/libgomp.fortran/taskloop1.f90: Ditto.
7485         * testsuite/libgomp.fortran/taskloop2.f90: Ditto.
7486         * testsuite/libgomp.fortran/taskloop3.f90: Ditto.
7487         * testsuite/libgomp.fortran/taskloop4.f90: Ditto.
7488         * testsuite/libgomp.fortran/threadprivate1.f90: Ditto.
7489         * testsuite/libgomp.fortran/threadprivate2.f90: Ditto.
7490         * testsuite/libgomp.fortran/threadprivate3.f90: Ditto.
7491         * testsuite/libgomp.fortran/threadprivate4.f90: Ditto.
7492         * testsuite/libgomp.fortran/udr1.f90: Ditto.
7493         * testsuite/libgomp.fortran/udr10.f90: Ditto.
7494         * testsuite/libgomp.fortran/udr11.f90: Ditto.
7495         * testsuite/libgomp.fortran/udr12.f90: Ditto.
7496         * testsuite/libgomp.fortran/udr13.f90: Ditto.
7497         * testsuite/libgomp.fortran/udr14.f90: Ditto.
7498         * testsuite/libgomp.fortran/udr15.f90: Ditto.
7499         * testsuite/libgomp.fortran/udr2.f90: Ditto.
7500         * testsuite/libgomp.fortran/udr3.f90: Ditto.
7501         * testsuite/libgomp.fortran/udr4.f90: Ditto.
7502         * testsuite/libgomp.fortran/udr5.f90: Ditto.
7503         * testsuite/libgomp.fortran/udr6.f90: Ditto.
7504         * testsuite/libgomp.fortran/udr7.f90: Ditto.
7505         * testsuite/libgomp.fortran/udr8.f90: Ditto.
7506         * testsuite/libgomp.fortran/udr9.f90: Ditto.
7507         * testsuite/libgomp.fortran/vla1.f90: Ditto.
7508         * testsuite/libgomp.fortran/vla2.f90: Ditto.
7509         * testsuite/libgomp.fortran/vla3.f90: Ditto.
7510         * testsuite/libgomp.fortran/vla4.f90: Ditto.
7511         * testsuite/libgomp.fortran/vla5.f90: Ditto.
7512         * testsuite/libgomp.fortran/vla6.f90: Ditto.
7513         * testsuite/libgomp.fortran/vla7.f90: Ditto.
7514         * testsuite/libgomp.fortran/vla8.f90: Ditto.
7515         * testsuite/libgomp.fortran/workshare1.f90: Ditto.
7516         * testsuite/libgomp.fortran/workshare2.f90: Ditto.
7518 2019-10-30  Tobias Burnus  <tobias@codesourcery.com>
7520         * testsuite/libgomp.fortran/target-simd.f90: Use stop not abort.
7521         * testsuite/libgomp.fortran/use_device_ptr-optional-1.f90:
7522         Ditto; add 'dg-do run' for torture testing.
7523         * testsuite/libgomp.fortran/lastprivate1.f90:  Add 'dg-do run'.
7524         * testsuite/libgomp.fortran/lastprivate2.f90: Ditto.
7525         * testsuite/libgomp.fortran/nestedfn4.f90: Ditto.
7526         * testsuite/libgomp.fortran/pr25219.f90: Ditto.
7527         * testsuite/libgomp.fortran/pr28390.f: Ditto.
7528         * testsuite/libgomp.fortran/pr35130.f90: Ditto.
7529         * testsuite/libgomp.fortran/pr90779.f90: Ditto.
7530         * testsuite/libgomp.fortran/task2.f90: Ditto.
7531         * testsuite/libgomp.fortran/taskgroup1.f90: Ditto.
7532         * testsuite/libgomp.fortran/taskloop1.f90: Ditto.
7533         * testsuite/libgomp.fortran/use_device_addr-1.f90: Ditto.
7534         * testsuite/libgomp.fortran/use_device_addr-2.f90: Ditto.
7535         * testsuite/libgomp.fortran/workshare1.f90: Ditto.
7536         * testsuite/libgomp.fortran/workshare2.f90: Ditto.
7538 2019-10-28  Tobias Burnus  <tobias@codesourcery.com>
7540         * testsuite/libgomp.oacc-fortran/abort-1.f90: Add 'dg-do run'.
7541         * testsuite/libgomp.oacc-fortran/abort-2.f90: Ditto.
7542         * testsuite/libgomp.oacc-fortran/acc_on_device-1-1.f90: Ditto.
7543         * testsuite/libgomp.oacc-fortran/acc_on_device-1-2.f90: Ditto.
7544         * testsuite/libgomp.oacc-fortran/acc_on_device-1-3.f90: Ditto.
7545         * testsuite/libgomp.oacc-fortran/lib-1.f90: Ditto.
7546         * testsuite/libgomp.oacc-fortran/common-block-1.f90:
7547         Use 'stop' not abort().
7548         * testsuite/libgomp.oacc-fortran/common-block-2.f90: Ditto.
7549         * testsuite/libgomp.oacc-fortran/common-block-3.f90: Ditto.
7550         * testsuite/libgomp.oacc-fortran/data-1.f90: Ditto.
7551         * testsuite/libgomp.oacc-fortran/data-2.f90: Ditto.
7552         * testsuite/libgomp.oacc-fortran/data-5.f90: Ditto.
7553         * testsuite/libgomp.oacc-fortran/dummy-array.f90: Ditto.
7554         * testsuite/libgomp.oacc-fortran/gemm-2.f90: Ditto.
7555         * testsuite/libgomp.oacc-fortran/gemm.f90: Ditto.
7556         * testsuite/libgomp.oacc-fortran/host_data-2.f90: Ditto.
7557         * testsuite/libgomp.oacc-fortran/host_data-3.f90: Ditto.
7558         * testsuite/libgomp.oacc-fortran/host_data-4.f90: Ditto.
7559         * testsuite/libgomp.oacc-fortran/kernels-collapse-3.f90: Ditto.
7560         * testsuite/libgomp.oacc-fortran/kernels-collapse-4.f90: Ditto.
7561         * testsuite/libgomp.oacc-fortran/kernels-independent.f90: Ditto.
7562         * testsuite/libgomp.oacc-fortran/kernels-loop-1.f90: Ditto.
7563         * testsuite/libgomp.oacc-fortran/kernels-map-1.f90: Ditto.
7564         * testsuite/libgomp.oacc-fortran/kernels-parallel-loop-data-enter-exit.f95:
7565         Ditto.
7566         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-1.f90:
7567         Ditto.
7568         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-2.f90:
7569         Ditto.
7570         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-3.f90:
7571         Ditto.
7572         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-6.f90:
7573         Ditto.
7574         * testsuite/libgomp.oacc-fortran/kernels-private-vars-vector-1.f90:
7575         Ditto.
7576         * testsuite/libgomp.oacc-fortran/kernels-private-vars-vector-2.f90:
7577         Ditto.
7578         * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-1.f90:
7579         Ditto.
7580         * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-2.f90:
7581         Ditto.
7582         * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-3.f90:
7583         Ditto.
7584         * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-4.f90:
7585         Ditto.
7586         * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-5.f90:
7587         Ditto.
7588         * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-6.f90:
7589         Ditto.
7590         * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-7.f90:
7591         Ditto.
7592         * testsuite/libgomp.oacc-fortran/kernels-reduction-1.f90: Ditto.
7593         * testsuite/libgomp.oacc-fortran/lib-12.f90: Ditto.
7594         * testsuite/libgomp.oacc-fortran/lib-13.f90: Ditto.
7595         * testsuite/libgomp.oacc-fortran/lib-14.f90: Ditto.
7596         * testsuite/libgomp.oacc-fortran/kernels-acc-loop-reduction-2.f90:
7597         Likewise and also add 'dg-do run'.
7598         * testsuite/libgomp.oacc-fortran/kernels-acc-loop-reduction.f90:
7599         Ditto.
7601 2019-10-25  Cesar Philippidis <cesar@codesourcery.com>
7602             Tobias Burnus  <tobias@codesourcery.com>
7604         * testsuite/libgomp.oacc-fortran/common-block-1.f90: New test.
7605         * testsuite/libgomp.oacc-fortran/common-block-2.f90: New test.
7606         * testsuite/libgomp.oacc-fortran/common-block-3.f90: New test.
7608 2019-10-14  Jakub Jelinek  <jakub@redhat.com>
7610         PR libgomp/92081
7611         * testsuite/libgomp.fortran/target-simd.f90: Iterate from 1 rather
7612         than 0.
7614 2019-10-11  Tobias Burnus  <tobias@codesourcery.com>
7616         * testsuite/libgomp.fortran/use_device_addr-1.f90: New.
7617         * testsuite/libgomp.fortran/use_device_addr-2.f90: New.
7619 2019-10-09  Thomas Schwinge  <thomas@codesourcery.com>
7621         PR middle-end/92036
7622         * testsuite/libgomp.oacc-c-c++-common/data-firstprivate-1.c: New
7623         file.
7625 2019-10-09  Tobias Burnus  <tobias@codesourcery.com>
7627         PR testsuite/91884
7628         * testsuite/libgomp.fortran/fortran.exp: Conditionally
7629         add -lquadmath.
7630         * testsuite/libgomp.oacc-fortran/fortran.exp: Ditto.
7632 2019-10-09  Jakub Jelinek  <jakub@redhat.com>
7634         PR libgomp/92028
7635         * target.c (gomp_map_vars_internal): Readd the previous
7636         GOMP_MAP_USE_DEVICE_PTR handling code in the first loop,
7637         though do that just in the !not_found_cnt case.
7639 2019-10-08  Tobias Burnus  <tobias@codesourcery.com>
7641         * gfortran.dg/gomp/target-simd.f90: New.
7643 2019-10-02  Julian Brown  <julian@codesourcery.com>
7644             Cesar Philippidis  <cesar@codesourcery.com>
7646         * libgomp.h (OFFSET_INLINED, OFFSET_POINTER, OFFSET_STRUCT): Define.
7647         * target.c (FIELD_TGT_EMPTY): Define.
7648         (gomp_map_val): Use OFFSET_* macros instead of magic constants.  Write
7649         as switch instead of list of ifs.
7650         (gomp_map_vars_internal): Use OFFSET_* and FIELD_TGT_EMPTY macros.
7652 2019-10-02  Andreas Tobler  <andreast@gcc.gnu.org>
7654         * testsuite/libgomp.oacc-c-c++-common/loop-default.h: Remove alloca.h
7655         include. Replace alloca () with __builtin_alloca ().
7656         * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: Likewise.
7658 2019-10-01  Jakub Jelinek  <jakub@redhat.com>
7660         * configure.ac: Remove GCC_HEADER_STDINT(gstdint.h).
7661         * libgomp.h: Include <stdint.h> instead of "gstdint.h".
7662         * oacc-parallel.c: Don't include "libgomp_g.h".
7663         * plugin/plugin-hsa.c: Include <stdint.h> instead of "gstdint.h".
7664         * plugin/plugin-nvptx.c: Don't include "gstdint.h".
7665         * aclocal.m4: Regenerated.
7666         * config.h.in: Regenerated.
7667         * configure: Regenerated.
7668         * Makefile.in: Regenerated.
7670 2019-09-30  Kwok Cheung Yeung  <kcy@codesourcery.com>
7672         * libgomp_g.h: Include stdint.h instead of gstdint.h.
7674 2019-09-27  Maciej W. Rozycki  <macro@wdc.com>
7676         * configure: Regenerate.
7678 2019-09-13  Tobias Burnus  <tobias@codesourcery.com>
7680         * plugin/plugin-hsa.c (hsa_warn, hsa_fatal, hsa_error): Ensure
7681         string is initialized.
7683 2019-09-06  Florian Weimer  <fweimer@redhat.com>
7685         * configure: Regenerate.
7687 2019-09-03  Chung-Lin Tang  <cltang@codesourcery.com>
7689         PR other/79543
7690         * acinclude.m4 (LIBGOMP_CHECK_LINKER_FEATURES): Fix GNU ld --version
7691         scanning to conform to the GNU Coding Standards.
7692         * configure: Regenerate.
7694 2019-08-28  Jakub Jelinek  <jakub@redhat.com>
7696         PR libgomp/91530
7697         * testsuite/libgomp.c/scan-21.c: New test.
7698         * testsuite/libgomp.c/scan-22.c: New test.
7700 2019-08-27  Jakub Jelinek  <jakub@redhat.com>
7702         PR libgomp/91530
7703         * testsuite/libgomp.c/scan-11.c: Add -msse2 option for sse2_runtime
7704         targets.
7705         * testsuite/libgomp.c/scan-12.c: Likewise.
7706         * testsuite/libgomp.c/scan-13.c: Likewise.
7707         * testsuite/libgomp.c/scan-14.c: Likewise.
7708         * testsuite/libgomp.c/scan-15.c: Likewise.
7709         * testsuite/libgomp.c/scan-16.c: Likewise.
7710         * testsuite/libgomp.c/scan-17.c: Likewise.
7711         * testsuite/libgomp.c/scan-18.c: Likewise.
7712         * testsuite/libgomp.c/scan-19.c: Likewise.
7713         * testsuite/libgomp.c/scan-20.c: Likewise.
7714         * testsuite/libgomp.c++/scan-9.C: Likewise.
7715         * testsuite/libgomp.c++/scan-10.C: Likewise.
7716         * testsuite/libgomp.c++/scan-11.C: Likewise.
7717         * testsuite/libgomp.c++/scan-12.C: Likewise.
7718         * testsuite/libgomp.c++/scan-14.C: Likewise.
7719         * testsuite/libgomp.c++/scan-15.C: Likewise.
7720         * testsuite/libgomp.c++/scan-13.C: Likewise.  Use sse2_runtime
7721         instead of i?86-*-* x86_64-*-* as target for scan-tree-dump-times.
7722         * testsuite/libgomp.c++/scan-16.C: Likewise.
7724 2019-08-17  Thomas Koenig  <tkoenig@gcc.gnu.org>
7726         PR fortran/91473
7727         * testsuite/libgomp.fortran/appendix-a/a.28.5.f90: Add
7728         -std=legacy so invalid code in the test case is accepted.
7730 2019-08-12  Thomas Koenig  <tkoenig@gcc.gnu.org>
7732         PR fortran/91422
7733         * testsuite/libgomp.oacc-fortran/routine-7.f90: Correct array
7734         dimension.
7736 2019-08-08  Jakub Jelinek  <jakub@redhat.com>
7738         * target.c (gomp_map_vars_internal): For GOMP_MAP_USE_DEVICE_PTR
7739         perform the lookup in the first loop only if !not_found_cnt, otherwise
7740         perform lookups for it in the second loop guarded with
7741         if (not_found_cnt || has_firstprivate).
7742         * testsuite/libgomp.c/target-37.c: New test.
7743         * testsuite/libgomp.c++/target-22.C: New test.
7745 2019-08-07  Jakub Jelinek  <jakub@redhat.com>
7747         * testsuite/libgomp.c/target-18.c (struct S): New type.
7748         (foo): Use use_device_addr clause instead of use_device_ptr clause
7749         where required by OpenMP 5.0, add further tests for both use_device_ptr
7750         and use_device_addr clauses.
7751         * testsuite/libgomp.c++/target-9.C (struct S): New type.
7752         (foo): Use use_device_addr clause instead of use_device_ptr clause
7753         where required by OpenMP 5.0, add further tests for both use_device_ptr
7754         and use_device_addr clauses.  Add t and u arguments.
7755         (main): Adjust caller.
7757 2019-08-06  Jakub Jelinek  <jakub@redhat.com>
7759         * testsuite/libgomp.c++/loop-13.C: New test.
7760         * testsuite/libgomp.c++/loop-14.C: New test.
7761         * testsuite/libgomp.c++/loop-15.C: New test.
7763 2019-07-31  Jakub Jelinek  <jakub@redhat.com>
7765         PR middle-end/91301
7766         * testsuite/libgomp.c++/for-27.C: New test.
7768 2019-07-23  Steven G. Kargl  <kargl@gcc.gnu.org>
7770         * testsuite/libgomp.fortran/reduction4.f90: Update BOZ usage.
7771         * testsuite/libgomp.fortran/reduction5.f90: Ditto.
7773 2019-07-20  Jakub Jelinek  <jakub@redhat.com>
7775         * testsuite/libgomp.c-c++-common/loop-1.c: New test.
7777 2019-07-08  Jakub Jelinek  <jakub@redhat.com>
7779         * testsuite/libgomp.c++/scan-13.C: Replace xfail with target x86.
7780         * testsuite/libgomp.c++/scan-16.C: Likewise.
7782 2019-07-06  Jakub Jelinek  <jakub@redhat.com>
7784         * testsuite/libgomp.c/scan-19.c: New test.
7785         * testsuite/libgomp.c/scan-20.c: New test.
7787         * testsuite/libgomp.c/scan-11.c: New test.
7788         * testsuite/libgomp.c/scan-12.c: New test.
7789         * testsuite/libgomp.c/scan-13.c: New test.
7790         * testsuite/libgomp.c/scan-14.c: New test.
7791         * testsuite/libgomp.c/scan-15.c: New test.
7792         * testsuite/libgomp.c/scan-16.c: New test.
7793         * testsuite/libgomp.c/scan-17.c: New test.
7794         * testsuite/libgomp.c/scan-18.c: New test.
7795         * testsuite/libgomp.c++/scan-9.C: New test.
7796         * testsuite/libgomp.c++/scan-10.C: New test.
7797         * testsuite/libgomp.c++/scan-11.C: New test.
7798         * testsuite/libgomp.c++/scan-12.C: New test.
7799         * testsuite/libgomp.c++/scan-13.C: New test.
7800         * testsuite/libgomp.c++/scan-14.C: New test.
7801         * testsuite/libgomp.c++/scan-15.C: New test.
7802         * testsuite/libgomp.c++/scan-16.C: New test.
7804 2019-07-04  Jakub Jelinek  <jakub@redhat.com>
7806         * testsuite/libgomp.c/scan-9.c: New test.
7807         * testsuite/libgomp.c/scan-10.c: New test.
7809 2019-07-03  Jakub Jelinek  <jakub@redhat.com>
7811         * testsuite/libgomp.c++/scan-1.C: New test.
7812         * testsuite/libgomp.c++/scan-2.C: New test.
7813         * testsuite/libgomp.c++/scan-3.C: New test.
7814         * testsuite/libgomp.c++/scan-4.C: New test.
7815         * testsuite/libgomp.c++/scan-5.C: New test.
7816         * testsuite/libgomp.c++/scan-6.C: New test.
7817         * testsuite/libgomp.c++/scan-7.C: New test.
7818         * testsuite/libgomp.c++/scan-8.C: New test.
7819         * testsuite/libgomp.c/scan-1.c: New test.
7820         * testsuite/libgomp.c/scan-2.c: New test.
7821         * testsuite/libgomp.c/scan-3.c: New test.
7822         * testsuite/libgomp.c/scan-4.c: New test.
7823         * testsuite/libgomp.c/scan-5.c: New test.
7824         * testsuite/libgomp.c/scan-6.c: New test.
7825         * testsuite/libgomp.c/scan-7.c: New test.
7826         * testsuite/libgomp.c/scan-8.c: New test.
7828 2019-06-18  Thomas Schwinge  <thomas@codesourcery.com>
7830         * testsuite/libgomp.oacc-c++/firstprivate-mappings-1.C: New file.
7831         * testsuite/libgomp.oacc-c-c++-common/firstprivate-mappings-1.c:
7832         Likewise.
7834         * testsuite/libgomp.fortran/allocatable3.f90: Add missing results
7835         check.
7837 2019-06-18  Cesar Philippidis  <cesar@codesourcery.com>
7839         * testsuite/libgomp.oacc-fortran/allocatable-array-1.f90: New
7840         file.
7842 2019-06-18  Thomas Schwinge  <thomas@codesourcery.com>
7844         PR fortran/90743
7845         * oacc-parallel.c (GOACC_parallel_keyed): Handle NULL mapping
7846         case.
7847         * testsuite/libgomp.fortran/target-allocatable-1-1.f90: New file.
7848         * testsuite/libgomp.fortran/target-allocatable-1-2.f90: Likewise.
7849         * testsuite/libgomp.oacc-fortran/allocatable-1-1.f90: Likewise.
7850         * testsuite/libgomp.oacc-fortran/allocatable-1-2.f90: Likewise.
7852         PR testsuite/90861
7853         * testsuite/libgomp.oacc-c-c++-common/declare-vla.c: Update.
7855         PR middle-end/90862
7856         * testsuite/libgomp.oacc-c-c++-common/declare-1.c: Update.
7858 2019-06-16  Tom de Vries  <tdevries@suse.de>
7860         PR tree-optimization/89376
7861         * testsuite/libgomp.oacc-c-c++-common/pr89376.c: New test.
7863 2019-06-15  Tom de Vries  <tdevries@suse.de>
7865         PR tree-optimization/89713
7866         * testsuite/libgomp.oacc-c-c++-common/pr85381-2.c: Expect no bar.sync.
7867         * testsuite/libgomp.oacc-c-c++-common/pr85381-4.c: Same.
7869 2019-06-15  Jakub Jelinek  <jakub@redhat.com>
7871         PR middle-end/90779
7872         * testsuite/libgomp.c/pr90779.c: New test.
7873         * testsuite/libgomp.fortran/pr90779.f90: New test.
7875 2019-06-15  Tom de Vries  <tdevries@suse.de>
7877         PR tree-optimization/90009
7878         * testsuite/libgomp.oacc-c-c++-common/pr90009.c: New test.
7880 2019-06-13  Feng Xue  <fxue@os.amperecomputing.com>
7882         PR tree-optimization/89713
7883         * testsuite/libgomp.oacc-c-c++-common/pr84955-1.c: New test.
7885 2019-06-11  Jakub Jelinek  <jakub@redhat.com>
7887         PR target/90811
7888         * testsuite/libgomp.c/pr90811.c: New test.
7890 2019-06-05  Jakub Jelinek  <jakub@redhat.com>
7892         * testsuite/libgomp.c++/lastprivate-conditional-1.C: New test.
7893         * testsuite/libgomp.c++/lastprivate-conditional-2.C: New test.
7895 2019-06-04  Jakub Jelinek  <jakub@redhat.com>
7897         * testsuite/libgomp.c-c++-common/lastprivate-conditional-7.c: New test.
7898         * testsuite/libgomp.c-c++-common/lastprivate-conditional-8.c: New test.
7899         * testsuite/libgomp.c-c++-common/lastprivate-conditional-9.c: New test.
7900         * testsuite/libgomp.c-c++-common/lastprivate-conditional-10.c: New test.
7902 2019-05-30  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7904         * configure.ac: Call AX_COUNT_CPUS.
7905         Substitute CPU_COUNT.
7906         * testsuite/Makefile.am (check-am): Use CPU_COUNT as processor
7907         count fallback.
7908         * aclocal.m4: Regenerate.
7909         * configure: Regenerate.
7910         * Makefile.in, testsuite/Makefile.in: Regenerate.
7912 2019-05-29  Jakub Jelinek  <jakub@redhat.com>
7914         * testsuite/libgomp.c-c++-common/lastprivate_conditional_4.c: Rename
7915         to ...
7916         * testsuite/libgomp.c-c++-common/lastprivate-conditional-4.c: ... this.
7917         * testsuite/libgomp.c-c++-common/lastprivate-conditional-5.c: New test.
7918         * testsuite/libgomp.c-c++-common/lastprivate-conditional-6.c: New test.
7920 2019-05-27  Jakub Jelinek  <jakub@redhat.com>
7922         * testsuite/libgomp.c-c++-common/lastprivate_conditional_4.c: New test.
7924         * testsuite/libgomp.c-c++-common/lastprivate-conditional-3.c: New test.
7926         PR libgomp/90641
7927         * work.c (gomp_init_work_share): Instead of aligning final ordered
7928         value to multiples of long long alignment, align to that the
7929         first part (ordered team ids) and if inline_ordered_team_ids
7930         is not on a long long alignment boundary within the structure,
7931         use __alignof__ (long long) - 1 pad size always.
7932         * loop.c (GOMP_loop_start): Fix *mem computation if
7933         inline_ordered_team_ids is not aligned on long long alignment boundary
7934         within the structure.
7935         * loop-ull.c (GOMP_loop_ull_start): Likewise.
7936         * sections.c (GOMP_sections2_start): Likewise.
7938 2019-05-24  Jakub Jelinek  <jakub@redhat.com>
7940         * testsuite/libgomp.c-c++-common/lastprivate-conditional-1.c: New test.
7941         * testsuite/libgomp.c-c++-common/lastprivate-conditional-2.c: New test.
7943         PR libgomp/90585
7944         * plugin/plugin-hsa.c: Include gstdint.h.  Include inttypes.h only if
7945         HAVE_INTTYPES_H is defined.
7946         (print_uint64_t): New typedef.
7947         (PRIu64): Define if HAVE_INTTYPES_H is not defined.
7948         (print_kernel_dispatch, run_kernel): Use PRIu64 macro instead of
7949         "lu", cast uint64_t HSA_DEBUG and fprintf arguments to print_uint64_t.
7950         (release_kernel_dispatch): Likewise.  Cast shadow->debug to uintptr_t
7951         before casting to void *.
7952         * plugin/plugin-nvptx.c: Include gstdint.h instead of stdint.h.
7953         * oacc-mem.c: Don't include config.h nor stdint.h.
7954         * target.c: Don't include config.h.
7955         * oacc-cuda.c: Likewise.
7956         * oacc-host.c: Don't include stdint.h.
7958 2019-05-20  Jakub Jelinek  <jakub@redhat.com>
7960         PR libgomp/90527
7961         * alloc.c (_GNU_SOURCE): Define.
7963 2019-05-17  Thomas Schwinge  <thomas@codesourcery.com>
7965         * acc_prof.h: New file.
7966         * oacc-profiling.c: Likewise.
7967         * Makefile.am (nodist_libsubinclude_HEADERS, libgomp_la_SOURCES):
7968         Add these, respectively.
7969         * Makefile.in: Regenerate.
7970         * env.c (initialize_env): Call goacc_profiling_initialize.
7971         * oacc-plugin.c (GOMP_PLUGIN_goacc_thread)
7972         (GOMP_PLUGIN_goacc_profiling_dispatch): New functions.
7973         * oacc-plugin.h (GOMP_PLUGIN_goacc_thread)
7974         (GOMP_PLUGIN_goacc_profiling_dispatch): Declare.
7975         * libgomp.map (OACC_2.5.1): Add acc_prof_lookup,
7976         acc_prof_register, acc_prof_unregister, and acc_register_library.
7977         (GOMP_PLUGIN_1.3): Add GOMP_PLUGIN_goacc_profiling_dispatch, and
7978         GOMP_PLUGIN_goacc_thread.
7979         * oacc-int.h (struct goacc_thread): Add prof_info, api_info,
7980         prof_callbacks_enabled members.
7981         (goacc_prof_enabled, goacc_profiling_initialize)
7982         (_goacc_profiling_dispatch_p, _goacc_profiling_setup_p)
7983         (goacc_profiling_dispatch): Declare.
7984         (GOACC_PROF_ENABLED, GOACC_PROFILING_DISPATCH_P)
7985         (GOACC_PROFILING_SETUP_P): Define.
7986         * oacc-async.c (acc_async_test, acc_async_test_all, acc_wait)
7987         (acc_wait_async, acc_wait_all, acc_wait_all_async): Update for
7988         OpenACC Profiling Interface.
7989         * oacc-cuda.c (acc_get_current_cuda_device)
7990         (acc_get_current_cuda_context, acc_get_cuda_stream)
7991         (acc_set_cuda_stream): Likewise.
7992         * oacc-init.c (acc_init_1, goacc_attach_host_thread_to_device)
7993         (acc_init, acc_set_device_type, acc_get_device_type)
7994         (acc_get_device_num, goacc_lazy_initialize): Likewise.
7995         * oacc-mem.c (acc_malloc, acc_free, memcpy_tofrom_device)
7996         (acc_deviceptr, acc_hostptr, acc_is_present, acc_map_data)
7997         (acc_unmap_data, present_create_copy, delete_copyout)
7998         (update_dev_host): Likewise.
7999         * oacc-parallel.c (GOACC_parallel_keyed, GOACC_data_start)
8000         (GOACC_data_end, GOACC_enter_exit_data, GOACC_update, GOACC_wait):
8001         Likewise.
8002         * plugin/plugin-nvptx.c (nvptx_exec, nvptx_alloc, nvptx_free)
8003         (GOMP_OFFLOAD_openacc_exec, GOMP_OFFLOAD_openacc_async_exec):
8004         Likewise.
8005         * libgomp.texi: Update.
8006         * testsuite/libgomp.oacc-c-c++-common/acc_prof-dispatch-1.c: New
8007         file.
8008         * testsuite/libgomp.oacc-c-c++-common/acc_prof-init-1.c: Likewise.
8009         * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c:
8010         Likewise.
8011         * testsuite/libgomp.oacc-c-c++-common/acc_prof-parallel-1.c:
8012         Likewise.
8013         * testsuite/libgomp.oacc-c-c++-common/acc_prof-valid_bytes-1.c:
8014         Likewise.
8015         * testsuite/libgomp.oacc-c-c++-common/acc_prof-version-1.c:
8016         Likewise.
8018 2019-05-13  Chung-Lin Tang <cltang@codesourcery.com>
8020         * libgomp-plugin.h (struct goacc_asyncqueue): Declare.
8021         (struct goacc_asyncqueue_list): Likewise.
8022         (goacc_aq): Likewise.
8023         (goacc_aq_list): Likewise.
8024         (GOMP_OFFLOAD_openacc_register_async_cleanup): Remove.
8025         (GOMP_OFFLOAD_openacc_async_test): Remove.
8026         (GOMP_OFFLOAD_openacc_async_test_all): Remove.
8027         (GOMP_OFFLOAD_openacc_async_wait): Remove.
8028         (GOMP_OFFLOAD_openacc_async_wait_async): Remove.
8029         (GOMP_OFFLOAD_openacc_async_wait_all): Remove.
8030         (GOMP_OFFLOAD_openacc_async_wait_all_async): Remove.
8031         (GOMP_OFFLOAD_openacc_async_set_async): Remove.
8032         (GOMP_OFFLOAD_openacc_exec): Adjust declaration.
8033         (GOMP_OFFLOAD_openacc_cuda_get_stream): Likewise.
8034         (GOMP_OFFLOAD_openacc_cuda_set_stream): Likewise.
8035         (GOMP_OFFLOAD_openacc_async_exec): Declare.
8036         (GOMP_OFFLOAD_openacc_async_construct): Declare.
8037         (GOMP_OFFLOAD_openacc_async_destruct): Declare.
8038         (GOMP_OFFLOAD_openacc_async_test): Declare.
8039         (GOMP_OFFLOAD_openacc_async_synchronize): Declare.
8040         (GOMP_OFFLOAD_openacc_async_serialize): Declare.
8041         (GOMP_OFFLOAD_openacc_async_queue_callback): Declare.
8042         (GOMP_OFFLOAD_openacc_async_host2dev): Declare.
8043         (GOMP_OFFLOAD_openacc_async_dev2host): Declare.
8045         * libgomp.h (struct acc_dispatch_t): Define 'async' sub-struct.
8046         (gomp_acc_insert_pointer): Adjust declaration.
8047         (gomp_copy_host2dev): New declaration.
8048         (gomp_copy_dev2host): Likewise.
8049         (gomp_map_vars_async): Likewise.
8050         (gomp_unmap_tgt): Likewise.
8051         (gomp_unmap_vars_async): Likewise.
8052         (gomp_fini_device): Likewise.
8054         * oacc-async.c (get_goacc_thread): New function.
8055         (get_goacc_thread_device): New function.
8056         (lookup_goacc_asyncqueue): New function.
8057         (get_goacc_asyncqueue): New function.
8058         (acc_async_test): Adjust code to use new async design.
8059         (acc_async_test_all): Likewise.
8060         (acc_wait): Likewise.
8061         (acc_wait_async): Likewise.
8062         (acc_wait_all): Likewise.
8063         (acc_wait_all_async): Likewise.
8064         (goacc_async_free): New function.
8065         (goacc_init_asyncqueues): Likewise.
8066         (goacc_fini_asyncqueues): Likewise.
8067         * oacc-cuda.c (acc_get_cuda_stream): Adjust code to use new async
8068         design.
8069         (acc_set_cuda_stream): Likewise.
8070         * oacc-host.c (host_openacc_exec): Adjust parameters, remove 'async'.
8071         (host_openacc_register_async_cleanup): Remove.
8072         (host_openacc_async_exec): New function.
8073         (host_openacc_async_test): Adjust parameters.
8074         (host_openacc_async_test_all): Remove.
8075         (host_openacc_async_wait): Remove.
8076         (host_openacc_async_wait_async): Remove.
8077         (host_openacc_async_wait_all): Remove.
8078         (host_openacc_async_wait_all_async): Remove.
8079         (host_openacc_async_set_async): Remove.
8080         (host_openacc_async_synchronize): New function.
8081         (host_openacc_async_serialize): New function.
8082         (host_openacc_async_host2dev): New function.
8083         (host_openacc_async_dev2host): New function.
8084         (host_openacc_async_queue_callback): New function.
8085         (host_openacc_async_construct): New function.
8086         (host_openacc_async_destruct): New function.
8087         (struct gomp_device_descr host_dispatch): Remove initialization of old
8088         interface, add initialization of new async sub-struct.
8089         * oacc-init.c (acc_shutdown_1): Adjust to use gomp_fini_device.
8090         (goacc_attach_host_thread_to_device): Remove old async code usage.
8091         * oacc-int.h (goacc_init_asyncqueues): New declaration.
8092         (goacc_fini_asyncqueues): Likewise.
8093         (goacc_async_copyout_unmap_vars): Likewise.
8094         (goacc_async_free): Likewise.
8095         (get_goacc_asyncqueue): Likewise.
8096         (lookup_goacc_asyncqueue): Likewise.
8097         * oacc-mem.c (memcpy_tofrom_device): Adjust code to use new async
8098         design.
8099         (present_create_copy): Adjust code to use new async design.
8100         (delete_copyout): Likewise.
8101         (update_dev_host): Likewise.
8102         (gomp_acc_insert_pointer): Add async parameter, adjust code to use new
8103         async design.
8104         (gomp_acc_remove_pointer): Adjust code to use new async design.
8105         * oacc-parallel.c (GOACC_parallel_keyed): Adjust code to use new async
8106         design.
8107         (GOACC_enter_exit_data): Likewise.
8108         (goacc_wait): Likewise.
8109         (GOACC_update): Likewise.
8110         * oacc-plugin.c (GOMP_PLUGIN_async_unmap_vars): Change to assert fail
8111         when called, warn as obsolete in comment.
8112         * target.c (goacc_device_copy_async): New function.
8113         (gomp_copy_host2dev): Remove 'static', add goacc_asyncqueue parameter,
8114         add goacc_device_copy_async case.
8115         (gomp_copy_dev2host): Likewise.
8116         (gomp_map_vars_existing): Add goacc_asyncqueue parameter, adjust code.
8117         (gomp_map_pointer): Likewise.
8118         (gomp_map_fields_existing): Likewise.
8119         (gomp_map_vars_internal): New always_inline function, renamed from
8120         gomp_map_vars.
8121         (gomp_map_vars): Implement by calling gomp_map_vars_internal.
8122         (gomp_map_vars_async): Implement by calling gomp_map_vars_internal,
8123         passing goacc_asyncqueue argument.
8124         (gomp_unmap_tgt): Remove static, add attribute_hidden.
8125         (gomp_unref_tgt): New function.
8126         (gomp_unmap_vars_internal): New always_inline function, renamed from
8127         gomp_unmap_vars.
8128         (gomp_unmap_vars): Implement by calling gomp_unmap_vars_internal.
8129         (gomp_unmap_vars_async): Implement by calling
8130         gomp_unmap_vars_internal, passing goacc_asyncqueue argument.
8131         (gomp_fini_device): New function.
8132         (gomp_exit_data): Adjust gomp_copy_dev2host call.
8133         (gomp_load_plugin_for_device): Remove old interface, adjust to load
8134         new async interface.
8135         (gomp_target_fini): Adjust code to call gomp_fini_device.
8137         * plugin/plugin-nvptx.c (struct cuda_map): Remove.
8138         (struct ptx_stream): Remove.
8139         (struct nvptx_thread): Remove current_stream field.
8140         (cuda_map_create): Remove.
8141         (cuda_map_destroy): Remove.
8142         (map_init): Remove.
8143         (map_fini): Remove.
8144         (map_pop): Remove.
8145         (map_push): Remove.
8146         (struct goacc_asyncqueue): Define.
8147         (struct nvptx_callback): Define.
8148         (struct ptx_free_block): Define.
8149         (struct ptx_device): Remove null_stream, active_streams, async_streams,
8150         stream_lock, and next fields.
8151         (enum ptx_event_type): Remove.
8152         (struct ptx_event): Remove.
8153         (ptx_event_lock): Remove.
8154         (ptx_events): Remove.
8155         (init_streams_for_device): Remove.
8156         (fini_streams_for_device): Remove.
8157         (select_stream_for_async): Remove.
8158         (nvptx_init): Remove ptx_events and ptx_event_lock references.
8159         (nvptx_attach_host_thread_to_device): Remove CUDA_ERROR_NOT_PERMITTED
8160         case.
8161         (nvptx_open_device): Add free_blocks initialization, remove
8162         init_streams_for_device call.
8163         (nvptx_close_device): Remove fini_streams_for_device call, add
8164         free_blocks destruct code.
8165         (event_gc): Remove.
8166         (event_add): Remove.
8167         (nvptx_exec): Adjust parameters and code.
8168         (nvptx_free): Likewise.
8169         (nvptx_host2dev): Remove.
8170         (nvptx_dev2host): Remove.
8171         (nvptx_set_async): Remove.
8172         (nvptx_async_test): Remove.
8173         (nvptx_async_test_all): Remove.
8174         (nvptx_wait): Remove.
8175         (nvptx_wait_async): Remove.
8176         (nvptx_wait_all): Remove.
8177         (nvptx_wait_all_async): Remove.
8178         (nvptx_get_cuda_stream): Remove.
8179         (nvptx_set_cuda_stream): Remove.
8180         (GOMP_OFFLOAD_alloc): Adjust code.
8181         (GOMP_OFFLOAD_free): Likewise.
8182         (GOMP_OFFLOAD_openacc_register_async_cleanup): Remove.
8183         (GOMP_OFFLOAD_openacc_exec): Adjust parameters and code.
8184         (GOMP_OFFLOAD_openacc_async_test_all): Remove.
8185         (GOMP_OFFLOAD_openacc_async_wait): Remove.
8186         (GOMP_OFFLOAD_openacc_async_wait_async): Remove.
8187         (GOMP_OFFLOAD_openacc_async_wait_all): Remove.
8188         (GOMP_OFFLOAD_openacc_async_wait_all_async): Remove.
8189         (GOMP_OFFLOAD_openacc_async_set_async): Remove.
8190         (cuda_free_argmem): New function.
8191         (GOMP_OFFLOAD_openacc_async_exec): New plugin hook function.
8192         (GOMP_OFFLOAD_openacc_create_thread_data): Adjust code.
8193         (GOMP_OFFLOAD_openacc_cuda_get_stream): Adjust code.
8194         (GOMP_OFFLOAD_openacc_cuda_set_stream): Adjust code.
8195         (GOMP_OFFLOAD_openacc_async_construct): New plugin hook function.
8196         (GOMP_OFFLOAD_openacc_async_destruct): New plugin hook function.
8197         (GOMP_OFFLOAD_openacc_async_test): Remove and re-implement.
8198         (GOMP_OFFLOAD_openacc_async_synchronize): New plugin hook function.
8199         (GOMP_OFFLOAD_openacc_async_serialize): New plugin hook function.
8200         (GOMP_OFFLOAD_openacc_async_queue_callback): New plugin hook function.
8201         (cuda_callback_wrapper): New function.
8202         (cuda_memcpy_sanity_check): New function.
8203         (GOMP_OFFLOAD_host2dev): Remove and re-implement.
8204         (GOMP_OFFLOAD_dev2host): Remove and re-implement.
8205         (GOMP_OFFLOAD_openacc_async_host2dev): New plugin hook function.
8206         (GOMP_OFFLOAD_openacc_async_dev2host): New plugin hook function.
8208 2019-05-07  Thomas Schwinge  <thomas@codesourcery.com>
8210         PR target/87835
8211         * testsuite/libgomp.oacc-c-c++-common/pr87835.c: Update.
8213 2019-05-06  Thomas Schwinge  <thomas@codesourcery.com>
8215         * oacc-parallel.c: Add comments to legacy entry points (GCC 5).
8217 2019-03-27  Kevin Buettner  <kevinb@redhat.com>
8219         * team.c (gomp_team_start): Initialize pool->threads[0].
8221 2019-02-22  Thomas Schwinge  <thomas@codesourcery.com>
8223         * testsuite/libgomp.oacc-c++/c++.exp: Specify
8224         "-foffload=$offload_target".
8225         * testsuite/libgomp.oacc-c/c.exp: Likewise.
8226         * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
8227         * testsuite/lib/libgomp.exp
8228         (check_effective_target_openacc_nvidia_accel_configured): Remove,
8229         as (conceptually) merged into
8230         check_effective_target_openacc_nvidia_accel_selected.  Adjust all
8231         users.
8233         * plugin/configfrag.ac: Populate and AC_SUBST offload_targets.
8234         * testsuite/libgomp-test-support.exp.in: Adjust.
8235         * testsuite/lib/libgomp.exp: Likewise.  Don't populate
8236         openacc_device_types_s.
8237         (offload_target_to_openacc_device_type): New proc.
8238         * testsuite/libgomp.oacc-c++/c++.exp: Adjust.
8239         * testsuite/libgomp.oacc-c/c.exp: Likewise.
8240         * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
8241         * Makefile.in: Regenerate.
8242         * configure: Likewise.
8243         * testsuite/Makefile.in: Likewise.
8245         * plugin/configfrag.ac: Populate and AC_SUBST offload_plugins
8246         instead of offload_targets, and AC_DEFINE_UNQUOTED OFFLOAD_PLUGINS
8247         instead of OFFLOAD_TARGETS.
8248         * target.c (gomp_target_init): Adjust.
8249         * testsuite/libgomp-test-support.exp.in: Likewise.
8250         * testsuite/lib/libgomp.exp: Likewise.  Populate
8251         openacc_device_types_s instead of offload_targets_s_openacc.
8252         (check_effective_target_openacc_nvidia_accel_selected)
8253         (check_effective_target_openacc_host_selected): Adjust.
8254         * testsuite/libgomp.oacc-c++/c++.exp: Likewise.
8255         * testsuite/libgomp.oacc-c/c.exp: Likewise.
8256         * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
8257         * Makefile.in: Regenerate.
8258         * config.h.in: Likewise.
8259         * configure: Likewise.
8260         * testsuite/Makefile.in: Likewise.
8262         * testsuite/lib/libgomp.exp: Error out for unknown offload target.
8263         * testsuite/libgomp.oacc-c++/c++.exp: Likewise.  Report if
8264         "offloading: supported, but hardware not accessible".
8265         * testsuite/libgomp.oacc-c/c.exp: Likewise.
8266         * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
8268 2019-02-19  Chung-Lin Tang <cltang@codesourcery.com>
8270         PR c/87924
8271         * oacc-parallel.c (GOACC_parallel_keyed): Remove condition on call to
8272         goacc_wait().
8273         (goacc_wait): Handle ACC_ASYNC_NOVAL case, remove goacc_thread() call
8274         and related adjustment.
8276 2019-01-30  Jakub Jelinek  <jakub@redhat.com>
8278         PR c++/88988
8279         * testsuite/libgomp.c++/pr88988.C: New test.
8281 2019-01-28  Jakub Jelinek  <jakub@redhat.com>
8283         PR middle-end/89002
8284         * testsuite/libgomp.c/pr89002.c: New test.
8286 2019-01-28  Richard Biener  <rguenther@suse.de>
8288         PR testsuite/89064
8289         PR tree-optimization/86865
8290         * testsuite/libgomp.graphite/force-parallel-5.c: XFAIL.
8292 2019-01-24  Tom de Vries  <tdevries@suse.de>
8294         * plugin/plugin-nvptx.c (GOMP_OFFLOAD_fini_device): Free ptx_devices
8295         once instantiated_devices drops to 0.
8297 2019-01-23  Tom de Vries  <tdevries@suse.de>
8299         PR target/PR88946
8300         * plugin/plugin-nvptx.c (cuda_map_destroy): Use CUDA_CALL_NOCHECK for
8301         cuMemFree.
8302         (nvptx_exec): Don't call map_push if mapnum == 0.
8303         * testsuite/libgomp.oacc-c-c++-common/pr88946.c: New test.
8305 2019-01-23  Tom de Vries  <tdevries@suse.de>
8307         PR target/88941
8308         PR target/88939
8309         * plugin/plugin-nvptx.c (cuda_map_destroy): Handle map->active case.
8310         (map_fini): Remove "assert (!s->map->active)".
8311         * testsuite/libgomp.oacc-c-c++-common/pr88941.c: New test.
8313 2019-01-23  Tom de Vries  <tdevries@suse.de>
8315         PR target/87835
8316         * plugin/plugin-nvptx.c (map_push): Fix adding of allocated element.
8317         * testsuite/libgomp.oacc-c-c++-common/pr87835.c: New test.
8319 2019-01-15  Tom de Vries  <tdevries@suse.de>
8321         PR target/80547
8322         * testsuite/libgomp.oacc-c-c++-common/gang-reduction-var-assignment.c:
8323         New test.
8325 2019-01-12  Tom de Vries  <tdevries@suse.de>
8327         * testsuite/libgomp.oacc-c-c++-common/pr85486-2.c: New test.
8328         * testsuite/libgomp.oacc-c-c++-common/vector-length-128-2.c: New test.
8329         * testsuite/libgomp.oacc-c-c++-common/vector-length-128-5.c: New test.
8330         * testsuite/libgomp.oacc-fortran/gemm-2.f90: New test.
8332 2019-01-12  Tom de Vries  <tdevries@suse.de>
8334         * plugin/plugin-nvptx.c (nvptx_exec): Update error message.
8336 2019-01-12  Tom de Vries  <tdevries@suse.de>
8338         * testsuite/libgomp.oacc-c-c++-common/vector-length-64-1.c: New test.
8339         * testsuite/libgomp.oacc-c-c++-common/vector-length-64-2.c: New test.
8340         * testsuite/libgomp.oacc-c-c++-common/vector-length-64-3.c: New test.
8342 2019-01-12  Tom de Vries  <tdevries@suse.de>
8344         PR target/85486
8345         * testsuite/libgomp.oacc-c-c++-common/pr85486-3.c: New test.
8346         * testsuite/libgomp.oacc-c-c++-common/pr85486.c: New test.
8348 2019-01-12  Tom de Vries  <tdevries@suse.de>
8350         PR target/85381
8351         * testsuite/libgomp.oacc-c-c++-common/pr85381-5.c: New test.
8352         * testsuite/libgomp.oacc-c-c++-common/pr85381.c: New test.
8354 2019-01-12  Tom de Vries  <tdevries@suse.de>
8356         * testsuite/libgomp.oacc-c-c++-common/vred2d-128.c: New test.
8357         * testsuite/libgomp.oacc-fortran/gemm.f90: New test.
8358         * testsuite/libgomp.oacc-c-c++-common/vector-length-128-10.c: New test.
8360 2019-01-12  Tom de Vries  <tdevries@suse.de>
8362         * testsuite/libgomp.oacc-c-c++-common/vector-length-128-7.c: New test.
8363         * testsuite/libgomp.oacc-c-c++-common/vector-length-128-4.c: New test.
8364         * testsuite/libgomp.oacc-c-c++-common/vector-length-128-6.c: New test.
8366 2019-01-12  Tom de Vries  <tdevries@suse.de>
8368         * plugin/plugin-nvptx.c (nvptx_exec): Update insufficient hardware
8369         resources diagnostic.
8371 2019-01-12  Tom de Vries  <tdevries@suse.de>
8373         * testsuite/libgomp.oacc-c-c++-common/vector-length-128-1.c: Expect
8374         vector length to be 128.
8375         * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Expect vector
8376         length 2097152 to be reduced to 1024 instead of 32.
8378 2019-01-11  Thomas Schwinge  <thomas@codesourcery.com>
8379             James Norris  <jnorris@codesourcery.com>
8381         * libgomp.texi: Better distinguish OpenACC and OpenMP "Runtime
8382         Library Routines", and "Environment Variables".
8384 2019-01-11  Tom de Vries  <tdevries@suse.de>
8386         * plugin/plugin-nvptx.c (nvptx_exec): Prevent vector_length 64 and
8387         num_workers 16.
8389 2019-01-11  Tom de Vries  <tdevries@suse.de>
8391         * testsuite/libgomp.oacc-c-c++-common/reduction-1.c: Remove
8392         -foffload=-w.
8393         * testsuite/libgomp.oacc-c-c++-common/reduction-2.c: Same.
8394         * testsuite/libgomp.oacc-c-c++-common/reduction-3.c: Same.
8395         * testsuite/libgomp.oacc-c-c++-common/reduction-4.c: Same.
8396         * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Same.
8398 2019-01-11  Tom de Vries  <tdevries@suse.de>
8400         * testsuite/libgomp.oacc-c-c++-common/insufficient-resources.c: New
8401         test.
8403 2019-01-10  Nathan Sidwell  <nathan@acm.org>
8404             Julian Brown  <julian@codesourcery.com>
8406         PR lto/71959
8407         * testsuite/libgomp.oacc-c++/pr71959-aux.cc: New.
8408         * testsuite/libgomp.oacc-c++/pr71959.C: New.
8410 2019-01-09  Sebastian Huber  <sebastian.huber@embedded-brains.de>
8412         * config/rtems/bar.c: Include "../linux/bar.c" and delete copy
8413         and paste code.
8415 2019-01-09  Sebastian Huber  <sebastian.huber@embedded-brains.de>
8417         * config/rtems/affinity-fmt.c: New file.  Include affinity-fmt.c,
8418         undefining HAVE_GETPID and HAVE_GETHOSTNAME, and mapping fwrite to
8419         write.
8421 2019-01-09  Tom de Vries  <tdevries@suse.de>
8423         PR target/88756
8424         * testsuite/libgomp.oacc-c-c++-common/reduction-1.c (ng, nw, vl): Use
8425         #define instead of "const int".
8426         * testsuite/libgomp.oacc-c-c++-common/reduction-2.c (ng, nw, vl): Same.
8427         * testsuite/libgomp.oacc-c-c++-common/reduction-3.c (ng, nw, vl): Same.
8428         * testsuite/libgomp.oacc-c-c++-common/reduction-4.c (ng, nw, vl): Same.
8429         * testsuite/libgomp.oacc-c-c++-common/reduction-5.c (ng, nw, vl): Same.
8431 2019-01-09  Tom de Vries  <tdevries@suse.de>
8433         * plugin/plugin-nvptx.c (nvptx_exec): Make sure to launch with at least
8434         one worker.
8436 2019-01-07  Tom de Vries  <tdevries@suse.de>
8438         * testsuite/libgomp.oacc-c-c++-common/vector-length-128-3.c: Fix
8439         GOMP_OPENACC_DIM argument.
8441 2019-01-03  Tom de Vries  <tdevries@suse.de>
8443         * testsuite/libgomp.oacc-c-c++-common/vector-length-128-1.c: New test.
8444         * testsuite/libgomp.oacc-c-c++-common/vector-length-128-3.c: New test.
8446 2019-01-01  Jakub Jelinek  <jakub@redhat.com>
8448         Update copyright years.
8450 2019-01-01  Jakub Jelinek  <jakub@redhat.com>
8452         * libgomp.texi: Bump @copying's copyright year.
8454 2018-12-28  Thomas Schwinge  <thomas@codesourcery.com>
8456         * oacc-parallel.c (GOACC_parallel_keyed, GOACC_parallel)
8457         (GOACC_data_start, GOACC_enter_exit_data, GOACC_update)
8458         (GOACC_declare): Redefine the "device" argument to "flags".
8460 2018-12-28  Thomas Schwinge  <thomas@codesourcery.com>
8461             Cesar Philippidis  <cesar@codesourcery.com>
8463         * target.c (struct gomp_coalesce_chunk): New structure.
8464         (struct gomp_coalesce_buf): Update the chunks member to use that
8465         type.  Adjust all users.
8467 2018-12-19  Tom de Vries  <tdevries@suse.de>
8469         * testsuite/libgomp.oacc-c-c++-common/pr85381-2.c: New test.
8470         * testsuite/libgomp.oacc-c-c++-common/pr85381-3.c: New test.
8471         * testsuite/libgomp.oacc-c-c++-common/pr85381-4.c: New test.
8473 2018-12-19  Tom de Vries  <tdevries@suse.de>
8475         * testsuite/lib/libgomp.exp: Add load_lib of scanoffloadrtl.exp.
8476         * testsuite/libgomp.oacc-c-c++-common/nvptx-merged-loop.c: Move from
8477         gcc/testsuite/gcc.dg/goacc.
8478         * testsuite/libgomp.oacc-c-c++-common/nvptx-sese-1.c: Same.
8480 2018-12-14  Thomas Schwinge  <thomas@codesourcery.com>
8481             Chung-Lin Tang  <cltang@codesourcery.com>
8483         * oacc-mem.c (acc_present_or_create): Remove definition and change
8484         to alias of acc_create.
8485         (acc_present_or_copyin): Remove definition and change to alias of
8486         acc_copyin.
8487         * oacc-parallel.c (GOACC_enter_exit_data): Call acc_create instead
8488         of acc_present_or_create.
8489         * testsuite/libgomp.oacc-c-c++-common/data-already-1.c: Remove.
8490         * testsuite/libgomp.oacc-c-c++-common/data-already-2.c: Likewise.
8491         * testsuite/libgomp.oacc-c-c++-common/data-already-3.c: Likewise.
8492         * testsuite/libgomp.oacc-c-c++-common/data-already-4.c: Likewise.
8493         * testsuite/libgomp.oacc-c-c++-common/data-already-5.c: Likewise.
8494         * testsuite/libgomp.oacc-c-c++-common/data-already-6.c: Likewise.
8495         * testsuite/libgomp.oacc-c-c++-common/data-already-7.c: Likewise.
8496         * testsuite/libgomp.oacc-c-c++-common/data-already-8.c: Likewise.
8497         * testsuite/libgomp.oacc-fortran/data-already-1.f: Likewise.
8498         * testsuite/libgomp.oacc-fortran/data-already-2.f: Likewise.
8499         * testsuite/libgomp.oacc-fortran/data-already-3.f: Likewise.
8500         * testsuite/libgomp.oacc-fortran/data-already-4.f: Likewise.
8501         * testsuite/libgomp.oacc-fortran/data-already-5.f: Likewise.
8502         * testsuite/libgomp.oacc-fortran/data-already-6.f: Likewise.
8503         * testsuite/libgomp.oacc-fortran/data-already-7.f: Likewise.
8504         * testsuite/libgomp.oacc-fortran/data-already-8.f: Likewise.
8506 2018-12-14  Thomas Schwinge  <thomas@codesourcery.com>
8508         PR libgomp/88495
8509         * plugin/plugin-nvptx.c (nvptx_wait_async): Don't refuse
8510         "identical parameters".
8511         * testsuite/libgomp.oacc-c-c++-common/asyncwait-nop-1.c: Update.
8512         * testsuite/libgomp.oacc-c-c++-common/lib-80.c: Remove.
8514         PR libgomp/88484
8515         * oacc-parallel.c (GOACC_wait): Correct handling for "async >= 0".
8516         * testsuite/libgomp.oacc-c-c++-common/asyncwait-nop-1.c: New file.
8518         PR libgomp/88407
8519         * plugin/plugin-nvptx.c (nvptx_async_test, nvptx_wait)
8520         (nvptx_wait_async): Unseen async-argument is a no-op.
8521         * testsuite/libgomp.oacc-c-c++-common/async_queue-1.c: Update.
8522         * testsuite/libgomp.oacc-c-c++-common/data-2-lib.c: Likewise.
8523         * testsuite/libgomp.oacc-c-c++-common/data-2.c: Likewise.
8524         * testsuite/libgomp.oacc-c-c++-common/lib-79.c: Likewise.
8525         * testsuite/libgomp.oacc-fortran/lib-12.f90: Likewise.
8526         * testsuite/libgomp.oacc-c-c++-common/lib-71.c: Merge into...
8527         * testsuite/libgomp.oacc-c-c++-common/lib-69.c: ... this.  Update.
8528         * testsuite/libgomp.oacc-c-c++-common/lib-77.c: Merge into...
8529         * testsuite/libgomp.oacc-c-c++-common/lib-74.c: ... this.  Update
8531         * testsuite/libgomp.oacc-c-c++-common/data-2-lib.c: Revise.
8532         * testsuite/libgomp.oacc-c-c++-common/data-2.c: Likewise.
8534 2018-12-14  Chung-Lin Tang  <cltang@codesourcery.com>
8536         * testsuite/libgomp.oacc-c-c++-common/data-2-lib.c: Adjust.
8537         * testsuite/libgomp.oacc-c-c++-common/data-2.c: Likewise.
8538         * testsuite/libgomp.oacc-c-c++-common/data-3.c: Likewise.
8540 2018-12-14  Thomas Schwinge  <thomas@codesourcery.com>
8542         PR libgomp/88370
8543         * libgomp.texi (acc_get_current_cuda_context, acc_get_cuda_stream)
8544         (acc_set_cuda_stream): Clarify.
8545         * oacc-cuda.c (acc_get_cuda_stream, acc_set_cuda_stream): Use
8546         "async_valid_p".
8547         * plugin/plugin-nvptx.c (nvptx_set_cuda_stream): Refuse "async ==
8548         acc_async_sync".
8549         * testsuite/libgomp.oacc-c-c++-common/acc_set_cuda_stream-1.c: New file.
8550         * testsuite/libgomp.oacc-c-c++-common/async_queue-1.c: Likewise.
8551         * testsuite/libgomp.oacc-c-c++-common/lib-84.c: Update.
8552         * testsuite/libgomp.oacc-c-c++-common/lib-85.c: Likewise.
8554 2018-12-14  Tom de Vries  <tdevries@suse.de>
8556         * testsuite/libgomp.c-c++-common/function-not-offloaded-aux.c: New test.
8557         * testsuite/libgomp.c-c++-common/function-not-offloaded.c: New test.
8558         * testsuite/libgomp.c-c++-common/variable-not-offloaded.c: New test.
8559         * testsuite/libgomp.oacc-c-c++-common/function-not-offloaded.c: New test.
8560         * testsuite/libgomp.oacc-c-c++-common/variable-not-offloaded.c: New test.
8562 2018-12-13  Tom de Vries  <tdevries@suse.de>
8564         * affinity-fmt.c (gomp_print_string): New function, factored out of ...
8565         (omp_display_affinity, gomp_display_affinity_thread): ... here, and ...
8566         * fortran.c (omp_display_affinity_): ... here.
8567         * libgomp.h (gomp_print_string): Declare.
8568         * config/nvptx/affinity-fmt.c: New file.  Include affinity-fmt.c,
8569         undefining HAVE_GETPID and HAVE_GETHOSTNAME, and mapping fwrite to
8570         write.
8572 2018-12-13  Jakub Jelinek  <jakub@redhat.com>
8574         PR libgomp/88460
8575         * testsuite/libgomp.c++/for-24.C (results): Include it in
8576         omp declare target region.
8577         (main): Use map (always, tofrom: results) instead of
8578         map (tofrom: results).
8580 2018-12-12  Jakub Jelinek  <jakub@redhat.com>
8582         PR fortran/88463
8583         * testsuite/libgomp.fortran/pr88463-1.f90: New test.
8584         * testsuite/libgomp.fortran/pr88463-2.f90: New test.
8586         * testsuite/libgomp.c-c++-common/for-16.c: New test.
8588 2018-12-12  Andreas Schwab  <schwab@suse.de>
8590         * config/linux/ia64/futex.h (sys_futex0): Don't mark r12 as
8591         clobbered.
8593 2018-12-09  Thomas Koenig  <tkoenig@gcc.gnu.org>
8595         PR fortran/88411
8596         * testsuite/libgomp.fortran/async_io_8.f90: New test.
8598 2018-12-09  Thomas Schwinge  <thomas@codesourcery.com>
8599             Jakub Jelinek  <jakub@redhat.com>
8601         * target.c (gomp_map_vars): Call gomp_copy_host2dev instead of
8602         devicep->host2dev_func.
8604 2018-12-08  Jakub Jelinek  <jakub@redhat.com>
8606         PR libgomp/87995
8607         * testsuite/libgomp.c-c++-common/cancel-taskgroup-3.c: Require
8608         tls_runtime effective target.
8609         (t): New threadprivate variable.
8610         (main): Set t in threads which execute iterations of the worksharing
8611         loop.  Propagate that to the task after the loop and don't abort
8612         if the current taskgroup hasn't been cancelled.
8614 2018-12-02  Jakub Jelinek  <jakub@redhat.com>
8616         * testsuite/libgomp.c/task-reduction-3.c: New test.
8618         * testsuite/libgomp.c-c++-common/cancel-taskgroup-4.c: New test.
8620 2018-11-30  Cesar Philippidis  <cesar@codesourcery.com>
8622         PR libgomp/88288
8623         * oacc-parallel.c (GOACC_parallel_keyed): Add offset to devaddrs.
8624         * testsuite/libgomp.oacc-c-c++-common/pr88288.c: New test.
8626 2018-11-30  Thomas Schwinge  <thomas@codesourcery.com>
8628         * testsuite/libgomp.oacc-fortran/lib-16-2.f90: New file.
8630 2018-10-19  Richard Biener  <rguenther@suse.de>
8632         PR tree-optimization/88182
8633         * testsuite/libgomp.c++/pr88182.C: Move to g++.dg/gomp.
8635 2018-11-26  Jakub Jelinek  <jakub@redhat.com>
8637         * testsuite/Makefile.am (AUTOMAKE_OPTIONS): Drop dejagnu.
8638         (RUNTEST): Don't define.
8639         (RUNTESTDEFAULTFLAGS): Add.
8640         (check-DEJAGNU, site.exp, distclean-DEJAGNU): New goals.
8641         (distclean-am): Depend on distclean-DEJAGNU.
8642         (check-am): If -j% option is present in MFLAGS and if
8643         `getconf _NPROCESSORS_ONLN` is more than 8, export OMP_NUM_THREADS=8.
8644         (.PHONY): Add check-DEJAGNU and distclean-DEJAGNU.
8645         * testsuite/Makefile.in: Regenerated.
8647 2018-11-26  Richard Biener  <rguenther@suse.de>
8649         PR tree-optimization/88182
8650         * testsuite/libgomp.c++/pr88182.C: New testcase.
8652 2018-11-20  Jakub Jelinek  <jakub@redhat.com>
8654         PR bootstrap/88106
8655         * config/mingw32/affinity-fmt.c: New file.
8657 2018-11-09  Jakub Jelinek  <jakub@redhat.com>
8659         * affinity-fmt.c: Include inttypes.h if HAVE_INTTYPES_H.
8660         (gomp_display_affinity): Use __builtin_choose_expr to handle
8661         properly handle argument having integral, or pointer or some other
8662         type.  If inttypes.h is available and PRIx64 is defined, use PRIx64
8663         with uint64_t type instead of %llx and unsigned long long.
8665         * testsuite/libgomp.c-c++-common/task-reduction-13.c: New test.
8666         * testsuite/libgomp.c-c++-common/task-reduction-14.c: New test.
8668 2018-11-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8670         * affinity.c: Include <string.h>, <stdio.h>.
8671         (gomp_display_affinity_place): Remove cpusetp.
8672         * teams.c: Include <limits.h>.
8674 2018-11-08  Jakub Jelinek  <jakub@redhat.com>
8676         * testsuite/libgomp.c-c++-common/task-reduction-8.c (bar): Add
8677         in_reduction clause for s[0].
8679         * affinity.c (gomp_display_affinity_place): New function.
8680         * affinity-fmt.c: New file.
8681         * alloc.c (gomp_aligned_alloc, gomp_aligned_free): New functions.
8682         * config/linux/affinity.c (gomp_display_affinity_place): New function.
8683         * config/nvptx/icv-device.c (omp_get_num_teams, omp_get_team_num):
8684         Move these functions to ...
8685         * config/nvptx/teams.c: ... here.  New file.
8686         * config/nvptx/target.c (omp_pause_resource, omp_pause_resource_all):
8687         New functions.
8688         * config/nvptx/team.c (gomp_team_start, gomp_pause_host): New
8689         functions.
8690         * configure.ac: Check for aligned_alloc, posix_memalign, memalign
8691         and _aligned_malloc.
8692         (HAVE_UNAME, HAVE_GETHOSTNAME, HAVE_GETPID): Add new tests.
8693         * configure.tgt: Add -DUSING_INITIAL_EXEC_TLS to XCFLAGS for Linux.
8694         * env.c (gomp_display_affinity_var, gomp_affinity_format_var,
8695         gomp_affinity_format_len): New variables.
8696         (parse_schedule): Parse monotonic and nonmonotonic modifiers in
8697         OMP_SCHEDULE variable.  Set GFS_MONOTONIC for monotonic schedules.
8698         (handle_omp_display_env): Display monotonic/nonmonotonic schedule
8699         modifiers.  Display (non-default) chunk sizes.  Print
8700         OMP_DISPLAY_AFFINITY and OMP_AFFINITY_FORMAT.
8701         (initialize_env): Don't call pthread_attr_setdetachstate.  Handle
8702         OMP_DISPLAY_AFFINITY and OMP_AFFINITY_FORMAT env vars.
8703         * fortran.c: Include stdio.h and string.h.
8704         (omp_pause_resource, omp_pause_resource_all): Add ialias_redirect.
8705         (omp_get_schedule_, omp_get_schedule_8_): Mask off GFS_MONOTONIC bit.
8706         (omp_set_affinity_format_, omp_get_affinity_format_,
8707         omp_display_affinity_, omp_capture_affinity_, omp_pause_resource_,
8708         omp_pause_resource_all_): New functions.
8709         * icv.c (omp_set_schedule): Mask off omp_sched_monotonic bit in
8710         switch.
8711         * icv-device.c (omp_get_num_teams, omp_get_team_num): Move these
8712         functions to ...
8713         * teams.c: ... here.  New file.
8714         * libgomp_g.h: Include gstdint.h.
8715         (GOMP_loop_nonmonotonic_runtime_start,
8716         GOMP_loop_maybe_nonmonotonic_runtime_start, GOMP_loop_start,
8717         GOMP_loop_ordered_start, GOMP_loop_nonmonotonic_runtime_next,
8718         GOMP_loop_maybe_nonmonotonic_runtime_next, GOMP_loop_doacross_start,
8719         GOMP_parallel_loop_nonmonotonic_runtime,
8720         GOMP_parallel_loop_maybe_nonmonotonic_runtime,
8721         GOMP_loop_ull_nonmonotonic_runtime_start,
8722         GOMP_loop_ull_maybe_nonmonotonic_runtime_start, GOMP_loop_ull_start,
8723         GOMP_loop_ull_ordered_start, GOMP_loop_ull_nonmonotonic_runtime_next,
8724         GOMP_loop_ull_maybe_nonmonotonic_runtime_next,
8725         GOMP_loop_ull_doacross_start, GOMP_parallel_reductions,
8726         GOMP_taskwait_depend, GOMP_taskgroup_reduction_register,
8727         GOMP_taskgroup_reduction_unregister, GOMP_task_reduction_remap,
8728         GOMP_workshare_task_reduction_unregister, GOMP_sections2_start,
8729         GOMP_teams_reg): Declare.
8730         * libgomp.h (GOMP_HAVE_EFFICIENT_ALIGNED_ALLOC): Define unless
8731         gomp_aligned_alloc uses fallback implementation.
8732         (gomp_aligned_alloc, gomp_aligned_free): Declare.
8733         (enum gomp_schedule_type): Add GFS_MONOTONIC.
8734         (struct gomp_doacross_work_share): Add extra field.
8735         (struct gomp_work_share): Add task_reductions field.
8736         (struct gomp_taskgroup): Add workshare and reductions fields.
8737         (GOMP_NEEDS_THREAD_HANDLE): Define if needed.
8738         (gomp_thread_handle): New typedef.
8739         (gomp_display_affinity_place, gomp_set_affinity_format,
8740         gomp_display_string, gomp_display_affinity,
8741         gomp_display_affinity_thread): Declare.
8742         (gomp_doacross_init, gomp_doacross_ull_init): Add size_t argument.
8743         (gomp_parallel_reduction_register, gomp_workshare_taskgroup_start,
8744         gomp_workshare_task_reduction_register): Declare.
8745         (gomp_team_start): Add taskgroup argument.
8746         (gomp_pause_host): Declare.
8747         (gomp_init_work_share, gomp_work_share_start): Change bool argument
8748         to size_t.
8749         (gomp_thread_self, gomp_thread_to_pthread_t): New inline functions.
8750         * libgomp.map (GOMP_5.0): Export GOMP_loop_start,
8751         GOMP_loop_ordered_start, GOMP_loop_doacross_start,
8752         GOMP_loop_ull_start, GOMP_loop_ull_ordered_start,
8753         GOMP_loop_ull_doacross_start,
8754         GOMP_workshare_task_reduction_unregister, GOMP_sections2_start,
8755         GOMP_loop_maybe_nonmonotonic_runtime_next,
8756         GOMP_loop_maybe_nonmonotonic_runtime_start,
8757         GOMP_loop_nonmonotonic_runtime_next,
8758         GOMP_loop_nonmonotonic_runtime_start,
8759         GOMP_loop_ull_maybe_nonmonotonic_runtime_next,
8760         GOMP_loop_ull_maybe_nonmonotonic_runtime_start,
8761         GOMP_loop_ull_nonmonotonic_runtime_next,
8762         GOMP_loop_ull_nonmonotonic_runtime_start,
8763         GOMP_parallel_loop_maybe_nonmonotonic_runtime,
8764         GOMP_parallel_loop_nonmonotonic_runtime, GOMP_parallel_reductions,
8765         GOMP_taskgroup_reduction_register,
8766         GOMP_taskgroup_reduction_unregister, GOMP_task_reduction_remap,
8767         GOMP_teams_reg and GOMP_taskwait_depend.
8768         (OMP_5.0): Export omp_pause_resource{,_all}{,_},
8769         omp_{capture,display}_affinity{,_}, and
8770         omp_[gs]et_affinity_format{,_}.
8771         * loop.c: Include string.h.
8772         (GOMP_loop_runtime_next): Add ialias.
8773         (GOMP_taskgroup_reduction_register): Add ialias_redirect.
8774         (gomp_loop_static_start, gomp_loop_dynamic_start,
8775         gomp_loop_guided_start, gomp_loop_ordered_static_start,
8776         gomp_loop_ordered_dynamic_start, gomp_loop_ordered_guided_start,
8777         gomp_loop_doacross_static_start, gomp_loop_doacross_dynamic_start,
8778         gomp_loop_doacross_guided_start): Adjust gomp_work_share_start
8779         or gomp_doacross_init callers.
8780         (gomp_adjust_sched, GOMP_loop_start, GOMP_loop_ordered_start,
8781         GOMP_loop_doacross_start): New functions.
8782         (GOMP_loop_runtime_start, GOMP_loop_ordered_runtime_start,
8783         GOMP_loop_doacross_runtime_start, GOMP_parallel_loop_runtime_start):
8784         Mask off GFS_MONOTONIC bit.
8785         (GOMP_loop_maybe_nonmonotonic_runtime_next,
8786         GOMP_loop_maybe_nonmonotonic_runtime_start,
8787         GOMP_loop_nonmonotonic_runtime_next,
8788         GOMP_loop_nonmonotonic_runtime_start,
8789         GOMP_parallel_loop_maybe_nonmonotonic_runtime,
8790         GOMP_parallel_loop_nonmonotonic_runtime): New aliases or wrapper
8791         functions.
8792         (gomp_parallel_loop_start): Pass NULL as taskgroup to
8793         gomp_team_start.
8794         * loop_ull.c: Include string.h.
8795         (GOMP_loop_ull_runtime_next): Add ialias.
8796         (GOMP_taskgroup_reduction_register): Add ialias_redirect.
8797         (gomp_loop_ull_static_start, gomp_loop_ull_dynamic_start,
8798         gomp_loop_ull_guided_start, gomp_loop_ull_ordered_static_start,
8799         gomp_loop_ull_ordered_dynamic_start,
8800         gomp_loop_ull_ordered_guided_start,
8801         gomp_loop_ull_doacross_static_start,
8802         gomp_loop_ull_doacross_dynamic_start,
8803         gomp_loop_ull_doacross_guided_start): Adjust gomp_work_share_start
8804         and gomp_doacross_ull_init callers.
8805         (gomp_adjust_sched, GOMP_loop_ull_start, GOMP_loop_ull_ordered_start,
8806         GOMP_loop_ull_doacross_start): New functions.
8807         (GOMP_loop_ull_runtime_start,
8808         GOMP_loop_ull_ordered_runtime_start,
8809         GOMP_loop_ull_doacross_runtime_start): Mask off GFS_MONOTONIC bit.
8810         (GOMP_loop_ull_maybe_nonmonotonic_runtime_next,
8811         GOMP_loop_ull_maybe_nonmonotonic_runtime_start,
8812         GOMP_loop_ull_nonmonotonic_runtime_next,
8813         GOMP_loop_ull_nonmonotonic_runtime_start): Likewise.
8814         * Makefile.am (libgomp_la_SOURCES): Add teams.c and affinity-fmt.c.
8815         * omp.h.in (enum omp_sched_t): Add omp_sched_monotonic.
8816         (omp_pause_resource_t, omp_depend_t): New typedefs.
8817         (enum omp_lock_hint_t): Renamed to ...
8818         (enum omp_sync_hint_t): ... this.  Define omp_sync_hint_*
8819         enumerators using numbers and omp_lock_hint_* as their aliases.
8820         (omp_lock_hint_t): New typedef.  Rename to ...
8821         (omp_sync_hint_t): ... this.
8822         (omp_init_lock_with_hint, omp_init_nest_lock_with_hint): Use
8823         omp_sync_hint_t instead of omp_lock_hint_t.
8824         (omp_pause_resource, omp_pause_resource_all, omp_set_affinity_format,
8825         omp_get_affinity_format, omp_display_affinity, omp_capture_affinity):
8826         Declare.
8827         (omp_target_is_present, omp_target_disassociate_ptr):
8828         Change first argument from void * to const void *.
8829         (omp_target_memcpy, omp_target_memcpy_rect): Change second argument
8830         from void * to const void *.
8831         (omp_target_associate_ptr): Change first and second arguments from
8832         void * to const void *.
8833         * omp_lib.f90.in (omp_pause_resource_kind, omp_pause_soft,
8834         omp_pause_hard): New parameters.
8835         (omp_pause_resource, omp_pause_resource_all, omp_set_affinity_format,
8836         omp_get_affinity_format, omp_display_affinity, omp_capture_affinity):
8837         New interfaces.
8838         * omp_lib.h.in (omp_pause_resource_kind, omp_pause_soft,
8839         omp_pause_hard): New parameters.
8840         (omp_pause_resource, omp_pause_resource_all, omp_set_affinity_format,
8841         omp_get_affinity_format, omp_display_affinity, omp_capture_affinity):
8842         New externals.
8843         * ordered.c (gomp_doacross_init, gomp_doacross_ull_init): Add
8844         EXTRA argument.  If not needed to prepare array, if extra is 0,
8845         clear ws->doacross, otherwise allocate just doacross structure and
8846         extra payload.  If array is needed, allocate also extra payload.
8847         (GOMP_doacross_post, GOMP_doacross_wait, GOMP_doacross_ull_post,
8848         GOMP_doacross_ull_wait): Handle doacross->array == NULL like
8849         doacross == NULL.
8850         * parallel.c (GOMP_parallel_start): Pass NULL as taskgroup to
8851         gomp_team_start.
8852         (GOMP_parallel): Likewise.  Formatting fix.
8853         (GOMP_parallel_reductions): New function.
8854         (GOMP_cancellation_point): If taskgroup has workshare
8855         flag set, check cancelled of prev taskgroup if any.
8856         (GOMP_cancel): If taskgroup has workshare flag set, set cancelled
8857         on prev taskgroup if any.
8858         * sections.c: Include string.h.
8859         (GOMP_taskgroup_reduction_register): Add ialias_redirect.
8860         (GOMP_sections_start): Adjust gomp_work_share_start caller.
8861         (GOMP_sections2_start): New function.
8862         (GOMP_parallel_sections_start, GOMP_parallel_sections):
8863         Pass NULL as taskgroup to gomp_team_start.
8864         * single.c (GOMP_single_start, GOMP_single_copy_start): Adjust
8865         gomp_work_share_start callers.
8866         * target.c (GOMP_target_update_ext, GOMP_target_enter_exit_data):
8867         If taskgroup has workshare flag set, check cancelled on prev
8868         taskgroup if any.  Guard all cancellation tests with
8869         gomp_cancel_var test.
8870         (omp_target_is_present, omp_target_disassociate_ptr):
8871         Change ptr argument from void * to const void *.
8872         (omp_target_memcpy): Change src argument from void * to const void *.
8873         (omp_target_memcpy_rect): Likewise.
8874         (omp_target_memcpy_rect_worker): Likewise.  Use const char * casts
8875         instead of char * where needed.
8876         (omp_target_associate_ptr): Change host_ptr and device_ptr arguments
8877         from void * to const void *.
8878         (omp_pause_resource, omp_pause_resource_all): New functions.
8879         * task.c (gomp_task_handle_depend): Handle new depend array format
8880         in addition to the old.  Handle mutexinoutset kinds the same as
8881         inout for now, handle unspecified kinds.
8882         (gomp_create_target_task): If taskgroup has workshare flag set, check
8883         cancelled on prev taskgroup if any.  Guard all cancellation tests with
8884         gomp_cancel_var test.  Handle new depend array format count in
8885         addition to the old.
8886         (GOMP_task): Likewise.  Adjust function comment.
8887         (gomp_task_run_pre): If taskgroup has workshare flag set, check
8888         cancelled on prev taskgroup if any.  Guard all cancellation tests with
8889         gomp_cancel_var test.
8890         (GOMP_taskwait_depend): New function.
8891         (gomp_task_maybe_wait_for_dependencies): Handle new depend array
8892         format in addition to the old.  Handle mutexinoutset kinds the same as
8893         inout for now, handle unspecified kinds.  Fix a function comment typo.
8894         (gomp_taskgroup_init): New function.
8895         (GOMP_taskgroup_start): Use it.
8896         (gomp_reduction_register, gomp_create_artificial_team,
8897         GOMP_taskgroup_reduction_register,
8898         GOMP_taskgroup_reduction_unregister, GOMP_task_reduction_remap,
8899         gomp_parallel_reduction_register,
8900         gomp_workshare_task_reduction_register,
8901         gomp_workshare_taskgroup_start,
8902         GOMP_workshare_task_reduction_unregister): New functions.
8903         * taskloop.c (GOMP_taskloop): If taskgroup has workshare flag set,
8904         check cancelled on prev taskgroup if any.  Guard all cancellation
8905         tests with gomp_cancel_var test.  Handle GOMP_TASK_FLAG_REDUCTION flag
8906         by calling GOMP_taskgroup_reduction_register.
8907         * team.c (gomp_thread_attr): Remove comment.
8908         (struct gomp_thread_start_data): Add handle field.
8909         (gomp_thread_start): Call pthread_detach.
8910         (gomp_new_team): Adjust gomp_init_work_share caller.
8911         (gomp_free_pool_helper): Call pthread_detach.
8912         (gomp_team_start): Add taskgroup argument, initialize implicit
8913         tasks' taskgroup field to that.  Don't call
8914         pthread_attr_setdetachstate.  Handle OMP_DISPLAY_AFFINITY env var.
8915         (gomp_team_end): Determine nesting by thr->ts.level != 0
8916         rather than thr->ts.team != NULL.
8917         (gomp_pause_pool_helper, gomp_pause_host): New functions.
8918         * work.c (alloc_work_share): Use gomp_aligned_alloc instead of
8919         gomp_malloc if GOMP_HAVE_EFFICIENT_ALIGNED_ALLOC is defined.
8920         (gomp_init_work_share): Change ORDERED argument from bool to size_t,
8921         if more than 1 allocate also extra payload at the end of array.  Never
8922         keep ordered_team_ids NULL, set it to inline_ordered_team_ids instead.
8923         (gomp_work_share_start): Change ORDERED argument from bool to size_t,
8924         return true instead of ws.
8925         * Makefile.in: Regenerated.
8926         * configure: Regenerated.
8927         * config.h.in: Regenerated.
8928         * testsuite/libgomp.c/cancel-for-2.c (foo): Use cancel modifier
8929         in some cases.
8930         * testsuite/libgomp.c-c++-common/cancel-parallel-1.c: New test.
8931         * testsuite/libgomp.c-c++-common/cancel-taskgroup-3.c: New test.
8932         * testsuite/libgomp.c-c++-common/depend-iterator-1.c: New test.
8933         * testsuite/libgomp.c-c++-common/depend-iterator-2.c: New test.
8934         * testsuite/libgomp.c-c++-common/depend-mutexinout-1.c: New test.
8935         * testsuite/libgomp.c-c++-common/depend-mutexinout-2.c: New test.
8936         * testsuite/libgomp.c-c++-common/depobj-1.c: New test.
8937         * testsuite/libgomp.c-c++-common/display-affinity-1.c: New test.
8938         * testsuite/libgomp.c-c++-common/for-10.c: New test.
8939         * testsuite/libgomp.c-c++-common/for-11.c: New test.
8940         * testsuite/libgomp.c-c++-common/for-12.c: New test.
8941         * testsuite/libgomp.c-c++-common/for-13.c: New test.
8942         * testsuite/libgomp.c-c++-common/for-14.c: New test.
8943         * testsuite/libgomp.c-c++-common/for-15.c: New test.
8944         * testsuite/libgomp.c-c++-common/for-2.h: If CONDNE macro is defined,
8945         define a different N(test), don't define N(f0) to N(f14), but instead
8946         define N(f20) to N(f34) using != comparisons.
8947         * testsuite/libgomp.c-c++-common/for-7.c: New test.
8948         * testsuite/libgomp.c-c++-common/for-8.c: New test.
8949         * testsuite/libgomp.c-c++-common/for-9.c: New test.
8950         * testsuite/libgomp.c-c++-common/master-combined-1.c: New test.
8951         * testsuite/libgomp.c-c++-common/pause-1.c: New test.
8952         * testsuite/libgomp.c-c++-common/pause-2.c: New test.
8953         * testsuite/libgomp.c-c++-common/pr66199-10.c: New test.
8954         * testsuite/libgomp.c-c++-common/pr66199-11.c: New test.
8955         * testsuite/libgomp.c-c++-common/pr66199-12.c: New test.
8956         * testsuite/libgomp.c-c++-common/pr66199-13.c: New test.
8957         * testsuite/libgomp.c-c++-common/pr66199-14.c: New test.
8958         * testsuite/libgomp.c-c++-common/simd-1.c: New test.
8959         * testsuite/libgomp.c-c++-common/taskloop-reduction-1.c: New test.
8960         * testsuite/libgomp.c-c++-common/taskloop-reduction-2.c: New test.
8961         * testsuite/libgomp.c-c++-common/taskloop-reduction-3.c: New test.
8962         * testsuite/libgomp.c-c++-common/taskloop-reduction-4.c: New test.
8963         * testsuite/libgomp.c-c++-common/task-reduction-11.c: New test.
8964         * testsuite/libgomp.c-c++-common/task-reduction-12.c: New test.
8965         * testsuite/libgomp.c-c++-common/task-reduction-1.c: New test.
8966         * testsuite/libgomp.c-c++-common/task-reduction-2.c: New test.
8967         * testsuite/libgomp.c-c++-common/task-reduction-3.c: New test.
8968         * testsuite/libgomp.c-c++-common/task-reduction-4.c: New test.
8969         * testsuite/libgomp.c-c++-common/task-reduction-5.c: New test.
8970         * testsuite/libgomp.c-c++-common/task-reduction-6.c: New test.
8971         * testsuite/libgomp.c-c++-common/task-reduction-7.c: New test.
8972         * testsuite/libgomp.c-c++-common/task-reduction-8.c: New test.
8973         * testsuite/libgomp.c-c++-common/task-reduction-9.c: New test.
8974         * testsuite/libgomp.c-c++-common/taskwait-depend-1.c: New test.
8975         * testsuite/libgomp.c++/depend-1.C: New test.
8976         * testsuite/libgomp.c++/depend-iterator-1.C: New test.
8977         * testsuite/libgomp.c++/depobj-1.C: New test.
8978         * testsuite/libgomp.c++/for-16.C: New test.
8979         * testsuite/libgomp.c++/for-21.C: New test.
8980         * testsuite/libgomp.c++/for-22.C: New test.
8981         * testsuite/libgomp.c++/for-23.C: New test.
8982         * testsuite/libgomp.c++/for-24.C: New test.
8983         * testsuite/libgomp.c++/for-25.C: New test.
8984         * testsuite/libgomp.c++/for-26.C: New test.
8985         * testsuite/libgomp.c++/taskloop-reduction-1.C: New test.
8986         * testsuite/libgomp.c++/taskloop-reduction-2.C: New test.
8987         * testsuite/libgomp.c++/taskloop-reduction-3.C: New test.
8988         * testsuite/libgomp.c++/taskloop-reduction-4.C: New test.
8989         * testsuite/libgomp.c++/task-reduction-10.C: New test.
8990         * testsuite/libgomp.c++/task-reduction-11.C: New test.
8991         * testsuite/libgomp.c++/task-reduction-12.C: New test.
8992         * testsuite/libgomp.c++/task-reduction-13.C: New test.
8993         * testsuite/libgomp.c++/task-reduction-14.C: New test.
8994         * testsuite/libgomp.c++/task-reduction-15.C: New test.
8995         * testsuite/libgomp.c++/task-reduction-16.C: New test.
8996         * testsuite/libgomp.c++/task-reduction-17.C: New test.
8997         * testsuite/libgomp.c++/task-reduction-18.C: New test.
8998         * testsuite/libgomp.c++/task-reduction-19.C: New test.
8999         * testsuite/libgomp.c/task-reduction-1.c: New test.
9000         * testsuite/libgomp.c++/task-reduction-1.C: New test.
9001         * testsuite/libgomp.c/task-reduction-2.c: New test.
9002         * testsuite/libgomp.c++/task-reduction-2.C: New test.
9003         * testsuite/libgomp.c++/task-reduction-3.C: New test.
9004         * testsuite/libgomp.c++/task-reduction-4.C: New test.
9005         * testsuite/libgomp.c++/task-reduction-5.C: New test.
9006         * testsuite/libgomp.c++/task-reduction-6.C: New test.
9007         * testsuite/libgomp.c++/task-reduction-7.C: New test.
9008         * testsuite/libgomp.c++/task-reduction-8.C: New test.
9009         * testsuite/libgomp.c++/task-reduction-9.C: New test.
9010         * testsuite/libgomp.c/teams-1.c: New test.
9011         * testsuite/libgomp.c/teams-2.c: New test.
9012         * testsuite/libgomp.c/thread-limit-4.c: New test.
9013         * testsuite/libgomp.c/thread-limit-5.c: New test.
9014         * testsuite/libgomp.fortran/display-affinity-1.f90: New test.
9016 2018-11-06  Chung-Lin Tang <cltang@codesourcery.com>
9018         * oacc-mem.c (memcpy_tofrom_device): New function, combined from
9019         acc_memcpy_to/from_device functions, now with async parameter.
9020         (acc_memcpy_to_device): Modify to use memcpy_tofrom_device.
9021         (acc_memcpy_from_device): Likewise.
9022         (acc_memcpy_to_device_async): New API function.
9023         (acc_memcpy_from_device_async): Likewise.
9024         (present_create_copy): Add async parameter and async setting/unsetting.
9025         (acc_create): Adjust present_create_copy call.
9026         (acc_copyin): Likewise.
9027         (acc_present_or_create): Likewise.
9028         (acc_present_or_copyin): Likewise.
9029         (acc_create_async): New API function.
9030         (acc_copyin_async): New API function.
9031         (delete_copyout): Add async parameter and async setting/unsetting.
9032         (acc_delete): Adjust delete_copyout call.
9033         (acc_copyout): Likewise.
9034         (acc_delete_async): New API function.
9035         (acc_copyout_async): Likewise.
9036         (update_dev_host): Add async parameter and async setting/unsetting.
9037         (acc_update_device): Adjust update_dev_host call.
9038         (acc_update_self): Likewise.
9039         (acc_update_device_async): New API function.
9040         (acc_update_self_async): Likewise.
9041         * openacc.h (acc_copyin_async): Declare new API function.
9042         (acc_create_async): Likewise.
9043         (acc_copyout_async): Likewise.
9044         (acc_delete_async): Likewise.
9045         (acc_update_device_async): Likewise.
9046         (acc_update_self_async): Likewise.
9047         (acc_memcpy_to_device_async): Likewise.
9048         (acc_memcpy_from_device_async): Likewise.
9049         * openacc_lib.h (acc_copyin_async_32_h): New subroutine.
9050         (acc_copyin_async_64_h): New subroutine.
9051         (acc_copyin_async_array_h): New subroutine.
9052         (acc_create_async_32_h): New subroutine.
9053         (acc_create_async_64_h): New subroutine.
9054         (acc_create_async_array_h): New subroutine.
9055         (acc_copyout_async_32_h): New subroutine.
9056         (acc_copyout_async_64_h): New subroutine.
9057         (acc_copyout_async_array_h): New subroutine.
9058         (acc_delete_async_32_h): New subroutine.
9059         (acc_delete_async_64_h): New subroutine.
9060         (acc_delete_async_array_h): New subroutine.
9061         (acc_update_device_async_32_h): New subroutine.
9062         (acc_update_device_async_64_h): New subroutine.
9063         (acc_update_device_async_array_h): New subroutine.
9064         (acc_update_self_async_32_h): New subroutine.
9065         (acc_update_self_async_64_h): New subroutine.
9066         (acc_update_self_async_array_h): New subroutine.
9067         * openacc.f90 (acc_copyin_async_32_h): New subroutine.
9068         (acc_copyin_async_64_h): New subroutine.
9069         (acc_copyin_async_array_h): New subroutine.
9070         (acc_create_async_32_h): New subroutine.
9071         (acc_create_async_64_h): New subroutine.
9072         (acc_create_async_array_h): New subroutine.
9073         (acc_copyout_async_32_h): New subroutine.
9074         (acc_copyout_async_64_h): New subroutine.
9075         (acc_copyout_async_array_h): New subroutine.
9076         (acc_delete_async_32_h): New subroutine.
9077         (acc_delete_async_64_h): New subroutine.
9078         (acc_delete_async_array_h): New subroutine.
9079         (acc_update_device_async_32_h): New subroutine.
9080         (acc_update_device_async_64_h): New subroutine.
9081         (acc_update_device_async_array_h): New subroutine.
9082         (acc_update_self_async_32_h): New subroutine.
9083         (acc_update_self_async_64_h): New subroutine.
9084         (acc_update_self_async_array_h): New subroutine.
9085         * libgomp.map (OACC_2.5): Add acc_copyin_async*, acc_copyout_async*,
9086         acc_copyout_finalize_async*, acc_create_async*, acc_delete_async*,
9087         acc_delete_finalize_async*, acc_memcpy_from_device_async*,
9088         acc_memcpy_to_device_async*, acc_update_device_async*, and
9089         acc_update_self_async* entries.
9090         * testsuite/libgomp.oacc-c-c++-common/lib-94.c: New test.
9091         * testsuite/libgomp.oacc-c-c++-common/lib-95.c: New test.
9092         * testsuite/libgomp.oacc-fortran/lib-16.f90: New test.
9094 2018-10-31  Joseph Myers  <joseph@codesourcery.com>
9096         PR bootstrap/82856
9097         * Makefile.am: Include multilib.am
9098         (AUTOMAKE_OPTIONS): Add info-in-builddir.
9099         (CLEANFILES): Remove libgomp.info.
9100         * configure.ac: Remove AC_PREREQ.
9101         * testsuite/Makefile.am (RUNTEST): Remove quotes.
9102         * Makefile.in, aclocal.m4, configure, testsuite/Makefile.in:
9103         Regenerate.
9105 2018-10-29  Joseph Myers  <joseph@codesourcery.com>
9106             Julian Brown  <julian@codesourcery.com>
9108         * testsuite/libgomp.oacc-c++/this.C: New.
9110 2018-09-18  Cesar Philippidis  <cesar@codesourcery.com>
9112         * plugin/plugin-nvptx.c (struct cuda_map): New.
9113         (struct ptx_stream): Replace d, h, h_begin, h_end, h_next, h_prev,
9114         h_tail with (cuda_map *) map.
9115         (cuda_map_create): New function.
9116         (cuda_map_destroy): New function.
9117         (map_init): Update to use a linked list of cuda_map objects.
9118         (map_fini): Likewise.
9119         (map_pop): Likewise.
9120         (map_push): Likewise.  Return CUdeviceptr instead of void.
9121         (init_streams_for_device): Remove stales references to ptx_stream
9122         members.
9123         (select_stream_for_async): Likewise.
9124         (nvptx_exec): Update call to map_init.
9126 2018-09-09  Cesar Philippidis  <cesar@codesourcery.com>
9127             Julian Brown  <julian@codesourcery.com>
9129         PR middle-end/86336
9130         * testsuite/libgomp.oacc-c++/non-scalar-data.C: Remove XFAIL.
9132 2018-08-21  Nicolas Koenig  <koenigni@gcc.gnu.org>
9133         Thomas Koenig <tkoenig@gcc.gnu.org>
9135         PR fortran/25829
9136         * testsuite/libgomp.fortran/async_io_1.f90: New test.
9137         * testsuite/libgomp.fortran/async_io_2.f90: New test.
9138         * testsuite/libgomp.fortran/async_io_3.f90: New test.
9139         * testsuite/libgomp.fortran/async_io_4.f90: New test.
9140         * testsuite/libgomp.fortran/async_io_5.f90: New test.
9141         * testsuite/libgomp.fortran/async_io_6.f90: New test.
9142         * testsuite/libgomp.fortran/async_io_7.f90: New test.
9144 2018-08-13  Cesar Philippidis  <cesar@codesourcery.com>
9145             Tom de Vries  <tdevries@suse.de>
9147         PR target/85590
9148         * plugin/cuda/cuda.h (CUoccupancyB2DSize): New typedef.
9149         (cuOccupancyMaxPotentialBlockSize): Declare.
9150         * plugin/cuda-lib.def (cuOccupancyMaxPotentialBlockSize): New
9151         CUDA_ONE_CALL_MAYBE_NULL.
9152         * plugin/plugin-nvptx.c (CUDA_VERSION < 6050): Define
9153         CUoccupancyB2DSize and declare
9154         cuOccupancyMaxPotentialBlockSize.
9155         (nvptx_exec): Use cuOccupancyMaxPotentialBlockSize to set the
9156         default num_gangs and num_workers when the driver supports it.
9158 2018-08-08  Tom de Vries  <tdevries@suse.de>
9160         * plugin/cuda-lib.def (cuLinkAddData_v2, cuLinkCreate_v2): Declare using
9161         CUDA_ONE_CALL_MAYBE_NULL.
9162         * plugin/plugin-nvptx.c (cuLinkAddData, cuLinkCreate): Undef and declare.
9163         (cuLinkAddData_v2, cuLinkCreate_v2): Declare.
9164         (link_ptx): Fall back to cuLinkAddData/cuLinkCreate if the _v2 versions
9165         are not found.
9167 2018-08-08  Tom de Vries  <tdevries@suse.de>
9169         * plugin/cuda-lib.def (cuGetErrorString): Use CUDA_ONE_CALL_MAYBE_NULL.
9170         * plugin/plugin-nvptx.c (cuda_error): Handle if cuGetErrorString is not
9171         present.
9173 2018-08-08  Tom de Vries  <tdevries@suse.de>
9175         * plugin/plugin-nvptx.c
9176         (CU_DEVICE_ATTRIBUTE_MAX_REGISTERS_PER_MULTIPROCESSOR): Define.
9177         (nvptx_open_device): Use
9178         CU_DEVICE_ATTRIBUTE_MAX_REGISTERS_PER_MULTIPROCESSOR.
9180 2018-08-08  Tom de Vries  <tdevries@suse.de>
9182         * plugin/plugin-nvptx.c (cuda_error): Move declaration of cuGetErrorString ...
9183         (cuGetErrorString): ... here.  Guard with CUDA_VERSION < 6000.
9185 2018-08-07  Tom de Vries  <tdevries@suse.de>
9187         * plugin/plugin-nvptx.c (DO_PRAGMA): Define.
9188         (struct cuda_lib_s): Add def/undef of CUDA_ONE_CALL_MAYBE_NULL.
9189         (init_cuda_lib): Add new param to CUDA_ONE_CALL_1.  Add arg to
9190         corresponding call in CUDA_ONE_CALL.  Add def/undef of
9191         CUDA_ONE_CALL_MAYBE_NULL.
9192         (CUDA_CALL_EXISTS): Define.
9194 2018-08-07  Tom de Vries  <tdevries@suse.de>
9196         * plugin/plugin-nvptx.c (struct cuda_lib_s, init_cuda_lib): Put
9197         CUDA_ONE_CALL defines right before the cuda-lib.def include, and the
9198         corresponding undefs right after.
9200 2018-08-04  Tom de Vries  <tdevries@suse.de>
9202         * plugin/configfrag.ac: For --without-cuda-driver, set
9203         CUDA_DRIVER_INCLUDE and CUDA_DRIVER_LIB to no.  Handle
9204         CUDA_DRIVER_INCLUDE == no and CUDA_DRIVER_LIB == no.
9205         * configure: Regenerate.
9207 2018-08-02  Tom de Vries  <tdevries@suse.de>
9209         PR target/86660
9210         * testsuite/libgomp.oacc-c++/routine-1-auto.C: Remove -fno-exceptions.
9211         * testsuite/libgomp.oacc-c++/routine-1-template-auto.C: Same.
9212         * testsuite/libgomp.oacc-c++/routine-1-template-trailing-return-type.C:
9213         Same.
9214         * testsuite/libgomp.oacc-c++/routine-1-template.C: Same.
9215         * testsuite/libgomp.oacc-c++/routine-1-trailing-return-type.C: Same.
9216         * testsuite/libgomp.oacc-c-c++-common/routine-1.c: Same.
9218 2018-08-01  Cesar Philippidis  <cesar@codesourcery.com>
9219             Thomas Schwinge <thomas@codesourcery.com>
9221         * config/nvptx/oacc-parallel.c: Truncate.
9223 2018-08-01  Cesar Philippidis  <cesar@codesourcery.com>
9224             James Norris <jnorris@codesourcery.com>
9226         * plugin/plugin-nvptx.c (struct map): Removed.
9227         (map_init, map_pop): Remove use of struct map.
9228         (map_push): Likewise and change argument list.
9229         * testsuite/libgomp.oacc-c-c++-common/mapping-1.c: New
9231 2018-08-01  Tom de Vries  <tdevries@suse.de>
9233         * plugin/cuda-lib.def: New file.  Factor out of ...
9234         * plugin/plugin-nvptx.c (CUDA_CALLS): ... here.
9235         (struct cuda_lib_s, init_cuda_lib): Include cuda-lib.def instead of
9236         using CUDA_CALLS.
9238 2018-07-31  Andre Vieira  <andre.simoesdiasvieira@arm.com>
9240         Revert 'AsyncI/O patch committed'.
9241         2018-07-25  Nicolas Koenig  <koenigni@gcc.gnu.org>
9242                 Thomas Koenig <tkoenig@gcc.gnu.org>
9244         PR fortran/25829
9245         * testsuite/libgomp.fortran/async_io_1.f90: New test.
9246         * testsuite/libgomp.fortran/async_io_2.f90: New test.
9247         * testsuite/libgomp.fortran/async_io_3.f90: New test.
9248         * testsuite/libgomp.fortran/async_io_4.f90: New test.
9249         * testsuite/libgomp.fortran/async_io_5.f90: New test.
9250         * testsuite/libgomp.fortran/async_io_6.f90: New test.
9251         * testsuite/libgomp.fortran/async_io_7.f90: New test.
9253 2018-07-30  Tom de Vries  <tdevries@suse.de>
9255         * plugin/plugin-nvptx.c (MIN, MAX): Redefine.
9256         (nvptx_exec): Ensure worker and vector default dims don't exceed
9257         targ_fn->max_threads_per_block.
9259 2018-07-30  Tom de Vries  <tdevries@suse.de>
9261         * plugin/plugin-nvptx.c (struct ptx_device): Add default_dims field.
9262         (nvptx_open_device): Init default_dims for device.
9263         (nvptx_exec): Use default_dims from device.
9265 2018-07-26  Jakub Jelinek  <jakub@redhat.com>
9267         PR testsuite/86660
9268         * testsuite/libgomp.c++/for-15.C (results): Include it in
9269         omp declare target region.
9270         (main): Use map (always, tofrom: results) instead of
9271         map (tofrom: results).
9273         PR middle-end/86660
9274         * testsuite/libgomp.c/pr86660.c: New test.
9276 2018-07-26  Cesar Philippidis  <cesar@codesourcery.com>
9277             Tom de Vries  <tdevries@suse.de>
9279         * plugin/plugin-nvptx.c (nvptx_exec): Error if the hardware doesn't have
9280         sufficient resources to launch a kernel, and give a hint on how to fix
9281         it.
9283 2018-07-26  Cesar Philippidis  <cesar@codesourcery.com>
9284             Tom de Vries  <tdevries@suse.de>
9286         * plugin/plugin-nvptx.c (struct ptx_device): Add warp_size,
9287         max_threads_per_block and max_threads_per_multiprocessor fields.
9288         (nvptx_open_device): Initialize new fields.
9289         (nvptx_exec): Use num_sms, and new fields.
9291 2018-07-26  Tom de Vries  <tdevries@suse.de>
9293         * testsuite/libgomp.oacc-fortran/lib-12.f90: Move acc_async_test calls
9294         to correct locations.  Remove xfail.
9296 2018-07-26  Tom de Vries  <tdevries@suse.de>
9298         * testsuite/libgomp.oacc-fortran/lib-13.f90: Replace acc_wait_all with
9299         acc_wait.  Move acc_async_test calls to correct locations.  Remove
9300         xfail.
9302 2018-07-25  Nicolas Koenig  <koenigni@gcc.gnu.org>
9303         Thomas Koenig <tkoenig@gcc.gnu.org>
9305         PR fortran/25829
9306         * testsuite/libgomp.fortran/async_io_1.f90: New test.
9307         * testsuite/libgomp.fortran/async_io_2.f90: New test.
9308         * testsuite/libgomp.fortran/async_io_3.f90: New test.
9309         * testsuite/libgomp.fortran/async_io_4.f90: New test.
9310         * testsuite/libgomp.fortran/async_io_5.f90: New test.
9311         * testsuite/libgomp.fortran/async_io_6.f90: New test.
9312         * testsuite/libgomp.fortran/async_io_7.f90: New test.
9314 2018-07-17  Jakub Jelinek  <jakub@redhat.com>
9316         PR middle-end/86542
9317         * testsuite/libgomp.c++/pr86542.C: New test.
9319         PR middle-end/86539
9320         * testsuite/libgomp.c++/pr86539.C: New test.
9322 2018-07-11  Jakub Jelinek  <jakub@redhat.com>
9324         PR c++/86443
9325         * testsuite/libgomp.c++/for-15.C (a): Remove unused variable.
9326         (results): Make sure the variable is not inside declare target region.
9327         (qux): Remove unused function.
9329 2018-07-10  Jakub Jelinek  <jakub@redhat.com>
9331         PR c++/86443
9332         * testsuite/libgomp.c++/for-15.C: New test.
9334 2018-06-26  Jakub Jelinek  <jakub@redhat.com>
9336         PR c++/86291
9337         * testsuite/libgomp.c++/pr86291.C: New test.
9339 2018-06-24  Gerald Pfeifer  <gerald@pfeifer.com>
9341         * libgomp.texi (Top): Move www.openmp.org to https.
9342         (Enabling OpenMP): Ditto.
9343         (omp_get_active_level): Ditto.
9344         (omp_get_ancestor_thread_num): Ditto.
9345         (omp_get_cancellation): Ditto.
9346         (omp_get_default_device): Ditto.
9347         (omp_get_dynamic): Ditto.
9348         (omp_get_level): Ditto.
9349         (omp_get_max_active_levels): Ditto.
9350         (omp_get_max_task_priority): Ditto.
9351         (omp_get_max_threads): Ditto.
9352         (omp_get_nested): Ditto.
9353         (omp_get_num_devices): Ditto.
9354         (omp_get_num_procs): Ditto.
9355         (omp_get_num_teams): Ditto.
9356         (omp_get_num_threads): Ditto.
9357         (omp_get_proc_bind): Ditto.
9358         (omp_get_schedule): Ditto.
9359         (omp_get_team_num): Ditto.
9360         (omp_get_team_size): Ditto.
9361         (omp_get_thread_limit): Ditto.
9362         (omp_get_thread_num): Ditto.
9363         (omp_in_parallel): Ditto.
9364         (omp_in_final): Ditto.
9365         (omp_is_initial_device): Ditto.
9366         (omp_set_default_device): Ditto.
9367         (omp_set_dynamic): Ditto.
9368         (omp_set_max_active_levels): Ditto.
9369         (omp_set_nested): Ditto.
9370         (omp_set_num_threads): Ditto.
9371         (omp_set_schedule): Ditto.
9372         (omp_init_lock): Ditto.
9373         (omp_set_lock): Ditto.
9374         (omp_test_lock): Ditto.
9375         (omp_unset_lock): Ditto.
9376         (omp_destroy_lock): Ditto.
9377         (omp_init_nest_lock): Ditto.
9378         (omp_set_nest_lock): Ditto.
9379         (omp_test_nest_lock): Ditto.
9380         (omp_unset_nest_lock): Ditto.
9381         (omp_destroy_nest_lock): Ditto.
9382         (omp_get_wtick): Ditto.
9383         (omp_get_wtime): Ditto.
9384         (OMP_CANCELLATION): Ditto.
9385         (OMP_DISPLAY_ENV): Ditto.
9386         (OMP_DEFAULT_DEVICE): Ditto.
9387         (OMP_DYNAMIC): Ditto.
9388         (OMP_MAX_ACTIVE_LEVELS): Ditto.
9389         (OMP_MAX_TASK_PRIORITY): Ditto.
9390         (OMP_NESTED): Ditto.
9391         (OMP_NUM_THREADS): Ditto.
9392         (OMP_PROC_BIND): Ditto.
9393         (OMP_PLACES): Ditto.
9394         (OMP_STACKSIZE): Ditto.
9395         (OMP_SCHEDULE): Ditto.
9396         (OMP_THREAD_LIMIT): Ditto.
9397         (OMP_WAIT_POLICY): Ditto.
9399 2018-06-22  Cesar Philippidis  <cesar@codesourcery.com>
9400             James Norris  <jnorris@codesourcery.com>
9401             Julian Brown  <julian@codesourcery.com>
9402             Thomas Schwinge  <thomas@codesourcery.com>
9403             Tom de Vries  <tom@codesourcery.com>
9405         * testsuite/libgomp.oacc-c-c++-common/loop-red-wv-1.c: Don't force "-O2".
9406         * testsuite/libgomp.oacc-c-c++-common/data-2.c: Update.
9407         * testsuite/libgomp.oacc-c-c++-common/host_data-1.c: Likewise.
9408         * testsuite/libgomp.oacc-c-c++-common/mode-transitions.c: Likewise.
9409         * testsuite/libgomp.oacc-fortran/data-1.f90: Likewise.
9410         * testsuite/libgomp.oacc-fortran/data-2.f90: Likewise.
9411         * testsuite/libgomp.oacc-c++/non-scalar-data.C: New file.
9412         * testsuite/libgomp.oacc-c-c++-common/declare-3.c: Likewise.
9413         * testsuite/libgomp.oacc-c-c++-common/enter-data.c: Likewise.
9414         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-2.c:
9415         Likewise.
9416         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-enter-exit-2.c:
9417         Likewise.
9418         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-enter-exit.c:
9419         Likewise.
9420         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-update.c:
9421         Likewise.
9422         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data.c:
9423         Likewise.
9424         * testsuite/libgomp.oacc-c-c++-common/kernels-parallel-loop-data-enter-exit.c:
9425         Likewise.
9426         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-1.c:
9427         Likewise.
9428         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-2.c:
9429         Likewise.
9430         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-3.c:
9431         Likewise.
9432         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-4.c:
9433         Likewise.
9434         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-5.c:
9435         Likewise.
9436         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-1.c:
9437         Likewise.
9438         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-2.c:
9439         Likewise.
9440         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-3.c:
9441         Likewise.
9442         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-4.c:
9443         Likewise.
9444         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-5.c:
9445         Likewise.
9446         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-6.c:
9447         Likewise.
9448         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-vector-1.c:
9449         Likewise.
9450         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-vector-2.c:
9451         Likewise.
9452         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-1.c:
9453         Likewise.
9454         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-2.c:
9455         Likewise.
9456         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-3.c:
9457         Likewise.
9458         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-4.c:
9459         Likewise.
9460         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-5.c:
9461         Likewise.
9462         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-6.c:
9463         Likewise.
9464         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-7.c:
9465         Likewise.
9466         * testsuite/libgomp.oacc-c-c++-common/kernels-reduction-1.c:
9467         Likewise.
9468         * testsuite/libgomp.oacc-c-c++-common/parallel-loop-1.c: Likewise.
9469         * testsuite/libgomp.oacc-c-c++-common/parallel-loop-1.h: Likewise.
9470         * testsuite/libgomp.oacc-c-c++-common/parallel-loop-2.h: Likewise.
9471         * testsuite/libgomp.oacc-fortran/cublas-fixed.h: Likewise.
9472         * testsuite/libgomp.oacc-fortran/dummy-array.f90: Likewise.
9473         * testsuite/libgomp.oacc-fortran/host_data-2.f90: Likewise.
9474         * testsuite/libgomp.oacc-fortran/host_data-3.f: Likewise.
9475         * testsuite/libgomp.oacc-fortran/host_data-4.f90: Likewise.
9476         * testsuite/libgomp.oacc-fortran/kernels-acc-loop-reduction-2.f90:
9477         Likewise.
9478         * testsuite/libgomp.oacc-fortran/kernels-acc-loop-reduction.f90:
9479         Likewise.
9480         * testsuite/libgomp.oacc-fortran/kernels-collapse-3.f90: Likewise.
9481         * testsuite/libgomp.oacc-fortran/kernels-collapse-4.f90: Likewise.
9482         * testsuite/libgomp.oacc-fortran/kernels-independent.f90:
9483         Likewise.
9484         * testsuite/libgomp.oacc-fortran/kernels-loop-1.f90: Likewise.
9485         * testsuite/libgomp.oacc-fortran/kernels-map-1.f90: Likewise.
9486         * testsuite/libgomp.oacc-fortran/kernels-parallel-loop-data-enter-exit.f95:
9487         Likewise.
9488         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-1.f90:
9489         Likewise.
9490         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-2.f90:
9491         Likewise.
9492         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-3.f90:
9493         Likewise.
9494         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-6.f90:
9495         Likewise.
9496         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-vector-1.f90:
9497         Likewise.
9498         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-vector-2.f90:
9499         Likewise.
9500         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-1.f90:
9501         Likewise.
9502         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-2.f90:
9503         Likewise.
9504         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-3.f90:
9505         Likewise.
9506         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-4.f90:
9507         Likewise.
9508         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-5.f90:
9509         Likewise.
9510         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-6.f90:
9511         Likewise.
9512         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-7.f90:
9513         Likewise.
9514         * testsuite/libgomp.oacc-fortran/kernels-reduction-1.f90:
9515         Likewise.
9516         * testsuite/libgomp.oacc-fortran/lib-12.f90: Likewise.
9517         * testsuite/libgomp.oacc-fortran/lib-13.f90: Likewise.
9518         * testsuite/libgomp.oacc-fortran/lib-14.f90: Likewise.
9519         * testsuite/libgomp.oacc-fortran/lib-15.f90: Likewise.
9520         * testsuite/libgomp.oacc-fortran/parallel-loop-1.f90: Likewise.
9521         * testsuite/libgomp.oacc-fortran/reference-reductions.f90: Likewise.
9522         * testsuite/libgomp.oacc-fortran/vector-routine.f90: Likewise.
9524 2018-06-20  Chung-Lin Tang <cltang@codesourcery.com>
9525             Thomas Schwinge <thomas@codesourcery.com>
9526             Cesar Philippidis  <cesar@codesourcery.com>
9528         * libgomp.h (struct splay_tree_key_s): Add dynamic_refcount member.
9529         (gomp_acc_remove_pointer): Update declaration.
9530         (gomp_acc_declare_allocate): Declare.
9531         (gomp_remove_var): Declare.
9532         * libgomp.map (OACC_2.5): Define.
9533         * oacc-mem.c (acc_map_data): Update refcount.
9534         (acc_unmap_data): Likewise.
9535         (present_create_copy): Likewise.
9536         (acc_create): Add FLAG_PRESENT when calling present_create_copy.
9537         (acc_copyin): Likewise.
9538         (FLAG_FINALIZE): Define.
9539         (delete_copyout): Update dynamic refcounts, add support for FINALIZE.
9540         (acc_delete_finalize): New function.
9541         (acc_delete_finalize_async): New function.
9542         (acc_copyout_finalize): New function.
9543         (acc_copyout_finalize_async): New function.
9544         (gomp_acc_insert_pointer): Update refcounts.
9545         (gomp_acc_remove_pointer): Return if data is not present on the
9546         accelerator.
9547         * oacc-parallel.c (find_pset): Rename to find_pointer.
9548         (find_pointer): Add support for GOMP_MAP_POINTER.
9549         (handle_ftn_pointers): New function.
9550         (GOACC_parallel_keyed): Update refcounts of variables.
9551         (GOACC_enter_exit_data): Add support for finalized data mappings.
9552         Add support for GOMP_MAP_{TO,ALLOC,RELESE,FROM}. Update handling
9553         of fortran arrays.
9554         (GOACC_update): Add support for GOMP_MAP_{ALWAYS_POINTER,TO,FROM}.
9555         (GOACC_declare): Add support for GOMP_MAP_RELEASE, remove support
9556         for GOMP_MAP_FORCE_FROM.
9557         * openacc.f90 (module openacc_internal): Add
9558         acc_copyout_finalize_{32_h,64_h,array_h,_l}, and
9559         acc_delete_finalize_{32_h,64_h,array_h,_l}. Add interfaces for
9560         acc_copyout_finalize and acc_delete_finalize.
9561         (acc_copyout_finalize_32_h): New subroutine.
9562         (acc_copyout_finalize_64_h): New subroutine.
9563         (acc_copyout_finalize_array_h): New subroutine.
9564         (acc_delete_finalize_32_h): New subroutine.
9565         (acc_delete_finalize_64_h): New subroutine.
9566         (acc_delete_finalize_array_h): New subroutine.
9567         * openacc.h (acc_copyout_finalize): Declare.
9568         (acc_copyout_finalize_async): Declare.
9569         (acc_delete_finalize): Declare.
9570         (acc_delete_finalize_async): Declare.
9571         * openacc_lib.h (acc_copyout_finalize): New interface.
9572         (acc_delete_finalize): New interface.
9573         * target.c (gomp_map_vars): Update dynamic_refcount.
9574         (gomp_remove_var): New function.
9575         (gomp_unmap_vars): Use it.
9576         (gomp_unload_image_from_device): Likewise.
9577         * testsuite/libgomp.oacc-c-c++-common/data-already-1.c: Update test
9578         case to utilize OpenACC 2.5 data clause semantics.
9579         * testsuite/libgomp.oacc-c-c++-common/data-already-2.c: Likewise.
9580         * testsuite/libgomp.oacc-c-c++-common/data-already-3.c: Likewise.
9581         * testsuite/libgomp.oacc-c-c++-common/data-already-4.c: Likewise.
9582         * testsuite/libgomp.oacc-c-c++-common/data-already-5.c: Likewise.
9583         * testsuite/libgomp.oacc-c-c++-common/data-already-6.c: Likewise.
9584         * testsuite/libgomp.oacc-c-c++-common/data-already-7.c: Likewise.
9585         * testsuite/libgomp.oacc-c-c++-common/data-already-8.c: Likewise.
9586         * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
9587         * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
9588         * testsuite/libgomp.oacc-c-c++-common/lib-32.c: Likewise.
9589         * testsuite/libgomp.oacc-c-c++-common/lib-83.c: Likewise.
9590         * testsuite/libgomp.oacc-fortran/data-5.f90: New test.
9591         * testsuite/libgomp.oacc-fortran/data-already-1.f: Update test case to
9592         utilize OpenACC 2.5 data clause semantics.
9593         * testsuite/libgomp.oacc-fortran/data-already-2.f: Likewise.
9594         * testsuite/libgomp.oacc-fortran/data-already-3.f: Likewise.
9595         * testsuite/libgomp.oacc-fortran/data-already-4.f: Likewise.
9596         * testsuite/libgomp.oacc-fortran/data-already-5.f: Likewise.
9597         * testsuite/libgomp.oacc-fortran/data-already-6.f: Likewise.
9598         * testsuite/libgomp.oacc-fortran/data-already-7.f: Likewise.
9599         * testsuite/libgomp.oacc-fortran/data-already-8.f: Likewise.
9600         * testsuite/libgomp.oacc-fortran/lib-32-1.f: Likewise.
9601         * testsuite/libgomp.oacc-fortran/lib-32-2.f: Likewise.
9603 2018-05-21  Janus Weil  <janus@gcc.gnu.org>
9605         PR fortran/85841
9606         PR testsuite/85865
9607         * testsuite/libgomp.fortran/collapse2.f90: Add option "-std=legacy".
9608         * testsuite/libgomp.fortran/omp_atomic2.f90: Ditto.
9609         * testsuite/libgomp.fortran/omp_parse1.f90: Ditto.
9610         * testsuite/libgomp.fortran/omp_parse3.f90: Ditto.
9611         * testsuite/libgomp.fortran/task2.f90: Ditto.
9612         * testsuite/libgomp.fortran/vla1.f90: Ditto.
9613         * testsuite/libgomp.fortran/vla2.f90: Ditto.
9614         * testsuite/libgomp.fortran/vla3.f90: Ditto.
9615         * testsuite/libgomp.fortran/vla4.f90: Ditto.
9616         * testsuite/libgomp.fortran/vla5.f90: Ditto.
9617         * testsuite/libgomp.fortran/vla6.f90: Ditto.
9618         * testsuite/libgomp.fortran/vla8.f90: Ditto.
9619         * testsuite/libgomp.oacc-fortran/collapse-2.f90: Ditto.
9620         * testsuite/libgomp.oacc-fortran/nested-function-1.f90: Ditto.
9622 2018-05-18  Cesar Philippidis  <cesar@codesourcery.com>
9624         PR c++/85782
9625         * testsuite/libgomp.oacc-c-c++-common/pr85782.c: New test.
9627 2018-05-09  Tom de Vries  <tom@codesourcery.com>
9629         PR libgomp/82901
9630         * oacc-parallel.c (GOACC_declare): Use GOMP_ASYNC_SYNC as async argument
9631         to GOACC_enter_exit_data.
9633 2018-05-09  Tom de Vries  <tom@codesourcery.com>
9635         PR libgomp/83792
9636         * oacc-int.h (async_valid_stream_id_p, async_valid_p)
9637         (async_synchronous_p): New function.
9638         * oacc-async.c (acc_async_test, acc_wait, acc_wait_all_async): Use
9639         async_valid_p.
9640         * oacc-cuda.c (acc_get_cuda_stream, acc_set_cuda_stream): Use
9641         async_valid_stream_id_p.
9642         * oacc-mem.c (gomp_acc_remove_pointer): Use async_synchronous_p.
9643         * oacc-parallel.c (GOACC_parallel_keyed): Same.
9645 2018-05-07  Tom de Vries  <tom@codesourcery.com>
9647         PR testsuite/85677
9648         * testsuite/lib/libgomp.exp (libgomp_init): Move inclusion of top-level
9649         include directory in ALWAYS_CFLAGS out of $blddir != "" condition.
9651 2018-05-03  Tom de Vries  <tom@codesourcery.com>
9653         PR testsuite/85106
9654         * testsuite/lib/libgomp-dg.exp (libgomp-dg-test): Add save-temps to
9655         extra_tool_flags if it contains an -foffload=-fdump-* flag.
9656         * testsuite/lib/libgomp.exp: Include scanoffloadtree.exp.
9657         * testsuite/libgomp.oacc-c/vec.c: Use scan-offload-tree-dump.
9659 2018-05-02  Tom de Vries  <tom@codesourcery.com>
9661         PR libgomp/85411
9662         * plugin/plugin-nvptx.c (nvptx_exec): Move parsing of
9663         GOMP_OPENACC_DIM ...
9664         * env.c (parse_gomp_openacc_dim): ... here.  New function.
9665         (initialize_env): Call parse_gomp_openacc_dim.
9666         (goacc_default_dims): Define.
9667         * libgomp.h (goacc_default_dims): Declare.
9668         * oacc-plugin.c (GOMP_PLUGIN_acc_default_dim): New function.
9669         * oacc-plugin.h (GOMP_PLUGIN_acc_default_dim): Declare.
9670         * libgomp.map: New version "GOMP_PLUGIN_1.2". Add
9671         GOMP_PLUGIN_acc_default_dim.
9672         * testsuite/libgomp.oacc-c-c++-common/loop-default-runtime.c: New test.
9673         * testsuite/libgomp.oacc-c-c++-common/loop-default.h: New test.
9675 2018-05-02  Tom de Vries  <tom@codesourcery.com>
9677         PR testsuite/83791
9678         * testsuite/libgomp.c++/udr-9.C: Update.
9679         * testsuite/libgomp.c++/atomic-16.C: Remove.
9680         * testsuite/libgomp.c++/cancel-taskgroup-2.C: Remove.
9681         * testsuite/libgomp.c++/loop-13.C: Remove.
9682         * testsuite/libgomp.c++/loop-14.C: Remove.
9683         * testsuite/libgomp.c++/loop-15.C: Remove.
9684         * testsuite/libgomp.c++/monotonic-1.C: Remove.
9685         * testsuite/libgomp.c++/monotonic-2.C: Remove.
9686         * testsuite/libgomp.c++/nonmonotonic-1.C: Remove.
9687         * testsuite/libgomp.c++/nonmonotonic-2.C: Remove.
9688         * testsuite/libgomp.c++/ordered-1.C: Remove.
9689         * testsuite/libgomp.c++/pr45784.C: Remove.
9690         * testsuite/libgomp.c++/pr64824.C: Remove.
9691         * testsuite/libgomp.c++/pr64868.C: Remove.
9692         * testsuite/libgomp.c++/pr66199-1.C: Remove.
9693         * testsuite/libgomp.c++/pr66199-2.C: Remove.
9694         * testsuite/libgomp.c++/pr66199-3.C: Remove.
9695         * testsuite/libgomp.c++/pr66199-4.C: Remove.
9696         * testsuite/libgomp.c++/pr66199-5.C: Remove.
9697         * testsuite/libgomp.c++/pr66199-6.C: Remove.
9698         * testsuite/libgomp.c++/pr66199-7.C: Remove.
9699         * testsuite/libgomp.c++/pr66199-8.C: Remove.
9700         * testsuite/libgomp.c++/pr66199-9.C: Remove.
9701         * testsuite/libgomp.c++/pr69389.C: Remove.
9702         * testsuite/libgomp.c++/simd10.C: Remove.
9703         * testsuite/libgomp.c++/simd11.C: Remove.
9704         * testsuite/libgomp.c++/simd12.C: Remove.
9705         * testsuite/libgomp.c++/simd13.C: Remove.
9706         * testsuite/libgomp.c++/target-1.C: Remove.
9707         * testsuite/libgomp.c++/target-3.C: Remove.
9708         * testsuite/libgomp.c++/target-4.C: Remove.
9709         * testsuite/libgomp.c++/target-5.C: Remove.
9710         * testsuite/libgomp.c++/taskgroup-1.C: Remove.
9711         * testsuite/libgomp.c++/taskloop-1.C: Remove.
9712         * testsuite/libgomp.c++/taskloop-2.C: Remove.
9713         * testsuite/libgomp.c++/taskloop-3.C: Remove.
9714         * testsuite/libgomp.c++/taskloop-4.C: Remove.
9715         * testsuite/libgomp.c++/udr-9.C: Remove.
9716         * testsuite/libgomp.c++/for-10.C: Remove.
9717         * testsuite/libgomp.c++/for-11.C: Remove.
9718         * testsuite/libgomp.c++/for-12.C: Remove.
9719         * testsuite/libgomp.c++/for-13.C: Remove.
9720         * testsuite/libgomp.c++/for-14.C: Remove.
9721         * testsuite/libgomp.c++/for-9.C: Remove.
9722         * testsuite/libgomp.c/atomic-18.c: Move ...
9723         * testsuite/libgomp.c-c++-common/atomic-18.c: ... here.
9724         * testsuite/libgomp.c/cancel-taskgroup-2.c: Move ...
9725         * testsuite/libgomp.c-c++-common/cancel-taskgroup-2.c: here.
9726         * testsuite/libgomp.c/loop-13.c: Move ...
9727         * testsuite/libgomp.c-c++-common/loop-13.c: ... here.
9728         * testsuite/libgomp.c/loop-14.c: Move ...
9729         * testsuite/libgomp.c-c++-common/loop-14.c: ... here.
9730         * testsuite/libgomp.c/loop-15.c: Remove.
9731         * testsuite/libgomp.c-c++-common/loop-15.c: New test.
9732         * testsuite/libgomp.c/monotonic-1.c: Move ...
9733         * testsuite/libgomp.c-c++-common/monotonic-1.c: ... here.
9734         * testsuite/libgomp.c/monotonic-2.c: Move ...
9735         * testsuite/libgomp.c-c++-common/monotonic-2.c: ... here.
9736         * testsuite/libgomp.c/nonmonotonic-1.c: Move ...
9737         * testsuite/libgomp.c-c++-common/nonmonotonic-1.c: ... here.
9738         * testsuite/libgomp.c/nonmonotonic-2.c: Move ...
9739         * testsuite/libgomp.c-c++-common/nonmonotonic-2.c: ... here.
9740         * testsuite/libgomp.c/ordered-4.c: Move ...
9741         * testsuite/libgomp.c-c++-common/ordered-4.c: ... here.
9742         * testsuite/libgomp.c/pr45784.c: Move ...
9743         * testsuite/libgomp.c-c++-common/pr45784.c: ... here.
9744         * testsuite/libgomp.c/pr64824.c: Move ...
9745         * testsuite/libgomp.c-c++-common/pr64824.c: ... here.
9746         * testsuite/libgomp.c/pr64868.c: Move ...
9747         * testsuite/libgomp.c-c++-common/pr64868.c: ... here.
9748         * testsuite/libgomp.c/pr66199-1.c: Move ...
9749         * testsuite/libgomp.c-c++-common/pr66199-1.c: ... here.
9750         * testsuite/libgomp.c/pr66199-2.c: Move ...
9751         * testsuite/libgomp.c-c++-common/pr66199-2.c: ... here.
9752         * testsuite/libgomp.c/pr66199-3.c: Move ...
9753         * testsuite/libgomp.c-c++-common/pr66199-3.c: ... here.
9754         * testsuite/libgomp.c/pr66199-4.c: Move ...
9755         * testsuite/libgomp.c-c++-common/pr66199-4.c: ... here.
9756         * testsuite/libgomp.c/pr66199-5.c: Move ...
9757         * testsuite/libgomp.c-c++-common/pr66199-5.c: ... here.
9758         * testsuite/libgomp.c/pr66199-6.c: Move ...
9759         * testsuite/libgomp.c-c++-common/pr66199-6.c: ... here.
9760         * testsuite/libgomp.c/pr66199-7.c: Move ...
9761         * testsuite/libgomp.c-c++-common/pr66199-7.c: ... here.
9762         * testsuite/libgomp.c/pr66199-8.c: Move ...
9763         * testsuite/libgomp.c-c++-common/pr66199-8.c: ... here.
9764         * testsuite/libgomp.c/pr66199-9.c: Move ...
9765         * testsuite/libgomp.c-c++-common/pr66199-9.c: ... here.
9766         * testsuite/libgomp.c/pr69389.c: Move ...
9767         * testsuite/libgomp.c-c++-common/pr69389.c: ... here.
9768         * testsuite/libgomp.c/simd-14.c: Move ...
9769         * testsuite/libgomp.c-c++-common/simd-14.c: ... here.
9770         * testsuite/libgomp.c/simd-15.c: Move ...
9771         * testsuite/libgomp.c-c++-common/simd-15.c: ... here.
9772         * testsuite/libgomp.c/simd-16.c: Move ...
9773         * testsuite/libgomp.c-c++-common/simd-16.c: ... here.
9774         * testsuite/libgomp.c/simd-17.c: Move ...
9775         * testsuite/libgomp.c-c++-common/simd-17.c: ... here.
9776         * testsuite/libgomp.c/target-1.c: Move ...
9777         * testsuite/libgomp.c-c++-common/target-1.c: ... here.
9778         * testsuite/libgomp.c/target-10.c: Move ...
9779         * testsuite/libgomp.c-c++-common/target-10.c: ... here.
9780         * testsuite/libgomp.c/target-13.c: Move ...
9781         * testsuite/libgomp.c-c++-common/target-13.c: ... here.
9782         * testsuite/libgomp.c/target-2.c: Move ...
9783         * testsuite/libgomp.c-c++-common/target-2.c: ... here.
9784         * testsuite/libgomp.c/taskgroup-1.c: Move ...
9785         * testsuite/libgomp.c-c++-common/taskgroup-1.c: ... here.
9786         * testsuite/libgomp.c/taskloop-1.c: Move ...
9787         * testsuite/libgomp.c-c++-common/taskloop-1.c: ... here.
9788         * testsuite/libgomp.c/taskloop-2.c: Move ...
9789         * testsuite/libgomp.c-c++-common/taskloop-2.c: ... here.
9790         * testsuite/libgomp.c/taskloop-3.c: Move ...
9791         * testsuite/libgomp.c-c++-common/taskloop-3.c: ... here.
9792         * testsuite/libgomp.c/taskloop-4.c: Move ...
9793         * testsuite/libgomp.c-c++-common/taskloop-4.c: ... here.
9794         * testsuite/libgomp.c/udr-1.c: Move ...
9795         * testsuite/libgomp.c-c++-common/udr-1.c: ... here.
9796         * testsuite/libgomp.c/for-1.c: Move ...
9797         * testsuite/libgomp.c-c++-common/for-1.c: ... here.
9798         * testsuite/libgomp.c/for-1.h: Move ...
9799         * testsuite/libgomp.c-c++-common/for-1.h: ... here.
9800         * testsuite/libgomp.c/for-2.c: Move ...
9801         * testsuite/libgomp.c-c++-common/for-2.c: ... here.
9802         * testsuite/libgomp.c/for-2.h: Move ...
9803         * testsuite/libgomp.c-c++-common/for-2.h: ... here.
9804         * testsuite/libgomp.c/for-3.c: Move ...
9805         * testsuite/libgomp.c-c++-common/for-3.c: ... here.
9806         * testsuite/libgomp.c/for-4.c: Move ...
9807         * testsuite/libgomp.c-c++-common/for-4.c: ... here.
9808         * testsuite/libgomp.c/for-5.c: Move ...
9809         * testsuite/libgomp.c-c++-common/for-5.c: ... here.
9810         * testsuite/libgomp.c/for-6.c: Move ...
9811         * testsuite/libgomp.c-c++-common/for-6.c: ... here.
9813 2018-05-02  Tom de Vries  <tom@codesourcery.com>
9815         PR libgomp/82428
9816         * testsuite/libgomp.oacc-c-c++-common/gang-static-2.c: Use
9817         __builtin_goacc_parlevel_{id,size}.
9818         * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Same.
9819         * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: Same.
9820         * testsuite/libgomp.oacc-c-c++-common/loop-g-1.c: Same.
9821         * testsuite/libgomp.oacc-c-c++-common/loop-g-2.c: Same.
9822         * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c: Same.
9823         * testsuite/libgomp.oacc-c-c++-common/loop-red-g-1.c: Same.
9824         * testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c: Same.
9825         * testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c: Same.
9826         * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c: Same.
9827         * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c: Same.
9828         * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c: Same.
9829         * testsuite/libgomp.oacc-c-c++-common/loop-red-wv-1.c: Same.
9830         * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c: Same.
9831         * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c: Same.
9832         * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c: Same.
9833         * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Same.
9834         * testsuite/libgomp.oacc-c-c++-common/routine-g-1.c: Same.
9835         * testsuite/libgomp.oacc-c-c++-common/routine-gwv-1.c: Same.
9836         * testsuite/libgomp.oacc-c-c++-common/routine-v-1.c: Same.
9837         * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c: Same.
9838         * testsuite/libgomp.oacc-c-c++-common/routine-wv-1.c: Same.
9839         * testsuite/libgomp.oacc-c-c++-common/routine-wv-2.c: Same.
9840         * testsuite/libgomp.oacc-c-c++-common/tile-1.c: Same.
9842 2018-05-02  Tom de Vries  <tom@codesourcery.com>
9844         PR testsuite/85106
9845         * testsuite/lib/libgomp.exp: Include scanltranstree.exp.
9847 2018-05-02  Tom de Vries  <tom@codesourcery.com>
9849         PR testsuite/85106
9850         * testsuite/lib/libgomp.exp: Include scanwpaipa.exp.
9852 2018-04-29  Julian Brown  <julian@codesourcery.com>
9853             Tom de Vries  <tom@codesourcery.com>
9855         PR testsuite/85527
9856         * testsuite/libgomp.oacc-c-c++-common/atomic_capture-1.c: Allow
9857         arbitrary order for iterations of atomic subtract check.
9859 2018-04-28  Tom de Vries  <tom@codesourcery.com>
9861         PR testsuite/85527
9862         * testsuite/libgomp.oacc-fortran/atomic_capture-1.f90 (main): Store
9863         atomic capture results obtained in parallel loop to an array, instead of
9864         to a scalar.
9866 2018-04-26  Tom de Vries  <tom@codesourcery.com>
9868         PR libgomp/84020
9869         * plugin/cuda/cuda.h (CUjit_option): Add CU_JIT_OPTIMIZATION_LEVEL.
9870         * plugin/plugin-nvptx.c (_GNU_SOURCE): Define.
9871         (process_GOMP_NVPTX_JIT): New function.
9872         (link_ptx): Use process_GOMP_NVPTX_JIT.
9874 2018-04-26  Richard Biener <rguenther@suse.de>
9875             Tom de Vries  <tom@codesourcery.com>
9877         PR lto/85422
9878         * testsuite/libgomp.oacc-c-c++-common/pr85422.c: New test.
9880 2018-04-26  Tom de Vries  <tom@codesourcery.com>
9882         PR target/85519
9883         * testsuite/libgomp.fortran/examples-4/declare_target-1.f90: Reduce
9884         recursion depth from 25 to 23.
9885         * testsuite/libgomp.fortran/examples-4/declare_target-2.f90: Same.
9887 2018-04-24  H.J. Lu  <hongjiu.lu@intel.com>
9889         * configure: Regenerated.
9891 2018-04-20  Nathan Sidwell  <nathan@codesourcery.com>
9892             Tom de Vries  <tom@codesourcery.com>
9894         PR target/85445
9895         * testsuite/libgomp.oacc-c++/ref-1.C: New.
9897 2018-04-19  Thomas Schwinge  <thomas@codesourcery.com>
9899         PR libgomp/85463
9900         * testsuite/libgomp.oacc-fortran/error_stop-1.f: New file.
9901         * testsuite/libgomp.oacc-fortran/error_stop-2.f: Likewise.
9902         * testsuite/libgomp.oacc-fortran/error_stop-3.f: Likewise.
9903         * testsuite/libgomp.oacc-fortran/stop-1.f: Likewise.
9904         * testsuite/libgomp.oacc-fortran/stop-2.f: Likewise.
9905         * testsuite/libgomp.oacc-fortran/stop-3.f: Likewise.
9907         PR libfortran/85166
9908         * testsuite/libgomp.oacc-fortran/abort-1.f90: Switch back to "call
9909         abort".
9910         * testsuite/libgomp.oacc-fortran/abort-2.f90: Likewise.
9912 2018-04-19  Jakub Jelinek  <jakub@redhat.com>
9914         * configure: Regenerated.
9916 2018-04-18  David Malcolm  <dmalcolm@redhat.com>
9918         PR jit/85384
9919         * configure: Regenerate.
9921 2018-04-16  Cesar Philippidis  <cesar@codesourcery.com>
9922             Tom de Vries  <tom@codesourcery.com>
9924         PR middle-end/84955
9925         * testsuite/libgomp.oacc-c-c++-common/pr84955.c: New test.
9926         * testsuite/libgomp.oacc-fortran/pr84955.f90: New test.
9928 2018-04-12  Thomas Koenig  <tkoenig@gcc.gnu.org>
9930         PR fortran/83064
9931         PR testsuite/85346
9932         * testsuite/libgomp.fortran/do_concurrent_5.f90: Move modified
9933         test from gfortran.dg to here.
9935 2018-04-12  Cesar Philippidis  <cesar@codesourcery.com>
9937         * testsuite/libgomp.oacc-c-c++-common/pr84955.c: Revert 259346.
9938         * testsuite/libgomp.oacc-fortran/pr84955.f90: Likewise.
9940 2018-04-12  Cesar Philippidis  <cesar@codesourcery.com>
9942         PR middle-end/84955
9943         * testsuite/libgomp.oacc-c-c++-common/pr84955.c: New test.
9944         * testsuite/libgomp.oacc-fortran/pr84955.f90: New test.
9946 2018-04-05  Tom de Vries  <tom@codesourcery.com>
9948         PR target/85204
9949         * testsuite/libgomp.oacc-c-c++-common/broadcast-1.c: New test.
9951 2018-03-26  Tom de Vries  <tom@codesourcery.com>
9953         PR tree-optimization/85063
9954         * testsuite/libgomp.c/switch-conversion-2.c: New test.
9955         * testsuite/libgomp.c/switch-conversion.c: New test.
9956         * testsuite/libgomp.oacc-c-c++-common/switch-conversion-2.c: New test.
9957         * testsuite/libgomp.oacc-c-c++-common/switch-conversion.c: New test.
9959 2018-03-25  Thomas Koenig  <tkoenig@gcc.gnu.org>
9961         PR fortran/84381
9962         * testsuite/libgomp.fortran/aligned1.f03: Replace non-standard
9963         call abort by STOP n.
9964         * testsuite/libgomp.fortran/alloc-comp-1.f90: Likewise.
9965         * testsuite/libgomp.fortran/alloc-comp-2.f90: Likewise.
9966         * testsuite/libgomp.fortran/alloc-comp-3.f90: Likewise.
9967         * testsuite/libgomp.fortran/allocatable1.f90: Likewise.
9968         * testsuite/libgomp.fortran/allocatable10.f90: Likewise.
9969         * testsuite/libgomp.fortran/allocatable11.f90: Likewise.
9970         * testsuite/libgomp.fortran/allocatable12.f90: Likewise.
9971         * testsuite/libgomp.fortran/allocatable2.f90: Likewise.
9972         * testsuite/libgomp.fortran/allocatable3.f90: Likewise.
9973         * testsuite/libgomp.fortran/allocatable4.f90: Likewise.
9974         * testsuite/libgomp.fortran/allocatable5.f90: Likewise.
9975         * testsuite/libgomp.fortran/allocatable6.f90: Likewise.
9976         * testsuite/libgomp.fortran/allocatable7.f90: Likewise.
9977         * testsuite/libgomp.fortran/allocatable8.f90: Likewise.
9978         * testsuite/libgomp.fortran/allocatable9.f90: Likewise.
9979         * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: Likewise.
9980         * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: Likewise.
9981         * testsuite/libgomp.fortran/associate1.f90: Likewise.
9982         * testsuite/libgomp.fortran/associate2.f90: Likewise.
9983         * testsuite/libgomp.fortran/associate3.f90: Likewise.
9984         * testsuite/libgomp.fortran/cancel-do-1.f90: Likewise.
9985         * testsuite/libgomp.fortran/cancel-do-2.f90: Likewise.
9986         * testsuite/libgomp.fortran/cancel-parallel-1.f90: Likewise.
9987         * testsuite/libgomp.fortran/cancel-sections-1.f90: Likewise.
9988         * testsuite/libgomp.fortran/cancel-taskgroup-2.f90: Likewise.
9989         * testsuite/libgomp.fortran/character1.f90: Likewise.
9990         * testsuite/libgomp.fortran/character2.f90: Likewise.
9991         * testsuite/libgomp.fortran/collapse1.f90: Likewise.
9992         * testsuite/libgomp.fortran/collapse2.f90: Likewise.
9993         * testsuite/libgomp.fortran/collapse3.f90: Likewise.
9994         * testsuite/libgomp.fortran/collapse4.f90: Likewise.
9995         * testsuite/libgomp.fortran/crayptr1.f90: Likewise.
9996         * testsuite/libgomp.fortran/crayptr2.f90: Likewise.
9997         * testsuite/libgomp.fortran/crayptr3.f90: Likewise.
9998         * testsuite/libgomp.fortran/declare-simd-1.f90: Likewise.
9999         * testsuite/libgomp.fortran/declare-simd-3.f90: Likewise.
10000         * testsuite/libgomp.fortran/declare-target-2.f90: Likewise.
10001         * testsuite/libgomp.fortran/depend-1.f90: Likewise.
10002         * testsuite/libgomp.fortran/depend-2.f90: Likewise.
10003         * testsuite/libgomp.fortran/depend-3.f90: Likewise.
10004         * testsuite/libgomp.fortran/do1.f90: Likewise.
10005         * testsuite/libgomp.fortran/do2.f90: Likewise.
10006         * testsuite/libgomp.fortran/doacross1.f90: Likewise.
10007         * testsuite/libgomp.fortran/doacross2.f90: Likewise.
10008         * testsuite/libgomp.fortran/doacross3.f90: Likewise.
10009         * testsuite/libgomp.fortran/examples-4/array_sections-3.f90: Likewise.
10010         * testsuite/libgomp.fortran/examples-4/array_sections-4.f90: Likewise.
10011         * testsuite/libgomp.fortran/examples-4/async_target-1.f90: Likewise.
10012         * testsuite/libgomp.fortran/examples-4/async_target-2.f90: Likewise.
10013         * testsuite/libgomp.fortran/examples-4/declare_target-1.f90: Likewise.
10014         * testsuite/libgomp.fortran/examples-4/declare_target-2.f90: Likewise.
10015         * testsuite/libgomp.fortran/examples-4/declare_target-3.f90: Likewise.
10016         * testsuite/libgomp.fortran/examples-4/declare_target-4.f90: Likewise.
10017         * testsuite/libgomp.fortran/examples-4/declare_target-5.f90: Likewise.
10018         * testsuite/libgomp.fortran/examples-4/device-1.f90: Likewise.
10019         * testsuite/libgomp.fortran/examples-4/device-2.f90: Likewise.
10020         * testsuite/libgomp.fortran/examples-4/device-3.f90: Likewise.
10021         * testsuite/libgomp.fortran/examples-4/simd-1.f90: Likewise.
10022         * testsuite/libgomp.fortran/examples-4/simd-2.f90: Likewise.
10023         * testsuite/libgomp.fortran/examples-4/simd-3.f90: Likewise.
10024         * testsuite/libgomp.fortran/examples-4/simd-4.f90: Likewise.
10025         * testsuite/libgomp.fortran/examples-4/simd-5.f90: Likewise.
10026         * testsuite/libgomp.fortran/examples-4/simd-6.f90: Likewise.
10027         * testsuite/libgomp.fortran/examples-4/simd-7.f90: Likewise.
10028         * testsuite/libgomp.fortran/examples-4/simd-8.f90: Likewise.
10029         * testsuite/libgomp.fortran/examples-4/target-1.f90: Likewise.
10030         * testsuite/libgomp.fortran/examples-4/target-2.f90: Likewise.
10031         * testsuite/libgomp.fortran/examples-4/target-3.f90: Likewise.
10032         * testsuite/libgomp.fortran/examples-4/target-4.f90: Likewise.
10033         * testsuite/libgomp.fortran/examples-4/target-5.f90: Likewise.
10034         * testsuite/libgomp.fortran/examples-4/target_data-1.f90: Likewise.
10035         * testsuite/libgomp.fortran/examples-4/target_data-2.f90: Likewise.
10036         * testsuite/libgomp.fortran/examples-4/target_data-3.f90: Likewise.
10037         * testsuite/libgomp.fortran/examples-4/target_data-4.f90: Likewise.
10038         * testsuite/libgomp.fortran/examples-4/target_data-5.f90: Likewise.
10039         * testsuite/libgomp.fortran/examples-4/target_data-6.f90: Likewise.
10040         * testsuite/libgomp.fortran/examples-4/target_data-7.f90: Likewise.
10041         * testsuite/libgomp.fortran/examples-4/target_update-1.f90: Likewise.
10042         * testsuite/libgomp.fortran/examples-4/target_update-2.f90: Likewise.
10043         * testsuite/libgomp.fortran/examples-4/task_dep-1.f90: Likewise.
10044         * testsuite/libgomp.fortran/examples-4/task_dep-2.f90: Likewise.
10045         * testsuite/libgomp.fortran/examples-4/task_dep-3.f90: Likewise.
10046         * testsuite/libgomp.fortran/examples-4/task_dep-4.f90: Likewise.
10047         * testsuite/libgomp.fortran/examples-4/task_dep-5.f90: Likewise.
10048         * testsuite/libgomp.fortran/examples-4/teams-2.f90: Likewise.
10049         * testsuite/libgomp.fortran/examples-4/teams-3.f90: Likewise.
10050         * testsuite/libgomp.fortran/examples-4/teams-4.f90: Likewise.
10051         * testsuite/libgomp.fortran/examples-4/teams-5.f90: Likewise.
10052         * testsuite/libgomp.fortran/examples-4/teams-6.f90: Likewise.
10053         * testsuite/libgomp.fortran/lastprivate1.f90: Likewise.
10054         * testsuite/libgomp.fortran/lastprivate2.f90: Likewise.
10055         * testsuite/libgomp.fortran/lib1.f90: Likewise.
10056         * testsuite/libgomp.fortran/lib2.f: Likewise.
10057         * testsuite/libgomp.fortran/lib3.f: Likewise.
10058         * testsuite/libgomp.fortran/lib4.f90: Likewise.
10059         * testsuite/libgomp.fortran/lock-1.f90: Likewise.
10060         * testsuite/libgomp.fortran/lock-2.f90: Likewise.
10061         * testsuite/libgomp.fortran/nested1.f90: Likewise.
10062         * testsuite/libgomp.fortran/nestedfn1.f90: Likewise.
10063         * testsuite/libgomp.fortran/nestedfn2.f90: Likewise.
10064         * testsuite/libgomp.fortran/nestedfn3.f90: Likewise.
10065         * testsuite/libgomp.fortran/nestedfn4.f90: Likewise.
10066         * testsuite/libgomp.fortran/nestedfn5.f90: Likewise.
10067         * testsuite/libgomp.fortran/omp_atomic1.f90: Likewise.
10068         * testsuite/libgomp.fortran/omp_atomic2.f90: Likewise.
10069         * testsuite/libgomp.fortran/omp_atomic3.f90: Likewise.
10070         * testsuite/libgomp.fortran/omp_atomic4.f90: Likewise.
10071         * testsuite/libgomp.fortran/omp_atomic5.f90: Likewise.
10072         * testsuite/libgomp.fortran/omp_cond1.f: Likewise.
10073         * testsuite/libgomp.fortran/omp_cond2.f: Likewise.
10074         * testsuite/libgomp.fortran/omp_cond3.F90: Likewise.
10075         * testsuite/libgomp.fortran/omp_cond4.F90: Likewise.
10076         * testsuite/libgomp.fortran/omp_parse1.f90: Likewise.
10077         * testsuite/libgomp.fortran/omp_parse2.f90: Likewise.
10078         * testsuite/libgomp.fortran/omp_parse3.f90: Likewise.
10079         * testsuite/libgomp.fortran/omp_parse4.f90: Likewise.
10080         * testsuite/libgomp.fortran/openmp_version-1.f: Likewise.
10081         * testsuite/libgomp.fortran/openmp_version-2.f90: Likewise.
10082         * testsuite/libgomp.fortran/parloops-exit-first-loop-alt-2.f95: Likewise.
10083         * testsuite/libgomp.fortran/parloops-exit-first-loop-alt.f95: Likewise.
10084         * testsuite/libgomp.fortran/pointer1.f90: Likewise.
10085         * testsuite/libgomp.fortran/pointer2.f90: Likewise.
10086         * testsuite/libgomp.fortran/pr25162.f: Likewise.
10087         * testsuite/libgomp.fortran/pr25219.f90: Likewise.
10088         * testsuite/libgomp.fortran/pr27395-1.f90: Likewise.
10089         * testsuite/libgomp.fortran/pr27395-2.f90: Likewise.
10090         * testsuite/libgomp.fortran/pr27416-1.f90: Likewise.
10091         * testsuite/libgomp.fortran/pr27916-1.f90: Likewise.
10092         * testsuite/libgomp.fortran/pr27916-2.f90: Likewise.
10093         * testsuite/libgomp.fortran/pr28390.f: Likewise.
10094         * testsuite/libgomp.fortran/pr29629.f90: Likewise.
10095         * testsuite/libgomp.fortran/pr32550.f90: Likewise.
10096         * testsuite/libgomp.fortran/pr33880.f90: Likewise.
10097         * testsuite/libgomp.fortran/pr34020.f90: Likewise.
10098         * testsuite/libgomp.fortran/pr35130.f90: Likewise.
10099         * testsuite/libgomp.fortran/pr42162.f90: Likewise.
10100         * testsuite/libgomp.fortran/pr46753.f90: Likewise.
10101         * testsuite/libgomp.fortran/pr48894.f90: Likewise.
10102         * testsuite/libgomp.fortran/pr49792-1.f90: Likewise.
10103         * testsuite/libgomp.fortran/pr49792-2.f90: Likewise.
10104         * testsuite/libgomp.fortran/pr63938-1.f90: Likewise.
10105         * testsuite/libgomp.fortran/pr63938-2.f90: Likewise.
10106         * testsuite/libgomp.fortran/pr65597.f90: Likewise.
10107         * testsuite/libgomp.fortran/pr66199-1.f90: Likewise.
10108         * testsuite/libgomp.fortran/pr71014.f90: Likewise.
10109         * testsuite/libgomp.fortran/pr81304.f90: Likewise.
10110         * testsuite/libgomp.fortran/pr81841.f90: Likewise.
10111         * testsuite/libgomp.fortran/pr84418-1.f90: Likewise.
10112         * testsuite/libgomp.fortran/pr84418-2.f90: Likewise.
10113         * testsuite/libgomp.fortran/procptr1.f90: Likewise.
10114         * testsuite/libgomp.fortran/recursion1.f90: Likewise.
10115         * testsuite/libgomp.fortran/reduction1.f90: Likewise.
10116         * testsuite/libgomp.fortran/reduction2.f90: Likewise.
10117         * testsuite/libgomp.fortran/reduction3.f90: Likewise.
10118         * testsuite/libgomp.fortran/reduction4.f90: Likewise.
10119         * testsuite/libgomp.fortran/reduction5.f90: Likewise.
10120         * testsuite/libgomp.fortran/reduction6.f90: Likewise.
10121         * testsuite/libgomp.fortran/reference1.f90: Likewise.
10122         * testsuite/libgomp.fortran/reference2.f90: Likewise.
10123         * testsuite/libgomp.fortran/retval1.f90: Likewise.
10124         * testsuite/libgomp.fortran/retval2.f90: Likewise.
10125         * testsuite/libgomp.fortran/sharing1.f90: Likewise.
10126         * testsuite/libgomp.fortran/sharing2.f90: Likewise.
10127         * testsuite/libgomp.fortran/simd1.f90: Likewise.
10128         * testsuite/libgomp.fortran/simd2.f90: Likewise.
10129         * testsuite/libgomp.fortran/simd3.f90: Likewise.
10130         * testsuite/libgomp.fortran/simd4.f90: Likewise.
10131         * testsuite/libgomp.fortran/simd5.f90: Likewise.
10132         * testsuite/libgomp.fortran/simd6.f90: Likewise.
10133         * testsuite/libgomp.fortran/simd7.f90: Likewise.
10134         * testsuite/libgomp.fortran/stack.f90: Likewise.
10135         * testsuite/libgomp.fortran/strassen.f90: Likewise.
10136         * testsuite/libgomp.fortran/tabs1.f90: Likewise.
10137         * testsuite/libgomp.fortran/tabs2.f: Likewise.
10138         * testsuite/libgomp.fortran/target1.f90: Likewise.
10139         * testsuite/libgomp.fortran/target2.f90: Likewise.
10140         * testsuite/libgomp.fortran/target3.f90: Likewise.
10141         * testsuite/libgomp.fortran/target4.f90: Likewise.
10142         * testsuite/libgomp.fortran/target5.f90: Likewise.
10143         * testsuite/libgomp.fortran/target6.f90: Likewise.
10144         * testsuite/libgomp.fortran/target7.f90: Likewise.
10145         * testsuite/libgomp.fortran/target8.f90: Likewise.
10146         * testsuite/libgomp.fortran/task1.f90: Likewise.
10147         * testsuite/libgomp.fortran/task2.f90: Likewise.
10148         * testsuite/libgomp.fortran/task3.f90: Likewise.
10149         * testsuite/libgomp.fortran/task4.f90: Likewise.
10150         * testsuite/libgomp.fortran/taskgroup1.f90: Likewise.
10151         * testsuite/libgomp.fortran/taskloop1.f90: Likewise.
10152         * testsuite/libgomp.fortran/taskloop2.f90: Likewise.
10153         * testsuite/libgomp.fortran/taskloop3.f90: Likewise.
10154         * testsuite/libgomp.fortran/taskloop4.f90: Likewise.
10155         * testsuite/libgomp.fortran/threadprivate1.f90: Likewise.
10156         * testsuite/libgomp.fortran/threadprivate2.f90: Likewise.
10157         * testsuite/libgomp.fortran/threadprivate3.f90: Likewise.
10158         * testsuite/libgomp.fortran/threadprivate4.f90: Likewise.
10159         * testsuite/libgomp.fortran/udr1.f90: Likewise.
10160         * testsuite/libgomp.fortran/udr10.f90: Likewise.
10161         * testsuite/libgomp.fortran/udr11.f90: Likewise.
10162         * testsuite/libgomp.fortran/udr12.f90: Likewise.
10163         * testsuite/libgomp.fortran/udr13.f90: Likewise.
10164         * testsuite/libgomp.fortran/udr14.f90: Likewise.
10165         * testsuite/libgomp.fortran/udr15.f90: Likewise.
10166         * testsuite/libgomp.fortran/udr2.f90: Likewise.
10167         * testsuite/libgomp.fortran/udr3.f90: Likewise.
10168         * testsuite/libgomp.fortran/udr4.f90: Likewise.
10169         * testsuite/libgomp.fortran/udr5.f90: Likewise.
10170         * testsuite/libgomp.fortran/udr6.f90: Likewise.
10171         * testsuite/libgomp.fortran/udr7.f90: Likewise.
10172         * testsuite/libgomp.fortran/udr8.f90: Likewise.
10173         * testsuite/libgomp.fortran/udr9.f90: Likewise.
10174         * testsuite/libgomp.fortran/vla1.f90: Likewise.
10175         * testsuite/libgomp.fortran/vla2.f90: Likewise.
10176         * testsuite/libgomp.fortran/vla3.f90: Likewise.
10177         * testsuite/libgomp.fortran/vla4.f90: Likewise.
10178         * testsuite/libgomp.fortran/vla5.f90: Likewise.
10179         * testsuite/libgomp.fortran/vla6.f90: Likewise.
10180         * testsuite/libgomp.fortran/vla7.f90: Likewise.
10181         * testsuite/libgomp.fortran/vla8.f90: Likewise.
10182         * testsuite/libgomp.fortran/workshare1.f90: Likewise.
10183         * testsuite/libgomp.fortran/workshare2.f90: Likewise.
10184         * testsuite/libgomp.oacc-fortran/abort-1.f90: Likewise.
10185         * testsuite/libgomp.oacc-fortran/abort-2.f90: Likewise.
10186         * testsuite/libgomp.oacc-fortran/acc_on_device-1-1.f90: Likewise.
10187         * testsuite/libgomp.oacc-fortran/acc_on_device-1-2.f: Likewise.
10188         * testsuite/libgomp.oacc-fortran/acc_on_device-1-3.f: Likewise.
10189         * testsuite/libgomp.oacc-fortran/asyncwait-1.f90: Likewise.
10190         * testsuite/libgomp.oacc-fortran/asyncwait-2.f90: Likewise.
10191         * testsuite/libgomp.oacc-fortran/asyncwait-3.f90: Likewise.
10192         * testsuite/libgomp.oacc-fortran/atomic_capture-1.f90: Likewise.
10193         * testsuite/libgomp.oacc-fortran/atomic_rw-1.f90: Likewise.
10194         * testsuite/libgomp.oacc-fortran/atomic_update-1.f90: Likewise.
10195         * testsuite/libgomp.oacc-fortran/c2.pl: Likewise.
10196         * testsuite/libgomp.oacc-fortran/clauses-1.f90: Likewise.
10197         * testsuite/libgomp.oacc-fortran/collapse-1.f90: Likewise.
10198         * testsuite/libgomp.oacc-fortran/collapse-2.f90: Likewise.
10199         * testsuite/libgomp.oacc-fortran/collapse-3.f90: Likewise.
10200         * testsuite/libgomp.oacc-fortran/collapse-4.f90: Likewise.
10201         * testsuite/libgomp.oacc-fortran/collapse-5.f90: Likewise.
10202         * testsuite/libgomp.oacc-fortran/collapse-6.f90: Likewise.
10203         * testsuite/libgomp.oacc-fortran/collapse-7.f90: Likewise.
10204         * testsuite/libgomp.oacc-fortran/collapse-8.f90: Likewise.
10205         * testsuite/libgomp.oacc-fortran/combined-directives-1.f90: Likewise.
10206         * testsuite/libgomp.oacc-fortran/combined-reduction.f90: Likewise.
10207         * testsuite/libgomp.oacc-fortran/data-1.f90: Likewise.
10208         * testsuite/libgomp.oacc-fortran/data-2.f90: Likewise.
10209         * testsuite/libgomp.oacc-fortran/data-3.f90: Likewise.
10210         * testsuite/libgomp.oacc-fortran/data-4-2.f90: Likewise.
10211         * testsuite/libgomp.oacc-fortran/data-4.f90: Likewise.
10212         * testsuite/libgomp.oacc-fortran/declare-1.f90: Likewise.
10213         * testsuite/libgomp.oacc-fortran/declare-2.f90: Likewise.
10214         * testsuite/libgomp.oacc-fortran/declare-3.f90: Likewise.
10215         * testsuite/libgomp.oacc-fortran/declare-4.f90: Likewise.
10216         * testsuite/libgomp.oacc-fortran/declare-5.f90: Likewise.
10217         * testsuite/libgomp.oacc-fortran/default-1.f90: Likewise.
10218         * testsuite/libgomp.oacc-fortran/firstprivate-1.f90: Likewise.
10219         * testsuite/libgomp.oacc-fortran/gang-static-1.f90: Likewise.
10220         * testsuite/libgomp.oacc-fortran/host_data-1.f90: Likewise.
10221         * testsuite/libgomp.oacc-fortran/if-1.f90: Likewise.
10222         * testsuite/libgomp.oacc-fortran/implicit-firstprivate-ref.f90: Likewise.
10223         * testsuite/libgomp.oacc-fortran/kernels-loop-2.f95: Likewise.
10224         * testsuite/libgomp.oacc-fortran/kernels-loop-data-2.f95: Likewise.
10225         * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit-2.f95: Likewise.
10226         * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit.f95: Likewise.
10227         * testsuite/libgomp.oacc-fortran/kernels-loop-data-update.f95: Likewise.
10228         * testsuite/libgomp.oacc-fortran/kernels-loop-data.f95: Likewise.
10229         * testsuite/libgomp.oacc-fortran/kernels-loop.f95: Likewise.
10230         * testsuite/libgomp.oacc-fortran/lib-1.f90: Likewise.
10231         * testsuite/libgomp.oacc-fortran/lib-10.f90: Likewise.
10232         * testsuite/libgomp.oacc-fortran/lib-2.f: Likewise.
10233         * testsuite/libgomp.oacc-fortran/lib-3.f: Likewise.
10234         * testsuite/libgomp.oacc-fortran/lib-32-1.f: Likewise.
10235         * testsuite/libgomp.oacc-fortran/lib-32-2.f: Likewise.
10236         * testsuite/libgomp.oacc-fortran/lib-4.f90: Likewise.
10237         * testsuite/libgomp.oacc-fortran/lib-5.f90: Likewise.
10238         * testsuite/libgomp.oacc-fortran/lib-6.f90: Likewise.
10239         * testsuite/libgomp.oacc-fortran/lib-7.f90: Likewise.
10240         * testsuite/libgomp.oacc-fortran/lib-8.f90: Likewise.
10241         * testsuite/libgomp.oacc-fortran/map-1.f90: Likewise.
10242         * testsuite/libgomp.oacc-fortran/nested-function-1.f90: Likewise.
10243         * testsuite/libgomp.oacc-fortran/nested-function-2.f90: Likewise.
10244         * testsuite/libgomp.oacc-fortran/nested-function-3.f90: Likewise.
10245         * testsuite/libgomp.oacc-fortran/non-scalar-data.f90: Likewise.
10246         * testsuite/libgomp.oacc-fortran/openacc_version-1.f: Likewise.
10247         * testsuite/libgomp.oacc-fortran/openacc_version-2.f90: Likewise.
10248         * testsuite/libgomp.oacc-fortran/par-reduction-2-1.f: Likewise.
10249         * testsuite/libgomp.oacc-fortran/par-reduction-2-2.f: Likewise.
10250         * testsuite/libgomp.oacc-fortran/parallel-reduction.f90: Likewise.
10251         * testsuite/libgomp.oacc-fortran/pointer-align-1.f90: Likewise.
10252         * testsuite/libgomp.oacc-fortran/pr70643.f90: Likewise.
10253         * testsuite/libgomp.oacc-fortran/pr81352.f90: Likewise.
10254         * testsuite/libgomp.oacc-fortran/pr83920.f90: Likewise.
10255         * testsuite/libgomp.oacc-fortran/pr84028.f90: Likewise.
10256         * testsuite/libgomp.oacc-fortran/private-variables.f90: Likewise.
10257         * testsuite/libgomp.oacc-fortran/pset-1.f90: Likewise.
10258         * testsuite/libgomp.oacc-fortran/reduction-1.f90: Likewise.
10259         * testsuite/libgomp.oacc-fortran/reduction-2.f90: Likewise.
10260         * testsuite/libgomp.oacc-fortran/reduction-3.f90: Likewise.
10261         * testsuite/libgomp.oacc-fortran/reduction-4.f90: Likewise.
10262         * testsuite/libgomp.oacc-fortran/reduction-5.f90: Likewise.
10263         * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
10264         * testsuite/libgomp.oacc-fortran/reduction-7.f90: Likewise.
10265         * testsuite/libgomp.oacc-fortran/reduction-8.f90: Likewise.
10266         * testsuite/libgomp.oacc-fortran/routine-1.f90: Likewise.
10267         * testsuite/libgomp.oacc-fortran/routine-2.f90: Likewise.
10268         * testsuite/libgomp.oacc-fortran/routine-3.f90: Likewise.
10269         * testsuite/libgomp.oacc-fortran/routine-4.f90: Likewise.
10270         * testsuite/libgomp.oacc-fortran/routine-5.f90: Likewise.
10271         * testsuite/libgomp.oacc-fortran/routine-7.f90: Likewise.
10272         * testsuite/libgomp.oacc-fortran/routine-9.f90: Likewise.
10273         * testsuite/libgomp.oacc-fortran/subarrays-1.f90: Likewise.
10274         * testsuite/libgomp.oacc-fortran/subarrays-2.f90: Likewise.
10275         * testsuite/libgomp.oacc-fortran/update-1.f90: Likewise.
10277 2018-03-20  Richard Biener  <rguenther@suse.de>
10279         * testsuite/libgomp.graphite/force-parallel-4.c: XFAIL one
10280         parallelizable loop.
10282 2018-02-19  Igor Tsimbalist  <igor.v.tsimbalist@intel.com>
10284         PR target/84148
10285         * configure: Regenerate.
10287 2018-02-16  Jakub Jelinek  <jakub@redhat.com>
10289         PR fortran/84418
10290         * libgomp.fortran/pr84418-1.f90: New test.
10291         * libgomp.fortran/pr84418-2.f90: New test.
10293 2018-02-14  Jakub Jelinek  <jakub@redhat.com>
10295         PR fortran/84313
10296         * testsuite/libgomp.fortran/threadprivate4.f90: Add
10297         -std=f2003 -fall-intrinsics into dg-additional-options.
10299 2018-02-08  Martin Jambor  <mjambor@suse.cz>
10301         * testsuite/libgomp.hsa.c/pr82416.c: Make the function with target
10302         clonable.
10304 2018-02-08  Martin Jambor  <mjambor@suse.cz>
10306         * testsuite/libgomp.hsa.c/staticvar.c: New test.
10308 2018-02-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10310         * testsuite/libgomp.oacc-c-c++-common/pr84217.c (abort)
10311         [__cplusplus]: Declare extern "C".
10313 2018-02-07  Tom de Vries  <tom@codesourcery.com>
10315         PR libgomp/84217
10316         * testsuite/libgomp.oacc-c-c++-common/pr84217.c: New test.
10318 2018-01-29  Christoph Spiel  <cspiel@freenet.de>
10319             Jakub Jelinek  <jakub@redhat.com>
10321         PR libgomp/84096
10322         * omp.h.in (omp_init_nest_lock_with_hint): Use omp_nest_lock_t
10323         instead of omp_lock_t.
10325 2018-01-25  Tom de Vries  <tom@codesourcery.com>
10327         PR target/84028
10328         * testsuite/libgomp.oacc-fortran/pr84028.f90: New test.
10330 2018-01-24  Tom de Vries  <tom@codesourcery.com>
10332         PR target/83589
10333         * testsuite/libgomp.oacc-c-c++-common/pr83589.c: New test.
10335 2018-01-24  Tom de Vries  <tom@codesourcery.com>
10337         PR target/81352
10338         * testsuite/libgomp.oacc-fortran/pr81352.f90: New test.
10340 2018-01-19  Tom de Vries  <tom@codesourcery.com>
10341             Cesar Philippidis  <cesar@codesourcery.com>
10343         PR target/83920
10344         * testsuite/libgomp.oacc-c-c++-common/pr83920.c: New test.
10345         * testsuite/libgomp.oacc-fortran/pr83920.f90: New test.
10347 2018-01-03  Jakub Jelinek  <jakub@redhat.com>
10349         Update copyright years.
10351         * libgomp.texi: Bump @copying's copyright year.
10353 2017-12-30  Tom de Vries  <tom@codesourcery.com>
10355         PR libgomp/83046
10356         * testsuite/libgomp.oacc-c-c++-common/pr83046.c: New test.
10357         * testsuite/libgomp.c-c++-common/pr83046.c: New test.
10359 2017-12-27  Tom de Vries  <tom@codesourcery.com>
10361         PR c++/83046
10362         * testsuite/libgomp.oacc-c-c++-common/gang-static-2.c (test_static)
10363         (test_nonstatic): Fix return type to workaround PR83046.
10365 2017-12-05  Jakub Jelinek  <jakub@redhat.com>
10367         PR testsuite/83281
10368         * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-flt.c (main): Use
10369         j suffix instead of i.
10370         * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-dbl.c (main):
10371         Likewise.
10373 2017-12-01  Cesar Philippidis  <cesar@codesourcery.com>
10375         * testsuite/libgomp.oacc-c-c++-common/data-2-lib.c: Add missing
10376         call to acc_wait (1).
10378 2017-11-24  Jakub Jelinek  <jakub@redhat.com>
10380         PR fortran/81304
10381         * testsuite/libgomp.fortran/pr81304.f90: New test.
10383 2017-11-23  Jakub Jelinek  <jakub@redhat.com>
10385         PR fortran/81841
10386         * libgomp.fortran/pr81841.f90: New test.
10388 2017-11-22  Jakub Jelinek  <jakub@redhat.com>
10390         PR libgomp/83106
10391         * target.c (gomp_target_init): Compute lengths just once and
10392         use them in both malloc size and subsequent copying.
10394 2017-11-17  Igor Tsimbalist  <igor.v.tsimbalist@intel.com>
10396         * configure.ac: Set CET_FLAGS, update XCFLAGS and FCFLAGS.
10397         * acinclude.m4: Add cet.m4.
10398         * configure: Regenerate.
10399         * Makefile.in: Likewise.
10400         * testsuite/Makefile.in: Likewise.
10402 2017-11-15  Tom de Vries  <tom@codesourcery.com>
10404         * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-1.c: New test, copied
10405         from asyncwait-1.f90.  Rewrite into C.  Rewrite from float to int.
10406         * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-2.c: New test, copied
10407         from asyncwait-2.f90.  Rewrite into C.  Rewrite from float to int.
10408         * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-3.c: New test, copied
10409         from asyncwait-3.f90.  Rewrite into C.  Rewrite from float to int.
10411 2017-11-14  Tom de Vries  <tom@codesourcery.com>
10413         * testsuite/libgomp.oacc-c-c++-common/asyncwait-1.c: Allow to run for
10414         non-nvidia devices.
10416 2017-11-07  Jakub Jelinek  <jakub@redhat.com>
10418         PR c++/82835
10419         * testsuite/libgomp.c++/pr82835.C: New test.
10421 2017-11-06  Martin Liska  <mliska@suse.cz>
10423         * testsuite/libgomp.c++/loop-2.C: Return a value
10424         for functions with non-void return type, or change type to void,
10425         or add -Wno-return-type for test.
10426         * testsuite/libgomp.c++/loop-4.C: Likewise.
10427         * testsuite/libgomp.c++/parallel-1.C: Likewise.
10428         * testsuite/libgomp.c++/shared-1.C: Likewise.
10429         * testsuite/libgomp.c++/single-1.C: Likewise.
10430         * testsuite/libgomp.c++/single-2.C: Likewise.
10432 2017-10-31  Tom de Vries  <tom@codesourcery.com>
10434         * plugin/plugin-hsa.c (HSA_LOG): Remove semicolon after
10435         "do {} while (false)".
10436         (init_single_kernel, GOMP_OFFLOAD_async_run): Add missing semicolon
10437         after HSA_DEBUG call.
10439 2017-10-28  Jakub Jelinek  <jakub@redhat.com>
10441         * target.c (struct gomp_coalesce_buf): New type.
10442         (MAX_COALESCE_BUF_SIZE, MAX_COALESCE_BUF_GAP): Define.
10443         (gomp_coalesce_buf_add, gomp_to_device_kind_p): New functions.
10444         (gomp_copy_host2dev): Add CBUF argument, if copying into
10445         the cached ranges, memcpy into buffer instead of copying
10446         into device.
10447         (gomp_map_vars_existing, gomp_map_pointer, gomp_map_fields_existing):
10448         Add CBUF argument, pass it through to other calls.
10449         (gomp_map_vars): Aggregate copies from host to device if small enough
10450         and with small enough gaps in between into memcpy into a buffer and
10451         fewer host to device copies from the buffer.
10452         (gomp_update): Adjust gomp_copy_host2dev caller.
10454 2017-10-17  Thomas Schwinge  <thomas@codesourcery.com>
10456         * testsuite/libgomp.oacc-fortran/declare-1.f90: Restore "dg-do
10457         run" directive.
10458         * testsuite/libgomp.oacc-fortran/declare-2.f90: Likewise.
10459         * testsuite/libgomp.oacc-fortran/declare-3.f90: Likewise.
10460         * testsuite/libgomp.oacc-fortran/declare-4.f90: Likewise.
10461         * testsuite/libgomp.oacc-fortran/declare-5.f90: Likewise.
10463 2017-10-16  Tom de Vries  <tom@codesourcery.com>
10465         * testsuite/libgomp.oacc-c-c++-common/declare-1.c: Don't require
10466         openacc_nvidia_accel_selected.
10467         * testsuite/libgomp.oacc-c-c++-common/declare-2.c: Same.
10468         * testsuite/libgomp.oacc-c-c++-common/declare-4.c: Same.
10469         * testsuite/libgomp.oacc-fortran/declare-2.f90: Same.
10470         * testsuite/libgomp.oacc-fortran/declare-4.f90: Same
10471         * testsuite/libgomp.oacc-fortran/declare-5.f90: Same.
10472         * testsuite/libgomp.oacc-c-c++-common/declare-5.c: Don't require
10473         openacc_nvidia_accel_selected. Skip for shared memory device.
10474         * testsuite/libgomp.oacc-fortran/declare-1.f90: Same.
10475         * testsuite/libgomp.oacc-fortran/declare-3.f90: Same.
10477 2017-10-09  Martin Jambor  <mjambor@suse.cz>
10479         PR hsa/82416
10480         * testsuite/libgomp.hsa.c/pr82416.c: New test.
10482 2017-10-07  Tom de Vries  <tom@codesourcery.com>
10484         * testsuite/libgomp.oacc-fortran/firstprivate-1.f90 (firstprivate):
10485         Remove acc_device_nvidia references.
10486         * testsuite/libgomp.oacc-fortran/parallel-reduction.f90 (reduction):
10487         Same.
10489 2017-10-05  Tom de Vries  <tom@codesourcery.com>
10491         * testsuite/libgomp.oacc-c-c++-common/loop-red-g-1.c (main): Remove
10492         vector_length(32) clause from acc parallel directive.
10493         * testsuite/libgomp.oacc-c-c++-common/routine-g-1.c (main): Same.
10495 2017-10-04  Tom de Vries  <tom@codesourcery.com>
10497         * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-3.c
10498         (main): Reduce sum of arr elements.  Assert that hres is exactly
10499         representable in 32-bit floating point.
10500         * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-4.c
10501         (main): Reduce sum of arr elements.  Assert that hres and hmres are
10502         exactly representable in 32-bit floating point.
10503         * testsuite/libgomp.oacc-c-c++-common/reduction-7.c (gwv_np_4): Same.
10505 2017-09-28  Tom de Vries  <tom@codesourcery.com>
10507         * testsuite/libgomp.c++/for-12.C: Remove superfluous -fopenmp option
10508         setting.
10509         * testsuite/libgomp.c++/pr69393.C: Same.
10510         * testsuite/libgomp.c++/taskloop-1.C: Same.
10511         * testsuite/libgomp.c++/taskloop-3.C: Same.
10512         * testsuite/libgomp.c++/taskloop-4.C: Same.
10513         * testsuite/libgomp.c/for-4.c: Same.
10514         * testsuite/libgomp.c/pr66199-3.c: Same.
10515         * testsuite/libgomp.c/pr66199-4.c: Same.
10516         * testsuite/libgomp.c/pr66199-6.c: Same.
10517         * testsuite/libgomp.c/taskloop-1.c: Same.
10518         * testsuite/libgomp.c/taskloop-3.c: Same.
10519         * testsuite/libgomp.c/taskloop-4.c: Same.
10520         * testsuite/libgomp.fortran/aligned1.f03: Same.
10521         * testsuite/libgomp.fortran/condinc1.f: Same.
10522         * testsuite/libgomp.fortran/condinc3.f90: Same.
10523         * testsuite/libgomp.fortran/crayptr1.f90: Same.
10524         * testsuite/libgomp.fortran/crayptr2.f90: Same.
10525         * testsuite/libgomp.fortran/crayptr3.f90: Same.
10526         * testsuite/libgomp.fortran/omp_cond1.f: Same.
10527         * testsuite/libgomp.fortran/omp_cond3.F90: Same.
10528         * testsuite/libgomp.fortran/pr66199-1.f90: Same.
10529         * testsuite/libgomp.fortran/pr66199-2.f90: Same.
10530         * testsuite/libgomp.fortran/recursion1.f90: Same.
10531         * testsuite/libgomp.fortran/target2.f90: Same.
10532         * testsuite/libgomp.fortran/target5.f90: Same.
10533         * testsuite/libgomp.fortran/task3.f90: Same.
10535 2017-09-28  Tom de Vries  <tom@codesourcery.com>
10537         * testsuite/libgomp.oacc-c-c++-common/loop-g-1.c (main): Remove
10538         vector_length(32) clause from acc parallel directive.
10539         * testsuite/libgomp.oacc-c-c++-common/loop-g-2.c (main): Same.
10541 2017-09-27  Tom de Vries  <tom@codesourcery.com>
10543         * testsuite/libgomp.oacc-c-c++-common/parallel-reduction.c (main):
10544         Remove acc_device_nvidia references.
10546 2017-09-16  Tom de Vries  <tom@codesourcery.com>
10548         PR c/81875
10549         * testsuite/libgomp.c-c++-common/pr81875.c: New test.
10551 2017-09-14  Tom de Vries  <tom@codesourcery.com>
10553         * testsuite/libgomp.c++/cancel-taskgroup-1.C: Remove.
10554         * testsuite/libgomp.c/cancel-taskgroup-1.c: Move to ...
10555         * testsuite/libgomp.c-c++-common/cancel-taskgroup-1.c: ... here.
10556         * testsuite/libgomp.c/c.exp: Include test-cases from
10557         libgomp.c-c++-common.
10558         * testsuite/libgomp.c++/c++.exp: Same.  Force c++-mode compilation of .c
10559         files.
10561 2017-09-14  Jakub Jelinek  <jakub@redhat.com>
10563         PR c++/81314
10564         * testsuite/libgomp.c++/pr81314.C: New test.
10566 2017-09-03  Gerald Pfeifer  <gerald@pfeifer.com>
10568         * libgomp.texi (Top): www.openacc.org now uses https.
10569         (Enabling OpenACC): Ditto.
10570         (acc_get_num_devices): Ditto.
10571         (acc_set_device_type): Ditto.
10572         (acc_get_device_type): Ditto.
10573         (acc_set_device_num): Ditto.
10574         (acc_get_device_num): Ditto.
10575         (acc_async_test): Ditto.
10576         (acc_async_test_all): Ditto.
10577         (acc_wait): Ditto.
10578         (acc_wait_all): Ditto.
10579         (acc_wait_all_async): Ditto.
10580         (acc_wait_async): Ditto.
10581         (acc_init): Ditto.
10582         (acc_shutdown): Ditto.
10583         (acc_on_device): Ditto.
10584         (acc_malloc): Ditto.
10585         (acc_free): Ditto.
10586         (acc_copyin): Ditto.
10587         (acc_present_or_copyin): Ditto.
10588         (acc_create): Ditto.
10589         (acc_present_or_create): Ditto.
10590         (acc_copyout): Ditto.
10591         (acc_delete): Ditto.
10592         (acc_update_device): Ditto.
10593         (acc_update_self): Ditto.
10594         (acc_map_data): Ditto.
10595         (acc_unmap_data): Ditto.
10596         (acc_deviceptr): Ditto.
10597         (acc_hostptr): Ditto.
10598         (acc_is_present): Ditto.
10599         (acc_memcpy_to_device): Ditto.
10600         (acc_memcpy_from_device): Ditto.
10601         (acc_get_current_cuda_device): Ditto.
10602         (acc_get_current_cuda_context): Ditto.
10603         (acc_get_cuda_stream): Ditto.
10604         (acc_set_cuda_stream): Ditto.
10605         (ACC_DEVICE_TYPE): Ditto.
10606         (ACC_DEVICE_NUM): Ditto.
10607         (OpenACC Library Interoperability): Ditto.
10609 2017-08-09  Jakub Jelinek  <jakub@redhat.com>
10611         PR c/81687
10612         * testsuite/libgomp.c/pr81687-1.c: New test.
10613         * testsuite/libgomp.c/pr81687-2.c: New test.
10615 2017-08-07  Jakub Jelinek  <jakub@redhat.com>
10617         PR c/69389
10618         * testsuite/libgomp.c/pr69389.c: New test.
10619         * testsuite/libgomp.c++/pr69389.C: New test.
10621 2017-08-07  Tom de Vries  <tom@codesourcery.com>
10623         PR middle-end/78266
10624         * testsuite/libgomp.oacc-c-c++-common/vprop-2.c: New test.
10625         * testsuite/libgomp.oacc-c-c++-common/vprop.c: Remove xfail.
10627 2017-07-27  Jakub Jelinek  <jakub@redhat.com>
10629         PR c/45784
10630         * testsuite/libgomp.c/pr45784.c: New test.
10631         * testsuite/libgomp.c++/pr45784.C: New test.
10633 2017-07-19  Tom de Vries  <tom@codesourcery.com>
10635         * testsuite/libgomp.oacc-c/vec.c: New test.
10637 2017-07-03  Tom de Vries  <tom@codesourcery.com>
10639         * plugin/plugin-hsa.c: Fix secure_getenv.h include.
10641 2017-06-27  Tom de Vries  <tom@codesourcery.com>
10643         * plugin/plugin-nvptx.c (notify_var): New function.
10644         (nvptx_exec): Use notify_var for GOMP_OPENACC_DIM.
10646 2017-06-27  Tom de Vries  <tom@codesourcery.com>
10648         * env.c (parse_unsigned_long_1): Factor out of ...
10649         (parse_unsigned_long): ... here.
10650         (parse_int_1): Factor out of ...
10651         (parse_int): ... here.
10652         (parse_int_secure): New function.
10653         (initialize_env): Use parse_int_secure for GOMP_DEBUG.
10654         * secure_getenv.h: Factor out of ...
10655         * plugin/plugin-hsa.c: ... here.
10656         * testsuite/libgomp.oacc-c-c++-common/gomp-debug-env.c: New test.
10658 2017-06-21  Jakub Jelinek  <jakub@redhat.com>
10660         PR c++/81130
10661         * testsuite/libgomp.c++/pr81130.C: New test.
10663 2017-06-17  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10665         * testsuite/libgomp.fortran/strassen.f90: Remove dg-skip-if
10666         default args.
10667         * testsuite/libgomp.oacc-c-c++-common/vprop.c: Remove
10668         dg-xfail-run-if default args.
10670 2017-06-02  Bernd Edlinger  <bernd.edlinger@hotmail.de>
10672         * testsuite/libgomp.c/pr39591-2.c: Fix test case.
10673         * testsuite/libgomp.c/pr39591-3.c: Likewise.
10675 2017-05-30  Jakub Jelinek  <jakub@redhat.com>
10677         PR libgomp/80822
10678         * config/linux/affinity.c (gomp_affinity_init_level_1): New function.
10679         (gomp_affinity_init_level): Use it.  Always analyze the core and thread
10680         sibling lists, depending on level just pick up what CPUs to put
10681         together into a place vs. whether add multiple ordered places.
10683 2017-05-24  Thomas Schwinge  <thomas@codesourcery.com>
10685         * openacc.h (acc_async_wait, acc_async_wait_all): New prototypes.
10686         * libgomp.map (OACC_2.0.1): Add these.
10687         * oacc-async.c (acc_async_wait, acc_async_wait_all): New aliases
10688         for "acc_wait", and "acc_wait_all", respectively.
10689         * openacc.f90 (acc_async_wait, acc_async_wait_all): New interfaces
10690         for "acc_wait", and "acc_wait_all", respectively.
10691         * openacc_lib.h (acc_async_wait, acc_async_wait_all): Likewise.
10692         * libgomp.texi (acc_wait, acc_wait_all): Update.
10693         * testsuite/libgomp.oacc-c-c++-common/par-reduction-2.c: Update.
10694         * testsuite/libgomp.oacc-fortran/par-reduction-2-1.f: New file.
10695         * testsuite/libgomp.oacc-fortran/par-reduction-2-2.f: Likewise.
10697         * openacc_lib.h (acc_pcopyin, acc_pcreate): Route to
10698         acc_present_or_copyin and acc_present_or_create procedures,
10699         respectively.
10700         * testsuite/libgomp.oacc-fortran/lib-32-1.f: Exercise these, and
10701         generally different variants of OpenACC Runtime Library functions.
10702         * testsuite/libgomp.oacc-fortran/lib-32-2.f: Likewise.
10704         * testsuite/libgomp.oacc-fortran/lib-32-1.f: New file.
10705         * testsuite/libgomp.oacc-fortran/lib-32-2.f: Likewise.
10707         * openacc.h (acc_pcopyin, acc_pcreate): Provide prototypes instead
10708         of preprocessor definitions.
10709         * libgomp.h (strong_alias): Guard by "#ifdef
10710         HAVE_ATTRIBUTE_ALIAS".
10711         * oacc-mem.c: Provide "acc_pcreate" as alias for
10712         "acc_present_or_create", and "acc_pcopyin" as alias for
10713         "acc_present_or_copyin".
10714         * libgomp.map: New version "OACC_2.0.1".
10715         (OACC_2.0.1): Add "acc_pcopyin", and "acc_pcreate".
10716         * testsuite/libgomp.oacc-c-c++-common/lib-38.c: Remove, merging
10717         its content into...
10718         * testsuite/libgomp.oacc-c-c++-common/lib-32.c: ... this file.
10719         Extend testing.
10721         * plugin/plugin-nvptx.c (nvptx_get_num_devices): Debugging output
10722         when disabling nvptx offloading.
10724 2017-05-23  Thomas Schwinge  <thomas@codesourcery.com>
10726         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-2.c: Update.
10727         * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Likewise.
10728         * testsuite/libgomp.oacc-fortran/kernels-loop-2.f95: Likewise.
10730         * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Rewrite.
10731         * testsuite/lib/libgomp.exp
10732         (check_effective_target_openacc_nvidia_accel_configured): New
10733         proc.
10734         * testsuite/libgomp.oacc-c++/c++.exp (check_effective_target_c)
10735         (check_effective_target_c++): New procs.
10736         * testsuite/libgomp.oacc-c/c.exp (check_effective_target_c)
10737         (check_effective_target_c++): Likewise.
10739 2017-05-22  Jakub Jelinek  <jakub@redhat.com>
10741         PR middle-end/80809
10742         * testsuite/libgomp.c/pr80809-2.c: New test.
10743         * testsuite/libgomp.c/pr80809-3.c: New test.
10745         PR middle-end/80809
10746         * testsuite/libgomp.c/pr80809-1.c: New test.
10748         PR middle-end/80853
10749         * testsuite/libgomp.c/pr80853.c: New test.
10751 2017-05-19  Thomas Schwinge  <thomas@codesourcery.com>
10753         * testsuite/libgomp.oacc-c++/template-reduction.C: Update.
10754         * testsuite/libgomp.oacc-c-c++-common/nested-2.c: Update.
10755         * testsuite/libgomp.oacc-fortran/data-4-2.f90: Likewise.
10756         * testsuite/libgomp.oacc-fortran/default-1.f90: Likewise.
10757         * testsuite/libgomp.oacc-fortran/non-scalar-data.f90: Likewise.
10759         * plugin/plugin-hsa.c (DLSYM_FN, init_hsa_runtime_functions):
10760         Debug output for failure.
10762 2017-05-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10764         * testsuite/lib/libgomp.exp: Load scanlang.exp.
10766 2017-04-27  Jakub Jelinek  <jakub@redhat.com>
10768         PR bootstrap/80531
10769         * configure.tgt (*-*-aix*): Add -frandom-seed=$@ to XCFLAGS to avoid
10770         bootstrap compare failures.
10772 2017-04-20  Alexander Monakov  <amonakov@ispras.ru>
10774         * testsuite/libgomp.c/target-36.c: New testcase.
10776 2017-04-13  Jakub Jelinek  <jakub@redhat.com>
10778         * plugin/plugin-nvptx.c (cuda_lib_inited): Use signed char type
10779         instead of char.
10781 2017-04-11  Jakub Jelinek  <jakub@redhat.com>
10783         PR libgomp/80394
10784         * testsuite/libgomp.c/pr80394.c: New test.
10786 2017-04-04  Jakub Jelinek  <jakub@redhat.com>
10788         PR libgomp/79876
10789         * config/posix/thread-stacksize.h: New file.
10790         * config/darwin/thread-stacksize.h: New file.
10791         * config/nvptx/thread-stacksize.h: New file.
10792         * env.c: Include thread-stacksize.h.
10793         (initialize_env): Initialize stacksize to GOMP_DEFAULT_STACKSIZE
10794         instead of 0.  Call pthread_attr_setstacksize even if
10795         GOMP_DEFAULT_STACKSIZE is non-zero.
10797 2017-03-30  Jakub Jelinek  <jakub@redhat.com>
10799         * env.c (initialize_env): Initialize stacksize to 0.
10801 2017-03-22  Cesar Philippidis  <cesar@codesourcery.com>
10803         PR c++/80029
10804         * testsuite/libgomp.oacc-c-c++-common/declare-vla.c: New test.
10806 2017-03-08  Jakub Jelinek  <jakub@redhat.com>
10808         PR c/79940
10809         * testsuite/libgomp.c/pr79940.c: New test.
10811 2017-02-15  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10813         * testsuite/libgomp.c/pr48591.c: Enable on all __float128
10814         targets.
10815         Add __float128 options.
10817 2017-02-11  John David Anglin  <danglin@gcc.gnu.org>
10819         * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: Remove
10820         hppa*-*-* dg-skip-if directive.
10822 2017-02-09  Jakub Jelinek  <jakub@redhat.com>
10824         * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: Move
10825         dg-skip-if directive into a comment.
10827 2017-02-09  Nathan Sidwell  <nathan@codesourcery.com>
10828             Chung-Lin Tang  <cltang@codesourcery.com>
10830         * testsuite/libgomp.oacc-c-c++-common/tile-1.c: New.
10831         * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Adjust and
10832         add additional case.
10833         * testsuite/libgomp.oacc-c-c++-common/vprop.c: XFAIL under
10834         "openacc_nvidia_accel_selected".
10835         * libgomp.oacc-fortran/nested-function-1.f90 (test2):
10836         Add num_workers(8) clause.
10838 2017-02-08  John David Anglin  <danglin@gcc.gnu.org>
10840         * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: Skip on
10841         hppa*-*-*.
10842         * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-dbl.c: Don't
10843         include complex.h on hppa*-*-hpux*.
10844         * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-flt.c: Likewise.
10846 2017-02-02  Thomas Schwinge  <thomas@codesourcery.com>
10848         * plugin/plugin-nvptx.c (nvptx_exec): Make it static.
10850         * libgomp-plugin.h (GOMP_OFFLOAD_openacc_parallel): Rename to
10851         GOMP_OFFLOAD_openacc_exec.  Adjust all users.
10852         (GOMP_OFFLOAD_openacc_get_current_cuda_device): Rename to
10853         GOMP_OFFLOAD_openacc_cuda_get_current_device.  Adjust all users.
10854         (GOMP_OFFLOAD_openacc_get_current_cuda_context): Rename to
10855         GOMP_OFFLOAD_openacc_cuda_get_current_context.  Adjust all users.
10856         (GOMP_OFFLOAD_openacc_get_cuda_stream): Rename to
10857         GOMP_OFFLOAD_openacc_cuda_get_stream.  Adjust all users.
10858         (GOMP_OFFLOAD_openacc_set_cuda_stream): Rename to
10859         GOMP_OFFLOAD_openacc_cuda_set_stream.  Adjust all users.
10861 2017-01-31  Thomas Schwinge  <thomas@codesourcery.com>
10863         * libgomp-plugin.h: #include <stdbool.h>.
10864         (GOMP_OFFLOAD_get_name, GOMP_OFFLOAD_get_caps)
10865         (GOMP_OFFLOAD_get_type, GOMP_OFFLOAD_get_num_devices)
10866         (GOMP_OFFLOAD_init_device, GOMP_OFFLOAD_fini_device)
10867         (GOMP_OFFLOAD_version, GOMP_OFFLOAD_load_image)
10868         (GOMP_OFFLOAD_unload_image, GOMP_OFFLOAD_alloc, GOMP_OFFLOAD_free)
10869         (GOMP_OFFLOAD_dev2host, GOMP_OFFLOAD_host2dev)
10870         (GOMP_OFFLOAD_dev2dev, GOMP_OFFLOAD_can_run, GOMP_OFFLOAD_run)
10871         (GOMP_OFFLOAD_async_run, GOMP_OFFLOAD_openacc_parallel)
10872         (GOMP_OFFLOAD_openacc_register_async_cleanup)
10873         (GOMP_OFFLOAD_openacc_async_test)
10874         (GOMP_OFFLOAD_openacc_async_test_all)
10875         (GOMP_OFFLOAD_openacc_async_wait)
10876         (GOMP_OFFLOAD_openacc_async_wait_async)
10877         (GOMP_OFFLOAD_openacc_async_wait_all)
10878         (GOMP_OFFLOAD_openacc_async_wait_all_async)
10879         (GOMP_OFFLOAD_openacc_async_set_async)
10880         (GOMP_OFFLOAD_openacc_create_thread_data)
10881         (GOMP_OFFLOAD_openacc_destroy_thread_data)
10882         (GOMP_OFFLOAD_openacc_get_current_cuda_device)
10883         (GOMP_OFFLOAD_openacc_get_current_cuda_context)
10884         (GOMP_OFFLOAD_openacc_get_cuda_stream)
10885         (GOMP_OFFLOAD_openacc_set_cuda_stream): New prototypes.
10886         * libgomp.h (struct acc_dispatch_t, struct gomp_device_descr): Use
10887         these.
10888         * plugin/plugin-hsa.c (GOMP_OFFLOAD_load_image)
10889         (GOMP_OFFLOAD_unload_image): Fix argument types.
10891 2017-01-26  Jakub Jelinek  <jakub@redhat.com>
10893         * testsuite/lib/libgomp.exp
10894         (check_effective_target_hsa_offloading_selected_nocache): Fix up
10895         check_compile invocation.  Fix up removal of executable.  Drop
10896         bogus "2>&1" argument.
10898         * testsuite/libgomp.fortran/declare-simd-4.f90: Add cleanup-modules
10899         directive.
10901 2017-01-24  Pekka Jääskeläinen  <pekka@parmance.com>
10902             Martin Jambor  <mjambor@suse.cz>
10904         * plugin/hsa.h: Moved to top level include.
10905         * plugin/plugin-hsa.c: Chanfgd include of hsa.h accordingly.
10907 2017-01-21  Jakub Jelinek  <jakub@redhat.com>
10909         PR other/79046
10910         * testsuite/Makefile.am (gcc_version): Use @get_gcc_base_ver@ instead
10911         of cat to get version from BASE-VER file.
10912         * testsuite/Makefile.in: Regenerated.
10914 2017-01-19  Jakub Jelinek  <jakub@redhat.com>
10916         * plugin/cuda/cuda.h (CUdeviceptr): Typedef to unsigned long long even
10917         for _WIN64.
10919 2017-01-17  Jakub Jelinek  <jakub@redhat.com>
10921         * plugin/hsa.h: Add GCC runtime library exception.
10922         * plugin/hsa_ext_finalize.h: Likewise.
10924         * plugin/configfrag.ac: For --without-cuda-driver don't initialize
10925         CUDA_DRIVER_INCLUDE nor CUDA_DRIVER_LIB.  If both
10926         CUDA_DRIVER_INCLUDE and CUDA_DRIVER_LIB are empty and linking small
10927         cuda program fails, define PLUGIN_NVPTX_DYNAMIC to 1 and use
10928         plugin/include/cuda as include dir and -ldl instead of -lcuda as
10929         library to link ptx plugin against.
10930         * plugin/plugin-nvptx.c: Include dlfcn.h if PLUGIN_NVPTX_DYNAMIC.
10931         (CUDA_CALLS): Define.
10932         (cuda_lib, cuda_lib_inited): New variables.
10933         (init_cuda_lib): New function.
10934         (CUDA_CALL_PREFIX): Define.
10935         (CUDA_CALL_ERET, CUDA_CALL_ASSERT): Use CUDA_CALL_PREFIX.
10936         (CUDA_CALL): Use FN instead of (FN).
10937         (CUDA_CALL_NOCHECK): Define.
10938         (cuda_error, fini_streams_for_device, select_stream_for_async,
10939         nvptx_attach_host_thread_to_device, nvptx_open_device, link_ptx,
10940         event_gc, nvptx_exec, nvptx_async_test, nvptx_async_test_all,
10941         nvptx_wait_all, nvptx_set_clocktick, GOMP_OFFLOAD_unload_image,
10942         nvptx_stacks_alloc, nvptx_stacks_free, GOMP_OFFLOAD_run): Use
10943         CUDA_CALL_NOCHECK.
10944         (nvptx_init): Call init_cuda_lib, if it fails, return false.  Use
10945         CUDA_CALL_NOCHECK.
10946         (nvptx_get_num_devices): Call init_cuda_lib, if it fails, return 0.
10947         Use CUDA_CALL_NOCHECK.
10948         * plugin/cuda/cuda.h: New file.
10949         * config.h.in: Regenerated.
10950         * configure: Regenerated.
10952         PR other/79046
10953         * configure.ac: Add GCC_BASE_VER.
10954         * Makefile.am (gcc_version): Use @get_gcc_base_ver@ instead of cat to
10955         get version from BASE-VER file.
10956         * testsuite/Makefile.in: Regenerated.
10957         * configure: Regenerated.
10958         * Makefile.in: Regenerated.
10960 2017-01-09  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
10962         PR libgomp/60670
10963         * Makefile.am: Make fincludedir multilib-aware.
10964         * Makefile.in: Regenerate.
10966 2017-01-01  Jakub Jelinek  <jakub@redhat.com>
10968         Update copyright years.
10970         * libgomp.texi: Bump @copying's copyright year.
10972 2016-12-02  Sebastian Huber  <sebastian.huber@embedded-brains.de>
10974         * libgomp/config/rtems/pool.h (gomp_thread_pool_reservoir): Use
10975         pthread_spinlock_t instead of gomp_mutex_t lock.
10976         (gomp_get_thread_pool): Likewise.
10977         (gomp_release_thread_pool): Likewise.
10978         * libgomp/config/rtems/proc.c (allocate_thread_pool_reservoir):
10979         Likewise.
10981 2016-12-02  Sebastian Huber  <sebastian.huber@embedded-brains.de>
10983         * config/rtems/pool.h (gomp_get_thread_pool): Return proper
10984         thread pool in case nthreads == 1.
10986 2016-11-30  Alexander Monakov  <amonakov@ispras.ru>
10988         * config/nvptx/env.c: Delete.
10989         * icv.c: Move definitions of ICV variables back ...
10990         * env.c: ...here.  Do not compile environment-related functionality if
10991         LIBGOMP_OFFLOADED_ONLY is set.
10993 2016-11-30  Alexander Monakov  <amonakov@ispras.ru>
10995         * configure.ac [nvptx*-*-*] (libgomp_offloaded_only): Set and use it...
10996         (LIBGOMP_OFFLOADED_ONLY): ...here; new define.
10997         * configure: Regenerate.
10998         * config.h.in: Likewise.
11000 2016-11-30  Alexander Monakov  <amonakov@ispras.ru>
11002         * Makefile.in: Regenerate with automake-1.11.6.
11003         * aclocal.m4: Likewise.
11004         * configure: Likewise.
11005         * testsuite/Makefile.in: Likewise.
11007 2016-11-28  Alexander Monakov  <amonakov@ispras.ru>
11009         * config/nvptx/critical.c: Delete to use generic implementation.
11011 2016-11-28  Jonas Hahnfeld  <Hahnfeld@itc.rwth-aachen.de>
11013         * config/linux/affinity.c [!HAVE_PTHREAD_AFFINITY_NP]: Include
11014         ../../affinity.c as fallback.
11015         * config/nvptx/affinity.c: Delete to use fallback implementation.
11017 2016-11-23  Alexander Monakov  <amonakov@ispras.ru>
11018             Jakub Jelinek  <jakub@redhat.com>
11019             Dmitry Melnik  <dm@ispras.ru>
11021         * Makefile.am (libgomp_la_SOURCES): Add atomic.c, icv.c, icv-device.c.
11022         * Makefile.in. Regenerate.
11023         * configure.ac [nvptx*-*-*] (libgomp_use_pthreads): Set and use it...
11024         (LIBGOMP_USE_PTHREADS): ...here; new define.
11025         * configure: Regenerate.
11026         * config.h.in: Likewise.
11027         * config/posix/affinity.c: Move to...
11028         * affinity.c: ...here (new file).  Guard use of Pthreads-specific
11029         interface by LIBGOMP_USE_PTHREADS. 
11030         * critical.c: Split out GOMP_atomic_{start,end} into...
11031         * atomic.c: ...here (new file).
11032         * env.c: Split out ICV definitions into...
11033         * icv.c: ...here (new file) and...
11034         * icv-device.c: ...here. New file.
11035         * config/linux/lock.c (gomp_init_lock_30): Move to generic lock.c.
11036         (gomp_destroy_lock_30): Ditto.
11037         (gomp_set_lock_30): Ditto.
11038         (gomp_unset_lock_30): Ditto.
11039         (gomp_test_lock_30): Ditto.
11040         (gomp_init_nest_lock_30): Ditto.
11041         (gomp_destroy_nest_lock_30): Ditto.
11042         (gomp_set_nest_lock_30): Ditto.
11043         (gomp_unset_nest_lock_30): Ditto.
11044         (gomp_test_nest_lock_30): Ditto.
11045         * lock.c: New.
11046         * config/nvptx/lock.c: New.
11047         * config/nvptx/bar.c: New.
11048         * config/nvptx/bar.h: New.
11049         * config/nvptx/doacross.h: New.
11050         * config/nvptx/error.c: New.
11051         * config/nvptx/icv-device.c: New.
11052         * config/nvptx/mutex.h: New.
11053         * config/nvptx/pool.h: New.
11054         * config/nvptx/proc.c: New.
11055         * config/nvptx/ptrlock.h: New.
11056         * config/nvptx/sem.h: New.
11057         * config/nvptx/simple-bar.h: New.
11058         * config/nvptx/target.c: New.
11059         * config/nvptx/task.c: New.
11060         * config/nvptx/team.c: New.
11061         * config/nvptx/time.c: New.
11062         * config/posix/simple-bar.h: New.
11063         * libgomp.h: Guard pthread.h inclusion.  Include simple-bar.h.
11064         (gomp_num_teams_var): Declare.
11065         (struct gomp_thread_pool): Change threads_dock member to
11066         gomp_simple_barrier_t.
11067         [__nvptx__] (gomp_thread): New implementation.
11068         (gomp_thread_attr): Guard by LIBGOMP_USE_PTHREADS.
11069         (gomp_thread_destructor): Ditto.
11070         (gomp_init_thread_affinity): Ditto.
11071         * team.c: Guard uses of Pthreads-specific interfaces by
11072         LIBGOMP_USE_PTHREADS.  Adjust all uses of threads_dock.
11073         (gomp_free_thread) [__nvptx__]: Do not call 'free'.
11074         * config/nvptx/alloc.c: Delete.
11075         * config/nvptx/barrier.c: Ditto.
11076         * config/nvptx/fortran.c: Ditto.
11077         * config/nvptx/iter.c: Ditto.
11078         * config/nvptx/iter_ull.c: Ditto.
11079         * config/nvptx/loop.c: Ditto.
11080         * config/nvptx/loop_ull.c: Ditto.
11081         * config/nvptx/ordered.c: Ditto.
11082         * config/nvptx/parallel.c: Ditto.
11083         * config/nvptx/priority_queue.c: Ditto.
11084         * config/nvptx/sections.c: Ditto.
11085         * config/nvptx/single.c: Ditto.
11086         * config/nvptx/splay-tree.c: Ditto.
11087         * config/nvptx/work.c: Ditto.
11088         * testsuite/libgomp.fortran/fortran.exp (lang_link_flags): Pass
11089         -foffload=-lgfortran in addition to -lgfortran.
11090         * testsuite/libgomp.oacc-fortran/fortran.exp (lang_link_flags): Ditto.
11091         * plugin/plugin-nvptx.c: Include <limits.h>.
11092         (struct targ_fn_descriptor): Add new fields.
11093         (struct ptx_device): Ditto.  Set them...
11094         (nvptx_open_device): ...here.
11095         (nvptx_adjust_launch_bounds): New.
11096         (nvptx_host2dev): Allow NULL 'nvthd'.
11097         (nvptx_dev2host): Ditto.
11098         (GOMP_OFFLOAD_get_caps): Add GOMP_OFFLOAD_CAP_OPENMP_400.
11099         (link_ptx): Adjust log sizes.
11100         (nvptx_host2dev): Allow NULL 'nvthd'.
11101         (nvptx_dev2host): Ditto.
11102         (nvptx_set_clocktick): New.  Use it...
11103         (GOMP_OFFLOAD_load_image): ...here.  Set new targ_fn_descriptor
11104         fields.
11105         (GOMP_OFFLOAD_dev2dev): New.
11106         (nvptx_adjust_launch_bounds): New.
11107         (nvptx_stacks_size): New.
11108         (nvptx_stacks_alloc): New.
11109         (nvptx_stacks_free): New.
11110         (GOMP_OFFLOAD_run): New.
11111         (GOMP_OFFLOAD_async_run): New (stub).
11113 2016-11-23  Martin Jambor  <mjambor@suse.cz>
11115         * testsuite/libgomp.hsa.c/bits-insns.c: New test.
11116         * testsuite/libgomp.hsa.c/tiling-1.c: Likewise.
11117         * testsuite/libgomp.hsa.c/tiling-2.c: Likewise.
11119 2016-11-23  Martin Liska  <mliska@suse.cz>
11120             Martin Jambor  <mjambor@suse.cz>
11122         * plugin/hsa.h: New file.
11123         * plugin/hsa_ext_finalize.h: New file.
11124         * plugin/configfrag.ac: Remove hsa-kmt-lib test.  Added checks for
11125         header file unistd.h, and functions secure_getenv, __secure_getenv,
11126         getuid, geteuid, getgid and getegid.
11127         * plugin/Makefrag.am (libgomp_plugin_hsa_la_CPPFLAGS): Added
11128         -D_GNU_SOURCE.
11129         * plugin/plugin-hsa.c: Include config.h, inttypes.h and stdbool.h.
11130         Handle various cases of secure_getenv presence, add an implementation
11131         when we can test effective UID and GID.
11132         (struct hsa_runtime_fn_info): New structure.
11133         (hsa_runtime_fn_info hsa_fns): New variable.
11134         (hsa_runtime_lib): Likewise.
11135         (support_cpu_devices): Likewise.
11136         (init_enviroment_variables): Load newly introduced ENV
11137         variables.
11138         (hsa_warn): Call hsa run-time functions via hsa_fns structure.
11139         (hsa_fatal): Likewise.
11140         (DLSYM_FN): New macro.
11141         (init_hsa_runtime_functions): New function.
11142         (suitable_hsa_agent_p): Call hsa run-time functions via hsa_fns
11143         structure.  Depending on environment, also allow CPU devices.
11144         (init_hsa_context): Call hsa run-time functions via hsa_fns structure.
11145         (get_kernarg_memory_region): Likewise.
11146         (GOMP_OFFLOAD_init_device): Likewise.
11147         (destroy_hsa_program): Likewise.
11148         (init_basic_kernel_info): New function.
11149         (GOMP_OFFLOAD_load_image): Use it.
11150         (create_and_finalize_hsa_program): Call hsa run-time functions via
11151         hsa_fns structure.
11152         (create_single_kernel_dispatch): Likewise.
11153         (release_kernel_dispatch): Likewise.
11154         (init_single_kernel): Likewise.
11155         (parse_target_attributes): Allow up multiple HSA grid dimensions.
11156         (get_group_size): New function.
11157         (run_kernel): Likewise.
11158         (GOMP_OFFLOAD_run): Outline most functionality to run_kernel.
11159         (GOMP_OFFLOAD_fini_device): Call hsa run-time functions via hsa_fns
11160         structure.
11161         * testsuite/lib/libgomp.exp: Remove hsa_kmt_lib support.
11162         * testsuite/libgomp-test-support.exp.in: Likewise.
11163         * Makefile.in: Regenerated.
11164         * aclocal.m4: Likewise.
11165         * config.h.in: Likewise.
11166         * configure: Likewise.
11167         * testsuite/Makefile.in: Likewise.
11169 2016-11-15  Martin Jambor  <mjambor@suse.cz>
11170             Alexander Monakov  <amonakov@ispras.ru>
11172         * testsuite/libgomp.fortran/examples-4/device-1.f90 (e_57_1): Add
11173         mapping clauses to target constructs.
11174         * testsuite/libgomp.fortran/examples-4/device-3.f90 (e_57_3): Ditto.
11176 2016-11-15  Matthias Klose  <doko@ubuntu.com>
11178         * configure: Regenerate.
11180 2016-11-10  Jakub Jelinek  <jakub@redhat.com>
11182         * omp_lib.f90.in (openmp_version): Change to 201511 from 201307.
11183         * omp_lib.h.in (openmp_version): Likewise.
11184         * testsuite/libgomp.fortran/openmp_version-1.f: Expect 201511 instead
11185         of 201307.
11186         * testsuite/libgomp.fortran/openmp_version-2.f90: Likewise.
11188         * testsuite/libgomp.fortran/examples-4/declare_target-1.f90
11189         (fib_wrapper): Add map(from: x) clause.
11190         * testsuite/libgomp.fortran/examples-4/declare_target-2.f90
11191         (e_53_2): Likewise.
11192         * testsuite/libgomp.fortran/examples-4/declare_target-4.f90
11193         (accum): Add map(tmp) clause.
11194         * testsuite/libgomp.fortran/examples-4/declare_target-5.f90
11195         (accum): Add map(tofrom: tmp) clause.
11196         * testsuite/libgomp.fortran/examples-4/target_data-3.f90
11197         (gramSchmidt): Likewise.
11198         * testsuite/libgomp.fortran/examples-4/teams-2.f90 (dotprod): Add
11199         map(tofrom: sum) clause.
11200         * testsuite/libgomp.fortran/nestedfn5.f90 (foo): Add twice
11201         map (alloc: a, l) clause.  Add defaultmap(tofrom: scalar) clause.
11202         * testsuite/libgomp.fortran/pr66199-2.f90: Adjust for linear clause
11203         only allowed on the loop iterator.
11204         * testsuite/libgomp.fortran/target4.f90 (foo): Add map(t) clause.
11205         * testsuite/libgomp.fortran/taskloop2.f90: New test.
11206         * testsuite/libgomp.fortran/taskloop4.f90: New test.
11207         * testsuite/libgomp.fortran/doacross1.f90: New test.
11208         * testsuite/libgomp.fortran/doacross3.f90: New test.
11209         * testsuite/libgomp.fortran/taskloop1.f90: New test.
11210         * testsuite/libgomp.fortran/taskloop3.f90: New test.
11211         * testsuite/libgomp.fortran/doacross2.f90: New test.
11212         * testsuite/libgomp.c/doacross-1.c (main): Add missing
11213         #pragma omp atomic read.
11214         * testsuite/libgomp.c/doacross-2.c (main): Likewise.
11215         * testsuite/libgomp.c/doacross-3.c (main): Likewise.
11217 2016-11-02  Cesar Philippidis  <cesar@codesourcery.com>
11218             Nathan Sidwell  <nathan@acm.org>
11220         * plugin/plugin-nvptx.c (nvptx_exec): Interrogate board attributes
11221         to determine default geometry.
11222         * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Set gang
11223         dimension.
11225 2016-11-01  Jakub Jelinek  <jakub@redhat.com>
11227         * hashtab.h: Use standard GPLv3 with runtime exception
11228         boilerplate.
11230 2016-10-27  Aldy Hernandez  <aldyh@redhat.com>
11232         * oacc-init.c (goacc_new_thread): Use sizeof of the appropriate
11233         size when allocating new thread.
11235 2016-09-14  Marek Polacek  <polacek@redhat.com>
11237         * testsuite/libgomp.c++/atomic-3.C: Use -Wno-deprecated.
11239 2016-08-19  Jakub Jelinek  <jakub@redhat.com>
11241         PR fortran/71014
11242         * testsuite/libgomp.fortran/pr71014.f90: New test.
11244 2016-08-18  Chung-Lin Tang  <cltang@codesourcery.com>
11246         PR middle-end/70895
11247         * testsuite/libgomp.oacc-fortran/reduction-7.f90: Add explicit
11248         firstprivate clauses.
11249         * testsuite/libgomp.oacc-fortran/reduction-6.f90: Remove explicit
11250         copy clauses.
11251         * testsuite/libgomp.oacc-c-c++-common/reduction-7.c: Likewise.
11252         * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-flt.c: Likewise.
11253         * testsuite/libgomp.oacc-c-c++-common/reduction-flt.c: Likewise.
11254         * testsuite/libgomp.oacc-c-c++-common/collapse-2.c: Likewise.
11255         * testsuite/libgomp.oacc-c-c++-common/loop-red-wv-1.c: Likewise.
11256         * testsuite/libgomp.oacc-c-c++-common/collapse-4.c: Likewise.
11257         * testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c: Likewise.
11258         * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-dbl.c: Likewise.
11259         * testsuite/libgomp.oacc-c-c++-common/loop-red-g-1.c: Likewise.
11260         * testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c: Likewise.
11261         * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c: Likewise.
11262         * testsuite/libgomp.oacc-c-c++-common/reduction-dbl.c: Likewise.
11264 2016-08-14  Chung-Lin Tang  <cltang@codesourcery.com>
11266         PR fortran/70598
11267         * testsuite/libgomp.oacc-fortran/host_data-1.f90: New test.
11269 2016-08-08  Jakub Jelinek  <jakub@redhat.com>
11271         PR c++/58706
11272         * testsuite/libgomp.c++/pr58706.C: New test.
11274 2016-08-04  Thomas Schwinge  <thomas@codesourcery.com>
11276         * testsuite/libgomp.oacc-c++/routine-1-auto.C: New file.
11277         * testsuite/libgomp.oacc-c++/routine-1-template-auto.C: Likewise.
11278         * testsuite/libgomp.oacc-c++/routine-1-template-trailing-return-type.C:
11279         Likewise.
11280         * testsuite/libgomp.oacc-c++/routine-1-template.C: Likewise.
11281         * testsuite/libgomp.oacc-c++/routine-1-trailing-return-type.C:
11282         Likewise.
11283         * testsuite/libgomp.oacc-c-c++-common/routine-1.c: Adjust.
11285         * testsuite/libgomp.oacc-c-c++-common/crash-1.c: Make it a "link"
11286         test, and don't hardcode -O0.
11288 2016-08-03  Nathan Sidwell  <nathan@codesourcery.com>
11290         * testsuite/libgomp.oacc-c-c++-common/crash-1.c: New.
11292 2016-07-15  Cesar Philippidis  <cesar@codesourcery.com>
11294         * testsuite/libgomp.oacc-c-c++-common/zero_length_subarrays.c: New
11295         test.
11297 2016-07-03  H.J. Lu  <hongjiu.lu@intel.com>
11299         PR middle-end/71734
11300         * testsuite/libgomp.fortran/pr71734-1.f90: New test.
11301         * testsuite/libgomp.fortran/pr71734-2.f90: Likewise.
11303 2016-07-01  Jakub Jelinek  <jakub@redhat.com>
11305         PR fortran/71717
11306         * testsuite/libgomp.fortran/associate3.f90: New test.
11308 2016-06-17  Jakub Jelinek  <jakub@redhat.com>
11310         * testsuite/libgomp.c++/target-21.C: New test.
11312 2016-06-16  Jakub Jelinek  <jakub@redhat.com>
11314         * testsuite/libgomp.c++/target-20.C: New test.
11316 2016-06-10  Thomas Schwinge  <thomas@codesourcery.com>
11317             Cesar Philippidis  <cesar@codesourcery.com>
11319         PR middle-end/71373
11320         * libgomp.oacc-c/nested-function-1.c: New file.
11321         * libgomp.oacc-c/nested-function-2.c: Likewise.
11322         * libgomp.oacc-fortran/nested-function-1.f90: Likewise.
11323         * libgomp.oacc-fortran/nested-function-2.f90: Likewise.
11324         * libgomp.oacc-fortran/nested-function-3.f90: Likewise.
11326 2016-06-10  Thomas Schwinge  <thomas@codesourcery.com>
11328         PR c/71381
11329         * testsuite/libgomp.oacc-c-c++-common/cache-1.c: #include
11330         "../../../gcc/testsuite/c-c++-common/goacc/cache-1.c".
11331         * testsuite/libgomp.oacc-fortran/cache-1.f95: New file.
11333 2016-06-03  Chung-Lin Tang  <cltang@codesourcery.com>
11335         * testsuite/libgomp.oacc-fortran/reduction-8.f90: New testcase.
11336         * testsuite/libgomp.oacc-c-c++-common/reduction-8.c: New testcase.
11338 2016-06-01  Cesar Philippidis  <cesar@codesourcery.com>
11340         PR c/70688
11341         * testsuite/libgomp.oacc-c-c++-common/pr70688.c: New file.
11343 2016-05-26  Jakub Jelinek  <jakub@redhat.com>
11345         * testsuite/libgomp.c/doacross-1.c (main): Use schedule(static)
11346         instead of invalid schedule(static, 0).
11347         * testsuite/libgomp.c/doacross-2.c (main): Likewise.
11349 2016-05-26  Chung-Lin Tang  <cltang@codesourcery.com>
11351         * oacc-plugin.h (GOMP_PLUGIN_async_unmap_vars): Add int parameter.
11352         * oacc-plugin.c (GOMP_PLUGIN_async_unmap_vars): Add 'int async'
11353         parameter, use to set async stream around call to gomp_unmap_vars,
11354         call gomp_unmap_vars() with 'do_copyfrom' set to true.
11355         * plugin/plugin-nvptx.c (struct ptx_event): Add 'int val' field.
11356         (event_gc): Adjust event handling loop, collect PTX_EVT_ASYNC_CLEANUP
11357         events and call GOMP_PLUGIN_async_unmap_vars() for each of them.
11358         (event_add): Add int parameter, initialize 'val' field when
11359         adding new ptx_event struct.
11360         (nvptx_evec): Adjust event_add() call arguments.
11361         (nvptx_host2dev): Likewise.
11362         (nvptx_dev2host): Likewise.
11363         (nvptx_wait_async): Likewise.
11364         (nvptx_wait_all_async): Likewise.
11365         (GOMP_OFFLOAD_openacc_register_async_cleanup): Add async parameter,
11366         pass to event_add() call.
11367         * oacc-host.c (host_openacc_register_async_cleanup): Add 'int async'
11368         parameter.
11369         * oacc-mem.c (gomp_acc_remove_pointer): Adjust async case to
11370         call openacc.register_async_cleanup_func() hook.
11371         * oacc-parallel.c (GOACC_parallel_keyed): Likewise.
11372         * target.c (gomp_copy_from_async): Delete function.
11373         (gomp_map_vars): Remove async_refcount.
11374         (gomp_unmap_vars): Likewise.
11375         (gomp_load_image_to_device): Likewise.
11376         (omp_target_associate_ptr): Likewise.
11377         * libgomp.h (struct splay_tree_key_s): Remove async_refcount.
11378         (acc_dispatch_t.register_async_cleanup_func): Add int parameter.
11379         (gomp_copy_from_async): Remove.
11381 2016-05-26  Chung-Lin Tang  <cltang@codesourcery.com>
11383         * target.c (gomp_device_copy): New function.
11384         (gomp_copy_host2dev): Likewise.
11385         (gomp_copy_dev2host): Likewise.
11386         (gomp_free_device_memory): Likewise.
11387         (gomp_map_vars_existing): Adjust to call gomp_copy_host2dev.
11388         (gomp_map_pointer): Likewise.
11389         (gomp_map_vars): Adjust to call gomp_copy_host2dev, handle
11390         NULL value from alloc_func plugin hook.
11391         (gomp_unmap_tgt): Adjust to call gomp_free_device_memory.
11392         (gomp_copy_from_async): Adjust to call gomp_copy_dev2host.
11393         (gomp_unmap_vars): Likewise.
11394         (gomp_update): Adjust to call gomp_copy_dev2host and
11395         gomp_copy_host2dev functions.
11396         (gomp_unload_image_from_device): Handle false value from
11397         unload_image_func plugin hook.
11398         (gomp_init_device): Handle false value from init_device_func
11399         plugin hook.
11400         (gomp_exit_data): Adjust to call gomp_copy_dev2host.
11401         (omp_target_free): Adjust to call gomp_free_device_memory.
11402         (omp_target_memcpy): Handle return values from host2dev_func,
11403         dev2host_func, and dev2dev_func plugin hooks.
11404         (omp_target_memcpy_rect_worker): Likewise.
11405         (gomp_target_fini): Handle false value from fini_device_func
11406         plugin hook.
11407         * libgomp.h (struct gomp_device_descr): Adjust return type of
11408         init_device_func, fini_device_func, unload_image_func, free_func,
11409         dev2host_func,host2dev_func, and dev2dev_func plugin hooks to 'bool'.
11410         * oacc-init.c (acc_shutdown_1): Handle false value from
11411         fini_device_func plugin hook.
11412         * oacc-host.c (host_init_device): Change return type to bool.
11413         (host_fini_device): Likewise.
11414         (host_unload_image): Likewise.
11415         (host_free): Likewise.
11416         (host_dev2host): Likewise.
11417         (host_host2dev): Likewise.
11418         * oacc-mem.c (acc_free): Handle plugin hook fatal error case.
11419         (acc_memcpy_to_device): Likewise.
11420         (acc_memcpy_from_device): Likewise.
11421         (delete_copyout): Add libfnname parameter, handle free_func
11422         hook fatal error case.
11423         (acc_delete): Adjust delete_copyout call.
11424         (acc_copyout): Likewise.
11425         (update_dev_host): Move gomp_mutex_unlock to after
11426         host2dev/dev2host hook calls.
11428         * plugin/plugin-hsa.c (hsa_warn): Adjust 'hsa_error' local variable
11429         to 'hsa_error_msg', for clarity.
11430         (hsa_fatal): Likewise.
11431         (hsa_error): New function.
11432         (init_hsa_context): Change return type to bool, adjust to return
11433         false on error.
11434         (GOMP_OFFLOAD_get_num_devices): Adjust to handle init_hsa_context
11435         return value.
11436         (GOMP_OFFLOAD_init_device): Change return type to bool, adjust to
11437         return false on error.
11438         (get_agent_info): Adjust to return NULL on error.
11439         (destroy_hsa_program): Change return type to bool, adjust to
11440         return false on error.
11441         (GOMP_OFFLOAD_load_image): Adjust to return -1 on error.
11442         (destroy_module): Change return type to bool, adjust to
11443         return false on error.
11444         (GOMP_OFFLOAD_unload_image): Likewise.
11445         (GOMP_OFFLOAD_fini_device): Likewise.
11446         (GOMP_OFFLOAD_alloc): Change to return NULL when called.
11447         (GOMP_OFFLOAD_free): Change to return false when called.
11448         (GOMP_OFFLOAD_dev2host): Likewise.
11449         (GOMP_OFFLOAD_host2dev): Likewise.
11450         (GOMP_OFFLOAD_dev2dev): Likewise.
11452         * plugin/plugin-nvptx.c (CUDA_CALL_ERET): New convenience macro.
11453         (CUDA_CALL): Likewise.
11454         (CUDA_CALL_ASSERT): Likewise.
11455         (map_init): Change return type to bool, use CUDA_CALL* macros.
11456         (map_fini): Likewise.
11457         (init_streams_for_device): Change return type to bool, adjust
11458         call to map_init.
11459         (fini_streams_for_device): Change return type to bool, adjust
11460         call to map_fini.
11461         (select_stream_for_async): Release stream_lock before calls to
11462         GOMP_PLUGIN_fatal, adjust call to map_init.
11463         (nvptx_init): Use CUDA_CALL* macros.
11464         (nvptx_attach_host_thread_to_device): Change return type to bool,
11465         use CUDA_CALL* macros.
11466         (nvptx_open_device): Use CUDA_CALL* macros.
11467         (nvptx_close_device): Change return type to bool, use CUDA_CALL*
11468         macros.
11469         (nvptx_get_num_devices): Use CUDA_CALL* macros.
11470         (link_ptx): Change return type to bool, use CUDA_CALL* macros.
11471         (nvptx_exec): Use CUDA_CALL* macros.
11472         (nvptx_alloc): Use CUDA_CALL* macros.
11473         (nvptx_free): Change return type to bool, use CUDA_CALL* macros.
11474         (nvptx_host2dev): Likewise.
11475         (nvptx_dev2host): Likewise.
11476         (nvptx_wait): Use CUDA_CALL* macros.
11477         (nvptx_wait_async): Likewise.
11478         (nvptx_wait_all): Likewise.
11479         (nvptx_wait_all_async): Likewise.
11480         (nvptx_set_cuda_stream): Adjust order of stream_lock acquire,
11481         use CUDA_CALL* macros, adjust call to map_fini.
11482         (GOMP_OFFLOAD_init_device): Change return type to bool,
11483         adjust code accordingly.
11484         (GOMP_OFFLOAD_fini_device): Likewise.
11485         (GOMP_OFFLOAD_load_image): Adjust calls to
11486         nvptx_attach_host_thread_to_device/link_ptx to handle errors,
11487         use CUDA_CALL* macros.
11488         (GOMP_OFFLOAD_unload_image): Change return type to bool, adjust
11489         return code.
11490         (GOMP_OFFLOAD_alloc): Adjust calls to code to handle error return.
11491         (GOMP_OFFLOAD_free): Change return type to bool, adjust calls to
11492         handle error return.
11493         (GOMP_OFFLOAD_dev2host): Likewise.
11494         (GOMP_OFFLOAD_host2dev): Likewise.
11495         (GOMP_OFFLOAD_openacc_register_async_cleanup): Use CUDA_CALL* macros.
11496         (GOMP_OFFLOAD_openacc_create_thread_data): Likewise.
11498 2016-05-24  Cesar Philippidis  <cesar@codesourcery.com>
11500         * oacc-mem.c (acc_malloc): Update handling of shared-memory targets.
11501         (acc_free): Likewise.
11502         (acc_memcpy_to_device): Likewise.
11503         (acc_memcpy_from_device): Likewise.
11504         (acc_deviceptr): Likewise.
11505         (acc_hostptr): Likewise.
11506         (acc_is_present): Likewise.
11507         (acc_map_data): Likewise.
11508         (acc_unmap_data): Likewise.
11509         (present_create_copy): Likewise.
11510         (delete_copyout): Likewise.
11511         (update_dev_host): Likewise.
11512         * testsuite/libgomp.oacc-c-c++-common/asyncwait-1.c: Remove xfail.
11513         * testsuite/libgomp.oacc-c-c++-common/data-2-lib.c: New test.
11514         * testsuite/libgomp.oacc-c-c++-common/data-2.c: Adjust test.
11515         * testsuite/libgomp.oacc-c-c++-common/data-3.c: Likewise.
11516         * testsuite/libgomp.oacc-c-c++-common/enter_exit-lib.c: New test.
11517         * testsuite/libgomp.oacc-c-c++-common/lib-13.c: Adjust test so that
11518         it only runs on nvptx targets.
11519         * testsuite/libgomp.oacc-c-c++-common/lib-14.c: Likewise.
11520         * testsuite/libgomp.oacc-c-c++-common/lib-15.c: Likewise.
11521         * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
11522         * testsuite/libgomp.oacc-c-c++-common/lib-17.c: Likewise.
11523         * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
11524         * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
11525         * testsuite/libgomp.oacc-c-c++-common/lib-21.c: Likewise.
11526         * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Likewise.
11527         * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
11528         * testsuite/libgomp.oacc-c-c++-common/lib-24.c: Likewise.
11529         * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
11530         * testsuite/libgomp.oacc-c-c++-common/lib-28.c: Likewise.
11531         * testsuite/libgomp.oacc-c-c++-common/lib-29.c: Likewise.
11532         * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
11533         * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
11534         * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
11535         * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Likewise.
11536         * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
11537         * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Likewise.
11538         * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
11539         * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Likewise.
11540         * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
11541         * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
11543 2016-05-23  Martin Jambor  <mjambor@suse.cz>
11545         * testsuite/libgomp.hsa.c/switch-sbr-2.c: New test.
11547 2016-05-17  Chung-Lin Tang  <cltang@codesourcery.com>
11549         * oacc-init.c (acc_init): Remove !cached_base_dev condition on call
11550         to gomp_init_targets_once.
11551         (acc_set_device_type): Remove !cached_base_dev condition on call to
11552         gomp_init_targets_once, move call to before acc_device_lock acquire,
11553         to avoid deadlock.
11554         (acc_get_device_num): Remove !cached_base_dev condition on call to
11555         gomp_init_targets_once.
11556         (acc_set_device_num): Likewise.
11558 2016-05-16  Martin Jambor  <mjambor@suse.cz>
11560         * testsuite/libgomp.hsa.c/complex-align-2.c: New test.
11562 2016-05-02  Nathan Sidwell  <nathan@codesourcery.com>
11564         * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Adjust
11565         expected partitioning.
11567 2016-04-29  Cesar Philippidis  <cesar@codesourcery.com>
11569         PR middle-end/70626
11570         * testsuite/libgomp.oacc-c++/template-reduction.C: Adjust test.
11571         * testsuite/libgomp.oacc-c-c++-common/combined-reduction.c: New test.
11572         * testsuite/libgomp.oacc-fortran/combined-reduction.f90: New test.
11574 2016-04-21  Alexander Monakov  <amonakov@ispras.ru>
11576         * plugin/plugin-nvptx.c (map_fini): Make cuMemFreeHost error
11577         non-fatal.
11579 2016-04-19  Jakub Jelinek  <jakub@redhat.com>
11581         PR middle-end/70680
11582         * testsuite/libgomp.c/pr70680-1.c: New test.
11583         * testsuite/libgomp.c/pr70680-2.c: New test.
11585 2016-04-14  Cesar Philippidis  <cesar@codesourcery.com>
11587         * testsuite/libgomp.oacc-fortran/non-scalar-data.f90: Don't
11588         pass parameter variables to subroutines.
11590 2016-04-14  Cesar Philippidis  <cesar@codesourcery.com>
11592         PR middle-end/70643
11593         * testsuite/libgomp.oacc-fortran/pr70643.f90: New test.
11595 2016-04-13  Cesar Philippidis  <cesar@codesourcery.com>
11597         PR testsuite/68242
11598         * testsuite/libgomp.oacc-c-c++-common/reduction-1.c: Adjust test.
11599         * testsuite/libgomp.oacc-c-c++-common/reduction-2.c: Likewise.
11601 2016-04-12  Thomas Schwinge  <thomas@codesourcery.com>
11603         * libgomp_g.h: Rename GOACC_parallel_keyd prototype to
11604         GOACC_parallel_keyed, restore GOACC_parallel prototype, new
11605         GOACC_declare prototype.
11607         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gang-np-1.c:
11608         Merge this file, and...
11609         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gv-np-1.c:
11610         ... this file, and...
11611         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gw-np-1.c:
11612         ... this file, and...
11613         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-1.c:
11614         ... this file, and...
11615         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-2.c:
11616         ... this file, and...
11617         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-3.c:
11618         ... this file, and...
11619         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-4.c:
11620         ... this file, and...
11621         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-vector-p-1.c:
11622         ... this file, and...
11623         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-vector-p-2.c:
11624         ... this file, and...
11625         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-worker-p-1.c:
11626         ... this file, and...
11627         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-1.c:
11628         ... this file, and...
11629         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-2.c:
11630         ... this file, and...
11631         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-3.c:
11632         ... this file into...
11633         * testsuite/libgomp.oacc-c-c++-common/reduction-7.c: ... this
11634         file.
11636         * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-2.c:
11637         Make failure observable.
11639 2016-04-12  Jakub Jelinek  <jakub@redhat.com>
11641         * libgomp.h (struct gomp_target_task): Remove firstprivate_copies
11642         field.
11643         * target.c (gomp_target_fallback_firstprivate,
11644         gomp_target_unshare_firstprivate): Removed.
11645         (GOMP_target_ext): Copy firstprivate vars into gomp_allocaed memory
11646         before waiting for dependencies.
11647         (gomp_target_task_fn): Don't copy firstprivate vars here.
11648         * task.c (GOMP_PLUGIN_target_task_completion): Don't free
11649         firstprivate_copies here.
11650         (gomp_create_target_task): Don't initialize firstprivate_copies field.
11651         * testsuite/libgomp.c/target-25.c (main): Use map (to:) instead of
11652         explicit/implicit firstprivate.
11654 2016-04-08  Cesar Philippidis  <cesar@codesourcery.com>
11656         PR lto/70289
11657         PR ipa/70348
11658         PR tree-optimization/70373
11659         PR middle-end/70533
11660         PR middle-end/70534
11661         PR middle-end/70535
11662         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gang-np-1.c: New
11663         test.
11664         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gw-np-1.c: New
11665         test.
11666         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-1.c: New
11667         test.
11668         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-2.c: New
11669         test.
11670         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-3.c: New
11671         test.
11672         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-4.c: New
11673         test.
11674         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-vector-p-1.c: New
11675         test.
11676         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-vector-p-2.c: New
11677         test.
11678         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-worker-p-1.c: New
11679         test.
11680         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-1.c: New test.
11681         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-2.c: New test.
11682         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-3.c: New test.
11683         * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-1.c: New
11684         test.
11685         * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-2.c: New
11686         test.
11687         * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-3.c: New
11688         test.
11689         * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-4.c: New
11690         test.
11691         * testsuite/libgomp.oacc-c-c++-common/par-reduction-1.c: Add test
11692         coverage.
11693         * testsuite/libgomp.oacc-c-c++-common/par-reduction-2.c: Likewise.
11694         * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Likewise.
11695         * testsuite/libgomp.oacc-c-c++-common/parallel-reduction.c: New test.
11696         * testsuite/libgomp.oacc-c-c++-common/pr70289.c: New test.
11697         * testsuite/libgomp.oacc-c-c++-common/pr70373.c: New test.
11698         * testsuite/libgomp.oacc-c-c++-common/reduction-1.c: Add test
11699         coverage.
11700         * testsuite/libgomp.oacc-c-c++-common/reduction-2.c: Likewise.
11701         * testsuite/libgomp.oacc-c-c++-common/reduction-3.c: Likewise.
11702         * testsuite/libgomp.oacc-c-c++-common/reduction-4.c: Likewise.
11703         * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Likewise.
11704         * testsuite/libgomp.oacc-c-c++-common/reduction-6.c: New test.
11705         * testsuite/libgomp.oacc-c-c++-common/reduction.h: New test.
11706         * testsuite/libgomp.oacc-fortran/parallel-reduction.f90: New test.
11707         * testsuite/libgomp.oacc-fortran/pr70289.f90: New test.
11708         * testsuite/libgomp.oacc-fortran/reduction-1.f90: Add test coverage.
11709         * testsuite/libgomp.oacc-fortran/reduction-2.f90: Likewise.
11710         * testsuite/libgomp.oacc-fortran/reduction-3.f90: Likewise.
11711         * testsuite/libgomp.oacc-fortran/reduction-4.f90: Likewise.
11712         * testsuite/libgomp.oacc-fortran/reduction-5.f90: Likewise.
11713         * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
11714         * testsuite/libgomp.oacc-fortran/reduction-7.f90: New test.
11716 2016-03-30  Thomas Schwinge  <thomas@codesourcery.com>
11717             James Norris  <jnorris@codesourcery.com>
11718             Nathan Sidwell  <nathan@codesourcery.com>
11719             Julian Brown  <julian@codesourcery.com>
11720             Cesar Philippidis  <cesar@codesourcery.com>
11721             Chung-Lin Tang  <cltang@codesourcery.com>
11722             Tom de Vries  <tom@codesourcery.com>
11724         * testsuite/libgomp.oacc-c-c++-common/clauses-1.c: Update.
11725         * testsuite/libgomp.oacc-c-c++-common/deviceptr-1.c: Likewise.
11726         * testsuite/libgomp.oacc-c-c++-common/if-1.c: Likewise.
11727         * testsuite/libgomp.oacc-c-c++-common/vector-loop.c: Likewise.
11728         * testsuite/libgomp.oacc-fortran/asyncwait-1.f90: Likewise.
11729         * testsuite/libgomp.oacc-fortran/asyncwait-2.f90: Likewise.
11730         * testsuite/libgomp.oacc-fortran/asyncwait-3.f90: Likewise.
11731         * testsuite/libgomp.oacc-fortran/declare-1.f90: Likewise.
11732         * testsuite/libgomp.oacc-c-c++-common/asyncwait-1.c: Likewise.
11733         XFAIL.
11734         * testsuite/libgomp.oacc-c-c++-common/firstprivate-1.c: Update.
11735         Incorporate...
11736         * testsuite/libgomp.oacc-c-c++-common/firstprivate-2.c: ... this
11737         file.
11738         * testsuite/libgomp.oacc-c++/template-reduction.C: New file.
11739         * testsuite/libgomp.oacc-c-c++-common/gang-static-1.c: Likewise.
11740         * testsuite/libgomp.oacc-c-c++-common/gang-static-2.c: Likewise.
11741         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-clauses.c:
11742         Likewise.
11743         * testsuite/libgomp.oacc-c-c++-common/private-variables.c:
11744         Likewise.
11745         * testsuite/libgomp.oacc-c-c++-common/reduction-7.c: Likewise.
11746         * testsuite/libgomp.oacc-c-c++-common/routine-1.c: Likewise.
11747         * testsuite/libgomp.oacc-c-c++-common/routine-4.c: Likewise.
11748         * testsuite/libgomp.oacc-c-c++-common/routine-wv-2.c: Likewise.
11749         * testsuite/libgomp.oacc-fortran/clauses-1.f90: Likewise.
11750         * testsuite/libgomp.oacc-fortran/default-1.f90: Likewise.
11751         * testsuite/libgomp.oacc-fortran/firstprivate-1.f90: Likewise.
11752         * testsuite/libgomp.oacc-fortran/gang-static-1.f90: Likewise.
11753         * testsuite/libgomp.oacc-fortran/if-1.f90: Likewise.
11754         * testsuite/libgomp.oacc-fortran/implicit-firstprivate-ref.f90:
11755         Likewise.
11756         * testsuite/libgomp.oacc-fortran/pr68813.f90: Likewise.
11757         * testsuite/libgomp.oacc-fortran/private-variables.f90: Likewise.
11758         * testsuite/libgomp.oacc-c-c++-common/kernels-1.c: Merge this
11759         file...
11760         * testsuite/libgomp.oacc-c-c++-common/parallel-1.c: ..., and this
11761         file into...
11762         * testsuite/libgomp.oacc-c-c++-common/data-clauses.h: ... this new
11763         file.  Update.
11764         * testsuite/libgomp.oacc-c-c++-common/data-clauses-kernels.c: New
11765         file.
11766         * testsuite/libgomp.oacc-c-c++-common/data-clauses-parallel.c:
11767         Likewise.
11768         * testsuite/libgomp.oacc-c-c++-common/kernels-2.c: Rename to...
11769         * testsuite/libgomp.oacc-c-c++-common/data-clauses-kernels-ipa-pta.c:
11770         ... this new file.  Update.
11771         * testsuite/libgomp.oacc-c-c++-common/parallel-2.c: Rename to...
11772         * testsuite/libgomp.oacc-c-c++-common/data-clauses-parallel-ipa-pta.c:
11773         ... this new file.  Update.
11774         * testsuite/libgomp.oacc-c-c++-common/mode-transitions.c: New
11775         file.  Incorporate...
11776         * testsuite/libgomp.oacc-c-c++-common/worker-single-1a.c: ... this
11777         file, and...
11778         * testsuite/libgomp.oacc-c-c++-common/worker-single-4.c: ... this
11779         file, and...
11780         * testsuite/libgomp.oacc-c-c++-common/worker-single-6.c: ... this
11781         file.
11782         * testsuite/libgomp.oacc-c-c++-common/update-1-2.c: Remove file.
11784 2016-03-29  Thomas Schwinge  <thomas@codesourcery.com>
11786         * testsuite/libgomp.oacc-c++/c++.exp [!lang_test_file_found]: Call
11787         set-torture-options.
11789 2016-03-24  Thomas Schwinge  <thomas@codesourcery.com>
11791         * testsuite/libgomp.oacc-c++/c++.exp: Set up torture testing, use
11792         gcc-dg-runtest.
11793         * testsuite/libgomp.oacc-c/c.exp: Likewise.
11794         * testsuite/libgomp.oacc-c-c++-common/acc-on-device-2.c: Specify
11795         -fno-builtin-acc_on_device instead of -O0.
11796         * testsuite/libgomp.oacc-c-c++-common/acc-on-device.c: Skip for
11797         -O0.
11798         * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Likewise.
11799         * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c:
11800         Likewise.
11801         * testsuite/libgomp.oacc-c-c++-common/loop-g-1.c: Likewise.
11802         * testsuite/libgomp.oacc-c-c++-common/loop-g-2.c: Likewise.
11803         * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c: Likewise.
11804         * testsuite/libgomp.oacc-c-c++-common/loop-red-g-1.c: Likewise.
11805         * testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c: Likewise.
11806         * testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c: Likewise.
11807         * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c: Likewise.
11808         * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c: Likewise.
11809         * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c: Likewise.
11810         * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c: Likewise.
11811         * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c: Likewise.
11812         * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c: Likewise.
11813         * testsuite/libgomp.oacc-c-c++-common/routine-g-1.c: Likewise.
11814         * testsuite/libgomp.oacc-c-c++-common/routine-gwv-1.c: Likewise.
11815         * testsuite/libgomp.oacc-c-c++-common/routine-v-1.c: Likewise.
11816         * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c: Likewise.
11817         * testsuite/libgomp.oacc-c-c++-common/routine-wv-1.c: Likewise.
11818         * testsuite/libgomp.oacc-c-c++-common/kernels-alias-ipa-pta-2.c:
11819         Don't specify -O2.
11820         * testsuite/libgomp.oacc-c-c++-common/kernels-alias-ipa-pta-3.c:
11821         Likewise.
11822         * testsuite/libgomp.oacc-c-c++-common/kernels-alias-ipa-pta.c:
11823         Likewise.
11825 2016-03-24  Martin Liska  <mliska@suse.cz>
11827         * plugin/plugin-hsa.c (packet_store_release): New function
11828         that is taken from the HSA runtime manual.
11829         (GOMP_OFFLOAD_run): Use the function.
11831 2016-03-23  Jakub Jelinek  <jakub@redhat.com>
11833         PR c++/70376
11834         * testsuite/libgomp.c++/pr70376.C: New test.
11836 2016-03-23  Tom de Vries  <tom@codesourcery.com>
11838         * testsuite/libgomp.oacc-fortran/reduction-2.f90: Add missing
11839         initialization of lresult and lvresult.
11840         * testsuite/libgomp.oacc-fortran/reduction-3.f90: Same.
11842 2016-03-23  James Norris  <jnorris@codesourcery.com>
11843             Daichi Fukuoka <dc-fukuoka@sgi.com>
11845         PR libgomp/69414
11846         * oacc-mem.c (delete_copyout, update_dev_host): Fix device address.
11847         * testsuite/libgomp.oacc-c-c++-common/update-1.c: Additional tests.
11848         * testsuite/libgomp.oacc-c-c++-common/update-1-2.c: Likewise.
11849         * testsuite/libgomp.oacc-fortran/update-1.f90: New file.
11851 2016-03-23  Martin Liska  <mliska@suse.cz>
11853         PR hsa/70337
11854         * plugin/plugin-hsa.c (GOMP_OFFLOAD_run): Copy shadow
11855         argument just in case a dispatched kernel uses that argument.
11857 2016-03-16  Thomas Schwinge  <thomas@codesourcery.com>
11859         * testsuite/libgomp.oacc-fortran/kernels-loop-2.f95: Adjust to
11860         -ftree-parallelize-loops/-fopenacc changes.
11861         * testsuite/libgomp.oacc-fortran/kernels-loop-data-2.f95:
11862         Likewise.
11863         * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit-2.f95:
11864         Likewise.
11865         * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit.f95:
11866         Likewise.
11867         * testsuite/libgomp.oacc-fortran/kernels-loop-data-update.f95:
11868         Likewise.
11869         * testsuite/libgomp.oacc-fortran/kernels-loop-data.f95: Likewise.
11870         * testsuite/libgomp.oacc-fortran/kernels-loop.f95: Likewise.
11872 2016-03-13  Thomas Schwinge  <thomas@codesourcery.com>
11874         * testsuite/lib/libgomp.exp (libgomp_init): Potentially append to
11875         always_ld_library_path the path to libgcc_s.
11877 2016-03-10  Cesar Philippidis  <cesar@codesourcery.com>
11879         PR testsuite/70009
11880         * testsuite/libgomp.oacc-c-c++-common/vprop.c: Make test data signed.
11882 2016-03-09  Tom de Vries  <tom@codesourcery.com>
11884         * testsuite/libgomp.oacc-fortran/kernels-loop-2.f95: New test.
11885         * testsuite/libgomp.oacc-fortran/kernels-loop-data-2.f95: Same.
11886         * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit-2.f95:
11887         Same.
11888         * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit.f95: Same.
11889         * testsuite/libgomp.oacc-fortran/kernels-loop-data-update.f95: Same.
11890         * testsuite/libgomp.oacc-fortran/kernels-loop-data.f95: Same.
11891         * testsuite/libgomp.oacc-fortran/kernels-loop.f95: Same.
11893 2016-03-07  Martin Jambor  <mjambor@suse.cz>
11895         * testsuite/lib/libgomp.exp
11896         (check_effective_target_hsa_offloading_selected_nocache): New.
11897         (check_effective_target_hsa_offloading_selected): Likewise.
11898         * testsuite/libgomp.hsa.c/c.exp: Likewise.
11899         * testsuite/libgomp.hsa.c/alloca-1.c: Likewise.
11900         * testsuite/libgomp.hsa.c/bitfield-1.c: Likewise.
11901         * testsuite/libgomp.hsa.c/builtins-1.c: Likewise.
11902         * testsuite/libgomp.hsa.c/complex-1.c: Likewise.
11903         * testsuite/libgomp.hsa.c/formal-actual-args-1.c: Likewise.
11904         * testsuite/libgomp.hsa.c/function-call-1.c: Likewise.
11905         * testsuite/libgomp.hsa.c/get-level-1.c: Likewise.
11906         * testsuite/libgomp.hsa.c/gridify-1.c: Likewise.
11907         * testsuite/libgomp.hsa.c/gridify-2.c: Likewise.
11908         * testsuite/libgomp.hsa.c/gridify-3.c: Likewise.
11909         * testsuite/libgomp.hsa.c/gridify-4.c: Likewise.
11910         * testsuite/libgomp.hsa.c/memory-operations-1.c: Likewise.
11911         * testsuite/libgomp.hsa.c/pr69568.c: Likewise.
11912         * testsuite/libgomp.hsa.c/rotate-1.c: Likewise.
11913         * testsuite/libgomp.hsa.c/switch-1.c: Likewise.
11914         * testsuite/libgomp.hsa.c/switch-branch-1.c: Likewise.
11916 2016-03-07  Martin Jambor  <mjambor@suse.cz>
11918         * testsuite/libgomp.c/examples-4/async_target-2.c: Only run on
11919         non-shared memory accelerators.
11920         * testsuite/libgomp.c/examples-4/device-1.c: Likewise.
11921         * testsuite/libgomp.c/examples-4/target-5.c: Likewise.
11922         * testsuite/libgomp.c/examples-4/target_data-6.c: Likewise.
11923         * testsuite/libgomp.c/examples-4/target_data-7.c: Likewise.
11924         * testsuite/libgomp.fortran/examples-4/async_target-2.f90: Likewise.
11925         * testsuite/libgomp.fortran/examples-4/device-1.f90: Likewise.
11926         * testsuite/libgomp.fortran/examples-4/target-5.f90: Likewise.
11927         * testsuite/libgomp.fortran/examples-4/target_data-6.f90: Likewise.
11928         * testsuite/libgomp.fortran/examples-4/target_data-7.f90: Likewise.
11930 2016-03-07  Martin Jambor  <mjambor@suse.cz>
11932         * testsuite/lib/libgomp.exp (libgomp_init): Append -Wno-hsa to
11933         ALWAYS_CFLAGS.
11935 2016-03-02  Jakub Jelinek  <jakub@redhat.com>
11937         PR libgomp/69555
11938         * testsuite/libgomp.c++/pr69555-1.C: New test.
11939         * testsuite/libgomp.c++/pr69555-2.C: New test.
11941 2016-02-26  Keith McDaniel <k.allen.mcdaniel@gmail.com>
11942             Martin Jambor  <mjambor@suse.cz>
11944         * testsuite/lib/libgomp.exp
11945         (check_effective_target_offload_device_shared_as): New proc.
11946         * testsuite/libgomp.c++/declare_target-1.C: New test.
11948 2016-02-25  Ilya Verbin  <ilya.verbin@intel.com>
11950         PR driver/68463
11951         * testsuite/libgomp.oacc-c-c++-common/parallel-dims-2.c: Remove.
11953 2016-02-23  Thomas Schwinge  <thomas@codesourcery.com>
11955         * oacc-parallel.c (GOACC_parallel_keyed): Initialize dims.
11956         * plugin/plugin-nvptx.c (nvptx_exec): Provide default values for
11957         dims.
11958         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-2.c: Adjust to
11959         -ftree-parallelize-loops/-fopenacc changes.
11960         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-3.c: Likewise.
11961         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-2.c:
11962         Likewise.
11963         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-3.c:
11964         Likewise.
11965         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-4.c:
11966         Likewise.
11967         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-5.c:
11968         Likewise.
11969         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-6.c:
11970         Likewise.
11971         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq.c:
11972         Likewise.
11973         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-collapse.c:
11974         Likewise.
11975         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-g.c: Likewise.
11976         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-mod-not-zero.c:
11977         Likewise.
11978         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-n.c: Likewise.
11979         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-nest.c:
11980         Likewise.
11981         * testsuite/libgomp.oacc-c-c++-common/kernels-loop.c: Likewise.
11982         * testsuite/libgomp.oacc-c-c++-common/kernels-reduction.c:
11983         Likewise.
11985 2016-02-22  Cesar Philippidis  <cesar@codesourcery.com>
11987         * testsuite/libgomp.oacc-c-c++-common/vprop.c: New test.
11989 2016-02-19  Jakub Jelinek  <jakub@redhat.com>
11991         PR driver/69805
11992         * testsuite/libgomp.c/pr69805.c: New test.
11994 2016-02-16  Tom de Vries  <tom@codesourcery.com>
11996         PR lto/67709
11997         * testsuite/libgomp.fortran/declare-simd-4.f90: New test.
11999 2016-02-09  Tom de Vries  <tom@codesourcery.com>
12001         PR tree-optimization/69599
12002         * testsuite/libgomp.c/omp-nested-3.c: New test.
12003         * testsuite/libgomp.c/pr46032-2.c: New test.
12004         * testsuite/libgomp.oacc-c-c++-common/kernels-2.c: New test.
12005         * testsuite/libgomp.oacc-c-c++-common/parallel-2.c: New test.
12007 2016-02-09  Tom de Vries  <tom@codesourcery.com>
12009         PR lto/69707
12010         * testsuite/libgomp.oacc-c-c++-common/parallel-dims-2.c: New test.
12012 2016-02-02  Alexander Monakov  <amonakov@ispras.ru>
12014         * testsuite/libgomp.c/target-31.c: Fix testcase.
12016 2016-02-02  Alexander Monakov  <amonakov@ispras.ru>
12018         * testsuite/libgomp.c/examples-4/teams-3.c: Add missing reduction
12019         clause.
12020         * testsuite/libgomp.c/examples-4/teams-4.c: Likewise.
12021         * testsuite/libgomp.fortran/examples-4/teams-3.f90: Add missing
12022         reduction and map clauses.
12023         * testsuite/libgomp.fortran/examples-4/teams-4.f90: Likewise.
12025 2016-02-02  James Norris  <jnorris@codesourcery.com>
12027         * testsuite/libgomp.oacc-c-c++-common/declare-4.c: Fix clause.
12029 2016-02-02  Thomas Schwinge  <thomas@codesourcery.com>
12031         * libgomp.map (GOACC_2.0): Remove GOACC_host_data.
12032         * oacc-parallel.c (GOACC_host_data): Remove function definition.
12034         * testsuite/lib/libgomp.exp: Skip hsa offloading for OpenACC test
12035         cases.
12037         * plugin/configfrag.ac (HSA_KMT_LIB, HSA_KMT_LDFLAGS): New
12038         variables.
12039         * testsuite/libgomp-test-support.exp.in (hsa_runtime_lib)
12040         (hsa_kmt_lib): Set variables.
12041         * testsuite/lib/libgomp.exp (libgomp_init): Use them to amend
12042         always_ld_library_path.
12043         * Makefile.in: Regenerate.
12044         * configure: Likewise.
12045         * testsuite/Makefile.in: Likewise.
12047         * plugin/configfrag.ac (offload_additional_options)
12048         (offload_additional_lib_paths): Don't amend for hsa offloading.
12049         * configure: Regenerate.
12051         * plugin/configfrag.ac: Don't configure for offloading target if
12052         we don't build the corresponding plugin.
12053         * configure: Regenerate.
12055 2016-02-01  Nathan Sidwell  <nathan@codesourcery.com>
12057         * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: New.
12058         * testsuite/libgomp.oacc-fortran/routine-7.f90: Serialize loop.
12060 2016-01-26  Tom de Vries  <tom@codesourcery.com>
12062         PR tree-optimization/69110
12063         * testsuite/libgomp.c/pr69110.c: New test.
12065 2016-01-25  Richard Biener  <rguenther@suse.de>
12067         PR lto/69393
12068         * testsuite/libgomp.c++/pr69393.C: New testcase.
12070 2016-01-22  Ilya Verbin  <ilya.verbin@intel.com>
12072         * target.c (gomp_get_target_fn_addr): Allow host fallback if target
12073         function wasn't mapped to the device with non-shared memory.
12075 2016-01-20  Ilya Verbin  <ilya.verbin@intel.com>
12077         * task.c (gomp_create_target_task): Set firstprivate_copies to NULL.
12079 2016-01-19  Martin Jambor  <mjambor@suse.cz>
12080             Martin Liska  <mliska@suse.cz>
12082         * plugin/Makefrag.am: Add HSA plugin requirements.
12083         * plugin/configfrag.ac (HSA_RUNTIME_INCLUDE): New variable.
12084         (HSA_RUNTIME_LIB): Likewise.
12085         (HSA_RUNTIME_CPPFLAGS): Likewise.
12086         (HSA_RUNTIME_INCLUDE): New substitution.
12087         (HSA_RUNTIME_LIB): Likewise.
12088         (HSA_RUNTIME_LDFLAGS): Likewise.
12089         (hsa-runtime): New configure option.
12090         (hsa-runtime-include): Likewise.
12091         (hsa-runtime-lib): Likewise.
12092         (PLUGIN_HSA): New substitution variable.
12093         Fill HSA_RUNTIME_INCLUDE and HSA_RUNTIME_LIB according to the new
12094         configure options.
12095         (PLUGIN_HSA_CPPFLAGS): Likewise.
12096         (PLUGIN_HSA_LDFLAGS): Likewise.
12097         (PLUGIN_HSA_LIBS): Likewise.
12098         Check that we have access to HSA run-time.
12099         * libgomp-plugin.h (offload_target_type): New element
12100         OFFLOAD_TARGET_TYPE_HSA.
12101         * libgomp.h (gomp_target_task): New fields firstprivate_copies and
12102         args.
12103         (bool gomp_create_target_task): Updated.
12104         (gomp_device_descr): Extra parameter of run_func and async_run_func,
12105         new field can_run_func.
12106         * libgomp_g.h (GOMP_target_ext): Update prototype.
12107         * oacc-host.c (host_run): Added a new parameter args.
12108         * target.c (calculate_firstprivate_requirements): New function.
12109         (copy_firstprivate_data): Likewise.
12110         (gomp_target_fallback_firstprivate): Use them.
12111         (gomp_target_unshare_firstprivate): New function.
12112         (gomp_get_target_fn_addr): Allow returning NULL for shared memory
12113         devices.
12114         (GOMP_target): Do host fallback for all shared memory devices.  Do not
12115         pass any args to plugins.
12116         (GOMP_target_ext): Introduce device-specific argument parameter args.
12117         Allow host fallback if device shares memory.  Do not remap data if
12118         device has shared memory.
12119         (gomp_target_task_fn): Likewise.  Also treat shared memory devices
12120         like host fallback for mappings.
12121         (GOMP_target_data): Treat shared memory devices like host fallback.
12122         (GOMP_target_data_ext): Likewise.
12123         (GOMP_target_update): Likewise.
12124         (GOMP_target_update_ext): Likewise.  Also pass NULL as args to
12125         gomp_create_target_task.
12126         (GOMP_target_enter_exit_data): Likewise.
12127         (omp_target_alloc): Treat shared memory devices like host fallback.
12128         (omp_target_free): Likewise.
12129         (omp_target_is_present): Likewise.
12130         (omp_target_memcpy): Likewise.
12131         (omp_target_memcpy_rect): Likewise.
12132         (omp_target_associate_ptr): Likewise.
12133         (gomp_load_plugin_for_device): Also load can_run.
12134         * task.c (GOMP_PLUGIN_target_task_completion): Free
12135         firstprivate_copies.
12136         (gomp_create_target_task): Accept new argument args and store it to
12137         ttask.
12138         * plugin/plugin-hsa.c: New file.
12140 2016-01-18  Tom de Vries  <tom@codesourcery.com>
12142         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-2.c: New test.
12143         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-3.c: Same.
12144         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-2.c: Same.
12145         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-3.c: Same.
12146         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-4.c: Same.
12147         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-5.c: Same.
12148         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-6.c: Same.
12149         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq.c: Same.
12150         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-collapse.c: Same.
12151         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-2.c: Same.
12152         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-enter-exit-2.c:
12153         Same.
12154         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-enter-exit.c:
12155         Same.
12156         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-update.c: Same.
12157         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data.c: Same.
12158         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-g.c: Same.
12159         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-mod-not-zero.c: Same.
12160         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-n.c: Same.
12161         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-nest.c: Same.
12162         * testsuite/libgomp.oacc-c-c++-common/kernels-loop.c: Same.
12163         * testsuite/libgomp.oacc-c-c++-common/kernels-parallel-loop-data-enter-exit.c:
12164         Same.
12165         * testsuite/libgomp.oacc-c-c++-common/kernels-reduction.c: Same.
12167 2016-01-15  Jakub Jelinek  <jakub@redhat.com>
12169         * task.c (GOMP_PLUGIN_target_task_completion): Add missing return.
12171 2016-01-15  Cesar Philippidis  <cesar@codesourcery.com>
12173         * testsuite/libgomp.oacc-fortran/kernels-data.f90: New test.
12175 2016-01-12  James Norris  <jnorris@codesourcery.com>
12177         * libgomp.texi: Updates for OpenACC.
12179 2016-01-11  Alexander Monakov  <amonakov@ispras.ru>
12181         * plugin/plugin-nvptx.c (link_ptx): Do not set CU_JIT_TARGET.
12183 2016-01-07  H.J. Lu  <hongjiu.lu@intel.com>
12185         PR fortran/66680
12186         * testsuite/libgomp.fortran/pr66680.f90: New test.
12188 2016-01-07  Jakub Jelinek  <jakub@redhat.com>
12190         PR middle-end/68960
12191         * testsuite/libgomp.c/pr68960.c: New test.
12193 2016-01-06  Nathan Sidwell  <nathan@acm.org>
12195         * openacc.h (acc_on_device): Add routine pragma for C++ wrapper.
12196         * testsuite/libgomp.oacc-c-c++-common/acc-on-device-2.c: New.
12198 2016-01-04  Jakub Jelinek  <jakub@redhat.com>
12200         Update copyright years.
12202         * libgomp.texi: Bump @copying's copyright year.
12204 2015-12-31  Nathan Sidwell  <nathan@acm.org>
12206         * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c: Correct
12207         dg-additional-options syntax.
12208         * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c: Likewise.
12209         * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c: Likewise.
12210         * testsuite/libgomp.oacc-c-c++-common/routine-v-1.c: Likewise.
12211         * testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c: Likewise.
12212         * testsuite/libgomp.oacc-c-c++-common/routine-gwv-1.c: Likewise.
12213         * testsuite/libgomp.oacc-c-c++-common/routine-g-1.c: Likewise.
12214         * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c: Likewise.
12215         * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Likewise.
12216         * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c: Likewise.
12217         * testsuite/libgomp.oacc-c-c++-common/routine-wv-1.c: Likewise.
12218         * testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c: Likewise.
12219         * testsuite/libgomp.oacc-c-c++-common/loop-g-1.c: Likewise.
12220         * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c: Likewise.
12221         * testsuite/libgomp.oacc-c-c++-common/loop-red-wv-1.c: Likewise.
12222         * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c: Likewise.
12223         * testsuite/libgomp.oacc-c-c++-common/loop-g-2.c: Likewise.
12224         * testsuite/libgomp.oacc-c-c++-common/loop-red-g-1.c: Likewise.
12225         * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c: Likewise.
12227 2015-12-15  Ilya Verbin  <ilya.verbin@intel.com>
12229         * libgomp.h (REFCOUNT_LINK): Define.
12230         (struct splay_tree_key_s): Add link_key.
12231         * target.c (gomp_map_vars): Treat REFCOUNT_LINK objects as not mapped.
12232         Replace target address of the pointer with target address of newly
12233         mapped object in the splay tree.  Set link pointer on target to the
12234         device address of the mapped object.
12235         (gomp_unmap_vars): Restore target address of the pointer in the splay
12236         tree for REFCOUNT_LINK objects after unmapping.
12237         (gomp_load_image_to_device): Set refcount to REFCOUNT_LINK for "omp
12238         declare target link" objects.
12239         (gomp_unload_image_from_device): Replace j with i.  Force unmap of all
12240         "omp declare target link" objects, which were mapped for the image.
12241         (gomp_exit_data): Restore target address of the pointer in the splay
12242         tree for REFCOUNT_LINK objects after unmapping.
12243         * testsuite/libgomp.c/target-link-1.c: New file.
12245 2015-12-14  Ilya Verbin  <ilya.verbin@intel.com>
12247         * libgomp.h (gomp_device_state): New enum.
12248         (struct gomp_device_descr): Replace is_initialized with state.
12249         (gomp_fini_device): Remove declaration.
12250         * oacc-host.c (host_dispatch): Use state instead of is_initialized.
12251         * oacc-init.c (acc_init_1): Use state instead of is_initialized.
12252         (acc_shutdown_1): Likewise.  Inline gomp_fini_device.
12253         (acc_set_device_type): Use state instead of is_initialized.
12254         (acc_set_device_num): Likewise.
12255         * target.c (resolve_device): Use state instead of is_initialized.
12256         Do not initialize finalized device.
12257         (gomp_map_vars): Do nothing if device is finalized.
12258         (gomp_unmap_vars): Likewise.
12259         (gomp_update): Likewise.
12260         (GOMP_offload_register_ver): Use state instead of is_initialized.
12261         (GOMP_offload_unregister_ver): Likewise.
12262         (gomp_init_device): Likewise.
12263         (gomp_unload_device): Likewise.
12264         (gomp_fini_device): Remove.
12265         (gomp_get_target_fn_addr): Do nothing if device is finalized.
12266         (GOMP_target): Go to host fallback if device is finalized.
12267         (GOMP_target_ext): Likewise.
12268         (gomp_exit_data): Do nothing if device is finalized.
12269         (gomp_target_task_fn): Go to host fallback if device is finalized.
12270         (gomp_target_fini): New static function.
12271         (gomp_target_init): Use state instead of is_initialized.
12272         Call gomp_target_fini at exit.
12274 2015-12-09  Tom de Vries  <tom@codesourcery.com>
12276         PR tree-optimization/68716
12277         * testsuite/libgomp.c/omp-nested-2.c: New test.
12279 2015-12-02  Thomas Schwinge  <thomas@codesourcery.com>
12281         * testsuite/libgomp.oacc-c-c++-common/host_data-2.c: Restrict to
12282         target openacc_nvidia_accel_selected.
12283         * testsuite/libgomp.oacc-c-c++-common/host_data-4.c: Likewise.
12284         * testsuite/libgomp.oacc-c-c++-common/host_data-5.c: Likewise.
12285         * testsuite/libgomp.oacc-c-c++-common/host_data-3.c: Remove file.
12286         * testsuite/libgomp.oacc-c-c++-common/host_data-6.c: Remove file.
12288 2015-12-01  Julian Brown  <julian@codesourcery.com>
12289             James Norris  <James_Norris@mentor.com>
12291         * oacc-parallel.c (GOACC_host_data): New function.
12292         * libgomp.map (GOACC_host_data): Add to GOACC_2.0.1.
12293         * testsuite/libgomp.oacc-c-c++-common/host_data-1.c: New test.
12294         * testsuite/libgomp.oacc-c-c++-common/host_data-2.c: New test.
12295         * testsuite/libgomp.oacc-c-c++-common/host_data-3.c: New test.
12296         * testsuite/libgomp.oacc-c-c++-common/host_data-4.c: New test.
12297         * testsuite/libgomp.oacc-c-c++-common/host_data-5.c: New test.
12298         * testsuite/libgomp.oacc-c-c++-common/host_data-6.c: New test.
12300 2015-11-30  James Norris  <jnorris@codesourcery.com>
12301             Cesar Philippidis  <cesar@codesourcery.com>
12303         libgomp/
12304         * libgomp.oacc-fortran/routine-5.f90: New test.
12305         * libgomp.oacc-fortran/routine-7.f90: New test.
12306         * libgomp.oacc-fortran/routine-9.f90: New test.
12308 2015-11-30  Tom de Vries  <tom@codesourcery.com>
12310         PR tree-optimization/46032
12311         * testsuite/libgomp.c/pr46032.c: New test.
12313 2015-11-27  Jakub Jelinek  <jakub@redhat.com>
12315         PR libgomp/68579
12316         * task.c (gomp_task_run_post_handle_depend_hash): New forward decl.
12317         (gomp_create_target_task): Call it before freeing
12318         GOMP_TARGET_TASK_DATA tasks.
12320         PR c/63326
12321         * testsuite/libgomp.c/cancel-parallel-2.c (foo): Add semicolon
12322         in between case label and OpenMP standalone directives.
12323         * testsuite/libgomp.c++/cancel-parallel-2.C (foo): Likewise.
12325 2015-11-26  David Edelsohn  <dje.gcc@gmail.com>
12327         * configure: Regenerate.
12329 2015-11-26  Jakub Jelinek  <jakub@redhat.com>
12331         * testsuite/libgomp.c/target-35.c: New test.
12333 2015-11-22  James Norris  <jnorris@codesourcery.com>
12334             Cesar Philippidis  <cesar@codesourcery.com>
12336         * testsuite/libgomp.oacc-fortran/declare-1.f90: New test.
12337         * testsuite/libgomp.oacc-fortran/declare-2.f90: Likewise.
12338         * testsuite/libgomp.oacc-fortran/declare-3.f90: Likewise.
12339         * testsuite/libgomp.oacc-fortran/declare-4.f90: Likewise.
12340         * testsuite/libgomp.oacc-fortran/declare-5.f90: Likewise.
12342 2015-11-20  Jakub Jelinek  <jakub@redhat.com>
12344         PR middle-end/68221
12345         * testsuite/libgomp.c/reduction-11.c: Remove xfail.
12346         * testsuite/libgomp.c/reduction-12.c: Likewise.
12347         * testsuite/libgomp.c++/reduction-11.C: Likewise.
12348         * testsuite/libgomp.c++/reduction-12.C: Likewise.
12350 2015-11-19  Nathan Sidwell  <nathan@codesourcery.com>
12352         * libgomp.oacc-c-c++-common/reduction-dbl.c: New.
12353         * libgomp.oacc-c-c++-common/reduction-flt.c: New.
12354         * libgomp.oacc-c-c++-common/reduction-cplx-dbl.c: Use typedef.
12355         * libgomp.oacc-c-c++-common/reduction-cplx-flt.c: Use typedef.
12356         * libgomp.oacc-c-c++-common/reduction-2.c: Uncomment broken tests
12357         and fix.
12358         * libgomp.oacc-c-c++-common/reduction-3.c: Likewise.
12359         * libgomp.oacc-c-c++-common/reduction-4.c: Likewise.
12361 2015-11-18  Nathan Sidwell  <nathan@codesourcery.com>
12363         * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-flt.c: Add
12364         worker & gang cases.
12365         * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-dbl.c: Likewise.
12367 2015-11-17  Cesar Philippidis  <cesar@codesourcery.com>
12369         * config/nvptx/priority_queue.c: New file.
12371 2015-11-14  Jakub Jelinek  <jakub@redhat.com>
12373         * libgomp.texi: Update references from OpenMP 4.0 to OpenMP 4.5
12374         sections.
12376 2015-11-14  Jakub Jelinek  <jakub@redhat.com>
12377             Aldy Hernandez  <aldyh@redhat.com>
12378             Ilya Verbin  <ilya.verbin@intel.com>
12380         * ordered.c (gomp_doacross_init, GOMP_doacross_post,
12381         GOMP_doacross_wait, gomp_doacross_ull_init, GOMP_doacross_ull_post,
12382         GOMP_doacross_ull_wait): For GFS_GUIDED don't divide number of
12383         iterators or IV by chunk size.
12384         * parallel.c (gomp_resolve_num_threads): Don't assume that
12385         if thr->ts.team is non-NULL, then pool must be non-NULL.
12386         * libgomp-plugin.h (GOMP_PLUGIN_target_task_completion): Declare.
12387         * libgomp.map (GOMP_PLUGIN_1.1): New symbol version, export
12388         GOMP_PLUGIN_target_task_completion.
12389         * Makefile.am (libgomp_la_SOURCES): Add priority_queue.c.
12390         * Makefile.in: Regenerate.
12391         * libgomp.h: Shuffle prototypes and forward definitions around so
12392         priority queues can be defined.
12393         (enum gomp_task_kind): Add GOMP_TASK_ASYNC_RUNNING.
12394         (enum gomp_target_task_state): New enum.
12395         (struct gomp_target_task): Add state, tgt, task and team fields.
12396         (gomp_create_target_task): Change return type to bool, add
12397         state argument.
12398         (gomp_target_task_fn): Change return type to bool.
12399         (struct gomp_device_descr): Add async_run_func.
12400         (struct gomp_task): Remove children, next_child, prev_child,
12401         next_queue, prev_queue, next_taskgroup, prev_taskgroup.
12402         Add pnode field.
12403         (struct gomp_taskgroup): Remove children.
12404         Add taskgroup_queue.
12405         (struct gomp_team): Change task_queue type to a priority queue.
12406         (splay_compare): Define inline.
12407         (priority_queue_offset): New.
12408         (priority_node_to_task): New.
12409         (task_to_priority_node): New.
12410         * oacc-mem.c: Do not include splay-tree.h.
12411         * priority_queue.c: New file.
12412         * priority_queue.h: New file.
12413         * splay-tree.c: Do not include splay-tree.h.
12414         (splay_tree_foreach_internal): New.
12415         (splay_tree_foreach): New.
12416         * splay-tree.h: Become re-entrant if splay_tree_prefix is defined.
12417         (splay_tree_callback): Define typedef.
12418         * target.c (splay_compare): Move to libgomp.h.
12419         (GOMP_target): Don't adjust *thr in any way around running offloaded
12420         task.
12421         (GOMP_target_ext): Likewise.  Handle target nowait.
12422         (GOMP_target_update_ext, GOMP_target_enter_exit_data): Check
12423         return value from gomp_create_target_task, if false, fallthrough
12424         as if no dependencies exist.
12425         (gomp_target_task_fn): Change return type to bool, return true
12426         if the task should have another part scheduled later.  Handle
12427         target nowait.
12428         (gomp_load_plugin_for_device): Initialize async_run.
12429         * task.c (gomp_init_task): Initialize children_queue.
12430         (gomp_clear_parent_in_list): New.
12431         (gomp_clear_parent_in_tree): New.
12432         (gomp_clear_parent): Handle priorities.
12433         (GOMP_task): Likewise.
12434         (priority_queue_move_task_first,
12435         gomp_target_task_completion, GOMP_PLUGIN_target_task_completion):
12436         New functions.
12437         (gomp_create_target_task): Use priority queues.  Change return type
12438         to bool, add state argument, return false if for async
12439         {{enter,exit} data,update} constructs no dependencies need to be
12440         waited for, handle target nowait.  Set task->fn to NULL instead of
12441         gomp_target_task_fn.
12442         (verify_children_queue): Remove.
12443         (priority_list_upgrade_task): New.
12444         (priority_queue_upgrade_task): New.
12445         (verify_task_queue): Remove.
12446         (priority_list_downgrade_task): New.
12447         (priority_queue_downgrade_task): New.
12448         (gomp_task_run_pre): Use priority queues.
12449         Abstract code out to priority_queue_downgrade_task.
12450         (gomp_task_run_post_handle_dependers): Use priority queues.
12451         (gomp_task_run_post_remove_parent): Likewise.
12452         (gomp_task_run_post_remove_taskgroup): Likewise.
12453         (gomp_barrier_handle_tasks): Likewise.  Handle target nowait target
12454         tasks specially.
12455         (GOMP_taskwait): Likewise.
12456         (gomp_task_maybe_wait_for_dependencies): Likewise.  Abstract code to
12457         priority-queue_upgrade_task.
12458         (GOMP_taskgroup_start): Use priority queues.
12459         (GOMP_taskgroup_end): Likewise.  Handle target nowait target tasks
12460         specially.  If taskgroup is NULL, and thr->ts.level is 0, act as a
12461         barrier.
12462         * taskloop.c (GOMP_taskloop): Handle priorities.
12463         * team.c (gomp_new_team): Call priority_queue_init.
12464         (free_team): Call priority_queue_free.
12465         (gomp_free_thread): Call gomp_team_end if thr->ts.team is artificial
12466         team created for target nowait in implicit parallel region.
12467         (gomp_team_start): For nested check, test thr->ts.level instead of
12468         thr->ts.team != NULL.
12469         * testsuite/libgomp.c/doacross-3.c: New test.
12470         * testsuite/libgomp.c/ordered-5.c: New test.
12471         * testsuite/libgomp.c/priority.c: New test.
12472         * testsuite/libgomp.c/target-31.c: New test.
12473         * testsuite/libgomp.c/target-32.c: New test.
12474         * testsuite/libgomp.c/target-33.c: New test.
12475         * testsuite/libgomp.c/target-34.c: New test.
12477 2015-11-13  Nathan Sidwell  <nathan@codesourcery.com>
12479         * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: New.
12481         * testsuite/libgomp.oacc-c-c++-common/collapse-2.c: Sequential
12482         loop is sequential.
12484 2015-11-13  Nathan Sidwell  <nathan@codesourcery.com>
12486         * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-dbl.c: New.
12487         * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-flt.c: New.
12489 2015-11-12  James Norris  <jnorris@codesourcery.com>
12490             Joseph Myers  <joseph@codesourcery.com>
12492         * libgomp.map (GOACC_2.0.1): Export GOACC_declare.
12493         * oacc-parallel.c (GOACC_declare): New function.
12494         * testsuite/libgomp.oacc-c-c++-common/declare-1.c: New test.
12495         * testsuite/libgomp.oacc-c-c++-common/declare-2.c: Likewise.
12496         * testsuite/libgomp.oacc-c-c++-common/declare-4.c: Likewise.
12497         * testsuite/libgomp.oacc-c-c++-common/declare-5.c: Likewise.
12498         * testsuite/libgomp.oacc-c++/declare-1.C: Likewise.
12500 2015-11-12  Nathan Sidwell  <nathan@codesourcery.com>
12502         * testsuite/libgomp.oacc-c-c++-common/default-1.c: New.
12504 2015-11-1  Nathan Sidwell  <nathan@codesourcery.com>
12506         * testsuite/libgomp.oacc-c-c++-common/firstprivate-1.c: New.
12507         * testsuite/libgomp.oacc-c-c++-common/firstprivate-2.c: New.
12509 2015-11-09  Nathan Sidwell  <nathan@codesourcery.com>
12511         * testsuite/libgomp.oacc-c-c++-common/firstprivate-1.c: Remove
12512         inadvertent commit.
12514 2015-11-09  Nathan Sidwell  <nathan@codesourcery.com>
12516         * testsuite/libgomp.oacc-c-c++-common/routine-g-1.c: New.
12517         * testsuite/libgomp.oacc-c-c++-common/routine-gwv-1.c: New.
12518         * testsuite/libgomp.oacc-c-c++-common/routine-v-1.c: New.
12519         * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c: New.
12520         * testsuite/libgomp.oacc-c-c++-common/routine-wv-1.c: New.
12522 2015-11-06  Thomas Schwinge  <thomas@codesourcery.com>
12524         * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c: XFAIL.
12525         * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c: Likewise.
12527 2015-11-05  Jakub Jelinek  <jakub@redhat.com>
12528             Ilya Verbin  <ilya.verbin@intel.com>
12530         * libgomp_g.h (GOMP_loop_nonmonotonic_dynamic_next,
12531         GOMP_loop_nonmonotonic_dynamic_start,
12532         GOMP_loop_nonmonotonic_guided_next,
12533         GOMP_loop_nonmonotonic_guided_start,
12534         GOMP_loop_ull_nonmonotonic_dynamic_next,
12535         GOMP_loop_ull_nonmonotonic_dynamic_start,
12536         GOMP_loop_ull_nonmonotonic_guided_next,
12537         GOMP_loop_ull_nonmonotonic_guided_start,
12538         GOMP_parallel_loop_nonmonotonic_dynamic,
12539         GOMP_parallel_loop_nonmonotonic_guided): New prototypes.
12540         (GOMP_target_41): Renamed to ...
12541         (GOMP_target_ext): ... this.  Add num_teams and thread_limit
12542         arguments.
12543         (GOMP_target_data_41): Renamed to ...
12544         (GOMP_target_data_ext): ... this.
12545         (GOMP_target_update_41): Renamed to ...
12546         (GOMP_target_update_ext): ... this.
12547         * libgomp.map (GOMP_4.5): Export GOMP_target_ext,
12548         GOMP_target_data_ext and GOMP_target_update_ext instead of
12549         GOMP_target_41, GOMP_target_data_41 and GOMP_target_update_41.
12550         Export GOMP_loop_nonmonotonic_dynamic_next,
12551         GOMP_loop_nonmonotonic_dynamic_start,
12552         GOMP_loop_nonmonotonic_guided_next,
12553         GOMP_loop_nonmonotonic_guided_start,
12554         GOMP_loop_ull_nonmonotonic_dynamic_next,
12555         GOMP_loop_ull_nonmonotonic_dynamic_start,
12556         GOMP_loop_ull_nonmonotonic_guided_next,
12557         GOMP_loop_ull_nonmonotonic_guided_start,
12558         GOMP_parallel_loop_nonmonotonic_dynamic and
12559         GOMP_parallel_loop_nonmonotonic_guided.
12560         * loop.c (GOMP_parallel_loop_nonmonotonic_dynamic,
12561         GOMP_parallel_loop_nonmonotonic_guided,
12562         GOMP_loop_nonmonotonic_dynamic_start,
12563         GOMP_loop_nonmonotonic_guided_start,
12564         GOMP_loop_nonmonotonic_dynamic_next,
12565         GOMP_loop_nonmonotonic_guided_next): New aliases or functions.
12566         * loop_ull.c (GOMP_loop_ull_nonmonotonic_dynamic_start,
12567         GOMP_loop_ull_nonmonotonic_guided_start,
12568         GOMP_loop_ull_nonmonotonic_dynamic_next,
12569         GOMP_loop_ull_nonmonotonic_guided_next): Likewise.
12570         * target.c (gomp_map_0len_lookup, gomp_map_val): New inline
12571         functions.
12572         (gomp_map_vars): Handle GOMP_MAP_ALWAYS_POINTER.  For
12573         GOMP_MAP_ZERO_LEN_ARRAY_SECTION use gomp_map_0len_lookup.
12574         Use gomp_map_val function.
12575         (gomp_target_fallback_firstprivate): New static function.
12576         (GOMP_target_41): Renamed to ...
12577         (GOMP_target_ext): ... this.  Add num_teams and thread_limit
12578         arguments.  Move firstprivate fallback handling into a new
12579         function.
12580         (GOMP_target_data_41): Renamed to ...
12581         (GOMP_target_data_ext): ... this.
12582         (GOMP_target_update_41): Renamed to ...
12583         (GOMP_target_update_ext): ... this.
12584         (gomp_exit_data): For GOMP_MAP_*ZERO_LEN* use
12585         gomp_map_0len_lookup instead of gomp_map_lookup.
12586         (omp_target_is_present): Use gomp_map_0len_lookup instead of
12587         gomp_map_lookup.
12588         * testsuite/libgomp.c/target-28.c: Likewise.
12589         * testsuite/libgomp.c/monotonic-1.c: New test.
12590         * testsuite/libgomp.c/monotonic-2.c: New test.
12591         * testsuite/libgomp.c/nonmonotonic-1.c: New test.
12592         * testsuite/libgomp.c/nonmonotonic-2.c: New test.
12593         * testsuite/libgomp.c/pr66199-5.c: New test.
12594         * testsuite/libgomp.c/pr66199-6.c: New test.
12595         * testsuite/libgomp.c/pr66199-7.c: New test.
12596         * testsuite/libgomp.c/pr66199-8.c: New test.
12597         * testsuite/libgomp.c/pr66199-9.c: New test.
12598         * testsuite/libgomp.c/reduction-11.c: New test.
12599         * testsuite/libgomp.c/reduction-12.c: New test.
12600         * testsuite/libgomp.c/reduction-13.c: New test.
12601         * testsuite/libgomp.c/reduction-14.c: New test.
12602         * testsuite/libgomp.c/reduction-15.c: New test.
12603         * testsuite/libgomp.c/target-12.c (main): Adjust for
12604         omp_target_is_present change for one-past-last element.
12605         * testsuite/libgomp.c/target-17.c (foo): Drop tests where
12606         the same var is both mapped and privatized.
12607         * testsuite/libgomp.c/target-19.c (foo): Adjust for different
12608         handling of zero-length array sections.
12609         * testsuite/libgomp.c/target-28.c: New test.
12610         * testsuite/libgomp.c/target-29.c: New test.
12611         * testsuite/libgomp.c/target-30.c: New test.
12612         * testsuite/libgomp.c/target-teams-1.c: New test.
12613         * testsuite/libgomp.c++/member-6.C: New test.
12614         * testsuite/libgomp.c++/member-7.C: New test.
12615         * testsuite/libgomp.c++/monotonic-1.C: New test.
12616         * testsuite/libgomp.c++/monotonic-2.C: New test.
12617         * testsuite/libgomp.c++/nonmonotonic-1.C: New test.
12618         * testsuite/libgomp.c++/nonmonotonic-2.C: New test.
12619         * testsuite/libgomp.c++/pr66199-3.C: New test.
12620         * testsuite/libgomp.c++/pr66199-4.C: New test.
12621         * testsuite/libgomp.c++/pr66199-5.C: New test.
12622         * testsuite/libgomp.c++/pr66199-6.C: New test.
12623         * testsuite/libgomp.c++/pr66199-7.C: New test.
12624         * testsuite/libgomp.c++/pr66199-8.C: New test.
12625         * testsuite/libgomp.c++/pr66199-9.C: New test.
12626         * testsuite/libgomp.c++/reduction-11.C: New test.
12627         * testsuite/libgomp.c++/reduction-12.C: New test.
12628         * testsuite/libgomp.c++/target-13.C: New test.
12629         * testsuite/libgomp.c++/target-14.C: New test.
12630         * testsuite/libgomp.c++/target-15.C: New test.
12631         * testsuite/libgomp.c++/target-16.C: New test.
12632         * testsuite/libgomp.c++/target-17.C: New test.
12633         * testsuite/libgomp.c++/target-18.C: New test.
12634         * testsuite/libgomp.c++/target-19.C: New test.
12636 2015-11-04  Nathan Sidwell  <nathan@codesourcery.com>
12638         * testsuite/libgomp.oacc-fortran/reduction-1.f90: Fix dimensions
12639         and reduction copy.
12640         * testsuite/libgomp.oacc-fortran/reduction-2.f90: Likewise.
12641         * testsuite/libgomp.oacc-fortran/reduction-3.f90: Likewise.
12642         * testsuite/libgomp.oacc-fortran/reduction-4.f90: Likewise.
12643         * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
12644         * testsuite/libgomp.oacc-c-c++-common/par-reduction-1.c: Likewise.
12645         * testsuite/libgomp.oacc-c-c++-common/reduction-3.c: Likewise.
12646         * testsuite/libgomp.oacc-c-c++-common/collapse-2.c: Likewise.
12647         * testsuite/libgomp.oacc-c-c++-common/par-reduction-2.c: Likewise.
12648         * testsuite/libgomp.oacc-c-c++-common/reduction-4.c: Likewise.
12649         * testsuite/libgomp.oacc-c-c++-common/reduction-initial-1.c: Likewise.
12650         * testsuite/libgomp.oacc-c-c++-common/reduction-1.c: Likewise.
12651         * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Likewise.
12652         * testsuite/libgomp.oacc-c-c++-common/reduction-2.c: Likewise.
12653         * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: New.
12655 2015-11-04  Nathan Sidwell  <nathan@codesourcery.com>
12657         * libgomp.oacc-c-c++-common/loop-red-g-1.c: New.
12658         * libgomp.oacc-c-c++-common/loop-red-gwv-1.c: New.
12659         * libgomp.oacc-c-c++-common/loop-red-v-1.c: New.
12660         * libgomp.oacc-c-c++-common/loop-red-v-2.c: New.
12661         * libgomp.oacc-c-c++-common/loop-red-w-1.c: New.
12662         * libgomp.oacc-c-c++-common/loop-red-w-2.c: New.
12663         * libgomp.oacc-c-c++-common/loop-red-wv-1.c: New.
12664         * libgomp.oacc-fortran/reduction-5.f90: Avoid reference var.
12666 2015-11-03  Nathan Sidwell  <nathan@codesourcery.com>
12668         * libgomp.h (struct acc_dispatch_t): Remove args from exec_func.
12669         * plugin/plugin-nvptx.c (nvptx_exec): Remove sizes & kinds arg.
12670         (GOMP_OFFLOAD_openacc_parallel): Likewise.
12671         * oacc-host.c (host_openacc_exec): Likewise.
12672         * oacc-parallel.c (GOACC_parallel_keyed): Adjust exec_func call.
12674 2015-11-03  Julian Brown  <julian@codesourcery.com>
12675             Thomas Schwinge  <thomas@codesourcery.com>
12677         * testsuite/libgomp.oacc-c-c++-common/par-reduction-1.c: New file.
12678         * testsuite/libgomp.oacc-c-c++-common/par-reduction-2.c: Likewise.
12679         * testsuite/libgomp.oacc-c-c++-common/worker-single-1a.c:
12680         Likewise.
12681         * testsuite/libgomp.oacc-c-c++-common/worker-single-4.c: Likewise.
12682         * testsuite/libgomp.oacc-c-c++-common/worker-single-6.c: Likewise.
12684 2015-11-03  James Norris  <jnorris@codesourcery.com>
12686         * testsuite/libgomp.oacc-c-c++-common/atomic_capture-1.c: New
12687         file.
12688         * testsuite/libgomp.oacc-c-c++-common/atomic_capture-2.c:
12689         Likewise.
12690         * testsuite/libgomp.oacc-c-c++-common/atomic_rw-1.c: Likewise.
12691         * testsuite/libgomp.oacc-c-c++-common/atomic_update-1.c: Likewise.
12692         * testsuite/libgomp.oacc-fortran/atomic_capture-1.f90: Likewise.
12693         * testsuite/libgomp.oacc-fortran/atomic_rw-1.f90: New file.
12694         * testsuite/libgomp.oacc-fortran/atomic_update-1.f90: Likewise.
12696 2015-10-29  Nathan Sidwell  <nathan@codesourcery.com>
12698         * openacc.h (enum acc_device_t): Reformat. Ensure layout
12699         compatibility.
12700         (enum acc_async_t): Reformat.
12701         (acc_on_device): Declare compatible with builtin and provide C++
12702         wrapper.
12703         * testsuite/libgomp.oacc-c-c++-common/acc-on-device.c: New.
12705 2015-10-29  Thomas Schwinge  <thomas@codesourcery.com>
12706             Cesar Philippidis  <cesar@codesourcery.com>
12708         * testsuite/libgomp.oacc-c-c++-common/combdir-1.c: Rename to...
12709         * testsuite/libgomp.oacc-c-c++-common/combined-directives-1.c:
12710         ... this.  Add a description of the test at the top of the file.
12711         * testsuite/libgomp.oacc-fortran/combdir-1.f90: Rename file to...
12712         * testsuite/libgomp.oacc-fortran/combined-directives-1.f90:
12713         ... this.  Add a description of the test at the top of the file.
12715 2015-10-28  Nathan Sidwell  <nathan@codesourcery.com>
12717         * testsuite/libgomp.oacc-c-c++-common/loop-g-1.c: New.
12718         * testsuite/libgomp.oacc-c-c++-common/loop-g-2.c: New.
12719         * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c: New.
12720         * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c: New.
12721         * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c: New.
12722         * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c: New.
12724 2015-10-27  Nathan Sidwell  <nathan@codesourcery.com>
12726         * plugin/plugin-nvptx.c (nvptx_exec): Remove check on compute
12727         dimensions.
12729 2015-10-27  Thomas Schwinge  <thomas@codesourcery.com>
12731         PR testsuite/68063
12732         * testsuite/libgomp.c++/member-1.C (A::m1): Add missing private clause.
12734 2015-10-27  James Norris  <jnorris@codesourcery.com>
12736         * testsuite/libgomp.oacc-c-c++-common/combdir-1.c: New file.
12737         * testsuite/libgomp.oacc-fortran/combdir-1.f90: Likewise.
12739 2015-10-26  Thomas Schwinge  <thomas@codesourcery.com>
12741         * testsuite/libgomp.oacc-c-c++-common/abort-1.c: Print to stderr.
12742         * testsuite/libgomp.oacc-c-c++-common/abort-3.c: Likewise.
12744         * testsuite/libgomp.oacc-c-c++-common/lib-1.c: Remove explicit
12745         acc_device_nvidia usage.
12746         * testsuite/libgomp.oacc-c-c++-common/lib-10.c: Likewise.
12747         * testsuite/libgomp.oacc-c-c++-common/lib-2.c: Likewise.
12748         * testsuite/libgomp.oacc-c-c++-common/lib-9.c: Likewise.
12750         * oacc-init.c (acc_shutdown): Call gomp_init_targets_once.
12751         * testsuite/libgomp.oacc-c-c++-common/lib-8.c: New file.
12753         PR libgomp/66518
12754         * testsuite/libgomp.oacc-c-c++-common/lib-3.c: Resolve XFAIL.
12756         PR libgomp/65437
12757         PR libgomp/66518
12758         * oacc-mem.c (update_dev_host): Call goacc_lazy_initialize.
12759         * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Remove XFAIL.
12761 2015-10-23  Tom de Vries  <tom@codesourcery.com>
12763         PR testsuite/68063
12764         * testsuite/libgomp.c++/member-2.C (A::m1): Add missing private clause.
12766 2015-10-20  Nathan Sidwell  <nathan@codesourcery.com>
12768         * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Set sane
12769         vector_length.
12770         * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
12772 2015-10-14  Ilya Verbin  <ilya.verbin@intel.com>
12773             Aleksander Ivanushenko  <aleksander.ivanushenko@intel.com>
12775         * target.c (gomp_map_vars): Initialize tgt->tgt_start and tgt->tgt_end
12776         to 0 when mapnum is 0.
12778 2015-10-14  Sebastian Huber  <sebastian.huber@embedded-brains.de>
12780         * fortran.c (omp_get_place_proc_ids_, omp_get_partition_place_nums_):
12781         Cast to int from int32_t.
12783 2015-10-13  Jakub Jelinek  <jakub@redhat.com>
12784             Aldy Hernandez  <aldyh@redhat.com>
12785             Ilya Verbin  <ilya.verbin@intel.com>
12787         * config/linux/affinity.c (omp_get_place_num_procs,
12788         omp_get_place_proc_ids, gomp_get_place_proc_ids_8): New functions.
12789         * config/linux/doacross.h: New file.
12790         * config/posix/affinity.c (omp_get_place_num_procs,
12791         omp_get_place_proc_ids, gomp_get_place_proc_ids_8): New functions.
12792         * config/posix/doacross.h: New file.
12793         * env.c: Include gomp-constants.h.
12794         (struct gomp_task_icv): Rename run_sched_modifier to
12795         run_sched_chunk_size.
12796         (gomp_max_task_priority_var): New variable.
12797         (parse_schedule): Rename run_sched_modifier to run_sched_chunk_size.
12798         (handle_omp_display_env): Change _OPENMP value from 201307 to
12799         201511.  Print OMP_MAX_TASK_PRIORITY.
12800         (initialize_env): Parse OMP_MAX_TASK_PRIORITY.
12801         (omp_set_schedule, omp_get_schedule): Rename modifier argument to
12802         chunk_size and run_sched_modifier to run_sched_chunk_size.
12803         (omp_get_max_task_priority, omp_get_initial_device,
12804         omp_get_num_places, omp_get_place_num, omp_get_partition_num_places,
12805         omp_get_partition_place_nums): New functions.
12806         * fortran.c (omp_set_schedule_, omp_set_schedule_8_,
12807         omp_get_schedule_, omp_get_schedule_8_): Rename modifier argument
12808         to chunk_size.
12809         (omp_get_num_places_, omp_get_place_num_procs_,
12810         omp_get_place_num_procs_8_, omp_get_place_proc_ids_,
12811         omp_get_place_proc_ids_8_, omp_get_place_num_,
12812         omp_get_partition_num_places_, omp_get_partition_place_nums_,
12813         omp_get_partition_place_nums_8_, omp_get_initial_device_,
12814         omp_get_max_task_priority_): New functions.
12815         * libgomp_g.h (GOMP_loop_doacross_static_start,
12816         GOMP_loop_doacross_dynamic_start, GOMP_loop_doacross_guided_start,
12817         GOMP_loop_doacross_runtime_start, GOMP_loop_ull_doacross_static_start,
12818         GOMP_loop_ull_doacross_dynamic_start,
12819         GOMP_loop_ull_doacross_guided_start,
12820         GOMP_loop_ull_doacross_runtime_start, GOMP_doacross_post,
12821         GOMP_doacross_wait, GOMP_doacross_ull_post, GOMP_doacross_wait,
12822         GOMP_taskloop, GOMP_taskloop_ull, GOMP_target_41,
12823         GOMP_target_data_41, GOMP_target_update_41,
12824         GOMP_target_enter_exit_data): New prototypes.
12825         (GOMP_task): Add prototype argument.
12826         * libgomp.h (_LIBGOMP_CHECKING_): Define to 0 if not yet defined.
12827         (struct gomp_doacross_work_share): New type.
12828         (struct gomp_work_share): Add doacross field.
12829         (struct gomp_task_icv): Rename run_sched_modifier to
12830         run_sched_chunk_size.
12831         (enum gomp_task_kind): Rename GOMP_TASK_IFFALSE to
12832         GOMP_TASK_UNDEFERRED.  Add comments.
12833         (struct gomp_task_depend_entry): Add comments.
12834         (struct gomp_task): Likewise.
12835         (struct gomp_taskgroup): Likewise.
12836         (struct gomp_target_task): New type.
12837         (struct gomp_team): Add comment.
12838         (gomp_get_place_proc_ids_8, gomp_doacross_init,
12839         gomp_doacross_ull_init, gomp_task_maybe_wait_for_dependencies,
12840         gomp_create_target_task, gomp_target_task_fn): New prototypes.
12841         (struct target_var_desc): New type.
12842         (struct target_mem_desc): Adjust comment.  Use struct
12843         target_var_desc instead of splay_tree_key for list.
12844         (REFCOUNT_INFINITY): Define.
12845         (struct splay_tree_key_s): Remove copy_from field.
12846         (struct gomp_device_descr): Add dev2dev_func field.
12847         (enum gomp_map_vars_kind): New enum.
12848         (gomp_map_vars): Add one argument.
12849         * libgomp.map (OMP_4.5): Export omp_get_max_task_priority,
12850         omp_get_max_task_priority_, omp_get_num_places, omp_get_num_places_,
12851         omp_get_place_num_procs, omp_get_place_num_procs_,
12852         omp_get_place_num_procs_8_, omp_get_place_proc_ids,
12853         omp_get_place_proc_ids_, omp_get_place_proc_ids_8_, omp_get_place_num,
12854         omp_get_place_num_, omp_get_partition_num_places,
12855         omp_get_partition_num_places_, omp_get_partition_place_nums,
12856         omp_get_partition_place_nums_, omp_get_partition_place_nums_8_,
12857         omp_get_initial_device, omp_get_initial_device_, omp_target_alloc,
12858         omp_target_free, omp_target_is_present, omp_target_memcpy,
12859         omp_target_memcpy_rect, omp_target_associate_ptr and
12860         omp_target_disassociate_ptr.
12861         (GOMP_4.0.2): Renamed to ...
12862         (GOMP_4.5): ... this.  Export GOMP_target_41, GOMP_target_data_41,
12863         GOMP_target_update_41, GOMP_target_enter_exit_data, GOMP_taskloop,
12864         GOMP_taskloop_ull, GOMP_loop_doacross_dynamic_start,
12865         GOMP_loop_doacross_guided_start, GOMP_loop_doacross_runtime_start,
12866         GOMP_loop_doacross_static_start, GOMP_doacross_post,
12867         GOMP_doacross_wait, GOMP_loop_ull_doacross_dynamic_start,
12868         GOMP_loop_ull_doacross_guided_start,
12869         GOMP_loop_ull_doacross_runtime_start,
12870         GOMP_loop_ull_doacross_static_start, GOMP_doacross_ull_post and
12871         GOMP_doacross_ull_wait.
12872         * libgomp.texi: Document omp_get_max_task_priority.
12873         Rename modifier argument to chunk_size for omp_set_schedule and
12874         omp_get_schedule.  Document OMP_MAX_TASK_PRIORITY env var.
12875         * loop.c (GOMP_loop_runtime_start): Adjust for run_sched_modifier
12876         to run_sched_chunk_size renaming.
12877         (GOMP_loop_ordered_runtime_start): Likewise.
12878         (gomp_loop_doacross_static_start, gomp_loop_doacross_dynamic_start,
12879         gomp_loop_doacross_guided_start, GOMP_loop_doacross_runtime_start,
12880         GOMP_parallel_loop_runtime_start): New functions.
12881         (GOMP_parallel_loop_runtime): Adjust for run_sched_modifier
12882         to run_sched_chunk_size renaming.
12883         (GOMP_loop_doacross_static_start, GOMP_loop_doacross_dynamic_start,
12884         GOMP_loop_doacross_guided_start): New functions or aliases.
12885         * loop_ull.c (GOMP_loop_ull_runtime_start): Adjust for
12886         run_sched_modifier to run_sched_chunk_size renaming.
12887         (GOMP_loop_ull_ordered_runtime_start): Likewise.
12888         (gomp_loop_ull_doacross_static_start,
12889         gomp_loop_ull_doacross_dynamic_start,
12890         gomp_loop_ull_doacross_guided_start,
12891         GOMP_loop_ull_doacross_runtime_start): New functions.
12892         (GOMP_loop_ull_doacross_static_start,
12893         GOMP_loop_ull_doacross_dynamic_start,
12894         GOMP_loop_ull_doacross_guided_start): New functions or aliases.
12895         * oacc-mem.c (acc_map_data, present_create_copy,
12896         gomp_acc_insert_pointer): Pass GOMP_MAP_VARS_OPENACC instead of false
12897         to gomp_map_vars.
12898         (gomp_acc_remove_pointer): Use copy_from from target_var_desc.
12899         * oacc-parallel.c (GOACC_data_start): Pass GOMP_MAP_VARS_OPENACC
12900         instead of false to gomp_map_vars.
12901         (GOACC_parallel_keyed): Likewise.  Use copy_from from target_var_desc.
12902         * omp.h.in (omp_lock_hint_t): New type.
12903         (omp_init_lock_with_hint, omp_init_nest_lock_with_hint,
12904         omp_get_num_places, omp_get_place_num_procs, omp_get_place_proc_ids,
12905         omp_get_place_num, omp_get_partition_num_places,
12906         omp_get_partition_place_nums, omp_get_initial_device,
12907         omp_get_max_task_priority, omp_target_alloc, omp_target_free,
12908         omp_target_is_present, omp_target_memcpy, omp_target_memcpy_rect,
12909         omp_target_associate_ptr, omp_target_disassociate_ptr): New
12910         prototypes.
12911         * omp_lib.f90.in (omp_lock_hint_kind): New parameter.
12912         (omp_lock_hint_none, omp_lock_hint_uncontended,
12913         omp_lock_hint_contended, omp_lock_hint_nonspeculative,
12914         omp_lock_hint_speculative): New parameters.
12915         (omp_init_lock_with_hint, omp_init_nest_lock_with_hint,
12916         omp_get_num_places, omp_get_place_num_procs, omp_get_place_proc_ids,
12917         omp_get_place_num, omp_get_partition_num_places,
12918         omp_get_partition_place_nums, omp_get_initial_device,
12919         omp_get_max_task_priority): New interfaces.
12920         (omp_set_schedule, omp_get_schedule): Rename modifier argument
12921         to chunk_size.
12922         * omp_lib.h.in (omp_lock_hint_kind): New parameter.
12923         (omp_lock_hint_none, omp_lock_hint_uncontended,
12924         omp_lock_hint_contended, omp_lock_hint_nonspeculative,
12925         omp_lock_hint_speculative): New parameters.
12926         (omp_init_lock_with_hint, omp_init_nest_lock_with_hint,
12927         omp_get_num_places, omp_get_place_num_procs, omp_get_place_proc_ids,
12928         omp_get_place_num, omp_get_partition_num_places,
12929         omp_get_partition_place_nums, omp_get_initial_device,
12930         omp_get_max_task_priority): New functions and subroutines.
12931         * ordered.c: Include stdarg.h and string.h.
12932         (MAX_COLLAPSED_BITS): Define.
12933         (gomp_doacross_init, GOMP_doacross_post, GOMP_doacross_wait,
12934         gomp_doacross_ull_init, GOMP_doacross_ull_post,
12935         GOMP_doacross_ull_wait): New functions.
12936         * target.c: Include errno.h.
12937         (resolve_device): If device is not initialized, call
12938         gomp_init_device on it.
12939         (gomp_map_lookup): New function.
12940         (gomp_map_vars_existing): Add tgt_var argument, fill it in.
12941         Don't bump refcount if REFCOUNT_INFINITY.  Handle
12942         GOMP_MAP_ALWAYS_TO_P.
12943         (get_kind): Rename is_openacc argument to short_mapkind.
12944         (gomp_map_pointer): Use gomp_map_lookup.
12945         (gomp_map_fields_existing): New function.
12946         (gomp_map_vars): Rename is_openacc argument to short_mapkind
12947         and is_target to pragma_kind.  Handle GOMP_MAP_VARS_ENTER_DATA,
12948         handle GOMP_MAP_FIRSTPRIVATE_INT, GOMP_MAP_STRUCT,
12949         GOMP_MAP_USE_DEVICE_PTR, GOMP_MAP_ZERO_LEN_ARRAY_SECTION.
12950         Adjust for tgt->list changed type and copy_from living in there.
12951         (gomp_copy_from_async): Adjust for tgt->list changed type and
12952         copy_from living in there.
12953         (gomp_unmap_vars): Likewise.
12954         (gomp_update): Likewise.  Rename is_openacc argument to
12955         short_mapkind.  Don't fail if object is not mapped.
12956         (gomp_load_image_to_device): Initialize refcount to
12957         REFCOUNT_INFINITY.
12958         (gomp_target_fallback): New function.
12959         (gomp_get_target_fn_addr): Likewise.
12960         (GOMP_target): Adjust gomp_map_vars caller, use
12961         gomp_get_target_fn_addr and gomp_target_fallback.
12962         (GOMP_target_41): New function.
12963         (gomp_target_data_fallback): New function.
12964         (GOMP_target_data): Use it, adjust gomp_map_vars caller.
12965         (GOMP_target_data_41): New function.
12966         (GOMP_target_update): Adjust gomp_update caller.
12967         (GOMP_target_update_41): New function.
12968         (gomp_exit_data, GOMP_target_enter_exit_data,
12969         gomp_target_task_fn, omp_target_alloc, omp_target_free,
12970         omp_target_is_present, omp_target_memcpy,
12971         omp_target_memcpy_rect_worker, omp_target_memcpy_rect,
12972         omp_target_associate_ptr, omp_target_disassociate_ptr,
12973         gomp_load_plugin_for_device): New functions.
12974         * task.c: Include gomp-constants.h.  Include taskloop.c
12975         twice to get GOMP_taskloop and GOMP_taskloop_ull definitions.
12976         (gomp_task_handle_depend): New function.
12977         (GOMP_task): Use it.  Add priority argument.  Use
12978         gomp-constant.h constants instead of hardcoded numbers.
12979         Rename GOMP_TASK_IFFALSE to GOMP_TASK_UNDEFERRED.
12980         (gomp_create_target_task): New function.
12981         (verify_children_queue, verify_taskgroup_queue,
12982         verify_task_queue): New functions.
12983         (gomp_task_run_pre): Call verify_*_queue functions.
12984         If an upcoming tied task is about to leave the sibling or
12985         taskgroup queues in an invalid state, adjust appropriately.
12986         Remove taskgroup argument.  Add comments.
12987         (gomp_task_run_post_handle_dependers): Add comments.
12988         (gomp_task_run_post_remove_parent): Likewise.
12989         (gomp_barrier_handle_tasks): Adjust gomp_task_run_pre caller.
12990         (GOMP_taskwait): Likewise.  Add comments.
12991         (gomp_task_maybe_wait_for_dependencies): Fix scheduling
12992         problem such that the first non parent_depends_on task does not
12993         end up at the end of the children queue.
12994         (GOMP_taskgroup_start): Rename GOMP_TASK_IFFALSE to
12995         GOMP_TASK_UNDEFERRED.
12996         (GOMP_taskgroup_end): Adjust gomp_task_run_pre caller.
12997         * taskloop.c: New file.
12998         * testsuite/lib/libgomp.exp
12999         (check_effective_target_offload_device_nonshared_as): New proc.
13000         * testsuite/libgomp.c/affinity-2.c: New test.
13001         * testsuite/libgomp.c/doacross-1.c: New test.
13002         * testsuite/libgomp.c/doacross-2.c: New test.
13003         * testsuite/libgomp.c/examples-4/declare_target-1.c (fib_wrapper):
13004         Add map clause to target.
13005         * testsuite/libgomp.c/examples-4/declare_target-4.c (accum): Likewise.
13006         * testsuite/libgomp.c/examples-4/declare_target-5.c (accum): Likewise.
13007         * testsuite/libgomp.c/examples-4/device-1.c (main): Likewise.
13008         * testsuite/libgomp.c/examples-4/device-3.c (main): Likewise.
13009         * testsuite/libgomp.c/examples-4/target_data-3.c (gramSchmidt):
13010         Likewise.
13011         * testsuite/libgomp.c/examples-4/teams-2.c (dotprod): Likewise.
13012         * testsuite/libgomp.c/examples-4/teams-3.c (dotprod): Likewise.
13013         * testsuite/libgomp.c/examples-4/teams-4.c (dotprod): Likewise.
13014         * testsuite/libgomp.c/for-2.h (OMPTGT, OMPTO, OMPFROM): Define if
13015         not defined.  Use those where needed.
13016         * testsuite/libgomp.c/for-4.c: New test.
13017         * testsuite/libgomp.c/for-5.c: New test.
13018         * testsuite/libgomp.c/for-6.c: New test.
13019         * testsuite/libgomp.c/linear-1.c: New test.
13020         * testsuite/libgomp.c/ordered-4.c: New test.
13021         * testsuite/libgomp.c/pr66199-2.c (f2): Adjust for linear clause
13022         only allowed on the loop iterator.
13023         * testsuite/libgomp.c/pr66199-3.c: New test.
13024         * testsuite/libgomp.c/pr66199-4.c: New test.
13025         * testsuite/libgomp.c/reduction-7.c: New test.
13026         * testsuite/libgomp.c/reduction-8.c: New test.
13027         * testsuite/libgomp.c/reduction-9.c: New test.
13028         * testsuite/libgomp.c/reduction-10.c: New test.
13029         * testsuite/libgomp.c/target-1.c (fn2, fn3, fn4): Add
13030         map(tofrom:s).
13031         * testsuite/libgomp.c/target-2.c (fn2, fn3, fn4): Likewise.
13032         * testsuite/libgomp.c/target-7.c (foo): Add map(h) where needed.
13033         * testsuite/libgomp.c/target-11.c: New test.
13034         * testsuite/libgomp.c/target-12.c: New test.
13035         * testsuite/libgomp.c/target-13.c: New test.
13036         * testsuite/libgomp.c/target-14.c: New test.
13037         * testsuite/libgomp.c/target-15.c: New test.
13038         * testsuite/libgomp.c/target-16.c: New test.
13039         * testsuite/libgomp.c/target-17.c: New test.
13040         * testsuite/libgomp.c/target-18.c: New test.
13041         * testsuite/libgomp.c/target-19.c: New test.
13042         * testsuite/libgomp.c/target-20.c: New test.
13043         * testsuite/libgomp.c/target-21.c: New test.
13044         * testsuite/libgomp.c/target-22.c: New test.
13045         * testsuite/libgomp.c/target-23.c: New test.
13046         * testsuite/libgomp.c/target-24.c: New test.
13047         * testsuite/libgomp.c/target-25.c: New test.
13048         * testsuite/libgomp.c/target-26.c: New test.
13049         * testsuite/libgomp.c/target-27.c: New test.
13050         * testsuite/libgomp.c/taskloop-1.c: New test.
13051         * testsuite/libgomp.c/taskloop-2.c: New test.
13052         * testsuite/libgomp.c/taskloop-3.c: New test.
13053         * testsuite/libgomp.c/taskloop-4.c: New test.
13054         * testsuite/libgomp.c++/ctor-13.C: New test.
13055         * testsuite/libgomp.c++/doacross-1.C: New test.
13056         * testsuite/libgomp.c++/examples-4/declare_target-2.C:
13057         Replace offload_device with offload_device_nonshared_as.
13058         * testsuite/libgomp.c++/for-12.C: New test.
13059         * testsuite/libgomp.c++/for-13.C: New test.
13060         * testsuite/libgomp.c++/for-14.C: New test.
13061         * testsuite/libgomp.c++/linear-1.C: New test.
13062         * testsuite/libgomp.c++/member-1.C: New test.
13063         * testsuite/libgomp.c++/member-2.C: New test.
13064         * testsuite/libgomp.c++/member-3.C: New test.
13065         * testsuite/libgomp.c++/member-4.C: New test.
13066         * testsuite/libgomp.c++/member-5.C: New test.
13067         * testsuite/libgomp.c++/ordered-1.C: New test.
13068         * testsuite/libgomp.c++/reduction-5.C: New test.
13069         * testsuite/libgomp.c++/reduction-6.C: New test.
13070         * testsuite/libgomp.c++/reduction-7.C: New test.
13071         * testsuite/libgomp.c++/reduction-8.C: New test.
13072         * testsuite/libgomp.c++/reduction-9.C: New test.
13073         * testsuite/libgomp.c++/reduction-10.C: New test.
13074         * testsuite/libgomp.c++/reference-1.C: New test.
13075         * testsuite/libgomp.c++/simd14.C: New test.
13076         * testsuite/libgomp.c++/target-2.C (fn2): Add map(tofrom: s) clause.
13077         * testsuite/libgomp.c++/target-5.C: New test.
13078         * testsuite/libgomp.c++/target-6.C: New test.
13079         * testsuite/libgomp.c++/target-7.C: New test.
13080         * testsuite/libgomp.c++/target-8.C: New test.
13081         * testsuite/libgomp.c++/target-9.C: New test.
13082         * testsuite/libgomp.c++/target-10.C: New test.
13083         * testsuite/libgomp.c++/target-11.C: New test.
13084         * testsuite/libgomp.c++/target-12.C: New test.
13085         * testsuite/libgomp.c++/taskloop-1.C: New test.
13086         * testsuite/libgomp.c++/taskloop-2.C: New test.
13087         * testsuite/libgomp.c++/taskloop-3.C: New test.
13088         * testsuite/libgomp.c++/taskloop-4.C: New test.
13089         * testsuite/libgomp.c++/taskloop-5.C: New test.
13090         * testsuite/libgomp.c++/taskloop-6.C: New test.
13091         * testsuite/libgomp.c++/taskloop-7.C: New test.
13092         * testsuite/libgomp.c++/taskloop-8.C: New test.
13093         * testsuite/libgomp.c++/taskloop-9.C: New test.
13094         * testsuite/libgomp.fortran/affinity1.f90: New test.
13095         * testsuite/libgomp.fortran/affinity2.f90: New test.
13097 2015-10-13  Tom de Vries  <tom@codesourcery.com>
13099         PR tree-optimization/67476
13100         * testsuite/libgomp.c/autopar-3.c: New test.
13101         * testsuite/libgomp.c/autopar-4.c: New test.
13102         * testsuite/libgomp.c/autopar-5.c: New test.
13103         * testsuite/libgomp.c/autopar-6.c: New test.
13104         * testsuite/libgomp.c/autopar-7.c: New test.
13105         * testsuite/libgomp.c/autopar-8.c: New test.
13107 2015-10-12  James Norris  <jnorris@codesourcery.com>
13109         * testsuite/libgomp.oacc-c-c++-common/vector-loop.c: Fix loop
13110         initializer.
13112 2015-10-09  David Malcolm  <dmalcolm@redhat.com>
13114         * testsuite/lib/libgomp.exp: Load multiline.exp before prune.exp,
13115         using load_gcc_lib.
13117 2015-10-02  Thomas Schwinge  <thomas@codesourcery.com>
13119         * oacc-ptx.h: Remove file, moving its content into...
13120         * config/nvptx/fortran.c: ... here...
13121         * config/nvptx/oacc-init.c: ..., here...
13122         * config/nvptx/oacc-parallel.c: ..., and here.
13123         * config/nvptx/openacc.f90: New file.
13124         * plugin/plugin-nvptx.c: Don't include "oacc-ptx.h".
13125         (link_ptx): Don't link in predefined bits of PTX code.
13127 2015-09-30  Nathan Sidwell  <nathan@codesourcery.com>
13128             Bernd Schmidt <bernds@codesourcery.com>
13130         * plugin/plugin-nvptx.c (targ_fn_launch): Use GOMP_DIM_MAX.
13131         (struct targ_ptx_obj): New.
13132         (nvptx_tdata): Move earlier, change data format.
13133         (link_ptx): Take targ_ptx_obj ptr and count.  Allow multiple
13134         objects.
13135         (GOMP_OFFLOAD_load_image): Adjust.
13137 2015-09-30  Thomas Schwinge  <thomas@codesourcery.com>
13139         * testsuite/libgomp.oacc-c-c++-common/abort-1.c: Add checkpoint.
13140         * testsuite/libgomp.oacc-c-c++-common/abort-3.c: Likewise.
13141         * testsuite/libgomp.oacc-c-c++-common/clauses-2.c: Likewise.
13142         * testsuite/libgomp.oacc-c-c++-common/data-already-1.c: Likewise.
13143         * testsuite/libgomp.oacc-c-c++-common/data-already-2.c: Likewise.
13144         * testsuite/libgomp.oacc-c-c++-common/data-already-3.c: Likewise.
13145         * testsuite/libgomp.oacc-c-c++-common/data-already-4.c: Likewise.
13146         * testsuite/libgomp.oacc-c-c++-common/data-already-5.c: Likewise.
13147         * testsuite/libgomp.oacc-c-c++-common/data-already-6.c: Likewise.
13148         * testsuite/libgomp.oacc-c-c++-common/data-already-7.c: Likewise.
13149         * testsuite/libgomp.oacc-c-c++-common/data-already-8.c: Likewise.
13150         * testsuite/libgomp.oacc-c-c++-common/lib-1.c: Likewise.
13151         * testsuite/libgomp.oacc-c-c++-common/lib-11.c: Likewise.
13152         * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
13153         * testsuite/libgomp.oacc-c-c++-common/lib-17.c: Likewise.
13154         * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
13155         * testsuite/libgomp.oacc-c-c++-common/lib-2.c: Likewise.
13156         * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
13157         * testsuite/libgomp.oacc-c-c++-common/lib-21.c: Likewise.
13158         * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Likewise.
13159         * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
13160         * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
13161         * testsuite/libgomp.oacc-c-c++-common/lib-26.c: Likewise.
13162         * testsuite/libgomp.oacc-c-c++-common/lib-27.c: Likewise.
13163         * testsuite/libgomp.oacc-c-c++-common/lib-28.c: Likewise.
13164         * testsuite/libgomp.oacc-c-c++-common/lib-29.c: Likewise.
13165         * testsuite/libgomp.oacc-c-c++-common/lib-3.c: Likewise.
13166         * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
13167         * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
13168         * testsuite/libgomp.oacc-c-c++-common/lib-35.c: Likewise.
13169         * testsuite/libgomp.oacc-c-c++-common/lib-36.c: Likewise.
13170         * testsuite/libgomp.oacc-c-c++-common/lib-39.c: Likewise.
13171         * testsuite/libgomp.oacc-c-c++-common/lib-4.c: Likewise.
13172         * testsuite/libgomp.oacc-c-c++-common/lib-40.c: Likewise.
13173         * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
13174         * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Likewise.
13175         * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
13176         * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Likewise.
13177         * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
13178         * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Likewise.
13179         * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
13180         * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
13181         * testsuite/libgomp.oacc-c-c++-common/lib-57.c: Likewise.
13182         * testsuite/libgomp.oacc-c-c++-common/lib-58.c: Likewise.
13183         * testsuite/libgomp.oacc-c-c++-common/lib-62.c: Likewise.
13184         * testsuite/libgomp.oacc-c-c++-common/lib-63.c: Likewise.
13185         * testsuite/libgomp.oacc-c-c++-common/lib-64.c: Likewise.
13186         * testsuite/libgomp.oacc-c-c++-common/lib-65.c: Likewise.
13187         * testsuite/libgomp.oacc-c-c++-common/lib-67.c: Likewise.
13188         * testsuite/libgomp.oacc-c-c++-common/lib-68.c: Likewise.
13189         * testsuite/libgomp.oacc-c-c++-common/lib-71.c: Likewise.
13190         * testsuite/libgomp.oacc-c-c++-common/lib-77.c: Likewise.
13191         * testsuite/libgomp.oacc-c-c++-common/lib-80.c: Likewise.
13192         * testsuite/libgomp.oacc-c-c++-common/present-1.c: Likewise.
13193         * testsuite/libgomp.oacc-fortran/abort-1.f90: Likewise.
13194         * testsuite/libgomp.oacc-fortran/data-already-1.f: Likewise.
13195         * testsuite/libgomp.oacc-fortran/data-already-2.f: Likewise.
13196         * testsuite/libgomp.oacc-fortran/data-already-3.f: Likewise.
13197         * testsuite/libgomp.oacc-fortran/data-already-4.f: Likewise.
13198         * testsuite/libgomp.oacc-fortran/data-already-5.f: Likewise.
13199         * testsuite/libgomp.oacc-fortran/data-already-6.f: Likewise.
13200         * testsuite/libgomp.oacc-fortran/data-already-7.f: Likewise.
13201         * testsuite/libgomp.oacc-fortran/data-already-8.f: Likewise.
13203 2015-09-29  Nathan Sidwell  <nathan@codesourcery.com>
13205         * oacc-init.c (acc_on_device): Force optimization level.
13207 2015-09-29  Nathan Sidwell  <nathan@codesourcery.com>
13209         * plugin/plugin-nvptx.c (ARRAYSIZE): Delete.
13210         (cuda_errlist): Delete.
13211         (cuda_error): Reimplement.
13213 2015-09-28  Nathan Sidwell  <nathan@codesourcery.com>
13215         * libgomp.h (acc_dispatch_t): Replace separate geometry args with
13216         array.
13217         * libgomp.map (GOACC_parallel_keyed): New.
13218         * oacc-parallel.c (goacc_wait): Take pointer to va_list.  Adjust
13219         all callers.
13220         (GOACC_parallel_keyed): New interface.  Lose geometry arguments
13221         and take keyed varargs list.  Adjust call to exec_func.
13222         (GOACC_parallel): Force host fallback.
13223         * libgomp_g.h (GOACC_parallel): Remove.
13224         (GOACC_parallel_keyed): Declare.
13225         * plugin/plugin-nvptx.c (struct targ_fn_launch): New struct.
13226         (struct targ_gn_descriptor): Replace name field with launch field.
13227         (nvptx_exec): Lose separate geometry args, take array.  Process
13228         dynamic dimensions and adjust.
13229         (struct nvptx_tdata): Replace fn_names field with fn_descs.
13230         (GOMP_OFFLOAD_load_image): Adjust for change in function table
13231         data.
13232         (GOMP_OFFLOAD_openacc_parallel): Adjust for change in dimension
13233         passing.
13234         * oacc-host.c (host_openacc_exec): Adjust for change in dimension
13235         passing.
13237 2015-09-22  Chung-Lin Tang  <cltang@codesourcery.com>
13239         PR libgomp/67141
13240         * oacc-int.h (goacc_host_init): Add declaration.
13241         * oacc-host.c (goacc_host_init): Remove static and constructor attribute.
13242         * oacc-init.c (goacc_runtime_initialize): Call goacc_host_init() at end.
13244 2015-09-08  Aditya Kumar  <hiraditya@msn.com>
13245             Sebastian Pop  <s.pop@samsung.com>
13247         * testsuite/libgomp.graphite/bounds.c (int foo): Modified test case to
13248         match o/p.
13249         * testsuite/libgomp.graphite/force-parallel-1.c (void parloop): Same.
13250         * testsuite/libgomp.graphite/force-parallel-4.c: Same.
13251         * testsuite/libgomp.graphite/force-parallel-5.c: Same.
13252         * testsuite/libgomp.graphite/force-parallel-7.c: Same.
13253         * testsuite/libgomp.graphite/force-parallel-8.c: Same.
13255 2015-09-03  Jakub Jelinek  <jakub@redhat.com>
13257         * configure.tgt: Add missing ;; in between nvptx and rtems
13258         snippets.
13260 2015-09-03  Sebastian Huber  <sebastian.huber@embedded-brains.de>
13262         * config/posix/pool.h (gomp_adjust_thread_attr): New.
13263         * config/rtems/pool.h (gomp_adjust_thread_attr): Likewise.
13264         (gomp_thread_pool_reservoir): Add priority member.
13265         * confi/rtems/proc.c (allocate_thread_pool_reservoir): Add
13266         priority.
13267         (parse_thread_pools): Likewise.
13268         * team.c (gomp_team_start): Call configuration provided
13269         gomp_adjust_thread_attr(). Destroy thread attributes if
13270         necessary.
13271         * libgomp.texi: Document GOMP_RTEMS_THREAD_POOLS.
13273 2015-09-03  Sebastian Huber  <sebastian.huber@embedded-brains.de>
13275         * config/posix/pool.h: New.
13276         * config/rtems/pool.h: Likewise.
13277         * config/rtems/proc.c: Likewise.
13278         * libgomp.h (gomp_thread_destructor): Declare.
13279         * team.c: Include configuration provided "pool.h".
13280         (gomp_get_thread_pool): Define in configuration.
13281         (gomp_team_end): Call configuration defined
13282         gomp_release_thread_pool().
13284 2015-09-03  Sebastian Huber  <sebastian.huber@embedded-brains.de>
13286         * config/rtems/bar.c: New.
13287         * config/rtems/bar.h: Likewise.
13288         * config/rtems/mutex.c: Likewise.
13289         * config/rtems/mutex.h: Likewise.
13290         * config/rtems/sem.c: Likewise.
13291         * config/rtems/sem.h: Likewise.
13292         * configure.ac (*-*-rtems*): Check that Newlib provides a proper
13293         <sys/lock.h> header file.
13294         * configure.tgt (*-*-rtems*): Enable RTEMS configuration if
13295         supported by Newlib.
13296         * configure: Regenerate.
13298 2015-09-03  Sebastian Huber  <sebastian.huber@embedded-brains.de>
13300         * team.c (gomp_new_thread_pool): Delete and move content to ...
13301         (gomp_get_thread_pool): ... new function.  Allocate and
13302         initialize thread pool on demand.
13303         (get_last_team): Use gomp_get_thread_pool().
13304         (gomp_team_start): Delete thread pool initialization.
13306 2015-09-03  Tom de Vries  <tom@codesourcery.com>
13308         PR tree-optimization/65637
13309         * testsuite/libgomp.c/autopar-2.c: New test.
13311 2015-08-29  Tom de Vries  <tom@codesourcery.com>
13313         PR tree-optimization/46193
13314         * testsuite/libgomp.c/pr46193.c: New test.
13316 2015-08-24  Nathan Sidwell  <nathan@codesourcery.com>
13318         libgomp/
13319         * libgomp.map: Add 4.0.2 version.
13320         * target.c (offload_image_descr): Add version field.
13321         (gomp_load_image_to_device): Add version argument.  Adjust plugin
13322         call.  Improve load mismatch diagnostic.
13323         (gomp_unload_image_from_device): Add version argument.  Adjust plugin
13324         call.
13325         (GOMP_offload_regster): Make stub function, move bulk to ...
13326         (GOMP_offload_register_ver): ... here.  Process version argument.
13327         (GOMP_offload_unregister): Make stub function, move bulk to ...
13328         (GOMP_offload_unregister_ver): ... here.  Process version argument.
13329         (gomp_init_device): Process version field.
13330         (gomp_unload_device): Process version field.
13331         (gomp_load_plugin_for_device): Reimplement DLSYM & DLSYM_OPT
13332         macros.  Check plugin version.
13333         * libgomp.h (gomp_device_descr): Add version function field.  Adjust
13334         loader and unloader types.
13335         * oacc-host.c: Include gomp-constants.h.
13336         (host_version): New.
13337         (host_load_image, host_unload_image): Adjust.
13338         (host_dispatch): Add host_version.
13339         * plugin/plugin-nvptx.c: Include gomp-constants.h.
13340         (GOMP_OFFLOAD_version): New.
13341         (GOMP_OFFLOAD_load_image): Add version arg and check it.
13342         (GOMP_OFFLOAD_unload_image): Likewise.
13343         * plugin/plugin-host.c: Include gomp-constants.h.
13344         (GOMP_OFFLOAD_version): New.
13345         (GOMP_OFFLOAD_load_image): Add version arg.
13346         (GOMP_OFFLOAD_unload_image): Likewise.
13348 2015-08-24  Tom de Vries  <tom@codesourcery.com>
13350         PR tree-optimization/65468
13351         * testsuite/libgomp.oacc-c-c++-common/vector-loop.c: New test.
13353 2015-08-24  Tom de Vries  <tom@codesourcery.com>
13355         PR tree-optimization/65468
13356         * testsuite/libgomp.c/static-chunk-size-one.c: New test.
13358 2015-08-24  Joost VandeVondele  <vondele@gnu.gcc.org>
13360         PR libgomp/66761
13361         PR libgomp/67303
13362         * iter.c (gomp_iter_dynamic_next): Employ an atomic load.
13363         (gomp_iter_guided_next): Idem.
13364         * iter_ull.c (gomp_iter_ull_dynamic_next): Idem.
13365         (gomp_iter_ull_guided_next): Idem.
13366         * config/linux/wait.h (do_spin): Idem.
13368 2015-08-10  Thomas Schwinge  <thomas@codesourcery.com>
13370         * libgomp-plugin.h (enum offload_target_type): Remove
13371         OFFLOAD_TARGET_TYPE_HOST_NONSHM.
13372         * openacc.f90 (openacc_kinds): Remove acc_device_host_nonshm.
13373         * openacc.h (enum acc_device_t): Likewise.
13374         * openacc_lib.h: Likewise.
13375         * oacc-init.c (name_of_acc_device_t): Don't handle it.
13376         (acc_on_device): Just use __builtin_acc_on_device.
13377         * testsuite/libgomp.oacc-c-c++-common/if-1.c: Don't forbid usage
13378         of acc_on_device builtin.
13379         * plugin/plugin-host.h: Remove file.
13380         * plugin/plugin-host.c: Likewise, but salvage some content into...
13381         * oacc-host.c: ... this file.
13382         * plugin/Makefrag.am: Don't build libgomp-plugin-host_nonshm.la.
13383         * plugin/configfrag.ac (offload_targets): Don't add host_nonshm.
13384         * Makefile.in: Regenerate.
13385         * configure: Likewise.
13386         * testsuite/lib/libgomp.exp
13387         (check_effective_target_openacc_host_nonshm_selected): Remove.
13388         * testsuite/libgomp.oacc-c++/c++.exp: Don't handle
13389         ACC_DEVICE_TYPE=host_nonshm.
13390         * testsuite/libgomp.oacc-c/c.exp: Likewise.
13391         * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
13392         * testsuite/libgomp.oacc-c-c++-common/acc_on_device-1.c: Likewise.
13393         * testsuite/libgomp.oacc-fortran/acc_on_device-1-1.f90: Likewise.
13394         * testsuite/libgomp.oacc-fortran/acc_on_device-1-2.f: Likewise.
13395         * testsuite/libgomp.oacc-fortran/acc_on_device-1-3.f: Likewise.
13397 2015-08-10  Thomas Schwinge  <thomas@codesourcery.com>
13398             Jakub Jelinek  <jakub@redhat.com>
13400         * config/nvptx/affinity.c: New file.
13401         * config/nvptx/alloc.c: Likewise.
13402         * config/nvptx/bar.c: Likewise.
13403         * config/nvptx/barrier.c: Likewise.
13404         * config/nvptx/critical.c: Likewise.
13405         * config/nvptx/env.c: Likewise.
13406         * config/nvptx/error.c: Likewise.
13407         * config/nvptx/fortran.c: Likewise.
13408         * config/nvptx/iter.c: Likewise.
13409         * config/nvptx/iter_ull.c: Likewise.
13410         * config/nvptx/libgomp-plugin.c: Likewise.
13411         * config/nvptx/lock.c: Likewise.
13412         * config/nvptx/loop.c: Likewise.
13413         * config/nvptx/loop_ull.c: Likewise.
13414         * config/nvptx/mutex.c: Likewise.
13415         * config/nvptx/oacc-async.c: Likewise.
13416         * config/nvptx/oacc-cuda.c: Likewise.
13417         * config/nvptx/oacc-host.c: Likewise.
13418         * config/nvptx/oacc-init.c: Likewise.
13419         * config/nvptx/oacc-mem.c: Likewise.
13420         * config/nvptx/oacc-parallel.c: Likewise.
13421         * config/nvptx/oacc-plugin.c: Likewise.
13422         * config/nvptx/omp-lock.h: Likewise.
13423         * config/nvptx/ordered.c: Likewise.
13424         * config/nvptx/parallel.c: Likewise.
13425         * config/nvptx/proc.c: Likewise.
13426         * config/nvptx/ptrlock.c: Likewise.
13427         * config/nvptx/sections.c: Likewise.
13428         * config/nvptx/sem.c: Likewise.
13429         * config/nvptx/single.c: Likewise.
13430         * config/nvptx/splay-tree.c: Likewise.
13431         * config/nvptx/target.c: Likewise.
13432         * config/nvptx/task.c: Likewise.
13433         * config/nvptx/team.c: Likewise.
13434         * config/nvptx/time.c: Likewise.
13435         * config/nvptx/work.c: Likewise.
13436         * configure.ac: Don't probe pthreads support for host nvptx*-*-*.
13437         * configure: Regenerate.
13438         * configure.tgt (config_path): Set to "nvptx" for target
13439         nvptx*-*-*.
13441 2015-08-10  Thomas Schwinge  <thomas@codesourcery.com>
13443         * testsuite/libgomp.oacc-c-c++-common/vector-type-1.c: New file.
13445 2015-08-03  Nathan Sidwell  <nathan@codesourcery.com>
13447         * plugin/plugin-nvptx.c: Don't include dlfcn.h.
13448         (cuda_errlist): Constify.
13449         (errmsg):  Move into ...
13450         (cuda_error): ... here.  Make smaller.
13451         (_XSTR, _STR): Delete.
13452         (cuda_synames): Delete.
13453         (verify_device_library): Delete.
13454         (nvptx_init): Don't call it.
13456 2015-07-28  Tom de Vries  <tom@codesourcery.com>
13458         * testsuite/libgomp.c/uns-outer-4.c: New test.
13460 2015-07-24  Cesar Philippidis  <cesar@codesourcery.com>
13462         * testsuite/libgomp.c/pr66714.c: New test.
13464 2015-07-22  Maxim Blumenthal  <maxim.blumenthal@intel.com>
13466         PR libgomp/66950
13467         * testsuite/libgomp.c/examples-4/simd-7.c (N): Change to 30 from 45.
13468         (fib_ref): New function.
13469         (fib): Correct corner cases in the recursion.
13470         (main): Replace the non-simd loop with fib_ref call.
13471         * testsuite/libgomp.fortran/examples-4/simd-7.f90: (fib_ref): New
13472         subroutine.
13473         (fibonacci): Lower the parameter N to 30.  Correct accordingly check
13474         for the last array element value.  Replace the non-simd loop with
13475         fib_ref call.  Remove redundant b_ref array.  Remove the comparison
13476         of the last array element with according Fibonacci sequence element.
13477         (fib): Correct corner cases in the recursion.
13479 2015-07-21  Nathan Sidwell  <nathan@codesourcery.com>
13481         * target.c (gomp_offload_image_to_device): Rename to ...
13482         (gomp_load_image_to_device): ... here.
13483         (GOMP_offload_register): Adjust call.
13484         (gomp_init_device): Likewise.
13485         (gomp_unload_image_from_device): New.  Broken out of ...
13486         (GOMP_offload_unregister): ... here.  Call it.
13487         (gomp_unload_device): New.
13488         * libgomp.h (gomp_unload_device): Declare.
13489         * oacc-init.c (acc_shutdown_1): Unload from device before deleting
13490         mem maps.
13492 2015-07-20  Nathan Sidwell  <nathan@codesourcery.com>
13494         * oacc-parallel.c (GOACC_parallel): Move variadic handling into
13495         wait=-specific if.
13496         (GOACC_enter_exit_data, GOACC_update): Use consistent num_waits
13497         !=0 condition.
13498         (goacc_waits): Move !num_waits handling to ...
13499         (GOACC_wait): ... here, the only caller that might have zero waits.
13501         * plugin/plugin-nvptx.c (struct targ_fn_descriptor): Move later.
13502         (struct ptx_image_data): Move earlier, add fns field.
13503         (struct ptx_device): Add images and image_lock fields.
13504         (ptx_images, ptx_image_lock): Delete.
13505         (nvptx_open_device): Initialize images and image_lock fields.
13506         (nvptx_close_device): Destroy image_lock.
13507         (GOMP_OFFLOAD_load_image): Register image to device-specific fields.
13508         (GOMP_OFFLOAD_unload_image): Unregister image from device-specific
13509         fields.
13511 2015-07-17  Nathan Sidwell  <nathan@codesourcery.com>
13513         * target.c (GOMP_offload_register): Use int for device type arg.
13514         (GOMP_offload_unregister): Likewise.
13516         * target.c (struct_offload_image_descr): Constify host_table.
13517         (gomp_offload_image_to_device): Likewise.
13518         (GOMP_offload_register, GOMP_offload_unregister): Likewise.
13520         * libgomp.h (gomp_device_descr): Constify target data arguments.
13521         * target.c (struct offload_image_descr): Constify target_data.
13522         (gomp_offload_image_to_device): Likewise.
13523         (GOMP_offload_register): Likewise.
13524         (GOMP_offload_unregister): Likewise.
13525         * plugin/plugin-host.c (GOMP_OFFLOAD_load_image,
13526         GOMP_OFFLOAD_unload_image): Constify target data.
13527         * plugin/plugin-nvptx.c (struct ptx_image_data): Constify target data.
13528         (GOMP_OFFLOAD_load_image, GOMP_OFFLOAD_unload_image): Likewise.
13530 2015-07-16  Nathan Sidwell  <nathan@codesourcery.com>
13532         * plugin/plugin-nvptx.c (link_ptx): Constify string argument.
13533         Workaround driver library const error.
13534         (struct nvptx_tdata, nvptx_tdata_t): New.
13535         (GOMP_OFFLOAD_load_image): Use struct for target_data's real
13536         type.
13538 2015-07-15  Maxim Blumenthal  <maxim.blumenthal@intel.com>
13540         * testsuite/libgomp.fortran/examples-4/simd-8.f90: (main): Change type
13541         of EPS parameter from integer to real.
13542         * testsuite/libgomp.fortran/examples-4/task_dep-5.f90: (check): Change
13543         type of EPS parameter from integer to real.
13545 2015-07-15  Sebastian Huber  <sebastian.huber@embedded-brains.de>
13547         * team.c (get_last_team): New.
13548         (gomp_new_team): Recycle last non-nested team if possible.
13549         (gomp_team_end): Move team work share list free lock destruction
13550         to ...
13551         (free_team): ... here.
13553 2015-07-14  Maxim Blumenthal  <maxim.blumenthal@intel.com>
13555         * testsuite/libgomp.c/examples-4/simd-3.c: (main): Change type of res
13556         and ref from int to double.  Replaced their comparison with
13557         an inequality of their difference and EPS.
13558         * testsuite/libgomp.c/examples-4/simd-8.c: (main): Replace the
13559         comparison of pri and a reference number with an inequality of their
13560         difference and EPS.
13561         * testsuite/libgomp.fortran/examples-4/simd-3.f90: (main): Replaced
13562         the comparison of sum and sum_ref with an inequality of their
13563         difference and EPS.
13564         * testsuite/libgomp.fortran/examples-4/simd-8.f90: (main): Replace
13565         the comparison of pri and a reference number with an inequality of
13566         their difference and EPS.
13568 2015-07-13  Maxim Blumenthal  <maxim.blumenthal@intel.com>
13570         * testsuite/libgomp.c++/examples-4/e.53.2.C: Renamed to...
13571         * testsuite/libgomp.c++/examples-4/declare_target-2.C: ...this.
13572         * testsuite/libgomp.c++/examples-4/e.51.5.C: Renamed to...
13573         * testsuite/libgomp.c++/examples-4/target_data-5.C: ...this.
13574         * testsuite/libgomp.c/examples-4/e.56.3.c: Renamed to...
13575         * testsuite/libgomp.c/examples-4/array_sections-3.c: ...this.
13576         * testsuite/libgomp.c/examples-4/e.56.4.c: Renamed to...
13577         * testsuite/libgomp.c/examples-4/array_sections-4.c: ...this.
13578         * testsuite/libgomp.c/examples-4/e.55.1.c: Renamed to...
13579         * testsuite/libgomp.c/examples-4/async_target-1.c: ...this.
13580         * testsuite/libgomp.c/examples-4/e.55.2.c: Renamed to...
13581         * testsuite/libgomp.c/examples-4/async_target-2.c: ...this.
13582         (vec_mult_ref): Remove v1 and v2 arguments, turn them into local
13583         variables.
13584         (vec_mult): Likewise.  Add #pragma omp taskwait.
13585         (main): Adjust caller.
13586         * testsuite/libgomp.c/examples-4/e.53.1.c: Renamed to...
13587         * testsuite/libgomp.c/examples-4/declare_target-1.c: ...this.
13588         * testsuite/libgomp.c/examples-4/e.53.3.c: Renamed to...
13589         * testsuite/libgomp.c/examples-4/declare_target-3.c: ...this.
13590         * testsuite/libgomp.c/examples-4/e.53.4.c: Renamed to...
13591         * testsuite/libgomp.c/examples-4/declare_target-4.c: ...this.
13592         * testsuite/libgomp.c/examples-4/e.53.5.c: Renamed to...
13593         * testsuite/libgomp.c/examples-4/declare_target-5.c: ...this.
13594         * testsuite/libgomp.c/examples-4/e.57.1.c: Renamed to...
13595         * testsuite/libgomp.c/examples-4/device-1.c: ...this.
13596         * testsuite/libgomp.c/examples-4/e.57.2.c: Renamed to...
13597         * testsuite/libgomp.c/examples-4/device-2.c: ...this.
13598         * testsuite/libgomp.c/examples-4/e.57.3.c: Renamed to...
13599         * testsuite/libgomp.c/examples-4/device-3.c: ...this.
13600         * testsuite/libgomp.c/examples-4/simd-1.c: New file.
13601         * testsuite/libgomp.c/examples-4/simd-2.c: New file.
13602         * testsuite/libgomp.c/examples-4/simd-3.c: New file.
13603         * testsuite/libgomp.c/examples-4/simd-4.c: New file.
13604         * testsuite/libgomp.c/examples-4/simd-5.c: New file.
13605         * testsuite/libgomp.c/examples-4/simd-6.c: New file.
13606         * testsuite/libgomp.c/examples-4/simd-7.c: New file.
13607         * testsuite/libgomp.c/examples-4/simd-8.c: New file.
13608         * testsuite/libgomp.c/examples-4/e.50.1.c: Renamed to...
13609         * testsuite/libgomp.c/examples-4/target-1.c: ...this.
13610         * testsuite/libgomp.c/examples-4/e.50.2.c: Renamed to...
13611         * testsuite/libgomp.c/examples-4/target-2.c: ...this.
13612         * testsuite/libgomp.c/examples-4/e.50.3.c: Renamed to...
13613         * testsuite/libgomp.c/examples-4/target-3.c: ...this.
13614         * testsuite/libgomp.c/examples-4/e.50.4.c: Renamed to...
13615         * testsuite/libgomp.c/examples-4/target-4.c: ...this.
13616         * testsuite/libgomp.c/examples-4/e.50.5.c: Renamed to...
13617         * testsuite/libgomp.c/examples-4/target-5.c: ...this.
13618         * testsuite/libgomp.c/examples-4/e.51.1.c: Renamed to...
13619         * testsuite/libgomp.c/examples-4/target_data-1.c: ...this.
13620         * testsuite/libgomp.c/examples-4/e.51.2.c: Renamed to...
13621         * testsuite/libgomp.c/examples-4/target_data-2.c: ...this.
13622         * testsuite/libgomp.c/examples-4/e.51.3.c: Renamed to...
13623         * testsuite/libgomp.c/examples-4/target_data-3.c: ...this.
13624         * testsuite/libgomp.c/examples-4/e.51.4.c: Renamed to...
13625         * testsuite/libgomp.c/examples-4/target_data-4.c: ...this.
13626         * testsuite/libgomp.c/examples-4/e.51.6.c: Renamed to...
13627         * testsuite/libgomp.c/examples-4/target_data-6.c: ...this.
13628         * testsuite/libgomp.c/examples-4/e.51.7.c: Renamed to...
13629         * testsuite/libgomp.c/examples-4/target_data-7.c: ...this.
13630         * testsuite/libgomp.c/examples-4/e.52.1.c: Renamed to...
13631         * testsuite/libgomp.c/examples-4/target_update-1.c: ...this.
13632         * testsuite/libgomp.c/examples-4/e.52.2.c: Renamed to...
13633         * testsuite/libgomp.c/examples-4/target_update-2.c: ...this.
13634         * testsuite/libgomp.c/examples-4/task_dep-1.c: New file.
13635         * testsuite/libgomp.c/examples-4/task_dep-2.c: New file.
13636         * testsuite/libgomp.c/examples-4/task_dep-3.c: New file.
13637         * testsuite/libgomp.c/examples-4/task_dep-4.c: New file.
13638         * testsuite/libgomp.c/examples-4/task_dep-5.c: New file.
13639         * testsuite/libgomp.c/examples-4/e.54.2.c: Renamed to...
13640         * testsuite/libgomp.c/examples-4/teams-2.c: ...this.
13641         * testsuite/libgomp.c/examples-4/e.54.3.c: Renamed to...
13642         * testsuite/libgomp.c/examples-4/teams-3.c: ...this.
13643         * testsuite/libgomp.c/examples-4/e.54.4.c: Renamed to...
13644         * testsuite/libgomp.c/examples-4/teams-4.c: ...this.
13645         * testsuite/libgomp.c/examples-4/e.54.5.c: Renamed to...
13646         * testsuite/libgomp.c/examples-4/teams-5.c: ...this.
13647         * testsuite/libgomp.c/examples-4/e.54.6.c: Renamed to...
13648         * testsuite/libgomp.c/examples-4/teams-6.c: ...this.
13649         * testsuite/libgomp.fortran/examples-4/e.56.3.f90: Renamed to...
13650         * testsuite/libgomp.fortran/examples-4/array_sections-3.f90: ...this.
13651         * testsuite/libgomp.fortran/examples-4/e.56.4.f90: Renamed to...
13652         * testsuite/libgomp.fortran/examples-4/array_sections-4.f90: ...this.
13653         * testsuite/libgomp.fortran/examples-4/e.55.1.f90: Renamed to...
13654         * testsuite/libgomp.fortran/examples-4/async_target-1.f90: ...this.
13655         * testsuite/libgomp.fortran/examples-4/e.55.2.f90: Renamed to...
13656         * testsuite/libgomp.fortran/examples-4/async_target-2.f90: ...this.
13657         (vec_mult): Add !$omp taskwait.
13658         * testsuite/libgomp.fortran/examples-4/e.53.1.f90: Renamed to...
13659         * testsuite/libgomp.fortran/examples-4/declare_target-1.f90: ...this.
13660         * testsuite/libgomp.fortran/examples-4/e.53.2.f90: Renamed to...
13661         * testsuite/libgomp.fortran/examples-4/declare_target-2.f90: ...this.
13662         * testsuite/libgomp.fortran/examples-4/e.53.3.f90: Renamed to...
13663         * testsuite/libgomp.fortran/examples-4/declare_target-3.f90: ...this.
13664         * testsuite/libgomp.fortran/examples-4/e.53.4.f90: Renamed to...
13665         * testsuite/libgomp.fortran/examples-4/declare_target-4.f90: ...this.
13666         * testsuite/libgomp.fortran/examples-4/e.53.5.f90: Renamed to...
13667         * testsuite/libgomp.fortran/examples-4/declare_target-5.f90: ...this.
13668         * testsuite/libgomp.fortran/examples-4/e.57.1.f90: Renamed to...
13669         * testsuite/libgomp.fortran/examples-4/device-1.f90: ...this.
13670         * testsuite/libgomp.fortran/examples-4/e.57.2.f90: Renamed to...
13671         * testsuite/libgomp.fortran/examples-4/device-2.f90: ...this.
13672         * testsuite/libgomp.fortran/examples-4/e.57.3.f90: Renamed to...
13673         * testsuite/libgomp.fortran/examples-4/device-3.f90: ...this.
13674         * testsuite/libgomp.fortran/examples-4/simd-1.f90: New file.
13675         * testsuite/libgomp.fortran/examples-4/simd-2.f90: New file.
13676         * testsuite/libgomp.fortran/examples-4/simd-3.f90: New file.
13677         * testsuite/libgomp.fortran/examples-4/simd-4.f90: New file.
13678         * testsuite/libgomp.fortran/examples-4/simd-5.f90: New file.
13679         * testsuite/libgomp.fortran/examples-4/simd-6.f90: New file.
13680         * testsuite/libgomp.fortran/examples-4/simd-7.f90: New file.
13681         * testsuite/libgomp.fortran/examples-4/simd-8.f90: New file.
13682         * testsuite/libgomp.fortran/examples-4/e.50.1.f90: Renamed to...
13683         * testsuite/libgomp.fortran/examples-4/target-1.f90: ...this.
13684         * testsuite/libgomp.fortran/examples-4/e.50.2.f90: Renamed to...
13685         * testsuite/libgomp.fortran/examples-4/target-2.f90: ...this.
13686         * testsuite/libgomp.fortran/examples-4/e.50.3.f90: Renamed to...
13687         * testsuite/libgomp.fortran/examples-4/target-3.f90: ...this.
13688         * testsuite/libgomp.fortran/examples-4/e.50.4.f90: Renamed to...
13689         * testsuite/libgomp.fortran/examples-4/target-4.f90: ...this.
13690         * testsuite/libgomp.fortran/examples-4/e.50.5.f90: Renamed to...
13691         * testsuite/libgomp.fortran/examples-4/target-5.f90: ...this.
13692         * testsuite/libgomp.fortran/examples-4/e.51.1.f90: Renamed to...
13693         * testsuite/libgomp.fortran/examples-4/target_data-1.f90: ...this.
13694         * testsuite/libgomp.fortran/examples-4/e.51.2.f90: Renamed to...
13695         * testsuite/libgomp.fortran/examples-4/target_data-2.f90: ...this.
13696         * testsuite/libgomp.fortran/examples-4/e.51.3.f90: Renamed to...
13697         * testsuite/libgomp.fortran/examples-4/target_data-3.f90: ...this.
13698         * testsuite/libgomp.fortran/examples-4/e.51.4.f90: Renamed to...
13699         * testsuite/libgomp.fortran/examples-4/target_data-4.f90: ...this.
13700         * testsuite/libgomp.fortran/examples-4/e.51.5.f90: Renamed to...
13701         * testsuite/libgomp.fortran/examples-4/target_data-5.f90: ...this.
13702         * testsuite/libgomp.fortran/examples-4/e.51.6.f90: Renamed to...
13703         * testsuite/libgomp.fortran/examples-4/target_data-6.f90: ...this.
13704         * testsuite/libgomp.fortran/examples-4/e.51.7.f90: Renamed to...
13705         * testsuite/libgomp.fortran/examples-4/target_data-7.f90: ...this.
13706         * testsuite/libgomp.fortran/examples-4/e.52.1.f90: Renamed to...
13707         * testsuite/libgomp.fortran/examples-4/target_update-1.f90: ...this.
13708         * testsuite/libgomp.fortran/examples-4/e.52.2.f90: Renamed to...
13709         * testsuite/libgomp.fortran/examples-4/target_update-2.f90: ...this.
13710         * testsuite/libgomp.fortran/examples-4/task_dep-1.f90: New file.
13711         * testsuite/libgomp.fortran/examples-4/task_dep-2.f90: New file.
13712         * testsuite/libgomp.fortran/examples-4/task_dep-3.f90: New file.
13713         * testsuite/libgomp.fortran/examples-4/task_dep-4.f90: New file.
13714         * testsuite/libgomp.fortran/examples-4/task_dep-5.f90: New file.
13715         * testsuite/libgomp.fortran/examples-4/e.54.2.f90: Renamed to...
13716         * testsuite/libgomp.fortran/examples-4/teams-2.f90: ...this.
13717         * testsuite/libgomp.fortran/examples-4/e.54.3.f90: Renamed to...
13718         * testsuite/libgomp.fortran/examples-4/teams-3.f90: ...this.
13719         * testsuite/libgomp.fortran/examples-4/e.54.4.f90: Renamed to...
13720         * testsuite/libgomp.fortran/examples-4/teams-4.f90: ...this.
13721         * testsuite/libgomp.fortran/examples-4/e.54.5.f90: Renamed to...
13722         * testsuite/libgomp.fortran/examples-4/teams-5.f90: ...this.
13723         * testsuite/libgomp.fortran/examples-4/e.54.6.f90: Renamed to...
13724         * testsuite/libgomp.fortran/examples-4/teams-6.f90: ...this.
13726 2015-07-10  Tom de Vries  <tom@codesourcery.com>
13728         * testsuite/libgomp.fortran/parloops-exit-first-loop-alt-2.f95: New test.
13729         * testsuite/libgomp.fortran/parloops-exit-first-loop-alt.f95: New test.
13731 2015-07-08  Thomas Schwinge  <thomas@codesourcery.com>
13733         PR libgomp/65099
13734         * plugin/plugin-nvptx.c (nvptx_get_num_devices): Return 0 if not
13735         in a 64-bit configuration.
13736         * testsuite/libgomp.oacc-c++/c++.exp: Don't attempt nvidia
13737         offloading testing if no such device is available.
13738         * testsuite/libgomp.oacc-c/c.exp: Likewise.
13739         * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
13741 2015-07-08  Tom de Vries  <tom@codesourcery.com>
13743         * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c (main): Fix
13744         second call to f.
13745         * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: Same.
13747 2015-07-07  Tom de Vries  <tom@codesourcery.com>
13749         PR tree-optimization/66642
13750         * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c (main): Test low
13751         iteration count case.
13752         * testsuite/libgomp.c/parloops-exit-first-loop-alt.c (init): New
13753         function, factor out of ...
13754         (main): ... here.  Test low iteration count case.
13756 2015-07-06  Sebastian Huber  <sebastian.huber@embedded-brains.de>
13758         * libgomp.h (gomp_thread_pool): Comment last_team field.
13760 2015-07-02  Uros Bizjak  <ubizjak@gmail.com>
13762         * testsuite/libgomp.c++/pr66702-1.C: Require
13763         vect_simd_clones effective target.
13764         * testsuite/libgomp.c++/pr66702-2.C: Ditto.
13766 2015-06-30  Tom de Vries  <tom@codesourcery.com>
13768         * testsuite/libgomp.oacc-c++/c++.exp: Set DEFAULT_CFLAGS to -O2 if not
13769         already set.  Use DEFAULT_CFLAGS in dg-runtest.
13770         * testsuite/libgomp.oacc-c-c++-common/collapse-3.c: Remove dg-options
13771         "-O2".
13773 2015-06-30  Tom de Vries  <tom@codesourcery.com>
13775         * testsuite/libgomp.c++/c++.exp: Set DEFAULT_CFLAGS to -O2 if not
13776         already set.  Use DEFAULT_CFLAGS in dg-runtest.
13777         * testsuite/libgomp.c++/atomic-16.C: Remove dg-options "-O2 -fopenmp".
13778         * testsuite/libgomp.c++/pr64824.C: Same.
13779         * testsuite/libgomp.c++/pr64868.C: Same.
13780         * testsuite/libgomp.c++/pr66199-1.C: Same.
13781         * testsuite/libgomp.c++/pr66199-2.C: Same.
13782         * testsuite/libgomp.c++/target-2.C: Same.
13783         * testsuite/libgomp.c++/for-7.C: Use dg-additional-options for
13784         -std=<standard> option.
13785         * testsuite/libgomp.c++/udr-11.C: Same.
13786         * testsuite/libgomp.c++/udr-12.C: Same.
13787         * testsuite/libgomp.c++/udr-13.C: Same.
13788         * testsuite/libgomp.c++/udr-14.C: Same.
13789         * testsuite/libgomp.c++/udr-15.C: Same.
13790         * testsuite/libgomp.c++/udr-16.C: Same.
13791         * testsuite/libgomp.c++/udr-17.C: Same.
13792         * testsuite/libgomp.c++/udr-18.C: Same.
13793         * testsuite/libgomp.c++/udr-19.C: Same.
13794         * testsuite/libgomp.c++/atomic-1.C: Remove dg-options "-O2".
13795         * testsuite/libgomp.c++/simd-1.C: Same.
13796         * testsuite/libgomp.c++/simd-2.C: Same.
13797         * testsuite/libgomp.c++/simd-3.C: Same.
13798         * testsuite/libgomp.c++/simd-4.C: Same.
13799         * testsuite/libgomp.c++/simd-5.C: Same.
13800         * testsuite/libgomp.c++/simd-6.C: Same.
13801         * testsuite/libgomp.c++/simd-7.C: Same.
13802         * testsuite/libgomp.c++/simd-8.C: Same.
13803         * testsuite/libgomp.c++/simd-9.C: Same.
13804         * testsuite/libgomp.c++/simd10.C: Same.
13805         * testsuite/libgomp.c++/simd11.C: Same.
13806         * testsuite/libgomp.c++/simd12.C: Same.
13807         * testsuite/libgomp.c++/simd13.C: Same.
13809 2015-06-30  Jakub Jelinek  <jakub@redhat.com>
13811         PR middle-end/66702
13812         * testsuite/libgomp.c++/pr66702-1.C: New test.
13813         * testsuite/libgomp.c++/pr66702-2.C: New test.
13815 2015-06-30  Tom de Vries  <tom@codesourcery.com>
13817         * testsuite/libgomp.c/parloops-exit-first-loop-alt-5.c: New test.
13818         * testsuite/libgomp.c/parloops-exit-first-loop-alt-6.c: New test.
13819         * testsuite/libgomp.c/parloops-exit-first-loop-alt-7.c: New test.
13820         * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: Update comment.
13822 2015-06-30  Tom de Vries  <tom@codesourcery.com>
13824         PR tree-optimization/66652
13825         * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c (f): Rewrite
13826         using restrict pointers.
13827         (main): Add arguments to calls to f.
13828         * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: Same.
13830 2015-06-23  Andreas Tobler  <andreast@gcc.gnu.org>
13832         * configure.ac: Fix check for header <sys/sysctl.h>.
13833         * configure: Regenerate.
13834         * config.h.in: Likewise.
13836 2015-06-23  Tom de Vries  <tom@codesourcery.com>
13838         * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c (main): Use
13839         abort.
13840         * testsuite/libgomp.c/parloops-exit-first-loop-alt-4.c (main): Same.
13842 2015-06-19  Thomas Schwinge  <thomas@codesourcery.com>
13844         * testsuite/libgomp.oacc-c-c++-common/lib-62.c: Only consider for
13845         acc_device_nvidia.
13847         PR libgomp/66518
13848         * testsuite/libgomp.oacc-c-c++-common/lib-3.c: XFAIL.
13849         * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
13851 2015-06-15  Tom de Vries  <tom@codesourcery.com>
13853         * testsuite/libgomp.c/atomic-1.c: Remove dg-options "-O2".  Use
13854         dg-additional-options for any remaining options.
13855         * testsuite/libgomp.c/atomic-2.c: Same.
13856         * testsuite/libgomp.c/atomic-4.c: Same.
13857         * testsuite/libgomp.c/atomic-5.c: Same.
13858         * testsuite/libgomp.c/atomic-6.c: Same.
13859         * testsuite/libgomp.c/autopar-1.c: Same.
13860         * testsuite/libgomp.c/copyin-1.c: Same.
13861         * testsuite/libgomp.c/copyin-2.c: Same.
13862         * testsuite/libgomp.c/copyin-3.c: Same.
13863         * testsuite/libgomp.c/examples-4/e.53.5.c: Same.
13864         * testsuite/libgomp.c/nestedfn-5.c: Same.
13865         * testsuite/libgomp.c/parloops-exit-first-loop-alt-2.c: Same.
13866         * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c: Same.
13867         * testsuite/libgomp.c/parloops-exit-first-loop-alt-4.c: Same.
13868         * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: Same.
13869         * testsuite/libgomp.c/pr32362-1.c: Same.
13870         * testsuite/libgomp.c/pr32362-2.c: Same.
13871         * testsuite/libgomp.c/pr32362-3.c: Same.
13872         * testsuite/libgomp.c/pr39591-1.c: Same.
13873         * testsuite/libgomp.c/pr39591-2.c: Same.
13874         * testsuite/libgomp.c/pr39591-3.c: Same.
13875         * testsuite/libgomp.c/pr58392.c: Same.
13876         * testsuite/libgomp.c/pr58756.c: Same.
13877         * testsuite/libgomp.c/simd-1.c: Same.
13878         * testsuite/libgomp.c/simd-10.c: Same.
13879         * testsuite/libgomp.c/simd-11.c: Same.
13880         * testsuite/libgomp.c/simd-12.c: Same.
13881         * testsuite/libgomp.c/simd-13.c: Same.
13882         * testsuite/libgomp.c/simd-14.c: Same.
13883         * testsuite/libgomp.c/simd-15.c: Same.
13884         * testsuite/libgomp.c/simd-2.c: Same.
13885         * testsuite/libgomp.c/simd-3.c: Same.
13886         * testsuite/libgomp.c/simd-4.c: Same.
13887         * testsuite/libgomp.c/simd-5.c: Same.
13888         * testsuite/libgomp.c/simd-6.c: Same.
13889         * testsuite/libgomp.c/simd-7.c: Same.
13890         * testsuite/libgomp.c/simd-8.c: Same.
13891         * testsuite/libgomp.c/simd-9.c: Same.
13893 2015-06-15  Tom de Vries  <tom@codesourcery.com>
13895         * testsuite/libgomp.c/pr35625.c: Fix typo.
13897 2015-06-15  Tom de Vries  <tom@codesourcery.com>
13899         * testsuite/libgomp.c/atomic-18.c: Remove superfluous -fopenmp setting
13900         in dg-options.
13901         * testsuite/libgomp.c/atomic-3.c: Same.
13902         * testsuite/libgomp.c/debug-1.c: Same.
13903         * testsuite/libgomp.c/nqueens-1.c: Same.
13904         * testsuite/libgomp.c/pr26171.c: Same.
13905         * testsuite/libgomp.c/pr48591.c: Same.
13906         * testsuite/libgomp.c/pr64824.c: Same.
13907         * testsuite/libgomp.c/pr64868.c: Same.
13908         * testsuite/libgomp.c/pr66133.c: Same.
13909         * testsuite/libgomp.c/pr66199-1.c: Same.
13910         * testsuite/libgomp.c/pr66199-2.c: Same.
13911         * testsuite/libgomp.c/target-8.c: Same.
13913 2015-06-15  Tom de Vries  <tom@codesourcery.com>
13915         * testsuite/libgomp.c/collapse-3.c: Use dg-additional-options for
13916         -std={gnu99,c99}.
13917         * testsuite/libgomp.c/for-1.c: Same.
13918         * testsuite/libgomp.c/for-2.c: Same.
13919         * testsuite/libgomp.c/for-3.c: Same.
13920         * testsuite/libgomp.c/pr35625.c: Same.
13921         * testsuite/libgomp.c/pr39154.c: Same.
13922         * testsuite/libgomp.c/simd-16.c: Same.
13923         * testsuite/libgomp.c/simd-17.c: Same.
13925 2015-06-13  Tom de Vries  <tom@codesourcery.com>
13927         * testsuite/libgomp.c/parloops-exit-first-loop-alt-4.c: New test.
13929 2015-06-13  Tom de Vries  <tom@codesourcery.com>
13931         * testsuite/libgomp.c/parloops-exit-first-loop-alt-2.c: Add comment.
13932         * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: Same.
13933         * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c: Add comment.
13934         (N): Define.
13935         (main): Use N instead of hardcoded constants.
13937 2015-06-05  Tom de Vries  <tom@codesourcery.com>
13939         merge from gomp4 branch:
13940         2015-05-28  Tom de Vries  <tom@codesourcery.com>
13942         PR tree-optimization/65443
13943         * testsuite/libgomp.c/parloops-exit-first-loop-alt-2.c: New test.
13944         * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c: New test.
13945         * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: New test.
13947 2015-05-29  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
13949         * testsuite/libgomp.graphite/bounds.c: Adjust for
13950         cleanup-tree-dump removal.
13951         * testsuite/libgomp.graphite/force-parallel-1.c: Likewise.
13952         * testsuite/libgomp.graphite/force-parallel-2.c: Likewise.
13953         * testsuite/libgomp.graphite/force-parallel-3.c: Likewise.
13954         * testsuite/libgomp.graphite/force-parallel-4.c: Likewise.
13955         * testsuite/libgomp.graphite/force-parallel-5.c: Likewise.
13956         * testsuite/libgomp.graphite/force-parallel-6.c: Likewise.
13957         * testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
13958         * testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
13959         * testsuite/libgomp.graphite/force-parallel-9.c: Likewise.
13960         * testsuite/libgomp.graphite/pr41118.c: Likewise.
13962 2015-05-28  Uros Bizjak  <ubizjak@gmail.com>
13964         * config/linux/x86/futex.h (sys_futex0) [!__x86_64__]: Remove function.
13965         (futex_wait) [!__x86_64__]: Use __asm operand instead of sys_futex0.
13966         (futex_wake) [!__x86_64__]: Ditto.
13968 2015-05-28  Julian Brown  <julian@codesourcery.com>
13970         * oacc-init.c (resolve_device): Add FAIL_IS_ERROR argument. Update
13971         function comment. Only call gomp_fatal if new argument is true.
13972         (acc_dev_num_out_of_range): New function.
13973         (acc_init_1, acc_shutdown_1): Update call to resolve_device. Call
13974         acc_dev_num_out_of_range as appropriate.
13975         (acc_get_num_devices, acc_set_device_type, acc_get_device_type)
13976         (acc_get_device_num, acc_set_device_num): Update calls to
13977         resolve_device.
13978         * testsuite/libgomp.oacc-c-c++-common/lib-4.c: Update expected test
13979         output.
13981 2015-05-28  Julian Brown  <julian@codesourcery.com>
13983         PR libgomp/65742
13984         * oacc-init.c (plugin/plugin-host.h): Include.
13985         (acc_on_device): Check whether we're in an offloaded region for
13986         host_nonshm
13987         plugin. Don't use __builtin_acc_on_device.
13988         * plugin/plugin-host.c (GOMP_OFFLOAD_openacc_parallel): Set
13989         nonshm_exec flag in thread-local data.
13990         (GOMP_OFFLOAD_openacc_create_thread_data): Allocate thread-local
13991         data for host_nonshm plugin.
13992         (GOMP_OFFLOAD_openacc_destroy_thread_data): Free thread-local data
13993         for host_nonshm plugin.
13994         * plugin/plugin-host.h: New.
13996 2015-05-27  Uros Bizjak  <ubizjak@gmail.com>
13998         * config/linux/ia64/futex.h (sys_futex0) Change operand "op" to int.
14000 2015-05-27  Uros Bizjak  <ubizjak@gmail.com>
14002         * config/linux/wait.h (gomp_futex_wait, gomp_futex_wake):
14003         Declare as int.
14004         (FUTEX_PRIVATE_FLAG): Remove L suffix.
14005         * config/linux/mutex.c (gomp_futex_wait, gomp_futex_wake):
14006         Declare as int.
14008 2015-05-27  Uros Bizjak  <ubizjak@gmail.com>
14010         * config/linux/x86/futex.h (sys_futex0) [__PIC__]: Remove function.
14012 2015-05-27  Chung-Lin Tang  <cltang@codesourcery.com>
14014         * target.c (gomp_map_pointer): New function abstracting out
14015         GOMP_MAP_POINTER handling.
14016         (gomp_map_vars): Remove GOMP_MAP_POINTER handling code and use
14017         gomp_map_pointer().
14019 2015-05-19  Jakub Jelinek  <jakub@redhat.com>
14021         PR middle-end/66199
14022         * testsuite/libgomp.c/pr66199-1.c: New test.
14023         * testsuite/libgomp.c/pr66199-2.c: New test.
14024         * testsuite/libgomp.c++/pr66199-1.C: New test.
14025         * testsuite/libgomp.c++/pr66199-2.C: New test.
14026         * testsuite/libgomp.fortran/pr66199-1.f90: New test.
14027         * testsuite/libgomp.fortran/pr66199-2.f90: New test.
14029 2015-05-19  Julian Brown  <julian@codesourcery.com>
14031         * plugin/plugin-nvptx.c (nvptx_get_num_devices): Return zero
14032         on cuInit failure.
14034 2015-05-13  Jakub Jelinek  <jakub@redhat.com>
14036         PR middle-end/66133
14037         * testsuite/libgomp.c/pr66133.c: New test.
14039 2015-05-13  Michael Haubenwallner  <michael.haubenwallner@ssi-schaefer.com>
14041         * Makefile.in: Regenerated with automake-1.11.6.
14042         * aclocal.m4: Likewise.
14043         * config.h.in: Likewise.
14044         * configure: Likewise.
14045         * testsuite/Makefile.in: Likewise.
14047 2015-05-08  Jason Merrill  <jason@redhat.com>
14049         * testsuite/libgomp.oacc-c-c++-common/reduction-4.c (main): Use
14050         _Complex.
14052         * openacc.h (__GOACC_NOTHROW): Fix noexcept syntax.
14054 2015-05-06  Julian Brown  <julian@codesourcery.com>
14056         * oacc-init.c (acc_device_lock): Add explanatory comment.
14057         (resolve_device): Add comment about locking requirement.
14058         (acc_init_1, acc_shutdown_1): Likewise. Add locking around
14059         gomp_init_device and gomp_fini_device calls.
14060         (acc_get_num_devices, acc_set_device_type, acc_get_device_type)
14061         (acc_get_device_num, acc_set_device_num): Add locking around
14062         resolve_device and gomp_init_device calls.
14064 2015-05-06  Julian Brown  <julian@codesourcery.com>
14066         * oacc-init.c (acc_shutdown_1): Call gomp_mutex_unlock for
14067         goacc_thread_lock on error paths.
14068         * oacc-mem.c (lookup_host): Remove locking from function. Note
14069         locking requirement for caller in function comment.
14070         (lookup_dev): Likewise.
14071         (acc_free, acc_deviceptr, acc_hostptr, acc_is_present)
14072         (acc_map_data, acc_unmap_data, present_create_copy, delete_copyout)
14073         (update_dev_host, gomp_acc_insert_pointer, gomp_acc_remove_pointer):
14074         Add locking.
14076 2015-05-05  Thomas Schwinge  <thomas@codesourcery.com>
14078         PR testsuite/65205
14079         PR libgomp/65993
14080         * testsuite/libgomp.oacc-c-c++-common/clauses-2.c: In dg-output,
14081         don't expect "0x" prefix for "%p" format specifier, don't expect
14082         "(nil)" for NULL pointer.
14083         * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
14084         * testsuite/libgomp.oacc-c-c++-common/lib-17.c: Likewise.
14085         * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
14086         * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
14087         * testsuite/libgomp.oacc-c-c++-common/lib-21.c: Likewise.
14088         * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Likewise.
14089         * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
14090         * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
14091         * testsuite/libgomp.oacc-c-c++-common/lib-26.c: Likewise.
14092         * testsuite/libgomp.oacc-c-c++-common/lib-27.c: Likewise.
14093         * testsuite/libgomp.oacc-c-c++-common/lib-28.c: Likewise.
14094         * testsuite/libgomp.oacc-c-c++-common/lib-29.c: Likewise.
14095         * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
14096         * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
14097         * testsuite/libgomp.oacc-c-c++-common/lib-35.c: Likewise.
14098         * testsuite/libgomp.oacc-c-c++-common/lib-36.c: Likewise.
14099         * testsuite/libgomp.oacc-c-c++-common/lib-39.c: Likewise.
14100         * testsuite/libgomp.oacc-c-c++-common/lib-40.c: Likewise.
14101         * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
14102         * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Likewise.
14103         * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
14104         * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Likewise.
14105         * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
14106         * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Likewise.
14107         * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
14108         * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
14109         * testsuite/libgomp.oacc-c-c++-common/lib-57.c: Likewise.
14110         * testsuite/libgomp.oacc-c-c++-common/lib-58.c: Likewise.
14111         * testsuite/libgomp.oacc-c-c++-common/data-already-1.c: More
14112         accurately specify what we're looking for.
14113         * testsuite/libgomp.oacc-c-c++-common/data-already-2.c: Likewise.
14114         * testsuite/libgomp.oacc-c-c++-common/data-already-8.c: Likewise.
14115         * testsuite/libgomp.oacc-fortran/data-already-1.f: Likewise.
14116         * testsuite/libgomp.oacc-fortran/data-already-2.f: Likewise.
14117         * testsuite/libgomp.oacc-fortran/data-already-8.f: Likewise.
14119 2015-04-30  James Norris  <jnorris@codesourcery.com>
14121         PR testsuite/65205
14122         * testsuite/lib/libgomp.exp
14123         (check_effective_target_openacc_host_selected)
14124         (check_effective_target_openacc_host_nonshm_selected): New
14125         procedures.
14126         * testsuite/libgomp.oacc-c-c++-common/clauses-2.c: Fix misuse of
14127         dg-shouldfail.
14128         * testsuite/libgomp.oacc-c-c++-common/lib-1.c: Likewise.
14129         * testsuite/libgomp.oacc-c-c++-common/lib-11.c: Likewise.
14130         * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
14131         * testsuite/libgomp.oacc-c-c++-common/lib-17.c: Likewise.
14132         * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
14133         * testsuite/libgomp.oacc-c-c++-common/lib-2.c: Likewise.
14134         * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
14135         * testsuite/libgomp.oacc-c-c++-common/lib-21.c: Likewise.
14136         * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Likewise.
14137         * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
14138         * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
14139         * testsuite/libgomp.oacc-c-c++-common/lib-26.c: Likewise.
14140         * testsuite/libgomp.oacc-c-c++-common/lib-27.c: Likewise.
14141         * testsuite/libgomp.oacc-c-c++-common/lib-28.c: Likewise.
14142         * testsuite/libgomp.oacc-c-c++-common/lib-29.c: Likewise.
14143         * testsuite/libgomp.oacc-c-c++-common/lib-3.c: Likewise.
14144         * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
14145         * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
14146         * testsuite/libgomp.oacc-c-c++-common/lib-35.c: Likewise.
14147         * testsuite/libgomp.oacc-c-c++-common/lib-36.c: Likewise.
14148         * testsuite/libgomp.oacc-c-c++-common/lib-39.c: Likewise.
14149         * testsuite/libgomp.oacc-c-c++-common/lib-4.c: Likewise.
14150         * testsuite/libgomp.oacc-c-c++-common/lib-40.c: Likewise.
14151         * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
14152         * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Likewise.
14153         * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
14154         * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Likewise.
14155         * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
14156         * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Likewise.
14157         * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
14158         * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
14159         * testsuite/libgomp.oacc-c-c++-common/lib-57.c: Likewise.
14160         * testsuite/libgomp.oacc-c-c++-common/lib-58.c: Likewise.
14161         * testsuite/libgomp.oacc-c-c++-common/lib-62.c: Likewise.
14162         * testsuite/libgomp.oacc-c-c++-common/lib-63.c: Likewise.
14163         * testsuite/libgomp.oacc-c-c++-common/lib-64.c: Likewise.
14164         * testsuite/libgomp.oacc-c-c++-common/lib-65.c: Likewise.
14165         * testsuite/libgomp.oacc-c-c++-common/lib-67.c: Likewise.
14166         * testsuite/libgomp.oacc-c-c++-common/lib-68.c: Likewise.
14167         * testsuite/libgomp.oacc-c-c++-common/lib-71.c: Likewise.
14168         * testsuite/libgomp.oacc-c-c++-common/lib-77.c: Likewise.
14169         * testsuite/libgomp.oacc-c-c++-common/lib-80.c: Likewise.
14170         * testsuite/libgomp.oacc-c-c++-common/present-1.c: Likewise.
14172 2015-04-08  Julian Brown  <julian@codesourcery.com>
14174         * libgomp.h (target_mem_desc: Remove mem_map field.
14175         (acc_dispatch_t): Remove open_device_func, close_device_func,
14176         get_device_num_func, set_device_num_func, target_data members.
14177         Change create_thread_data_func argument to device number instead of
14178         generic pointer.
14179         * oacc-async.c (assert.h): Include.
14180         (acc_async_test, acc_async_test_all, acc_wait, acc_wait_async)
14181         (acc_wait_all, acc_wait_all_async): Use current host thread's
14182         active device, not base_dev.
14183         * oacc-cuda.c (acc_get_current_cuda_device)
14184         (acc_get_current_cuda_context, acc_get_cuda_stream)
14185         (acc_set_cuda_stream): Likewise.
14186         * oacc-host.c (host_dispatch): Don't set open_device_func,
14187         close_device_func, get_device_num_func or set_device_num_func.
14188         * oacc-init.c (base_dev, init_key): Remove.
14189         (cached_base_dev): New.
14190         (name_of_acc_device_t): New.
14191         (acc_init_1): Initialise default-numbered device, not zeroth.
14192         (acc_shutdown_1): Close all devices of a given type.
14193         (goacc_destroy_thread): Don't use base_dev.
14194         (lazy_open, lazy_init, lazy_init_and_open): Remove.
14195         (goacc_attach_host_thread_to_device): New.
14196         (acc_init): Reimplement with goacc_attach_host_thread_to_device.
14197         (acc_get_num_devices): Don't use base_dev.
14198         (acc_set_device_type): Reimplement.
14199         (acc_get_device_type): Don't use base_dev.
14200         (acc_get_device_num): Tweak logic.
14201         (acc_set_device_num): Likewise.
14202         (acc_on_device): Use acc_get_device_type.
14203         (goacc_runtime_initialize): Initialize cached_base_dev not base_dev.
14204         (goacc_lazy_initialize): Reimplement with acc_init and
14205         goacc_attach_host_thread_to_device.
14206         * oacc-int.h (goacc_thread): Add base_dev field.
14207         (base_dev): Remove extern declaration.
14208         (goacc_attach_host_thread_to_device): Add prototype.
14209         * oacc-mem.c (acc_malloc): Use current thread's device instead of
14210         base_dev.
14211         (acc_free): Likewise.
14212         (acc_memcpy_to_device): Likewise.
14213         (acc_memcpy_from_device): Likewise.
14214         * oacc-parallel.c (select_acc_device): Remove. Replace calls with
14215         goacc_lazy_initialize (throughout).
14216         (GOACC_parallel): Use tgt_offset to locate target functions.
14217         * target.c (gomp_map_vars): Don't set tgt->mem_map.
14218         (gomp_unmap_vars): Use devicep->mem_map pointer not tgt->mem_map.
14219         (gomp_load_plugin_for_device): Remove open_device, close_device,
14220         get_device_num, set_device_num openacc hook initialisation. Don't set
14221         openacc.target_data.
14222         * plugin/plugin-host.c (GOMP_OFFLOAD_openacc_open_device)
14223         (GOMP_OFFLOAD_openacc_close_device)
14224         (GOMP_OFFLOAD_openacc_get_device_num)
14225         (GOMP_OFFLOAD_openacc_set_device_num): Remove.
14226         (GOMP_OFFLOAD_openacc_create_thread_data): Change (unused) argument
14227         to int.
14228         * plugin/plugin-nvptx.c (ptx_inited): Remove.
14229         (instantiated_devices, ptx_dev_lock): New.
14230         (struct ptx_image_data): New.
14231         (ptx_devices, ptx_images, ptx_image_lock): New.
14232         (fini_streams_for_device): Reorder cuStreamDestroy call.
14233         (nvptx_get_num_devices): Remove forward declaration.
14234         (nvptx_init): Change return type to bool.
14235         (nvptx_fini): Remove.
14236         (nvptx_attach_host_thread_to_device): New.
14237         (nvptx_open_device): Return struct ptx_device* instead of void*.
14238         (nvptx_close_device): Change argument type to struct ptx_device*,
14239         return type to void.
14240         (nvptx_get_num_devices): Use instantiated_devices not ptx_inited.
14241         (kernel_target_data, kernel_host_table): Remove static globals.
14242         (GOMP_OFFLOAD_register_image, GOMP_OFFLOAD_get_table): Remove.
14243         (GOMP_OFFLOAD_init_device): Reimplement.
14244         (GOMP_OFFLOAD_fini_device): Likewise.
14245         (GOMP_OFFLOAD_load_image, GOMP_OFFLOAD_unload_image): New.
14246         (GOMP_OFFLOAD_alloc, GOMP_OFFLOAD_free, GOMP_OFFLOAD_dev2host)
14247         (GOMP_OFFLOAD_host2dev): Use ORD argument.
14248         (GOMP_OFFLOAD_openacc_open_device)
14249         (GOMP_OFFLOAD_openacc_close_device)
14250         (GOMP_OFFLOAD_openacc_set_device_num)
14251         (GOMP_OFFLOAD_openacc_get_device_num): Remove.
14252         (GOMP_OFFLOAD_openacc_create_thread_data): Change argument to int
14253         (device number).
14255         testsuite/
14256         * libgomp.oacc-c-c++-common/lib-9.c: Fix devnum check in test.
14258 2015-04-06  Ilya Verbin  <ilya.verbin@intel.com>
14260         * libgomp-plugin.h (struct mapping_table): Replace with addr_pair.
14261         * libgomp.h (struct gomp_memory_mapping): Remove.
14262         (struct target_mem_desc): Change type of mem_map from
14263         gomp_memory_mapping * to splay_tree_s *.
14264         (struct gomp_device_descr): Remove register_image_func, get_table_func.
14265         Add load_image_func, unload_image_func.
14266         Change type of mem_map from gomp_memory_mapping to splay_tree_s.
14267         Remove offload_regions_registered.
14268         (gomp_init_tables): Remove.
14269         (gomp_free_memmap): Change type of argument from gomp_memory_mapping *
14270         to splay_tree_s *.
14271         * libgomp.map (GOMP_4.0.1): Add GOMP_offload_unregister.
14272         * oacc-host.c (host_dispatch): Do not initialize register_image_func,
14273         get_table_func, mem_map.is_initialized, mem_map.splay_tree.root,
14274         offload_regions_registered.
14275         Initialize load_image_func, unload_image_func, mem_map.root.
14276         (goacc_host_init): Do not initialize host_dispatch.mem_map.lock.
14277         * oacc-init.c (lazy_open): Don't call gomp_init_tables.
14278         (acc_shutdown_1): Use dev's lock and splay_tree instead of mem_map's.
14279         * oacc-mem.c (lookup_host): Get gomp_device_descr *dev instead of
14280         gomp_memory_mapping *.  Use dev's lock and splay_tree.
14281         (lookup_dev): Use dev's lock.
14282         (acc_deviceptr): Pass dev to lookup_host instead of mem_map.
14283         (acc_is_present): Likewise.
14284         (acc_map_data): Likewise.
14285         (acc_unmap_data): Likewise.  Use dev's lock.
14286         (present_create_copy): Likewise.
14287         (delete_copyout): Pass dev to lookup_host instead of mem_map.
14288         (update_dev_host): Likewise.
14289         (gomp_acc_remove_pointer): Likewise.  Use dev's lock.
14290         * oacc-parallel.c (GOACC_parallel): Use dev's lock and splay_tree.
14291         * plugin/plugin-host.c (GOMP_OFFLOAD_register_image): Remove.
14292         (GOMP_OFFLOAD_get_table): Remove
14293         (GOMP_OFFLOAD_load_image): New function.
14294         (GOMP_OFFLOAD_unload_image): New function.
14295         * target.c (register_lock): New mutex for offload image registration.
14296         (num_devices): Do not guard with PLUGIN_SUPPORT.
14297         (gomp_realloc_unlock): New static function.
14298         (gomp_map_vars_existing): Add device descriptor argument.  Unlock mutex
14299         before gomp_fatal.
14300         (gomp_map_vars): Use dev's lock and splay_tree instead of mem_map's.
14301         Pass devicep to gomp_map_vars_existing.  Unlock mutex before gomp_fatal.
14302         (gomp_copy_from_async): Use dev's lock and splay_tree instead of
14303         mem_map's.
14304         (gomp_unmap_vars): Likewise.
14305         (gomp_update): Remove gomp_memory_mapping argument.  Use dev's lock and
14306         splay_tree instead of mm's.  Unlock mutex before gomp_fatal.
14307         (gomp_offload_image_to_device): New static function.
14308         (GOMP_offload_register): Add mutex lock.
14309         Call gomp_offload_image_to_device for all initialized devices.
14310         Replace gomp_realloc with gomp_realloc_unlock.
14311         (GOMP_offload_unregister): New function.
14312         (gomp_init_tables): Replace with gomp_init_device.  Replace a call to
14313         get_table_func from the plugin with calls to init_device_func and
14314         gomp_offload_image_to_device.
14315         (gomp_free_memmap): Change type of argument from gomp_memory_mapping *
14316         to splay_tree_s *.
14317         (GOMP_target): Do not call gomp_init_tables.  Use dev's lock and
14318         splay_tree instead of mem_map's.  Unlock mutex before gomp_fatal.
14319         (GOMP_target_data): Do not call gomp_init_tables.
14320         (GOMP_target_update): Likewise.  Remove argument from gomp_update.
14321         (gomp_load_plugin_for_device): Replace register_image and get_table
14322         with load_image and unload_image in DLSYM ().
14323         (gomp_register_images_for_device): Remove function.
14324         (gomp_target_init): Do not initialize current_device.mem_map.*,
14325         current_device.offload_regions_registered.
14326         Remove call to gomp_register_images_for_device.
14327         Do not free offload_images and num_offload_images.
14329 2015-03-30  Jakub Jelinek  <jakub@redhat.com>
14331         PR fortran/65597
14332         * testsuite/libgomp.fortran/pr65597.f90: New test.
14334 2015-03-27  Tom de Vries  <tom@codesourcery.com>
14336         PR testsuite/65594
14337         * testsuite/libgomp.graphite/force-parallel-6.c (abort): Declare.
14338         (init, check): New function.
14339         (foo): Change return type to void.
14340         (main): Call init and check.
14342 2015-03-27  Tom de Vries  <tom@codesourcery.com>
14344         PR testsuite/65594
14345         * testsuite/libgomp.graphite/force-parallel-6.c (M): Define.
14346         (foo): Use M for non-inner loops to scale down test-case.
14348 2015-03-25  Kai Tietz  <ktietz@redhat.com>
14350         PR libgomp/64972
14351         * oacc-parallel.c (GOACC_parallel): Use PRIu64 if available.
14352         (GOACC_data_start): Likewise.
14353         * target.c (gomp_map_vars): Likewise.
14355 2015-03-21  John David Anglin  <danglin@gcc.gnu.org>
14357         * testsuite/libgomp.oacc-c-c++-common/reduction-4.c: Don't run on
14358         hppa*-*-hpux*.
14360 2015-03-19  Jakub Jelinek  <jakub@redhat.com>
14362         * testsuite/libgomp.c/target-10.c: New test.
14363         * testsuite/libgomp.c++/target-4.C: New test.
14365 2015-03-13  Ilya Verbin  <ilya.verbin@intel.com>
14367         * testsuite/libgomp.fortran/declare-target-1.f90: New test.
14368         * testsuite/libgomp.fortran/declare-target-2.f90: New file.
14370 2015-03-13  Sebastian Huber  <sebastian.huber@embedded-brains.de>
14372         * configure.tgt (*-*-rtems*): Use local-exec TLS model.
14373         * configure.ac (*-*-rtems*): Assume Pthread is supported.
14374         (pthread.h): Check for this header file.
14375         * configure: Regenerate.
14377 2015-02-25  Tom de Vries  <tom@codesourcery.com>
14379         * testsuite/libgomp.oacc-c-c++-common/reduction-1.c (DO_PRAGMA)
14380         (check_reduction_op, check_reduction_macro, max, min):
14381         Declare.
14382         (test_reductions_int, test_reductions_minmax, test_reductions_bool): New
14383         function.
14384         (main): Use new functions.
14386 2015-02-18  Ilya Tocar  <ilya.tocar@intel.com>
14388         * target.c (gomp_load_plugin_for_device): Use const char * instead of
14389         char * for variables holding dlerror return values.
14390         (DLSYM_OPT): Ditto.
14392 2015-02-17  Thomas Schwinge  <thomas@codesourcery.com>
14394         * libgomp-plugin.c (GOMP_PLUGIN_debug): Fix typo.
14396 2015-02-17  Thomas Schwinge  <thomas@codesourcery.com>
14397             Cesar Philippidis  <cesar@codesourcery.com>
14399         * oacc-ptx.h (GOACC_INTERNAL_PTX): Add GOACC_tid, GOACC_ntid,
14400         GOACC_ctaid, and GOACC_nctaid routines.
14402 2015-02-11  Jakub Jelinek  <jakub@redhat.com>
14404         PR c/64824
14405         * testsuite/libgomp.c/atomic-18.c: New test.
14406         * testsuite/libgomp.c++/atomic-16.C: New test.
14408 2015-02-04  Jakub Jelinek  <jakub@redhat.com>
14410         PR c/64824
14411         PR c/64868
14412         * testsuite/libgomp.c/pr64824.c: New test.
14413         * testsuite/libgomp.c/pr64868.c: New test.
14414         * testsuite/libgomp.c++/pr64824.C: New test.
14415         * testsuite/libgomp.c++/pr64868.C: New test.
14417 2015-02-01  David Edelsohn  <dje.gcc@gmail.com>
14419         PR libgomp/64635
14420         * configure.tgt (*-*-aix*): Use standard posix plugin-suffix.h.
14421         Link with -lpthread.
14422         * config/aix/plugin-suffix.h: Delete.
14424 2015-01-28  Jack Howarth  <howarth.at.gcc@gmail.com>
14426         PR libgomp/64635
14427         * configure.tgt (*-*-aix*): Use config_path "aix posix".
14428         (*-*-darwin*): Use config_path "bsd darwin posix".
14429         (*-*-hpux*): Use config_path "hpux posix".
14430         * target.c: Add include of plugin-suffix.h and use
14431         SONAME_SUFFIX macro.
14432         * config/aix/plugin-suffix.h: New file.
14433         * config/darwin/plugin-suffix.h: New file.
14434         * config/hpux/plugin-suffix.h: New file.
14435         * config/posix/plugin-suffix.h: New file.
14437 2015-01-23  Jakub Jelinek  <jakub@redhat.com>
14439         PR middle-end/64734
14440         * libgomp.c/pr64734.c: New test.
14442 2015-01-23  Tom de Vries  <tom@codesourcery.com>
14444         PR libgomp/64672
14445         * testsuite/libgomp.oacc-c-c++-common/abort-5.c: New test.
14447 2015-01-23  Tom de Vries  <tom@codesourcery.com>
14449         PR libgomp/64707
14450         * testsuite/libgomp.c/target-9.c: Add -ftree-parallelize-loops=0 to
14451         dg-options.
14453 2015-01-19  Thomas Schwinge  <thomas@codesourcery.com>
14455         PR libgomp/64625
14456         * libgomp_g.h (GOACC_data_start, GOACC_enter_exit_data)
14457         (GOACC_parallel, GOACC_update): Remove const_void *offload_table
14458         formal parameter.  Update all users.
14459         * target.c (GOMP_target, GOMP_target_data, GOMP_target_update):
14460         Document unused formal parameter.
14462 2015-01-16  Thomas Schwinge  <thomas@codesourcery.com>
14464         * oacc-parallel.c: Don't include <alloca.h>.
14465         (GOACC_parallel): Use gomp_alloca instead of alloca.
14467 2015-01-16  Gerald Pfeifer  <gerald@pfeifer.com>
14469         * target.c (num_devices): Guard with PLUGIN_SUPPORT.
14471 2015-01-15  Thomas Schwinge  <thomas@codesourcery.com>
14472             James Norris  <jnorris@codesourcery.com>
14473             Tom de Vries  <tom@codesourcery.com>
14474             Julian Brown  <julian@codesourcery.com>
14475             Cesar Philippidis  <cesar@codesourcery.com>
14476             Nathan Sidwell  <nathan@codesourcery.com>
14477             Tobias Burnus  <burnus@net-b.de>
14479         * Makefile.am (search_path): Add $(top_srcdir)/../include.
14480         (libgomp_la_SOURCES): Add splay-tree.c, libgomp-plugin.c,
14481         oacc-parallel.c, oacc-host.c, oacc-init.c, oacc-mem.c,
14482         oacc-async.c, oacc-plugin.c, oacc-cuda.c.
14483         [USE_FORTRAN] (libgomp_la_SOURCES): Add openacc.f90.
14484         Include $(top_srcdir)/plugin/Makefrag.am.
14485         (nodist_libsubinclude_HEADERS): Add openacc.h.
14486         [USE_FORTRAN] (nodist_finclude_HEADERS): Add openacc_lib.h,
14487         openacc.f90, openacc.mod, openacc_kinds.mod.
14488         (omp_lib.mod): Generalize into...
14489         (%.mod): ... this new rule.
14490         (openacc_kinds.mod, openacc.mod): New rules.
14491         * plugin/configfrag.ac: New file.
14492         * configure.ac: Move plugin/offloading support into it.  Include
14493         it.  Instantiate testsuite/libgomp-test-support.pt.exp.
14494         * plugin/Makefrag.am: New file.
14495         * testsuite/Makefile.am (OFFLOAD_TARGETS)
14496         (OFFLOAD_ADDITIONAL_OPTIONS, OFFLOAD_ADDITIONAL_LIB_PATHS): Don't
14497         export.
14498         (libgomp-test-support.exp): New rule.
14499         (all-local): Depend on it.
14500         * Makefile.in: Regenerate.
14501         * testsuite/Makefile.in: Regenerate.
14502         * config.h.in: Likewise.
14503         * configure: Likewise.
14504         * configure.tgt: Harden shell syntax.
14505         * env.c: Include "oacc-int.h".
14506         (parse_acc_device_type): New function.
14507         (gomp_debug_var, goacc_device_type, goacc_device_num): New
14508         variables.
14509         (initialize_env): Initialize those.  Call
14510         goacc_runtime_initialize.
14511         * error.c (gomp_vdebug, gomp_debug, gomp_vfatal): New functions.
14512         (gomp_fatal): Call gomp_vfatal.
14513         * libgomp.h: Include "libgomp-plugin.h" and <stdarg.h>.
14514         (gomp_debug_var, goacc_device_type, goacc_device_num, gomp_vdebug)
14515         (gomp_debug, gomp_verror, gomp_vfatal, gomp_init_targets_once)
14516         (splay_tree_node, splay_tree, splay_tree_key)
14517         (struct target_mem_desc, struct splay_tree_key_s)
14518         (struct gomp_memory_mapping, struct acc_dispatch_t)
14519         (struct gomp_device_descr, gomp_acc_insert_pointer)
14520         (gomp_acc_remove_pointer, target_mem_desc, gomp_copy_from_async)
14521         (gomp_unmap_vars, gomp_init_device, gomp_init_tables)
14522         (gomp_free_memmap, gomp_fini_device): New declarations.
14523         (gomp_vdebug, gomp_debug): New macros.
14524         Include "splay-tree.h".
14525         * libgomp.map (OACC_2.0): New symbol version.  Use for
14526         acc_get_num_devices, acc_get_num_devices_h_, acc_set_device_type,
14527         acc_set_device_type_h_, acc_get_device_type,
14528         acc_get_device_type_h_, acc_set_device_num, acc_set_device_num_h_,
14529         acc_get_device_num, acc_get_device_num_h_, acc_async_test,
14530         acc_async_test_h_, acc_async_test_all, acc_async_test_all_h_,
14531         acc_wait, acc_wait_h_, acc_wait_async, acc_wait_async_h_,
14532         acc_wait_all, acc_wait_all_h_, acc_wait_all_async,
14533         acc_wait_all_async_h_, acc_init, acc_init_h_, acc_shutdown,
14534         acc_shutdown_h_, acc_on_device, acc_on_device_h_, acc_malloc,
14535         acc_free, acc_copyin, acc_copyin_32_h_, acc_copyin_64_h_,
14536         acc_copyin_array_h_, acc_present_or_copyin,
14537         acc_present_or_copyin_32_h_, acc_present_or_copyin_64_h_,
14538         acc_present_or_copyin_array_h_, acc_create, acc_create_32_h_,
14539         acc_create_64_h_, acc_create_array_h_, acc_present_or_create,
14540         acc_present_or_create_32_h_, acc_present_or_create_64_h_,
14541         acc_present_or_create_array_h_, acc_copyout, acc_copyout_32_h_,
14542         acc_copyout_64_h_, acc_copyout_array_h_, acc_delete,
14543         acc_delete_32_h_, acc_delete_64_h_, acc_delete_array_h_,
14544         acc_update_device, acc_update_device_32_h_,
14545         acc_update_device_64_h_, acc_update_device_array_h_,
14546         acc_update_self, acc_update_self_32_h_, acc_update_self_64_h_,
14547         acc_update_self_array_h_, acc_map_data, acc_unmap_data,
14548         acc_deviceptr, acc_hostptr, acc_is_present, acc_is_present_32_h_,
14549         acc_is_present_64_h_, acc_is_present_array_h_,
14550         acc_memcpy_to_device, acc_memcpy_from_device,
14551         acc_get_current_cuda_device, acc_get_current_cuda_context,
14552         acc_get_cuda_stream, acc_set_cuda_stream.
14553         (GOACC_2.0): New symbol version.  Use for GOACC_data_end,
14554         GOACC_data_start, GOACC_enter_exit_data, GOACC_parallel,
14555         GOACC_update, GOACC_wait, GOACC_get_thread_num,
14556         GOACC_get_num_threads.
14557         (GOMP_PLUGIN_1.0): New symbol version.  Use for
14558         GOMP_PLUGIN_malloc, GOMP_PLUGIN_malloc_cleared,
14559         GOMP_PLUGIN_realloc, GOMP_PLUGIN_debug, GOMP_PLUGIN_error,
14560         GOMP_PLUGIN_fatal, GOMP_PLUGIN_async_unmap_vars,
14561         GOMP_PLUGIN_acc_thread.
14562         * libgomp.texi: Update for OpenACC changes, and GOMP_DEBUG
14563         environment variable.
14564         * libgomp_g.h (GOACC_data_start, GOACC_data_end)
14565         (GOACC_enter_exit_data, GOACC_parallel, GOACC_update, GOACC_wait)
14566         (GOACC_get_num_threads, GOACC_get_thread_num): New declarations.
14567         * splay-tree.h (splay_tree_lookup, splay_tree_insert)
14568         (splay_tree_remove): New declarations.
14569         (rotate_left, rotate_right, splay_tree_splay, splay_tree_insert)
14570         (splay_tree_remove, splay_tree_lookup): Move into...
14571         * splay-tree.c: ... this new file.
14572         * target.c: Include "oacc-plugin.h", "oacc-int.h", <assert.h>.
14573         (splay_tree_node, splay_tree, splay_tree_key)
14574         (struct target_mem_desc, struct splay_tree_key_s)
14575         (struct gomp_device_descr): Don't declare.
14576         (num_devices_openmp): New variable.
14577         (gomp_get_num_devices ): Use it.
14578         (gomp_init_targets_once): New function.
14579         (gomp_get_num_devices ): Use it.
14580         (get_kind, gomp_copy_from_async, gomp_free_memmap)
14581         (gomp_fini_device, gomp_register_image_for_device): New functions.
14582         (gomp_map_vars): Add devaddrs parameter.
14583         (gomp_update): Add mm parameter.
14584         (gomp_init_device): Move most of it into...
14585         (gomp_init_tables): ... this new function.
14586         (gomp_register_images_for_device): Remove function.
14587         (splay_compare, gomp_map_vars, gomp_unmap_vars, gomp_init_device):
14588         Make them hidden instead of static.
14589         (gomp_map_vars_existing, gomp_map_vars, gomp_unmap_vars)
14590         (gomp_update, gomp_init_device, GOMP_target, GOMP_target_data)
14591         (GOMP_target_end_data, GOMP_target_update)
14592         (gomp_load_plugin_for_device, gomp_target_init): Update for
14593         OpenACC changes.
14594         * oacc-async.c: New file.
14595         * oacc-cuda.c: Likewise.
14596         * oacc-host.c: Likewise.
14597         * oacc-init.c: Likewise.
14598         * oacc-int.h: Likewise.
14599         * oacc-mem.c: Likewise.
14600         * oacc-parallel.c: Likewise.
14601         * oacc-plugin.c: Likewise.
14602         * oacc-plugin.h: Likewise.
14603         * oacc-ptx.h: Likewise.
14604         * openacc.f90: Likewise.
14605         * openacc.h: Likewise.
14606         * openacc_lib.h: Likewise.
14607         * plugin/plugin-host.c: Likewise.
14608         * plugin/plugin-nvptx.c: Likewise.
14609         * libgomp-plugin.c: Likewise.
14610         * libgomp-plugin.h: Likewise.
14611         * libgomp_target.h: Remove file after merging content into the
14612         former file.  Update all users.
14613         * testsuite/lib/libgomp.exp: Load libgomp-test-support.exp.
14614         (offload_targets_s, offload_targets_s_openacc): New variables.
14615         (check_effective_target_openacc_nvidia_accel_present)
14616         (check_effective_target_openacc_nvidia_accel_selected): New
14617         procedures.
14618         (libgomp_init): Update for OpenACC changes.
14619         * testsuite/libgomp-test-support.exp.in: New file.
14620         * testsuite/libgomp.oacc-c++/c++.exp: Likewise.
14621         * testsuite/libgomp.oacc-c/c.exp: Likewise.
14622         * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
14623         * testsuite/libgomp.oacc-c-c++-common/abort-1.c: Likewise.
14624         * testsuite/libgomp.oacc-c-c++-common/abort-2.c: Likewise.
14625         * testsuite/libgomp.oacc-c-c++-common/abort-3.c: Likewise.
14626         * testsuite/libgomp.oacc-c-c++-common/abort-4.c: Likewise.
14627         * testsuite/libgomp.oacc-c-c++-common/acc_on_device-1.c: Likewise.
14628         * testsuite/libgomp.oacc-c-c++-common/asyncwait-1.c: Likewise.
14629         * testsuite/libgomp.oacc-c-c++-common/cache-1.c: Likewise.
14630         * testsuite/libgomp.oacc-c-c++-common/clauses-1.c: Likewise.
14631         * testsuite/libgomp.oacc-c-c++-common/clauses-2.c: Likewise.
14632         * testsuite/libgomp.oacc-c-c++-common/collapse-1.c: Likewise.
14633         * testsuite/libgomp.oacc-c-c++-common/collapse-2.c: Likewise.
14634         * testsuite/libgomp.oacc-c-c++-common/collapse-3.c: Likewise.
14635         * testsuite/libgomp.oacc-c-c++-common/collapse-4.c: Likewise.
14636         * testsuite/libgomp.oacc-c-c++-common/context-1.c: Likewise.
14637         * testsuite/libgomp.oacc-c-c++-common/context-2.c: Likewise.
14638         * testsuite/libgomp.oacc-c-c++-common/context-3.c: Likewise.
14639         * testsuite/libgomp.oacc-c-c++-common/context-4.c: Likewise.
14640         * testsuite/libgomp.oacc-c-c++-common/data-1.c: Likewise.
14641         * testsuite/libgomp.oacc-c-c++-common/data-2.c: Likewise.
14642         * testsuite/libgomp.oacc-c-c++-common/data-3.c: Likewise.
14643         * testsuite/libgomp.oacc-c-c++-common/data-already-1.c: Likewise.
14644         * testsuite/libgomp.oacc-c-c++-common/data-already-2.c: Likewise.
14645         * testsuite/libgomp.oacc-c-c++-common/data-already-3.c: Likewise.
14646         * testsuite/libgomp.oacc-c-c++-common/data-already-4.c: Likewise.
14647         * testsuite/libgomp.oacc-c-c++-common/data-already-5.c: Likewise.
14648         * testsuite/libgomp.oacc-c-c++-common/data-already-6.c: Likewise.
14649         * testsuite/libgomp.oacc-c-c++-common/data-already-7.c: Likewise.
14650         * testsuite/libgomp.oacc-c-c++-common/data-already-8.c: Likewise.
14651         * testsuite/libgomp.oacc-c-c++-common/deviceptr-1.c: Likewise.
14652         * testsuite/libgomp.oacc-c-c++-common/if-1.c: Likewise.
14653         * testsuite/libgomp.oacc-c-c++-common/kernels-1.c: Likewise.
14654         * testsuite/libgomp.oacc-c-c++-common/kernels-empty.c: Likewise.
14655         * testsuite/libgomp.oacc-c-c++-common/lib-1.c: Likewise.
14656         * testsuite/libgomp.oacc-c-c++-common/lib-10.c: Likewise.
14657         * testsuite/libgomp.oacc-c-c++-common/lib-11.c: Likewise.
14658         * testsuite/libgomp.oacc-c-c++-common/lib-12.c: Likewise.
14659         * testsuite/libgomp.oacc-c-c++-common/lib-13.c: Likewise.
14660         * testsuite/libgomp.oacc-c-c++-common/lib-14.c: Likewise.
14661         * testsuite/libgomp.oacc-c-c++-common/lib-15.c: Likewise.
14662         * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
14663         * testsuite/libgomp.oacc-c-c++-common/lib-17.c: Likewise.
14664         * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
14665         * testsuite/libgomp.oacc-c-c++-common/lib-19.c: Likewise.
14666         * testsuite/libgomp.oacc-c-c++-common/lib-2.c: Likewise.
14667         * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
14668         * testsuite/libgomp.oacc-c-c++-common/lib-21.c: Likewise.
14669         * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Likewise.
14670         * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
14671         * testsuite/libgomp.oacc-c-c++-common/lib-24.c: Likewise.
14672         * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
14673         * testsuite/libgomp.oacc-c-c++-common/lib-26.c: Likewise.
14674         * testsuite/libgomp.oacc-c-c++-common/lib-27.c: Likewise.
14675         * testsuite/libgomp.oacc-c-c++-common/lib-28.c: Likewise.
14676         * testsuite/libgomp.oacc-c-c++-common/lib-29.c: Likewise.
14677         * testsuite/libgomp.oacc-c-c++-common/lib-3.c: Likewise.
14678         * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
14679         * testsuite/libgomp.oacc-c-c++-common/lib-31.c: Likewise.
14680         * testsuite/libgomp.oacc-c-c++-common/lib-32.c: Likewise.
14681         * testsuite/libgomp.oacc-c-c++-common/lib-33.c: Likewise.
14682         * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
14683         * testsuite/libgomp.oacc-c-c++-common/lib-35.c: Likewise.
14684         * testsuite/libgomp.oacc-c-c++-common/lib-36.c: Likewise.
14685         * testsuite/libgomp.oacc-c-c++-common/lib-37.c: Likewise.
14686         * testsuite/libgomp.oacc-c-c++-common/lib-38.c: Likewise.
14687         * testsuite/libgomp.oacc-c-c++-common/lib-39.c: Likewise.
14688         * testsuite/libgomp.oacc-c-c++-common/lib-4.c: Likewise.
14689         * testsuite/libgomp.oacc-c-c++-common/lib-40.c: Likewise.
14690         * testsuite/libgomp.oacc-c-c++-common/lib-41.c: Likewise.
14691         * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
14692         * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Likewise.
14693         * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
14694         * testsuite/libgomp.oacc-c-c++-common/lib-45.c: Likewise.
14695         * testsuite/libgomp.oacc-c-c++-common/lib-46.c: Likewise.
14696         * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Likewise.
14697         * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
14698         * testsuite/libgomp.oacc-c-c++-common/lib-49.c: Likewise.
14699         * testsuite/libgomp.oacc-c-c++-common/lib-5.c: Likewise.
14700         * testsuite/libgomp.oacc-c-c++-common/lib-50.c: Likewise.
14701         * testsuite/libgomp.oacc-c-c++-common/lib-51.c: Likewise.
14702         * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Likewise.
14703         * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
14704         * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
14705         * testsuite/libgomp.oacc-c-c++-common/lib-55.c: Likewise.
14706         * testsuite/libgomp.oacc-c-c++-common/lib-56.c: Likewise.
14707         * testsuite/libgomp.oacc-c-c++-common/lib-57.c: Likewise.
14708         * testsuite/libgomp.oacc-c-c++-common/lib-58.c: Likewise.
14709         * testsuite/libgomp.oacc-c-c++-common/lib-59.c: Likewise.
14710         * testsuite/libgomp.oacc-c-c++-common/lib-6.c: Likewise.
14711         * testsuite/libgomp.oacc-c-c++-common/lib-60.c: Likewise.
14712         * testsuite/libgomp.oacc-c-c++-common/lib-61.c: Likewise.
14713         * testsuite/libgomp.oacc-c-c++-common/lib-62.c: Likewise.
14714         * testsuite/libgomp.oacc-c-c++-common/lib-63.c: Likewise.
14715         * testsuite/libgomp.oacc-c-c++-common/lib-64.c: Likewise.
14716         * testsuite/libgomp.oacc-c-c++-common/lib-65.c: Likewise.
14717         * testsuite/libgomp.oacc-c-c++-common/lib-66.c: Likewise.
14718         * testsuite/libgomp.oacc-c-c++-common/lib-67.c: Likewise.
14719         * testsuite/libgomp.oacc-c-c++-common/lib-68.c: Likewise.
14720         * testsuite/libgomp.oacc-c-c++-common/lib-69.c: Likewise.
14721         * testsuite/libgomp.oacc-c-c++-common/lib-7.c: Likewise.
14722         * testsuite/libgomp.oacc-c-c++-common/lib-70.c: Likewise.
14723         * testsuite/libgomp.oacc-c-c++-common/lib-71.c: Likewise.
14724         * testsuite/libgomp.oacc-c-c++-common/lib-72.c: Likewise.
14725         * testsuite/libgomp.oacc-c-c++-common/lib-73.c: Likewise.
14726         * testsuite/libgomp.oacc-c-c++-common/lib-74.c: Likewise.
14727         * testsuite/libgomp.oacc-c-c++-common/lib-75.c: Likewise.
14728         * testsuite/libgomp.oacc-c-c++-common/lib-76.c: Likewise.
14729         * testsuite/libgomp.oacc-c-c++-common/lib-77.c: Likewise.
14730         * testsuite/libgomp.oacc-c-c++-common/lib-78.c: Likewise.
14731         * testsuite/libgomp.oacc-c-c++-common/lib-79.c: Likewise.
14732         * testsuite/libgomp.oacc-c-c++-common/lib-80.c: Likewise.
14733         * testsuite/libgomp.oacc-c-c++-common/lib-81.c: Likewise.
14734         * testsuite/libgomp.oacc-c-c++-common/lib-82.c: Likewise.
14735         * testsuite/libgomp.oacc-c-c++-common/lib-83.c: Likewise.
14736         * testsuite/libgomp.oacc-c-c++-common/lib-84.c: Likewise.
14737         * testsuite/libgomp.oacc-c-c++-common/lib-85.c: Likewise.
14738         * testsuite/libgomp.oacc-c-c++-common/lib-86.c: Likewise.
14739         * testsuite/libgomp.oacc-c-c++-common/lib-87.c: Likewise.
14740         * testsuite/libgomp.oacc-c-c++-common/lib-88.c: Likewise.
14741         * testsuite/libgomp.oacc-c-c++-common/lib-89.c: Likewise.
14742         * testsuite/libgomp.oacc-c-c++-common/lib-9.c: Likewise.
14743         * testsuite/libgomp.oacc-c-c++-common/lib-90.c: Likewise.
14744         * testsuite/libgomp.oacc-c-c++-common/lib-91.c: Likewise.
14745         * testsuite/libgomp.oacc-c-c++-common/lib-92.c: Likewise.
14746         * testsuite/libgomp.oacc-c-c++-common/nested-1.c: Likewise.
14747         * testsuite/libgomp.oacc-c-c++-common/nested-2.c: Likewise.
14748         * testsuite/libgomp.oacc-c-c++-common/offset-1.c: Likewise.
14749         * testsuite/libgomp.oacc-c-c++-common/parallel-1.c: Likewise.
14750         * testsuite/libgomp.oacc-c-c++-common/parallel-empty.c: Likewise.
14751         * testsuite/libgomp.oacc-c-c++-common/pointer-align-1.c: Likewise.
14752         * testsuite/libgomp.oacc-c-c++-common/present-1.c: Likewise.
14753         * testsuite/libgomp.oacc-c-c++-common/present-2.c: Likewise.
14754         * testsuite/libgomp.oacc-c-c++-common/reduction-1.c: Likewise.
14755         * testsuite/libgomp.oacc-c-c++-common/reduction-2.c: Likewise.
14756         * testsuite/libgomp.oacc-c-c++-common/reduction-3.c: Likewise.
14757         * testsuite/libgomp.oacc-c-c++-common/reduction-4.c: Likewise.
14758         * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Likewise.
14759         * testsuite/libgomp.oacc-c-c++-common/reduction-initial-1.c:
14760         Likewise.
14761         * testsuite/libgomp.oacc-c-c++-common/subr.h: Likewise.
14762         * testsuite/libgomp.oacc-c-c++-common/subr.ptx: Likewise.
14763         * testsuite/libgomp.oacc-c-c++-common/timer.h: Likewise.
14764         * testsuite/libgomp.oacc-c-c++-common/update-1-2.c: Likewise.
14765         * testsuite/libgomp.oacc-c-c++-common/update-1.c: Likewise.
14766         * testsuite/libgomp.oacc-fortran/abort-1.f90: Likewise.
14767         * testsuite/libgomp.oacc-fortran/abort-2.f90: Likewise.
14768         * testsuite/libgomp.oacc-fortran/acc_on_device-1-1.f90: Likewise.
14769         * testsuite/libgomp.oacc-fortran/acc_on_device-1-2.f: Likewise.
14770         * testsuite/libgomp.oacc-fortran/acc_on_device-1-3.f: Likewise.
14771         * testsuite/libgomp.oacc-fortran/asyncwait-1.f90: Likewise.
14772         * testsuite/libgomp.oacc-fortran/asyncwait-2.f90: Likewise.
14773         * testsuite/libgomp.oacc-fortran/asyncwait-3.f90: Likewise.
14774         * testsuite/libgomp.oacc-fortran/collapse-1.f90: Likewise.
14775         * testsuite/libgomp.oacc-fortran/collapse-2.f90: Likewise.
14776         * testsuite/libgomp.oacc-fortran/collapse-3.f90: Likewise.
14777         * testsuite/libgomp.oacc-fortran/collapse-4.f90: Likewise.
14778         * testsuite/libgomp.oacc-fortran/collapse-5.f90: Likewise.
14779         * testsuite/libgomp.oacc-fortran/collapse-6.f90: Likewise.
14780         * testsuite/libgomp.oacc-fortran/collapse-7.f90: Likewise.
14781         * testsuite/libgomp.oacc-fortran/collapse-8.f90: Likewise.
14782         * testsuite/libgomp.oacc-fortran/data-1.f90: Likewise.
14783         * testsuite/libgomp.oacc-fortran/data-2.f90: Likewise.
14784         * testsuite/libgomp.oacc-fortran/data-3.f90: Likewise.
14785         * testsuite/libgomp.oacc-fortran/data-4-2.f90: Likewise.
14786         * testsuite/libgomp.oacc-fortran/data-4.f90: Likewise.
14787         * testsuite/libgomp.oacc-fortran/data-already-1.f: Likewise.
14788         * testsuite/libgomp.oacc-fortran/data-already-2.f: Likewise.
14789         * testsuite/libgomp.oacc-fortran/data-already-3.f: Likewise.
14790         * testsuite/libgomp.oacc-fortran/data-already-4.f: Likewise.
14791         * testsuite/libgomp.oacc-fortran/data-already-5.f: Likewise.
14792         * testsuite/libgomp.oacc-fortran/data-already-6.f: Likewise.
14793         * testsuite/libgomp.oacc-fortran/data-already-7.f: Likewise.
14794         * testsuite/libgomp.oacc-fortran/data-already-8.f: Likewise.
14795         * testsuite/libgomp.oacc-fortran/lib-1.f90: Likewise.
14796         * testsuite/libgomp.oacc-fortran/lib-10.f90: Likewise.
14797         * testsuite/libgomp.oacc-fortran/lib-2.f: Likewise.
14798         * testsuite/libgomp.oacc-fortran/lib-3.f: Likewise.
14799         * testsuite/libgomp.oacc-fortran/lib-4.f90: Likewise.
14800         * testsuite/libgomp.oacc-fortran/lib-5.f90: Likewise.
14801         * testsuite/libgomp.oacc-fortran/lib-6.f90: Likewise.
14802         * testsuite/libgomp.oacc-fortran/lib-7.f90: Likewise.
14803         * testsuite/libgomp.oacc-fortran/lib-8.f90: Likewise.
14804         * testsuite/libgomp.oacc-fortran/map-1.f90: Likewise.
14805         * testsuite/libgomp.oacc-fortran/openacc_version-1.f: Likewise.
14806         * testsuite/libgomp.oacc-fortran/openacc_version-2.f90: Likewise.
14807         * testsuite/libgomp.oacc-fortran/pointer-align-1.f90: Likewise.
14808         * testsuite/libgomp.oacc-fortran/pset-1.f90: Likewise.
14809         * testsuite/libgomp.oacc-fortran/reduction-1.f90: Likewise.
14810         * testsuite/libgomp.oacc-fortran/reduction-2.f90: Likewise.
14811         * testsuite/libgomp.oacc-fortran/reduction-3.f90: Likewise.
14812         * testsuite/libgomp.oacc-fortran/reduction-4.f90: Likewise.
14813         * testsuite/libgomp.oacc-fortran/reduction-5.f90: Likewise.
14814         * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
14815         * testsuite/libgomp.oacc-fortran/routine-1.f90: Likewise.
14816         * testsuite/libgomp.oacc-fortran/routine-2.f90: Likewise.
14817         * testsuite/libgomp.oacc-fortran/routine-3.f90: Likewise.
14818         * testsuite/libgomp.oacc-fortran/routine-4.f90: Likewise.
14819         * testsuite/libgomp.oacc-fortran/subarrays-1.f90: Likewise.
14820         * testsuite/libgomp.oacc-fortran/subarrays-2.f90: Likewise.
14822 2015-01-10  Thomas Schwinge  <thomas@codesourcery.com>
14823             Julian Brown  <julian@codesourcery.com>
14824             David Malcolm  <dmalcolm@redhat.com>
14826         * configure.ac: Rename libgomp from "GNU OpenMP Runtime Library"
14827         to "GNU Offloading and Multi Processing Runtime Library".  Change
14828         all users.
14829         * configure: Regenerate.
14830         * libgomp.texi: Update.
14832 2015-01-08  Thomas Schwinge  <thomas@codesourcery.com>
14834         * configure.ac [tgt_dir] (offload_additional_lib_paths): Also add
14835         "$tgt_dir/lib32".
14836         * configure: Regenerate.
14838         * testsuite/lib/libgomp.exp (libgomp_init): Correctly match
14839         "intelmic" in $offload_targets.
14841 2015-01-05  Jakub Jelinek  <jakub@redhat.com>
14843         Update copyright years.
14845         * libgomp.texi: Bump @copying's copyright year.
14847 2014-12-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
14849         * testsuite/lib/libgomp.exp: Load target-utils.exp.
14850         Move load of target-supports.exp earlier.
14852 2014-12-10  Ilya Verbin  <ilya.verbin@intel.com>
14854         * testsuite/libgomp.c/target-9.c: New test.
14856 2014-12-09  Varvara Rainchik  <varvara.rainchik@intel.com>
14858         * config.h.in: Regenerate.
14859         * configure: Regenerate.
14860         * configure.ac: Add GCC_CHECK_EMUTLS.
14861         * libgomp.h: Add check for USE_EMUTLS: this case
14862         is equal to HAVE_TLS.
14863         * team.c: Likewise.
14865 2014-12-03  Uros Bizjak  <ubizjak@gmail.com>
14867         * configure.tgt (x86_64-*-linux*): Tune -m32 multilib to generic.
14869 2014-11-28  Andrey Turetskiy  <andrey.turetskiy@intel.com>
14870             Ilya Verbin  <ilya.verbin@intel.com>
14872         * testsuite/libgomp.c/target-critical-1.c: New test.
14874 2014-11-26  Jakub Jelinek  <jakub@redhat.com>
14876         * testsuite/libgomp.c/examples-4/e.53.4.c: Add -DITESTITERS=20
14877         to dg-options unless expensive testing is on.
14878         (TESTITERS): Define to N if not defined.
14879         (main): Use TESTITERS instead of N.
14880         * testsuite/libgomp.c/examples-4/e.55.1.c: Define CHUNKSZ from
14881         dg-additional-options depending on whether expensive testing is on.
14882         * testsuite/libgomp.fortran/examples-4/e.55.1.f90 (e_55_1_mod):
14883         Decrease N to 100000 and CHUNKSZ to 10000.
14885 2014-11-24  Jakub Jelinek  <jakub@redhat.com>
14887         PR fortran/63938
14888         * testsuite/libgomp.fortran/pr63938-1.f90: New test.
14889         * testsuite/libgomp.fortran/pr63938-2.f90: New test.
14891 2014-11-21  Steve Ellcey  <sellcey@imgtec.com>
14893         * config/linux/mips/futex.h (SYS_futex): Define if not already done.
14895 2014-11-21  H.J. Lu  <hongjiu.lu@intel.com>
14897         PR bootstrap/63784
14898         * configure: Regenerated.
14900 2014-11-19  Uros Bizjak  <ubizjak@gmail.com>
14902         * testsuite/libgomp.c/examples-4/e.53.5.c: Require
14903         vect_simd_clones effective target.
14904         * testsuite/libgomp.fortran/examples-4/e.53.5.f90: Ditto.
14906 2014-11-14  Jakub Jelinek  <jakub@redhat.com>
14908         * libgomp.c/examples-4/e.54.2.c (main): Use N / 8 instead
14909         of 32 as block_size.
14910         * libgomp.fortran/examples-4/e.54.2.f90 (e_54_1): Use n / 8
14911         instead of 32 as block_size.
14913 2014-11-13  Andrey Turetskiy  <andrey.turetskiy@intel.com>
14914             Ilya Verbin  <ilya.verbin@intel.com>
14916         * Makefile.in: Regenerate.
14917         * configure: Regenerate.
14918         * configure.ac: Set up offload_additional_options,
14919         offload_additional_lib_paths and offload_targets.
14920         * testsuite/Makefile.am: Export environment variables: OFFLOAD_TARGETS,
14921         OFFLOAD_ADDITIONAL_OPTIONS, OFFLOAD_ADDITIONAL_LIB_PATHS.
14922         * testsuite/Makefile.in: Regenerate.
14923         * testsuite/lib/libgomp.exp (libgomp_init): Append
14924         offload_additional_lib_paths to LD_LIBRARY_PATH.  Append
14925         offload_additional_options to ALWAYS_CFLAGS.  Append liboffloadmic
14926         build directory to LD_LIBRARY_PATH for intelmic offload targets.
14928 2014-11-13  Andrey Turetskiy  <andrey.turetskiy@intel.com>
14929             Ilya Verbin  <ilya.verbin@intel.com>
14930             Kirill Yukhin  <kirill.yukhin@intel.com>
14931             Ilya Tocar  <ilya.tocar@intel.com>
14933         * testsuite/lib/libgomp.exp
14934         (check_effective_target_offload_device): New.
14935         * testsuite/libgomp.c++/c++.exp: Include tests from subdirectories.
14936         * testsuite/libgomp.c++/examples-4/e.51.5.C: New test.
14937         * testsuite/libgomp.c++/examples-4/e.53.2.C: Ditto.
14938         * testsuite/libgomp.c/examples-4/e.50.1.c: Ditto.
14939         * testsuite/libgomp.c/examples-4/e.50.2.c: Ditto.
14940         * testsuite/libgomp.c/examples-4/e.50.3.c: Ditto.
14941         * testsuite/libgomp.c/examples-4/e.50.4.c: Ditto.
14942         * testsuite/libgomp.c/examples-4/e.50.5.c: Ditto.
14943         * testsuite/libgomp.c/examples-4/e.51.1.c: Ditto.
14944         * testsuite/libgomp.c/examples-4/e.51.2.c: Ditto.
14945         * testsuite/libgomp.c/examples-4/e.51.3.c: Ditto.
14946         * testsuite/libgomp.c/examples-4/e.51.4.c: Ditto.
14947         * testsuite/libgomp.c/examples-4/e.51.6.c: Ditto.
14948         * testsuite/libgomp.c/examples-4/e.51.7.c: Ditto.
14949         * testsuite/libgomp.c/examples-4/e.52.1.c: Ditto.
14950         * testsuite/libgomp.c/examples-4/e.52.2.c: Ditto.
14951         * testsuite/libgomp.c/examples-4/e.53.1.c: Ditto.
14952         * testsuite/libgomp.c/examples-4/e.53.3.c: Ditto.
14953         * testsuite/libgomp.c/examples-4/e.53.4.c: Ditto.
14954         * testsuite/libgomp.c/examples-4/e.53.5.c: Ditto.
14955         * testsuite/libgomp.c/examples-4/e.54.2.c: Ditto.
14956         * testsuite/libgomp.c/examples-4/e.54.3.c: Ditto.
14957         * testsuite/libgomp.c/examples-4/e.54.4.c: Ditto.
14958         * testsuite/libgomp.c/examples-4/e.54.5.c: Ditto.
14959         * testsuite/libgomp.c/examples-4/e.54.6.c: Ditto.
14960         * testsuite/libgomp.c/examples-4/e.55.1.c: Ditto.
14961         * testsuite/libgomp.c/examples-4/e.55.2.c: Ditto.
14962         * testsuite/libgomp.c/examples-4/e.56.3.c: Ditto.
14963         * testsuite/libgomp.c/examples-4/e.56.4.c: Ditto.
14964         * testsuite/libgomp.c/examples-4/e.57.1.c: Ditto.
14965         * testsuite/libgomp.c/examples-4/e.57.2.c: Ditto.
14966         * testsuite/libgomp.c/examples-4/e.57.3.c: Ditto.
14967         * testsuite/libgomp.c/target-7.c: Fix test.
14968         * testsuite/libgomp.fortran/examples-4/e.50.1.f90: New test.
14969         * testsuite/libgomp.fortran/examples-4/e.50.2.f90: Ditto.
14970         * testsuite/libgomp.fortran/examples-4/e.50.3.f90: Ditto.
14971         * testsuite/libgomp.fortran/examples-4/e.50.4.f90: Ditto.
14972         * testsuite/libgomp.fortran/examples-4/e.50.5.f90: Ditto.
14973         * testsuite/libgomp.fortran/examples-4/e.51.1.f90: Ditto.
14974         * testsuite/libgomp.fortran/examples-4/e.51.2.f90: Ditto.
14975         * testsuite/libgomp.fortran/examples-4/e.51.3.f90: Ditto.
14976         * testsuite/libgomp.fortran/examples-4/e.51.4.f90: Ditto.
14977         * testsuite/libgomp.fortran/examples-4/e.51.5.f90: Ditto.
14978         * testsuite/libgomp.fortran/examples-4/e.51.6.f90: Ditto.
14979         * testsuite/libgomp.fortran/examples-4/e.51.7.f90: Ditto.
14980         * testsuite/libgomp.fortran/examples-4/e.52.1.f90: Ditto.
14981         * testsuite/libgomp.fortran/examples-4/e.52.2.f90: Ditto.
14982         * testsuite/libgomp.fortran/examples-4/e.53.1.f90: Ditto.
14983         * testsuite/libgomp.fortran/examples-4/e.53.2.f90: Ditto.
14984         * testsuite/libgomp.fortran/examples-4/e.53.3.f90: Ditto.
14985         * testsuite/libgomp.fortran/examples-4/e.53.4.f90: Ditto.
14986         * testsuite/libgomp.fortran/examples-4/e.53.5.f90: Ditto.
14987         * testsuite/libgomp.fortran/examples-4/e.54.2.f90: Ditto.
14988         * testsuite/libgomp.fortran/examples-4/e.54.3.f90: Ditto.
14989         * testsuite/libgomp.fortran/examples-4/e.54.4.f90: Ditto.
14990         * testsuite/libgomp.fortran/examples-4/e.54.5.f90: Ditto.
14991         * testsuite/libgomp.fortran/examples-4/e.54.6.f90: Ditto.
14992         * testsuite/libgomp.fortran/examples-4/e.55.1.f90: Ditto.
14993         * testsuite/libgomp.fortran/examples-4/e.55.2.f90: Ditto.
14994         * testsuite/libgomp.fortran/examples-4/e.56.3.f90: Ditto.
14995         * testsuite/libgomp.fortran/examples-4/e.56.4.f90: Ditto.
14996         * testsuite/libgomp.fortran/examples-4/e.57.1.f90: Ditto.
14997         * testsuite/libgomp.fortran/examples-4/e.57.2.f90: Ditto.
14998         * testsuite/libgomp.fortran/examples-4/e.57.3.f90: Ditto.
15000 2014-11-13  Jakub Jelinek  <jakub@redhat.com>
15001             Ilya Verbin  <ilya.verbin@intel.com>
15002             Thomas Schwinge  <thomas@codesourcery.com>
15003             Andrey Turetskiy  <andrey.turetskiy@intel.com>
15005         * libgomp.map (GOMP_4.0.1): New symbol version.
15006         Add GOMP_offload_register.
15007         * libgomp_target.h: New file.
15008         * splay-tree.h: New file.
15009         * target.c: Include config.h, libgomp_target.h, dlfcn.h, splay-tree.h.
15010         (gomp_target_init): New forward declaration.
15011         (gomp_is_initialized): New static variable.
15012         (splay_tree_node, splay_tree, splay_tree_key): New typedefs.
15013         (struct target_mem_desc, struct splay_tree_key_s, offload_image_descr):
15014         New structures.
15015         (offload_images, num_offload_images, devices, num_devices): New static
15016         variables.
15017         (splay_compare): New static function.
15018         (struct gomp_device_descr): New structure.
15019         (gomp_get_num_devices): Call gomp_target_init.
15020         (resolve_device, gomp_map_vars_existing, gomp_map_vars, gomp_unmap_tgt)
15021         (gomp_unmap_vars, gomp_update, gomp_init_device): New static functions.
15022         (GOMP_offload_register): New function.
15023         (GOMP_target): Arrange for host callback to be performed in a separate
15024         initial thread and contention group, inheriting ICVs from
15025         gomp_global_icv etc.  Call gomp_map_vars and gomp_unmap_vars.
15026         Add device initialization and lookup for target function in splay tree.
15027         (GOMP_target_data): Add device initialization and call gomp_map_vars.
15028         (GOMP_target_end_data): Call gomp_unmap_vars.
15029         (GOMP_target_update): Add device initialization and call gomp_update.
15030         (gomp_load_plugin_for_device, gomp_register_images_for_device)
15031         (gomp_target_init): New static functions.
15033 2014-11-13  Bernd Schmidt  <bernds@codesourcery.com>
15034             Thomas Schwinge  <thomas@codesourcery.com>
15035             Ilya Verbin  <ilya.verbin@intel.com>
15036             Andrey Turetskiy  <andrey.turetskiy@intel.com>
15038         * config.h.in: Regenerate.
15039         * configure: Regenerate.
15040         * configure.ac: Check for libdl, required for plugin support.
15041         (PLUGIN_SUPPORT): Define if plugins are supported.
15042         (enable_offload_targets): Support Intel MIC targets.
15043         (OFFLOAD_TARGETS): List of target names suitable for offloading.
15045 2014-11-11  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
15047         PR target/63610
15048         * configure: Regenerate.
15050 2014-11-05  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
15052         * config/posix/lock.c (_XOPEN_SOURCE) Define as 600.
15054 2014-10-06  Marek Polacek  <polacek@redhat.com>
15056         * testsuite/libgomp.c/affinity-1.c: Include <sys/wait.h>.
15057         * testsuite/libgomp.c/nqueens-1.c: Include <stdlib.h>.
15058         * testsuite/libgomp.c/thread-limit-1.c: Include <omp.h>
15059         * testsuite/libgomp.c/thread-limit-2.c: Likewise.
15061 2014-10-06  Marek Polacek  <polacek@redhat.com>
15063         * testsuite/libgomp.c/affinity-1.c: Fix implicit declarations.
15064         * testsuite/libgomp.c/nqueens-1.c: Likewise.
15065         * testsuite/libgomp.c/pr26943-3.c: Likewise.
15066         * testsuite/libgomp.c/pr26943-4.c: Likewise.
15067         * testsuite/libgomp.c/pr36802-2.c: Likewise.
15068         * testsuite/libgomp.c/pr36802-3.c: Likewise.
15069         * testsuite/libgomp.c/thread-limit-1.c: Likewise.
15070         * testsuite/libgomp.c/thread-limit-2.c: Likewise.
15071         * testsuite/libgomp.c/appendix-a/a.15.1.c: Include <omp.h>.
15072         * testsuite/libgomp.c/omp-loop02.c: Fix defaulting to int.
15073         * testsuite/libgomp.c/omp-parallel-for.c: Likewise.
15074         * testsuite/libgomp.c/omp-parallel-if.c: Likewise.
15075         * testsuite/libgomp.c/omp-single-1.c: Likewise.
15076         * testsuite/libgomp.c/omp-single-2.c: Likewise.
15077         * testsuite/libgomp.c/omp_matvec.c: Likewise.
15078         * testsuite/libgomp.c/omp_workshare3.c: Likewise.
15079         * testsuite/libgomp.c/omp_workshare4.c: Likewise.
15080         * testsuite/libgomp.c/shared-1.c: Fix defaulting to int.  Fix implicit
15081         declarations.
15083 2014-10-03  Jakub Jelinek  <jakub@redhat.com>
15085         PR libgomp/61200
15086         * testsuite/libgomp.c/pr61200.c: New test.
15088 2014-09-18  Jakub Jelinek  <jakub@redhat.com>
15090         PR c++/63248
15091         * testsuite/libgomp.c++/pr63248.C: New test.
15093 2014-08-04  Jakub Jelinek  <jakub@redhat.com>
15095         * task.c (GOMP_taskgroup_end): If taskgroup->num_children
15096         is not zero, but taskgroup->children is NULL and there are
15097         any task->children, schedule those instead of waiting.
15098         * testsuite/libgomp.c/depend-6.c: New test.
15099         * testsuite/libgomp.c/depend-7.c: New test.
15100         * testsuite/libgomp.c/depend-8.c: New test.
15101         * testsuite/libgomp.c/depend-9.c: New test.
15102         * testsuite/libgomp.c/depend-10.c: New test.
15104 2014-08-01  Jakub Jelinek  <jakub@redhat.com>
15106         * libgomp.h (struct gomp_task_depend_entry): Add redundant_out field.
15107         (struct gomp_taskwait): New type.
15108         (struct gomp_task): Add taskwait and parent_depends_on, remove
15109         in_taskwait and taskwait_sem fields.
15110         (gomp_finish_task): Don't destroy taskwait_sem.
15111         * task.c (gomp_init_task): Don't init in_taskwait, instead init
15112         taskwait and parent_depends_on.
15113         (GOMP_task): For if (0) tasks with depend clause that depend on
15114         earlier tasks don't defer them, instead call
15115         gomp_task_maybe_wait_for_dependencies to wait for the dependencies.
15116         Initialize redundant_out field, for redundant out entries just
15117         move them at the end of linked list instead of removing them
15118         completely, and set redundant_out flag instead of redundant.
15119         (gomp_task_run_pre): Update last_parent_depends_on if scheduling
15120         that task.
15121         (gomp_task_run_post_handle_dependers): If parent is in
15122         gomp_task_maybe_wait_for_dependencies and newly runnable task
15123         is not parent_depends_on, queue it in parent->children linked
15124         list after all runnable tasks with parent_depends_on set.
15125         Adjust for addition of taskwait indirection.
15126         (gomp_task_run_post_remove_parent): If parent is in
15127         gomp_task_maybe_wait_for_dependencies and task to be removed
15128         is parent_depends_on, decrement n_depend and if needed awake
15129         parent.  Adjust for addition of taskwait indirection.
15130         (GOMP_taskwait): Adjust for addition of taskwait indirection.
15131         (gomp_task_maybe_wait_for_dependencies): New function.
15132         * testsuite/libgomp.c/depend-5.c: New test.
15134 2014-07-13  Tobias Burnus  <burnus@net-b.de>
15136         * testsuite/libgomp.fortran/pr34020.f90: Make compile
15137         with TS 18508/Fortran 2015.
15139 2014-07-06  Marek Polacek  <polacek@redhat.com>
15141         PR c/6940
15142         * testsuite/libgomp.c/appendix-a/a.29.1.c (f): Add dg-warnings.
15144 2014-07-03  Jakub Jelinek  <jakub@redhat.com>
15146         * testsuite/lib/libgomp.exp (libgomp_target_compile): If $source
15147         matches regex $lang_source_re, add $lang_include_flags to options.
15148         * testsuite/libgomp.c/c.exp: Unset lang_include_flags.
15149         * testsuite/libgomp.c++/c++.exp: Likewise.
15150         * testsuite/libgomp.fortran/fortran.exp: Likewise.  Set lang_source_re
15151         and lang_include_flags instead of adding -fintrinsic-modules-path= to
15152         ALWAYS_CFLAGS.
15153         * testsuite/libgomp.graphite/graphite.exp: Unset lang_include_flags.
15155 2014-07-03  Thomas Schwinge  <thomas@codesourcery.com>
15157         * testsuite/libgomp.fortran/fortran.exp: Explain
15158         gfortran-dg-runtest usage.
15160 2014-06-25  Jakub Jelinek  <jakub@redhat.com>
15162         * testsuite/libgomp.fortran/simd5.f90: New test.
15163         * testsuite/libgomp.fortran/simd6.f90: New test.
15164         * testsuite/libgomp.fortran/simd7.f90: New test.
15166 2014-06-24  Jakub Jelinek  <jakub@redhat.com>
15168         * testsuite/libgomp.c/for-2.c: Define SC to static for
15169         #pragma omp for simd testing.
15170         * testsuite/libgomp.c/for-2.h (SC): Define if not defined.
15171         (N(f5), N(f6), N(f7), N(f8), N(f10), N(f12), N(f14)): Use
15172         SC macro.
15173         * testsuite/libgomp.c/simd-14.c: New test.
15174         * testsuite/libgomp.c/simd-15.c: New test.
15175         * testsuite/libgomp.c/simd-16.c: New test.
15176         * testsuite/libgomp.c/simd-17.c: New test.
15177         * testsuite/libgomp.c++/for-10.C: Define SC to static for
15178         #pragma omp for simd testing.
15179         * testsuite/libgomp.c++/simd10.C: New test.
15180         * testsuite/libgomp.c++/simd11.C: New test.
15181         * testsuite/libgomp.c++/simd12.C: New test.
15182         * testsuite/libgomp.c++/simd13.C: New test.
15184         * testsuite/libgomp.fortran/aligned1.f03: New test.
15185         * testsuite/libgomp.fortran/nestedfn5.f90: New test.
15186         * testsuite/libgomp.fortran/target7.f90: Surround loop spawning
15187         tasks with !$omp parallel !$omp single.
15188         * testsuite/libgomp.fortran/target8.f90: New test.
15189         * testsuite/libgomp.fortran/udr4.f90 (foo UDR, bar UDR): Adjust
15190         not to use trim in the combiner, instead call elemental function.
15191         (fn): New elemental function.
15192         * testsuite/libgomp.fortran/udr6.f90 (do_add, dp_add, dp_init):
15193         Make elemental.
15194         * testsuite/libgomp.fortran/udr7.f90 (omp_priv, omp_orig, omp_out,
15195         omp_in): Likewise.
15196         * testsuite/libgomp.fortran/udr12.f90: New test.
15197         * testsuite/libgomp.fortran/udr13.f90: New test.
15198         * testsuite/libgomp.fortran/udr14.f90: New test.
15199         * testsuite/libgomp.fortran/udr15.f90: New test.
15201 2014-06-18  Jakub Jelinek  <jakub@redhat.com>
15203         * omp_lib.f90.in (openmp_version): Set to 201307.
15204         * omp_lib.h.in (openmp_version): Likewise.
15205         * testsuite/libgomp.c/target-8.c: New test.
15206         * testsuite/libgomp.fortran/declare-simd-1.f90: Add notinbranch
15207         and inbranch clauses.
15208         * testsuite/libgomp.fortran/depend-3.f90: New test.
15209         * testsuite/libgomp.fortran/openmp_version-1.f: Adjust for new
15210         openmp_version.
15211         * testsuite/libgomp.fortran/openmp_version-2.f90: Likewise.
15212         * testsuite/libgomp.fortran/target1.f90: New test.
15213         * testsuite/libgomp.fortran/target2.f90: New test.
15214         * testsuite/libgomp.fortran/target3.f90: New test.
15215         * testsuite/libgomp.fortran/target4.f90: New test.
15216         * testsuite/libgomp.fortran/target5.f90: New test.
15217         * testsuite/libgomp.fortran/target6.f90: New test.
15218         * testsuite/libgomp.fortran/target7.f90: New test.
15220 2014-06-10  Jakub Jelinek  <jakub@redhat.com>
15222         PR fortran/60928
15223         * testsuite/libgomp.fortran/allocatable9.f90: New test.
15224         * testsuite/libgomp.fortran/allocatable10.f90: New test.
15225         * testsuite/libgomp.fortran/allocatable11.f90: New test.
15226         * testsuite/libgomp.fortran/allocatable12.f90: New test.
15227         * testsuite/libgomp.fortran/alloc-comp-1.f90: New test.
15228         * testsuite/libgomp.fortran/alloc-comp-2.f90: New test.
15229         * testsuite/libgomp.fortran/alloc-comp-3.f90: New test.
15230         * testsuite/libgomp.fortran/associate1.f90: New test.
15231         * testsuite/libgomp.fortran/associate2.f90: New test.
15232         * testsuite/libgomp.fortran/procptr1.f90: New test.
15234 2014-06-06  Jakub Jelinek  <jakub@redhat.com>
15236         * testsuite/libgomp.fortran/simd1.f90: New test.
15237         * testsuite/libgomp.fortran/udr1.f90: New test.
15238         * testsuite/libgomp.fortran/udr2.f90: New test.
15239         * testsuite/libgomp.fortran/udr3.f90: New test.
15240         * testsuite/libgomp.fortran/udr4.f90: New test.
15241         * testsuite/libgomp.fortran/udr5.f90: New test.
15242         * testsuite/libgomp.fortran/udr6.f90: New test.
15243         * testsuite/libgomp.fortran/udr7.f90: New test.
15244         * testsuite/libgomp.fortran/udr8.f90: New test.
15245         * testsuite/libgomp.fortran/udr9.f90: New test.
15246         * testsuite/libgomp.fortran/udr10.f90: New test.
15247         * testsuite/libgomp.fortran/udr11.f90: New test.
15249 2014-05-27  Uros Bizjak  <ubizjak@gmail.com>
15251         * testsuite/libgomp.fortran/declare-simd-1.f90: Require
15252         vect_simd_clones effective target.
15253         * testsuite/libgomp.fortran/declare-simd-2.f90: Ditto.
15255 2014-05-21  Jakub Jelinek  <jakub@redhat.com>
15257         PR middle-end/61252
15258         * testsuite/libgomp.c++/simd-9.C: New test.
15260 2014-05-18  Uros Bizjak  <ubizjak@gmail.com>
15262         * libgomp.texi (Runitme Library Routines): Remove multiple @menu.
15263         (Environment Variables) Move OMP_PROC_BIND and OMP_STACKSIZE node
15264         texts according to their @menu entry positions.
15266 2014-05-11  Jakub Jelinek  <jakub@redhat.com>
15268         * testsuite/libgomp.fortran/cancel-do-1.f90: New test.
15269         * testsuite/libgomp.fortran/cancel-do-2.f90: New test.
15270         * testsuite/libgomp.fortran/cancel-parallel-1.f90: New test.
15271         * testsuite/libgomp.fortran/cancel-parallel-3.f90: New test.
15272         * testsuite/libgomp.fortran/cancel-sections-1.f90: New test.
15273         * testsuite/libgomp.fortran/cancel-taskgroup-2.f90: New test.
15274         * testsuite/libgomp.fortran/declare-simd-1.f90: New test.
15275         * testsuite/libgomp.fortran/declare-simd-2.f90: New test.
15276         * testsuite/libgomp.fortran/declare-simd-3.f90: New test.
15277         * testsuite/libgomp.fortran/depend-1.f90: New test.
15278         * testsuite/libgomp.fortran/depend-2.f90: New test.
15279         * testsuite/libgomp.fortran/omp_atomic5.f90: New test.
15280         * testsuite/libgomp.fortran/simd1.f90: New test.
15281         * testsuite/libgomp.fortran/simd2.f90: New test.
15282         * testsuite/libgomp.fortran/simd3.f90: New test.
15283         * testsuite/libgomp.fortran/simd4.f90: New test.
15284         * testsuite/libgomp.fortran/taskgroup1.f90: New test.
15286 2014-05-02  Jakub Jelinek  <jakub@redhat.com>
15288         * testsuite/libgomp.c/simd-10.c: New test.
15289         * testsuite/libgomp.c/simd-11.c: New test.
15290         * testsuite/libgomp.c/simd-12.c: New test.
15291         * testsuite/libgomp.c/simd-13.c: New test.
15293 2014-04-24  Jakub Jelinek  <jakub@redhat.com>
15295         * testsuite/libgomp.c++/atomic-14.C: Allow seq_cst and
15296         atomic type clauses in any order and optional comma in between.
15297         * testsuite/libgomp.c++/atomic-15.C: Likewise.
15298         * testsuite/libgomp.c/atomic-17.c: Likewise.
15300         * testsuite/libgomp.c/simd-7.c: New test.
15301         * testsuite/libgomp.c/simd-8.c: New test.
15302         * testsuite/libgomp.c/simd-9.c: New test.
15303         * testsuite/libgomp.c/loop-16.c: New test.
15305 2014-04-02  Richard Henderson  <rth@redhat.com>
15307         * config/linux/futex.h (futex_wait): Get error value from errno.
15308         (futex_wake): Likewise.
15310 2014-03-25  Jakub Jelinek  <jakub@redhat.com>
15312         PR c++/60331
15313         * testsuite/libgomp.c++/udr-11.C: New test.
15314         * testsuite/libgomp.c++/udr-12.C: New test.
15315         * testsuite/libgomp.c++/udr-13.C: New test.
15316         * testsuite/libgomp.c++/udr-14.C: New test.
15317         * testsuite/libgomp.c++/udr-15.C: New test.
15318         * testsuite/libgomp.c++/udr-16.C: New test.
15319         * testsuite/libgomp.c++/udr-17.C: New test.
15320         * testsuite/libgomp.c++/udr-18.C: New test.
15321         * testsuite/libgomp.c++/udr-19.C: New test.
15323 2014-01-02  Richard Sandiford  <rdsandiford@googlemail.com>
15325         Update copyright years
15327 2014-01-02  Richard Sandiford  <rdsandiford@googlemail.com>
15329         * hashtab.h: Use the standard form for the copyright notice.
15331 2014-01-02  Tobias Burnus  <burnus@net-b.de>
15333         * libgomp.texi: Bump @copying's copyright year.
15335 2013-12-17  Andreas Tobler  <andreast@gcc.gnu.org>
15337         * testsuite/libgomp.c/affinity-1.c: Remove alloca.h include. Replace
15338         alloca () with __builtin_alloca ().
15339         * testsuite/libgomp.c/icv-2.c: Add FreeBSD coverage.
15340         * testsuite/libgomp.c/lock-3.c: Likewise.
15341         * testsuite/libgomp.c/pr48591.c: Likewise.
15343 2013-12-17  Jakub Jelinek  <jakub@redhat.com>
15345         PR testsuite/59534
15346         * testsuite/libgomp.fortran/retval1.f90 (e5): Avoid non-shortcircuited
15347         comparisons.
15349 2013-12-16  Jakub Jelinek  <jakub@redhat.com>
15351         PR libgomp/58756
15352         * testsuite/libgomp.c/pr58756.c: New test.
15354 2013-12-12  Jakub Jelinek  <jakub@redhat.com>
15356         PR libgomp/59467
15357         * testsuite/libgomp.fortran/crayptr2.f90: Add private (d) clause to
15358         !$omp parallel.
15360 2013-11-07  Thomas Schwinge  <thomas@codesourcery.com>
15362         * testsuite/lib/libgomp.exp (libgomp_init): Don't add -fopenmp to
15363         ALWAYS_CFLAGS.
15364         * testsuite/libgomp.c++/c++.exp (ALWAYS_CFLAGS): Add -fopenmp.
15365         * testsuite/libgomp.c/c.exp (ALWAYS_CFLAGS): Likewise.
15366         * testsuite/libgomp.fortran/fortran.exp (ALWAYS_CFLAGS): Likewise.
15367         * testsuite/libgomp.graphite/graphite.exp (ALWAYS_CFLAGS):
15368         Likewise.
15370         * libgomp_g.h: Include <stddef.h> for size_t.
15372         * libgomp.spec.in: Update comment about libgomp's dependencies.
15373         * configure.ac: Likewise.
15374         * configure: Regenerate.
15376 2013-10-16  Tobias Burnus  <burnus@net-b.de>
15378         * libgomp.texi: (Runtime Library Routines): Update references for
15379         OpenMP 4.0. Add omp_get_cancellation, omp_get_default_device,
15380         omp_get_num_devices, omp_get_num_teams, omp_get_proc_bind,
15381         omp_get_team_num, omp_is_initial_device, omp_set_default_device.
15382         (Environment Variables): Update references for OpenMP 4.0. Add
15383         OMP_CANCELLATION, OMP_DEFAULT_DEVICE, OMP_PLACES.
15384         Move OMP_DISPLAY_ENV and OMP_PROC_BIND up to be in alphabetical
15385         order.
15387 2013-10-14  Jakub Jelinek  <jakub@redhat.com>
15389         * env.c (parse_bind_var): Initialize value to avoid
15390         (false positive) warning.
15392 2013-10-12  Jakub Jelinek  <jakub@redhat.com>
15394         PR libgomp/58691
15395         * config/linux/proc.c (gomp_cpuset_popcount): Add unused attribute
15396         to check variable.
15397         (gomp_init_num_threads): Move i variable declaration into
15398         #ifdef CPU_ALLOC_SIZE block.
15399         * config/linux/affinity.c (gomp_affinity_init_level): Test
15400         gomp_places_list_len == 0 rather than gomp_places_list == 0
15401         when checking for topology reading error.
15402         * team.c (gomp_team_start): Don't handle bind == omp_proc_bind_false.
15403         * env.c (parse_affinity): Add ignore argument, if true, don't populate
15404         gomp_places_list, only parse env var and always return false.
15405         (parse_places_var): Likewise.  Don't check gomp_global_icv.bind_var.
15406         (initialize_env): Always parse OMP_PLACES and GOMP_CPU_AFFINITY env
15407         vars, default to OMP_PROC_BIND=true if OMP_PROC_BIND wasn't specified
15408         and either of these variables were parsed correctly into a places
15409         list.
15411 2013-10-11  Thomas Schwinge  <thomas@codesourcery.com>
15412             Jakub Jelinek  <jakub@redhat.com>
15414         * testsuite/libgomp.graphite/force-parallel-1.c: Expect 4 instead
15415         of 5 loopfn matches.
15416         * testsuite/libgomp.graphite/force-parallel-2.c: Likewise.
15417         * testsuite/libgomp.graphite/force-parallel-3.c: Likewise.
15418         * testsuite/libgomp.graphite/force-parallel-4.c: Likewise.
15419         * testsuite/libgomp.graphite/force-parallel-5.c: Likewise.
15420         * testsuite/libgomp.graphite/force-parallel-6.c: Likewise.
15421         * testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
15422         * testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
15423         * testsuite/libgomp.graphite/force-parallel-9.c: Likewise.
15425 2013-10-11  Thomas Schwinge  <thomas@codesourcery.com>
15427         * Makefile.am (omp_lib.mod): Streamline rule.
15428         * Makefile.in: Regenerate.
15430         * libgomp.texi (Runtime Library Routines): C linkage, don't throw
15431         exceptions.
15433         * testsuite/libgomp.c/lib-1.c (main): Add missing error check.
15434         * testsuite/libgomp.fortran/lib1.f90: Likewise.
15435         * testsuite/libgomp.fortran/lib2.f: Likewise.
15436         * testsuite/libgomp.fortran/lib3.f: Likewise.
15438         * configure.ac: Typo fix.
15439         * configure: Regenerate.
15441         * testsuite/libgomp.fortran/openmp_version-1.f: New file.
15442         * testsuite/libgomp.fortran/openmp_version-2.f90: Likewise.
15444         * omp.h.in: Don't touch the user's namespace.
15446 2013-10-11  Jakub Jelinek  <jakub@redhat.com>
15447             Tobias Burnus  <burnus@net-b.de>
15448             Richard Henderson  <rth@redhat.com>
15450         * target.c: New file.
15451         * Makefile.am (libgomp_la_SOURCES): Add target.c.
15452         * Makefile.in: Regenerated.
15453         * libgomp_g.h (GOMP_task): Add depend argument.
15454         (GOMP_barrier_cancel, GOMP_loop_end_cancel,
15455         GOMP_sections_end_cancel, GOMP_target, GOMP_target_data,
15456         GOMP_target_end_data, GOMP_target_update, GOMP_teams,
15457         GOMP_parallel_loop_static, GOMP_parallel_loop_dynamic,
15458         GOMP_parallel_loop_guided, GOMP_parallel_loop_runtime,
15459         GOMP_parallel, GOMP_cancel, GOMP_cancellation_point,
15460         GOMP_taskgroup_start, GOMP_taskgroup_end,
15461         GOMP_parallel_sections): New prototypes.
15462         * fortran.c (omp_is_initial_device): Add ialias_redirect.
15463         (omp_is_initial_device_): New function.
15464         (ULP, STR1, STR2, ialias_redirect): Removed.
15465         (omp_get_cancellation_, omp_get_proc_bind_, omp_set_default_device_,
15466         omp_set_default_device_8_, omp_get_default_device_,
15467         omp_get_num_devices_, omp_get_num_teams_, omp_get_team_num_): New
15468         functions.
15469         * libgomp.map (GOMP_barrier_cancel, GOMP_loop_end_cancel,
15470         GOMP_sections_end_cancel, GOMP_target, GOMP_target_data,
15471         GOMP_target_end_data, GOMP_target_update, GOMP_teams): Export
15472         @@GOMP_4.0.
15473         (omp_is_initial_device, omp_is_initial_device_, omp_get_cancellation,
15474         omp_get_cancellation_, omp_get_proc_bind, omp_get_proc_bind_,
15475         omp_set_default_device, omp_set_default_device_,
15476         omp_set_default_device_8_, omp_get_default_device,
15477         omp_get_default_device_, omp_get_num_devices, omp_get_num_devices_,
15478         omp_get_num_teams, omp_get_num_teams_, omp_get_team_num,
15479         omp_get_team_num_): Export @@OMP_4.0.
15480         * team.c (struct gomp_thread_start_data): Add place field.
15481         (gomp_thread_start): Clear thr->thread_pool and
15482         thr->task before returning.  Use gomp_team_barrier_wait_final
15483         instead of gomp_team_barrier_wait.  Initialize thr->place.
15484         (gomp_new_team): Initialize work_shares_to_free, work_share_cancelled,
15485         team_cancelled and task_queued_count fields.
15486         (gomp_free_pool_helper): Clear thr->thread_pool and thr->task
15487         before calling pthread_exit.
15488         (gomp_free_thread): No longer static.  Use
15489         gomp_managed_threads_lock instead of gomp_remaining_threads_lock.
15490         (gomp_team_start): Add flags argument.  Set
15491         thr->thread_pool->threads_busy to nthreads immediately after creating
15492         new pool.  Use gomp_managed_threads_lock instead of
15493         gomp_remaining_threads_lock.  Handle OpenMP 4.0 affinity.
15494         (gomp_team_end): Use gomp_managed_threads_lock instead of
15495         gomp_remaining_threads_lock.  Use gomp_team_barrier_wait_final instead
15496         of gomp_team_barrier_wait.  If team->team_cancelled, call
15497         gomp_fini_workshare on ws chain starting at team->work_shares_to_free
15498         rather than thr->ts.work_share.
15499         (initialize_team): Don't call gomp_sem_init here.
15500         * sections.c (GOMP_parallel_sections_start): Adjust gomp_team_start
15501         caller.
15502         (GOMP_parallel_sections, GOMP_sections_end_cancel): New functions.
15503         * env.c (gomp_global_icv): Add default_device_var, target_data and
15504         bind_var initializers.
15505         (gomp_cpu_affinity, gomp_cpu_affinity_len): Remove.
15506         (gomp_bind_var_list, gomp_bind_var_list_len, gomp_places_list,
15507         gomp_places_list_len): New variables.
15508         (parse_bind_var, parse_one_place, parse_places_var): New functions.
15509         (parse_affinity): Rewritten to construct OMP_PLACES list with unit
15510         sized places.
15511         (gomp_cancel_var): New global variable.
15512         (parse_int): New function.
15513         (handle_omp_display_env): New function.
15514         (initialize_env): Use it.  Initialize default_device_var.
15515         Parse OMP_CANCELLATION env var.  Use parse_bind_var to parse
15516         OMP_PROC_BIND instead of parse_boolean.  Use parse_places_var for
15517         OMP_PLACES parsing.  Don't call parse_affinity if OMP_PLACES has
15518         been successfully parsed (and call gomp_init_affinity in that case).
15519         (omp_get_cancellation, omp_get_proc_bind, omp_set_default_device,
15520         omp_get_default_device, omp_get_num_devices, omp_get_num_teams,
15521         omp_get_team_num, omp_is_initial_device): New functions.
15522         * libgomp.h: Include stdlib.h.
15523         (ialias_ulp, ialias_str1, ialias_str2, ialias_redirect, ialias_call):
15524         Define.
15525         (struct target_mem_desc): Forward declare.
15526         (struct gomp_task_icv): Add default_device_var, target_data, bind_var
15527         and thread_limit_var fields.
15528         (gomp_get_num_devices): New prototype.
15529         (gomp_cancel_var): New extern decl.
15530         (struct gomp_team): Add work_shares_to_free, work_share_cancelled,
15531         team_cancelled and task_queued_count fields.  Add comments about
15532         task_{,queued_,running_}count.
15533         (gomp_cancel_kind): New enum.
15534         (gomp_work_share_end_cancel): New prototype.
15535         (struct gomp_task): Add next_taskgroup, prev_taskgroup, taskgroup,
15536         copy_ctors_done, dependers, depend_hash, depend_count, num_dependees
15537         and depend fields.
15538         (struct gomp_taskgroup): New type.
15539         (struct gomp_task_depend_entry,
15540         struct gomp_dependers_vec): New types.
15541         (gomp_finish_task): Free depend_hash if non-NULL.
15542         (struct gomp_team_state): Add place_partition_off
15543         and place_partition_len fields.
15544         (gomp_bind_var_list, gomp_bind_var_list_len, gomp_places_list,
15545         gomp_places_list_len): New extern decls.
15546         (struct gomp_thread): Add place field.
15547         (gomp_cpu_affinity, gomp_cpu_affinity_len): Remove.
15548         (gomp_init_thread_affinity): Add place argument.
15549         (gomp_affinity_alloc, gomp_affinity_init_place, gomp_affinity_add_cpus,
15550         gomp_affinity_remove_cpu, gomp_affinity_copy_place,
15551         gomp_affinity_same_place, gomp_affinity_finalize_place_list,
15552         gomp_affinity_init_level, gomp_affinity_print_place): New
15553         prototypes.
15554         (gomp_team_start): Add flags argument.
15555         (gomp_thread_limit_var, gomp_remaining_threads_count,
15556         gomp_remaining_threads_lock): Remove.
15557         (gomp_managed_threads_lock): New variable.
15558         (struct gomp_thread_pool): Add threads_busy field.
15559         (gomp_free_thread): New prototype.
15560         * task.c: Include hashtab.h.
15561         (hash_entry_type): New typedef.
15562         (htab_alloc, htab_free, htab_hash, htab_eq): New inlines.
15563         (gomp_init_task): Clear dependers, depend_hash, depend_count,
15564         copy_ctors_done and taskgroup fields.
15565         (GOMP_task): Add depend argument, handle depend clauses.  If
15566         gomp_team_barrier_cancelled or if it's taskgroup has been
15567         cancelled, don't queue or start new tasks.  Set copy_ctors_done
15568         field if needed.  Initialize taskgroup field.  If copy_ctors_done
15569         and already cancelled, don't discard the task.  If taskgroup is
15570         non-NULL, enqueue the task into taskgroup queue.  Increment
15571         num_children field in taskgroup.  Increment task_queued_count.
15572         (gomp_task_run_pre, gomp_task_run_post_remove_parent,
15573         gomp_task_run_post_remove_taskgroup): New inline functions.
15574         (gomp_task_run_post_handle_depend_hash,
15575         gomp_task_run_post_handle_dependers,
15576         gomp_task_run_post_handle_depend): New functions.
15577         (GOMP_taskwait): Use them.  If more than one new tasks
15578         have been queued, wake other threads if needed.
15579         (gomp_barrier_handle_tasks): Likewise.  If
15580         gomp_team_barrier_cancelled, don't start any new tasks, just free
15581         all tasks.
15582         (GOMP_taskgroup_start, GOMP_taskgroup_end): New functions.
15583         * omp_lib.f90.in
15584         (omp_proc_bind_kind, omp_proc_bind_false,
15585         omp_proc_bind_true, omp_proc_bind_master, omp_proc_bind_close,
15586         omp_proc_bind_spread): New params.
15587         (omp_get_cancellation, omp_get_proc_bind, omp_set_default_device,
15588         omp_get_default_device, omp_get_num_devices, omp_get_num_teams,
15589         omp_get_team_num, omp_is_initial_device): New interfaces.
15590         (omp_get_dynamic, omp_get_nested, omp_in_parallel,
15591         omp_get_max_threads, omp_get_num_procs, omp_get_num_threads,
15592         omp_get_thread_num, omp_get_thread_limit, omp_set_max_active_levels,
15593         omp_get_max_active_levels, omp_get_level, omp_get_ancestor_thread_num,
15594         omp_get_team_size, omp_get_active_level, omp_in_final): Remove
15595         useless use omp_lib_kinds.
15596         * omp.h.in (omp_proc_bind_t): New typedef.
15597         (omp_get_cancellation, omp_get_proc_bind, omp_set_default_device,
15598         omp_get_default_device, omp_get_num_devices, omp_get_num_teams,
15599         omp_get_team_num, omp_is_initial_device): New prototypes.
15600         * loop.c (gomp_parallel_loop_start): Add flags argument, pass it
15601         through to gomp_team_start.
15602         (GOMP_parallel_loop_static_start, GOMP_parallel_loop_dynamic_start,
15603         GOMP_parallel_loop_guided_start, GOMP_parallel_loop_runtime_start):
15604         Adjust gomp_parallel_loop_start callers.
15605         (GOMP_parallel_loop_static, GOMP_parallel_loop_dynamic,
15606         GOMP_parallel_loop_guided, GOMP_parallel_loop_runtime,
15607         GOMP_loop_end_cancel): New functions.
15608         (GOMP_parallel_end): Add ialias_redirect.
15609         * hashtab.h: New file.
15610         * libgomp.texi (Environment Variables): Minor cleanup,
15611         update section refs to OpenMP 4.0rc2.
15612         (OMP_DISPLAY_ENV, GOMP_SPINCOUNT): Document these
15613         environment variables.
15614         * work.c (gomp_work_share_end, gomp_work_share_end_nowait): Set
15615         team->work_shares_to_free to thr->ts.work_share before calling
15616         free_work_share.
15617         (gomp_work_share_end_cancel): New function.
15618         * config/linux/proc.c: Include errno.h.
15619         (gomp_get_cpuset_size, gomp_cpuset_size, gomp_cpusetp): New variables.
15620         (gomp_cpuset_popcount): Add cpusetsize argument, use it instead of
15621         sizeof (cpu_set_t) to determine number of iterations.  Fix up check
15622         extern decl.  Use CPU_COUNT_S if available, or CPU_COUNT if
15623         gomp_cpuset_size is sizeof (cpu_set_t).
15624         (gomp_init_num_threads): Initialize gomp_cpuset_size,
15625         gomp_get_cpuset_size and gomp_cpusetp here, use gomp_cpusetp instead
15626         of &cpuset and pass gomp_cpuset_size instead of sizeof (cpu_set_t)
15627         to pthread_getaffinity_np.  Free and clear gomp_cpusetp if it didn't
15628         contain any logical CPUs.
15629         (get_num_procs): Don't call pthread_getaffinity_np if gomp_cpusetp
15630         is NULL.  Use gomp_cpusetp instead of &cpuset and pass
15631         gomp_get_cpuset_size instead of sizeof (cpu_set_t) to
15632         pthread_getaffinity_np.  Check gomp_places_list instead of
15633         gomp_cpu_affinity.  Adjust gomp_cpuset_popcount caller.
15634         * config/linux/bar.c (gomp_barrier_wait_end,
15635         gomp_barrier_wait_last): Use BAR_* defines.
15636         (gomp_team_barrier_wait_end): Likewise.  Clear BAR_CANCELLED
15637         from state where needed.  Set work_share_cancelled to 0 on last
15638         thread.
15639         (gomp_team_barrier_wait_final, gomp_team_barrier_wait_cancel_end,
15640         gomp_team_barrier_wait_cancel, gomp_team_barrier_cancel): New
15641         functions.
15642         * config/linux/proc.h (gomp_cpuset_popcount): Add attribute_hidden.
15643         Add cpusetsize argument.
15644         (gomp_cpuset_size, gomp_cpusetp): Declare.
15645         * config/linux/affinity.c: Include errno.h, stdio.h and string.h.
15646         (affinity_counter): Remove.
15647         (CPU_ISSET_S, CPU_ZERO_S, CPU_SET_S, CPU_CLR_S): Define
15648         if CPU_ALLOC_SIZE isn't defined.
15649         (gomp_init_affinity): Rewritten, if gomp_places_list is NULL, try
15650         silently create OMP_PLACES=threads, if it is non-NULL afterwards,
15651         bind current thread to the first place.
15652         (gomp_init_thread_affinity): Rewritten.  Add place argument, just
15653         pthread_setaffinity_np to gomp_places_list[place].
15654         (gomp_affinity_alloc, gomp_affinity_init_place, gomp_affinity_add_cpus,
15655         gomp_affinity_remove_cpu, gomp_affinity_copy_place,
15656         gomp_affinity_same_place, gomp_affinity_finalize_place_list,
15657         gomp_affinity_init_level, gomp_affinity_print_place): New functions.
15658         * config/linux/bar.h (BAR_TASK_PENDING, BAR_WAS_LAST,
15659         BAR_WAITING_FOR_TASK, BAR_INCR, BAR_CANCELLED): Define.
15660         (gomp_barrier_t): Add awaited_final field.
15661         (gomp_barrier_init): Initialize awaited_final field.
15662         (gomp_team_barrier_wait_final, gomp_team_barrier_wait_cancel,
15663         gomp_team_barrier_wait_cancel_end, gomp_team_barrier_cancel): New
15664         prototypes.
15665         (gomp_barrier_wait_start): Preserve BAR_CANCELLED bit.  Use BAR_*
15666         defines.
15667         (gomp_barrier_wait_cancel_start, gomp_team_barrier_wait_final_start,
15668         gomp_team_barrier_cancelled): New inline functions.
15669         (gomp_barrier_last_thread,
15670         gomp_team_barrier_set_task_pending,
15671         gomp_team_barrier_clear_task_pending,
15672         gomp_team_barrier_set_waiting_for_tasks,
15673         gomp_team_barrier_waiting_for_tasks,
15674         gomp_team_barrier_done): Use BAR_* defines.
15675         * config/posix/bar.c (gomp_barrier_init): Clear cancellable field.
15676         (gomp_barrier_wait_end): Use BAR_* defines.
15677         (gomp_team_barrier_wait_end): Clear BAR_CANCELLED from state.
15678         Set work_share_cancelled to 0 on last thread, use __atomic_load_n.
15679         Use BAR_* defines.
15680         (gomp_team_barrier_wait_cancel_end, gomp_team_barrier_wait_cancel,
15681         gomp_team_barrier_cancel): New functions.
15682         * config/posix/affinity.c (gomp_init_thread_affinity): Add place
15683         argument.
15684         (gomp_affinity_alloc, gomp_affinity_init_place, gomp_affinity_add_cpus,
15685         gomp_affinity_remove_cpu, gomp_affinity_copy_place,
15686         gomp_affinity_same_place, gomp_affinity_finalize_place_list,
15687         gomp_affinity_init_level, gomp_affinity_print_place): New stubs.
15688         * config/posix/bar.h (BAR_TASK_PENDING, BAR_WAS_LAST,
15689         BAR_WAITING_FOR_TASK, BAR_INCR, BAR_CANCELLED): Define.
15690         (gomp_barrier_t): Add cancellable field.
15691         (gomp_team_barrier_wait_cancel, gomp_team_barrier_wait_cancel_end,
15692         gomp_team_barrier_cancel): New prototypes.
15693         (gomp_barrier_wait_start): Preserve BAR_CANCELLED bit.
15694         (gomp_barrier_wait_cancel_start, gomp_team_barrier_wait_final,
15695         gomp_team_barrier_cancelled): New inline functions.
15696         (gomp_barrier_wait_start, gomp_barrier_last_thread,
15697         gomp_team_barrier_set_task_pending,
15698         gomp_team_barrier_clear_task_pending,
15699         gomp_team_barrier_set_waiting_for_tasks,
15700         gomp_team_barrier_waiting_for_tasks,
15701         gomp_team_barrier_done): Use BAR_* defines.
15702         * barrier.c (GOMP_barrier_cancel): New function.
15703         * omp_lib.h.in (omp_proc_bind_kind, omp_proc_bind_false,
15704         omp_proc_bind_true, omp_proc_bind_master, omp_proc_bind_close,
15705         omp_proc_bind_spread): New params.
15706         (omp_get_cancellation, omp_get_proc_bind, omp_set_default_device,
15707         omp_get_default_device, omp_get_num_devices, omp_get_num_teams,
15708         omp_get_team_num, omp_is_initial_device): New externals.
15709         * parallel.c (GOMP_parallel, GOMP_cancel, GOMP_cancellation_point):
15710         New functions.
15711         (gomp_resolve_num_threads): Adjust for thread_limit now being in
15712         icv->thread_limit_var.  Use UINT_MAX instead of ULONG_MAX as
15713         infinity.  If not nested, just return minimum of max_num_threads
15714         and icv->thread_limit_var and if thr->thread_pool, set threads_busy
15715         to the returned value.  Otherwise, don't update atomically
15716         gomp_remaining_threads_count, but instead thr->thread_pool->threads_busy.
15717         (GOMP_parallel_end): Adjust for thread_limit now being in
15718         icv->thread_limit_var.  Use UINT_MAX instead of ULONG_MAX as
15719         infinity.  Adjust threads_busy in the pool rather than
15720         gomp_remaining_threads_count.  Remember team->nthreads and call
15721         gomp_team_end before adjusting threads_busy, if not nested
15722         afterwards, just set it to 1 non-atomically.  Add ialias.
15723         (GOMP_parallel_start): Adjust gomp_team_start caller.
15724         * testsuite/libgomp.c/atomic-14.c: Add parens to make it valid.
15725         * testsuite/libgomp.c/affinity-1.c: New test.
15726         * testsuite/libgomp.c/atomic-15.c: New test.
15727         * testsuite/libgomp.c/atomic-16.c: New test.
15728         * testsuite/libgomp.c/atomic-17.c: New test.
15729         * testsuite/libgomp.c/cancel-for-1.c: New test.
15730         * testsuite/libgomp.c/cancel-for-2.c: New test.
15731         * testsuite/libgomp.c/cancel-parallel-1.c: New test.
15732         * testsuite/libgomp.c/cancel-parallel-2.c: New test.
15733         * testsuite/libgomp.c/cancel-parallel-3.c: New test.
15734         * testsuite/libgomp.c/cancel-sections-1.c: New test.
15735         * testsuite/libgomp.c/cancel-taskgroup-1.c: New test.
15736         * testsuite/libgomp.c/cancel-taskgroup-2.c: New test.
15737         * testsuite/libgomp.c/depend-1.c: New test.
15738         * testsuite/libgomp.c/depend-2.c: New test.
15739         * testsuite/libgomp.c/depend-3.c: New test.
15740         * testsuite/libgomp.c/depend-4.c: New test.
15741         * testsuite/libgomp.c/for-1.c: New test.
15742         * testsuite/libgomp.c/for-1.h: New file.
15743         * testsuite/libgomp.c/for-2.c: New test.
15744         * testsuite/libgomp.c/for-2.h: New file.
15745         * testsuite/libgomp.c/for-3.c: New test.
15746         * testsuite/libgomp.c/pr58392.c: New test.
15747         * testsuite/libgomp.c/simd-1.c: New test.
15748         * testsuite/libgomp.c/simd-2.c: New test.
15749         * testsuite/libgomp.c/simd-3.c: New test.
15750         * testsuite/libgomp.c/simd-4.c: New test.
15751         * testsuite/libgomp.c/simd-5.c: New test.
15752         * testsuite/libgomp.c/simd-6.c: New test.
15753         * testsuite/libgomp.c/target-1.c: New test.
15754         * testsuite/libgomp.c/target-2.c: New test.
15755         * testsuite/libgomp.c/target-3.c: New test.
15756         * testsuite/libgomp.c/target-4.c: New test.
15757         * testsuite/libgomp.c/target-5.c: New test.
15758         * testsuite/libgomp.c/target-6.c: New test.
15759         * testsuite/libgomp.c/target-7.c: New test.
15760         * testsuite/libgomp.c/taskgroup-1.c: New test.
15761         * testsuite/libgomp.c/thread-limit-1.c: New test.
15762         * testsuite/libgomp.c/thread-limit-2.c: New test.
15763         * testsuite/libgomp.c/thread-limit-3.c: New test.
15764         * testsuite/libgomp.c/udr-1.c: New test.
15765         * testsuite/libgomp.c/udr-2.c: New test.
15766         * testsuite/libgomp.c/udr-3.c: New test.
15767         * testsuite/libgomp.c++/affinity-1.C: New test.
15768         * testsuite/libgomp.c++/atomic-10.C: New test.
15769         * testsuite/libgomp.c++/atomic-11.C: New test.
15770         * testsuite/libgomp.c++/atomic-12.C: New test.
15771         * testsuite/libgomp.c++/atomic-13.C: New test.
15772         * testsuite/libgomp.c++/atomic-14.C: New test.
15773         * testsuite/libgomp.c++/atomic-15.C: New test.
15774         * testsuite/libgomp.c++/cancel-for-1.C: New test.
15775         * testsuite/libgomp.c++/cancel-for-2.C: New test.
15776         * testsuite/libgomp.c++/cancel-parallel-1.C: New test.
15777         * testsuite/libgomp.c++/cancel-parallel-2.C: New test.
15778         * testsuite/libgomp.c++/cancel-parallel-3.C: New test.
15779         * testsuite/libgomp.c++/cancel-sections-1.C: New test.
15780         * testsuite/libgomp.c++/cancel-taskgroup-1.C: New test.
15781         * testsuite/libgomp.c++/cancel-taskgroup-2.C: New test.
15782         * testsuite/libgomp.c++/cancel-taskgroup-3.C: New test.
15783         * testsuite/libgomp.c++/cancel-test.h: New file.
15784         * testsuite/libgomp.c++/for-9.C: New test.
15785         * testsuite/libgomp.c++/for-10.C: New test.
15786         * testsuite/libgomp.c++/for-11.C: New test.
15787         * testsuite/libgomp.c++/simd-1.C: New test.
15788         * testsuite/libgomp.c++/simd-2.C: New test.
15789         * testsuite/libgomp.c++/simd-3.C: New test.
15790         * testsuite/libgomp.c++/simd-4.C: New test.
15791         * testsuite/libgomp.c++/simd-5.C: New test.
15792         * testsuite/libgomp.c++/simd-6.C: New test.
15793         * testsuite/libgomp.c++/simd-7.C: New test.
15794         * testsuite/libgomp.c++/simd-8.C: New test.
15795         * testsuite/libgomp.c++/target-1.C: New test.
15796         * testsuite/libgomp.c++/target-2.C: New test.
15797         * testsuite/libgomp.c++/target-2-aux.cc: New file.
15798         * testsuite/libgomp.c++/target-3.C: New test.
15799         * testsuite/libgomp.c++/taskgroup-1.C: New test.
15800         * testsuite/libgomp.c++/udr-1.C: New test.
15801         * testsuite/libgomp.c++/udr-2.C: New test.
15802         * testsuite/libgomp.c++/udr-3.C: New test.
15803         * testsuite/libgomp.c++/udr-4.C: New test.
15804         * testsuite/libgomp.c++/udr-5.C: New test.
15805         * testsuite/libgomp.c++/udr-6.C: New test.
15806         * testsuite/libgomp.c++/udr-7.C: New test.
15807         * testsuite/libgomp.c++/udr-8.C: New test.
15808         * testsuite/libgomp.c++/udr-9.C: New test.
15810 2013-09-20  Jakub Jelinek  <jakub@redhat.com>
15812         PR testsuite/57605
15813         * testsuite/lib/libgomp.exp: Add -fdiagnostics-color=never to
15814         ALWAYS_CFLAGS.
15816 2013-09-20  Alan Modra  <amodra@gmail.com>
15818         * configure: Regenerate.
15820 2013-09-19  Jakub Jelinek  <jakub@redhat.com>
15822         * testsuite/libgomp.c/sections-2.c: New test.
15824 2013-06-28  Marcus Shawcroft  <marcus.shawcroft@arm.com>
15826         * testsuite/libgomp.fortran/strassen.f90:
15827         Add dg-skip-if aarch64_tiny.
15829 2013-06-20  Iain Sandoe  <iain@codesourcery.com>
15830             Cesar Philippidis  <cesar@codesourcery.com>
15832         * testsuite/lib/libgomp.exp: Reorder lib loads into dependency order.
15833         Do not load_gcc_lib gcc-dg.exp and add a comment as to why.
15834         * testsuite/libgomp.c/c.exp: load_gcc_lib gcc-dg.exp.
15835         * testsuite/libgomp.fortran/fortran.exp: Likewise.
15836         * testsuite/libgomp.graphite/graphite.exp: Likewise.
15837         * testsuite/libgomp.c++/c++.exp: load_gcc_lib gcc-dg.exp.
15838         Use dg-runtest rather than gfortran-dg-runtest.
15840 2013-06-10  Thomas Schwinge  <thomas@codesourcery.com>
15842         * testsuite/libgomp.c/icv-2.c: Extend current handling of
15843         Linux-based x86 systems to cover all GNU systems.
15844         * testsuite/libgomp.c/lock-3.c: Likewise.
15845         * testsuite/libgomp.c/pr48591.c: Likewise.
15847 2013-06-06  Thomas Schwinge  <thomas@codesourcery.com>
15849         * configure.tgt (XCFLAGS): Add -ftls-model=initial-exec for
15850         GNU/Hurd, as done for Linux-based systems.
15852         * config/posix/ptrlock.h: Fix comment.
15854 2013-05-27  Tobias Burnus  <burnus@net-b.de>
15856         PR fortran/57423
15857         * libgomp.texi (omp_set_dynamic, omp_set_nested, omp_set_nested,
15858         omp_set_num_threads, omp_init_lock, omp_set_lock, omp_test_lock,
15859         omp_unset_lock, omp_destroy_lock, omp_init_nest_lock,
15860         omp_set_nest_lock, omp_test_nest_lock, omp_unset_nest_lock,
15861         omp_destroy_nest_lock): Correct arguments to match the one in
15862         the OpenMP spec.
15863         * omp_lib.f90.in (omp_init_lock, omp_init_nest_lock, omp_destroy_lock
15864         omp_destroy_nest_lock, omp_set_lock, omp_set_nest_lock, omp_unset_lock,
15865         omp_unset_nest_lock, omp_set_dynamic, omp_set_nested,
15866         omp_set_num_threads, omp_test_lock, omp_test_nest_lock): Ditto.
15868 2013-05-16  Jakub Jelinek  <jakub@redhat.com>
15870         * testsuite/libgomp.c/loop-13.c: New test.
15871         * testsuite/libgomp.c/loop-14.c: New test.
15872         * testsuite/libgomp.c/loop-15.c: New test.
15873         * testsuite/libgomp.c++/loop-13.C: New test.
15874         * testsuite/libgomp.c++/loop-14.C: New test.
15875         * testsuite/libgomp.c++/loop-15.C: New test.
15877 2013-02-06  Jakub Jelinek  <jakub@redhat.com>
15879         PR middle-end/56217
15880         * testsuite/libgomp.c++/pr56217.C: New test.
15882 2013-02-01  Alan Modra  <amodra@gmail.com>
15884         * task.c (GOMP_task, GOMP_taskwait): Comment.
15886 2013-01-31  Dmitry Vyukov  <dvyukov@gcc.gnu.org>
15887             Joost VandeVondele  <Joost.VandeVondele@mat.ethz.ch>
15889         PR libgomp/55561
15890         * config/linux/wait.h (do_spin): Use atomic load for addr.
15891         * config/linux/ptrlock.c (gomp_ptrlock_get_slow): Use atomic
15892         for intptr and ptrlock.
15893         * config/linux/ptrlock.h (gomp_ptrlock_get): Use atomic load
15894         for ptrlock.
15896 2013-01-22  Alan Modra  <amodra@gmail.com>
15898         PR libgomp/51376
15899         PR libgomp/56073
15900         * task.c (GOMP_task): Revert 2011-12-09 change.
15901         (GOMP_taskwait): Likewise.  Instead use atomic load with acquire
15902         barrier to read task->children..
15903         (gomp_barrier_handle_tasks): ..and matching atomic store with
15904         release barrier here when setting parent->children to NULL.
15906 2013-01-16  Jakub Jelinek  <jakub@redhat.com>
15907             Tobias Burnus  <burnus@net-b.de>
15909         PR driver/55884
15910         * testsuite/libgomp.fortran/fortran.exp: Use
15911         -fintrinsic-modules-path= instead of
15912         -fintrinsic-modules-path.
15914 2013-01-14  Richard Sandiford  <rdsandiford@googlemail.com>
15916         Update copyright years.
15918 2012-12-19  Tobias Burnus  <burnus@net-b.de>
15920         * testsuite/libgomp.fortran/fortran.exp: Set
15921         -fintrinsic-modules-path.
15923 2012-12-19  Tobias Burnus  <burnus@net-b.de>
15925         * testsuite/libgomp.fortran/use_intrinsic_1.f90: New; moved
15926         from gcc/testsuite/gfortran.dg/gomp/use_intrinsic_1.f90.
15928 2012-11-21  Jakub Jelinek  <jakub@redhat.com>
15930         PR libgomp/55411
15931         * team.c (gomp_free_thread): Decrease gomp_managed_threads
15932         if pool had any threads_used.
15934 2012-11-07  Jack Howarth <howarth@bromo.med.uc.edu>
15936         * testsuite/libgomp.c++/pr24455.C: Use
15937         -Wl,-undefined,dynamic_lookup on darwin.
15939 2012-11-07  David Edelsohn  <dje.gcc@gmail.com>
15941         * testsuite/libgomp.c++/pr24455.C: Use -Wl,-G on AIX.
15943 2012-10-24  Dominique d'Humieres  <dominiq@lps.ens.fr>
15945         * testsuite/libgomp.graphite/force-parallel-6.c: Adjust the loops.
15947 2012-10-23  Ian Bolton  <ian.bolton@arm.com>
15948             Jim MacArthur  <jim.macarthur@arm.com>
15949             Marcus Shawcroft  <marcus.shawcroft@arm.com>
15950             Nigel Stephens  <nigel.stephens@arm.com>
15951             Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
15952             Richard Earnshaw  <rearnsha@arm.com>
15953             Sofiane Naci  <sofiane.naci@arm.com>
15954             Stephen Thomas  <stephen.thomas@arm.com>
15955             Tejas Belagod  <tejas.belagod@arm.com>
15956             Yufeng Zhang  <yufeng.zhang@arm.com>
15958         * configure.tgt: Add AArch64.
15960 2012-10-04  Jason Merrill  <jason@redhat.com>
15962         * testsuite/libgomp.c++/tls-init1.C: New.
15964 2012-09-14  David Edelsohn  <dje.gcc@gmail.com>
15966         * configure: Regenerated.
15968 2012-08-29  Chung-Lin Tang  <cltang@codesourcery.com>
15970         * config/linux/mips/futex.h (sys_futex0): Change to static
15971         function with noinline, nomips16 attributes under MIPS16. Adjust
15972         asm statement to place 'li v0,SYS_futex' immediately before
15973         syscall insn.
15975 2012-07-04  Sandra Loosemore <sandra@codesourcery.com>
15977         * libgomp.texi (Library Index): Renamed from "Index" to prevent
15978         conflict with index.html on case-insensitive file systems.
15980 2012-07-03  Uros Bizjak  <ubizjak@gmail.com>
15982         * config/linux/x86/futex.h (cpu_relax): Use __builtin_ia32_pause.
15983         * testsuite/libgomp.c/sort-1.c (busy_wait): Ditto.
15985 2012-07-02  Richard Guenther  <rguenther@suse.de>
15986             Michael Matz  <matz@suse.de>
15987             Tobias Grosser <tobias@grosser.es>
15988             Sebastian Pop <sebpop@gmail.com>
15990         * testsuite/libgomp.graphite/force-parallel-4.c: Adjust.
15991         * testsuite/libgomp.graphite/force-parallel-5.c: Likewise.
15992         * testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
15993         * testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
15995 2012-06-28  Andreas Schwab  <schwab@linux-m68k.org>
15997         * libgomp.texi: Include gpl_v3.texi instead of gpl.texi.
15999 2012-06-22  Richard Guenther  <rguenther@suse.de>
16001         Merge from graphite branch
16002         2012-01-13  Tobias Grosser  <tobias@grosser.es>
16004         * testsuite/libgomp.graphite/force-parallel-1.c: Adjust.
16005         * testsuite/libgomp.graphite/force-parallel-2.c: Likewise.
16007 2012-06-07  Jakub Jelinek  <jakub@redhat.com>
16009         PR middle-end/53580
16010         * testsuite/libgomp.c/pr26943-2.c: Remove #pragma omp barrier,
16011         use GOMP_barrier () call instead.
16012         * testsuite/libgomp.c/pr26943-3.c: Likewise.
16013         * testsuite/libgomp.c/pr26943-4.c: Likewise.
16014         * testsuite/libgomp.fortran/vla4.f90: Remove !$omp barrier,
16015         call GOMP_barrier instead.
16016         * testsuite/libgomp.fortran/vla5.f90: Likewise.
16018 2012-06-06  Jakub Jelinek  <jakub@redhat.com>
16020         PR libgomp/52993
16021         * config/linux/lock.c (gomp_init_nest_lock_25): Fix up last
16022         argument to memset call.
16024 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
16026         * configure: Regenerated.
16028 2012-04-11  Manuel López-Ibáñez  <manu@gcc.gnu.org>
16030         * testsuite/lib/libgomp.exp: Add -fno-diagnostics-show-caret.
16032 2012-03-31  H.J. Lu  <hongjiu.lu@intel.com>
16034         PR bootstrap/52812
16035         * configure.tgt (i[456]86-*-linux*): Handle -mx32 like -m64.
16037 2012-03-22  Jakub Jelinek  <jakub@redhat.com>
16039         PR middle-end/52547
16040         * testsuite/libgomp.c/pr52547.c: New test.
16042 2012-03-16  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
16044         * testsuite/lib/libgomp.exp: load fortran-modules.exp
16046 2012-03-14  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
16048         * configure.tgt (mips-sgi-irix6*): Remove.
16050 2012-03-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
16052         * configure.tgt (alpha*-dec-osf*): Remove.
16054         * config/osf/sem.h: Remove.
16055         * config/posix/lock.c (_XOPEN_SOURCE): Define unconditionally.
16057 2012-02-29  Eric Botcazou  <ebotcazou@adacore.com>
16059         * config/linux/sparc/futex.h (cpu_relax): Read from CC register.
16061 2012-02-27  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
16063         PR libstdc++/52188
16064         * acinclude.m4 (LIBGOMP_ENABLE_SYMVERS): Remove symvers_renaming.
16065         Remove ENABLE_SYMVERS_SOL2.
16066         * configure: Regenerate.
16067         * Makefile.am [LIBGOMP_BUILD_VERSIONED_SHLIB] (comma): New variable.
16068         (PREPROCESS): New variable.
16069         (libgomp.ver): New target.
16070         [LIBGOMP_BUILD_VERSIONED_SHLIB &&
16071         LIBGOMP_BUILD_VERSIONED_SHLIB_GNU]: Remove
16072         LIBGOMP_BUILD_VERSIONED_SHLIB_SOL2 handling.
16073         Use libgomp.ver.
16074         [LIBGOMP_BUILD_VERSIONED_SHLIB_SUN]: Use libgomp.ver, libgomp.ver-sun.
16075         * Makefile.in: Regenerate.
16077 2012-02-14  Walter Lee  <walt@tilera.com>
16079         * configure.tgt: Handle tilegx and tilepro.
16080         * config/linux/tile/futex.h: New file.
16082 2012-02-08  Richard Guenther  <rguenther@suse.de>
16084         PR tree-optimization/46886
16085         * testsuite/libgomp.c/pr46886.c: New testcase.
16087 2012-01-25  Matthias Klose  <doko@ubuntu.com>
16089         * config/linux/arm: Remove empty directory.
16090         * configure.tgt (config_path): Remove linux-arm for arm*-*-linux*.
16092 2011-12-09  Alan Modra  <amodra@gmail.com>
16094         PR libgomp/51376
16095         * task.c (GOMP_taskwait): Don't access task->children outside of
16096         task_lock mutex region.
16097         (GOMP_task): Likewise.
16099 2011-12-06  Jakub Jelinek  <jakub@redhat.com>
16101         PR libgomp/51132
16102         * testsuite/libgomp.graphite/force-parallel-1.c: Move large arrays
16103         to file scope.
16104         * testsuite/libgomp.graphite/force-parallel-3.c: Likewise.
16105         * testsuite/libgomp.graphite/force-parallel-6.c: Likewise.
16106         * testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
16107         * testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
16108         * testsuite/libgomp.graphite/force-parallel-9.c: Likewise.
16110 2011-12-02  Alan Modra  <amodra@gmail.com>
16112         * config/linux/affinity.c: Use atomic rather than sync builtin.
16113         * config/linux/lock.c: Likewise.
16114         * config/linux/ptrlock.h: Likewise.
16115         * config/linux/ptrlock.c: Likewise.
16116         * config/linux/ptrlock.h (gomp_ptrlock_set): Always write here..
16117         * config/linux/ptrlock.c (gomp_ptrlock_set_slow): ..not here.
16118         * config/linux/futex.h (atomic_write_barrier): Delete unused function.
16119         * config/linux/alpha/futex.h (atomic_write_barrier): Likewise.
16120         * config/linux/ia64/futex.h (atomic_write_barrier): Likewise.
16121         * config/linux/mips/futex.h (atomic_write_barrier): Likewise.
16122         * config/linux/powerpc/futex.h (atomic_write_barrier): Likewise.
16123         * config/linux/s390/futex.h (atomic_write_barrier): Likewise.
16124         * config/linux/sparc/futex.h (atomic_write_barrier): Likewise.
16125         * config/linux/x86/futex.h (atomic_write_barrier): Likewise.
16127 2011-11-30  Alan Modra  <amodra@gmail.com>
16129         PR libgomp/51298
16130         * config/linux/bar.h: Use atomic rather than sync builtins.
16131         * config/linux/bar.c: Likewise.  Add missing acquire
16132         synchronisation on generation field.
16133         * task.c (gomp_barrier_handle_tasks): Regain lock so as to not
16134         double unlock.
16136 2011-11-30  Alan Modra  <amodra@gmail.com>
16138         * ordered.c (gomp_ordered_sync): Add MEMMODEL_ACQ_REL fence.
16139         * critical.c (GOMP_critical_start): Add MEMMODEL_RELEASE fence.
16140         * config/linux/mutex.h: Use atomic rather than sync builtins.
16141         * config/linux/mutex.c: Likewise.  Comment.  Use -1 for waiting state.
16142         * config/linux/omp-lock.h: Comment fix.
16143         * config/linux/arm/mutex.h: Delete.
16144         * config/linux/powerpc/mutex.h: Delete.
16145         * config/linux/ia64/mutex.h: Delete.
16146         * config/linux/mips/mutex.h: Delete.
16148 2011-11-30  Alan Modra  <amodra@gmail.com>
16150         PR libgomp/51249
16151         * config/linux/sem.h: Rewrite.
16152         * config/linux/sem.c: Rewrite.
16154 2011-11-28  Richard Henderson  <rth@redhat.com>
16156         * libgomp.h (enum memmodel): New.
16158 2011-11-21  Andreas Tobler  <andreast@fgznet.ch>
16160         * configure: Regenerate.
16162 2011-10-10  Matthias Klose  <doko@ubuntu.com>
16164         * config/posix95: Remove empty directory.
16166 2011-08-26  Jakub Jelinek  <jakub@redhat.com>
16168         * testsuite/libgomp.fortran/threadprivate4.f90: New test.
16170 2011-08-19  Jakub Jelinek  <jakub@redhat.com>
16172         PR fortran/49792
16173         * testsuite/libgomp.fortran/pr49792-1.f90: New test.
16174         * testsuite/libgomp.fortran/pr49792-2.f90: New test.
16176 2011-08-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
16178         * config/posix95/lock.c, posix95/omp-lock.h: Remove.
16180 2011-08-05  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
16182         PR libgomp/49965
16183         * testsuite/libgomp.c++/task-8.C: Replaced err by errval.
16185 2011-08-03  Uros Bizjak  <ubizjak@gmail.com>
16187         * config/linux/proc.h: New.
16188         * config/linux/proc.c: Include "proc.h".  Do not include <sched.h>.
16189         (gomp_cpuset_popcount): Rename from cpuset_popcount.  No more static.
16190         (gomp_init_num_threads): Update call to cpuset_popcount.
16191         (get_num_procs): Ditto.
16192         * config/linux/affinity.c (gomp_init_affinity): Call
16193         gomp_cpuset_popcount.
16195 2011-08-02  Jakub Jelinek  <jakub@redhat.com>
16197         PR fortran/42041
16198         PR fortran/46752
16199         * omp.h.in (omp_in_final): New prototype.
16200         * omp_lib.f90.in (omp_in_final): New interface.
16201         (omp_integer_kind, omp_logical_kind): Remove
16202         and replace all its uses in the module with 4.
16203         (openmp_version): Change to 201107.
16204         * omp_lib.h.in (omp_sched_static, omp_sched_dynamic,
16205         omp_sched_guided, omp_sched_auto): Use omp_sched_kind
16206         kind for the parameters.
16207         (omp_in_final): New external.
16208         (openmp_version): Change to 201107.
16209         * task.c (omp_in_final): New function.
16210         (gomp_init_task): Initialize final_task.
16211         (GOMP_task): Remove unused attribute from flags.  Handle final
16212         tasks.
16213         (GOMP_taskyield): New function.
16214         (omp_in_final): Return true if if (false) or final (true) task
16215         or descendant of final (true).
16216         * fortran.c (omp_in_final_): New function.
16217         * libgomp.map (OMP_3.1): Export omp_in_final and omp_in_final_.
16218         (GOMP_3.0): Export GOMP_taskyield.
16219         * env.c (gomp_nthreads_var_list, gomp_nthreads_var_list_len): New
16220         variables.
16221         (parse_unsigned_long_list): New function.
16222         (initialize_env): Use it for OMP_NUM_THREADS.  Call parse_boolean
16223         with "OMP_PROC_BIND".  If OMP_PROC_BIND=true, call gomp_init_affinity
16224         even if parse_affinity returned false.
16225         * config/linux/affinity.c (gomp_init_affinity): Handle
16226         gomp_cpu_affinity_len == 0.
16227         * libgomp_g.h (GOMP_taskyield): New prototype.
16228         * libgomp.h (struct gomp_task): Add final_task field.
16229         (gomp_nthreads_var_list, gomp_nthreads_var_list_len): New externs.
16230         * team.c (gomp_team_start): Override new task's nthreads_var icv
16231         if list form OMP_NUM_THREADS has been used and it has value for
16232         the new nesting level.
16234         * testsuite/libgomp.c/atomic-11.c: New test.
16235         * testsuite/libgomp.c/atomic-12.c: New test.
16236         * testsuite/libgomp.c/atomic-13.c: New test.
16237         * testsuite/libgomp.c/atomic-14.c: New test.
16238         * testsuite/libgomp.c/reduction-6.c: New test.
16239         * testsuite/libgomp.c/task-5.c: New test.
16240         * testsuite/libgomp.c++/atomic-2.C: New test.
16241         * testsuite/libgomp.c++/atomic-3.C: New test.
16242         * testsuite/libgomp.c++/atomic-4.C: New test.
16243         * testsuite/libgomp.c++/atomic-5.C: New test.
16244         * testsuite/libgomp.c++/atomic-6.C: New test.
16245         * testsuite/libgomp.c++/atomic-7.C: New test.
16246         * testsuite/libgomp.c++/atomic-8.C: New test.
16247         * testsuite/libgomp.c++/atomic-9.C: New test.
16248         * testsuite/libgomp.c++/task-8.C: New test.
16249         * testsuite/libgomp.c++/reduction-4.C: New test.
16250         * testsuite/libgomp.fortran/allocatable7.f90: New test.
16251         * testsuite/libgomp.fortran/allocatable8.f90: New test.
16252         * testsuite/libgomp.fortran/crayptr3.f90: New test.
16253         * testsuite/libgomp.fortran/omp_atomic3.f90: New test.
16254         * testsuite/libgomp.fortran/omp_atomic4.f90: New test.
16255         * testsuite/libgomp.fortran/pointer1.f90: New test.
16256         * testsuite/libgomp.fortran/pointer2.f90: New test.
16257         * testsuite/libgomp.fortran/task4.f90: New test.
16259 2011-08-02  Tobias Burnus  <burnus@net-b.de>
16261         * libgomp.texi: Update OpenMP spec references to 3.1.
16262         (omp_in_final,OMP_PROC_BIND): New sections.
16263         (OMP_NUM_THREADS): Document that the value can be now a list.
16264         (GOMP_STACKSIZE,GOMP_CPU_AFFINITY): Update @ref.
16266 2011-08-02  H.J. Lu  <hongjiu.lu@intel.com>
16268         * config/linux/x86/futex.h: Check __x86_64__ instead of
16269         __LP64__.
16271 2011-07-29  Jakub Jelinek  <jakub@redhat.com>
16273         PR middle-end/49897
16274         PR middle-end/49898
16275         * testsuite/libgomp.c/pr49897-1.c: New test.
16276         * testsuite/libgomp.c/pr49897-2.c: New test.
16277         * testsuite/libgomp.c/pr49898-1.c: New test.
16278         * testsuite/libgomp.c/pr49898-2.c: New test.
16280 2011-07-28  H.J. Lu  <hongjiu.lu@intel.com>
16282         * testsuite/lib/libgomp.exp (libgomp_init): Add -march=i486
16283         for ia32 instead of ilp32.
16285         * testsuite/libgomp.c/atomic-1.c: Require ia32 instead of ilp32.
16286         * testsuite/libgomp.c/atomic-6.c: Likewise.
16288 2011-07-23  Sebastian Pop  <sebastian.pop@amd.com>
16290         * testsuite/libgomp.graphite/force-parallel-1.c: Un-xfail.
16291         * testsuite/libgomp.graphite/force-parallel-2.c: Adjust pattern.
16293 2011-07-25  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
16295         PR libgomp/45351
16296         * config/osf/sem.h: New file.
16297         * configure.tgt (alpha*-dec-osf*): Prepend osf to config_path.
16299 2011-07-18  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
16301         PR target/49541
16302         * testsuite/lib/libgomp.exp (libgomp_init): Don't add -lgomp to
16303         ldflags.
16305 2011-07-15  Jakub Jelinek  <jakub@redhat.com>
16307         * config/linux/wait.h (do_spin): New inline, largely copied
16308         from do_wait, just don't do futex_wait here, instead return true if
16309         it should be done.
16310         (do_wait): Implement using do_spin.
16311         * config/linux/mutex.h (gomp_mutex_lock_slow): Add an int argument
16312         to prototype.
16313         (gomp_mutex_lock): Use __sync_val_compare_and_swap instead of
16314         __sync_bool_compare_and_swap, pass the oldval to
16315         gomp_mutex_lock_slow.
16316         * config/linux/mutex.c (gomp_mutex_lock_slow): Add oldval argument.
16317         If all mutex contenders are just spinning and not sleeping, don't
16318         change state to 2 unnecessarily.  Optimize the loop when state has
16319         already become 2 to use just one atomic operation per loop instead
16320         of two.
16321         * config/linux/ia64/mutex.h (gomp_mutex_lock_slow): Add an int argument
16322         to prototype.
16323         (gomp_mutex_lock): Use __sync_val_compare_and_swap instead of
16324         __sync_bool_compare_and_swap, pass the oldval to
16325         gomp_mutex_lock_slow.
16327 2011-06-22  Jakub Jelinek  <jakub@redhat.com>
16329         PR libgomp/49490
16330         * iter.c (gomp_iter_static_next): For chunk size 0
16331         only use n ceil/ nthreads size for the first
16332         n % nthreads threads in the team instead of
16333         all threads except for the last few ones which
16334         get less work or none at all.
16335         * iter_ull.c (gomp_iter_ull_static_next): Likewise.
16336         * env.c (parse_schedule): If OMP_SCHEDULE doesn't have
16337         chunk argument, set run_sched_modifier to 0 for static
16338         resp. 1 for other kinds.  If chunk argument is 0
16339         and not static, set value to 1.
16341 2011-05-19  Jakub Jelinek  <jakub@redhat.com>
16343         PR c++/49043
16344         * testsuite/libgomp.c++/pr49043.C: New test.
16346         PR c++/48869
16347         * testsuite/libgomp.c++/pr48869.C: New test.
16349 2011-05-06  Jakub Jelinek  <jakub@redhat.com>
16351         PR fortran/48894
16352         * fortran.c: Include limits.h.
16353         (TO_INT): Define.
16354         (omp_set_dynamic_8_, omp_set_num_threads_8_): Use !!*set instead of
16355         *set.
16356         (omp_set_num_threads_8_, omp_set_schedule_8_,
16357         omp_set_max_active_levels_8_, omp_get_ancestor_thread_num_8_,
16358         omp_get_team_size_8_): Use TO_INT macro.
16359         * testsuite/libgomp.fortran/pr48894.f90: New test.
16361 2011-04-13  Jakub Jelinek  <jakub@redhat.com>
16363         PR middle-end/48591
16364         * testsuite/libgomp.c/pr48591.c: New test.
16366 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
16368         PR bootstrap/48135
16369         * acinclude.m4 (enable_symvers): Handle --disable-symvers.
16370         * configure: Regenerate.
16372 2011-02-27  Jakub Jelinek  <jakub@redhat.com>
16374         PR fortran/47886
16375         * testsuite/libgomp.fortran/task3.f90: New test.
16377 2011-02-24  Tobias Burnus  <burnus@net-b.de>
16379         * libgomp.texi (GOMP_STACKSIZE): Fix @ref to OMP_STACKSIZE.
16381 2011-02-23  Jakub Jelinek  <jakub@redhat.com>
16383         PR libgomp/47854
16384         * libgomp.texi (omp_get_wtime): Don't say time in the past
16385         must be Unix Epoch.
16387 2011-02-18  Jakub Jelinek  <jakub@redhat.com>
16389         PR libgomp/47804
16390         * testsuite/libgomp.fortran/fortran.exp: Check for both
16391         libquadmath.a and libquadmath.${shlib_ext}.  If neither exists,
16392         but $blddir != "", still append ${blddir}/${lang_library_path}
16393         to ld_library_path.
16395 2011-02-16  Tobias Burnus  <burnus@net-b.de>
16397         PR libgomp/47758
16398         * testsuite/libgomp.fortran/fortran.exp: Check for the existence
16399         of libquadmath.a before adding its libpath to ldflags.
16401 2011-02-14  Jakub Jelinek  <jakub@redhat.com>
16403         PR libgomp/47731
16404         * config/linux/futex.h (futex_wait): Pass NULL as timeout argument
16405         to FUTEX_WAIT futex syscall.
16406         * config/linux/wait.h: Include <futex.h> instead of "futex.h".
16408 2011-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
16410         * configure: Regenerate.
16412 2011-01-20  Benjamin Kosnik  <bkoz@redhat.com>
16414         PR libstdc++/36104
16415         * acinclude.m4 (LIBGOMP_ENABLE_SYMVERS): Accept gnu variants.
16417 2011-01-16  Gerald Pfeifer
16419         * configure.tgt (*-*-freebsd*): Add -lpthread to XLDFLAGS.
16421 2010-12-14  Jakub Jelinek  <jakub@redhat.com>
16423         PR fortran/46874
16424         * libgomp.fortran/allocatable6.f90: New test.
16426 2010-12-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
16428         * acinclude.m4 (symvers_renaming): Also set if enable_symvers = no.
16429         * configure: Regenerate.
16431 2010-12-06  Dave Korn  <dave.korn.cygwin@gmail.com>
16433         PR target/40125
16434         PR lto/46695
16435         * configure.ac: Invoke ACX_LT_HOST_FLAGS.
16436         * Makefile.am (libgomp_la_LDFLAGS): Use lt_host_flags.
16437         * aclocal.m4: Regenerate.
16438         * configure: Regenerate.
16439         * Makefile.in: Regenerate.
16440         * testsuite/Makefile.in: Regenerate.
16442 2010-12-02  Jakub Jelinek  <jakub@redhat.com>
16444         PR fortran/46753
16445         * libgomp.fortran/pr46753.f90: New test.
16447         PR libgomp/43706
16448         * env.c (initialize_env): Default to spin count 300000
16449         instead of 20000000 if neither OMP_WAIT_POLICY nor GOMP_SPINCOUNT
16450         is specified.
16452         PR libgomp/45240
16453         * parallel.c (GOMP_parallel_end): Unlock gomp_remaining_threads_lock
16454         at the end if sync builtins aren't supported.
16456 2010-12-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
16458         * configure.tgt (mips-sgi-irix6*): Add -lpthread to XLDFLAGS.
16460 2010-12-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
16462         * testsuite/libgomp.fortran/vla8.f90: Use dg-timeout-factor 2.0.
16464 2010-11-24  Iain Sandoe  <iains@gcc.gnu.org>
16466         * testsuite/libgomp.fortran/fortran.exp: Add paths for libquadmath.
16468 2010-11-16  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
16469             Tobias Burnus  <burnus@net-b.de>
16471         PR fortran/32049
16472         * configure.ac:
16473         * configure: Regenerate.
16475 2010-10-06  Marcus Shawcroft  <marcus.shawcroft@arm.com>
16477         * config/linux/futex.h: New.
16478         * config/linux/arm/mutex.h: New.
16479         * configure.tgt (arm*-*-linux*): Add config path.
16481 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
16483         * testsuite/libgomp.graphite/force-parallel-1.c: Adjust.
16485 2010-09-23  Tobias Burnus  <burnus@net-b.de>
16487         * libgomp.texi (omp_get_nested, omp_set_nested, omp_set_dynamic):
16488         Change Fortran datatype to LOGICAL.
16489         (omp_set_lock, omp_test_lock, omp_unset_lock, omp_set_nested_lock,
16490         omp_unset_nested_lock): Use intent(inout) instead of intent(out).
16492 2010-08-21  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
16494         * configure: Regenerate.
16496 2010-07-26  Jakub Jelinek  <jakub@redhat.com>
16498         * libgomp.texi: Add function keyword to a couple of Fortran
16499         interfaces, use integer instead of int for Fortran.
16501 2010-07-26  Aldy Hernandez  <aldyh@redhat.com>
16503         * libgomp.texi: Fix spelling and pasto problems throughout.
16504         Adjust prototypes to match code.
16506 2010-07-24  Tobias Burnus  <burnus@net-b.de>
16508         * testsuite/libgomp.fortran/appendix-a/a.28.5.f90: Add -w to
16509         silence -fwhole-file warning.
16511 2010-07-23  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
16513         * configure.tgt (*-*-solaris2.[56]*): Removed.
16515 2010-07-05  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
16517         * acinclude.m4 (LIBGOMP_ENABLE_SYMVERS): Handle sun style.
16518         Define LIBGOMP_BUILD_VERSIONED_SHLIB_GNU,
16519         LIBGOMP_BUILD_VERSIONED_SHLIB_SUN automake conditionals.
16520         (HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT): Define unless
16521         targetting solaris2*.
16522         * configure: Regenerate.
16523         * config.h.in: Regenerate.
16525         * Makefile.am [LIBGOMP_BUILD_VERSIONED_SHLIB]: Protect
16526         libgomp_version_script with LIBGOMP_BUILD_VERSIONED_SHLIB_GNU.
16527         Add libgomp_version_dep.
16528         [LIBGOMP_BUILD_VERSIONED_SHLIB_SUN]: Handle Sun symbol
16529         versioning.
16530         [!LIBGOMP_BUILD_VERSIONED_SHLIB]: Add libgomp_version_dep.
16531         (libgomp_la_DEPENDENCIES): Set to $(libgomp_version_dep).
16532         * Makefile.in: Regenerate.
16534         * libgomp.h (LIBGOMP_GNU_SYMBOL_VERSIONING): Undef unless
16535         HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT.
16536         * libgomp.map (OMP_1.0): Move symbols both in OMP_1.0 and OMP_3.0
16537         to common block, protected by
16538         HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT.
16540 2010-06-10  Gerald Pfeifer  <gerald@pfeifer.com>
16542         * libgomp.texi: Move to GFDL version 1.3.  Update copyright years.
16544 2010-06-09  Iain Sandoe  <iains@gcc.gnu.org>
16546         PR bootstrap/43170
16547         * configure: Regenerate.
16549 2010-05-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
16551         PR other/43620
16552         * configure.ac (AM_INIT_AUTOMAKE): Add no-dist.
16553         * configure: Regenerate.
16554         * Makefile.in: Regenerate.
16555         * testsuite/Makefile.in: Regenerate.
16557 2010-04-26  Jakub Jelinek  <jakub@redhat.com>
16559         PR c/43893
16560         * testsuite/libgomp.c/pr43893.c: New test.
16561         * testsuite/libgomp.c++/pr43893.C: New test.
16563 2010-04-21  Jakub Jelinek  <jakub@redhat.com>
16565         PR middle-end/43570
16566         * testsuite/libgomp.fortran/vla8.f90: New test.
16568 2010-04-20  Jakub Jelinek  <jakub@redhat.com>
16570         PR libgomp/43706
16571         * config/linux/affinity.c (gomp_init_affinity): Decrease
16572         gomp_available_cpus if affinity mask confines the process to fewer
16573         CPUs.
16574         * config/linux/proc.c (get_num_procs): If gomp_cpu_affinity is
16575         non-NULL, just return gomp_available_cpus.
16577         PR libgomp/43569
16578         * sections.c (gomp_sections_init): Initialize ws->mode.
16580 2010-04-14  Uros Bizjak  <ubizjak@gmail.com>
16582         * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS): Remove set but
16583         not unused bar variable.
16584         * configure: Regenerate.
16586 2010-04-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
16588         * Makefile.in: Regenerate.
16589         * aclocal.m4: Regenerate.
16590         * testsuite/Makefile.in: Regenerate.
16592 2010-03-22  Jakub Jelinek  <jakub@redhat.com>
16594         PR libgomp/42942
16595         * env.c (parse_unsigned_long): Add ALLOW_ZERO argument.
16596         (initialize_env): Adjust callers.
16597         (omp_set_max_active_levels): Set gomp_max_active_levels_var even
16598         when the argument is 0.
16600         * testsuite/libgomp.c/pr42942.c: New test.
16602 2010-03-08  Tobias Grosser  <grosser@fim.uni-passau.de>
16604         PR middle-end/42644
16605         PR middle-end/42130
16606         * testsuite/libgomp.graphite/force-parallel-1.c: Adjust.
16607         * testsuite/libgomp.graphite/force-parallel-2.c: Adjust.
16609 2010-01-29  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
16611         * testsuite/libgomp.c++/task-1.C: Renamed err to e.
16612         * testsuite/libgomp.c++/task-6.C: Likewise.
16614 2010-01-28  Steve Ellcey  <sje@cup.hp.com>
16616         * configure.tgt (*-*-hpux*): Add -frandom-seed flag.
16618 2010-01-26  Paolo Bonzini  <bonzini@gnu.org>
16620         * configure.ac: Test for executability of _the first word_ of GFORTRAN.
16621         * configure: Regenerate.
16623 2010-01-26  Jakub Jelinek  <jakub@redhat.com>
16625         PR fortran/42866
16626         * testsuite/libgomp.fortran/allocatable5.f90: New test.
16628 2010-01-20  Paolo Bonzini  <bonzini@gnu.org>
16630         * configure.ac: Test for executability of GFORTRAN.
16631         * configure: Regenerate.
16633 2010-01-05  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
16635         * configure: Regenerate.
16637 2010-01-04  H.J. Lu  <hongjiu.lu@intel.com>
16639         PR libgomp/42602
16640         * libgomp.fortran/recursion1.f90 (sub): Make 's' atomic.
16642 2010-01-03  Richard Guenther  <rguenther@suse.de>
16644         * testsuite/libgomp.fortran/recursion1.f90: New testcase.
16646 2009-12-23  Sebastian Pop  <sebpop@gmail.com>
16648         * testsuite/libgomp.graphite/pr4118.c: New.
16650 2009-12-22  Iain Sandoe  <iain.sandoe@sandoe-acoustics.co.uk>
16652         * testsuite/libgomp.fortran/crayptr2.f90: Remove forced static linkage
16653         for darwin, protect the test with require-effective-target tls_runtime.
16654         * testsuite/libgomp.fortran/pr32550.f90: Ditto.
16656 2009-12-22  Iain Sandoe  <iain.sandoe@sandoe-acoustics.co.uk>
16658         PR target/41605
16659         * testsuite/lib/libgomp.exp: Provide -B options to allow for
16660         link spec %s substitutions for static libraries.
16662 2009-12-18  Jack Howarth <howarth@bromo.med.uc.edu>
16664         PR testsuite/42135
16665         * libgomp.graphite/force-parallel-2.c: Reduce array size.
16667 2009-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
16669         * Makefile.in: Regenerate.
16670         * configure: Regenerate.
16671         * testsuite/Makefile.in: Regenerate.
16673 2009-11-30  Dave Korn  <dave.korn.cygwin@gmail.com>
16675         * testsuite/lib/libgomp.exp (libgomp_init): Add host-dependent
16676         settings for LC_ALL and LANG.
16678 2009-11-25  Jakub Jelinek  <jakub@redhat.com>
16680         PR fortran/42162
16681         * testsuite/libgomp.fortran/pr42162.f90: New test.
16683 2009-11-13  Jakub Jelinek  <jakub@redhat.com>
16685         PR middle-end/42029
16686         * testsuite/libgomp.c/pr42029.c: New test.
16688 2009-10-26  Jakub Jelinek  <jakub@redhat.com>
16690         * acinclude.m4 (LIBGOMP_CHECK_LINKER_FEATURES): Avoid using too many
16691         *s.  Accept ld version without text in ()s.
16692         * configure: Regenerated.
16694 2009-10-22  Razya Ladelsky  <razya@il.ibm.com>
16696         * testsuite/libgomp.graphite/force-parallel-2.c: Adjust scan.
16698 2009-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
16700         PR libgomp/41418
16701         * configure.ac: Set FC to "no" if $GFORTRAN starts with "no"
16702         or a hyphen (happens with fortran language disabled).
16703         * configure: Regenerate.
16705 2009-09-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
16707         * acinclude.m4 (LIBGOMP_CHECK_LINKER_FEATURES): Avoid 'head',
16708         use sed script portable to Solaris /bin/sed for extracting ld
16709         version.
16710         * configure: Regenerate.
16712 2009-09-17  Alexander Monakov  <amonakov@ispras.ru>
16714         * testsuite/libgomp.graphite/bounds.c: New test.
16716 2009-09-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
16718         * Makefile.am (libgomp_la_LINK): New.
16719         * Makefile.in: Regenerate.
16721 2009-08-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
16723         * configure.ac (AC_PREREQ): Bump to 2.64.
16725 2009-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
16727         * Makefile.am (install-html, install-pdf): Remove.
16728         * Makefile.in: Regenerate.
16730         * Makefile.in: Regenerate.
16731         * aclocal.m4: Regenerate.
16732         * config.h.in: Regenerate.
16733         * configure: Regenerate.
16734         * testsuite/Makefile.in: Regenerate.
16736 2009-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
16738         * Makefile.am (LINK): Add $(AM_LIBTOOLFLAGS) and $(LIBTOOLFLAGS).
16739         * Makefile.in: Regenerate.
16741 2009-08-20  Dave Korn  <dave.korn.cygwin@gmail.com>
16743         * Makefile.am (libgomp_la_LDFLAGS): Add -bindir flag.
16744         * Makefile.in: Regenerate.
16746 2009-08-19  Tobias Burnus  <burnus@net-b.de>
16748         PR fortran/41102
16749         omp_lib.h.in: Fix -std=f95 errors.
16751 2009-08-14  David Edelsohn  <edelsohn@gnu.org>
16753         * testsuite/libgomp.graphite: Move from gcc.dg/graphite.
16754         * testsuite/libgomp.graphite/graphite_autopar.exp: Delete.
16755         * testsuite/libgomp.graphite/graphite.exp: New.
16757 2009-08-05  Andreas Tobler  <a.tobler@schweiz.org>
16759         * testsuite/libgomp.fortran/fortran.exp: Add flags in case of shared
16760         only build.
16762 2009-08-04  David Daney  <ddaney@caviumnetworks.com>
16764         * config/linux/mutex.h (gomp_mutex_unlock): Add comment about
16765         needed memory barrier semantics.
16766         * config/linux/mips/mutex.h: New file.
16768 2009-07-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
16770         * configure.ac (_AC_ARG_VAR_PRECIOUS): Use m4_rename_force.
16772 2009-07-16  Joseph Myers  <joseph@codesourcery.com>
16774         * configure: Regenerate.
16776 2009-07-11  Richard Sandiford  <rdsandiford@googlemail.com>
16778         PR testsuite/40699
16779         PR testsuite/40707
16780         PR testsuite/40709
16781         * testsuite/lib/libgomp.exp: Revert 2009-07-02 and 2009-06-30 commits.
16782         * testsuite/libgomp.c/c.exp, testsuite/libgomp.c++/c++.exp,
16783         testsuite/libgomp.fortran/fortran.exp: Revert 2009-06-30 commits.
16785 2009-07-02  Richard Sandiford  <r.sandiford@uk.ibm.com>
16787         * testsuite/lib/libgomp.exp (libgomp_init): Use the ALWAYS_CFLAGS
16788         options when choosing a multilib.
16790 2009-06-30  Richard Sandiford  <r.sandiford@uk.ibm.com>
16792         * testsuite/lib/libgomp.exp (libgomp_init): Don't add "." to
16793         ld_library_path.  Use add_path.  Add just find_libgcc_s to
16794         ld_library_path, not every libgcc multilib directory.
16795         * testsuite/libgomp.c/c.exp (ld_library_path): Don't call
16796         gcc-set-multilib-library-path; rely on $always_ld_library_path instead.
16797         * testsuite/libgomp.c++/c++.exp (ld_library_path): Likewise.
16798         Use add_path.
16799         * testsuite/libgomp.fortran/fortran.exp (ld_library_path): Likewise.
16801 2009-06-09  Nathan Froyd  <froydnj@codesourcery.com>
16803         * Makefile.am (LTLDFLAGS): Define.
16804         (LINK): Define.
16805         * Makefile.in: Regenerate.
16807 2009-05-27  Janne Blomqvist  <jb@gcc.gnu.org>
16809         PR fortran/39718
16810         * testsuite/libgomp.fortran/fortran.exp: Don't link with
16811         libgfortranbegin, check existence of libgfortran.a instead of
16812         libgfortranbegin.a.
16814 2009-05-20  Jakub Jelinek  <jakub@redhat.com>
16816         PR libgomp/40174
16817         * team.c (gomp_thread_start): Destroy thr->release semaphore.
16818         (gomp_free_pool_helper): Likewise.
16820 2009-04-20  Vasilis Liaskovitis  <vliaskov@gmail.com>
16821             Jakub Jelinek  <jakub@redhat.com>
16823         PR fortran/35423
16824         * testsuite/libgomp.fortran/workshare2.f90: New test.
16826 2009-04-09  Nick Clifton  <nickc@redhat.com>
16828         * iter.c: Change copyright header to refer to version 3 of the
16829         GNU General Public License with version 3.1 of the GCC Runtime
16830         Library Exception and to point readers at the COPYING3 and
16831         COPYING3.RUNTIME files and the FSF's license web page.
16832         * alloc.c: Likewise.
16833         * barrier.c: Likewise.
16834         * config/bsd/proc.c: Likewise.
16835         * config/linux/affinity.c: Likewise.
16836         * config/linux/alpha/futex.h: Likewise.
16837         * config/linux/bar.c: Likewise.
16838         * config/linux/bar.h: Likewise.
16839         * config/linux/ia64/futex.h: Likewise.
16840         * config/linux/ia64/mutex.h: Likewise.
16841         * config/linux/lock.c: Likewise.
16842         * config/linux/mips/futex.h: Likewise.
16843         * config/linux/mutex.c: Likewise.
16844         * config/linux/mutex.h: Likewise.
16845         * config/linux/powerpc/futex.h: Likewise.
16846         * config/linux/proc.c: Likewise.
16847         * config/linux/ptrlock.c: Likewise.
16848         * config/linux/ptrlock.h: Likewise.
16849         * config/linux/s390/futex.h: Likewise.
16850         * config/linux/sem.c: Likewise.
16851         * config/linux/sem.h: Likewise.
16852         * config/linux/sparc/futex.h: Likewise.
16853         * config/linux/wait.h: Likewise.
16854         * config/linux/x86/futex.h: Likewise.
16855         * config/mingw32/proc.c: Likewise.
16856         * config/mingw32/time.c: Likewise.
16857         * config/posix/affinity.c: Likewise.
16858         * config/posix/bar.c: Likewise.
16859         * config/posix/bar.h: Likewise.
16860         * config/posix/lock.c: Likewise.
16861         * config/posix/mutex.h: Likewise.
16862         * config/posix/proc.c: Likewise.
16863         * config/posix/ptrlock.h: Likewise.
16864         * config/posix/sem.c: Likewise.
16865         * config/posix/sem.h: Likewise.
16866         * config/posix/time.c: Likewise.
16867         * config/posix95/lock.c: Likewise.
16868         * critical.c: Likewise.
16869         * env.c: Likewise.
16870         * error.c: Likewise.
16871         * fortran.c: Likewise.
16872         * iter_ull.c: Likewise.
16873         * libgomp.h: Likewise.
16874         * libgomp_f.h.in: Likewise.
16875         * libgomp_g.h: Likewise.
16876         * loop.c: Likewise.
16877         * loop_ull.c: Likewise.
16878         * omp.h.in: Likewise.
16879         * omp_lib.f90.in: Likewise.
16880         * omp_lib.h.in: Likewise.
16881         * ordered.c: Likewise.
16882         * parallel.c: Likewise.
16883         * sections.c: Likewise.
16884         * single.c: Likewise.
16885         * task.c: Likewise.
16886         * team.c: Likewise.
16887         * work.c: Likewise.
16889 2009-04-09  Jakub Jelinek  <jakub@redhat.com>
16891         * testsuite/config/default.exp: Change copyright header to refer to
16892         version 3 of the GNU General Public License and to point readers
16893         at the COPYING3 file and the FSF's license web page.
16895 2009-04-08  Jakub Jelinek  <jakub@redhat.com>
16897         PR middle-end/39573
16898         * libgomp.c++/pr39573.C: New test.
16900 2009-04-01  Jakub Jelinek  <jakub@redhat.com>
16902         PR other/39591
16903         * testsuite/libgomp.c/pr39591-1.c: New test.
16904         * testsuite/libgomp.c/pr39591-2.c: New test.
16905         * testsuite/libgomp.c/pr39591-3.c: New test.
16907 2009-03-25  Uros Bizjak  <ubizjak@gmail.com>
16909         * testsuite/libgomp.c/atomic-5.c: Cleanup cpuid usage.
16910         * testsuite/libgomp.c/atomic-6.c: Ditto.
16912 2009-03-23  Jakub Jelinek  <jakub@redhat.com>
16914         PR c/39495
16915         * testsuite/libgomp.c/loop-12.c: New test.
16916         * testsuite/libgomp.c/loop-11.c: New test.
16917         * testsuite/libgomp.c++/loop-11.C: New test.
16918         * testsuite/libgomp.c++/loop-12.C: New test.
16919         * testsuite/libgomp.c++/for-8.C: New test.
16921 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
16923         * configure: Regenerate.
16925 2009-02-11  Jakub Jelinek  <jakub@redhat.com>
16927         PR middle-end/39154
16928         * testsuite/libgomp.c/pr39154.c: New test.
16930 2009-01-30  Ian Lance Taylor  <iant@google.com>
16932         * acinclude.m4 (LIBCOMP_CHECK_LINKER_FEATURES): Set
16933         libgomp_ld_is_gold.  Get gold version number.
16934         (LIBGOMP_ENABLE_SYMVERS): Gold always support symbol versioning.
16935         * configure: Rebuild.
16937 2009-01-19  Iain Sandoe  <iain.sandoe@sandoe-acoustics.co.uk>
16939         * testsuite/lib/libgomp.exp: Add -B option for targets that
16940         use libgfortran.a%s in their specs.
16942 2009-01-07  Jakub Jelinek  <jakub@redhat.com>
16944         PR libgomp/38086
16945         * acinclude.m4 (HAVE_AS_SYMVER_DIRECTIVE): New check.
16946         * libgomp.h (LIBGOMP_GNU_SYMBOL_VERSIONING): Undefine if
16947         HAVE_AS_SYMVER_DIRECTIVE is not defined.
16948         * configure: Regenerated.
16949         * config.h.in: Likewise.
16951 2008-12-28  Jakub Jelinek  <jakub@redhat.com>
16953         PR c++/38650
16954         * testsuite/libgomp.c/pr38650.c: New test.
16955         * testsuite/libgomp.c++/pr38650.C: New test.
16957 2008-12-27  Jakub Jelinek  <jakub@redhat.com>
16959         * testsuite/libgomp.c/collapse-1.c (main): Add private(k) clause.
16961 2008-12-26  Uros Bizjak  <ubizjak@gmail.com>
16963         * testsuite/libgomp.c/atomic-6.c: Add -mieee for alpha*-*-* targets.
16965 2008-12-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
16967         * configure: Regenerate.
16969 2008-12-08  Jakub Jelinek  <jakub@redhat.com>
16971         PR middle-end/36802
16972         * testsuite/libgomp.c/pr36802-1.c: New test.
16973         * testsuite/libgomp.c/pr36802-2.c: New test.
16974         * testsuite/libgomp.c/pr36802-3.c: New test.
16976 2008-12-01  Janis Johnson  <janis187@us.ibm.com>
16978         PR libgomp/38270
16979         * config/linux/powerpc/mutex.h: New.
16981 2008-12-01  Jakub Jelinek  <jakub@redhat.com>
16983         PR c++/38257
16984         * testsuite/libgomp.c++/for-7.C: New test.
16986         PR c++/38348
16987         * testsuite/libgomp.c++/for-6.C: New test.
16989 2008-11-26  Janis Johnson  <janis187@us.ibm.com>
16991         PR testsuite/28870
16992         * testsuite/lib/libgomp.exp: Include new timeout library files.
16993         (libgomp_target_compile): Set timeout value from new proc.
16995 2008-11-13  Steve Ellcey  <sje@cup.hp.com>
16997         PR libgomp/37938
16998         * config/linux/ia64/mutex.h: New.
17000 2008-11-04  Tobias Burnus  <burnus@net-b.de>
17002         PR libgomp/37935
17003         * libgomp.texi (Runtime library routines, environment variables):
17004         Update for OpenMP version 3.0.
17006 2008-09-26  Peter O'Gorman  <pogma@thewrittenword.com>
17007             Steve Ellcey  <sje@cup.hp.com>
17009         * configure: Regenerate for new libtool.
17010         * Makefile.in: Ditto.
17011         * testsuite/Makefile.in: Ditto.
17013 2008-09-19  Jakub Jelinek  <jakub@redhat.com>
17014             Andreas Tobler  <a.tobler@schweiz.org>
17016         * config/bsd/proc.c: New file.
17017         * configure.tgt (*-*-darwin*): Use config_path "bsd posix".
17018         * configure.ac: Check for header <sys/sysctl.h>
17019         * configure: Regenerate.
17020         * config.h.in: Likewise.
17022 2008-09-05  Janis Johnson  <janis187@us.ibm.com>
17024         * testsuite/ligbomp.c/c.exp: Unset lang_test_file only if it exists.
17026 2008-08-31  Aaron W. LaFramboise  <aaronavay62@aaronwl.com>
17028         * Makefile.am (libgomp_la_LDFLAGS): Add -no-undefined.
17029         * Makefile.in: Regenerated.
17030         * testsuite/Makefile.in: Regenerated.
17032 2008-08-21  Nathan Froyd  <froydnj@codesourcery.com>
17034         * testsuite/lib/libgomp.exp (libgomp_init): Only set things that
17035         depend on blddir if blddir exists.
17036         (libgomp_target_compile): Likewise.
17037         * testsuite/libgomp.c++/c++.exp: Likewise.
17038         * testsuite/libgomp.fortran/fortran.exp: Likewise.
17040 2008-07-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17042         * libgomp.texi: Update to GFDL 1.2.  Update copyright years.
17043         Do not list GPL as Invariant Section.
17045 2008-07-28  Ilie Garbacea  <ilie@mips.com>
17046             Chao-ying Fu  <fu@mips.com>
17048         * configure.tgt: Enable futex for MIPS.
17049         * config/linux/mips/futex.h: New file.
17051 2008-07-16  Jakub Jelinek  <jakub@redhat.com>
17053         * team.c (gomp_team_end): Free team immediately if it has
17054         just one thread.
17056 2008-07-08  David Edelsohn  <edelsohn@gnu.org>
17058         * testsuite/libgomp.c++/c++.exp: Append multilib library path.
17059         * testsuite/libgomp.fortran/fortran.exp: Same.
17060         * testsuite/libgomp.c/c.exp: Same.
17061         * testsuite/lib/libgomp.exp: Append AIX libgcc pthread multilib
17062         directory to library path first.
17064 2008-06-29  Krister Walfridsson  <krister.walfridsson@gmail.com>
17066         * env.c (parse_stacksize): Add cast to avoid warning.
17067         (parse_spincount): Likewise.
17069 2008-06-27  Jakub Jelinek  <jakub@redhat.com>
17071         * testsuite/libgomp.c/loop-10.c: New test.
17072         * libgomp.c/loop-3.c (main): Add lastprivate clause.
17073         * libgomp.c++/loop-6.C (main): Likewise.
17075         PR debug/36617
17076         * testsuite/libgomp.c/debug-1.c: New test.
17078 2008-06-19  Jakub Jelinek  <jakub@redhat.com>
17080         * testsuite/libgomp.c/nqueens-1.c: New test.
17082         PR c++/36523
17083         * testsuite/libgomp.c++/task-7.C: New function.
17085 2008-06-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17087         * configure: Regenerate.
17089 2008-06-15  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
17091         * env.c (initialize_env): Always initialize gomp_remaining_threads_lock
17092         mutex when HAVE_SYNC_BUILTINS isn't defined.
17094 2008-06-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17096         * libgomp.texi (omp_test_lock): Fix typo.
17098 2008-06-12  Tobias Burnus  <burnus@net-b.de>
17100         * omp_lib.f90.in: Add "implicit none".
17102 2008-06-12  Jakub Jelinek  <jakub@redhat.com>
17104         PR middle-end/36506
17105         * testsuite/libgomp.c/reduction-5.c: New test.
17107 2008-06-11  Jakub Jelinek  <jakub@redhat.com>
17109         * libgomp.h (struct gomp_task): Add in_tied_task field.
17110         * task.c (gomp_init_task): Initialize it.
17111         (GOMP_task): Likewise.  Call gomp_team_barrier_set_task_pending
17112         unconditionally.  Don't call gomp_team_barrier_wake if
17113         current task is implicit or if(0) from implicit and number of
17114         running tasks is equal to nthreads - 1.
17116         PR libgomp/36471
17117         * omp_lib.f90.in (omp_get_ancestor_thread_num_8,
17118         omp_get_team_size_8): Fix pastos.
17120         PR libgomp/36469
17121         * configure.ac: Add AC_CHECK_FUNCS (strtoull).
17122         * configure: Regenerated.
17123         * config.h.in: Regenerated.
17124         * env.c (strtoull): Define to strtoul if HAVE_STRTOULL is not
17125         defined.
17127 2008-06-06  Andreas Tobler  <a.tobler@schweiz.org>
17129         PR bootstrap/36452
17130         * loop_ull.c (GOMP_loop_ull_static_start): Adjust API.
17131         (GOMP_loop_ull_dynamic_start): Likewise.
17132         (GOMP_loop_ull_guided_start): Likewise.
17133         (GOMP_loop_ull_ordered_static_start): Likewise.
17134         (GOMP_loop_ull_ordered_dynamic_start): Likewise.
17135         (GOMP_loop_ull_ordered_guided_start): Likewise.
17137 2008-06-06  Jakub Jelinek  <jakub@redhat.com>
17138             Richard Henderson  <rth@redhat.com>
17139             Ulrich Drepper  <drepper@redhat.com>
17140             Jakob Blomer  <jakob.blomer@ira.uka.de>
17142         * configure.ac (LIBGOMP_GNU_SYMBOL_VERSIONING): New AC_DEFINE.
17143         Substitute also OMP_*LOCK_25*.
17144         * configure: Regenerated.
17145         * config.h.in: Regenerated.
17146         * Makefile.am (libgomp_la_SOURCES): Add loop_ull.c, iter_ull.c,
17147         ptrlock.c and task.c.
17148         * Makefile.in: Regenerated.
17149         * testsuite/Makefile.in: Regenerated.
17150         * task.c: New file.
17151         * loop_ull.c: New file.
17152         * iter_ull.c: New file.
17153         * libgomp.h: Include ptrlock.h.
17154         (enum gomp_task_kind): New type.
17155         (struct gomp_team): Add task_lock, task_queue, task_count,
17156         task_running_count, single_count fields.  Add
17157         work_share_list_free_lock ifndef HAVE_SYNC_BUILTINS.
17158         Remove work_share_lock, generation_mask,
17159         oldest_live_gen, num_live_gen and init_work_shares fields, add
17160         work work_share_list_alloc, work_share_list_free and work_share_chunk
17161         fields.  Change work_shares from pointer to pointers into an array.
17162         Change ordered_release field into gomp_sem_t ** from flexible array
17163         member.  Add implicit_task and initial_work_shares fields.
17164         Move close to the end of the struct.
17165         (struct gomp_team_state): Add single_count, last_work_share,
17166         active_level and level fields, remove work_share_generation.
17167         (gomp_barrier_handle_tasks): New prototype.
17168         (gomp_finish_task): New inline function.
17169         (struct gomp_work_share): Move chunk_size, end, incr into
17170         transparent union/struct, add chunk_size_ull, end_ll, incr_ll and
17171         next_ll fields.  Reshuffle fields.  Add next_alloc,
17172         next_ws, next_free and inline_ordered_team_ids fields, change
17173         ordered_team_ids into pointer from flexible array member.
17174         Add mode field.  Put lock and next into a different cache line
17175         from most of the write-once fields.
17176         (gomp_iter_ull_static_next, gomp_iter_ull_dynamic_next_locked,
17177         gomp_iter_ull_guided_next_locked, gomp_iter_ull_dynamic_next,
17178         gomp_iter_ull_guided_next): New prototypes.
17179         (gomp_new_icv): New prototype.
17180         (struct gomp_thread): Add thread_pool and task fields.
17181         (struct gomp_thread_pool): New type.
17182         (gomp_new_team): New prototype.
17183         (gomp_team_start): Change type of last argument.
17184         (gomp_new_work_share): Removed.
17185         (gomp_init_work_share, gomp_fini_work_share): New prototypes.
17186         (gomp_work_share_init_done): New static inline.
17187         (gomp_throttled_spin_count_var, gomp_available_cpus,
17188         gomp_managed_threads): New extern decls.
17189         (gomp_init_task): New prototype.
17190         (gomp_spin_count_var): New extern var decl.
17191         (LIBGOMP_GNU_SYMBOL_VERSIONING): Undef if no visibility
17192         or no alias support, or if not PIC.
17193         (gomp_init_lock_30, gomp_destroy_lock_30, gomp_set_lock_30,
17194         gomp_unset_lock_30, gomp_test_lock_30, gomp_init_nest_lock_30,
17195         gomp_destroy_nest_lock_30, gomp_set_nest_lock_30,
17196         gomp_unset_nest_lock_30, gomp_test_nest_lock_30, gomp_init_lock_25,
17197         gomp_destroy_lock_25, gomp_set_lock_25, gomp_unset_lock_25,
17198         gomp_test_lock_25, gomp_init_nest_lock_25, gomp_destroy_nest_lock_25,
17199         gomp_set_nest_lock_25, gomp_unset_nest_lock_25,
17200         gomp_test_nest_lock_25): New prototypes.
17201         (omp_lock_symver, strong_alias): Define.
17202         (gomp_remaining_threads_count, gomp_remaining_threads_lock): New
17203         decls.
17204         (gomp_end_task): New.
17205         (struct gomp_task_icv, gomp_global_icv): New.
17206         (gomp_thread_limit_var, gomp_max_active_levels_var): New.
17207         (struct gomp_task): New.
17208         (gomp_nthreads_var, gomp_dyn_var, gomp_nest_var,
17209         gomp_run_sched_var, gomp_run_sched_chunk): Remove.
17210         (gomp_icv): New.
17211         (gomp_schedule_type): Reorder enum to match
17212         omp_sched_t.
17213         * team.c (struct gomp_thread_start_data): Add thread_pool and task
17214         fields.
17215         (gomp_thread_start): Add gomp_team_barrier_wait call.
17216         For non-nested case remove clearing of docked thread thr fields.
17217         Use pool fields instead of global gomp_* variables.  Use
17218         gomp_barrier_wait_last when needed.  Initialize ts.active_level.
17219         Create tasks for each member thread.
17220         (free_team): Only destroy team barrier, task_lock here and free it.
17221         (gomp_free_thread): Free last_team if non-NULL.
17222         (gomp_team_end): Call gomp_team_barrier_wait instead of
17223         gomp_barrier_wait.  For nested case call one extra
17224         gomp_barrier_wait.  Move here some destruction from free_team.
17225         Call free_team on pool->last_team if any, rather than freeing
17226         current team.  Destroy work_share_list_free_lock ifndef
17227         HAVE_SYNC_BUILTINS.
17228         (gomp_new_icv): New function.
17229         (gomp_threads, gomp_threads_size, gomp_threads_used,
17230         gomp_threads_dock): Removed.
17231         (gomp_thread_destructor): New variable.
17232         (gomp_new_thread_pool, gomp_free_pool_helper, gomp_free_thread): New
17233         functions.
17234         (gomp_team_start): Create new pool if current thread doesn't have
17235         one.  Use pool fields instead of global gomp_* variables.
17236         Initialize thread_pool field for new threads.  Clear single_count.
17237         Change last argument from ws to team, don't create
17238         new team, set ts.work_share to &team->work_shares[0] and clear
17239         ts.last_work_share.  Don't clear ts.work_share_generation.
17240         If number of threads changed, adjust atomically gomp_managed_threads.
17241         Use gomp_init_task instead of gomp_new_task,
17242         set thr->task to the corresponding implicit_task array entry.
17243         Create tasks for each member thread.  Initialize ts.level.
17244         (initialize_team): Call pthread_key_create on
17245         gomp_thread_destructor.
17246         (team_destructor): New function.
17247         (new_team): Removed.
17248         (gomp_new_team): New function.
17249         (free_team): Free gomp_work_share blocks chained through next_alloc,
17250         instead of freeing work_shares and destroying work_share_lock.
17251         (gomp_team_end): Call gomp_fini_work_share.  If number of threads
17252         changed, adjust atomically gomp_managed_threads.  Use gomp_end_task.
17253         * barrier.c (GOMP_barrier): Call gomp_team_barrier_wait instead
17254         of gomp_barrier_wait.
17255         * single.c (GOMP_single_copy_start): Call gomp_team_barrier_wait
17256         instead of gomp_barrier_wait.  Call gomp_work_share_init_done
17257         if gomp_work_share_start returned true.  Don't unlock ws->lock.
17258         (GOMP_single_copy_end): Call gomp_team_barrier_wait instead
17259         of gomp_barrier_wait.
17260         (GOMP_single_start): Rewritten if HAVE_SYNC_BUILTINS.  Call
17261         gomp_work_share_init_done if gomp_work_share_start returned true.
17262         Don't unlock ws->lock.
17263         * work.c: Include stddef.h.
17264         (free_work_share): Use work_share_list_free_lock instead
17265         of atomic chaining ifndef HAVE_SYNC_BUILTINS.  Add team argument.
17266         Call gomp_fini_work_share and then either free ws if orphaned, or
17267         put it into work_share_list_free list of the current team.
17268         (alloc_work_share, gomp_init_work_share, gomp_fini_work_share): New
17269         functions.
17270         (gomp_work_share_start, gomp_work_share_end,
17271         gomp_work_share_end_nowait): Rewritten.
17272         * omp_lib.f90.in Change some tabs to spaces to prevent warnings.
17273         (openmp_version): Set to 200805.
17274         (omp_sched_kind, omp_sched_static, omp_sched_dynamic,
17275         omp_sched_guided, omp_sched_auto): New parameters.
17276         (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
17277         omp_set_max_active_levels, omp_get_max_active_levels,
17278         omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
17279         omp_get_active_level): New interfaces.
17280         * omp_lib.h.in (openmp_version): Set to 200805.
17281         (omp_sched_kind, omp_sched_static, omp_sched_dynamic,
17282         omp_sched_guided, omp_sched_auto): New parameters.
17283         (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
17284         omp_set_max_active_levels, omp_get_max_active_levels,
17285         omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
17286         omp_get_active_level): New externals.
17287         * loop.c: Include limits.h.
17288         (GOMP_loop_runtime_next, GOMP_loop_ordered_runtime_next): Handle
17289         GFS_AUTO.
17290         (GOMP_loop_runtime_start, GOMP_loop_ordered_runtime_start):
17291         Likewise.  Use gomp_icv.
17292         (gomp_loop_static_start, gomp_loop_dynamic_start): Clear
17293         ts.static_trip here.
17294         (gomp_loop_static_start, gomp_loop_ordered_static_start): Call
17295         gomp_work_share_init_done after gomp_loop_init.  Don't unlock ws->lock.
17296         (gomp_loop_dynamic_start, gomp_loop_guided_start): Call
17297         gomp_work_share_init_done after gomp_loop_init.  If HAVE_SYNC_BUILTINS,
17298         don't unlock ws->lock, otherwise lock it.
17299         (gomp_loop_ordered_dynamic_start, gomp_loop_ordered_guided_start): Call
17300         gomp_work_share_init_done after gomp_loop_init.  Lock ws->lock.
17301         (gomp_parallel_loop_start): Call gomp_new_team instead of
17302         gomp_new_work_share.  Call gomp_loop_init on &team->work_shares[0].
17303         Adjust gomp_team_start caller.  Pass 0 as second argument to
17304         gomp_resolve_num_threads.
17305         (gomp_loop_init): For GFS_DYNAMIC, multiply ws->chunk_size by incr.
17306         If adding ws->chunk_size nthreads + 1 times after end won't
17307         overflow, set ws->mode to 1.
17308         * libgomp_g.h (GOMP_loop_ull_static_start, GOMP_loop_ull_dynamic_start,
17309         GOMP_loop_ull_guided_start, GOMP_loop_ull_runtime_start,
17310         GOMP_loop_ull_ordered_static_start,
17311         GOMP_loop_ull_ordered_dynamic_start,
17312         GOMP_loop_ull_ordered_guided_start,
17313         GOMP_loop_ull_ordered_runtime_start, GOMP_loop_ull_static_next,
17314         GOMP_loop_ull_dynamic_next, GOMP_loop_ull_guided_next,
17315         GOMP_loop_ull_runtime_next, GOMP_loop_ull_ordered_static_next,
17316         GOMP_loop_ull_ordered_dynamic_next, GOMP_loop_ull_ordered_guided_next,
17317         GOMP_loop_ull_ordered_runtime_next, GOMP_task, GOMP_taskwait): New
17318         prototypes.
17319         * libgomp.map: Export lock routines also @@OMP_2.0.
17320         (GOMP_loop_ordered_dynamic_first,
17321         GOMP_loop_ordered_guided_first, GOMP_loop_ordered_runtime_first,
17322         GOMP_loop_ordered_static_first): Remove.
17323         (GOMP_loop_ull_dynamic_next, GOMP_loop_ull_dynamic_start,
17324         GOMP_loop_ull_guided_next, GOMP_loop_ull_guided_start,
17325         GOMP_loop_ull_ordered_dynamic_next,
17326         GOMP_loop_ull_ordered_dynamic_start,
17327         GOMP_loop_ull_ordered_guided_next,
17328         GOMP_loop_ull_ordered_guided_start,
17329         GOMP_loop_ull_ordered_runtime_next,
17330         GOMP_loop_ull_ordered_runtime_start,
17331         GOMP_loop_ull_ordered_static_next,
17332         GOMP_loop_ull_ordered_static_start,
17333         GOMP_loop_ull_runtime_next, GOMP_loop_ull_runtime_start,
17334         GOMP_loop_ull_static_next, GOMP_loop_ull_static_start,
17335         GOMP_task, GOMP_taskwait): Export @@GOMP_2.0.
17336         (omp_set_schedule, omp_get_schedule,
17337         omp_get_thread_limit, omp_set_max_active_levels,
17338         omp_get_max_active_levels, omp_get_level,
17339         omp_get_ancestor_thread_num, omp_get_team_size, omp_get_active_level,
17340         omp_set_schedule_, omp_set_schedule_8_,
17341         omp_get_schedule_, omp_get_schedule_8_, omp_get_thread_limit_,
17342         omp_set_max_active_levels_, omp_set_max_active_levels_8_,
17343         omp_get_max_active_levels_, omp_get_level_,
17344         omp_get_ancestor_thread_num_, omp_get_ancestor_thread_num_8_,
17345         omp_get_team_size_, omp_get_team_size_8_, omp_get_active_level_):
17346         New exports @@OMP_3.0.
17347         * omp.h.in (omp_sched_t): New type.
17348         (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
17349         omp_set_max_active_levels, omp_get_max_active_levels,
17350         omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
17351         omp_get_active_level): New prototypes.
17352         * env.c (gomp_spin_count_var, gomp_throttled_spin_count_var,
17353         gomp_available_cpus, gomp_managed_threads, gomp_max_active_levels_var,
17354         gomp_thread_limit_var, gomp_remaining_threads_count,
17355         gomp_remaining_threads_lock): New variables.
17356         (parse_spincount): New function.
17357         (initialize_env): Call gomp_init_num_threads unconditionally.
17358         Initialize gomp_available_cpus.  Call parse_spincount,
17359         initialize gomp_{,throttled_}spin_count_var
17360         depending on presence and value of OMP_WAIT_POLICY and
17361         GOMP_SPINCOUNT env vars.  Handle GOMP_BLOCKTIME env var.
17362         Handle OMP_WAIT_POLICY, OMP_MAX_ACTIVE_LEVELS,
17363         OMP_THREAD_LIMIT, OMP_STACKSIZE env vars.  Handle unit specification
17364         for GOMP_STACKSIZE.  Initialize gomp_remaining_threads_count and
17365         gomp_remaining_threads_lock if needed.  Use gomp_global_icv.
17366         (gomp_nthreads_var, gomp_dyn_var, gomp_nest_var,
17367         gomp_run_sched_var, gomp_run_sched_chunk): Remove.
17368         (gomp_global_icv): New.
17369         (parse_schedule): Use it.  Parse "auto".
17370         (omp_set_num_threads): Use gomp_icv.
17371         (omp_set_dynamic, omp_get_dynamic, omp_set_nested, omp_get_nested):
17372         Likewise.
17373         (omp_get_max_threads): Move from parallel.c.
17374         (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
17375         omp_set_max_active_levels, omp_get_max_active_levels): New functions,
17376         add ialias.
17377         (parse_stacksize, parse_wait_policy): New functions.
17378         * fortran.c: Rewrite lock wrappers, if symbol versioning provide
17379         both wrappers for compatibility and new locks.
17380         (omp_set_schedule, omp_get_schedule,
17381         omp_get_thread_limit, omp_set_max_active_levels,
17382         omp_get_max_active_levels, omp_get_level,
17383         omp_get_ancestor_thread_num, omp_get_team_size,
17384         omp_get_active_level): New ialias_redirect.
17385         (omp_set_schedule_, omp_set_schedule_8_,
17386         omp_get_schedule_, omp_get_schedule_8_, omp_get_thread_limit_,
17387         omp_set_max_active_levels_, omp_set_max_active_levels_8_,
17388         omp_get_max_active_levels_, omp_get_level_,
17389         omp_get_ancestor_thread_num_, omp_get_ancestor_thread_num_8_,
17390         omp_get_team_size_, omp_get_team_size_8_, omp_get_active_level_):
17391         New functions.
17392         * parallel.c: Include limits.h.
17393         (gomp_resolve_num_threads): Add count argument.  Rewritten.
17394         (GOMP_parallel_start): Call gomp_new_team and pass that as last
17395         argument to gomp_team_start.  Pass 0 as second argument to
17396         gomp_resolve_num_threads.
17397         (GOMP_parallel_end): Decrease gomp_remaining_threads_count
17398         if gomp_thread_limit_var != ULONG_MAX.
17399         (omp_in_parallel): Implement using ts.active_level.
17400         (omp_get_max_threads): Move to env.c.
17401         (omp_get_level, omp_get_ancestor_thread_num,
17402         omp_get_team_size, omp_get_active_level): New functions,
17403         add ialias.
17404         * sections.c (GOMP_sections_start): Call gomp_work_share_init_done
17405         after gomp_sections_init.  If HAVE_SYNC_BUILTINS, call
17406         gomp_iter_dynamic_next instead of the _locked variant and don't take
17407         lock around it, otherwise acquire it before calling
17408         gomp_iter_dynamic_next_locked.
17409         (GOMP_sections_next): If HAVE_SYNC_BUILTINS, call
17410         gomp_iter_dynamic_next instead of the _locked variant and don't take
17411         lock around it.
17412         (GOMP_parallel_sections_start): Call gomp_new_team instead of
17413         gomp_new_work_share.  Call gomp_sections_init on &team->work_shares[0].
17414         Adjust gomp_team_start caller.  Pass count as second argument to
17415         gomp_resolve_num_threads, don't adjust num_threads after the call.
17416         Use gomp_icv.
17417         * iter.c (gomp_iter_dynamic_next_locked): Don't multiply
17418         ws->chunk_size by incr.
17419         (gomp_iter_dynamic_next): Likewise.  If ws->mode, use more efficient
17420         code.
17421         * libgomp_f.h.in (omp_lock_25_arg_t, omp_nest_lock_25_arg_t): New
17422         types.
17423         (omp_lock_25_arg, omp_nest_lock_25_arg): New macros.
17424         (omp_check_defines): Check even the compat defines.
17425         * config/linux/ptrlock.c: New file.
17426         * config/linux/ptrlock.h: New file.
17427         * config/linux/wait.h: New file.
17428         * config/posix/ptrlock.c: New file.
17429         * config/posix/ptrlock.h: New file.
17430         * config/linux/bar.h (gomp_team_barrier_wait,
17431         gomp_team_barrier_wait_end, gomp_team_barrier_wake): New prototypes.
17432         (gomp_team_barrier_set_task_pending,
17433         gomp_team_barrier_clear_task_pending,
17434         gomp_team_barrier_set_waiting_for_tasks,
17435         gomp_team_barrier_waiting_for_tasks,
17436         gomp_team_barrier_done): New inlines.
17437         (gomp_barrier_t): Rewritten.
17438         (gomp_barrier_state_t): New typedef.
17439         (gomp_barrier_init, gomp_barrier_reinit, gomp_barrier_destroy,
17440         gomp_barrier_wait_start): Rewritten.
17441         (gomp_barrier_wait_end): Change second argument to
17442         gomp_barrier_state_t.
17443         (gomp_barrier_last_thread, gomp_barrier_wait_last): New static
17444         inlines.
17445         * config/linux/bar.c: Include wait.h instead of libgomp.h and
17446         futex.h.
17447         (gomp_barrier_wait_end): Rewritten.
17448         (gomp_team_barrier_wait, gomp_team_barrier_wait_end,
17449         gomp_team_barrier_wake, gomp_barrier_wait_last): New functions.
17450         * config/posix/bar.h (gomp_barrier_t): Add generation field.
17451         (gomp_barrier_state_t): New typedef.
17452         (gomp_team_barrier_wait,
17453         gomp_team_barrier_wait_end, gomp_team_barrier_wake): New prototypes.
17454         (gomp_barrier_wait_start): Or all but low 2 bits from generation
17455         into the return value.  Return gomp_barrier_state_t.
17456         (gomp_team_barrier_set_task_pending,
17457         gomp_team_barrier_clear_task_pending,
17458         gomp_team_barrier_set_waiting_for_tasks,
17459         gomp_team_barrier_waiting_for_tasks,
17460         gomp_team_barrier_done): New inlines.
17461         (gomp_barrier_wait_end): Change second argument to
17462         gomp_barrier_state_t.
17463         (gomp_barrier_last_thread, gomp_barrier_wait_last): New static
17464         inlines.
17465         * config/posix/bar.c (gomp_barrier_init): Clear generation field.
17466         (gomp_barrier_wait_end): Change second argument to
17467         gomp_barrier_state_t.
17468         (gomp_team_barrier_wait, gomp_team_barrier_wait_end,
17469         gomp_team_barrier_wake): New functions.
17470         * config/linux/mutex.c: Include wait.h instead of libgomp.h and
17471         futex.h.
17472         (gomp_futex_wake, gomp_futex_wait): New variables.
17473         (gomp_mutex_lock_slow): Call do_wait instead of futex_wait.
17474         * config/linux/lock.c: Rewrite to make locks task owned,
17475         for backwards compatibility provide the old entrypoints
17476         if symbol versioning.  Include wait.h instead of libgomp.h and
17477         futex.h.
17478         (gomp_set_nest_lock_25): Call do_wait instead of futex_wait.
17479         * config/posix95/lock.c: Rewrite to make locks task owned,
17480         for backwards compatibility provide the old entrypoints
17481         if symbol versioning.
17482         * config/posix/lock.c: Rewrite to make locks task owned,
17483         for backwards compatibility provide the old entrypoints
17484         if symbol versioning.
17485         * config/linux/proc.c (gomp_init_num_threads): Use gomp_global_icv.
17486         (get_num_procs, gomp_dynamic_max_threads): Use gomp_icv.
17487         * config/posix/proc.c, config/mingw32/proc.c: Similarly.
17488         * config/linux/powerpc/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
17489         (sys_futex0): Return error code.
17490         (futex_wake, futex_wait): If ENOSYS was returned, clear
17491         FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
17492         (cpu_relax, atomic_write_barrier): New static inlines.
17493         * config/linux/alpha/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
17494         (futex_wake, futex_wait): If ENOSYS was returned, clear
17495         FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
17496         (cpu_relax, atomic_write_barrier): New static inlines.
17497         * config/linux/x86/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
17498         (sys_futex0): Return error code.
17499         (futex_wake, futex_wait): If ENOSYS was returned, clear
17500         FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
17501         (cpu_relax, atomic_write_barrier): New static inlines.
17502         * config/linux/s390/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
17503         (sys_futex0): Return error code.
17504         (futex_wake, futex_wait): If ENOSYS was returned, clear
17505         FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
17506         (cpu_relax, atomic_write_barrier): New static inlines.
17507         * config/linux/ia64/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
17508         (sys_futex0): Return error code.
17509         (futex_wake, futex_wait): If ENOSYS was returned, clear
17510         FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
17511         (cpu_relax, atomic_write_barrier): New static inlines.
17512         * config/linux/sparc/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
17513         (sys_futex0): Return error code.
17514         (futex_wake, futex_wait): If ENOSYS was returned, clear
17515         FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
17516         (cpu_relax, atomic_write_barrier): New static inlines.
17517         * config/linux/sem.c: Include wait.h instead of libgomp.h and
17518         futex.h.
17519         (gomp_sem_wait_slow): Call do_wait instead of futex_wait.
17520         * config/linux/affinity.c: Assume HAVE_SYNC_BUILTINS.
17521         * config/linux/omp-lock.h (omp_lock_25_t, omp_nest_lock_25_t): New
17522         types.
17523         (omp_nest_lock_t): Change owner into void *, add lock field.
17524         * config/posix95/omp-lock.h: Include semaphore.h.
17525         (omp_lock_25_t, omp_nest_lock_25_t): New types.
17526         (omp_lock_t): Use sem_t instead of mutex if semaphores
17527         aren't broken.
17528         (omp_nest_lock_t): Likewise.  Change owner to void *.
17529         * config/posix/omp-lock.h: Include semaphore.h.
17530         (omp_lock_25_t, omp_nest_lock_25_t): New types.
17531         (omp_lock_t): Use sem_t instead of mutex if semaphores
17532         aren't broken.
17533         (omp_nest_lock_t): Likewise.  Add owner field.
17535 2008-06-06  Jakub Jelinek  <jakub@redhat.com>
17537         * testsuite/libgomp.c/collapse-1.c: New test.
17538         * testsuite/libgomp.c/collapse-2.c: New test.
17539         * testsuite/libgomp.c/collapse-3.c: New test.
17540         * testsuite/libgomp.c/icv-1.c: New test.
17541         * testsuite/libgomp.c/icv-2.c: New test.
17542         * testsuite/libgomp.c/lib-2.c: New test.
17543         * testsuite/libgomp.c/lock-1.c: New test.
17544         * testsuite/libgomp.c/lock-2.c: New test.
17545         * testsuite/libgomp.c/lock-3.c: New test.
17546         * testsuite/libgomp.c/loop-4.c: New test.
17547         * testsuite/libgomp.c/loop-5.c: New test.
17548         * testsuite/libgomp.c/loop-6.c: New test.
17549         * testsuite/libgomp.c/loop-7.c: New test.
17550         * testsuite/libgomp.c/loop-8.c: New test.
17551         * testsuite/libgomp.c/loop-9.c: New test.
17552         * testsuite/libgomp.c/nested-3.c: New test.
17553         * testsuite/libgomp.c/nestedfn-6.c: New test.
17554         * testsuite/libgomp.c/sort-1.c: New test.
17555         * testsuite/libgomp.c/task-1.c: New test.
17556         * testsuite/libgomp.c/task-2.c: New test.
17557         * testsuite/libgomp.c/task-3.c: New test.
17558         * testsuite/libgomp.c/task-4.c: New test.
17559         * testsuite/libgomp.c++/c++.exp: Add libstdc++-v3 build includes
17560         to C++ testsuite default compiler options.
17561         * testsuite/libgomp.c++/collapse-1.C: New test.
17562         * testsuite/libgomp.c++/collapse-2.C: New test.
17563         * testsuite/libgomp.c++/ctor-10.C: New test.
17564         * testsuite/libgomp.c++/for-1.C: New test.
17565         * testsuite/libgomp.c++/for-2.C: New test.
17566         * testsuite/libgomp.c++/for-3.C: New test.
17567         * testsuite/libgomp.c++/for-4.C: New test.
17568         * testsuite/libgomp.c++/for-5.C: New test.
17569         * testsuite/libgomp.c++/loop-8.C: New test.
17570         * testsuite/libgomp.c++/loop-9.C: New test.
17571         * testsuite/libgomp.c++/loop-10.C: New test.
17572         * testsuite/libgomp.c++/task-1.C: New test.
17573         * testsuite/libgomp.c++/task-2.C: New test.
17574         * testsuite/libgomp.c++/task-3.C: New test.
17575         * testsuite/libgomp.c++/task-4.C: New test.
17576         * testsuite/libgomp.c++/task-5.C: New test.
17577         * testsuite/libgomp.c++/task-6.C: New test.
17578         * testsuite/libgomp.fortran/allocatable1.f90: New test.
17579         * testsuite/libgomp.fortran/allocatable2.f90: New test.
17580         * testsuite/libgomp.fortran/allocatable3.f90: New test.
17581         * testsuite/libgomp.fortran/allocatable4.f90: New test.
17582         * testsuite/libgomp.fortran/collapse1.f90: New test.
17583         * testsuite/libgomp.fortran/collapse2.f90: New test.
17584         * testsuite/libgomp.fortran/collapse3.f90: New test.
17585         * testsuite/libgomp.fortran/collapse4.f90: New test.
17586         * testsuite/libgomp.fortran/lastprivate1.f90: New test.
17587         * testsuite/libgomp.fortran/lastprivate2.f90: New test.
17588         * testsuite/libgomp.fortran/lib4.f90: New test.
17589         * testsuite/libgomp.fortran/lock-1.f90: New test.
17590         * testsuite/libgomp.fortran/lock-2.f90: New test.
17591         * testsuite/libgomp.fortran/nested1.f90: New test.
17592         * testsuite/libgomp.fortran/nestedfn4.f90: New test.
17593         * testsuite/libgomp.fortran/strassen.f90: New test.
17594         * testsuite/libgomp.fortran/tabs1.f90: New test.
17595         * testsuite/libgomp.fortran/tabs2.f: New test.
17596         * testsuite/libgomp.fortran/task1.f90: New test.
17597         * testsuite/libgomp.fortran/task2.f90: New test.
17598         * testsuite/libgomp.fortran/vla4.f90: Add dg-warning.
17599         * testsuite/libgomp.fortran/vla5.f90: Likewise.
17600         * testsuite/libgomp.c/pr26943-2.c: Likewise.
17601         * testsuite/libgomp.c/pr26943-3.c: Likewise.
17602         * testsuite/libgomp.c/pr26943-4.c: Likewise.
17604 2008-05-23  Jakub Jelinek  <jakub@redhat.com>
17606         PR c++/36308
17607         * testsuite/libgomp.c++/ctor-11.C: New test.
17608         * testsuite/libgomp.c++/ctor-12.C: New test.
17610 2008-05-15  Janis Johnson  <janis187@us.ibm.com>
17612         * testsuite/lib/libgomp.exp: Load torture-options.exp from gcc lib.
17614 2008-05-07  Jakub Jelinek  <jakub@redhat.com>
17616         PR middle-end/36106
17617         * testsuite/libgomp.c/atomic-5.c: New test.
17618         * testsuite/libgomp.c/atomic-6.c: New test.
17619         * testsuite/libgomp.c/autopar-1.c: New test.
17621 2008-04-21  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17623         * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS)
17624         (LIBGOMP_CHECK_ATTRIBUTE_VISIBILITY)
17625         (LIBGOMP_CHECK_ATTRIBUTE_DLLEXPORT)
17626         (LIBGOMP_CHECK_ATTRIBUTE_ALIAS): Fix cache variable names.
17627         * configure: Regenerate.
17628         * Makefile.in, testsuite/Makefile.in: Likewise.
17630 2008-04-18  Paolo Bonzini  <bonzini@gnu.org>
17632         PR bootstrap/35457
17633         * aclocal.m4: Regenerate.
17634         * configure: Regenerate.
17636 2008-03-18  Jakub Jelinek  <jakub@redhat.com>
17638         PR middle-end/35611
17639         * testsuite/libgomp.c/atomic-4.c: New test.
17641         PR libgomp/35625
17642         * iter.c (gomp_iter_guided_next_locked): If q > n, set end to ws->end.
17643         (gomp_iter_guided_next): Likewise.
17644         * testsuite/libgomp.c/pr35625.c: New test.
17646 2008-03-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17648         * aclocal.m4: Regenerate.
17649         * configure: Likewise.
17650         * Makefile.in: Likewise.
17651         * testsuite/Makefile.in: Likewise.
17653 2008-03-13  Jakub Jelinek  <jakub@redhat.com>
17655         PR middle-end/35185
17656         * testsuite/libgomp.c++/pr35185.C: New test.
17658 2008-03-12  Jakub Jelinek  <jakub@redhat.com>
17660         PR middle-end/35549
17661         * testsuite/libgomp.c/pr35549.c: New test.
17663 2008-03-06  Jakub Jelinek  <jakub@redhat.com>
17665         * testsuite/libgomp.c/atomic-3.c: New test.
17667 2008-03-03  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
17669         PR fortran/33197
17670         * testsuite/libgomp.fortran/fortran.exp: Add .f08 and
17671         .F08 file suffixes.
17673 2008-03-03  Peter O'Gorman  <pogma@thewrittenword.com>
17675         PR libgomp/33131
17676         * configure.ac: Add ACX_HEADER_STRING.
17677         * env.c: Include strings.h.
17678         * aclocal.m4: Regenerate.
17679         * config.h.in: Regenerate.
17680         * configure: Regenerate.
17681         * Makefile.in: Regenerate.
17682         * testsuite/Makefile.in: Regenerate.
17684 2008-02-15  Jakub Jelinek  <jakub@redhat.com>
17686         PR middle-end/35196
17687         * testsuite/libgomp.c/pr35196.c: New test.
17689         PR middle-end/35130
17690         * testsuite/libgomp.fortran/pr35130.f90: New test.
17691         * testsuite/libgomp.c/pr35130.c: New test.
17693 2008-01-25  Jakub Jelinek  <jakub@redhat.com>
17695         PR middle-end/33880
17696         * testsuite/libgomp.c/pr33880.c: New test.
17697         * testsuite/libgomp.fortran/pr33880.f90: New test.
17699 2008-01-24  David Edelsohn  <edelsohn@gnu.org>
17701         * configure: Regenerate.
17703 2008-01-08  Jakub Jelinek  <jakub@redhat.com>
17705         * configure.ac: Move futex checking into ../config/futex.m4.
17706         * configure: Rebuilt.
17707         * aclocal.m4: Rebuilt.
17708         * Makefile.in: Rebuilt.
17710         * configure.tgt: Rename have_tls to gcc_cv_have_tls to match
17711         2007-10-15 ../config/tls.m4 change.
17713 2007-12-19  Jakub Jelinek  <jakub@redhat.com>
17715         PR c++/34513
17716         * testsuite/libgomp.c/pr34513.c: New test.
17717         * testsuite/libgomp.c++/pr34513.C: New test.
17719 2007-12-17  Jack Howarth  <howarth@bromo.med.uc.edu>
17721         PR target/32765
17722         * testsuite/libgomp.fortran/crayptr2.f90: Move dg-options for darwin.
17724 2007-12-04  Jakub Jelinek  <jakub@redhat.com>
17726         * omp.h.in (__GOMP_NOTHROW): Define.  Use it on omp_* prototypes.
17728 2007-12-03  Jakub Jelinek  <jakub@redhat.com>
17730         * testsuite/libgomp.c/private-1.c: New test.
17732 2007-11-29  Andris Pavenis <andris.pavenis@iki.fi>
17733             Paolo Bonzini  <bonzini@gnu.org>
17735         * Makefile.am: Use space as vpath separator.  Use 'vpath %'
17736         instead of 'VPATH ='.
17737         * Makefile.in: Regenerate.
17739 2007-11-23  Matthias Klose  <doko@ubuntu.com>
17741         * configure.ac: Adjust makeinfo version check.
17742         * configure: Regenerate.
17744 2007-11-10  Jakub Jelinek  <jakub@redhat.com>
17746         PR fortran/34020
17747         * testsuite/libgomp.fortran/pr34020.f90: New test.
17749 2007-11-06  Jakub Jelinek  <jakub@redhat.com>
17751         PR c++/33894
17752         * testsuite/libgomp.c++/atomic-1.C: New test.
17754 2007-10-25  Jakub Jelinek  <jakub@redhat.com>
17756         PR libgomp/33275
17757         * testsuite/libgomp.fortran/omp_parse3.f90 (test_threadprivate):
17758         Make x and y integers rather than (implicit) reals.  Add private (j)
17759         clause to the last omp parallel.
17761 2007-10-15  Maciej W. Rozycki  <macro@linux-mips.org>
17763         * configure: Regenerate following changes to ../config/tls.m4.
17765 2007-09-28  Jakub Jelinek  <jakub@redhat.com>
17767         * testsuite/libgomp.fortran/stack.f90: New test.
17769 2007-09-10  Danny Smith  <dannysmith@users.sourceforge.net>
17771         * config/mingw32/proc.c: New file.
17773 2007-09-05  Uros Bizjak  <ubizjak@gmail.com>
17775         * testsuite/libgomp.c/atomic-1.c: Include cpuid.h for i386 targets.
17776         (main): Use __get_cpuid to get i386 target fetaures.
17777         * testsuite/libgomp.c/atomic-2.c: Include cpuid.h for x86_64 targets.
17778         (main): Use __get_cpuid to get x86_64 target fetaures.
17780 2007-08-15  Jack Howarth  <howarth@bromo.med.uc.edu>
17782         PR target/32765
17783         * testsuite/libgomp.fortran/pr32550.f90: Use -static-libgcc on Darwin.
17784         * testsuite/libgomp.fortran/crayptr2.f90: Likwise.
17786 2007-07-12  Jakub Jelinek  <jakub@redhat.com>
17788         PR fortran/32550
17789         * testsuite/libgomp.fortran/pr32550.f90: New test.
17790         * testsuite/libgomp.fortran/crayptr2.f90: New test.
17792 2007-07-05  H.J. Lu  <hongjiu.lu@intel.com>
17794         * aclocal.m4: Regenerated.
17796 2007-07-05  Tobias Burnus  <burnus@net-b.de>
17798         PR fortran/32359
17799         * testsuite/libgomp.fortran/pr32359.f90: New.
17801 2007-07-02  Jakub Jelinek  <jakub@redhat.com>
17803         PR libgomp/32468
17804         * sections.c (GOMP_parallel_sections_start): Only decrease
17805         number of threads to COUNT if dyn_var is true.
17806         * testsuite/libgomp.c/pr32468.c: New test.
17808 2007-07-02  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
17810         PR libgomp/26308
17811         * config/posix/lock.c (_XOPEN_SOURCE): Don't define on Tru64 UNIX.
17813 2007-06-21  Jakub Jelinek  <jakub@redhat.com>
17815         PR middle-end/32362
17816         * testsuite/libgomp.c/pr32362-1.c: New test.
17817         * testsuite/libgomp.c/pr32362-2.c: New test.
17818         * testsuite/libgomp.c/pr32362-3.c: New test.
17820 2007-06-07  Jakub Jelinek  <jakub@redhat.com>
17822         * team.c (gomp_team_start): Fix setting up thread_attr
17823         stack size.
17825 2007-06-02  Paolo Bonzini  <bonzini@gnu.org>
17827         * configure: Regenerate.
17829 2007-05-23  Steve Ellcey  <sje@cup.hp.com>
17831         * Makefile.in: Regenerate.
17832         * configure: Regenerate.
17833         * aclocal.m4: Regenerate.
17834         * testsuite/Makefile.in: Regenerate.
17836 2007-05-04  Jakub Jelinek  <jakub@redhat.com>
17838         * config/linux/proc.c: New file.
17840         PR libgomp/28482
17841         * configure.tgt: Don't link with -Wl,-z,nodlopen even on Linux.
17843 2007-04-19  Daniel Franke  <franke.daniel@gmail.com>
17845         * libgomp.texi (GOMP_CPU_AFFINITY): Updated.
17847 2007-04-16  Matthias Klose  <doko@debian.org>
17849         * configure.tgt (i[456]86-*-linux*): Only add ia32 specific
17850         flags if not building with -m64.
17851         * testsuite/lib/libgomp-dg.exp (libgomp_init): Don't add -march
17852         flag for i?86-*-* targets, if current target matches -m64.
17854 2007-04-14  Steve Ellcey  <sje@cup.hp.com>
17856         * Makefile.am: Add -I .. to ACLOCAL_AMFLAGS.
17857         * Makefile.in: Regenerate.
17859 2007-04-07  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
17861         PR testsuite/31369
17862         * testsuite/libgomp.c++/c++.exp: Don't use concat when setting
17863         ld_library_path.
17864         * testsuite/libgomp.fortran/fortran.exp: Likewise.
17866 2007-04-04  Jakub Jelinek  <jakub@redhat.com>
17868         * libgomp.h (gomp_cpu_affinity, gomp_cpu_affinity_len): New extern
17869         decls.
17870         (gomp_init_affinity, gomp_init_thread_affinity): New prototypes.
17871         * env.c (gomp_cpu_affinity, gomp_cpu_affinity_len): New variables.
17872         (parse_affinity): New function.
17873         (initialize_env): Call it and gomp_init_affinity.
17874         * team.c (gomp_team_start): If gomp_cpu_affinity != NULL,
17875         create new pthread_attr_t and call gomp_init_thread_affinity
17876         on it for each thread before passing the attribute to pthread_create.
17877         * config/linux/affinity.c: New file.
17878         * config/posix/affinity.c: New file.
17879         * configure.ac (HAVE_PTHREAD_AFFINITY_NP): New test.
17880         * configure: Rebuilt.
17881         * config.h.in: Rebuilt.
17882         * Makefile.am (libgomp_la_SOURCES): Add affinity.c.
17883         * Makefile.in: Rebuilt.
17885 2007-03-23  Andreas Tobler  <a.tobler@schweiz.org>
17887         * testsuite/lib/libgomp.exp (libgomp_init): Add -shared-libgcc for
17888         *-*-darwin*.
17889         * testsuite/libgomp.c++/c++.exp: Look for shared libstdc++ library
17890         and use it if found.
17892 2007-03-18  Uros Bizjak  <ubizjak@gmail.com>
17894         * testsuite/config/default.exp: New file.
17895         * testsuite/lib/libgomp.exp: New file.
17896         * testsuite/lib/libgomp.dg (load_gcc_lib, libgomp_init,
17897         libgomp_target_compile, libgomp_option_help, libgomp_option_proc,
17898         load_lib *, load_gcc_lib *): Move to libgomp.exp.
17899         (libgomp_load): Remove.
17900         * testsuite/lib/libgomp.exp (libgomp_init): Compute
17901         always_ld_library_path, not ld_library_path.  Set additional_flags
17902         to -march=i486 for ilp32 x86_64-*-* and i386-*-* targets.
17903         (target_compile): Do not call libgomp_init.  Append lang_library_path
17904         and lang_link_flags to options.
17905         * testsuite/libgomp.c/c.exp: Set DEFAULT_FLAGS to -O2.  Set
17906         ld_library_path from always_ld_library_path.  Set LD_LIBRARY_PATH
17907         here.
17908         * testsuite/libgomp.c++/c++.exp: Set ld_library_path from
17909         always_ld_library_path.  Set LD_LIBRARY_PATH here.
17910         * testsuite/libgomp.fortran/fortran.exp: Ditto.
17911         * testsuite/libgomp.c/atomic-1.c: Set dg-options to
17912         "-O2 -march=pentium" for ilp32 x86 targets. Simplify check for
17913         CX8 flag.
17914         * testsuite/libgomp.c/atomic-2.c: Set dg-options to "-O2 -mcx16" for
17915         lp64 x86 targets. Do not check for SSE3 bit. Do not define bit_SSE3.
17916         * testsuite/libgomp.c/pr29947-1.c: Remove default dg-options.
17917         * testsuite/libgomp.c/pr29947-1.c: Ditto.
17918         * testsuite/libgomp.c/atomic-10.c: Ditto.
17920 2007-03-21  Jakub Jelinek  <jakub@redhat.com>
17922         * testsuite/libgomp.fortran/appendix-a/a.22.8.f90: Add
17923         dg-final cleanup-modules line.
17924         * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: Likewise.
17925         * testsuite/libgomp.fortran/appendix-a/a.31.5.f90: Likewise.
17926         * testsuite/libgomp.fortran/appendix-a/a.31.4.f90: Likewise.
17927         * testsuite/libgomp.fortran/threadprivate2.f90: Likewise.
17928         * testsuite/libgomp.fortran/reduction5.f90: Likewise.
17929         * testsuite/libgomp.fortran/threadprivate3.f90: Likewise.
17930         * testsuite/libgomp.fortran/threadprivate1.f90: Likewise.
17932 2007-03-18  Andreas Schwab  <schwab@suse.de>
17934         * acinclude.m4: Adjust regular expression for ld version
17935         extraction.
17936         * configure: Regenerate.
17938 2007-03-01  Brooks Moses  <brooks.moses@codesourcery.com>
17940         * Makefile.am: Add install-pdf target as copied from
17941         automake v1.10 rules.
17942         * Makefile.in: Regenerate
17944 2007-02-07  Jakub Jelinek  <jakub@redhat.com>
17946         PR libgomp/28486
17947         * configure: Regenerate.
17949         PR c++/30703
17950         * testsuite/libgomp.c++/pr30703.C: New test.
17952 2007-02-02  Jakub Jelinek  <jakub@redhat.com>
17954         Revert:
17955         2006-07-05  Eric Christopher  <echristo@apple.com>
17956         * configure.ac: Depend addition of -pthread on host OS.
17957         * configure: Regenerate.
17959 2007-01-31  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17961         * libgomp.texi: Fix spacing after abbreviations.
17963 2007-01-31  Daniel Franke <franke.daniel@gmail.com>
17965         PR libgomp/30546
17966         * configure.ac: Add check for makeinfo
17967         * Makefile.am: Redefined target libgomp.info, build libgomp.info only
17968         if an appropriate version of makeinfo is found.
17969         * aclocal.m4: Regenerated.
17970         * configure: Regenerated.
17971         * Makefile.in: Regenerated.
17972         * testsuite/Makefile.in: Regenerated.
17974 2007-01-29  Daniel Franke <franke.daniel@gmail.com>
17976         PR libgomp/30540
17977         * libgomp.texi: More about implementation-dependent settings.
17979 2007-01-26  Tobias Burnus  <burnus@net-b.de>
17981         * testsuite/libgomp.fortran/fortran.exp: Support .f03 extension.
17983 2007-01-24  Jakub Jelinek  <jakub@redhat.com>
17985         PR middle-end/30494
17986         * testsuite/libgomp.c/pr30494.c: New test.
17988 2007-01-15  Tom Tromey  <tromey@redhat.com>
17990         * configure: Rebuilt.
17991         * configure.ac: Fixed comment.
17993 2007-01-14  Daniel Franke  <franke.daniel@gmail.com>
17995         * libgomp.texi: Document implementation specific default values of
17996         environment variables.
17998 2006-12-21  Daniel Franke  <franke.daniel@gmail.com>
18000         PR libgomp/28209
18001         * libgomp.texi: New file.
18002         * configure.ac: Add --enable-generated-files-in-srcdir option.
18003         * Makefile.am: Add info, dvi, pdf, html targets. On request, copy
18004         files to srcdir.
18005         * Makefile.in: Regenerated.
18006         * config.h.in: Regenerated.
18007         * testsuite/Makefile.in: Regenerated.
18008         * NOTES: Removed.
18010 2006-12-04  Daniel Franke  <franke.daniel@gmail.com>
18012         PR libgomp/29949
18013         * env.c (omp_set_num_threads): Set illegal thread count to 1.
18015 2006-12-04  Eric Botcazou  <ebotcazou@libertysurf.fr>
18017         * configure: Regenerate.
18019 2006-12-04  Jakub Jelinek  <jakub@redhat.com>
18021         PR libgomp/29947
18022         * loop.c (gomp_loop_init): Make parameters signed.  Set ws->end to
18023         start if there shouldn't be any loop iterations.
18024         (gomp_loop_ordered_static_start): Remove start == end test.
18025         * testsuite/libgomp.c/pr29947-1.c: New test.
18026         * testsuite/libgomp.c/pr29947-2.c: New test.
18028 2006-12-02  Eric Botcazou  <ebotcazou@libertysurf.fr>
18030         * configure.tgt: Force initial-exec TLS model on Linux only.
18032 2006-11-13  Daniel Jacobowitz  <dan@codesourcery.com>
18034         * configure: Regenerated.
18036 2006-11-09  Uros Bizjak  <ubizjak@gmail.com>
18038         * env.c (parse_schedule): Reject out of range values.
18039         (parse_unsigned_long): Reject out of range, negative or zero values.
18041 2006-10-29  Jakub Jelinek  <jakub@redhat.com>
18043         PR fortran/29629
18044         * testsuite/libgomp.fortran/pr29629.f90: New test.
18046 2006-10-24  Eric Botcazou  <ebotcazou@libertysurf.fr>
18048         PR libgomp/29494
18049         * configure.tgt: Use posix95 configuration for Solaris 2.5.1 and 2.6.
18050         * config/posix95: New directory.
18051         * config/posix95/omp-lock.h: New file.
18052         * config/posix95/lock.c: Likewise.
18054 2006-10-14  Geoffrey Keating  <geoffk@apple.com>
18056         * aclocal.m4: Regenerate.
18057         * configure: Regenerate.
18059 2006-10-05  Danny Smith  <dannysmith@users.sourceforge.net>
18061         * testsuite/libgomp.c/barrier-1.c: Change timestamp tests from
18062         '<' to '<='.
18064 2006-10-05  Danny Smith  <dannysmith@users.sourceforge.net>
18066         * acinclude.m4 (HAVE_ATTRIBUTE_ALIAS): Remove __USER_LABEL_PREFIX__ from
18067         test.
18068         * configure: Regenerate.
18069         * fortran.c  (ialias_redirect): Add __USER_LABEL_PREFIX__ to alias.
18071 2006-09-26  Jakub Jelinek  <jakub@redhat.com>
18073         PR middle-end/25261
18074         PR middle-end/28790
18075         * testsuite/libgomp.c/nestedfn-4.c: New test.
18076         * testsuite/libgomp.c/nestedfn-5.c: New test.
18077         * testsuite/libgomp.fortran/nestedfn3.f90: New test.
18079         PR fortran/29097
18080         * testsuite/libgomp.fortran/condinc1.f: New test.
18081         * testsuite/libgomp.fortran/condinc2.f: New test.
18082         * testsuite/libgomp.fortran/condinc3.f90: New test.
18083         * testsuite/libgomp.fortran/condinc4.f90: New test.
18084         * testsuite/libgomp.fortran/condinc1.inc: New file.
18086 2006-09-18  Tom Tromey  <tromey@redhat.com>
18088         * configure: Rebuilt.
18090 2006-09-13  Joseph S. Myers  <joseph@codesourcery.com>
18092         PR c/28768
18093         PR preprocessor/14634
18094         * configure.ac (HAVE_CLOCK_GETTIME): Add missing second argument
18095         to AC_DEFINE.
18096         * configure: Regenerate.
18098 2006-09-08  Steven G. Kargl  <kargl@gcc.gnu.org>
18100         * testsuite/libgomp.fortran/reduction3.f90: Change
18101         -2147483648 to -huge(i)-1 to avoid overflow.
18102         * testsuite/libgomp.fortran/reduction4.f90: Change
18103         Z'ffffffff' to not(0) to avoid overflow.
18105 2006-08-26  Joseph S. Myers  <joseph@codesourcery.com>
18107         PR libgomp/25938
18108         * Makefile.am (libsubincludedir): New.
18109         (nodist_include_HEADERS): Rename to nodist_libsubinclude_HEADERS.
18110         * Makefile.in: Regenerate.
18112 2006-08-17  Jakub Jelinek  <jakub@redhat.com>
18114         PR libgomp/28725
18115         * env.c: Include ctype.h.
18116         (parse_schedule, parse_unsigned_long, parse_boolean): Allow
18117         leading and/or trailing whitespace and compare strings case
18118         insensitively.
18120 2006-07-16  Jakub Jelinek  <jakub@redhat.com>
18122         PR fortran/28390
18123         * testsuite/libgomp.fortran/pr28390.f: New test.
18125 2006-07-05  Eric Christopher  <echristo@apple.com>
18127         * configure.ac: Depend addition of -pthread on host OS.
18128         * configure: Regenerate.
18130 2006-06-21  Jakub Jelinek  <jakub@redhat.com>
18132         * critical.c (GOMP_critical_name_start): Fix *pptr initialization
18133         when gomp_mutex_t is larger than pointer and HAVE_SYNC_BUILTINS is
18134         defined.
18136 2006-06-20  Jakub Jelinek  <jakub@redhat.com>
18138         PR libgomp/26175
18139         PR libgomp/26477
18140         * configure.ac: If neither --enable-linux-futex nor
18141         --disable-linux-futex is passed, determine the default by checking
18142         for compiling and/or running against NPTL.  With --enable-linux-futex,
18143         check if SYS_gettid and SYS_futex are defined.
18144         * configure: Rebuilt.
18146 2006-06-14  Richard Henderson  <rth@redhat.com>
18148         PR libgomp/28008
18149         * env.c (initialize_env): Avoid using PTHREAD_STACK_MIN when
18150         undefined.  Use GOMP_STACKSIZE not OMP_STACKSIZE for environment.
18152 2006-06-09  Richard Henderson  <rth@redhat.com>
18154         * env.c (gomp_nthreads_var): Change to unsigned long.
18155         (gomp_run_sched_chunk): Likewise.
18156         (parse_unsigned_long): Rename from parse_num_threads and generalize.
18157         (initialize_env): Initialize gomp_thread_attr.
18158         * libgomp.h (gomp_nthreads_var): Update decl.
18159         (gomp_run_sched_chunk): Likewise.
18160         (gomp_thread_attr): Declare.
18161         * team.c (gomp_thread_attr): Export.
18162         (initialize_team): Don't initialize it.
18164 2006-06-09  Jakub Jelinek  <jakub@redhat.com>
18166         PR fortran/27916
18167         * testsuite/libgomp.fortran/pr27916-1.f90: New test.
18168         * testsuite/libgomp.fortran/pr27916-2.f90: New test.
18170 2006-06-06  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
18172         * config/mingw32/time.c: New file.
18173         * configure.tgt: Use it.
18175 2006-05-23  Carlos O'Donell  <carlos@codesourcery.com>
18177         * Makefile.am: Add install-html target. Add install-html to .PHONY
18178         * Makefile.in: Regenerate.
18180 2006-05-22  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
18182         PR libgomp/27612
18183         * testsuite/libgomp.c/sections-1.c: Require sync_int_long.
18184         * testsuite/libgomp.c/critical-1.c: Likewise.
18185         * testsuite/libgomp.c/loop-1.c: Likewise.
18186         * testsuite/libgomp.c/loop-2.c: Likewise.
18187         * testsuite/libgomp.c/single-1.c: Likewise.
18188         * testsuite/libgomp.c/ordered-1.c: Likewise.
18189         * testsuite/libgomp.c/ordered-2.c: Likewise.
18191 2006-05-15  Jakub Jelinek  <jakub@redhat.com>
18193         PR middle-end/27416
18194         * libgomp.fortran/pr27416-1.f90: New test.
18196 2006-05-03  Jakub Jelinek  <jakub@redhat.com>
18198         PR fortran/27395
18199         * testsuite/libgomp.fortran/pr27395-1.f90: New test.
18200         * testsuite/libgomp.fortran/pr27395-2.f90: New test.
18202 2006-05-02  Jakub Jelinek  <jakub@redhat.com>
18204         PR c++/26943
18205         * testsuite/libgomp.c/pr26943-1.c: New test.
18206         * testsuite/libgomp.c/pr26943-2.c: New test.
18207         * testsuite/libgomp.c/pr26943-3.c: New test.
18208         * testsuite/libgomp.c/pr26943-4.c: New test.
18209         * testsuite/libgomp.c++/pr27337.C: Remove barrier.
18210         * testsuite/libgomp.c++/pr26943.C: New test.
18212 2006-05-02  Jakub Jelinek  <jakub@redhat.com>
18214         PR middle-end/27337
18215         * testsuite/libgomp.c++/pr27337.C: New test.
18217 2006-04-26  Jakub Jelinek  <jakub@redhat.com>
18219         PR c/26171
18220         * testsuite/libgomp.c/pr26171.c: New test.
18222 2006-04-25  Richard Henderson  <rth@redhat.com>
18224         PR libgomp/25865
18225         * configure.ac: Use GCC_CHECK_TLS.
18226         * acinclude.m4 (LIBGOMP_CHECK_TLS): Remove.
18227         * Makefile.in, aclocal.m4, configure: Regenerate.
18229 2006-04-10  Matthias Klose  <doko@debian.org>
18231         * testsuite/lib/libgomp.exp (libgomp_init): Recognize multilib
18232         directory names containing underscores.
18234 2006-03-21  Jakub Jelinek  <jakub@redhat.com>
18236         PR c++/26691
18237         * testsuite/libgomp.c++/pr26691.C: New test.
18239 2006-03-13  Jakub Jelinek  <jakub@redhat.com>
18241         * testsuite/libgomp.fortran/retval2.f90: New test.
18243 2006-03-09  Diego Novillo  <dnovillo@redhat.com>
18245         * testsuite/libgomp.c++: New directory.
18247 2006-02-25  Shantonu Sen  <ssen@opendarwin.org>
18249         * config/posix/sem.h: Define BROKEN_POSIX_SEMAPHORES functions.
18250         * config/posix/sem.c: Implement the above.
18252 2006-02-25  Andreas Tobler  <a.tobler@schweiz.ch>
18254         * configure.ac (HAVE_BROKEN_POSIX_SEMAPHORES): Check for darwin and
18255         define HAVE_BROKEN_POSIX_SEMAPHORES.
18256         * configure: Rebuilt.
18257         * config.h.in: Rebuilt.
18259 2006-02-17  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
18261         PR bootstrap/26161
18262         * configure.ac: Remove AC_CHECK_HEADER for pthread.h. Add comment
18263         for the other pthread check.
18264         * configure: Regenerate.
18265         * config.h.in: Regenerate.
18267 2006-02-15  Jakub Jelinek  <jakub@redhat.com>
18269         PR libgomp/25938
18270         PR libgomp/25984
18271         * Makefile.am (fincludedir): New variable.
18272         (nodist_include_HEADERS): Remove Fortran files.
18273         (nodist_finclude_HEADERS): New variable.
18274         * Makefile.in: Regenerated.
18276 2006-02-13  Jakub Jelinek  <jakub@redhat.com>
18278         * testsuite/libgomp.fortran/vla7.f90: Add -w to options.
18279         Remove tests for returning assumed character length arrays.
18281 2006-02-12  Roger Sayle  <roger@eyesopen.com>
18282             John David Anglin  <dave@hiauly1.hia.nrc.ca>
18284         PR libgomp/25936
18285         * configure.tgt: Link against -lrt for sem_init on HPUX v11 systems.
18287 2006-02-08  Ulrich Weigand  <uweigand@de.ibm.com>
18289         * testsuite/lib/libgomp-dg.exp: Load scanrtl.exp library.
18291 2006-02-07  Eric Botcazou  <ebotcazou@libertysurf.fr>
18293         * testsuite/lib/libgomp-dg.exp (libgomp_init): Compute multilib related
18294         part of LD_LIBRARY_PATH manually.
18296 2006-02-03  H.J. Lu  <hongjiu.lu@intel.com>
18298         PR libgomp/25852
18299         * testsuite/lib/libgomp-dg.exp (blddir): Set it in
18300         libgomp_init.
18302 2005-01-25  Paolo Bonzini  <bonzini@gnu.org>
18304         PR libgomp/25884
18305         * Makefile.am (omp.h, omp_lib.h, omp_lib.f90, libgomp_f.h): Remove.
18306         * configure.ac (PERL): Don't set.
18307         (gstdint.h, omp.h, omp_lib.h, omp_lib.f90, libgomp_f.h): Create here.
18308         (OMP_LOCK_SIZE, OMP_LOCK_ALIGN, OMP_LOCK_KIND, OMP_NEST_LOCK_SIZE,
18309         OMP_NEST_LOCK_ALIGN, OMP_NEST_LOCK_KIND): New substitutions.
18310         * omp.h.in: Wrap the new configure substitutions with @ characters.
18311         * omp_lib.h.in, omp_lib.f90.in, libgomp_f.h.in: Likewise.
18312         * aclocal.m4, configure, Makefile.in: Regenerate.
18313         * mkomp_h.pl: Delete.
18315 2005-01-24  Paolo Bonzini  <bonzini@gnu.org>
18317         PR libgomp/25259
18318         * configure.ac: Use GCC_HEADER_STDINT.
18319         * libgomp.h: Include gstdint.h.
18320         * libgomp_f.h.in: Don't include stdint.h or inttypes.h.
18321         * configure, Makefile.in, testsuite/Makefile.in, aclocal.m4: Rebuild.
18323 2006-01-24  Richard Henderson  <rth@redhat.com>
18325         PR libgomp/25942
18326         * configure.ac: Add AM_MAINTAINER_MODE.
18327         * Makefile.in, aclocal.m4, configure, testsuite/Makefile.in: Rebuild.
18329 2006-01-24  Diego Novillo  <dnovillo@redhat.com>
18331         * Makefile.in: Regenerate.
18332         * testsuite/Makefile.in: Regenerate.
18333         * aclocal.m4: Regenerate.
18335 2006-01-23  Andreas Tobler  <a.tobler@schweiz.ch>
18337         * config/posix/proc.c: Conditional include of sys/loadavg.h for
18338         Solaris.
18339         * configure.ac: Add check for loadavg.h.
18340         (link_gomp): Adjust comment.
18341         * configure: Regenerate.
18342         * config.h.in: Regenerate.
18344 2006-01-21  Steve Ellcey  <sje@cup.hp.com>
18346         PR libgomp/25877
18347         * configure.ac: Remove check for alloca.h.
18348         * configure: Regenerate.
18349         * config.h.in: Regenerate.
18350         * libgomp.h: define gomp_alloca to be __builtin_alloca.
18351         * team.c: Remove use of alloca.h.
18352         Call gomp_alloca instead of alloca.
18354 2006-01-20  Steve Ellcey  <sje@cup.hp.com>
18356         PR libgomp/25877
18357         * team.c: Add include of alloca.h.
18358         * configure.ac: Add check for alloca.h.
18359         * configure: Regenerate.
18360         * config.h.in: Regenerate.
18362 2006-01-17  Jakub Jelinek  <jakub@redhat.com>
18364         PR fortran/25219
18365         * testsuite/libgomp.fortran/pr25219.f90: New test.
18367 2005-12-05  Uros Bizjak  <uros@kss-loka.si>
18369         * testsuite/libgomp.c/pr24455.c, testsuite/libgomp.c/copyin-1.c,
18370         testsuite/libgomp.c/copyin-2.c, testsuite/libgomp.c/copyin-3.c,
18371         testsuite/libgomp.c++/copyin-1.C, testsuite/libgomp.c++/copyin-2.C,
18372         testsuite/libgomp.c++/ctor-5.C, testsuite/libgomp.c++/ctor-8.C,
18373         testsuite/libgomp.c++/ctor-9.C, testsuite/libgomp.c++/pr24455.C,
18374         testsuite/libgomp.fortran/threadprivate1.f90,
18375         testsuite/libgomp.fortran/threadprivate2.f90,
18376         testsuite/libgomp.fortran/threadprivate3.f90,
18377         testsuite/libgomp.fortran/appendix-a/a.22.7.f9,
18378         testsuite/libgomp.fortran/appendix-a/a.22.8.f9,
18379         testsuite/libgomp.fortran/omp_parse3.f90: Change required
18380         effective-target to TLS runtime.
18382         * testsuite/libgomp.fortran/pr25162.f: Require
18383         effective-target TLS runtime.
18385 2005-12-01  Jakub Jelinek  <jakub@redhat.com>
18387         * testsuite/libgomp.fortran/nestedfn2.f90: New test.
18388         * testsuite/libgomp.c/nestedfn-3.c: New test.
18390 2005-11-30  Jakub Jelinek  <jakub@redhat.com>
18392         PR fortran/25162
18393         * testsuite/libgomp.fortran/pr25162.f: New test.
18395 2005-11-28  Jakub Jelinek  <jakub@redhat.com>
18397         * config/posix/time.c (omp_get_wtime, omp_get_wtick): Fall back to
18398         CLOCK_REALTIME if clock_* (CLOCK_MONOTONIC, &ts) call failed.
18400 2005-11-25  Jakub Jelinek  <jakub@redhat.com>
18402         * alloc.c, barrier.c, critical.c, env.c, error.c, fortran.c, iter.c,
18403         libgomp.h, libgomp_f.h.in, libgomp_g.h, loop.c, mkomp_h.pl, omp.h.in,
18404         omp_lib.f90.in, omp_lib.h.in, ordered.c, parallel.c, sections.c,
18405         single.c, team.c, work.c, config/linux/alpha/futex.h,
18406         config/linux/bar.c, config/linux/bar.h, config/linux/ia64/futex.h,
18407         config/linux/lock.c, config/linux/mutex.c, config/linux/mutex.h,
18408         config/linux/powerpc/futex.h, config/linux/s390/futex.h,
18409         config/linux/sem.c, config/linux/sem.h, config/linux/sparc/futex.h,
18410         config/linux/x86/futex.h, config/posix/bar.c, config/posix/bar.h,
18411         config/posix/lock.c, config/posix/mutex.h, config/posix/proc.c,
18412         config/posix/sem.c, config/posix/sem.h, config/posix/time.c: Update
18413         FSF address.
18415 2005-11-18  Jakub Jelinek  <jakub@redhat.com>
18417         * Makefile.am: Move libgomp_f.h from nodist_include_HEADERS
18418         to nodist_noinst_HEADERS.
18419         * Makefile.in: Rebuilt.
18421         * config/posix/omp-lock.h (omp_nest_lock_t): Change into struct,
18422         add integer count field.
18423         * config/posix/lock.c (omp_destroy_nest_lock): Adjust for
18424         omp_nest_lock_t type change.
18425         (omp_init_nest_lock): Likewise.  Initialize count to 0.
18426         (omp_set_nest_lock): Adjust for omp_nest_lock_t type change.
18427         Increment count.
18428         (omp_unset_nest_lock): Adjust for omp_nest_lock_t type change.
18429         Decrement count.
18430         (omp_test_nest_lock): Adjust for omp_nest_lock_t type change.
18431         Increment count if successful and return the new nesting level.
18432         * config/linux/lock.c (omp_test_nest_lock): Return new nesting level.
18433         * omp_lib.f90.in (omp_test_lock): Fix LOCK argument type.
18434         * testsuite/libgomp.c/lib-1.c: New test.
18435         * testsuite/libgomp.fortran/lib1.f90: New test.
18436         * testsuite/libgomp.fortran/lib2.f: New test.
18437         * testsuite/libgomp.fortran/lib3.f: New test.
18439 2005-11-17  Richard Henderson  <rth@redhat.com>
18441         PR 24845
18442         * Makefile.am (nodist_toolexeclib_HEADERS): New.
18443         * configure.ac (link_gomp): New.  Substitute it.
18444         (AC_CONFIG_FILES): Add libgomp.spec.
18445         * libgomp.spec.in: New file.
18446         * Makefile.in, testsuite/Makefile.in, configure: Rebuild.
18447         * testsuite/lib/libgomp-dg.exp: Add -B${blddir}/ to flags.
18449 2005-11-18  Jakub Jelinek  <jakub@redhat.com>
18451         * testsuite/libgomp.fortran/reduction1.f90: Adjust for
18452         reduction(-:var) behaving the same as reduction(+:var).
18453         * testsuite/libgomp.c/reduction-4.c: New test.
18455 2005-11-15  Uros Bizjak  <uros@kss-loka.si>
18457         * testsuite/libgomp.c/pr24455-1.c, testsuite/libgomp.c/pr24455.c,
18458         testsuite/libgomp.c/copyin-1.c, testsuite/libgomp.c/copyin-2.c,
18459         testsuite/libgomp.c/copyin-3.c,
18460         testsuite/libgomp.c++/copyin-1.C, testsuite/libgomp.c++/copyin-2.C,
18461         testsuite/libgomp.c++/ctor-5.C, testsuite/libgomp.c++/ctor-8.C,
18462         testsuite/libgomp.c++/ctor-9.C, testsuite/libgomp.c++/pr24455-1.C,
18463         testsuite/libgomp.c++/pr24455.C,
18464         testsuite/libgomp.fortran/threadprivate1.f90,
18465         testsuite/libgomp.fortran/threadprivate2.f90,
18466         testsuite/libgomp.fortran/threadprivate3.f90,
18467         testsuite/libgomp.fortran/appendix-a/a.22.7.f9,
18468         testsuite/libgomp.fortran/appendix-a/a.22.8.f9,
18469         testsuite/libgomp.fortran/omp_parse3.f90: Require
18470         effective-target TLS.
18472 2005-11-14  Diego Novillo  <dnovillo@redhat.com>
18474         * HEADER: Remove.
18476 2005-11-13  Jakub Jelinek  <jakub@redhat.com>
18478         PR libgomp/24797
18479         * team.c (initialize_team): Pass NULL rather than free as
18480         pthread_key_create destructor.  Initialize thread specific data
18481         pointer in initial thread to a static local variable rather than
18482         malloced memory.
18484 2005-11-11  Uros Bizjak  <uros@kss-loka.si>
18486         * testsuite/lib/libgomp-dg.exp: Locate libgcc.a and append
18487         its location to ld_library_path.
18489 2005-11-10  Diego Novillo  <dnovillo@redhat.com>
18491         * testsuite/libgomp.c/c.exp: Rename from dg.exp.
18493 2005-11-10  Diego Novillo  <dnovillo@redhat.com>
18495         * testsuite/libgomp.c: Rename from libgomp.dg.
18497 2005-11-09  Diego Novillo  <dnovillo@redhat.com>
18499         * testsuite/libgomp.c++/pr24455.C: Add copyin clause for
18500         threadprivate variable 'i'.
18502 2005-11-09  Jakub Jelinek  <jakub@redhat.com>
18504         * config/linux/s390/futex.h: New file.
18505         * configure.tgt: Use it.
18507         * testsuite/libgomp.fortran/omp_parse4.f90: Move n initialization
18508         before the parallel.
18510 2005-11-08  Jakub Jelinek  <jakub@redhat.com>
18512         PR c++/24734
18513         * testsuite/libgomp.c++/master-1.C: New test.
18515 2005-11-07  Jakub Jelinek  <jakub@redhat.com>
18517         * testsuite/libgomp.dg/copyin-3.c: New test.
18519 2005-11-07  Jakub Jelinek  <jakub@redhat.com>
18521         * testsuite/libgomp.fortran/retval1.f90: New test.
18522         * testsuite/libgomp.fortran/vla7.f90: New test.
18524 2005-11-06  Jakub Jelinek  <jakub@redhat.com>
18526         * testsuite/libgomp.fortran/vla2.f90: New test.
18527         * testsuite/libgomp.fortran/vla3.f90: New test.
18528         * testsuite/libgomp.fortran/vla4.f90: New test.
18529         * testsuite/libgomp.fortran/vla5.f90: New test.
18530         * testsuite/libgomp.fortran/vla6.f90: New test.
18532 2005-11-01  Jakub Jelinek  <jakub@redhat.com>
18534         * config/linux/sparc/futex.h: New file.
18535         * configure.tgt: Use it.
18536         * testsuite/lib/libgomp-dg.exp: Use -mcpu=v9 for sparc testing.
18538         * critical.c: Include stdlib.h.
18539         * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS): Avoid warnings about
18540         ignoring return value.
18541         * configure.ac: Don't put -Wc,-pthread into XCFLAGS until after
18542         LIBGOMP_CHECK_SYNC_BUILTINS check.
18543         * configure: Rebuilt.
18545 2005-10-31  Jakub Jelinek  <jakub@redhat.com>
18547         * testsuite/libgomp.fortran/vla1.f90: New test.
18549 2005-10-31  Richard Henderson  <rth@redhat.com>
18551         * testsuite/libgomp.fortran/character2.f90: Fix race condition
18552         setting 's' in different threads.
18554 2005-10-31  Jakub Jelinek  <jakub@redhat.com>
18556         * libgomp.h (attribute_hidden, ialias): Define.
18557         * config/posix/proc.c (omp_get_num_procs): Add ialias.
18558         * config/posix/time.c (omp_get_wtime, omp_get_wtick): Likewise.
18559         * config/posix/lock.c (omp_init_lock, omp_init_nest_lock,
18560         omp_destroy_lock, omp_destroy_nest_lock, omp_set_lock,
18561         omp_set_nest_lock, omp_unset_lock, omp_unset_nest_lock,
18562         omp_test_lock, omp_test_nest_lock): Likewise.
18563         * config/linux/lock.c (omp_init_lock, omp_init_nest_lock,
18564         omp_destroy_lock, omp_destroy_nest_lock, omp_set_lock,
18565         omp_set_nest_lock, omp_unset_lock, omp_unset_nest_lock,
18566         omp_test_lock, omp_test_nest_lock): Likewise.
18567         * env.c (omp_set_dynamic, omp_set_nested, omp_set_num_threads,
18568         omp_get_dynamic, omp_get_nested): Likewise.
18569         * parallel.c (omp_get_num_threads, omp_get_max_threads,
18570         omp_get_thread_num, omp_in_parallel): Likewise.
18571         * fortran.c (ialias_redirect): Define.
18572         (omp_init_lock, omp_init_nest_lock, omp_destroy_lock,
18573         omp_destroy_nest_lock, omp_set_lock, omp_set_nest_lock,
18574         omp_unset_lock, omp_unset_nest_lock, omp_test_lock,
18575         omp_test_nest_lock, omp_set_dynamic, omp_set_nested,
18576         omp_set_num_threads, omp_get_dynamic, omp_get_nested,
18577         omp_in_parallel, omp_get_max_threads, omp_get_num_procs,
18578         omp_get_num_threads, omp_get_thread_num, omp_get_wtick,
18579         omp_get_wtime): Add ialias_redirect.
18581 2005-10-30  Jakub Jelinek  <jakub@redhat.com>
18583         * fortran.c: Include stdlib.h.
18585 2005-10-29  Jakub Jelinek  <jakub@redhat.com>
18587         * Makefile.am (env.o, env.lo): Depend on libgomp_f.h.
18588         * Makefile.in: Regenerated.
18590 2005-10-28  Jakub Jelinek  <jakub@redhat.com>
18592         * mkomp_h.pl: Remove all -Wc, option prefixes in $COMPILE.
18593         * libgomp_f.h.in (omp_check_defines): New function.
18594         * env.c: Include libgomp_f.h.
18595         (initialize_env): Call omp_check_defines.
18597         * testsuite/libgomp.dg/copyin-2.c: New test.
18598         * testsuite/libgomp.c++/copyin-2.C: New test.
18599         * testsuite/libgomp.fortran/threadprivate3.f90: New test.
18601         * testsuite/libgomp.fortran/threadprivate2.f90: New test.
18602         * testsuite/libgomp.fortran/sharing2.f90: New test.
18604         * testsuite/libgomp.dg/copyin-1.c: New test.
18605         * testsuite/libgomp.c++/copyin-1.C: New test.
18607 2005-10-26  Jakub Jelinek  <jakub@redhat.com>
18609         * testsuite/libgomp.fortran/crayptr1.f90: New test.
18611         * testsuite/libgomp.fortran/workshare1.f90: New test.
18613         * libgomp.fortran/appendix-a/a.28.5.f90: Change into compile
18614         only test.
18615         * libgomp.fortran/sharing1.f90: New test.
18617 2005-10-24  Jakub Jelinek  <jakub@redhat.com>
18619         PR c++/24502
18620         * testsuite/libgomp.c++/loop-7.C: New test.
18622         * testsuite/libgomp.dg/nestedfn-2.c: New test.
18624         * testsuite/libgomp.dg/nestedfn-1.c: New test.
18625         * testsuite/libgomp.fortran/reduction6.f90: New test.
18626         * testsuite/libgomp.fortran/nestedfn1.f90: New test.
18628 2005-10-23  Richard Henderson  <rth@redhat.com>
18630         * testsuite/libgomp.c++/ctor-1.C: New.
18631         * testsuite/libgomp.c++/ctor-2.C: New.
18632         * testsuite/libgomp.c++/ctor-3.C: New.
18633         * testsuite/libgomp.c++/ctor-4.C: New.
18634         * testsuite/libgomp.c++/ctor-5.C: New.
18635         * testsuite/libgomp.c++/ctor-6.C: New.
18636         * testsuite/libgomp.c++/ctor-7.C: New.
18637         * testsuite/libgomp.c++/ctor-8.C: New.
18638         * testsuite/libgomp.c++/ctor-9.C: New.
18640 2005-10-21  Diego Novillo  <dnovillo@redhat.com>
18642         PR 24455
18643         * testsuite/libgomp.c++/pr24455-1.C: New test.
18644         * testsuite/libgomp.c++/pr24455.C: New test.
18645         * testsuite/libgomp.dg/pr24455-1.c: New test.
18646         * testsuite/libgomp.dg/pr24455.c: New test.
18648 2005-10-20  Richard Henderson  <rth@redhat.com>
18650         * testsuite/libgomp.c++/loop-6.C: New.
18651         * testsuite/libgomp.dg/loop-3.c: New.
18653 2005-10-20  Jakub Jelinek  <jakub@redhat.com>
18655         * testsuite/libgomp.fortran/jacobi.f: Don't make i and j
18656         explicitly private.
18657         * testsuite/libgomp.fortran/omp_parse1.f90 (test_do): Make i
18658         explicitly shared.
18660 2005-10-19  Diego Novillo  <dnovillo@redhat.com>
18662         * testsuite/libgomp.fortran/jacobi.f: New test.
18664 2005-10-19  Richard Henderson  <rth@redhat.com>
18666         * configure.tgt (i?86-linux): Default to with_arch instead of
18667         CFLAGS.  Add -mtune to match target_cpu.
18668         (x86_64-linux): Tune to i686.
18670         * fortran.c (omp_test_nest_lock_): Fix typo.
18672 2005-10-19  Jakub Jelinek  <jakub@redhat.com>
18674         * ordered.c (gomp_ordered_first, gomp_ordered_last, gomp_ordered_next,
18675         gomp_ordered_sync): Do nothing if team->nthreads == 1.
18676         * testsuite/libgomp.dg/ordered-3.c: New test.
18678         * testsuite/libgomp.dg/appendix-a/a.18.1.c: Remove unconditional abort.
18679         Remove volatile keyword.
18681         * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: Reorder variables
18682         in COMMON block to avoid warnings on 64-bit targets.
18684 2005-10-18  Diego Novillo  <dnovillo@redhat.com>
18686         * testsuite/libgomp.dg/shared-3.c: New test.
18688 2005-10-18  Jakub Jelinek  <jakub@redhat.com>
18690         * testsuite/libgomp.fortran/appendix-a/a.31.3.f90: Removed.
18691         * testsuite/libgomp.fortran/reduction5.f90: New test.
18693 2005-10-18  Jakub Jelinek  <jakub@redhat.com>
18695         * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: Add -ffixed-form to
18696         dg-options.
18697         * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: Likewise.  Enable
18698         flush loop now that __sync_synchronize has proper memory barrier.
18699         * testsuite/libgomp.fortran/appendix-a/a.3.1.f90: Fix a typo.
18700         Add -ffixed-form to dg-options.
18702 2005-10-17  Diego Novillo  <dnovillo@redhat.com>
18704         * testsuite/libgomp.fortran/fortran.exp: Also gather tests
18705         from subdirectories.
18706         * testsuite/libgomp.fortran/appendix-a/a.15.1.f90: New test.
18707         * testsuite/libgomp.fortran/appendix-a/a.16.1.f90: New test.
18708         * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: New test.
18709         * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: New test.
18710         * testsuite/libgomp.fortran/appendix-a/a.2.1.f90: New test.
18711         * testsuite/libgomp.fortran/appendix-a/a.21.1.f90: New test.
18712         * testsuite/libgomp.fortran/appendix-a/a.22.7.f90: New test.
18713         * testsuite/libgomp.fortran/appendix-a/a.22.8.f90: New test.
18714         * testsuite/libgomp.fortran/appendix-a/a.26.1.f90: New test.
18715         * testsuite/libgomp.fortran/appendix-a/a.28.1.f90: New test.
18716         * testsuite/libgomp.fortran/appendix-a/a.28.2.f90: New test.
18717         * testsuite/libgomp.fortran/appendix-a/a.28.3.f90: New test.
18718         * testsuite/libgomp.fortran/appendix-a/a.28.4.f90: New test.
18719         * testsuite/libgomp.fortran/appendix-a/a.28.5.f90: New test.
18720         * testsuite/libgomp.fortran/appendix-a/a.3.1.f90: New test.
18721         * testsuite/libgomp.fortran/appendix-a/a.31.3.f90: New test.
18722         * testsuite/libgomp.fortran/appendix-a/a.31.4.f90: New test.
18723         * testsuite/libgomp.fortran/appendix-a/a.31.5.f90: New test.
18724         * testsuite/libgomp.fortran/appendix-a/a.33.3.f90: New test.
18725         * testsuite/libgomp.fortran/appendix-a/a.38.1.f90: New test.
18726         * testsuite/libgomp.fortran/appendix-a/a.39.1.f90: New test.
18727         * testsuite/libgomp.fortran/appendix-a/a.4.1.f90: New test.
18728         * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: New test.
18729         * testsuite/libgomp.fortran/appendix-a/a.5.1.f90: New test.
18730         * testsuite/libgomp.fortran/appendix-a/a10.1.f90: New test.
18732 2005-10-17  Jakub Jelinek  <jakub@redhat.com>
18734         * testsuite/libgomp.dg/dg.exp: Only unset lang_* if
18735         lang_library_path exists.  Use find instead of glob to gather tests.
18736         * testsuite/libgomp.dg/appendix-a/appendix-a.exp: Removed.
18738 2005-10-17  Diego Novillo  <dnovillo@redhat.com>
18740         * testsuite/libgomp.dg/appendix-a/a.15.1.c: New test.
18741         * testsuite/libgomp.dg/appendix-a/a.16.1.c: New test.
18742         * testsuite/libgomp.dg/appendix-a/a.18.1.c: New test.
18743         * testsuite/libgomp.dg/appendix-a/a.19.1.c: New test.
18744         * testsuite/libgomp.dg/appendix-a/a.2.1.c: New test.
18745         * testsuite/libgomp.dg/appendix-a/a.21.1.c: New test.
18746         * testsuite/libgomp.dg/appendix-a/a.26.1.c: New test.
18747         * testsuite/libgomp.dg/appendix-a/a.29.1.c: New test.
18748         * testsuite/libgomp.dg/appendix-a/a.3.1.c: New test.
18749         * testsuite/libgomp.dg/appendix-a/a.39.1.c: New test.
18750         * testsuite/libgomp.dg/appendix-a/a.4.1.c: New test.
18751         * testsuite/libgomp.dg/appendix-a/a.5.1.c: New test.
18752         * testsuite/libgomp.dg/appendix-a/appendix-a.exp: New file.
18754 2005-10-15  Jakub Jelinek  <jakub@redhat.com>
18756         * testsuite/libgomp.dg/vla-1.c: New test.
18758         * testsuite/libgomp.fortran/reference2.f90: New test.
18760         * testsuite/libgomp.fortran/character2.f90: Remove explicit
18761         declaration of omp_get_thread_num.
18762         * testsuite/libgomp.fortran/threadprivate1.f90: Likewise.  Add
18763         use omp_lib.
18765         * testsuite/libgomp.fortran/reduction1.f90: New test.
18766         * testsuite/libgomp.fortran/reduction2.f90: New test.
18767         * testsuite/libgomp.fortran/reduction3.f90: New test.
18768         * testsuite/libgomp.fortran/reduction4.f90: New test.
18770 2005-10-13  Richard Henderson  <rth@redhat.com>
18772         * Makefile.am (libgomp_la_SOURCES): Add bar.c.
18773         * Makefile.in: Regenerate.
18774         * barrier.c (GOMP_barrier): Use gomp_barrier_wait.
18775         * libgomp.h: Include bar.h.
18776         (struct gomp_barrier): Remove.
18777         (struct gomp_team): Add barrier.  Replace master_barrier with
18778         master_release.  Replace threads with ordered_release.
18779         (struct gomp_thread): Replace barrier with release.
18780         * ordered.c (gomp_ordered_first): Update for ordered_release change.
18781         (gomp_ordered_last, gomp_ordered_next, gomp_ordered_static_init,
18782         gomp_ordered_static_next, gomp_ordered_sync): Likewise.
18783         * single.c (GOMP_single_copy_start): Use gomp_barrier_wait.
18784         (GOMP_single_copy_end): Likewise.
18785         * team.c (gomp_threads_dock): New.
18786         (gomp_barrier_init, gomp_barrier_destroy): Remove.
18787         (gomp_thread_start): Use gomp_barrier_wait.
18788         (new_team, free_team): Update for gomp_team changes.
18789         (gomp_team_start): Use gomp_barrier_wait and gomp_barrier_reinit.
18790         (gomp_team_end): Use gomp_barrier_wait.
18791         (initialize_team): Update for gomp_thread changes.
18792         * work.c (gomp_work_share_end): Use gomp_barrier_wait_start.
18793         (gomp_work_share_end_nowait): Use atomic ops when available.
18794         * config/linux/bar.c, config/linux/bar.h: New files.
18795         * config/posix/bar.c, config/posix/bar.h: New files.
18797 2005-10-13  Jakub Jelinek  <jakub@redhat.com>
18799         * single.c (GOMP_single_copy_end): Don't segfault if team is NULL.
18800         * testsuite/libgomp.dg/single-2.c: New test.
18802         * testsuite/libgomp.dg/dg.exp (lang_library_path, lang_test_file,
18803         lang_link_flags): Unset, so that they aren't inherited from previously
18804         sourced *.exp.
18806         * testsuite/libgomp.fortran/threadprivate1.f90: New test.
18808 2005-10-12  Richard Henderson  <rth@redhat.com>
18810         * testsuite/lib/libgomp-dg.exp: Set blddir at toplevel.
18811         (libgomp_init): Use lang_test_file, lang_library_path, and
18812         lang_link_flags, set by the subdirectory files.  Add -fopenmp here.
18814         * testsuite/libgomp.fortran/fortran.exp (lang_library_path): New.
18815         (lang_test_file, lang_link_flags): New.
18816         (DEFAULT_FFLAGS, ALWAYS_CFLAGS, multilibs, blddir): Remove.
18818         * testsuite/libgomp.c++/c++.exp, testsuite/libgomp.c++/loop-1.C,
18819         testsuite/libgomp.c++/loop-2.C, testsuite/libgomp.c++/loop-3.C,
18820         testsuite/libgomp.c++/loop-4.C, testsuite/libgomp.c++/nested-1.C,
18821         testsuite/libgomp.c++/parallel-1.C,
18822         testsuite/libgomp.c++/reduction-1.C,
18823         testsuite/libgomp.c++/reduction-2.C,
18824         testsuite/libgomp.c++/reduction-3.C,
18825         testsuite/libgomp.c++/sections-1.C, testsuite/libgomp.c++/shared-1.C,
18826         testsuite/libgomp.c++/shared-2.C, testsuite/libgomp.c++/single-1.C,
18827         testsuite/libgomp.c++/single-2.C, testsuite/libgomp.c++/single-3.C:
18828         New files, largely cribbed from the C testsuite.
18830 2005-10-12  Jakub Jelinek  <jakub@redhat.com>
18832         * testsuite/libgomp.fortran/character1.f90: New test.
18833         * testsuite/libgomp.fortran/character2.f90: New test.
18835         * testsuite/libgomp.dg/nested-1.c: New test.
18836         * testsuite/libgomp.dg/nested-2.c: New test.
18837         * testsuite/libgomp.fortran/do1.f90: New test.
18838         * testsuite/libgomp.fortran/do2.f90: New test.
18840         * testsuite/libgomp.fortran/reference1.f90: New test.
18842 2005-10-11  Jakub Jelinek  <jakub@redhat.com>
18844         * testsuite/libgomp.dg/reduction-1.c: New test.
18845         * testsuite/libgomp.dg/reduction-2.c: New test.
18846         * testsuite/libgomp.dg/reduction-3.c: New test.
18848 2005-10-10  Jakub Jelinek  <jakub@redhat.com>
18850         * testsuite/libgomp.dg/atomic-1.c: New test.
18851         * testsuite/libgomp.dg/atomic-2.c: New test.
18853 2005-10-09  Richard Henderson  <rth@redhat.com>
18855         * critical.c (atomic_lock): New.
18856         (initialize_critical): Initialize it.
18857         (GOMP_atomic_start, GOMP_atomic_end): New.
18858         * libgomp.map: Export them.
18859         * libgomp_g.h: Declare them.
18861         * testsuite/libgomp.dg/atomic-10.c: Move from gcc testsuite.
18863 2005-10-02  Richard Henderson  <rth@redhat.com>
18865         * configure.ac: Move save_CFLAGS hack earlier.  Append -Wall/-Werror
18866         to XCFLAGS instead of CFLAGS.
18868 2005-09-30  Richard Henderson  <rth@redhat.com>
18870         * configure.ac: Determine whether -pthread or -lpthread is needed.
18871         * Makefile.am (libgomp_la_LDFLAGS): Remove explicit -lpthread.
18872         * Makefile.in, configure: Rebuild.
18874 2005-09-28  Richard Henderson  <rth@redhat.com>
18876         * testsuite/libgomp.dg/omp-loop03.c: Fix return code.
18877         * testsuite/libgomp.dg/omp-single-3.c: New test.
18879 2005-09-28  Diego Novillo  <dnovillo@redhat.com>
18881         * testsuite/libgomp.dg/omp-single-2.c: New test.
18882         * testsuite/libgomp.dg/shared-2.c: Fix return code.
18884 2005-09-27  Richard Henderson  <rth@redhat.com>
18886         * testsuite/libgomp.dg/omp-loop03.c: Add initial barrier.
18887         * testsuite/libgomp.dg/omp-parallel-for.c: Specify static schedule.
18889 2005-09-27  Jakub Jelinek  <jakub@redhat.com>
18891         * testsuite/libgomp.dg/omp-loop03.c: New test.
18893 2005-09-27  Diego Novillo  <dnovillo@redhat.com>
18895         * testsuite/libgomp.dg/omp-parallel-for.c: New test.
18897 2005-09-27  Diego Novillo  <dnovillo@redhat.com>
18899         * testsuite/libgomp.dg/omp-single-1.c: New test.
18900         * testsuite/libgomp.dg/shared-1.c: Return 0.
18901         Add prototype for abort.
18902         * testsuite/libgomp.dg/shared-2.c: Likewise.
18904 2005-09-26  Jakub Jelinek  <jakub@redhat.com>
18906         * testsuite/libgomp.fortran/omp_parse3.f90: Fix non-conforming
18907         constructs.
18909 2005-09-26  Diego Novillo  <dnovillo@redhat.com>
18911         * testsuite/libgomp.dg/shared-1.c: New test.
18912         * testsuite/libgomp.dg/shared-2.c: New test.
18914 2005-09-24  Richard Henderson  <rth@redhat.com>
18916         * testsuite/libgomp.dg/omp_workshare3.c: Mark dg-error.
18918 2005-09-24  Richard Henderson  <rth@redhat.com>
18920         * iter.c (gomp_iter_static_next): Round up when computing number
18921         of iterations.  Don't bother distributing a remainder equally.
18923         * testsuite/libgomp.dg/omp-loop01.c (main1): Rename from main.
18924         Don't call srand.  Zero b before testing.
18925         (main): New.
18927 2005-09-24  Jakub Jelinek  <jakub@redhat.com>
18929         * testsuite/libgomp.fortran/omp_atomic1.f90: New test.
18930         * testsuite/libgomp.fortran/omp_atomic2.f90: New test.
18932 2005-09-23  Jakub Jelinek  <jakub@redhat.com>
18934         * testsuite/libgomp.fortran/omp_parse1.f90: Add a test for !$omp do
18935         without !$omp end do, followed immediately by subroutine end.
18937 2005-09-23  Diego Novillo  <dnovillo@redhat.com>
18939         * testsuite/libgomp.dg/omp-parallel-if.c: New test.
18941 2005-09-22  Richard Henderson  <rth@redhat.com>
18943         * critical.c (GOMP_critical_name_start): Change argument to void**.
18944         Reuse the pointer space if the mutex fits.
18945         (GOMP_critical_name_end): Likewise.
18946         (initialize_critical): Don't define if GOMP_MUTEX_INIT_0.
18947         * libgomp_g.h (GOMP_critical_name_start): Update decl.
18948         (GOMP_critical_name_end): Likewise.
18949         * config/linux/mutex.h (GOMP_MUTEX_INIT_0): New.
18950         * config/posix/mutex.h (GOMP_MUTEX_INIT_0): New.
18952 2005-09-20  Richard Henderson  <rth@redhat.com>
18954         * critical.c (GOMP_critical_name_start, GOMP_critical_name_end): New.
18955         (create_lock_lock): New.
18956         (initialize_critical): Initialize it.
18957         * libgomp.map (GOMP_critical_name_start, GOMP_critical_name_end): New.
18958         * libgomp_g.h (GOMP_ordered_start, GOMP_ordered_end): Declare.
18960 2005-09-20  Diego Novillo  <dnovillo@redhat.com>
18962         * testsuite/libgom.dg/omp-loop01.c: Include stdio.h.
18964 2005-09-20  Diego Novillo  <dnovillo@redhat.com>
18966         * testsuite/libgomp.dg/omp-loop01.c: New test.
18967         * testsuite/libgomp.dg/omp-loop02.c: New test.
18969 2005-09-20  Jakub Jelinek  <jakub@redhat.com>
18971         * configure.ac (AC_PROG_FC): Add.
18972         (USE_FORTRAN): New automake conditional.
18973         * configure: Rebuilt.
18974         * Makefile.am (libgomp_la_SOURCES): Add fortran.c.
18975         (nodist_include_HEADERS): Add omp_lib.h, omp_lib.f90 and libgomp_f.h.
18976         If USE_FORTRAN, add also omp_lib.mod and omp_lib_kinds.mod.
18977         Add rules to build them.
18978         * Makefile.in: Rebuilt.
18979         * mkomp_h.pl: Compute and replace also OMP_LOCK_KIND and
18980         OMP_NEST_LOCK_KIND.
18981         * libgomp.map: Add Fortran wrappers.
18982         * libgomp_f.h.in: New file.
18983         * omp_lib.h.in: New file.
18984         * omp_lib.f90.in: New file.
18985         * fortran.c: New file.
18986         * testsuite/lib/libgomp-dg.exp: Load a few more .exp files.
18987         Append libgfortran directory to LD_LIBRARY_PATH if it exists.
18988         Add -Lpath_to_libgfortran and -lgfortran -lgfortranbegin if
18989         libgfortran has been built.
18990         * testsuite/libgomp.fortran/fortran.exp: New file.
18991         * testsuite/libgomp.fortran/omp_cond1.f: New test.
18992         * testsuite/libgomp.fortran/omp_cond2.f: New test.
18993         * testsuite/libgomp.fortran/omp_cond3.F90: New test.
18994         * testsuite/libgomp.fortran/omp_cond4.F90: New test.
18995         * testsuite/libgomp.fortran/omp_hello.f: New test.
18996         * testsuite/libgomp.fortran/omp_orphan.f: New test.
18997         * testsuite/libgomp.fortran/omp_parse1.f90: New test.
18998         * testsuite/libgomp.fortran/omp_parse2.f90: New test.
18999         * testsuite/libgomp.fortran/omp_parse3.f90: New test.
19000         * testsuite/libgomp.fortran/omp_parse4.f90: New test.
19001         * testsuite/libgomp.fortran/omp_reduction.f: New test.
19002         * testsuite/libgomp.fortran/omp_workshare1.f: New test.
19003         * testsuite/libgomp.fortran/omp_workshare2.f: New test.
19005 2005-08-30  Richard Henderson  <rth@redhat.com>
19007         * loop.c (GOMP_loop_static_start): Provide fallback wrapper
19008         function for when aliases are not usable.
19009         (GOMP_loop_dynamic_start, GOMP_loop_guided_start,
19010         GOMP_loop_ordered_static_start, GOMP_loop_ordered_dynamic_start,
19011         GOMP_loop_ordered_guided_start, GOMP_loop_static_next,
19012         GOMP_loop_dynamic_next, GOMP_loop_guided_next,
19013         GOMP_loop_ordered_static_next, GOMP_loop_ordered_dynamic_next,
19014         GOMP_loop_ordered_guided_next): Likewise.
19015         * ordered.c (GOMP_ordered_start): Likewise.
19017 2005-08-01  Diego Novillo  <dnovillo@redhat.com>
19019         * testsuite/libgomp.dg/dg.exp: Use -O2 for now.
19020         * testsuite/libgomp.dg/omp_hello.c: Fix return code
19021         * testsuite/libgomp.dg/omp_matvec.c: Likewise.
19022         * testsuite/libgomp.dg/omp_orphan.c: Likewise
19023         * testsuite/libgomp.dg/omp_reduction.c: Likewise
19024         * testsuite/libgomp.dg/omp_workshare1.c: Likewise
19025         * testsuite/libgomp.dg/omp_workshare2.c: Likewise
19026         * testsuite/libgomp.dg/omp_workshare3.c: Likewise
19027         * testsuite/libgomp.dg/omp_workshare4.c: Likewise
19029 2005-07-07  Eric Christopher  <echristo@redhat.com>
19030             Diego Novillo  <dnovillo@redhat.com>
19032         * testsuite/libgomp.dg/dg.exp: Add -fopenmp to DEFAULT_CFLAGS.
19033         * testsuite/libgomp.dg/omp_hello.c: Add standard includes, fix
19034         up code.
19035         * testsuite/libgomp.dg/omp_matvec.c: Ditto.
19036         * testsuite/libgomp.dg/omp_orphan.c: Ditto.
19037         * testsuite/libgomp.dg/omp_reduction.c: Ditto.
19038         * testsuite/libgomp.dg/omp_workshare1.c: Ditto.
19039         * testsuite/libgomp.dg/omp_workshare2.c: Ditto.
19040         * testsuite/libgomp.dg/omp_workshare3.c: Ditto.
19041         * testsuite/libgomp.dg/omp_workshare4.c: Ditto.
19043 2005-06-13  Diego Novillo  <dnovillo@redhat.com>
19045         * TOPLEVEL.patch: Remove.
19047 2005-05-16  Richard Henderson  <rth@redhat.com>
19049         * configure.ac: Test for clock_gettime.
19050         * config.h.in, configure: Rebuild.
19051         * config/posix/time.c: Use recommended TIME_WITH_SYS_TIME pattern.
19052         (omp_get_wtime): Use clock_gettime if available.
19053         (omp_get_wtick): Use clock_getres if available.
19055 2005-05-11  Richard Henderson  <rth@redhat.com>
19057         * config/linux/ia64/futex.h: New file.
19058         * configure.tgt: Use it.
19060         * team.c (gomp_barrier_init, gomp_barrier_destroy): Mark inline.
19062 2005-05-07  Richard Henderson  <rth@redhat.com>
19064         * config/linux/powerpc/futex.h: New file.
19065         * configure.tgt: Use it.
19067         * config/linux/i486/futex.h: Merge ...
19068         * config/linux/x86_64/futex.h: ... into ...
19069         * config/linux/x86/futex.h: ... here.
19070         * configure.tgt: Update to match.
19072 2005-05-06  Richard Henderson  <rth@redhat.com>
19074         * config/linux/alpha/futex.h: Conditionally define SYS_futex.
19075         * config/linux/i486/futex.h: Likewise.
19076         * config/linux/x86_64/futex.h: Likewise.
19078         * config/linux/lock.c: New file.
19079         * config/linux/omp-lock.h: New file.
19081         * critical.c, env.h: Don't include omp.h
19082         * config/posix/lock.c: Include libgomp.h instead of omp.h.
19083         * config/posix/time.c: Likewise.
19084         * config/posix/omp-lock.h: New file.
19085         * libgomp.h: Include omp-lock.h and omp.h.
19086         * Makefile.am (nodist_include_HEADERS): New.
19087         (omp.h): New rule.
19088         * configure.ac (PERL): New.
19089         * mkomp_h.pl: New file.
19090         * omp.h.in: Rename from omp.h; replace omp_lock_t and omp_nest_lock_t
19091         with templates.
19092         * Makefile.in, configure, testsuite/Makefile.in: Rebuild.
19094         * testsuite/lib/libgomp-dg.exp (libgomp_init): Add include into
19095         build directory.  Re-add -march=i486 hack.
19097         * testsuite/lib/libgomp-dg.exp (libgomp_compile_flags): Remove.
19098         (libgomp_link_flags): Remove.
19099         (libgomp_initialized): Remove.
19100         (libgomp_init): Don't protect from reinitialization.  Copy code
19101         from libstdc++ for getting the multilib set correctly.
19103 2005-05-05  Richard Henderson  <rth@redhat.com>
19105         * config/linux/alpha/futex.h: New file.
19106         * configure.tgt (alpha*-*-linux*): Use it.
19108         * config/posix/mutex.c: New file.
19109         * config/posix/sem.c: Use libgomp.h.
19111         * configure.tgt (x86_64-linux): Also test CC for -m32.
19112         * config/linux/x86_64/futex.h (futex_wait): Fix r10 usage.
19114         * testsuite/lib/libgomp-dg.exp (libgomp_link_flags): Add /
19115         after $gccpath.
19117         * Makefile.am (SUBDIRS): New.
19118         (libgomp_la_LDFLAGS): Add -lpthread.
19119         * configure.ac (AM_INIT_AUTOMAKE): Enable dependencies.
19120         * Makefile.in, aclocal.m4, config.h.in, configure: Rebuild.
19122         * libgomp_g.h: New file.
19123         * libgomp.h: Split out all public declarations to libgomp_g.h.
19124         Use pragma GCC visibility instead of ATTRIBUTE_HIDDEN.
19125         * config/linux/mutex.h: Remove ATTRIBUTE_HIDDEN.
19126         * config/linux/sem.h: Likewise.
19127         * config/posix/sem.h: Likewise.
19129         * Makefile.am (AM_LDFLAGS): New.
19130         (libgomp_version_script): Split out from ...
19131         (libgomp_la_LDFLAGS): ... here.
19132         (libgomp_version_info): New.
19133         * acinclude.m4 (LIBGOMP_CHECK_TLS): Use LIBGOMP_ENABLE.
19134         (LIBGOMP_ENABLE): New.
19135         (LIBGOMP_CHECK_LINKER_FEATURES): New.
19136         (LIBGOMP_ENABLE_SYMVERS): New.
19137         * configure.ac (AC_INIT): Version 1.0.
19138         (enable-version-specific-runtime-libs): Use LIBGOMP_ENABLE.
19139         (enable-linux-futex): Likewise.  Rename from enable-futex.
19140         (libtool_VERSION): New.
19141         (LIBGOMP_ENABLE_SYMVERS): Use it.
19142         * configure.tgt: Check with_gnu_ld wrt have_tls optimizations.
19143         * Makefile.in, aclocal.m4, configure: Rebuild.
19145         * config/linux/mutex.c: Include libgomp.h instead of mutex.h.
19146         (gomp_mutex_unlock_slow): Fix typo.
19147         * config/linux/sem.c: Similarly.
19148         (gomp_sem_post_slow): Fix typo.
19149         * config/linux/sem.h (gomp_sem_post_slow): Fix typo.
19150         * config/linux/i486/futex.h: Remove USE_LINUX_SYSENTER code.
19151         [__PIC__] (sys_futex0): Don't use tmp output in asm.
19153         * Makefile.am (AM_CFLAGS): Expand with XCFLAGS.
19154         (libgomp_la_LDFLAGS): Add top_srcdir to path.
19155         * acinclude.m4: Copy libtool.m4 stuff from libgfortran.
19156         * configure.ac: Check for getloadavg.  Substitute XCFLAGS and
19157         XLDFLAGS.  Add XCFLAGS to CFLAGS around LIBGOMP_CHECK_SYNC_BUILTINS.
19158         * configure.tgt: Set XCFLAGS and XLDFLAGS instead of CFLAGS and
19159         LDFLAGS.  Pull enable_futex check to top-level.
19160         * libgomp.h: Fix sem.h and mutex.h includes.  Define ATTRIBUTE_HIDDEN.
19161         * Makefile.in, aclocal.m4, config.h.in, configure: Regenerate.
19163         First attempt at real configury.
19164         * Makefile, config.h: Remove file.
19165         * Makefile.am, Makefile.in: New file.
19166         * acinclude.m4 aclocal.m4: New file.
19167         * configure.ac, configure.tgt, configure: New file.
19169         * config/posix/lock.c: Rename from sys-lock.c.
19170         * config/posix/mutex.h: Rename from sys-mutex.h.
19171         * config/posix/sem.c: Rename from sys-sem.c.
19172         * config/posix/sem.h: Rename from sys-sem.h.
19173         * config/posix/proc.c: Rename from sys-proc.c.
19174         * config/posix/time.c: Rename from sys-proc.c.
19176         * config/linux/mutex.c: New file.
19177         * config/linux/mutex.h: New file.
19178         * config/linux/sem.c: New file.
19179         * config/linux/sem.h: New file.
19180         * config/linux/i486/futex.h: New file.
19181         * config/linux/x86_64/futex.h: New file.
19183 2005-05-04  Richard Henderson  <rth@redhat.com>
19185         * iter.c (gomp_iter_dynamic_next, gomp_iter_guided_next): New.
19186         * libgomp.h: Declare them.
19187         * loop.c (gomp_loop_dynamic_start, gomp_loop_guided_start,
19188         gomp_loop_dynamic_next, gomp_loop_guided_next): Use them.
19190 2005-05-04  Richard Henderson  <rth@redhat.com>
19192         * libgomp-1 code drop
19194 2005-05-04  Richard Henderson  <rth@redhat.com>
19196         * iter.c (gomp_iter_static_next): Return tri-state on 0.
19197         * ordered.c (gomp_ordered_static_next): Remove not_last argument.
19198         * libgomp.h (struct gomp_team_state): Make static_trip unsigned.
19199         (gomp_iter_static_next): Update.
19200         (gomp_ordered_static_next): Update.
19201         * loop.c (gomp_loop_static_start): Update for gomp_iter_static_next.
19202         (gomp_loop_ordered_static_start): Likewise.  Exit early for a
19203         totally empty range.
19204         (gomp_loop_ordered_static_next): Refine test for calling
19205         gomp_ordered_static_next.
19206         * testsuite/ordered-1.c: Add case for more threads than iterations.
19208         * iter.c (gomp_iter_runtime_next_locked): Remove.
19209         * loop.c (gomp_loop_static_start, gomp_loop_dynamic_start,
19210         gomp_loop_guided_start, gomp_loop_ordered_static_start,
19211         gomp_loop_ordered_dynamic_start, gomp_loop_ordered_guided_start,
19212         gomp_loop_static_next, gomp_loop_dynamic_next, gomp_loop_guided_next,
19213         gomp_loop_ordered_static_next, gomp_loop_ordered_dynamic_next,
19214         gomp_loop_ordered_guided_next): Downcase name, make static, add
19215         an external alias with the old name.
19216         (GOMP_loop_runtime_start, GOMP_loop_ordered_runtime_start,
19217         GOMP_loop_runtime_next, GOMP_loop_ordered_runtime_next): Use a
19218         switch and call one of the above static functions.
19219         * libgomp.h: Update.
19221         * work.c (gomp_work_share_start): Lock the mutex for !first too.
19222         * loop.c (GOMP_loop_static_start, GOMP_loop_dynamic_start,
19223         GOMP_loop_guided_start, GOMP_loop_runtime_start,
19224         GOMP_loop_ordered_static_start, GOMP_loop_ordered_dynamic_start,
19225         GOMP_loop_ordered_guided_start): Update to match.
19226         * sections.c (GOMP_sections_start): Likewise.
19227         * single.c (GOMP_single_start, GOMP_single_copy_start): Likewise.
19229         * ordered.c (gomp_ordered_first, gomp_ordered_last, gomp_ordered_next,
19230         gomp_ordered_static_init, gomp_ordered_static_next): Rename s/_loop//.
19231         Use bounds check instead of modulus.
19232         (gomp_ordered_sync): Split out of GOMP_ordered_start.
19233         (gomp_ordered_last): Don't sync with ordered_owner here.
19234         (gomp_ordered_next): Likewise.
19235         (gomp_ordered_static_loop_next): Likewise.
19236         * loop.c, libgomp.h: Update to match.
19238         * libgomp.h (GOMP_barrier): Declare.
19240         * testsuite/barrier-1.c: New file.
19241         * testsuite/critical-1.c: New file.
19242         * testsuite/ordered-2.c: New file.
19243         * testsuite/ordered-1.c: New file.
19244         * testsuite/sections-1.c: New file.
19245         * testsuite/single-1.c: New file.
19246         * testsuite/Makefile (TESTS): Add them.
19248 2005-05-04  Richard Henderson  <rth@redhat.com>
19250         * libgomp.h (struct gomp_work_share): Add ordered_owner.
19251         * loop.c (GOMP_loop_static_start): If not the startup thread,
19252         acquire the mutex to wait for initialization complete.
19253         (GOMP_loop_ordered_static_start): Likewise.
19254         (GOMP_loop_ordered_runtime_start): Likewise.
19255         (GOMP_loop_ordered_static_first): Remove.
19256         (GOMP_loop_ordered_dynamic_first): Remove.
19257         (GOMP_loop_ordered_guided_first): Remove.
19258         (GOMP_loop_ordered_runtime_first): Remove.
19259         * ordered.c (gomp_ordered_loop_first): Post to own release when
19260         we're the first thread.
19261         (gomp_ordered_loop_last): Wait on release if not owner.
19262         (gomp_ordered_loop_next): Likewise.
19263         (gomp_ordered_static_loop_init): New.
19264         (gomp_ordered_static_loop_next): Use ordered_owner.
19265         (GOMP_ordered_start): Likewise.
19266         * work.c (gomp_new_work_share): Initialize ordered_owner.
19268 2005-05-03  Richard Henderson  <rth@redhat.com>
19270         * Makefile (OPT): New.
19271         (CFLAGS): Use it.
19273         * loop.c (GOMP_loop_end, GOMP_loop_end_nowait): New.
19274         * sections.c (GOMP_sections_end, GOMP_sections_end_nowait): New.
19275         * libgomp.h, libgomp.map, NOTES: Update to match.
19277         * team.c (struct gomp_thread_start_data): Remove ts, fn, data.
19278         Add initialized and thr members.
19279         (gomp_thread_start): Pause when initially spawned to wait for
19280         the whole team to be created.
19281         (gomp_team_start): Release team members at the end.
19283         * testsuite/loop-1.c (N): New.  Use it instead of hardcoded 100.
19284         (f_foo_1): Use GOMP_loop_end.
19285         (f_foo_2): Use GOMP_loop_end_nowait.
19287         * testsuite/loop-2.c: New file.
19288         * testsuite/Makefile (TESTS): Add it.
19290 2005-05-03  Richard Henderson  <rth@redhat.com>
19292         * iter.c (gomp_iter_static_next): Fix overflow check typo.
19293         (gomp_iter_dynamic_next_locked): Fix overflow check thinko.
19294         * team.c (new_team): Initialize oldest_live_gen to 1 if no
19295         initial work_share.
19297         * testsuite/Makefile: New file.
19298         * testsuite/loop-1.c: New file.
19300 2005-05-03  Richard Henderson  <rth@redhat.com>
19302         Initial implementation and checkin.
19304 Copyright (C) 2005-2022 Free Software Foundation, Inc.
19306 Copying and distribution of this file, with or without modification,
19307 are permitted in any medium without royalty provided the copyright
19308 notice and this notice are preserved.