]> git.ipfire.org Git - thirdparty/gcc.git/blob - libgomp/ChangeLog
4e7419ccd7580229b8d303758596b52e1a99f82c
[thirdparty/gcc.git] / libgomp / ChangeLog
1 2022-11-19 Tobias Burnus <tobias@codesourcery.com>
2
3 * config/gcn/libgomp-gcn.h: New file; contains
4 struct output, declared previously in plugin-gcn.c.
5 * config/gcn/target.c: Include it.
6 (GOMP_ADDITIONAL_ICVS): Declare as extern var.
7 (GOMP_target_ext): Handle reverse offload.
8 * plugin/plugin-gcn.c: Include libgomp-gcn.h.
9 (struct kernargs): Replace struct def by the one
10 from libgomp-gcn.h for output_data.
11 (process_reverse_offload): New.
12 (console_output): Call it.
13
14 2022-11-16 Tobias Burnus <tobias@codesourcery.com>
15 Andrew Stubbs <ams@codesourcery.com>
16
17 * config/gcn/team.c (gomp_gcn_enter_kernel): Use
18 __builtin_gcn_kernarg_ptr instead of asm ("s8").
19
20 2022-11-14 Martin Liska <mliska@suse.cz>
21
22 Revert:
23 2022-11-14 Martin Liska <mliska@suse.cz>
24
25 * doc/amd-radeon-gcn.rst: New file.
26 * doc/conf.py: New file.
27 * doc/copyright.rst: New file.
28 * doc/cuda-streams-usage.rst: New file.
29 * doc/enabling-openacc.rst: New file.
30 * doc/enabling-openmp.rst: New file.
31 * doc/first-invocation-nvidia-cublas-library-api.rst: New file.
32 * doc/first-invocation-openacc-library-api.rst: New file.
33 * doc/funding.rst: New file.
34 * doc/general-public-license-3.rst: New file.
35 * doc/gnu-free-documentation-license.rst: New file.
36 * doc/implementation-status-and-implementation-defined-behavior.rst: New file.
37 * doc/index.rst: New file.
38 * doc/indices-and-tables.rst: New file.
39 * doc/introduction.rst: New file.
40 * doc/memory-allocation-with-libmemkind.rst: New file.
41 * doc/nvptx.rst: New file.
42 * doc/offload-target-specifics.rst: New file.
43 * doc/openacc-environment-variables.rst: New file.
44 * doc/openacc-environment-variables/accdevicenum.rst: New file.
45 * doc/openacc-environment-variables/accdevicetype.rst: New file.
46 * doc/openacc-environment-variables/accproflib.rst: New file.
47 * doc/openacc-environment-variables/gccaccnotify.rst: New file.
48 * doc/openacc-introduction.rst: New file.
49 * doc/openacc-library-and-environment-variables.rst: New file.
50 * doc/openacc-library-interoperability.rst: New file.
51 * doc/openacc-profiling-interface.rst: New file.
52 * doc/openacc-runtime-library-routines.rst: New file.
53 * doc/openacc-runtime-library-routines/accasynctest.rst: New file.
54 * doc/openacc-runtime-library-routines/accasynctestall.rst: New file.
55 * doc/openacc-runtime-library-routines/accattach.rst: New file.
56 * doc/openacc-runtime-library-routines/acccopyin.rst: New file.
57 * doc/openacc-runtime-library-routines/acccopyout.rst: New file.
58 * doc/openacc-runtime-library-routines/acccreate.rst: New file.
59 * doc/openacc-runtime-library-routines/accdelete.rst: New file.
60 * doc/openacc-runtime-library-routines/accdetach.rst: New file.
61 * doc/openacc-runtime-library-routines/accdeviceptr.rst: New file.
62 * doc/openacc-runtime-library-routines/accfree.rst: New file.
63 * doc/openacc-runtime-library-routines/accgetcudastream.rst: New file.
64 * doc/openacc-runtime-library-routines/accgetcurrentcudacontext.rst: New file.
65 * doc/openacc-runtime-library-routines/accgetcurrentcudadevice.rst: New file.
66 * doc/openacc-runtime-library-routines/accgetdevicenum.rst: New file.
67 * doc/openacc-runtime-library-routines/accgetdevicetype.rst: New file.
68 * doc/openacc-runtime-library-routines/accgetnumdevices.rst: New file.
69 * doc/openacc-runtime-library-routines/accgetproperty.rst: New file.
70 * doc/openacc-runtime-library-routines/acchostptr.rst: New file.
71 * doc/openacc-runtime-library-routines/accinit.rst: New file.
72 * doc/openacc-runtime-library-routines/accispresent.rst: New file.
73 * doc/openacc-runtime-library-routines/accmalloc.rst: New file.
74 * doc/openacc-runtime-library-routines/accmapdata.rst: New file.
75 * doc/openacc-runtime-library-routines/accmemcpyfromdevice.rst: New file.
76 * doc/openacc-runtime-library-routines/accmemcpytodevice.rst: New file.
77 * doc/openacc-runtime-library-routines/accondevice.rst: New file.
78 * doc/openacc-runtime-library-routines/accpresentorcopyin.rst: New file.
79 * doc/openacc-runtime-library-routines/accpresentorcreate.rst: New file.
80 * doc/openacc-runtime-library-routines/accproflookup.rst: New file.
81 * doc/openacc-runtime-library-routines/accprofregister.rst: New file.
82 * doc/openacc-runtime-library-routines/accprofunregister.rst: New file.
83 * doc/openacc-runtime-library-routines/accregisterlibrary.rst: New file.
84 * doc/openacc-runtime-library-routines/accsetcudastream.rst: New file.
85 * doc/openacc-runtime-library-routines/accsetdevicenum.rst: New file.
86 * doc/openacc-runtime-library-routines/accsetdevicetype.rst: New file.
87 * doc/openacc-runtime-library-routines/accshutdown.rst: New file.
88 * doc/openacc-runtime-library-routines/accunmapdata.rst: New file.
89 * doc/openacc-runtime-library-routines/accupdatedevice.rst: New file.
90 * doc/openacc-runtime-library-routines/accupdateself.rst: New file.
91 * doc/openacc-runtime-library-routines/accwait.rst: New file.
92 * doc/openacc-runtime-library-routines/accwaitall.rst: New file.
93 * doc/openacc-runtime-library-routines/accwaitallasync.rst: New file.
94 * doc/openacc-runtime-library-routines/accwaitasync.rst: New file.
95 * doc/openmp-context-selectors.rst: New file.
96 * doc/openmp-environment-variables.rst: New file.
97 * doc/openmp-environment-variables/gompcpuaffinity.rst: New file.
98 * doc/openmp-environment-variables/gompdebug.rst: New file.
99 * doc/openmp-environment-variables/gomprtemsthreadpools.rst: New file.
100 * doc/openmp-environment-variables/gompspincount.rst: New file.
101 * doc/openmp-environment-variables/gompstacksize.rst: New file.
102 * doc/openmp-environment-variables/ompcancellation.rst: New file.
103 * doc/openmp-environment-variables/ompdefaultdevice.rst: New file.
104 * doc/openmp-environment-variables/ompdisplayenv.rst: New file.
105 * doc/openmp-environment-variables/ompdynamic.rst: New file.
106 * doc/openmp-environment-variables/ompmaxactivelevels.rst: New file.
107 * doc/openmp-environment-variables/ompmaxtaskpriority.rst: New file.
108 * doc/openmp-environment-variables/ompnested.rst: New file.
109 * doc/openmp-environment-variables/ompnumteams.rst: New file.
110 * doc/openmp-environment-variables/ompnumthreads.rst: New file.
111 * doc/openmp-environment-variables/ompplaces.rst: New file.
112 * doc/openmp-environment-variables/ompprocbind.rst: New file.
113 * doc/openmp-environment-variables/ompschedule.rst: New file.
114 * doc/openmp-environment-variables/ompstacksize.rst: New file.
115 * doc/openmp-environment-variables/omptargetoffload.rst: New file.
116 * doc/openmp-environment-variables/ompteamsthreadlimit.rst: New file.
117 * doc/openmp-environment-variables/ompthreadlimit.rst: New file.
118 * doc/openmp-environment-variables/ompwaitpolicy.rst: New file.
119 * doc/openmp-implementation-specifics.rst: New file.
120 * doc/openmp-implementation-status.rst: New file.
121 * doc/openmp-implementation-status/openmp-45.rst: New file.
122 * doc/openmp-implementation-status/openmp-50.rst: New file.
123 * doc/openmp-implementation-status/openmp-51.rst: New file.
124 * doc/openmp-implementation-status/openmp-52.rst: New file.
125 * doc/openmp-runtime-library-routines.rst: New file.
126 * doc/openmp-runtime-library-routines/ompdestroylock.rst: New file.
127 * doc/openmp-runtime-library-routines/ompdestroynestlock.rst: New file.
128 * doc/openmp-runtime-library-routines/ompfulfillevent.rst: New file.
129 * doc/openmp-runtime-library-routines/ompgetactivelevel.rst: New file.
130 * doc/openmp-runtime-library-routines/ompgetancestorthreadnum.rst: New file.
131 * doc/openmp-runtime-library-routines/ompgetcancellation.rst: New file.
132 * doc/openmp-runtime-library-routines/ompgetdefaultdevice.rst: New file.
133 * doc/openmp-runtime-library-routines/ompgetdevicenum.rst: New file.
134 * doc/openmp-runtime-library-routines/ompgetdynamic.rst: New file.
135 * doc/openmp-runtime-library-routines/ompgetinitialdevice.rst: New file.
136 * doc/openmp-runtime-library-routines/ompgetlevel.rst: New file.
137 * doc/openmp-runtime-library-routines/ompgetmaxactivelevels.rst: New file.
138 * doc/openmp-runtime-library-routines/ompgetmaxtaskpriority.rst: New file.
139 * doc/openmp-runtime-library-routines/ompgetmaxteams.rst: New file.
140 * doc/openmp-runtime-library-routines/ompgetmaxthreads.rst: New file.
141 * doc/openmp-runtime-library-routines/ompgetnested.rst: New file.
142 * doc/openmp-runtime-library-routines/ompgetnumdevices.rst: New file.
143 * doc/openmp-runtime-library-routines/ompgetnumprocs.rst: New file.
144 * doc/openmp-runtime-library-routines/ompgetnumteams.rst: New file.
145 * doc/openmp-runtime-library-routines/ompgetnumthreads.rst: New file.
146 * doc/openmp-runtime-library-routines/ompgetprocbind.rst: New file.
147 * doc/openmp-runtime-library-routines/ompgetschedule.rst: New file.
148 * doc/openmp-runtime-library-routines/ompgetsupportedactivelevels.rst: New file.
149 * doc/openmp-runtime-library-routines/ompgetteamnum.rst: New file.
150 * doc/openmp-runtime-library-routines/ompgetteamsize.rst: New file.
151 * doc/openmp-runtime-library-routines/ompgetteamsthreadlimit.rst: New file.
152 * doc/openmp-runtime-library-routines/ompgetthreadlimit.rst: New file.
153 * doc/openmp-runtime-library-routines/ompgetthreadnum.rst: New file.
154 * doc/openmp-runtime-library-routines/ompgetwtick.rst: New file.
155 * doc/openmp-runtime-library-routines/ompgetwtime.rst: New file.
156 * doc/openmp-runtime-library-routines/ompinfinal.rst: New file.
157 * doc/openmp-runtime-library-routines/ompinitlock.rst: New file.
158 * doc/openmp-runtime-library-routines/ompinitnestlock.rst: New file.
159 * doc/openmp-runtime-library-routines/ompinparallel.rst: New file.
160 * doc/openmp-runtime-library-routines/ompisinitialdevice.rst: New file.
161 * doc/openmp-runtime-library-routines/ompsetdefaultdevice.rst: New file.
162 * doc/openmp-runtime-library-routines/ompsetdynamic.rst: New file.
163 * doc/openmp-runtime-library-routines/ompsetlock.rst: New file.
164 * doc/openmp-runtime-library-routines/ompsetmaxactivelevels.rst: New file.
165 * doc/openmp-runtime-library-routines/ompsetnested.rst: New file.
166 * doc/openmp-runtime-library-routines/ompsetnestlock.rst: New file.
167 * doc/openmp-runtime-library-routines/ompsetnumteams.rst: New file.
168 * doc/openmp-runtime-library-routines/ompsetnumthreads.rst: New file.
169 * doc/openmp-runtime-library-routines/ompsetschedule.rst: New file.
170 * doc/openmp-runtime-library-routines/ompsetteamsthreadlimit.rst: New file.
171 * doc/openmp-runtime-library-routines/omptestlock.rst: New file.
172 * doc/openmp-runtime-library-routines/omptestnestlock.rst: New file.
173 * doc/openmp-runtime-library-routines/ompunsetlock.rst: New file.
174 * doc/openmp-runtime-library-routines/ompunsetnestlock.rst: New file.
175 * doc/reporting-bugs.rst: New file.
176 * doc/the-libgomp-abi.rst: New file.
177 * doc/the-libgomp-abi/implementing-atomic-construct.rst: New file.
178 * doc/the-libgomp-abi/implementing-barrier-construct.rst: New file.
179 * doc/the-libgomp-abi/implementing-critical-construct.rst: New file.
180 * doc/the-libgomp-abi/implementing-firstprivate-lastprivate-copyin-and-copyprivate-clauses.rst:
181 New file.
182 * doc/the-libgomp-abi/implementing-flush-construct.rst: New file.
183 * doc/the-libgomp-abi/implementing-for-construct.rst: New file.
184 * doc/the-libgomp-abi/implementing-master-construct.rst: New file.
185 * doc/the-libgomp-abi/implementing-openaccs-parallel-construct.rst: New file.
186 * doc/the-libgomp-abi/implementing-ordered-construct.rst: New file.
187 * doc/the-libgomp-abi/implementing-parallel-construct.rst: New file.
188 * doc/the-libgomp-abi/implementing-private-clause.rst: New file.
189 * doc/the-libgomp-abi/implementing-reduction-clause.rst: New file.
190 * doc/the-libgomp-abi/implementing-sections-construct.rst: New file.
191 * doc/the-libgomp-abi/implementing-single-construct.rst: New file.
192 * doc/the-libgomp-abi/implementing-threadprivate-construct.rst: New file.
193
194 2022-11-14 Martin Liska <mliska@suse.cz>
195
196 Revert:
197 2022-11-14 Martin Liska <mliska@suse.cz>
198
199 * Makefile.in: Support Sphinx based documentation.
200
201 2022-11-14 Martin Liska <mliska@suse.cz>
202
203 Revert:
204 2022-11-14 Martin Liska <mliska@suse.cz>
205
206 * libgomp.texi: Removed.
207
208 2022-11-14 Martin Liska <mliska@suse.cz>
209
210 Revert:
211 2022-11-14 Martin Liska <mliska@suse.cz>
212
213 * Makefile.in: Support --with-sphinx-build.
214 * configure.ac: Likewise..
215 * configure: Regenerate.
216
217 2022-11-14 Martin Liska <mliska@suse.cz>
218
219 Revert:
220 2022-11-09 Martin Liska <mliska@suse.cz>
221
222 * Makefile.in: Build info pages conditionally.
223
224 2022-11-14 Martin Liska <mliska@suse.cz>
225
226 Revert:
227 2022-11-14 Martin Liska <mliska@suse.cz>
228
229 * doc/amd-radeon-gcn.rst:
230 Add trailing newline.
231 * doc/copyright.rst:
232 Add trailing newline.
233 * doc/cuda-streams-usage.rst:
234 Add trailing newline.
235 * doc/enabling-openacc.rst:
236 Add trailing newline.
237 * doc/enabling-openmp.rst:
238 Add trailing newline.
239 * doc/first-invocation-nvidia-cublas-library-api.rst:
240 Add trailing newline.
241 * doc/first-invocation-openacc-library-api.rst:
242 Add trailing newline.
243 * doc/funding.rst:
244 Add trailing newline.
245 * doc/general-public-license-3.rst:
246 Add trailing newline.
247 * doc/gnu-free-documentation-license.rst:
248 Add trailing newline.
249 * doc/implementation-status-and-implementation-defined-behavior.rst:
250 Add trailing newline.
251 * doc/index.rst:
252 Add trailing newline.
253 * doc/indices-and-tables.rst:
254 Add trailing newline.
255 * doc/introduction.rst:
256 Add trailing newline.
257 * doc/memory-allocation-with-libmemkind.rst:
258 Add trailing newline.
259 * doc/nvptx.rst:
260 Add trailing newline.
261 * doc/offload-target-specifics.rst:
262 Add trailing newline.
263 * doc/openacc-environment-variables.rst:
264 Add trailing newline.
265 * doc/openacc-environment-variables/accdevicenum.rst:
266 Add trailing newline.
267 * doc/openacc-environment-variables/accdevicetype.rst:
268 Add trailing newline.
269 * doc/openacc-environment-variables/accproflib.rst:
270 Add trailing newline.
271 * doc/openacc-environment-variables/gccaccnotify.rst:
272 Add trailing newline.
273 * doc/openacc-introduction.rst:
274 Add trailing newline.
275 * doc/openacc-library-and-environment-variables.rst:
276 Add trailing newline.
277 * doc/openacc-library-interoperability.rst:
278 Add trailing newline.
279 * doc/openacc-profiling-interface.rst:
280 Add trailing newline.
281 * doc/openacc-runtime-library-routines.rst:
282 Add trailing newline.
283 * doc/openacc-runtime-library-routines/accasynctest.rst:
284 Add trailing newline.
285 * doc/openacc-runtime-library-routines/accasynctestall.rst:
286 Add trailing newline.
287 * doc/openacc-runtime-library-routines/accattach.rst:
288 Add trailing newline.
289 * doc/openacc-runtime-library-routines/acccopyin.rst:
290 Add trailing newline.
291 * doc/openacc-runtime-library-routines/acccopyout.rst:
292 Add trailing newline.
293 * doc/openacc-runtime-library-routines/acccreate.rst:
294 Add trailing newline.
295 * doc/openacc-runtime-library-routines/accdelete.rst:
296 Add trailing newline.
297 * doc/openacc-runtime-library-routines/accdetach.rst:
298 Add trailing newline.
299 * doc/openacc-runtime-library-routines/accdeviceptr.rst:
300 Add trailing newline.
301 * doc/openacc-runtime-library-routines/accfree.rst:
302 Add trailing newline.
303 * doc/openacc-runtime-library-routines/accgetcudastream.rst:
304 Add trailing newline.
305 * doc/openacc-runtime-library-routines/accgetcurrentcudacontext.rst:
306 Add trailing newline.
307 * doc/openacc-runtime-library-routines/accgetcurrentcudadevice.rst:
308 Add trailing newline.
309 * doc/openacc-runtime-library-routines/accgetdevicenum.rst:
310 Add trailing newline.
311 * doc/openacc-runtime-library-routines/accgetdevicetype.rst:
312 Add trailing newline.
313 * doc/openacc-runtime-library-routines/accgetnumdevices.rst:
314 Add trailing newline.
315 * doc/openacc-runtime-library-routines/accgetproperty.rst:
316 Add trailing newline.
317 * doc/openacc-runtime-library-routines/acchostptr.rst:
318 Add trailing newline.
319 * doc/openacc-runtime-library-routines/accinit.rst:
320 Add trailing newline.
321 * doc/openacc-runtime-library-routines/accispresent.rst:
322 Add trailing newline.
323 * doc/openacc-runtime-library-routines/accmalloc.rst:
324 Add trailing newline.
325 * doc/openacc-runtime-library-routines/accmapdata.rst:
326 Add trailing newline.
327 * doc/openacc-runtime-library-routines/accmemcpyfromdevice.rst:
328 Add trailing newline.
329 * doc/openacc-runtime-library-routines/accmemcpytodevice.rst:
330 Add trailing newline.
331 * doc/openacc-runtime-library-routines/accondevice.rst:
332 Add trailing newline.
333 * doc/openacc-runtime-library-routines/accpresentorcopyin.rst:
334 Add trailing newline.
335 * doc/openacc-runtime-library-routines/accpresentorcreate.rst:
336 Add trailing newline.
337 * doc/openacc-runtime-library-routines/accproflookup.rst:
338 Add trailing newline.
339 * doc/openacc-runtime-library-routines/accprofregister.rst:
340 Add trailing newline.
341 * doc/openacc-runtime-library-routines/accprofunregister.rst:
342 Add trailing newline.
343 * doc/openacc-runtime-library-routines/accregisterlibrary.rst:
344 Add trailing newline.
345 * doc/openacc-runtime-library-routines/accsetcudastream.rst:
346 Add trailing newline.
347 * doc/openacc-runtime-library-routines/accsetdevicenum.rst:
348 Add trailing newline.
349 * doc/openacc-runtime-library-routines/accsetdevicetype.rst:
350 Add trailing newline.
351 * doc/openacc-runtime-library-routines/accshutdown.rst:
352 Add trailing newline.
353 * doc/openacc-runtime-library-routines/accunmapdata.rst:
354 Add trailing newline.
355 * doc/openacc-runtime-library-routines/accupdatedevice.rst:
356 Add trailing newline.
357 * doc/openacc-runtime-library-routines/accupdateself.rst:
358 Add trailing newline.
359 * doc/openacc-runtime-library-routines/accwait.rst:
360 Add trailing newline.
361 * doc/openacc-runtime-library-routines/accwaitall.rst:
362 Add trailing newline.
363 * doc/openacc-runtime-library-routines/accwaitallasync.rst:
364 Add trailing newline.
365 * doc/openacc-runtime-library-routines/accwaitasync.rst:
366 Add trailing newline.
367 * doc/openmp-context-selectors.rst:
368 Add trailing newline.
369 * doc/openmp-environment-variables.rst:
370 Add trailing newline.
371 * doc/openmp-environment-variables/gompcpuaffinity.rst:
372 Add trailing newline.
373 * doc/openmp-environment-variables/gompdebug.rst:
374 Add trailing newline.
375 * doc/openmp-environment-variables/gomprtemsthreadpools.rst:
376 Add trailing newline.
377 * doc/openmp-environment-variables/gompspincount.rst:
378 Add trailing newline.
379 * doc/openmp-environment-variables/gompstacksize.rst:
380 Add trailing newline.
381 * doc/openmp-environment-variables/ompcancellation.rst:
382 Add trailing newline.
383 * doc/openmp-environment-variables/ompdefaultdevice.rst:
384 Add trailing newline.
385 * doc/openmp-environment-variables/ompdisplayenv.rst:
386 Add trailing newline.
387 * doc/openmp-environment-variables/ompdynamic.rst:
388 Add trailing newline.
389 * doc/openmp-environment-variables/ompmaxactivelevels.rst:
390 Add trailing newline.
391 * doc/openmp-environment-variables/ompmaxtaskpriority.rst:
392 Add trailing newline.
393 * doc/openmp-environment-variables/ompnested.rst:
394 Add trailing newline.
395 * doc/openmp-environment-variables/ompnumteams.rst:
396 Add trailing newline.
397 * doc/openmp-environment-variables/ompnumthreads.rst:
398 Add trailing newline.
399 * doc/openmp-environment-variables/ompplaces.rst:
400 Add trailing newline.
401 * doc/openmp-environment-variables/ompprocbind.rst:
402 Add trailing newline.
403 * doc/openmp-environment-variables/ompschedule.rst:
404 Add trailing newline.
405 * doc/openmp-environment-variables/ompstacksize.rst:
406 Add trailing newline.
407 * doc/openmp-environment-variables/omptargetoffload.rst:
408 Add trailing newline.
409 * doc/openmp-environment-variables/ompteamsthreadlimit.rst:
410 Add trailing newline.
411 * doc/openmp-environment-variables/ompthreadlimit.rst:
412 Add trailing newline.
413 * doc/openmp-environment-variables/ompwaitpolicy.rst:
414 Add trailing newline.
415 * doc/openmp-implementation-specifics.rst:
416 Add trailing newline.
417 * doc/openmp-implementation-status.rst:
418 Add trailing newline.
419 * doc/openmp-implementation-status/openmp-45.rst:
420 Add trailing newline.
421 * doc/openmp-implementation-status/openmp-50.rst:
422 Add trailing newline.
423 * doc/openmp-implementation-status/openmp-51.rst:
424 Add trailing newline.
425 * doc/openmp-implementation-status/openmp-52.rst:
426 Add trailing newline.
427 * doc/openmp-runtime-library-routines.rst:
428 Add trailing newline.
429 * doc/openmp-runtime-library-routines/ompdestroylock.rst:
430 Add trailing newline.
431 * doc/openmp-runtime-library-routines/ompdestroynestlock.rst:
432 Add trailing newline.
433 * doc/openmp-runtime-library-routines/ompfulfillevent.rst:
434 Add trailing newline.
435 * doc/openmp-runtime-library-routines/ompgetactivelevel.rst:
436 Add trailing newline.
437 * doc/openmp-runtime-library-routines/ompgetancestorthreadnum.rst:
438 Add trailing newline.
439 * doc/openmp-runtime-library-routines/ompgetcancellation.rst:
440 Add trailing newline.
441 * doc/openmp-runtime-library-routines/ompgetdefaultdevice.rst:
442 Add trailing newline.
443 * doc/openmp-runtime-library-routines/ompgetdevicenum.rst:
444 Add trailing newline.
445 * doc/openmp-runtime-library-routines/ompgetdynamic.rst:
446 Add trailing newline.
447 * doc/openmp-runtime-library-routines/ompgetinitialdevice.rst:
448 Add trailing newline.
449 * doc/openmp-runtime-library-routines/ompgetlevel.rst:
450 Add trailing newline.
451 * doc/openmp-runtime-library-routines/ompgetmaxactivelevels.rst:
452 Add trailing newline.
453 * doc/openmp-runtime-library-routines/ompgetmaxtaskpriority.rst:
454 Add trailing newline.
455 * doc/openmp-runtime-library-routines/ompgetmaxteams.rst:
456 Add trailing newline.
457 * doc/openmp-runtime-library-routines/ompgetmaxthreads.rst:
458 Add trailing newline.
459 * doc/openmp-runtime-library-routines/ompgetnested.rst:
460 Add trailing newline.
461 * doc/openmp-runtime-library-routines/ompgetnumdevices.rst:
462 Add trailing newline.
463 * doc/openmp-runtime-library-routines/ompgetnumprocs.rst:
464 Add trailing newline.
465 * doc/openmp-runtime-library-routines/ompgetnumteams.rst:
466 Add trailing newline.
467 * doc/openmp-runtime-library-routines/ompgetnumthreads.rst:
468 Add trailing newline.
469 * doc/openmp-runtime-library-routines/ompgetprocbind.rst:
470 Add trailing newline.
471 * doc/openmp-runtime-library-routines/ompgetschedule.rst:
472 Add trailing newline.
473 * doc/openmp-runtime-library-routines/ompgetsupportedactivelevels.rst:
474 Add trailing newline.
475 * doc/openmp-runtime-library-routines/ompgetteamnum.rst:
476 Add trailing newline.
477 * doc/openmp-runtime-library-routines/ompgetteamsize.rst:
478 Add trailing newline.
479 * doc/openmp-runtime-library-routines/ompgetteamsthreadlimit.rst:
480 Add trailing newline.
481 * doc/openmp-runtime-library-routines/ompgetthreadlimit.rst:
482 Add trailing newline.
483 * doc/openmp-runtime-library-routines/ompgetthreadnum.rst:
484 Add trailing newline.
485 * doc/openmp-runtime-library-routines/ompgetwtick.rst:
486 Add trailing newline.
487 * doc/openmp-runtime-library-routines/ompgetwtime.rst:
488 Add trailing newline.
489 * doc/openmp-runtime-library-routines/ompinfinal.rst:
490 Add trailing newline.
491 * doc/openmp-runtime-library-routines/ompinitlock.rst:
492 Add trailing newline.
493 * doc/openmp-runtime-library-routines/ompinitnestlock.rst:
494 Add trailing newline.
495 * doc/openmp-runtime-library-routines/ompinparallel.rst:
496 Add trailing newline.
497 * doc/openmp-runtime-library-routines/ompisinitialdevice.rst:
498 Add trailing newline.
499 * doc/openmp-runtime-library-routines/ompsetdefaultdevice.rst:
500 Add trailing newline.
501 * doc/openmp-runtime-library-routines/ompsetdynamic.rst:
502 Add trailing newline.
503 * doc/openmp-runtime-library-routines/ompsetlock.rst:
504 Add trailing newline.
505 * doc/openmp-runtime-library-routines/ompsetmaxactivelevels.rst:
506 Add trailing newline.
507 * doc/openmp-runtime-library-routines/ompsetnested.rst:
508 Add trailing newline.
509 * doc/openmp-runtime-library-routines/ompsetnestlock.rst:
510 Add trailing newline.
511 * doc/openmp-runtime-library-routines/ompsetnumteams.rst:
512 Add trailing newline.
513 * doc/openmp-runtime-library-routines/ompsetnumthreads.rst:
514 Add trailing newline.
515 * doc/openmp-runtime-library-routines/ompsetschedule.rst:
516 Add trailing newline.
517 * doc/openmp-runtime-library-routines/ompsetteamsthreadlimit.rst:
518 Add trailing newline.
519 * doc/openmp-runtime-library-routines/omptestlock.rst:
520 Add trailing newline.
521 * doc/openmp-runtime-library-routines/omptestnestlock.rst:
522 Add trailing newline.
523 * doc/openmp-runtime-library-routines/ompunsetlock.rst:
524 Add trailing newline.
525 * doc/openmp-runtime-library-routines/ompunsetnestlock.rst:
526 Add trailing newline.
527 * doc/reporting-bugs.rst:
528 Add trailing newline.
529 * doc/the-libgomp-abi.rst:
530 Add trailing newline.
531 * doc/the-libgomp-abi/implementing-atomic-construct.rst:
532 Add trailing newline.
533 * doc/the-libgomp-abi/implementing-barrier-construct.rst:
534 Add trailing newline.
535 * doc/the-libgomp-abi/implementing-critical-construct.rst:
536 Add trailing newline.
537 * doc/the-libgomp-abi/implementing-firstprivate-lastprivate-copyin-and-copyprivate-clauses.rst:
538 Add trailing newline.
539 * doc/the-libgomp-abi/implementing-flush-construct.rst:
540 Add trailing newline.
541 * doc/the-libgomp-abi/implementing-for-construct.rst:
542 Add trailing newline.
543 * doc/the-libgomp-abi/implementing-master-construct.rst:
544 Add trailing newline.
545 * doc/the-libgomp-abi/implementing-openaccs-parallel-construct.rst:
546 Add trailing newline.
547 * doc/the-libgomp-abi/implementing-ordered-construct.rst:
548 Add trailing newline.
549 * doc/the-libgomp-abi/implementing-parallel-construct.rst:
550 Add trailing newline.
551 * doc/the-libgomp-abi/implementing-private-clause.rst:
552 Add trailing newline.
553 * doc/the-libgomp-abi/implementing-reduction-clause.rst:
554 Add trailing newline.
555 * doc/the-libgomp-abi/implementing-sections-construct.rst:
556 Add trailing newline.
557 * doc/the-libgomp-abi/implementing-single-construct.rst:
558 Add trailing newline.
559 * doc/the-libgomp-abi/implementing-threadprivate-construct.rst:
560 Add trailing newline.
561
562 2022-11-14 Martin Liska <mliska@suse.cz>
563
564 Revert:
565 2022-11-09 Martin Liska <mliska@suse.cz>
566
567 * Makefile.in: Add missing HAS_SPHINX_BUILD.
568
569 2022-11-14 Martin Liska <mliska@suse.cz>
570
571 Revert:
572 2022-11-14 Martin Liska <mliska@suse.cz>
573
574 * doc/conf.py: Add newline at last line.
575
576 2022-11-14 Martin Liska <mliska@suse.cz>
577
578 Revert:
579 2022-11-14 Martin Liska <mliska@suse.cz>
580
581 PR other/107620
582 * configure: Regenerate.
583 * configure.ac: Always set sphinx-build.
584
585 2022-11-13 Martin Liska <mliska@suse.cz>
586
587 PR other/107620
588 * configure: Regenerate.
589 * configure.ac: Always set sphinx-build.
590
591 2022-11-12 Jakub Jelinek <jakub@redhat.com>
592
593 PR libgomp/107641
594 * env.c (parse_unsigned_long): Cast params[2] to uintptr_t rather than
595 unsigned long. Change type of upper from unsigned to unsigned long.
596
597 2022-11-10 Martin Liska <mliska@suse.cz>
598
599 * doc/conf.py: Add newline at last line.
600
601 2022-11-09 Martin Liska <mliska@suse.cz>
602
603 * Makefile.in: Add missing HAS_SPHINX_BUILD.
604
605 2022-11-09 Martin Liska <mliska@suse.cz>
606
607 * doc/amd-radeon-gcn.rst:
608 Add trailing newline.
609 * doc/copyright.rst:
610 Add trailing newline.
611 * doc/cuda-streams-usage.rst:
612 Add trailing newline.
613 * doc/enabling-openacc.rst:
614 Add trailing newline.
615 * doc/enabling-openmp.rst:
616 Add trailing newline.
617 * doc/first-invocation-nvidia-cublas-library-api.rst:
618 Add trailing newline.
619 * doc/first-invocation-openacc-library-api.rst:
620 Add trailing newline.
621 * doc/funding.rst:
622 Add trailing newline.
623 * doc/general-public-license-3.rst:
624 Add trailing newline.
625 * doc/gnu-free-documentation-license.rst:
626 Add trailing newline.
627 * doc/implementation-status-and-implementation-defined-behavior.rst:
628 Add trailing newline.
629 * doc/index.rst:
630 Add trailing newline.
631 * doc/indices-and-tables.rst:
632 Add trailing newline.
633 * doc/introduction.rst:
634 Add trailing newline.
635 * doc/memory-allocation-with-libmemkind.rst:
636 Add trailing newline.
637 * doc/nvptx.rst:
638 Add trailing newline.
639 * doc/offload-target-specifics.rst:
640 Add trailing newline.
641 * doc/openacc-environment-variables.rst:
642 Add trailing newline.
643 * doc/openacc-environment-variables/accdevicenum.rst:
644 Add trailing newline.
645 * doc/openacc-environment-variables/accdevicetype.rst:
646 Add trailing newline.
647 * doc/openacc-environment-variables/accproflib.rst:
648 Add trailing newline.
649 * doc/openacc-environment-variables/gccaccnotify.rst:
650 Add trailing newline.
651 * doc/openacc-introduction.rst:
652 Add trailing newline.
653 * doc/openacc-library-and-environment-variables.rst:
654 Add trailing newline.
655 * doc/openacc-library-interoperability.rst:
656 Add trailing newline.
657 * doc/openacc-profiling-interface.rst:
658 Add trailing newline.
659 * doc/openacc-runtime-library-routines.rst:
660 Add trailing newline.
661 * doc/openacc-runtime-library-routines/accasynctest.rst:
662 Add trailing newline.
663 * doc/openacc-runtime-library-routines/accasynctestall.rst:
664 Add trailing newline.
665 * doc/openacc-runtime-library-routines/accattach.rst:
666 Add trailing newline.
667 * doc/openacc-runtime-library-routines/acccopyin.rst:
668 Add trailing newline.
669 * doc/openacc-runtime-library-routines/acccopyout.rst:
670 Add trailing newline.
671 * doc/openacc-runtime-library-routines/acccreate.rst:
672 Add trailing newline.
673 * doc/openacc-runtime-library-routines/accdelete.rst:
674 Add trailing newline.
675 * doc/openacc-runtime-library-routines/accdetach.rst:
676 Add trailing newline.
677 * doc/openacc-runtime-library-routines/accdeviceptr.rst:
678 Add trailing newline.
679 * doc/openacc-runtime-library-routines/accfree.rst:
680 Add trailing newline.
681 * doc/openacc-runtime-library-routines/accgetcudastream.rst:
682 Add trailing newline.
683 * doc/openacc-runtime-library-routines/accgetcurrentcudacontext.rst:
684 Add trailing newline.
685 * doc/openacc-runtime-library-routines/accgetcurrentcudadevice.rst:
686 Add trailing newline.
687 * doc/openacc-runtime-library-routines/accgetdevicenum.rst:
688 Add trailing newline.
689 * doc/openacc-runtime-library-routines/accgetdevicetype.rst:
690 Add trailing newline.
691 * doc/openacc-runtime-library-routines/accgetnumdevices.rst:
692 Add trailing newline.
693 * doc/openacc-runtime-library-routines/accgetproperty.rst:
694 Add trailing newline.
695 * doc/openacc-runtime-library-routines/acchostptr.rst:
696 Add trailing newline.
697 * doc/openacc-runtime-library-routines/accinit.rst:
698 Add trailing newline.
699 * doc/openacc-runtime-library-routines/accispresent.rst:
700 Add trailing newline.
701 * doc/openacc-runtime-library-routines/accmalloc.rst:
702 Add trailing newline.
703 * doc/openacc-runtime-library-routines/accmapdata.rst:
704 Add trailing newline.
705 * doc/openacc-runtime-library-routines/accmemcpyfromdevice.rst:
706 Add trailing newline.
707 * doc/openacc-runtime-library-routines/accmemcpytodevice.rst:
708 Add trailing newline.
709 * doc/openacc-runtime-library-routines/accondevice.rst:
710 Add trailing newline.
711 * doc/openacc-runtime-library-routines/accpresentorcopyin.rst:
712 Add trailing newline.
713 * doc/openacc-runtime-library-routines/accpresentorcreate.rst:
714 Add trailing newline.
715 * doc/openacc-runtime-library-routines/accproflookup.rst:
716 Add trailing newline.
717 * doc/openacc-runtime-library-routines/accprofregister.rst:
718 Add trailing newline.
719 * doc/openacc-runtime-library-routines/accprofunregister.rst:
720 Add trailing newline.
721 * doc/openacc-runtime-library-routines/accregisterlibrary.rst:
722 Add trailing newline.
723 * doc/openacc-runtime-library-routines/accsetcudastream.rst:
724 Add trailing newline.
725 * doc/openacc-runtime-library-routines/accsetdevicenum.rst:
726 Add trailing newline.
727 * doc/openacc-runtime-library-routines/accsetdevicetype.rst:
728 Add trailing newline.
729 * doc/openacc-runtime-library-routines/accshutdown.rst:
730 Add trailing newline.
731 * doc/openacc-runtime-library-routines/accunmapdata.rst:
732 Add trailing newline.
733 * doc/openacc-runtime-library-routines/accupdatedevice.rst:
734 Add trailing newline.
735 * doc/openacc-runtime-library-routines/accupdateself.rst:
736 Add trailing newline.
737 * doc/openacc-runtime-library-routines/accwait.rst:
738 Add trailing newline.
739 * doc/openacc-runtime-library-routines/accwaitall.rst:
740 Add trailing newline.
741 * doc/openacc-runtime-library-routines/accwaitallasync.rst:
742 Add trailing newline.
743 * doc/openacc-runtime-library-routines/accwaitasync.rst:
744 Add trailing newline.
745 * doc/openmp-context-selectors.rst:
746 Add trailing newline.
747 * doc/openmp-environment-variables.rst:
748 Add trailing newline.
749 * doc/openmp-environment-variables/gompcpuaffinity.rst:
750 Add trailing newline.
751 * doc/openmp-environment-variables/gompdebug.rst:
752 Add trailing newline.
753 * doc/openmp-environment-variables/gomprtemsthreadpools.rst:
754 Add trailing newline.
755 * doc/openmp-environment-variables/gompspincount.rst:
756 Add trailing newline.
757 * doc/openmp-environment-variables/gompstacksize.rst:
758 Add trailing newline.
759 * doc/openmp-environment-variables/ompcancellation.rst:
760 Add trailing newline.
761 * doc/openmp-environment-variables/ompdefaultdevice.rst:
762 Add trailing newline.
763 * doc/openmp-environment-variables/ompdisplayenv.rst:
764 Add trailing newline.
765 * doc/openmp-environment-variables/ompdynamic.rst:
766 Add trailing newline.
767 * doc/openmp-environment-variables/ompmaxactivelevels.rst:
768 Add trailing newline.
769 * doc/openmp-environment-variables/ompmaxtaskpriority.rst:
770 Add trailing newline.
771 * doc/openmp-environment-variables/ompnested.rst:
772 Add trailing newline.
773 * doc/openmp-environment-variables/ompnumteams.rst:
774 Add trailing newline.
775 * doc/openmp-environment-variables/ompnumthreads.rst:
776 Add trailing newline.
777 * doc/openmp-environment-variables/ompplaces.rst:
778 Add trailing newline.
779 * doc/openmp-environment-variables/ompprocbind.rst:
780 Add trailing newline.
781 * doc/openmp-environment-variables/ompschedule.rst:
782 Add trailing newline.
783 * doc/openmp-environment-variables/ompstacksize.rst:
784 Add trailing newline.
785 * doc/openmp-environment-variables/omptargetoffload.rst:
786 Add trailing newline.
787 * doc/openmp-environment-variables/ompteamsthreadlimit.rst:
788 Add trailing newline.
789 * doc/openmp-environment-variables/ompthreadlimit.rst:
790 Add trailing newline.
791 * doc/openmp-environment-variables/ompwaitpolicy.rst:
792 Add trailing newline.
793 * doc/openmp-implementation-specifics.rst:
794 Add trailing newline.
795 * doc/openmp-implementation-status.rst:
796 Add trailing newline.
797 * doc/openmp-implementation-status/openmp-45.rst:
798 Add trailing newline.
799 * doc/openmp-implementation-status/openmp-50.rst:
800 Add trailing newline.
801 * doc/openmp-implementation-status/openmp-51.rst:
802 Add trailing newline.
803 * doc/openmp-implementation-status/openmp-52.rst:
804 Add trailing newline.
805 * doc/openmp-runtime-library-routines.rst:
806 Add trailing newline.
807 * doc/openmp-runtime-library-routines/ompdestroylock.rst:
808 Add trailing newline.
809 * doc/openmp-runtime-library-routines/ompdestroynestlock.rst:
810 Add trailing newline.
811 * doc/openmp-runtime-library-routines/ompfulfillevent.rst:
812 Add trailing newline.
813 * doc/openmp-runtime-library-routines/ompgetactivelevel.rst:
814 Add trailing newline.
815 * doc/openmp-runtime-library-routines/ompgetancestorthreadnum.rst:
816 Add trailing newline.
817 * doc/openmp-runtime-library-routines/ompgetcancellation.rst:
818 Add trailing newline.
819 * doc/openmp-runtime-library-routines/ompgetdefaultdevice.rst:
820 Add trailing newline.
821 * doc/openmp-runtime-library-routines/ompgetdevicenum.rst:
822 Add trailing newline.
823 * doc/openmp-runtime-library-routines/ompgetdynamic.rst:
824 Add trailing newline.
825 * doc/openmp-runtime-library-routines/ompgetinitialdevice.rst:
826 Add trailing newline.
827 * doc/openmp-runtime-library-routines/ompgetlevel.rst:
828 Add trailing newline.
829 * doc/openmp-runtime-library-routines/ompgetmaxactivelevels.rst:
830 Add trailing newline.
831 * doc/openmp-runtime-library-routines/ompgetmaxtaskpriority.rst:
832 Add trailing newline.
833 * doc/openmp-runtime-library-routines/ompgetmaxteams.rst:
834 Add trailing newline.
835 * doc/openmp-runtime-library-routines/ompgetmaxthreads.rst:
836 Add trailing newline.
837 * doc/openmp-runtime-library-routines/ompgetnested.rst:
838 Add trailing newline.
839 * doc/openmp-runtime-library-routines/ompgetnumdevices.rst:
840 Add trailing newline.
841 * doc/openmp-runtime-library-routines/ompgetnumprocs.rst:
842 Add trailing newline.
843 * doc/openmp-runtime-library-routines/ompgetnumteams.rst:
844 Add trailing newline.
845 * doc/openmp-runtime-library-routines/ompgetnumthreads.rst:
846 Add trailing newline.
847 * doc/openmp-runtime-library-routines/ompgetprocbind.rst:
848 Add trailing newline.
849 * doc/openmp-runtime-library-routines/ompgetschedule.rst:
850 Add trailing newline.
851 * doc/openmp-runtime-library-routines/ompgetsupportedactivelevels.rst:
852 Add trailing newline.
853 * doc/openmp-runtime-library-routines/ompgetteamnum.rst:
854 Add trailing newline.
855 * doc/openmp-runtime-library-routines/ompgetteamsize.rst:
856 Add trailing newline.
857 * doc/openmp-runtime-library-routines/ompgetteamsthreadlimit.rst:
858 Add trailing newline.
859 * doc/openmp-runtime-library-routines/ompgetthreadlimit.rst:
860 Add trailing newline.
861 * doc/openmp-runtime-library-routines/ompgetthreadnum.rst:
862 Add trailing newline.
863 * doc/openmp-runtime-library-routines/ompgetwtick.rst:
864 Add trailing newline.
865 * doc/openmp-runtime-library-routines/ompgetwtime.rst:
866 Add trailing newline.
867 * doc/openmp-runtime-library-routines/ompinfinal.rst:
868 Add trailing newline.
869 * doc/openmp-runtime-library-routines/ompinitlock.rst:
870 Add trailing newline.
871 * doc/openmp-runtime-library-routines/ompinitnestlock.rst:
872 Add trailing newline.
873 * doc/openmp-runtime-library-routines/ompinparallel.rst:
874 Add trailing newline.
875 * doc/openmp-runtime-library-routines/ompisinitialdevice.rst:
876 Add trailing newline.
877 * doc/openmp-runtime-library-routines/ompsetdefaultdevice.rst:
878 Add trailing newline.
879 * doc/openmp-runtime-library-routines/ompsetdynamic.rst:
880 Add trailing newline.
881 * doc/openmp-runtime-library-routines/ompsetlock.rst:
882 Add trailing newline.
883 * doc/openmp-runtime-library-routines/ompsetmaxactivelevels.rst:
884 Add trailing newline.
885 * doc/openmp-runtime-library-routines/ompsetnested.rst:
886 Add trailing newline.
887 * doc/openmp-runtime-library-routines/ompsetnestlock.rst:
888 Add trailing newline.
889 * doc/openmp-runtime-library-routines/ompsetnumteams.rst:
890 Add trailing newline.
891 * doc/openmp-runtime-library-routines/ompsetnumthreads.rst:
892 Add trailing newline.
893 * doc/openmp-runtime-library-routines/ompsetschedule.rst:
894 Add trailing newline.
895 * doc/openmp-runtime-library-routines/ompsetteamsthreadlimit.rst:
896 Add trailing newline.
897 * doc/openmp-runtime-library-routines/omptestlock.rst:
898 Add trailing newline.
899 * doc/openmp-runtime-library-routines/omptestnestlock.rst:
900 Add trailing newline.
901 * doc/openmp-runtime-library-routines/ompunsetlock.rst:
902 Add trailing newline.
903 * doc/openmp-runtime-library-routines/ompunsetnestlock.rst:
904 Add trailing newline.
905 * doc/reporting-bugs.rst:
906 Add trailing newline.
907 * doc/the-libgomp-abi.rst:
908 Add trailing newline.
909 * doc/the-libgomp-abi/implementing-atomic-construct.rst:
910 Add trailing newline.
911 * doc/the-libgomp-abi/implementing-barrier-construct.rst:
912 Add trailing newline.
913 * doc/the-libgomp-abi/implementing-critical-construct.rst:
914 Add trailing newline.
915 * doc/the-libgomp-abi/implementing-firstprivate-lastprivate-copyin-and-copyprivate-clauses.rst:
916 Add trailing newline.
917 * doc/the-libgomp-abi/implementing-flush-construct.rst:
918 Add trailing newline.
919 * doc/the-libgomp-abi/implementing-for-construct.rst:
920 Add trailing newline.
921 * doc/the-libgomp-abi/implementing-master-construct.rst:
922 Add trailing newline.
923 * doc/the-libgomp-abi/implementing-openaccs-parallel-construct.rst:
924 Add trailing newline.
925 * doc/the-libgomp-abi/implementing-ordered-construct.rst:
926 Add trailing newline.
927 * doc/the-libgomp-abi/implementing-parallel-construct.rst:
928 Add trailing newline.
929 * doc/the-libgomp-abi/implementing-private-clause.rst:
930 Add trailing newline.
931 * doc/the-libgomp-abi/implementing-reduction-clause.rst:
932 Add trailing newline.
933 * doc/the-libgomp-abi/implementing-sections-construct.rst:
934 Add trailing newline.
935 * doc/the-libgomp-abi/implementing-single-construct.rst:
936 Add trailing newline.
937 * doc/the-libgomp-abi/implementing-threadprivate-construct.rst:
938 Add trailing newline.
939
940 2022-11-09 Martin Liska <mliska@suse.cz>
941
942 * Makefile.in: Build info pages conditionally.
943
944 2022-11-09 Martin Liska <mliska@suse.cz>
945
946 * Makefile.in: Support --with-sphinx-build.
947 * configure.ac: Likewise..
948 * configure: Regenerate.
949
950 2022-11-09 Martin Liska <mliska@suse.cz>
951
952 * libgomp.texi: Removed.
953
954 2022-11-09 Martin Liska <mliska@suse.cz>
955
956 * Makefile.in: Support Sphinx based documentation.
957
958 2022-11-09 Martin Liska <mliska@suse.cz>
959
960 * doc/amd-radeon-gcn.rst: New file.
961 * doc/conf.py: New file.
962 * doc/copyright.rst: New file.
963 * doc/cuda-streams-usage.rst: New file.
964 * doc/enabling-openacc.rst: New file.
965 * doc/enabling-openmp.rst: New file.
966 * doc/first-invocation-nvidia-cublas-library-api.rst: New file.
967 * doc/first-invocation-openacc-library-api.rst: New file.
968 * doc/funding.rst: New file.
969 * doc/general-public-license-3.rst: New file.
970 * doc/gnu-free-documentation-license.rst: New file.
971 * doc/implementation-status-and-implementation-defined-behavior.rst: New file.
972 * doc/index.rst: New file.
973 * doc/indices-and-tables.rst: New file.
974 * doc/introduction.rst: New file.
975 * doc/memory-allocation-with-libmemkind.rst: New file.
976 * doc/nvptx.rst: New file.
977 * doc/offload-target-specifics.rst: New file.
978 * doc/openacc-environment-variables.rst: New file.
979 * doc/openacc-environment-variables/accdevicenum.rst: New file.
980 * doc/openacc-environment-variables/accdevicetype.rst: New file.
981 * doc/openacc-environment-variables/accproflib.rst: New file.
982 * doc/openacc-environment-variables/gccaccnotify.rst: New file.
983 * doc/openacc-introduction.rst: New file.
984 * doc/openacc-library-and-environment-variables.rst: New file.
985 * doc/openacc-library-interoperability.rst: New file.
986 * doc/openacc-profiling-interface.rst: New file.
987 * doc/openacc-runtime-library-routines.rst: New file.
988 * doc/openacc-runtime-library-routines/accasynctest.rst: New file.
989 * doc/openacc-runtime-library-routines/accasynctestall.rst: New file.
990 * doc/openacc-runtime-library-routines/accattach.rst: New file.
991 * doc/openacc-runtime-library-routines/acccopyin.rst: New file.
992 * doc/openacc-runtime-library-routines/acccopyout.rst: New file.
993 * doc/openacc-runtime-library-routines/acccreate.rst: New file.
994 * doc/openacc-runtime-library-routines/accdelete.rst: New file.
995 * doc/openacc-runtime-library-routines/accdetach.rst: New file.
996 * doc/openacc-runtime-library-routines/accdeviceptr.rst: New file.
997 * doc/openacc-runtime-library-routines/accfree.rst: New file.
998 * doc/openacc-runtime-library-routines/accgetcudastream.rst: New file.
999 * doc/openacc-runtime-library-routines/accgetcurrentcudacontext.rst: New file.
1000 * doc/openacc-runtime-library-routines/accgetcurrentcudadevice.rst: New file.
1001 * doc/openacc-runtime-library-routines/accgetdevicenum.rst: New file.
1002 * doc/openacc-runtime-library-routines/accgetdevicetype.rst: New file.
1003 * doc/openacc-runtime-library-routines/accgetnumdevices.rst: New file.
1004 * doc/openacc-runtime-library-routines/accgetproperty.rst: New file.
1005 * doc/openacc-runtime-library-routines/acchostptr.rst: New file.
1006 * doc/openacc-runtime-library-routines/accinit.rst: New file.
1007 * doc/openacc-runtime-library-routines/accispresent.rst: New file.
1008 * doc/openacc-runtime-library-routines/accmalloc.rst: New file.
1009 * doc/openacc-runtime-library-routines/accmapdata.rst: New file.
1010 * doc/openacc-runtime-library-routines/accmemcpyfromdevice.rst: New file.
1011 * doc/openacc-runtime-library-routines/accmemcpytodevice.rst: New file.
1012 * doc/openacc-runtime-library-routines/accondevice.rst: New file.
1013 * doc/openacc-runtime-library-routines/accpresentorcopyin.rst: New file.
1014 * doc/openacc-runtime-library-routines/accpresentorcreate.rst: New file.
1015 * doc/openacc-runtime-library-routines/accproflookup.rst: New file.
1016 * doc/openacc-runtime-library-routines/accprofregister.rst: New file.
1017 * doc/openacc-runtime-library-routines/accprofunregister.rst: New file.
1018 * doc/openacc-runtime-library-routines/accregisterlibrary.rst: New file.
1019 * doc/openacc-runtime-library-routines/accsetcudastream.rst: New file.
1020 * doc/openacc-runtime-library-routines/accsetdevicenum.rst: New file.
1021 * doc/openacc-runtime-library-routines/accsetdevicetype.rst: New file.
1022 * doc/openacc-runtime-library-routines/accshutdown.rst: New file.
1023 * doc/openacc-runtime-library-routines/accunmapdata.rst: New file.
1024 * doc/openacc-runtime-library-routines/accupdatedevice.rst: New file.
1025 * doc/openacc-runtime-library-routines/accupdateself.rst: New file.
1026 * doc/openacc-runtime-library-routines/accwait.rst: New file.
1027 * doc/openacc-runtime-library-routines/accwaitall.rst: New file.
1028 * doc/openacc-runtime-library-routines/accwaitallasync.rst: New file.
1029 * doc/openacc-runtime-library-routines/accwaitasync.rst: New file.
1030 * doc/openmp-context-selectors.rst: New file.
1031 * doc/openmp-environment-variables.rst: New file.
1032 * doc/openmp-environment-variables/gompcpuaffinity.rst: New file.
1033 * doc/openmp-environment-variables/gompdebug.rst: New file.
1034 * doc/openmp-environment-variables/gomprtemsthreadpools.rst: New file.
1035 * doc/openmp-environment-variables/gompspincount.rst: New file.
1036 * doc/openmp-environment-variables/gompstacksize.rst: New file.
1037 * doc/openmp-environment-variables/ompcancellation.rst: New file.
1038 * doc/openmp-environment-variables/ompdefaultdevice.rst: New file.
1039 * doc/openmp-environment-variables/ompdisplayenv.rst: New file.
1040 * doc/openmp-environment-variables/ompdynamic.rst: New file.
1041 * doc/openmp-environment-variables/ompmaxactivelevels.rst: New file.
1042 * doc/openmp-environment-variables/ompmaxtaskpriority.rst: New file.
1043 * doc/openmp-environment-variables/ompnested.rst: New file.
1044 * doc/openmp-environment-variables/ompnumteams.rst: New file.
1045 * doc/openmp-environment-variables/ompnumthreads.rst: New file.
1046 * doc/openmp-environment-variables/ompplaces.rst: New file.
1047 * doc/openmp-environment-variables/ompprocbind.rst: New file.
1048 * doc/openmp-environment-variables/ompschedule.rst: New file.
1049 * doc/openmp-environment-variables/ompstacksize.rst: New file.
1050 * doc/openmp-environment-variables/omptargetoffload.rst: New file.
1051 * doc/openmp-environment-variables/ompteamsthreadlimit.rst: New file.
1052 * doc/openmp-environment-variables/ompthreadlimit.rst: New file.
1053 * doc/openmp-environment-variables/ompwaitpolicy.rst: New file.
1054 * doc/openmp-implementation-specifics.rst: New file.
1055 * doc/openmp-implementation-status.rst: New file.
1056 * doc/openmp-implementation-status/openmp-45.rst: New file.
1057 * doc/openmp-implementation-status/openmp-50.rst: New file.
1058 * doc/openmp-implementation-status/openmp-51.rst: New file.
1059 * doc/openmp-implementation-status/openmp-52.rst: New file.
1060 * doc/openmp-runtime-library-routines.rst: New file.
1061 * doc/openmp-runtime-library-routines/ompdestroylock.rst: New file.
1062 * doc/openmp-runtime-library-routines/ompdestroynestlock.rst: New file.
1063 * doc/openmp-runtime-library-routines/ompfulfillevent.rst: New file.
1064 * doc/openmp-runtime-library-routines/ompgetactivelevel.rst: New file.
1065 * doc/openmp-runtime-library-routines/ompgetancestorthreadnum.rst: New file.
1066 * doc/openmp-runtime-library-routines/ompgetcancellation.rst: New file.
1067 * doc/openmp-runtime-library-routines/ompgetdefaultdevice.rst: New file.
1068 * doc/openmp-runtime-library-routines/ompgetdevicenum.rst: New file.
1069 * doc/openmp-runtime-library-routines/ompgetdynamic.rst: New file.
1070 * doc/openmp-runtime-library-routines/ompgetinitialdevice.rst: New file.
1071 * doc/openmp-runtime-library-routines/ompgetlevel.rst: New file.
1072 * doc/openmp-runtime-library-routines/ompgetmaxactivelevels.rst: New file.
1073 * doc/openmp-runtime-library-routines/ompgetmaxtaskpriority.rst: New file.
1074 * doc/openmp-runtime-library-routines/ompgetmaxteams.rst: New file.
1075 * doc/openmp-runtime-library-routines/ompgetmaxthreads.rst: New file.
1076 * doc/openmp-runtime-library-routines/ompgetnested.rst: New file.
1077 * doc/openmp-runtime-library-routines/ompgetnumdevices.rst: New file.
1078 * doc/openmp-runtime-library-routines/ompgetnumprocs.rst: New file.
1079 * doc/openmp-runtime-library-routines/ompgetnumteams.rst: New file.
1080 * doc/openmp-runtime-library-routines/ompgetnumthreads.rst: New file.
1081 * doc/openmp-runtime-library-routines/ompgetprocbind.rst: New file.
1082 * doc/openmp-runtime-library-routines/ompgetschedule.rst: New file.
1083 * doc/openmp-runtime-library-routines/ompgetsupportedactivelevels.rst: New file.
1084 * doc/openmp-runtime-library-routines/ompgetteamnum.rst: New file.
1085 * doc/openmp-runtime-library-routines/ompgetteamsize.rst: New file.
1086 * doc/openmp-runtime-library-routines/ompgetteamsthreadlimit.rst: New file.
1087 * doc/openmp-runtime-library-routines/ompgetthreadlimit.rst: New file.
1088 * doc/openmp-runtime-library-routines/ompgetthreadnum.rst: New file.
1089 * doc/openmp-runtime-library-routines/ompgetwtick.rst: New file.
1090 * doc/openmp-runtime-library-routines/ompgetwtime.rst: New file.
1091 * doc/openmp-runtime-library-routines/ompinfinal.rst: New file.
1092 * doc/openmp-runtime-library-routines/ompinitlock.rst: New file.
1093 * doc/openmp-runtime-library-routines/ompinitnestlock.rst: New file.
1094 * doc/openmp-runtime-library-routines/ompinparallel.rst: New file.
1095 * doc/openmp-runtime-library-routines/ompisinitialdevice.rst: New file.
1096 * doc/openmp-runtime-library-routines/ompsetdefaultdevice.rst: New file.
1097 * doc/openmp-runtime-library-routines/ompsetdynamic.rst: New file.
1098 * doc/openmp-runtime-library-routines/ompsetlock.rst: New file.
1099 * doc/openmp-runtime-library-routines/ompsetmaxactivelevels.rst: New file.
1100 * doc/openmp-runtime-library-routines/ompsetnested.rst: New file.
1101 * doc/openmp-runtime-library-routines/ompsetnestlock.rst: New file.
1102 * doc/openmp-runtime-library-routines/ompsetnumteams.rst: New file.
1103 * doc/openmp-runtime-library-routines/ompsetnumthreads.rst: New file.
1104 * doc/openmp-runtime-library-routines/ompsetschedule.rst: New file.
1105 * doc/openmp-runtime-library-routines/ompsetteamsthreadlimit.rst: New file.
1106 * doc/openmp-runtime-library-routines/omptestlock.rst: New file.
1107 * doc/openmp-runtime-library-routines/omptestnestlock.rst: New file.
1108 * doc/openmp-runtime-library-routines/ompunsetlock.rst: New file.
1109 * doc/openmp-runtime-library-routines/ompunsetnestlock.rst: New file.
1110 * doc/reporting-bugs.rst: New file.
1111 * doc/the-libgomp-abi.rst: New file.
1112 * doc/the-libgomp-abi/implementing-atomic-construct.rst: New file.
1113 * doc/the-libgomp-abi/implementing-barrier-construct.rst: New file.
1114 * doc/the-libgomp-abi/implementing-critical-construct.rst: New file.
1115 * doc/the-libgomp-abi/implementing-firstprivate-lastprivate-copyin-and-copyprivate-clauses.rst:
1116 New file.
1117 * doc/the-libgomp-abi/implementing-flush-construct.rst: New file.
1118 * doc/the-libgomp-abi/implementing-for-construct.rst: New file.
1119 * doc/the-libgomp-abi/implementing-master-construct.rst: New file.
1120 * doc/the-libgomp-abi/implementing-openaccs-parallel-construct.rst: New file.
1121 * doc/the-libgomp-abi/implementing-ordered-construct.rst: New file.
1122 * doc/the-libgomp-abi/implementing-parallel-construct.rst: New file.
1123 * doc/the-libgomp-abi/implementing-private-clause.rst: New file.
1124 * doc/the-libgomp-abi/implementing-reduction-clause.rst: New file.
1125 * doc/the-libgomp-abi/implementing-sections-construct.rst: New file.
1126 * doc/the-libgomp-abi/implementing-single-construct.rst: New file.
1127 * doc/the-libgomp-abi/implementing-threadprivate-construct.rst: New file.
1128
1129 2022-11-04 Thomas Schwinge <thomas@codesourcery.com>
1130
1131 * libgomp-plugin.h (OFFLOAD_TARGET_TYPE_INTEL_MIC): Remove.
1132 * libgomp.texi (OpenMP Context Selectors): Remove Intel MIC
1133 documentation.
1134 * plugin/configfrag.ac <enable_offload_targets>
1135 [*-intelmic-* | *-intelmicemul-*]: Remove.
1136 * configure: Regenerate.
1137 * testsuite/lib/libgomp.exp (libgomp_init): Remove 'liboffloadmic'
1138 handling.
1139 (offload_target_to_openacc_device_type)
1140 [$offload_target = *-intelmic*]: Remove.
1141 (check_effective_target_offload_device_intel_mic)
1142 (check_effective_target_offload_device_any_intel_mic): Remove.
1143 * testsuite/libgomp.c-c++-common/on_device_arch.h
1144 (device_arch_intel_mic, on_device_arch_intel_mic, any_device_arch)
1145 (any_device_arch_intel_mic): Remove.
1146 * testsuite/libgomp.c-c++-common/target-45.c: Remove
1147 'offload_device_any_intel_mic' XFAIL.
1148 * testsuite/libgomp.fortran/target10.f90: Likewise.
1149
1150 2022-11-03 Tobias Burnus <tobias@codesourcery.com>
1151
1152 * testsuite/libgomp.fortran/target-11.f90: New test.
1153 * testsuite/libgomp.fortran/target-13.f90: New test.
1154
1155 2022-11-02 Thomas Schwinge <thomas@codesourcery.com>
1156
1157 PR libgomp/106643
1158 PR fortran/96668
1159 * oacc-mem.c (goacc_enter_data_internal): Support
1160 OpenACC 'declare create' with Fortran allocatable arrays, part II.
1161 * testsuite/libgomp.oacc-fortran/declare-allocatable-array_descriptor-1-directive.f90:
1162 Adjust.
1163 * testsuite/libgomp.oacc-fortran/pr106643-1.f90: New.
1164
1165 2022-11-02 Thomas Schwinge <thomas@codesourcery.com>
1166
1167 PR libgomp/106643
1168 * oacc-mem.c (goacc_enter_data_internal): Support
1169 OpenACC 'declare create' with Fortran allocatable arrays, part I.
1170 * testsuite/libgomp.oacc-fortran/declare-allocatable-1-directive.f90:
1171 New.
1172 * testsuite/libgomp.oacc-fortran/declare-allocatable-array_descriptor-1-directive.f90:
1173 New.
1174
1175 2022-11-02 Thomas Schwinge <thomas@codesourcery.com>
1176
1177 * testsuite/libgomp.oacc-fortran/declare-allocatable-array_descriptor-1-runtime.f90:
1178 New.
1179
1180 2022-11-02 Thomas Schwinge <thomas@codesourcery.com>
1181
1182 * testsuite/libgomp.oacc-fortran/declare-allocatable-1-runtime.f90:
1183 New.
1184
1185 2022-11-02 Cesar Philippidis <cesar@codesourcery.com>
1186 Thomas Schwinge <thomas@codesourcery.com>
1187
1188 * testsuite/libgomp.oacc-fortran/declare-allocatable-1.f90: New.
1189
1190 2022-10-28 Julian Brown <julian@codesourcery.com>
1191 Thomas Schwinge <thomas@codesourcery.com>
1192
1193 PR middle-end/90115
1194 * testsuite/libgomp.oacc-fortran/declare-1.f90: Adjust scan output.
1195 * testsuite/libgomp.oacc-fortran/host_data-5.F90: Likewise.
1196 * testsuite/libgomp.oacc-fortran/if-1.f90: Likewise.
1197 * testsuite/libgomp.oacc-fortran/print-1.f90: Likewise.
1198 * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Likewise.
1199
1200 2022-10-24 Thomas Schwinge <thomas@codesourcery.com>
1201
1202 * plugin/plugin-nvptx.c (nvptx_open_device): Initialize
1203 'ptx_dev->rev_data'.
1204
1205 2022-10-24 Tobias Burnus <tobias@codesourcery.com>
1206
1207 * config/nvptx/icv-device.c (GOMP_DEVICE_NUM_VAR): Remove
1208 'static' for this variable.
1209 * config/nvptx/libgomp-nvptx.h: New file.
1210 * config/nvptx/target.c: Include it.
1211 (GOMP_ADDITIONAL_ICVS): Declare extern var.
1212 (GOMP_REV_OFFLOAD_VAR): Declare var.
1213 (GOMP_target_ext): Handle reverse offload.
1214 * libgomp-plugin.h (GOMP_PLUGIN_target_rev): New prototype.
1215 * libgomp-plugin.c (GOMP_PLUGIN_target_rev): New, call ...
1216 * target.c (gomp_target_rev): ... this new stub function.
1217 * libgomp.h (gomp_target_rev): Declare.
1218 * libgomp.map (GOMP_PLUGIN_1.4): New; add GOMP_PLUGIN_target_rev.
1219 * plugin/cuda-lib.def (cuMemHostAlloc): Add.
1220 * plugin/plugin-nvptx.c: Include libgomp-nvptx.h.
1221 (struct ptx_device): Add rev_data member.
1222 (nvptx_open_device): Remove async_engines query, last used in
1223 r10-304-g1f4c5b9b; add unified-address assert check.
1224 (GOMP_OFFLOAD_get_num_devices): Claim unified address
1225 support.
1226 (GOMP_OFFLOAD_load_image): Free rev_fn_table if no
1227 offload functions exist. Make offload var available
1228 on host and device.
1229 (rev_off_dev_to_host_cpy, rev_off_host_to_dev_cpy): New.
1230 (GOMP_OFFLOAD_run): Handle reverse offload.
1231
1232 2022-10-21 Thomas Schwinge <thomas@codesourcery.com>
1233
1234 PR tree-optimization/107195
1235 PR target/107344
1236 * testsuite/libgomp.oacc-c-c++-common/nvptx-sese-1.c: Restore SESE
1237 regions checking.
1238
1239 2022-10-20 Tobias Burnus <tobias@codesourcery.com>
1240
1241 * testsuite/lib/libgomp.exp (check_effective_target_offload_device_gcn):
1242 New.
1243 * testsuite/libgomp.c-c++-common/on_device_arch.h (device_arch_gcn,
1244 on_device_arch_gcn): New.
1245 * testsuite/libgomp.c-c++-common/requires-4a.c: New test; copied from
1246 requires-4.c but using heap-allocated memory.
1247
1248 2022-10-20 Thomas Schwinge <thomas@codesourcery.com>
1249
1250 PR target/105421
1251 * testsuite/libgomp.oacc-c-c++-common/private-big-1.c: New.
1252
1253 2022-10-17 Thomas Schwinge <thomas@codesourcery.com>
1254
1255 * testsuite/libgomp.c/reverse-offload-sm30.c: Fix nvptx-specific
1256 '-foffload-options' syntax.
1257
1258 2022-10-13 Tobias Burnus <tobias@codesourcery.com>
1259
1260 * testsuite/libgomp.fortran/task-7.f90: New test.
1261 * testsuite/libgomp.fortran/task-8.f90: New test.
1262 * testsuite/libgomp.fortran/task-in-explicit-1.f90: New test.
1263 * testsuite/libgomp.fortran/task-in-explicit-2.f90: New test.
1264 * testsuite/libgomp.fortran/task-in-explicit-3.f90: New test.
1265 * testsuite/libgomp.fortran/task-reduction-17.f90: New test.
1266 * testsuite/libgomp.fortran/task-reduction-18.f90: New test.
1267
1268 2022-10-12 Jakub Jelinek <jakub@redhat.com>
1269
1270 * libgomp.texi (OpenMP 5.2): Fix up allocator -> allocate directive
1271 in deprecation bullet.
1272
1273 2022-10-12 Jakub Jelinek <jakub@redhat.com>
1274
1275 * omp.h.in (omp_in_explicit_task): Declare.
1276 * omp_lib.h.in (omp_in_explicit_task): Likewise.
1277 * omp_lib.f90.in (omp_in_explicit_task): New interface.
1278 * libgomp.map (OMP_5.2): New symbol version, export
1279 omp_in_explicit_task and omp_in_explicit_task_.
1280 * task.c (omp_in_explicit_task): New function.
1281 * fortran.c (omp_in_explicit_task): Add ialias_redirect.
1282 (omp_in_explicit_task_): New function.
1283 * libgomp.texi (OpenMP 5.2): Mark omp_in_explicit_task as implemented.
1284 * testsuite/libgomp.c-c++-common/task-in-explicit-1.c: New test.
1285 * testsuite/libgomp.c-c++-common/task-in-explicit-2.c: New test.
1286 * testsuite/libgomp.c-c++-common/task-in-explicit-3.c: New test.
1287
1288 2022-10-12 Jakub Jelinek <jakub@redhat.com>
1289
1290 * task.c (gomp_create_artificial_team): Fix up handling of invocations
1291 from within explicit task.
1292 * target.c (GOMP_target_ext): Likewise.
1293 * testsuite/libgomp.c/task-7.c: New test.
1294 * testsuite/libgomp.c/task-8.c: New test.
1295 * testsuite/libgomp.c-c++-common/task-reduction-17.c: New test.
1296 * testsuite/libgomp.c-c++-common/task-reduction-18.c: New test.
1297
1298 2022-10-12 Martin Liska <mliska@suse.cz>
1299
1300 * configure: Regenerate.
1301
1302 2022-10-11 Olivier Hainque <hainque@adacore.com>
1303 Olivier Hainque <hainque@adacore.com>
1304
1305 * configure: Regenerate.
1306
1307 2022-10-05 Tobias Burnus <tobias@codesourcery.com>
1308
1309 * libgomp.texi (OpenMP 5.1 Impl. Status): Mark 'assume' as 'Y'.
1310
1311 2022-10-04 Jakub Jelinek <jakub@redhat.com>
1312
1313 * libgomp.texi (Support begin/end declare target syntax in C/C++):
1314 Mark as implemented.
1315
1316 2022-09-30 Tobias Burnus <tobias@codesourcery.com>
1317
1318 PR fortran/105318
1319 * testsuite/libgomp.fortran/is_device_ptr-2.f90: New test.
1320
1321 2022-09-28 Tobias Burnus <tobias@codesourcery.com>
1322
1323 * libgomp.texi (OpenMP 5.1): Mark 'assume' as implemented
1324 for C/C++. Remove duplicated 'begin declare target' entry.
1325
1326 2022-09-24 Jakub Jelinek <jakub@redhat.com>
1327
1328 PR c/106981
1329 * testsuite/libgomp.c-c++-common/pr106981.c: New test.
1330
1331 2022-09-14 Julian Brown <julian@codesourcery.com>
1332
1333 * testsuite/libgomp.oacc-c-c++-common/deep-copy-15.c: New test.
1334 * testsuite/libgomp.oacc-c-c++-common/deep-copy-16.c: New test.
1335 * testsuite/libgomp.oacc-c++/deep-copy-17.C: New test.
1336 * testsuite/libgomp.oacc-c-c++-common/deep-copy-arrayofstruct.c: Move
1337 test to here, make "run" test.
1338
1339 2022-09-13 Jakub Jelinek <jakub@redhat.com>
1340
1341 PR libgomp/106906
1342 * env.c (get_icv_member_addr): Cast false to void * before assigning
1343 it to icv_addr[1], and comment the whole assignment out.
1344
1345 2022-09-13 Tobias Burnus <tobias@codesourcery.com>
1346
1347 * libgomp.texi (gcn): Move misplaced -march=sm_30 remark to ...
1348 (nvptx): ... here.
1349
1350 2022-09-12 Tobias Burnus <tobias@codesourcery.com>
1351
1352 * libgomp.texi (Offload-Target Specifics: nvptx): Document
1353 that reverse offload requires >= -march=sm_35.
1354 * testsuite/libgomp.c-c++-common/requires-4.c: Build for nvptx
1355 with -misa=sm_35.
1356 * testsuite/libgomp.c-c++-common/requires-5.c: Likewise.
1357 * testsuite/libgomp.c-c++-common/requires-6.c: Likewise.
1358 * testsuite/libgomp.c-c++-common/reverse-offload-1.c: Likewise.
1359 * testsuite/libgomp.fortran/reverse-offload-1.f90: Likewise.
1360 * testsuite/libgomp.c/reverse-offload-sm30.c: New test.
1361
1362 2022-09-12 Tobias Burnus <tobias@codesourcery.com>
1363
1364 * libgomp.texi (OpenMP 5.1 Impl. Status): Add two new minor items.
1365 (OpenMP 5.2 Impl. Status): Improve omp/omx/ompx wording.
1366
1367 2022-09-12 Jakub Jelinek <jakub@redhat.com>
1368
1369 PR libgomp/106894
1370 * testsuite/libgomp.c-c++-common/icv-6.c: Include string.h.
1371 (main): Avoid tests for which corresponding non-_ALL suffixed variable
1372 is in the environment, or for OMP_NUM_TEAMS on the device
1373 OMP_NUM_TEAMS_DEV_?.
1374
1375 2022-09-10 Iain Sandoe <iain@sandoe.co.uk>
1376
1377 * env.c (initialize_env): Include libiberty environ.h.
1378
1379 2022-09-09 Tobias Burnus <tobias@codesourcery.com>
1380
1381 * plugin/plugin-nvptx.c (GOMP_OFFLOAD_load_image): Read offload
1382 function address table '$offload_func_table' if rev_fn_table
1383 is not NULL.
1384
1385 2022-09-09 Tobias Burnus <tobias@codesourcery.com>
1386
1387 * plugin/plugin-gcn.c (GOMP_OFFLOAD_load_image): Read
1388 .offload_func_table to populate rev_fn_table when requested.
1389
1390 2022-09-09 Tobias Burnus <tobias@codesourcery.com>
1391
1392 * libgomp-plugin.h (GOMP_OFFLOAD_load_image): Add
1393 'uint64_t **rev_fn_table' argument.
1394 * oacc-host.c (host_load_image): Likewise.
1395 * plugin/plugin-gcn.c (GOMP_OFFLOAD_load_image): Likewise;
1396 currently unused.
1397 * plugin/plugin-nvptx.c (GOMP_OFFLOAD_load_image): Likewise.
1398 * target.c (gomp_load_image_to_device): Update call but pass
1399 NULL for now.
1400
1401 2022-09-09 Jakub Jelinek <jakub@redhat.com>
1402
1403 PR libgomp/106894
1404 * env.c (initialize_env) <case PARSE_BIND>: Use char ** instead of
1405 char * for dest[1] initialization from params[1]. Formatting fixes.
1406
1407 2022-09-08 Tobias Burnus <tobias@codesourcery.com>
1408
1409 PR fortran/106670
1410 * libgomp.texi (OpenMP 5.2): Add comment to ompx/omx entry.
1411
1412 2022-09-08 Tobias Burnus <tobias@codesourcery.com>
1413
1414 * libgomp.texi (OpenMP-Implementation Specifics): New; add libmemkind
1415 section; move OpenMP Context Selectors from ...
1416 (Offload-Target Specifics): ... here; add 'AMD Radeo (GCN)' and
1417 'nvptx' sections.
1418
1419 2022-09-08 Marcel Vollweiler <marcel@codesourcery.com>
1420
1421 * config/gcn/icv-device.c (omp_get_default_device): Return device-
1422 specific ICV.
1423 (omp_get_max_teams): Added for GCN devices.
1424 (omp_set_num_teams): Likewise.
1425 (ialias): Likewise.
1426 * config/nvptx/icv-device.c (omp_get_default_device): Return device-
1427 specific ICV.
1428 (omp_get_max_teams): Added for NVPTX devices.
1429 (omp_set_num_teams): Likewise.
1430 (ialias): Likewise.
1431 * env.c (struct gomp_icv_list): New struct to store entries of initial
1432 ICV values.
1433 (struct gomp_offload_icv_list): New struct to store entries of device-
1434 specific ICV values that are copied to the device and back.
1435 (struct gomp_default_icv_values): New struct to store default values of
1436 ICVs according to the OpenMP standard.
1437 (parse_schedule): Generalized for different variants of OMP_SCHEDULE.
1438 (print_env_var_error): Function that prints an error for invalid values
1439 for ICVs.
1440 (parse_unsigned_long_1): Removed getenv. Generalized.
1441 (parse_unsigned_long): Likewise.
1442 (parse_int_1): Likewise.
1443 (parse_int): Likewise.
1444 (parse_int_secure): Likewise.
1445 (parse_unsigned_long_list): Likewise.
1446 (parse_target_offload): Likewise.
1447 (parse_bind_var): Likewise.
1448 (parse_stacksize): Likewise.
1449 (parse_boolean): Likewise.
1450 (parse_wait_policy): Likewise.
1451 (parse_allocator): Likewise.
1452 (omp_display_env): Extended to output different variants of environment
1453 variables.
1454 (print_schedule): New helper function for omp_display_env which prints
1455 the values of run_sched_var.
1456 (print_proc_bind): New helper function for omp_display_env which prints
1457 the values of proc_bind_var.
1458 (enum gomp_parse_type): Collection of types used for parsing environment
1459 variables.
1460 (ENTRY): Preprocess string lengths of environment variables.
1461 (OMP_VAR_CNT): Preprocess table size.
1462 (OMP_HOST_VAR_CNT): Likewise.
1463 (INT_MAX_STR_LEN): Constant for the maximal number of digits of a device
1464 number.
1465 (gomp_get_icv_flag): Returns if a flag for a particular ICV is set.
1466 (gomp_set_icv_flag): Sets a flag for a particular ICV.
1467 (print_device_specific_icvs): New helper function for omp_display_env to
1468 print device specific ICV values.
1469 (get_device_num): New helper function for parse_device_specific.
1470 Extracts the device number from an environment variable name.
1471 (get_icv_member_addr): Gets the memory address for a particular member
1472 of an ICV struct.
1473 (gomp_get_initial_icv_item): Get a list item of gomp_initial_icv_list.
1474 (initialize_icvs): New function to initialize a gomp_initial_icvs
1475 struct.
1476 (add_initial_icv_to_list): Adds an ICV struct to gomp_initial_icv_list.
1477 (startswith): Checks if a string starts with a given prefix.
1478 (initialize_env): Extended to parse the new syntax of environment
1479 variables.
1480 * icv-device.c (omp_get_max_teams): Added.
1481 (ialias): Likewise.
1482 (omp_set_num_teams): Likewise.
1483 * icv.c (omp_set_num_teams): Moved to icv-device.c.
1484 (omp_get_max_teams): Likewise.
1485 (ialias): Likewise.
1486 * libgomp-plugin.h (GOMP_DEVICE_NUM_VAR): Removed.
1487 (GOMP_ADDITIONAL_ICVS): New target-side struct that
1488 holds the designated ICVs of the target device.
1489 * libgomp.h (enum gomp_icvs): Collection of ICVs.
1490 (enum gomp_device_num): Definition of device numbers for _ALL, _DEV, and
1491 no suffix.
1492 (enum gomp_env_suffix): Collection of possible suffixes of environment
1493 variables.
1494 (struct gomp_initial_icvs): Contains all ICVs for which we need to store
1495 initial values.
1496 (struct gomp_default_icv):New struct to hold ICVs for which we need
1497 to store initial values.
1498 (struct gomp_icv_list): Definition of a linked list that is used for
1499 storing ICVs for the devices and also for _DEV, _ALL, and without
1500 suffix.
1501 (struct gomp_offload_icvs): New struct to hold ICVs that are copied to
1502 a device.
1503 (struct gomp_offload_icv_list): Definition of a linked list that holds
1504 device-specific ICVs that are copied to devices.
1505 (gomp_get_initial_icv_item): Get a list item of gomp_initial_icv_list.
1506 (gomp_get_icv_flag): Returns if a flag for a particular ICV is set.
1507 * libgomp.texi: Updated.
1508 * plugin/plugin-gcn.c (GOMP_OFFLOAD_load_image): Extended to read
1509 further ICVs from the offload image.
1510 * plugin/plugin-nvptx.c (GOMP_OFFLOAD_load_image): Likewise.
1511 * target.c (gomp_get_offload_icv_item): Get a list item of
1512 gomp_offload_icv_list.
1513 (get_gomp_offload_icvs): New. Returns the ICV values
1514 depending on the device num and the variable hierarchy.
1515 (gomp_load_image_to_device): Extended to copy further ICVs to a device.
1516 * testsuite/libgomp.c-c++-common/icv-5.c: New test.
1517 * testsuite/libgomp.c-c++-common/icv-6.c: New test.
1518 * testsuite/libgomp.c-c++-common/icv-7.c: New test.
1519 * testsuite/libgomp.c-c++-common/icv-8.c: New test.
1520 * testsuite/libgomp.c-c++-common/omp-display-env-1.c: New test.
1521 * testsuite/libgomp.c-c++-common/omp-display-env-2.c: New test.
1522
1523 2022-09-08 Jakub Jelinek <jakub@redhat.com>
1524
1525 * libgomp.texi (OpenMP 5.2): Mention that omp_cur_iteration is now
1526 fully supported.
1527 * testsuite/libgomp.c/doacross-4.c: New test.
1528 * testsuite/libgomp.c/doacross-5.c: New test.
1529 * testsuite/libgomp.c/doacross-6.c: New test.
1530 * testsuite/libgomp.c/doacross-7.c: New test.
1531
1532 2022-09-05 Tobias Burnus <tobias@codesourcery.com>
1533
1534 * libgomp.texi (OpenMP 5.2): Update doacross/omp_cur_iteration status.
1535
1536 2022-08-26 Tobias Burnus <tobias@codesourcery.com>
1537
1538 * libgomp.texi (OpenMP 5.0): Mark 'ancestor' as implemented but
1539 refer to 'requires'.
1540 * testsuite/libgomp.c-c++-common/reverse-offload-1-aux.c: New test.
1541 * testsuite/libgomp.c-c++-common/reverse-offload-1.c: New test.
1542 * testsuite/libgomp.fortran/reverse-offload-1-aux.f90: New test.
1543 * testsuite/libgomp.fortran/reverse-offload-1.f90: New test.
1544
1545 2022-08-17 Tobias Burnus <tobias@codesourcery.com>
1546
1547 PR middle-end/106548
1548 * testsuite/libgomp.c/linear-2.c: New test.
1549
1550 2022-08-17 Tobias Burnus <tobias@codesourcery.com>
1551
1552 * splay-tree.h: Fix splay_* macro unsetting if
1553 splay_tree_prefix is defined.
1554
1555 2022-07-29 Tobias Burnus <tobias@codesourcery.com>
1556
1557 * testsuite/libgomp.c-c++-common/pr106449-2.c: New test.
1558
1559 2022-07-29 Jakub Jelinek <jakub@redhat.com>
1560
1561 PR middle-end/106449
1562 * testsuite/libgomp.c-c++-common/pr106449.c: New test.
1563
1564 2022-07-12 Tobias Burnus <tobias@codesourcery.com>
1565
1566 * target.c (gomp_target_init): Added tailing '\n' to gomp_debug.
1567
1568 2022-07-12 Thomas Schwinge <thomas@codesourcery.com>
1569
1570 PR middle-end/101551
1571 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: XFAIL
1572 'offloading_enabled' diagnostics issue.
1573
1574 2022-07-11 Thomas Schwinge <thomas@codesourcery.com>
1575
1576 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Enhance
1577 '_Pragma' diagnostics verification.
1578
1579 2022-07-10 Lewis Hyatt <lhyatt@gmail.com>
1580
1581 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Adapt for
1582 improved warning locations.
1583 * testsuite/libgomp.oacc-c-c++-common/vred2d-128.c: Likewise.
1584
1585 2022-07-08 Thomas Schwinge <thomas@codesourcery.com>
1586
1587 * testsuite/libgomp.c-c++-common/requires-1.c: Add 'dg-note's.
1588 * testsuite/libgomp.c-c++-common/requires-2.c: Likewise.
1589 * testsuite/libgomp.c-c++-common/requires-3.c: Likewise.
1590 * testsuite/libgomp.c-c++-common/requires-7.c: Likewise.
1591 * testsuite/libgomp.fortran/requires-1.f90: Likewise.
1592
1593 2022-07-07 Thomas Schwinge <thomas@codesourcery.com>
1594
1595 * target.c (GOMP_offload_register, GOMP_offload_unregister):
1596 Denote as legacy entry points.
1597 * testsuite/lib/libgomp.exp
1598 (check_effective_target_offload_target_any): New proc.
1599 * testsuite/libgomp.c-c++-common/requires-1.c: Enable for
1600 'offload_target_any'.
1601 * testsuite/libgomp.c-c++-common/requires-3.c: Likewise.
1602 * testsuite/libgomp.c-c++-common/requires-7.c: Likewise.
1603 * testsuite/libgomp.fortran/requires-1.f90: Likewise.
1604
1605 2022-07-07 Thomas Schwinge <thomas@codesourcery.com>
1606
1607 * testsuite/libgomp.c-c++-common/requires-4.c: Enhance testing.
1608 * testsuite/libgomp.c-c++-common/requires-5.c: Likewise.
1609
1610 2022-07-07 Thomas Schwinge <thomas@codesourcery.com>
1611
1612 * testsuite/libgomp.c-c++-common/requires-3.c: Adjust.
1613
1614 2022-07-06 Thomas Schwinge <thomas@codesourcery.com>
1615
1616 * target.c (GOMP_offload_register_ver): Clarify 'target_data' ->
1617 'data'.
1618 (GOMP_offload_unregister_ver): Likewise. Fix up 'target_data'.
1619
1620 2022-07-04 Tobias Burnus <tobias@codesourcery.com>
1621 Jakub Jelinek <jakub@redhat.com>
1622
1623 * libgomp.texi (OpenMP 5.2): Mark linear-clause change as 'Y'.
1624
1625 2022-07-04 Tobias Burnus <tobias@codesourcery.com>
1626 Chung-Lin Tang <cltang@codesourcery.com>
1627 Thomas Schwinge <thomas@codesourcery.com>
1628
1629 * libgomp-plugin.h (GOMP_OFFLOAD_get_num_devices): Add
1630 omp_requires_mask arg.
1631 * plugin/plugin-gcn.c (GOMP_OFFLOAD_get_num_devices): Likewise;
1632 return -1 when device available but omp_requires_mask != 0.
1633 * plugin/plugin-nvptx.c (GOMP_OFFLOAD_get_num_devices): Likewise.
1634 * oacc-host.c (host_get_num_devices, host_openacc_get_property):
1635 Update call.
1636 * oacc-init.c (resolve_device, acc_init_1, acc_shutdown_1,
1637 goacc_attach_host_thread_to_device, acc_get_num_devices,
1638 acc_set_device_num, get_property_any): Likewise.
1639 * target.c (omp_requires_mask): New global var.
1640 (gomp_requires_to_name): New.
1641 (GOMP_offload_register_ver): Handle passed omp_requires_mask.
1642 (gomp_target_init): Handle omp_requires_mask.
1643 * libgomp.texi (OpenMP 5.0): Update requires impl. status.
1644 (OpenMP 5.1): Add a missed item.
1645 (OpenMP 5.2): Mark linear-clause change as supported in C/C++.
1646 * testsuite/libgomp.c-c++-common/requires-1-aux.c: New test.
1647 * testsuite/libgomp.c-c++-common/requires-1.c: New test.
1648 * testsuite/libgomp.c-c++-common/requires-2-aux.c: New test.
1649 * testsuite/libgomp.c-c++-common/requires-2.c: New test.
1650 * testsuite/libgomp.c-c++-common/requires-3-aux.c: New test.
1651 * testsuite/libgomp.c-c++-common/requires-3.c: New test.
1652 * testsuite/libgomp.c-c++-common/requires-4-aux.c: New test.
1653 * testsuite/libgomp.c-c++-common/requires-4.c: New test.
1654 * testsuite/libgomp.c-c++-common/requires-5-aux.c: New test.
1655 * testsuite/libgomp.c-c++-common/requires-5.c: New test.
1656 * testsuite/libgomp.c-c++-common/requires-6.c: New test.
1657 * testsuite/libgomp.c-c++-common/requires-7-aux.c: New test.
1658 * testsuite/libgomp.c-c++-common/requires-7.c: New test.
1659 * testsuite/libgomp.fortran/requires-1-aux.f90: New test.
1660 * testsuite/libgomp.fortran/requires-1.f90: New test.
1661
1662 2022-07-01 Tobias Burnus <tobias@codesourcery.com>
1663
1664 * libgomp.texi (OpenMP 5.2): Mark target enter/exit data
1665 with fromto as implemented.
1666
1667 2022-06-28 Martin Liska <mliska@suse.cz>
1668
1669 * acinclude.m4: Fix typo in mold linker detection.
1670 * Makefile.in: Regenerate.
1671 * configure: Regenerate.
1672
1673 2022-06-21 Jakub Jelinek <jakub@redhat.com>
1674 Paul Iannetta <piannetta@kalrayinc.com>
1675
1676 PR libgomp/106045
1677 * testsuite/libgomp.c/target-31.c: Add private (i) clause.
1678
1679 2022-06-17 Martin Liska <mliska@suse.cz>
1680
1681 * libgomp.texi: Add table header for new features of
1682 OpenMP 5.2.
1683
1684 2022-06-15 Jakub Jelinek <jakub@redhat.com>
1685
1686 * testsuite/libgomp.c-c++-common/get-mapped-ptr-1.c (main): Initialize
1687 q to ddress of an automatic variable. Use -5 instead of -1 in
1688 omp_get_mapped_ptr call. Add test with omp_initial_device.
1689 * testsuite/libgomp.fortran/get-mapped-ptr-1.f90 (main): Use -5 instead
1690 of -1 in omp_get_mapped_ptr call. Add test with omp_initial_device.
1691 Renumber stop arguments afterwards.
1692
1693 2022-06-13 Jakub Jelinek <jakub@redhat.com>
1694
1695 * omp.h.in (omp_initial_device, omp_invalid_device): New enumerators.
1696 * omp_lib.f90.in (omp_initial_device, omp_invalid_device): New
1697 parameters.
1698 * omp_lib.h.in (omp_initial_device, omp_invalid_device): Likewise.
1699 * target.c (resolve_device): Add remapped argument, handle
1700 GOMP_DEVICE_ICV only if remapped is true (and clear remapped),
1701 for negative values, treat GOMP_DEVICE_FALLBACK as fallback only
1702 if remapped, otherwise treat omp_initial_device that way. For
1703 omp_invalid_device, always emit gomp_fatal, even when
1704 OMP_TARGET_OFFLOAD isn't mandatory.
1705 (GOMP_target, GOMP_target_ext, GOMP_target_data, GOMP_target_data_ext,
1706 GOMP_target_update, GOMP_target_update_ext,
1707 GOMP_target_enter_exit_data): Pass true as remapped argument to
1708 resolve_device.
1709 (omp_target_alloc, omp_target_free, omp_target_is_present,
1710 omp_target_memcpy_check, omp_target_associate_ptr,
1711 omp_target_disassociate_ptr, omp_get_mapped_ptr,
1712 omp_target_is_accessible): Pass false as remapped argument to
1713 resolve_device. Treat omp_initial_device the same as
1714 gomp_get_num_devices (). Don't bypass resolve_device calls if
1715 device_num is negative.
1716 (omp_pause_resource): Treat omp_initial_device the same as
1717 gomp_get_num_devices (). Call resolve_device.
1718 * icv-device.c (omp_set_default_device): Always set to device_num
1719 even when it is negative.
1720 * libgomp.texi: Document that Conforming device numbers,
1721 omp_initial_device and omp_invalid_device is implemented.
1722 * testsuite/libgomp.c/target-41.c (main): Add test with
1723 omp_initial_device.
1724 * testsuite/libgomp.c/target-45.c: New test.
1725 * testsuite/libgomp.c/target-46.c: New test.
1726 * testsuite/libgomp.c/target-47.c: New test.
1727 * testsuite/libgomp.c-c++-common/target-is-accessible-1.c (main): Add
1728 test with omp_initial_device. Use -5 instead of -1 for negative value
1729 test.
1730 * testsuite/libgomp.fortran/target-is-accessible-1.f90 (main):
1731 Likewise. Reorder stop numbers.
1732
1733 2022-06-10 Jakub Jelinek <jakub@redhat.com>
1734
1735 * allocator.c (gomp_init_memkind): Call dlopen with "libmemkind.so.0"
1736 rather than "libmemkind.so".
1737
1738 2022-06-10 Thomas Schwinge <thomas@codesourcery.com>
1739
1740 * plugin/Makefrag.am: Evaluate 'if PLUGIN_NVPTX_DYNAMIC' to true.
1741 * plugin/configfrag.ac (--with-cuda-driver)
1742 (--with-cuda-driver-include, --with-cuda-driver-lib)
1743 (CUDA_DRIVER_INCLUDE, CUDA_DRIVER_LIB, PLUGIN_NVPTX_CPPFLAGS)
1744 (PLUGIN_NVPTX_LDFLAGS, PLUGIN_NVPTX_LIBS, PLUGIN_NVPTX_DYNAMIC):
1745 Remove.
1746 * testsuite/libgomp-test-support.exp.in (cuda_driver_include)
1747 (cuda_driver_lib): Remove.
1748 * testsuite/lib/libgomp.exp (libgomp_init): Don't consider these.
1749 * Makefile.in: Regenerate.
1750 * configure: Likewise.
1751 * testsuite/Makefile.in: Likewise.
1752
1753 2022-06-09 Jakub Jelinek <jakub@redhat.com>
1754
1755 * config/linux/allocator.c: Fix up #include directive.
1756
1757 2022-06-09 Jakub Jelinek <jakub@redhat.com>
1758
1759 * allocator.c: Include dlfcn.h if LIBGOMP_USE_MEMKIND is defined.
1760 (enum gomp_memkind_kind): New type.
1761 (struct omp_allocator_data): Add memkind field if LIBGOMP_USE_MEMKIND
1762 is defined.
1763 (struct gomp_memkind_data): New type.
1764 (memkind_data, memkind_data_once): New variables.
1765 (gomp_init_memkind, gomp_get_memkind): New functions.
1766 (omp_init_allocator): Initialize data.memkind, don't fail for
1767 omp_high_bw_mem_space if libmemkind supports it.
1768 (omp_aligned_alloc, omp_free, omp_aligned_calloc, omp_realloc): Add
1769 memkind support of LIBGOMP_USE_MEMKIND is defined.
1770 * config/linux/allocator.c: New file.
1771
1772 2022-06-03 Tobias Burnus <tobias@codesourcery.com>
1773
1774 * libgomp.texi (OpenMP 5.2): Mark scope w/ firstprivate/allocate as Y.
1775 * testsuite/libgomp.fortran/scope-2.f90: New test.
1776
1777 2022-06-02 David Malcolm <dmalcolm@redhat.com>
1778
1779 * testsuite/lib/libgomp.exp: Add load_gcc_lib of scansarif.exp.
1780
1781 2022-05-31 Jakub Jelinek <jakub@redhat.com>
1782
1783 * testsuite/libgomp.c-c++-common/allocate-1.c (foo): Add testcase for
1784 scope construct with allocate clause.
1785 * testsuite/libgomp.c-c++-common/allocate-3.c (foo): Likewise.
1786 * testsuite/libgomp.c-c++-common/scope-2.c: New test.
1787
1788 2022-05-28 Tobias Burnus <tobias@codesourcery.com>
1789
1790 * libgomp.texi (OpenMP 5.2): Mark 'enter' clause as supported.
1791 * testsuite/libgomp.fortran/declare-target-1.f90: Extend to test
1792 explicit 'to' and 'enter' clause.
1793 * testsuite/libgomp.fortran/declare-target-2.f90: Update accordingly.
1794
1795 2022-05-28 Jakub Jelinek <jakub@redhat.com>
1796
1797 PR libgomp/105745
1798 * libgomp.h (GOMP_HAVE_EFFICIENT_ALIGNED_ALLOC): Don't define for
1799 defined(HAVE__ALIGNED_MALLOC) case.
1800 * alloc.c (gomp_aligned_alloc): Move defined(HAVE__ALIGNED_MALLOC)
1801 handling as last option before fallback instead of first.
1802 (gomp_aligned_free): For defined(HAVE__ALIGNED_MALLOC) call
1803 _aligned_free.
1804
1805 2022-05-27 Jakub Jelinek <jakub@redhat.com>
1806
1807 * testsuite/libgomp.c-c++-common/target-40.c: Modify some existing to
1808 clauses to enter.
1809 * testsuite/libgomp.c/target-41.c: Likewise.
1810
1811 2022-05-27 Tobias Burnus <tobias@codesourcery.com>
1812
1813 * libgomp.texi (Other new OpenMP 5.1 features): Add
1814 'begin declare target'.
1815 (Other new OpenMP 5.2 features): New.
1816
1817 2022-05-25 Jakub Jelinek <jakub@redhat.com>
1818
1819 * task.c (gomp_task_run_post_handle_dependers): If empty_task
1820 is the last task taskwait depend depends on, wake it up.
1821 Similarly if it is the last child of a taskgroup, use atomic
1822 store instead of decrement and awak taskgroup wait if any.
1823 * testsuite/libgomp.c-c++-common/taskwait-depend-nowait-2.c: New test.
1824
1825 2022-05-24 Andrew Stubbs <ams@codesourcery.com>
1826
1827 * plugin/plugin-gcn.c (EF_AMDGPU_MACH): Add
1828 EF_AMDGPU_MACH_AMDGCN_GFX90a.
1829 (gcn_gfx90a_s): New.
1830 (isa_hsa_name): Support gfx90a.
1831 (isa_code): Likewise.
1832
1833 2022-05-24 Tobias Burnus <tobias@codesourcery.com>
1834
1835 PR c/105378
1836 * libgomp.texi (OpenMP 5.1): Set 'taskwait nowait' to 'Y'.
1837 * testsuite/libgomp.fortran/taskwait-depend-nowait-1.f90: New.
1838
1839 2022-05-24 Jakub Jelinek <jakub@redhat.com>
1840
1841 PR c/105378
1842 * libgomp_g.h (GOMP_taskwait_depend_nowait): Declare.
1843 * libgomp.map (GOMP_taskwait_depend_nowait): Export at GOMP_5.1.1.
1844 * task.c (empty_task): New function.
1845 (gomp_task_run_post_handle_depend_hash): Declare earlier.
1846 (gomp_task_run_post_handle_depend): Declare.
1847 (GOMP_task): Optimize fn == empty_task if there is nothing to wait
1848 for.
1849 (gomp_task_run_post_handle_dependers): Optimize task->fn == empty_task.
1850 (GOMP_taskwait_depend_nowait): New function.
1851 * testsuite/libgomp.c-c++-common/taskwait-depend-nowait-1.c: New test.
1852
1853 2022-05-23 Tobias Burnus <tobias@codesourcery.com>
1854
1855 PR fortran/104949
1856 * target.c (gomp_map_vars_internal, copy_firstprivate_data):
1857 Support attach for GOMP_MAP_FIRSTPRIVATE.
1858 * testsuite/libgomp.fortran/target-firstprivate-1.f90: New test.
1859 * testsuite/libgomp.fortran/target-firstprivate-2.f90: New test.
1860 * testsuite/libgomp.fortran/target-firstprivate-3.f90: New test.
1861
1862 2022-05-20 Marcel Vollweiler <marcel@codesourcery.com>
1863
1864 * libgomp.map: Added omp_target_memcpy_async and
1865 omp_target_memcpy_rect_async.
1866 * libgomp.texi: Both functions are now supported.
1867 * omp.h.in: Added omp_target_memcpy_async and
1868 omp_target_memcpy_rect_async.
1869 * omp_lib.f90.in: Added interfaces for both new functions.
1870 * omp_lib.h.in: Likewise.
1871 * target.c (ialias_redirect): Added for GOMP_task.
1872 (omp_target_memcpy): Restructured into check and copy part.
1873 (omp_target_memcpy_check): New helper function for omp_target_memcpy and
1874 omp_target_memcpy_async that checks requirements.
1875 (omp_target_memcpy_copy): New helper function for omp_target_memcpy and
1876 omp_target_memcpy_async that performs the memcpy.
1877 (omp_target_memcpy_async_helper): New helper function that is used in
1878 omp_target_memcpy_async for the asynchronous task.
1879 (omp_target_memcpy_async): Added.
1880 (omp_target_memcpy_rect): Restructured into check and copy part.
1881 (omp_target_memcpy_rect_check): New helper function for
1882 omp_target_memcpy_rect and omp_target_memcpy_rect_async that checks
1883 requirements.
1884 (omp_target_memcpy_rect_copy): New helper function for
1885 omp_target_memcpy_rect and omp_target_memcpy_rect_async that performs
1886 the memcpy.
1887 (omp_target_memcpy_rect_async_helper): New helper function that is used
1888 in omp_target_memcpy_rect_async for the asynchronous task.
1889 (omp_target_memcpy_rect_async): Added.
1890 * task.c (ialias): Added for GOMP_task.
1891 * testsuite/libgomp.c-c++-common/target-memcpy-async-1.c: New test.
1892 * testsuite/libgomp.c-c++-common/target-memcpy-async-2.c: New test.
1893 * testsuite/libgomp.c-c++-common/target-memcpy-rect-async-1.c: New test.
1894 * testsuite/libgomp.c-c++-common/target-memcpy-rect-async-2.c: New test.
1895 * testsuite/libgomp.fortran/target-memcpy-async-1.f90: New test.
1896 * testsuite/libgomp.fortran/target-memcpy-async-2.f90: New test.
1897 * testsuite/libgomp.fortran/target-memcpy-rect-async-1.f90: New test.
1898 * testsuite/libgomp.fortran/target-memcpy-rect-async-2.f90: New test.
1899
1900 2022-05-18 Tobias Burnus <tobias@codesourcery.com>
1901
1902 * libgomp.texi (OpenMP 5.1): Set 'inoutset' to Y.
1903 (OpenMP Context Selectors): Add missing comma.
1904 * testsuite/libgomp.fortran/depend-5.f90: Add inoutset test.
1905 * testsuite/libgomp.fortran/depend-6.f90: Likewise.
1906 * testsuite/libgomp.fortran/depend-7.f90: Likewise.
1907 * testsuite/libgomp.fortran/depend-inoutset-1.f90: New test.
1908
1909 2022-05-17 Jakub Jelinek <jakub@redhat.com>
1910
1911 * libgomp.texi (OpenMP 5.1): Remove "Not inside target regions"
1912 comment for omp_display_env feature.
1913
1914 2022-05-17 Tobias Burnus <tobias@codesourcery.com>
1915
1916 * libgomp.texi (Offload-Target Specifics): New chapter; add section
1917 to document OpenMP context selectors.
1918
1919 2022-05-17 Jakub Jelinek <jakub@redhat.com>
1920
1921 * libgomp.h (struct gomp_task_depend_entry): Change is_in type
1922 from bool to unsigned char.
1923 * task.c (gomp_task_handle_depend): Handle GOMP_DEPEND_INOUTSET.
1924 Ignore dependencies where
1925 task->depend[i].is_in && task->depend[i].is_in == ent->is_in
1926 rather than just task->depend[i].is_in && ent->is_in. Remember
1927 whether GOMP_DEPEND_IN loop is needed and guard the loop with that
1928 conditional.
1929 (gomp_task_maybe_wait_for_dependencies): Handle GOMP_DEPEND_INOUTSET.
1930 Ignore dependencies where elem.is_in && elem.is_in == ent->is_in
1931 rather than just elem.is_in && ent->is_in.
1932 * testsuite/libgomp.c-c++-common/depend-1.c (test): Add task with
1933 inoutset depend-kind.
1934 * testsuite/libgomp.c-c++-common/depend-2.c (test): Likewise.
1935 * testsuite/libgomp.c-c++-common/depend-3.c (test): Likewise.
1936 * testsuite/libgomp.c-c++-common/depend-inoutset-1.c: New test.
1937
1938 2022-05-17 Tobias Burnus <tobias@codesourcery.com>
1939
1940 * libgomp.texi (OpenMP Implementation Status): Add 5.2 table.
1941
1942 2022-05-17 Tobias Burnus <tobias@codesourcery.com>
1943
1944 * libgomp.texi (OpenMP 5.1): Set omp_all_memory to 'Y'.
1945 * testsuite/libgomp.fortran/depend-5.f90: New test.
1946 * testsuite/libgomp.fortran/depend-6.f90: New test.
1947 * testsuite/libgomp.fortran/depend-7.f90: New test.
1948
1949 2022-05-16 Marcel Vollweiler <marcel@codesourcery.com>
1950
1951 * testsuite/libgomp.c++/target-has-device-addr-7.C: New test.
1952 * testsuite/libgomp.c++/target-has-device-addr-8.C: New test.
1953 * testsuite/libgomp.c++/target-has-device-addr-9.C: New test.
1954
1955 2022-05-13 Tobias Burnus <tobias@codesourcery.com>
1956
1957 * testsuite/libgomp.fortran/target-nowait-array-section.f90: New test.
1958
1959 2022-05-13 Tobias Burnus <tobias@codesourcery.com>
1960
1961 * testsuite/libgomp.fortran/target-nowait-array-section.f90: New test.
1962
1963 2022-05-13 Thomas Schwinge <thomas@codesourcery.com>
1964
1965 * plugin/Makefrag.am (libgomp_plugin_nvptx_la_CPPFLAGS)
1966 [PLUGIN_NVPTX_DYNAMIC]: Don't append '$(PLUGIN_NVPTX_CPPFLAGS)'.
1967 (libgomp_plugin_nvptx_la_LDFLAGS) [PLUGIN_NVPTX_DYNAMIC]: Don't
1968 append '$(PLUGIN_NVPTX_LDFLAGS)'.
1969 * Makefile.in: Regenerate.
1970
1971 2022-05-12 Thomas Schwinge <thomas@codesourcery.com>
1972
1973 * Makefile.am (libgomp_la_LIBADD): Initialize.
1974 * plugin/configfrag.ac (DL_LIBS): New.
1975 (PLUGIN_GCN_LIBS): Remove.
1976 (PLUGIN_NVPTX_LIBS): Don't set in the 'PLUGIN_NVPTX_DYNAMIC' case.
1977 * plugin/Makefrag.am (libgomp_la_LIBADD)
1978 (libgomp_plugin_gcn_la_LIBADD): Consider '$(DL_LIBS)'.
1979 (libgomp_plugin_nvptx_la_LIBADD) <PLUGIN_NVPTX_DYNAMIC>: Likewise.
1980 * Makefile.in: Regenerate.
1981 * config.h.in: Likewise.
1982 * configure: Likewise.
1983 * testsuite/Makefile.in: Likewise.
1984
1985 2022-05-12 Thomas Schwinge <thomas@codesourcery.com>
1986
1987 * plugin/Makefrag.am: Handle 'PLUGIN_NVPTX_DYNAMIC'.
1988 * plugin/configfrag.ac (PLUGIN_NVPTX_DYNAMIC): Change
1989 'AC_DEFINE_UNQUOTED' into 'AM_CONDITIONAL'.
1990 * plugin/plugin-nvptx.c: Split 'PLUGIN_NVPTX_DYNAMIC' into
1991 'PLUGIN_NVPTX_INCLUDE_SYSTEM_CUDA_H' and
1992 'PLUGIN_NVPTX_LINK_LIBCUDA'.
1993 * Makefile.in: Regenerate.
1994 * config.h.in: Likewise.
1995 * configure: Likewise.
1996
1997 2022-05-12 Thomas Schwinge <thomas@codesourcery.com>
1998
1999 * plugin/configfrag.ac: Don't 'AC_SUBST' and 'AC_DEFINE_UNQUOTED'
2000 for 'PLUGIN_GCN', 'PLUGIN_NVPTX'.
2001 * Makefile.in: Regenerate.
2002 * config.h.in: Likewise.
2003 * configure: Likewise.
2004 * testsuite/Makefile.in: Likewise.
2005
2006 2022-05-12 Jakub Jelinek <jakub@redhat.com>
2007
2008 * libgomp.h (struct gomp_task): Add depend_all_memory member.
2009 * task.c (gomp_init_task): Initialize depend_all_memory.
2010 (gomp_task_handle_depend): Handle omp_all_memory.
2011 (gomp_task_run_post_handle_depend_hash): Clear
2012 parent->depend_all_memory if equal to current task.
2013 (gomp_task_maybe_wait_for_dependencies): Handle omp_all_memory.
2014 * testsuite/libgomp.c-c++-common/depend-1.c: New test.
2015 * testsuite/libgomp.c-c++-common/depend-2.c: New test.
2016 * testsuite/libgomp.c-c++-common/depend-3.c: New test.
2017
2018 2022-05-11 Thomas Schwinge <thomas@codesourcery.com>
2019
2020 * plugin/configfrag.ac: Remove '--with-hsa-runtime',
2021 '--with-hsa-runtime-include', '--with-hsa-runtime-lib' processing.
2022 * Makefile.in: Regenerate.
2023 * configure: Likewise.
2024 * testsuite/Makefile.in: Likewise.
2025
2026 2022-05-11 Thomas Schwinge <thomas@codesourcery.com>
2027
2028 * plugin/Makefrag.am (libgomp_plugin_gcn_la_CPPFLAGS): Don't
2029 consider 'PLUGIN_GCN_CPPFLAGS'.
2030 (libgomp_plugin_gcn_la_LDFLAGS): Don't consider
2031 'PLUGIN_GCN_LDFLAGS'.
2032 * plugin/configfrag.ac (PLUGIN_GCN_CPPFLAGS, PLUGIN_GCN_LDFLAGS):
2033 Remove.
2034 * Makefile.in: Regenerate.
2035 * configure: Likewise.
2036 * testsuite/Makefile.in: Likewise.
2037
2038 2022-05-11 Thomas Schwinge <thomas@codesourcery.com>
2039
2040 * plugin/configfrag.ac (HSA_RUNTIME_CPPFLAGS)
2041 (HSA_RUNTIME_LDFLAGS): Remove.
2042 * configure: Regenerate.
2043
2044 2022-05-11 Thomas Schwinge <thomas@codesourcery.com>
2045
2046 * testsuite/lib/libgomp.exp (libgomp_init): Don't
2047 'append always_ld_library_path ":$hsa_runtime_lib"'.
2048 * testsuite/libgomp-test-support.exp.in (hsa_runtime_lib): Don't set.
2049
2050 2022-05-10 Thomas Schwinge <thomas@codesourcery.com>
2051
2052 * testsuite/libgomp.fortran/use_device_addr-5.f90: Fix up
2053 multi-device testing.
2054
2055 2022-05-06 Marcel Vollweiler <marcel@codesourcery.com>
2056
2057 * libgomp.map: Added omp_target_is_accessible.
2058 * libgomp.texi: Tagged omp_target_is_accessible as supported.
2059 * omp.h.in: Added omp_target_is_accessible.
2060 * omp_lib.f90.in: Added interface for omp_target_is_accessible.
2061 * omp_lib.h.in: Likewise.
2062 * target.c (omp_target_is_accessible): Added implementation of
2063 omp_target_is_accessible.
2064 * testsuite/libgomp.c-c++-common/target-is-accessible-1.c: New test.
2065 * testsuite/libgomp.fortran/target-is-accessible-1.f90: New test.
2066
2067 2022-05-05 Sandra Loosemore <sandra@codesourcery.com>
2068
2069 * libgomp.texi (OpenMP 5.0): Feature is now fully supported.
2070
2071 2022-05-04 Tobias Burnus <tobias@codesourcery.com>
2072
2073 * plugin/plugin-gcn.c (isa_matches_agent): Suggest -foffload-options.
2074
2075 2022-05-04 Tobias Burnus <tobias@codesourcery.com>
2076
2077 * testsuite/libgomp.fortran/use_device_addr-5.f90: New test.
2078
2079 2022-05-03 Marcel Vollweiler <marcel@codesourcery.com>
2080
2081 * libgomp.map: Added omp_get_mapped_ptr.
2082 * libgomp.texi: Tagged omp_get_mapped_ptr as supported.
2083 * omp.h.in: Added omp_get_mapped_ptr.
2084 * omp_lib.f90.in: Added interface for omp_get_mapped_ptr.
2085 * omp_lib.h.in: Likewise.
2086 * target.c (omp_get_mapped_ptr): Added implementation of
2087 omp_get_mapped_ptr.
2088 * testsuite/libgomp.c-c++-common/get-mapped-ptr-1.c: New test.
2089 * testsuite/libgomp.c-c++-common/get-mapped-ptr-2.c: New test.
2090 * testsuite/libgomp.c-c++-common/get-mapped-ptr-3.c: New test.
2091 * testsuite/libgomp.c-c++-common/get-mapped-ptr-4.c: New test.
2092 * testsuite/libgomp.fortran/get-mapped-ptr-1.f90: New test.
2093 * testsuite/libgomp.fortran/get-mapped-ptr-2.f90: New test.
2094 * testsuite/libgomp.fortran/get-mapped-ptr-3.f90: New test.
2095 * testsuite/libgomp.fortran/get-mapped-ptr-4.f90: New test.
2096
2097 2022-04-28 Thomas Schwinge <thomas@codesourcery.com>
2098
2099 PR fortran/104717
2100 * testsuite/libgomp.oacc-fortran/print-1.f90: Add OpenACC
2101 privatization scanning. For GCN offloading compilation, raise
2102 '-mgang-private-size'.
2103
2104 2022-04-26 Jakub Jelinek <jakub@redhat.com>
2105
2106 PR libgomp/105358
2107 * work.c (gomp_init_work_share): Don't mask of adjustment for
2108 dynamic long long realignment if struct gomp_work_share has smaller
2109 alignof than long long.
2110 * loop.c (GOMP_loop_start): Don't use inline_ordered_team_ids if
2111 struct gomp_work_share has smaller alignof than long long or if
2112 sizeof (struct gomp_work_share) is smaller than
2113 INLINE_ORDERED_TEAM_IDS_OFF.
2114 * loop_ull.c (GOMP_loop_ull_start): Likewise.
2115 * sections.c (GOMP_sections2_start): Likewise.
2116
2117 2022-04-25 Jakub Jelinek <jakub@redhat.com>
2118 Thomas Schwinge <thomas@codesourcery.com>
2119
2120 PR fortran/104717
2121 * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Adjust.
2122
2123 2022-04-13 Jakub Jelinek <jakub@redhat.com>
2124
2125 * libgomp.texi: Fix a typo - mutexinouset -> mutexinoutset.
2126
2127 2022-04-06 Thomas Schwinge <thomas@codesourcery.com>
2128
2129 * plugin/cuda/cuda.h: Remove file.
2130 * plugin/plugin-nvptx.c [PLUGIN_NVPTX_DYNAMIC]: Include
2131 "cuda/cuda.h" instead of <cuda.h>.
2132 * plugin/configfrag.ac <PLUGIN_NVPTX_DYNAMIC>: Don't set
2133 'PLUGIN_NVPTX_CPPFLAGS'.
2134 * configure: Regenerate.
2135
2136 2022-04-05 Chung-Lin Tang <cltang@codesourcery.com>
2137
2138 * testsuite/libgomp.fortran/use_device_ptr-4.f90: New testcase.
2139
2140 2022-04-04 Tom de Vries <tdevries@suse.de>
2141
2142 * testsuite/libgomp.fortran/examples-4/declare_target-1.f90: Use
2143 on_device_arch_nvptx instead of offload_target_nvptx.
2144 * testsuite/libgomp.fortran/examples-4/declare_target-2.f90: Same.
2145
2146 2022-04-01 Tom de Vries <tdevries@suse.de>
2147
2148 * testsuite/libgomp.fortran/examples-4/declare_target-1.f90: Define
2149 and use REC_DEPTH.
2150 * testsuite/libgomp.fortran/examples-4/declare_target-2.f90: Same.
2151
2152 2022-04-01 Tom de Vries <tdevries@suse.de>
2153
2154 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-7.c: Fix
2155 num_workers check.
2156
2157 2022-03-29 Chenghua Xu <xuchenghua@loongson.cn>
2158 Lulu Cheng <chenglulu@loongson.cn>
2159
2160 * configure.tgt: Add LoongArch triplet.
2161
2162 2022-03-28 Tom de Vries <tdevries@suse.de>
2163
2164 * plugin/configfrag.ac: Use /$(libexecdir:\$(exec_prefix)/%=%)/
2165 instead of /libexec/.
2166 * configure: Regenerate.
2167
2168 2022-03-25 Tom de Vries <tdevries@suse.de>
2169
2170 PR libgomp/105042
2171 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Reduce
2172 execution time.
2173 * testsuite/libgomp.oacc-c-c++-common/vred2d-128.c: Same.
2174 * testsuite/libgomp.oacc-fortran/parallel-dims.f90: Same.
2175
2176 2022-03-23 Tobias Burnus <tobias@codesourcery.com>
2177
2178 PR middle-end/104285
2179 * testsuite/libgomp.c++/target-same-name-2-a.C: New test.
2180 * testsuite/libgomp.c++/target-same-name-2-b.C: New test.
2181 * testsuite/libgomp.c++/target-same-name-2.C: New test.
2182 * testsuite/libgomp.c-c++-common/target-same-name-1-a.c: New test.
2183 * testsuite/libgomp.c-c++-common/target-same-name-1-b.c: New test.
2184 * testsuite/libgomp.c-c++-common/target-same-name-1.c: New test.
2185
2186 2022-03-22 Tom de Vries <tdevries@suse.de>
2187
2188 PR target/104916
2189 PR target/104783
2190 * testsuite/libgomp.c/pr104783-2.c: New test.
2191
2192 2022-03-18 Tobias Burnus <tobias@codesourcery.com>
2193
2194 PR fortran/103039
2195 * testsuite/libgomp.fortran/associate4.f90: New test.
2196
2197 2022-03-18 Tom de Vries <tdevries@suse.de>
2198
2199 PR target/104952
2200 * testsuite/libgomp.c/pr104952-1.c: New test.
2201 * testsuite/libgomp.c/pr104952-2.c: New test.
2202
2203 2022-03-18 Jakub Jelinek <jakub@redhat.com>
2204
2205 * config/linux/affinity.c (gomp_affinity_init_numa_domains): Move seen
2206 variable next to pl variable.
2207
2208 2022-03-17 Thomas Schwinge <thomas@codesourcery.com>
2209
2210 * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c:
2211 Enhance.
2212 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-g.c: Likewise.
2213 * testsuite/libgomp.oacc-fortran/if-1.f90: Likewise.
2214
2215 2022-03-17 Thomas Schwinge <thomas@codesourcery.com>
2216
2217 PR middle-end/90115
2218 * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c: Enhance.
2219 * testsuite/libgomp.oacc-fortran/if-1.f90: Likewise.
2220
2221 2022-03-16 Marcel Vollweiler <marcel@codesourcery.com>
2222
2223 * fortran.c (omp_set_num_teams_8_): Call omp_set_num_teams instead of
2224 omp_set_max_active_levels.
2225 * testsuite/libgomp.fortran/icv-8.f90: New test.
2226
2227 2022-03-16 Thomas Schwinge <thomas@codesourcery.com>
2228
2229 PR testsuite/102841
2230 * testsuite/libgomp.oacc-c-c++-common/host_data-7.c: Adjust.
2231
2232 2022-03-13 Tobias Burnus <tobias@codesourcery.com>
2233
2234 * libgomp.texi: Fix typo.
2235
2236 2022-03-12 Thomas Schwinge <thomas@codesourcery.com>
2237
2238 PR middle-end/100280
2239 PR middle-end/104892
2240 * testsuite/libgomp.oacc-c-c++-common/declare-vla.c: Adjust.
2241 * testsuite/libgomp.oacc-c-c++-common/default-1.c: Likewise.
2242 * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c:
2243 Likewise.
2244 * testsuite/libgomp.oacc-c-c++-common/kernels-reduction-1.c:
2245 Likewise.
2246 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Likewise.
2247 * testsuite/libgomp.oacc-fortran/asyncwait-1.f90: Likewise.
2248 * testsuite/libgomp.oacc-fortran/kernels-reduction-1.f90:
2249 Likewise.
2250
2251 2022-03-12 Thomas Schwinge <thomas@codesourcery.com>
2252
2253 PR middle-end/104892
2254 * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c: Point
2255 to PR104892.
2256 * testsuite/libgomp.oacc-c-c++-common/default-1.c: Likewise,
2257 enable '--param=openacc-kernels=decompose' and adjust.
2258 * testsuite/libgomp.oacc-c-c++-common/kernels-reduction-1.c:
2259 Likewise.
2260 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Likewise.
2261 * testsuite/libgomp.oacc-fortran/kernels-reduction-1.f90:
2262 Likewise.
2263
2264 2022-03-12 Thomas Schwinge <thomas@codesourcery.com>
2265
2266 PR middle-end/90115
2267 * testsuite/libgomp.oacc-c-c++-common/default-1.c: Enhance.
2268 * testsuite/libgomp.oacc-c-c++-common/kernels-reduction-1.c: Likewise.
2269 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Likewise.
2270 * testsuite/libgomp.oacc-fortran/kernels-reduction-1.f90: Likewise.
2271
2272 2022-03-12 Thomas Schwinge <thomas@codesourcery.com>
2273
2274 PR middle-end/100280
2275 PR middle-end/104086
2276 * testsuite/libgomp.oacc-c-c++-common/declare-vla-kernels-decompose-ice-1.c:
2277 Merge this...
2278 * testsuite/libgomp.oacc-c-c++-common/declare-vla-kernels-decompose.c:
2279 ..., and this...
2280 * testsuite/libgomp.oacc-c-c++-common/declare-vla.c: ... into
2281 this, and adjust.
2282 * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c:
2283 Extend.
2284
2285 2022-03-10 Hafiz Abid Qadeer <abidh@codesourcery.com>
2286
2287 * testsuite/libgomp.fortran/allocate-1.f90: Remove pool_size
2288 trait. Test last index in w and v array. Remove redundant
2289 assignment to V(1). Move alignment checks at the end of
2290 parallel region.
2291
2292 2022-03-10 Tom de Vries <tdevries@suse.de>
2293
2294 * testsuite/libgomp.c/pr104783.c: New test.
2295
2296 2022-03-10 Thomas Schwinge <thomas@codesourcery.com>
2297
2298 PR middle-end/90115
2299 PR middle-end/102330
2300 PR middle-end/104774
2301 * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c:
2302 Enhance.
2303 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-1.c:
2304 Adjust.
2305 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-2.c:
2306 Likewise.
2307 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-3.c:
2308 Likewise.
2309 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-4.c:
2310 Likewise.
2311 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-5.c:
2312 Likewise.
2313 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-vector-1.c:
2314 Likewise.
2315 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-vector-2.c:
2316 Likewise.
2317 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-2.c:
2318 Likewise.
2319 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-3.c:
2320 Likewise.
2321 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-4.c:
2322 Likewise.
2323 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-5.c:
2324 Likewise.
2325 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-6.c:
2326 Likewise.
2327 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-7.c:
2328 Likewise.
2329 * testsuite/libgomp.oacc-fortran/optional-private.f90: Likewise.
2330 * testsuite/libgomp.oacc-fortran/privatized-ref-1.f95: Likewise.
2331 * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Likewise.
2332
2333 2022-03-10 Thomas Schwinge <thomas@codesourcery.com>
2334
2335 PR middle-end/90115
2336 * testsuite/libgomp.oacc-fortran/routine-1.f90: Enhance.
2337 * testsuite/libgomp.oacc-fortran/routine-2.f90: Likewise.
2338 * testsuite/libgomp.oacc-fortran/routine-3.f90: Likewise.
2339 * testsuite/libgomp.oacc-fortran/routine-9.f90: Likewise.
2340
2341 2022-03-04 Thomas Schwinge <thomas@codesourcery.com>
2342
2343 PR testsuite/104791
2344 * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c: Fix
2345 expected diagnostics.
2346
2347 2022-03-04 Thomas Schwinge <thomas@codesourcery.com>
2348
2349 PR middle-end/104784
2350 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-1.c:
2351 Test with '--param=openacc-kernels=decompose'.
2352 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-2.c:
2353 Likewise.
2354 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-3.c:
2355 Likewise.
2356 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-4.c:
2357 Likewise.
2358 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-5.c:
2359 Likewise.
2360 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-1.c:
2361 Likewise.
2362 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-2.c:
2363 Likewise.
2364 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-3.c:
2365 Likewise.
2366 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-4.c:
2367 Likewise.
2368 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-5.c:
2369 Likewise.
2370 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-6.c:
2371 Likewise.
2372 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-vector-1.c:
2373 Likewise.
2374 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-vector-2.c:
2375 Likewise.
2376 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-1.c:
2377 Likewise.
2378 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-2.c:
2379 Likewise.
2380 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-3.c:
2381 Likewise.
2382 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-4.c:
2383 Likewise.
2384 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-5.c:
2385 Likewise.
2386 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-6.c:
2387 Likewise.
2388 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-7.c:
2389 Likewise.
2390 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-1.f90:
2391 Likewise.
2392 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-2.f90:
2393 Likewise.
2394 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-3.f90:
2395 Likewise.
2396 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-6.f90:
2397 Likewise.
2398 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-vector-1.f90:
2399 Likewise.
2400 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-vector-2.f90:
2401 Likewise.
2402 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-1.f90:
2403 Likewise.
2404 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-2.f90:
2405 Likewise.
2406 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-3.f90:
2407 Likewise.
2408 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-4.f90:
2409 Likewise.
2410 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-5.f90:
2411 Likewise.
2412 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-6.f90:
2413 Likewise.
2414 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-7.f90:
2415 Likewise.
2416
2417 2022-03-04 Thomas Schwinge <thomas@codesourcery.com>
2418
2419 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-1.c:
2420 Test '-fopt-info-omp-all'.
2421 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-2.c:
2422 Likewise.
2423 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-3.c:
2424 Likewise.
2425 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-4.c:
2426 Likewise.
2427 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-5.c:
2428 Likewise.
2429 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-1.c:
2430 Likewise.
2431 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-2.c:
2432 Likewise.
2433 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-3.c:
2434 Likewise.
2435 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-4.c:
2436 Likewise.
2437 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-5.c:
2438 Likewise.
2439 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-6.c:
2440 Likewise.
2441 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-vector-1.c:
2442 Likewise.
2443 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-vector-2.c:
2444 Likewise.
2445 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-1.c:
2446 Likewise.
2447 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-2.c:
2448 Likewise.
2449 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-3.c:
2450 Likewise.
2451 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-4.c:
2452 Likewise.
2453 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-5.c:
2454 Likewise.
2455 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-6.c:
2456 Likewise.
2457 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-7.c:
2458 Likewise.
2459 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-1.f90:
2460 Likewise.
2461 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-2.f90:
2462 Likewise.
2463 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-3.f90:
2464 Likewise.
2465 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-6.f90:
2466 Likewise.
2467 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-vector-1.f90:
2468 Likewise.
2469 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-vector-2.f90:
2470 Likewise.
2471 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-1.f90:
2472 Likewise.
2473 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-2.f90:
2474 Likewise.
2475 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-3.f90:
2476 Likewise.
2477 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-4.f90:
2478 Likewise.
2479 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-5.f90:
2480 Likewise.
2481 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-6.f90:
2482 Likewise.
2483 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-7.f90:
2484 Likewise.
2485
2486 2022-03-04 Thomas Schwinge <thomas@codesourcery.com>
2487
2488 PR middle-end/100280
2489 PR middle-end/104132
2490 PR middle-end/104133
2491 * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c:
2492 Extend.
2493
2494 2022-03-04 Thomas Schwinge <thomas@codesourcery.com>
2495
2496 PR middle-end/100280
2497 * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-1.c: Adjust.
2498 * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c:
2499 Likewise.
2500
2501 2022-03-04 Thomas Schwinge <thomas@codesourcery.com>
2502
2503 PR middle-end/100280
2504 * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-1.c: Adjust.
2505 * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c:
2506 Likewise.
2507
2508 2022-02-28 Tom de Vries <tdevries@suse.de>
2509
2510 * testsuite/libgomp.c/declare-variant-3-sm30.c: Add -foffload=-mptx=_.
2511 * testsuite/libgomp.c/declare-variant-3-sm35.c: Same.
2512 * testsuite/libgomp.c/declare-variant-3-sm53.c: Same.
2513 * testsuite/libgomp.c/declare-variant-3-sm70.c: Same.
2514 * testsuite/libgomp.c/declare-variant-3-sm75.c: Same.
2515 * testsuite/libgomp.c/declare-variant-3-sm80.c: Same.
2516
2517 2022-02-24 Tom de Vries <tdevries@suse.de>
2518
2519 * testsuite/libgomp.c/declare-variant-3-sm30.c: New test.
2520 * testsuite/libgomp.c/declare-variant-3-sm35.c: New test.
2521 * testsuite/libgomp.c/declare-variant-3-sm53.c: New test.
2522 * testsuite/libgomp.c/declare-variant-3-sm70.c: New test.
2523 * testsuite/libgomp.c/declare-variant-3-sm75.c: New test.
2524 * testsuite/libgomp.c/declare-variant-3-sm80.c: New test.
2525 * testsuite/libgomp.c/declare-variant-3.h: New header file.
2526
2527 2022-02-22 Thomas Schwinge <thomas@codesourcery.com>
2528
2529 * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Fix OpenACC
2530 gang-redundant execution.
2531
2532 2022-02-22 Tom de Vries <tdevries@suse.de>
2533
2534 PR target/99555
2535 * config/nvptx/bar.c (generation_to_barrier): New function, copied
2536 from config/rtems/bar.c.
2537 (futex_wait, futex_wake): New function.
2538 (do_spin, do_wait): New function, copied from config/linux/wait.h.
2539 (gomp_barrier_wait_end, gomp_barrier_wait_last)
2540 (gomp_team_barrier_wake, gomp_team_barrier_wait_end):
2541 (gomp_team_barrier_wait_cancel_end, gomp_team_barrier_cancel): Remove
2542 and replace with include of config/linux/bar.c.
2543 * config/nvptx/bar.h (gomp_barrier_t): Add fields waiters and lock.
2544 (gomp_barrier_init): Init new fields.
2545 * testsuite/libgomp.c-c++-common/task-detach-6.c: Remove nvptx-specific
2546 workarounds.
2547 * testsuite/libgomp.c/pr99555-1.c: Same.
2548 * testsuite/libgomp.fortran/task-detach-6.f90: Same.
2549
2550 2022-02-22 Tom de Vries <tdevries@suse.de>
2551
2552 PR testsuite/104146
2553 * testsuite/libgomp.c++/pr96390.C: Add additional-option
2554 -foffload=-Wa,--verify for nvptx.
2555 * testsuite/libgomp.c-c++-common/pr96390.c: Same.
2556
2557 2022-02-15 Tobias Burnus <tobias@codesourcery.com>
2558
2559 * testsuite/libgomp.fortran/depend-4.f90: New test.
2560
2561 2022-02-10 Tobias Burnus <tobias@codesourcery.com>
2562
2563 PR c++/102204
2564 * testsuite/libgomp.c++/target-virtual-1.C: New test.
2565
2566 2022-02-10 Marcel Vollweiler <marcel@codesourcery.com>
2567
2568 * libgomp.texi: Updated entry for HAS_DEVICE_ADDR.
2569 * target.c (copy_firstprivate_data): Copy only if host address is not
2570 NULL.
2571 * testsuite/libgomp.c++/target-has-device-addr-2.C: New test.
2572 * testsuite/libgomp.c++/target-has-device-addr-4.C: New test.
2573 * testsuite/libgomp.c++/target-has-device-addr-5.C: New test.
2574 * testsuite/libgomp.c++/target-has-device-addr-6.C: New test.
2575 * testsuite/libgomp.c-c++-common/target-has-device-addr-1.c: New test.
2576 * testsuite/libgomp.c/target-has-device-addr-3.c: New test.
2577 * testsuite/libgomp.fortran/target-has-device-addr-1.f90: New test.
2578 * testsuite/libgomp.fortran/target-has-device-addr-2.f90: New test.
2579 * testsuite/libgomp.fortran/target-has-device-addr-3.f90: New test.
2580 * testsuite/libgomp.fortran/target-has-device-addr-4.f90: New test.
2581
2582 2022-02-08 Jakub Jelinek <jakub@redhat.com>
2583
2584 PR libgomp/104385
2585 * task.c (gomp_task_run_post_handle_dependers): If parent is NULL,
2586 clear task->parent.
2587 * testsuite/libgomp.c/pr104385.c: New test.
2588
2589 2022-02-04 Tobias Burnus <tobias@codesourcery.com>
2590
2591 * testsuite/libgomp.fortran/allocate-1.f90: Remove spurious
2592 STOP of previous commit.
2593
2594 2022-02-04 Tobias Burnus <tobias@codesourcery.com>
2595
2596 * testsuite/libgomp.fortran/allocate-1.c (is_64bit_aligned): Renamed
2597 from is_64bit_aligned_.
2598 * testsuite/libgomp.fortran/allocate-1.f90: Fix interface decl
2599 and use it, more implicit none, remove unused argument.
2600
2601 2022-02-03 David Seifert <soap@gentoo.org>
2602 Jakub Jelinek <jakub@redhat.com>
2603
2604 * configure.ac: Support --disable-werror.
2605 * configure: Regenerate.
2606
2607 2022-02-01 Tom de Vries <tdevries@suse.de>
2608
2609 * testsuite/libgomp.oacc-c-c++-common/private-atomic-1.c: Remove
2610 PR83812 workaround.
2611 * testsuite/libgomp.oacc-fortran/private-atomic-1-vector.f90: Same.
2612 * testsuite/libgomp.oacc-fortran/private-atomic-1-worker.f90: Same.
2613
2614 2022-02-01 Tom de Vries <tdevries@suse.de>
2615
2616 * testsuite/libgomp.oacc-c-c++-common/broadcast-many.c: Reduce
2617 num_workers for nvidia accelerator to fix libgomp error 'insufficient
2618 resources'.
2619 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-4.c:
2620 Same.
2621 * testsuite/libgomp.oacc-c-c++-common/reduction-7.c: Same.
2622
2623 2022-02-01 Tom de Vries <tdevries@suse.de>
2624
2625 * testsuite/libgomp.fortran/examples-4/declare_target-1.f90: Reduce
2626 recursion depth.
2627 * testsuite/libgomp.fortran/examples-4/declare_target-2.f90: Same.
2628
2629 2022-01-31 Martin Liska <mliska@suse.cz>
2630
2631 * acinclude.m4: Detect *_ld_is_mold and use it.
2632 * configure: Regenerate.
2633
2634 2022-01-27 Tobias Burnus <tobias@codesourcery.com>
2635
2636 * libgomp.texi (OpenMP 5.0): Update implementation status.
2637
2638 2022-01-21 Thomas Schwinge <thomas@codesourcery.com>
2639
2640 * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c: Strengthen.
2641 * testsuite/libgomp.oacc-c-c++-common/loop-gwv-2.c: Likewise.
2642 * testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c: Likewise.
2643 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c: Likewise.
2644 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c: Likewise.
2645 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c: Likewise.
2646 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c: Likewise.
2647 * testsuite/libgomp.oacc-c-c++-common/loop-red-wv-1.c: Likewise.
2648 * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c: Likewise.
2649 * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c: Likewise.
2650 * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c: Likewise.
2651 * testsuite/libgomp.oacc-c-c++-common/routine-gwv-1.c: Likewise.
2652 * testsuite/libgomp.oacc-c-c++-common/routine-v-1.c: Likewise.
2653 * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c: Likewise.
2654 * testsuite/libgomp.oacc-c-c++-common/routine-wv-1.c: Likewise.
2655
2656 2022-01-19 Marcel Vollweiler <marcel@codesourcery.com>
2657
2658 * config/gcn/icv-device.c: Make GOMP_DEVICE_NUM_VAR public (remove
2659 "static") to make the device num available in the offload image.
2660
2661 2022-01-19 Martin Liska <mliska@suse.cz>
2662 Thomas Schwinge <thomas@codesourcery.com>
2663
2664 * testsuite/libgomp.oacc-c++/privatized-ref-2.C: Update scanning
2665 patterns.
2666 * testsuite/libgomp.oacc-c++/privatized-ref-3.C: Likewise.
2667 * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c:
2668 Likewise.
2669 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-2.c: Likewise.
2670 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Likewise.
2671 * testsuite/libgomp.oacc-c-c++-common/pr85486.c: Likewise.
2672 * testsuite/libgomp.oacc-c-c++-common/pr95270-1.c: Likewise.
2673 * testsuite/libgomp.oacc-c-c++-common/routine-nohost-2.c:
2674 Likewise.
2675 * testsuite/libgomp.oacc-c-c++-common/struct-copyout-1.c:
2676 Likewise.
2677 * testsuite/libgomp.oacc-c-c++-common/struct-copyout-2.c:
2678 Likewise.
2679 * testsuite/libgomp.oacc-c-c++-common/vector-length-64-1.c:
2680 Likewise.
2681 * testsuite/libgomp.oacc-fortran/attach-descriptor-1.f90:
2682 Likewise.
2683 * testsuite/libgomp.oacc-fortran/derivedtypes-arrays-1.f90:
2684 Likewise.
2685 * testsuite/libgomp.oacc-fortran/kernels-loop-2.f95: Likewise.
2686 * testsuite/libgomp.oacc-fortran/parallel-dims.f90: Likewise.
2687 * testsuite/libgomp.oacc-fortran/privatized-ref-1.f95: Likewise.
2688
2689 2022-01-18 Martin Liska <mliska@suse.cz>
2690
2691 * testsuite/libgomp.oacc-c++/privatized-ref-2.C: Update keyword
2692 in dg-warning.
2693 * testsuite/libgomp.oacc-c++/privatized-ref-3.C: Likewise.
2694 * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c: Likewise.
2695 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-2.c: Likewise.
2696 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Likewise.
2697 * testsuite/libgomp.oacc-c-c++-common/pr85486.c: Likewise.
2698 * testsuite/libgomp.oacc-c-c++-common/pr95270-1.c: Likewise.
2699 * testsuite/libgomp.oacc-c-c++-common/routine-nohost-2.c: Likewise.
2700 * testsuite/libgomp.oacc-c-c++-common/struct-copyout-1.c: Likewise.
2701 * testsuite/libgomp.oacc-c-c++-common/struct-copyout-2.c: Likewise.
2702 * testsuite/libgomp.oacc-c-c++-common/vector-length-64-1.c: Likewise.
2703 * testsuite/libgomp.oacc-fortran/attach-descriptor-1.f90: Likewise.
2704 * testsuite/libgomp.oacc-fortran/derivedtypes-arrays-1.f90: Likewise.
2705 * testsuite/libgomp.oacc-fortran/kernels-loop-2.f95: Likewise.
2706 * testsuite/libgomp.oacc-fortran/parallel-dims.f90: Likewise.
2707 * testsuite/libgomp.oacc-fortran/privatized-ref-1.f95: Likewise.
2708
2709 2022-01-17 Thomas Schwinge <thomas@codesourcery.com>
2710
2711 * testsuite/libgomp.oacc-c++/privatized-ref-2.C: Extend.
2712 * testsuite/libgomp.oacc-c++/privatized-ref-3.C: Likewise.
2713 * testsuite/libgomp.oacc-fortran/privatized-ref-1.f95: Likewise.
2714
2715 2022-01-17 Julian Brown <julian@codesourcery.com>
2716 Thomas Schwinge <thomas@codesourcery.com>
2717
2718 * testsuite/libgomp.oacc-fortran/privatized-ref-1.f95: New test.
2719 * testsuite/libgomp.oacc-c++/privatized-ref-2.C: New test.
2720 * testsuite/libgomp.oacc-c++/privatized-ref-3.C: New test.
2721
2722 2022-01-16 Kwok Cheung Yeung <kcy@codesourcery.com>
2723 Andrew Stubbs <ams@codesourcery.com>
2724
2725 * plugin/plugin-gcn.c (parse_target_attributes): Automatically set
2726 the number of teams and threads if necessary.
2727 (gcn_exec): Automatically set the number of gangs and workers if
2728 necessary.
2729
2730 2022-01-13 Hafiz Abid Qadeer <abidh@codesourcery.com>
2731
2732 * testsuite/libgomp.fortran/allocate-1.c: New test.
2733 * testsuite/libgomp.fortran/allocate-1.f90: New test.
2734 * libgomp.texi: Remove string that says that allocate clause
2735 support is for C/C++ only.
2736
2737 2022-01-13 Thomas Schwinge <thomas@codesourcery.com>
2738
2739 * testsuite/libgomp.c-c++-common/on_device_arch.h
2740 (any_device_arch, any_device_arch_intel_mic): New.
2741 * testsuite/lib/libgomp.exp
2742 (check_effective_target_offload_device_any_intel_mic): New.
2743 * testsuite/libgomp.c-c++-common/target-45.c: Use it.
2744 * testsuite/libgomp.fortran/target10.f90: Likewise.
2745
2746 2022-01-13 Thomas Schwinge <thomas@codesourcery.com>
2747
2748 PR tree-optimization/102192
2749 * testsuite/libgomp.oacc-fortran/routine-10.f90: Document current
2750 '-Wuninitialized' diagnostics.
2751
2752 2022-01-13 Thomas Schwinge <thomas@codesourcery.com>
2753
2754 * testsuite/libgomp.oacc-c-c++-common/vred2d-128.c: Document
2755 current '-Wuninitialized' diagnostics.
2756 * testsuite/libgomp.oacc-fortran/data-5.f90: Likewise.
2757 * testsuite/libgomp.oacc-fortran/gemm-2.f90: Likewise.
2758 * testsuite/libgomp.oacc-fortran/gemm.f90: Likewise.
2759 * testsuite/libgomp.oacc-fortran/optional-reduction.f90: Likewise.
2760 * testsuite/libgomp.oacc-fortran/parallel-reduction.f90: Likewise.
2761 * testsuite/libgomp.oacc-fortran/pr70643.f90: Likewise.
2762 * testsuite/libgomp.oacc-fortran/pr96628-part1.f90: Likewise.
2763 * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Likewise.
2764 * testsuite/libgomp.oacc-fortran/reduction-5.f90: Likewise.
2765 * testsuite/libgomp.oacc-fortran/reduction-7.f90: Likewise.
2766 * testsuite/libgomp.oacc-fortran/reference-reductions.f90:
2767 Likewise.
2768
2769 2022-01-13 Thomas Schwinge <thomas@codesourcery.com>
2770
2771 * testsuite/libgomp.c/address-space-1.c: Remove 'dg-xfail-run-if'
2772 for 'offload_device_intel_mic'.
2773
2774 2022-01-13 Julian Brown <julian@codesourcery.com>
2775 Thomas Schwinge <thomas@codesourcery.com>
2776
2777 * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-1.c: Remove GCN
2778 offloading execution XFAIL.
2779
2780 2022-01-13 Thomas Schwinge <thomas@codesourcery.com>
2781
2782 PR middle-end/100280
2783 * testsuite/libgomp.oacc-c-c++-common/declare-vla-kernels-decompose-ice-1.c:
2784 Update.
2785 * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-1.c: Likewise.
2786 * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c:
2787 Likewise.
2788
2789 2022-01-13 Thomas Schwinge <thomas@codesourcery.com>
2790
2791 * testsuite/libgomp.oacc-c-c++-common/declare-vla-kernels-decompose-ice-1.c:
2792 Enhance.
2793 * testsuite/libgomp.oacc-c-c++-common/declare-vla-kernels-decompose.c:
2794 Likewise.
2795 * testsuite/libgomp.oacc-c-c++-common/declare-vla.c: Likewise.
2796 * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-1.c: Likewise.
2797 * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-2.c: Likewise.
2798 * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-3.c: Likewise.
2799 * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c:
2800 Likewise.
2801 * testsuite/libgomp.oacc-fortran/asyncwait-1.f90: Likewise.
2802 * testsuite/libgomp.oacc-fortran/asyncwait-2.f90: Likewise.
2803 * testsuite/libgomp.oacc-fortran/asyncwait-3.f90: Likewise.
2804 * testsuite/libgomp.oacc-fortran/pr94358-1.f90: Likewise.
2805
2806 2022-01-04 Tobias Burnus <tobias@codesourcery.com>
2807
2808 * testsuite/libgomp.c-c++-common/target-45.c: Iterate over all devices.
2809 * testsuite/libgomp.fortran/target10.f90: Likewise.
2810
2811 2022-01-04 Chung-Lin Tang <cltang@codesourcery.com>
2812
2813 * plugin/plugin-gcn.c (GOMP_OFFLOAD_load_image): Change uses of STRINGX
2814 into XSTRING when looking for GOMP_DEVICE_NUM_VAR in offload image.
2815 * plugin/plugin-nvptx.c (GOMP_OFFLOAD_load_image): Likewise.
2816
2817 2022-01-03 Jakub Jelinek <jakub@redhat.com>
2818
2819 * libgomp.texi: Bump @copying's copyright year.
2820
2821 2021-12-13 Tobias Burnus <tobias@codesourcery.com>
2822
2823 * libgomp.texi (OpenMP 5.1): Set Fortran support for atomic to 'Y'.
2824 * testsuite/libgomp.fortran/atomic-19.f90: New test.
2825
2826 2021-12-10 Andrew Stubbs <ams@codesourcery.com>
2827
2828 * plugin/plugin-gcn.c (struct gcn_image_desc): Remove global_variables.
2829 (GOMP_OFFLOAD_load_image): Locate the offload variables via the
2830 table, not individual symbols.
2831
2832 2021-12-09 Chung-Lin Tang <cltang@codesourcery.com>
2833
2834 * testsuite/libgomp.c++/target-lambda-1.C: Only run under
2835 "target offload_device_nonshared_as"
2836 * testsuite/libgomp.c++/target-this-3.C: Likewise.
2837 * testsuite/libgomp.c++/target-this-4.C: Likewise.
2838
2839 2021-12-08 Chung-Lin Tang <cltang@codesourcery.com>
2840
2841 * target.c (gomp_map_vars_existing): Make sure attached pointer is
2842 not overwritten during cross-host/device copying.
2843 (gomp_update): Likewise.
2844 (gomp_exit_data): Likewise.
2845 * testsuite/libgomp.c++/target-11.C: Adjust testcase.
2846 * testsuite/libgomp.c++/target-12.C: Likewise.
2847 * testsuite/libgomp.c++/target-15.C: Likewise.
2848 * testsuite/libgomp.c++/target-16.C: Likewise.
2849 * testsuite/libgomp.c++/target-17.C: Likewise.
2850 * testsuite/libgomp.c++/target-21.C: Likewise.
2851 * testsuite/libgomp.c++/target-23.C: Likewise.
2852 * testsuite/libgomp.c/target-23.c: Likewise.
2853 * testsuite/libgomp.c/target-29.c: Likewise.
2854 * testsuite/libgomp.c-c++-common/target-implicit-map-2.c: New testcase.
2855
2856 2021-12-08 Chung-Lin Tang <cltang@codesourcery.com>
2857
2858 PR middle-end/92120
2859 * libgomp.h (gomp_attach_pointer): Add bool parameter.
2860 * oacc-mem.c (acc_attach_async): Update call to gomp_attach_pointer.
2861 (goacc_enter_data_internal): Likewise.
2862 * target.c (gomp_map_vars_existing): Update assert condition to
2863 include GOMP_MAP_ATTACH_ZERO_LENGTH_ARRAY_SECTION.
2864 (gomp_map_pointer): Add 'bool allow_zero_length_array_sections'
2865 parameter, add support for mapping a pointer with NULL target.
2866 (gomp_attach_pointer): Add 'bool allow_zero_length_array_sections'
2867 parameter, add support for attaching a pointer with NULL target.
2868 (gomp_map_vars_internal): Update calls to gomp_map_pointer and
2869 gomp_attach_pointer, add handling for
2870 GOMP_MAP_ATTACH_ZERO_LENGTH_ARRAY_SECTION, and
2871 GOMP_MAP_POINTER_TO_ZERO_LENGTH_ARRAY_SECTION cases.
2872 * testsuite/libgomp.c++/target-23.C: New testcase.
2873 * testsuite/libgomp.c++/target-lambda-1.C: New testcase.
2874 * testsuite/libgomp.c++/target-lambda-2.C: New testcase.
2875 * testsuite/libgomp.c++/target-this-1.C: New testcase.
2876 * testsuite/libgomp.c++/target-this-2.C: New testcase.
2877 * testsuite/libgomp.c++/target-this-3.C: New testcase.
2878 * testsuite/libgomp.c++/target-this-4.C: New testcase.
2879 * testsuite/libgomp.c++/target-this-5.C: New testcase.
2880
2881 2021-12-04 Tobias Burnus <tobias@codesourcery.com>
2882
2883 * libgomp.texi (OpenMP 5.1): Update status.
2884
2885 2021-12-04 Tobias Burnus <tobias@codesourcery.com>
2886
2887 * libgomp.texi (OMP_PLACES): Extend description for OMP 5.1 changes.
2888
2889 2021-12-02 Chung-Lin Tang <cltang@codesourcery.com>
2890
2891 PR fortran/90030
2892 * testsuite/libgomp.oacc-fortran/pr90030.f90: New test.
2893 * testsuite/libgomp.fortran/pr90030.f90: New test.
2894
2895 2021-11-30 Kwok Cheung Yeung <kcy@codesourcery.com>
2896 Thomas Schwinge <thomas@codesourcery.com>
2897
2898 * testsuite/libgomp.oacc-fortran/parallel-dims.f90: Remove
2899 temporary skip.
2900
2901 2021-11-30 Cesar Philippidis <cesar@codesourcery.com>
2902 Thomas Schwinge <thomas@codesourcery.com>
2903
2904 * testsuite/libgomp.oacc-fortran/parallel-dims.f90: Temporarily
2905 skip.
2906
2907 2021-11-29 Richard Biener <rguenther@suse.de>
2908
2909 * oacc-plugin.c (GOMP_PLUGIN_acc_default_dim): Remove unreachable
2910 return.
2911
2912 2021-11-24 Jakub Jelinek <jakub@redhat.com>
2913
2914 PR middle-end/103384
2915 * testsuite/libgomp.c/declare-variant-2.c: New test.
2916
2917 2021-11-18 David Edelsohn <dje.gcc@gmail.com>
2918
2919 * alloc.c (gomp_aligned_alloc): Fix typo.
2920
2921 2021-11-18 Jakub Jelinek <jakub@redhat.com>
2922
2923 PR libgomp/102838
2924 * libgomp.h (GOMP_USE_ALIGNED_WORK_SHARES): Define if
2925 GOMP_HAVE_EFFICIENT_ALIGNED_ALLOC is defined and __AMDGCN__ is not.
2926 (struct gomp_work_share): Use GOMP_USE_ALIGNED_WORK_SHARES instead of
2927 GOMP_HAVE_EFFICIENT_ALIGNED_ALLOC.
2928 * work.c (alloc_work_share, gomp_work_share_start): Likewise.
2929 * team.c (gomp_new_team): If GOMP_USE_ALIGNED_WORK_SHARES, use
2930 gomp_aligned_alloc instead of team_malloc.
2931
2932 2021-11-18 Jakub Jelinek <jakub@redhat.com>
2933
2934 PR libgomp/102838
2935 * alloc.c (gomp_aligned_alloc): Prefer _aligned_alloc over
2936 memalign over posix_memalign over aligned_alloc over fallback
2937 with malloc instead of aligned_alloc over _aligned_alloc over
2938 posix_memalign over memalign over fallback with malloc. For
2939 aligned_alloc, round up size up to multiple of al.
2940
2941 2021-11-16 Jakub Jelinek <jakub@redhat.com>
2942
2943 * libgomp.texi (OpenMP 5.1): Mark thread_limit clause to target
2944 construct as implemented.
2945
2946 2021-11-15 Tobias Burnus <tobias@codesourcery.com>
2947
2948 * testsuite/libgomp.fortran/thread-limit-1.f90: New test.
2949
2950 2021-11-15 Jakub Jelinek <jakub@redhat.com>
2951
2952 * task.c (gomp_create_target_task): Copy args array as well.
2953 * target.c (gomp_target_fallback): Add args argument.
2954 Set gomp_icv (true)->thread_limit_var if thread_limit is present.
2955 (GOMP_target): Adjust gomp_target_fallback caller.
2956 (GOMP_target_ext): Likewise.
2957 (gomp_target_task_fn): Likewise.
2958 * config/nvptx/team.c (gomp_nvptx_main): Set
2959 gomp_global_icv.thread_limit_var.
2960 * testsuite/libgomp.c-c++-common/thread-limit-1.c: New test.
2961
2962 2021-11-15 Jakub Jelinek <jakub@redhat.com>
2963
2964 * config/nvptx/team.c (__gomp_team_num): Define as
2965 __attribute__((shared)) var.
2966 (gomp_nvptx_main): Initialize __gomp_team_num to 0.
2967 * config/nvptx/target.c (__gomp_team_num): Declare as
2968 extern __attribute__((shared)) var.
2969 (GOMP_teams4): Use __gomp_team_num as the team number instead of
2970 %ctaid.x. If first, initialize it to %ctaid.x. If num_teams_lower
2971 is bigger than num_blocks, use num_teams_lower teams and arrange for
2972 bumping of __gomp_team_num if !first and returning false once we run
2973 out of teams.
2974 * config/nvptx/teams.c (__gomp_team_num): Declare as
2975 extern __attribute__((shared)) var.
2976 (omp_get_team_num): Return __gomp_team_num value instead of %ctaid.x.
2977
2978 2021-11-15 Jakub Jelinek <jakub@redhat.com>
2979
2980 * testsuite/libgomp.c/teams-5.c: New test.
2981
2982 2021-11-12 Jakub Jelinek <jakub@redhat.com>
2983
2984 PR target/103201
2985 * config/gcn/icv-device.c (omp_get_num_teams, omp_get_team_num): Move
2986 to ...
2987 * config/gcn/teams.c: ... here. New file.
2988
2989 2021-11-12 Chung-Lin Tang <cltang@codesourcery.com>
2990
2991 * target.c (gomp_map_vars_existing): Add 'bool implicit' parameter, add
2992 implicit map handling to allow a "superset" existing map as valid case.
2993 (get_kind): Adjust to filter out GOMP_MAP_IMPLICIT bits in return value.
2994 (get_implicit): New function to extract implicit status.
2995 (gomp_map_fields_existing): Adjust arguments in calls to
2996 gomp_map_vars_existing, and add uses of get_implicit.
2997 (gomp_map_vars_internal): Likewise.
2998 * testsuite/libgomp.c-c++-common/target-implicit-map-1.c: New test.
2999
3000 2021-11-12 Jakub Jelinek <jakub@redhat.com>
3001
3002 * libgomp_g.h (GOMP_teams4): Declare.
3003 * libgomp.map (GOMP_5.1): Export GOMP_teams4.
3004 * target.c (GOMP_teams4): New function.
3005 * config/nvptx/target.c (GOMP_teams): Remove.
3006 (GOMP_teams4): New function.
3007 * config/gcn/target.c (GOMP_teams): Remove.
3008 (GOMP_teams4): New function.
3009 * testsuite/libgomp.c/teams-4.c (main): Expect exactly 2
3010 teams instead of <= 2.
3011 * testsuite/libgomp.c-c++-common/teams-2.c: New test.
3012
3013 2021-11-11 Tobias Burnus <tobias@codesourcery.com>
3014
3015 * testsuite/libgomp.fortran/teams-1.f90: New test.
3016
3017 2021-11-11 Jakub Jelinek <jakub@redhat.com>
3018
3019 * libgomp.h (struct gomp_thread): Add num_teams and team_num members.
3020 * team.c (struct gomp_thread_start_data): Likewise.
3021 (gomp_thread_start): Initialize thr->num_teams and thr->team_num.
3022 (gomp_team_start): Initialize start_data->num_teams and
3023 start_data->team_num. Update nthr->num_teams and nthr->team_num.
3024 * teams.c (gomp_num_teams, gomp_team_num): Remove.
3025 (GOMP_teams_reg): Set and restore thr->num_teams and thr->team_num
3026 instead of gomp_num_teams and gomp_team_num.
3027 (omp_get_num_teams): Use thr->num_teams + 1 instead of gomp_num_teams.
3028 (omp_get_team_num): Use thr->team_num instead of gomp_team_num.
3029 * testsuite/libgomp.c/teams-4.c: New test.
3030
3031 2021-11-11 Jakub Jelinek <jakub@redhat.com>
3032
3033 * testsuite/libgomp.c-c++-common/teams-1.c: New test.
3034
3035 2021-11-09 Thomas Schwinge <thomas@codesourcery.com>
3036
3037 * env.c (parse_gomp_openacc_dim): Restore parsing.
3038
3039 2021-10-30 Tobias Burnus <tobias@codesourcery.com>
3040
3041 PR middle-end/102972
3042 * testsuite/libgomp.c-c++-common/icv-3.c: Nest API calls inside
3043 parallel construct.
3044 * testsuite/libgomp.c-c++-common/icv-4.c: Likewise.
3045 * testsuite/libgomp.c/target-3.c: Likewise.
3046 * testsuite/libgomp.c/target-5.c: Likewise.
3047 * testsuite/libgomp.c/target-6.c: Likewise.
3048 * testsuite/libgomp.c/target-teams-1.c: Likewise.
3049 * testsuite/libgomp.c/teams-1.c: Likewise.
3050 * testsuite/libgomp.c/thread-limit-2.c: Likewise.
3051 * testsuite/libgomp.c/thread-limit-3.c: Likewise.
3052 * testsuite/libgomp.c/thread-limit-4.c: Likewise.
3053 * testsuite/libgomp.c/thread-limit-5.c: Likewise.
3054 * testsuite/libgomp.fortran/icv-3.f90: Likewise.
3055 * testsuite/libgomp.fortran/icv-4.f90: Likewise.
3056 * testsuite/libgomp.fortran/teams1.f90: Likewise.
3057
3058 2021-10-29 Aldy Hernandez <aldyh@redhat.com>
3059
3060 * testsuite/libgomp.graphite/force-parallel-4.c: Adjust for threading changes.
3061 * testsuite/libgomp.graphite/force-parallel-8.c: Same.
3062
3063 2021-10-27 Jakub Jelinek <jakub@redhat.com>
3064
3065 * libgomp.texi (OpenMP 5.0): Mention that Non-rectangular loop nests
3066 aren't implemented for Fortran yet.
3067
3068 2021-10-27 Jakub Jelinek <jakub@redhat.com>
3069
3070 * testsuite/libgomp.c/loop-26.c: New test.
3071 * testsuite/libgomp.c/loop-27.c: New test.
3072
3073 2021-10-25 Tobias Burnus <tobias@codesourcery.com>
3074
3075 PR testsuite/102910
3076 * testsuite/libgomp.oacc-c-c++-common/loop-gwv-2.c: Use __builtin_alloca
3077 instead of #include <alloca.h> + alloca.
3078
3079 2021-10-21 Chung-Lin Tang <cltang@codesourcery.com>
3080
3081 * libgomp.texi (Support of strictly structured blocks in Fortran):
3082 Adjust to 'Y'.
3083 * testsuite/libgomp.fortran/task-reduction-16.f90: Adjust testcase.
3084
3085 2021-10-20 Chung-Lin Tang <cltang@codesourcery.com>
3086
3087 * testsuite/libgomp.fortran/target-in-reduction-1.f90: New test.
3088 * testsuite/libgomp.fortran/target-in-reduction-2.f90: New test.
3089
3090 2021-10-20 Jakub Jelinek <jakub@redhat.com>
3091
3092 PR libgomp/102838
3093 * libgomp.h (struct gomp_work_share_1st_cacheline): New type.
3094 (struct gomp_work_share): Only use aligned(64) attribute if
3095 GOMP_HAVE_EFFICIENT_ALIGNED_ALLOC is defined, otherwise just
3096 add padding before lock to ensure lock is at offset 64 bytes
3097 into the structure.
3098 (gomp_workshare_struct_check1, gomp_workshare_struct_check2):
3099 New poor man's static assertions.
3100 * work.c (gomp_work_share_start): Use gomp_aligned_alloc instead of
3101 gomp_malloc if GOMP_HAVE_EFFICIENT_ALIGNED_ALLOC.
3102
3103 2021-10-20 Aldy Hernandez <aldyh@redhat.com>
3104 Richard Biener <rguenther@suse.de>
3105
3106 * testsuite/libgomp.graphite/force-parallel-5.c: Remove xfail.
3107
3108 2021-10-18 Jakub Jelinek <jakub@redhat.com>
3109
3110 * config/linux/affinity.c (gomp_affinity_init_numa_domains): Add
3111 && gomp_places_list_len < count after nfirst <= nlast loop condition.
3112
3113 2021-10-18 Tobias Burnus <tobias@codesourcery.com>
3114
3115 PR fortran/102086
3116 PR fortran/92189
3117 PR fortran/92621
3118 PR fortran/101308
3119 PR fortran/101309
3120 PR fortran/101635
3121 PR fortran/92482
3122 * testsuite/libgomp.fortran/optional-bind-c.f90: New test.
3123
3124 2021-10-15 Jakub Jelinek <jakub@redhat.com>
3125
3126 * testsuite/libgomp.c/affinity-1.c (struct places): Change name field
3127 type from char [50] to const char *.
3128 (places_array): Add a testcase for simplified syntax place followed
3129 by length or length and stride.
3130
3131 2021-10-15 Jakub Jelinek <jakub@redhat.com>
3132
3133 * env.c (parse_one_place): Handle non-negative-number the same
3134 as { non-negative-number }. Reject even !number:1 and
3135 !number:1:stride or !place:1 or !place:1:stride instead of just
3136 length other than 1.
3137 * libgomp.texi (OpenMP 5.1): Document OMP_PLACES syntax extensions
3138 and OMP_NUM_TEAMS/OMP_TEAMS_THREAD_LIMIT and
3139 omp_{set_num,get_max}_teams/omp_{s,g}et_teams_thread_limit features
3140 as implemented.
3141 * testsuite/libgomp.c/affinity-1.c: Add a test for the 5.1 place
3142 simplified syntax.
3143
3144 2021-10-15 Jakub Jelinek <jakub@redhat.com>
3145
3146 * env.c (parse_schedule): For strtoul or strtoull calls which don't
3147 clearly reject return value 0 as invalid handle the case where end
3148 pointer is the same as first argument as invalid.
3149 (parse_unsigned_long_1): Likewise.
3150 (parse_one_place): Likewise.
3151 (parse_places_var): Likewise.
3152 (parse_stacksize): Likewise.
3153 (parse_spincount): Likewise.
3154 (parse_affinity): Likewise.
3155 (parse_gomp_openacc_dim): Likewise. Avoid strict aliasing violation.
3156 Make code valid C89.
3157 * config/linux/affinity.c (gomp_affinity_find_last_cache_level):
3158 For strtoul calls which don't clearly reject return value 0 as
3159 invalid handle the case where end pointer is the same as first
3160 argument as invalid.
3161 (gomp_affinity_init_level_1): Likewise.
3162 (gomp_affinity_init_numa_domains): Likewise.
3163 * config/rtems/proc.c (parse_thread_pools): Likewise.
3164
3165 2021-10-15 Jakub Jelinek <jakub@redhat.com>
3166
3167 * config/linux/affinity.c (gomp_affinity_init_level_1): For level 1
3168 after creating count places clean up and return immediately.
3169 * testsuite/libgomp.c/places-6.c: New test.
3170 * testsuite/libgomp.c/places-7.c: New test.
3171 * testsuite/libgomp.c/places-8.c: New test.
3172 * testsuite/libgomp.c/places-9.c: New test.
3173 * testsuite/libgomp.c/places-10.c: New test.
3174
3175 2021-10-15 Jakub Jelinek <jakub@redhat.com>
3176
3177 * env.c (parse_places_var): Handle numa_domains as level 5.
3178 * config/linux/affinity.c (gomp_affinity_init_numa_domains): New
3179 function.
3180 (gomp_affinity_init_level): Use it instead of
3181 gomp_affinity_init_level_1 for level == 5.
3182 * testsuite/libgomp.c/places-5.c: New test.
3183
3184 2021-10-15 Jakub Jelinek <jakub@redhat.com>
3185
3186 * env.c (parse_places_var): Handle ll_caches as level 4.
3187 * config/linux/affinity.c (gomp_affinity_find_last_cache_level): New
3188 function.
3189 (gomp_affinity_init_level_1): Handle level 4 as logical cpus sharing
3190 last level cache.
3191 (gomp_affinity_init_level): Likewise.
3192 * testsuite/libgomp.c/places-1.c: New test.
3193 * testsuite/libgomp.c/places-2.c: New test.
3194 * testsuite/libgomp.c/places-3.c: New test.
3195 * testsuite/libgomp.c/places-4.c: New test.
3196
3197 2021-10-14 Kwok Cheung Yeung <kcy@codesourcery.com>
3198
3199 * libgomp.texi (OpenMP 5.0): Update entry for declare variant
3200 directive.
3201
3202 2021-10-14 Kwok Cheung Yeung <kcy@codesourcery.com>
3203
3204 * testsuite/libgomp.fortran/declare-variant-1.f90: New test.
3205
3206 2021-10-12 Julian Brown <julian@codesourcery.com>
3207
3208 * target.c (gomp_copy_host2dev): Release device lock on cbuf
3209 error path.
3210
3211 2021-10-12 Tobias Burnus <tobias@codesourcery.com>
3212
3213 * testsuite/libgomp.fortran/icv-3.f90: New.
3214 * testsuite/libgomp.fortran/icv-4.f90: New.
3215
3216 2021-10-12 Jakub Jelinek <jakub@redhat.com>
3217
3218 * libgomp.texi (omp_get_max_teams, omp_get_teams_thread_limit,
3219 omp_set_num_teams, omp_set_teams_thread_limit, OMP_NUM_TEAMS,
3220 OMP_TEAMS_THREAD_LIMIT): Document.
3221
3222 2021-10-12 Jakub Jelinek <jakub@redhat.com>
3223
3224 * libgomp.texi (omp_get_device_num): Move @node before omp_get_dynamic
3225 to avoid makeinfo warnings.
3226
3227 2021-10-12 Jakub Jelinek <jakub@redhat.com>
3228
3229 * testsuite/libgomp.c-c++-common/icv-3.c: New test.
3230 * testsuite/libgomp.c-c++-common/icv-4.c: New test.
3231
3232 2021-10-12 Jakub Jelinek <jakub@redhat.com>
3233
3234 PR libgomp/102628
3235 PR libgomp/102668
3236 * testsuite/libgomp.c-c++-common/alloc-9.c (main): Decrease
3237 allocation sizes from 420 to 320 and from 768 to 568.
3238 * testsuite/libgomp.fortran/alloc-11.f90: Likewise.
3239 * testsuite/libgomp.fortran/alloc-1.F90: Change expected alignment
3240 for cr from 16 to 4.
3241
3242 2021-10-12 Jakub Jelinek <jakub@redhat.com>
3243
3244 * testsuite/libgomp.c/scan-11.c: Remove option -fvect-cost-model=cheap.
3245 * testsuite/libgomp.c/scan-12.c: Likewise.
3246 * testsuite/libgomp.c/scan-13.c: Likewise.
3247 * testsuite/libgomp.c/scan-14.c: Likewise.
3248 * testsuite/libgomp.c/scan-15.c: Likewise.
3249 * testsuite/libgomp.c/scan-16.c: Likewise.
3250 * testsuite/libgomp.c/scan-17.c: Likewise.
3251 * testsuite/libgomp.c/scan-18.c: Likewise.
3252 * testsuite/libgomp.c/scan-19.c: Likewise.
3253 * testsuite/libgomp.c/scan-20.c: Likewise.
3254 * testsuite/libgomp.c/scan-21.c: Likewise.
3255 * testsuite/libgomp.c/scan-22.c: Likewise.
3256 * testsuite/libgomp.c++/scan-9.C: Likewise.
3257 * testsuite/libgomp.c++/scan-10.C: Likewise.
3258 * testsuite/libgomp.c++/scan-11.C: Likewise.
3259 * testsuite/libgomp.c++/scan-12.C: Likewise.
3260 * testsuite/libgomp.c++/scan-13.C: Likewise.
3261 * testsuite/libgomp.c++/scan-14.C: Likewise.
3262 * testsuite/libgomp.c++/scan-15.C: Likewise.
3263 * testsuite/libgomp.c++/scan-16.C: Likewise.
3264
3265 2021-10-12 Kewen Lin <linkw@linux.ibm.com>
3266
3267 * testsuite/libgomp.graphite/force-parallel-8.c: Add --param max-stores-to-sink=0.
3268
3269 2021-10-11 Marcel Vollweiler <marcel@codesourcery.com>
3270
3271 * allocator.c (omp_init_allocator): Replace omp_atv_sequential with
3272 omp_atv_serialized.
3273 * omp.h.in: Add deprecated flag for omp_atv_sequential.
3274 * omp_lib.f90.in: Add deprecated flag for omp_atv_sequential.
3275 * testsuite/libgomp.c-c++-common/alloc-10.c: New test.
3276 * testsuite/libgomp.fortran/alloc-12.f90: New test.
3277
3278 2021-10-11 Jakub Jelinek <jakub@redhat.com>
3279
3280 * omp.h.in (omp_set_num_teams, omp_get_max_teams,
3281 omp_set_teams_thread_limit, omp_get_teams_thread_limit): Declare.
3282 * omp_lib.f90.in (omp_set_num_teams, omp_get_max_teams,
3283 omp_set_teams_thread_limit, omp_get_teams_thread_limit): Declare.
3284 * omp_lib.h.in (omp_set_num_teams, omp_get_max_teams,
3285 omp_set_teams_thread_limit, omp_get_teams_thread_limit): Declare.
3286 * libgomp.h (gomp_nteams_var, gomp_teams_thread_limit_var): Declare.
3287 * libgomp.map (OMP_5.1): Export omp_get_max_teams{,_},
3288 omp_get_teams_thread_limit{,_}, omp_set_num_teams{,_,_8_} and
3289 omp_set_teams_thread_limit{,_,_8_}.
3290 * icv.c (omp_set_num_teams, omp_get_max_teams,
3291 omp_set_teams_thread_limit, omp_get_teams_thread_limit): New
3292 functions.
3293 * env.c (gomp_nteams_var, gomp_teams_thread_limit_var): Define.
3294 (omp_display_env): Print OMP_NUM_TEAMS and OMP_TEAMS_THREAD_LIMIT.
3295 (initialize_env): Handle OMP_NUM_TEAMS and OMP_TEAMS_THREAD_LIMIT env
3296 vars.
3297 * teams.c (GOMP_teams_reg): If thread_limit is not specified, use
3298 gomp_teams_thread_limit_var as fallback if not zero. If num_teams
3299 is not specified, use gomp_nteams_var.
3300 * fortran.c (omp_set_num_teams, omp_get_max_teams,
3301 omp_set_teams_thread_limit, omp_get_teams_thread_limit): Add
3302 ialias_redirect.
3303 (omp_set_num_teams_, omp_set_num_teams_8_, omp_get_max_teams_,
3304 omp_set_teams_thread_limit_, omp_set_teams_thread_limit_8_,
3305 omp_get_teams_thread_limit_): New functions.
3306
3307 2021-10-09 liuhongt <hongtao.liu@intel.com>
3308
3309 * testsuite/libgomp.c++/scan-10.C: Add option -fvect-cost-model=cheap.
3310 * testsuite/libgomp.c++/scan-11.C: Ditto.
3311 * testsuite/libgomp.c++/scan-12.C: Ditto.
3312 * testsuite/libgomp.c++/scan-13.C: Ditto.
3313 * testsuite/libgomp.c++/scan-14.C: Ditto.
3314 * testsuite/libgomp.c++/scan-15.C: Ditto.
3315 * testsuite/libgomp.c++/scan-16.C: Ditto.
3316 * testsuite/libgomp.c++/scan-9.C: Ditto.
3317 * testsuite/libgomp.c-c++-common/lastprivate-conditional-7.c: Ditto.
3318 * testsuite/libgomp.c-c++-common/lastprivate-conditional-8.c: Ditto.
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-17.c: Ditto.
3326 * testsuite/libgomp.c/scan-18.c: Ditto.
3327 * testsuite/libgomp.c/scan-19.c: Ditto.
3328 * testsuite/libgomp.c/scan-20.c: Ditto.
3329 * testsuite/libgomp.c/scan-21.c: Ditto.
3330 * testsuite/libgomp.c/scan-22.c: Ditto.
3331
3332 2021-10-09 Jakub Jelinek <jakub@redhat.com>
3333
3334 * libgomp.texi (OpenMP 5.1): Mention implemented support for
3335 structured block sequences in C/C++. Mention support for
3336 unconstrained/reproducible modifiers on order clause.
3337 Mention partial (C/C++ only) support of extentensions to atomics
3338 construct. Mention partial (C/C++ on clause only) support of
3339 align/allocator modifiers on allocate clause.
3340
3341 2021-10-02 Tobias Burnus <tobias@codesourcery.com>
3342
3343 * testsuite/libgomp.fortran/order-reproducible-1.f90: New test
3344 based on libgomp.c-c++-common/order-reproducible-1.c.
3345 * testsuite/libgomp.fortran/order-reproducible-2.f90: Likewise.
3346 * testsuite/libgomp.fortran/my-usleep.c: New test.
3347
3348 2021-10-01 Tobias Burnus <tobias@codesourcery.com>
3349
3350 * testsuite/libgomp.fortran/alloc-10.f90: Fix alignment check.
3351 * testsuite/libgomp.fortran/alloc-7.f90: Fix array access.
3352 * testsuite/libgomp.fortran/alloc-8.f90: Likewise.
3353 * testsuite/libgomp.fortran/alloc-11.f90: New test for omp_realloc,
3354 based on libgomp.c-c++-common/alloc-9.c.
3355
3356 2021-10-01 Jakub Jelinek <jakub@redhat.com>
3357
3358 * testsuite/libgomp.c-c++-common/order-reproducible-1.c: New test.
3359 * testsuite/libgomp.c-c++-common/order-reproducible-2.c: New test.
3360
3361 2021-10-01 Jakub Jelinek <jakub@redhat.com>
3362
3363 * affinity-fmt.c (omp_get_team_num, omp_get_num_teams): Add
3364 ialias_redirect.
3365 * env.c (handle_omp_display_env): Use ialias_call.
3366 * icv-device.c: Move ialias right below each function.
3367 (omp_get_device_num): Use ialias_call.
3368 * fortran.c (omp_fulfill_event): Add ialias_redirect.
3369 * icv.c (omp_get_active_level): Add ialias_redirect.
3370
3371 2021-10-01 Jakub Jelinek <jakub@redhat.com>
3372
3373 * omp.h.in (omp_aligned_alloc, omp_aligned_calloc): Add
3374 __alloc_align__ (1) attribute.
3375 * testsuite/libgomp.c-c++-common/alloc-9.c: New test.
3376
3377 2021-09-30 Tobias Burnus <tobias@codesourcery.com>
3378
3379 * testsuite/libgomp.fortran/alloc-7.f90: Add dg-prune-output
3380 for -fintrinsic-modules-path= warning of the C compiler.
3381 * testsuite/libgomp.fortran/alloc-9.f90: Likewise.
3382 * testsuite/libgomp.fortran/alloc-10.f90: Likewise.
3383
3384 2021-09-30 Tobias Burnus <tobias@codesourcery.com>
3385
3386 * libgomp.texi (OpenMP 5.1): Set implementation status to Y for
3387 omp_aligned_{,c}alloc and omp_{c,re}alloc routines.
3388 * omp_lib.f90.in (omp_aligned_alloc, omp_aligned_calloc, omp_calloc,
3389 omp_realloc): Add.
3390 * omp_lib.h.in (omp_aligned_alloc, omp_aligned_calloc, omp_calloc,
3391 omp_realloc): Add.
3392 * testsuite/libgomp.fortran/alloc-10.f90: New test.
3393 * testsuite/libgomp.fortran/alloc-6.f90: New test.
3394 * testsuite/libgomp.fortran/alloc-7.c: New test.
3395 * testsuite/libgomp.fortran/alloc-7.f90: New test.
3396 * testsuite/libgomp.fortran/alloc-8.f90: New test.
3397 * testsuite/libgomp.fortran/alloc-9.f90: New test.
3398
3399 2021-09-30 Jakub Jelinek <jakub@redhat.com>
3400
3401 * omp.h.in (omp_aligned_alloc, omp_calloc, omp_aligned_calloc,
3402 omp_realloc): New prototypes.
3403 (omp_alloc): Move after omp_free prototype, add __malloc__ (omp_free)
3404 attribute.
3405 * allocator.c: Include string.h.
3406 (omp_aligned_alloc): No longer static, add ialias. Add new_alignment
3407 variable and use it instead of alignment so that when retrying the old
3408 alignment is used again. Don't retry if new alignment is the same
3409 as old alignment, unless allocator had pool size.
3410 (omp_alloc, GOMP_alloc, GOMP_free): Use ialias_call.
3411 (omp_aligned_calloc, omp_calloc, omp_realloc): New functions.
3412 * libgomp.map (OMP_5.0.2): Export omp_aligned_alloc, omp_calloc,
3413 omp_aligned_calloc and omp_realloc.
3414 * testsuite/libgomp.c-c++-common/alloc-4.c (main): Add
3415 omp_aligned_alloc, omp_calloc and omp_aligned_calloc tests.
3416 * testsuite/libgomp.c-c++-common/alloc-5.c: New test.
3417 * testsuite/libgomp.c-c++-common/alloc-6.c: New test.
3418 * testsuite/libgomp.c-c++-common/alloc-7.c: New test.
3419 * testsuite/libgomp.c-c++-common/alloc-8.c: New test.
3420
3421 2021-09-28 Tobias Burnus <tobias@codesourcery.com>
3422
3423 PR libgomp/96661
3424 * configure.ac: Only check for int-type = 2*size_t support when
3425 building with Fortran support.
3426 * configure: Regenerate.
3427
3428 2021-09-28 Thomas Schwinge <thomas@codesourcery.com>
3429
3430 * testsuite/libgomp.oacc-fortran/if-1.f90: Adjust.
3431 * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Likewise.
3432
3433 2021-09-27 Aldy Hernandez <aldyh@redhat.com>
3434
3435 * team.c: Initialize start_data.
3436 * testsuite/libgomp.graphite/force-parallel-4.c: Adjust.
3437 * testsuite/libgomp.graphite/force-parallel-8.c: Adjust.
3438
3439 2021-09-27 Tobias Burnus <tobias@codesourcery.com>
3440
3441 * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Change
3442 dg-message back to dg-note.
3443
3444 2021-09-27 Tobias Burnus <tobias@codesourcery.com>
3445
3446 PR fortran/94070
3447 * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Update
3448 expected dg-note output.
3449
3450 2021-09-22 Tobias Burnus <tobias@codesourcery.com>
3451
3452 PR fortran/55534
3453 * testsuite/libgomp.fortran/fortran.exp (ALWAYS_CFLAGS): Revert
3454 r12-3722 by removing -Wno-missing-include-dirs.
3455 * testsuite/libgomp.oacc-fortran/fortran.exp (ALWAYS_CFLAGS): Likewise.
3456
3457 2021-09-22 Jakub Jelinek <jakub@redhat.com>
3458
3459 * testsuite/libgomp.c-c++-common/allocate-2.c: New test.
3460 * testsuite/libgomp.c-c++-common/allocate-3.c: New test.
3461
3462 2021-09-21 Tobias Burnus <tobias@codesourcery.com>
3463
3464 PR fortran/55534
3465 * testsuite/libgomp.fortran/fortran.exp: Add -Wno-missing-include-dirs
3466 to ALWAYS_CFLAGS.
3467 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
3468
3469 2021-09-18 Jakub Jelinek <jakub@redhat.com>
3470
3471 * testsuite/libgomp.c++/default-1.C: New test.
3472 * testsuite/libgomp.c-c++-common/default-1.c: New test.
3473 * libgomp.texi (OpenMP 5.1): Mark "private and firstprivate argument
3474 to default clause in C and C++" as implemented.
3475
3476 2021-09-17 Julian Brown <julian@codesourcery.com>
3477
3478 * testsuite/libgomp.oacc-c-c++-common/broadcast-many.c: Update.
3479
3480 2021-09-17 Julian Brown <julian@codesourcery.com>
3481
3482 * testsuite/libgomp.oacc-c-c++-common/broadcast-many.c: New test.
3483
3484 2021-09-17 Jakub Jelinek <jakub@redhat.com>
3485
3486 * libgomp.texi (OpenMP 5.1): Spelling fix,
3487 declare variante -> declare variant.
3488
3489 2021-09-17 Jakub Jelinek <jakub@redhat.com>
3490
3491 * testsuite/libgomp.c-c++-common/atomic-19.c: Drop c effective target.
3492 Use /* */ comments instead of //.
3493 * testsuite/libgomp.c-c++-common/atomic-20.c: Likewise.
3494 * testsuite/libgomp.c-c++-common/atomic-21.c: Likewise.
3495 * testsuite/libgomp.c++/atomic-16.C: New test.
3496 * testsuite/libgomp.c++/atomic-17.C: New test.
3497
3498 2021-09-10 Jakub Jelinek <jakub@redhat.com>
3499
3500 * testsuite/libgomp.c-c++-common/atomic-19.c: New test.
3501 * testsuite/libgomp.c-c++-common/atomic-20.c: New test.
3502 * testsuite/libgomp.c-c++-common/atomic-21.c: New test.
3503
3504 2021-09-07 Tobias Burnus <tobias@codesourcery.com>
3505
3506 * libgomp.texi (OpenMP Implementation Status): Extend
3507 OpenMP 5.0 section.
3508 (OpenACC Profiling Interface): Fix typo.
3509
3510 2021-09-07 Tobias Burnus <tobias@codesourcery.com>
3511
3512 * libgomp.texi (Enabling OpenMP): Refer to OMP spec in general
3513 not to 4.5; link to new section.
3514 (OpenMP Implementation Status): New.
3515
3516 2021-09-06 Thomas Schwinge <thomas@codesourcery.com>
3517
3518 * testsuite/libgomp.c/target-43.c: '-latomic' for nvptx offloading.
3519
3520 2021-09-03 Tobias Burnus <tobias@codesourcery.com>
3521
3522 * testsuite/libgomp.c-c++-common/error-1.c: Use \r\n not \n\r in
3523 dg-output.
3524 * testsuite/libgomp.fortran/error-1.f90: Likewise.
3525
3526 2021-08-23 Thomas Schwinge <thomas@codesourcery.com>
3527 Jakub Jelinek <jakub@redhat.com>
3528
3529 * testsuite/libgomp.c/address-space-1.c: New file.
3530
3531 2021-08-23 Thomas Schwinge <thomas@codesourcery.com>
3532
3533 * testsuite/lib/libgomp.exp
3534 (check_effective_target_offload_target_intelmic): Remove 'proc'.
3535 (check_effective_target_offload_device_intel_mic): New 'proc'.
3536 * testsuite/libgomp.c-c++-common/on_device_arch.h
3537 (device_arch_intel_mic, on_device_arch_intel_mic): New.
3538 * testsuite/libgomp.c-c++-common/target-45.c: Use that for
3539 'dg-xfail-run-if'.
3540 * testsuite/libgomp.fortran/target10.f90: Likewise.
3541
3542 2021-08-23 Tobias Burnus <tobias@codesourcery.com>
3543
3544 * testsuite/libgomp.fortran/taskloop-4-a.f90: New test.
3545 * testsuite/libgomp.fortran/taskloop-4.f90: New test.
3546 * testsuite/libgomp.fortran/taskloop-5-a.f90: New test.
3547 * testsuite/libgomp.fortran/taskloop-5.f90: New test.
3548
3549 2021-08-23 Jakub Jelinek <jakub@redhat.com>
3550
3551 * taskloop.c (GOMP_taskloop): Handle GOMP_TASK_FLAG_STRICT.
3552 * testsuite/libgomp.c-c++-common/taskloop-4.c (main): Fix up comment.
3553 * testsuite/libgomp.c-c++-common/taskloop-5.c: New test.
3554
3555 2021-08-22 Thomas Schwinge <thomas@codesourcery.com>
3556
3557 * config/nvptx/error.c (fwrite, exit): Override, too.
3558 * testsuite/libgomp.c-c++-common/error-1.c: Add a minimum amount
3559 of offloading testing.
3560 * testsuite/libgomp.fortran/error-1.f90: Likewise.
3561
3562 2021-08-20 Tobias Burnus <tobias@codesourcery.com>
3563
3564 * testsuite/libgomp.fortran/error-1.f90: New test.
3565
3566 2021-08-20 Jakub Jelinek <jakub@redhat.com>
3567
3568 * libgomp.map (GOMP_5.1): Add GOMP_error and GOMP_warning.
3569 * libgomp_g.h (GOMP_warning, GOMP_error): Declare.
3570 * error.c (GOMP_warning, GOMP_error): New functions.
3571 * testsuite/libgomp.c-c++-common/error-1.c: New test.
3572
3573 2021-08-18 Tobias Burnus <tobias@codesourcery.com>
3574
3575 * omp_lib.f90.in (omp_alloc, omp_free, omp_target_alloc,
3576 omp_target_free. omp_target_is_present, omp_target_memcpy,
3577 omp_target_memcpy_rect, omp_target_associate_ptr,
3578 omp_target_disassociate_ptr): Add interface.
3579 * omp_lib.h.in (omp_alloc, omp_free, omp_target_alloc,
3580 omp_target_free. omp_target_is_present, omp_target_memcpy,
3581 omp_target_memcpy_rect, omp_target_associate_ptr,
3582 omp_target_disassociate_ptr): Add interface.
3583 * testsuite/libgomp.fortran/alloc-1.F90: Remove local
3584 interface block for omp_alloc + omp_free.
3585 * testsuite/libgomp.fortran/alloc-4.f90: Likewise.
3586 * testsuite/libgomp.fortran/refcount-1.f90: New test.
3587 * testsuite/libgomp.fortran/target-12.f90: New test.
3588
3589 2021-08-18 Jakub Jelinek <jakub@redhat.com>
3590
3591 * testsuite/libgomp.c-c++-common/nothing-1.c: New test.
3592
3593 2021-08-17 Tobias Burnus <tobias@codesourcery.com>
3594
3595 * testsuite/libgomp.fortran/scope-1.f90: New test.
3596 * testsuite/libgomp.fortran/task-reduction-16.f90: New test.
3597
3598 2021-08-17 Jakub Jelinek <jakub@redhat.com>
3599
3600 * Makefile.am (libgomp_la_SOURCES): Add scope.c
3601 * Makefile.in: Regenerated.
3602 * libgomp_g.h (GOMP_scope_start): Declare.
3603 * libgomp.map: Add GOMP_scope_start@@GOMP_5.1.
3604 * scope.c: New file.
3605 * testsuite/libgomp.c-c++-common/scope-1.c: New test.
3606 * testsuite/libgomp.c-c++-common/task-reduction-16.c: New test.
3607
3608 2021-08-16 Thomas Schwinge <thomas@codesourcery.com>
3609
3610 * testsuite/libgomp.oacc-c-c++-common/mode-transitions.c: Address
3611 '?:' issues.
3612
3613 2021-08-16 Tobias Burnus <tobias@codesourcery.com>
3614
3615 * testsuite/libgomp.fortran/masked-1.f90: New test.
3616
3617 2021-08-13 Thomas Schwinge <thomas@codesourcery.com>
3618
3619 * testsuite/libgomp.oacc-c-c++-common/static-variable-1.c: Adjust.
3620
3621 2021-08-12 Jakub Jelinek <jakub@redhat.com>
3622
3623 * testsuite/libgomp.c-c++-common/masked-1.c: New test.
3624
3625 2021-08-12 Tobias Burnus <tobias@codesourcery.com>
3626
3627 * env.c (parse_bind_var): Accept 'primary' as alias for
3628 'master'.
3629 (omp_display_env): Add TODO comment to
3630 change 'master' to 'primary' in proc_bind for OpenMP 5.1.
3631 * libgomp.texi: Change 'master thread' to 'primary thread'
3632 in line with OpenMP 5.1.
3633 (omp_get_proc_bind): Add omp_proc_bind_primary and note that
3634 omp_proc_bind_master is an alias of it.
3635 (OMP_PROC_BIND): Mention 'PRIMARY'.
3636 * omp.h.in (__GOMP_DEPRECATED_5_1): Define.
3637 (omp_proc_bind_primary): Add.
3638 (omp_proc_bind_master): Deprecate for OpenMP 5.1.
3639 * omp_lib.f90.in (omp_proc_bind_primary): Add.
3640 (omp_proc_bind_master): Deprecate for OpenMP 5.1.
3641 * omp_lib.h.in (omp_proc_bind_primary): Add.
3642 * testsuite/libgomp.c/affinity-1.c: Check that
3643 'primary' works and is identical to 'master'.
3644
3645 2021-08-09 Julian Brown <julian@codesourcery.com>
3646 Kwok Cheung Yeung <kcy@codesourcery.com>
3647 Thomas Schwinge <thomas@codesourcery.com>
3648
3649 * plugin/plugin-gcn.c (gcn_exec): Change default number of workers to
3650 16.
3651 * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c
3652 [acc_device_radeon]: Update.
3653 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c
3654 [ACC_DEVICE_TYPE_radeon]: Likewise.
3655 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c
3656 [acc_device_radeon]: Likewise.
3657 * testsuite/libgomp.oacc-c-c++-common/routine-wv-2.c
3658 [ACC_DEVICE_TYPE_radeon]: Likewise.
3659 * testsuite/libgomp.oacc-fortran/optional-reduction.f90: XFAIL for
3660 'openacc_radeon_accel_selected' and '-O0'.
3661 * testsuite/libgomp.oacc-fortran/reduction-7.f90: Likewise.
3662
3663 2021-08-05 Chung-Lin Tang <cltang@codesourcery.com>
3664
3665 * icv-device.c (omp_get_device_num): New API function, host side.
3666 * fortran.c (omp_get_device_num_): New interface function.
3667 * libgomp-plugin.h (GOMP_DEVICE_NUM_VAR): Define macro symbol.
3668 * libgomp.map (OMP_5.0.2): New version space with omp_get_device_num,
3669 omp_get_device_num_.
3670 * libgomp.texi (omp_get_device_num): Add documentation for new API
3671 function.
3672 * omp.h.in (omp_get_device_num): Add declaration.
3673 * omp_lib.f90.in (omp_get_device_num): Likewise.
3674 * omp_lib.h.in (omp_get_device_num): Likewise.
3675 * target.c (gomp_load_image_to_device): If additional entry for device
3676 number exists at end of returned entries from 'load_image_func' hook,
3677 copy the assigned device number over to the device variable.
3678 * config/gcn/icv-device.c (GOMP_DEVICE_NUM_VAR): Define static global.
3679 (omp_get_device_num): New API function, device side.
3680 * plugin/plugin-gcn.c ("symcat.h"): Add include.
3681 (GOMP_OFFLOAD_load_image): Add addresses of device GOMP_DEVICE_NUM_VAR
3682 at end of returned 'target_table' entries.
3683 * config/nvptx/icv-device.c (GOMP_DEVICE_NUM_VAR): Define static global.
3684 (omp_get_device_num): New API function, device side.
3685 * plugin/plugin-nvptx.c ("symcat.h"): Add include.
3686 (GOMP_OFFLOAD_load_image): Add addresses of device GOMP_DEVICE_NUM_VAR
3687 at end of returned 'target_table' entries.
3688 * testsuite/lib/libgomp.exp
3689 (check_effective_target_offload_target_intelmic): New function for
3690 testing for intelmic offloading.
3691 * testsuite/libgomp.c-c++-common/target-45.c: New test.
3692 * testsuite/libgomp.fortran/target10.f90: New test.
3693
3694 2021-07-30 Thomas Schwinge <thomas@codesourcery.com>
3695 Ulrich Drepper <drepper@redhat.com>
3696
3697 * fortran.c (omp_display_env_, omp_display_env_8_): Only
3698 '#ifndef LIBGOMP_OFFLOADED_ONLY'.
3699
3700 2021-07-29 Thomas Schwinge <thomas@codesourcery.com>
3701 Julian Brown <julian@codesourcery.com>
3702 Kwok Cheung Yeung <kcy@codesourcery.com>
3703
3704 * testsuite/libgomp.oacc-c-c++-common/pr85486-2.c:
3705 's%oaccdevlow%oaccloops%g'.
3706 * testsuite/libgomp.oacc-c-c++-common/pr85486-3.c: Likewise.
3707 * testsuite/libgomp.oacc-c-c++-common/pr85486.c: Likewise.
3708 * testsuite/libgomp.oacc-c-c++-common/routine-nohost-1.c:
3709 Likewise.
3710 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-1.c:
3711 Likewise.
3712 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-2.c:
3713 Likewise.
3714 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-3.c:
3715 Likewise.
3716 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-4.c:
3717 Likewise.
3718 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-5.c:
3719 Likewise.
3720 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-6.c:
3721 Likewise.
3722 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-7.c:
3723 Likewise.
3724 * testsuite/libgomp.oacc-fortran/routine-nohost-1.f90: Likewise.
3725
3726 2021-07-29 Aldy Hernandez <aldyh@redhat.com>
3727
3728 * testsuite/libgomp.graphite/force-parallel-4.c: Adjust for
3729 threader.
3730 * testsuite/libgomp.graphite/force-parallel-8.c: Same.
3731
3732 2021-07-27 Ulrich Drepper <drepper@gmail.com>
3733
3734 * env.c (wait_policy, stacksize): New static variables,
3735 move out of handle_omp_display_env.
3736 (omp_display_env): New function. The meat of the old
3737 handle_omp_display_env function.
3738 (handle_omp_display_env): Change to not take parameters
3739 and instead use the global variables. Only perform
3740 parsing, defer to omp_display_env for the implementation.
3741 (initialize_env): Remove local variables wait_policy and
3742 stacksize. Don't pass parameters to handle_omp_display_env.
3743 * fortran.c: Add ialias_redirect for omp_display_env.
3744 (omp_display_env_, omp_display_env_8_): New functions.
3745 * libgomp.map (OMP_5.1): New version. Add omp_display_env,
3746 omp_display_env_, and omp_display_env_8_.
3747 * omp.h.in: Declare omp_display_env.
3748 * omp_lib.f90.in: Likewise.
3749 * omp_lib.h.in: Likewise.
3750
3751 2021-07-27 Thomas Schwinge <thomas@codesourcery.com>
3752 Julian Brown <julian@codesourcery.com>
3753
3754 * target.c (gomp_coalesce_buf_add): Update comment.
3755 (gomp_copy_host2dev, gomp_map_vars_internal): Don't expect to see
3756 'aq && cbuf'.
3757 (gomp_map_vars_internal): Only 'if (!aq)', do
3758 'gomp_coalesce_buf_add'.
3759 * testsuite/libgomp.oacc-c-c++-common/async-data-1-2.c: Remove
3760 XFAIL.
3761
3762 2021-07-27 Julian Brown <julian@codesourcery.com>
3763 Thomas Schwinge <thomas@codesourcery.com>
3764
3765 * libgomp.h (gomp_copy_host2dev): Update prototype.
3766 * oacc-mem.c (memcpy_tofrom_device, update_dev_host): Add new
3767 argument to gomp_copy_host2dev (false).
3768 * plugin/plugin-gcn.c (struct copy_data): Remove free_src field.
3769 (copy_data): Don't free src.
3770 (queue_push_copy): Remove free_src handling.
3771 (GOMP_OFFLOAD_dev2dev): Update call to queue_push_copy.
3772 (GOMP_OFFLOAD_openacc_async_host2dev): Remove source-data
3773 snapshotting.
3774 (GOMP_OFFLOAD_openacc_async_dev2host): Update call to
3775 queue_push_copy.
3776 * target.c (goacc_device_copy_async): Add SRCADDR_ORIG parameter.
3777 (gomp_copy_host2dev): Add EPHEMERAL parameter. Snapshot source
3778 data when true, and set up deferred freeing of temporary buffer.
3779 (gomp_copy_dev2host): Update call to goacc_device_copy_async.
3780 (gomp_map_vars_existing, gomp_map_pointer, gomp_attach_pointer)
3781 (gomp_detach_pointer, gomp_map_vars_internal, gomp_update): Update
3782 calls to gomp_copy_host2dev with appropriate ephemeral argument.
3783 * testsuite/libgomp.oacc-c-c++-common/async-data-1-1.c: Remove
3784 XFAIL.
3785
3786 2021-07-27 Thomas Schwinge <thomas@codesourcery.com>
3787 Tom de Vries <tom@codesourcery.com>
3788
3789 * testsuite/libgomp.oacc-c-c++-common/async-data-1-1.c: New file.
3790 * testsuite/libgomp.oacc-c-c++-common/async-data-1-2.c: Likewise.
3791
3792 2021-07-27 Thomas Schwinge <thomas@codesourcery.com>
3793
3794 * testsuite/libgomp.oacc-c-c++-common/acc_prof-init-1.c: Clarify
3795 sequencing of 'async' data copying vs. profiling events.
3796 * testsuite/libgomp.oacc-c-c++-common/acc_prof-parallel-1.c:
3797 Likewise.
3798
3799 2021-07-27 Thomas Schwinge <thomas@codesourcery.com>
3800 Julian Brown <julian@codesourcery.com>
3801
3802 * testsuite/libgomp.oacc-c-c++-common/lib-94.c: Fix OpenACC
3803 'async'/'wait' issue.
3804 * testsuite/libgomp.oacc-c-c++-common/lib-95.c: Likewise.
3805 * testsuite/libgomp.oacc-fortran/lib-16-2.f90: Likewise.
3806 * testsuite/libgomp.oacc-fortran/lib-16.f90: Likewise.
3807
3808 2021-07-21 Thomas Schwinge <thomas@codesourcery.com>
3809 Joseph Myers <joseph@codesourcery.com>
3810 Cesar Philippidis <cesar@codesourcery.com>
3811
3812 * testsuite/libgomp.oacc-c-c++-common/routine-nohost-1.c: New
3813 file.
3814 * testsuite/libgomp.oacc-c-c++-common/routine-nohost-2.c:
3815 Likewise.
3816 * testsuite/libgomp.oacc-c-c++-common/routine-nohost-2_2.c:
3817 Likewise.
3818 * testsuite/libgomp.oacc-fortran/routine-nohost-1.f90: Likewise.
3819
3820 2021-07-20 Thomas Schwinge <thomas@codesourcery.com>
3821
3822 PR target/101484
3823 * configure.tgt [amdgcn*-*-*] (XCFLAGS): Add
3824 '-Wno-error=array-bounds'.
3825 * config/gcn/team.c: Remove '-Werror=array-bounds' work-around.
3826 * libgomp.h [__AMDGCN__]: Likewise.
3827
3828 2021-07-19 Thomas Schwinge <thomas@codesourcery.com>
3829
3830 PR target/101484
3831 * config/gcn/team.c: Apply '-Werror=array-bounds' work-around.
3832 * libgomp.h [__AMDGCN__]: Likewise.
3833
3834 2021-07-13 Jakub Jelinek <jakub@redhat.com>
3835 Florian Weimer <fweimer@redhat.com>
3836
3837 * config/linux/sem.h: Don't include limits.h.
3838 (SEM_WAIT): Define to -__INT_MAX__ - 1 instead of INT_MIN.
3839 * config/linux/affinity.c: Include limits.h.
3840
3841 2021-07-01 Jakub Jelinek <jakub@redhat.com>
3842
3843 PR middle-end/94366
3844 * testsuite/libgomp.c-c++-common/pr94366.c: New test.
3845
3846 2021-06-29 Tobias Burnus <tobias@codesourcery.com>
3847
3848 PR other/67300
3849 * testsuite/libgomp.c-c++-common/reduction-16.c: Replace
3850 -foffload=nvptx-none= by -foffload-options=nvptx-none= to
3851 avoid disabling other offload targets.
3852 * testsuite/libgomp.c-c++-common/reduction-5.c: Likewise.
3853 * testsuite/libgomp.c-c++-common/reduction-6.c: Likewise.
3854 * testsuite/libgomp.c/target-44.c: Likewise.
3855
3856 2021-06-29 Tobias Burnus <tobias@codesourcery.com>
3857
3858 * testsuite/libgomp.fortran/defaultmap-8.f90 (bar): Determine whether
3859 target has shared memory and disable some scalar pointer/allocatable
3860 checks if not as firstprivate does not work.
3861
3862 2021-06-25 Chung-Lin Tang <cltang@codesourcery.com>
3863
3864 PR testsuite/101114
3865 * testsuite/libgomp.c-c++-common/struct-elem-5.c:
3866 Add "target offload_device_nonshared_as" condition for enabling test.
3867
3868 2021-06-24 Jakub Jelinek <jakub@redhat.com>
3869
3870 * testsuite/libgomp.c-c++-common/target-in-reduction-1.c: New test.
3871 * testsuite/libgomp.c-c++-common/target-in-reduction-2.c: New test.
3872 * testsuite/libgomp.c++/target-in-reduction-1.C: New test.
3873 * testsuite/libgomp.c++/target-in-reduction-2.C: New test.
3874
3875 2021-06-23 Jakub Jelinek <jakub@redhat.com>
3876
3877 PR middle-end/101167
3878 * testsuite/libgomp.c-c++-common/task-reduction-15.c: New test.
3879
3880 2021-06-17 Chung-Lin Tang <cltang@codesourcery.com>
3881
3882 * hashtab.h (htab_clear): New function with initialization code
3883 factored out from...
3884 (htab_create): ...here, adjust to use htab_clear function.
3885 * libgomp.h (REFCOUNT_SPECIAL): New symbol to denote range of
3886 special refcount values, add comments.
3887 (REFCOUNT_INFINITY): Adjust definition to use REFCOUNT_SPECIAL.
3888 (REFCOUNT_LINK): Likewise.
3889 (REFCOUNT_STRUCTELEM): New special refcount range for structure
3890 element siblings.
3891 (REFCOUNT_STRUCTELEM_P): Macro for testing for structure element
3892 sibling maps.
3893 (REFCOUNT_STRUCTELEM_FLAG_FIRST): Flag to indicate first sibling.
3894 (REFCOUNT_STRUCTELEM_FLAG_LAST): Flag to indicate last sibling.
3895 (REFCOUNT_STRUCTELEM_FIRST_P): Macro to test _FIRST flag.
3896 (REFCOUNT_STRUCTELEM_LAST_P): Macro to test _LAST flag.
3897 (struct splay_tree_key_s): Add structelem_refcount and
3898 structelem_refcount_ptr fields into a union with dynamic_refcount.
3899 Add comments.
3900 (gomp_map_vars): Delete declaration.
3901 (gomp_map_vars_async): Likewise.
3902 (gomp_unmap_vars): Likewise.
3903 (gomp_unmap_vars_async): Likewise.
3904 (goacc_map_vars): New declaration.
3905 (goacc_unmap_vars): Likewise.
3906 * oacc-mem.c (acc_map_data): Adjust to use goacc_map_vars.
3907 (goacc_enter_datum): Likewise.
3908 (goacc_enter_data_internal): Likewise.
3909 * oacc-parallel.c (GOACC_parallel_keyed): Adjust to use goacc_map_vars
3910 and goacc_unmap_vars.
3911 (GOACC_data_start): Adjust to use goacc_map_vars.
3912 (GOACC_data_end): Adjust to use goacc_unmap_vars.
3913 * target.c (hash_entry_type): New typedef.
3914 (htab_alloc): New function hook for hashtab.h.
3915 (htab_free): Likewise.
3916 (htab_hash): Likewise.
3917 (htab_eq): Likewise.
3918 (hashtab.h): Add file include.
3919 (gomp_increment_refcount): New function.
3920 (gomp_decrement_refcount): Likewise.
3921 (gomp_map_vars_existing): Add refcount_set parameter, adjust to use
3922 gomp_increment_refcount.
3923 (gomp_map_fields_existing): Add refcount_set parameter, adjust calls
3924 to gomp_map_vars_existing.
3925 (gomp_map_vars_internal): Add refcount_set parameter, add local openmp_p
3926 variable to guard OpenMP specific paths, adjust calls to
3927 gomp_map_vars_existing, add structure element sibling splay_tree_key
3928 sequence creation code, adjust Fortran map case to avoid increment
3929 under OpenMP.
3930 (gomp_map_vars): Adjust to static, add refcount_set parameter, manage
3931 local refcount_set if caller passed in NULL, adjust call to
3932 gomp_map_vars_internal.
3933 (gomp_map_vars_async): Adjust and rename into...
3934 (goacc_map_vars): ...this new function, adjust call to
3935 gomp_map_vars_internal.
3936 (gomp_remove_splay_tree_key): New function with code factored out from
3937 gomp_remove_var_internal.
3938 (gomp_remove_var_internal): Add code to handle removing multiple
3939 splay_tree_key sequence for structure elements, adjust code to use
3940 gomp_remove_splay_tree_key for splay-tree key removal.
3941 (gomp_unmap_vars_internal): Add refcount_set parameter, adjust to use
3942 gomp_decrement_refcount.
3943 (gomp_unmap_vars): Adjust to static, add refcount_set parameter, manage
3944 local refcount_set if caller passed in NULL, adjust call to
3945 gomp_unmap_vars_internal.
3946 (gomp_unmap_vars_async): Adjust and rename into...
3947 (goacc_unmap_vars): ...this new function, adjust call to
3948 gomp_unmap_vars_internal.
3949 (GOMP_target): Manage refcount_set and adjust calls to gomp_map_vars and
3950 gomp_unmap_vars.
3951 (GOMP_target_ext): Likewise.
3952 (gomp_target_data_fallback): Adjust call to gomp_map_vars.
3953 (GOMP_target_data): Likewise.
3954 (GOMP_target_data_ext): Likewise.
3955 (GOMP_target_end_data): Adjust call to gomp_unmap_vars.
3956 (gomp_exit_data): Add refcount_set parameter, adjust to use
3957 gomp_decrement_refcount, adjust to queue splay-tree keys for removal
3958 after main loop.
3959 (GOMP_target_enter_exit_data): Manage refcount_set and adjust calls to
3960 gomp_map_vars and gomp_exit_data.
3961 (gomp_target_task_fn): Likewise.
3962 * testsuite/libgomp.c-c++-common/refcount-1.c: New testcase.
3963 * testsuite/libgomp.c-c++-common/struct-elem-1.c: New testcase.
3964 * testsuite/libgomp.c-c++-common/struct-elem-2.c: New testcase.
3965 * testsuite/libgomp.c-c++-common/struct-elem-3.c: New testcase.
3966 * testsuite/libgomp.c-c++-common/struct-elem-4.c: New testcase.
3967 * testsuite/libgomp.c-c++-common/struct-elem-5.c: New testcase.
3968
3969 2021-06-15 Tobias Burnus <tobias@codesourcery.com>
3970
3971 PR fortran/92568
3972 * testsuite/libgomp.fortran/defaultmap-8.f90: New test.
3973
3974 2021-06-10 Andrew Stubbs <ams@codesourcery.com>
3975 Thomas Schwinge <thomas@codesourcery.com>
3976
3977 * libgomp.map (GOACC_2.0.2): New symbol version.
3978 * libgomp_g.h (GOACC_enter_data, GOACC_exit_data) New prototypes.
3979 * oacc-mem.c (GOACC_enter_data, GOACC_exit_data) New functions.
3980
3981 2021-06-10 Thomas Schwinge <thomas@codesourcery.com>
3982 Andrew Stubbs <ams@codesourcery.com>
3983
3984 * oacc-mem.c (goacc_enter_exit_data_internal): New function,
3985 extracted from...
3986 (GOACC_enter_exit_data): ... here.
3987 (GOACC_declare): Use it.
3988
3989 2021-06-10 Thomas Schwinge <thomas@codesourcery.com>
3990
3991 * oacc-parallel.c (GOACC_declare): Move...
3992 * oacc-mem.c: ... here.
3993 * libgomp_g.h: Adjust.
3994
3995 2021-06-10 Andrew Stubbs <ams@codesourcery.com>
3996 Thomas Schwinge <thomas@codesourcery.com>
3997
3998 * oacc-parallel.c (GOACC_declare): Clean up 'GOMP_MAP_POINTER'
3999 handling.
4000
4001 2021-06-10 Jakub Jelinek <jakub@redhat.com>
4002
4003 PR tree-optimization/100981
4004 * testsuite/libgomp.fortran/pr100981-2.f90 (cdcdot): Initialize
4005 dsdotr and dsdoti to 0.
4006
4007 2021-06-09 H.J. Lu <hjl.tools@gmail.com>
4008
4009 * testsuite/lib/libgomp.exp (libgomp_init): Don't add -march=i486
4010 if atomic compare-and-swap is supported on 'int'.
4011
4012 2021-06-09 Richard Biener <rguenther@suse.de>
4013
4014 PR tree-optimization/100981
4015 * testsuite/libgomp.fortran/pr100981-2.f90: New testcase.
4016
4017 2021-06-08 Thomas Schwinge <thomas@codesourcery.com>
4018
4019 * plugin/plugin-gcn.c (gcn_exec): Force 'num_workers (1)'
4020 unconditionally.
4021 * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c:
4022 Update.
4023 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Likewise.
4024 * testsuite/libgomp.oacc-c-c++-common/routine-wv-2.c: Likewise.
4025
4026 2021-06-08 Thomas Schwinge <thomas@codesourcery.com>
4027
4028 * testsuite/libgomp.oacc-c-c++-common/lib-11.c: Enable for all but
4029 '-DACC_MEM_SHARED=0'.
4030 * testsuite/libgomp.oacc-c-c++-common/lib-13.c: Likewise.
4031 * testsuite/libgomp.oacc-c-c++-common/lib-14.c: Likewise.
4032 * testsuite/libgomp.oacc-c-c++-common/lib-15.c: Likewise.
4033 * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
4034 * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
4035 * testsuite/libgomp.oacc-c-c++-common/lib-24.c: Likewise.
4036 * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
4037 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
4038 * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
4039 * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
4040 * testsuite/libgomp.oacc-c-c++-common/lib-88.c: Likewise.
4041 * testsuite/libgomp.oacc-c-c++-common/lib-89.c: Likewise.
4042 * testsuite/libgomp.oacc-c-c++-common/lib-92.c: Likewise.
4043 * testsuite/libgomp.oacc-fortran/lib-14.f90: Likewise.
4044 * testsuite/libgomp.oacc-c-c++-common/lib-5.c: Add
4045 'acc_device_radeon' testing.
4046 * testsuite/libgomp.oacc-c-c++-common/lib-6.c: Likewise.
4047 * testsuite/libgomp.oacc-fortran/lib-5.f90: Likewise.
4048 * testsuite/libgomp.oacc-fortran/lib-7.f90: Likewise.
4049 * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Enable for all.
4050 * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
4051 * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
4052 * testsuite/libgomp.oacc-c-c++-common/lib-86.c: Likewise.
4053 * testsuite/libgomp.oacc-c-c++-common/lib-87.c: Likewise.
4054 * testsuite/libgomp.oacc-fortran/lib-10.f90: Likewise.
4055 * testsuite/libgomp.oacc-fortran/lib-8.f90: Likewise.
4056 * testsuite/libgomp.oacc-c-c++-common/lib-57.c: Improve checking
4057 for non-'openacc_nvidia_accel_selected'.
4058 * testsuite/libgomp.oacc-c-c++-common/lib-58.c: Likewise.
4059 * testsuite/libgomp.oacc-c-c++-common/lib-62.c: Clarify that "Not
4060 all implement this checking".
4061 * testsuite/libgomp.oacc-c-c++-common/lib-63.c: Likewise.
4062 * testsuite/libgomp.oacc-c-c++-common/lib-64.c: Likewise.
4063 * testsuite/libgomp.oacc-c-c++-common/lib-65.c: Likewise.
4064 * testsuite/libgomp.oacc-c-c++-common/lib-67.c: Likewise.
4065 * testsuite/libgomp.oacc-c-c++-common/lib-68.c: Likewise.
4066
4067 2021-06-08 Thomas Schwinge <thomas@codesourcery.com>
4068
4069 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Simplify.
4070 * testsuite/libgomp.oacc-fortran/parallel-dims-aux.c: Update.
4071
4072 2021-06-08 Thomas Schwinge <thomas@codesourcery.com>
4073
4074 * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c: Fix
4075 for 'acc_device_radeon'.
4076
4077 2021-06-08 Thomas Schwinge <thomas@codesourcery.com>
4078
4079 * testsuite/libgomp.oacc-c-c++-common/firstprivate-1.c: Enhance
4080 for non-'acc_device_nvidia'.
4081
4082 2021-06-08 Thomas Schwinge <thomas@codesourcery.com>
4083
4084 * testsuite/libgomp.oacc-c-c++-common/acc_on_device-1.c: Add
4085 'acc_device_radeon' testing.
4086 * testsuite/libgomp.oacc-fortran/acc_on_device-1-1.f90: Likewise.
4087 * testsuite/libgomp.oacc-fortran/acc_on_device-1-2.f: Likewise.
4088 * testsuite/libgomp.oacc-fortran/acc_on_device-1-3.f: Likewise.
4089
4090 2021-06-08 Thomas Schwinge <thomas@codesourcery.com>
4091
4092 * testsuite/libgomp.oacc-c-c++-common/async_queue-1.c: Don't
4093 require 'openacc_nvidia_accel_selected'. Fix up for
4094 'ACC_DEVICE_TYPE_radeon'.
4095
4096 2021-06-08 Thomas Schwinge <thomas@codesourcery.com>
4097
4098 * testsuite/libgomp.oacc-c++/declare-1.C: Don't require
4099 'openacc_nvidia_accel_selected'.
4100 * testsuite/libgomp.oacc-c-c++-common/declare-3.c: Likewise.
4101
4102 2021-06-08 Thomas Schwinge <thomas@codesourcery.com>
4103
4104 * testsuite/lib/libgomp.exp
4105 (check_effective_target_openacc_radeon_accel_selected):
4106 Streamline.
4107
4108 2021-06-08 Thomas Schwinge <thomas@codesourcery.com>
4109
4110 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Revert
4111 PR80547 workaround.
4112
4113 2021-06-08 Thomas Schwinge <thomas@codesourcery.com>
4114
4115 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c
4116 <acc_device_nvidia>: Update comment.
4117
4118 2021-05-28 Tobias Burnus <tobias@codesourcery.com>
4119
4120 * testsuite/libgomp.fortran/depend-iterator-2.f90: New test.
4121
4122 2021-05-27 Jakub Jelinek <jakub@redhat.com>
4123
4124 * testsuite/lib/libgomp.exp (check_effective_target_openacc_cuda,
4125 check_effective_target_openacc_cublas,
4126 check_effective_target_openacc_cudart): New.
4127 * testsuite/libgomp.oacc-fortran/host_data-4.f90: Require effective
4128 target openacc_cublas.
4129 * testsuite/libgomp.oacc-fortran/host_data-2.f90: Likewise.
4130 * testsuite/libgomp.oacc-fortran/host_data-3.f: Likewise.
4131 * testsuite/libgomp.oacc-c-c++-common/lib-91.c: Require effective
4132 target openacc_cuda.
4133 * testsuite/libgomp.oacc-c-c++-common/lib-70.c: Likewise.
4134 * testsuite/libgomp.oacc-c-c++-common/lib-90.c: Likewise.
4135 * testsuite/libgomp.oacc-c-c++-common/lib-75.c: Likewise.
4136 * testsuite/libgomp.oacc-c-c++-common/lib-69.c: Likewise.
4137 * testsuite/libgomp.oacc-c-c++-common/lib-74.c: Likewise.
4138 * testsuite/libgomp.oacc-c-c++-common/lib-81.c: Likewise.
4139 * testsuite/libgomp.oacc-c-c++-common/lib-72.c: Likewise.
4140 * testsuite/libgomp.oacc-c-c++-common/lib-85.c: Likewise.
4141 * testsuite/libgomp.oacc-c-c++-common/pr87835.c: Likewise.
4142 * testsuite/libgomp.oacc-c-c++-common/lib-82.c: Likewise.
4143 * testsuite/libgomp.oacc-c-c++-common/lib-73.c: Likewise.
4144 * testsuite/libgomp.oacc-c-c++-common/lib-83.c: Likewise.
4145 * testsuite/libgomp.oacc-c-c++-common/lib-78.c: Likewise.
4146 * testsuite/libgomp.oacc-c-c++-common/lib-76.c: Likewise.
4147 * testsuite/libgomp.oacc-c-c++-common/lib-84.c: Likewise.
4148 * testsuite/libgomp.oacc-c-c++-common/lib-79.c: Likewise.
4149 * testsuite/libgomp.oacc-c-c++-common/host_data-1.c: Require effective
4150 targets openacc_cublas and openacc_cudart.
4151 * testsuite/libgomp.oacc-c-c++-common/context-1.c: Likewise.
4152 * testsuite/libgomp.oacc-c-c++-common/context-2.c: Likewise.
4153 * testsuite/libgomp.oacc-c-c++-common/context-3.c: Likewise.
4154 * testsuite/libgomp.oacc-c-c++-common/context-4.c: Likewise.
4155 * testsuite/libgomp.oacc-c-c++-common/acc_get_property-nvptx.c:
4156 Require effective target openacc_cudart.
4157 * testsuite/libgomp.oacc-c-c++-common/asyncwait-1.c: Add -DUSE_CUDA_H
4158 for effective target openacc_cuda and add && defined USE_CUDA_H to
4159 preprocessor conditionals. Guard -lcuda also on openacc_cuda
4160 effective target.
4161
4162 2021-05-26 Jakub Jelinek <jakub@redhat.com>
4163
4164 PR libgomp/100573
4165 * config/nvptx/target.c (GOMP_target_ext, GOMP_target_data_ext,
4166 GOMP_target_end_data, GOMP_target_update_ext,
4167 GOMP_target_enter_exit_data): New dummy entrypoints.
4168 * config/gcn/target.c (GOMP_target_ext, GOMP_target_data_ext,
4169 GOMP_target_end_data, GOMP_target_update_ext,
4170 GOMP_target_enter_exit_data): Likewise.
4171 * testsuite/libgomp.c-c++-common/for-3.c (DO_PRAGMA, OMPTEAMS,
4172 OMPFROM, OMPTO): Define.
4173 (main): Remove #pragma omp target teams around all the tests.
4174 * testsuite/libgomp.c-c++-common/target-41.c: New test.
4175 * testsuite/libgomp.c-c++-common/target-42.c: New test.
4176
4177 2021-05-25 Jakub Jelinek <jakub@redhat.com>
4178
4179 PR middle-end/99928
4180 * testsuite/libgomp.c-c++-common/reduction-17.c: New test.
4181
4182 2021-05-24 Tobias Burnus <tobias@codesourcery.com>
4183
4184 PR fortran/86470
4185 * testsuite/libgomp.fortran/class-firstprivate-1.f90: New test.
4186 * testsuite/libgomp.fortran/class-firstprivate-2.f90: New test.
4187 * testsuite/libgomp.fortran/class-firstprivate-3.f90: New test.
4188
4189 2021-05-22 Thomas Schwinge <thomas@codesourcery.com>
4190
4191 PR testsuite/90115
4192 * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Prune
4193 uninteresting/varying diagnostics.
4194
4195 2021-05-21 Thomas Schwinge <thomas@codesourcery.com>
4196
4197 PR middle-end/90115
4198 * testsuite/libgomp.oacc-c-c++-common/static-variable-1.c: Update.
4199 * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Likewise.
4200
4201 2021-05-21 Thomas Schwinge <thomas@codesourcery.com>
4202
4203 PR middle-end/90115
4204 * testsuite/libgomp.oacc-fortran/private-atomic-1-vector.f90: New
4205 file.
4206 * testsuite/libgomp.oacc-c-c++-common/firstprivate-1.c: Update.
4207 * testsuite/libgomp.oacc-c-c++-common/host_data-7.c: Likewise.
4208 * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c:
4209 Likewise.
4210 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-1.c:
4211 Likewise.
4212 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-2.c:
4213 Likewise.
4214 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-3.c:
4215 Likewise.
4216 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-4.c:
4217 Likewise.
4218 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-5.c:
4219 Likewise.
4220 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-1.c:
4221 Likewise.
4222 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-2.c:
4223 Likewise.
4224 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-3.c:
4225 Likewise.
4226 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-4.c:
4227 Likewise.
4228 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-5.c:
4229 Likewise.
4230 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-6.c:
4231 Likewise.
4232 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-vector-1.c:
4233 Likewise.
4234 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-vector-2.c:
4235 Likewise.
4236 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-1.c:
4237 Likewise.
4238 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-2.c:
4239 Likewise.
4240 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-3.c:
4241 Likewise.
4242 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-4.c:
4243 Likewise.
4244 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-5.c:
4245 Likewise.
4246 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-6.c:
4247 Likewise.
4248 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-7.c:
4249 Likewise.
4250 * testsuite/libgomp.oacc-c-c++-common/loop-g-1.c: Likewise.
4251 * testsuite/libgomp.oacc-c-c++-common/loop-g-2.c: Likewise.
4252 * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c: Likewise.
4253 * testsuite/libgomp.oacc-c-c++-common/loop-gwv-2.c: Likewise.
4254 * testsuite/libgomp.oacc-c-c++-common/loop-red-g-1.c: Likewise.
4255 * testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c: Likewise.
4256 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c: Likewise.
4257 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c: Likewise.
4258 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c: Likewise.
4259 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c: Likewise.
4260 * testsuite/libgomp.oacc-c-c++-common/loop-red-wv-1.c: Likewise.
4261 * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c: Likewise.
4262 * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c: Likewise.
4263 * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c: Likewise.
4264 * testsuite/libgomp.oacc-c-c++-common/parallel-reduction.c:
4265 Likewise.
4266 * testsuite/libgomp.oacc-c-c++-common/private-atomic-1-gang.c:
4267 Likewise.
4268 * testsuite/libgomp.oacc-c-c++-common/private-atomic-1.c:
4269 Likewise.
4270 * testsuite/libgomp.oacc-c-c++-common/private-variables.c:
4271 Likewise.
4272 * testsuite/libgomp.oacc-c-c++-common/routine-4.c: Likewise.
4273 * testsuite/libgomp.oacc-c-c++-common/static-variable-1.c:
4274 Likewise.
4275 * testsuite/libgomp.oacc-fortran/acc_on_device-1-1.f90: Likewise.
4276 * testsuite/libgomp.oacc-fortran/acc_on_device-1-2.f: Likewise.
4277 * testsuite/libgomp.oacc-fortran/acc_on_device-1-3.f: Likewise.
4278 * testsuite/libgomp.oacc-fortran/declare-1.f90: Likewise.
4279 * testsuite/libgomp.oacc-fortran/host_data-5.F90: Likewise.
4280 * testsuite/libgomp.oacc-fortran/if-1.f90: Likewise.
4281 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-1.f90:
4282 Likewise.
4283 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-2.f90:
4284 Likewise.
4285 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-3.f90:
4286 Likewise.
4287 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-6.f90:
4288 Likewise.
4289 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-vector-1.f90:
4290 Likewise.
4291 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-vector-2.f90:
4292 Likewise.
4293 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-1.f90:
4294 Likewise.
4295 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-2.f90:
4296 Likewise.
4297 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-3.f90:
4298 Likewise.
4299 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-4.f90:
4300 Likewise.
4301 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-5.f90:
4302 Likewise.
4303 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-6.f90:
4304 Likewise.
4305 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-7.f90:
4306 Likewise.
4307 * testsuite/libgomp.oacc-fortran/optional-private.f90: Likewise.
4308 * testsuite/libgomp.oacc-fortran/parallel-dims.f90: Likewise.
4309 * testsuite/libgomp.oacc-fortran/private-atomic-1-gang.f90:
4310 Likewise.
4311 * testsuite/libgomp.oacc-fortran/private-atomic-1-worker.f90:
4312 Likewise.
4313 * testsuite/libgomp.oacc-fortran/private-variables.f90: Likewise.
4314 * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Likewise.
4315 * testsuite/libgomp.oacc-fortran/routine-7.f90: Likewise.
4316
4317 2021-05-21 Julian Brown <julian@codesourcery.com>
4318 Chung-Lin Tang <cltang@codesourcery.com>
4319 Thomas Schwinge <thomas@codesourcery.com>
4320
4321 PR middle-end/90115
4322 * testsuite/libgomp.oacc-c-c++-common/private-atomic-1-gang.c: New
4323 test.
4324 * testsuite/libgomp.oacc-fortran/private-atomic-1-gang.f90:
4325 Likewise.
4326 * testsuite/libgomp.oacc-fortran/private-atomic-1-worker.f90:
4327 Likewise.
4328
4329 2021-05-21 Thomas Schwinge <thomas@codesourcery.com>
4330
4331 * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Don't skip
4332 for nvptx offloading.
4333
4334 2021-05-21 Tobias Burnus <tobias@codesourcery.com>
4335
4336 * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: New.
4337
4338 2021-05-19 Thomas Schwinge <thomas@codesourcery.com>
4339
4340 PR target/83812
4341 * testsuite/libgomp.oacc-c-c++-common/private-atomic-1.c: New.
4342
4343 2021-05-19 Julian Brown <julian@codesourcery.com>
4344
4345 * testsuite/libgomp.oacc-c-c++-common/loop-gwv-2.c: New.
4346
4347 2021-05-18 Thomas Schwinge <thomas@codesourcery.com>
4348
4349 * testsuite/lib/libgomp.exp
4350 (check_effective_target_offload_target_nvptx): Don't shadow global
4351 'offload_targets' variable.
4352
4353 2021-05-18 Thomas Schwinge <thomas@codesourcery.com>
4354
4355 * testsuite/libgomp.c-c++-common/reduction-5.c: Restrict
4356 '-latomic' to nvptx offloading compilation.
4357 * testsuite/libgomp.c-c++-common/reduction-6.c: Likewise.
4358
4359 2021-05-18 Thomas Schwinge <thomas@codesourcery.com>
4360
4361 * testsuite/libgomp.c/target-44.c: Restrict '-latomic' to nvptx
4362 offloading compilation.
4363
4364 2021-05-17 Kwok Cheung Yeung <kcy@codesourcery.com>
4365
4366 * task.c (omp_fulfill_event): Call gomp_team_barrier_set_task_pending
4367 if new tasks generated.
4368 * testsuite/libgomp.c-c++-common/task-detach-13.c: New.
4369
4370 2021-05-14 Tobias Burnus <tobias@codesourcery.com>
4371
4372 * testsuite/libgomp.fortran/parallel-master.f90: New test.
4373
4374 2021-05-13 Martin Liska <mliska@suse.cz>
4375
4376 PR testsuite/100569
4377 * testsuite/libgomp.c/omp-nested-3.c: Prune new LTO warning.
4378 * testsuite/libgomp.c/pr46032-2.c: Likewise.
4379 * testsuite/libgomp.oacc-c-c++-common/data-clauses-kernels-ipa-pta.c: Likewise.
4380 * testsuite/libgomp.oacc-c-c++-common/data-clauses-parallel-ipa-pta.c: Likewise.
4381
4382 2021-05-12 Tobias Burnus <tobias@codesourcery.com>
4383
4384 * testsuite/libgomp.c-c++-common/task-detach-12.c: New test.
4385 * testsuite/libgomp.fortran/task-detach-12.f90: New test.
4386
4387 2021-05-11 Jakub Jelinek <jakub@redhat.com>
4388
4389 PR middle-end/100471
4390 * taskloop.c (GOMP_taskloop): If GOMP_TASK_FLAG_REDUCTION and not
4391 GOMP_TASK_FLAG_NOGROUP, when doing early return clear the task
4392 reduction pointer.
4393 * testsuite/libgomp.c/task-reduction-4.c: New test.
4394
4395 2021-05-07 Tobias Burnus <tobias@codesourcery.com>
4396 Tom de Vries <tdevries@suse.de>
4397
4398 * testsuite/libgomp.c-c++-common/reduction-5.c: New test, testing
4399 complex/floating-point || + && reduction with 'omp target'.
4400 * testsuite/libgomp.c-c++-common/reduction-6.c: Likewise.
4401
4402 2021-05-04 Tobias Burnus <tobias@codesourcery.com>
4403
4404 * testsuite/libgomp.c-c++-common/reduction-1.c: New test.
4405 * testsuite/libgomp.c-c++-common/reduction-2.c: New test.
4406 * testsuite/libgomp.c-c++-common/reduction-3.c: New test.
4407 * testsuite/libgomp.c-c++-common/reduction-4.c: New file.
4408
4409 2021-05-04 Tobias Burnus <tobias@codesourcery.com>
4410
4411 PR testsuite/100397
4412 * testsuite/libgomp.fortran/depobj-1.f90 (dep2, dep3): Move var
4413 declaration to scope of non-'depend'-guarded assignment to avoid races.
4414
4415 2021-05-03 Tom de Vries <tdevries@suse.de>
4416
4417 PR target/100321
4418 * testsuite/libgomp.c/target-44.c: New test.
4419
4420 2021-04-30 Roman Zhuykov <zhroma@ispras.ru>
4421
4422 * testsuite/libgomp.oacc-c-c++-common/atomic_capture-3.c: New test.
4423
4424 2021-04-29 Tom de Vries <tdevries@suse.de>
4425
4426 * testsuite/libgomp.c/pr81778.c: New test.
4427
4428 2021-04-29 Tom de Vries <tdevries@suse.de>
4429
4430 PR target/100232
4431 * testsuite/libgomp.c/target-43.c: New file.
4432
4433 2021-04-28 Jakub Jelinek <jakub@redhat.com>
4434 Tobias Burnus <tobias@codesourcery.com>
4435
4436 * configure.ac (OFFLOAD_DEFAULTED): AC_DEFINE if offload-defaulted.
4437 * target.c (gomp_load_plugin_for_device): If set and if a plugin
4438 can't be dlopened, silently assume it has no devices.
4439 * Makefile.in: Regenerate.
4440 * config.h.in: Regenerate.
4441 * configure: Regenerate.
4442
4443 2021-04-26 Tobias Burnus <tobias@codesourcery.com>
4444
4445 * testsuite/libgomp.oacc-fortran/par-reduction-2-1.f:
4446 Use [Ww]arning in dg-bogus as FE diagnostic and default
4447 diagnostic differ and the result depends on ENABLE_OFFLOAD.
4448 * testsuite/libgomp.oacc-fortran/par-reduction-2-2.f: Likewise.
4449 * testsuite/libgomp.oacc-fortran/parallel-dims.f90: Likewise.
4450 * testsuite/libgomp.oacc-fortran/parallel-reduction.f90: Likewise.
4451
4452 2021-04-26 Tobias Burnus <tobias@codesourcery.com>
4453
4454 * testsuite/libgomp.oacc-fortran/par-reduction-2-1.f:
4455 Correct spelling in dg-bogus to match -Wopenacc-parallelism.
4456 * testsuite/libgomp.oacc-fortran/par-reduction-2-2.f: Likewise.
4457 * testsuite/libgomp.oacc-fortran/parallel-dims.f90: Likewise.
4458 * testsuite/libgomp.oacc-fortran/parallel-reduction.f90: Likewise.
4459
4460 2021-04-26 Thomas Schwinge <thomas@codesourcery.com>
4461 Nathan Sidwell <nathan@codesourcery.com>
4462 Tom de Vries <vries@codesourcery.com>
4463 Julian Brown <julian@codesourcery.com>
4464 Kwok Cheung Yeung <kcy@codesourcery.com>
4465
4466 * testsuite/libgomp.oacc-c-c++-common/firstprivate-1.c: Specify
4467 '-Wopenacc-parallelism', and match diagnostics, as appropriate.
4468 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Likewise.
4469 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c: Likewise.
4470 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c: Likewise.
4471 * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c: Likewise.
4472 * testsuite/libgomp.oacc-c-c++-common/mode-transitions.c:
4473 Likewise.
4474 * testsuite/libgomp.oacc-c-c++-common/par-reduction-1.c: Likewise.
4475 * testsuite/libgomp.oacc-c-c++-common/par-reduction-2.c: Likewise.
4476 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Likewise.
4477 * testsuite/libgomp.oacc-c-c++-common/parallel-reduction.c:
4478 Likewise.
4479 * testsuite/libgomp.oacc-c-c++-common/pr85381-3.c: Likewise.
4480 * testsuite/libgomp.oacc-c-c++-common/private-variables.c:
4481 Likewise.
4482 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Likewise.
4483 * testsuite/libgomp.oacc-c-c++-common/reduction-7.c: Likewise.
4484 * testsuite/libgomp.oacc-c-c++-common/routine-g-1.c: Likewise.
4485 * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c: Likewise.
4486 * testsuite/libgomp.oacc-c-c++-common/routine-wv-2.c: Likewise.
4487 * testsuite/libgomp.oacc-c-c++-common/static-variable-1.c:
4488 Likewise.
4489 * testsuite/libgomp.oacc-fortran/optional-private.f90: Likewise.
4490 * testsuite/libgomp.oacc-fortran/par-reduction-2-1.f: Likewise.
4491 * testsuite/libgomp.oacc-fortran/par-reduction-2-2.f: Likewise.
4492 * testsuite/libgomp.oacc-fortran/parallel-dims.f90: Likewise.
4493 * testsuite/libgomp.oacc-fortran/parallel-reduction.f90: Likewise.
4494 * testsuite/libgomp.oacc-fortran/pr84028.f90: Likewise.
4495 * testsuite/libgomp.oacc-fortran/private-variables.f90: Likewise.
4496 * testsuite/libgomp.oacc-fortran/reduction-1.f90: Likewise.
4497 * testsuite/libgomp.oacc-fortran/reduction-5.f90: Likewise.
4498 * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
4499 * testsuite/libgomp.oacc-fortran/routine-7.f90: Likewise.
4500
4501 2021-04-26 Thomas Schwinge <thomas@codesourcery.com>
4502
4503 * testsuite/libgomp.oacc-c-c++-common/par-reduction-1.c: Don't
4504 compile with '-w'.
4505 * testsuite/libgomp.oacc-c-c++-common/par-reduction-2.c: Likewise.
4506 * testsuite/libgomp.oacc-c-c++-common/parallel-reduction.c:
4507 Likewise.
4508 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Likewise.
4509 * testsuite/libgomp.oacc-c-c++-common/reduction-6.c: Likewise.
4510 * testsuite/libgomp.oacc-fortran/parallel-reduction.f90: Likewise.
4511 * testsuite/libgomp.oacc-fortran/reduction-1.f90: Likewise.
4512 * testsuite/libgomp.oacc-fortran/reduction-5.f90: Likewise.
4513 * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
4514 * testsuite/libgomp.oacc-fortran/reduction-7.f90: Likewise.
4515
4516 2021-04-22 Richard Biener <rguenther@suse.de>
4517
4518 * testsuite/libgomp.c-c++-common/reduction-16.c: Use -latomic
4519 only on nvptx-none.
4520
4521 2021-04-21 Tobias Burnus <tobias@codesourcery.com>
4522
4523 * testsuite/libgomp.fortran/depobj-1.f90: Use omp_lib's
4524 omp_depend_kind instead of defining it as 16.
4525
4526 2021-04-21 Tobias Burnus <tobias@codesourcery.com>
4527
4528 * testsuite/lib/libgomp.exp (offload_target_to_openacc_device_type):
4529 New, based on check_effective_target_offload_target_nvptx.
4530 (check_effective_target_offload_target_nvptx): Call it.
4531 (check_effective_target_offload_target_amdgcn): New.
4532 * testsuite/libgomp.c-c++-common/function-not-offloaded.c:
4533 Require target offload_target_nvptx || offload_target_amdgcn.
4534 * testsuite/libgomp.c-c++-common/variable-not-offloaded.c: Likewise.
4535 * testsuite/libgomp.c/pr86416-1.c: Likewise.
4536 * testsuite/libgomp.c/pr86416-2.c: Likewise.
4537
4538 2021-04-21 Tobias Burnus <tobias@codesourcery.com>
4539
4540 * testsuite/libgomp.fortran/depobj-1.f90: New test.
4541
4542 2021-04-19 Thomas Schwinge <thomas@codesourcery.com>
4543
4544 * testsuite/libgomp.oacc-c-c++-common/declare-vla-kernels-decompose-ice-1.c:
4545 '-fopenacc-kernels=[...]' -> '--param=openacc-kernels=[...]'.
4546 * testsuite/libgomp.oacc-c-c++-common/declare-vla-kernels-decompose.c:
4547 Likewise.
4548 * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c:
4549 Likewise.
4550 * testsuite/libgomp.oacc-fortran/pr94358-1.f90: Likewise.
4551
4552 2021-04-15 Thomas Schwinge <thomas@codesourcery.com>
4553
4554 PR target/99555
4555 * testsuite/lib/libgomp.exp
4556 (check_effective_target_offload_device_nvptx): New.
4557 * testsuite/libgomp.c/pr99555-1.c <nvptx offload device>: Until
4558 resolved, make sure that we exit quickly, with error status,
4559 XFAILed.
4560 * testsuite/libgomp.c-c++-common/task-detach-6.c: Likewise.
4561 * testsuite/libgomp.fortran/task-detach-6.f90: Likewise.
4562
4563 2021-04-14 Jakub Jelinek <jakub@redhat.com>
4564
4565 PR testsuite/100071
4566 * testsuite/libgomp.fortran/alloc-1.F90: Call c_f_pointer after last
4567 cp = omp_alloc with cp, p arguments instead of cq, q and call
4568 c_f_pointer after last cq = omp_alloc with cq, q.
4569
4570 2021-04-11 Hafiz Abid Qadeer <abidh@codesourcery.com>
4571
4572 PR middle-end/98088
4573 * testsuite/libgomp.oacc-c-c++-common/collapse-2.c: Add check
4574 for loop with GT/GE condition.
4575 * testsuite/libgomp.oacc-c-c++-common/collapse-3.c: Likewise.
4576
4577 2021-04-09 Thomas Schwinge <thomas@codesourcery.com>
4578
4579 PR middle-end/84991
4580 PR middle-end/84992
4581 PR middle-end/90779
4582 * testsuite/libgomp.oacc-c-c++-common/static-variable-1.c: New.
4583
4584 2021-04-09 Jakub Jelinek <jakub@redhat.com>
4585
4586 PR libgomp/99984
4587 * team.c (gomp_thread_start): Call pthread_setspecific for
4588 !(defined HAVE_TLS || defined USE_EMUTLS) only after local_thr
4589 has been initialized to avoid false positive warning.
4590
4591 2021-03-29 Tobias Burnus <tobias@codesourcery.com>
4592
4593 PR target/99555
4594 * testsuite/lib/on_device_arch.c: Move to ...
4595 * testsuite/libgomp.c-c++-common/on_device_arch.h: ... here.
4596 * testsuite/libgomp.fortran/on_device_arch.c: New file;
4597 #include on_device_arch.h.
4598 * testsuite/libgomp.c-c++-common/task-detach-6.c: #include
4599 on_device_arch.h instead of using dg-additional-source.
4600 * testsuite/libgomp.c/pr99555-1.c: Likewise.
4601 * testsuite/libgomp.fortran/task-detach-6.f90: Update to use
4602 on_device_arch.c without relative paths.
4603
4604 2021-03-25 Thomas Schwinge <thomas@codesourcery.com>
4605
4606 * plugin/plugin-gcn.c (init_environment_variables): Don't prepend
4607 the 'HSA_RUNTIME_LIB' path to 'libhsa-runtime64.so'.
4608 * plugin/configfrag.ac (HSA_RUNTIME_LIB): Clean up.
4609 * config.h.in: Regenerate.
4610 * configure: Likewise.
4611
4612 2021-03-25 Thomas Schwinge <thomas@codesourcery.com>
4613
4614 PR target/99555
4615 * testsuite/lib/on_device_arch.c: New file.
4616 * testsuite/libgomp.c/pr99555-1.c: Likewise.
4617 * testsuite/libgomp.c-c++-common/task-detach-6.c: Until resolved,
4618 skip for nvptx offloading, with error status.
4619 * testsuite/libgomp.fortran/task-detach-6.f90: Likewise.
4620
4621 2021-03-25 Thomas Schwinge <thomas@codesourcery.com>
4622
4623 * testsuite/libgomp.oacc-fortran/derivedtypes-arrays-1.f90:
4624 OpenACC 'serial' construct diagnostic for nvptx offloading.
4625
4626 2021-03-15 Tobias Burnus <tobias@codesourcery.com>
4627
4628 PR c++/99509
4629 * testsuite/libgomp.c-c++-common/declare_target-1.c: New test.
4630
4631 2021-03-12 Tobias Burnus <tobias@codesourcery.com>
4632
4633 PR fortran/98858
4634 * testsuite/libgomp.fortran/use_device_ptr-3.f90: New test.
4635
4636 2021-03-04 Jakub Jelinek <jakub@redhat.com>
4637
4638 * configure.ac: Add AC_CHECK_SIZEOF([void *]).
4639 * plugin/configfrag.ac: Check $ac_cv_sizeof_void_p value instead of
4640 checking of -m32 or -mx32 options on the command line.
4641 * config.h.in: Regenerated.
4642 * configure: Regenerated.
4643
4644 2021-02-27 Iain Sandoe <iain@sandoe.co.uk>
4645
4646 * testsuite/libgomp.c-c++-common/pr96390.c: Require alias
4647 support from the target.
4648
4649 2021-02-25 Kwok Cheung Yeung <kcy@codesourcery.com>
4650 Jakub Jelinek <jakub@redhat.com>
4651
4652 PR libgomp/98738
4653 * libgomp.h (enum gomp_task_kind): Add GOMP_TASK_DETACHED.
4654 (struct gomp_task): Replace detach and completion_sem fields with
4655 union containing completion_sem and detach_team. Add deferred_p
4656 field.
4657 (struct gomp_team): Remove task_detach_queue.
4658 * task.c: Include assert.h.
4659 (gomp_init_task): Initialize deferred_p and completion_sem fields.
4660 Rearrange initialization order of fields.
4661 (task_fulfilled_p): Delete.
4662 (GOMP_task): Use address of task as the event handle. Remove
4663 initialization of detach field. Initialize deferred_p field.
4664 Use automatic local for completion_sem. Initialize detach_team field
4665 for deferred tasks.
4666 (gomp_barrier_handle_tasks): Remove handling of task_detach_queue.
4667 Set kind of suspended detach task to GOMP_TASK_DETACHED and
4668 decrement task_running_count. Move finish_cancelled block out of
4669 else branch. Relocate call to gomp_team_barrier_done.
4670 (GOMP_taskwait): Handle tasks with completion events that have not
4671 been fulfilled.
4672 (GOMP_taskgroup_end): Likewise.
4673 (omp_fulfill_event): Use address of task as event handle. Post to
4674 completion_sem for undeferred tasks. Clear detach_team if task
4675 has not finished. For finished tasks, handle post-execution tasks,
4676 call gomp_team_barrier_wake if necessary, and free task.
4677 * team.c (gomp_new_team): Remove initialization of task_detach_queue.
4678 (free_team): Remove free of task_detach_queue.
4679 * testsuite/libgomp.c-c++-common/task-detach-1.c: Fix formatting.
4680 * testsuite/libgomp.c-c++-common/task-detach-2.c: Fix formatting.
4681 * testsuite/libgomp.c-c++-common/task-detach-3.c: Fix formatting.
4682 * testsuite/libgomp.c-c++-common/task-detach-4.c: Fix formatting.
4683 * testsuite/libgomp.c-c++-common/task-detach-5.c: Fix formatting.
4684 Change data-sharing of detach events on enclosing parallel to private.
4685 * testsuite/libgomp.c-c++-common/task-detach-6.c: Likewise. Remove
4686 taskwait directive.
4687 * testsuite/libgomp.c-c++-common/task-detach-7.c: New.
4688 * testsuite/libgomp.c-c++-common/task-detach-8.c: New.
4689 * testsuite/libgomp.c-c++-common/task-detach-9.c: New.
4690 * testsuite/libgomp.c-c++-common/task-detach-10.c: New.
4691 * testsuite/libgomp.c-c++-common/task-detach-11.c: New.
4692 * testsuite/libgomp.fortran/task-detach-1.f90: Fix formatting.
4693 * testsuite/libgomp.fortran/task-detach-2.f90: Fix formatting.
4694 * testsuite/libgomp.fortran/task-detach-3.f90: Fix formatting.
4695 * testsuite/libgomp.fortran/task-detach-4.f90: Fix formatting.
4696 * testsuite/libgomp.fortran/task-detach-5.f90: Fix formatting.
4697 Change data-sharing of detach events on enclosing parallel to private.
4698 * testsuite/libgomp.fortran/task-detach-6.f90: Likewise. Remove
4699 taskwait directive.
4700 * testsuite/libgomp.fortran/task-detach-7.f90: New.
4701 * testsuite/libgomp.fortran/task-detach-8.f90: New.
4702 * testsuite/libgomp.fortran/task-detach-9.f90: New.
4703 * testsuite/libgomp.fortran/task-detach-10.f90: New.
4704 * testsuite/libgomp.fortran/task-detach-11.f90: New.
4705
4706 2021-02-22 Tobias Burnus <tobias@codesourcery.com>
4707
4708 PR fortran/99171
4709 * testsuite/libgomp.fortran/dummy-procs-1.f90: New test.
4710
4711 2021-02-17 Julian Brown <julian@codesourcery.com>
4712
4713 * testsuite/libgomp.oacc-fortran/array-stride-dt-1.f90: Remove
4714 expected errors.
4715
4716 2021-02-17 Julian Brown <julian@codesourcery.com>
4717
4718 * testsuite/libgomp.oacc-fortran/derivedtypes-arrays-1.f90: New test.
4719 * testsuite/libgomp.oacc-fortran/update-dt-array.f90: Likewise.
4720
4721 2021-02-11 Uroš Bizjak <ubizjak@gmail.com>
4722
4723 * config/linux/x86/futex.h (__futex_wait):
4724 Revert output type back to long.
4725 (__futex_wake): Ditto.
4726 (futex_wait): Update for revert.
4727 (futex_wake): Ditto.
4728
4729 2021-02-11 Uroš Bizjak <ubizjak@gmail.com>
4730
4731 * config/linux/x86/futex.h (__futex_wait): New static inline
4732 wrapper function. Correct output type to int and
4733 timeout type to void *.
4734 (__futex_wake): New static inline wrapper function.
4735 Correct output type to int.
4736 (futex_wait): Use __futex_wait.
4737 (futex_wake): Use __futex_wake.
4738
4739 2021-02-10 Julian Brown <julian@codesourcery.com>
4740
4741 PR fortran/98979
4742 * testsuite/libgomp.oacc-fortran/array-stride-dt-1.f90: Add expected
4743 errors.
4744
4745 2021-02-04 Julian Brown <julian@codesourcery.com>
4746
4747 * testsuite/libgomp.oacc-fortran/array-stride-dt-1.f90: New test.
4748
4749 2021-02-03 Andrew Stubbs <ams@codesourcery.com>
4750
4751 * plugin/plugin-gcn.c (EF_AMDGPU_MACH): Add
4752 EF_AMDGPU_MACH_AMDGCN_GFX908.
4753 (gcn_gfx908_s): New constant string.
4754 (isa_hsa_name): Add gfx908.
4755 (isa_code): Add gfx908.
4756
4757 2021-01-25 Kwok Cheung Yeung <kcy@codesourcery.com>
4758
4759 * libgomp.texi (omp_fulfill_event): New entry.
4760
4761 2021-01-20 Jakub Jelinek <jakub@redhat.com>
4762
4763 * task.c (GOMP_task): Rename priority argument to priority_arg,
4764 add priority automatic variable and modify that variable. Instead of
4765 clearing detach argument when GOMP_TASK_FLAG_DETACH bit is not set,
4766 check flags for that bit.
4767
4768 2021-01-19 Tobias Burnus <tobias@codesourcery.com>
4769
4770 PR fortran/98476
4771 * testsuite/libgomp.fortran/is_device_ptr-1.f90: New test.
4772
4773 2021-01-18 Andreas Schwab <schwab@suse.de>
4774
4775 * configure.tgt (riscv64*-*-linux*): Add linux to config_path.
4776
4777 2021-01-18 Sebastian Huber <sebastian.huber@embedded-brains.de>
4778
4779 * config/rtems/sem.h (gomp_sem_getcount): New function.
4780
4781 2021-01-18 Jakub Jelinek <jakub@redhat.com>
4782
4783 * config/linux/sem.h (gomp_sem_getcount): New function.
4784 * config/posix/sem.h (gomp_sem_getcount): New function.
4785 * config/posix/sem.c (gomp_sem_getcount): New function.
4786 * config/accel/sem.h (gomp_sem_getcount): New function.
4787 * task.c (task_fulfilled_p): Use gomp_sem_getcount.
4788 (omp_fulfill_event): Likewise.
4789
4790 2021-01-16 Kwok Cheung Yeung <kcy@codesourcery.com>
4791
4792 * fortran.c (omp_fulfill_event_): New.
4793 * libgomp.h (struct gomp_task): Add detach and completion_sem fields.
4794 (struct gomp_team): Add task_detach_queue and task_detach_count
4795 fields.
4796 * libgomp.map (OMP_5.0.1): Add omp_fulfill_event and omp_fulfill_event_.
4797 * libgomp_g.h (GOMP_task): Add extra argument.
4798 * omp.h.in (enum omp_event_handle_t): New.
4799 (omp_fulfill_event): New.
4800 * omp_lib.f90.in (omp_event_handle_kind): New.
4801 (omp_fulfill_event): New.
4802 * omp_lib.h.in (omp_event_handle_kind): New.
4803 (omp_fulfill_event): Declare.
4804 * priority_queue.c (priority_tree_find): New.
4805 (priority_list_find): New.
4806 (priority_queue_find): New.
4807 * priority_queue.h (priority_queue_predicate): New.
4808 (priority_queue_find): New.
4809 * task.c (gomp_init_task): Initialize detach field.
4810 (task_fulfilled_p): New.
4811 (GOMP_task): Add detach argument. Ignore detach argument if
4812 GOMP_TASK_FLAG_DETACH not set in flags. Initialize completion_sem
4813 field. Copy address of completion_sem into detach argument and
4814 into the start of the data record. Wait for detach event if task
4815 not deferred.
4816 (gomp_barrier_handle_tasks): Queue tasks with unfulfilled events.
4817 Remove completed tasks and requeue dependent tasks.
4818 (omp_fulfill_event): New.
4819 * team.c (gomp_new_team): Initialize task_detach_queue and
4820 task_detach_count fields.
4821 (free_team): Free task_detach_queue field.
4822 * testsuite/libgomp.c-c++-common/task-detach-1.c: New testcase.
4823 * testsuite/libgomp.c-c++-common/task-detach-2.c: New testcase.
4824 * testsuite/libgomp.c-c++-common/task-detach-3.c: New testcase.
4825 * testsuite/libgomp.c-c++-common/task-detach-4.c: New testcase.
4826 * testsuite/libgomp.c-c++-common/task-detach-5.c: New testcase.
4827 * testsuite/libgomp.c-c++-common/task-detach-6.c: New testcase.
4828 * testsuite/libgomp.fortran/task-detach-1.f90: New testcase.
4829 * testsuite/libgomp.fortran/task-detach-2.f90: New testcase.
4830 * testsuite/libgomp.fortran/task-detach-3.f90: New testcase.
4831 * testsuite/libgomp.fortran/task-detach-4.f90: New testcase.
4832 * testsuite/libgomp.fortran/task-detach-5.f90: New testcase.
4833 * testsuite/libgomp.fortran/task-detach-6.f90: New testcase.
4834
4835 2021-01-15 Jakub Jelinek <jakub@redhat.com>
4836
4837 PR target/70454
4838 * configure.tgt: For i?86 and x86_64 determine if -march=i486 needs to
4839 be added through preprocessor check on
4840 __GCC_HAVE_SYNC_COMPARE_AND_SWAP_4.
4841
4842 2021-01-14 Thomas Schwinge <thomas@codesourcery.com>
4843
4844 PR libgomp/65099
4845 * plugin/configfrag.ac (PLUGIN_NVPTX): Restrict to supported
4846 configurations.
4847 * configure: Regenerate.
4848 * plugin/plugin-nvptx.c (nvptx_get_num_devices): Remove 64-bit
4849 check.
4850
4851 2021-01-05 Samuel Thibault <samuel.thibault@ens-lyon.org>
4852
4853 * configure: Re-generate.
4854
4855 2021-01-05 Samuel Thibault <samuel.thibault@ens-lyon.org>
4856
4857 * configure: Re-generate.
4858
4859 2021-01-05 Julian Brown <julian@codesourcery.com>
4860
4861 * plugin/plugin-nvptx.c (SOFTSTACK_CACHE_LIMIT): New define.
4862 (struct ptx_device): Add omp_stacks struct.
4863 (nvptx_open_device): Initialise cached-stacks housekeeping info.
4864 (nvptx_close_device): Free cached stacks block and mutex.
4865 (nvptx_stacks_free): New function.
4866 (nvptx_alloc): Add SUPPRESS_ERRORS parameter.
4867 (GOMP_OFFLOAD_alloc): Add strategies for freeing soft-stacks block.
4868 (nvptx_stacks_alloc): Rename to...
4869 (nvptx_stacks_acquire): This. Cache stacks block between runs if same
4870 size or smaller is required.
4871 (nvptx_stacks_free): Remove.
4872 (GOMP_OFFLOAD_run): Call nvptx_stacks_acquire and lock stacks block
4873 during kernel execution.
4874
4875 2021-01-01 Jakub Jelinek <jakub@redhat.com>
4876
4877 * libgomp.texi: Bump @copying's copyright year.
4878
4879 2020-12-28 Gerald Pfeifer <gerald@pfeifer.com>
4880
4881 * libgomp.texi (Top): Avoid bad "up" link.
4882
4883 2020-12-18 Jakub Jelinek <jakub@redhat.com>
4884
4885 * testsuite/libgomp.c/task-6.c: New test.
4886
4887 2020-12-09 Andrew Stubbs <ams@codesourcery.com>
4888
4889 * plugin/plugin-gcn.c: Include hsa_ext_amd.h.
4890 (HSA_AMD_AGENT_INFO_COMPUTE_UNIT_COUNT): Delete redundant definition.
4891
4892 2020-12-08 Tobias Burnus <tobias@codesourcery.com>
4893
4894 * testsuite/libgomp.fortran/scan-1.f90: New test.
4895
4896 2020-12-05 Iain Sandoe <iain@sandoe.co.uk>
4897
4898 PR target/97865
4899 * configure: Regenerate.
4900
4901 2020-11-29 John David Anglin <danglin@gcc.gnu.org>
4902
4903 * configure: Regenerate.
4904
4905 2020-11-25 Thomas Schwinge <thomas@codesourcery.com>
4906
4907 * testsuite/libgomp.oacc-c++/cache-1.C: New.
4908 * testsuite/libgomp.oacc-c-c++-common/cache-1.c: Update.
4909
4910 2020-11-25 Andrew Stubbs <ams@codesourcery.com>
4911
4912 * testsuite/libgomp.oacc-fortran/atomic_capture-1.f90 (main): Adjust
4913 expected results.
4914
4915 2020-11-24 Andrew Stubbs <ams@codesourcery.com>
4916
4917 * plugin/plugin-gcn.c: Don't redefine relocations if elf.h has them.
4918 (reserved): Delete unused define.
4919
4920 2020-11-24 Thomas Schwinge <thomas@codesourcery.com>
4921
4922 * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c: Avoid
4923 Tcl 8.5-specific behavior.
4924 * testsuite/libgomp.oacc-fortran/pr94358-1.f90: Likewise.
4925
4926 2020-11-18 Kwok Cheung Yeung <kcy@codesourcery.com>
4927
4928 * env.c (gomp_global_icv): Remove nest_var field. Add
4929 max_active_levels_var field.
4930 (gomp_max_active_levels_var): Remove.
4931 (parse_boolean): Return true on success.
4932 (handle_omp_display_env): Express OMP_NESTED in terms of
4933 max_active_levels_var. Change format specifier for
4934 max_active_levels_var.
4935 (initialize_env): Set max_active_levels_var from
4936 OMP_MAX_ACTIVE_LEVELS, OMP_NESTED, OMP_NUM_THREADS and
4937 OMP_PROC_BIND.
4938 * icv.c (omp_set_nested): Express in terms of
4939 max_active_levels_var.
4940 (omp_get_nested): Likewise.
4941 (omp_set_max_active_levels): Use max_active_levels_var field instead
4942 of gomp_max_active_levels_var.
4943 (omp_get_max_active_levels): Likewise.
4944 * libgomp.h (struct gomp_task_icv): Remove nest_var field. Add
4945 max_active_levels_var field.
4946 (gomp_supported_active_levels): Set to UCHAR_MAX.
4947 (gomp_max_active_levels_var): Delete.
4948 * libgomp.texi (omp_get_nested): Update documentation.
4949 (omp_set_nested): Likewise.
4950 (OMP_MAX_ACTIVE_LEVELS): Likewise.
4951 (OMP_NESTED): Likewise.
4952 (OMP_NUM_THREADS): Likewise.
4953 (OMP_PROC_BIND): Likewise.
4954 * parallel.c (gomp_resolve_num_threads): Replace reference
4955 to nest_var with max_active_levels_var. Use max_active_levels_var
4956 field instead of gomp_max_active_levels_var.
4957
4958 2020-11-18 Tobias Burnus <tobias@codesourcery.com>
4959
4960 * testsuite/libgomp.c/usleep.h (fallback_usleep): Renamed from
4961 nvptx_usleep; use also for device={arch(gcn)}.
4962
4963 2020-11-14 Jakub Jelinek <jakub@redhat.com>
4964
4965 * testsuite/libgomp.c-c++-common/allocate-1.c (struct S): New type.
4966 (foo): Add tests for non-VLA private and firstprivate clauses on
4967 omp task.
4968 (bar): Likewise. Remove taking of address from private/firstprivate
4969 variables.
4970 * testsuite/libgomp.c++/allocate-1.C (struct S): New type.
4971 (foo): Add p, q, px and s arguments. Add tests for array reductions
4972 and for non-VLA private and firstprivate clauses on omp task.
4973 (bar): Removed.
4974 (main): Adjust foo caller. Don't call bar.
4975
4976 2020-11-13 Gergö Barany <gergo@codesourcery.com>
4977 Thomas Schwinge <thomas@codesourcery.com>
4978
4979 * testsuite/libgomp.oacc-c-c++-common/declare-vla-kernels-decompose-ice-1.c:
4980 New.
4981 * testsuite/libgomp.oacc-c-c++-common/declare-vla-kernels-decompose.c:
4982 Likewise.
4983 * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c:
4984 Likewise.
4985 * testsuite/libgomp.oacc-c-c++-common/declare-vla.c: Adjust.
4986 * testsuite/libgomp.oacc-fortran/pr94358-1.f90: Likewise.
4987
4988 2020-11-13 Gergö Barany <gergo@codesourcery.com>
4989 Thomas Schwinge <thomas@codesourcery.com>
4990
4991 PR fortran/94358
4992 * testsuite/libgomp.oacc-fortran/pr94358-1.f90: New.
4993
4994 2020-11-13 Jakub Jelinek <jakub@redhat.com>
4995
4996 * testsuite/libgomp.c-c++-common/allocate-1.c (foo): Add tests
4997 for array reductions.
4998 (main): Adjust foo callers.
4999
5000 2020-11-12 Jakub Jelinek <jakub@redhat.com>
5001
5002 * libgomp.map (GOMP_alloc, GOMP_free): Export at GOMP_5.0.1.
5003 * omp.h.in (omp_alloc): Add malloc and alloc_size attributes.
5004 * libgomp_g.h (GOMP_alloc, GOMP_free): Declare.
5005 * allocator.c (omp_aligned_alloc): New for now static function,
5006 add alignment argument and handle it.
5007 (omp_alloc): Reimplement using omp_aligned_alloc.
5008 (GOMP_alloc, GOMP_free): New functions.
5009 (omp_free): Add ialias.
5010 * testsuite/libgomp.c-c++-common/allocate-1.c: New test.
5011 * testsuite/libgomp.c++/allocate-1.C: New test.
5012
5013 2020-11-12 Thomas Schwinge <thomas@codesourcery.com>
5014
5015 PR fortran/97782
5016 * testsuite/libgomp.oacc-fortran/attach-descriptor-1.f90: Adjust.
5017
5018 2020-11-10 Chung-Lin Tang <cltang@codesourcery.com>
5019
5020 * libgomp.h (enum gomp_map_vars_kind): Adjust enum values to be bit-flag
5021 usable.
5022 * oacc-mem.c (acc_map_data): Adjust gomp_map_vars argument flags to
5023 'GOMP_MAP_VARS_OPENACC | GOMP_MAP_VARS_ENTER_DATA'.
5024 (goacc_enter_datum): Likewise for call to gomp_map_vars_async.
5025 (goacc_enter_data_internal): Likewise.
5026 * target.c (gomp_map_vars_internal):
5027 Change checks of GOMP_MAP_VARS_ENTER_DATA to use bit-and (&). Adjust use
5028 of gomp_attach_pointer for OpenMP cases.
5029 (gomp_exit_data): Add handling of GOMP_MAP_DETACH.
5030 (GOMP_target_enter_exit_data): Add handling of GOMP_MAP_ATTACH.
5031 * testsuite/libgomp.c-c++-common/ptr-attach-1.c: New testcase.
5032
5033 2020-11-05 Ulrich Drepper <drepper@redhat.com>
5034 Kwok Cheung Yeung <kcy@codesourcery.com>
5035
5036 * Makefile.am (%.mod): Add -cpp and -fopenmp to compile flags.
5037 * Makefile.in: Regenerate.
5038 * fortran.c: Wrap uses of omp_set_nested and omp_get_nested with
5039 pragmas to ignore -Wdeprecated-declarations warnings.
5040 * icv.c: Likewise.
5041 * omp.h.in (__GOMP_DEPRECATED_5_0): Define.
5042 Mark omp_lock_hint_* enum values, omp_lock_hint_t, omp_set_nested,
5043 and omp_get_nested with __GOMP_DEPRECATED_5_0.
5044 * omp_lib.f90.in: Mark omp_get_nested and omp_set_nested as
5045 deprecated.
5046 * testsuite/libgomp.c++/affinity-1.C: Add -Wno-deprecated-declarations
5047 to test options.
5048 * testsuite/libgomp.c/affinity-1.c: Likewise.
5049 * testsuite/libgomp.c/affinity-2.c: Likewise.
5050 * testsuite/libgomp.c/appendix-a/a.15.1.c: Likewise.
5051 * testsuite/libgomp.c/lib-1.c: Likewise.
5052 * testsuite/libgomp.c/nested-1.c: Likewise.
5053 * testsuite/libgomp.c/nested-2.c: Likewise.
5054 * testsuite/libgomp.c/nested-3.c: Likewise.
5055 * testsuite/libgomp.c/pr32362-1.c: Likewise.
5056 * testsuite/libgomp.c/pr32362-2.c: Likewise.
5057 * testsuite/libgomp.c/pr32362-3.c: Likewise.
5058 * testsuite/libgomp.c/pr35549.c: Likewise.
5059 * testsuite/libgomp.c/pr42942.c: Likewise.
5060 * testsuite/libgomp.c/pr61200.c: Likewise.
5061 * testsuite/libgomp.c/sort-1.c: Likewise.
5062 * testsuite/libgomp.c/target-5.c: Likewise.
5063 * testsuite/libgomp.c/target-6.c: Likewise.
5064 * testsuite/libgomp.c/teams-1.c: Likewise.
5065 * testsuite/libgomp.c/thread-limit-1.c: Likewise.
5066 * testsuite/libgomp.c/thread-limit-2.c: Likewise.
5067 * testsuite/libgomp.c/thread-limit-4.c: Likewise.
5068 * testsuite/libgomp.fortran/affinity1.f90: Likewise.
5069 * testsuite/libgomp.fortran/lib1.f90: Likewise.
5070 * testsuite/libgomp.fortran/lib2.f: Likewise.
5071 * testsuite/libgomp.fortran/nested1.f90: Likewise.
5072 * testsuite/libgomp.fortran/teams1.f90: Likewise.
5073
5074 2020-11-02 Thomas Schwinge <thomas@codesourcery.com>
5075
5076 PR target/85486
5077 * testsuite/libgomp.oacc-c-c++-common/pr85486-2.c: Simplify and enhance.
5078 * testsuite/libgomp.oacc-c-c++-common/pr85486-3.c: Likewise.
5079 * testsuite/libgomp.oacc-c-c++-common/pr85486.c: Likewise.
5080
5081 2020-11-02 Thomas Schwinge <thomas@codesourcery.com>
5082
5083 PR testsuite/80219
5084 PR testsuite/85303
5085 * testsuite/lib/libgomp.exp (libgomp_init): Set
5086 'gcc_warning_prefix', 'gcc_error_prefix'.
5087
5088 2020-10-30 Jakub Jelinek <jakub@redhat.com>
5089
5090 * target.c (gomp_map_vars_internal): Use FIELD_TGT_EMPTY macro
5091 even in field_tgt_clear initializer.
5092
5093 2020-10-28 Jakub Jelinek <jakub@redhat.com>
5094
5095 * testsuite/libgomp.c/target-42.c: New test.
5096
5097 2020-10-28 Jakub Jelinek <jakub@redhat.com>
5098 Tom de Vries <tdevries@suse.de>
5099
5100 PR testsuite/81690
5101 * testsuite/libgomp.c/usleep.h: New file.
5102 * testsuite/libgomp.c/target-32.c: Include usleep.h.
5103 (main): Use tgt_usleep instead of usleep.
5104 * testsuite/libgomp.c/thread-limit-2.c: Include usleep.h.
5105 (main): Use tgt_usleep instead of usleep.
5106
5107 2020-10-28 Jakub Jelinek <jakub@redhat.com>
5108
5109 PR lto/96680
5110 * testsuite/libgomp.c/declare-variant-1.c: New test.
5111
5112 2020-10-22 Jakub Jelinek <jakub@redhat.com>
5113
5114 * testsuite/libgomp.c/target-41.c: New test.
5115
5116 2020-10-22 Jakub Jelinek <jakub@redhat.com>
5117
5118 * icv.c (omp_get_initial_device): Remove including corresponding
5119 ialias.
5120 * icv-device.c (omp_get_initial_device): New function. Return
5121 gomp_get_num_devices (). Add ialias.
5122 * target.c (resolve_device): Don't fail with
5123 OMP_TARGET_OFFLOAD=mandatory if device_id is equal to
5124 gomp_get_num_devices ().
5125 (omp_target_alloc, omp_target_free, omp_target_is_present,
5126 omp_target_memcpy, omp_target_memcpy_rect, omp_target_associate_ptr,
5127 omp_target_disassociate_ptr, omp_pause_resource): Use
5128 gomp_get_num_devices () instead of GOMP_DEVICE_HOST_FALLBACK on the
5129 first use in the functions, in uses dominated by the
5130 gomp_get_num_devices call use num_devices_openmp instead.
5131 * libgomp.texi (omp_get_initial_device): Document.
5132 * config/gcn/icv-device.c (omp_get_initial_device): New function.
5133 Add ialias.
5134 * config/nvptx/icv-device.c (omp_get_initial_device): Likewise.
5135 * testsuite/libgomp.c/target-40.c: New test.
5136
5137 2020-10-21 Jakub Jelinek <jakub@redhat.com>
5138
5139 * env.c (parse_target_offload): Change new_offload var type to int,
5140 preinitialize to -1, remove found var and test new_offload != -1
5141 instead of found.
5142
5143 2020-10-20 Jakub Jelinek <jakub@redhat.com>
5144
5145 * target.c (gomp_target_init): Inside of the function, use automatic
5146 variables corresponding to num_devices, num_devices_openmp and devices
5147 global variables and update the globals only at the end of the
5148 function.
5149
5150 2020-10-20 Kwok Cheung Yeung <kcy@codesourcery.com>
5151
5152 * env.c (gomp_target_offload_var): New.
5153 (parse_target_offload): New.
5154 (handle_omp_display_env): Print value of OMP_TARGET_OFFLOAD.
5155 (initialize_env): Parse OMP_TARGET_OFFLOAD.
5156 * libgomp.h (gomp_target_offload_t): New.
5157 (gomp_target_offload_var): New.
5158 * libgomp.texi (OMP_TARGET_OFFLOAD): New section.
5159 * target.c (resolve_device): Generate error if device not found and
5160 offloading is mandatory.
5161 (gomp_target_fallback): Generate error if offloading is mandatory.
5162 (GOMP_target): Add argument in call to gomp_target_fallback.
5163 (GOMP_target_ext): Likewise.
5164 (gomp_target_data_fallback): Generate error if offloading is mandatory.
5165 (GOMP_target_data): Add argument in call to gomp_target_data_fallback.
5166 (GOMP_target_data_ext): Likewise.
5167 (gomp_target_task_fn): Add argument in call to gomp_target_fallback.
5168 (gomp_target_init): Return early if offloading is disabled.
5169
5170 2020-10-15 Kwok Cheung Yeung <kcy@codesourcery.com>
5171
5172 * libgomp.texi (omp_get_max_active_levels): Modify description.
5173 (omp_get_supported_active_levels): Make descriptions consistent.
5174
5175 2020-10-14 Jakub Jelinek <jakub@redhat.com>
5176
5177 * libgomp.texi (omp_get_supported_active_levels): Fix a typo.
5178
5179 2020-10-13 Kwok Cheung Yeung <kcy@codesourcery.com>
5180
5181 * env.c (gomp_max_active_levels_var): Initialize to
5182 gomp_supported_active_levels.
5183 (initialize_env): Limit gomp_max_active_levels_var to be at most
5184 equal to gomp_supported_active_levels.
5185 * fortran.c (omp_get_supported_active_levels): Add ialias_redirect.
5186 (omp_get_supported_active_levels_): New.
5187 * icv.c (omp_set_max_active_levels): Limit gomp_max_active_levels_var
5188 to at most equal to gomp_supported_active_levels.
5189 (omp_get_supported_active_levels): New.
5190 * libgomp.h (gomp_supported_active_levels): New.
5191 * libgomp.map (OMP_5.0.1): Add omp_get_supported_active_levels and
5192 omp_get_supported_active_levels_.
5193 * libgomp.texi (omp_get_supported_active_levels): New.
5194 (omp_set_max_active_levels): Update. Add reference to
5195 omp_get_supported_active_levels.
5196 * omp.h.in (omp_get_supported_active_levels): New.
5197 * omp_lib.f90.in (omp_get_supported_active_levels): New.
5198 * omp_lib.h.in (omp_get_supported_active_levels): New.
5199 * testsuite/libgomp.c/lib-2.c (main): Check omp_get_max_active_levels
5200 against omp_get_supported_active_levels.
5201 * testsuite/libgomp.fortran/lib4.f90 (lib4): Likewise.
5202
5203 2020-10-11 Clement Chigot <clement.chigot@atos.net>
5204
5205 * config/t-aix: Delete and recreate libgomp before creating
5206 FAT library.
5207
5208 2020-10-08 Tom de Vries <tdevries@suse.de>
5209
5210 PR libgomp/81802
5211 * plugin/plugin-nvptx.c (GOMP_OFFLOAD_run): Report launch
5212 dimensions.
5213
5214 2020-10-06 Tom de Vries <tdevries@suse.de>
5215
5216 * testsuite/libgomp.oacc-fortran/declare-5.f90: Add xfail for PR92790.
5217
5218 2020-10-06 Tom de Vries <tdevries@suse.de>
5219
5220 PR middle-end/90861
5221 * testsuite/libgomp.oacc-c-c++-common/declare-vla.c: Remove xfail.
5222
5223 2020-10-05 Tom de Vries <tdevries@suse.de>
5224
5225 PR fortran/95654
5226 * testsuite/libgomp.fortran/pr95654.f90: New test.
5227
5228 2020-10-02 Tobias Burnus <tobias@codesourcery.com>
5229
5230 * Makefile.in: Regenerate with automake 1.15.1.
5231 * aclocal.m4: Likewise.
5232 * configure: Likewise.
5233 * testsuite/Makefile.in: Likewise.
5234
5235 2020-09-30 Andrew Stubbs <ams@codesourcery.com>
5236
5237 * parallel.c (gomp_resolve_num_threads): Ignore nest_var on nvptx
5238 and amdgcn targets.
5239
5240 2020-09-30 Tobias Burnus <tobias@codesourcery.com>
5241
5242 * testsuite/libgomp.fortran/declare-target-3.f90: New test.
5243
5244 2020-09-29 Andrew Stubbs <ams@codesourcery.com>
5245
5246 * config/gcn/bar.c (gomp_barrier_wait_end): Skip the barrier if the
5247 total number of threads is one.
5248 (gomp_team_barrier_wake): Likewise.
5249 (gomp_team_barrier_wait_end): Likewise.
5250 (gomp_team_barrier_wait_cancel_end): Likewise.
5251 * config/nvptx/bar.c (gomp_barrier_wait_end): Likewise.
5252 (gomp_team_barrier_wake): Likewise.
5253 (gomp_team_barrier_wait_end): Likewise.
5254 (gomp_team_barrier_wait_cancel_end): Likewise.
5255 * testsuite/libgomp.c-c++-common/nested-parallel-unbalanced.c: New test.
5256
5257 2020-09-28 Tobias Burnus <tobias@codesourcery.com>
5258
5259 PR middle-end/96390
5260 * testsuite/libgomp.c++/pr96390.C: New test.
5261 * testsuite/libgomp.c-c++-common/pr96390.c: New test.
5262
5263 2020-09-27 Clement Chigot <clement.chigot@atos.net>
5264
5265 * config/t-aix: Use $(AR) without -X32_64.
5266
5267 2020-09-25 Jakub Jelinek <jakub@redhat.com>
5268
5269 * testsuite/libgomp.c/loop-25.c: New test.
5270
5271 2020-09-22 Tobias Burnus <tobias@codesourcery.com>
5272
5273 PR fortran/95654
5274 * testsuite/libgomp.fortran/pr66199-5.f90: Make stop codes unique.
5275
5276 2020-09-22 Tom de Vries <tdevries@suse.de>
5277
5278 * plugin/plugin-nvptx.c (link_ptx): Print elog if cuLinkComplete call
5279 fails.
5280
5281 2020-09-16 Nathan Sidwell <nathan@acm.org>
5282
5283 * testsuite/libgomp.c++/udr-3.C: Add missing ctor.
5284
5285 2020-09-15 Tobias Burnus <tobias@codesourcery.com>
5286
5287 PR fortran/96668
5288 * target.c (gomp_map_vars_internal): Initialize has_nullptr.
5289
5290 2020-09-15 Tobias Burnus <tobias@codesourcery.com>
5291
5292 PR fortran/96668
5293 * libgomp.h (struct target_var_desc): Add has_null_ptr_assoc member.
5294 * target.c (gomp_map_vars_existing): Add always_to_flag flag.
5295 (gomp_map_vars_existing): Update call to it.
5296 (gomp_map_fields_existing): Likewise
5297 (gomp_map_vars_internal): Update PSET handling such that if a nullptr is
5298 now allocated or if GOMP_MAP_POINTER is used PSET is updated and pointer
5299 remapped.
5300 (GOMP_target_enter_exit_data): Hanlde GOMP_MAP_ALWAYS_POINTER like
5301 GOMP_MAP_POINTER.
5302 * testsuite/libgomp.fortran/map-alloc-ptr-1.f90: New test.
5303 * testsuite/libgomp.fortran/map-alloc-ptr-2.f90: New test.
5304
5305 2020-09-14 Tom de Vries <tdevries@suse.de>
5306
5307 * config/nvptx/atomic.c: New file. Add
5308 __sync_val_compare_and_swap_16.
5309 * testsuite/libgomp.c-c++-common/reduction-16.c: Add -latomic for
5310 target offload_target_nvptx.
5311
5312 2020-09-08 Julian Brown <julian@codesourcery.com>
5313
5314 * testsuite/libgomp.oacc-c-c++-common/atomic_capture-2.c: Remove
5315 iteration-ordering assumptions.
5316
5317 2020-09-08 Julian Brown <julian@codesourcery.com>
5318
5319 * testsuite/libgomp.oacc-fortran/collapse-1.f90: Fix race condition.
5320 * testsuite/libgomp.oacc-fortran/collapse-2.f90: Likewise.
5321
5322 2020-08-20 Chung-Lin Tang <cltang@codesourcery.com>
5323
5324 * plugin/plugin-nvptx.c (nvptx_free):
5325 Change "GOMP_PLUGIN_acc_thread () == NULL" test into check of
5326 CUDA_ERROR_NOT_PERMITTED status for cuMemGetAddressRange. Adjust
5327 comments.
5328
5329 2020-08-20 Tobias Burnus <tobias@codesourcery.com>
5330
5331 * testsuite/libgomp.fortran/lastprivate-conditional-10.f90: New test.
5332
5333 2020-08-13 Kwok Cheung Yeung <kcy@codesourcery.com>
5334
5335 * testsuite/libgomp.c-c++-common/reduction-16.c: New.
5336
5337 2020-08-13 Jakub Jelinek <jakub@redhat.com>
5338
5339 * testsuite/libgomp.c/loop-22.c (main): Add some further tests.
5340 * testsuite/libgomp.c/loop-23.c (main): Likewise.
5341 * testsuite/libgomp.c/loop-24.c: New test.
5342
5343 2020-08-08 Jakub Jelinek <jakub@redhat.com>
5344 Tobias Burnus <tobias@codesourcery.com>
5345
5346 PR fortran/93553
5347 * testsuite/libgomp.fortran/pr93553.f90: New test.
5348
5349 2020-08-05 Jakub Jelinek <jakub@redhat.com>
5350
5351 * testsuite/libgomp.c/loop-22.c: New test.
5352 * testsuite/libgomp.c/loop-23.c: New test.
5353
5354 2020-08-05 Jakub Jelinek <jakub@redhat.com>
5355
5356 PR middle-end/96459
5357 * testsuite/libgomp.c/teams-3.c: New test.
5358 * testsuite/libgomp.c-c++-common/for-2.h (OMPTEAMS): Define to nothing
5359 if not defined yet.
5360 (N(test)): Use it before all N(f*) calls.
5361 * testsuite/libgomp.c-c++-common/for-14.c (DO_PRAGMA, OMPTEAMS): Define.
5362 (main): Don't call all test_* functions from within
5363 #pragma omp teams reduction(|:err), call them directly.
5364
5365 2020-08-04 Tom de Vries <tdevries@suse.de>
5366
5367 PR target/96428
5368 * testsuite/libgomp.oacc-fortran/pr96628-part1.f90: New test.
5369 * testsuite/libgomp.oacc-fortran/pr96628-part2.f90: New test.
5370
5371 2020-08-03 Julian Brown <julian@codesourcery.com>
5372 Thomas Schwinge <thomas@codesourcery.com>
5373
5374 * testsuite/libgomp.oacc-fortran/attach-descriptor-1.f90: Don't run for
5375 shared-memory devices. Extend with further checking.
5376
5377 2020-08-03 Martin Jambor <mjambor@suse.cz>
5378
5379 * plugin/Makefrag.am: Remove configuration of HSA plugin.
5380 * aclocal.m4: Regenerated.
5381 * Makefile.in: Regenerated.
5382 * config.h.in: Regenerated.
5383 * configure: Regenerated.
5384 * plugin/configfrag.ac: Likewise.
5385 * plugin/hsa_ext_finalize.h: Removed.
5386 * plugin/plugin-hsa.c: Likewise.
5387 * testsuite/Makefile.in: Regenerated.
5388 * testsuite/lib/libgomp.exp
5389 (offload_target_to_openacc_device_type): Remove hsa case.
5390 (check_effective_target_hsa_offloading_selected_nocache): Removed
5391 (check_effective_target_hsa_offloading_selected): Likewise.
5392 (libgomp_init): Do not add -Wno-hsa to additional_flags.
5393 * testsuite/libgomp.hsa.c/alloca-1.c: Removed test.
5394 * testsuite/libgomp.hsa.c/bitfield-1.c: Likewise.
5395 * testsuite/libgomp.hsa.c/bits-insns.c: Likewise.
5396 * testsuite/libgomp.hsa.c/builtins-1.c: Likewise.
5397 * testsuite/libgomp.hsa.c/c.exp: Likewise.
5398 * testsuite/libgomp.hsa.c/complex-1.c: Likewise.
5399 * testsuite/libgomp.hsa.c/complex-align-2.c: Likewise.
5400 * testsuite/libgomp.hsa.c/formal-actual-args-1.c: Likewise.
5401 * testsuite/libgomp.hsa.c/function-call-1.c: Likewise.
5402 * testsuite/libgomp.hsa.c/get-level-1.c: Likewise.
5403 * testsuite/libgomp.hsa.c/gridify-1.c: Likewise.
5404 * testsuite/libgomp.hsa.c/gridify-2.c: Likewise.
5405 * testsuite/libgomp.hsa.c/gridify-3.c: Likewise.
5406 * testsuite/libgomp.hsa.c/gridify-4.c: Likewise.
5407 * testsuite/libgomp.hsa.c/memory-operations-1.c: Likewise.
5408 * testsuite/libgomp.hsa.c/pr69568.c: Likewise.
5409 * testsuite/libgomp.hsa.c/pr82416.c: Likewise.
5410 * testsuite/libgomp.hsa.c/rotate-1.c: Likewise.
5411 * testsuite/libgomp.hsa.c/staticvar.c: Likewise.
5412 * testsuite/libgomp.hsa.c/switch-1.c: Likewise.
5413 * testsuite/libgomp.hsa.c/switch-branch-1.c: Likewise.
5414 * testsuite/libgomp.hsa.c/switch-sbr-2.c: Likewise.
5415 * testsuite/libgomp.hsa.c/tiling-1.c: Likewise.
5416 * testsuite/libgomp.hsa.c/tiling-2.c: Likewise.
5417
5418 2020-07-27 Julian Brown <julian@codesourcery.com>
5419 Thomas Schwinge <thomas@codesourcery.com>
5420
5421 * libgomp.h (struct target_var_desc): Rename do_detach field to
5422 is_attach.
5423 * oacc-mem.c (goacc_exit_datum_1): Add assert. Don't set finalize for
5424 GOMP_MAP_FORCE_DETACH. Update checking to use is_attach field.
5425 (goacc_enter_data_internal): Don't affect reference counts
5426 for attach mappings.
5427 (goacc_exit_data_internal): Don't affect reference counts for detach
5428 mappings.
5429 * target.c (gomp_map_vars_existing): Don't affect reference counts for
5430 attach mappings.
5431 (gomp_map_vars_internal): Set renamed is_attach flag unconditionally to
5432 mark attach mappings.
5433 (gomp_unmap_vars_internal): Use is_attach flag to prevent affecting
5434 reference count for attach mappings.
5435 * testsuite/libgomp.oacc-c-c++-common/mdc-refcount-1.c: New test.
5436 * testsuite/libgomp.oacc-c-c++-common/mdc-refcount-2.c: New test.
5437 * testsuite/libgomp.oacc-c-c++-common/mdc-refcount-2.c: New test.
5438 * testsuite/libgomp.oacc-fortran/deep-copy-6-no_finalize.F90: Mark
5439 test as shouldfail.
5440 * testsuite/libgomp.oacc-fortran/deep-copy-6.f90: Adjust to fail
5441 gracefully in no-finalize mode.
5442 * testsuite/libgomp.oacc-c-c++-common/mdc-refcount-3.c: New file.
5443
5444 2020-07-24 Thomas Schwinge <thomas@codesourcery.com>
5445
5446 * testsuite/libgomp.oacc-c++/c++.exp: Unset 'offload_target' after
5447 use.
5448 * testsuite/libgomp.oacc-c/c.exp: Likewise.
5449 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
5450
5451 2020-07-23 Julian Brown <julian@codesourcery.com>
5452 Thomas Schwinge <thomas@codesourcery.com>
5453
5454 * target.c (gomp_unmap_vars_internal): Remove unnecessary forcing of
5455 finalization for detach operation.
5456 * testsuite/libgomp.oacc-c-c++-common/structured-detach-underflow.c:
5457 New test.
5458
5459 2020-07-23 Tobias Burnus <tobias@codesourcery.com>
5460
5461 * configure.ac: Add OMP_DEPEND_KIND and OMP_INT128_SIZE.
5462 * libgomp_f.h.in (omp_check_defines): Check whether
5463 sizeof of determined Fortran kind and C typedef match.
5464 * omp_lib.f90.in: Add omp_depened_kind.
5465 * omp_lib.h.in: Likewise; fix omp_alloctrait_key_kind.
5466 * configure: Regenerate.
5467 * Makefile.in: Regenerate.
5468 * testsuite/Makefile.in: Regenerate.
5469
5470 2020-07-22 Tobias Burnus <tobias@codesourcery.com>
5471
5472 * testsuite/libgomp.c-c++-common/critical-hint-1.c: New; moved from
5473 gcc/testsuite/c-c++-common/gomp/.
5474 * testsuite/libgomp.c-c++-common/critical-hint-2.c: Likewise.
5475 * testsuite/libgomp.fortran/critical-hint-1.f90: New; moved
5476 from gcc/testsuite/gfortran.dg/gomp/.
5477 * testsuite/libgomp.fortran/critical-hint-2.f90: Likewise.
5478
5479 2020-07-22 Tobias Burnus <tobias@codesourcery.com>
5480
5481 * omp_lib.f90.in: Add omp_sync_hint_* and omp_sync_hint_kind.
5482 * omp_lib.h.in: Likewise.
5483
5484 2020-07-18 H.J. Lu <hjl.tools@gmail.com>
5485
5486 PR target/95620
5487 * testsuite/libgomp.c/pr95620.c: New test.
5488
5489 2020-07-16 Julian Brown <julian@codesourcery.com>
5490 Thomas Schwinge <thomas@codesourcery.com>
5491
5492 * testsuite/libgomp.oacc-fortran/attach-descriptor-1.f90: New test.
5493 * testsuite/libgomp.oacc-fortran/attach-descriptor-2.f90: New test.
5494
5495 2020-07-15 Tobias Burnus <tobias@codesourcery.com>
5496
5497 * testsuite/libgomp.fortran/alloc-1.F90: Use c_size_t to
5498 avoid conversion on 32bit systems from 32bit to 64bit due
5499 to -fdefault-integer-8.
5500
5501 2020-07-15 Tobias Burnus <tobias@codesourcery.com>
5502
5503 * testsuite/libgomp.fortran/struct-elem-map-1.f90: Remove unused
5504 variables; add character(kind=4) tests; update TODO comment.
5505
5506 2020-07-15 Tobias Burnus <tobias@codesourcery.com>
5507
5508 * allocator.c: Add ialias for omp_init_allocator and
5509 omp_destroy_allocator.
5510 * configure.ac: Set INTPTR_T_KIND.
5511 * configure: Regenerate.
5512 * Makefile.in: Regenerate.
5513 * testsuite/Makefile.in: Regenerate.
5514 * fortran.c (omp_init_allocator_, omp_destroy_allocator_,
5515 omp_set_default_allocator_, omp_get_default_allocator_): New
5516 functions and ialias_redirect.
5517 * icv.c: Add ialias for omp_set_default_allocator and
5518 omp_get_default_allocator.
5519 * libgomp.map (OMP_5.0.1): Add omp_init_allocator_,
5520 omp_destroy_allocator_, omp_set_default_allocator_ and
5521 omp_get_default_allocator_.
5522 * omp_lib.f90.in: Add allocator traits parameters, declare
5523 allocator routines and add related kind parameters.
5524 * omp_lib.h.in: Likewise.
5525 * testsuite/libgomp.c-c++-common/alloc-2.c: Fix sizeof.
5526 * testsuite/libgomp.fortran/alloc-1.F90: New test.
5527 * testsuite/libgomp.fortran/alloc-2.F90: New test.
5528 * testsuite/libgomp.fortran/alloc-3.F: New test.
5529 * testsuite/libgomp.fortran/alloc-4.f90: New test.
5530 * testsuite/libgomp.fortran/alloc-5.f90: New test.
5531
5532 2020-07-14 Tom de Vries <tom@codesourcery.com>
5533 Cesar Philippidis <cesar@codesourcery.com>
5534 Thomas Schwinge <thomas@codesourcery.com>
5535 Kwok Cheung Yeung <kcy@codesourcery.com>
5536
5537 * oacc-init.c (acc_init_state_lock, acc_init_state, acc_init_thread):
5538 New variable.
5539 (acc_init_1): Set acc_init_thread to pthread_self (). Set
5540 acc_init_state to initializing at the start, and to initialized at the
5541 end.
5542 (self_initializing_p): New function.
5543 (acc_get_device_type): Return acc_device_none if called by thread that
5544 is currently executing acc_init_1.
5545 * libgomp.texi (acc_get_device_type): Update documentation.
5546 (Implementation Status and Implementation-Defined Behavior): Likewise.
5547 * testsuite/libgomp.oacc-c-c++-common/acc_prof-init-2.c: New.
5548
5549 2020-07-14 David Edelsohn <dje.gcc@gmail.com>
5550
5551 * config/t-aix: Set BITS from compiler cpp macro.
5552
5553 2020-07-14 Tobias Burnus <tobias@codesourcery.com>
5554
5555 * testsuite/libgomp.fortran/struct-elem-map-1.f90: New test.
5556
5557 2020-07-14 Tobias Burnus <tobias@codesourcery.com>
5558
5559 PR fortran/67311
5560 * testsuite/libgomp.fortran/target-map-1.f90: New test.
5561
5562 2020-07-14 Jakub Jelinek <jakub@redhat.com>
5563
5564 * testsuite/libgomp.c/loop-21.c: New test.
5565
5566 2020-07-13 Julian Brown <julian@codesourcery.com>
5567 Thomas Schwinge <thomas@codesourcery.com>
5568
5569 * testsuite/libgomp.oacc-fortran/dynamic-pointer-1.f90: New test.
5570
5571 2020-07-10 Julian Brown <julian@codesourcery.com>
5572 Thomas Schwinge <thomas@codesourcery.com>
5573
5574 * libgomp.h (struct splay_tree_key_s): Change virtual_refcount to
5575 dynamic_refcount.
5576 (struct gomp_device_descr): Remove GOMP_MAP_VARS_OPENACC_ENTER_DATA.
5577 * oacc-mem.c (acc_map_data): Substitute virtual_refcount for
5578 dynamic_refcount.
5579 (acc_unmap_data): Update comment.
5580 (goacc_map_var_existing, goacc_enter_datum): Adjust for
5581 dynamic_refcount semantics.
5582 (goacc_exit_datum_1, goacc_exit_datum): Re-add some error checking.
5583 Adjust for dynamic_refcount semantics.
5584 (goacc_enter_data_internal): Implement "present" case of dynamic
5585 memory-map handling here. Update "non-present" case for
5586 dynamic_refcount semantics.
5587 (goacc_exit_data_internal): Use goacc_exit_datum_1.
5588 * target.c (gomp_map_vars_internal): Remove
5589 GOMP_MAP_VARS_OPENACC_ENTER_DATA handling. Update for dynamic_refcount
5590 handling.
5591 (gomp_unmap_vars_internal): Remove virtual_refcount handling.
5592 (gomp_load_image_to_device): Substitute dynamic_refcount for
5593 virtual_refcount.
5594 * testsuite/libgomp.oacc-c-c++-common/pr92843-1.c: Remove XFAILs.
5595 * testsuite/libgomp.oacc-c-c++-common/refcounting-1.c: New test.
5596 * testsuite/libgomp.oacc-c-c++-common/refcounting-2.c: New test.
5597 * testsuite/libgomp.oacc-c-c++-common/struct-3-1-1.c: New test.
5598 * testsuite/libgomp.oacc-fortran/deep-copy-6.f90: Remove XFAILs and
5599 trace output.
5600 * testsuite/libgomp.oacc-fortran/deep-copy-6-no_finalize.F90: Remove
5601 trace output.
5602 * testsuite/libgomp.oacc-fortran/dynamic-incr-structural-1.f90: New
5603 test.
5604 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-4.c:
5605 Remove stale comment.
5606 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-1-1.f90: Remove XFAILs.
5607 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-1-2.F90: Likewise.
5608 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-2-1.f90: Likewise.
5609 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-2-2.f90: Likewise.
5610 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-3-1.f90: Likewise.
5611 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-4-1.f90: Adjust XFAIL.
5612
5613 2020-07-10 Julian Brown <julian@codesourcery.com>
5614 Thomas Schwinge <thomas@codesourcery.com>
5615
5616 * oacc-mem.c (goacc_map_var_existing): New function.
5617 (goacc_enter_datum): Use above function.
5618 (goacc_exit_datum_1): New function.
5619 (goacc_exit_datum): Use above function.
5620
5621 2020-07-09 Julian Brown <julian@codesourcery.com>
5622 Thomas Schwinge <thomas@codesourcery.com>
5623
5624 PR middle-end/95270
5625 * testsuite/libgomp.oacc-c-c++-common/pr95270-1.c: New test.
5626 * testsuite/libgomp.oacc-c-c++-common/pr95270-2.c: New test.
5627
5628 2020-07-09 Julian Brown <julian@codesourcery.com>
5629
5630 * oacc-mem.c (find_group_last): Group data-movement clauses
5631 (GOMP_MAP_TO_PSET, GOMP_MAP_TO, etc.) together with a subsequent
5632 GOMP_MAP_ATTACH. Allow standalone GOMP_MAP_ATTACH also.
5633
5634 2020-07-09 Jakub Jelinek <jakub@redhat.com>
5635
5636 * testsuite/libgomp.c/loop-19.c: New test.
5637 * testsuite/libgomp.c/loop-20.c: New test.
5638
5639 2020-07-09 Jakub Jelinek <jakub@redhat.com>
5640
5641 * omp.h.in (omp_alloctrait_value_t): Change omp_atv_default from
5642 2 to -1. Add omp_atv_serialized and define omp_atv_sequential using
5643 it. Remove __omp_alloctrait_value_max__.
5644 * allocator.c (omp_init_allocator): Handle omp_atv_default for
5645 omp_atk_alignment and omp_atk_pool_size.
5646
5647 2020-07-03 Thomas Schwinge <thomas@codesourcery.com>
5648
5649 * oacc-mem.c (goacc_exit_data_internal): Revert always-copyfrom
5650 behavior for 'GOMP_MAP_FORCE_FROM'.
5651 * testsuite/libgomp.oacc-c-c++-common/pr92843-1.c: Adjust XFAIL.
5652
5653 2020-07-03 Thomas Schwinge <thomas@codesourcery.com>
5654
5655 * oacc-mem.c (goacc_exit_data_internal): Remove
5656 'GOMP_MAP_ALWAYS_FROM' handling.
5657
5658 2020-06-30 Thomas Schwinge <thomas@codesourcery.com>
5659
5660 * testsuite/libgomp.oacc-c-c++-common/pr85381-2.c: Replace fragile
5661 'scan-assembler' with 'scan-offload-rtl'.
5662 * testsuite/libgomp.oacc-c-c++-common/pr85381-3.c: Likewise.
5663 * testsuite/libgomp.oacc-c-c++-common/pr85381-4.c: Likewise.
5664 * testsuite/libgomp.oacc-c-c++-common/pr85381-5.c: Likewise.
5665 * testsuite/libgomp.oacc-c-c++-common/pr85381.c: Likewise.
5666
5667 2020-06-30 Thomas Schwinge <thomas@codesourcery.com>
5668
5669 * target.c (gomp_map_vars_existing): Assert 'kind !=
5670 GOMP_MAP_ATTACH'.
5671 (gomp_map_vars_internal): Clean up.
5672
5673 2020-06-27 Jakub Jelinek <jakub@redhat.com>
5674
5675 * testsuite/libgomp.c/loop-17.c: New test.
5676 * testsuite/libgomp.c/loop-18.c: New test.
5677
5678 2020-06-26 Marek Polacek <polacek@redhat.com>
5679
5680 * testsuite/libgomp.c++/atomic-3.C: Use -std=gnu++14.
5681
5682 2020-06-23 Alexandre Oliva <oliva@adacore.com>
5683
5684 * testsuite/lib/libgomp.exp: Load gcc lib scanoffload.exp.
5685 * testsuite/lib/libgomp-dg.exp: Drop now-obsolete -save-temps.
5686
5687 2020-06-22 David Edelsohn <dje.gcc@gmail.com>
5688
5689 * Makefile.am: Use -include.
5690 * Makefile.in: Regenerate.
5691
5692 2020-06-21 David Edelsohn <dje.gcc@gmail.com>
5693
5694 * Makefile.am (tmake_file): Build and install AIX-style FAT libraries.
5695 * Makefile.in: Regenerate
5696 * configure.ac (tmake_file): Substitute.
5697 * configure: Regenerate.
5698 * configure.tgt (powerpc-ibm-aix*): Define tmake_file.
5699 * config/t-aix: New file.
5700
5701 2020-06-17 Thomas Schwinge <thomas@codesourcery.com>
5702
5703 PR lto/94848
5704 * testsuite/libgomp.fortran/use_device_ptr-optional-3.f90: Add
5705 'dg-do run'.
5706
5707 2020-06-17 Andrew Stubbs <ams@codesourcery.com>
5708
5709 * plugin/plugin-gcn.c (init_environment_variables): Use ".so.1"
5710 variant for HSA_RUNTIME_LIB name.
5711 (find_executable_symbol_1): Delete.
5712 (find_executable_symbol): Delete.
5713 (init_kernel_properties): Add ".kd" suffix to symbol names.
5714 (find_load_offset): Delete.
5715 (create_and_finalize_hsa_program): Remove relocation handling.
5716
5717 2020-06-16 Tobias Burnus <tobias@codesourcery.com>
5718
5719 * testsuite/libgomp.oacc-fortran/routine-10.f90: New test.
5720
5721 2020-06-08 Tobias Burnus <tobias@codesourcery.com>
5722
5723 PR lto/94848
5724 PR middle-end/95551
5725 * testsuite/libgomp.fortran/target-var.f90: New test.
5726
5727 2020-06-05 Thomas Schwinge <thomas@codesourcery.com>
5728 Julian Brown <julian@codesourcery.com>
5729
5730 * oacc-mem.c (goacc_exit_data_internal) <GOMP_MAP_STRUCT>: Explain
5731 special handling.
5732
5733 2020-06-05 Thomas Schwinge <thomas@codesourcery.com>
5734 Julian Brown <julian@codesourcery.com>
5735
5736 * oacc-mem.c (goacc_exit_data_internal) <GOMP_MAP_STRUCT>:
5737 Simplify.
5738
5739 2020-06-05 Julian Brown <julian@codesourcery.com>
5740
5741 * testsuite/libgomp.oacc-c-c++-common/struct-copyout-1.c: New test.
5742 * testsuite/libgomp.oacc-c-c++-common/struct-copyout-2.c: New test.
5743
5744 2020-06-04 Thomas Schwinge <thomas@codesourcery.com>
5745
5746 * oacc-mem.c (goacc_exit_data_internal) <GOMP_MAP_STRUCT>:
5747 Evaluate 'copyfrom' individually for each entry.
5748 * testsuite/libgomp.oacc-c-c++-common/struct-1.c: Update.
5749
5750 2020-06-04 Thomas Schwinge <thomas@codesourcery.com>
5751
5752 * oacc-mem.c (goacc_exit_data_internal) <GOMP_MAP_STRUCT>:
5753 Evaluate 'finalize' individually for each entry.
5754 * testsuite/libgomp.oacc-c-c++-common/struct-1.c: New file.
5755 * testsuite/libgomp.oacc-c-c++-common/struct-refcount-1.c: Remove
5756 file.
5757
5758 2020-06-04 Thomas Schwinge <thomas@codesourcery.com>
5759
5760 * testsuite/libgomp.oacc-c-c++-common/deep-copy-7.c: Fix 'sizeof'
5761 usage.
5762 * testsuite/libgomp.oacc-c-c++-common/deep-copy-8.c: Likewise.
5763
5764 2020-06-04 Thomas Schwinge <thomas@codesourcery.com>
5765 Julian Brown <julian@codesourcery.com>
5766
5767 * oacc-mem.c (goacc_exit_datum): Repair 'is_tgt_unmapped'
5768 checking.
5769 (acc_unmap_data, goacc_exit_data_internal): Restore
5770 'is_tgt_unmapped' checking.
5771 * testsuite/libgomp.oacc-c-c++-common/struct-refcount-1.c: New
5772 file.
5773 * testsuite/libgomp.oacc-fortran/deep-copy-6.f90: Adjust.
5774 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-1-1.f90: Likewise.
5775 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-2-1.f90: Likewise.
5776 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-2-2.f90: Likewise.
5777 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-3-1.f90: Likewise.
5778 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-4-1.f90: Likewise.
5779
5780 2020-06-04 Thomas Schwinge <thomas@codesourcery.com>
5781 Julian Brown <julian@codesourcery.com>
5782
5783 * oacc-mem.c (acc_unmap_data): Don't open-code 'gomp_remove_var'.
5784
5785 2020-06-04 Thomas Schwinge <thomas@codesourcery.com>
5786
5787 PR libgomp/92854
5788 * oacc-mem.c (acc_unmap_data): Remove 'tgt' reference counting.
5789
5790 2020-06-04 Thomas Schwinge <thomas@codesourcery.com>
5791
5792 PR libgomp/92854
5793 * testsuite/libgomp.oacc-c-c++-common/pr92854-1.c: Extend some
5794 more.
5795
5796 2020-06-04 Thomas Schwinge <thomas@codesourcery.com>
5797 Julian Brown <julian@codesourcery.com>
5798
5799 * oacc-mem.c (goacc_enter_datum): Use 'tgt' returned from
5800 'gomp_map_vars'.
5801 (acc_map_data): Clean up accordingly.
5802
5803 2020-06-04 Thomas Schwinge <thomas@codesourcery.com>
5804
5805 * testsuite/libgomp.oacc-fortran/deep-copy-6.f90: XFAIL behavior
5806 of over-eager 'finalize' clause.
5807 * testsuite/libgomp.oacc-fortran/deep-copy-6-no_finalize.F90: New
5808 file.
5809 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-1-1.f90: Likewise.
5810 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-1-2.F90: Likewise.
5811 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-2-1.f90: Likewise.
5812 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-2-2.f90: Likewise.
5813 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-3-1.f90: Likewise.
5814 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-3-2.f90: Likewise.
5815 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-4-1.f90: Likewise.
5816 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-4-2.f90: Likewise.
5817
5818 2020-06-04 Thomas Schwinge <thomas@codesourcery.com>
5819
5820 * oacc-mem.c (goacc_exit_data_internal): Unlock on error path.
5821
5822 2020-06-04 Julian Brown <julian@codesourcery.com>
5823
5824 * oacc-mem.c (acc_attach_async): Add missing gomp_mutex_unlock on
5825 error path.
5826 (goacc_detach_internal): Likewise.
5827
5828 2020-06-04 Thomas Schwinge <thomas@codesourcery.com>
5829
5830 * testsuite/libgomp.oacc-fortran/error_stop-1.f: Initialize before
5831 the checkpoint.
5832 * testsuite/libgomp.oacc-fortran/error_stop-2.f: Likewise.
5833 * testsuite/libgomp.oacc-fortran/error_stop-3.f: Likewise.
5834 * testsuite/libgomp.oacc-fortran/stop-1.f: Likewise.
5835 * testsuite/libgomp.oacc-fortran/stop-2.f: Likewise.
5836 * testsuite/libgomp.oacc-fortran/stop-3.f: Likewise.
5837
5838 2020-06-02 Jakub Jelinek <jakub@redhat.com>
5839
5840 * allocator.c (omp_free): Fix up build if HAVE_SYNC_BUILTINS is not
5841 defined.
5842
5843 2020-05-30 Jakub Jelinek <jakub@redhat.com>
5844
5845 * testsuite/libgomp.c-c++-common/alloc-4.c: New test.
5846
5847 2020-05-30 Jakub Jelinek <jakub@redhat.com>
5848
5849 * allocator.c (omp_alloc): For size == 0, return NULL early.
5850
5851 2020-05-29 H.J. Lu <hjl.tools@gmail.com>
5852
5853 PR bootstrap/95413
5854 * configure: Regenerated.
5855
5856 2020-05-23 Thomas Koenig <tkoenig@gcc.gnu.org>
5857
5858 PR libfortran/95191
5859 * testsuite/libgomp.fortran/async_io_9.f90: New test.
5860
5861 2020-05-19 Jakub Jelinek <jakub@redhat.com>
5862
5863 * omp.h.in (omp_uintptr_t): New typedef.
5864 (__GOMP_UINTPTR_T_ENUM): Define.
5865 (omp_memspace_handle_t, omp_allocator_handle_t, omp_alloctrait_key_t,
5866 omp_alloctrait_value_t, omp_alloctrait_t): New typedefs.
5867 (__GOMP_DEFAULT_NULL_ALLOCATOR): Define.
5868 (omp_init_allocator, omp_destroy_allocator, omp_set_default_allocator,
5869 omp_get_default_allocator, omp_alloc, omp_free): Declare.
5870 * libgomp.h (struct gomp_team_state): Add def_allocator field.
5871 (gomp_def_allocator): Declare.
5872 * libgomp.map (OMP_5.0.1): Export omp_set_default_allocator,
5873 omp_get_default_allocator, omp_init_allocator, omp_destroy_allocator,
5874 omp_alloc and omp_free.
5875 * team.c (gomp_team_start): Copy over ts.def_allocator.
5876 * env.c (gomp_def_allocator): New variable.
5877 (parse_wait_policy): Adjust function comment.
5878 (parse_allocator): New function.
5879 (handle_omp_display_env): Print OMP_ALLOCATOR.
5880 (initialize_env): Call parse_allocator.
5881 * Makefile.am (libgomp_la_SOURCES): Add allocator.c.
5882 * allocator.c: New file.
5883 * icv.c (omp_set_default_allocator, omp_get_default_allocator): New
5884 functions.
5885 * testsuite/libgomp.c-c++-common/alloc-1.c: New test.
5886 * testsuite/libgomp.c-c++-common/alloc-2.c: New test.
5887 * testsuite/libgomp.c-c++-common/alloc-3.c: New test.
5888 * Makefile.in: Regenerated.
5889
5890 2020-05-15 H.J. Lu <hongjiu.lu@intel.com>
5891
5892 PR bootstrap/95147
5893 * configure: Regenerated.
5894
5895 2020-05-14 Thomas Koenig <tkoenig@gcc.gnu.org>
5896
5897 PR libfortran/95119
5898 * testsuite/libgomp.fortran/close_errors_1.f90: New test.
5899
5900 2020-05-14 H.J. Lu <hongjiu.lu@intel.com>
5901
5902 * configure: Regenerated.
5903
5904 2020-05-14 Jakub Jelinek <jakub@redhat.com>
5905
5906 * testsuite/libgomp.c-c++-common/target-40.c: New test.
5907
5908 2020-05-13 Tobias Burnus <tobias@codesourcery.com>
5909
5910 PR fortran/94690
5911 * testsuite/libgomp.fortran/pr66199-3.f90: New.
5912 * testsuite/libgomp.fortran/pr66199-4.f90: New.
5913 * testsuite/libgomp.fortran/pr66199-5.f90: New.
5914 * testsuite/libgomp.fortran/pr66199-6.f90: New.
5915 * testsuite/libgomp.fortran/pr66199-7.f90: New.
5916 * testsuite/libgomp.fortran/pr66199-8.f90: New.
5917 * testsuite/libgomp.fortran/pr66199-9.f90: New.
5918
5919 2020-05-12 Jakub Jelinek <jakub@redhat.com>
5920
5921 * testsuite/libgomp.c/target-39.c: New test.
5922
5923 2020-04-29 Thomas Schwinge <thomas@codesourcery.com>
5924
5925 * config/accel/openacc.f90 (acc_device_current): Set to '-1'.
5926 * openacc.f90 (acc_device_current): Likewise.
5927 * openacc.h (acc_device_current): Likewise.
5928 * openacc_lib.h (acc_device_current): Likewise.
5929
5930 PR target/94282
5931 * testsuite/libgomp.c-c++-common/function-not-offloaded.c: Remove
5932 'dg-allow-blank-lines-in-output'.
5933
5934 * oacc-init.c (get_openacc_name): Handle 'gcn'.
5935 * testsuite/lib/libgomp.exp
5936 (offload_target_to_openacc_device_type) [amdgcn*]: Return
5937 'radeon'. Adjust all users.
5938 (check_effective_target_openacc_amdgcn_accel_present): Rename
5939 to...
5940 (check_effective_target_openacc_radeon_accel_present): ... this.
5941 Adjust all users.
5942 (check_effective_target_openacc_amdgcn_accel_selected): Rename to...
5943 (check_effective_target_openacc_radeon_accel_selected): ... this.
5944 Adjust all users.
5945
5946 * testsuite/libgomp.fortran/use_device_ptr-optional-2.f90: Add
5947 'dg-do run'.
5948
5949 2020-04-23 Andrew Stubbs <ams@codesourcery.com>
5950
5951 PR other/94629
5952
5953 * plugin/plugin-gcn.c (init_hsa_context): Check return value from
5954 hsa_iterate_agents.
5955 (GOMP_OFFLOAD_init_device): Check return values from both calls to
5956 hsa_agent_iterate_regions.
5957
5958 2020-04-20 Thomas Schwinge <thomas@codesourcery.com>
5959
5960 PR middle-end/94635
5961 * testsuite/libgomp.fortran/target-enter-data-2.F90: Add 'dg-do
5962 run'.
5963
5964 2020-04-20 Tobias Burnus <tobias@codesourcery.com>
5965
5966 PR middle-end/94120
5967 * testsuite/libgomp.oacc-c++/declare-pr94120.C: Fix 'declare copy(out)'
5968 test case.
5969
5970 2020-04-17 Tobias Burnus <tobias@codesourcery.com>
5971
5972 PR middle-end/94635
5973 * testsuite/libgomp.fortran/target-enter-data-2.F90: New.
5974
5975 2020-04-13 Thomas Schwinge <thomas@codesourcery.com>
5976
5977 PR libgomp/92843
5978 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-1-lib.c:
5979 Rename to...
5980 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-1-lib.c:
5981 ... this.
5982 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-1.c:
5983 Rename to...
5984 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-1.c:
5985 ... this.
5986 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-2-lib.c:
5987 Rename to...
5988 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-2-lib.c:
5989 ... this.
5990 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-2.c:
5991 Rename to...
5992 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-2.c:
5993 ... this.
5994 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-3-lib.c:
5995 Rename to...
5996 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-3-lib.c:
5997 ... this.
5998 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-3.c:
5999 Rename to...
6000 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-3.c:
6001 ... this.
6002 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-4-lib.c:
6003 Rename to...
6004 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-4-lib.c:
6005 ... this.
6006 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-4.c:
6007 Rename to...
6008 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-4.c:
6009 ... this.
6010 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-5-lib.c:
6011 Rename to...
6012 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-5-lib.c:
6013 ... this.
6014 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-5.c:
6015 Rename to...
6016 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-5.c:
6017 ... this.
6018 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-6-lib.c:
6019 Rename to...
6020 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-6-lib.c:
6021 ... this.
6022 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-6.c:
6023 Rename to...
6024 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-6.c:
6025 ... this.
6026 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-7-lib.c:
6027 Rename to...
6028 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-7-lib.c:
6029 ... this.
6030 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-7.c:
6031 Rename to...
6032 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-7.c:
6033 ... this.
6034 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-8-lib.c:
6035 Rename to...
6036 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-8-lib.c:
6037 ... this.
6038 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-8.c::
6039 Rename to...
6040 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-8.c:
6041 ... this.
6042
6043 2020-04-10 Julian Brown <julian@codesourcery.com>
6044 Thomas Schwinge <thomas@codesourcery.com>
6045
6046 PR libgomp/92843
6047 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-1-lib.c:
6048 New file.
6049 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-1.c:
6050 Likewise.
6051 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-2-lib.c:
6052 Likewise.
6053 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-2.c:
6054 Likewise.
6055 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-3-lib.c:
6056 Likewise.
6057 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-3.c:
6058 Likewise.
6059 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-4-lib.c:
6060 Likewise.
6061 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-4.c:
6062 Likewise.
6063 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-5-lib.c:
6064 Likewise.
6065 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-5.c:
6066 Likewise.
6067 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-6-lib.c:
6068 Likewise.
6069 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-6.c:
6070 Likewise.
6071 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-7-lib.c:
6072 Likewise.
6073 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-7.c:
6074 Likewise.
6075 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-8-lib.c:
6076 Likewise.
6077 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-8.c:
6078 Likewise.
6079
6080 2020-04-10 Thomas Schwinge <thomas@codesourcery.com>
6081
6082 * testsuite/libgomp.fortran/target-enter-data-1.f90: Add 'dg-do
6083 run'.
6084
6085 2020-04-08 Tobias Burnus <tobias@codesourcery.com>
6086
6087 PR middle-end/94120
6088 * libgomp.oacc-c++/declare-pr94120.C: New.
6089
6090 2020-04-06 Maciej W. Rozycki <macro@wdc.com>
6091
6092 * configure.ac: Add testsuite/libgomp-site-extra.exp to output
6093 files.
6094 * configure: Regenerate.
6095 * testsuite/libgomp-site-extra.exp.in: New file.
6096 * testsuite/libgomp-test-support.exp.in (GCC_UNDER_TEST): Remove
6097 variable.
6098 * testsuite/Makefile.am (EXTRA_DEJAGNU_SITE_CONFIG): New
6099 variable.
6100 * testsuite/Makefile.in: Regenerate.
6101
6102 2020-04-03 Thomas Schwinge <thomas@codesourcery.com>
6103
6104 PR tree-optimization/89713
6105 PR c/94392
6106 * testsuite/libgomp.oacc-c-c++-common/pr85381-2.c: Again expect
6107 'bar.sync'.
6108 * testsuite/libgomp.oacc-c-c++-common/pr85381-4.c: Likewise.
6109
6110 2020-03-31 Tobias Burnus <tobias@codesourcery.com>
6111
6112 * target.c (GOMP_target_enter_exit_data): Handle PSET/MAP_POINTER.
6113 * testsuite/libgomp.fortran/target-enter-data-1.f90: New.
6114
6115 2020-03-24 Tobias Burnus <tobias@codesourcery.com>
6116
6117 PR libgomp/81689
6118 * testsuite/libgomp.c/target-link-1.c: Remove xfail.
6119
6120 2020-03-20 Tobias Burnus <tobias@codesourcery.com>
6121
6122 PR libgomp/94251
6123 * target.c (gomp_load_image_to_device): Fix link
6124 variable handling.
6125
6126 2020-03-19 Jakub Jelinek <jakub@redhat.com>
6127
6128 PR c++/93931
6129 * testsuite/libgomp.c++/pr93931.C: New test.
6130
6131 2020-03-19 Tobias Burnus <tobias@codesourcery.com>
6132
6133 * testsuite/libgomp.c-c++-common/function-not-offloaded.c: Add
6134 dg-allow-blank-lines-in-output.
6135
6136 2020-03-18 Julian Brown <julian@codesourcery.com>
6137 Tobias Burnus <tobias@codesourcery.com>
6138
6139 * testsuite/libgomp.oacc-fortran/atomic_capture-1.f90: Really make
6140 it work concurrently.
6141
6142 2020-03-18 Tobias Burnus <tobias@codesourcery.com>
6143
6144 * testsuite/libgomp.oacc-c++/firstprivate-mappings-1.C: Add
6145 #define DO_LONG_DOUBLE; set to 1, except for nvidia + gcn.
6146 * libgomp.oacc-c-c++-common/firstprivate-mappings-1.c: Likewise.
6147
6148 2020-03-14 Jakub Jelinek <jakub@redhat.com>
6149
6150 PR middle-end/93566
6151 * testsuite/libgomp.c/pr93566.c: New test.
6152
6153 2020-02-21 Frederik Harwath <frederik@codesourcery.com>
6154
6155 * testsuite/libgomp.oacc-fortran/acc_get_property.f90: Adapt to
6156 changes from 2020-02-19, i.e. use integer(c_size_t) instead of
6157 integer(acc_device_property) for the type of the return value of
6158 acc_get_property.
6159
6160 2020-02-19 Tobias Burnus <tobias@codesourcery.com>
6161
6162 * .gitattributes: New; whitespace handling for Fortran's openacc_lib.h.
6163 * config/accel/openacc.f90 (openacc_kinds): Add acc_device_current.
6164 (openacc_internal, acc_on_device_h): Fix argument name; minor cleanup.
6165 * libgomp.texi (Enabling OpenACC): No longer mark as experimental.
6166 (acc_set_device_num): Fix Fortran argument name, use same name for C.
6167 (acc_get_property): Update Fortran interface to post-OpenACC 3.0
6168 corrections; add note about the previous interface and named constant.
6169 (OpenACC library and environment variables): Fix two typos.
6170 * openacc.f90: Use for all procedures the argument names from the spec
6171 as for …_h they are user visible.
6172 (openacc_kinds): Rename acc_device_property to
6173 acc_device_property_kinds and change value to int32 ; and update users.
6174 Re-add acc_device_property for for backward compatibility.
6175 (acc_get_property_string_h): Clean up as acc_device_property_kind
6176 changed.
6177 (acc_get_property_h): Likewise and return c_size_t instead of
6178 acc_device_property.
6179 (openacc): Also export acc_device_property_kinds.
6180 (acc_async_test_h, acc_async_test_all_h, acc_on_device_h,
6181 acc_is_present_32_h, acc_is_present_64_h): Simplify logical-return-value
6182 handling; check against /= 0 instead of == 1 to match C.
6183 * openacc_lib.h: Use for all procedures the argument names from the spec
6184 as for …_h they are user visible. Place !GCC$ into the first column to
6185 be active also for fixed-form souce form.
6186 (acc_device_current, acc_device_property_kind, acc_device_property,
6187 acc_property_memory, acc_property_free_memory, acc_property_name,
6188 acc_property_vendor, acc_property_driver): New named constants.
6189 (acc_get_property, acc_get_property_string): New generic interface.
6190
6191 2020-02-13 Frederik Harwath <frederik@codesourcery.com>
6192
6193 PR libgomp/93481
6194 * plugin/plugin-nvptx.c: Remove GOMP_OFFLOAD_async_run stub.
6195 * target.c (gomp_load_plugin_for_device): Make "async_run" loading
6196 optional.
6197 (gomp_target_task_fn): Assert "devicep->async_run_func".
6198 (clear_unsupported_flags): New function to remove unsupported flags
6199 (right now only GOMP_TARGET_FLAG_NOWAIT) that can be be ignored.
6200 (GOMP_target_ext): Apply clear_unsupported_flags to flags.
6201 * testsuite/libgomp.c/target-33.c:
6202 Remove xfail for offload_target_nvptx.
6203 * testsuite/libgomp.c/target-34.c: Likewise.
6204
6205 2020-02-10 Frederik Harwath <frederik@codesourcery.com>
6206
6207 * testsuite/libgomp.c/target-33.c: Add xfail for execution on
6208 offload_target_nvptx, cf. https://gcc.gnu.org/PR81688.
6209 * testsuite/libgomp.c/target-34.c: Likewise.
6210 * testsuite/libgomp.c/target-link-1.c: Add xfail for
6211 offload_target_nvptx, cf. https://gcc.gnu.org/PR81689.
6212
6213 2020-02-09 Jakub Jelinek <jakub@redhat.com>
6214
6215 * testsuite/libgomp.c/target-38.c: New test.
6216
6217 2020-02-06 Jakub Jelinek <jakub@redhat.com>
6218
6219 PR libgomp/93515
6220 * testsuite/libgomp.c-c++-common/pr93515.c: New test.
6221
6222 2020-02-05 Tobias Burnus <tobias@codesourcery.com>
6223
6224 * testsuite/lib/libgomp.exp
6225 (check_effective_target_offload_target_nvptx): Pass flags as 'options'
6226 and not as 'source' argument to libgomp_target_compile.
6227
6228 2020-02-03 Andrew Stubbs <ams@codesourcery.com>
6229
6230 * plugin/plugin-gcn.c (EF_AMDGPU_MACH_AMDGCN_GFX801): Remove.
6231 (gcn_gfx801_s): Remove.
6232 (isa_hsa_name): Remove gfx801.
6233 (isa_gcc_name): Remove gfx801/carizzo.
6234 (isa_code): Remove gfx801.
6235
6236 2020-02-03 Julian Brown <julian@codesourcery.com>
6237 Tobias Burnus <tobias@codesourcery.com>
6238
6239 * libgomp.texi (OpenACC Runtime Library Routines): Document *_async
6240 and *_finalize variants; document acc_attach and acc_detach; update
6241 references from OpenACC 2.0 to 2.6.
6242 * openacc.f90 (openacc_version): Update to 201711.
6243 * openacc_lib.h (openacc_version): Update to 201711.
6244 * testsuite/libgomp.oacc-fortran/openacc_version-1.f: Update expected
6245 openacc_version to 201711.
6246 * testsuite/libgomp.oacc-fortran/openacc_version-2.f90: Likewise.
6247
6248 2020-01-31 Kwok Cheung Yeung <kcy@codesourcery.com>
6249
6250 * plugin/plugin-gcn.c (struct hsa_kernel_description): Add sgpr_count
6251 and vgpr_count fields.
6252 (struct kernel_info): Add a field for a hsa_kernel_description.
6253 (run_kernel): Reduce the number of threads/workers if the requested
6254 number would require too many VGPRs.
6255 (init_basic_kernel_info): Initialize description field with
6256 the hsa_kernel_description entry for the kernel.
6257
6258 2020-01-29 Tobias Burnus <tobias@codesourcery.com>
6259
6260 PR bootstrap/93409
6261 * plugin/configfrag.ac (enable_offload_targets): Skip
6262 HSA and GCN plugin besides -m32 also for -mx32.
6263 * configure: Regenerate.
6264
6265 2020-01-29 Frederik Harwath <frederik@codesourcery.com>
6266
6267 * oacc-init.c (name_of_acc_device_t): Handle acc_device_radeon.
6268
6269 2020-01-29 Frederik Harwath <frederik@codesourcery.com>
6270
6271 * plugin-gcn.c (struct agent_info): Add fields "name" and
6272 "vendor_name" ...
6273 (GOMP_OFFLOAD_init_device): ... and init from here.
6274 (struct hsa_context_info): Add field "driver_version_s" ...
6275 (init_hsa_contest): ... and init from here.
6276 (GOMP_OFFLOAD_openacc_get_property): Replace stub with a proper
6277 implementation.
6278 * testsuite/libgomp.oacc-c-c++-common/acc_get_property.c:
6279 Enable test execution for amdgcn and host offloading targets.
6280 * testsuite/libgomp.oacc-fortran/acc_get_property.f90: Likewise.
6281 * testsuite/libgomp.oacc-c-c++-common/acc_get_property-aux.c
6282 (expect_device_properties): Split function into ...
6283 (expect_device_string_properties): ... this new function ...
6284 (expect_device_memory): ... and this new function.
6285 * testsuite/libgomp.oacc-c-c++-common/acc_get_property-gcn.c:
6286 Add test.
6287
6288 2020-01-28 Julian Brown <julian@codesourcery.com>
6289
6290 * testsuite/libgomp.oacc-fortran/deep-copy-2.f90: Remove test from here.
6291 * testsuite/libgomp.oacc-fortran/deep-copy-3.f90: Don't use mixed
6292 component/non-component variable refs in a single directive.
6293 * testsuite/libgomp.oacc-fortran/classtypes-1.f95: Likewise.
6294
6295 2020-01-24 Maciej W. Rozycki <macro@wdc.com>
6296
6297 * configure.ac: Handle `--with-toolexeclibdir='.
6298 * Makefile.in: Regenerate.
6299 * aclocal.m4: Regenerate.
6300 * configure: Regenerate.
6301 * testsuite/Makefile.in: Regenerate.
6302
6303 2020-01-24 Frederik Harwath <frederik@codesourcery.com>
6304
6305 * testsuite/libgomp.oacc-c-c++-common/acc_get_property-aux.c
6306 (expect_device_properties): Remove "expected_free_mem" argument,
6307 change "expected_total_mem" argument type to size_t;
6308 change types of acc_get_property results to size_t,
6309 adapt format strings.
6310 * testsuite/libgomp.oacc-c-c++-common/acc_get_property.c:
6311 Use %zu instead of %zd to print size_t values.
6312 * testsuite/libgomp.oacc-c-c++-common/acc_get_property-2.c: Adapt and
6313 rename to ...
6314 * testsuite/libgomp.oacc-c-c++-common/acc_get_property-nvptx.c: ... this.
6315 * testsuite/libgomp.oacc-c-c++-common/acc_get_property-3.c: Adapt and
6316 rename to ...
6317 * testsuite/libgomp.oacc-c-c++-common/acc_get_property-host.c: ... this.
6318
6319 2020-01-23 Andrew Stubbs <ams@codesourcery.com>
6320
6321 * plugin/plugin-gcn.c (parse_target_attributes): Use correct mask for
6322 the device id.
6323
6324 2020-01-20 Andrew Stubbs <ams@codesourcery.com>
6325
6326 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Skip test on gcn.
6327 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c (main):
6328 Adjust test dimensions for amdgcn.
6329 * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c (main): Adjust
6330 gang/worker/vector expectations dynamically.
6331 * testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c
6332 (main): Likewise.
6333 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c (main): Likewise.
6334 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c (main): Likewise.
6335 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c (main): Likewise.
6336 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c (main): Likewise.
6337 * testsuite/libgomp.oacc-c-c++-common/loop-red-wv-1.c (main): Likewise.
6338 * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c (main): Likewise.
6339 * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c (main): Likewise.
6340 * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c (main): Likewise.
6341 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c
6342 (acc_gang): Recognise acc_device_radeon.
6343 (acc_worker): Likewise.
6344 (acc_vector): Likewise.
6345 (main): Set expectations for amdgcn.
6346 * testsuite/libgomp.oacc-c-c++-common/routine-gwv-1.c
6347 (main): Adjust gang/worker/vector expectations dynamically.
6348 * testsuite/libgomp.oacc-c-c++-common/routine-v-1.c (main): Likewise.
6349 * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c (main): Likewise.
6350 * testsuite/libgomp.oacc-c-c++-common/routine-wv-1.c (main): Likewise.
6351 * testsuite/libgomp.oacc-c-c++-common/routine-wv-2.c: Set expectations
6352 for amdgcn.
6353
6354 2020-01-17 Andrew Stubbs <ams@codesourcery.com>
6355
6356 * config/accel/openacc.f90 (openacc_kinds): Rename acc_device_gcn to
6357 acc_device_radeon.
6358 (openacc): Likewise.
6359 * openacc.f90 (openacc_kinds): Likewise.
6360 (openacc): Likewise.
6361 * openacc.h (acc_device_t): Likewise.
6362 * openacc_lib.h: Likewise.
6363 * testsuite/lib/libgomp.exp
6364 (check_effective_target_openacc_amdgcn_accel_present): Likewise.
6365 * testsuite/libgomp.oacc-c-c++-common/acc_prof-init-1.c
6366 (cb_compute_construct_end): Likewise.
6367 * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c
6368 (cb_enqueue_launch_start): Likewise.
6369 * testsuite/libgomp.oacc-c-c++-common/acc_prof-parallel-1.c
6370 (cb_enter_data_end): Likewise.
6371 (cb_exit_data_start): Likewise.
6372 (cb_exit_data_end): Likewise.
6373 (cb_compute_construct_end): Likewise.
6374 (cb_enqueue_launch_start): Likewise.
6375 (cb_enqueue_launch_end): Likewise.
6376 * testsuite/libgomp.oacc-c-c++-common/asyncwait-nop-1.c
6377 (main): Likewise.
6378
6379 2020-01-10 Thomas Schwinge <thomas@codesourcery.com>
6380
6381 * libgomp-plugin.h (enum goacc_property): New. Adjust all users
6382 to use this instead of 'enum gomp_device_property'.
6383 (GOMP_OFFLOAD_get_property): Rename to...
6384 (GOMP_OFFLOAD_openacc_get_property): ... this. Adjust all users.
6385 * libgomp.h (struct gomp_device_descr): Move
6386 'GOMP_OFFLOAD_openacc_get_property'...
6387 (struct acc_dispatch_t): ... here. Adjust all users.
6388 * plugin/plugin-hsa.c (GOMP_OFFLOAD_get_property): Remove.
6389
6390 * target.c (gomp_map_vars_internal)
6391 <GOMP_MAP_USE_DEVICE_PTR_IF_PRESENT>: Clean up/elaborate code
6392 paths.
6393
6394 2020-01-10 Jakub Jelinek <jakub@redhat.com>
6395
6396 PR libgomp/93219
6397 * libgomp.h (gomp_print_string): Change return type from void to int.
6398 * affinity-fmt.c (gomp_print_string): Likewise. Return true if
6399 not all characters have been written.
6400
6401 2020-01-08 Tobias Burnus <tobias@codesourcery.com>
6402
6403 * libgomp.texi: Fix typos, use https.
6404
6405 2020-01-03 Tobias Burnus <tobias@codesourcery.com>
6406
6407 * testsuite/libgomp.fortran/optional-map.f90: Add test for
6408 unallocated/disassociated actual arguments to nonallocatable/nonpointer
6409 dummy arguments; those are/shall be regarded as absent arguments.
6410 * testsuite/libgomp.fortran/use_device_ptr-optional-2.f90: Ditto.
6411 * testsuite/libgomp.fortran/use_device_ptr-optional-3.f90: New.
6412
6413 2020-01-01 Jakub Jelinek <jakub@redhat.com>
6414
6415 Update copyright years.
6416
6417 * libgomp.texi: Bump @copying's copyright year.
6418
6419 2019-12-31 Ayush Mittal <ayush.m@samsung.com>
6420
6421 PR libgomp/93065
6422 * oacc-init.c (goacc_runtime_deinitialize): New function.
6423
6424 2019-12-28 Jakub Jelinek <jakub@redhat.com>
6425
6426 PR bootstrap/93074
6427 * plugin/cuda/cuda.h (cuDeviceGetName, cuDriverGetVersion): Declare.
6428 (cuDeviceTotalMem, cuMemGetInfo): Likewise. Define to *_v2.
6429
6430 2019-12-22 Maciej W. Rozycki <macro@codesourcery.com>
6431 Frederik Harwath <frederik@codesourcery.com>
6432 Thomas Schwinge <tschwinge@codesourcery.com>
6433
6434 * libgomp.h (gomp_device_descr): Add `get_property_func' member.
6435 * libgomp-plugin.h (gomp_device_property_value): New union.
6436 (gomp_device_property_value): New prototype.
6437 * openacc.h (acc_device_t): Add `acc_device_current' enumeration
6438 constant.
6439 (acc_device_property_t): New enum.
6440 (acc_get_property, acc_get_property_string): New prototypes.
6441 * oacc-init.c (acc_get_device_type): Also assert that result
6442 is not `acc_device_current'.
6443 (get_property_any, acc_get_property, acc_get_property_string):
6444 New functions.
6445 * openacc.f90 (openacc_kinds): Add `acc_device_current' and
6446 `acc_property_memory', `acc_property_free_memory',
6447 `acc_property_name', `acc_property_vendor' and
6448 `acc_property_driver' constants. Add `acc_device_property' data
6449 type.
6450 (openacc_internal): Add `acc_get_property' and
6451 `acc_get_property_string' interfaces. Add `acc_get_property_h',
6452 `acc_get_property_string_h', `acc_get_property_l' and
6453 `acc_get_property_string_l'.
6454 * oacc-host.c (host_get_property): New function.
6455 (host_dispatch): Wire it.
6456 * target.c (gomp_load_plugin_for_device): Handle `get_property'.
6457 * libgomp.map (OACC_2.6): Add `acc_get_property', `acc_get_property_h_',
6458 `acc_get_property_string' and `acc_get_property_string_h_' symbols.
6459 * libgomp.texi (OpenACC Runtime Library Routines): Add
6460 `acc_get_property'.
6461 (acc_get_property): New node.
6462 * plugin/plugin-gcn.c (GOMP_OFFLOAD_get_property): New
6463 function (stub).
6464 * plugin/plugin-hsa.c (GOMP_OFFLOAD_get_property): New function.
6465 * plugin/plugin-nvptx.c (CUDA_CALLS): Add `cuDeviceGetName',
6466 `cuDeviceTotalMem', `cuDriverGetVersion' and `cuMemGetInfo'
6467 calls.
6468 (GOMP_OFFLOAD_get_property): New function.
6469 (struct ptx_device): Add new field "name".
6470 (cuda_driver_version_s): Add new static variable ...
6471 (nvptx_init): ... and init from here.
6472
6473 * testsuite/libgomp.oacc-c-c++-common/acc_get_property.c: New test.
6474 * testsuite/libgomp.oacc-c-c++-common/acc_get_property-2.c: New test.
6475 * testsuite/libgomp.oacc-c-c++-common/acc_get_property-3.c: New test.
6476 * testsuite/libgomp.oacc-c-c++-common/acc_get_property-aux.c: New file
6477 with test helper functions.
6478
6479 * testsuite/libgomp.oacc-fortran/acc_get_property.f90: New test.
6480
6481 2019-12-22 Maciej W. Rozycki <macro@wdc.com>
6482
6483 * testsuite/libgomp-test-support.exp.in (GCC_UNDER_TEST): New
6484 variable.
6485
6486 2019-12-21 Thomas Schwinge <thomas@codesourcery.com>
6487
6488 * target.c (gomp_map_vars_internal): Restore 'omp declare target
6489 link' handling.
6490
6491 2019-12-19 Julian Brown <julian@codesourcery.com>
6492
6493 * testsuite/libgomp.oacc-fortran/class-ptr-param.f95: New test.
6494 * testsuite/libgomp.oacc-fortran/classtypes-1.f95: New test.
6495 * testsuite/libgomp.oacc-fortran/classtypes-2.f95: New test.
6496
6497 2019-12-19 Julian Brown <julian@codesourcery.com>
6498 Cesar Philippidis <cesar@codesourcery.com>
6499
6500 * testsuite/libgomp.oacc-fortran/deep-copy-1.f90: New test.
6501 * testsuite/libgomp.oacc-fortran/deep-copy-2.f90: New test.
6502 * testsuite/libgomp.oacc-fortran/deep-copy-3.f90: New test.
6503 * testsuite/libgomp.oacc-fortran/deep-copy-4.f90: New test.
6504 * testsuite/libgomp.oacc-fortran/deep-copy-5.f90: New test.
6505 * testsuite/libgomp.oacc-fortran/deep-copy-6.f90: New test.
6506 * testsuite/libgomp.oacc-fortran/deep-copy-7.f90: New test.
6507 * testsuite/libgomp.oacc-fortran/deep-copy-8.f90: New test.
6508 * testsuite/libgomp.oacc-fortran/derived-type-1.f90: New test.
6509 * testsuite/libgomp.oacc-fortran/derivedtype-1.f95: New test.
6510 * testsuite/libgomp.oacc-fortran/derivedtype-2.f95: New test.
6511 * testsuite/libgomp.oacc-fortran/multidim-slice.f95: New test.
6512 * testsuite/libgomp.oacc-fortran/update-2.f90: New test.
6513
6514 2019-12-19 Julian Brown <julian@codesourcery.com>
6515
6516 * testsuite/libgomp.oacc-c-c++-common/deep-copy-1.c: New test.
6517 * testsuite/libgomp.oacc-c-c++-common/deep-copy-2.c: New test.
6518 * testsuite/libgomp.oacc-c-c++-common/deep-copy-4.c: New test.
6519 * testsuite/libgomp.oacc-c-c++-common/deep-copy-6.c: New test.
6520 * testsuite/libgomp.oacc-c-c++-common/deep-copy-7.c: New test.
6521 * testsuite/libgomp.oacc-c-c++-common/deep-copy-8.c: New test.
6522 * testsuite/libgomp.oacc-c-c++-common/deep-copy-9.c: New test.
6523 * testsuite/libgomp.oacc-c-c++-common/deep-copy-10.c: New test.
6524 * testsuite/libgomp.oacc-c-c++-common/deep-copy-11.c: New test.
6525 * testsuite/libgomp.oacc-c-c++-common/deep-copy-14.c: New test.
6526 * testsuite/libgomp.oacc-c++/deep-copy-12.C: New test.
6527 * testsuite/libgomp.oacc-c++/deep-copy-13.C: New test.
6528
6529 2019-12-19 Julian Brown <julian@codesourcery.com>
6530
6531 * libgomp.h (struct target_var_desc): Add do_detach flag.
6532 * oacc-init.c (acc_shutdown_1): Free aux block if present.
6533 * oacc-mem.c (find_group_last): Add SIZES parameter. Support
6534 struct components. Tidy up and add some new checks.
6535 (goacc_enter_data_internal): Update call to find_group_last.
6536 (goacc_exit_data_internal): Support detach operations and
6537 GOMP_MAP_STRUCT.
6538 (GOACC_enter_exit_data): Handle initial GOMP_MAP_STRUCT or
6539 GOMP_MAP_FORCE_PRESENT in finalization detection code. Handle
6540 attach/detach in enter/exit data detection code.
6541 * target.c (gomp_map_vars_existing): Initialise do_detach field of
6542 tgt_var_desc.
6543 (gomp_map_vars_internal): Support attach.
6544 (gomp_unmap_vars_internal): Support detach.
6545
6546 2019-12-19 Julian Brown <julian@codesourcery.com>
6547 Thomas Schwinge <thomas@codesourcery.com>
6548
6549 * libgomp.h (struct splay_tree_aux): Add attach_count field.
6550 (gomp_attach_pointer, gomp_detach_pointer): Add prototypes.
6551 * libgomp.map (OACC_2.6): New section. Add acc_attach,
6552 acc_attach_async, acc_detach, acc_detach_async, acc_detach_finalize,
6553 acc_detach_finalize_async.
6554 * oacc-mem.c (acc_attach_async, acc_attach, goacc_detach_internal,
6555 acc_detach, acc_detach_async, acc_detach_finalize,
6556 acc_detach_finalize_async): New functions.
6557 * openacc.h (acc_attach, acc_attach_async, acc_detach,
6558 (acc_detach_async, acc_detach_finalize, acc_detach_finalize_async): Add
6559 prototypes.
6560 * target.c (gomp_attach_pointer, gomp_detach_pointer): New functions.
6561 (gomp_remove_var_internal): Free attachment counts if present.
6562 * testsuite/libgomp.oacc-c-c++-common/deep-copy-3.c: New test.
6563 * testsuite/libgomp.oacc-c-c++-common/deep-copy-5.c: New test.
6564
6565 2019-12-19 Julian Brown <julian@codesourcery.com>
6566 Cesar Philippidis <cesar@codesourcery.com>
6567
6568 * libgomp.h (gomp_map_val): Add prototype.
6569 * oacc-parallel.c (GOACC_parallel_keyed): Use gomp_map_val instead of
6570 open-coding device-address calculation.
6571 * target.c (gomp_map_val): Make global. Use OFFSET_POINTER in
6572 non-present case.
6573
6574 2019-12-19 Julian Brown <julian@codesourcery.com>
6575
6576 * libgomp.h (struct splay_tree_key_s): Substitute dynamic_refcount
6577 field for virtual_refcount.
6578 (enum gomp_map_vars_kind): Add GOMP_MAP_VARS_OPENACC_ENTER_DATA.
6579 (gomp_free_memmap): Remove prototype.
6580 * oacc-init.c (acc_shutdown_1): Iteratively call gomp_remove_var
6581 instead of calling gomp_free_memmap.
6582 * oacc-mem.c (acc_map_data): Use virtual_refcount instead of
6583 dynamic_refcount.
6584 (acc_unmap_data): Open code instead of forcing target_mem_desc's
6585 to_free field to NULL then calling gomp_unmap_vars. Handle
6586 REFCOUNT_INFINITY on target blocks.
6587 (goacc_enter_data): Rename to...
6588 (goacc_enter_datum): ...this. Remove MAPNUM parameter and special
6589 handling for mapping groups. Use virtual_refcount instead of
6590 dynamic_refcount. Use GOMP_MAP_VARS_OPENACC_ENTER_DATA for
6591 map_map_vars_async call. Re-do lookup for target pointer return value.
6592 (acc_create, acc_create_async, acc_copyin, acc_copyin_async): Call
6593 renamed goacc_enter_datum function.
6594 (goacc_exit_data): Rename to...
6595 (goacc_exit_datum): ...this. Update for virtual_refcount semantics.
6596 (acc_delete, acc_delete_async, acc_delete_finalize,
6597 acc_delete_finalize_async, acc_copyout, acc_copyout_async,
6598 acc_copyout_finalize, acc_copyout_finalize_async): Call renamed
6599 goacc_exit_datum function.
6600 (gomp_acc_remove_pointer, find_pointer): Remove functions.
6601 (find_group_last, goacc_enter_data_internal, goacc_exit_data_internal):
6602 New functions.
6603 (GOACC_enter_exit_data): Use goacc_enter_data_internal and
6604 goacc_exit_data_internal helper functions.
6605 * target.c (gomp_map_vars_internal): Handle
6606 GOMP_MAP_VARS_OPENACC_ENTER_DATA. Update for virtual_refcount
6607 semantics.
6608 (gomp_unmap_vars_internal): Update for virtual_refcount semantics.
6609 (gomp_load_image_to_device, omp_target_associate_ptr): Zero-initialise
6610 virtual_refcount field instead of dynamic_refcount.
6611 (gomp_free_memmap): Remove function.
6612 * testsuite/libgomp.oacc-c-c++-common/unmap-infinity-1.c: New test.
6613 * testsuite/libgomp.c-c++-common/unmap-infinity-2.c: New test.
6614 * testsuite/libgomp.oacc-c-c++-common/pr92843-1.c: Add XFAIL.
6615
6616 2019-12-19 Julian Brown <julian@codesourcery.com>
6617 Thomas Schwinge <thomas@codesourcery.com>
6618
6619 * libgomp.h (struct splay_tree_aux): New.
6620 (struct splay_tree_key_s): Replace link_key field with aux pointer.
6621 * target.c (gomp_map_vars_internal): Adjust for link_key being moved
6622 to aux struct.
6623 (gomp_remove_var_internal): Free aux block if present.
6624 (gomp_load_image_to_device): Zero-initialise aux field instead of
6625 link_key field.
6626 (omp_target_associate_pointer): Zero-initialise aux field.
6627
6628 2019-12-18 Jakub Jelinek <jakub@redhat.com>
6629
6630 PR middle-end/86416
6631 * testsuite/libgomp.c/pr86416-1.c (main): Use L suffixes rather than
6632 q or none.
6633 * testsuite/libgomp.c/pr86416-2.c (main): Use Q suffixes rather than
6634 L or none.
6635
6636 2019-12-19 Julian Brown <julian@codesourcery.com>
6637 Maciej W. Rozycki <macro@codesourcery.com>
6638 Tobias Burnus <tobias@codesourcery.com>
6639 Thomas Schwinge <thomas@codesourcery.com>
6640
6641 * target.c (gomp_map_vars_async): Support GOMP_MAP_NO_ALLOC.
6642 * testsuite/libgomp.oacc-c-c++-common/no_create-1.c: New test.
6643 * testsuite/libgomp.oacc-c-c++-common/no_create-2.c: New test.
6644 * testsuite/libgomp.oacc-c-c++-common/no_create-3.c: New test.
6645 * testsuite/libgomp.oacc-c-c++-common/no_create-4.c: New test.
6646 * testsuite/libgomp.oacc-c-c++-common/no_create-5.c: New test.
6647 * testsuite/libgomp.oacc-fortran/no_create-1.f90: New test.
6648 * testsuite/libgomp.oacc-fortran/no_create-2.f90: New test.
6649 * testsuite/libgomp.oacc-fortran/no_create-3.F90: New test.
6650
6651 2019-12-18 Thomas Schwinge <thomas@codesourcery.com>
6652
6653 * oacc-mem.c (goacc_enter_data): Refactor, so that it can be
6654 called...
6655 (goacc_insert_pointer): ... from here, "present" case.
6656 (goacc_insert_pointer): Inline function into...
6657 (GOACC_enter_exit_data): ... here, and simplify.
6658
6659 * oacc-mem.c (goacc_enter_data): Refactor, so that it can be
6660 called...
6661 (goacc_insert_pointer): ... from here, "not present" case.
6662
6663 * oacc-mem.c (goacc_remove_pointer): Refactor interface. Adjust
6664 all users.
6665
6666 * oacc-mem.c (GOACC_enter_exit_data): Refactor code to call
6667 'goacc_enter_data', 'goacc_exit_data'.
6668
6669 * oacc-mem.c (delete_copyout): Refactor into...
6670 (goacc_exit_data): ... this. Adjust all users.
6671
6672 * oacc-mem.c (present_create_copy): Refactor into...
6673 (goacc_enter_data): ... this. Adjust all users.
6674
6675 * target.c (gomp_unmap_vars_internal): Add a safeguard to
6676 'gomp_remove_var'.
6677
6678 * target.c (gomp_to_device_kind_p): Handle 'GOMP_MAP_FORCE_FROM'
6679 like 'GOMP_MAP_FROM'.
6680
6681 PR libgomp/92726
6682 PR libgomp/92970
6683 PR libgomp/92984
6684 * oacc-mem.c (delete_copyout): No-op behavior if 'lookup_host'
6685 fails.
6686 (GOACC_enter_exit_data): Simplify accordingly.
6687 * testsuite/libgomp.oacc-c-c++-common/pr92970-1.c: New file,
6688 subsuming...
6689 * testsuite/libgomp.oacc-c-c++-common/lib-17.c: ... this file...
6690 * testsuite/libgomp.oacc-c-c++-common/lib-18.c: ..., and this
6691 file.
6692 * testsuite/libgomp.oacc-c-c++-common/pr92984-1.c: New file,
6693 subsuming...
6694 * testsuite/libgomp.oacc-c-c++-common/lib-21.c: ... this file...
6695 * testsuite/libgomp.oacc-c-c++-common/lib-29.c: ..., and this
6696 file.
6697 * testsuite/libgomp.oacc-c-c++-common/pr92726-1.c: New file,
6698 subsuming...
6699 * testsuite/libgomp.oacc-c-c++-common/lib-28.c: ... this file.
6700
6701 * oacc-mem.c (GOACC_enter_exit_data): Simplify 'exit data'
6702 'finalize' handling.
6703
6704 PR libgomp/92848
6705 * oacc-mem.c (acc_map_data, present_create_copy)
6706 (goacc_insert_pointer): Use 'GOMP_MAP_VARS_ENTER_DATA'.
6707 (acc_unmap_data, delete_copyout, goacc_remove_pointer): Adjust.
6708 * testsuite/libgomp.oacc-c-c++-common/lib-50.c: Remove.
6709 * testsuite/libgomp.oacc-c-c++-common/pr92848-1-d-a.c: New file
6710 * testsuite/libgomp.oacc-c-c++-common/pr92848-1-d-p.c: Likewise.
6711 * testsuite/libgomp.oacc-c-c++-common/pr92848-1-r-a.c: Likewise.
6712 * testsuite/libgomp.oacc-c-c++-common/pr92848-1-r-p.c: Likewise.
6713 * testsuite/libgomp.oacc-c-c++-common/subset-subarray-mappings-1-r-p.c:
6714 Remove "XFAIL"s.
6715
6716 * target.c (gomp_unmap_tgt): Make it 'static'.
6717 * libgomp.h (gomp_unmap_tgt): Remove.
6718
6719 2019-12-18 Tobias Burnus <tobias@codesourcery.com>
6720
6721 PR middle-end/86416
6722 * testsuite/libgomp.c/pr86416-1.c: New.
6723 * testsuite/libgomp.c/pr86416-2.c: New.
6724
6725 2019-12-17 Tobias Burnus <tobias@codesourcery.com>
6726
6727 * config/accel/openacc.f90 (module openacc_kinds): Use 'PUBLIC' to mark
6728 all symbols as public except for the 'use …, only' imported symbol,
6729 which is private.
6730 (module openacc): Default to 'PRIVATE' to exclude openacc_internal; mark
6731 all symbols from module openacc_kinds as PUBLIC
6732 * openacc.f90: Add comment with crossref to that file and openmp_lib.h;
6733 fix comment typo.
6734 * openacc_lib.h (acc_device_gcn): Add this PARAMETER.
6735
6736 2019-12-13 Julian Brown <julian@codesourcery.com>
6737
6738 PR libgomp/92881
6739
6740 * libgomp.h (gomp_remove_var_async): Add prototype.
6741 * oacc-mem.c (delete_copyout): Call gomp_remove_var_async instead of
6742 gomp_remove_var.
6743 * target.c (gomp_unref_tgt): Change return type to bool, indicating
6744 whether target_mem_desc was unmapped.
6745 (gomp_unref_tgt_void): New.
6746 (gomp_remove_var): Reimplement in terms of...
6747 (gomp_remove_var_internal): ...this new helper function.
6748 (gomp_remove_var_async): New, implemented using above helper function.
6749 (gomp_unmap_vars_internal): Use gomp_unref_tgt_void instead of
6750 gomp_unref_tgt.
6751
6752 2019-12-13 Andrew Stubbs <ams@codesourcery.com>
6753
6754 * testsuite/libgomp.oacc-c-c++-common/acc_prof-init-1.c: Handle gcn.
6755 * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c: Likewise.
6756 * testsuite/libgomp.oacc-c-c++-common/acc_prof-parallel-1.c: Likewise.
6757 * testsuite/libgomp.oacc-c-c++-common/asyncwait-nop-1.c: Likewise.
6758 * testsuite/libgomp.oacc-c-c++-common/function-not-offloaded.c:
6759 Likewise.
6760 * testsuite/libgomp.oacc-c-c++-common/async_queue-1.c: Disable on GCN.
6761 * testsuite/libgomp.oacc-c-c++-common/tile-1.c: Likewise.
6762
6763 2019-12-13 Tobias Burnus <tobias@codesourcery.com>
6764
6765 * openacc.f90 (module openacc_kinds): Use 'PUBLIC' to mark all symbols
6766 as public except for the 'use …, only' imported symbol, which is
6767 private.
6768 (module openacc): Default to 'PRIVATE' to exclude openacc_internal; mark
6769 all symbols from module openacc_kinds as PUBLIC; add missing PUBLIC
6770 attributes for acc_copyout_finalize and acc_delete_finalize.
6771
6772 2019-12-11 Jakub Jelinek <jakub@redhat.com>
6773
6774 PR fortran/92899
6775 * testsuite/libgomp.fortran/atomic1.f90: New test.
6776
6777 2019-12-11 Thomas Schwinge <thomas@codesourcery.com>
6778
6779 PR libgomp/92843
6780 * oacc-mem.c (present_create_copy, delete_copyout): Fix dynamic
6781 reference counting for structured 'REFCOUNT_INFINITY'. Add some
6782 assertions.
6783 (goacc_insert_pointer, goacc_remove_pointer): Adjust accordingly.
6784 * testsuite/libgomp.oacc-c-c++-common/pr92843-1.c: New file.
6785 * testsuite/libgomp.oacc-c-c++-common/clauses-1.c: Fix OpenACC.
6786 * testsuite/libgomp.oacc-c-c++-common/lib-82.c: Likewise.
6787 * testsuite/libgomp.oacc-c-c++-common/nested-1.c: Likewise.
6788
6789 * oacc-parallel.c (find_pointer, GOACC_enter_exit_data): Move...
6790 * oacc-mem.c: ... here.
6791 (gomp_acc_insert_pointer, gomp_acc_remove_pointer): Rename to
6792 'goacc_insert_pointer', 'goacc_remove_pointer', and make 'static'.
6793 * libgomp.h (gomp_acc_insert_pointer, gomp_acc_remove_pointer):
6794 Remove.
6795 * libgomp_g.h: Update.
6796
6797 * oacc-parallel.c (GOACC_wait, goacc_wait): Move...
6798 * oacc-async.c: ... here.
6799 * oacc-int.h (goacc_wait): Declare.
6800 * libgomp_g.h: Update
6801
6802 PR libgomp/92854
6803 * testsuite/libgomp.oacc-c-c++-common/acc_map_data-device_already-1.c:
6804 New file.
6805 * testsuite/libgomp.oacc-c-c++-common/acc_map_data-device_already-2.c:
6806 Likewise.
6807 * testsuite/libgomp.oacc-c-c++-common/acc_map_data-device_already-3.c:
6808 Likewise.
6809 * testsuite/libgomp.oacc-c-c++-common/acc_map_data-host_already-1.c:
6810 Likewise.
6811 * testsuite/libgomp.oacc-c-c++-common/acc_map_data-host_already-2.c:
6812 Likewise.
6813 * testsuite/libgomp.oacc-c-c++-common/acc_map_data-host_already-3.c:
6814 Likewise.
6815
6816 2019-12-11 Thomas Schwinge <thomas@codesourcery.com>
6817 Julian Brown <julian@codesourcery.com>
6818
6819 * target.c (gomp_load_image_to_device, omp_target_associate_ptr):
6820 Initialize 'dynamic_refcount' whenever we initialize 'refcount'.
6821
6822 2019-12-11 Tobias Burnus <tobias@codesourcery.com>
6823
6824 * omp_lib.h.in: Fix spelling of function declaration
6825 omp_get_cancell(l)ation.
6826 * libgomp.texi (acc_is_present, acc_async_test, acc_async_test_all):
6827 Fix typos.
6828 * env.c: Fix comment typos.
6829 * oacc-host.c: Likewise.
6830 * ordered.c: Likewise.
6831 * task.c: Likewise.
6832 * team.c: Likewise.
6833 * config/gcn/task.c: Likewise.
6834 * config/gcn/team.c: Likewise.
6835 * config/nvptx/task.c: Likewise.
6836 * config/nvptx/team.c: Likewise.
6837 * plugin/plugin-gcn.c: Likewise.
6838 * testsuite/libgomp.fortran/jacobi.f: Likewise.
6839 * testsuite/libgomp.hsa.c/tiling-2.c: Likewise.
6840 * testsuite/libgomp.oacc-c-c++-common/enter_exit-lib.c: Likewise.
6841
6842 2019-12-11 Tobias Burnus <tobias@codesourcery.com>
6843
6844 * testsuite/libgomp.oacc-fortran/optional-cache.f95: Add 'dg-do run'.
6845 * testsuite/libgomp.oacc-fortran/optional-reduction.f90: Remove
6846 unnecessary 'dg-additional-options "-w"'.
6847
6848 2019-12-09 Thomas Schwinge <thomas@codesourcery.com>
6849 Julian Brown <julian@codesourcery.com>
6850
6851 PR libgomp/92116
6852 PR libgomp/92877
6853
6854 * oacc-mem.c (lookup_dev): Reimplement. Adjust all users.
6855 * libgomp.h (struct acc_dispatch_t): Remove 'data_environ' member.
6856 Adjust all users.
6857 * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-4-2.c:
6858 Remove XFAIL.
6859 * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-4.c:
6860 Likewise.
6861 * testsuite/libgomp.oacc-c-c++-common/pr92877-1.c: New file.
6862
6863 2019-12-09 Thomas Schwinge <thomas@codesourcery.com>
6864
6865 PR libgomp/92503
6866 * oacc-mem.c (acc_free): Error out instead of 'acc_unmap_data'.
6867 * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-1.c: New
6868 file.
6869 * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-2.c:
6870 Likewise.
6871 * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-3-2.c:
6872 Likewise.
6873 * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-3.c:
6874 Likewise.
6875 * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-4-2.c:
6876 Likewise.
6877 * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-4.c:
6878 Likewise.
6879 * testsuite/libgomp.oacc-c-c++-common/clauses-1.c: Adjust.
6880 * testsuite/libgomp.oacc-c-c++-common/context-1.c: Likewise.
6881 * testsuite/libgomp.oacc-c-c++-common/context-2.c: Likewise.
6882 * testsuite/libgomp.oacc-c-c++-common/context-3.c: Likewise.
6883 * testsuite/libgomp.oacc-c-c++-common/context-4.c: Likewise.
6884 * testsuite/libgomp.oacc-c-c++-common/lib-13.c: Likewise.
6885 * testsuite/libgomp.oacc-c-c++-common/lib-14.c: Likewise.
6886 * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
6887 * testsuite/libgomp.oacc-c-c++-common/lib-91.c: Likewise.
6888 * testsuite/libgomp.oacc-c-c++-common/nested-1.c: Likewise.
6889
6890 PR libgomp/92840
6891 * oacc-mem.c (acc_map_data): Clarify reference counting behavior.
6892 (acc_unmap_data): Add error case for 'REFCOUNT_INFINITY'.
6893 * testsuite/libgomp.oacc-c-c++-common/acc_unmap_data-pr92840-1.c:
6894 New file.
6895 * testsuite/libgomp.oacc-c-c++-common/acc_unmap_data-pr92840-2.c:
6896 Likewise.
6897 * testsuite/libgomp.oacc-c-c++-common/acc_unmap_data-pr92840-3.c:
6898 Likewise.
6899 * testsuite/libgomp.oacc-c-c++-common/clauses-1.c: Adjust.
6900 * testsuite/libgomp.oacc-c-c++-common/nested-1.c: Adjust.
6901
6902 PR libgomp/92511
6903 * testsuite/libgomp.oacc-c-c++-common/copyin-devptr-1.c: Remove
6904 this file...
6905 * testsuite/libgomp.oacc-c-c++-common/copyin-devptr-2.c: ..., and
6906 this file...
6907 * testsuite/libgomp.oacc-c-c++-common/lib-22.c: ..., and this
6908 file...
6909 * testsuite/libgomp.oacc-c-c++-common/lib-30.c: ..., and this
6910 file...
6911 * testsuite/libgomp.oacc-c-c++-common/subset-subarray-mappings-1-r-p.c:
6912 ... with their content moved into, and extended in this new file.
6913 * testsuite/libgomp.oacc-c-c++-common/subset-subarray-mappings-1-d-a.c:
6914 New file.
6915 * testsuite/libgomp.oacc-c-c++-common/subset-subarray-mappings-1-d-p.c:
6916 Likewise.
6917 * testsuite/libgomp.oacc-c-c++-common/subset-subarray-mappings-1-r-a.c:
6918 Likewise.
6919 * testsuite/libgomp.oacc-c-c++-common/subset-subarray-mappings-2.c:
6920 Likewise.
6921
6922 * testsuite/libgomp.oacc-c-c++-common/map-data-1.c: New file.
6923
6924 PR libgomp/92854
6925 * testsuite/libgomp.oacc-c-c++-common/pr92854-1.c: New file.
6926
6927 * testsuite/libgomp.oacc-c-c++-common/host_data-6.c: New file.
6928
6929 * target.c (gomp_exit_data): Use 'gomp_remove_var'.
6930
6931 2019-12-09 Tobias Burnus <tobias@codesourcery.com>
6932
6933 * testsuite/libgomp.fortran/use_device_addr-3.f90: Make 'stop' codes
6934 unique.
6935 * testsuite/libgomp.fortran/use_device_addr-4.f90: Ditto.
6936 * testsuite/libgomp.fortran/use_device_ptr-optional-2.f90: Ditto.
6937 * testsuite/libgomp.oacc-fortran/declare-5.f90: Ditto.
6938 * testsuite/libgomp.oacc-fortran/optional-data-copyin-by-value.f90:
6939 Ditto.
6940 * testsuite/libgomp.oacc-fortran/optional-firstprivate.f90: Ditto.
6941 * testsuite/libgomp.oacc-fortran/optional-update-host.f90: Ditto.
6942
6943 2019-12-06 Kwok Cheung Yeung <kcy@codesourcery.com>
6944
6945 * config/accel/proc.c (omp_get_num_procs): Apply ialias macro.
6946
6947 2019-12-06 Tobias Burnus <tobias@codesourcery.com>
6948 Kwok Cheung Yeung <kcy@codesourcery.com>
6949
6950 * oacc-mem.c (update_dev_host, gomp_acc_insert_pointer): Just return
6951 if input it a NULL pointer.
6952 * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Remove; dependent on
6953 diagnostic of NULL pointer.
6954 * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Ditto.
6955 * testsuite/libgomp.fortran/optional-map.f90: New.
6956 * testsuite/libgomp.fortran/use_device_addr-1.f90
6957 (test_dummy_opt_callee_1_absent): New.
6958 (test_dummy_opt_call_1): Call it.
6959 * testsuite/libgomp.fortran/use_device_addr-2.f90: Likewise.
6960 * testsuite/libgomp.fortran/use_device_addr-3.f90: Likewise.
6961 * testsuite/libgomp.fortran/use_device_addr-4.f90: Likewise.
6962 * testsuite/libgomp.oacc-fortran/optional-cache.f95: New.
6963 * testsuite/libgomp.oacc-fortran/optional-data-copyin-by-value.f90: New.
6964 * testsuite/libgomp.oacc-fortran/optional-data-copyin.f90: New.
6965 * testsuite/libgomp.oacc-fortran/optional-data-copyout.f90: New.
6966 * testsuite/libgomp.oacc-fortran/optional-data-enter-exit.f90: New.
6967 * testsuite/libgomp.oacc-fortran/optional-declare.f90: New.
6968 * testsuite/libgomp.oacc-fortran/optional-firstprivate.f90: New.
6969 * testsuite/libgomp.oacc-fortran/optional-host_data.f90: New.
6970 * testsuite/libgomp.oacc-fortran/optional-nested-calls.f90: New.
6971 * testsuite/libgomp.oacc-fortran/optional-private.f90: New.
6972 * testsuite/libgomp.oacc-fortran/optional-reduction.f90: New.
6973 * testsuite/libgomp.oacc-fortran/optional-update-device.f90: New.
6974 * testsuite/libgomp.oacc-fortran/optional-update-host.f90: New.
6975
6976 2019-12-05 Tobias Burnus <tobias@codesourcery.com>
6977
6978 * testsuite/libgomp.oacc-fortran/error_stop-1.f: Also don't
6979 expect dg-output of 'Error termination.' for GCN.
6980 * testsuite/libgomp.oacc-fortran/error_stop-2.f: Likewise.
6981 * testsuite/libgomp.oacc-fortran/error_stop-3.f: Likewise.
6982
6983 2019-12-04 Jakub Jelinek <jakub@redhat.com>
6984
6985 PR fortran/92756
6986 * testsuite/libgomp.fortran/teams1.f90: New test.
6987 * testsuite/libgomp.fortran/teams2.f90: New test.
6988
6989 2019-12-03 Frederik Harwath <frederik@codesourcery.com>
6990
6991 * oacc-init.c (acc_known_device_type): Add function.
6992 (unknown_device_type_error): Add function.
6993 (name_of_acc_device_t): Change to call unknown_device_type_error
6994 on unknown type.
6995 (resolve_device): Use acc_known_device_type.
6996 (acc_init): Fail if acc_device_t argument is not valid.
6997 (acc_shutdown): Likewise.
6998 (acc_get_num_devices): Likewise.
6999 (acc_set_device_type): Likewise.
7000 (acc_get_device_num): Likewise.
7001 (acc_set_device_num): Likewise.
7002 (acc_on_device): Add comment that argument validity is not checked.
7003
7004 2019-12-03 Andrew Stubbs <ams@codesourcery.com>
7005
7006 * testsuite/lib/libgomp.exp (offload_target_to_openacc_device_type):
7007 Recognize amdgcn.
7008 (check_effective_target_openacc_amdgcn_accel_present): New proc.
7009 (check_effective_target_openacc_amdgcn_accel_selected): New proc.
7010 * testsuite/libgomp.oacc-c++/c++.exp: Add support for amdgcn.
7011 * testsuite/libgomp.oacc-c/c.exp: Likewise.
7012 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
7013
7014 2019-12-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
7015
7016 PR libgomp/91938
7017 * configure.tgt: Avoid IE tls on *-*-musl*.
7018
7019 2019-11-29 Tobias Burnus <tobias@codesourcery.com>
7020
7021 * testsuite/libgomp.oacc-fortran/declare-5.f90: Extend by
7022 adding a common-block test case.
7023
7024 2019-11-29 Jakub Jelinek <jakub@redhat.com>
7025
7026 PR c++/60228
7027 * testsuite/libgomp.c++/udr-20.C: New test.
7028 * testsuite/libgomp.c++/udr-21.C: New test.
7029
7030 2019-11-27 Thomas Schwinge <thomas@codesourcery.com>
7031
7032 * testsuite/lib/libgomp.exp
7033 (check_effective_target_offload_target_nvptx): New proc.
7034 * testsuite/libgomp.fortran/target-print-1.f90: Use it with
7035 'dg-skip-if'.
7036 * testsuite/libgomp.oacc-fortran/print-1.f90: Likewise.
7037 * testsuite/libgomp.fortran/target-print-1-nvptx.f90: New file.
7038 * testsuite/libgomp.oacc-fortran/print-1-nvptx.f90: Likewise.
7039
7040 2019-11-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7041
7042 * testsuite/libgomp.c/pr39591-1.c: Rename err to e.
7043 * testsuite/libgomp.c/pr39591-2.c: Likewise.
7044 * testsuite/libgomp.c/pr39591-3.c: Likewise.
7045 * testsuite/libgomp.c/private-1.c: Likewise.
7046 * testsuite/libgomp.c/task-1.c: Likewise.
7047 * testsuite/libgomp.c/task-5.c: Renamed err to serr.
7048
7049 2019-11-20 Julian Brown <julian@codesourcery.com>
7050
7051 * plugin/plugin-gcn.c (wait_for_queue_nonfull): Don't lock/unlock
7052 aq->mutex here.
7053 (queue_push_launch): Lock aq->mutex before calling
7054 wait_for_queue_nonfull.
7055 (queue_push_callback): Likewise.
7056 (queue_push_asyncwait): Likewise.
7057 (queue_push_placeholder): Likewise.
7058
7059 2019-11-20 Julian Brown <julian@codesourcery.com>
7060
7061 * plugin/plugin-gcn.c (hsa_memory_copy_wrapper): New.
7062 (copy_data, GOMP_OFFLOAD_host2dev): Use above function.
7063 (GOMP_OFFLOAD_dev2host, GOMP_OFFLOAD_dev2dev): Check hsa_memory_copy
7064 return code.
7065
7066 2019-11-20 Julian Brown <julian@codesourcery.com>
7067
7068 PR libgomp/92511
7069
7070 * oacc-mem.c (present_create_copy): Fix device pointer return value in
7071 case of "present" subarray. Use tgt->tgt_start instead of tgt->to_free
7072 in non-present/create case.
7073 (delete_copyout): Change error condition to fail only on copies outside
7074 of mapped block. Adjust error message accordingly.
7075 * testsuite/libgomp.oacc-c-c++-common/copyin-devptr-1.c: New test.
7076 * testsuite/libgomp.oacc-c-c++-common/copyin-devptr-2.c: New test.
7077 * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Adjust expected error
7078 message.
7079 * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
7080 * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Allow test to pass now.
7081 * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
7082
7083 2019-11-20 Maciej W. Rozycki <macro@wdc.com>
7084
7085 * testsuite/lib/libgomp.exp (libgomp_init): Add flags to find
7086 libatomic in build-tree testing.
7087
7088 2019-11-18 Maciej W. Rozycki <macro@wdc.com>
7089
7090 * testsuite/Makefile.in: Regenerate.
7091
7092 2019-11-15 Andrew Stubbs <ams@codesourcery.com>
7093
7094 * testsuite/libgomp.c/target-print-1.c: New file.
7095 * testsuite/libgomp.fortran/target-print-1.f90: New file.
7096 * testsuite/libgomp.oacc-c/print-1.c: New file.
7097 * testsuite/libgomp.oacc-fortran/print-1.f90: New file.
7098
7099 2019-11-13 Andrew Stubbs <ams@codesourcery.com>
7100 Kwok Cheung Yeung <kcy@codesourcery.com>
7101 Julian Brown <julian@codesourcery.com>
7102 Tom de Vries <tom@codesourcery.com>
7103
7104 * plugin/Makefrag.am: Add amdgcn plugin support.
7105 * plugin/configfrag.ac: Likewise.
7106 * plugin/plugin-gcn.c: New file.
7107 * configure: Regenerate.
7108 * Makefile.in: Regenerate.
7109 * testsuite/Makefile.in: Regenerate.
7110
7111 2019-11-13 Andrew Stubbs <ams@codesourcery.com>
7112
7113 * config/gcn/team.c (gomp_gcn_enter_kernel): Set up the team arena
7114 and use team_malloc variants.
7115 (gomp_gcn_exit_kernel): Use team_free.
7116 * libgomp.h (TEAM_ARENA_SIZE): Define.
7117 (TEAM_ARENA_START): Define.
7118 (TEAM_ARENA_FREE): Define.
7119 (TEAM_ARENA_END): Define.
7120 (team_malloc): New function.
7121 (team_malloc_cleared): New function.
7122 (team_free): New function.
7123 * team.c (gomp_new_team): Initialize and use team_malloc.
7124 (free_team): Use team_free.
7125 (gomp_free_thread): Use team_free.
7126 (gomp_pause_host): Use team_free.
7127 * work.c (gomp_init_work_share): Use team_malloc.
7128 (gomp_fini_work_share): Use team_free.
7129
7130 2019-11-13 Andrew Stubbs <ams@codesourcery.com>
7131 Kwok Cheung Yeung <kcy@codesourcery.com>
7132 Julian Brown <julian@codesourcery.com>
7133 Tom de Vries <tom@codesourcery.com>
7134
7135 * Makefile.am (libgomp_la_SOURCES): Add oacc-target.c.
7136 * Makefile.in: Regenerate.
7137 * config.h.in (PLUGIN_GCN): Add new undef.
7138 * config/accel/openacc.f90 (acc_device_gcn): New parameter.
7139 * config/gcn/affinity-fmt.c: New file.
7140 * config/gcn/bar.c: New file.
7141 * config/gcn/bar.h: New file.
7142 * config/gcn/doacross.h: New file.
7143 * config/gcn/icv-device.c: New file.
7144 * config/gcn/oacc-target.c: New file.
7145 * config/gcn/simple-bar.h: New file.
7146 * config/gcn/target.c: New file.
7147 * config/gcn/task.c: New file.
7148 * config/gcn/team.c: New file.
7149 * config/gcn/time.c: New file.
7150 * configure.ac: Add amdgcn*-*-*.
7151 * configure: Regenerate.
7152 * configure.tgt: Add amdgcn*-*-*.
7153 * libgomp-plugin.h (offload_target_type): Add OFFLOAD_TARGET_TYPE_GCN.
7154 * libgomp.h (gcn_thrs): Add amdgcn variant.
7155 (set_gcn_thrs): Likewise.
7156 (gomp_thread): Likewise.
7157 * oacc-int.h (goacc_thread): Likewise.
7158 * oacc-target.c: New file.
7159 * openacc.f90 (acc_device_gcn): New parameter.
7160 * openacc.h (acc_device_t): Add acc_device_gcn.
7161 * team.c (gomp_free_pool_helper): Add amdgcn support.
7162
7163 2019-11-13 Andrew Stubbs <ams@codesourcery.com>
7164 Julian Brown <julian@codesourcery.com>
7165
7166 * libgomp-plugin.h (GOMP_OFFLOAD_openacc_async_construct): Add int
7167 parameter.
7168 * oacc-async.c (lookup_goacc_asyncqueue): Pass device number to the
7169 queue constructor.
7170 * oacc-host.c (host_openacc_async_construct): Add device parameter.
7171 * plugin/plugin-nvptx.c (GOMP_OFFLOAD_openacc_async_construct): Add
7172 device parameter.
7173
7174 2019-11-13 Andrew Stubbs <ams@codesourcery.com>
7175
7176 * configure.tgt (nvptx*-*-*): Add "accel" directory.
7177 * config/nvptx/libgomp-plugin.c: Move ...
7178 * config/accel/libgomp-plugin.c: ... to here.
7179 * config/nvptx/lock.c: Move ...
7180 * config/accel/lock.c: ... to here.
7181 * config/nvptx/mutex.c: Move ...
7182 * config/accel/mutex.c: ... to here.
7183 * config/nvptx/mutex.h: Move ...
7184 * config/accel/mutex.h: ... to here.
7185 * config/nvptx/oacc-async.c: Move ...
7186 * config/accel/oacc-async.c: ... to here.
7187 * config/nvptx/oacc-cuda.c: Move ...
7188 * config/accel/oacc-cuda.c: ... to here.
7189 * config/nvptx/oacc-host.c: Move ...
7190 * config/accel/oacc-host.c: ... to here.
7191 * config/nvptx/oacc-init.c: Move ...
7192 * config/accel/oacc-init.c: ... to here.
7193 * config/nvptx/oacc-mem.c: Move ...
7194 * config/accel/oacc-mem.c: ... to here.
7195 * config/nvptx/oacc-plugin.c: Move ...
7196 * config/accel/oacc-plugin.c: ... to here.
7197 * config/nvptx/omp-lock.h: Move ...
7198 * config/accel/omp-lock.h: ... to here.
7199 * config/nvptx/openacc.f90: Move ...
7200 * config/accel/openacc.f90: ... to here.
7201 * config/nvptx/pool.h: Move ...
7202 * config/accel/pool.h: ... to here.
7203 * config/nvptx/proc.c: Move ...
7204 * config/accel/proc.c: ... to here.
7205 * config/nvptx/ptrlock.c: Move ...
7206 * config/accel/ptrlock.c: ... to here.
7207 * config/nvptx/ptrlock.h: Move ...
7208 * config/accel/ptrlock.h: ... to here.
7209 * config/nvptx/sem.c: Move ...
7210 * config/accel/sem.c: ... to here.
7211 * config/nvptx/sem.h: Move ...
7212 * config/accel/sem.h: ... to here.
7213 * config/nvptx/thread-stacksize.h: Move ...
7214 * config/accel/thread-stacksize.h: ... to here.
7215
7216 2019-11-12 Maciej W. Rozycki <macro@codesourcery.com>
7217 Tobias Burnus <tobias@codesourcery.com>
7218 Frederik Harwath <frederik@codesourcery.com>
7219 Thomas Schwinge <thomas@codesourcery.com>
7220
7221 libgomp/
7222 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: New test.
7223 * testsuite/libgomp.oacc-fortran/parallel-dims-aux.c: New test.
7224 * testsuite/libgomp.oacc-fortran/parallel-dims.f89: New test.
7225
7226 2019-11-11 Tobias Burnus <tobias@codesourcery.com>
7227 Kwok Cheung Yeung <kcy@codesourcery.com>
7228
7229 * testsuite/libgomp.fortran/use_device_ptr-optional-1.f90: Extend.
7230 * testsuite/libgomp.fortran/use_device_ptr-optional-2.f90: New.
7231
7232 2019-11-11 Thomas Schwinge <thomas@codesourcery.com>
7233
7234 * testsuite/libgomp.fortran/target9.f90: Specify 'dg-do run'.
7235
7236 * testsuite/libgomp.fortran/use_device_addr-3.f90: Specify 'dg-do
7237 run'.
7238 * testsuite/libgomp.fortran/use_device_addr-4.f90: Likewise.
7239 * testsuite/libgomp.fortran/use_device_ptr-1.f90: Likewise.
7240
7241 2019-11-06 Thomas Schwinge <thomas@codesourcery.com>
7242
7243 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-1.c:
7244 Add expected warnings about missing reduction clauses.
7245 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-2.c:
7246 Likewise.
7247 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-3.c:
7248 Likewise.
7249 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-4.c:
7250 Likewise.
7251
7252 2019-11-04 Tobias Burnus <tobias@codesourcery.com>
7253
7254 * testsuite/libgomp.fortran/pr66199-1.f90: Remove
7255 'dg-do run' (implies torture test) as 'dg-options "O2"' is used.
7256 * testsuite/libgomp.fortran/pr66199-2.f90: Ditto.
7257 * testsuite/libgomp.fortran/taskloop2.f90: Ditto.
7258 * testsuite/libgomp.fortran/taskloop3.f90: Ditto.
7259 * testsuite/libgomp.fortran/taskloop4.f90: Ditto.
7260
7261 2019-11-04 Tobias Burnus <tobias@codesourcery.com>
7262
7263 PR fortran/92305
7264 * testsuite/libgomp.fortran/allocatable2.f90: Use
7265 unique numbers with 'stop'.
7266 * testsuite/libgomp.fortran/use_device_addr-1.f90: Ditto.
7267 * testsuite/libgomp.fortran/use_device_addr-2.f90: Ditto.
7268 * testsuite/libgomp.fortran/use_device_ptr-1.f90: Ditto.
7269 * testsuite/libgomp.oacc-fortran/lib-15.f90: Ditto.
7270 * testsuite/libgomp.oacc-fortran/pset-1.f90: Ditto.
7271
7272 2019-11-01 Tobias Burnus <tobias@codesourcery.com>
7273
7274 * testsuite/libgomp.fortran/use_device_addr-1.f90 (test_nullptr_1,
7275 test_dummy_opt_nullptr_callee_1): Add present but unallocated test.
7276 * testsuite/libgomp.fortran/use_device_addr-2.f90: Likewise.
7277 * testsuite/libgomp.fortran/use_device_addr-3.f90: New.
7278 * testsuite/libgomp.fortran/use_device_addr-4.f90: New.
7279 * testsuite/testsuite/libgomp.fortran/use_device_ptr-1.f90: New.
7280
7281 2019-10-30 Tobias Burnus <tobias@codesourcery.com>
7282
7283 * testsuite/libgomp.fortran/target9.f90: New.
7284
7285 2019-10-30 Tobias Burnus <tobias@codesourcery.com>
7286
7287 * testsuite/libgomp.fortran/aligned1.f03: Replace 'STOP' by 'stop'.
7288 * testsuite/libgomp.fortran/alloc-comp-1.f90: Ditto.
7289 * testsuite/libgomp.fortran/alloc-comp-2.f90: Ditto.
7290 * testsuite/libgomp.fortran/alloc-comp-3.f90: Ditto.
7291 * testsuite/libgomp.fortran/allocatable1.f90: Ditto.
7292 * testsuite/libgomp.fortran/allocatable10.f90: Ditto.
7293 * testsuite/libgomp.fortran/allocatable11.f90: Ditto.
7294 * testsuite/libgomp.fortran/allocatable12.f90: Ditto.
7295 * testsuite/libgomp.fortran/allocatable2.f90: Ditto.
7296 * testsuite/libgomp.fortran/allocatable3.f90: Ditto.
7297 * testsuite/libgomp.fortran/allocatable4.f90: Ditto.
7298 * testsuite/libgomp.fortran/allocatable5.f90: Ditto.
7299 * testsuite/libgomp.fortran/allocatable6.f90: Ditto.
7300 * testsuite/libgomp.fortran/allocatable7.f90: Ditto.
7301 * testsuite/libgomp.fortran/allocatable8.f90: Ditto.
7302 * testsuite/libgomp.fortran/allocatable9.f90: Ditto.
7303 * testsuite/libgomp.fortran/associate1.f90: Ditto.
7304 * testsuite/libgomp.fortran/associate2.f90: Ditto.
7305 * testsuite/libgomp.fortran/associate3.f90: Ditto.
7306 * testsuite/libgomp.fortran/async_io_4.f90: Ditto.
7307 * testsuite/libgomp.fortran/async_io_5.f90: Ditto.
7308 * testsuite/libgomp.fortran/async_io_6.f90: Ditto.
7309 * testsuite/libgomp.fortran/async_io_7.f90: Ditto.
7310 * testsuite/libgomp.fortran/cancel-do-1.f90: Ditto.
7311 * testsuite/libgomp.fortran/cancel-do-2.f90: Ditto.
7312 * testsuite/libgomp.fortran/cancel-parallel-1.f90: Ditto.
7313 * testsuite/libgomp.fortran/cancel-sections-1.f90: Ditto.
7314 * testsuite/libgomp.fortran/cancel-taskgroup-2.f90: Ditto.
7315 * testsuite/libgomp.fortran/character1.f90: Ditto.
7316 * testsuite/libgomp.fortran/character2.f90: Ditto.
7317 * testsuite/libgomp.fortran/collapse1.f90: Ditto.
7318 * testsuite/libgomp.fortran/collapse2.f90: Ditto.
7319 * testsuite/libgomp.fortran/collapse3.f90: Ditto.
7320 * testsuite/libgomp.fortran/collapse4.f90: Ditto.
7321 * testsuite/libgomp.fortran/crayptr1.f90: Ditto.
7322 * testsuite/libgomp.fortran/crayptr2.f90: Ditto.
7323 * testsuite/libgomp.fortran/crayptr3.f90: Ditto.
7324 * testsuite/libgomp.fortran/declare-simd-1.f90: Ditto.
7325 * testsuite/libgomp.fortran/declare-simd-3.f90: Ditto.
7326 * testsuite/libgomp.fortran/declare-target-2.f90: Ditto.
7327 * testsuite/libgomp.fortran/depend-1.f90: Ditto.
7328 * testsuite/libgomp.fortran/depend-2.f90: Ditto.
7329 * testsuite/libgomp.fortran/depend-3.f90: Ditto.
7330 * testsuite/libgomp.fortran/do1.f90: Ditto.
7331 * testsuite/libgomp.fortran/do2.f90: Ditto.
7332 * testsuite/libgomp.fortran/do_concurrent_5.f90: Ditto.
7333 * testsuite/libgomp.fortran/doacross1.f90: Ditto.
7334 * testsuite/libgomp.fortran/doacross2.f90: Ditto.
7335 * testsuite/libgomp.fortran/doacross3.f90: Ditto.
7336 * testsuite/libgomp.fortran/examples-4/array_sections-3.f90: Ditto.
7337 * testsuite/libgomp.fortran/examples-4/array_sections-4.f90: Ditto.
7338 * testsuite/libgomp.fortran/examples-4/async_target-1.f90: Ditto.
7339 * testsuite/libgomp.fortran/examples-4/async_target-2.f90: Ditto.
7340 * testsuite/libgomp.fortran/examples-4/declare_target-1.f90: Ditto.
7341 * testsuite/libgomp.fortran/examples-4/declare_target-2.f90: Ditto.
7342 * testsuite/libgomp.fortran/examples-4/declare_target-3.f90: Ditto.
7343 * testsuite/libgomp.fortran/examples-4/declare_target-4.f90: Ditto.
7344 * testsuite/libgomp.fortran/examples-4/declare_target-5.f90: Ditto.
7345 * testsuite/libgomp.fortran/examples-4/device-1.f90: Ditto.
7346 * testsuite/libgomp.fortran/examples-4/device-2.f90: Ditto.
7347 * testsuite/libgomp.fortran/examples-4/device-3.f90: Ditto.
7348 * testsuite/libgomp.fortran/examples-4/simd-1.f90: Ditto.
7349 * testsuite/libgomp.fortran/examples-4/simd-2.f90: Ditto.
7350 * testsuite/libgomp.fortran/examples-4/simd-3.f90: Ditto.
7351 * testsuite/libgomp.fortran/examples-4/simd-4.f90: Ditto.
7352 * testsuite/libgomp.fortran/examples-4/simd-5.f90: Ditto.
7353 * testsuite/libgomp.fortran/examples-4/simd-6.f90: Ditto.
7354 * testsuite/libgomp.fortran/examples-4/simd-7.f90: Ditto.
7355 * testsuite/libgomp.fortran/examples-4/simd-8.f90: Ditto.
7356 * testsuite/libgomp.fortran/examples-4/target-1.f90: Ditto.
7357 * testsuite/libgomp.fortran/examples-4/target-2.f90: Ditto.
7358 * testsuite/libgomp.fortran/examples-4/target-3.f90: Ditto.
7359 * testsuite/libgomp.fortran/examples-4/target-4.f90: Ditto.
7360 * testsuite/libgomp.fortran/examples-4/target-5.f90: Ditto.
7361 * testsuite/libgomp.fortran/examples-4/target_data-1.f90: Ditto.
7362 * testsuite/libgomp.fortran/examples-4/target_data-2.f90: Ditto.
7363 * testsuite/libgomp.fortran/examples-4/target_data-3.f90: Ditto.
7364 * testsuite/libgomp.fortran/examples-4/target_data-4.f90: Ditto.
7365 * testsuite/libgomp.fortran/examples-4/target_data-5.f90: Ditto.
7366 * testsuite/libgomp.fortran/examples-4/target_data-6.f90: Ditto.
7367 * testsuite/libgomp.fortran/examples-4/target_data-7.f90: Ditto.
7368 * testsuite/libgomp.fortran/examples-4/target_update-1.f90: Ditto.
7369 * testsuite/libgomp.fortran/examples-4/target_update-2.f90: Ditto.
7370 * testsuite/libgomp.fortran/examples-4/task_dep-1.f90: Ditto.
7371 * testsuite/libgomp.fortran/examples-4/task_dep-2.f90: Ditto.
7372 * testsuite/libgomp.fortran/examples-4/task_dep-3.f90: Ditto.
7373 * testsuite/libgomp.fortran/examples-4/task_dep-4.f90: Ditto.
7374 * testsuite/libgomp.fortran/examples-4/task_dep-5.f90: Ditto.
7375 * testsuite/libgomp.fortran/examples-4/teams-2.f90: Ditto.
7376 * testsuite/libgomp.fortran/examples-4/teams-3.f90: Ditto.
7377 * testsuite/libgomp.fortran/examples-4/teams-4.f90: Ditto.
7378 * testsuite/libgomp.fortran/examples-4/teams-5.f90: Ditto.
7379 * testsuite/libgomp.fortran/examples-4/teams-6.f90: Ditto.
7380 * testsuite/libgomp.fortran/lastprivate1.f90: Ditto.
7381 * testsuite/libgomp.fortran/lastprivate2.f90: Ditto.
7382 * testsuite/libgomp.fortran/lib1.f90: Ditto.
7383 * testsuite/libgomp.fortran/lib4.f90: Ditto.
7384 * testsuite/libgomp.fortran/lock-1.f90: Ditto.
7385 * testsuite/libgomp.fortran/lock-2.f90: Ditto.
7386 * testsuite/libgomp.fortran/nested1.f90: Ditto.
7387 * testsuite/libgomp.fortran/nestedfn1.f90: Ditto.
7388 * testsuite/libgomp.fortran/nestedfn2.f90: Ditto.
7389 * testsuite/libgomp.fortran/nestedfn3.f90: Ditto.
7390 * testsuite/libgomp.fortran/nestedfn4.f90: Ditto.
7391 * testsuite/libgomp.fortran/nestedfn5.f90: Ditto.
7392 * testsuite/libgomp.fortran/omp_atomic1.f90: Ditto.
7393 * testsuite/libgomp.fortran/omp_atomic2.f90: Ditto.
7394 * testsuite/libgomp.fortran/omp_atomic3.f90: Ditto.
7395 * testsuite/libgomp.fortran/omp_atomic4.f90: Ditto.
7396 * testsuite/libgomp.fortran/omp_atomic5.f90: Ditto.
7397 * testsuite/libgomp.fortran/omp_cond1.f: Ditto.
7398 * testsuite/libgomp.fortran/omp_cond2.f: Ditto.
7399 * testsuite/libgomp.fortran/omp_cond3.F90: Ditto.
7400 * testsuite/libgomp.fortran/omp_cond4.F90: Ditto.
7401 * testsuite/libgomp.fortran/omp_parse1.f90: Ditto.
7402 * testsuite/libgomp.fortran/omp_parse2.f90: Ditto.
7403 * testsuite/libgomp.fortran/omp_parse3.f90: Ditto.
7404 * testsuite/libgomp.fortran/omp_parse4.f90: Ditto.
7405 * testsuite/libgomp.fortran/openmp_version-1.f: Ditto.
7406 * testsuite/libgomp.fortran/openmp_version-2.f90: Ditto.
7407 * testsuite/libgomp.fortran/parloops-exit-first-loop-alt-2.f95: Ditto.
7408 * testsuite/libgomp.fortran/parloops-exit-first-loop-alt.f95: Ditto.
7409 * testsuite/libgomp.fortran/pointer1.f90: Ditto.
7410 * testsuite/libgomp.fortran/pointer2.f90: Ditto.
7411 * testsuite/libgomp.fortran/pr25219.f90: Ditto.
7412 * testsuite/libgomp.fortran/pr27395-1.f90: Ditto.
7413 * testsuite/libgomp.fortran/pr27395-2.f90: Ditto.
7414 * testsuite/libgomp.fortran/pr27416-1.f90: Ditto.
7415 * testsuite/libgomp.fortran/pr27916-1.f90: Ditto.
7416 * testsuite/libgomp.fortran/pr27916-2.f90: Ditto.
7417 * testsuite/libgomp.fortran/pr28390.f: Ditto.
7418 * testsuite/libgomp.fortran/pr29629.f90: Ditto.
7419 * testsuite/libgomp.fortran/pr32550.f90: Ditto.
7420 * testsuite/libgomp.fortran/pr33880.f90: Ditto.
7421 * testsuite/libgomp.fortran/pr34020.f90: Ditto.
7422 * testsuite/libgomp.fortran/pr35130.f90: Ditto.
7423 * testsuite/libgomp.fortran/pr42162.f90: Ditto.
7424 * testsuite/libgomp.fortran/pr46753.f90: Ditto.
7425 * testsuite/libgomp.fortran/pr48894.f90: Ditto.
7426 * testsuite/libgomp.fortran/pr49792-1.f90: Ditto.
7427 * testsuite/libgomp.fortran/pr49792-2.f90: Ditto.
7428 * testsuite/libgomp.fortran/pr63938-1.f90: Ditto.
7429 * testsuite/libgomp.fortran/pr63938-2.f90: Ditto.
7430 * testsuite/libgomp.fortran/pr65597.f90: Ditto.
7431 * testsuite/libgomp.fortran/pr66199-1.f90: Ditto.
7432 * testsuite/libgomp.fortran/pr71014.f90: Ditto.
7433 * testsuite/libgomp.fortran/pr81304.f90: Ditto.
7434 * testsuite/libgomp.fortran/pr81841.f90: Ditto.
7435 * testsuite/libgomp.fortran/pr84418-1.f90: Ditto.
7436 * testsuite/libgomp.fortran/pr84418-2.f90: Ditto.
7437 * testsuite/libgomp.fortran/procptr1.f90: Ditto.
7438 * testsuite/libgomp.fortran/recursion1.f90: Ditto.
7439 * testsuite/libgomp.fortran/reduction1.f90: Ditto.
7440 * testsuite/libgomp.fortran/reduction2.f90: Ditto.
7441 * testsuite/libgomp.fortran/reduction3.f90: Ditto.
7442 * testsuite/libgomp.fortran/reduction4.f90: Ditto.
7443 * testsuite/libgomp.fortran/reduction5.f90: Ditto.
7444 * testsuite/libgomp.fortran/reduction6.f90: Ditto.
7445 * testsuite/libgomp.fortran/reference1.f90: Ditto.
7446 * testsuite/libgomp.fortran/reference2.f90: Ditto.
7447 * testsuite/libgomp.fortran/retval1.f90: Ditto.
7448 * testsuite/libgomp.fortran/retval2.f90: Ditto.
7449 * testsuite/libgomp.fortran/sharing1.f90: Ditto.
7450 * testsuite/libgomp.fortran/sharing2.f90: Ditto.
7451 * testsuite/libgomp.fortran/simd1.f90: Ditto.
7452 * testsuite/libgomp.fortran/simd2.f90: Ditto.
7453 * testsuite/libgomp.fortran/simd3.f90: Ditto.
7454 * testsuite/libgomp.fortran/simd4.f90: Ditto.
7455 * testsuite/libgomp.fortran/simd5.f90: Ditto.
7456 * testsuite/libgomp.fortran/simd6.f90: Ditto.
7457 * testsuite/libgomp.fortran/simd7.f90: Ditto.
7458 * testsuite/libgomp.fortran/stack.f90: Ditto.
7459 * testsuite/libgomp.fortran/strassen.f90: Ditto.
7460 * testsuite/libgomp.fortran/tabs1.f90: Ditto.
7461 * testsuite/libgomp.fortran/tabs2.f: Ditto.
7462 * testsuite/libgomp.fortran/target1.f90: Ditto.
7463 * testsuite/libgomp.fortran/target2.f90: Ditto.
7464 * testsuite/libgomp.fortran/target3.f90: Ditto.
7465 * testsuite/libgomp.fortran/target4.f90: Ditto.
7466 * testsuite/libgomp.fortran/target5.f90: Ditto.
7467 * testsuite/libgomp.fortran/target6.f90: Ditto.
7468 * testsuite/libgomp.fortran/target7.f90: Ditto.
7469 * testsuite/libgomp.fortran/target8.f90: Ditto.
7470 * testsuite/libgomp.fortran/task1.f90: Ditto.
7471 * testsuite/libgomp.fortran/task2.f90: Ditto.
7472 * testsuite/libgomp.fortran/task3.f90: Ditto.
7473 * testsuite/libgomp.fortran/task4.f90: Ditto.
7474 * testsuite/libgomp.fortran/taskgroup1.f90: Ditto.
7475 * testsuite/libgomp.fortran/taskloop1.f90: Ditto.
7476 * testsuite/libgomp.fortran/taskloop2.f90: Ditto.
7477 * testsuite/libgomp.fortran/taskloop3.f90: Ditto.
7478 * testsuite/libgomp.fortran/taskloop4.f90: Ditto.
7479 * testsuite/libgomp.fortran/threadprivate1.f90: Ditto.
7480 * testsuite/libgomp.fortran/threadprivate2.f90: Ditto.
7481 * testsuite/libgomp.fortran/threadprivate3.f90: Ditto.
7482 * testsuite/libgomp.fortran/threadprivate4.f90: Ditto.
7483 * testsuite/libgomp.fortran/udr1.f90: Ditto.
7484 * testsuite/libgomp.fortran/udr10.f90: Ditto.
7485 * testsuite/libgomp.fortran/udr11.f90: Ditto.
7486 * testsuite/libgomp.fortran/udr12.f90: Ditto.
7487 * testsuite/libgomp.fortran/udr13.f90: Ditto.
7488 * testsuite/libgomp.fortran/udr14.f90: Ditto.
7489 * testsuite/libgomp.fortran/udr15.f90: Ditto.
7490 * testsuite/libgomp.fortran/udr2.f90: Ditto.
7491 * testsuite/libgomp.fortran/udr3.f90: Ditto.
7492 * testsuite/libgomp.fortran/udr4.f90: Ditto.
7493 * testsuite/libgomp.fortran/udr5.f90: Ditto.
7494 * testsuite/libgomp.fortran/udr6.f90: Ditto.
7495 * testsuite/libgomp.fortran/udr7.f90: Ditto.
7496 * testsuite/libgomp.fortran/udr8.f90: Ditto.
7497 * testsuite/libgomp.fortran/udr9.f90: Ditto.
7498 * testsuite/libgomp.fortran/vla1.f90: Ditto.
7499 * testsuite/libgomp.fortran/vla2.f90: Ditto.
7500 * testsuite/libgomp.fortran/vla3.f90: Ditto.
7501 * testsuite/libgomp.fortran/vla4.f90: Ditto.
7502 * testsuite/libgomp.fortran/vla5.f90: Ditto.
7503 * testsuite/libgomp.fortran/vla6.f90: Ditto.
7504 * testsuite/libgomp.fortran/vla7.f90: Ditto.
7505 * testsuite/libgomp.fortran/vla8.f90: Ditto.
7506 * testsuite/libgomp.fortran/workshare1.f90: Ditto.
7507 * testsuite/libgomp.fortran/workshare2.f90: Ditto.
7508
7509 2019-10-30 Tobias Burnus <tobias@codesourcery.com>
7510
7511 * testsuite/libgomp.fortran/target-simd.f90: Use stop not abort.
7512 * testsuite/libgomp.fortran/use_device_ptr-optional-1.f90:
7513 Ditto; add 'dg-do run' for torture testing.
7514 * testsuite/libgomp.fortran/lastprivate1.f90: Add 'dg-do run'.
7515 * testsuite/libgomp.fortran/lastprivate2.f90: Ditto.
7516 * testsuite/libgomp.fortran/nestedfn4.f90: Ditto.
7517 * testsuite/libgomp.fortran/pr25219.f90: Ditto.
7518 * testsuite/libgomp.fortran/pr28390.f: Ditto.
7519 * testsuite/libgomp.fortran/pr35130.f90: Ditto.
7520 * testsuite/libgomp.fortran/pr90779.f90: Ditto.
7521 * testsuite/libgomp.fortran/task2.f90: Ditto.
7522 * testsuite/libgomp.fortran/taskgroup1.f90: Ditto.
7523 * testsuite/libgomp.fortran/taskloop1.f90: Ditto.
7524 * testsuite/libgomp.fortran/use_device_addr-1.f90: Ditto.
7525 * testsuite/libgomp.fortran/use_device_addr-2.f90: Ditto.
7526 * testsuite/libgomp.fortran/workshare1.f90: Ditto.
7527 * testsuite/libgomp.fortran/workshare2.f90: Ditto.
7528
7529 2019-10-28 Tobias Burnus <tobias@codesourcery.com>
7530
7531 * testsuite/libgomp.oacc-fortran/abort-1.f90: Add 'dg-do run'.
7532 * testsuite/libgomp.oacc-fortran/abort-2.f90: Ditto.
7533 * testsuite/libgomp.oacc-fortran/acc_on_device-1-1.f90: Ditto.
7534 * testsuite/libgomp.oacc-fortran/acc_on_device-1-2.f90: Ditto.
7535 * testsuite/libgomp.oacc-fortran/acc_on_device-1-3.f90: Ditto.
7536 * testsuite/libgomp.oacc-fortran/lib-1.f90: Ditto.
7537 * testsuite/libgomp.oacc-fortran/common-block-1.f90:
7538 Use 'stop' not abort().
7539 * testsuite/libgomp.oacc-fortran/common-block-2.f90: Ditto.
7540 * testsuite/libgomp.oacc-fortran/common-block-3.f90: Ditto.
7541 * testsuite/libgomp.oacc-fortran/data-1.f90: Ditto.
7542 * testsuite/libgomp.oacc-fortran/data-2.f90: Ditto.
7543 * testsuite/libgomp.oacc-fortran/data-5.f90: Ditto.
7544 * testsuite/libgomp.oacc-fortran/dummy-array.f90: Ditto.
7545 * testsuite/libgomp.oacc-fortran/gemm-2.f90: Ditto.
7546 * testsuite/libgomp.oacc-fortran/gemm.f90: Ditto.
7547 * testsuite/libgomp.oacc-fortran/host_data-2.f90: Ditto.
7548 * testsuite/libgomp.oacc-fortran/host_data-3.f90: Ditto.
7549 * testsuite/libgomp.oacc-fortran/host_data-4.f90: Ditto.
7550 * testsuite/libgomp.oacc-fortran/kernels-collapse-3.f90: Ditto.
7551 * testsuite/libgomp.oacc-fortran/kernels-collapse-4.f90: Ditto.
7552 * testsuite/libgomp.oacc-fortran/kernels-independent.f90: Ditto.
7553 * testsuite/libgomp.oacc-fortran/kernels-loop-1.f90: Ditto.
7554 * testsuite/libgomp.oacc-fortran/kernels-map-1.f90: Ditto.
7555 * testsuite/libgomp.oacc-fortran/kernels-parallel-loop-data-enter-exit.f95:
7556 Ditto.
7557 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-1.f90:
7558 Ditto.
7559 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-2.f90:
7560 Ditto.
7561 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-3.f90:
7562 Ditto.
7563 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-6.f90:
7564 Ditto.
7565 * testsuite/libgomp.oacc-fortran/kernels-private-vars-vector-1.f90:
7566 Ditto.
7567 * testsuite/libgomp.oacc-fortran/kernels-private-vars-vector-2.f90:
7568 Ditto.
7569 * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-1.f90:
7570 Ditto.
7571 * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-2.f90:
7572 Ditto.
7573 * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-3.f90:
7574 Ditto.
7575 * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-4.f90:
7576 Ditto.
7577 * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-5.f90:
7578 Ditto.
7579 * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-6.f90:
7580 Ditto.
7581 * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-7.f90:
7582 Ditto.
7583 * testsuite/libgomp.oacc-fortran/kernels-reduction-1.f90: Ditto.
7584 * testsuite/libgomp.oacc-fortran/lib-12.f90: Ditto.
7585 * testsuite/libgomp.oacc-fortran/lib-13.f90: Ditto.
7586 * testsuite/libgomp.oacc-fortran/lib-14.f90: Ditto.
7587 * testsuite/libgomp.oacc-fortran/kernels-acc-loop-reduction-2.f90:
7588 Likewise and also add 'dg-do run'.
7589 * testsuite/libgomp.oacc-fortran/kernels-acc-loop-reduction.f90:
7590 Ditto.
7591
7592 2019-10-25 Cesar Philippidis <cesar@codesourcery.com>
7593 Tobias Burnus <tobias@codesourcery.com>
7594
7595 * testsuite/libgomp.oacc-fortran/common-block-1.f90: New test.
7596 * testsuite/libgomp.oacc-fortran/common-block-2.f90: New test.
7597 * testsuite/libgomp.oacc-fortran/common-block-3.f90: New test.
7598
7599 2019-10-14 Jakub Jelinek <jakub@redhat.com>
7600
7601 PR libgomp/92081
7602 * testsuite/libgomp.fortran/target-simd.f90: Iterate from 1 rather
7603 than 0.
7604
7605 2019-10-11 Tobias Burnus <tobias@codesourcery.com>
7606
7607 * testsuite/libgomp.fortran/use_device_addr-1.f90: New.
7608 * testsuite/libgomp.fortran/use_device_addr-2.f90: New.
7609
7610 2019-10-09 Thomas Schwinge <thomas@codesourcery.com>
7611
7612 PR middle-end/92036
7613 * testsuite/libgomp.oacc-c-c++-common/data-firstprivate-1.c: New
7614 file.
7615
7616 2019-10-09 Tobias Burnus <tobias@codesourcery.com>
7617
7618 PR testsuite/91884
7619 * testsuite/libgomp.fortran/fortran.exp: Conditionally
7620 add -lquadmath.
7621 * testsuite/libgomp.oacc-fortran/fortran.exp: Ditto.
7622
7623 2019-10-09 Jakub Jelinek <jakub@redhat.com>
7624
7625 PR libgomp/92028
7626 * target.c (gomp_map_vars_internal): Readd the previous
7627 GOMP_MAP_USE_DEVICE_PTR handling code in the first loop,
7628 though do that just in the !not_found_cnt case.
7629
7630 2019-10-08 Tobias Burnus <tobias@codesourcery.com>
7631
7632 * gfortran.dg/gomp/target-simd.f90: New.
7633
7634 2019-10-02 Julian Brown <julian@codesourcery.com>
7635 Cesar Philippidis <cesar@codesourcery.com>
7636
7637 * libgomp.h (OFFSET_INLINED, OFFSET_POINTER, OFFSET_STRUCT): Define.
7638 * target.c (FIELD_TGT_EMPTY): Define.
7639 (gomp_map_val): Use OFFSET_* macros instead of magic constants. Write
7640 as switch instead of list of ifs.
7641 (gomp_map_vars_internal): Use OFFSET_* and FIELD_TGT_EMPTY macros.
7642
7643 2019-10-02 Andreas Tobler <andreast@gcc.gnu.org>
7644
7645 * testsuite/libgomp.oacc-c-c++-common/loop-default.h: Remove alloca.h
7646 include. Replace alloca () with __builtin_alloca ().
7647 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: Likewise.
7648
7649 2019-10-01 Jakub Jelinek <jakub@redhat.com>
7650
7651 * configure.ac: Remove GCC_HEADER_STDINT(gstdint.h).
7652 * libgomp.h: Include <stdint.h> instead of "gstdint.h".
7653 * oacc-parallel.c: Don't include "libgomp_g.h".
7654 * plugin/plugin-hsa.c: Include <stdint.h> instead of "gstdint.h".
7655 * plugin/plugin-nvptx.c: Don't include "gstdint.h".
7656 * aclocal.m4: Regenerated.
7657 * config.h.in: Regenerated.
7658 * configure: Regenerated.
7659 * Makefile.in: Regenerated.
7660
7661 2019-09-30 Kwok Cheung Yeung <kcy@codesourcery.com>
7662
7663 * libgomp_g.h: Include stdint.h instead of gstdint.h.
7664
7665 2019-09-27 Maciej W. Rozycki <macro@wdc.com>
7666
7667 * configure: Regenerate.
7668
7669 2019-09-13 Tobias Burnus <tobias@codesourcery.com>
7670
7671 * plugin/plugin-hsa.c (hsa_warn, hsa_fatal, hsa_error): Ensure
7672 string is initialized.
7673
7674 2019-09-06 Florian Weimer <fweimer@redhat.com>
7675
7676 * configure: Regenerate.
7677
7678 2019-09-03 Chung-Lin Tang <cltang@codesourcery.com>
7679
7680 PR other/79543
7681 * acinclude.m4 (LIBGOMP_CHECK_LINKER_FEATURES): Fix GNU ld --version
7682 scanning to conform to the GNU Coding Standards.
7683 * configure: Regenerate.
7684
7685 2019-08-28 Jakub Jelinek <jakub@redhat.com>
7686
7687 PR libgomp/91530
7688 * testsuite/libgomp.c/scan-21.c: New test.
7689 * testsuite/libgomp.c/scan-22.c: New test.
7690
7691 2019-08-27 Jakub Jelinek <jakub@redhat.com>
7692
7693 PR libgomp/91530
7694 * testsuite/libgomp.c/scan-11.c: Add -msse2 option for sse2_runtime
7695 targets.
7696 * testsuite/libgomp.c/scan-12.c: Likewise.
7697 * testsuite/libgomp.c/scan-13.c: Likewise.
7698 * testsuite/libgomp.c/scan-14.c: Likewise.
7699 * testsuite/libgomp.c/scan-15.c: Likewise.
7700 * testsuite/libgomp.c/scan-16.c: Likewise.
7701 * testsuite/libgomp.c/scan-17.c: Likewise.
7702 * testsuite/libgomp.c/scan-18.c: Likewise.
7703 * testsuite/libgomp.c/scan-19.c: Likewise.
7704 * testsuite/libgomp.c/scan-20.c: Likewise.
7705 * testsuite/libgomp.c++/scan-9.C: Likewise.
7706 * testsuite/libgomp.c++/scan-10.C: Likewise.
7707 * testsuite/libgomp.c++/scan-11.C: Likewise.
7708 * testsuite/libgomp.c++/scan-12.C: Likewise.
7709 * testsuite/libgomp.c++/scan-14.C: Likewise.
7710 * testsuite/libgomp.c++/scan-15.C: Likewise.
7711 * testsuite/libgomp.c++/scan-13.C: Likewise. Use sse2_runtime
7712 instead of i?86-*-* x86_64-*-* as target for scan-tree-dump-times.
7713 * testsuite/libgomp.c++/scan-16.C: Likewise.
7714
7715 2019-08-17 Thomas Koenig <tkoenig@gcc.gnu.org>
7716
7717 PR fortran/91473
7718 * testsuite/libgomp.fortran/appendix-a/a.28.5.f90: Add
7719 -std=legacy so invalid code in the test case is accepted.
7720
7721 2019-08-12 Thomas Koenig <tkoenig@gcc.gnu.org>
7722
7723 PR fortran/91422
7724 * testsuite/libgomp.oacc-fortran/routine-7.f90: Correct array
7725 dimension.
7726
7727 2019-08-08 Jakub Jelinek <jakub@redhat.com>
7728
7729 * target.c (gomp_map_vars_internal): For GOMP_MAP_USE_DEVICE_PTR
7730 perform the lookup in the first loop only if !not_found_cnt, otherwise
7731 perform lookups for it in the second loop guarded with
7732 if (not_found_cnt || has_firstprivate).
7733 * testsuite/libgomp.c/target-37.c: New test.
7734 * testsuite/libgomp.c++/target-22.C: New test.
7735
7736 2019-08-07 Jakub Jelinek <jakub@redhat.com>
7737
7738 * testsuite/libgomp.c/target-18.c (struct S): New type.
7739 (foo): Use use_device_addr clause instead of use_device_ptr clause
7740 where required by OpenMP 5.0, add further tests for both use_device_ptr
7741 and use_device_addr clauses.
7742 * testsuite/libgomp.c++/target-9.C (struct S): New type.
7743 (foo): Use use_device_addr clause instead of use_device_ptr clause
7744 where required by OpenMP 5.0, add further tests for both use_device_ptr
7745 and use_device_addr clauses. Add t and u arguments.
7746 (main): Adjust caller.
7747
7748 2019-08-06 Jakub Jelinek <jakub@redhat.com>
7749
7750 * testsuite/libgomp.c++/loop-13.C: New test.
7751 * testsuite/libgomp.c++/loop-14.C: New test.
7752 * testsuite/libgomp.c++/loop-15.C: New test.
7753
7754 2019-07-31 Jakub Jelinek <jakub@redhat.com>
7755
7756 PR middle-end/91301
7757 * testsuite/libgomp.c++/for-27.C: New test.
7758
7759 2019-07-23 Steven G. Kargl <kargl@gcc.gnu.org>
7760
7761 * testsuite/libgomp.fortran/reduction4.f90: Update BOZ usage.
7762 * testsuite/libgomp.fortran/reduction5.f90: Ditto.
7763
7764 2019-07-20 Jakub Jelinek <jakub@redhat.com>
7765
7766 * testsuite/libgomp.c-c++-common/loop-1.c: New test.
7767
7768 2019-07-08 Jakub Jelinek <jakub@redhat.com>
7769
7770 * testsuite/libgomp.c++/scan-13.C: Replace xfail with target x86.
7771 * testsuite/libgomp.c++/scan-16.C: Likewise.
7772
7773 2019-07-06 Jakub Jelinek <jakub@redhat.com>
7774
7775 * testsuite/libgomp.c/scan-19.c: New test.
7776 * testsuite/libgomp.c/scan-20.c: New test.
7777
7778 * testsuite/libgomp.c/scan-11.c: New test.
7779 * testsuite/libgomp.c/scan-12.c: New test.
7780 * testsuite/libgomp.c/scan-13.c: New test.
7781 * testsuite/libgomp.c/scan-14.c: New test.
7782 * testsuite/libgomp.c/scan-15.c: New test.
7783 * testsuite/libgomp.c/scan-16.c: New test.
7784 * testsuite/libgomp.c/scan-17.c: New test.
7785 * testsuite/libgomp.c/scan-18.c: New test.
7786 * testsuite/libgomp.c++/scan-9.C: New test.
7787 * testsuite/libgomp.c++/scan-10.C: New test.
7788 * testsuite/libgomp.c++/scan-11.C: New test.
7789 * testsuite/libgomp.c++/scan-12.C: New test.
7790 * testsuite/libgomp.c++/scan-13.C: New test.
7791 * testsuite/libgomp.c++/scan-14.C: New test.
7792 * testsuite/libgomp.c++/scan-15.C: New test.
7793 * testsuite/libgomp.c++/scan-16.C: New test.
7794
7795 2019-07-04 Jakub Jelinek <jakub@redhat.com>
7796
7797 * testsuite/libgomp.c/scan-9.c: New test.
7798 * testsuite/libgomp.c/scan-10.c: New test.
7799
7800 2019-07-03 Jakub Jelinek <jakub@redhat.com>
7801
7802 * testsuite/libgomp.c++/scan-1.C: New test.
7803 * testsuite/libgomp.c++/scan-2.C: New test.
7804 * testsuite/libgomp.c++/scan-3.C: New test.
7805 * testsuite/libgomp.c++/scan-4.C: New test.
7806 * testsuite/libgomp.c++/scan-5.C: New test.
7807 * testsuite/libgomp.c++/scan-6.C: New test.
7808 * testsuite/libgomp.c++/scan-7.C: New test.
7809 * testsuite/libgomp.c++/scan-8.C: New test.
7810 * testsuite/libgomp.c/scan-1.c: New test.
7811 * testsuite/libgomp.c/scan-2.c: New test.
7812 * testsuite/libgomp.c/scan-3.c: New test.
7813 * testsuite/libgomp.c/scan-4.c: New test.
7814 * testsuite/libgomp.c/scan-5.c: New test.
7815 * testsuite/libgomp.c/scan-6.c: New test.
7816 * testsuite/libgomp.c/scan-7.c: New test.
7817 * testsuite/libgomp.c/scan-8.c: New test.
7818
7819 2019-06-18 Thomas Schwinge <thomas@codesourcery.com>
7820
7821 * testsuite/libgomp.oacc-c++/firstprivate-mappings-1.C: New file.
7822 * testsuite/libgomp.oacc-c-c++-common/firstprivate-mappings-1.c:
7823 Likewise.
7824
7825 * testsuite/libgomp.fortran/allocatable3.f90: Add missing results
7826 check.
7827
7828 2019-06-18 Cesar Philippidis <cesar@codesourcery.com>
7829
7830 * testsuite/libgomp.oacc-fortran/allocatable-array-1.f90: New
7831 file.
7832
7833 2019-06-18 Thomas Schwinge <thomas@codesourcery.com>
7834
7835 PR fortran/90743
7836 * oacc-parallel.c (GOACC_parallel_keyed): Handle NULL mapping
7837 case.
7838 * testsuite/libgomp.fortran/target-allocatable-1-1.f90: New file.
7839 * testsuite/libgomp.fortran/target-allocatable-1-2.f90: Likewise.
7840 * testsuite/libgomp.oacc-fortran/allocatable-1-1.f90: Likewise.
7841 * testsuite/libgomp.oacc-fortran/allocatable-1-2.f90: Likewise.
7842
7843 PR testsuite/90861
7844 * testsuite/libgomp.oacc-c-c++-common/declare-vla.c: Update.
7845
7846 PR middle-end/90862
7847 * testsuite/libgomp.oacc-c-c++-common/declare-1.c: Update.
7848
7849 2019-06-16 Tom de Vries <tdevries@suse.de>
7850
7851 PR tree-optimization/89376
7852 * testsuite/libgomp.oacc-c-c++-common/pr89376.c: New test.
7853
7854 2019-06-15 Tom de Vries <tdevries@suse.de>
7855
7856 PR tree-optimization/89713
7857 * testsuite/libgomp.oacc-c-c++-common/pr85381-2.c: Expect no bar.sync.
7858 * testsuite/libgomp.oacc-c-c++-common/pr85381-4.c: Same.
7859
7860 2019-06-15 Jakub Jelinek <jakub@redhat.com>
7861
7862 PR middle-end/90779
7863 * testsuite/libgomp.c/pr90779.c: New test.
7864 * testsuite/libgomp.fortran/pr90779.f90: New test.
7865
7866 2019-06-15 Tom de Vries <tdevries@suse.de>
7867
7868 PR tree-optimization/90009
7869 * testsuite/libgomp.oacc-c-c++-common/pr90009.c: New test.
7870
7871 2019-06-13 Feng Xue <fxue@os.amperecomputing.com>
7872
7873 PR tree-optimization/89713
7874 * testsuite/libgomp.oacc-c-c++-common/pr84955-1.c: New test.
7875
7876 2019-06-11 Jakub Jelinek <jakub@redhat.com>
7877
7878 PR target/90811
7879 * testsuite/libgomp.c/pr90811.c: New test.
7880
7881 2019-06-05 Jakub Jelinek <jakub@redhat.com>
7882
7883 * testsuite/libgomp.c++/lastprivate-conditional-1.C: New test.
7884 * testsuite/libgomp.c++/lastprivate-conditional-2.C: New test.
7885
7886 2019-06-04 Jakub Jelinek <jakub@redhat.com>
7887
7888 * testsuite/libgomp.c-c++-common/lastprivate-conditional-7.c: New test.
7889 * testsuite/libgomp.c-c++-common/lastprivate-conditional-8.c: New test.
7890 * testsuite/libgomp.c-c++-common/lastprivate-conditional-9.c: New test.
7891 * testsuite/libgomp.c-c++-common/lastprivate-conditional-10.c: New test.
7892
7893 2019-05-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7894
7895 * configure.ac: Call AX_COUNT_CPUS.
7896 Substitute CPU_COUNT.
7897 * testsuite/Makefile.am (check-am): Use CPU_COUNT as processor
7898 count fallback.
7899 * aclocal.m4: Regenerate.
7900 * configure: Regenerate.
7901 * Makefile.in, testsuite/Makefile.in: Regenerate.
7902
7903 2019-05-29 Jakub Jelinek <jakub@redhat.com>
7904
7905 * testsuite/libgomp.c-c++-common/lastprivate_conditional_4.c: Rename
7906 to ...
7907 * testsuite/libgomp.c-c++-common/lastprivate-conditional-4.c: ... this.
7908 * testsuite/libgomp.c-c++-common/lastprivate-conditional-5.c: New test.
7909 * testsuite/libgomp.c-c++-common/lastprivate-conditional-6.c: New test.
7910
7911 2019-05-27 Jakub Jelinek <jakub@redhat.com>
7912
7913 * testsuite/libgomp.c-c++-common/lastprivate_conditional_4.c: New test.
7914
7915 * testsuite/libgomp.c-c++-common/lastprivate-conditional-3.c: New test.
7916
7917 PR libgomp/90641
7918 * work.c (gomp_init_work_share): Instead of aligning final ordered
7919 value to multiples of long long alignment, align to that the
7920 first part (ordered team ids) and if inline_ordered_team_ids
7921 is not on a long long alignment boundary within the structure,
7922 use __alignof__ (long long) - 1 pad size always.
7923 * loop.c (GOMP_loop_start): Fix *mem computation if
7924 inline_ordered_team_ids is not aligned on long long alignment boundary
7925 within the structure.
7926 * loop-ull.c (GOMP_loop_ull_start): Likewise.
7927 * sections.c (GOMP_sections2_start): Likewise.
7928
7929 2019-05-24 Jakub Jelinek <jakub@redhat.com>
7930
7931 * testsuite/libgomp.c-c++-common/lastprivate-conditional-1.c: New test.
7932 * testsuite/libgomp.c-c++-common/lastprivate-conditional-2.c: New test.
7933
7934 PR libgomp/90585
7935 * plugin/plugin-hsa.c: Include gstdint.h. Include inttypes.h only if
7936 HAVE_INTTYPES_H is defined.
7937 (print_uint64_t): New typedef.
7938 (PRIu64): Define if HAVE_INTTYPES_H is not defined.
7939 (print_kernel_dispatch, run_kernel): Use PRIu64 macro instead of
7940 "lu", cast uint64_t HSA_DEBUG and fprintf arguments to print_uint64_t.
7941 (release_kernel_dispatch): Likewise. Cast shadow->debug to uintptr_t
7942 before casting to void *.
7943 * plugin/plugin-nvptx.c: Include gstdint.h instead of stdint.h.
7944 * oacc-mem.c: Don't include config.h nor stdint.h.
7945 * target.c: Don't include config.h.
7946 * oacc-cuda.c: Likewise.
7947 * oacc-host.c: Don't include stdint.h.
7948
7949 2019-05-20 Jakub Jelinek <jakub@redhat.com>
7950
7951 PR libgomp/90527
7952 * alloc.c (_GNU_SOURCE): Define.
7953
7954 2019-05-17 Thomas Schwinge <thomas@codesourcery.com>
7955
7956 * acc_prof.h: New file.
7957 * oacc-profiling.c: Likewise.
7958 * Makefile.am (nodist_libsubinclude_HEADERS, libgomp_la_SOURCES):
7959 Add these, respectively.
7960 * Makefile.in: Regenerate.
7961 * env.c (initialize_env): Call goacc_profiling_initialize.
7962 * oacc-plugin.c (GOMP_PLUGIN_goacc_thread)
7963 (GOMP_PLUGIN_goacc_profiling_dispatch): New functions.
7964 * oacc-plugin.h (GOMP_PLUGIN_goacc_thread)
7965 (GOMP_PLUGIN_goacc_profiling_dispatch): Declare.
7966 * libgomp.map (OACC_2.5.1): Add acc_prof_lookup,
7967 acc_prof_register, acc_prof_unregister, and acc_register_library.
7968 (GOMP_PLUGIN_1.3): Add GOMP_PLUGIN_goacc_profiling_dispatch, and
7969 GOMP_PLUGIN_goacc_thread.
7970 * oacc-int.h (struct goacc_thread): Add prof_info, api_info,
7971 prof_callbacks_enabled members.
7972 (goacc_prof_enabled, goacc_profiling_initialize)
7973 (_goacc_profiling_dispatch_p, _goacc_profiling_setup_p)
7974 (goacc_profiling_dispatch): Declare.
7975 (GOACC_PROF_ENABLED, GOACC_PROFILING_DISPATCH_P)
7976 (GOACC_PROFILING_SETUP_P): Define.
7977 * oacc-async.c (acc_async_test, acc_async_test_all, acc_wait)
7978 (acc_wait_async, acc_wait_all, acc_wait_all_async): Update for
7979 OpenACC Profiling Interface.
7980 * oacc-cuda.c (acc_get_current_cuda_device)
7981 (acc_get_current_cuda_context, acc_get_cuda_stream)
7982 (acc_set_cuda_stream): Likewise.
7983 * oacc-init.c (acc_init_1, goacc_attach_host_thread_to_device)
7984 (acc_init, acc_set_device_type, acc_get_device_type)
7985 (acc_get_device_num, goacc_lazy_initialize): Likewise.
7986 * oacc-mem.c (acc_malloc, acc_free, memcpy_tofrom_device)
7987 (acc_deviceptr, acc_hostptr, acc_is_present, acc_map_data)
7988 (acc_unmap_data, present_create_copy, delete_copyout)
7989 (update_dev_host): Likewise.
7990 * oacc-parallel.c (GOACC_parallel_keyed, GOACC_data_start)
7991 (GOACC_data_end, GOACC_enter_exit_data, GOACC_update, GOACC_wait):
7992 Likewise.
7993 * plugin/plugin-nvptx.c (nvptx_exec, nvptx_alloc, nvptx_free)
7994 (GOMP_OFFLOAD_openacc_exec, GOMP_OFFLOAD_openacc_async_exec):
7995 Likewise.
7996 * libgomp.texi: Update.
7997 * testsuite/libgomp.oacc-c-c++-common/acc_prof-dispatch-1.c: New
7998 file.
7999 * testsuite/libgomp.oacc-c-c++-common/acc_prof-init-1.c: Likewise.
8000 * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c:
8001 Likewise.
8002 * testsuite/libgomp.oacc-c-c++-common/acc_prof-parallel-1.c:
8003 Likewise.
8004 * testsuite/libgomp.oacc-c-c++-common/acc_prof-valid_bytes-1.c:
8005 Likewise.
8006 * testsuite/libgomp.oacc-c-c++-common/acc_prof-version-1.c:
8007 Likewise.
8008
8009 2019-05-13 Chung-Lin Tang <cltang@codesourcery.com>
8010
8011 * libgomp-plugin.h (struct goacc_asyncqueue): Declare.
8012 (struct goacc_asyncqueue_list): Likewise.
8013 (goacc_aq): Likewise.
8014 (goacc_aq_list): Likewise.
8015 (GOMP_OFFLOAD_openacc_register_async_cleanup): Remove.
8016 (GOMP_OFFLOAD_openacc_async_test): Remove.
8017 (GOMP_OFFLOAD_openacc_async_test_all): Remove.
8018 (GOMP_OFFLOAD_openacc_async_wait): Remove.
8019 (GOMP_OFFLOAD_openacc_async_wait_async): Remove.
8020 (GOMP_OFFLOAD_openacc_async_wait_all): Remove.
8021 (GOMP_OFFLOAD_openacc_async_wait_all_async): Remove.
8022 (GOMP_OFFLOAD_openacc_async_set_async): Remove.
8023 (GOMP_OFFLOAD_openacc_exec): Adjust declaration.
8024 (GOMP_OFFLOAD_openacc_cuda_get_stream): Likewise.
8025 (GOMP_OFFLOAD_openacc_cuda_set_stream): Likewise.
8026 (GOMP_OFFLOAD_openacc_async_exec): Declare.
8027 (GOMP_OFFLOAD_openacc_async_construct): Declare.
8028 (GOMP_OFFLOAD_openacc_async_destruct): Declare.
8029 (GOMP_OFFLOAD_openacc_async_test): Declare.
8030 (GOMP_OFFLOAD_openacc_async_synchronize): Declare.
8031 (GOMP_OFFLOAD_openacc_async_serialize): Declare.
8032 (GOMP_OFFLOAD_openacc_async_queue_callback): Declare.
8033 (GOMP_OFFLOAD_openacc_async_host2dev): Declare.
8034 (GOMP_OFFLOAD_openacc_async_dev2host): Declare.
8035
8036 * libgomp.h (struct acc_dispatch_t): Define 'async' sub-struct.
8037 (gomp_acc_insert_pointer): Adjust declaration.
8038 (gomp_copy_host2dev): New declaration.
8039 (gomp_copy_dev2host): Likewise.
8040 (gomp_map_vars_async): Likewise.
8041 (gomp_unmap_tgt): Likewise.
8042 (gomp_unmap_vars_async): Likewise.
8043 (gomp_fini_device): Likewise.
8044
8045 * oacc-async.c (get_goacc_thread): New function.
8046 (get_goacc_thread_device): New function.
8047 (lookup_goacc_asyncqueue): New function.
8048 (get_goacc_asyncqueue): New function.
8049 (acc_async_test): Adjust code to use new async design.
8050 (acc_async_test_all): Likewise.
8051 (acc_wait): Likewise.
8052 (acc_wait_async): Likewise.
8053 (acc_wait_all): Likewise.
8054 (acc_wait_all_async): Likewise.
8055 (goacc_async_free): New function.
8056 (goacc_init_asyncqueues): Likewise.
8057 (goacc_fini_asyncqueues): Likewise.
8058 * oacc-cuda.c (acc_get_cuda_stream): Adjust code to use new async
8059 design.
8060 (acc_set_cuda_stream): Likewise.
8061 * oacc-host.c (host_openacc_exec): Adjust parameters, remove 'async'.
8062 (host_openacc_register_async_cleanup): Remove.
8063 (host_openacc_async_exec): New function.
8064 (host_openacc_async_test): Adjust parameters.
8065 (host_openacc_async_test_all): Remove.
8066 (host_openacc_async_wait): Remove.
8067 (host_openacc_async_wait_async): Remove.
8068 (host_openacc_async_wait_all): Remove.
8069 (host_openacc_async_wait_all_async): Remove.
8070 (host_openacc_async_set_async): Remove.
8071 (host_openacc_async_synchronize): New function.
8072 (host_openacc_async_serialize): New function.
8073 (host_openacc_async_host2dev): New function.
8074 (host_openacc_async_dev2host): New function.
8075 (host_openacc_async_queue_callback): New function.
8076 (host_openacc_async_construct): New function.
8077 (host_openacc_async_destruct): New function.
8078 (struct gomp_device_descr host_dispatch): Remove initialization of old
8079 interface, add initialization of new async sub-struct.
8080 * oacc-init.c (acc_shutdown_1): Adjust to use gomp_fini_device.
8081 (goacc_attach_host_thread_to_device): Remove old async code usage.
8082 * oacc-int.h (goacc_init_asyncqueues): New declaration.
8083 (goacc_fini_asyncqueues): Likewise.
8084 (goacc_async_copyout_unmap_vars): Likewise.
8085 (goacc_async_free): Likewise.
8086 (get_goacc_asyncqueue): Likewise.
8087 (lookup_goacc_asyncqueue): Likewise.
8088 * oacc-mem.c (memcpy_tofrom_device): Adjust code to use new async
8089 design.
8090 (present_create_copy): Adjust code to use new async design.
8091 (delete_copyout): Likewise.
8092 (update_dev_host): Likewise.
8093 (gomp_acc_insert_pointer): Add async parameter, adjust code to use new
8094 async design.
8095 (gomp_acc_remove_pointer): Adjust code to use new async design.
8096 * oacc-parallel.c (GOACC_parallel_keyed): Adjust code to use new async
8097 design.
8098 (GOACC_enter_exit_data): Likewise.
8099 (goacc_wait): Likewise.
8100 (GOACC_update): Likewise.
8101 * oacc-plugin.c (GOMP_PLUGIN_async_unmap_vars): Change to assert fail
8102 when called, warn as obsolete in comment.
8103 * target.c (goacc_device_copy_async): New function.
8104 (gomp_copy_host2dev): Remove 'static', add goacc_asyncqueue parameter,
8105 add goacc_device_copy_async case.
8106 (gomp_copy_dev2host): Likewise.
8107 (gomp_map_vars_existing): Add goacc_asyncqueue parameter, adjust code.
8108 (gomp_map_pointer): Likewise.
8109 (gomp_map_fields_existing): Likewise.
8110 (gomp_map_vars_internal): New always_inline function, renamed from
8111 gomp_map_vars.
8112 (gomp_map_vars): Implement by calling gomp_map_vars_internal.
8113 (gomp_map_vars_async): Implement by calling gomp_map_vars_internal,
8114 passing goacc_asyncqueue argument.
8115 (gomp_unmap_tgt): Remove static, add attribute_hidden.
8116 (gomp_unref_tgt): New function.
8117 (gomp_unmap_vars_internal): New always_inline function, renamed from
8118 gomp_unmap_vars.
8119 (gomp_unmap_vars): Implement by calling gomp_unmap_vars_internal.
8120 (gomp_unmap_vars_async): Implement by calling
8121 gomp_unmap_vars_internal, passing goacc_asyncqueue argument.
8122 (gomp_fini_device): New function.
8123 (gomp_exit_data): Adjust gomp_copy_dev2host call.
8124 (gomp_load_plugin_for_device): Remove old interface, adjust to load
8125 new async interface.
8126 (gomp_target_fini): Adjust code to call gomp_fini_device.
8127
8128 * plugin/plugin-nvptx.c (struct cuda_map): Remove.
8129 (struct ptx_stream): Remove.
8130 (struct nvptx_thread): Remove current_stream field.
8131 (cuda_map_create): Remove.
8132 (cuda_map_destroy): Remove.
8133 (map_init): Remove.
8134 (map_fini): Remove.
8135 (map_pop): Remove.
8136 (map_push): Remove.
8137 (struct goacc_asyncqueue): Define.
8138 (struct nvptx_callback): Define.
8139 (struct ptx_free_block): Define.
8140 (struct ptx_device): Remove null_stream, active_streams, async_streams,
8141 stream_lock, and next fields.
8142 (enum ptx_event_type): Remove.
8143 (struct ptx_event): Remove.
8144 (ptx_event_lock): Remove.
8145 (ptx_events): Remove.
8146 (init_streams_for_device): Remove.
8147 (fini_streams_for_device): Remove.
8148 (select_stream_for_async): Remove.
8149 (nvptx_init): Remove ptx_events and ptx_event_lock references.
8150 (nvptx_attach_host_thread_to_device): Remove CUDA_ERROR_NOT_PERMITTED
8151 case.
8152 (nvptx_open_device): Add free_blocks initialization, remove
8153 init_streams_for_device call.
8154 (nvptx_close_device): Remove fini_streams_for_device call, add
8155 free_blocks destruct code.
8156 (event_gc): Remove.
8157 (event_add): Remove.
8158 (nvptx_exec): Adjust parameters and code.
8159 (nvptx_free): Likewise.
8160 (nvptx_host2dev): Remove.
8161 (nvptx_dev2host): Remove.
8162 (nvptx_set_async): Remove.
8163 (nvptx_async_test): Remove.
8164 (nvptx_async_test_all): Remove.
8165 (nvptx_wait): Remove.
8166 (nvptx_wait_async): Remove.
8167 (nvptx_wait_all): Remove.
8168 (nvptx_wait_all_async): Remove.
8169 (nvptx_get_cuda_stream): Remove.
8170 (nvptx_set_cuda_stream): Remove.
8171 (GOMP_OFFLOAD_alloc): Adjust code.
8172 (GOMP_OFFLOAD_free): Likewise.
8173 (GOMP_OFFLOAD_openacc_register_async_cleanup): Remove.
8174 (GOMP_OFFLOAD_openacc_exec): Adjust parameters and code.
8175 (GOMP_OFFLOAD_openacc_async_test_all): Remove.
8176 (GOMP_OFFLOAD_openacc_async_wait): Remove.
8177 (GOMP_OFFLOAD_openacc_async_wait_async): Remove.
8178 (GOMP_OFFLOAD_openacc_async_wait_all): Remove.
8179 (GOMP_OFFLOAD_openacc_async_wait_all_async): Remove.
8180 (GOMP_OFFLOAD_openacc_async_set_async): Remove.
8181 (cuda_free_argmem): New function.
8182 (GOMP_OFFLOAD_openacc_async_exec): New plugin hook function.
8183 (GOMP_OFFLOAD_openacc_create_thread_data): Adjust code.
8184 (GOMP_OFFLOAD_openacc_cuda_get_stream): Adjust code.
8185 (GOMP_OFFLOAD_openacc_cuda_set_stream): Adjust code.
8186 (GOMP_OFFLOAD_openacc_async_construct): New plugin hook function.
8187 (GOMP_OFFLOAD_openacc_async_destruct): New plugin hook function.
8188 (GOMP_OFFLOAD_openacc_async_test): Remove and re-implement.
8189 (GOMP_OFFLOAD_openacc_async_synchronize): New plugin hook function.
8190 (GOMP_OFFLOAD_openacc_async_serialize): New plugin hook function.
8191 (GOMP_OFFLOAD_openacc_async_queue_callback): New plugin hook function.
8192 (cuda_callback_wrapper): New function.
8193 (cuda_memcpy_sanity_check): New function.
8194 (GOMP_OFFLOAD_host2dev): Remove and re-implement.
8195 (GOMP_OFFLOAD_dev2host): Remove and re-implement.
8196 (GOMP_OFFLOAD_openacc_async_host2dev): New plugin hook function.
8197 (GOMP_OFFLOAD_openacc_async_dev2host): New plugin hook function.
8198
8199 2019-05-07 Thomas Schwinge <thomas@codesourcery.com>
8200
8201 PR target/87835
8202 * testsuite/libgomp.oacc-c-c++-common/pr87835.c: Update.
8203
8204 2019-05-06 Thomas Schwinge <thomas@codesourcery.com>
8205
8206 * oacc-parallel.c: Add comments to legacy entry points (GCC 5).
8207
8208 2019-03-27 Kevin Buettner <kevinb@redhat.com>
8209
8210 * team.c (gomp_team_start): Initialize pool->threads[0].
8211
8212 2019-02-22 Thomas Schwinge <thomas@codesourcery.com>
8213
8214 * testsuite/libgomp.oacc-c++/c++.exp: Specify
8215 "-foffload=$offload_target".
8216 * testsuite/libgomp.oacc-c/c.exp: Likewise.
8217 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
8218 * testsuite/lib/libgomp.exp
8219 (check_effective_target_openacc_nvidia_accel_configured): Remove,
8220 as (conceptually) merged into
8221 check_effective_target_openacc_nvidia_accel_selected. Adjust all
8222 users.
8223
8224 * plugin/configfrag.ac: Populate and AC_SUBST offload_targets.
8225 * testsuite/libgomp-test-support.exp.in: Adjust.
8226 * testsuite/lib/libgomp.exp: Likewise. Don't populate
8227 openacc_device_types_s.
8228 (offload_target_to_openacc_device_type): New proc.
8229 * testsuite/libgomp.oacc-c++/c++.exp: Adjust.
8230 * testsuite/libgomp.oacc-c/c.exp: Likewise.
8231 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
8232 * Makefile.in: Regenerate.
8233 * configure: Likewise.
8234 * testsuite/Makefile.in: Likewise.
8235
8236 * plugin/configfrag.ac: Populate and AC_SUBST offload_plugins
8237 instead of offload_targets, and AC_DEFINE_UNQUOTED OFFLOAD_PLUGINS
8238 instead of OFFLOAD_TARGETS.
8239 * target.c (gomp_target_init): Adjust.
8240 * testsuite/libgomp-test-support.exp.in: Likewise.
8241 * testsuite/lib/libgomp.exp: Likewise. Populate
8242 openacc_device_types_s instead of offload_targets_s_openacc.
8243 (check_effective_target_openacc_nvidia_accel_selected)
8244 (check_effective_target_openacc_host_selected): Adjust.
8245 * testsuite/libgomp.oacc-c++/c++.exp: Likewise.
8246 * testsuite/libgomp.oacc-c/c.exp: Likewise.
8247 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
8248 * Makefile.in: Regenerate.
8249 * config.h.in: Likewise.
8250 * configure: Likewise.
8251 * testsuite/Makefile.in: Likewise.
8252
8253 * testsuite/lib/libgomp.exp: Error out for unknown offload target.
8254 * testsuite/libgomp.oacc-c++/c++.exp: Likewise. Report if
8255 "offloading: supported, but hardware not accessible".
8256 * testsuite/libgomp.oacc-c/c.exp: Likewise.
8257 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
8258
8259 2019-02-19 Chung-Lin Tang <cltang@codesourcery.com>
8260
8261 PR c/87924
8262 * oacc-parallel.c (GOACC_parallel_keyed): Remove condition on call to
8263 goacc_wait().
8264 (goacc_wait): Handle ACC_ASYNC_NOVAL case, remove goacc_thread() call
8265 and related adjustment.
8266
8267 2019-01-30 Jakub Jelinek <jakub@redhat.com>
8268
8269 PR c++/88988
8270 * testsuite/libgomp.c++/pr88988.C: New test.
8271
8272 2019-01-28 Jakub Jelinek <jakub@redhat.com>
8273
8274 PR middle-end/89002
8275 * testsuite/libgomp.c/pr89002.c: New test.
8276
8277 2019-01-28 Richard Biener <rguenther@suse.de>
8278
8279 PR testsuite/89064
8280 PR tree-optimization/86865
8281 * testsuite/libgomp.graphite/force-parallel-5.c: XFAIL.
8282
8283 2019-01-24 Tom de Vries <tdevries@suse.de>
8284
8285 * plugin/plugin-nvptx.c (GOMP_OFFLOAD_fini_device): Free ptx_devices
8286 once instantiated_devices drops to 0.
8287
8288 2019-01-23 Tom de Vries <tdevries@suse.de>
8289
8290 PR target/PR88946
8291 * plugin/plugin-nvptx.c (cuda_map_destroy): Use CUDA_CALL_NOCHECK for
8292 cuMemFree.
8293 (nvptx_exec): Don't call map_push if mapnum == 0.
8294 * testsuite/libgomp.oacc-c-c++-common/pr88946.c: New test.
8295
8296 2019-01-23 Tom de Vries <tdevries@suse.de>
8297
8298 PR target/88941
8299 PR target/88939
8300 * plugin/plugin-nvptx.c (cuda_map_destroy): Handle map->active case.
8301 (map_fini): Remove "assert (!s->map->active)".
8302 * testsuite/libgomp.oacc-c-c++-common/pr88941.c: New test.
8303
8304 2019-01-23 Tom de Vries <tdevries@suse.de>
8305
8306 PR target/87835
8307 * plugin/plugin-nvptx.c (map_push): Fix adding of allocated element.
8308 * testsuite/libgomp.oacc-c-c++-common/pr87835.c: New test.
8309
8310 2019-01-15 Tom de Vries <tdevries@suse.de>
8311
8312 PR target/80547
8313 * testsuite/libgomp.oacc-c-c++-common/gang-reduction-var-assignment.c:
8314 New test.
8315
8316 2019-01-12 Tom de Vries <tdevries@suse.de>
8317
8318 * testsuite/libgomp.oacc-c-c++-common/pr85486-2.c: New test.
8319 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-2.c: New test.
8320 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-5.c: New test.
8321 * testsuite/libgomp.oacc-fortran/gemm-2.f90: New test.
8322
8323 2019-01-12 Tom de Vries <tdevries@suse.de>
8324
8325 * plugin/plugin-nvptx.c (nvptx_exec): Update error message.
8326
8327 2019-01-12 Tom de Vries <tdevries@suse.de>
8328
8329 * testsuite/libgomp.oacc-c-c++-common/vector-length-64-1.c: New test.
8330 * testsuite/libgomp.oacc-c-c++-common/vector-length-64-2.c: New test.
8331 * testsuite/libgomp.oacc-c-c++-common/vector-length-64-3.c: New test.
8332
8333 2019-01-12 Tom de Vries <tdevries@suse.de>
8334
8335 PR target/85486
8336 * testsuite/libgomp.oacc-c-c++-common/pr85486-3.c: New test.
8337 * testsuite/libgomp.oacc-c-c++-common/pr85486.c: New test.
8338
8339 2019-01-12 Tom de Vries <tdevries@suse.de>
8340
8341 PR target/85381
8342 * testsuite/libgomp.oacc-c-c++-common/pr85381-5.c: New test.
8343 * testsuite/libgomp.oacc-c-c++-common/pr85381.c: New test.
8344
8345 2019-01-12 Tom de Vries <tdevries@suse.de>
8346
8347 * testsuite/libgomp.oacc-c-c++-common/vred2d-128.c: New test.
8348 * testsuite/libgomp.oacc-fortran/gemm.f90: New test.
8349 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-10.c: New test.
8350
8351 2019-01-12 Tom de Vries <tdevries@suse.de>
8352
8353 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-7.c: New test.
8354 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-4.c: New test.
8355 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-6.c: New test.
8356
8357 2019-01-12 Tom de Vries <tdevries@suse.de>
8358
8359 * plugin/plugin-nvptx.c (nvptx_exec): Update insufficient hardware
8360 resources diagnostic.
8361
8362 2019-01-12 Tom de Vries <tdevries@suse.de>
8363
8364 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-1.c: Expect
8365 vector length to be 128.
8366 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Expect vector
8367 length 2097152 to be reduced to 1024 instead of 32.
8368
8369 2019-01-11 Thomas Schwinge <thomas@codesourcery.com>
8370 James Norris <jnorris@codesourcery.com>
8371
8372 * libgomp.texi: Better distinguish OpenACC and OpenMP "Runtime
8373 Library Routines", and "Environment Variables".
8374
8375 2019-01-11 Tom de Vries <tdevries@suse.de>
8376
8377 * plugin/plugin-nvptx.c (nvptx_exec): Prevent vector_length 64 and
8378 num_workers 16.
8379
8380 2019-01-11 Tom de Vries <tdevries@suse.de>
8381
8382 * testsuite/libgomp.oacc-c-c++-common/reduction-1.c: Remove
8383 -foffload=-w.
8384 * testsuite/libgomp.oacc-c-c++-common/reduction-2.c: Same.
8385 * testsuite/libgomp.oacc-c-c++-common/reduction-3.c: Same.
8386 * testsuite/libgomp.oacc-c-c++-common/reduction-4.c: Same.
8387 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Same.
8388
8389 2019-01-11 Tom de Vries <tdevries@suse.de>
8390
8391 * testsuite/libgomp.oacc-c-c++-common/insufficient-resources.c: New
8392 test.
8393
8394 2019-01-10 Nathan Sidwell <nathan@acm.org>
8395 Julian Brown <julian@codesourcery.com>
8396
8397 PR lto/71959
8398 * testsuite/libgomp.oacc-c++/pr71959-aux.cc: New.
8399 * testsuite/libgomp.oacc-c++/pr71959.C: New.
8400
8401 2019-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
8402
8403 * config/rtems/bar.c: Include "../linux/bar.c" and delete copy
8404 and paste code.
8405
8406 2019-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
8407
8408 * config/rtems/affinity-fmt.c: New file. Include affinity-fmt.c,
8409 undefining HAVE_GETPID and HAVE_GETHOSTNAME, and mapping fwrite to
8410 write.
8411
8412 2019-01-09 Tom de Vries <tdevries@suse.de>
8413
8414 PR target/88756
8415 * testsuite/libgomp.oacc-c-c++-common/reduction-1.c (ng, nw, vl): Use
8416 #define instead of "const int".
8417 * testsuite/libgomp.oacc-c-c++-common/reduction-2.c (ng, nw, vl): Same.
8418 * testsuite/libgomp.oacc-c-c++-common/reduction-3.c (ng, nw, vl): Same.
8419 * testsuite/libgomp.oacc-c-c++-common/reduction-4.c (ng, nw, vl): Same.
8420 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c (ng, nw, vl): Same.
8421
8422 2019-01-09 Tom de Vries <tdevries@suse.de>
8423
8424 * plugin/plugin-nvptx.c (nvptx_exec): Make sure to launch with at least
8425 one worker.
8426
8427 2019-01-07 Tom de Vries <tdevries@suse.de>
8428
8429 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-3.c: Fix
8430 GOMP_OPENACC_DIM argument.
8431
8432 2019-01-03 Tom de Vries <tdevries@suse.de>
8433
8434 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-1.c: New test.
8435 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-3.c: New test.
8436
8437 2019-01-01 Jakub Jelinek <jakub@redhat.com>
8438
8439 Update copyright years.
8440
8441 2019-01-01 Jakub Jelinek <jakub@redhat.com>
8442
8443 * libgomp.texi: Bump @copying's copyright year.
8444
8445 2018-12-28 Thomas Schwinge <thomas@codesourcery.com>
8446
8447 * oacc-parallel.c (GOACC_parallel_keyed, GOACC_parallel)
8448 (GOACC_data_start, GOACC_enter_exit_data, GOACC_update)
8449 (GOACC_declare): Redefine the "device" argument to "flags".
8450
8451 2018-12-28 Thomas Schwinge <thomas@codesourcery.com>
8452 Cesar Philippidis <cesar@codesourcery.com>
8453
8454 * target.c (struct gomp_coalesce_chunk): New structure.
8455 (struct gomp_coalesce_buf): Update the chunks member to use that
8456 type. Adjust all users.
8457
8458 2018-12-19 Tom de Vries <tdevries@suse.de>
8459
8460 * testsuite/libgomp.oacc-c-c++-common/pr85381-2.c: New test.
8461 * testsuite/libgomp.oacc-c-c++-common/pr85381-3.c: New test.
8462 * testsuite/libgomp.oacc-c-c++-common/pr85381-4.c: New test.
8463
8464 2018-12-19 Tom de Vries <tdevries@suse.de>
8465
8466 * testsuite/lib/libgomp.exp: Add load_lib of scanoffloadrtl.exp.
8467 * testsuite/libgomp.oacc-c-c++-common/nvptx-merged-loop.c: Move from
8468 gcc/testsuite/gcc.dg/goacc.
8469 * testsuite/libgomp.oacc-c-c++-common/nvptx-sese-1.c: Same.
8470
8471 2018-12-14 Thomas Schwinge <thomas@codesourcery.com>
8472 Chung-Lin Tang <cltang@codesourcery.com>
8473
8474 * oacc-mem.c (acc_present_or_create): Remove definition and change
8475 to alias of acc_create.
8476 (acc_present_or_copyin): Remove definition and change to alias of
8477 acc_copyin.
8478 * oacc-parallel.c (GOACC_enter_exit_data): Call acc_create instead
8479 of acc_present_or_create.
8480 * testsuite/libgomp.oacc-c-c++-common/data-already-1.c: Remove.
8481 * testsuite/libgomp.oacc-c-c++-common/data-already-2.c: Likewise.
8482 * testsuite/libgomp.oacc-c-c++-common/data-already-3.c: Likewise.
8483 * testsuite/libgomp.oacc-c-c++-common/data-already-4.c: Likewise.
8484 * testsuite/libgomp.oacc-c-c++-common/data-already-5.c: Likewise.
8485 * testsuite/libgomp.oacc-c-c++-common/data-already-6.c: Likewise.
8486 * testsuite/libgomp.oacc-c-c++-common/data-already-7.c: Likewise.
8487 * testsuite/libgomp.oacc-c-c++-common/data-already-8.c: Likewise.
8488 * testsuite/libgomp.oacc-fortran/data-already-1.f: Likewise.
8489 * testsuite/libgomp.oacc-fortran/data-already-2.f: Likewise.
8490 * testsuite/libgomp.oacc-fortran/data-already-3.f: Likewise.
8491 * testsuite/libgomp.oacc-fortran/data-already-4.f: Likewise.
8492 * testsuite/libgomp.oacc-fortran/data-already-5.f: Likewise.
8493 * testsuite/libgomp.oacc-fortran/data-already-6.f: Likewise.
8494 * testsuite/libgomp.oacc-fortran/data-already-7.f: Likewise.
8495 * testsuite/libgomp.oacc-fortran/data-already-8.f: Likewise.
8496
8497 2018-12-14 Thomas Schwinge <thomas@codesourcery.com>
8498
8499 PR libgomp/88495
8500 * plugin/plugin-nvptx.c (nvptx_wait_async): Don't refuse
8501 "identical parameters".
8502 * testsuite/libgomp.oacc-c-c++-common/asyncwait-nop-1.c: Update.
8503 * testsuite/libgomp.oacc-c-c++-common/lib-80.c: Remove.
8504
8505 PR libgomp/88484
8506 * oacc-parallel.c (GOACC_wait): Correct handling for "async >= 0".
8507 * testsuite/libgomp.oacc-c-c++-common/asyncwait-nop-1.c: New file.
8508
8509 PR libgomp/88407
8510 * plugin/plugin-nvptx.c (nvptx_async_test, nvptx_wait)
8511 (nvptx_wait_async): Unseen async-argument is a no-op.
8512 * testsuite/libgomp.oacc-c-c++-common/async_queue-1.c: Update.
8513 * testsuite/libgomp.oacc-c-c++-common/data-2-lib.c: Likewise.
8514 * testsuite/libgomp.oacc-c-c++-common/data-2.c: Likewise.
8515 * testsuite/libgomp.oacc-c-c++-common/lib-79.c: Likewise.
8516 * testsuite/libgomp.oacc-fortran/lib-12.f90: Likewise.
8517 * testsuite/libgomp.oacc-c-c++-common/lib-71.c: Merge into...
8518 * testsuite/libgomp.oacc-c-c++-common/lib-69.c: ... this. Update.
8519 * testsuite/libgomp.oacc-c-c++-common/lib-77.c: Merge into...
8520 * testsuite/libgomp.oacc-c-c++-common/lib-74.c: ... this. Update
8521
8522 * testsuite/libgomp.oacc-c-c++-common/data-2-lib.c: Revise.
8523 * testsuite/libgomp.oacc-c-c++-common/data-2.c: Likewise.
8524
8525 2018-12-14 Chung-Lin Tang <cltang@codesourcery.com>
8526
8527 * testsuite/libgomp.oacc-c-c++-common/data-2-lib.c: Adjust.
8528 * testsuite/libgomp.oacc-c-c++-common/data-2.c: Likewise.
8529 * testsuite/libgomp.oacc-c-c++-common/data-3.c: Likewise.
8530
8531 2018-12-14 Thomas Schwinge <thomas@codesourcery.com>
8532
8533 PR libgomp/88370
8534 * libgomp.texi (acc_get_current_cuda_context, acc_get_cuda_stream)
8535 (acc_set_cuda_stream): Clarify.
8536 * oacc-cuda.c (acc_get_cuda_stream, acc_set_cuda_stream): Use
8537 "async_valid_p".
8538 * plugin/plugin-nvptx.c (nvptx_set_cuda_stream): Refuse "async ==
8539 acc_async_sync".
8540 * testsuite/libgomp.oacc-c-c++-common/acc_set_cuda_stream-1.c: New file.
8541 * testsuite/libgomp.oacc-c-c++-common/async_queue-1.c: Likewise.
8542 * testsuite/libgomp.oacc-c-c++-common/lib-84.c: Update.
8543 * testsuite/libgomp.oacc-c-c++-common/lib-85.c: Likewise.
8544
8545 2018-12-14 Tom de Vries <tdevries@suse.de>
8546
8547 * testsuite/libgomp.c-c++-common/function-not-offloaded-aux.c: New test.
8548 * testsuite/libgomp.c-c++-common/function-not-offloaded.c: New test.
8549 * testsuite/libgomp.c-c++-common/variable-not-offloaded.c: New test.
8550 * testsuite/libgomp.oacc-c-c++-common/function-not-offloaded.c: New test.
8551 * testsuite/libgomp.oacc-c-c++-common/variable-not-offloaded.c: New test.
8552
8553 2018-12-13 Tom de Vries <tdevries@suse.de>
8554
8555 * affinity-fmt.c (gomp_print_string): New function, factored out of ...
8556 (omp_display_affinity, gomp_display_affinity_thread): ... here, and ...
8557 * fortran.c (omp_display_affinity_): ... here.
8558 * libgomp.h (gomp_print_string): Declare.
8559 * config/nvptx/affinity-fmt.c: New file. Include affinity-fmt.c,
8560 undefining HAVE_GETPID and HAVE_GETHOSTNAME, and mapping fwrite to
8561 write.
8562
8563 2018-12-13 Jakub Jelinek <jakub@redhat.com>
8564
8565 PR libgomp/88460
8566 * testsuite/libgomp.c++/for-24.C (results): Include it in
8567 omp declare target region.
8568 (main): Use map (always, tofrom: results) instead of
8569 map (tofrom: results).
8570
8571 2018-12-12 Jakub Jelinek <jakub@redhat.com>
8572
8573 PR fortran/88463
8574 * testsuite/libgomp.fortran/pr88463-1.f90: New test.
8575 * testsuite/libgomp.fortran/pr88463-2.f90: New test.
8576
8577 * testsuite/libgomp.c-c++-common/for-16.c: New test.
8578
8579 2018-12-12 Andreas Schwab <schwab@suse.de>
8580
8581 * config/linux/ia64/futex.h (sys_futex0): Don't mark r12 as
8582 clobbered.
8583
8584 2018-12-09 Thomas Koenig <tkoenig@gcc.gnu.org>
8585
8586 PR fortran/88411
8587 * testsuite/libgomp.fortran/async_io_8.f90: New test.
8588
8589 2018-12-09 Thomas Schwinge <thomas@codesourcery.com>
8590 Jakub Jelinek <jakub@redhat.com>
8591
8592 * target.c (gomp_map_vars): Call gomp_copy_host2dev instead of
8593 devicep->host2dev_func.
8594
8595 2018-12-08 Jakub Jelinek <jakub@redhat.com>
8596
8597 PR libgomp/87995
8598 * testsuite/libgomp.c-c++-common/cancel-taskgroup-3.c: Require
8599 tls_runtime effective target.
8600 (t): New threadprivate variable.
8601 (main): Set t in threads which execute iterations of the worksharing
8602 loop. Propagate that to the task after the loop and don't abort
8603 if the current taskgroup hasn't been cancelled.
8604
8605 2018-12-02 Jakub Jelinek <jakub@redhat.com>
8606
8607 * testsuite/libgomp.c/task-reduction-3.c: New test.
8608
8609 * testsuite/libgomp.c-c++-common/cancel-taskgroup-4.c: New test.
8610
8611 2018-11-30 Cesar Philippidis <cesar@codesourcery.com>
8612
8613 PR libgomp/88288
8614 * oacc-parallel.c (GOACC_parallel_keyed): Add offset to devaddrs.
8615 * testsuite/libgomp.oacc-c-c++-common/pr88288.c: New test.
8616
8617 2018-11-30 Thomas Schwinge <thomas@codesourcery.com>
8618
8619 * testsuite/libgomp.oacc-fortran/lib-16-2.f90: New file.
8620
8621 2018-10-19 Richard Biener <rguenther@suse.de>
8622
8623 PR tree-optimization/88182
8624 * testsuite/libgomp.c++/pr88182.C: Move to g++.dg/gomp.
8625
8626 2018-11-26 Jakub Jelinek <jakub@redhat.com>
8627
8628 * testsuite/Makefile.am (AUTOMAKE_OPTIONS): Drop dejagnu.
8629 (RUNTEST): Don't define.
8630 (RUNTESTDEFAULTFLAGS): Add.
8631 (check-DEJAGNU, site.exp, distclean-DEJAGNU): New goals.
8632 (distclean-am): Depend on distclean-DEJAGNU.
8633 (check-am): If -j% option is present in MFLAGS and if
8634 `getconf _NPROCESSORS_ONLN` is more than 8, export OMP_NUM_THREADS=8.
8635 (.PHONY): Add check-DEJAGNU and distclean-DEJAGNU.
8636 * testsuite/Makefile.in: Regenerated.
8637
8638 2018-11-26 Richard Biener <rguenther@suse.de>
8639
8640 PR tree-optimization/88182
8641 * testsuite/libgomp.c++/pr88182.C: New testcase.
8642
8643 2018-11-20 Jakub Jelinek <jakub@redhat.com>
8644
8645 PR bootstrap/88106
8646 * config/mingw32/affinity-fmt.c: New file.
8647
8648 2018-11-09 Jakub Jelinek <jakub@redhat.com>
8649
8650 * affinity-fmt.c: Include inttypes.h if HAVE_INTTYPES_H.
8651 (gomp_display_affinity): Use __builtin_choose_expr to handle
8652 properly handle argument having integral, or pointer or some other
8653 type. If inttypes.h is available and PRIx64 is defined, use PRIx64
8654 with uint64_t type instead of %llx and unsigned long long.
8655
8656 * testsuite/libgomp.c-c++-common/task-reduction-13.c: New test.
8657 * testsuite/libgomp.c-c++-common/task-reduction-14.c: New test.
8658
8659 2018-11-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8660
8661 * affinity.c: Include <string.h>, <stdio.h>.
8662 (gomp_display_affinity_place): Remove cpusetp.
8663 * teams.c: Include <limits.h>.
8664
8665 2018-11-08 Jakub Jelinek <jakub@redhat.com>
8666
8667 * testsuite/libgomp.c-c++-common/task-reduction-8.c (bar): Add
8668 in_reduction clause for s[0].
8669
8670 * affinity.c (gomp_display_affinity_place): New function.
8671 * affinity-fmt.c: New file.
8672 * alloc.c (gomp_aligned_alloc, gomp_aligned_free): New functions.
8673 * config/linux/affinity.c (gomp_display_affinity_place): New function.
8674 * config/nvptx/icv-device.c (omp_get_num_teams, omp_get_team_num):
8675 Move these functions to ...
8676 * config/nvptx/teams.c: ... here. New file.
8677 * config/nvptx/target.c (omp_pause_resource, omp_pause_resource_all):
8678 New functions.
8679 * config/nvptx/team.c (gomp_team_start, gomp_pause_host): New
8680 functions.
8681 * configure.ac: Check for aligned_alloc, posix_memalign, memalign
8682 and _aligned_malloc.
8683 (HAVE_UNAME, HAVE_GETHOSTNAME, HAVE_GETPID): Add new tests.
8684 * configure.tgt: Add -DUSING_INITIAL_EXEC_TLS to XCFLAGS for Linux.
8685 * env.c (gomp_display_affinity_var, gomp_affinity_format_var,
8686 gomp_affinity_format_len): New variables.
8687 (parse_schedule): Parse monotonic and nonmonotonic modifiers in
8688 OMP_SCHEDULE variable. Set GFS_MONOTONIC for monotonic schedules.
8689 (handle_omp_display_env): Display monotonic/nonmonotonic schedule
8690 modifiers. Display (non-default) chunk sizes. Print
8691 OMP_DISPLAY_AFFINITY and OMP_AFFINITY_FORMAT.
8692 (initialize_env): Don't call pthread_attr_setdetachstate. Handle
8693 OMP_DISPLAY_AFFINITY and OMP_AFFINITY_FORMAT env vars.
8694 * fortran.c: Include stdio.h and string.h.
8695 (omp_pause_resource, omp_pause_resource_all): Add ialias_redirect.
8696 (omp_get_schedule_, omp_get_schedule_8_): Mask off GFS_MONOTONIC bit.
8697 (omp_set_affinity_format_, omp_get_affinity_format_,
8698 omp_display_affinity_, omp_capture_affinity_, omp_pause_resource_,
8699 omp_pause_resource_all_): New functions.
8700 * icv.c (omp_set_schedule): Mask off omp_sched_monotonic bit in
8701 switch.
8702 * icv-device.c (omp_get_num_teams, omp_get_team_num): Move these
8703 functions to ...
8704 * teams.c: ... here. New file.
8705 * libgomp_g.h: Include gstdint.h.
8706 (GOMP_loop_nonmonotonic_runtime_start,
8707 GOMP_loop_maybe_nonmonotonic_runtime_start, GOMP_loop_start,
8708 GOMP_loop_ordered_start, GOMP_loop_nonmonotonic_runtime_next,
8709 GOMP_loop_maybe_nonmonotonic_runtime_next, GOMP_loop_doacross_start,
8710 GOMP_parallel_loop_nonmonotonic_runtime,
8711 GOMP_parallel_loop_maybe_nonmonotonic_runtime,
8712 GOMP_loop_ull_nonmonotonic_runtime_start,
8713 GOMP_loop_ull_maybe_nonmonotonic_runtime_start, GOMP_loop_ull_start,
8714 GOMP_loop_ull_ordered_start, GOMP_loop_ull_nonmonotonic_runtime_next,
8715 GOMP_loop_ull_maybe_nonmonotonic_runtime_next,
8716 GOMP_loop_ull_doacross_start, GOMP_parallel_reductions,
8717 GOMP_taskwait_depend, GOMP_taskgroup_reduction_register,
8718 GOMP_taskgroup_reduction_unregister, GOMP_task_reduction_remap,
8719 GOMP_workshare_task_reduction_unregister, GOMP_sections2_start,
8720 GOMP_teams_reg): Declare.
8721 * libgomp.h (GOMP_HAVE_EFFICIENT_ALIGNED_ALLOC): Define unless
8722 gomp_aligned_alloc uses fallback implementation.
8723 (gomp_aligned_alloc, gomp_aligned_free): Declare.
8724 (enum gomp_schedule_type): Add GFS_MONOTONIC.
8725 (struct gomp_doacross_work_share): Add extra field.
8726 (struct gomp_work_share): Add task_reductions field.
8727 (struct gomp_taskgroup): Add workshare and reductions fields.
8728 (GOMP_NEEDS_THREAD_HANDLE): Define if needed.
8729 (gomp_thread_handle): New typedef.
8730 (gomp_display_affinity_place, gomp_set_affinity_format,
8731 gomp_display_string, gomp_display_affinity,
8732 gomp_display_affinity_thread): Declare.
8733 (gomp_doacross_init, gomp_doacross_ull_init): Add size_t argument.
8734 (gomp_parallel_reduction_register, gomp_workshare_taskgroup_start,
8735 gomp_workshare_task_reduction_register): Declare.
8736 (gomp_team_start): Add taskgroup argument.
8737 (gomp_pause_host): Declare.
8738 (gomp_init_work_share, gomp_work_share_start): Change bool argument
8739 to size_t.
8740 (gomp_thread_self, gomp_thread_to_pthread_t): New inline functions.
8741 * libgomp.map (GOMP_5.0): Export GOMP_loop_start,
8742 GOMP_loop_ordered_start, GOMP_loop_doacross_start,
8743 GOMP_loop_ull_start, GOMP_loop_ull_ordered_start,
8744 GOMP_loop_ull_doacross_start,
8745 GOMP_workshare_task_reduction_unregister, GOMP_sections2_start,
8746 GOMP_loop_maybe_nonmonotonic_runtime_next,
8747 GOMP_loop_maybe_nonmonotonic_runtime_start,
8748 GOMP_loop_nonmonotonic_runtime_next,
8749 GOMP_loop_nonmonotonic_runtime_start,
8750 GOMP_loop_ull_maybe_nonmonotonic_runtime_next,
8751 GOMP_loop_ull_maybe_nonmonotonic_runtime_start,
8752 GOMP_loop_ull_nonmonotonic_runtime_next,
8753 GOMP_loop_ull_nonmonotonic_runtime_start,
8754 GOMP_parallel_loop_maybe_nonmonotonic_runtime,
8755 GOMP_parallel_loop_nonmonotonic_runtime, GOMP_parallel_reductions,
8756 GOMP_taskgroup_reduction_register,
8757 GOMP_taskgroup_reduction_unregister, GOMP_task_reduction_remap,
8758 GOMP_teams_reg and GOMP_taskwait_depend.
8759 (OMP_5.0): Export omp_pause_resource{,_all}{,_},
8760 omp_{capture,display}_affinity{,_}, and
8761 omp_[gs]et_affinity_format{,_}.
8762 * loop.c: Include string.h.
8763 (GOMP_loop_runtime_next): Add ialias.
8764 (GOMP_taskgroup_reduction_register): Add ialias_redirect.
8765 (gomp_loop_static_start, gomp_loop_dynamic_start,
8766 gomp_loop_guided_start, gomp_loop_ordered_static_start,
8767 gomp_loop_ordered_dynamic_start, gomp_loop_ordered_guided_start,
8768 gomp_loop_doacross_static_start, gomp_loop_doacross_dynamic_start,
8769 gomp_loop_doacross_guided_start): Adjust gomp_work_share_start
8770 or gomp_doacross_init callers.
8771 (gomp_adjust_sched, GOMP_loop_start, GOMP_loop_ordered_start,
8772 GOMP_loop_doacross_start): New functions.
8773 (GOMP_loop_runtime_start, GOMP_loop_ordered_runtime_start,
8774 GOMP_loop_doacross_runtime_start, GOMP_parallel_loop_runtime_start):
8775 Mask off GFS_MONOTONIC bit.
8776 (GOMP_loop_maybe_nonmonotonic_runtime_next,
8777 GOMP_loop_maybe_nonmonotonic_runtime_start,
8778 GOMP_loop_nonmonotonic_runtime_next,
8779 GOMP_loop_nonmonotonic_runtime_start,
8780 GOMP_parallel_loop_maybe_nonmonotonic_runtime,
8781 GOMP_parallel_loop_nonmonotonic_runtime): New aliases or wrapper
8782 functions.
8783 (gomp_parallel_loop_start): Pass NULL as taskgroup to
8784 gomp_team_start.
8785 * loop_ull.c: Include string.h.
8786 (GOMP_loop_ull_runtime_next): Add ialias.
8787 (GOMP_taskgroup_reduction_register): Add ialias_redirect.
8788 (gomp_loop_ull_static_start, gomp_loop_ull_dynamic_start,
8789 gomp_loop_ull_guided_start, gomp_loop_ull_ordered_static_start,
8790 gomp_loop_ull_ordered_dynamic_start,
8791 gomp_loop_ull_ordered_guided_start,
8792 gomp_loop_ull_doacross_static_start,
8793 gomp_loop_ull_doacross_dynamic_start,
8794 gomp_loop_ull_doacross_guided_start): Adjust gomp_work_share_start
8795 and gomp_doacross_ull_init callers.
8796 (gomp_adjust_sched, GOMP_loop_ull_start, GOMP_loop_ull_ordered_start,
8797 GOMP_loop_ull_doacross_start): New functions.
8798 (GOMP_loop_ull_runtime_start,
8799 GOMP_loop_ull_ordered_runtime_start,
8800 GOMP_loop_ull_doacross_runtime_start): Mask off GFS_MONOTONIC bit.
8801 (GOMP_loop_ull_maybe_nonmonotonic_runtime_next,
8802 GOMP_loop_ull_maybe_nonmonotonic_runtime_start,
8803 GOMP_loop_ull_nonmonotonic_runtime_next,
8804 GOMP_loop_ull_nonmonotonic_runtime_start): Likewise.
8805 * Makefile.am (libgomp_la_SOURCES): Add teams.c and affinity-fmt.c.
8806 * omp.h.in (enum omp_sched_t): Add omp_sched_monotonic.
8807 (omp_pause_resource_t, omp_depend_t): New typedefs.
8808 (enum omp_lock_hint_t): Renamed to ...
8809 (enum omp_sync_hint_t): ... this. Define omp_sync_hint_*
8810 enumerators using numbers and omp_lock_hint_* as their aliases.
8811 (omp_lock_hint_t): New typedef. Rename to ...
8812 (omp_sync_hint_t): ... this.
8813 (omp_init_lock_with_hint, omp_init_nest_lock_with_hint): Use
8814 omp_sync_hint_t instead of omp_lock_hint_t.
8815 (omp_pause_resource, omp_pause_resource_all, omp_set_affinity_format,
8816 omp_get_affinity_format, omp_display_affinity, omp_capture_affinity):
8817 Declare.
8818 (omp_target_is_present, omp_target_disassociate_ptr):
8819 Change first argument from void * to const void *.
8820 (omp_target_memcpy, omp_target_memcpy_rect): Change second argument
8821 from void * to const void *.
8822 (omp_target_associate_ptr): Change first and second arguments from
8823 void * to const void *.
8824 * omp_lib.f90.in (omp_pause_resource_kind, omp_pause_soft,
8825 omp_pause_hard): New parameters.
8826 (omp_pause_resource, omp_pause_resource_all, omp_set_affinity_format,
8827 omp_get_affinity_format, omp_display_affinity, omp_capture_affinity):
8828 New interfaces.
8829 * omp_lib.h.in (omp_pause_resource_kind, omp_pause_soft,
8830 omp_pause_hard): New parameters.
8831 (omp_pause_resource, omp_pause_resource_all, omp_set_affinity_format,
8832 omp_get_affinity_format, omp_display_affinity, omp_capture_affinity):
8833 New externals.
8834 * ordered.c (gomp_doacross_init, gomp_doacross_ull_init): Add
8835 EXTRA argument. If not needed to prepare array, if extra is 0,
8836 clear ws->doacross, otherwise allocate just doacross structure and
8837 extra payload. If array is needed, allocate also extra payload.
8838 (GOMP_doacross_post, GOMP_doacross_wait, GOMP_doacross_ull_post,
8839 GOMP_doacross_ull_wait): Handle doacross->array == NULL like
8840 doacross == NULL.
8841 * parallel.c (GOMP_parallel_start): Pass NULL as taskgroup to
8842 gomp_team_start.
8843 (GOMP_parallel): Likewise. Formatting fix.
8844 (GOMP_parallel_reductions): New function.
8845 (GOMP_cancellation_point): If taskgroup has workshare
8846 flag set, check cancelled of prev taskgroup if any.
8847 (GOMP_cancel): If taskgroup has workshare flag set, set cancelled
8848 on prev taskgroup if any.
8849 * sections.c: Include string.h.
8850 (GOMP_taskgroup_reduction_register): Add ialias_redirect.
8851 (GOMP_sections_start): Adjust gomp_work_share_start caller.
8852 (GOMP_sections2_start): New function.
8853 (GOMP_parallel_sections_start, GOMP_parallel_sections):
8854 Pass NULL as taskgroup to gomp_team_start.
8855 * single.c (GOMP_single_start, GOMP_single_copy_start): Adjust
8856 gomp_work_share_start callers.
8857 * target.c (GOMP_target_update_ext, GOMP_target_enter_exit_data):
8858 If taskgroup has workshare flag set, check cancelled on prev
8859 taskgroup if any. Guard all cancellation tests with
8860 gomp_cancel_var test.
8861 (omp_target_is_present, omp_target_disassociate_ptr):
8862 Change ptr argument from void * to const void *.
8863 (omp_target_memcpy): Change src argument from void * to const void *.
8864 (omp_target_memcpy_rect): Likewise.
8865 (omp_target_memcpy_rect_worker): Likewise. Use const char * casts
8866 instead of char * where needed.
8867 (omp_target_associate_ptr): Change host_ptr and device_ptr arguments
8868 from void * to const void *.
8869 (omp_pause_resource, omp_pause_resource_all): New functions.
8870 * task.c (gomp_task_handle_depend): Handle new depend array format
8871 in addition to the old. Handle mutexinoutset kinds the same as
8872 inout for now, handle unspecified kinds.
8873 (gomp_create_target_task): If taskgroup has workshare flag set, check
8874 cancelled on prev taskgroup if any. Guard all cancellation tests with
8875 gomp_cancel_var test. Handle new depend array format count in
8876 addition to the old.
8877 (GOMP_task): Likewise. Adjust function comment.
8878 (gomp_task_run_pre): If taskgroup has workshare flag set, check
8879 cancelled on prev taskgroup if any. Guard all cancellation tests with
8880 gomp_cancel_var test.
8881 (GOMP_taskwait_depend): New function.
8882 (gomp_task_maybe_wait_for_dependencies): Handle new depend array
8883 format in addition to the old. Handle mutexinoutset kinds the same as
8884 inout for now, handle unspecified kinds. Fix a function comment typo.
8885 (gomp_taskgroup_init): New function.
8886 (GOMP_taskgroup_start): Use it.
8887 (gomp_reduction_register, gomp_create_artificial_team,
8888 GOMP_taskgroup_reduction_register,
8889 GOMP_taskgroup_reduction_unregister, GOMP_task_reduction_remap,
8890 gomp_parallel_reduction_register,
8891 gomp_workshare_task_reduction_register,
8892 gomp_workshare_taskgroup_start,
8893 GOMP_workshare_task_reduction_unregister): New functions.
8894 * taskloop.c (GOMP_taskloop): If taskgroup has workshare flag set,
8895 check cancelled on prev taskgroup if any. Guard all cancellation
8896 tests with gomp_cancel_var test. Handle GOMP_TASK_FLAG_REDUCTION flag
8897 by calling GOMP_taskgroup_reduction_register.
8898 * team.c (gomp_thread_attr): Remove comment.
8899 (struct gomp_thread_start_data): Add handle field.
8900 (gomp_thread_start): Call pthread_detach.
8901 (gomp_new_team): Adjust gomp_init_work_share caller.
8902 (gomp_free_pool_helper): Call pthread_detach.
8903 (gomp_team_start): Add taskgroup argument, initialize implicit
8904 tasks' taskgroup field to that. Don't call
8905 pthread_attr_setdetachstate. Handle OMP_DISPLAY_AFFINITY env var.
8906 (gomp_team_end): Determine nesting by thr->ts.level != 0
8907 rather than thr->ts.team != NULL.
8908 (gomp_pause_pool_helper, gomp_pause_host): New functions.
8909 * work.c (alloc_work_share): Use gomp_aligned_alloc instead of
8910 gomp_malloc if GOMP_HAVE_EFFICIENT_ALIGNED_ALLOC is defined.
8911 (gomp_init_work_share): Change ORDERED argument from bool to size_t,
8912 if more than 1 allocate also extra payload at the end of array. Never
8913 keep ordered_team_ids NULL, set it to inline_ordered_team_ids instead.
8914 (gomp_work_share_start): Change ORDERED argument from bool to size_t,
8915 return true instead of ws.
8916 * Makefile.in: Regenerated.
8917 * configure: Regenerated.
8918 * config.h.in: Regenerated.
8919 * testsuite/libgomp.c/cancel-for-2.c (foo): Use cancel modifier
8920 in some cases.
8921 * testsuite/libgomp.c-c++-common/cancel-parallel-1.c: New test.
8922 * testsuite/libgomp.c-c++-common/cancel-taskgroup-3.c: New test.
8923 * testsuite/libgomp.c-c++-common/depend-iterator-1.c: New test.
8924 * testsuite/libgomp.c-c++-common/depend-iterator-2.c: New test.
8925 * testsuite/libgomp.c-c++-common/depend-mutexinout-1.c: New test.
8926 * testsuite/libgomp.c-c++-common/depend-mutexinout-2.c: New test.
8927 * testsuite/libgomp.c-c++-common/depobj-1.c: New test.
8928 * testsuite/libgomp.c-c++-common/display-affinity-1.c: New test.
8929 * testsuite/libgomp.c-c++-common/for-10.c: New test.
8930 * testsuite/libgomp.c-c++-common/for-11.c: New test.
8931 * testsuite/libgomp.c-c++-common/for-12.c: New test.
8932 * testsuite/libgomp.c-c++-common/for-13.c: New test.
8933 * testsuite/libgomp.c-c++-common/for-14.c: New test.
8934 * testsuite/libgomp.c-c++-common/for-15.c: New test.
8935 * testsuite/libgomp.c-c++-common/for-2.h: If CONDNE macro is defined,
8936 define a different N(test), don't define N(f0) to N(f14), but instead
8937 define N(f20) to N(f34) using != comparisons.
8938 * testsuite/libgomp.c-c++-common/for-7.c: New test.
8939 * testsuite/libgomp.c-c++-common/for-8.c: New test.
8940 * testsuite/libgomp.c-c++-common/for-9.c: New test.
8941 * testsuite/libgomp.c-c++-common/master-combined-1.c: New test.
8942 * testsuite/libgomp.c-c++-common/pause-1.c: New test.
8943 * testsuite/libgomp.c-c++-common/pause-2.c: New test.
8944 * testsuite/libgomp.c-c++-common/pr66199-10.c: New test.
8945 * testsuite/libgomp.c-c++-common/pr66199-11.c: New test.
8946 * testsuite/libgomp.c-c++-common/pr66199-12.c: New test.
8947 * testsuite/libgomp.c-c++-common/pr66199-13.c: New test.
8948 * testsuite/libgomp.c-c++-common/pr66199-14.c: New test.
8949 * testsuite/libgomp.c-c++-common/simd-1.c: New test.
8950 * testsuite/libgomp.c-c++-common/taskloop-reduction-1.c: New test.
8951 * testsuite/libgomp.c-c++-common/taskloop-reduction-2.c: New test.
8952 * testsuite/libgomp.c-c++-common/taskloop-reduction-3.c: New test.
8953 * testsuite/libgomp.c-c++-common/taskloop-reduction-4.c: New test.
8954 * testsuite/libgomp.c-c++-common/task-reduction-11.c: New test.
8955 * testsuite/libgomp.c-c++-common/task-reduction-12.c: New test.
8956 * testsuite/libgomp.c-c++-common/task-reduction-1.c: New test.
8957 * testsuite/libgomp.c-c++-common/task-reduction-2.c: New test.
8958 * testsuite/libgomp.c-c++-common/task-reduction-3.c: New test.
8959 * testsuite/libgomp.c-c++-common/task-reduction-4.c: New test.
8960 * testsuite/libgomp.c-c++-common/task-reduction-5.c: New test.
8961 * testsuite/libgomp.c-c++-common/task-reduction-6.c: New test.
8962 * testsuite/libgomp.c-c++-common/task-reduction-7.c: New test.
8963 * testsuite/libgomp.c-c++-common/task-reduction-8.c: New test.
8964 * testsuite/libgomp.c-c++-common/task-reduction-9.c: New test.
8965 * testsuite/libgomp.c-c++-common/taskwait-depend-1.c: New test.
8966 * testsuite/libgomp.c++/depend-1.C: New test.
8967 * testsuite/libgomp.c++/depend-iterator-1.C: New test.
8968 * testsuite/libgomp.c++/depobj-1.C: New test.
8969 * testsuite/libgomp.c++/for-16.C: New test.
8970 * testsuite/libgomp.c++/for-21.C: New test.
8971 * testsuite/libgomp.c++/for-22.C: New test.
8972 * testsuite/libgomp.c++/for-23.C: New test.
8973 * testsuite/libgomp.c++/for-24.C: New test.
8974 * testsuite/libgomp.c++/for-25.C: New test.
8975 * testsuite/libgomp.c++/for-26.C: New test.
8976 * testsuite/libgomp.c++/taskloop-reduction-1.C: New test.
8977 * testsuite/libgomp.c++/taskloop-reduction-2.C: New test.
8978 * testsuite/libgomp.c++/taskloop-reduction-3.C: New test.
8979 * testsuite/libgomp.c++/taskloop-reduction-4.C: New test.
8980 * testsuite/libgomp.c++/task-reduction-10.C: New test.
8981 * testsuite/libgomp.c++/task-reduction-11.C: New test.
8982 * testsuite/libgomp.c++/task-reduction-12.C: New test.
8983 * testsuite/libgomp.c++/task-reduction-13.C: New test.
8984 * testsuite/libgomp.c++/task-reduction-14.C: New test.
8985 * testsuite/libgomp.c++/task-reduction-15.C: New test.
8986 * testsuite/libgomp.c++/task-reduction-16.C: New test.
8987 * testsuite/libgomp.c++/task-reduction-17.C: New test.
8988 * testsuite/libgomp.c++/task-reduction-18.C: New test.
8989 * testsuite/libgomp.c++/task-reduction-19.C: New test.
8990 * testsuite/libgomp.c/task-reduction-1.c: New test.
8991 * testsuite/libgomp.c++/task-reduction-1.C: New test.
8992 * testsuite/libgomp.c/task-reduction-2.c: New test.
8993 * testsuite/libgomp.c++/task-reduction-2.C: New test.
8994 * testsuite/libgomp.c++/task-reduction-3.C: New test.
8995 * testsuite/libgomp.c++/task-reduction-4.C: New test.
8996 * testsuite/libgomp.c++/task-reduction-5.C: New test.
8997 * testsuite/libgomp.c++/task-reduction-6.C: New test.
8998 * testsuite/libgomp.c++/task-reduction-7.C: New test.
8999 * testsuite/libgomp.c++/task-reduction-8.C: New test.
9000 * testsuite/libgomp.c++/task-reduction-9.C: New test.
9001 * testsuite/libgomp.c/teams-1.c: New test.
9002 * testsuite/libgomp.c/teams-2.c: New test.
9003 * testsuite/libgomp.c/thread-limit-4.c: New test.
9004 * testsuite/libgomp.c/thread-limit-5.c: New test.
9005 * testsuite/libgomp.fortran/display-affinity-1.f90: New test.
9006
9007 2018-11-06 Chung-Lin Tang <cltang@codesourcery.com>
9008
9009 * oacc-mem.c (memcpy_tofrom_device): New function, combined from
9010 acc_memcpy_to/from_device functions, now with async parameter.
9011 (acc_memcpy_to_device): Modify to use memcpy_tofrom_device.
9012 (acc_memcpy_from_device): Likewise.
9013 (acc_memcpy_to_device_async): New API function.
9014 (acc_memcpy_from_device_async): Likewise.
9015 (present_create_copy): Add async parameter and async setting/unsetting.
9016 (acc_create): Adjust present_create_copy call.
9017 (acc_copyin): Likewise.
9018 (acc_present_or_create): Likewise.
9019 (acc_present_or_copyin): Likewise.
9020 (acc_create_async): New API function.
9021 (acc_copyin_async): New API function.
9022 (delete_copyout): Add async parameter and async setting/unsetting.
9023 (acc_delete): Adjust delete_copyout call.
9024 (acc_copyout): Likewise.
9025 (acc_delete_async): New API function.
9026 (acc_copyout_async): Likewise.
9027 (update_dev_host): Add async parameter and async setting/unsetting.
9028 (acc_update_device): Adjust update_dev_host call.
9029 (acc_update_self): Likewise.
9030 (acc_update_device_async): New API function.
9031 (acc_update_self_async): Likewise.
9032 * openacc.h (acc_copyin_async): Declare new API function.
9033 (acc_create_async): Likewise.
9034 (acc_copyout_async): Likewise.
9035 (acc_delete_async): Likewise.
9036 (acc_update_device_async): Likewise.
9037 (acc_update_self_async): Likewise.
9038 (acc_memcpy_to_device_async): Likewise.
9039 (acc_memcpy_from_device_async): Likewise.
9040 * openacc_lib.h (acc_copyin_async_32_h): New subroutine.
9041 (acc_copyin_async_64_h): New subroutine.
9042 (acc_copyin_async_array_h): New subroutine.
9043 (acc_create_async_32_h): New subroutine.
9044 (acc_create_async_64_h): New subroutine.
9045 (acc_create_async_array_h): New subroutine.
9046 (acc_copyout_async_32_h): New subroutine.
9047 (acc_copyout_async_64_h): New subroutine.
9048 (acc_copyout_async_array_h): New subroutine.
9049 (acc_delete_async_32_h): New subroutine.
9050 (acc_delete_async_64_h): New subroutine.
9051 (acc_delete_async_array_h): New subroutine.
9052 (acc_update_device_async_32_h): New subroutine.
9053 (acc_update_device_async_64_h): New subroutine.
9054 (acc_update_device_async_array_h): New subroutine.
9055 (acc_update_self_async_32_h): New subroutine.
9056 (acc_update_self_async_64_h): New subroutine.
9057 (acc_update_self_async_array_h): New subroutine.
9058 * openacc.f90 (acc_copyin_async_32_h): New subroutine.
9059 (acc_copyin_async_64_h): New subroutine.
9060 (acc_copyin_async_array_h): New subroutine.
9061 (acc_create_async_32_h): New subroutine.
9062 (acc_create_async_64_h): New subroutine.
9063 (acc_create_async_array_h): New subroutine.
9064 (acc_copyout_async_32_h): New subroutine.
9065 (acc_copyout_async_64_h): New subroutine.
9066 (acc_copyout_async_array_h): New subroutine.
9067 (acc_delete_async_32_h): New subroutine.
9068 (acc_delete_async_64_h): New subroutine.
9069 (acc_delete_async_array_h): New subroutine.
9070 (acc_update_device_async_32_h): New subroutine.
9071 (acc_update_device_async_64_h): New subroutine.
9072 (acc_update_device_async_array_h): New subroutine.
9073 (acc_update_self_async_32_h): New subroutine.
9074 (acc_update_self_async_64_h): New subroutine.
9075 (acc_update_self_async_array_h): New subroutine.
9076 * libgomp.map (OACC_2.5): Add acc_copyin_async*, acc_copyout_async*,
9077 acc_copyout_finalize_async*, acc_create_async*, acc_delete_async*,
9078 acc_delete_finalize_async*, acc_memcpy_from_device_async*,
9079 acc_memcpy_to_device_async*, acc_update_device_async*, and
9080 acc_update_self_async* entries.
9081 * testsuite/libgomp.oacc-c-c++-common/lib-94.c: New test.
9082 * testsuite/libgomp.oacc-c-c++-common/lib-95.c: New test.
9083 * testsuite/libgomp.oacc-fortran/lib-16.f90: New test.
9084
9085 2018-10-31 Joseph Myers <joseph@codesourcery.com>
9086
9087 PR bootstrap/82856
9088 * Makefile.am: Include multilib.am
9089 (AUTOMAKE_OPTIONS): Add info-in-builddir.
9090 (CLEANFILES): Remove libgomp.info.
9091 * configure.ac: Remove AC_PREREQ.
9092 * testsuite/Makefile.am (RUNTEST): Remove quotes.
9093 * Makefile.in, aclocal.m4, configure, testsuite/Makefile.in:
9094 Regenerate.
9095
9096 2018-10-29 Joseph Myers <joseph@codesourcery.com>
9097 Julian Brown <julian@codesourcery.com>
9098
9099 * testsuite/libgomp.oacc-c++/this.C: New.
9100
9101 2018-09-18 Cesar Philippidis <cesar@codesourcery.com>
9102
9103 * plugin/plugin-nvptx.c (struct cuda_map): New.
9104 (struct ptx_stream): Replace d, h, h_begin, h_end, h_next, h_prev,
9105 h_tail with (cuda_map *) map.
9106 (cuda_map_create): New function.
9107 (cuda_map_destroy): New function.
9108 (map_init): Update to use a linked list of cuda_map objects.
9109 (map_fini): Likewise.
9110 (map_pop): Likewise.
9111 (map_push): Likewise. Return CUdeviceptr instead of void.
9112 (init_streams_for_device): Remove stales references to ptx_stream
9113 members.
9114 (select_stream_for_async): Likewise.
9115 (nvptx_exec): Update call to map_init.
9116
9117 2018-09-09 Cesar Philippidis <cesar@codesourcery.com>
9118 Julian Brown <julian@codesourcery.com>
9119
9120 PR middle-end/86336
9121 * testsuite/libgomp.oacc-c++/non-scalar-data.C: Remove XFAIL.
9122
9123 2018-08-21 Nicolas Koenig <koenigni@gcc.gnu.org>
9124 Thomas Koenig <tkoenig@gcc.gnu.org>
9125
9126 PR fortran/25829
9127 * testsuite/libgomp.fortran/async_io_1.f90: New test.
9128 * testsuite/libgomp.fortran/async_io_2.f90: New test.
9129 * testsuite/libgomp.fortran/async_io_3.f90: New test.
9130 * testsuite/libgomp.fortran/async_io_4.f90: New test.
9131 * testsuite/libgomp.fortran/async_io_5.f90: New test.
9132 * testsuite/libgomp.fortran/async_io_6.f90: New test.
9133 * testsuite/libgomp.fortran/async_io_7.f90: New test.
9134
9135 2018-08-13 Cesar Philippidis <cesar@codesourcery.com>
9136 Tom de Vries <tdevries@suse.de>
9137
9138 PR target/85590
9139 * plugin/cuda/cuda.h (CUoccupancyB2DSize): New typedef.
9140 (cuOccupancyMaxPotentialBlockSize): Declare.
9141 * plugin/cuda-lib.def (cuOccupancyMaxPotentialBlockSize): New
9142 CUDA_ONE_CALL_MAYBE_NULL.
9143 * plugin/plugin-nvptx.c (CUDA_VERSION < 6050): Define
9144 CUoccupancyB2DSize and declare
9145 cuOccupancyMaxPotentialBlockSize.
9146 (nvptx_exec): Use cuOccupancyMaxPotentialBlockSize to set the
9147 default num_gangs and num_workers when the driver supports it.
9148
9149 2018-08-08 Tom de Vries <tdevries@suse.de>
9150
9151 * plugin/cuda-lib.def (cuLinkAddData_v2, cuLinkCreate_v2): Declare using
9152 CUDA_ONE_CALL_MAYBE_NULL.
9153 * plugin/plugin-nvptx.c (cuLinkAddData, cuLinkCreate): Undef and declare.
9154 (cuLinkAddData_v2, cuLinkCreate_v2): Declare.
9155 (link_ptx): Fall back to cuLinkAddData/cuLinkCreate if the _v2 versions
9156 are not found.
9157
9158 2018-08-08 Tom de Vries <tdevries@suse.de>
9159
9160 * plugin/cuda-lib.def (cuGetErrorString): Use CUDA_ONE_CALL_MAYBE_NULL.
9161 * plugin/plugin-nvptx.c (cuda_error): Handle if cuGetErrorString is not
9162 present.
9163
9164 2018-08-08 Tom de Vries <tdevries@suse.de>
9165
9166 * plugin/plugin-nvptx.c
9167 (CU_DEVICE_ATTRIBUTE_MAX_REGISTERS_PER_MULTIPROCESSOR): Define.
9168 (nvptx_open_device): Use
9169 CU_DEVICE_ATTRIBUTE_MAX_REGISTERS_PER_MULTIPROCESSOR.
9170
9171 2018-08-08 Tom de Vries <tdevries@suse.de>
9172
9173 * plugin/plugin-nvptx.c (cuda_error): Move declaration of cuGetErrorString ...
9174 (cuGetErrorString): ... here. Guard with CUDA_VERSION < 6000.
9175
9176 2018-08-07 Tom de Vries <tdevries@suse.de>
9177
9178 * plugin/plugin-nvptx.c (DO_PRAGMA): Define.
9179 (struct cuda_lib_s): Add def/undef of CUDA_ONE_CALL_MAYBE_NULL.
9180 (init_cuda_lib): Add new param to CUDA_ONE_CALL_1. Add arg to
9181 corresponding call in CUDA_ONE_CALL. Add def/undef of
9182 CUDA_ONE_CALL_MAYBE_NULL.
9183 (CUDA_CALL_EXISTS): Define.
9184
9185 2018-08-07 Tom de Vries <tdevries@suse.de>
9186
9187 * plugin/plugin-nvptx.c (struct cuda_lib_s, init_cuda_lib): Put
9188 CUDA_ONE_CALL defines right before the cuda-lib.def include, and the
9189 corresponding undefs right after.
9190
9191 2018-08-04 Tom de Vries <tdevries@suse.de>
9192
9193 * plugin/configfrag.ac: For --without-cuda-driver, set
9194 CUDA_DRIVER_INCLUDE and CUDA_DRIVER_LIB to no. Handle
9195 CUDA_DRIVER_INCLUDE == no and CUDA_DRIVER_LIB == no.
9196 * configure: Regenerate.
9197
9198 2018-08-02 Tom de Vries <tdevries@suse.de>
9199
9200 PR target/86660
9201 * testsuite/libgomp.oacc-c++/routine-1-auto.C: Remove -fno-exceptions.
9202 * testsuite/libgomp.oacc-c++/routine-1-template-auto.C: Same.
9203 * testsuite/libgomp.oacc-c++/routine-1-template-trailing-return-type.C:
9204 Same.
9205 * testsuite/libgomp.oacc-c++/routine-1-template.C: Same.
9206 * testsuite/libgomp.oacc-c++/routine-1-trailing-return-type.C: Same.
9207 * testsuite/libgomp.oacc-c-c++-common/routine-1.c: Same.
9208
9209 2018-08-01 Cesar Philippidis <cesar@codesourcery.com>
9210 Thomas Schwinge <thomas@codesourcery.com>
9211
9212 * config/nvptx/oacc-parallel.c: Truncate.
9213
9214 2018-08-01 Cesar Philippidis <cesar@codesourcery.com>
9215 James Norris <jnorris@codesourcery.com>
9216
9217 * plugin/plugin-nvptx.c (struct map): Removed.
9218 (map_init, map_pop): Remove use of struct map.
9219 (map_push): Likewise and change argument list.
9220 * testsuite/libgomp.oacc-c-c++-common/mapping-1.c: New
9221
9222 2018-08-01 Tom de Vries <tdevries@suse.de>
9223
9224 * plugin/cuda-lib.def: New file. Factor out of ...
9225 * plugin/plugin-nvptx.c (CUDA_CALLS): ... here.
9226 (struct cuda_lib_s, init_cuda_lib): Include cuda-lib.def instead of
9227 using CUDA_CALLS.
9228
9229 2018-07-31 Andre Vieira <andre.simoesdiasvieira@arm.com>
9230
9231 Revert 'AsyncI/O patch committed'.
9232 2018-07-25 Nicolas Koenig <koenigni@gcc.gnu.org>
9233 Thomas Koenig <tkoenig@gcc.gnu.org>
9234
9235 PR fortran/25829
9236 * testsuite/libgomp.fortran/async_io_1.f90: New test.
9237 * testsuite/libgomp.fortran/async_io_2.f90: New test.
9238 * testsuite/libgomp.fortran/async_io_3.f90: New test.
9239 * testsuite/libgomp.fortran/async_io_4.f90: New test.
9240 * testsuite/libgomp.fortran/async_io_5.f90: New test.
9241 * testsuite/libgomp.fortran/async_io_6.f90: New test.
9242 * testsuite/libgomp.fortran/async_io_7.f90: New test.
9243
9244 2018-07-30 Tom de Vries <tdevries@suse.de>
9245
9246 * plugin/plugin-nvptx.c (MIN, MAX): Redefine.
9247 (nvptx_exec): Ensure worker and vector default dims don't exceed
9248 targ_fn->max_threads_per_block.
9249
9250 2018-07-30 Tom de Vries <tdevries@suse.de>
9251
9252 * plugin/plugin-nvptx.c (struct ptx_device): Add default_dims field.
9253 (nvptx_open_device): Init default_dims for device.
9254 (nvptx_exec): Use default_dims from device.
9255
9256 2018-07-26 Jakub Jelinek <jakub@redhat.com>
9257
9258 PR testsuite/86660
9259 * testsuite/libgomp.c++/for-15.C (results): Include it in
9260 omp declare target region.
9261 (main): Use map (always, tofrom: results) instead of
9262 map (tofrom: results).
9263
9264 PR middle-end/86660
9265 * testsuite/libgomp.c/pr86660.c: New test.
9266
9267 2018-07-26 Cesar Philippidis <cesar@codesourcery.com>
9268 Tom de Vries <tdevries@suse.de>
9269
9270 * plugin/plugin-nvptx.c (nvptx_exec): Error if the hardware doesn't have
9271 sufficient resources to launch a kernel, and give a hint on how to fix
9272 it.
9273
9274 2018-07-26 Cesar Philippidis <cesar@codesourcery.com>
9275 Tom de Vries <tdevries@suse.de>
9276
9277 * plugin/plugin-nvptx.c (struct ptx_device): Add warp_size,
9278 max_threads_per_block and max_threads_per_multiprocessor fields.
9279 (nvptx_open_device): Initialize new fields.
9280 (nvptx_exec): Use num_sms, and new fields.
9281
9282 2018-07-26 Tom de Vries <tdevries@suse.de>
9283
9284 * testsuite/libgomp.oacc-fortran/lib-12.f90: Move acc_async_test calls
9285 to correct locations. Remove xfail.
9286
9287 2018-07-26 Tom de Vries <tdevries@suse.de>
9288
9289 * testsuite/libgomp.oacc-fortran/lib-13.f90: Replace acc_wait_all with
9290 acc_wait. Move acc_async_test calls to correct locations. Remove
9291 xfail.
9292
9293 2018-07-25 Nicolas Koenig <koenigni@gcc.gnu.org>
9294 Thomas Koenig <tkoenig@gcc.gnu.org>
9295
9296 PR fortran/25829
9297 * testsuite/libgomp.fortran/async_io_1.f90: New test.
9298 * testsuite/libgomp.fortran/async_io_2.f90: New test.
9299 * testsuite/libgomp.fortran/async_io_3.f90: New test.
9300 * testsuite/libgomp.fortran/async_io_4.f90: New test.
9301 * testsuite/libgomp.fortran/async_io_5.f90: New test.
9302 * testsuite/libgomp.fortran/async_io_6.f90: New test.
9303 * testsuite/libgomp.fortran/async_io_7.f90: New test.
9304
9305 2018-07-17 Jakub Jelinek <jakub@redhat.com>
9306
9307 PR middle-end/86542
9308 * testsuite/libgomp.c++/pr86542.C: New test.
9309
9310 PR middle-end/86539
9311 * testsuite/libgomp.c++/pr86539.C: New test.
9312
9313 2018-07-11 Jakub Jelinek <jakub@redhat.com>
9314
9315 PR c++/86443
9316 * testsuite/libgomp.c++/for-15.C (a): Remove unused variable.
9317 (results): Make sure the variable is not inside declare target region.
9318 (qux): Remove unused function.
9319
9320 2018-07-10 Jakub Jelinek <jakub@redhat.com>
9321
9322 PR c++/86443
9323 * testsuite/libgomp.c++/for-15.C: New test.
9324
9325 2018-06-26 Jakub Jelinek <jakub@redhat.com>
9326
9327 PR c++/86291
9328 * testsuite/libgomp.c++/pr86291.C: New test.
9329
9330 2018-06-24 Gerald Pfeifer <gerald@pfeifer.com>
9331
9332 * libgomp.texi (Top): Move www.openmp.org to https.
9333 (Enabling OpenMP): Ditto.
9334 (omp_get_active_level): Ditto.
9335 (omp_get_ancestor_thread_num): Ditto.
9336 (omp_get_cancellation): Ditto.
9337 (omp_get_default_device): Ditto.
9338 (omp_get_dynamic): Ditto.
9339 (omp_get_level): Ditto.
9340 (omp_get_max_active_levels): Ditto.
9341 (omp_get_max_task_priority): Ditto.
9342 (omp_get_max_threads): Ditto.
9343 (omp_get_nested): Ditto.
9344 (omp_get_num_devices): Ditto.
9345 (omp_get_num_procs): Ditto.
9346 (omp_get_num_teams): Ditto.
9347 (omp_get_num_threads): Ditto.
9348 (omp_get_proc_bind): Ditto.
9349 (omp_get_schedule): Ditto.
9350 (omp_get_team_num): Ditto.
9351 (omp_get_team_size): Ditto.
9352 (omp_get_thread_limit): Ditto.
9353 (omp_get_thread_num): Ditto.
9354 (omp_in_parallel): Ditto.
9355 (omp_in_final): Ditto.
9356 (omp_is_initial_device): Ditto.
9357 (omp_set_default_device): Ditto.
9358 (omp_set_dynamic): Ditto.
9359 (omp_set_max_active_levels): Ditto.
9360 (omp_set_nested): Ditto.
9361 (omp_set_num_threads): Ditto.
9362 (omp_set_schedule): Ditto.
9363 (omp_init_lock): Ditto.
9364 (omp_set_lock): Ditto.
9365 (omp_test_lock): Ditto.
9366 (omp_unset_lock): Ditto.
9367 (omp_destroy_lock): Ditto.
9368 (omp_init_nest_lock): Ditto.
9369 (omp_set_nest_lock): Ditto.
9370 (omp_test_nest_lock): Ditto.
9371 (omp_unset_nest_lock): Ditto.
9372 (omp_destroy_nest_lock): Ditto.
9373 (omp_get_wtick): Ditto.
9374 (omp_get_wtime): Ditto.
9375 (OMP_CANCELLATION): Ditto.
9376 (OMP_DISPLAY_ENV): Ditto.
9377 (OMP_DEFAULT_DEVICE): Ditto.
9378 (OMP_DYNAMIC): Ditto.
9379 (OMP_MAX_ACTIVE_LEVELS): Ditto.
9380 (OMP_MAX_TASK_PRIORITY): Ditto.
9381 (OMP_NESTED): Ditto.
9382 (OMP_NUM_THREADS): Ditto.
9383 (OMP_PROC_BIND): Ditto.
9384 (OMP_PLACES): Ditto.
9385 (OMP_STACKSIZE): Ditto.
9386 (OMP_SCHEDULE): Ditto.
9387 (OMP_THREAD_LIMIT): Ditto.
9388 (OMP_WAIT_POLICY): Ditto.
9389
9390 2018-06-22 Cesar Philippidis <cesar@codesourcery.com>
9391 James Norris <jnorris@codesourcery.com>
9392 Julian Brown <julian@codesourcery.com>
9393 Thomas Schwinge <thomas@codesourcery.com>
9394 Tom de Vries <tom@codesourcery.com>
9395
9396 * testsuite/libgomp.oacc-c-c++-common/loop-red-wv-1.c: Don't force "-O2".
9397 * testsuite/libgomp.oacc-c-c++-common/data-2.c: Update.
9398 * testsuite/libgomp.oacc-c-c++-common/host_data-1.c: Likewise.
9399 * testsuite/libgomp.oacc-c-c++-common/mode-transitions.c: Likewise.
9400 * testsuite/libgomp.oacc-fortran/data-1.f90: Likewise.
9401 * testsuite/libgomp.oacc-fortran/data-2.f90: Likewise.
9402 * testsuite/libgomp.oacc-c++/non-scalar-data.C: New file.
9403 * testsuite/libgomp.oacc-c-c++-common/declare-3.c: Likewise.
9404 * testsuite/libgomp.oacc-c-c++-common/enter-data.c: Likewise.
9405 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-2.c:
9406 Likewise.
9407 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-enter-exit-2.c:
9408 Likewise.
9409 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-enter-exit.c:
9410 Likewise.
9411 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-update.c:
9412 Likewise.
9413 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data.c:
9414 Likewise.
9415 * testsuite/libgomp.oacc-c-c++-common/kernels-parallel-loop-data-enter-exit.c:
9416 Likewise.
9417 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-1.c:
9418 Likewise.
9419 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-2.c:
9420 Likewise.
9421 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-3.c:
9422 Likewise.
9423 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-4.c:
9424 Likewise.
9425 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-5.c:
9426 Likewise.
9427 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-1.c:
9428 Likewise.
9429 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-2.c:
9430 Likewise.
9431 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-3.c:
9432 Likewise.
9433 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-4.c:
9434 Likewise.
9435 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-5.c:
9436 Likewise.
9437 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-6.c:
9438 Likewise.
9439 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-vector-1.c:
9440 Likewise.
9441 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-vector-2.c:
9442 Likewise.
9443 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-1.c:
9444 Likewise.
9445 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-2.c:
9446 Likewise.
9447 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-3.c:
9448 Likewise.
9449 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-4.c:
9450 Likewise.
9451 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-5.c:
9452 Likewise.
9453 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-6.c:
9454 Likewise.
9455 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-7.c:
9456 Likewise.
9457 * testsuite/libgomp.oacc-c-c++-common/kernels-reduction-1.c:
9458 Likewise.
9459 * testsuite/libgomp.oacc-c-c++-common/parallel-loop-1.c: Likewise.
9460 * testsuite/libgomp.oacc-c-c++-common/parallel-loop-1.h: Likewise.
9461 * testsuite/libgomp.oacc-c-c++-common/parallel-loop-2.h: Likewise.
9462 * testsuite/libgomp.oacc-fortran/cublas-fixed.h: Likewise.
9463 * testsuite/libgomp.oacc-fortran/dummy-array.f90: Likewise.
9464 * testsuite/libgomp.oacc-fortran/host_data-2.f90: Likewise.
9465 * testsuite/libgomp.oacc-fortran/host_data-3.f: Likewise.
9466 * testsuite/libgomp.oacc-fortran/host_data-4.f90: Likewise.
9467 * testsuite/libgomp.oacc-fortran/kernels-acc-loop-reduction-2.f90:
9468 Likewise.
9469 * testsuite/libgomp.oacc-fortran/kernels-acc-loop-reduction.f90:
9470 Likewise.
9471 * testsuite/libgomp.oacc-fortran/kernels-collapse-3.f90: Likewise.
9472 * testsuite/libgomp.oacc-fortran/kernels-collapse-4.f90: Likewise.
9473 * testsuite/libgomp.oacc-fortran/kernels-independent.f90:
9474 Likewise.
9475 * testsuite/libgomp.oacc-fortran/kernels-loop-1.f90: Likewise.
9476 * testsuite/libgomp.oacc-fortran/kernels-map-1.f90: Likewise.
9477 * testsuite/libgomp.oacc-fortran/kernels-parallel-loop-data-enter-exit.f95:
9478 Likewise.
9479 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-1.f90:
9480 Likewise.
9481 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-2.f90:
9482 Likewise.
9483 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-3.f90:
9484 Likewise.
9485 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-6.f90:
9486 Likewise.
9487 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-vector-1.f90:
9488 Likewise.
9489 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-vector-2.f90:
9490 Likewise.
9491 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-1.f90:
9492 Likewise.
9493 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-2.f90:
9494 Likewise.
9495 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-3.f90:
9496 Likewise.
9497 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-4.f90:
9498 Likewise.
9499 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-5.f90:
9500 Likewise.
9501 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-6.f90:
9502 Likewise.
9503 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-7.f90:
9504 Likewise.
9505 * testsuite/libgomp.oacc-fortran/kernels-reduction-1.f90:
9506 Likewise.
9507 * testsuite/libgomp.oacc-fortran/lib-12.f90: Likewise.
9508 * testsuite/libgomp.oacc-fortran/lib-13.f90: Likewise.
9509 * testsuite/libgomp.oacc-fortran/lib-14.f90: Likewise.
9510 * testsuite/libgomp.oacc-fortran/lib-15.f90: Likewise.
9511 * testsuite/libgomp.oacc-fortran/parallel-loop-1.f90: Likewise.
9512 * testsuite/libgomp.oacc-fortran/reference-reductions.f90: Likewise.
9513 * testsuite/libgomp.oacc-fortran/vector-routine.f90: Likewise.
9514
9515 2018-06-20 Chung-Lin Tang <cltang@codesourcery.com>
9516 Thomas Schwinge <thomas@codesourcery.com>
9517 Cesar Philippidis <cesar@codesourcery.com>
9518
9519 * libgomp.h (struct splay_tree_key_s): Add dynamic_refcount member.
9520 (gomp_acc_remove_pointer): Update declaration.
9521 (gomp_acc_declare_allocate): Declare.
9522 (gomp_remove_var): Declare.
9523 * libgomp.map (OACC_2.5): Define.
9524 * oacc-mem.c (acc_map_data): Update refcount.
9525 (acc_unmap_data): Likewise.
9526 (present_create_copy): Likewise.
9527 (acc_create): Add FLAG_PRESENT when calling present_create_copy.
9528 (acc_copyin): Likewise.
9529 (FLAG_FINALIZE): Define.
9530 (delete_copyout): Update dynamic refcounts, add support for FINALIZE.
9531 (acc_delete_finalize): New function.
9532 (acc_delete_finalize_async): New function.
9533 (acc_copyout_finalize): New function.
9534 (acc_copyout_finalize_async): New function.
9535 (gomp_acc_insert_pointer): Update refcounts.
9536 (gomp_acc_remove_pointer): Return if data is not present on the
9537 accelerator.
9538 * oacc-parallel.c (find_pset): Rename to find_pointer.
9539 (find_pointer): Add support for GOMP_MAP_POINTER.
9540 (handle_ftn_pointers): New function.
9541 (GOACC_parallel_keyed): Update refcounts of variables.
9542 (GOACC_enter_exit_data): Add support for finalized data mappings.
9543 Add support for GOMP_MAP_{TO,ALLOC,RELESE,FROM}. Update handling
9544 of fortran arrays.
9545 (GOACC_update): Add support for GOMP_MAP_{ALWAYS_POINTER,TO,FROM}.
9546 (GOACC_declare): Add support for GOMP_MAP_RELEASE, remove support
9547 for GOMP_MAP_FORCE_FROM.
9548 * openacc.f90 (module openacc_internal): Add
9549 acc_copyout_finalize_{32_h,64_h,array_h,_l}, and
9550 acc_delete_finalize_{32_h,64_h,array_h,_l}. Add interfaces for
9551 acc_copyout_finalize and acc_delete_finalize.
9552 (acc_copyout_finalize_32_h): New subroutine.
9553 (acc_copyout_finalize_64_h): New subroutine.
9554 (acc_copyout_finalize_array_h): New subroutine.
9555 (acc_delete_finalize_32_h): New subroutine.
9556 (acc_delete_finalize_64_h): New subroutine.
9557 (acc_delete_finalize_array_h): New subroutine.
9558 * openacc.h (acc_copyout_finalize): Declare.
9559 (acc_copyout_finalize_async): Declare.
9560 (acc_delete_finalize): Declare.
9561 (acc_delete_finalize_async): Declare.
9562 * openacc_lib.h (acc_copyout_finalize): New interface.
9563 (acc_delete_finalize): New interface.
9564 * target.c (gomp_map_vars): Update dynamic_refcount.
9565 (gomp_remove_var): New function.
9566 (gomp_unmap_vars): Use it.
9567 (gomp_unload_image_from_device): Likewise.
9568 * testsuite/libgomp.oacc-c-c++-common/data-already-1.c: Update test
9569 case to utilize OpenACC 2.5 data clause semantics.
9570 * testsuite/libgomp.oacc-c-c++-common/data-already-2.c: Likewise.
9571 * testsuite/libgomp.oacc-c-c++-common/data-already-3.c: Likewise.
9572 * testsuite/libgomp.oacc-c-c++-common/data-already-4.c: Likewise.
9573 * testsuite/libgomp.oacc-c-c++-common/data-already-5.c: Likewise.
9574 * testsuite/libgomp.oacc-c-c++-common/data-already-6.c: Likewise.
9575 * testsuite/libgomp.oacc-c-c++-common/data-already-7.c: Likewise.
9576 * testsuite/libgomp.oacc-c-c++-common/data-already-8.c: Likewise.
9577 * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
9578 * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
9579 * testsuite/libgomp.oacc-c-c++-common/lib-32.c: Likewise.
9580 * testsuite/libgomp.oacc-c-c++-common/lib-83.c: Likewise.
9581 * testsuite/libgomp.oacc-fortran/data-5.f90: New test.
9582 * testsuite/libgomp.oacc-fortran/data-already-1.f: Update test case to
9583 utilize OpenACC 2.5 data clause semantics.
9584 * testsuite/libgomp.oacc-fortran/data-already-2.f: Likewise.
9585 * testsuite/libgomp.oacc-fortran/data-already-3.f: Likewise.
9586 * testsuite/libgomp.oacc-fortran/data-already-4.f: Likewise.
9587 * testsuite/libgomp.oacc-fortran/data-already-5.f: Likewise.
9588 * testsuite/libgomp.oacc-fortran/data-already-6.f: Likewise.
9589 * testsuite/libgomp.oacc-fortran/data-already-7.f: Likewise.
9590 * testsuite/libgomp.oacc-fortran/data-already-8.f: Likewise.
9591 * testsuite/libgomp.oacc-fortran/lib-32-1.f: Likewise.
9592 * testsuite/libgomp.oacc-fortran/lib-32-2.f: Likewise.
9593
9594 2018-05-21 Janus Weil <janus@gcc.gnu.org>
9595
9596 PR fortran/85841
9597 PR testsuite/85865
9598 * testsuite/libgomp.fortran/collapse2.f90: Add option "-std=legacy".
9599 * testsuite/libgomp.fortran/omp_atomic2.f90: Ditto.
9600 * testsuite/libgomp.fortran/omp_parse1.f90: Ditto.
9601 * testsuite/libgomp.fortran/omp_parse3.f90: Ditto.
9602 * testsuite/libgomp.fortran/task2.f90: Ditto.
9603 * testsuite/libgomp.fortran/vla1.f90: Ditto.
9604 * testsuite/libgomp.fortran/vla2.f90: Ditto.
9605 * testsuite/libgomp.fortran/vla3.f90: Ditto.
9606 * testsuite/libgomp.fortran/vla4.f90: Ditto.
9607 * testsuite/libgomp.fortran/vla5.f90: Ditto.
9608 * testsuite/libgomp.fortran/vla6.f90: Ditto.
9609 * testsuite/libgomp.fortran/vla8.f90: Ditto.
9610 * testsuite/libgomp.oacc-fortran/collapse-2.f90: Ditto.
9611 * testsuite/libgomp.oacc-fortran/nested-function-1.f90: Ditto.
9612
9613 2018-05-18 Cesar Philippidis <cesar@codesourcery.com>
9614
9615 PR c++/85782
9616 * testsuite/libgomp.oacc-c-c++-common/pr85782.c: New test.
9617
9618 2018-05-09 Tom de Vries <tom@codesourcery.com>
9619
9620 PR libgomp/82901
9621 * oacc-parallel.c (GOACC_declare): Use GOMP_ASYNC_SYNC as async argument
9622 to GOACC_enter_exit_data.
9623
9624 2018-05-09 Tom de Vries <tom@codesourcery.com>
9625
9626 PR libgomp/83792
9627 * oacc-int.h (async_valid_stream_id_p, async_valid_p)
9628 (async_synchronous_p): New function.
9629 * oacc-async.c (acc_async_test, acc_wait, acc_wait_all_async): Use
9630 async_valid_p.
9631 * oacc-cuda.c (acc_get_cuda_stream, acc_set_cuda_stream): Use
9632 async_valid_stream_id_p.
9633 * oacc-mem.c (gomp_acc_remove_pointer): Use async_synchronous_p.
9634 * oacc-parallel.c (GOACC_parallel_keyed): Same.
9635
9636 2018-05-07 Tom de Vries <tom@codesourcery.com>
9637
9638 PR testsuite/85677
9639 * testsuite/lib/libgomp.exp (libgomp_init): Move inclusion of top-level
9640 include directory in ALWAYS_CFLAGS out of $blddir != "" condition.
9641
9642 2018-05-03 Tom de Vries <tom@codesourcery.com>
9643
9644 PR testsuite/85106
9645 * testsuite/lib/libgomp-dg.exp (libgomp-dg-test): Add save-temps to
9646 extra_tool_flags if it contains an -foffload=-fdump-* flag.
9647 * testsuite/lib/libgomp.exp: Include scanoffloadtree.exp.
9648 * testsuite/libgomp.oacc-c/vec.c: Use scan-offload-tree-dump.
9649
9650 2018-05-02 Tom de Vries <tom@codesourcery.com>
9651
9652 PR libgomp/85411
9653 * plugin/plugin-nvptx.c (nvptx_exec): Move parsing of
9654 GOMP_OPENACC_DIM ...
9655 * env.c (parse_gomp_openacc_dim): ... here. New function.
9656 (initialize_env): Call parse_gomp_openacc_dim.
9657 (goacc_default_dims): Define.
9658 * libgomp.h (goacc_default_dims): Declare.
9659 * oacc-plugin.c (GOMP_PLUGIN_acc_default_dim): New function.
9660 * oacc-plugin.h (GOMP_PLUGIN_acc_default_dim): Declare.
9661 * libgomp.map: New version "GOMP_PLUGIN_1.2". Add
9662 GOMP_PLUGIN_acc_default_dim.
9663 * testsuite/libgomp.oacc-c-c++-common/loop-default-runtime.c: New test.
9664 * testsuite/libgomp.oacc-c-c++-common/loop-default.h: New test.
9665
9666 2018-05-02 Tom de Vries <tom@codesourcery.com>
9667
9668 PR testsuite/83791
9669 * testsuite/libgomp.c++/udr-9.C: Update.
9670 * testsuite/libgomp.c++/atomic-16.C: Remove.
9671 * testsuite/libgomp.c++/cancel-taskgroup-2.C: Remove.
9672 * testsuite/libgomp.c++/loop-13.C: Remove.
9673 * testsuite/libgomp.c++/loop-14.C: Remove.
9674 * testsuite/libgomp.c++/loop-15.C: Remove.
9675 * testsuite/libgomp.c++/monotonic-1.C: Remove.
9676 * testsuite/libgomp.c++/monotonic-2.C: Remove.
9677 * testsuite/libgomp.c++/nonmonotonic-1.C: Remove.
9678 * testsuite/libgomp.c++/nonmonotonic-2.C: Remove.
9679 * testsuite/libgomp.c++/ordered-1.C: Remove.
9680 * testsuite/libgomp.c++/pr45784.C: Remove.
9681 * testsuite/libgomp.c++/pr64824.C: Remove.
9682 * testsuite/libgomp.c++/pr64868.C: Remove.
9683 * testsuite/libgomp.c++/pr66199-1.C: Remove.
9684 * testsuite/libgomp.c++/pr66199-2.C: Remove.
9685 * testsuite/libgomp.c++/pr66199-3.C: Remove.
9686 * testsuite/libgomp.c++/pr66199-4.C: Remove.
9687 * testsuite/libgomp.c++/pr66199-5.C: Remove.
9688 * testsuite/libgomp.c++/pr66199-6.C: Remove.
9689 * testsuite/libgomp.c++/pr66199-7.C: Remove.
9690 * testsuite/libgomp.c++/pr66199-8.C: Remove.
9691 * testsuite/libgomp.c++/pr66199-9.C: Remove.
9692 * testsuite/libgomp.c++/pr69389.C: Remove.
9693 * testsuite/libgomp.c++/simd10.C: Remove.
9694 * testsuite/libgomp.c++/simd11.C: Remove.
9695 * testsuite/libgomp.c++/simd12.C: Remove.
9696 * testsuite/libgomp.c++/simd13.C: Remove.
9697 * testsuite/libgomp.c++/target-1.C: Remove.
9698 * testsuite/libgomp.c++/target-3.C: Remove.
9699 * testsuite/libgomp.c++/target-4.C: Remove.
9700 * testsuite/libgomp.c++/target-5.C: Remove.
9701 * testsuite/libgomp.c++/taskgroup-1.C: Remove.
9702 * testsuite/libgomp.c++/taskloop-1.C: Remove.
9703 * testsuite/libgomp.c++/taskloop-2.C: Remove.
9704 * testsuite/libgomp.c++/taskloop-3.C: Remove.
9705 * testsuite/libgomp.c++/taskloop-4.C: Remove.
9706 * testsuite/libgomp.c++/udr-9.C: Remove.
9707 * testsuite/libgomp.c++/for-10.C: Remove.
9708 * testsuite/libgomp.c++/for-11.C: Remove.
9709 * testsuite/libgomp.c++/for-12.C: Remove.
9710 * testsuite/libgomp.c++/for-13.C: Remove.
9711 * testsuite/libgomp.c++/for-14.C: Remove.
9712 * testsuite/libgomp.c++/for-9.C: Remove.
9713 * testsuite/libgomp.c/atomic-18.c: Move ...
9714 * testsuite/libgomp.c-c++-common/atomic-18.c: ... here.
9715 * testsuite/libgomp.c/cancel-taskgroup-2.c: Move ...
9716 * testsuite/libgomp.c-c++-common/cancel-taskgroup-2.c: here.
9717 * testsuite/libgomp.c/loop-13.c: Move ...
9718 * testsuite/libgomp.c-c++-common/loop-13.c: ... here.
9719 * testsuite/libgomp.c/loop-14.c: Move ...
9720 * testsuite/libgomp.c-c++-common/loop-14.c: ... here.
9721 * testsuite/libgomp.c/loop-15.c: Remove.
9722 * testsuite/libgomp.c-c++-common/loop-15.c: New test.
9723 * testsuite/libgomp.c/monotonic-1.c: Move ...
9724 * testsuite/libgomp.c-c++-common/monotonic-1.c: ... here.
9725 * testsuite/libgomp.c/monotonic-2.c: Move ...
9726 * testsuite/libgomp.c-c++-common/monotonic-2.c: ... here.
9727 * testsuite/libgomp.c/nonmonotonic-1.c: Move ...
9728 * testsuite/libgomp.c-c++-common/nonmonotonic-1.c: ... here.
9729 * testsuite/libgomp.c/nonmonotonic-2.c: Move ...
9730 * testsuite/libgomp.c-c++-common/nonmonotonic-2.c: ... here.
9731 * testsuite/libgomp.c/ordered-4.c: Move ...
9732 * testsuite/libgomp.c-c++-common/ordered-4.c: ... here.
9733 * testsuite/libgomp.c/pr45784.c: Move ...
9734 * testsuite/libgomp.c-c++-common/pr45784.c: ... here.
9735 * testsuite/libgomp.c/pr64824.c: Move ...
9736 * testsuite/libgomp.c-c++-common/pr64824.c: ... here.
9737 * testsuite/libgomp.c/pr64868.c: Move ...
9738 * testsuite/libgomp.c-c++-common/pr64868.c: ... here.
9739 * testsuite/libgomp.c/pr66199-1.c: Move ...
9740 * testsuite/libgomp.c-c++-common/pr66199-1.c: ... here.
9741 * testsuite/libgomp.c/pr66199-2.c: Move ...
9742 * testsuite/libgomp.c-c++-common/pr66199-2.c: ... here.
9743 * testsuite/libgomp.c/pr66199-3.c: Move ...
9744 * testsuite/libgomp.c-c++-common/pr66199-3.c: ... here.
9745 * testsuite/libgomp.c/pr66199-4.c: Move ...
9746 * testsuite/libgomp.c-c++-common/pr66199-4.c: ... here.
9747 * testsuite/libgomp.c/pr66199-5.c: Move ...
9748 * testsuite/libgomp.c-c++-common/pr66199-5.c: ... here.
9749 * testsuite/libgomp.c/pr66199-6.c: Move ...
9750 * testsuite/libgomp.c-c++-common/pr66199-6.c: ... here.
9751 * testsuite/libgomp.c/pr66199-7.c: Move ...
9752 * testsuite/libgomp.c-c++-common/pr66199-7.c: ... here.
9753 * testsuite/libgomp.c/pr66199-8.c: Move ...
9754 * testsuite/libgomp.c-c++-common/pr66199-8.c: ... here.
9755 * testsuite/libgomp.c/pr66199-9.c: Move ...
9756 * testsuite/libgomp.c-c++-common/pr66199-9.c: ... here.
9757 * testsuite/libgomp.c/pr69389.c: Move ...
9758 * testsuite/libgomp.c-c++-common/pr69389.c: ... here.
9759 * testsuite/libgomp.c/simd-14.c: Move ...
9760 * testsuite/libgomp.c-c++-common/simd-14.c: ... here.
9761 * testsuite/libgomp.c/simd-15.c: Move ...
9762 * testsuite/libgomp.c-c++-common/simd-15.c: ... here.
9763 * testsuite/libgomp.c/simd-16.c: Move ...
9764 * testsuite/libgomp.c-c++-common/simd-16.c: ... here.
9765 * testsuite/libgomp.c/simd-17.c: Move ...
9766 * testsuite/libgomp.c-c++-common/simd-17.c: ... here.
9767 * testsuite/libgomp.c/target-1.c: Move ...
9768 * testsuite/libgomp.c-c++-common/target-1.c: ... here.
9769 * testsuite/libgomp.c/target-10.c: Move ...
9770 * testsuite/libgomp.c-c++-common/target-10.c: ... here.
9771 * testsuite/libgomp.c/target-13.c: Move ...
9772 * testsuite/libgomp.c-c++-common/target-13.c: ... here.
9773 * testsuite/libgomp.c/target-2.c: Move ...
9774 * testsuite/libgomp.c-c++-common/target-2.c: ... here.
9775 * testsuite/libgomp.c/taskgroup-1.c: Move ...
9776 * testsuite/libgomp.c-c++-common/taskgroup-1.c: ... here.
9777 * testsuite/libgomp.c/taskloop-1.c: Move ...
9778 * testsuite/libgomp.c-c++-common/taskloop-1.c: ... here.
9779 * testsuite/libgomp.c/taskloop-2.c: Move ...
9780 * testsuite/libgomp.c-c++-common/taskloop-2.c: ... here.
9781 * testsuite/libgomp.c/taskloop-3.c: Move ...
9782 * testsuite/libgomp.c-c++-common/taskloop-3.c: ... here.
9783 * testsuite/libgomp.c/taskloop-4.c: Move ...
9784 * testsuite/libgomp.c-c++-common/taskloop-4.c: ... here.
9785 * testsuite/libgomp.c/udr-1.c: Move ...
9786 * testsuite/libgomp.c-c++-common/udr-1.c: ... here.
9787 * testsuite/libgomp.c/for-1.c: Move ...
9788 * testsuite/libgomp.c-c++-common/for-1.c: ... here.
9789 * testsuite/libgomp.c/for-1.h: Move ...
9790 * testsuite/libgomp.c-c++-common/for-1.h: ... here.
9791 * testsuite/libgomp.c/for-2.c: Move ...
9792 * testsuite/libgomp.c-c++-common/for-2.c: ... here.
9793 * testsuite/libgomp.c/for-2.h: Move ...
9794 * testsuite/libgomp.c-c++-common/for-2.h: ... here.
9795 * testsuite/libgomp.c/for-3.c: Move ...
9796 * testsuite/libgomp.c-c++-common/for-3.c: ... here.
9797 * testsuite/libgomp.c/for-4.c: Move ...
9798 * testsuite/libgomp.c-c++-common/for-4.c: ... here.
9799 * testsuite/libgomp.c/for-5.c: Move ...
9800 * testsuite/libgomp.c-c++-common/for-5.c: ... here.
9801 * testsuite/libgomp.c/for-6.c: Move ...
9802 * testsuite/libgomp.c-c++-common/for-6.c: ... here.
9803
9804 2018-05-02 Tom de Vries <tom@codesourcery.com>
9805
9806 PR libgomp/82428
9807 * testsuite/libgomp.oacc-c-c++-common/gang-static-2.c: Use
9808 __builtin_goacc_parlevel_{id,size}.
9809 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Same.
9810 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: Same.
9811 * testsuite/libgomp.oacc-c-c++-common/loop-g-1.c: Same.
9812 * testsuite/libgomp.oacc-c-c++-common/loop-g-2.c: Same.
9813 * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c: Same.
9814 * testsuite/libgomp.oacc-c-c++-common/loop-red-g-1.c: Same.
9815 * testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c: Same.
9816 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c: Same.
9817 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c: Same.
9818 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c: Same.
9819 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c: Same.
9820 * testsuite/libgomp.oacc-c-c++-common/loop-red-wv-1.c: Same.
9821 * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c: Same.
9822 * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c: Same.
9823 * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c: Same.
9824 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Same.
9825 * testsuite/libgomp.oacc-c-c++-common/routine-g-1.c: Same.
9826 * testsuite/libgomp.oacc-c-c++-common/routine-gwv-1.c: Same.
9827 * testsuite/libgomp.oacc-c-c++-common/routine-v-1.c: Same.
9828 * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c: Same.
9829 * testsuite/libgomp.oacc-c-c++-common/routine-wv-1.c: Same.
9830 * testsuite/libgomp.oacc-c-c++-common/routine-wv-2.c: Same.
9831 * testsuite/libgomp.oacc-c-c++-common/tile-1.c: Same.
9832
9833 2018-05-02 Tom de Vries <tom@codesourcery.com>
9834
9835 PR testsuite/85106
9836 * testsuite/lib/libgomp.exp: Include scanltranstree.exp.
9837
9838 2018-05-02 Tom de Vries <tom@codesourcery.com>
9839
9840 PR testsuite/85106
9841 * testsuite/lib/libgomp.exp: Include scanwpaipa.exp.
9842
9843 2018-04-29 Julian Brown <julian@codesourcery.com>
9844 Tom de Vries <tom@codesourcery.com>
9845
9846 PR testsuite/85527
9847 * testsuite/libgomp.oacc-c-c++-common/atomic_capture-1.c: Allow
9848 arbitrary order for iterations of atomic subtract check.
9849
9850 2018-04-28 Tom de Vries <tom@codesourcery.com>
9851
9852 PR testsuite/85527
9853 * testsuite/libgomp.oacc-fortran/atomic_capture-1.f90 (main): Store
9854 atomic capture results obtained in parallel loop to an array, instead of
9855 to a scalar.
9856
9857 2018-04-26 Tom de Vries <tom@codesourcery.com>
9858
9859 PR libgomp/84020
9860 * plugin/cuda/cuda.h (CUjit_option): Add CU_JIT_OPTIMIZATION_LEVEL.
9861 * plugin/plugin-nvptx.c (_GNU_SOURCE): Define.
9862 (process_GOMP_NVPTX_JIT): New function.
9863 (link_ptx): Use process_GOMP_NVPTX_JIT.
9864
9865 2018-04-26 Richard Biener <rguenther@suse.de>
9866 Tom de Vries <tom@codesourcery.com>
9867
9868 PR lto/85422
9869 * testsuite/libgomp.oacc-c-c++-common/pr85422.c: New test.
9870
9871 2018-04-26 Tom de Vries <tom@codesourcery.com>
9872
9873 PR target/85519
9874 * testsuite/libgomp.fortran/examples-4/declare_target-1.f90: Reduce
9875 recursion depth from 25 to 23.
9876 * testsuite/libgomp.fortran/examples-4/declare_target-2.f90: Same.
9877
9878 2018-04-24 H.J. Lu <hongjiu.lu@intel.com>
9879
9880 * configure: Regenerated.
9881
9882 2018-04-20 Nathan Sidwell <nathan@codesourcery.com>
9883 Tom de Vries <tom@codesourcery.com>
9884
9885 PR target/85445
9886 * testsuite/libgomp.oacc-c++/ref-1.C: New.
9887
9888 2018-04-19 Thomas Schwinge <thomas@codesourcery.com>
9889
9890 PR libgomp/85463
9891 * testsuite/libgomp.oacc-fortran/error_stop-1.f: New file.
9892 * testsuite/libgomp.oacc-fortran/error_stop-2.f: Likewise.
9893 * testsuite/libgomp.oacc-fortran/error_stop-3.f: Likewise.
9894 * testsuite/libgomp.oacc-fortran/stop-1.f: Likewise.
9895 * testsuite/libgomp.oacc-fortran/stop-2.f: Likewise.
9896 * testsuite/libgomp.oacc-fortran/stop-3.f: Likewise.
9897
9898 PR libfortran/85166
9899 * testsuite/libgomp.oacc-fortran/abort-1.f90: Switch back to "call
9900 abort".
9901 * testsuite/libgomp.oacc-fortran/abort-2.f90: Likewise.
9902
9903 2018-04-19 Jakub Jelinek <jakub@redhat.com>
9904
9905 * configure: Regenerated.
9906
9907 2018-04-18 David Malcolm <dmalcolm@redhat.com>
9908
9909 PR jit/85384
9910 * configure: Regenerate.
9911
9912 2018-04-16 Cesar Philippidis <cesar@codesourcery.com>
9913 Tom de Vries <tom@codesourcery.com>
9914
9915 PR middle-end/84955
9916 * testsuite/libgomp.oacc-c-c++-common/pr84955.c: New test.
9917 * testsuite/libgomp.oacc-fortran/pr84955.f90: New test.
9918
9919 2018-04-12 Thomas Koenig <tkoenig@gcc.gnu.org>
9920
9921 PR fortran/83064
9922 PR testsuite/85346
9923 * testsuite/libgomp.fortran/do_concurrent_5.f90: Move modified
9924 test from gfortran.dg to here.
9925
9926 2018-04-12 Cesar Philippidis <cesar@codesourcery.com>
9927
9928 * testsuite/libgomp.oacc-c-c++-common/pr84955.c: Revert 259346.
9929 * testsuite/libgomp.oacc-fortran/pr84955.f90: Likewise.
9930
9931 2018-04-12 Cesar Philippidis <cesar@codesourcery.com>
9932
9933 PR middle-end/84955
9934 * testsuite/libgomp.oacc-c-c++-common/pr84955.c: New test.
9935 * testsuite/libgomp.oacc-fortran/pr84955.f90: New test.
9936
9937 2018-04-05 Tom de Vries <tom@codesourcery.com>
9938
9939 PR target/85204
9940 * testsuite/libgomp.oacc-c-c++-common/broadcast-1.c: New test.
9941
9942 2018-03-26 Tom de Vries <tom@codesourcery.com>
9943
9944 PR tree-optimization/85063
9945 * testsuite/libgomp.c/switch-conversion-2.c: New test.
9946 * testsuite/libgomp.c/switch-conversion.c: New test.
9947 * testsuite/libgomp.oacc-c-c++-common/switch-conversion-2.c: New test.
9948 * testsuite/libgomp.oacc-c-c++-common/switch-conversion.c: New test.
9949
9950 2018-03-25 Thomas Koenig <tkoenig@gcc.gnu.org>
9951
9952 PR fortran/84381
9953 * testsuite/libgomp.fortran/aligned1.f03: Replace non-standard
9954 call abort by STOP n.
9955 * testsuite/libgomp.fortran/alloc-comp-1.f90: Likewise.
9956 * testsuite/libgomp.fortran/alloc-comp-2.f90: Likewise.
9957 * testsuite/libgomp.fortran/alloc-comp-3.f90: Likewise.
9958 * testsuite/libgomp.fortran/allocatable1.f90: Likewise.
9959 * testsuite/libgomp.fortran/allocatable10.f90: Likewise.
9960 * testsuite/libgomp.fortran/allocatable11.f90: Likewise.
9961 * testsuite/libgomp.fortran/allocatable12.f90: Likewise.
9962 * testsuite/libgomp.fortran/allocatable2.f90: Likewise.
9963 * testsuite/libgomp.fortran/allocatable3.f90: Likewise.
9964 * testsuite/libgomp.fortran/allocatable4.f90: Likewise.
9965 * testsuite/libgomp.fortran/allocatable5.f90: Likewise.
9966 * testsuite/libgomp.fortran/allocatable6.f90: Likewise.
9967 * testsuite/libgomp.fortran/allocatable7.f90: Likewise.
9968 * testsuite/libgomp.fortran/allocatable8.f90: Likewise.
9969 * testsuite/libgomp.fortran/allocatable9.f90: Likewise.
9970 * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: Likewise.
9971 * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: Likewise.
9972 * testsuite/libgomp.fortran/associate1.f90: Likewise.
9973 * testsuite/libgomp.fortran/associate2.f90: Likewise.
9974 * testsuite/libgomp.fortran/associate3.f90: Likewise.
9975 * testsuite/libgomp.fortran/cancel-do-1.f90: Likewise.
9976 * testsuite/libgomp.fortran/cancel-do-2.f90: Likewise.
9977 * testsuite/libgomp.fortran/cancel-parallel-1.f90: Likewise.
9978 * testsuite/libgomp.fortran/cancel-sections-1.f90: Likewise.
9979 * testsuite/libgomp.fortran/cancel-taskgroup-2.f90: Likewise.
9980 * testsuite/libgomp.fortran/character1.f90: Likewise.
9981 * testsuite/libgomp.fortran/character2.f90: Likewise.
9982 * testsuite/libgomp.fortran/collapse1.f90: Likewise.
9983 * testsuite/libgomp.fortran/collapse2.f90: Likewise.
9984 * testsuite/libgomp.fortran/collapse3.f90: Likewise.
9985 * testsuite/libgomp.fortran/collapse4.f90: Likewise.
9986 * testsuite/libgomp.fortran/crayptr1.f90: Likewise.
9987 * testsuite/libgomp.fortran/crayptr2.f90: Likewise.
9988 * testsuite/libgomp.fortran/crayptr3.f90: Likewise.
9989 * testsuite/libgomp.fortran/declare-simd-1.f90: Likewise.
9990 * testsuite/libgomp.fortran/declare-simd-3.f90: Likewise.
9991 * testsuite/libgomp.fortran/declare-target-2.f90: Likewise.
9992 * testsuite/libgomp.fortran/depend-1.f90: Likewise.
9993 * testsuite/libgomp.fortran/depend-2.f90: Likewise.
9994 * testsuite/libgomp.fortran/depend-3.f90: Likewise.
9995 * testsuite/libgomp.fortran/do1.f90: Likewise.
9996 * testsuite/libgomp.fortran/do2.f90: Likewise.
9997 * testsuite/libgomp.fortran/doacross1.f90: Likewise.
9998 * testsuite/libgomp.fortran/doacross2.f90: Likewise.
9999 * testsuite/libgomp.fortran/doacross3.f90: Likewise.
10000 * testsuite/libgomp.fortran/examples-4/array_sections-3.f90: Likewise.
10001 * testsuite/libgomp.fortran/examples-4/array_sections-4.f90: Likewise.
10002 * testsuite/libgomp.fortran/examples-4/async_target-1.f90: Likewise.
10003 * testsuite/libgomp.fortran/examples-4/async_target-2.f90: Likewise.
10004 * testsuite/libgomp.fortran/examples-4/declare_target-1.f90: Likewise.
10005 * testsuite/libgomp.fortran/examples-4/declare_target-2.f90: Likewise.
10006 * testsuite/libgomp.fortran/examples-4/declare_target-3.f90: Likewise.
10007 * testsuite/libgomp.fortran/examples-4/declare_target-4.f90: Likewise.
10008 * testsuite/libgomp.fortran/examples-4/declare_target-5.f90: Likewise.
10009 * testsuite/libgomp.fortran/examples-4/device-1.f90: Likewise.
10010 * testsuite/libgomp.fortran/examples-4/device-2.f90: Likewise.
10011 * testsuite/libgomp.fortran/examples-4/device-3.f90: Likewise.
10012 * testsuite/libgomp.fortran/examples-4/simd-1.f90: Likewise.
10013 * testsuite/libgomp.fortran/examples-4/simd-2.f90: Likewise.
10014 * testsuite/libgomp.fortran/examples-4/simd-3.f90: Likewise.
10015 * testsuite/libgomp.fortran/examples-4/simd-4.f90: Likewise.
10016 * testsuite/libgomp.fortran/examples-4/simd-5.f90: Likewise.
10017 * testsuite/libgomp.fortran/examples-4/simd-6.f90: Likewise.
10018 * testsuite/libgomp.fortran/examples-4/simd-7.f90: Likewise.
10019 * testsuite/libgomp.fortran/examples-4/simd-8.f90: Likewise.
10020 * testsuite/libgomp.fortran/examples-4/target-1.f90: Likewise.
10021 * testsuite/libgomp.fortran/examples-4/target-2.f90: Likewise.
10022 * testsuite/libgomp.fortran/examples-4/target-3.f90: Likewise.
10023 * testsuite/libgomp.fortran/examples-4/target-4.f90: Likewise.
10024 * testsuite/libgomp.fortran/examples-4/target-5.f90: Likewise.
10025 * testsuite/libgomp.fortran/examples-4/target_data-1.f90: Likewise.
10026 * testsuite/libgomp.fortran/examples-4/target_data-2.f90: Likewise.
10027 * testsuite/libgomp.fortran/examples-4/target_data-3.f90: Likewise.
10028 * testsuite/libgomp.fortran/examples-4/target_data-4.f90: Likewise.
10029 * testsuite/libgomp.fortran/examples-4/target_data-5.f90: Likewise.
10030 * testsuite/libgomp.fortran/examples-4/target_data-6.f90: Likewise.
10031 * testsuite/libgomp.fortran/examples-4/target_data-7.f90: Likewise.
10032 * testsuite/libgomp.fortran/examples-4/target_update-1.f90: Likewise.
10033 * testsuite/libgomp.fortran/examples-4/target_update-2.f90: Likewise.
10034 * testsuite/libgomp.fortran/examples-4/task_dep-1.f90: Likewise.
10035 * testsuite/libgomp.fortran/examples-4/task_dep-2.f90: Likewise.
10036 * testsuite/libgomp.fortran/examples-4/task_dep-3.f90: Likewise.
10037 * testsuite/libgomp.fortran/examples-4/task_dep-4.f90: Likewise.
10038 * testsuite/libgomp.fortran/examples-4/task_dep-5.f90: Likewise.
10039 * testsuite/libgomp.fortran/examples-4/teams-2.f90: Likewise.
10040 * testsuite/libgomp.fortran/examples-4/teams-3.f90: Likewise.
10041 * testsuite/libgomp.fortran/examples-4/teams-4.f90: Likewise.
10042 * testsuite/libgomp.fortran/examples-4/teams-5.f90: Likewise.
10043 * testsuite/libgomp.fortran/examples-4/teams-6.f90: Likewise.
10044 * testsuite/libgomp.fortran/lastprivate1.f90: Likewise.
10045 * testsuite/libgomp.fortran/lastprivate2.f90: Likewise.
10046 * testsuite/libgomp.fortran/lib1.f90: Likewise.
10047 * testsuite/libgomp.fortran/lib2.f: Likewise.
10048 * testsuite/libgomp.fortran/lib3.f: Likewise.
10049 * testsuite/libgomp.fortran/lib4.f90: Likewise.
10050 * testsuite/libgomp.fortran/lock-1.f90: Likewise.
10051 * testsuite/libgomp.fortran/lock-2.f90: Likewise.
10052 * testsuite/libgomp.fortran/nested1.f90: Likewise.
10053 * testsuite/libgomp.fortran/nestedfn1.f90: Likewise.
10054 * testsuite/libgomp.fortran/nestedfn2.f90: Likewise.
10055 * testsuite/libgomp.fortran/nestedfn3.f90: Likewise.
10056 * testsuite/libgomp.fortran/nestedfn4.f90: Likewise.
10057 * testsuite/libgomp.fortran/nestedfn5.f90: Likewise.
10058 * testsuite/libgomp.fortran/omp_atomic1.f90: Likewise.
10059 * testsuite/libgomp.fortran/omp_atomic2.f90: Likewise.
10060 * testsuite/libgomp.fortran/omp_atomic3.f90: Likewise.
10061 * testsuite/libgomp.fortran/omp_atomic4.f90: Likewise.
10062 * testsuite/libgomp.fortran/omp_atomic5.f90: Likewise.
10063 * testsuite/libgomp.fortran/omp_cond1.f: Likewise.
10064 * testsuite/libgomp.fortran/omp_cond2.f: Likewise.
10065 * testsuite/libgomp.fortran/omp_cond3.F90: Likewise.
10066 * testsuite/libgomp.fortran/omp_cond4.F90: Likewise.
10067 * testsuite/libgomp.fortran/omp_parse1.f90: Likewise.
10068 * testsuite/libgomp.fortran/omp_parse2.f90: Likewise.
10069 * testsuite/libgomp.fortran/omp_parse3.f90: Likewise.
10070 * testsuite/libgomp.fortran/omp_parse4.f90: Likewise.
10071 * testsuite/libgomp.fortran/openmp_version-1.f: Likewise.
10072 * testsuite/libgomp.fortran/openmp_version-2.f90: Likewise.
10073 * testsuite/libgomp.fortran/parloops-exit-first-loop-alt-2.f95: Likewise.
10074 * testsuite/libgomp.fortran/parloops-exit-first-loop-alt.f95: Likewise.
10075 * testsuite/libgomp.fortran/pointer1.f90: Likewise.
10076 * testsuite/libgomp.fortran/pointer2.f90: Likewise.
10077 * testsuite/libgomp.fortran/pr25162.f: Likewise.
10078 * testsuite/libgomp.fortran/pr25219.f90: Likewise.
10079 * testsuite/libgomp.fortran/pr27395-1.f90: Likewise.
10080 * testsuite/libgomp.fortran/pr27395-2.f90: Likewise.
10081 * testsuite/libgomp.fortran/pr27416-1.f90: Likewise.
10082 * testsuite/libgomp.fortran/pr27916-1.f90: Likewise.
10083 * testsuite/libgomp.fortran/pr27916-2.f90: Likewise.
10084 * testsuite/libgomp.fortran/pr28390.f: Likewise.
10085 * testsuite/libgomp.fortran/pr29629.f90: Likewise.
10086 * testsuite/libgomp.fortran/pr32550.f90: Likewise.
10087 * testsuite/libgomp.fortran/pr33880.f90: Likewise.
10088 * testsuite/libgomp.fortran/pr34020.f90: Likewise.
10089 * testsuite/libgomp.fortran/pr35130.f90: Likewise.
10090 * testsuite/libgomp.fortran/pr42162.f90: Likewise.
10091 * testsuite/libgomp.fortran/pr46753.f90: Likewise.
10092 * testsuite/libgomp.fortran/pr48894.f90: Likewise.
10093 * testsuite/libgomp.fortran/pr49792-1.f90: Likewise.
10094 * testsuite/libgomp.fortran/pr49792-2.f90: Likewise.
10095 * testsuite/libgomp.fortran/pr63938-1.f90: Likewise.
10096 * testsuite/libgomp.fortran/pr63938-2.f90: Likewise.
10097 * testsuite/libgomp.fortran/pr65597.f90: Likewise.
10098 * testsuite/libgomp.fortran/pr66199-1.f90: Likewise.
10099 * testsuite/libgomp.fortran/pr71014.f90: Likewise.
10100 * testsuite/libgomp.fortran/pr81304.f90: Likewise.
10101 * testsuite/libgomp.fortran/pr81841.f90: Likewise.
10102 * testsuite/libgomp.fortran/pr84418-1.f90: Likewise.
10103 * testsuite/libgomp.fortran/pr84418-2.f90: Likewise.
10104 * testsuite/libgomp.fortran/procptr1.f90: Likewise.
10105 * testsuite/libgomp.fortran/recursion1.f90: Likewise.
10106 * testsuite/libgomp.fortran/reduction1.f90: Likewise.
10107 * testsuite/libgomp.fortran/reduction2.f90: Likewise.
10108 * testsuite/libgomp.fortran/reduction3.f90: Likewise.
10109 * testsuite/libgomp.fortran/reduction4.f90: Likewise.
10110 * testsuite/libgomp.fortran/reduction5.f90: Likewise.
10111 * testsuite/libgomp.fortran/reduction6.f90: Likewise.
10112 * testsuite/libgomp.fortran/reference1.f90: Likewise.
10113 * testsuite/libgomp.fortran/reference2.f90: Likewise.
10114 * testsuite/libgomp.fortran/retval1.f90: Likewise.
10115 * testsuite/libgomp.fortran/retval2.f90: Likewise.
10116 * testsuite/libgomp.fortran/sharing1.f90: Likewise.
10117 * testsuite/libgomp.fortran/sharing2.f90: Likewise.
10118 * testsuite/libgomp.fortran/simd1.f90: Likewise.
10119 * testsuite/libgomp.fortran/simd2.f90: Likewise.
10120 * testsuite/libgomp.fortran/simd3.f90: Likewise.
10121 * testsuite/libgomp.fortran/simd4.f90: Likewise.
10122 * testsuite/libgomp.fortran/simd5.f90: Likewise.
10123 * testsuite/libgomp.fortran/simd6.f90: Likewise.
10124 * testsuite/libgomp.fortran/simd7.f90: Likewise.
10125 * testsuite/libgomp.fortran/stack.f90: Likewise.
10126 * testsuite/libgomp.fortran/strassen.f90: Likewise.
10127 * testsuite/libgomp.fortran/tabs1.f90: Likewise.
10128 * testsuite/libgomp.fortran/tabs2.f: Likewise.
10129 * testsuite/libgomp.fortran/target1.f90: Likewise.
10130 * testsuite/libgomp.fortran/target2.f90: Likewise.
10131 * testsuite/libgomp.fortran/target3.f90: Likewise.
10132 * testsuite/libgomp.fortran/target4.f90: Likewise.
10133 * testsuite/libgomp.fortran/target5.f90: Likewise.
10134 * testsuite/libgomp.fortran/target6.f90: Likewise.
10135 * testsuite/libgomp.fortran/target7.f90: Likewise.
10136 * testsuite/libgomp.fortran/target8.f90: Likewise.
10137 * testsuite/libgomp.fortran/task1.f90: Likewise.
10138 * testsuite/libgomp.fortran/task2.f90: Likewise.
10139 * testsuite/libgomp.fortran/task3.f90: Likewise.
10140 * testsuite/libgomp.fortran/task4.f90: Likewise.
10141 * testsuite/libgomp.fortran/taskgroup1.f90: Likewise.
10142 * testsuite/libgomp.fortran/taskloop1.f90: Likewise.
10143 * testsuite/libgomp.fortran/taskloop2.f90: Likewise.
10144 * testsuite/libgomp.fortran/taskloop3.f90: Likewise.
10145 * testsuite/libgomp.fortran/taskloop4.f90: Likewise.
10146 * testsuite/libgomp.fortran/threadprivate1.f90: Likewise.
10147 * testsuite/libgomp.fortran/threadprivate2.f90: Likewise.
10148 * testsuite/libgomp.fortran/threadprivate3.f90: Likewise.
10149 * testsuite/libgomp.fortran/threadprivate4.f90: Likewise.
10150 * testsuite/libgomp.fortran/udr1.f90: Likewise.
10151 * testsuite/libgomp.fortran/udr10.f90: Likewise.
10152 * testsuite/libgomp.fortran/udr11.f90: Likewise.
10153 * testsuite/libgomp.fortran/udr12.f90: Likewise.
10154 * testsuite/libgomp.fortran/udr13.f90: Likewise.
10155 * testsuite/libgomp.fortran/udr14.f90: Likewise.
10156 * testsuite/libgomp.fortran/udr15.f90: Likewise.
10157 * testsuite/libgomp.fortran/udr2.f90: Likewise.
10158 * testsuite/libgomp.fortran/udr3.f90: Likewise.
10159 * testsuite/libgomp.fortran/udr4.f90: Likewise.
10160 * testsuite/libgomp.fortran/udr5.f90: Likewise.
10161 * testsuite/libgomp.fortran/udr6.f90: Likewise.
10162 * testsuite/libgomp.fortran/udr7.f90: Likewise.
10163 * testsuite/libgomp.fortran/udr8.f90: Likewise.
10164 * testsuite/libgomp.fortran/udr9.f90: Likewise.
10165 * testsuite/libgomp.fortran/vla1.f90: Likewise.
10166 * testsuite/libgomp.fortran/vla2.f90: Likewise.
10167 * testsuite/libgomp.fortran/vla3.f90: Likewise.
10168 * testsuite/libgomp.fortran/vla4.f90: Likewise.
10169 * testsuite/libgomp.fortran/vla5.f90: Likewise.
10170 * testsuite/libgomp.fortran/vla6.f90: Likewise.
10171 * testsuite/libgomp.fortran/vla7.f90: Likewise.
10172 * testsuite/libgomp.fortran/vla8.f90: Likewise.
10173 * testsuite/libgomp.fortran/workshare1.f90: Likewise.
10174 * testsuite/libgomp.fortran/workshare2.f90: Likewise.
10175 * testsuite/libgomp.oacc-fortran/abort-1.f90: Likewise.
10176 * testsuite/libgomp.oacc-fortran/abort-2.f90: Likewise.
10177 * testsuite/libgomp.oacc-fortran/acc_on_device-1-1.f90: Likewise.
10178 * testsuite/libgomp.oacc-fortran/acc_on_device-1-2.f: Likewise.
10179 * testsuite/libgomp.oacc-fortran/acc_on_device-1-3.f: Likewise.
10180 * testsuite/libgomp.oacc-fortran/asyncwait-1.f90: Likewise.
10181 * testsuite/libgomp.oacc-fortran/asyncwait-2.f90: Likewise.
10182 * testsuite/libgomp.oacc-fortran/asyncwait-3.f90: Likewise.
10183 * testsuite/libgomp.oacc-fortran/atomic_capture-1.f90: Likewise.
10184 * testsuite/libgomp.oacc-fortran/atomic_rw-1.f90: Likewise.
10185 * testsuite/libgomp.oacc-fortran/atomic_update-1.f90: Likewise.
10186 * testsuite/libgomp.oacc-fortran/c2.pl: Likewise.
10187 * testsuite/libgomp.oacc-fortran/clauses-1.f90: Likewise.
10188 * testsuite/libgomp.oacc-fortran/collapse-1.f90: Likewise.
10189 * testsuite/libgomp.oacc-fortran/collapse-2.f90: Likewise.
10190 * testsuite/libgomp.oacc-fortran/collapse-3.f90: Likewise.
10191 * testsuite/libgomp.oacc-fortran/collapse-4.f90: Likewise.
10192 * testsuite/libgomp.oacc-fortran/collapse-5.f90: Likewise.
10193 * testsuite/libgomp.oacc-fortran/collapse-6.f90: Likewise.
10194 * testsuite/libgomp.oacc-fortran/collapse-7.f90: Likewise.
10195 * testsuite/libgomp.oacc-fortran/collapse-8.f90: Likewise.
10196 * testsuite/libgomp.oacc-fortran/combined-directives-1.f90: Likewise.
10197 * testsuite/libgomp.oacc-fortran/combined-reduction.f90: Likewise.
10198 * testsuite/libgomp.oacc-fortran/data-1.f90: Likewise.
10199 * testsuite/libgomp.oacc-fortran/data-2.f90: Likewise.
10200 * testsuite/libgomp.oacc-fortran/data-3.f90: Likewise.
10201 * testsuite/libgomp.oacc-fortran/data-4-2.f90: Likewise.
10202 * testsuite/libgomp.oacc-fortran/data-4.f90: Likewise.
10203 * testsuite/libgomp.oacc-fortran/declare-1.f90: Likewise.
10204 * testsuite/libgomp.oacc-fortran/declare-2.f90: Likewise.
10205 * testsuite/libgomp.oacc-fortran/declare-3.f90: Likewise.
10206 * testsuite/libgomp.oacc-fortran/declare-4.f90: Likewise.
10207 * testsuite/libgomp.oacc-fortran/declare-5.f90: Likewise.
10208 * testsuite/libgomp.oacc-fortran/default-1.f90: Likewise.
10209 * testsuite/libgomp.oacc-fortran/firstprivate-1.f90: Likewise.
10210 * testsuite/libgomp.oacc-fortran/gang-static-1.f90: Likewise.
10211 * testsuite/libgomp.oacc-fortran/host_data-1.f90: Likewise.
10212 * testsuite/libgomp.oacc-fortran/if-1.f90: Likewise.
10213 * testsuite/libgomp.oacc-fortran/implicit-firstprivate-ref.f90: Likewise.
10214 * testsuite/libgomp.oacc-fortran/kernels-loop-2.f95: Likewise.
10215 * testsuite/libgomp.oacc-fortran/kernels-loop-data-2.f95: Likewise.
10216 * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit-2.f95: Likewise.
10217 * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit.f95: Likewise.
10218 * testsuite/libgomp.oacc-fortran/kernels-loop-data-update.f95: Likewise.
10219 * testsuite/libgomp.oacc-fortran/kernels-loop-data.f95: Likewise.
10220 * testsuite/libgomp.oacc-fortran/kernels-loop.f95: Likewise.
10221 * testsuite/libgomp.oacc-fortran/lib-1.f90: Likewise.
10222 * testsuite/libgomp.oacc-fortran/lib-10.f90: Likewise.
10223 * testsuite/libgomp.oacc-fortran/lib-2.f: Likewise.
10224 * testsuite/libgomp.oacc-fortran/lib-3.f: Likewise.
10225 * testsuite/libgomp.oacc-fortran/lib-32-1.f: Likewise.
10226 * testsuite/libgomp.oacc-fortran/lib-32-2.f: Likewise.
10227 * testsuite/libgomp.oacc-fortran/lib-4.f90: Likewise.
10228 * testsuite/libgomp.oacc-fortran/lib-5.f90: Likewise.
10229 * testsuite/libgomp.oacc-fortran/lib-6.f90: Likewise.
10230 * testsuite/libgomp.oacc-fortran/lib-7.f90: Likewise.
10231 * testsuite/libgomp.oacc-fortran/lib-8.f90: Likewise.
10232 * testsuite/libgomp.oacc-fortran/map-1.f90: Likewise.
10233 * testsuite/libgomp.oacc-fortran/nested-function-1.f90: Likewise.
10234 * testsuite/libgomp.oacc-fortran/nested-function-2.f90: Likewise.
10235 * testsuite/libgomp.oacc-fortran/nested-function-3.f90: Likewise.
10236 * testsuite/libgomp.oacc-fortran/non-scalar-data.f90: Likewise.
10237 * testsuite/libgomp.oacc-fortran/openacc_version-1.f: Likewise.
10238 * testsuite/libgomp.oacc-fortran/openacc_version-2.f90: Likewise.
10239 * testsuite/libgomp.oacc-fortran/par-reduction-2-1.f: Likewise.
10240 * testsuite/libgomp.oacc-fortran/par-reduction-2-2.f: Likewise.
10241 * testsuite/libgomp.oacc-fortran/parallel-reduction.f90: Likewise.
10242 * testsuite/libgomp.oacc-fortran/pointer-align-1.f90: Likewise.
10243 * testsuite/libgomp.oacc-fortran/pr70643.f90: Likewise.
10244 * testsuite/libgomp.oacc-fortran/pr81352.f90: Likewise.
10245 * testsuite/libgomp.oacc-fortran/pr83920.f90: Likewise.
10246 * testsuite/libgomp.oacc-fortran/pr84028.f90: Likewise.
10247 * testsuite/libgomp.oacc-fortran/private-variables.f90: Likewise.
10248 * testsuite/libgomp.oacc-fortran/pset-1.f90: Likewise.
10249 * testsuite/libgomp.oacc-fortran/reduction-1.f90: Likewise.
10250 * testsuite/libgomp.oacc-fortran/reduction-2.f90: Likewise.
10251 * testsuite/libgomp.oacc-fortran/reduction-3.f90: Likewise.
10252 * testsuite/libgomp.oacc-fortran/reduction-4.f90: Likewise.
10253 * testsuite/libgomp.oacc-fortran/reduction-5.f90: Likewise.
10254 * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
10255 * testsuite/libgomp.oacc-fortran/reduction-7.f90: Likewise.
10256 * testsuite/libgomp.oacc-fortran/reduction-8.f90: Likewise.
10257 * testsuite/libgomp.oacc-fortran/routine-1.f90: Likewise.
10258 * testsuite/libgomp.oacc-fortran/routine-2.f90: Likewise.
10259 * testsuite/libgomp.oacc-fortran/routine-3.f90: Likewise.
10260 * testsuite/libgomp.oacc-fortran/routine-4.f90: Likewise.
10261 * testsuite/libgomp.oacc-fortran/routine-5.f90: Likewise.
10262 * testsuite/libgomp.oacc-fortran/routine-7.f90: Likewise.
10263 * testsuite/libgomp.oacc-fortran/routine-9.f90: Likewise.
10264 * testsuite/libgomp.oacc-fortran/subarrays-1.f90: Likewise.
10265 * testsuite/libgomp.oacc-fortran/subarrays-2.f90: Likewise.
10266 * testsuite/libgomp.oacc-fortran/update-1.f90: Likewise.
10267
10268 2018-03-20 Richard Biener <rguenther@suse.de>
10269
10270 * testsuite/libgomp.graphite/force-parallel-4.c: XFAIL one
10271 parallelizable loop.
10272
10273 2018-02-19 Igor Tsimbalist <igor.v.tsimbalist@intel.com>
10274
10275 PR target/84148
10276 * configure: Regenerate.
10277
10278 2018-02-16 Jakub Jelinek <jakub@redhat.com>
10279
10280 PR fortran/84418
10281 * libgomp.fortran/pr84418-1.f90: New test.
10282 * libgomp.fortran/pr84418-2.f90: New test.
10283
10284 2018-02-14 Jakub Jelinek <jakub@redhat.com>
10285
10286 PR fortran/84313
10287 * testsuite/libgomp.fortran/threadprivate4.f90: Add
10288 -std=f2003 -fall-intrinsics into dg-additional-options.
10289
10290 2018-02-08 Martin Jambor <mjambor@suse.cz>
10291
10292 * testsuite/libgomp.hsa.c/pr82416.c: Make the function with target
10293 clonable.
10294
10295 2018-02-08 Martin Jambor <mjambor@suse.cz>
10296
10297 * testsuite/libgomp.hsa.c/staticvar.c: New test.
10298
10299 2018-02-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10300
10301 * testsuite/libgomp.oacc-c-c++-common/pr84217.c (abort)
10302 [__cplusplus]: Declare extern "C".
10303
10304 2018-02-07 Tom de Vries <tom@codesourcery.com>
10305
10306 PR libgomp/84217
10307 * testsuite/libgomp.oacc-c-c++-common/pr84217.c: New test.
10308
10309 2018-01-29 Christoph Spiel <cspiel@freenet.de>
10310 Jakub Jelinek <jakub@redhat.com>
10311
10312 PR libgomp/84096
10313 * omp.h.in (omp_init_nest_lock_with_hint): Use omp_nest_lock_t
10314 instead of omp_lock_t.
10315
10316 2018-01-25 Tom de Vries <tom@codesourcery.com>
10317
10318 PR target/84028
10319 * testsuite/libgomp.oacc-fortran/pr84028.f90: New test.
10320
10321 2018-01-24 Tom de Vries <tom@codesourcery.com>
10322
10323 PR target/83589
10324 * testsuite/libgomp.oacc-c-c++-common/pr83589.c: New test.
10325
10326 2018-01-24 Tom de Vries <tom@codesourcery.com>
10327
10328 PR target/81352
10329 * testsuite/libgomp.oacc-fortran/pr81352.f90: New test.
10330
10331 2018-01-19 Tom de Vries <tom@codesourcery.com>
10332 Cesar Philippidis <cesar@codesourcery.com>
10333
10334 PR target/83920
10335 * testsuite/libgomp.oacc-c-c++-common/pr83920.c: New test.
10336 * testsuite/libgomp.oacc-fortran/pr83920.f90: New test.
10337
10338 2018-01-03 Jakub Jelinek <jakub@redhat.com>
10339
10340 Update copyright years.
10341
10342 * libgomp.texi: Bump @copying's copyright year.
10343
10344 2017-12-30 Tom de Vries <tom@codesourcery.com>
10345
10346 PR libgomp/83046
10347 * testsuite/libgomp.oacc-c-c++-common/pr83046.c: New test.
10348 * testsuite/libgomp.c-c++-common/pr83046.c: New test.
10349
10350 2017-12-27 Tom de Vries <tom@codesourcery.com>
10351
10352 PR c++/83046
10353 * testsuite/libgomp.oacc-c-c++-common/gang-static-2.c (test_static)
10354 (test_nonstatic): Fix return type to workaround PR83046.
10355
10356 2017-12-05 Jakub Jelinek <jakub@redhat.com>
10357
10358 PR testsuite/83281
10359 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-flt.c (main): Use
10360 j suffix instead of i.
10361 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-dbl.c (main):
10362 Likewise.
10363
10364 2017-12-01 Cesar Philippidis <cesar@codesourcery.com>
10365
10366 * testsuite/libgomp.oacc-c-c++-common/data-2-lib.c: Add missing
10367 call to acc_wait (1).
10368
10369 2017-11-24 Jakub Jelinek <jakub@redhat.com>
10370
10371 PR fortran/81304
10372 * testsuite/libgomp.fortran/pr81304.f90: New test.
10373
10374 2017-11-23 Jakub Jelinek <jakub@redhat.com>
10375
10376 PR fortran/81841
10377 * libgomp.fortran/pr81841.f90: New test.
10378
10379 2017-11-22 Jakub Jelinek <jakub@redhat.com>
10380
10381 PR libgomp/83106
10382 * target.c (gomp_target_init): Compute lengths just once and
10383 use them in both malloc size and subsequent copying.
10384
10385 2017-11-17 Igor Tsimbalist <igor.v.tsimbalist@intel.com>
10386
10387 * configure.ac: Set CET_FLAGS, update XCFLAGS and FCFLAGS.
10388 * acinclude.m4: Add cet.m4.
10389 * configure: Regenerate.
10390 * Makefile.in: Likewise.
10391 * testsuite/Makefile.in: Likewise.
10392
10393 2017-11-15 Tom de Vries <tom@codesourcery.com>
10394
10395 * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-1.c: New test, copied
10396 from asyncwait-1.f90. Rewrite into C. Rewrite from float to int.
10397 * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-2.c: New test, copied
10398 from asyncwait-2.f90. Rewrite into C. Rewrite from float to int.
10399 * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-3.c: New test, copied
10400 from asyncwait-3.f90. Rewrite into C. Rewrite from float to int.
10401
10402 2017-11-14 Tom de Vries <tom@codesourcery.com>
10403
10404 * testsuite/libgomp.oacc-c-c++-common/asyncwait-1.c: Allow to run for
10405 non-nvidia devices.
10406
10407 2017-11-07 Jakub Jelinek <jakub@redhat.com>
10408
10409 PR c++/82835
10410 * testsuite/libgomp.c++/pr82835.C: New test.
10411
10412 2017-11-06 Martin Liska <mliska@suse.cz>
10413
10414 * testsuite/libgomp.c++/loop-2.C: Return a value
10415 for functions with non-void return type, or change type to void,
10416 or add -Wno-return-type for test.
10417 * testsuite/libgomp.c++/loop-4.C: Likewise.
10418 * testsuite/libgomp.c++/parallel-1.C: Likewise.
10419 * testsuite/libgomp.c++/shared-1.C: Likewise.
10420 * testsuite/libgomp.c++/single-1.C: Likewise.
10421 * testsuite/libgomp.c++/single-2.C: Likewise.
10422
10423 2017-10-31 Tom de Vries <tom@codesourcery.com>
10424
10425 * plugin/plugin-hsa.c (HSA_LOG): Remove semicolon after
10426 "do {} while (false)".
10427 (init_single_kernel, GOMP_OFFLOAD_async_run): Add missing semicolon
10428 after HSA_DEBUG call.
10429
10430 2017-10-28 Jakub Jelinek <jakub@redhat.com>
10431
10432 * target.c (struct gomp_coalesce_buf): New type.
10433 (MAX_COALESCE_BUF_SIZE, MAX_COALESCE_BUF_GAP): Define.
10434 (gomp_coalesce_buf_add, gomp_to_device_kind_p): New functions.
10435 (gomp_copy_host2dev): Add CBUF argument, if copying into
10436 the cached ranges, memcpy into buffer instead of copying
10437 into device.
10438 (gomp_map_vars_existing, gomp_map_pointer, gomp_map_fields_existing):
10439 Add CBUF argument, pass it through to other calls.
10440 (gomp_map_vars): Aggregate copies from host to device if small enough
10441 and with small enough gaps in between into memcpy into a buffer and
10442 fewer host to device copies from the buffer.
10443 (gomp_update): Adjust gomp_copy_host2dev caller.
10444
10445 2017-10-17 Thomas Schwinge <thomas@codesourcery.com>
10446
10447 * testsuite/libgomp.oacc-fortran/declare-1.f90: Restore "dg-do
10448 run" directive.
10449 * testsuite/libgomp.oacc-fortran/declare-2.f90: Likewise.
10450 * testsuite/libgomp.oacc-fortran/declare-3.f90: Likewise.
10451 * testsuite/libgomp.oacc-fortran/declare-4.f90: Likewise.
10452 * testsuite/libgomp.oacc-fortran/declare-5.f90: Likewise.
10453
10454 2017-10-16 Tom de Vries <tom@codesourcery.com>
10455
10456 * testsuite/libgomp.oacc-c-c++-common/declare-1.c: Don't require
10457 openacc_nvidia_accel_selected.
10458 * testsuite/libgomp.oacc-c-c++-common/declare-2.c: Same.
10459 * testsuite/libgomp.oacc-c-c++-common/declare-4.c: Same.
10460 * testsuite/libgomp.oacc-fortran/declare-2.f90: Same.
10461 * testsuite/libgomp.oacc-fortran/declare-4.f90: Same
10462 * testsuite/libgomp.oacc-fortran/declare-5.f90: Same.
10463 * testsuite/libgomp.oacc-c-c++-common/declare-5.c: Don't require
10464 openacc_nvidia_accel_selected. Skip for shared memory device.
10465 * testsuite/libgomp.oacc-fortran/declare-1.f90: Same.
10466 * testsuite/libgomp.oacc-fortran/declare-3.f90: Same.
10467
10468 2017-10-09 Martin Jambor <mjambor@suse.cz>
10469
10470 PR hsa/82416
10471 * testsuite/libgomp.hsa.c/pr82416.c: New test.
10472
10473 2017-10-07 Tom de Vries <tom@codesourcery.com>
10474
10475 * testsuite/libgomp.oacc-fortran/firstprivate-1.f90 (firstprivate):
10476 Remove acc_device_nvidia references.
10477 * testsuite/libgomp.oacc-fortran/parallel-reduction.f90 (reduction):
10478 Same.
10479
10480 2017-10-05 Tom de Vries <tom@codesourcery.com>
10481
10482 * testsuite/libgomp.oacc-c-c++-common/loop-red-g-1.c (main): Remove
10483 vector_length(32) clause from acc parallel directive.
10484 * testsuite/libgomp.oacc-c-c++-common/routine-g-1.c (main): Same.
10485
10486 2017-10-04 Tom de Vries <tom@codesourcery.com>
10487
10488 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-3.c
10489 (main): Reduce sum of arr elements. Assert that hres is exactly
10490 representable in 32-bit floating point.
10491 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-4.c
10492 (main): Reduce sum of arr elements. Assert that hres and hmres are
10493 exactly representable in 32-bit floating point.
10494 * testsuite/libgomp.oacc-c-c++-common/reduction-7.c (gwv_np_4): Same.
10495
10496 2017-09-28 Tom de Vries <tom@codesourcery.com>
10497
10498 * testsuite/libgomp.c++/for-12.C: Remove superfluous -fopenmp option
10499 setting.
10500 * testsuite/libgomp.c++/pr69393.C: Same.
10501 * testsuite/libgomp.c++/taskloop-1.C: Same.
10502 * testsuite/libgomp.c++/taskloop-3.C: Same.
10503 * testsuite/libgomp.c++/taskloop-4.C: Same.
10504 * testsuite/libgomp.c/for-4.c: Same.
10505 * testsuite/libgomp.c/pr66199-3.c: Same.
10506 * testsuite/libgomp.c/pr66199-4.c: Same.
10507 * testsuite/libgomp.c/pr66199-6.c: Same.
10508 * testsuite/libgomp.c/taskloop-1.c: Same.
10509 * testsuite/libgomp.c/taskloop-3.c: Same.
10510 * testsuite/libgomp.c/taskloop-4.c: Same.
10511 * testsuite/libgomp.fortran/aligned1.f03: Same.
10512 * testsuite/libgomp.fortran/condinc1.f: Same.
10513 * testsuite/libgomp.fortran/condinc3.f90: Same.
10514 * testsuite/libgomp.fortran/crayptr1.f90: Same.
10515 * testsuite/libgomp.fortran/crayptr2.f90: Same.
10516 * testsuite/libgomp.fortran/crayptr3.f90: Same.
10517 * testsuite/libgomp.fortran/omp_cond1.f: Same.
10518 * testsuite/libgomp.fortran/omp_cond3.F90: Same.
10519 * testsuite/libgomp.fortran/pr66199-1.f90: Same.
10520 * testsuite/libgomp.fortran/pr66199-2.f90: Same.
10521 * testsuite/libgomp.fortran/recursion1.f90: Same.
10522 * testsuite/libgomp.fortran/target2.f90: Same.
10523 * testsuite/libgomp.fortran/target5.f90: Same.
10524 * testsuite/libgomp.fortran/task3.f90: Same.
10525
10526 2017-09-28 Tom de Vries <tom@codesourcery.com>
10527
10528 * testsuite/libgomp.oacc-c-c++-common/loop-g-1.c (main): Remove
10529 vector_length(32) clause from acc parallel directive.
10530 * testsuite/libgomp.oacc-c-c++-common/loop-g-2.c (main): Same.
10531
10532 2017-09-27 Tom de Vries <tom@codesourcery.com>
10533
10534 * testsuite/libgomp.oacc-c-c++-common/parallel-reduction.c (main):
10535 Remove acc_device_nvidia references.
10536
10537 2017-09-16 Tom de Vries <tom@codesourcery.com>
10538
10539 PR c/81875
10540 * testsuite/libgomp.c-c++-common/pr81875.c: New test.
10541
10542 2017-09-14 Tom de Vries <tom@codesourcery.com>
10543
10544 * testsuite/libgomp.c++/cancel-taskgroup-1.C: Remove.
10545 * testsuite/libgomp.c/cancel-taskgroup-1.c: Move to ...
10546 * testsuite/libgomp.c-c++-common/cancel-taskgroup-1.c: ... here.
10547 * testsuite/libgomp.c/c.exp: Include test-cases from
10548 libgomp.c-c++-common.
10549 * testsuite/libgomp.c++/c++.exp: Same. Force c++-mode compilation of .c
10550 files.
10551
10552 2017-09-14 Jakub Jelinek <jakub@redhat.com>
10553
10554 PR c++/81314
10555 * testsuite/libgomp.c++/pr81314.C: New test.
10556
10557 2017-09-03 Gerald Pfeifer <gerald@pfeifer.com>
10558
10559 * libgomp.texi (Top): www.openacc.org now uses https.
10560 (Enabling OpenACC): Ditto.
10561 (acc_get_num_devices): Ditto.
10562 (acc_set_device_type): Ditto.
10563 (acc_get_device_type): Ditto.
10564 (acc_set_device_num): Ditto.
10565 (acc_get_device_num): Ditto.
10566 (acc_async_test): Ditto.
10567 (acc_async_test_all): Ditto.
10568 (acc_wait): Ditto.
10569 (acc_wait_all): Ditto.
10570 (acc_wait_all_async): Ditto.
10571 (acc_wait_async): Ditto.
10572 (acc_init): Ditto.
10573 (acc_shutdown): Ditto.
10574 (acc_on_device): Ditto.
10575 (acc_malloc): Ditto.
10576 (acc_free): Ditto.
10577 (acc_copyin): Ditto.
10578 (acc_present_or_copyin): Ditto.
10579 (acc_create): Ditto.
10580 (acc_present_or_create): Ditto.
10581 (acc_copyout): Ditto.
10582 (acc_delete): Ditto.
10583 (acc_update_device): Ditto.
10584 (acc_update_self): Ditto.
10585 (acc_map_data): Ditto.
10586 (acc_unmap_data): Ditto.
10587 (acc_deviceptr): Ditto.
10588 (acc_hostptr): Ditto.
10589 (acc_is_present): Ditto.
10590 (acc_memcpy_to_device): Ditto.
10591 (acc_memcpy_from_device): Ditto.
10592 (acc_get_current_cuda_device): Ditto.
10593 (acc_get_current_cuda_context): Ditto.
10594 (acc_get_cuda_stream): Ditto.
10595 (acc_set_cuda_stream): Ditto.
10596 (ACC_DEVICE_TYPE): Ditto.
10597 (ACC_DEVICE_NUM): Ditto.
10598 (OpenACC Library Interoperability): Ditto.
10599
10600 2017-08-09 Jakub Jelinek <jakub@redhat.com>
10601
10602 PR c/81687
10603 * testsuite/libgomp.c/pr81687-1.c: New test.
10604 * testsuite/libgomp.c/pr81687-2.c: New test.
10605
10606 2017-08-07 Jakub Jelinek <jakub@redhat.com>
10607
10608 PR c/69389
10609 * testsuite/libgomp.c/pr69389.c: New test.
10610 * testsuite/libgomp.c++/pr69389.C: New test.
10611
10612 2017-08-07 Tom de Vries <tom@codesourcery.com>
10613
10614 PR middle-end/78266
10615 * testsuite/libgomp.oacc-c-c++-common/vprop-2.c: New test.
10616 * testsuite/libgomp.oacc-c-c++-common/vprop.c: Remove xfail.
10617
10618 2017-07-27 Jakub Jelinek <jakub@redhat.com>
10619
10620 PR c/45784
10621 * testsuite/libgomp.c/pr45784.c: New test.
10622 * testsuite/libgomp.c++/pr45784.C: New test.
10623
10624 2017-07-19 Tom de Vries <tom@codesourcery.com>
10625
10626 * testsuite/libgomp.oacc-c/vec.c: New test.
10627
10628 2017-07-03 Tom de Vries <tom@codesourcery.com>
10629
10630 * plugin/plugin-hsa.c: Fix secure_getenv.h include.
10631
10632 2017-06-27 Tom de Vries <tom@codesourcery.com>
10633
10634 * plugin/plugin-nvptx.c (notify_var): New function.
10635 (nvptx_exec): Use notify_var for GOMP_OPENACC_DIM.
10636
10637 2017-06-27 Tom de Vries <tom@codesourcery.com>
10638
10639 * env.c (parse_unsigned_long_1): Factor out of ...
10640 (parse_unsigned_long): ... here.
10641 (parse_int_1): Factor out of ...
10642 (parse_int): ... here.
10643 (parse_int_secure): New function.
10644 (initialize_env): Use parse_int_secure for GOMP_DEBUG.
10645 * secure_getenv.h: Factor out of ...
10646 * plugin/plugin-hsa.c: ... here.
10647 * testsuite/libgomp.oacc-c-c++-common/gomp-debug-env.c: New test.
10648
10649 2017-06-21 Jakub Jelinek <jakub@redhat.com>
10650
10651 PR c++/81130
10652 * testsuite/libgomp.c++/pr81130.C: New test.
10653
10654 2017-06-17 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10655
10656 * testsuite/libgomp.fortran/strassen.f90: Remove dg-skip-if
10657 default args.
10658 * testsuite/libgomp.oacc-c-c++-common/vprop.c: Remove
10659 dg-xfail-run-if default args.
10660
10661 2017-06-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
10662
10663 * testsuite/libgomp.c/pr39591-2.c: Fix test case.
10664 * testsuite/libgomp.c/pr39591-3.c: Likewise.
10665
10666 2017-05-30 Jakub Jelinek <jakub@redhat.com>
10667
10668 PR libgomp/80822
10669 * config/linux/affinity.c (gomp_affinity_init_level_1): New function.
10670 (gomp_affinity_init_level): Use it. Always analyze the core and thread
10671 sibling lists, depending on level just pick up what CPUs to put
10672 together into a place vs. whether add multiple ordered places.
10673
10674 2017-05-24 Thomas Schwinge <thomas@codesourcery.com>
10675
10676 * openacc.h (acc_async_wait, acc_async_wait_all): New prototypes.
10677 * libgomp.map (OACC_2.0.1): Add these.
10678 * oacc-async.c (acc_async_wait, acc_async_wait_all): New aliases
10679 for "acc_wait", and "acc_wait_all", respectively.
10680 * openacc.f90 (acc_async_wait, acc_async_wait_all): New interfaces
10681 for "acc_wait", and "acc_wait_all", respectively.
10682 * openacc_lib.h (acc_async_wait, acc_async_wait_all): Likewise.
10683 * libgomp.texi (acc_wait, acc_wait_all): Update.
10684 * testsuite/libgomp.oacc-c-c++-common/par-reduction-2.c: Update.
10685 * testsuite/libgomp.oacc-fortran/par-reduction-2-1.f: New file.
10686 * testsuite/libgomp.oacc-fortran/par-reduction-2-2.f: Likewise.
10687
10688 * openacc_lib.h (acc_pcopyin, acc_pcreate): Route to
10689 acc_present_or_copyin and acc_present_or_create procedures,
10690 respectively.
10691 * testsuite/libgomp.oacc-fortran/lib-32-1.f: Exercise these, and
10692 generally different variants of OpenACC Runtime Library functions.
10693 * testsuite/libgomp.oacc-fortran/lib-32-2.f: Likewise.
10694
10695 * testsuite/libgomp.oacc-fortran/lib-32-1.f: New file.
10696 * testsuite/libgomp.oacc-fortran/lib-32-2.f: Likewise.
10697
10698 * openacc.h (acc_pcopyin, acc_pcreate): Provide prototypes instead
10699 of preprocessor definitions.
10700 * libgomp.h (strong_alias): Guard by "#ifdef
10701 HAVE_ATTRIBUTE_ALIAS".
10702 * oacc-mem.c: Provide "acc_pcreate" as alias for
10703 "acc_present_or_create", and "acc_pcopyin" as alias for
10704 "acc_present_or_copyin".
10705 * libgomp.map: New version "OACC_2.0.1".
10706 (OACC_2.0.1): Add "acc_pcopyin", and "acc_pcreate".
10707 * testsuite/libgomp.oacc-c-c++-common/lib-38.c: Remove, merging
10708 its content into...
10709 * testsuite/libgomp.oacc-c-c++-common/lib-32.c: ... this file.
10710 Extend testing.
10711
10712 * plugin/plugin-nvptx.c (nvptx_get_num_devices): Debugging output
10713 when disabling nvptx offloading.
10714
10715 2017-05-23 Thomas Schwinge <thomas@codesourcery.com>
10716
10717 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-2.c: Update.
10718 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Likewise.
10719 * testsuite/libgomp.oacc-fortran/kernels-loop-2.f95: Likewise.
10720
10721 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Rewrite.
10722 * testsuite/lib/libgomp.exp
10723 (check_effective_target_openacc_nvidia_accel_configured): New
10724 proc.
10725 * testsuite/libgomp.oacc-c++/c++.exp (check_effective_target_c)
10726 (check_effective_target_c++): New procs.
10727 * testsuite/libgomp.oacc-c/c.exp (check_effective_target_c)
10728 (check_effective_target_c++): Likewise.
10729
10730 2017-05-22 Jakub Jelinek <jakub@redhat.com>
10731
10732 PR middle-end/80809
10733 * testsuite/libgomp.c/pr80809-2.c: New test.
10734 * testsuite/libgomp.c/pr80809-3.c: New test.
10735
10736 PR middle-end/80809
10737 * testsuite/libgomp.c/pr80809-1.c: New test.
10738
10739 PR middle-end/80853
10740 * testsuite/libgomp.c/pr80853.c: New test.
10741
10742 2017-05-19 Thomas Schwinge <thomas@codesourcery.com>
10743
10744 * testsuite/libgomp.oacc-c++/template-reduction.C: Update.
10745 * testsuite/libgomp.oacc-c-c++-common/nested-2.c: Update.
10746 * testsuite/libgomp.oacc-fortran/data-4-2.f90: Likewise.
10747 * testsuite/libgomp.oacc-fortran/default-1.f90: Likewise.
10748 * testsuite/libgomp.oacc-fortran/non-scalar-data.f90: Likewise.
10749
10750 * plugin/plugin-hsa.c (DLSYM_FN, init_hsa_runtime_functions):
10751 Debug output for failure.
10752
10753 2017-05-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10754
10755 * testsuite/lib/libgomp.exp: Load scanlang.exp.
10756
10757 2017-04-27 Jakub Jelinek <jakub@redhat.com>
10758
10759 PR bootstrap/80531
10760 * configure.tgt (*-*-aix*): Add -frandom-seed=$@ to XCFLAGS to avoid
10761 bootstrap compare failures.
10762
10763 2017-04-20 Alexander Monakov <amonakov@ispras.ru>
10764
10765 * testsuite/libgomp.c/target-36.c: New testcase.
10766
10767 2017-04-13 Jakub Jelinek <jakub@redhat.com>
10768
10769 * plugin/plugin-nvptx.c (cuda_lib_inited): Use signed char type
10770 instead of char.
10771
10772 2017-04-11 Jakub Jelinek <jakub@redhat.com>
10773
10774 PR libgomp/80394
10775 * testsuite/libgomp.c/pr80394.c: New test.
10776
10777 2017-04-04 Jakub Jelinek <jakub@redhat.com>
10778
10779 PR libgomp/79876
10780 * config/posix/thread-stacksize.h: New file.
10781 * config/darwin/thread-stacksize.h: New file.
10782 * config/nvptx/thread-stacksize.h: New file.
10783 * env.c: Include thread-stacksize.h.
10784 (initialize_env): Initialize stacksize to GOMP_DEFAULT_STACKSIZE
10785 instead of 0. Call pthread_attr_setstacksize even if
10786 GOMP_DEFAULT_STACKSIZE is non-zero.
10787
10788 2017-03-30 Jakub Jelinek <jakub@redhat.com>
10789
10790 * env.c (initialize_env): Initialize stacksize to 0.
10791
10792 2017-03-22 Cesar Philippidis <cesar@codesourcery.com>
10793
10794 PR c++/80029
10795 * testsuite/libgomp.oacc-c-c++-common/declare-vla.c: New test.
10796
10797 2017-03-08 Jakub Jelinek <jakub@redhat.com>
10798
10799 PR c/79940
10800 * testsuite/libgomp.c/pr79940.c: New test.
10801
10802 2017-02-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10803
10804 * testsuite/libgomp.c/pr48591.c: Enable on all __float128
10805 targets.
10806 Add __float128 options.
10807
10808 2017-02-11 John David Anglin <danglin@gcc.gnu.org>
10809
10810 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: Remove
10811 hppa*-*-* dg-skip-if directive.
10812
10813 2017-02-09 Jakub Jelinek <jakub@redhat.com>
10814
10815 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: Move
10816 dg-skip-if directive into a comment.
10817
10818 2017-02-09 Nathan Sidwell <nathan@codesourcery.com>
10819 Chung-Lin Tang <cltang@codesourcery.com>
10820
10821 * testsuite/libgomp.oacc-c-c++-common/tile-1.c: New.
10822 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Adjust and
10823 add additional case.
10824 * testsuite/libgomp.oacc-c-c++-common/vprop.c: XFAIL under
10825 "openacc_nvidia_accel_selected".
10826 * libgomp.oacc-fortran/nested-function-1.f90 (test2):
10827 Add num_workers(8) clause.
10828
10829 2017-02-08 John David Anglin <danglin@gcc.gnu.org>
10830
10831 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: Skip on
10832 hppa*-*-*.
10833 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-dbl.c: Don't
10834 include complex.h on hppa*-*-hpux*.
10835 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-flt.c: Likewise.
10836
10837 2017-02-02 Thomas Schwinge <thomas@codesourcery.com>
10838
10839 * plugin/plugin-nvptx.c (nvptx_exec): Make it static.
10840
10841 * libgomp-plugin.h (GOMP_OFFLOAD_openacc_parallel): Rename to
10842 GOMP_OFFLOAD_openacc_exec. Adjust all users.
10843 (GOMP_OFFLOAD_openacc_get_current_cuda_device): Rename to
10844 GOMP_OFFLOAD_openacc_cuda_get_current_device. Adjust all users.
10845 (GOMP_OFFLOAD_openacc_get_current_cuda_context): Rename to
10846 GOMP_OFFLOAD_openacc_cuda_get_current_context. Adjust all users.
10847 (GOMP_OFFLOAD_openacc_get_cuda_stream): Rename to
10848 GOMP_OFFLOAD_openacc_cuda_get_stream. Adjust all users.
10849 (GOMP_OFFLOAD_openacc_set_cuda_stream): Rename to
10850 GOMP_OFFLOAD_openacc_cuda_set_stream. Adjust all users.
10851
10852 2017-01-31 Thomas Schwinge <thomas@codesourcery.com>
10853
10854 * libgomp-plugin.h: #include <stdbool.h>.
10855 (GOMP_OFFLOAD_get_name, GOMP_OFFLOAD_get_caps)
10856 (GOMP_OFFLOAD_get_type, GOMP_OFFLOAD_get_num_devices)
10857 (GOMP_OFFLOAD_init_device, GOMP_OFFLOAD_fini_device)
10858 (GOMP_OFFLOAD_version, GOMP_OFFLOAD_load_image)
10859 (GOMP_OFFLOAD_unload_image, GOMP_OFFLOAD_alloc, GOMP_OFFLOAD_free)
10860 (GOMP_OFFLOAD_dev2host, GOMP_OFFLOAD_host2dev)
10861 (GOMP_OFFLOAD_dev2dev, GOMP_OFFLOAD_can_run, GOMP_OFFLOAD_run)
10862 (GOMP_OFFLOAD_async_run, GOMP_OFFLOAD_openacc_parallel)
10863 (GOMP_OFFLOAD_openacc_register_async_cleanup)
10864 (GOMP_OFFLOAD_openacc_async_test)
10865 (GOMP_OFFLOAD_openacc_async_test_all)
10866 (GOMP_OFFLOAD_openacc_async_wait)
10867 (GOMP_OFFLOAD_openacc_async_wait_async)
10868 (GOMP_OFFLOAD_openacc_async_wait_all)
10869 (GOMP_OFFLOAD_openacc_async_wait_all_async)
10870 (GOMP_OFFLOAD_openacc_async_set_async)
10871 (GOMP_OFFLOAD_openacc_create_thread_data)
10872 (GOMP_OFFLOAD_openacc_destroy_thread_data)
10873 (GOMP_OFFLOAD_openacc_get_current_cuda_device)
10874 (GOMP_OFFLOAD_openacc_get_current_cuda_context)
10875 (GOMP_OFFLOAD_openacc_get_cuda_stream)
10876 (GOMP_OFFLOAD_openacc_set_cuda_stream): New prototypes.
10877 * libgomp.h (struct acc_dispatch_t, struct gomp_device_descr): Use
10878 these.
10879 * plugin/plugin-hsa.c (GOMP_OFFLOAD_load_image)
10880 (GOMP_OFFLOAD_unload_image): Fix argument types.
10881
10882 2017-01-26 Jakub Jelinek <jakub@redhat.com>
10883
10884 * testsuite/lib/libgomp.exp
10885 (check_effective_target_hsa_offloading_selected_nocache): Fix up
10886 check_compile invocation. Fix up removal of executable. Drop
10887 bogus "2>&1" argument.
10888
10889 * testsuite/libgomp.fortran/declare-simd-4.f90: Add cleanup-modules
10890 directive.
10891
10892 2017-01-24 Pekka Jääskeläinen <pekka@parmance.com>
10893 Martin Jambor <mjambor@suse.cz>
10894
10895 * plugin/hsa.h: Moved to top level include.
10896 * plugin/plugin-hsa.c: Chanfgd include of hsa.h accordingly.
10897
10898 2017-01-21 Jakub Jelinek <jakub@redhat.com>
10899
10900 PR other/79046
10901 * testsuite/Makefile.am (gcc_version): Use @get_gcc_base_ver@ instead
10902 of cat to get version from BASE-VER file.
10903 * testsuite/Makefile.in: Regenerated.
10904
10905 2017-01-19 Jakub Jelinek <jakub@redhat.com>
10906
10907 * plugin/cuda/cuda.h (CUdeviceptr): Typedef to unsigned long long even
10908 for _WIN64.
10909
10910 2017-01-17 Jakub Jelinek <jakub@redhat.com>
10911
10912 * plugin/hsa.h: Add GCC runtime library exception.
10913 * plugin/hsa_ext_finalize.h: Likewise.
10914
10915 * plugin/configfrag.ac: For --without-cuda-driver don't initialize
10916 CUDA_DRIVER_INCLUDE nor CUDA_DRIVER_LIB. If both
10917 CUDA_DRIVER_INCLUDE and CUDA_DRIVER_LIB are empty and linking small
10918 cuda program fails, define PLUGIN_NVPTX_DYNAMIC to 1 and use
10919 plugin/include/cuda as include dir and -ldl instead of -lcuda as
10920 library to link ptx plugin against.
10921 * plugin/plugin-nvptx.c: Include dlfcn.h if PLUGIN_NVPTX_DYNAMIC.
10922 (CUDA_CALLS): Define.
10923 (cuda_lib, cuda_lib_inited): New variables.
10924 (init_cuda_lib): New function.
10925 (CUDA_CALL_PREFIX): Define.
10926 (CUDA_CALL_ERET, CUDA_CALL_ASSERT): Use CUDA_CALL_PREFIX.
10927 (CUDA_CALL): Use FN instead of (FN).
10928 (CUDA_CALL_NOCHECK): Define.
10929 (cuda_error, fini_streams_for_device, select_stream_for_async,
10930 nvptx_attach_host_thread_to_device, nvptx_open_device, link_ptx,
10931 event_gc, nvptx_exec, nvptx_async_test, nvptx_async_test_all,
10932 nvptx_wait_all, nvptx_set_clocktick, GOMP_OFFLOAD_unload_image,
10933 nvptx_stacks_alloc, nvptx_stacks_free, GOMP_OFFLOAD_run): Use
10934 CUDA_CALL_NOCHECK.
10935 (nvptx_init): Call init_cuda_lib, if it fails, return false. Use
10936 CUDA_CALL_NOCHECK.
10937 (nvptx_get_num_devices): Call init_cuda_lib, if it fails, return 0.
10938 Use CUDA_CALL_NOCHECK.
10939 * plugin/cuda/cuda.h: New file.
10940 * config.h.in: Regenerated.
10941 * configure: Regenerated.
10942
10943 PR other/79046
10944 * configure.ac: Add GCC_BASE_VER.
10945 * Makefile.am (gcc_version): Use @get_gcc_base_ver@ instead of cat to
10946 get version from BASE-VER file.
10947 * testsuite/Makefile.in: Regenerated.
10948 * configure: Regenerated.
10949 * Makefile.in: Regenerated.
10950
10951 2017-01-09 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
10952
10953 PR libgomp/60670
10954 * Makefile.am: Make fincludedir multilib-aware.
10955 * Makefile.in: Regenerate.
10956
10957 2017-01-01 Jakub Jelinek <jakub@redhat.com>
10958
10959 Update copyright years.
10960
10961 * libgomp.texi: Bump @copying's copyright year.
10962
10963 2016-12-02 Sebastian Huber <sebastian.huber@embedded-brains.de>
10964
10965 * libgomp/config/rtems/pool.h (gomp_thread_pool_reservoir): Use
10966 pthread_spinlock_t instead of gomp_mutex_t lock.
10967 (gomp_get_thread_pool): Likewise.
10968 (gomp_release_thread_pool): Likewise.
10969 * libgomp/config/rtems/proc.c (allocate_thread_pool_reservoir):
10970 Likewise.
10971
10972 2016-12-02 Sebastian Huber <sebastian.huber@embedded-brains.de>
10973
10974 * config/rtems/pool.h (gomp_get_thread_pool): Return proper
10975 thread pool in case nthreads == 1.
10976
10977 2016-11-30 Alexander Monakov <amonakov@ispras.ru>
10978
10979 * config/nvptx/env.c: Delete.
10980 * icv.c: Move definitions of ICV variables back ...
10981 * env.c: ...here. Do not compile environment-related functionality if
10982 LIBGOMP_OFFLOADED_ONLY is set.
10983
10984 2016-11-30 Alexander Monakov <amonakov@ispras.ru>
10985
10986 * configure.ac [nvptx*-*-*] (libgomp_offloaded_only): Set and use it...
10987 (LIBGOMP_OFFLOADED_ONLY): ...here; new define.
10988 * configure: Regenerate.
10989 * config.h.in: Likewise.
10990
10991 2016-11-30 Alexander Monakov <amonakov@ispras.ru>
10992
10993 * Makefile.in: Regenerate with automake-1.11.6.
10994 * aclocal.m4: Likewise.
10995 * configure: Likewise.
10996 * testsuite/Makefile.in: Likewise.
10997
10998 2016-11-28 Alexander Monakov <amonakov@ispras.ru>
10999
11000 * config/nvptx/critical.c: Delete to use generic implementation.
11001
11002 2016-11-28 Jonas Hahnfeld <Hahnfeld@itc.rwth-aachen.de>
11003
11004 * config/linux/affinity.c [!HAVE_PTHREAD_AFFINITY_NP]: Include
11005 ../../affinity.c as fallback.
11006 * config/nvptx/affinity.c: Delete to use fallback implementation.
11007
11008 2016-11-23 Alexander Monakov <amonakov@ispras.ru>
11009 Jakub Jelinek <jakub@redhat.com>
11010 Dmitry Melnik <dm@ispras.ru>
11011
11012 * Makefile.am (libgomp_la_SOURCES): Add atomic.c, icv.c, icv-device.c.
11013 * Makefile.in. Regenerate.
11014 * configure.ac [nvptx*-*-*] (libgomp_use_pthreads): Set and use it...
11015 (LIBGOMP_USE_PTHREADS): ...here; new define.
11016 * configure: Regenerate.
11017 * config.h.in: Likewise.
11018 * config/posix/affinity.c: Move to...
11019 * affinity.c: ...here (new file). Guard use of Pthreads-specific
11020 interface by LIBGOMP_USE_PTHREADS.
11021 * critical.c: Split out GOMP_atomic_{start,end} into...
11022 * atomic.c: ...here (new file).
11023 * env.c: Split out ICV definitions into...
11024 * icv.c: ...here (new file) and...
11025 * icv-device.c: ...here. New file.
11026 * config/linux/lock.c (gomp_init_lock_30): Move to generic lock.c.
11027 (gomp_destroy_lock_30): Ditto.
11028 (gomp_set_lock_30): Ditto.
11029 (gomp_unset_lock_30): Ditto.
11030 (gomp_test_lock_30): Ditto.
11031 (gomp_init_nest_lock_30): Ditto.
11032 (gomp_destroy_nest_lock_30): Ditto.
11033 (gomp_set_nest_lock_30): Ditto.
11034 (gomp_unset_nest_lock_30): Ditto.
11035 (gomp_test_nest_lock_30): Ditto.
11036 * lock.c: New.
11037 * config/nvptx/lock.c: New.
11038 * config/nvptx/bar.c: New.
11039 * config/nvptx/bar.h: New.
11040 * config/nvptx/doacross.h: New.
11041 * config/nvptx/error.c: New.
11042 * config/nvptx/icv-device.c: New.
11043 * config/nvptx/mutex.h: New.
11044 * config/nvptx/pool.h: New.
11045 * config/nvptx/proc.c: New.
11046 * config/nvptx/ptrlock.h: New.
11047 * config/nvptx/sem.h: New.
11048 * config/nvptx/simple-bar.h: New.
11049 * config/nvptx/target.c: New.
11050 * config/nvptx/task.c: New.
11051 * config/nvptx/team.c: New.
11052 * config/nvptx/time.c: New.
11053 * config/posix/simple-bar.h: New.
11054 * libgomp.h: Guard pthread.h inclusion. Include simple-bar.h.
11055 (gomp_num_teams_var): Declare.
11056 (struct gomp_thread_pool): Change threads_dock member to
11057 gomp_simple_barrier_t.
11058 [__nvptx__] (gomp_thread): New implementation.
11059 (gomp_thread_attr): Guard by LIBGOMP_USE_PTHREADS.
11060 (gomp_thread_destructor): Ditto.
11061 (gomp_init_thread_affinity): Ditto.
11062 * team.c: Guard uses of Pthreads-specific interfaces by
11063 LIBGOMP_USE_PTHREADS. Adjust all uses of threads_dock.
11064 (gomp_free_thread) [__nvptx__]: Do not call 'free'.
11065 * config/nvptx/alloc.c: Delete.
11066 * config/nvptx/barrier.c: Ditto.
11067 * config/nvptx/fortran.c: Ditto.
11068 * config/nvptx/iter.c: Ditto.
11069 * config/nvptx/iter_ull.c: Ditto.
11070 * config/nvptx/loop.c: Ditto.
11071 * config/nvptx/loop_ull.c: Ditto.
11072 * config/nvptx/ordered.c: Ditto.
11073 * config/nvptx/parallel.c: Ditto.
11074 * config/nvptx/priority_queue.c: Ditto.
11075 * config/nvptx/sections.c: Ditto.
11076 * config/nvptx/single.c: Ditto.
11077 * config/nvptx/splay-tree.c: Ditto.
11078 * config/nvptx/work.c: Ditto.
11079 * testsuite/libgomp.fortran/fortran.exp (lang_link_flags): Pass
11080 -foffload=-lgfortran in addition to -lgfortran.
11081 * testsuite/libgomp.oacc-fortran/fortran.exp (lang_link_flags): Ditto.
11082 * plugin/plugin-nvptx.c: Include <limits.h>.
11083 (struct targ_fn_descriptor): Add new fields.
11084 (struct ptx_device): Ditto. Set them...
11085 (nvptx_open_device): ...here.
11086 (nvptx_adjust_launch_bounds): New.
11087 (nvptx_host2dev): Allow NULL 'nvthd'.
11088 (nvptx_dev2host): Ditto.
11089 (GOMP_OFFLOAD_get_caps): Add GOMP_OFFLOAD_CAP_OPENMP_400.
11090 (link_ptx): Adjust log sizes.
11091 (nvptx_host2dev): Allow NULL 'nvthd'.
11092 (nvptx_dev2host): Ditto.
11093 (nvptx_set_clocktick): New. Use it...
11094 (GOMP_OFFLOAD_load_image): ...here. Set new targ_fn_descriptor
11095 fields.
11096 (GOMP_OFFLOAD_dev2dev): New.
11097 (nvptx_adjust_launch_bounds): New.
11098 (nvptx_stacks_size): New.
11099 (nvptx_stacks_alloc): New.
11100 (nvptx_stacks_free): New.
11101 (GOMP_OFFLOAD_run): New.
11102 (GOMP_OFFLOAD_async_run): New (stub).
11103
11104 2016-11-23 Martin Jambor <mjambor@suse.cz>
11105
11106 * testsuite/libgomp.hsa.c/bits-insns.c: New test.
11107 * testsuite/libgomp.hsa.c/tiling-1.c: Likewise.
11108 * testsuite/libgomp.hsa.c/tiling-2.c: Likewise.
11109
11110 2016-11-23 Martin Liska <mliska@suse.cz>
11111 Martin Jambor <mjambor@suse.cz>
11112
11113 * plugin/hsa.h: New file.
11114 * plugin/hsa_ext_finalize.h: New file.
11115 * plugin/configfrag.ac: Remove hsa-kmt-lib test. Added checks for
11116 header file unistd.h, and functions secure_getenv, __secure_getenv,
11117 getuid, geteuid, getgid and getegid.
11118 * plugin/Makefrag.am (libgomp_plugin_hsa_la_CPPFLAGS): Added
11119 -D_GNU_SOURCE.
11120 * plugin/plugin-hsa.c: Include config.h, inttypes.h and stdbool.h.
11121 Handle various cases of secure_getenv presence, add an implementation
11122 when we can test effective UID and GID.
11123 (struct hsa_runtime_fn_info): New structure.
11124 (hsa_runtime_fn_info hsa_fns): New variable.
11125 (hsa_runtime_lib): Likewise.
11126 (support_cpu_devices): Likewise.
11127 (init_enviroment_variables): Load newly introduced ENV
11128 variables.
11129 (hsa_warn): Call hsa run-time functions via hsa_fns structure.
11130 (hsa_fatal): Likewise.
11131 (DLSYM_FN): New macro.
11132 (init_hsa_runtime_functions): New function.
11133 (suitable_hsa_agent_p): Call hsa run-time functions via hsa_fns
11134 structure. Depending on environment, also allow CPU devices.
11135 (init_hsa_context): Call hsa run-time functions via hsa_fns structure.
11136 (get_kernarg_memory_region): Likewise.
11137 (GOMP_OFFLOAD_init_device): Likewise.
11138 (destroy_hsa_program): Likewise.
11139 (init_basic_kernel_info): New function.
11140 (GOMP_OFFLOAD_load_image): Use it.
11141 (create_and_finalize_hsa_program): Call hsa run-time functions via
11142 hsa_fns structure.
11143 (create_single_kernel_dispatch): Likewise.
11144 (release_kernel_dispatch): Likewise.
11145 (init_single_kernel): Likewise.
11146 (parse_target_attributes): Allow up multiple HSA grid dimensions.
11147 (get_group_size): New function.
11148 (run_kernel): Likewise.
11149 (GOMP_OFFLOAD_run): Outline most functionality to run_kernel.
11150 (GOMP_OFFLOAD_fini_device): Call hsa run-time functions via hsa_fns
11151 structure.
11152 * testsuite/lib/libgomp.exp: Remove hsa_kmt_lib support.
11153 * testsuite/libgomp-test-support.exp.in: Likewise.
11154 * Makefile.in: Regenerated.
11155 * aclocal.m4: Likewise.
11156 * config.h.in: Likewise.
11157 * configure: Likewise.
11158 * testsuite/Makefile.in: Likewise.
11159
11160 2016-11-15 Martin Jambor <mjambor@suse.cz>
11161 Alexander Monakov <amonakov@ispras.ru>
11162
11163 * testsuite/libgomp.fortran/examples-4/device-1.f90 (e_57_1): Add
11164 mapping clauses to target constructs.
11165 * testsuite/libgomp.fortran/examples-4/device-3.f90 (e_57_3): Ditto.
11166
11167 2016-11-15 Matthias Klose <doko@ubuntu.com>
11168
11169 * configure: Regenerate.
11170
11171 2016-11-10 Jakub Jelinek <jakub@redhat.com>
11172
11173 * omp_lib.f90.in (openmp_version): Change to 201511 from 201307.
11174 * omp_lib.h.in (openmp_version): Likewise.
11175 * testsuite/libgomp.fortran/openmp_version-1.f: Expect 201511 instead
11176 of 201307.
11177 * testsuite/libgomp.fortran/openmp_version-2.f90: Likewise.
11178
11179 * testsuite/libgomp.fortran/examples-4/declare_target-1.f90
11180 (fib_wrapper): Add map(from: x) clause.
11181 * testsuite/libgomp.fortran/examples-4/declare_target-2.f90
11182 (e_53_2): Likewise.
11183 * testsuite/libgomp.fortran/examples-4/declare_target-4.f90
11184 (accum): Add map(tmp) clause.
11185 * testsuite/libgomp.fortran/examples-4/declare_target-5.f90
11186 (accum): Add map(tofrom: tmp) clause.
11187 * testsuite/libgomp.fortran/examples-4/target_data-3.f90
11188 (gramSchmidt): Likewise.
11189 * testsuite/libgomp.fortran/examples-4/teams-2.f90 (dotprod): Add
11190 map(tofrom: sum) clause.
11191 * testsuite/libgomp.fortran/nestedfn5.f90 (foo): Add twice
11192 map (alloc: a, l) clause. Add defaultmap(tofrom: scalar) clause.
11193 * testsuite/libgomp.fortran/pr66199-2.f90: Adjust for linear clause
11194 only allowed on the loop iterator.
11195 * testsuite/libgomp.fortran/target4.f90 (foo): Add map(t) clause.
11196 * testsuite/libgomp.fortran/taskloop2.f90: New test.
11197 * testsuite/libgomp.fortran/taskloop4.f90: New test.
11198 * testsuite/libgomp.fortran/doacross1.f90: New test.
11199 * testsuite/libgomp.fortran/doacross3.f90: New test.
11200 * testsuite/libgomp.fortran/taskloop1.f90: New test.
11201 * testsuite/libgomp.fortran/taskloop3.f90: New test.
11202 * testsuite/libgomp.fortran/doacross2.f90: New test.
11203 * testsuite/libgomp.c/doacross-1.c (main): Add missing
11204 #pragma omp atomic read.
11205 * testsuite/libgomp.c/doacross-2.c (main): Likewise.
11206 * testsuite/libgomp.c/doacross-3.c (main): Likewise.
11207
11208 2016-11-02 Cesar Philippidis <cesar@codesourcery.com>
11209 Nathan Sidwell <nathan@acm.org>
11210
11211 * plugin/plugin-nvptx.c (nvptx_exec): Interrogate board attributes
11212 to determine default geometry.
11213 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Set gang
11214 dimension.
11215
11216 2016-11-01 Jakub Jelinek <jakub@redhat.com>
11217
11218 * hashtab.h: Use standard GPLv3 with runtime exception
11219 boilerplate.
11220
11221 2016-10-27 Aldy Hernandez <aldyh@redhat.com>
11222
11223 * oacc-init.c (goacc_new_thread): Use sizeof of the appropriate
11224 size when allocating new thread.
11225
11226 2016-09-14 Marek Polacek <polacek@redhat.com>
11227
11228 * testsuite/libgomp.c++/atomic-3.C: Use -Wno-deprecated.
11229
11230 2016-08-19 Jakub Jelinek <jakub@redhat.com>
11231
11232 PR fortran/71014
11233 * testsuite/libgomp.fortran/pr71014.f90: New test.
11234
11235 2016-08-18 Chung-Lin Tang <cltang@codesourcery.com>
11236
11237 PR middle-end/70895
11238 * testsuite/libgomp.oacc-fortran/reduction-7.f90: Add explicit
11239 firstprivate clauses.
11240 * testsuite/libgomp.oacc-fortran/reduction-6.f90: Remove explicit
11241 copy clauses.
11242 * testsuite/libgomp.oacc-c-c++-common/reduction-7.c: Likewise.
11243 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-flt.c: Likewise.
11244 * testsuite/libgomp.oacc-c-c++-common/reduction-flt.c: Likewise.
11245 * testsuite/libgomp.oacc-c-c++-common/collapse-2.c: Likewise.
11246 * testsuite/libgomp.oacc-c-c++-common/loop-red-wv-1.c: Likewise.
11247 * testsuite/libgomp.oacc-c-c++-common/collapse-4.c: Likewise.
11248 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c: Likewise.
11249 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-dbl.c: Likewise.
11250 * testsuite/libgomp.oacc-c-c++-common/loop-red-g-1.c: Likewise.
11251 * testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c: Likewise.
11252 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c: Likewise.
11253 * testsuite/libgomp.oacc-c-c++-common/reduction-dbl.c: Likewise.
11254
11255 2016-08-14 Chung-Lin Tang <cltang@codesourcery.com>
11256
11257 PR fortran/70598
11258 * testsuite/libgomp.oacc-fortran/host_data-1.f90: New test.
11259
11260 2016-08-08 Jakub Jelinek <jakub@redhat.com>
11261
11262 PR c++/58706
11263 * testsuite/libgomp.c++/pr58706.C: New test.
11264
11265 2016-08-04 Thomas Schwinge <thomas@codesourcery.com>
11266
11267 * testsuite/libgomp.oacc-c++/routine-1-auto.C: New file.
11268 * testsuite/libgomp.oacc-c++/routine-1-template-auto.C: Likewise.
11269 * testsuite/libgomp.oacc-c++/routine-1-template-trailing-return-type.C:
11270 Likewise.
11271 * testsuite/libgomp.oacc-c++/routine-1-template.C: Likewise.
11272 * testsuite/libgomp.oacc-c++/routine-1-trailing-return-type.C:
11273 Likewise.
11274 * testsuite/libgomp.oacc-c-c++-common/routine-1.c: Adjust.
11275
11276 * testsuite/libgomp.oacc-c-c++-common/crash-1.c: Make it a "link"
11277 test, and don't hardcode -O0.
11278
11279 2016-08-03 Nathan Sidwell <nathan@codesourcery.com>
11280
11281 * testsuite/libgomp.oacc-c-c++-common/crash-1.c: New.
11282
11283 2016-07-15 Cesar Philippidis <cesar@codesourcery.com>
11284
11285 * testsuite/libgomp.oacc-c-c++-common/zero_length_subarrays.c: New
11286 test.
11287
11288 2016-07-03 H.J. Lu <hongjiu.lu@intel.com>
11289
11290 PR middle-end/71734
11291 * testsuite/libgomp.fortran/pr71734-1.f90: New test.
11292 * testsuite/libgomp.fortran/pr71734-2.f90: Likewise.
11293
11294 2016-07-01 Jakub Jelinek <jakub@redhat.com>
11295
11296 PR fortran/71717
11297 * testsuite/libgomp.fortran/associate3.f90: New test.
11298
11299 2016-06-17 Jakub Jelinek <jakub@redhat.com>
11300
11301 * testsuite/libgomp.c++/target-21.C: New test.
11302
11303 2016-06-16 Jakub Jelinek <jakub@redhat.com>
11304
11305 * testsuite/libgomp.c++/target-20.C: New test.
11306
11307 2016-06-10 Thomas Schwinge <thomas@codesourcery.com>
11308 Cesar Philippidis <cesar@codesourcery.com>
11309
11310 PR middle-end/71373
11311 * libgomp.oacc-c/nested-function-1.c: New file.
11312 * libgomp.oacc-c/nested-function-2.c: Likewise.
11313 * libgomp.oacc-fortran/nested-function-1.f90: Likewise.
11314 * libgomp.oacc-fortran/nested-function-2.f90: Likewise.
11315 * libgomp.oacc-fortran/nested-function-3.f90: Likewise.
11316
11317 2016-06-10 Thomas Schwinge <thomas@codesourcery.com>
11318
11319 PR c/71381
11320 * testsuite/libgomp.oacc-c-c++-common/cache-1.c: #include
11321 "../../../gcc/testsuite/c-c++-common/goacc/cache-1.c".
11322 * testsuite/libgomp.oacc-fortran/cache-1.f95: New file.
11323
11324 2016-06-03 Chung-Lin Tang <cltang@codesourcery.com>
11325
11326 * testsuite/libgomp.oacc-fortran/reduction-8.f90: New testcase.
11327 * testsuite/libgomp.oacc-c-c++-common/reduction-8.c: New testcase.
11328
11329 2016-06-01 Cesar Philippidis <cesar@codesourcery.com>
11330
11331 PR c/70688
11332 * testsuite/libgomp.oacc-c-c++-common/pr70688.c: New file.
11333
11334 2016-05-26 Jakub Jelinek <jakub@redhat.com>
11335
11336 * testsuite/libgomp.c/doacross-1.c (main): Use schedule(static)
11337 instead of invalid schedule(static, 0).
11338 * testsuite/libgomp.c/doacross-2.c (main): Likewise.
11339
11340 2016-05-26 Chung-Lin Tang <cltang@codesourcery.com>
11341
11342 * oacc-plugin.h (GOMP_PLUGIN_async_unmap_vars): Add int parameter.
11343 * oacc-plugin.c (GOMP_PLUGIN_async_unmap_vars): Add 'int async'
11344 parameter, use to set async stream around call to gomp_unmap_vars,
11345 call gomp_unmap_vars() with 'do_copyfrom' set to true.
11346 * plugin/plugin-nvptx.c (struct ptx_event): Add 'int val' field.
11347 (event_gc): Adjust event handling loop, collect PTX_EVT_ASYNC_CLEANUP
11348 events and call GOMP_PLUGIN_async_unmap_vars() for each of them.
11349 (event_add): Add int parameter, initialize 'val' field when
11350 adding new ptx_event struct.
11351 (nvptx_evec): Adjust event_add() call arguments.
11352 (nvptx_host2dev): Likewise.
11353 (nvptx_dev2host): Likewise.
11354 (nvptx_wait_async): Likewise.
11355 (nvptx_wait_all_async): Likewise.
11356 (GOMP_OFFLOAD_openacc_register_async_cleanup): Add async parameter,
11357 pass to event_add() call.
11358 * oacc-host.c (host_openacc_register_async_cleanup): Add 'int async'
11359 parameter.
11360 * oacc-mem.c (gomp_acc_remove_pointer): Adjust async case to
11361 call openacc.register_async_cleanup_func() hook.
11362 * oacc-parallel.c (GOACC_parallel_keyed): Likewise.
11363 * target.c (gomp_copy_from_async): Delete function.
11364 (gomp_map_vars): Remove async_refcount.
11365 (gomp_unmap_vars): Likewise.
11366 (gomp_load_image_to_device): Likewise.
11367 (omp_target_associate_ptr): Likewise.
11368 * libgomp.h (struct splay_tree_key_s): Remove async_refcount.
11369 (acc_dispatch_t.register_async_cleanup_func): Add int parameter.
11370 (gomp_copy_from_async): Remove.
11371
11372 2016-05-26 Chung-Lin Tang <cltang@codesourcery.com>
11373
11374 * target.c (gomp_device_copy): New function.
11375 (gomp_copy_host2dev): Likewise.
11376 (gomp_copy_dev2host): Likewise.
11377 (gomp_free_device_memory): Likewise.
11378 (gomp_map_vars_existing): Adjust to call gomp_copy_host2dev.
11379 (gomp_map_pointer): Likewise.
11380 (gomp_map_vars): Adjust to call gomp_copy_host2dev, handle
11381 NULL value from alloc_func plugin hook.
11382 (gomp_unmap_tgt): Adjust to call gomp_free_device_memory.
11383 (gomp_copy_from_async): Adjust to call gomp_copy_dev2host.
11384 (gomp_unmap_vars): Likewise.
11385 (gomp_update): Adjust to call gomp_copy_dev2host and
11386 gomp_copy_host2dev functions.
11387 (gomp_unload_image_from_device): Handle false value from
11388 unload_image_func plugin hook.
11389 (gomp_init_device): Handle false value from init_device_func
11390 plugin hook.
11391 (gomp_exit_data): Adjust to call gomp_copy_dev2host.
11392 (omp_target_free): Adjust to call gomp_free_device_memory.
11393 (omp_target_memcpy): Handle return values from host2dev_func,
11394 dev2host_func, and dev2dev_func plugin hooks.
11395 (omp_target_memcpy_rect_worker): Likewise.
11396 (gomp_target_fini): Handle false value from fini_device_func
11397 plugin hook.
11398 * libgomp.h (struct gomp_device_descr): Adjust return type of
11399 init_device_func, fini_device_func, unload_image_func, free_func,
11400 dev2host_func,host2dev_func, and dev2dev_func plugin hooks to 'bool'.
11401 * oacc-init.c (acc_shutdown_1): Handle false value from
11402 fini_device_func plugin hook.
11403 * oacc-host.c (host_init_device): Change return type to bool.
11404 (host_fini_device): Likewise.
11405 (host_unload_image): Likewise.
11406 (host_free): Likewise.
11407 (host_dev2host): Likewise.
11408 (host_host2dev): Likewise.
11409 * oacc-mem.c (acc_free): Handle plugin hook fatal error case.
11410 (acc_memcpy_to_device): Likewise.
11411 (acc_memcpy_from_device): Likewise.
11412 (delete_copyout): Add libfnname parameter, handle free_func
11413 hook fatal error case.
11414 (acc_delete): Adjust delete_copyout call.
11415 (acc_copyout): Likewise.
11416 (update_dev_host): Move gomp_mutex_unlock to after
11417 host2dev/dev2host hook calls.
11418
11419 * plugin/plugin-hsa.c (hsa_warn): Adjust 'hsa_error' local variable
11420 to 'hsa_error_msg', for clarity.
11421 (hsa_fatal): Likewise.
11422 (hsa_error): New function.
11423 (init_hsa_context): Change return type to bool, adjust to return
11424 false on error.
11425 (GOMP_OFFLOAD_get_num_devices): Adjust to handle init_hsa_context
11426 return value.
11427 (GOMP_OFFLOAD_init_device): Change return type to bool, adjust to
11428 return false on error.
11429 (get_agent_info): Adjust to return NULL on error.
11430 (destroy_hsa_program): Change return type to bool, adjust to
11431 return false on error.
11432 (GOMP_OFFLOAD_load_image): Adjust to return -1 on error.
11433 (destroy_module): Change return type to bool, adjust to
11434 return false on error.
11435 (GOMP_OFFLOAD_unload_image): Likewise.
11436 (GOMP_OFFLOAD_fini_device): Likewise.
11437 (GOMP_OFFLOAD_alloc): Change to return NULL when called.
11438 (GOMP_OFFLOAD_free): Change to return false when called.
11439 (GOMP_OFFLOAD_dev2host): Likewise.
11440 (GOMP_OFFLOAD_host2dev): Likewise.
11441 (GOMP_OFFLOAD_dev2dev): Likewise.
11442
11443 * plugin/plugin-nvptx.c (CUDA_CALL_ERET): New convenience macro.
11444 (CUDA_CALL): Likewise.
11445 (CUDA_CALL_ASSERT): Likewise.
11446 (map_init): Change return type to bool, use CUDA_CALL* macros.
11447 (map_fini): Likewise.
11448 (init_streams_for_device): Change return type to bool, adjust
11449 call to map_init.
11450 (fini_streams_for_device): Change return type to bool, adjust
11451 call to map_fini.
11452 (select_stream_for_async): Release stream_lock before calls to
11453 GOMP_PLUGIN_fatal, adjust call to map_init.
11454 (nvptx_init): Use CUDA_CALL* macros.
11455 (nvptx_attach_host_thread_to_device): Change return type to bool,
11456 use CUDA_CALL* macros.
11457 (nvptx_open_device): Use CUDA_CALL* macros.
11458 (nvptx_close_device): Change return type to bool, use CUDA_CALL*
11459 macros.
11460 (nvptx_get_num_devices): Use CUDA_CALL* macros.
11461 (link_ptx): Change return type to bool, use CUDA_CALL* macros.
11462 (nvptx_exec): Use CUDA_CALL* macros.
11463 (nvptx_alloc): Use CUDA_CALL* macros.
11464 (nvptx_free): Change return type to bool, use CUDA_CALL* macros.
11465 (nvptx_host2dev): Likewise.
11466 (nvptx_dev2host): Likewise.
11467 (nvptx_wait): Use CUDA_CALL* macros.
11468 (nvptx_wait_async): Likewise.
11469 (nvptx_wait_all): Likewise.
11470 (nvptx_wait_all_async): Likewise.
11471 (nvptx_set_cuda_stream): Adjust order of stream_lock acquire,
11472 use CUDA_CALL* macros, adjust call to map_fini.
11473 (GOMP_OFFLOAD_init_device): Change return type to bool,
11474 adjust code accordingly.
11475 (GOMP_OFFLOAD_fini_device): Likewise.
11476 (GOMP_OFFLOAD_load_image): Adjust calls to
11477 nvptx_attach_host_thread_to_device/link_ptx to handle errors,
11478 use CUDA_CALL* macros.
11479 (GOMP_OFFLOAD_unload_image): Change return type to bool, adjust
11480 return code.
11481 (GOMP_OFFLOAD_alloc): Adjust calls to code to handle error return.
11482 (GOMP_OFFLOAD_free): Change return type to bool, adjust calls to
11483 handle error return.
11484 (GOMP_OFFLOAD_dev2host): Likewise.
11485 (GOMP_OFFLOAD_host2dev): Likewise.
11486 (GOMP_OFFLOAD_openacc_register_async_cleanup): Use CUDA_CALL* macros.
11487 (GOMP_OFFLOAD_openacc_create_thread_data): Likewise.
11488
11489 2016-05-24 Cesar Philippidis <cesar@codesourcery.com>
11490
11491 * oacc-mem.c (acc_malloc): Update handling of shared-memory targets.
11492 (acc_free): Likewise.
11493 (acc_memcpy_to_device): Likewise.
11494 (acc_memcpy_from_device): Likewise.
11495 (acc_deviceptr): Likewise.
11496 (acc_hostptr): Likewise.
11497 (acc_is_present): Likewise.
11498 (acc_map_data): Likewise.
11499 (acc_unmap_data): Likewise.
11500 (present_create_copy): Likewise.
11501 (delete_copyout): Likewise.
11502 (update_dev_host): Likewise.
11503 * testsuite/libgomp.oacc-c-c++-common/asyncwait-1.c: Remove xfail.
11504 * testsuite/libgomp.oacc-c-c++-common/data-2-lib.c: New test.
11505 * testsuite/libgomp.oacc-c-c++-common/data-2.c: Adjust test.
11506 * testsuite/libgomp.oacc-c-c++-common/data-3.c: Likewise.
11507 * testsuite/libgomp.oacc-c-c++-common/enter_exit-lib.c: New test.
11508 * testsuite/libgomp.oacc-c-c++-common/lib-13.c: Adjust test so that
11509 it only runs on nvptx targets.
11510 * testsuite/libgomp.oacc-c-c++-common/lib-14.c: Likewise.
11511 * testsuite/libgomp.oacc-c-c++-common/lib-15.c: Likewise.
11512 * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
11513 * testsuite/libgomp.oacc-c-c++-common/lib-17.c: Likewise.
11514 * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
11515 * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
11516 * testsuite/libgomp.oacc-c-c++-common/lib-21.c: Likewise.
11517 * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Likewise.
11518 * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
11519 * testsuite/libgomp.oacc-c-c++-common/lib-24.c: Likewise.
11520 * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
11521 * testsuite/libgomp.oacc-c-c++-common/lib-28.c: Likewise.
11522 * testsuite/libgomp.oacc-c-c++-common/lib-29.c: Likewise.
11523 * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
11524 * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
11525 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
11526 * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Likewise.
11527 * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
11528 * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Likewise.
11529 * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
11530 * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Likewise.
11531 * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
11532 * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
11533
11534 2016-05-23 Martin Jambor <mjambor@suse.cz>
11535
11536 * testsuite/libgomp.hsa.c/switch-sbr-2.c: New test.
11537
11538 2016-05-17 Chung-Lin Tang <cltang@codesourcery.com>
11539
11540 * oacc-init.c (acc_init): Remove !cached_base_dev condition on call
11541 to gomp_init_targets_once.
11542 (acc_set_device_type): Remove !cached_base_dev condition on call to
11543 gomp_init_targets_once, move call to before acc_device_lock acquire,
11544 to avoid deadlock.
11545 (acc_get_device_num): Remove !cached_base_dev condition on call to
11546 gomp_init_targets_once.
11547 (acc_set_device_num): Likewise.
11548
11549 2016-05-16 Martin Jambor <mjambor@suse.cz>
11550
11551 * testsuite/libgomp.hsa.c/complex-align-2.c: New test.
11552
11553 2016-05-02 Nathan Sidwell <nathan@codesourcery.com>
11554
11555 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Adjust
11556 expected partitioning.
11557
11558 2016-04-29 Cesar Philippidis <cesar@codesourcery.com>
11559
11560 PR middle-end/70626
11561 * testsuite/libgomp.oacc-c++/template-reduction.C: Adjust test.
11562 * testsuite/libgomp.oacc-c-c++-common/combined-reduction.c: New test.
11563 * testsuite/libgomp.oacc-fortran/combined-reduction.f90: New test.
11564
11565 2016-04-21 Alexander Monakov <amonakov@ispras.ru>
11566
11567 * plugin/plugin-nvptx.c (map_fini): Make cuMemFreeHost error
11568 non-fatal.
11569
11570 2016-04-19 Jakub Jelinek <jakub@redhat.com>
11571
11572 PR middle-end/70680
11573 * testsuite/libgomp.c/pr70680-1.c: New test.
11574 * testsuite/libgomp.c/pr70680-2.c: New test.
11575
11576 2016-04-14 Cesar Philippidis <cesar@codesourcery.com>
11577
11578 * testsuite/libgomp.oacc-fortran/non-scalar-data.f90: Don't
11579 pass parameter variables to subroutines.
11580
11581 2016-04-14 Cesar Philippidis <cesar@codesourcery.com>
11582
11583 PR middle-end/70643
11584 * testsuite/libgomp.oacc-fortran/pr70643.f90: New test.
11585
11586 2016-04-13 Cesar Philippidis <cesar@codesourcery.com>
11587
11588 PR testsuite/68242
11589 * testsuite/libgomp.oacc-c-c++-common/reduction-1.c: Adjust test.
11590 * testsuite/libgomp.oacc-c-c++-common/reduction-2.c: Likewise.
11591
11592 2016-04-12 Thomas Schwinge <thomas@codesourcery.com>
11593
11594 * libgomp_g.h: Rename GOACC_parallel_keyd prototype to
11595 GOACC_parallel_keyed, restore GOACC_parallel prototype, new
11596 GOACC_declare prototype.
11597
11598 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gang-np-1.c:
11599 Merge this file, and...
11600 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gv-np-1.c:
11601 ... this file, and...
11602 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gw-np-1.c:
11603 ... this file, and...
11604 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-1.c:
11605 ... this file, and...
11606 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-2.c:
11607 ... this file, and...
11608 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-3.c:
11609 ... this file, and...
11610 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-4.c:
11611 ... this file, and...
11612 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-vector-p-1.c:
11613 ... this file, and...
11614 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-vector-p-2.c:
11615 ... this file, and...
11616 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-worker-p-1.c:
11617 ... this file, and...
11618 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-1.c:
11619 ... this file, and...
11620 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-2.c:
11621 ... this file, and...
11622 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-3.c:
11623 ... this file into...
11624 * testsuite/libgomp.oacc-c-c++-common/reduction-7.c: ... this
11625 file.
11626
11627 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-2.c:
11628 Make failure observable.
11629
11630 2016-04-12 Jakub Jelinek <jakub@redhat.com>
11631
11632 * libgomp.h (struct gomp_target_task): Remove firstprivate_copies
11633 field.
11634 * target.c (gomp_target_fallback_firstprivate,
11635 gomp_target_unshare_firstprivate): Removed.
11636 (GOMP_target_ext): Copy firstprivate vars into gomp_allocaed memory
11637 before waiting for dependencies.
11638 (gomp_target_task_fn): Don't copy firstprivate vars here.
11639 * task.c (GOMP_PLUGIN_target_task_completion): Don't free
11640 firstprivate_copies here.
11641 (gomp_create_target_task): Don't initialize firstprivate_copies field.
11642 * testsuite/libgomp.c/target-25.c (main): Use map (to:) instead of
11643 explicit/implicit firstprivate.
11644
11645 2016-04-08 Cesar Philippidis <cesar@codesourcery.com>
11646
11647 PR lto/70289
11648 PR ipa/70348
11649 PR tree-optimization/70373
11650 PR middle-end/70533
11651 PR middle-end/70534
11652 PR middle-end/70535
11653 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gang-np-1.c: New
11654 test.
11655 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gw-np-1.c: New
11656 test.
11657 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-1.c: New
11658 test.
11659 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-2.c: New
11660 test.
11661 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-3.c: New
11662 test.
11663 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-4.c: New
11664 test.
11665 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-vector-p-1.c: New
11666 test.
11667 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-vector-p-2.c: New
11668 test.
11669 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-worker-p-1.c: New
11670 test.
11671 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-1.c: New test.
11672 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-2.c: New test.
11673 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-3.c: New test.
11674 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-1.c: New
11675 test.
11676 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-2.c: New
11677 test.
11678 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-3.c: New
11679 test.
11680 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-4.c: New
11681 test.
11682 * testsuite/libgomp.oacc-c-c++-common/par-reduction-1.c: Add test
11683 coverage.
11684 * testsuite/libgomp.oacc-c-c++-common/par-reduction-2.c: Likewise.
11685 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Likewise.
11686 * testsuite/libgomp.oacc-c-c++-common/parallel-reduction.c: New test.
11687 * testsuite/libgomp.oacc-c-c++-common/pr70289.c: New test.
11688 * testsuite/libgomp.oacc-c-c++-common/pr70373.c: New test.
11689 * testsuite/libgomp.oacc-c-c++-common/reduction-1.c: Add test
11690 coverage.
11691 * testsuite/libgomp.oacc-c-c++-common/reduction-2.c: Likewise.
11692 * testsuite/libgomp.oacc-c-c++-common/reduction-3.c: Likewise.
11693 * testsuite/libgomp.oacc-c-c++-common/reduction-4.c: Likewise.
11694 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Likewise.
11695 * testsuite/libgomp.oacc-c-c++-common/reduction-6.c: New test.
11696 * testsuite/libgomp.oacc-c-c++-common/reduction.h: New test.
11697 * testsuite/libgomp.oacc-fortran/parallel-reduction.f90: New test.
11698 * testsuite/libgomp.oacc-fortran/pr70289.f90: New test.
11699 * testsuite/libgomp.oacc-fortran/reduction-1.f90: Add test coverage.
11700 * testsuite/libgomp.oacc-fortran/reduction-2.f90: Likewise.
11701 * testsuite/libgomp.oacc-fortran/reduction-3.f90: Likewise.
11702 * testsuite/libgomp.oacc-fortran/reduction-4.f90: Likewise.
11703 * testsuite/libgomp.oacc-fortran/reduction-5.f90: Likewise.
11704 * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
11705 * testsuite/libgomp.oacc-fortran/reduction-7.f90: New test.
11706
11707 2016-03-30 Thomas Schwinge <thomas@codesourcery.com>
11708 James Norris <jnorris@codesourcery.com>
11709 Nathan Sidwell <nathan@codesourcery.com>
11710 Julian Brown <julian@codesourcery.com>
11711 Cesar Philippidis <cesar@codesourcery.com>
11712 Chung-Lin Tang <cltang@codesourcery.com>
11713 Tom de Vries <tom@codesourcery.com>
11714
11715 * testsuite/libgomp.oacc-c-c++-common/clauses-1.c: Update.
11716 * testsuite/libgomp.oacc-c-c++-common/deviceptr-1.c: Likewise.
11717 * testsuite/libgomp.oacc-c-c++-common/if-1.c: Likewise.
11718 * testsuite/libgomp.oacc-c-c++-common/vector-loop.c: Likewise.
11719 * testsuite/libgomp.oacc-fortran/asyncwait-1.f90: Likewise.
11720 * testsuite/libgomp.oacc-fortran/asyncwait-2.f90: Likewise.
11721 * testsuite/libgomp.oacc-fortran/asyncwait-3.f90: Likewise.
11722 * testsuite/libgomp.oacc-fortran/declare-1.f90: Likewise.
11723 * testsuite/libgomp.oacc-c-c++-common/asyncwait-1.c: Likewise.
11724 XFAIL.
11725 * testsuite/libgomp.oacc-c-c++-common/firstprivate-1.c: Update.
11726 Incorporate...
11727 * testsuite/libgomp.oacc-c-c++-common/firstprivate-2.c: ... this
11728 file.
11729 * testsuite/libgomp.oacc-c++/template-reduction.C: New file.
11730 * testsuite/libgomp.oacc-c-c++-common/gang-static-1.c: Likewise.
11731 * testsuite/libgomp.oacc-c-c++-common/gang-static-2.c: Likewise.
11732 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-clauses.c:
11733 Likewise.
11734 * testsuite/libgomp.oacc-c-c++-common/private-variables.c:
11735 Likewise.
11736 * testsuite/libgomp.oacc-c-c++-common/reduction-7.c: Likewise.
11737 * testsuite/libgomp.oacc-c-c++-common/routine-1.c: Likewise.
11738 * testsuite/libgomp.oacc-c-c++-common/routine-4.c: Likewise.
11739 * testsuite/libgomp.oacc-c-c++-common/routine-wv-2.c: Likewise.
11740 * testsuite/libgomp.oacc-fortran/clauses-1.f90: Likewise.
11741 * testsuite/libgomp.oacc-fortran/default-1.f90: Likewise.
11742 * testsuite/libgomp.oacc-fortran/firstprivate-1.f90: Likewise.
11743 * testsuite/libgomp.oacc-fortran/gang-static-1.f90: Likewise.
11744 * testsuite/libgomp.oacc-fortran/if-1.f90: Likewise.
11745 * testsuite/libgomp.oacc-fortran/implicit-firstprivate-ref.f90:
11746 Likewise.
11747 * testsuite/libgomp.oacc-fortran/pr68813.f90: Likewise.
11748 * testsuite/libgomp.oacc-fortran/private-variables.f90: Likewise.
11749 * testsuite/libgomp.oacc-c-c++-common/kernels-1.c: Merge this
11750 file...
11751 * testsuite/libgomp.oacc-c-c++-common/parallel-1.c: ..., and this
11752 file into...
11753 * testsuite/libgomp.oacc-c-c++-common/data-clauses.h: ... this new
11754 file. Update.
11755 * testsuite/libgomp.oacc-c-c++-common/data-clauses-kernels.c: New
11756 file.
11757 * testsuite/libgomp.oacc-c-c++-common/data-clauses-parallel.c:
11758 Likewise.
11759 * testsuite/libgomp.oacc-c-c++-common/kernels-2.c: Rename to...
11760 * testsuite/libgomp.oacc-c-c++-common/data-clauses-kernels-ipa-pta.c:
11761 ... this new file. Update.
11762 * testsuite/libgomp.oacc-c-c++-common/parallel-2.c: Rename to...
11763 * testsuite/libgomp.oacc-c-c++-common/data-clauses-parallel-ipa-pta.c:
11764 ... this new file. Update.
11765 * testsuite/libgomp.oacc-c-c++-common/mode-transitions.c: New
11766 file. Incorporate...
11767 * testsuite/libgomp.oacc-c-c++-common/worker-single-1a.c: ... this
11768 file, and...
11769 * testsuite/libgomp.oacc-c-c++-common/worker-single-4.c: ... this
11770 file, and...
11771 * testsuite/libgomp.oacc-c-c++-common/worker-single-6.c: ... this
11772 file.
11773 * testsuite/libgomp.oacc-c-c++-common/update-1-2.c: Remove file.
11774
11775 2016-03-29 Thomas Schwinge <thomas@codesourcery.com>
11776
11777 * testsuite/libgomp.oacc-c++/c++.exp [!lang_test_file_found]: Call
11778 set-torture-options.
11779
11780 2016-03-24 Thomas Schwinge <thomas@codesourcery.com>
11781
11782 * testsuite/libgomp.oacc-c++/c++.exp: Set up torture testing, use
11783 gcc-dg-runtest.
11784 * testsuite/libgomp.oacc-c/c.exp: Likewise.
11785 * testsuite/libgomp.oacc-c-c++-common/acc-on-device-2.c: Specify
11786 -fno-builtin-acc_on_device instead of -O0.
11787 * testsuite/libgomp.oacc-c-c++-common/acc-on-device.c: Skip for
11788 -O0.
11789 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Likewise.
11790 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c:
11791 Likewise.
11792 * testsuite/libgomp.oacc-c-c++-common/loop-g-1.c: Likewise.
11793 * testsuite/libgomp.oacc-c-c++-common/loop-g-2.c: Likewise.
11794 * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c: Likewise.
11795 * testsuite/libgomp.oacc-c-c++-common/loop-red-g-1.c: Likewise.
11796 * testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c: Likewise.
11797 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c: Likewise.
11798 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c: Likewise.
11799 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c: Likewise.
11800 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c: Likewise.
11801 * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c: Likewise.
11802 * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c: Likewise.
11803 * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c: Likewise.
11804 * testsuite/libgomp.oacc-c-c++-common/routine-g-1.c: Likewise.
11805 * testsuite/libgomp.oacc-c-c++-common/routine-gwv-1.c: Likewise.
11806 * testsuite/libgomp.oacc-c-c++-common/routine-v-1.c: Likewise.
11807 * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c: Likewise.
11808 * testsuite/libgomp.oacc-c-c++-common/routine-wv-1.c: Likewise.
11809 * testsuite/libgomp.oacc-c-c++-common/kernels-alias-ipa-pta-2.c:
11810 Don't specify -O2.
11811 * testsuite/libgomp.oacc-c-c++-common/kernels-alias-ipa-pta-3.c:
11812 Likewise.
11813 * testsuite/libgomp.oacc-c-c++-common/kernels-alias-ipa-pta.c:
11814 Likewise.
11815
11816 2016-03-24 Martin Liska <mliska@suse.cz>
11817
11818 * plugin/plugin-hsa.c (packet_store_release): New function
11819 that is taken from the HSA runtime manual.
11820 (GOMP_OFFLOAD_run): Use the function.
11821
11822 2016-03-23 Jakub Jelinek <jakub@redhat.com>
11823
11824 PR c++/70376
11825 * testsuite/libgomp.c++/pr70376.C: New test.
11826
11827 2016-03-23 Tom de Vries <tom@codesourcery.com>
11828
11829 * testsuite/libgomp.oacc-fortran/reduction-2.f90: Add missing
11830 initialization of lresult and lvresult.
11831 * testsuite/libgomp.oacc-fortran/reduction-3.f90: Same.
11832
11833 2016-03-23 James Norris <jnorris@codesourcery.com>
11834 Daichi Fukuoka <dc-fukuoka@sgi.com>
11835
11836 PR libgomp/69414
11837 * oacc-mem.c (delete_copyout, update_dev_host): Fix device address.
11838 * testsuite/libgomp.oacc-c-c++-common/update-1.c: Additional tests.
11839 * testsuite/libgomp.oacc-c-c++-common/update-1-2.c: Likewise.
11840 * testsuite/libgomp.oacc-fortran/update-1.f90: New file.
11841
11842 2016-03-23 Martin Liska <mliska@suse.cz>
11843
11844 PR hsa/70337
11845 * plugin/plugin-hsa.c (GOMP_OFFLOAD_run): Copy shadow
11846 argument just in case a dispatched kernel uses that argument.
11847
11848 2016-03-16 Thomas Schwinge <thomas@codesourcery.com>
11849
11850 * testsuite/libgomp.oacc-fortran/kernels-loop-2.f95: Adjust to
11851 -ftree-parallelize-loops/-fopenacc changes.
11852 * testsuite/libgomp.oacc-fortran/kernels-loop-data-2.f95:
11853 Likewise.
11854 * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit-2.f95:
11855 Likewise.
11856 * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit.f95:
11857 Likewise.
11858 * testsuite/libgomp.oacc-fortran/kernels-loop-data-update.f95:
11859 Likewise.
11860 * testsuite/libgomp.oacc-fortran/kernels-loop-data.f95: Likewise.
11861 * testsuite/libgomp.oacc-fortran/kernels-loop.f95: Likewise.
11862
11863 2016-03-13 Thomas Schwinge <thomas@codesourcery.com>
11864
11865 * testsuite/lib/libgomp.exp (libgomp_init): Potentially append to
11866 always_ld_library_path the path to libgcc_s.
11867
11868 2016-03-10 Cesar Philippidis <cesar@codesourcery.com>
11869
11870 PR testsuite/70009
11871 * testsuite/libgomp.oacc-c-c++-common/vprop.c: Make test data signed.
11872
11873 2016-03-09 Tom de Vries <tom@codesourcery.com>
11874
11875 * testsuite/libgomp.oacc-fortran/kernels-loop-2.f95: New test.
11876 * testsuite/libgomp.oacc-fortran/kernels-loop-data-2.f95: Same.
11877 * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit-2.f95:
11878 Same.
11879 * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit.f95: Same.
11880 * testsuite/libgomp.oacc-fortran/kernels-loop-data-update.f95: Same.
11881 * testsuite/libgomp.oacc-fortran/kernels-loop-data.f95: Same.
11882 * testsuite/libgomp.oacc-fortran/kernels-loop.f95: Same.
11883
11884 2016-03-07 Martin Jambor <mjambor@suse.cz>
11885
11886 * testsuite/lib/libgomp.exp
11887 (check_effective_target_hsa_offloading_selected_nocache): New.
11888 (check_effective_target_hsa_offloading_selected): Likewise.
11889 * testsuite/libgomp.hsa.c/c.exp: Likewise.
11890 * testsuite/libgomp.hsa.c/alloca-1.c: Likewise.
11891 * testsuite/libgomp.hsa.c/bitfield-1.c: Likewise.
11892 * testsuite/libgomp.hsa.c/builtins-1.c: Likewise.
11893 * testsuite/libgomp.hsa.c/complex-1.c: Likewise.
11894 * testsuite/libgomp.hsa.c/formal-actual-args-1.c: Likewise.
11895 * testsuite/libgomp.hsa.c/function-call-1.c: Likewise.
11896 * testsuite/libgomp.hsa.c/get-level-1.c: Likewise.
11897 * testsuite/libgomp.hsa.c/gridify-1.c: Likewise.
11898 * testsuite/libgomp.hsa.c/gridify-2.c: Likewise.
11899 * testsuite/libgomp.hsa.c/gridify-3.c: Likewise.
11900 * testsuite/libgomp.hsa.c/gridify-4.c: Likewise.
11901 * testsuite/libgomp.hsa.c/memory-operations-1.c: Likewise.
11902 * testsuite/libgomp.hsa.c/pr69568.c: Likewise.
11903 * testsuite/libgomp.hsa.c/rotate-1.c: Likewise.
11904 * testsuite/libgomp.hsa.c/switch-1.c: Likewise.
11905 * testsuite/libgomp.hsa.c/switch-branch-1.c: Likewise.
11906
11907 2016-03-07 Martin Jambor <mjambor@suse.cz>
11908
11909 * testsuite/libgomp.c/examples-4/async_target-2.c: Only run on
11910 non-shared memory accelerators.
11911 * testsuite/libgomp.c/examples-4/device-1.c: Likewise.
11912 * testsuite/libgomp.c/examples-4/target-5.c: Likewise.
11913 * testsuite/libgomp.c/examples-4/target_data-6.c: Likewise.
11914 * testsuite/libgomp.c/examples-4/target_data-7.c: Likewise.
11915 * testsuite/libgomp.fortran/examples-4/async_target-2.f90: Likewise.
11916 * testsuite/libgomp.fortran/examples-4/device-1.f90: Likewise.
11917 * testsuite/libgomp.fortran/examples-4/target-5.f90: Likewise.
11918 * testsuite/libgomp.fortran/examples-4/target_data-6.f90: Likewise.
11919 * testsuite/libgomp.fortran/examples-4/target_data-7.f90: Likewise.
11920
11921 2016-03-07 Martin Jambor <mjambor@suse.cz>
11922
11923 * testsuite/lib/libgomp.exp (libgomp_init): Append -Wno-hsa to
11924 ALWAYS_CFLAGS.
11925
11926 2016-03-02 Jakub Jelinek <jakub@redhat.com>
11927
11928 PR libgomp/69555
11929 * testsuite/libgomp.c++/pr69555-1.C: New test.
11930 * testsuite/libgomp.c++/pr69555-2.C: New test.
11931
11932 2016-02-26 Keith McDaniel <k.allen.mcdaniel@gmail.com>
11933 Martin Jambor <mjambor@suse.cz>
11934
11935 * testsuite/lib/libgomp.exp
11936 (check_effective_target_offload_device_shared_as): New proc.
11937 * testsuite/libgomp.c++/declare_target-1.C: New test.
11938
11939 2016-02-25 Ilya Verbin <ilya.verbin@intel.com>
11940
11941 PR driver/68463
11942 * testsuite/libgomp.oacc-c-c++-common/parallel-dims-2.c: Remove.
11943
11944 2016-02-23 Thomas Schwinge <thomas@codesourcery.com>
11945
11946 * oacc-parallel.c (GOACC_parallel_keyed): Initialize dims.
11947 * plugin/plugin-nvptx.c (nvptx_exec): Provide default values for
11948 dims.
11949 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-2.c: Adjust to
11950 -ftree-parallelize-loops/-fopenacc changes.
11951 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-3.c: Likewise.
11952 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-2.c:
11953 Likewise.
11954 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-3.c:
11955 Likewise.
11956 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-4.c:
11957 Likewise.
11958 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-5.c:
11959 Likewise.
11960 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-6.c:
11961 Likewise.
11962 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq.c:
11963 Likewise.
11964 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-collapse.c:
11965 Likewise.
11966 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-g.c: Likewise.
11967 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-mod-not-zero.c:
11968 Likewise.
11969 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-n.c: Likewise.
11970 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-nest.c:
11971 Likewise.
11972 * testsuite/libgomp.oacc-c-c++-common/kernels-loop.c: Likewise.
11973 * testsuite/libgomp.oacc-c-c++-common/kernels-reduction.c:
11974 Likewise.
11975
11976 2016-02-22 Cesar Philippidis <cesar@codesourcery.com>
11977
11978 * testsuite/libgomp.oacc-c-c++-common/vprop.c: New test.
11979
11980 2016-02-19 Jakub Jelinek <jakub@redhat.com>
11981
11982 PR driver/69805
11983 * testsuite/libgomp.c/pr69805.c: New test.
11984
11985 2016-02-16 Tom de Vries <tom@codesourcery.com>
11986
11987 PR lto/67709
11988 * testsuite/libgomp.fortran/declare-simd-4.f90: New test.
11989
11990 2016-02-09 Tom de Vries <tom@codesourcery.com>
11991
11992 PR tree-optimization/69599
11993 * testsuite/libgomp.c/omp-nested-3.c: New test.
11994 * testsuite/libgomp.c/pr46032-2.c: New test.
11995 * testsuite/libgomp.oacc-c-c++-common/kernels-2.c: New test.
11996 * testsuite/libgomp.oacc-c-c++-common/parallel-2.c: New test.
11997
11998 2016-02-09 Tom de Vries <tom@codesourcery.com>
11999
12000 PR lto/69707
12001 * testsuite/libgomp.oacc-c-c++-common/parallel-dims-2.c: New test.
12002
12003 2016-02-02 Alexander Monakov <amonakov@ispras.ru>
12004
12005 * testsuite/libgomp.c/target-31.c: Fix testcase.
12006
12007 2016-02-02 Alexander Monakov <amonakov@ispras.ru>
12008
12009 * testsuite/libgomp.c/examples-4/teams-3.c: Add missing reduction
12010 clause.
12011 * testsuite/libgomp.c/examples-4/teams-4.c: Likewise.
12012 * testsuite/libgomp.fortran/examples-4/teams-3.f90: Add missing
12013 reduction and map clauses.
12014 * testsuite/libgomp.fortran/examples-4/teams-4.f90: Likewise.
12015
12016 2016-02-02 James Norris <jnorris@codesourcery.com>
12017
12018 * testsuite/libgomp.oacc-c-c++-common/declare-4.c: Fix clause.
12019
12020 2016-02-02 Thomas Schwinge <thomas@codesourcery.com>
12021
12022 * libgomp.map (GOACC_2.0): Remove GOACC_host_data.
12023 * oacc-parallel.c (GOACC_host_data): Remove function definition.
12024
12025 * testsuite/lib/libgomp.exp: Skip hsa offloading for OpenACC test
12026 cases.
12027
12028 * plugin/configfrag.ac (HSA_KMT_LIB, HSA_KMT_LDFLAGS): New
12029 variables.
12030 * testsuite/libgomp-test-support.exp.in (hsa_runtime_lib)
12031 (hsa_kmt_lib): Set variables.
12032 * testsuite/lib/libgomp.exp (libgomp_init): Use them to amend
12033 always_ld_library_path.
12034 * Makefile.in: Regenerate.
12035 * configure: Likewise.
12036 * testsuite/Makefile.in: Likewise.
12037
12038 * plugin/configfrag.ac (offload_additional_options)
12039 (offload_additional_lib_paths): Don't amend for hsa offloading.
12040 * configure: Regenerate.
12041
12042 * plugin/configfrag.ac: Don't configure for offloading target if
12043 we don't build the corresponding plugin.
12044 * configure: Regenerate.
12045
12046 2016-02-01 Nathan Sidwell <nathan@codesourcery.com>
12047
12048 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: New.
12049 * testsuite/libgomp.oacc-fortran/routine-7.f90: Serialize loop.
12050
12051 2016-01-26 Tom de Vries <tom@codesourcery.com>
12052
12053 PR tree-optimization/69110
12054 * testsuite/libgomp.c/pr69110.c: New test.
12055
12056 2016-01-25 Richard Biener <rguenther@suse.de>
12057
12058 PR lto/69393
12059 * testsuite/libgomp.c++/pr69393.C: New testcase.
12060
12061 2016-01-22 Ilya Verbin <ilya.verbin@intel.com>
12062
12063 * target.c (gomp_get_target_fn_addr): Allow host fallback if target
12064 function wasn't mapped to the device with non-shared memory.
12065
12066 2016-01-20 Ilya Verbin <ilya.verbin@intel.com>
12067
12068 * task.c (gomp_create_target_task): Set firstprivate_copies to NULL.
12069
12070 2016-01-19 Martin Jambor <mjambor@suse.cz>
12071 Martin Liska <mliska@suse.cz>
12072
12073 * plugin/Makefrag.am: Add HSA plugin requirements.
12074 * plugin/configfrag.ac (HSA_RUNTIME_INCLUDE): New variable.
12075 (HSA_RUNTIME_LIB): Likewise.
12076 (HSA_RUNTIME_CPPFLAGS): Likewise.
12077 (HSA_RUNTIME_INCLUDE): New substitution.
12078 (HSA_RUNTIME_LIB): Likewise.
12079 (HSA_RUNTIME_LDFLAGS): Likewise.
12080 (hsa-runtime): New configure option.
12081 (hsa-runtime-include): Likewise.
12082 (hsa-runtime-lib): Likewise.
12083 (PLUGIN_HSA): New substitution variable.
12084 Fill HSA_RUNTIME_INCLUDE and HSA_RUNTIME_LIB according to the new
12085 configure options.
12086 (PLUGIN_HSA_CPPFLAGS): Likewise.
12087 (PLUGIN_HSA_LDFLAGS): Likewise.
12088 (PLUGIN_HSA_LIBS): Likewise.
12089 Check that we have access to HSA run-time.
12090 * libgomp-plugin.h (offload_target_type): New element
12091 OFFLOAD_TARGET_TYPE_HSA.
12092 * libgomp.h (gomp_target_task): New fields firstprivate_copies and
12093 args.
12094 (bool gomp_create_target_task): Updated.
12095 (gomp_device_descr): Extra parameter of run_func and async_run_func,
12096 new field can_run_func.
12097 * libgomp_g.h (GOMP_target_ext): Update prototype.
12098 * oacc-host.c (host_run): Added a new parameter args.
12099 * target.c (calculate_firstprivate_requirements): New function.
12100 (copy_firstprivate_data): Likewise.
12101 (gomp_target_fallback_firstprivate): Use them.
12102 (gomp_target_unshare_firstprivate): New function.
12103 (gomp_get_target_fn_addr): Allow returning NULL for shared memory
12104 devices.
12105 (GOMP_target): Do host fallback for all shared memory devices. Do not
12106 pass any args to plugins.
12107 (GOMP_target_ext): Introduce device-specific argument parameter args.
12108 Allow host fallback if device shares memory. Do not remap data if
12109 device has shared memory.
12110 (gomp_target_task_fn): Likewise. Also treat shared memory devices
12111 like host fallback for mappings.
12112 (GOMP_target_data): Treat shared memory devices like host fallback.
12113 (GOMP_target_data_ext): Likewise.
12114 (GOMP_target_update): Likewise.
12115 (GOMP_target_update_ext): Likewise. Also pass NULL as args to
12116 gomp_create_target_task.
12117 (GOMP_target_enter_exit_data): Likewise.
12118 (omp_target_alloc): Treat shared memory devices like host fallback.
12119 (omp_target_free): Likewise.
12120 (omp_target_is_present): Likewise.
12121 (omp_target_memcpy): Likewise.
12122 (omp_target_memcpy_rect): Likewise.
12123 (omp_target_associate_ptr): Likewise.
12124 (gomp_load_plugin_for_device): Also load can_run.
12125 * task.c (GOMP_PLUGIN_target_task_completion): Free
12126 firstprivate_copies.
12127 (gomp_create_target_task): Accept new argument args and store it to
12128 ttask.
12129 * plugin/plugin-hsa.c: New file.
12130
12131 2016-01-18 Tom de Vries <tom@codesourcery.com>
12132
12133 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-2.c: New test.
12134 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-3.c: Same.
12135 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-2.c: Same.
12136 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-3.c: Same.
12137 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-4.c: Same.
12138 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-5.c: Same.
12139 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-6.c: Same.
12140 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq.c: Same.
12141 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-collapse.c: Same.
12142 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-2.c: Same.
12143 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-enter-exit-2.c:
12144 Same.
12145 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-enter-exit.c:
12146 Same.
12147 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-update.c: Same.
12148 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data.c: Same.
12149 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-g.c: Same.
12150 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-mod-not-zero.c: Same.
12151 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-n.c: Same.
12152 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-nest.c: Same.
12153 * testsuite/libgomp.oacc-c-c++-common/kernels-loop.c: Same.
12154 * testsuite/libgomp.oacc-c-c++-common/kernels-parallel-loop-data-enter-exit.c:
12155 Same.
12156 * testsuite/libgomp.oacc-c-c++-common/kernels-reduction.c: Same.
12157
12158 2016-01-15 Jakub Jelinek <jakub@redhat.com>
12159
12160 * task.c (GOMP_PLUGIN_target_task_completion): Add missing return.
12161
12162 2016-01-15 Cesar Philippidis <cesar@codesourcery.com>
12163
12164 * testsuite/libgomp.oacc-fortran/kernels-data.f90: New test.
12165
12166 2016-01-12 James Norris <jnorris@codesourcery.com>
12167
12168 * libgomp.texi: Updates for OpenACC.
12169
12170 2016-01-11 Alexander Monakov <amonakov@ispras.ru>
12171
12172 * plugin/plugin-nvptx.c (link_ptx): Do not set CU_JIT_TARGET.
12173
12174 2016-01-07 H.J. Lu <hongjiu.lu@intel.com>
12175
12176 PR fortran/66680
12177 * testsuite/libgomp.fortran/pr66680.f90: New test.
12178
12179 2016-01-07 Jakub Jelinek <jakub@redhat.com>
12180
12181 PR middle-end/68960
12182 * testsuite/libgomp.c/pr68960.c: New test.
12183
12184 2016-01-06 Nathan Sidwell <nathan@acm.org>
12185
12186 * openacc.h (acc_on_device): Add routine pragma for C++ wrapper.
12187 * testsuite/libgomp.oacc-c-c++-common/acc-on-device-2.c: New.
12188
12189 2016-01-04 Jakub Jelinek <jakub@redhat.com>
12190
12191 Update copyright years.
12192
12193 * libgomp.texi: Bump @copying's copyright year.
12194
12195 2015-12-31 Nathan Sidwell <nathan@acm.org>
12196
12197 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c: Correct
12198 dg-additional-options syntax.
12199 * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c: Likewise.
12200 * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c: Likewise.
12201 * testsuite/libgomp.oacc-c-c++-common/routine-v-1.c: Likewise.
12202 * testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c: Likewise.
12203 * testsuite/libgomp.oacc-c-c++-common/routine-gwv-1.c: Likewise.
12204 * testsuite/libgomp.oacc-c-c++-common/routine-g-1.c: Likewise.
12205 * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c: Likewise.
12206 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Likewise.
12207 * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c: Likewise.
12208 * testsuite/libgomp.oacc-c-c++-common/routine-wv-1.c: Likewise.
12209 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c: Likewise.
12210 * testsuite/libgomp.oacc-c-c++-common/loop-g-1.c: Likewise.
12211 * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c: Likewise.
12212 * testsuite/libgomp.oacc-c-c++-common/loop-red-wv-1.c: Likewise.
12213 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c: Likewise.
12214 * testsuite/libgomp.oacc-c-c++-common/loop-g-2.c: Likewise.
12215 * testsuite/libgomp.oacc-c-c++-common/loop-red-g-1.c: Likewise.
12216 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c: Likewise.
12217
12218 2015-12-15 Ilya Verbin <ilya.verbin@intel.com>
12219
12220 * libgomp.h (REFCOUNT_LINK): Define.
12221 (struct splay_tree_key_s): Add link_key.
12222 * target.c (gomp_map_vars): Treat REFCOUNT_LINK objects as not mapped.
12223 Replace target address of the pointer with target address of newly
12224 mapped object in the splay tree. Set link pointer on target to the
12225 device address of the mapped object.
12226 (gomp_unmap_vars): Restore target address of the pointer in the splay
12227 tree for REFCOUNT_LINK objects after unmapping.
12228 (gomp_load_image_to_device): Set refcount to REFCOUNT_LINK for "omp
12229 declare target link" objects.
12230 (gomp_unload_image_from_device): Replace j with i. Force unmap of all
12231 "omp declare target link" objects, which were mapped for the image.
12232 (gomp_exit_data): Restore target address of the pointer in the splay
12233 tree for REFCOUNT_LINK objects after unmapping.
12234 * testsuite/libgomp.c/target-link-1.c: New file.
12235
12236 2015-12-14 Ilya Verbin <ilya.verbin@intel.com>
12237
12238 * libgomp.h (gomp_device_state): New enum.
12239 (struct gomp_device_descr): Replace is_initialized with state.
12240 (gomp_fini_device): Remove declaration.
12241 * oacc-host.c (host_dispatch): Use state instead of is_initialized.
12242 * oacc-init.c (acc_init_1): Use state instead of is_initialized.
12243 (acc_shutdown_1): Likewise. Inline gomp_fini_device.
12244 (acc_set_device_type): Use state instead of is_initialized.
12245 (acc_set_device_num): Likewise.
12246 * target.c (resolve_device): Use state instead of is_initialized.
12247 Do not initialize finalized device.
12248 (gomp_map_vars): Do nothing if device is finalized.
12249 (gomp_unmap_vars): Likewise.
12250 (gomp_update): Likewise.
12251 (GOMP_offload_register_ver): Use state instead of is_initialized.
12252 (GOMP_offload_unregister_ver): Likewise.
12253 (gomp_init_device): Likewise.
12254 (gomp_unload_device): Likewise.
12255 (gomp_fini_device): Remove.
12256 (gomp_get_target_fn_addr): Do nothing if device is finalized.
12257 (GOMP_target): Go to host fallback if device is finalized.
12258 (GOMP_target_ext): Likewise.
12259 (gomp_exit_data): Do nothing if device is finalized.
12260 (gomp_target_task_fn): Go to host fallback if device is finalized.
12261 (gomp_target_fini): New static function.
12262 (gomp_target_init): Use state instead of is_initialized.
12263 Call gomp_target_fini at exit.
12264
12265 2015-12-09 Tom de Vries <tom@codesourcery.com>
12266
12267 PR tree-optimization/68716
12268 * testsuite/libgomp.c/omp-nested-2.c: New test.
12269
12270 2015-12-02 Thomas Schwinge <thomas@codesourcery.com>
12271
12272 * testsuite/libgomp.oacc-c-c++-common/host_data-2.c: Restrict to
12273 target openacc_nvidia_accel_selected.
12274 * testsuite/libgomp.oacc-c-c++-common/host_data-4.c: Likewise.
12275 * testsuite/libgomp.oacc-c-c++-common/host_data-5.c: Likewise.
12276 * testsuite/libgomp.oacc-c-c++-common/host_data-3.c: Remove file.
12277 * testsuite/libgomp.oacc-c-c++-common/host_data-6.c: Remove file.
12278
12279 2015-12-01 Julian Brown <julian@codesourcery.com>
12280 James Norris <James_Norris@mentor.com>
12281
12282 * oacc-parallel.c (GOACC_host_data): New function.
12283 * libgomp.map (GOACC_host_data): Add to GOACC_2.0.1.
12284 * testsuite/libgomp.oacc-c-c++-common/host_data-1.c: New test.
12285 * testsuite/libgomp.oacc-c-c++-common/host_data-2.c: New test.
12286 * testsuite/libgomp.oacc-c-c++-common/host_data-3.c: New test.
12287 * testsuite/libgomp.oacc-c-c++-common/host_data-4.c: New test.
12288 * testsuite/libgomp.oacc-c-c++-common/host_data-5.c: New test.
12289 * testsuite/libgomp.oacc-c-c++-common/host_data-6.c: New test.
12290
12291 2015-11-30 James Norris <jnorris@codesourcery.com>
12292 Cesar Philippidis <cesar@codesourcery.com>
12293
12294 libgomp/
12295 * libgomp.oacc-fortran/routine-5.f90: New test.
12296 * libgomp.oacc-fortran/routine-7.f90: New test.
12297 * libgomp.oacc-fortran/routine-9.f90: New test.
12298
12299 2015-11-30 Tom de Vries <tom@codesourcery.com>
12300
12301 PR tree-optimization/46032
12302 * testsuite/libgomp.c/pr46032.c: New test.
12303
12304 2015-11-27 Jakub Jelinek <jakub@redhat.com>
12305
12306 PR libgomp/68579
12307 * task.c (gomp_task_run_post_handle_depend_hash): New forward decl.
12308 (gomp_create_target_task): Call it before freeing
12309 GOMP_TARGET_TASK_DATA tasks.
12310
12311 PR c/63326
12312 * testsuite/libgomp.c/cancel-parallel-2.c (foo): Add semicolon
12313 in between case label and OpenMP standalone directives.
12314 * testsuite/libgomp.c++/cancel-parallel-2.C (foo): Likewise.
12315
12316 2015-11-26 David Edelsohn <dje.gcc@gmail.com>
12317
12318 * configure: Regenerate.
12319
12320 2015-11-26 Jakub Jelinek <jakub@redhat.com>
12321
12322 * testsuite/libgomp.c/target-35.c: New test.
12323
12324 2015-11-22 James Norris <jnorris@codesourcery.com>
12325 Cesar Philippidis <cesar@codesourcery.com>
12326
12327 * testsuite/libgomp.oacc-fortran/declare-1.f90: New test.
12328 * testsuite/libgomp.oacc-fortran/declare-2.f90: Likewise.
12329 * testsuite/libgomp.oacc-fortran/declare-3.f90: Likewise.
12330 * testsuite/libgomp.oacc-fortran/declare-4.f90: Likewise.
12331 * testsuite/libgomp.oacc-fortran/declare-5.f90: Likewise.
12332
12333 2015-11-20 Jakub Jelinek <jakub@redhat.com>
12334
12335 PR middle-end/68221
12336 * testsuite/libgomp.c/reduction-11.c: Remove xfail.
12337 * testsuite/libgomp.c/reduction-12.c: Likewise.
12338 * testsuite/libgomp.c++/reduction-11.C: Likewise.
12339 * testsuite/libgomp.c++/reduction-12.C: Likewise.
12340
12341 2015-11-19 Nathan Sidwell <nathan@codesourcery.com>
12342
12343 * libgomp.oacc-c-c++-common/reduction-dbl.c: New.
12344 * libgomp.oacc-c-c++-common/reduction-flt.c: New.
12345 * libgomp.oacc-c-c++-common/reduction-cplx-dbl.c: Use typedef.
12346 * libgomp.oacc-c-c++-common/reduction-cplx-flt.c: Use typedef.
12347 * libgomp.oacc-c-c++-common/reduction-2.c: Uncomment broken tests
12348 and fix.
12349 * libgomp.oacc-c-c++-common/reduction-3.c: Likewise.
12350 * libgomp.oacc-c-c++-common/reduction-4.c: Likewise.
12351
12352 2015-11-18 Nathan Sidwell <nathan@codesourcery.com>
12353
12354 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-flt.c: Add
12355 worker & gang cases.
12356 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-dbl.c: Likewise.
12357
12358 2015-11-17 Cesar Philippidis <cesar@codesourcery.com>
12359
12360 * config/nvptx/priority_queue.c: New file.
12361
12362 2015-11-14 Jakub Jelinek <jakub@redhat.com>
12363
12364 * libgomp.texi: Update references from OpenMP 4.0 to OpenMP 4.5
12365 sections.
12366
12367 2015-11-14 Jakub Jelinek <jakub@redhat.com>
12368 Aldy Hernandez <aldyh@redhat.com>
12369 Ilya Verbin <ilya.verbin@intel.com>
12370
12371 * ordered.c (gomp_doacross_init, GOMP_doacross_post,
12372 GOMP_doacross_wait, gomp_doacross_ull_init, GOMP_doacross_ull_post,
12373 GOMP_doacross_ull_wait): For GFS_GUIDED don't divide number of
12374 iterators or IV by chunk size.
12375 * parallel.c (gomp_resolve_num_threads): Don't assume that
12376 if thr->ts.team is non-NULL, then pool must be non-NULL.
12377 * libgomp-plugin.h (GOMP_PLUGIN_target_task_completion): Declare.
12378 * libgomp.map (GOMP_PLUGIN_1.1): New symbol version, export
12379 GOMP_PLUGIN_target_task_completion.
12380 * Makefile.am (libgomp_la_SOURCES): Add priority_queue.c.
12381 * Makefile.in: Regenerate.
12382 * libgomp.h: Shuffle prototypes and forward definitions around so
12383 priority queues can be defined.
12384 (enum gomp_task_kind): Add GOMP_TASK_ASYNC_RUNNING.
12385 (enum gomp_target_task_state): New enum.
12386 (struct gomp_target_task): Add state, tgt, task and team fields.
12387 (gomp_create_target_task): Change return type to bool, add
12388 state argument.
12389 (gomp_target_task_fn): Change return type to bool.
12390 (struct gomp_device_descr): Add async_run_func.
12391 (struct gomp_task): Remove children, next_child, prev_child,
12392 next_queue, prev_queue, next_taskgroup, prev_taskgroup.
12393 Add pnode field.
12394 (struct gomp_taskgroup): Remove children.
12395 Add taskgroup_queue.
12396 (struct gomp_team): Change task_queue type to a priority queue.
12397 (splay_compare): Define inline.
12398 (priority_queue_offset): New.
12399 (priority_node_to_task): New.
12400 (task_to_priority_node): New.
12401 * oacc-mem.c: Do not include splay-tree.h.
12402 * priority_queue.c: New file.
12403 * priority_queue.h: New file.
12404 * splay-tree.c: Do not include splay-tree.h.
12405 (splay_tree_foreach_internal): New.
12406 (splay_tree_foreach): New.
12407 * splay-tree.h: Become re-entrant if splay_tree_prefix is defined.
12408 (splay_tree_callback): Define typedef.
12409 * target.c (splay_compare): Move to libgomp.h.
12410 (GOMP_target): Don't adjust *thr in any way around running offloaded
12411 task.
12412 (GOMP_target_ext): Likewise. Handle target nowait.
12413 (GOMP_target_update_ext, GOMP_target_enter_exit_data): Check
12414 return value from gomp_create_target_task, if false, fallthrough
12415 as if no dependencies exist.
12416 (gomp_target_task_fn): Change return type to bool, return true
12417 if the task should have another part scheduled later. Handle
12418 target nowait.
12419 (gomp_load_plugin_for_device): Initialize async_run.
12420 * task.c (gomp_init_task): Initialize children_queue.
12421 (gomp_clear_parent_in_list): New.
12422 (gomp_clear_parent_in_tree): New.
12423 (gomp_clear_parent): Handle priorities.
12424 (GOMP_task): Likewise.
12425 (priority_queue_move_task_first,
12426 gomp_target_task_completion, GOMP_PLUGIN_target_task_completion):
12427 New functions.
12428 (gomp_create_target_task): Use priority queues. Change return type
12429 to bool, add state argument, return false if for async
12430 {{enter,exit} data,update} constructs no dependencies need to be
12431 waited for, handle target nowait. Set task->fn to NULL instead of
12432 gomp_target_task_fn.
12433 (verify_children_queue): Remove.
12434 (priority_list_upgrade_task): New.
12435 (priority_queue_upgrade_task): New.
12436 (verify_task_queue): Remove.
12437 (priority_list_downgrade_task): New.
12438 (priority_queue_downgrade_task): New.
12439 (gomp_task_run_pre): Use priority queues.
12440 Abstract code out to priority_queue_downgrade_task.
12441 (gomp_task_run_post_handle_dependers): Use priority queues.
12442 (gomp_task_run_post_remove_parent): Likewise.
12443 (gomp_task_run_post_remove_taskgroup): Likewise.
12444 (gomp_barrier_handle_tasks): Likewise. Handle target nowait target
12445 tasks specially.
12446 (GOMP_taskwait): Likewise.
12447 (gomp_task_maybe_wait_for_dependencies): Likewise. Abstract code to
12448 priority-queue_upgrade_task.
12449 (GOMP_taskgroup_start): Use priority queues.
12450 (GOMP_taskgroup_end): Likewise. Handle target nowait target tasks
12451 specially. If taskgroup is NULL, and thr->ts.level is 0, act as a
12452 barrier.
12453 * taskloop.c (GOMP_taskloop): Handle priorities.
12454 * team.c (gomp_new_team): Call priority_queue_init.
12455 (free_team): Call priority_queue_free.
12456 (gomp_free_thread): Call gomp_team_end if thr->ts.team is artificial
12457 team created for target nowait in implicit parallel region.
12458 (gomp_team_start): For nested check, test thr->ts.level instead of
12459 thr->ts.team != NULL.
12460 * testsuite/libgomp.c/doacross-3.c: New test.
12461 * testsuite/libgomp.c/ordered-5.c: New test.
12462 * testsuite/libgomp.c/priority.c: New test.
12463 * testsuite/libgomp.c/target-31.c: New test.
12464 * testsuite/libgomp.c/target-32.c: New test.
12465 * testsuite/libgomp.c/target-33.c: New test.
12466 * testsuite/libgomp.c/target-34.c: New test.
12467
12468 2015-11-13 Nathan Sidwell <nathan@codesourcery.com>
12469
12470 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: New.
12471
12472 * testsuite/libgomp.oacc-c-c++-common/collapse-2.c: Sequential
12473 loop is sequential.
12474
12475 2015-11-13 Nathan Sidwell <nathan@codesourcery.com>
12476
12477 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-dbl.c: New.
12478 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-flt.c: New.
12479
12480 2015-11-12 James Norris <jnorris@codesourcery.com>
12481 Joseph Myers <joseph@codesourcery.com>
12482
12483 * libgomp.map (GOACC_2.0.1): Export GOACC_declare.
12484 * oacc-parallel.c (GOACC_declare): New function.
12485 * testsuite/libgomp.oacc-c-c++-common/declare-1.c: New test.
12486 * testsuite/libgomp.oacc-c-c++-common/declare-2.c: Likewise.
12487 * testsuite/libgomp.oacc-c-c++-common/declare-4.c: Likewise.
12488 * testsuite/libgomp.oacc-c-c++-common/declare-5.c: Likewise.
12489 * testsuite/libgomp.oacc-c++/declare-1.C: Likewise.
12490
12491 2015-11-12 Nathan Sidwell <nathan@codesourcery.com>
12492
12493 * testsuite/libgomp.oacc-c-c++-common/default-1.c: New.
12494
12495 2015-11-1 Nathan Sidwell <nathan@codesourcery.com>
12496
12497 * testsuite/libgomp.oacc-c-c++-common/firstprivate-1.c: New.
12498 * testsuite/libgomp.oacc-c-c++-common/firstprivate-2.c: New.
12499
12500 2015-11-09 Nathan Sidwell <nathan@codesourcery.com>
12501
12502 * testsuite/libgomp.oacc-c-c++-common/firstprivate-1.c: Remove
12503 inadvertent commit.
12504
12505 2015-11-09 Nathan Sidwell <nathan@codesourcery.com>
12506
12507 * testsuite/libgomp.oacc-c-c++-common/routine-g-1.c: New.
12508 * testsuite/libgomp.oacc-c-c++-common/routine-gwv-1.c: New.
12509 * testsuite/libgomp.oacc-c-c++-common/routine-v-1.c: New.
12510 * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c: New.
12511 * testsuite/libgomp.oacc-c-c++-common/routine-wv-1.c: New.
12512
12513 2015-11-06 Thomas Schwinge <thomas@codesourcery.com>
12514
12515 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c: XFAIL.
12516 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c: Likewise.
12517
12518 2015-11-05 Jakub Jelinek <jakub@redhat.com>
12519 Ilya Verbin <ilya.verbin@intel.com>
12520
12521 * libgomp_g.h (GOMP_loop_nonmonotonic_dynamic_next,
12522 GOMP_loop_nonmonotonic_dynamic_start,
12523 GOMP_loop_nonmonotonic_guided_next,
12524 GOMP_loop_nonmonotonic_guided_start,
12525 GOMP_loop_ull_nonmonotonic_dynamic_next,
12526 GOMP_loop_ull_nonmonotonic_dynamic_start,
12527 GOMP_loop_ull_nonmonotonic_guided_next,
12528 GOMP_loop_ull_nonmonotonic_guided_start,
12529 GOMP_parallel_loop_nonmonotonic_dynamic,
12530 GOMP_parallel_loop_nonmonotonic_guided): New prototypes.
12531 (GOMP_target_41): Renamed to ...
12532 (GOMP_target_ext): ... this. Add num_teams and thread_limit
12533 arguments.
12534 (GOMP_target_data_41): Renamed to ...
12535 (GOMP_target_data_ext): ... this.
12536 (GOMP_target_update_41): Renamed to ...
12537 (GOMP_target_update_ext): ... this.
12538 * libgomp.map (GOMP_4.5): Export GOMP_target_ext,
12539 GOMP_target_data_ext and GOMP_target_update_ext instead of
12540 GOMP_target_41, GOMP_target_data_41 and GOMP_target_update_41.
12541 Export GOMP_loop_nonmonotonic_dynamic_next,
12542 GOMP_loop_nonmonotonic_dynamic_start,
12543 GOMP_loop_nonmonotonic_guided_next,
12544 GOMP_loop_nonmonotonic_guided_start,
12545 GOMP_loop_ull_nonmonotonic_dynamic_next,
12546 GOMP_loop_ull_nonmonotonic_dynamic_start,
12547 GOMP_loop_ull_nonmonotonic_guided_next,
12548 GOMP_loop_ull_nonmonotonic_guided_start,
12549 GOMP_parallel_loop_nonmonotonic_dynamic and
12550 GOMP_parallel_loop_nonmonotonic_guided.
12551 * loop.c (GOMP_parallel_loop_nonmonotonic_dynamic,
12552 GOMP_parallel_loop_nonmonotonic_guided,
12553 GOMP_loop_nonmonotonic_dynamic_start,
12554 GOMP_loop_nonmonotonic_guided_start,
12555 GOMP_loop_nonmonotonic_dynamic_next,
12556 GOMP_loop_nonmonotonic_guided_next): New aliases or functions.
12557 * loop_ull.c (GOMP_loop_ull_nonmonotonic_dynamic_start,
12558 GOMP_loop_ull_nonmonotonic_guided_start,
12559 GOMP_loop_ull_nonmonotonic_dynamic_next,
12560 GOMP_loop_ull_nonmonotonic_guided_next): Likewise.
12561 * target.c (gomp_map_0len_lookup, gomp_map_val): New inline
12562 functions.
12563 (gomp_map_vars): Handle GOMP_MAP_ALWAYS_POINTER. For
12564 GOMP_MAP_ZERO_LEN_ARRAY_SECTION use gomp_map_0len_lookup.
12565 Use gomp_map_val function.
12566 (gomp_target_fallback_firstprivate): New static function.
12567 (GOMP_target_41): Renamed to ...
12568 (GOMP_target_ext): ... this. Add num_teams and thread_limit
12569 arguments. Move firstprivate fallback handling into a new
12570 function.
12571 (GOMP_target_data_41): Renamed to ...
12572 (GOMP_target_data_ext): ... this.
12573 (GOMP_target_update_41): Renamed to ...
12574 (GOMP_target_update_ext): ... this.
12575 (gomp_exit_data): For GOMP_MAP_*ZERO_LEN* use
12576 gomp_map_0len_lookup instead of gomp_map_lookup.
12577 (omp_target_is_present): Use gomp_map_0len_lookup instead of
12578 gomp_map_lookup.
12579 * testsuite/libgomp.c/target-28.c: Likewise.
12580 * testsuite/libgomp.c/monotonic-1.c: New test.
12581 * testsuite/libgomp.c/monotonic-2.c: New test.
12582 * testsuite/libgomp.c/nonmonotonic-1.c: New test.
12583 * testsuite/libgomp.c/nonmonotonic-2.c: New test.
12584 * testsuite/libgomp.c/pr66199-5.c: New test.
12585 * testsuite/libgomp.c/pr66199-6.c: New test.
12586 * testsuite/libgomp.c/pr66199-7.c: New test.
12587 * testsuite/libgomp.c/pr66199-8.c: New test.
12588 * testsuite/libgomp.c/pr66199-9.c: New test.
12589 * testsuite/libgomp.c/reduction-11.c: New test.
12590 * testsuite/libgomp.c/reduction-12.c: New test.
12591 * testsuite/libgomp.c/reduction-13.c: New test.
12592 * testsuite/libgomp.c/reduction-14.c: New test.
12593 * testsuite/libgomp.c/reduction-15.c: New test.
12594 * testsuite/libgomp.c/target-12.c (main): Adjust for
12595 omp_target_is_present change for one-past-last element.
12596 * testsuite/libgomp.c/target-17.c (foo): Drop tests where
12597 the same var is both mapped and privatized.
12598 * testsuite/libgomp.c/target-19.c (foo): Adjust for different
12599 handling of zero-length array sections.
12600 * testsuite/libgomp.c/target-28.c: New test.
12601 * testsuite/libgomp.c/target-29.c: New test.
12602 * testsuite/libgomp.c/target-30.c: New test.
12603 * testsuite/libgomp.c/target-teams-1.c: New test.
12604 * testsuite/libgomp.c++/member-6.C: New test.
12605 * testsuite/libgomp.c++/member-7.C: New test.
12606 * testsuite/libgomp.c++/monotonic-1.C: New test.
12607 * testsuite/libgomp.c++/monotonic-2.C: New test.
12608 * testsuite/libgomp.c++/nonmonotonic-1.C: New test.
12609 * testsuite/libgomp.c++/nonmonotonic-2.C: New test.
12610 * testsuite/libgomp.c++/pr66199-3.C: New test.
12611 * testsuite/libgomp.c++/pr66199-4.C: New test.
12612 * testsuite/libgomp.c++/pr66199-5.C: New test.
12613 * testsuite/libgomp.c++/pr66199-6.C: New test.
12614 * testsuite/libgomp.c++/pr66199-7.C: New test.
12615 * testsuite/libgomp.c++/pr66199-8.C: New test.
12616 * testsuite/libgomp.c++/pr66199-9.C: New test.
12617 * testsuite/libgomp.c++/reduction-11.C: New test.
12618 * testsuite/libgomp.c++/reduction-12.C: New test.
12619 * testsuite/libgomp.c++/target-13.C: New test.
12620 * testsuite/libgomp.c++/target-14.C: New test.
12621 * testsuite/libgomp.c++/target-15.C: New test.
12622 * testsuite/libgomp.c++/target-16.C: New test.
12623 * testsuite/libgomp.c++/target-17.C: New test.
12624 * testsuite/libgomp.c++/target-18.C: New test.
12625 * testsuite/libgomp.c++/target-19.C: New test.
12626
12627 2015-11-04 Nathan Sidwell <nathan@codesourcery.com>
12628
12629 * testsuite/libgomp.oacc-fortran/reduction-1.f90: Fix dimensions
12630 and reduction copy.
12631 * testsuite/libgomp.oacc-fortran/reduction-2.f90: Likewise.
12632 * testsuite/libgomp.oacc-fortran/reduction-3.f90: Likewise.
12633 * testsuite/libgomp.oacc-fortran/reduction-4.f90: Likewise.
12634 * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
12635 * testsuite/libgomp.oacc-c-c++-common/par-reduction-1.c: Likewise.
12636 * testsuite/libgomp.oacc-c-c++-common/reduction-3.c: Likewise.
12637 * testsuite/libgomp.oacc-c-c++-common/collapse-2.c: Likewise.
12638 * testsuite/libgomp.oacc-c-c++-common/par-reduction-2.c: Likewise.
12639 * testsuite/libgomp.oacc-c-c++-common/reduction-4.c: Likewise.
12640 * testsuite/libgomp.oacc-c-c++-common/reduction-initial-1.c: Likewise.
12641 * testsuite/libgomp.oacc-c-c++-common/reduction-1.c: Likewise.
12642 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Likewise.
12643 * testsuite/libgomp.oacc-c-c++-common/reduction-2.c: Likewise.
12644 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: New.
12645
12646 2015-11-04 Nathan Sidwell <nathan@codesourcery.com>
12647
12648 * libgomp.oacc-c-c++-common/loop-red-g-1.c: New.
12649 * libgomp.oacc-c-c++-common/loop-red-gwv-1.c: New.
12650 * libgomp.oacc-c-c++-common/loop-red-v-1.c: New.
12651 * libgomp.oacc-c-c++-common/loop-red-v-2.c: New.
12652 * libgomp.oacc-c-c++-common/loop-red-w-1.c: New.
12653 * libgomp.oacc-c-c++-common/loop-red-w-2.c: New.
12654 * libgomp.oacc-c-c++-common/loop-red-wv-1.c: New.
12655 * libgomp.oacc-fortran/reduction-5.f90: Avoid reference var.
12656
12657 2015-11-03 Nathan Sidwell <nathan@codesourcery.com>
12658
12659 * libgomp.h (struct acc_dispatch_t): Remove args from exec_func.
12660 * plugin/plugin-nvptx.c (nvptx_exec): Remove sizes & kinds arg.
12661 (GOMP_OFFLOAD_openacc_parallel): Likewise.
12662 * oacc-host.c (host_openacc_exec): Likewise.
12663 * oacc-parallel.c (GOACC_parallel_keyed): Adjust exec_func call.
12664
12665 2015-11-03 Julian Brown <julian@codesourcery.com>
12666 Thomas Schwinge <thomas@codesourcery.com>
12667
12668 * testsuite/libgomp.oacc-c-c++-common/par-reduction-1.c: New file.
12669 * testsuite/libgomp.oacc-c-c++-common/par-reduction-2.c: Likewise.
12670 * testsuite/libgomp.oacc-c-c++-common/worker-single-1a.c:
12671 Likewise.
12672 * testsuite/libgomp.oacc-c-c++-common/worker-single-4.c: Likewise.
12673 * testsuite/libgomp.oacc-c-c++-common/worker-single-6.c: Likewise.
12674
12675 2015-11-03 James Norris <jnorris@codesourcery.com>
12676
12677 * testsuite/libgomp.oacc-c-c++-common/atomic_capture-1.c: New
12678 file.
12679 * testsuite/libgomp.oacc-c-c++-common/atomic_capture-2.c:
12680 Likewise.
12681 * testsuite/libgomp.oacc-c-c++-common/atomic_rw-1.c: Likewise.
12682 * testsuite/libgomp.oacc-c-c++-common/atomic_update-1.c: Likewise.
12683 * testsuite/libgomp.oacc-fortran/atomic_capture-1.f90: Likewise.
12684 * testsuite/libgomp.oacc-fortran/atomic_rw-1.f90: New file.
12685 * testsuite/libgomp.oacc-fortran/atomic_update-1.f90: Likewise.
12686
12687 2015-10-29 Nathan Sidwell <nathan@codesourcery.com>
12688
12689 * openacc.h (enum acc_device_t): Reformat. Ensure layout
12690 compatibility.
12691 (enum acc_async_t): Reformat.
12692 (acc_on_device): Declare compatible with builtin and provide C++
12693 wrapper.
12694 * testsuite/libgomp.oacc-c-c++-common/acc-on-device.c: New.
12695
12696 2015-10-29 Thomas Schwinge <thomas@codesourcery.com>
12697 Cesar Philippidis <cesar@codesourcery.com>
12698
12699 * testsuite/libgomp.oacc-c-c++-common/combdir-1.c: Rename to...
12700 * testsuite/libgomp.oacc-c-c++-common/combined-directives-1.c:
12701 ... this. Add a description of the test at the top of the file.
12702 * testsuite/libgomp.oacc-fortran/combdir-1.f90: Rename file to...
12703 * testsuite/libgomp.oacc-fortran/combined-directives-1.f90:
12704 ... this. Add a description of the test at the top of the file.
12705
12706 2015-10-28 Nathan Sidwell <nathan@codesourcery.com>
12707
12708 * testsuite/libgomp.oacc-c-c++-common/loop-g-1.c: New.
12709 * testsuite/libgomp.oacc-c-c++-common/loop-g-2.c: New.
12710 * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c: New.
12711 * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c: New.
12712 * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c: New.
12713 * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c: New.
12714
12715 2015-10-27 Nathan Sidwell <nathan@codesourcery.com>
12716
12717 * plugin/plugin-nvptx.c (nvptx_exec): Remove check on compute
12718 dimensions.
12719
12720 2015-10-27 Thomas Schwinge <thomas@codesourcery.com>
12721
12722 PR testsuite/68063
12723 * testsuite/libgomp.c++/member-1.C (A::m1): Add missing private clause.
12724
12725 2015-10-27 James Norris <jnorris@codesourcery.com>
12726
12727 * testsuite/libgomp.oacc-c-c++-common/combdir-1.c: New file.
12728 * testsuite/libgomp.oacc-fortran/combdir-1.f90: Likewise.
12729
12730 2015-10-26 Thomas Schwinge <thomas@codesourcery.com>
12731
12732 * testsuite/libgomp.oacc-c-c++-common/abort-1.c: Print to stderr.
12733 * testsuite/libgomp.oacc-c-c++-common/abort-3.c: Likewise.
12734
12735 * testsuite/libgomp.oacc-c-c++-common/lib-1.c: Remove explicit
12736 acc_device_nvidia usage.
12737 * testsuite/libgomp.oacc-c-c++-common/lib-10.c: Likewise.
12738 * testsuite/libgomp.oacc-c-c++-common/lib-2.c: Likewise.
12739 * testsuite/libgomp.oacc-c-c++-common/lib-9.c: Likewise.
12740
12741 * oacc-init.c (acc_shutdown): Call gomp_init_targets_once.
12742 * testsuite/libgomp.oacc-c-c++-common/lib-8.c: New file.
12743
12744 PR libgomp/66518
12745 * testsuite/libgomp.oacc-c-c++-common/lib-3.c: Resolve XFAIL.
12746
12747 PR libgomp/65437
12748 PR libgomp/66518
12749 * oacc-mem.c (update_dev_host): Call goacc_lazy_initialize.
12750 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Remove XFAIL.
12751
12752 2015-10-23 Tom de Vries <tom@codesourcery.com>
12753
12754 PR testsuite/68063
12755 * testsuite/libgomp.c++/member-2.C (A::m1): Add missing private clause.
12756
12757 2015-10-20 Nathan Sidwell <nathan@codesourcery.com>
12758
12759 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Set sane
12760 vector_length.
12761 * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
12762
12763 2015-10-14 Ilya Verbin <ilya.verbin@intel.com>
12764 Aleksander Ivanushenko <aleksander.ivanushenko@intel.com>
12765
12766 * target.c (gomp_map_vars): Initialize tgt->tgt_start and tgt->tgt_end
12767 to 0 when mapnum is 0.
12768
12769 2015-10-14 Sebastian Huber <sebastian.huber@embedded-brains.de>
12770
12771 * fortran.c (omp_get_place_proc_ids_, omp_get_partition_place_nums_):
12772 Cast to int from int32_t.
12773
12774 2015-10-13 Jakub Jelinek <jakub@redhat.com>
12775 Aldy Hernandez <aldyh@redhat.com>
12776 Ilya Verbin <ilya.verbin@intel.com>
12777
12778 * config/linux/affinity.c (omp_get_place_num_procs,
12779 omp_get_place_proc_ids, gomp_get_place_proc_ids_8): New functions.
12780 * config/linux/doacross.h: New file.
12781 * config/posix/affinity.c (omp_get_place_num_procs,
12782 omp_get_place_proc_ids, gomp_get_place_proc_ids_8): New functions.
12783 * config/posix/doacross.h: New file.
12784 * env.c: Include gomp-constants.h.
12785 (struct gomp_task_icv): Rename run_sched_modifier to
12786 run_sched_chunk_size.
12787 (gomp_max_task_priority_var): New variable.
12788 (parse_schedule): Rename run_sched_modifier to run_sched_chunk_size.
12789 (handle_omp_display_env): Change _OPENMP value from 201307 to
12790 201511. Print OMP_MAX_TASK_PRIORITY.
12791 (initialize_env): Parse OMP_MAX_TASK_PRIORITY.
12792 (omp_set_schedule, omp_get_schedule): Rename modifier argument to
12793 chunk_size and run_sched_modifier to run_sched_chunk_size.
12794 (omp_get_max_task_priority, omp_get_initial_device,
12795 omp_get_num_places, omp_get_place_num, omp_get_partition_num_places,
12796 omp_get_partition_place_nums): New functions.
12797 * fortran.c (omp_set_schedule_, omp_set_schedule_8_,
12798 omp_get_schedule_, omp_get_schedule_8_): Rename modifier argument
12799 to chunk_size.
12800 (omp_get_num_places_, omp_get_place_num_procs_,
12801 omp_get_place_num_procs_8_, omp_get_place_proc_ids_,
12802 omp_get_place_proc_ids_8_, omp_get_place_num_,
12803 omp_get_partition_num_places_, omp_get_partition_place_nums_,
12804 omp_get_partition_place_nums_8_, omp_get_initial_device_,
12805 omp_get_max_task_priority_): New functions.
12806 * libgomp_g.h (GOMP_loop_doacross_static_start,
12807 GOMP_loop_doacross_dynamic_start, GOMP_loop_doacross_guided_start,
12808 GOMP_loop_doacross_runtime_start, GOMP_loop_ull_doacross_static_start,
12809 GOMP_loop_ull_doacross_dynamic_start,
12810 GOMP_loop_ull_doacross_guided_start,
12811 GOMP_loop_ull_doacross_runtime_start, GOMP_doacross_post,
12812 GOMP_doacross_wait, GOMP_doacross_ull_post, GOMP_doacross_wait,
12813 GOMP_taskloop, GOMP_taskloop_ull, GOMP_target_41,
12814 GOMP_target_data_41, GOMP_target_update_41,
12815 GOMP_target_enter_exit_data): New prototypes.
12816 (GOMP_task): Add prototype argument.
12817 * libgomp.h (_LIBGOMP_CHECKING_): Define to 0 if not yet defined.
12818 (struct gomp_doacross_work_share): New type.
12819 (struct gomp_work_share): Add doacross field.
12820 (struct gomp_task_icv): Rename run_sched_modifier to
12821 run_sched_chunk_size.
12822 (enum gomp_task_kind): Rename GOMP_TASK_IFFALSE to
12823 GOMP_TASK_UNDEFERRED. Add comments.
12824 (struct gomp_task_depend_entry): Add comments.
12825 (struct gomp_task): Likewise.
12826 (struct gomp_taskgroup): Likewise.
12827 (struct gomp_target_task): New type.
12828 (struct gomp_team): Add comment.
12829 (gomp_get_place_proc_ids_8, gomp_doacross_init,
12830 gomp_doacross_ull_init, gomp_task_maybe_wait_for_dependencies,
12831 gomp_create_target_task, gomp_target_task_fn): New prototypes.
12832 (struct target_var_desc): New type.
12833 (struct target_mem_desc): Adjust comment. Use struct
12834 target_var_desc instead of splay_tree_key for list.
12835 (REFCOUNT_INFINITY): Define.
12836 (struct splay_tree_key_s): Remove copy_from field.
12837 (struct gomp_device_descr): Add dev2dev_func field.
12838 (enum gomp_map_vars_kind): New enum.
12839 (gomp_map_vars): Add one argument.
12840 * libgomp.map (OMP_4.5): Export omp_get_max_task_priority,
12841 omp_get_max_task_priority_, omp_get_num_places, omp_get_num_places_,
12842 omp_get_place_num_procs, omp_get_place_num_procs_,
12843 omp_get_place_num_procs_8_, omp_get_place_proc_ids,
12844 omp_get_place_proc_ids_, omp_get_place_proc_ids_8_, omp_get_place_num,
12845 omp_get_place_num_, omp_get_partition_num_places,
12846 omp_get_partition_num_places_, omp_get_partition_place_nums,
12847 omp_get_partition_place_nums_, omp_get_partition_place_nums_8_,
12848 omp_get_initial_device, omp_get_initial_device_, omp_target_alloc,
12849 omp_target_free, omp_target_is_present, omp_target_memcpy,
12850 omp_target_memcpy_rect, omp_target_associate_ptr and
12851 omp_target_disassociate_ptr.
12852 (GOMP_4.0.2): Renamed to ...
12853 (GOMP_4.5): ... this. Export GOMP_target_41, GOMP_target_data_41,
12854 GOMP_target_update_41, GOMP_target_enter_exit_data, GOMP_taskloop,
12855 GOMP_taskloop_ull, GOMP_loop_doacross_dynamic_start,
12856 GOMP_loop_doacross_guided_start, GOMP_loop_doacross_runtime_start,
12857 GOMP_loop_doacross_static_start, GOMP_doacross_post,
12858 GOMP_doacross_wait, GOMP_loop_ull_doacross_dynamic_start,
12859 GOMP_loop_ull_doacross_guided_start,
12860 GOMP_loop_ull_doacross_runtime_start,
12861 GOMP_loop_ull_doacross_static_start, GOMP_doacross_ull_post and
12862 GOMP_doacross_ull_wait.
12863 * libgomp.texi: Document omp_get_max_task_priority.
12864 Rename modifier argument to chunk_size for omp_set_schedule and
12865 omp_get_schedule. Document OMP_MAX_TASK_PRIORITY env var.
12866 * loop.c (GOMP_loop_runtime_start): Adjust for run_sched_modifier
12867 to run_sched_chunk_size renaming.
12868 (GOMP_loop_ordered_runtime_start): Likewise.
12869 (gomp_loop_doacross_static_start, gomp_loop_doacross_dynamic_start,
12870 gomp_loop_doacross_guided_start, GOMP_loop_doacross_runtime_start,
12871 GOMP_parallel_loop_runtime_start): New functions.
12872 (GOMP_parallel_loop_runtime): Adjust for run_sched_modifier
12873 to run_sched_chunk_size renaming.
12874 (GOMP_loop_doacross_static_start, GOMP_loop_doacross_dynamic_start,
12875 GOMP_loop_doacross_guided_start): New functions or aliases.
12876 * loop_ull.c (GOMP_loop_ull_runtime_start): Adjust for
12877 run_sched_modifier to run_sched_chunk_size renaming.
12878 (GOMP_loop_ull_ordered_runtime_start): Likewise.
12879 (gomp_loop_ull_doacross_static_start,
12880 gomp_loop_ull_doacross_dynamic_start,
12881 gomp_loop_ull_doacross_guided_start,
12882 GOMP_loop_ull_doacross_runtime_start): New functions.
12883 (GOMP_loop_ull_doacross_static_start,
12884 GOMP_loop_ull_doacross_dynamic_start,
12885 GOMP_loop_ull_doacross_guided_start): New functions or aliases.
12886 * oacc-mem.c (acc_map_data, present_create_copy,
12887 gomp_acc_insert_pointer): Pass GOMP_MAP_VARS_OPENACC instead of false
12888 to gomp_map_vars.
12889 (gomp_acc_remove_pointer): Use copy_from from target_var_desc.
12890 * oacc-parallel.c (GOACC_data_start): Pass GOMP_MAP_VARS_OPENACC
12891 instead of false to gomp_map_vars.
12892 (GOACC_parallel_keyed): Likewise. Use copy_from from target_var_desc.
12893 * omp.h.in (omp_lock_hint_t): New type.
12894 (omp_init_lock_with_hint, omp_init_nest_lock_with_hint,
12895 omp_get_num_places, omp_get_place_num_procs, omp_get_place_proc_ids,
12896 omp_get_place_num, omp_get_partition_num_places,
12897 omp_get_partition_place_nums, omp_get_initial_device,
12898 omp_get_max_task_priority, omp_target_alloc, omp_target_free,
12899 omp_target_is_present, omp_target_memcpy, omp_target_memcpy_rect,
12900 omp_target_associate_ptr, omp_target_disassociate_ptr): New
12901 prototypes.
12902 * omp_lib.f90.in (omp_lock_hint_kind): New parameter.
12903 (omp_lock_hint_none, omp_lock_hint_uncontended,
12904 omp_lock_hint_contended, omp_lock_hint_nonspeculative,
12905 omp_lock_hint_speculative): New parameters.
12906 (omp_init_lock_with_hint, omp_init_nest_lock_with_hint,
12907 omp_get_num_places, omp_get_place_num_procs, omp_get_place_proc_ids,
12908 omp_get_place_num, omp_get_partition_num_places,
12909 omp_get_partition_place_nums, omp_get_initial_device,
12910 omp_get_max_task_priority): New interfaces.
12911 (omp_set_schedule, omp_get_schedule): Rename modifier argument
12912 to chunk_size.
12913 * omp_lib.h.in (omp_lock_hint_kind): New parameter.
12914 (omp_lock_hint_none, omp_lock_hint_uncontended,
12915 omp_lock_hint_contended, omp_lock_hint_nonspeculative,
12916 omp_lock_hint_speculative): New parameters.
12917 (omp_init_lock_with_hint, omp_init_nest_lock_with_hint,
12918 omp_get_num_places, omp_get_place_num_procs, omp_get_place_proc_ids,
12919 omp_get_place_num, omp_get_partition_num_places,
12920 omp_get_partition_place_nums, omp_get_initial_device,
12921 omp_get_max_task_priority): New functions and subroutines.
12922 * ordered.c: Include stdarg.h and string.h.
12923 (MAX_COLLAPSED_BITS): Define.
12924 (gomp_doacross_init, GOMP_doacross_post, GOMP_doacross_wait,
12925 gomp_doacross_ull_init, GOMP_doacross_ull_post,
12926 GOMP_doacross_ull_wait): New functions.
12927 * target.c: Include errno.h.
12928 (resolve_device): If device is not initialized, call
12929 gomp_init_device on it.
12930 (gomp_map_lookup): New function.
12931 (gomp_map_vars_existing): Add tgt_var argument, fill it in.
12932 Don't bump refcount if REFCOUNT_INFINITY. Handle
12933 GOMP_MAP_ALWAYS_TO_P.
12934 (get_kind): Rename is_openacc argument to short_mapkind.
12935 (gomp_map_pointer): Use gomp_map_lookup.
12936 (gomp_map_fields_existing): New function.
12937 (gomp_map_vars): Rename is_openacc argument to short_mapkind
12938 and is_target to pragma_kind. Handle GOMP_MAP_VARS_ENTER_DATA,
12939 handle GOMP_MAP_FIRSTPRIVATE_INT, GOMP_MAP_STRUCT,
12940 GOMP_MAP_USE_DEVICE_PTR, GOMP_MAP_ZERO_LEN_ARRAY_SECTION.
12941 Adjust for tgt->list changed type and copy_from living in there.
12942 (gomp_copy_from_async): Adjust for tgt->list changed type and
12943 copy_from living in there.
12944 (gomp_unmap_vars): Likewise.
12945 (gomp_update): Likewise. Rename is_openacc argument to
12946 short_mapkind. Don't fail if object is not mapped.
12947 (gomp_load_image_to_device): Initialize refcount to
12948 REFCOUNT_INFINITY.
12949 (gomp_target_fallback): New function.
12950 (gomp_get_target_fn_addr): Likewise.
12951 (GOMP_target): Adjust gomp_map_vars caller, use
12952 gomp_get_target_fn_addr and gomp_target_fallback.
12953 (GOMP_target_41): New function.
12954 (gomp_target_data_fallback): New function.
12955 (GOMP_target_data): Use it, adjust gomp_map_vars caller.
12956 (GOMP_target_data_41): New function.
12957 (GOMP_target_update): Adjust gomp_update caller.
12958 (GOMP_target_update_41): New function.
12959 (gomp_exit_data, GOMP_target_enter_exit_data,
12960 gomp_target_task_fn, omp_target_alloc, omp_target_free,
12961 omp_target_is_present, omp_target_memcpy,
12962 omp_target_memcpy_rect_worker, omp_target_memcpy_rect,
12963 omp_target_associate_ptr, omp_target_disassociate_ptr,
12964 gomp_load_plugin_for_device): New functions.
12965 * task.c: Include gomp-constants.h. Include taskloop.c
12966 twice to get GOMP_taskloop and GOMP_taskloop_ull definitions.
12967 (gomp_task_handle_depend): New function.
12968 (GOMP_task): Use it. Add priority argument. Use
12969 gomp-constant.h constants instead of hardcoded numbers.
12970 Rename GOMP_TASK_IFFALSE to GOMP_TASK_UNDEFERRED.
12971 (gomp_create_target_task): New function.
12972 (verify_children_queue, verify_taskgroup_queue,
12973 verify_task_queue): New functions.
12974 (gomp_task_run_pre): Call verify_*_queue functions.
12975 If an upcoming tied task is about to leave the sibling or
12976 taskgroup queues in an invalid state, adjust appropriately.
12977 Remove taskgroup argument. Add comments.
12978 (gomp_task_run_post_handle_dependers): Add comments.
12979 (gomp_task_run_post_remove_parent): Likewise.
12980 (gomp_barrier_handle_tasks): Adjust gomp_task_run_pre caller.
12981 (GOMP_taskwait): Likewise. Add comments.
12982 (gomp_task_maybe_wait_for_dependencies): Fix scheduling
12983 problem such that the first non parent_depends_on task does not
12984 end up at the end of the children queue.
12985 (GOMP_taskgroup_start): Rename GOMP_TASK_IFFALSE to
12986 GOMP_TASK_UNDEFERRED.
12987 (GOMP_taskgroup_end): Adjust gomp_task_run_pre caller.
12988 * taskloop.c: New file.
12989 * testsuite/lib/libgomp.exp
12990 (check_effective_target_offload_device_nonshared_as): New proc.
12991 * testsuite/libgomp.c/affinity-2.c: New test.
12992 * testsuite/libgomp.c/doacross-1.c: New test.
12993 * testsuite/libgomp.c/doacross-2.c: New test.
12994 * testsuite/libgomp.c/examples-4/declare_target-1.c (fib_wrapper):
12995 Add map clause to target.
12996 * testsuite/libgomp.c/examples-4/declare_target-4.c (accum): Likewise.
12997 * testsuite/libgomp.c/examples-4/declare_target-5.c (accum): Likewise.
12998 * testsuite/libgomp.c/examples-4/device-1.c (main): Likewise.
12999 * testsuite/libgomp.c/examples-4/device-3.c (main): Likewise.
13000 * testsuite/libgomp.c/examples-4/target_data-3.c (gramSchmidt):
13001 Likewise.
13002 * testsuite/libgomp.c/examples-4/teams-2.c (dotprod): Likewise.
13003 * testsuite/libgomp.c/examples-4/teams-3.c (dotprod): Likewise.
13004 * testsuite/libgomp.c/examples-4/teams-4.c (dotprod): Likewise.
13005 * testsuite/libgomp.c/for-2.h (OMPTGT, OMPTO, OMPFROM): Define if
13006 not defined. Use those where needed.
13007 * testsuite/libgomp.c/for-4.c: New test.
13008 * testsuite/libgomp.c/for-5.c: New test.
13009 * testsuite/libgomp.c/for-6.c: New test.
13010 * testsuite/libgomp.c/linear-1.c: New test.
13011 * testsuite/libgomp.c/ordered-4.c: New test.
13012 * testsuite/libgomp.c/pr66199-2.c (f2): Adjust for linear clause
13013 only allowed on the loop iterator.
13014 * testsuite/libgomp.c/pr66199-3.c: New test.
13015 * testsuite/libgomp.c/pr66199-4.c: New test.
13016 * testsuite/libgomp.c/reduction-7.c: New test.
13017 * testsuite/libgomp.c/reduction-8.c: New test.
13018 * testsuite/libgomp.c/reduction-9.c: New test.
13019 * testsuite/libgomp.c/reduction-10.c: New test.
13020 * testsuite/libgomp.c/target-1.c (fn2, fn3, fn4): Add
13021 map(tofrom:s).
13022 * testsuite/libgomp.c/target-2.c (fn2, fn3, fn4): Likewise.
13023 * testsuite/libgomp.c/target-7.c (foo): Add map(h) where needed.
13024 * testsuite/libgomp.c/target-11.c: New test.
13025 * testsuite/libgomp.c/target-12.c: New test.
13026 * testsuite/libgomp.c/target-13.c: New test.
13027 * testsuite/libgomp.c/target-14.c: New test.
13028 * testsuite/libgomp.c/target-15.c: New test.
13029 * testsuite/libgomp.c/target-16.c: New test.
13030 * testsuite/libgomp.c/target-17.c: New test.
13031 * testsuite/libgomp.c/target-18.c: New test.
13032 * testsuite/libgomp.c/target-19.c: New test.
13033 * testsuite/libgomp.c/target-20.c: New test.
13034 * testsuite/libgomp.c/target-21.c: New test.
13035 * testsuite/libgomp.c/target-22.c: New test.
13036 * testsuite/libgomp.c/target-23.c: New test.
13037 * testsuite/libgomp.c/target-24.c: New test.
13038 * testsuite/libgomp.c/target-25.c: New test.
13039 * testsuite/libgomp.c/target-26.c: New test.
13040 * testsuite/libgomp.c/target-27.c: New test.
13041 * testsuite/libgomp.c/taskloop-1.c: New test.
13042 * testsuite/libgomp.c/taskloop-2.c: New test.
13043 * testsuite/libgomp.c/taskloop-3.c: New test.
13044 * testsuite/libgomp.c/taskloop-4.c: New test.
13045 * testsuite/libgomp.c++/ctor-13.C: New test.
13046 * testsuite/libgomp.c++/doacross-1.C: New test.
13047 * testsuite/libgomp.c++/examples-4/declare_target-2.C:
13048 Replace offload_device with offload_device_nonshared_as.
13049 * testsuite/libgomp.c++/for-12.C: New test.
13050 * testsuite/libgomp.c++/for-13.C: New test.
13051 * testsuite/libgomp.c++/for-14.C: New test.
13052 * testsuite/libgomp.c++/linear-1.C: New test.
13053 * testsuite/libgomp.c++/member-1.C: New test.
13054 * testsuite/libgomp.c++/member-2.C: New test.
13055 * testsuite/libgomp.c++/member-3.C: New test.
13056 * testsuite/libgomp.c++/member-4.C: New test.
13057 * testsuite/libgomp.c++/member-5.C: New test.
13058 * testsuite/libgomp.c++/ordered-1.C: New test.
13059 * testsuite/libgomp.c++/reduction-5.C: New test.
13060 * testsuite/libgomp.c++/reduction-6.C: New test.
13061 * testsuite/libgomp.c++/reduction-7.C: New test.
13062 * testsuite/libgomp.c++/reduction-8.C: New test.
13063 * testsuite/libgomp.c++/reduction-9.C: New test.
13064 * testsuite/libgomp.c++/reduction-10.C: New test.
13065 * testsuite/libgomp.c++/reference-1.C: New test.
13066 * testsuite/libgomp.c++/simd14.C: New test.
13067 * testsuite/libgomp.c++/target-2.C (fn2): Add map(tofrom: s) clause.
13068 * testsuite/libgomp.c++/target-5.C: New test.
13069 * testsuite/libgomp.c++/target-6.C: New test.
13070 * testsuite/libgomp.c++/target-7.C: New test.
13071 * testsuite/libgomp.c++/target-8.C: New test.
13072 * testsuite/libgomp.c++/target-9.C: New test.
13073 * testsuite/libgomp.c++/target-10.C: New test.
13074 * testsuite/libgomp.c++/target-11.C: New test.
13075 * testsuite/libgomp.c++/target-12.C: New test.
13076 * testsuite/libgomp.c++/taskloop-1.C: New test.
13077 * testsuite/libgomp.c++/taskloop-2.C: New test.
13078 * testsuite/libgomp.c++/taskloop-3.C: New test.
13079 * testsuite/libgomp.c++/taskloop-4.C: New test.
13080 * testsuite/libgomp.c++/taskloop-5.C: New test.
13081 * testsuite/libgomp.c++/taskloop-6.C: New test.
13082 * testsuite/libgomp.c++/taskloop-7.C: New test.
13083 * testsuite/libgomp.c++/taskloop-8.C: New test.
13084 * testsuite/libgomp.c++/taskloop-9.C: New test.
13085 * testsuite/libgomp.fortran/affinity1.f90: New test.
13086 * testsuite/libgomp.fortran/affinity2.f90: New test.
13087
13088 2015-10-13 Tom de Vries <tom@codesourcery.com>
13089
13090 PR tree-optimization/67476
13091 * testsuite/libgomp.c/autopar-3.c: New test.
13092 * testsuite/libgomp.c/autopar-4.c: New test.
13093 * testsuite/libgomp.c/autopar-5.c: New test.
13094 * testsuite/libgomp.c/autopar-6.c: New test.
13095 * testsuite/libgomp.c/autopar-7.c: New test.
13096 * testsuite/libgomp.c/autopar-8.c: New test.
13097
13098 2015-10-12 James Norris <jnorris@codesourcery.com>
13099
13100 * testsuite/libgomp.oacc-c-c++-common/vector-loop.c: Fix loop
13101 initializer.
13102
13103 2015-10-09 David Malcolm <dmalcolm@redhat.com>
13104
13105 * testsuite/lib/libgomp.exp: Load multiline.exp before prune.exp,
13106 using load_gcc_lib.
13107
13108 2015-10-02 Thomas Schwinge <thomas@codesourcery.com>
13109
13110 * oacc-ptx.h: Remove file, moving its content into...
13111 * config/nvptx/fortran.c: ... here...
13112 * config/nvptx/oacc-init.c: ..., here...
13113 * config/nvptx/oacc-parallel.c: ..., and here.
13114 * config/nvptx/openacc.f90: New file.
13115 * plugin/plugin-nvptx.c: Don't include "oacc-ptx.h".
13116 (link_ptx): Don't link in predefined bits of PTX code.
13117
13118 2015-09-30 Nathan Sidwell <nathan@codesourcery.com>
13119 Bernd Schmidt <bernds@codesourcery.com>
13120
13121 * plugin/plugin-nvptx.c (targ_fn_launch): Use GOMP_DIM_MAX.
13122 (struct targ_ptx_obj): New.
13123 (nvptx_tdata): Move earlier, change data format.
13124 (link_ptx): Take targ_ptx_obj ptr and count. Allow multiple
13125 objects.
13126 (GOMP_OFFLOAD_load_image): Adjust.
13127
13128 2015-09-30 Thomas Schwinge <thomas@codesourcery.com>
13129
13130 * testsuite/libgomp.oacc-c-c++-common/abort-1.c: Add checkpoint.
13131 * testsuite/libgomp.oacc-c-c++-common/abort-3.c: Likewise.
13132 * testsuite/libgomp.oacc-c-c++-common/clauses-2.c: Likewise.
13133 * testsuite/libgomp.oacc-c-c++-common/data-already-1.c: Likewise.
13134 * testsuite/libgomp.oacc-c-c++-common/data-already-2.c: Likewise.
13135 * testsuite/libgomp.oacc-c-c++-common/data-already-3.c: Likewise.
13136 * testsuite/libgomp.oacc-c-c++-common/data-already-4.c: Likewise.
13137 * testsuite/libgomp.oacc-c-c++-common/data-already-5.c: Likewise.
13138 * testsuite/libgomp.oacc-c-c++-common/data-already-6.c: Likewise.
13139 * testsuite/libgomp.oacc-c-c++-common/data-already-7.c: Likewise.
13140 * testsuite/libgomp.oacc-c-c++-common/data-already-8.c: Likewise.
13141 * testsuite/libgomp.oacc-c-c++-common/lib-1.c: Likewise.
13142 * testsuite/libgomp.oacc-c-c++-common/lib-11.c: Likewise.
13143 * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
13144 * testsuite/libgomp.oacc-c-c++-common/lib-17.c: Likewise.
13145 * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
13146 * testsuite/libgomp.oacc-c-c++-common/lib-2.c: Likewise.
13147 * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
13148 * testsuite/libgomp.oacc-c-c++-common/lib-21.c: Likewise.
13149 * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Likewise.
13150 * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
13151 * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
13152 * testsuite/libgomp.oacc-c-c++-common/lib-26.c: Likewise.
13153 * testsuite/libgomp.oacc-c-c++-common/lib-27.c: Likewise.
13154 * testsuite/libgomp.oacc-c-c++-common/lib-28.c: Likewise.
13155 * testsuite/libgomp.oacc-c-c++-common/lib-29.c: Likewise.
13156 * testsuite/libgomp.oacc-c-c++-common/lib-3.c: Likewise.
13157 * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
13158 * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
13159 * testsuite/libgomp.oacc-c-c++-common/lib-35.c: Likewise.
13160 * testsuite/libgomp.oacc-c-c++-common/lib-36.c: Likewise.
13161 * testsuite/libgomp.oacc-c-c++-common/lib-39.c: Likewise.
13162 * testsuite/libgomp.oacc-c-c++-common/lib-4.c: Likewise.
13163 * testsuite/libgomp.oacc-c-c++-common/lib-40.c: Likewise.
13164 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
13165 * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Likewise.
13166 * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
13167 * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Likewise.
13168 * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
13169 * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Likewise.
13170 * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
13171 * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
13172 * testsuite/libgomp.oacc-c-c++-common/lib-57.c: Likewise.
13173 * testsuite/libgomp.oacc-c-c++-common/lib-58.c: Likewise.
13174 * testsuite/libgomp.oacc-c-c++-common/lib-62.c: Likewise.
13175 * testsuite/libgomp.oacc-c-c++-common/lib-63.c: Likewise.
13176 * testsuite/libgomp.oacc-c-c++-common/lib-64.c: Likewise.
13177 * testsuite/libgomp.oacc-c-c++-common/lib-65.c: Likewise.
13178 * testsuite/libgomp.oacc-c-c++-common/lib-67.c: Likewise.
13179 * testsuite/libgomp.oacc-c-c++-common/lib-68.c: Likewise.
13180 * testsuite/libgomp.oacc-c-c++-common/lib-71.c: Likewise.
13181 * testsuite/libgomp.oacc-c-c++-common/lib-77.c: Likewise.
13182 * testsuite/libgomp.oacc-c-c++-common/lib-80.c: Likewise.
13183 * testsuite/libgomp.oacc-c-c++-common/present-1.c: Likewise.
13184 * testsuite/libgomp.oacc-fortran/abort-1.f90: Likewise.
13185 * testsuite/libgomp.oacc-fortran/data-already-1.f: Likewise.
13186 * testsuite/libgomp.oacc-fortran/data-already-2.f: Likewise.
13187 * testsuite/libgomp.oacc-fortran/data-already-3.f: Likewise.
13188 * testsuite/libgomp.oacc-fortran/data-already-4.f: Likewise.
13189 * testsuite/libgomp.oacc-fortran/data-already-5.f: Likewise.
13190 * testsuite/libgomp.oacc-fortran/data-already-6.f: Likewise.
13191 * testsuite/libgomp.oacc-fortran/data-already-7.f: Likewise.
13192 * testsuite/libgomp.oacc-fortran/data-already-8.f: Likewise.
13193
13194 2015-09-29 Nathan Sidwell <nathan@codesourcery.com>
13195
13196 * oacc-init.c (acc_on_device): Force optimization level.
13197
13198 2015-09-29 Nathan Sidwell <nathan@codesourcery.com>
13199
13200 * plugin/plugin-nvptx.c (ARRAYSIZE): Delete.
13201 (cuda_errlist): Delete.
13202 (cuda_error): Reimplement.
13203
13204 2015-09-28 Nathan Sidwell <nathan@codesourcery.com>
13205
13206 * libgomp.h (acc_dispatch_t): Replace separate geometry args with
13207 array.
13208 * libgomp.map (GOACC_parallel_keyed): New.
13209 * oacc-parallel.c (goacc_wait): Take pointer to va_list. Adjust
13210 all callers.
13211 (GOACC_parallel_keyed): New interface. Lose geometry arguments
13212 and take keyed varargs list. Adjust call to exec_func.
13213 (GOACC_parallel): Force host fallback.
13214 * libgomp_g.h (GOACC_parallel): Remove.
13215 (GOACC_parallel_keyed): Declare.
13216 * plugin/plugin-nvptx.c (struct targ_fn_launch): New struct.
13217 (struct targ_gn_descriptor): Replace name field with launch field.
13218 (nvptx_exec): Lose separate geometry args, take array. Process
13219 dynamic dimensions and adjust.
13220 (struct nvptx_tdata): Replace fn_names field with fn_descs.
13221 (GOMP_OFFLOAD_load_image): Adjust for change in function table
13222 data.
13223 (GOMP_OFFLOAD_openacc_parallel): Adjust for change in dimension
13224 passing.
13225 * oacc-host.c (host_openacc_exec): Adjust for change in dimension
13226 passing.
13227
13228 2015-09-22 Chung-Lin Tang <cltang@codesourcery.com>
13229
13230 PR libgomp/67141
13231 * oacc-int.h (goacc_host_init): Add declaration.
13232 * oacc-host.c (goacc_host_init): Remove static and constructor attribute.
13233 * oacc-init.c (goacc_runtime_initialize): Call goacc_host_init() at end.
13234
13235 2015-09-08 Aditya Kumar <hiraditya@msn.com>
13236 Sebastian Pop <s.pop@samsung.com>
13237
13238 * testsuite/libgomp.graphite/bounds.c (int foo): Modified test case to
13239 match o/p.
13240 * testsuite/libgomp.graphite/force-parallel-1.c (void parloop): Same.
13241 * testsuite/libgomp.graphite/force-parallel-4.c: Same.
13242 * testsuite/libgomp.graphite/force-parallel-5.c: Same.
13243 * testsuite/libgomp.graphite/force-parallel-7.c: Same.
13244 * testsuite/libgomp.graphite/force-parallel-8.c: Same.
13245
13246 2015-09-03 Jakub Jelinek <jakub@redhat.com>
13247
13248 * configure.tgt: Add missing ;; in between nvptx and rtems
13249 snippets.
13250
13251 2015-09-03 Sebastian Huber <sebastian.huber@embedded-brains.de>
13252
13253 * config/posix/pool.h (gomp_adjust_thread_attr): New.
13254 * config/rtems/pool.h (gomp_adjust_thread_attr): Likewise.
13255 (gomp_thread_pool_reservoir): Add priority member.
13256 * confi/rtems/proc.c (allocate_thread_pool_reservoir): Add
13257 priority.
13258 (parse_thread_pools): Likewise.
13259 * team.c (gomp_team_start): Call configuration provided
13260 gomp_adjust_thread_attr(). Destroy thread attributes if
13261 necessary.
13262 * libgomp.texi: Document GOMP_RTEMS_THREAD_POOLS.
13263
13264 2015-09-03 Sebastian Huber <sebastian.huber@embedded-brains.de>
13265
13266 * config/posix/pool.h: New.
13267 * config/rtems/pool.h: Likewise.
13268 * config/rtems/proc.c: Likewise.
13269 * libgomp.h (gomp_thread_destructor): Declare.
13270 * team.c: Include configuration provided "pool.h".
13271 (gomp_get_thread_pool): Define in configuration.
13272 (gomp_team_end): Call configuration defined
13273 gomp_release_thread_pool().
13274
13275 2015-09-03 Sebastian Huber <sebastian.huber@embedded-brains.de>
13276
13277 * config/rtems/bar.c: New.
13278 * config/rtems/bar.h: Likewise.
13279 * config/rtems/mutex.c: Likewise.
13280 * config/rtems/mutex.h: Likewise.
13281 * config/rtems/sem.c: Likewise.
13282 * config/rtems/sem.h: Likewise.
13283 * configure.ac (*-*-rtems*): Check that Newlib provides a proper
13284 <sys/lock.h> header file.
13285 * configure.tgt (*-*-rtems*): Enable RTEMS configuration if
13286 supported by Newlib.
13287 * configure: Regenerate.
13288
13289 2015-09-03 Sebastian Huber <sebastian.huber@embedded-brains.de>
13290
13291 * team.c (gomp_new_thread_pool): Delete and move content to ...
13292 (gomp_get_thread_pool): ... new function. Allocate and
13293 initialize thread pool on demand.
13294 (get_last_team): Use gomp_get_thread_pool().
13295 (gomp_team_start): Delete thread pool initialization.
13296
13297 2015-09-03 Tom de Vries <tom@codesourcery.com>
13298
13299 PR tree-optimization/65637
13300 * testsuite/libgomp.c/autopar-2.c: New test.
13301
13302 2015-08-29 Tom de Vries <tom@codesourcery.com>
13303
13304 PR tree-optimization/46193
13305 * testsuite/libgomp.c/pr46193.c: New test.
13306
13307 2015-08-24 Nathan Sidwell <nathan@codesourcery.com>
13308
13309 libgomp/
13310 * libgomp.map: Add 4.0.2 version.
13311 * target.c (offload_image_descr): Add version field.
13312 (gomp_load_image_to_device): Add version argument. Adjust plugin
13313 call. Improve load mismatch diagnostic.
13314 (gomp_unload_image_from_device): Add version argument. Adjust plugin
13315 call.
13316 (GOMP_offload_regster): Make stub function, move bulk to ...
13317 (GOMP_offload_register_ver): ... here. Process version argument.
13318 (GOMP_offload_unregister): Make stub function, move bulk to ...
13319 (GOMP_offload_unregister_ver): ... here. Process version argument.
13320 (gomp_init_device): Process version field.
13321 (gomp_unload_device): Process version field.
13322 (gomp_load_plugin_for_device): Reimplement DLSYM & DLSYM_OPT
13323 macros. Check plugin version.
13324 * libgomp.h (gomp_device_descr): Add version function field. Adjust
13325 loader and unloader types.
13326 * oacc-host.c: Include gomp-constants.h.
13327 (host_version): New.
13328 (host_load_image, host_unload_image): Adjust.
13329 (host_dispatch): Add host_version.
13330 * plugin/plugin-nvptx.c: Include gomp-constants.h.
13331 (GOMP_OFFLOAD_version): New.
13332 (GOMP_OFFLOAD_load_image): Add version arg and check it.
13333 (GOMP_OFFLOAD_unload_image): Likewise.
13334 * plugin/plugin-host.c: Include gomp-constants.h.
13335 (GOMP_OFFLOAD_version): New.
13336 (GOMP_OFFLOAD_load_image): Add version arg.
13337 (GOMP_OFFLOAD_unload_image): Likewise.
13338
13339 2015-08-24 Tom de Vries <tom@codesourcery.com>
13340
13341 PR tree-optimization/65468
13342 * testsuite/libgomp.oacc-c-c++-common/vector-loop.c: New test.
13343
13344 2015-08-24 Tom de Vries <tom@codesourcery.com>
13345
13346 PR tree-optimization/65468
13347 * testsuite/libgomp.c/static-chunk-size-one.c: New test.
13348
13349 2015-08-24 Joost VandeVondele <vondele@gnu.gcc.org>
13350
13351 PR libgomp/66761
13352 PR libgomp/67303
13353 * iter.c (gomp_iter_dynamic_next): Employ an atomic load.
13354 (gomp_iter_guided_next): Idem.
13355 * iter_ull.c (gomp_iter_ull_dynamic_next): Idem.
13356 (gomp_iter_ull_guided_next): Idem.
13357 * config/linux/wait.h (do_spin): Idem.
13358
13359 2015-08-10 Thomas Schwinge <thomas@codesourcery.com>
13360
13361 * libgomp-plugin.h (enum offload_target_type): Remove
13362 OFFLOAD_TARGET_TYPE_HOST_NONSHM.
13363 * openacc.f90 (openacc_kinds): Remove acc_device_host_nonshm.
13364 * openacc.h (enum acc_device_t): Likewise.
13365 * openacc_lib.h: Likewise.
13366 * oacc-init.c (name_of_acc_device_t): Don't handle it.
13367 (acc_on_device): Just use __builtin_acc_on_device.
13368 * testsuite/libgomp.oacc-c-c++-common/if-1.c: Don't forbid usage
13369 of acc_on_device builtin.
13370 * plugin/plugin-host.h: Remove file.
13371 * plugin/plugin-host.c: Likewise, but salvage some content into...
13372 * oacc-host.c: ... this file.
13373 * plugin/Makefrag.am: Don't build libgomp-plugin-host_nonshm.la.
13374 * plugin/configfrag.ac (offload_targets): Don't add host_nonshm.
13375 * Makefile.in: Regenerate.
13376 * configure: Likewise.
13377 * testsuite/lib/libgomp.exp
13378 (check_effective_target_openacc_host_nonshm_selected): Remove.
13379 * testsuite/libgomp.oacc-c++/c++.exp: Don't handle
13380 ACC_DEVICE_TYPE=host_nonshm.
13381 * testsuite/libgomp.oacc-c/c.exp: Likewise.
13382 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
13383 * testsuite/libgomp.oacc-c-c++-common/acc_on_device-1.c: Likewise.
13384 * testsuite/libgomp.oacc-fortran/acc_on_device-1-1.f90: Likewise.
13385 * testsuite/libgomp.oacc-fortran/acc_on_device-1-2.f: Likewise.
13386 * testsuite/libgomp.oacc-fortran/acc_on_device-1-3.f: Likewise.
13387
13388 2015-08-10 Thomas Schwinge <thomas@codesourcery.com>
13389 Jakub Jelinek <jakub@redhat.com>
13390
13391 * config/nvptx/affinity.c: New file.
13392 * config/nvptx/alloc.c: Likewise.
13393 * config/nvptx/bar.c: Likewise.
13394 * config/nvptx/barrier.c: Likewise.
13395 * config/nvptx/critical.c: Likewise.
13396 * config/nvptx/env.c: Likewise.
13397 * config/nvptx/error.c: Likewise.
13398 * config/nvptx/fortran.c: Likewise.
13399 * config/nvptx/iter.c: Likewise.
13400 * config/nvptx/iter_ull.c: Likewise.
13401 * config/nvptx/libgomp-plugin.c: Likewise.
13402 * config/nvptx/lock.c: Likewise.
13403 * config/nvptx/loop.c: Likewise.
13404 * config/nvptx/loop_ull.c: Likewise.
13405 * config/nvptx/mutex.c: Likewise.
13406 * config/nvptx/oacc-async.c: Likewise.
13407 * config/nvptx/oacc-cuda.c: Likewise.
13408 * config/nvptx/oacc-host.c: Likewise.
13409 * config/nvptx/oacc-init.c: Likewise.
13410 * config/nvptx/oacc-mem.c: Likewise.
13411 * config/nvptx/oacc-parallel.c: Likewise.
13412 * config/nvptx/oacc-plugin.c: Likewise.
13413 * config/nvptx/omp-lock.h: Likewise.
13414 * config/nvptx/ordered.c: Likewise.
13415 * config/nvptx/parallel.c: Likewise.
13416 * config/nvptx/proc.c: Likewise.
13417 * config/nvptx/ptrlock.c: Likewise.
13418 * config/nvptx/sections.c: Likewise.
13419 * config/nvptx/sem.c: Likewise.
13420 * config/nvptx/single.c: Likewise.
13421 * config/nvptx/splay-tree.c: Likewise.
13422 * config/nvptx/target.c: Likewise.
13423 * config/nvptx/task.c: Likewise.
13424 * config/nvptx/team.c: Likewise.
13425 * config/nvptx/time.c: Likewise.
13426 * config/nvptx/work.c: Likewise.
13427 * configure.ac: Don't probe pthreads support for host nvptx*-*-*.
13428 * configure: Regenerate.
13429 * configure.tgt (config_path): Set to "nvptx" for target
13430 nvptx*-*-*.
13431
13432 2015-08-10 Thomas Schwinge <thomas@codesourcery.com>
13433
13434 * testsuite/libgomp.oacc-c-c++-common/vector-type-1.c: New file.
13435
13436 2015-08-03 Nathan Sidwell <nathan@codesourcery.com>
13437
13438 * plugin/plugin-nvptx.c: Don't include dlfcn.h.
13439 (cuda_errlist): Constify.
13440 (errmsg): Move into ...
13441 (cuda_error): ... here. Make smaller.
13442 (_XSTR, _STR): Delete.
13443 (cuda_synames): Delete.
13444 (verify_device_library): Delete.
13445 (nvptx_init): Don't call it.
13446
13447 2015-07-28 Tom de Vries <tom@codesourcery.com>
13448
13449 * testsuite/libgomp.c/uns-outer-4.c: New test.
13450
13451 2015-07-24 Cesar Philippidis <cesar@codesourcery.com>
13452
13453 * testsuite/libgomp.c/pr66714.c: New test.
13454
13455 2015-07-22 Maxim Blumenthal <maxim.blumenthal@intel.com>
13456
13457 PR libgomp/66950
13458 * testsuite/libgomp.c/examples-4/simd-7.c (N): Change to 30 from 45.
13459 (fib_ref): New function.
13460 (fib): Correct corner cases in the recursion.
13461 (main): Replace the non-simd loop with fib_ref call.
13462 * testsuite/libgomp.fortran/examples-4/simd-7.f90: (fib_ref): New
13463 subroutine.
13464 (fibonacci): Lower the parameter N to 30. Correct accordingly check
13465 for the last array element value. Replace the non-simd loop with
13466 fib_ref call. Remove redundant b_ref array. Remove the comparison
13467 of the last array element with according Fibonacci sequence element.
13468 (fib): Correct corner cases in the recursion.
13469
13470 2015-07-21 Nathan Sidwell <nathan@codesourcery.com>
13471
13472 * target.c (gomp_offload_image_to_device): Rename to ...
13473 (gomp_load_image_to_device): ... here.
13474 (GOMP_offload_register): Adjust call.
13475 (gomp_init_device): Likewise.
13476 (gomp_unload_image_from_device): New. Broken out of ...
13477 (GOMP_offload_unregister): ... here. Call it.
13478 (gomp_unload_device): New.
13479 * libgomp.h (gomp_unload_device): Declare.
13480 * oacc-init.c (acc_shutdown_1): Unload from device before deleting
13481 mem maps.
13482
13483 2015-07-20 Nathan Sidwell <nathan@codesourcery.com>
13484
13485 * oacc-parallel.c (GOACC_parallel): Move variadic handling into
13486 wait=-specific if.
13487 (GOACC_enter_exit_data, GOACC_update): Use consistent num_waits
13488 !=0 condition.
13489 (goacc_waits): Move !num_waits handling to ...
13490 (GOACC_wait): ... here, the only caller that might have zero waits.
13491
13492 * plugin/plugin-nvptx.c (struct targ_fn_descriptor): Move later.
13493 (struct ptx_image_data): Move earlier, add fns field.
13494 (struct ptx_device): Add images and image_lock fields.
13495 (ptx_images, ptx_image_lock): Delete.
13496 (nvptx_open_device): Initialize images and image_lock fields.
13497 (nvptx_close_device): Destroy image_lock.
13498 (GOMP_OFFLOAD_load_image): Register image to device-specific fields.
13499 (GOMP_OFFLOAD_unload_image): Unregister image from device-specific
13500 fields.
13501
13502 2015-07-17 Nathan Sidwell <nathan@codesourcery.com>
13503
13504 * target.c (GOMP_offload_register): Use int for device type arg.
13505 (GOMP_offload_unregister): Likewise.
13506
13507 * target.c (struct_offload_image_descr): Constify host_table.
13508 (gomp_offload_image_to_device): Likewise.
13509 (GOMP_offload_register, GOMP_offload_unregister): Likewise.
13510
13511 * libgomp.h (gomp_device_descr): Constify target data arguments.
13512 * target.c (struct offload_image_descr): Constify target_data.
13513 (gomp_offload_image_to_device): Likewise.
13514 (GOMP_offload_register): Likewise.
13515 (GOMP_offload_unregister): Likewise.
13516 * plugin/plugin-host.c (GOMP_OFFLOAD_load_image,
13517 GOMP_OFFLOAD_unload_image): Constify target data.
13518 * plugin/plugin-nvptx.c (struct ptx_image_data): Constify target data.
13519 (GOMP_OFFLOAD_load_image, GOMP_OFFLOAD_unload_image): Likewise.
13520
13521 2015-07-16 Nathan Sidwell <nathan@codesourcery.com>
13522
13523 * plugin/plugin-nvptx.c (link_ptx): Constify string argument.
13524 Workaround driver library const error.
13525 (struct nvptx_tdata, nvptx_tdata_t): New.
13526 (GOMP_OFFLOAD_load_image): Use struct for target_data's real
13527 type.
13528
13529 2015-07-15 Maxim Blumenthal <maxim.blumenthal@intel.com>
13530
13531 * testsuite/libgomp.fortran/examples-4/simd-8.f90: (main): Change type
13532 of EPS parameter from integer to real.
13533 * testsuite/libgomp.fortran/examples-4/task_dep-5.f90: (check): Change
13534 type of EPS parameter from integer to real.
13535
13536 2015-07-15 Sebastian Huber <sebastian.huber@embedded-brains.de>
13537
13538 * team.c (get_last_team): New.
13539 (gomp_new_team): Recycle last non-nested team if possible.
13540 (gomp_team_end): Move team work share list free lock destruction
13541 to ...
13542 (free_team): ... here.
13543
13544 2015-07-14 Maxim Blumenthal <maxim.blumenthal@intel.com>
13545
13546 * testsuite/libgomp.c/examples-4/simd-3.c: (main): Change type of res
13547 and ref from int to double. Replaced their comparison with
13548 an inequality of their difference and EPS.
13549 * testsuite/libgomp.c/examples-4/simd-8.c: (main): Replace the
13550 comparison of pri and a reference number with an inequality of their
13551 difference and EPS.
13552 * testsuite/libgomp.fortran/examples-4/simd-3.f90: (main): Replaced
13553 the comparison of sum and sum_ref with an inequality of their
13554 difference and EPS.
13555 * testsuite/libgomp.fortran/examples-4/simd-8.f90: (main): Replace
13556 the comparison of pri and a reference number with an inequality of
13557 their difference and EPS.
13558
13559 2015-07-13 Maxim Blumenthal <maxim.blumenthal@intel.com>
13560
13561 * testsuite/libgomp.c++/examples-4/e.53.2.C: Renamed to...
13562 * testsuite/libgomp.c++/examples-4/declare_target-2.C: ...this.
13563 * testsuite/libgomp.c++/examples-4/e.51.5.C: Renamed to...
13564 * testsuite/libgomp.c++/examples-4/target_data-5.C: ...this.
13565 * testsuite/libgomp.c/examples-4/e.56.3.c: Renamed to...
13566 * testsuite/libgomp.c/examples-4/array_sections-3.c: ...this.
13567 * testsuite/libgomp.c/examples-4/e.56.4.c: Renamed to...
13568 * testsuite/libgomp.c/examples-4/array_sections-4.c: ...this.
13569 * testsuite/libgomp.c/examples-4/e.55.1.c: Renamed to...
13570 * testsuite/libgomp.c/examples-4/async_target-1.c: ...this.
13571 * testsuite/libgomp.c/examples-4/e.55.2.c: Renamed to...
13572 * testsuite/libgomp.c/examples-4/async_target-2.c: ...this.
13573 (vec_mult_ref): Remove v1 and v2 arguments, turn them into local
13574 variables.
13575 (vec_mult): Likewise. Add #pragma omp taskwait.
13576 (main): Adjust caller.
13577 * testsuite/libgomp.c/examples-4/e.53.1.c: Renamed to...
13578 * testsuite/libgomp.c/examples-4/declare_target-1.c: ...this.
13579 * testsuite/libgomp.c/examples-4/e.53.3.c: Renamed to...
13580 * testsuite/libgomp.c/examples-4/declare_target-3.c: ...this.
13581 * testsuite/libgomp.c/examples-4/e.53.4.c: Renamed to...
13582 * testsuite/libgomp.c/examples-4/declare_target-4.c: ...this.
13583 * testsuite/libgomp.c/examples-4/e.53.5.c: Renamed to...
13584 * testsuite/libgomp.c/examples-4/declare_target-5.c: ...this.
13585 * testsuite/libgomp.c/examples-4/e.57.1.c: Renamed to...
13586 * testsuite/libgomp.c/examples-4/device-1.c: ...this.
13587 * testsuite/libgomp.c/examples-4/e.57.2.c: Renamed to...
13588 * testsuite/libgomp.c/examples-4/device-2.c: ...this.
13589 * testsuite/libgomp.c/examples-4/e.57.3.c: Renamed to...
13590 * testsuite/libgomp.c/examples-4/device-3.c: ...this.
13591 * testsuite/libgomp.c/examples-4/simd-1.c: New file.
13592 * testsuite/libgomp.c/examples-4/simd-2.c: New file.
13593 * testsuite/libgomp.c/examples-4/simd-3.c: New file.
13594 * testsuite/libgomp.c/examples-4/simd-4.c: New file.
13595 * testsuite/libgomp.c/examples-4/simd-5.c: New file.
13596 * testsuite/libgomp.c/examples-4/simd-6.c: New file.
13597 * testsuite/libgomp.c/examples-4/simd-7.c: New file.
13598 * testsuite/libgomp.c/examples-4/simd-8.c: New file.
13599 * testsuite/libgomp.c/examples-4/e.50.1.c: Renamed to...
13600 * testsuite/libgomp.c/examples-4/target-1.c: ...this.
13601 * testsuite/libgomp.c/examples-4/e.50.2.c: Renamed to...
13602 * testsuite/libgomp.c/examples-4/target-2.c: ...this.
13603 * testsuite/libgomp.c/examples-4/e.50.3.c: Renamed to...
13604 * testsuite/libgomp.c/examples-4/target-3.c: ...this.
13605 * testsuite/libgomp.c/examples-4/e.50.4.c: Renamed to...
13606 * testsuite/libgomp.c/examples-4/target-4.c: ...this.
13607 * testsuite/libgomp.c/examples-4/e.50.5.c: Renamed to...
13608 * testsuite/libgomp.c/examples-4/target-5.c: ...this.
13609 * testsuite/libgomp.c/examples-4/e.51.1.c: Renamed to...
13610 * testsuite/libgomp.c/examples-4/target_data-1.c: ...this.
13611 * testsuite/libgomp.c/examples-4/e.51.2.c: Renamed to...
13612 * testsuite/libgomp.c/examples-4/target_data-2.c: ...this.
13613 * testsuite/libgomp.c/examples-4/e.51.3.c: Renamed to...
13614 * testsuite/libgomp.c/examples-4/target_data-3.c: ...this.
13615 * testsuite/libgomp.c/examples-4/e.51.4.c: Renamed to...
13616 * testsuite/libgomp.c/examples-4/target_data-4.c: ...this.
13617 * testsuite/libgomp.c/examples-4/e.51.6.c: Renamed to...
13618 * testsuite/libgomp.c/examples-4/target_data-6.c: ...this.
13619 * testsuite/libgomp.c/examples-4/e.51.7.c: Renamed to...
13620 * testsuite/libgomp.c/examples-4/target_data-7.c: ...this.
13621 * testsuite/libgomp.c/examples-4/e.52.1.c: Renamed to...
13622 * testsuite/libgomp.c/examples-4/target_update-1.c: ...this.
13623 * testsuite/libgomp.c/examples-4/e.52.2.c: Renamed to...
13624 * testsuite/libgomp.c/examples-4/target_update-2.c: ...this.
13625 * testsuite/libgomp.c/examples-4/task_dep-1.c: New file.
13626 * testsuite/libgomp.c/examples-4/task_dep-2.c: New file.
13627 * testsuite/libgomp.c/examples-4/task_dep-3.c: New file.
13628 * testsuite/libgomp.c/examples-4/task_dep-4.c: New file.
13629 * testsuite/libgomp.c/examples-4/task_dep-5.c: New file.
13630 * testsuite/libgomp.c/examples-4/e.54.2.c: Renamed to...
13631 * testsuite/libgomp.c/examples-4/teams-2.c: ...this.
13632 * testsuite/libgomp.c/examples-4/e.54.3.c: Renamed to...
13633 * testsuite/libgomp.c/examples-4/teams-3.c: ...this.
13634 * testsuite/libgomp.c/examples-4/e.54.4.c: Renamed to...
13635 * testsuite/libgomp.c/examples-4/teams-4.c: ...this.
13636 * testsuite/libgomp.c/examples-4/e.54.5.c: Renamed to...
13637 * testsuite/libgomp.c/examples-4/teams-5.c: ...this.
13638 * testsuite/libgomp.c/examples-4/e.54.6.c: Renamed to...
13639 * testsuite/libgomp.c/examples-4/teams-6.c: ...this.
13640 * testsuite/libgomp.fortran/examples-4/e.56.3.f90: Renamed to...
13641 * testsuite/libgomp.fortran/examples-4/array_sections-3.f90: ...this.
13642 * testsuite/libgomp.fortran/examples-4/e.56.4.f90: Renamed to...
13643 * testsuite/libgomp.fortran/examples-4/array_sections-4.f90: ...this.
13644 * testsuite/libgomp.fortran/examples-4/e.55.1.f90: Renamed to...
13645 * testsuite/libgomp.fortran/examples-4/async_target-1.f90: ...this.
13646 * testsuite/libgomp.fortran/examples-4/e.55.2.f90: Renamed to...
13647 * testsuite/libgomp.fortran/examples-4/async_target-2.f90: ...this.
13648 (vec_mult): Add !$omp taskwait.
13649 * testsuite/libgomp.fortran/examples-4/e.53.1.f90: Renamed to...
13650 * testsuite/libgomp.fortran/examples-4/declare_target-1.f90: ...this.
13651 * testsuite/libgomp.fortran/examples-4/e.53.2.f90: Renamed to...
13652 * testsuite/libgomp.fortran/examples-4/declare_target-2.f90: ...this.
13653 * testsuite/libgomp.fortran/examples-4/e.53.3.f90: Renamed to...
13654 * testsuite/libgomp.fortran/examples-4/declare_target-3.f90: ...this.
13655 * testsuite/libgomp.fortran/examples-4/e.53.4.f90: Renamed to...
13656 * testsuite/libgomp.fortran/examples-4/declare_target-4.f90: ...this.
13657 * testsuite/libgomp.fortran/examples-4/e.53.5.f90: Renamed to...
13658 * testsuite/libgomp.fortran/examples-4/declare_target-5.f90: ...this.
13659 * testsuite/libgomp.fortran/examples-4/e.57.1.f90: Renamed to...
13660 * testsuite/libgomp.fortran/examples-4/device-1.f90: ...this.
13661 * testsuite/libgomp.fortran/examples-4/e.57.2.f90: Renamed to...
13662 * testsuite/libgomp.fortran/examples-4/device-2.f90: ...this.
13663 * testsuite/libgomp.fortran/examples-4/e.57.3.f90: Renamed to...
13664 * testsuite/libgomp.fortran/examples-4/device-3.f90: ...this.
13665 * testsuite/libgomp.fortran/examples-4/simd-1.f90: New file.
13666 * testsuite/libgomp.fortran/examples-4/simd-2.f90: New file.
13667 * testsuite/libgomp.fortran/examples-4/simd-3.f90: New file.
13668 * testsuite/libgomp.fortran/examples-4/simd-4.f90: New file.
13669 * testsuite/libgomp.fortran/examples-4/simd-5.f90: New file.
13670 * testsuite/libgomp.fortran/examples-4/simd-6.f90: New file.
13671 * testsuite/libgomp.fortran/examples-4/simd-7.f90: New file.
13672 * testsuite/libgomp.fortran/examples-4/simd-8.f90: New file.
13673 * testsuite/libgomp.fortran/examples-4/e.50.1.f90: Renamed to...
13674 * testsuite/libgomp.fortran/examples-4/target-1.f90: ...this.
13675 * testsuite/libgomp.fortran/examples-4/e.50.2.f90: Renamed to...
13676 * testsuite/libgomp.fortran/examples-4/target-2.f90: ...this.
13677 * testsuite/libgomp.fortran/examples-4/e.50.3.f90: Renamed to...
13678 * testsuite/libgomp.fortran/examples-4/target-3.f90: ...this.
13679 * testsuite/libgomp.fortran/examples-4/e.50.4.f90: Renamed to...
13680 * testsuite/libgomp.fortran/examples-4/target-4.f90: ...this.
13681 * testsuite/libgomp.fortran/examples-4/e.50.5.f90: Renamed to...
13682 * testsuite/libgomp.fortran/examples-4/target-5.f90: ...this.
13683 * testsuite/libgomp.fortran/examples-4/e.51.1.f90: Renamed to...
13684 * testsuite/libgomp.fortran/examples-4/target_data-1.f90: ...this.
13685 * testsuite/libgomp.fortran/examples-4/e.51.2.f90: Renamed to...
13686 * testsuite/libgomp.fortran/examples-4/target_data-2.f90: ...this.
13687 * testsuite/libgomp.fortran/examples-4/e.51.3.f90: Renamed to...
13688 * testsuite/libgomp.fortran/examples-4/target_data-3.f90: ...this.
13689 * testsuite/libgomp.fortran/examples-4/e.51.4.f90: Renamed to...
13690 * testsuite/libgomp.fortran/examples-4/target_data-4.f90: ...this.
13691 * testsuite/libgomp.fortran/examples-4/e.51.5.f90: Renamed to...
13692 * testsuite/libgomp.fortran/examples-4/target_data-5.f90: ...this.
13693 * testsuite/libgomp.fortran/examples-4/e.51.6.f90: Renamed to...
13694 * testsuite/libgomp.fortran/examples-4/target_data-6.f90: ...this.
13695 * testsuite/libgomp.fortran/examples-4/e.51.7.f90: Renamed to...
13696 * testsuite/libgomp.fortran/examples-4/target_data-7.f90: ...this.
13697 * testsuite/libgomp.fortran/examples-4/e.52.1.f90: Renamed to...
13698 * testsuite/libgomp.fortran/examples-4/target_update-1.f90: ...this.
13699 * testsuite/libgomp.fortran/examples-4/e.52.2.f90: Renamed to...
13700 * testsuite/libgomp.fortran/examples-4/target_update-2.f90: ...this.
13701 * testsuite/libgomp.fortran/examples-4/task_dep-1.f90: New file.
13702 * testsuite/libgomp.fortran/examples-4/task_dep-2.f90: New file.
13703 * testsuite/libgomp.fortran/examples-4/task_dep-3.f90: New file.
13704 * testsuite/libgomp.fortran/examples-4/task_dep-4.f90: New file.
13705 * testsuite/libgomp.fortran/examples-4/task_dep-5.f90: New file.
13706 * testsuite/libgomp.fortran/examples-4/e.54.2.f90: Renamed to...
13707 * testsuite/libgomp.fortran/examples-4/teams-2.f90: ...this.
13708 * testsuite/libgomp.fortran/examples-4/e.54.3.f90: Renamed to...
13709 * testsuite/libgomp.fortran/examples-4/teams-3.f90: ...this.
13710 * testsuite/libgomp.fortran/examples-4/e.54.4.f90: Renamed to...
13711 * testsuite/libgomp.fortran/examples-4/teams-4.f90: ...this.
13712 * testsuite/libgomp.fortran/examples-4/e.54.5.f90: Renamed to...
13713 * testsuite/libgomp.fortran/examples-4/teams-5.f90: ...this.
13714 * testsuite/libgomp.fortran/examples-4/e.54.6.f90: Renamed to...
13715 * testsuite/libgomp.fortran/examples-4/teams-6.f90: ...this.
13716
13717 2015-07-10 Tom de Vries <tom@codesourcery.com>
13718
13719 * testsuite/libgomp.fortran/parloops-exit-first-loop-alt-2.f95: New test.
13720 * testsuite/libgomp.fortran/parloops-exit-first-loop-alt.f95: New test.
13721
13722 2015-07-08 Thomas Schwinge <thomas@codesourcery.com>
13723
13724 PR libgomp/65099
13725 * plugin/plugin-nvptx.c (nvptx_get_num_devices): Return 0 if not
13726 in a 64-bit configuration.
13727 * testsuite/libgomp.oacc-c++/c++.exp: Don't attempt nvidia
13728 offloading testing if no such device is available.
13729 * testsuite/libgomp.oacc-c/c.exp: Likewise.
13730 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
13731
13732 2015-07-08 Tom de Vries <tom@codesourcery.com>
13733
13734 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c (main): Fix
13735 second call to f.
13736 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: Same.
13737
13738 2015-07-07 Tom de Vries <tom@codesourcery.com>
13739
13740 PR tree-optimization/66642
13741 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c (main): Test low
13742 iteration count case.
13743 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c (init): New
13744 function, factor out of ...
13745 (main): ... here. Test low iteration count case.
13746
13747 2015-07-06 Sebastian Huber <sebastian.huber@embedded-brains.de>
13748
13749 * libgomp.h (gomp_thread_pool): Comment last_team field.
13750
13751 2015-07-02 Uros Bizjak <ubizjak@gmail.com>
13752
13753 * testsuite/libgomp.c++/pr66702-1.C: Require
13754 vect_simd_clones effective target.
13755 * testsuite/libgomp.c++/pr66702-2.C: Ditto.
13756
13757 2015-06-30 Tom de Vries <tom@codesourcery.com>
13758
13759 * testsuite/libgomp.oacc-c++/c++.exp: Set DEFAULT_CFLAGS to -O2 if not
13760 already set. Use DEFAULT_CFLAGS in dg-runtest.
13761 * testsuite/libgomp.oacc-c-c++-common/collapse-3.c: Remove dg-options
13762 "-O2".
13763
13764 2015-06-30 Tom de Vries <tom@codesourcery.com>
13765
13766 * testsuite/libgomp.c++/c++.exp: Set DEFAULT_CFLAGS to -O2 if not
13767 already set. Use DEFAULT_CFLAGS in dg-runtest.
13768 * testsuite/libgomp.c++/atomic-16.C: Remove dg-options "-O2 -fopenmp".
13769 * testsuite/libgomp.c++/pr64824.C: Same.
13770 * testsuite/libgomp.c++/pr64868.C: Same.
13771 * testsuite/libgomp.c++/pr66199-1.C: Same.
13772 * testsuite/libgomp.c++/pr66199-2.C: Same.
13773 * testsuite/libgomp.c++/target-2.C: Same.
13774 * testsuite/libgomp.c++/for-7.C: Use dg-additional-options for
13775 -std=<standard> option.
13776 * testsuite/libgomp.c++/udr-11.C: Same.
13777 * testsuite/libgomp.c++/udr-12.C: Same.
13778 * testsuite/libgomp.c++/udr-13.C: Same.
13779 * testsuite/libgomp.c++/udr-14.C: Same.
13780 * testsuite/libgomp.c++/udr-15.C: Same.
13781 * testsuite/libgomp.c++/udr-16.C: Same.
13782 * testsuite/libgomp.c++/udr-17.C: Same.
13783 * testsuite/libgomp.c++/udr-18.C: Same.
13784 * testsuite/libgomp.c++/udr-19.C: Same.
13785 * testsuite/libgomp.c++/atomic-1.C: Remove dg-options "-O2".
13786 * testsuite/libgomp.c++/simd-1.C: Same.
13787 * testsuite/libgomp.c++/simd-2.C: Same.
13788 * testsuite/libgomp.c++/simd-3.C: Same.
13789 * testsuite/libgomp.c++/simd-4.C: Same.
13790 * testsuite/libgomp.c++/simd-5.C: Same.
13791 * testsuite/libgomp.c++/simd-6.C: Same.
13792 * testsuite/libgomp.c++/simd-7.C: Same.
13793 * testsuite/libgomp.c++/simd-8.C: Same.
13794 * testsuite/libgomp.c++/simd-9.C: Same.
13795 * testsuite/libgomp.c++/simd10.C: Same.
13796 * testsuite/libgomp.c++/simd11.C: Same.
13797 * testsuite/libgomp.c++/simd12.C: Same.
13798 * testsuite/libgomp.c++/simd13.C: Same.
13799
13800 2015-06-30 Jakub Jelinek <jakub@redhat.com>
13801
13802 PR middle-end/66702
13803 * testsuite/libgomp.c++/pr66702-1.C: New test.
13804 * testsuite/libgomp.c++/pr66702-2.C: New test.
13805
13806 2015-06-30 Tom de Vries <tom@codesourcery.com>
13807
13808 * testsuite/libgomp.c/parloops-exit-first-loop-alt-5.c: New test.
13809 * testsuite/libgomp.c/parloops-exit-first-loop-alt-6.c: New test.
13810 * testsuite/libgomp.c/parloops-exit-first-loop-alt-7.c: New test.
13811 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: Update comment.
13812
13813 2015-06-30 Tom de Vries <tom@codesourcery.com>
13814
13815 PR tree-optimization/66652
13816 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c (f): Rewrite
13817 using restrict pointers.
13818 (main): Add arguments to calls to f.
13819 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: Same.
13820
13821 2015-06-23 Andreas Tobler <andreast@gcc.gnu.org>
13822
13823 * configure.ac: Fix check for header <sys/sysctl.h>.
13824 * configure: Regenerate.
13825 * config.h.in: Likewise.
13826
13827 2015-06-23 Tom de Vries <tom@codesourcery.com>
13828
13829 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c (main): Use
13830 abort.
13831 * testsuite/libgomp.c/parloops-exit-first-loop-alt-4.c (main): Same.
13832
13833 2015-06-19 Thomas Schwinge <thomas@codesourcery.com>
13834
13835 * testsuite/libgomp.oacc-c-c++-common/lib-62.c: Only consider for
13836 acc_device_nvidia.
13837
13838 PR libgomp/66518
13839 * testsuite/libgomp.oacc-c-c++-common/lib-3.c: XFAIL.
13840 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
13841
13842 2015-06-15 Tom de Vries <tom@codesourcery.com>
13843
13844 * testsuite/libgomp.c/atomic-1.c: Remove dg-options "-O2". Use
13845 dg-additional-options for any remaining options.
13846 * testsuite/libgomp.c/atomic-2.c: Same.
13847 * testsuite/libgomp.c/atomic-4.c: Same.
13848 * testsuite/libgomp.c/atomic-5.c: Same.
13849 * testsuite/libgomp.c/atomic-6.c: Same.
13850 * testsuite/libgomp.c/autopar-1.c: Same.
13851 * testsuite/libgomp.c/copyin-1.c: Same.
13852 * testsuite/libgomp.c/copyin-2.c: Same.
13853 * testsuite/libgomp.c/copyin-3.c: Same.
13854 * testsuite/libgomp.c/examples-4/e.53.5.c: Same.
13855 * testsuite/libgomp.c/nestedfn-5.c: Same.
13856 * testsuite/libgomp.c/parloops-exit-first-loop-alt-2.c: Same.
13857 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c: Same.
13858 * testsuite/libgomp.c/parloops-exit-first-loop-alt-4.c: Same.
13859 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: Same.
13860 * testsuite/libgomp.c/pr32362-1.c: Same.
13861 * testsuite/libgomp.c/pr32362-2.c: Same.
13862 * testsuite/libgomp.c/pr32362-3.c: Same.
13863 * testsuite/libgomp.c/pr39591-1.c: Same.
13864 * testsuite/libgomp.c/pr39591-2.c: Same.
13865 * testsuite/libgomp.c/pr39591-3.c: Same.
13866 * testsuite/libgomp.c/pr58392.c: Same.
13867 * testsuite/libgomp.c/pr58756.c: Same.
13868 * testsuite/libgomp.c/simd-1.c: Same.
13869 * testsuite/libgomp.c/simd-10.c: Same.
13870 * testsuite/libgomp.c/simd-11.c: Same.
13871 * testsuite/libgomp.c/simd-12.c: Same.
13872 * testsuite/libgomp.c/simd-13.c: Same.
13873 * testsuite/libgomp.c/simd-14.c: Same.
13874 * testsuite/libgomp.c/simd-15.c: Same.
13875 * testsuite/libgomp.c/simd-2.c: Same.
13876 * testsuite/libgomp.c/simd-3.c: Same.
13877 * testsuite/libgomp.c/simd-4.c: Same.
13878 * testsuite/libgomp.c/simd-5.c: Same.
13879 * testsuite/libgomp.c/simd-6.c: Same.
13880 * testsuite/libgomp.c/simd-7.c: Same.
13881 * testsuite/libgomp.c/simd-8.c: Same.
13882 * testsuite/libgomp.c/simd-9.c: Same.
13883
13884 2015-06-15 Tom de Vries <tom@codesourcery.com>
13885
13886 * testsuite/libgomp.c/pr35625.c: Fix typo.
13887
13888 2015-06-15 Tom de Vries <tom@codesourcery.com>
13889
13890 * testsuite/libgomp.c/atomic-18.c: Remove superfluous -fopenmp setting
13891 in dg-options.
13892 * testsuite/libgomp.c/atomic-3.c: Same.
13893 * testsuite/libgomp.c/debug-1.c: Same.
13894 * testsuite/libgomp.c/nqueens-1.c: Same.
13895 * testsuite/libgomp.c/pr26171.c: Same.
13896 * testsuite/libgomp.c/pr48591.c: Same.
13897 * testsuite/libgomp.c/pr64824.c: Same.
13898 * testsuite/libgomp.c/pr64868.c: Same.
13899 * testsuite/libgomp.c/pr66133.c: Same.
13900 * testsuite/libgomp.c/pr66199-1.c: Same.
13901 * testsuite/libgomp.c/pr66199-2.c: Same.
13902 * testsuite/libgomp.c/target-8.c: Same.
13903
13904 2015-06-15 Tom de Vries <tom@codesourcery.com>
13905
13906 * testsuite/libgomp.c/collapse-3.c: Use dg-additional-options for
13907 -std={gnu99,c99}.
13908 * testsuite/libgomp.c/for-1.c: Same.
13909 * testsuite/libgomp.c/for-2.c: Same.
13910 * testsuite/libgomp.c/for-3.c: Same.
13911 * testsuite/libgomp.c/pr35625.c: Same.
13912 * testsuite/libgomp.c/pr39154.c: Same.
13913 * testsuite/libgomp.c/simd-16.c: Same.
13914 * testsuite/libgomp.c/simd-17.c: Same.
13915
13916 2015-06-13 Tom de Vries <tom@codesourcery.com>
13917
13918 * testsuite/libgomp.c/parloops-exit-first-loop-alt-4.c: New test.
13919
13920 2015-06-13 Tom de Vries <tom@codesourcery.com>
13921
13922 * testsuite/libgomp.c/parloops-exit-first-loop-alt-2.c: Add comment.
13923 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: Same.
13924 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c: Add comment.
13925 (N): Define.
13926 (main): Use N instead of hardcoded constants.
13927
13928 2015-06-05 Tom de Vries <tom@codesourcery.com>
13929
13930 merge from gomp4 branch:
13931 2015-05-28 Tom de Vries <tom@codesourcery.com>
13932
13933 PR tree-optimization/65443
13934 * testsuite/libgomp.c/parloops-exit-first-loop-alt-2.c: New test.
13935 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c: New test.
13936 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: New test.
13937
13938 2015-05-29 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
13939
13940 * testsuite/libgomp.graphite/bounds.c: Adjust for
13941 cleanup-tree-dump removal.
13942 * testsuite/libgomp.graphite/force-parallel-1.c: Likewise.
13943 * testsuite/libgomp.graphite/force-parallel-2.c: Likewise.
13944 * testsuite/libgomp.graphite/force-parallel-3.c: Likewise.
13945 * testsuite/libgomp.graphite/force-parallel-4.c: Likewise.
13946 * testsuite/libgomp.graphite/force-parallel-5.c: Likewise.
13947 * testsuite/libgomp.graphite/force-parallel-6.c: Likewise.
13948 * testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
13949 * testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
13950 * testsuite/libgomp.graphite/force-parallel-9.c: Likewise.
13951 * testsuite/libgomp.graphite/pr41118.c: Likewise.
13952
13953 2015-05-28 Uros Bizjak <ubizjak@gmail.com>
13954
13955 * config/linux/x86/futex.h (sys_futex0) [!__x86_64__]: Remove function.
13956 (futex_wait) [!__x86_64__]: Use __asm operand instead of sys_futex0.
13957 (futex_wake) [!__x86_64__]: Ditto.
13958
13959 2015-05-28 Julian Brown <julian@codesourcery.com>
13960
13961 * oacc-init.c (resolve_device): Add FAIL_IS_ERROR argument. Update
13962 function comment. Only call gomp_fatal if new argument is true.
13963 (acc_dev_num_out_of_range): New function.
13964 (acc_init_1, acc_shutdown_1): Update call to resolve_device. Call
13965 acc_dev_num_out_of_range as appropriate.
13966 (acc_get_num_devices, acc_set_device_type, acc_get_device_type)
13967 (acc_get_device_num, acc_set_device_num): Update calls to
13968 resolve_device.
13969 * testsuite/libgomp.oacc-c-c++-common/lib-4.c: Update expected test
13970 output.
13971
13972 2015-05-28 Julian Brown <julian@codesourcery.com>
13973
13974 PR libgomp/65742
13975 * oacc-init.c (plugin/plugin-host.h): Include.
13976 (acc_on_device): Check whether we're in an offloaded region for
13977 host_nonshm
13978 plugin. Don't use __builtin_acc_on_device.
13979 * plugin/plugin-host.c (GOMP_OFFLOAD_openacc_parallel): Set
13980 nonshm_exec flag in thread-local data.
13981 (GOMP_OFFLOAD_openacc_create_thread_data): Allocate thread-local
13982 data for host_nonshm plugin.
13983 (GOMP_OFFLOAD_openacc_destroy_thread_data): Free thread-local data
13984 for host_nonshm plugin.
13985 * plugin/plugin-host.h: New.
13986
13987 2015-05-27 Uros Bizjak <ubizjak@gmail.com>
13988
13989 * config/linux/ia64/futex.h (sys_futex0) Change operand "op" to int.
13990
13991 2015-05-27 Uros Bizjak <ubizjak@gmail.com>
13992
13993 * config/linux/wait.h (gomp_futex_wait, gomp_futex_wake):
13994 Declare as int.
13995 (FUTEX_PRIVATE_FLAG): Remove L suffix.
13996 * config/linux/mutex.c (gomp_futex_wait, gomp_futex_wake):
13997 Declare as int.
13998
13999 2015-05-27 Uros Bizjak <ubizjak@gmail.com>
14000
14001 * config/linux/x86/futex.h (sys_futex0) [__PIC__]: Remove function.
14002
14003 2015-05-27 Chung-Lin Tang <cltang@codesourcery.com>
14004
14005 * target.c (gomp_map_pointer): New function abstracting out
14006 GOMP_MAP_POINTER handling.
14007 (gomp_map_vars): Remove GOMP_MAP_POINTER handling code and use
14008 gomp_map_pointer().
14009
14010 2015-05-19 Jakub Jelinek <jakub@redhat.com>
14011
14012 PR middle-end/66199
14013 * testsuite/libgomp.c/pr66199-1.c: New test.
14014 * testsuite/libgomp.c/pr66199-2.c: New test.
14015 * testsuite/libgomp.c++/pr66199-1.C: New test.
14016 * testsuite/libgomp.c++/pr66199-2.C: New test.
14017 * testsuite/libgomp.fortran/pr66199-1.f90: New test.
14018 * testsuite/libgomp.fortran/pr66199-2.f90: New test.
14019
14020 2015-05-19 Julian Brown <julian@codesourcery.com>
14021
14022 * plugin/plugin-nvptx.c (nvptx_get_num_devices): Return zero
14023 on cuInit failure.
14024
14025 2015-05-13 Jakub Jelinek <jakub@redhat.com>
14026
14027 PR middle-end/66133
14028 * testsuite/libgomp.c/pr66133.c: New test.
14029
14030 2015-05-13 Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
14031
14032 * Makefile.in: Regenerated with automake-1.11.6.
14033 * aclocal.m4: Likewise.
14034 * config.h.in: Likewise.
14035 * configure: Likewise.
14036 * testsuite/Makefile.in: Likewise.
14037
14038 2015-05-08 Jason Merrill <jason@redhat.com>
14039
14040 * testsuite/libgomp.oacc-c-c++-common/reduction-4.c (main): Use
14041 _Complex.
14042
14043 * openacc.h (__GOACC_NOTHROW): Fix noexcept syntax.
14044
14045 2015-05-06 Julian Brown <julian@codesourcery.com>
14046
14047 * oacc-init.c (acc_device_lock): Add explanatory comment.
14048 (resolve_device): Add comment about locking requirement.
14049 (acc_init_1, acc_shutdown_1): Likewise. Add locking around
14050 gomp_init_device and gomp_fini_device calls.
14051 (acc_get_num_devices, acc_set_device_type, acc_get_device_type)
14052 (acc_get_device_num, acc_set_device_num): Add locking around
14053 resolve_device and gomp_init_device calls.
14054
14055 2015-05-06 Julian Brown <julian@codesourcery.com>
14056
14057 * oacc-init.c (acc_shutdown_1): Call gomp_mutex_unlock for
14058 goacc_thread_lock on error paths.
14059 * oacc-mem.c (lookup_host): Remove locking from function. Note
14060 locking requirement for caller in function comment.
14061 (lookup_dev): Likewise.
14062 (acc_free, acc_deviceptr, acc_hostptr, acc_is_present)
14063 (acc_map_data, acc_unmap_data, present_create_copy, delete_copyout)
14064 (update_dev_host, gomp_acc_insert_pointer, gomp_acc_remove_pointer):
14065 Add locking.
14066
14067 2015-05-05 Thomas Schwinge <thomas@codesourcery.com>
14068
14069 PR testsuite/65205
14070 PR libgomp/65993
14071 * testsuite/libgomp.oacc-c-c++-common/clauses-2.c: In dg-output,
14072 don't expect "0x" prefix for "%p" format specifier, don't expect
14073 "(nil)" for NULL pointer.
14074 * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
14075 * testsuite/libgomp.oacc-c-c++-common/lib-17.c: Likewise.
14076 * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
14077 * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
14078 * testsuite/libgomp.oacc-c-c++-common/lib-21.c: Likewise.
14079 * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Likewise.
14080 * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
14081 * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
14082 * testsuite/libgomp.oacc-c-c++-common/lib-26.c: Likewise.
14083 * testsuite/libgomp.oacc-c-c++-common/lib-27.c: Likewise.
14084 * testsuite/libgomp.oacc-c-c++-common/lib-28.c: Likewise.
14085 * testsuite/libgomp.oacc-c-c++-common/lib-29.c: Likewise.
14086 * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
14087 * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
14088 * testsuite/libgomp.oacc-c-c++-common/lib-35.c: Likewise.
14089 * testsuite/libgomp.oacc-c-c++-common/lib-36.c: Likewise.
14090 * testsuite/libgomp.oacc-c-c++-common/lib-39.c: Likewise.
14091 * testsuite/libgomp.oacc-c-c++-common/lib-40.c: Likewise.
14092 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
14093 * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Likewise.
14094 * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
14095 * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Likewise.
14096 * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
14097 * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Likewise.
14098 * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
14099 * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
14100 * testsuite/libgomp.oacc-c-c++-common/lib-57.c: Likewise.
14101 * testsuite/libgomp.oacc-c-c++-common/lib-58.c: Likewise.
14102 * testsuite/libgomp.oacc-c-c++-common/data-already-1.c: More
14103 accurately specify what we're looking for.
14104 * testsuite/libgomp.oacc-c-c++-common/data-already-2.c: Likewise.
14105 * testsuite/libgomp.oacc-c-c++-common/data-already-8.c: Likewise.
14106 * testsuite/libgomp.oacc-fortran/data-already-1.f: Likewise.
14107 * testsuite/libgomp.oacc-fortran/data-already-2.f: Likewise.
14108 * testsuite/libgomp.oacc-fortran/data-already-8.f: Likewise.
14109
14110 2015-04-30 James Norris <jnorris@codesourcery.com>
14111
14112 PR testsuite/65205
14113 * testsuite/lib/libgomp.exp
14114 (check_effective_target_openacc_host_selected)
14115 (check_effective_target_openacc_host_nonshm_selected): New
14116 procedures.
14117 * testsuite/libgomp.oacc-c-c++-common/clauses-2.c: Fix misuse of
14118 dg-shouldfail.
14119 * testsuite/libgomp.oacc-c-c++-common/lib-1.c: Likewise.
14120 * testsuite/libgomp.oacc-c-c++-common/lib-11.c: Likewise.
14121 * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
14122 * testsuite/libgomp.oacc-c-c++-common/lib-17.c: Likewise.
14123 * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
14124 * testsuite/libgomp.oacc-c-c++-common/lib-2.c: Likewise.
14125 * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
14126 * testsuite/libgomp.oacc-c-c++-common/lib-21.c: Likewise.
14127 * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Likewise.
14128 * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
14129 * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
14130 * testsuite/libgomp.oacc-c-c++-common/lib-26.c: Likewise.
14131 * testsuite/libgomp.oacc-c-c++-common/lib-27.c: Likewise.
14132 * testsuite/libgomp.oacc-c-c++-common/lib-28.c: Likewise.
14133 * testsuite/libgomp.oacc-c-c++-common/lib-29.c: Likewise.
14134 * testsuite/libgomp.oacc-c-c++-common/lib-3.c: Likewise.
14135 * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
14136 * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
14137 * testsuite/libgomp.oacc-c-c++-common/lib-35.c: Likewise.
14138 * testsuite/libgomp.oacc-c-c++-common/lib-36.c: Likewise.
14139 * testsuite/libgomp.oacc-c-c++-common/lib-39.c: Likewise.
14140 * testsuite/libgomp.oacc-c-c++-common/lib-4.c: Likewise.
14141 * testsuite/libgomp.oacc-c-c++-common/lib-40.c: Likewise.
14142 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
14143 * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Likewise.
14144 * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
14145 * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Likewise.
14146 * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
14147 * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Likewise.
14148 * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
14149 * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
14150 * testsuite/libgomp.oacc-c-c++-common/lib-57.c: Likewise.
14151 * testsuite/libgomp.oacc-c-c++-common/lib-58.c: Likewise.
14152 * testsuite/libgomp.oacc-c-c++-common/lib-62.c: Likewise.
14153 * testsuite/libgomp.oacc-c-c++-common/lib-63.c: Likewise.
14154 * testsuite/libgomp.oacc-c-c++-common/lib-64.c: Likewise.
14155 * testsuite/libgomp.oacc-c-c++-common/lib-65.c: Likewise.
14156 * testsuite/libgomp.oacc-c-c++-common/lib-67.c: Likewise.
14157 * testsuite/libgomp.oacc-c-c++-common/lib-68.c: Likewise.
14158 * testsuite/libgomp.oacc-c-c++-common/lib-71.c: Likewise.
14159 * testsuite/libgomp.oacc-c-c++-common/lib-77.c: Likewise.
14160 * testsuite/libgomp.oacc-c-c++-common/lib-80.c: Likewise.
14161 * testsuite/libgomp.oacc-c-c++-common/present-1.c: Likewise.
14162
14163 2015-04-08 Julian Brown <julian@codesourcery.com>
14164
14165 * libgomp.h (target_mem_desc: Remove mem_map field.
14166 (acc_dispatch_t): Remove open_device_func, close_device_func,
14167 get_device_num_func, set_device_num_func, target_data members.
14168 Change create_thread_data_func argument to device number instead of
14169 generic pointer.
14170 * oacc-async.c (assert.h): Include.
14171 (acc_async_test, acc_async_test_all, acc_wait, acc_wait_async)
14172 (acc_wait_all, acc_wait_all_async): Use current host thread's
14173 active device, not base_dev.
14174 * oacc-cuda.c (acc_get_current_cuda_device)
14175 (acc_get_current_cuda_context, acc_get_cuda_stream)
14176 (acc_set_cuda_stream): Likewise.
14177 * oacc-host.c (host_dispatch): Don't set open_device_func,
14178 close_device_func, get_device_num_func or set_device_num_func.
14179 * oacc-init.c (base_dev, init_key): Remove.
14180 (cached_base_dev): New.
14181 (name_of_acc_device_t): New.
14182 (acc_init_1): Initialise default-numbered device, not zeroth.
14183 (acc_shutdown_1): Close all devices of a given type.
14184 (goacc_destroy_thread): Don't use base_dev.
14185 (lazy_open, lazy_init, lazy_init_and_open): Remove.
14186 (goacc_attach_host_thread_to_device): New.
14187 (acc_init): Reimplement with goacc_attach_host_thread_to_device.
14188 (acc_get_num_devices): Don't use base_dev.
14189 (acc_set_device_type): Reimplement.
14190 (acc_get_device_type): Don't use base_dev.
14191 (acc_get_device_num): Tweak logic.
14192 (acc_set_device_num): Likewise.
14193 (acc_on_device): Use acc_get_device_type.
14194 (goacc_runtime_initialize): Initialize cached_base_dev not base_dev.
14195 (goacc_lazy_initialize): Reimplement with acc_init and
14196 goacc_attach_host_thread_to_device.
14197 * oacc-int.h (goacc_thread): Add base_dev field.
14198 (base_dev): Remove extern declaration.
14199 (goacc_attach_host_thread_to_device): Add prototype.
14200 * oacc-mem.c (acc_malloc): Use current thread's device instead of
14201 base_dev.
14202 (acc_free): Likewise.
14203 (acc_memcpy_to_device): Likewise.
14204 (acc_memcpy_from_device): Likewise.
14205 * oacc-parallel.c (select_acc_device): Remove. Replace calls with
14206 goacc_lazy_initialize (throughout).
14207 (GOACC_parallel): Use tgt_offset to locate target functions.
14208 * target.c (gomp_map_vars): Don't set tgt->mem_map.
14209 (gomp_unmap_vars): Use devicep->mem_map pointer not tgt->mem_map.
14210 (gomp_load_plugin_for_device): Remove open_device, close_device,
14211 get_device_num, set_device_num openacc hook initialisation. Don't set
14212 openacc.target_data.
14213 * plugin/plugin-host.c (GOMP_OFFLOAD_openacc_open_device)
14214 (GOMP_OFFLOAD_openacc_close_device)
14215 (GOMP_OFFLOAD_openacc_get_device_num)
14216 (GOMP_OFFLOAD_openacc_set_device_num): Remove.
14217 (GOMP_OFFLOAD_openacc_create_thread_data): Change (unused) argument
14218 to int.
14219 * plugin/plugin-nvptx.c (ptx_inited): Remove.
14220 (instantiated_devices, ptx_dev_lock): New.
14221 (struct ptx_image_data): New.
14222 (ptx_devices, ptx_images, ptx_image_lock): New.
14223 (fini_streams_for_device): Reorder cuStreamDestroy call.
14224 (nvptx_get_num_devices): Remove forward declaration.
14225 (nvptx_init): Change return type to bool.
14226 (nvptx_fini): Remove.
14227 (nvptx_attach_host_thread_to_device): New.
14228 (nvptx_open_device): Return struct ptx_device* instead of void*.
14229 (nvptx_close_device): Change argument type to struct ptx_device*,
14230 return type to void.
14231 (nvptx_get_num_devices): Use instantiated_devices not ptx_inited.
14232 (kernel_target_data, kernel_host_table): Remove static globals.
14233 (GOMP_OFFLOAD_register_image, GOMP_OFFLOAD_get_table): Remove.
14234 (GOMP_OFFLOAD_init_device): Reimplement.
14235 (GOMP_OFFLOAD_fini_device): Likewise.
14236 (GOMP_OFFLOAD_load_image, GOMP_OFFLOAD_unload_image): New.
14237 (GOMP_OFFLOAD_alloc, GOMP_OFFLOAD_free, GOMP_OFFLOAD_dev2host)
14238 (GOMP_OFFLOAD_host2dev): Use ORD argument.
14239 (GOMP_OFFLOAD_openacc_open_device)
14240 (GOMP_OFFLOAD_openacc_close_device)
14241 (GOMP_OFFLOAD_openacc_set_device_num)
14242 (GOMP_OFFLOAD_openacc_get_device_num): Remove.
14243 (GOMP_OFFLOAD_openacc_create_thread_data): Change argument to int
14244 (device number).
14245
14246 testsuite/
14247 * libgomp.oacc-c-c++-common/lib-9.c: Fix devnum check in test.
14248
14249 2015-04-06 Ilya Verbin <ilya.verbin@intel.com>
14250
14251 * libgomp-plugin.h (struct mapping_table): Replace with addr_pair.
14252 * libgomp.h (struct gomp_memory_mapping): Remove.
14253 (struct target_mem_desc): Change type of mem_map from
14254 gomp_memory_mapping * to splay_tree_s *.
14255 (struct gomp_device_descr): Remove register_image_func, get_table_func.
14256 Add load_image_func, unload_image_func.
14257 Change type of mem_map from gomp_memory_mapping to splay_tree_s.
14258 Remove offload_regions_registered.
14259 (gomp_init_tables): Remove.
14260 (gomp_free_memmap): Change type of argument from gomp_memory_mapping *
14261 to splay_tree_s *.
14262 * libgomp.map (GOMP_4.0.1): Add GOMP_offload_unregister.
14263 * oacc-host.c (host_dispatch): Do not initialize register_image_func,
14264 get_table_func, mem_map.is_initialized, mem_map.splay_tree.root,
14265 offload_regions_registered.
14266 Initialize load_image_func, unload_image_func, mem_map.root.
14267 (goacc_host_init): Do not initialize host_dispatch.mem_map.lock.
14268 * oacc-init.c (lazy_open): Don't call gomp_init_tables.
14269 (acc_shutdown_1): Use dev's lock and splay_tree instead of mem_map's.
14270 * oacc-mem.c (lookup_host): Get gomp_device_descr *dev instead of
14271 gomp_memory_mapping *. Use dev's lock and splay_tree.
14272 (lookup_dev): Use dev's lock.
14273 (acc_deviceptr): Pass dev to lookup_host instead of mem_map.
14274 (acc_is_present): Likewise.
14275 (acc_map_data): Likewise.
14276 (acc_unmap_data): Likewise. Use dev's lock.
14277 (present_create_copy): Likewise.
14278 (delete_copyout): Pass dev to lookup_host instead of mem_map.
14279 (update_dev_host): Likewise.
14280 (gomp_acc_remove_pointer): Likewise. Use dev's lock.
14281 * oacc-parallel.c (GOACC_parallel): Use dev's lock and splay_tree.
14282 * plugin/plugin-host.c (GOMP_OFFLOAD_register_image): Remove.
14283 (GOMP_OFFLOAD_get_table): Remove
14284 (GOMP_OFFLOAD_load_image): New function.
14285 (GOMP_OFFLOAD_unload_image): New function.
14286 * target.c (register_lock): New mutex for offload image registration.
14287 (num_devices): Do not guard with PLUGIN_SUPPORT.
14288 (gomp_realloc_unlock): New static function.
14289 (gomp_map_vars_existing): Add device descriptor argument. Unlock mutex
14290 before gomp_fatal.
14291 (gomp_map_vars): Use dev's lock and splay_tree instead of mem_map's.
14292 Pass devicep to gomp_map_vars_existing. Unlock mutex before gomp_fatal.
14293 (gomp_copy_from_async): Use dev's lock and splay_tree instead of
14294 mem_map's.
14295 (gomp_unmap_vars): Likewise.
14296 (gomp_update): Remove gomp_memory_mapping argument. Use dev's lock and
14297 splay_tree instead of mm's. Unlock mutex before gomp_fatal.
14298 (gomp_offload_image_to_device): New static function.
14299 (GOMP_offload_register): Add mutex lock.
14300 Call gomp_offload_image_to_device for all initialized devices.
14301 Replace gomp_realloc with gomp_realloc_unlock.
14302 (GOMP_offload_unregister): New function.
14303 (gomp_init_tables): Replace with gomp_init_device. Replace a call to
14304 get_table_func from the plugin with calls to init_device_func and
14305 gomp_offload_image_to_device.
14306 (gomp_free_memmap): Change type of argument from gomp_memory_mapping *
14307 to splay_tree_s *.
14308 (GOMP_target): Do not call gomp_init_tables. Use dev's lock and
14309 splay_tree instead of mem_map's. Unlock mutex before gomp_fatal.
14310 (GOMP_target_data): Do not call gomp_init_tables.
14311 (GOMP_target_update): Likewise. Remove argument from gomp_update.
14312 (gomp_load_plugin_for_device): Replace register_image and get_table
14313 with load_image and unload_image in DLSYM ().
14314 (gomp_register_images_for_device): Remove function.
14315 (gomp_target_init): Do not initialize current_device.mem_map.*,
14316 current_device.offload_regions_registered.
14317 Remove call to gomp_register_images_for_device.
14318 Do not free offload_images and num_offload_images.
14319
14320 2015-03-30 Jakub Jelinek <jakub@redhat.com>
14321
14322 PR fortran/65597
14323 * testsuite/libgomp.fortran/pr65597.f90: New test.
14324
14325 2015-03-27 Tom de Vries <tom@codesourcery.com>
14326
14327 PR testsuite/65594
14328 * testsuite/libgomp.graphite/force-parallel-6.c (abort): Declare.
14329 (init, check): New function.
14330 (foo): Change return type to void.
14331 (main): Call init and check.
14332
14333 2015-03-27 Tom de Vries <tom@codesourcery.com>
14334
14335 PR testsuite/65594
14336 * testsuite/libgomp.graphite/force-parallel-6.c (M): Define.
14337 (foo): Use M for non-inner loops to scale down test-case.
14338
14339 2015-03-25 Kai Tietz <ktietz@redhat.com>
14340
14341 PR libgomp/64972
14342 * oacc-parallel.c (GOACC_parallel): Use PRIu64 if available.
14343 (GOACC_data_start): Likewise.
14344 * target.c (gomp_map_vars): Likewise.
14345
14346 2015-03-21 John David Anglin <danglin@gcc.gnu.org>
14347
14348 * testsuite/libgomp.oacc-c-c++-common/reduction-4.c: Don't run on
14349 hppa*-*-hpux*.
14350
14351 2015-03-19 Jakub Jelinek <jakub@redhat.com>
14352
14353 * testsuite/libgomp.c/target-10.c: New test.
14354 * testsuite/libgomp.c++/target-4.C: New test.
14355
14356 2015-03-13 Ilya Verbin <ilya.verbin@intel.com>
14357
14358 * testsuite/libgomp.fortran/declare-target-1.f90: New test.
14359 * testsuite/libgomp.fortran/declare-target-2.f90: New file.
14360
14361 2015-03-13 Sebastian Huber <sebastian.huber@embedded-brains.de>
14362
14363 * configure.tgt (*-*-rtems*): Use local-exec TLS model.
14364 * configure.ac (*-*-rtems*): Assume Pthread is supported.
14365 (pthread.h): Check for this header file.
14366 * configure: Regenerate.
14367
14368 2015-02-25 Tom de Vries <tom@codesourcery.com>
14369
14370 * testsuite/libgomp.oacc-c-c++-common/reduction-1.c (DO_PRAGMA)
14371 (check_reduction_op, check_reduction_macro, max, min):
14372 Declare.
14373 (test_reductions_int, test_reductions_minmax, test_reductions_bool): New
14374 function.
14375 (main): Use new functions.
14376
14377 2015-02-18 Ilya Tocar <ilya.tocar@intel.com>
14378
14379 * target.c (gomp_load_plugin_for_device): Use const char * instead of
14380 char * for variables holding dlerror return values.
14381 (DLSYM_OPT): Ditto.
14382
14383 2015-02-17 Thomas Schwinge <thomas@codesourcery.com>
14384
14385 * libgomp-plugin.c (GOMP_PLUGIN_debug): Fix typo.
14386
14387 2015-02-17 Thomas Schwinge <thomas@codesourcery.com>
14388 Cesar Philippidis <cesar@codesourcery.com>
14389
14390 * oacc-ptx.h (GOACC_INTERNAL_PTX): Add GOACC_tid, GOACC_ntid,
14391 GOACC_ctaid, and GOACC_nctaid routines.
14392
14393 2015-02-11 Jakub Jelinek <jakub@redhat.com>
14394
14395 PR c/64824
14396 * testsuite/libgomp.c/atomic-18.c: New test.
14397 * testsuite/libgomp.c++/atomic-16.C: New test.
14398
14399 2015-02-04 Jakub Jelinek <jakub@redhat.com>
14400
14401 PR c/64824
14402 PR c/64868
14403 * testsuite/libgomp.c/pr64824.c: New test.
14404 * testsuite/libgomp.c/pr64868.c: New test.
14405 * testsuite/libgomp.c++/pr64824.C: New test.
14406 * testsuite/libgomp.c++/pr64868.C: New test.
14407
14408 2015-02-01 David Edelsohn <dje.gcc@gmail.com>
14409
14410 PR libgomp/64635
14411 * configure.tgt (*-*-aix*): Use standard posix plugin-suffix.h.
14412 Link with -lpthread.
14413 * config/aix/plugin-suffix.h: Delete.
14414
14415 2015-01-28 Jack Howarth <howarth.at.gcc@gmail.com>
14416
14417 PR libgomp/64635
14418 * configure.tgt (*-*-aix*): Use config_path "aix posix".
14419 (*-*-darwin*): Use config_path "bsd darwin posix".
14420 (*-*-hpux*): Use config_path "hpux posix".
14421 * target.c: Add include of plugin-suffix.h and use
14422 SONAME_SUFFIX macro.
14423 * config/aix/plugin-suffix.h: New file.
14424 * config/darwin/plugin-suffix.h: New file.
14425 * config/hpux/plugin-suffix.h: New file.
14426 * config/posix/plugin-suffix.h: New file.
14427
14428 2015-01-23 Jakub Jelinek <jakub@redhat.com>
14429
14430 PR middle-end/64734
14431 * libgomp.c/pr64734.c: New test.
14432
14433 2015-01-23 Tom de Vries <tom@codesourcery.com>
14434
14435 PR libgomp/64672
14436 * testsuite/libgomp.oacc-c-c++-common/abort-5.c: New test.
14437
14438 2015-01-23 Tom de Vries <tom@codesourcery.com>
14439
14440 PR libgomp/64707
14441 * testsuite/libgomp.c/target-9.c: Add -ftree-parallelize-loops=0 to
14442 dg-options.
14443
14444 2015-01-19 Thomas Schwinge <thomas@codesourcery.com>
14445
14446 PR libgomp/64625
14447 * libgomp_g.h (GOACC_data_start, GOACC_enter_exit_data)
14448 (GOACC_parallel, GOACC_update): Remove const_void *offload_table
14449 formal parameter. Update all users.
14450 * target.c (GOMP_target, GOMP_target_data, GOMP_target_update):
14451 Document unused formal parameter.
14452
14453 2015-01-16 Thomas Schwinge <thomas@codesourcery.com>
14454
14455 * oacc-parallel.c: Don't include <alloca.h>.
14456 (GOACC_parallel): Use gomp_alloca instead of alloca.
14457
14458 2015-01-16 Gerald Pfeifer <gerald@pfeifer.com>
14459
14460 * target.c (num_devices): Guard with PLUGIN_SUPPORT.
14461
14462 2015-01-15 Thomas Schwinge <thomas@codesourcery.com>
14463 James Norris <jnorris@codesourcery.com>
14464 Tom de Vries <tom@codesourcery.com>
14465 Julian Brown <julian@codesourcery.com>
14466 Cesar Philippidis <cesar@codesourcery.com>
14467 Nathan Sidwell <nathan@codesourcery.com>
14468 Tobias Burnus <burnus@net-b.de>
14469
14470 * Makefile.am (search_path): Add $(top_srcdir)/../include.
14471 (libgomp_la_SOURCES): Add splay-tree.c, libgomp-plugin.c,
14472 oacc-parallel.c, oacc-host.c, oacc-init.c, oacc-mem.c,
14473 oacc-async.c, oacc-plugin.c, oacc-cuda.c.
14474 [USE_FORTRAN] (libgomp_la_SOURCES): Add openacc.f90.
14475 Include $(top_srcdir)/plugin/Makefrag.am.
14476 (nodist_libsubinclude_HEADERS): Add openacc.h.
14477 [USE_FORTRAN] (nodist_finclude_HEADERS): Add openacc_lib.h,
14478 openacc.f90, openacc.mod, openacc_kinds.mod.
14479 (omp_lib.mod): Generalize into...
14480 (%.mod): ... this new rule.
14481 (openacc_kinds.mod, openacc.mod): New rules.
14482 * plugin/configfrag.ac: New file.
14483 * configure.ac: Move plugin/offloading support into it. Include
14484 it. Instantiate testsuite/libgomp-test-support.pt.exp.
14485 * plugin/Makefrag.am: New file.
14486 * testsuite/Makefile.am (OFFLOAD_TARGETS)
14487 (OFFLOAD_ADDITIONAL_OPTIONS, OFFLOAD_ADDITIONAL_LIB_PATHS): Don't
14488 export.
14489 (libgomp-test-support.exp): New rule.
14490 (all-local): Depend on it.
14491 * Makefile.in: Regenerate.
14492 * testsuite/Makefile.in: Regenerate.
14493 * config.h.in: Likewise.
14494 * configure: Likewise.
14495 * configure.tgt: Harden shell syntax.
14496 * env.c: Include "oacc-int.h".
14497 (parse_acc_device_type): New function.
14498 (gomp_debug_var, goacc_device_type, goacc_device_num): New
14499 variables.
14500 (initialize_env): Initialize those. Call
14501 goacc_runtime_initialize.
14502 * error.c (gomp_vdebug, gomp_debug, gomp_vfatal): New functions.
14503 (gomp_fatal): Call gomp_vfatal.
14504 * libgomp.h: Include "libgomp-plugin.h" and <stdarg.h>.
14505 (gomp_debug_var, goacc_device_type, goacc_device_num, gomp_vdebug)
14506 (gomp_debug, gomp_verror, gomp_vfatal, gomp_init_targets_once)
14507 (splay_tree_node, splay_tree, splay_tree_key)
14508 (struct target_mem_desc, struct splay_tree_key_s)
14509 (struct gomp_memory_mapping, struct acc_dispatch_t)
14510 (struct gomp_device_descr, gomp_acc_insert_pointer)
14511 (gomp_acc_remove_pointer, target_mem_desc, gomp_copy_from_async)
14512 (gomp_unmap_vars, gomp_init_device, gomp_init_tables)
14513 (gomp_free_memmap, gomp_fini_device): New declarations.
14514 (gomp_vdebug, gomp_debug): New macros.
14515 Include "splay-tree.h".
14516 * libgomp.map (OACC_2.0): New symbol version. Use for
14517 acc_get_num_devices, acc_get_num_devices_h_, acc_set_device_type,
14518 acc_set_device_type_h_, acc_get_device_type,
14519 acc_get_device_type_h_, acc_set_device_num, acc_set_device_num_h_,
14520 acc_get_device_num, acc_get_device_num_h_, acc_async_test,
14521 acc_async_test_h_, acc_async_test_all, acc_async_test_all_h_,
14522 acc_wait, acc_wait_h_, acc_wait_async, acc_wait_async_h_,
14523 acc_wait_all, acc_wait_all_h_, acc_wait_all_async,
14524 acc_wait_all_async_h_, acc_init, acc_init_h_, acc_shutdown,
14525 acc_shutdown_h_, acc_on_device, acc_on_device_h_, acc_malloc,
14526 acc_free, acc_copyin, acc_copyin_32_h_, acc_copyin_64_h_,
14527 acc_copyin_array_h_, acc_present_or_copyin,
14528 acc_present_or_copyin_32_h_, acc_present_or_copyin_64_h_,
14529 acc_present_or_copyin_array_h_, acc_create, acc_create_32_h_,
14530 acc_create_64_h_, acc_create_array_h_, acc_present_or_create,
14531 acc_present_or_create_32_h_, acc_present_or_create_64_h_,
14532 acc_present_or_create_array_h_, acc_copyout, acc_copyout_32_h_,
14533 acc_copyout_64_h_, acc_copyout_array_h_, acc_delete,
14534 acc_delete_32_h_, acc_delete_64_h_, acc_delete_array_h_,
14535 acc_update_device, acc_update_device_32_h_,
14536 acc_update_device_64_h_, acc_update_device_array_h_,
14537 acc_update_self, acc_update_self_32_h_, acc_update_self_64_h_,
14538 acc_update_self_array_h_, acc_map_data, acc_unmap_data,
14539 acc_deviceptr, acc_hostptr, acc_is_present, acc_is_present_32_h_,
14540 acc_is_present_64_h_, acc_is_present_array_h_,
14541 acc_memcpy_to_device, acc_memcpy_from_device,
14542 acc_get_current_cuda_device, acc_get_current_cuda_context,
14543 acc_get_cuda_stream, acc_set_cuda_stream.
14544 (GOACC_2.0): New symbol version. Use for GOACC_data_end,
14545 GOACC_data_start, GOACC_enter_exit_data, GOACC_parallel,
14546 GOACC_update, GOACC_wait, GOACC_get_thread_num,
14547 GOACC_get_num_threads.
14548 (GOMP_PLUGIN_1.0): New symbol version. Use for
14549 GOMP_PLUGIN_malloc, GOMP_PLUGIN_malloc_cleared,
14550 GOMP_PLUGIN_realloc, GOMP_PLUGIN_debug, GOMP_PLUGIN_error,
14551 GOMP_PLUGIN_fatal, GOMP_PLUGIN_async_unmap_vars,
14552 GOMP_PLUGIN_acc_thread.
14553 * libgomp.texi: Update for OpenACC changes, and GOMP_DEBUG
14554 environment variable.
14555 * libgomp_g.h (GOACC_data_start, GOACC_data_end)
14556 (GOACC_enter_exit_data, GOACC_parallel, GOACC_update, GOACC_wait)
14557 (GOACC_get_num_threads, GOACC_get_thread_num): New declarations.
14558 * splay-tree.h (splay_tree_lookup, splay_tree_insert)
14559 (splay_tree_remove): New declarations.
14560 (rotate_left, rotate_right, splay_tree_splay, splay_tree_insert)
14561 (splay_tree_remove, splay_tree_lookup): Move into...
14562 * splay-tree.c: ... this new file.
14563 * target.c: Include "oacc-plugin.h", "oacc-int.h", <assert.h>.
14564 (splay_tree_node, splay_tree, splay_tree_key)
14565 (struct target_mem_desc, struct splay_tree_key_s)
14566 (struct gomp_device_descr): Don't declare.
14567 (num_devices_openmp): New variable.
14568 (gomp_get_num_devices ): Use it.
14569 (gomp_init_targets_once): New function.
14570 (gomp_get_num_devices ): Use it.
14571 (get_kind, gomp_copy_from_async, gomp_free_memmap)
14572 (gomp_fini_device, gomp_register_image_for_device): New functions.
14573 (gomp_map_vars): Add devaddrs parameter.
14574 (gomp_update): Add mm parameter.
14575 (gomp_init_device): Move most of it into...
14576 (gomp_init_tables): ... this new function.
14577 (gomp_register_images_for_device): Remove function.
14578 (splay_compare, gomp_map_vars, gomp_unmap_vars, gomp_init_device):
14579 Make them hidden instead of static.
14580 (gomp_map_vars_existing, gomp_map_vars, gomp_unmap_vars)
14581 (gomp_update, gomp_init_device, GOMP_target, GOMP_target_data)
14582 (GOMP_target_end_data, GOMP_target_update)
14583 (gomp_load_plugin_for_device, gomp_target_init): Update for
14584 OpenACC changes.
14585 * oacc-async.c: New file.
14586 * oacc-cuda.c: Likewise.
14587 * oacc-host.c: Likewise.
14588 * oacc-init.c: Likewise.
14589 * oacc-int.h: Likewise.
14590 * oacc-mem.c: Likewise.
14591 * oacc-parallel.c: Likewise.
14592 * oacc-plugin.c: Likewise.
14593 * oacc-plugin.h: Likewise.
14594 * oacc-ptx.h: Likewise.
14595 * openacc.f90: Likewise.
14596 * openacc.h: Likewise.
14597 * openacc_lib.h: Likewise.
14598 * plugin/plugin-host.c: Likewise.
14599 * plugin/plugin-nvptx.c: Likewise.
14600 * libgomp-plugin.c: Likewise.
14601 * libgomp-plugin.h: Likewise.
14602 * libgomp_target.h: Remove file after merging content into the
14603 former file. Update all users.
14604 * testsuite/lib/libgomp.exp: Load libgomp-test-support.exp.
14605 (offload_targets_s, offload_targets_s_openacc): New variables.
14606 (check_effective_target_openacc_nvidia_accel_present)
14607 (check_effective_target_openacc_nvidia_accel_selected): New
14608 procedures.
14609 (libgomp_init): Update for OpenACC changes.
14610 * testsuite/libgomp-test-support.exp.in: New file.
14611 * testsuite/libgomp.oacc-c++/c++.exp: Likewise.
14612 * testsuite/libgomp.oacc-c/c.exp: Likewise.
14613 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
14614 * testsuite/libgomp.oacc-c-c++-common/abort-1.c: Likewise.
14615 * testsuite/libgomp.oacc-c-c++-common/abort-2.c: Likewise.
14616 * testsuite/libgomp.oacc-c-c++-common/abort-3.c: Likewise.
14617 * testsuite/libgomp.oacc-c-c++-common/abort-4.c: Likewise.
14618 * testsuite/libgomp.oacc-c-c++-common/acc_on_device-1.c: Likewise.
14619 * testsuite/libgomp.oacc-c-c++-common/asyncwait-1.c: Likewise.
14620 * testsuite/libgomp.oacc-c-c++-common/cache-1.c: Likewise.
14621 * testsuite/libgomp.oacc-c-c++-common/clauses-1.c: Likewise.
14622 * testsuite/libgomp.oacc-c-c++-common/clauses-2.c: Likewise.
14623 * testsuite/libgomp.oacc-c-c++-common/collapse-1.c: Likewise.
14624 * testsuite/libgomp.oacc-c-c++-common/collapse-2.c: Likewise.
14625 * testsuite/libgomp.oacc-c-c++-common/collapse-3.c: Likewise.
14626 * testsuite/libgomp.oacc-c-c++-common/collapse-4.c: Likewise.
14627 * testsuite/libgomp.oacc-c-c++-common/context-1.c: Likewise.
14628 * testsuite/libgomp.oacc-c-c++-common/context-2.c: Likewise.
14629 * testsuite/libgomp.oacc-c-c++-common/context-3.c: Likewise.
14630 * testsuite/libgomp.oacc-c-c++-common/context-4.c: Likewise.
14631 * testsuite/libgomp.oacc-c-c++-common/data-1.c: Likewise.
14632 * testsuite/libgomp.oacc-c-c++-common/data-2.c: Likewise.
14633 * testsuite/libgomp.oacc-c-c++-common/data-3.c: Likewise.
14634 * testsuite/libgomp.oacc-c-c++-common/data-already-1.c: Likewise.
14635 * testsuite/libgomp.oacc-c-c++-common/data-already-2.c: Likewise.
14636 * testsuite/libgomp.oacc-c-c++-common/data-already-3.c: Likewise.
14637 * testsuite/libgomp.oacc-c-c++-common/data-already-4.c: Likewise.
14638 * testsuite/libgomp.oacc-c-c++-common/data-already-5.c: Likewise.
14639 * testsuite/libgomp.oacc-c-c++-common/data-already-6.c: Likewise.
14640 * testsuite/libgomp.oacc-c-c++-common/data-already-7.c: Likewise.
14641 * testsuite/libgomp.oacc-c-c++-common/data-already-8.c: Likewise.
14642 * testsuite/libgomp.oacc-c-c++-common/deviceptr-1.c: Likewise.
14643 * testsuite/libgomp.oacc-c-c++-common/if-1.c: Likewise.
14644 * testsuite/libgomp.oacc-c-c++-common/kernels-1.c: Likewise.
14645 * testsuite/libgomp.oacc-c-c++-common/kernels-empty.c: Likewise.
14646 * testsuite/libgomp.oacc-c-c++-common/lib-1.c: Likewise.
14647 * testsuite/libgomp.oacc-c-c++-common/lib-10.c: Likewise.
14648 * testsuite/libgomp.oacc-c-c++-common/lib-11.c: Likewise.
14649 * testsuite/libgomp.oacc-c-c++-common/lib-12.c: Likewise.
14650 * testsuite/libgomp.oacc-c-c++-common/lib-13.c: Likewise.
14651 * testsuite/libgomp.oacc-c-c++-common/lib-14.c: Likewise.
14652 * testsuite/libgomp.oacc-c-c++-common/lib-15.c: Likewise.
14653 * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
14654 * testsuite/libgomp.oacc-c-c++-common/lib-17.c: Likewise.
14655 * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
14656 * testsuite/libgomp.oacc-c-c++-common/lib-19.c: Likewise.
14657 * testsuite/libgomp.oacc-c-c++-common/lib-2.c: Likewise.
14658 * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
14659 * testsuite/libgomp.oacc-c-c++-common/lib-21.c: Likewise.
14660 * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Likewise.
14661 * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
14662 * testsuite/libgomp.oacc-c-c++-common/lib-24.c: Likewise.
14663 * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
14664 * testsuite/libgomp.oacc-c-c++-common/lib-26.c: Likewise.
14665 * testsuite/libgomp.oacc-c-c++-common/lib-27.c: Likewise.
14666 * testsuite/libgomp.oacc-c-c++-common/lib-28.c: Likewise.
14667 * testsuite/libgomp.oacc-c-c++-common/lib-29.c: Likewise.
14668 * testsuite/libgomp.oacc-c-c++-common/lib-3.c: Likewise.
14669 * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
14670 * testsuite/libgomp.oacc-c-c++-common/lib-31.c: Likewise.
14671 * testsuite/libgomp.oacc-c-c++-common/lib-32.c: Likewise.
14672 * testsuite/libgomp.oacc-c-c++-common/lib-33.c: Likewise.
14673 * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
14674 * testsuite/libgomp.oacc-c-c++-common/lib-35.c: Likewise.
14675 * testsuite/libgomp.oacc-c-c++-common/lib-36.c: Likewise.
14676 * testsuite/libgomp.oacc-c-c++-common/lib-37.c: Likewise.
14677 * testsuite/libgomp.oacc-c-c++-common/lib-38.c: Likewise.
14678 * testsuite/libgomp.oacc-c-c++-common/lib-39.c: Likewise.
14679 * testsuite/libgomp.oacc-c-c++-common/lib-4.c: Likewise.
14680 * testsuite/libgomp.oacc-c-c++-common/lib-40.c: Likewise.
14681 * testsuite/libgomp.oacc-c-c++-common/lib-41.c: Likewise.
14682 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
14683 * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Likewise.
14684 * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
14685 * testsuite/libgomp.oacc-c-c++-common/lib-45.c: Likewise.
14686 * testsuite/libgomp.oacc-c-c++-common/lib-46.c: Likewise.
14687 * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Likewise.
14688 * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
14689 * testsuite/libgomp.oacc-c-c++-common/lib-49.c: Likewise.
14690 * testsuite/libgomp.oacc-c-c++-common/lib-5.c: Likewise.
14691 * testsuite/libgomp.oacc-c-c++-common/lib-50.c: Likewise.
14692 * testsuite/libgomp.oacc-c-c++-common/lib-51.c: Likewise.
14693 * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Likewise.
14694 * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
14695 * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
14696 * testsuite/libgomp.oacc-c-c++-common/lib-55.c: Likewise.
14697 * testsuite/libgomp.oacc-c-c++-common/lib-56.c: Likewise.
14698 * testsuite/libgomp.oacc-c-c++-common/lib-57.c: Likewise.
14699 * testsuite/libgomp.oacc-c-c++-common/lib-58.c: Likewise.
14700 * testsuite/libgomp.oacc-c-c++-common/lib-59.c: Likewise.
14701 * testsuite/libgomp.oacc-c-c++-common/lib-6.c: Likewise.
14702 * testsuite/libgomp.oacc-c-c++-common/lib-60.c: Likewise.
14703 * testsuite/libgomp.oacc-c-c++-common/lib-61.c: Likewise.
14704 * testsuite/libgomp.oacc-c-c++-common/lib-62.c: Likewise.
14705 * testsuite/libgomp.oacc-c-c++-common/lib-63.c: Likewise.
14706 * testsuite/libgomp.oacc-c-c++-common/lib-64.c: Likewise.
14707 * testsuite/libgomp.oacc-c-c++-common/lib-65.c: Likewise.
14708 * testsuite/libgomp.oacc-c-c++-common/lib-66.c: Likewise.
14709 * testsuite/libgomp.oacc-c-c++-common/lib-67.c: Likewise.
14710 * testsuite/libgomp.oacc-c-c++-common/lib-68.c: Likewise.
14711 * testsuite/libgomp.oacc-c-c++-common/lib-69.c: Likewise.
14712 * testsuite/libgomp.oacc-c-c++-common/lib-7.c: Likewise.
14713 * testsuite/libgomp.oacc-c-c++-common/lib-70.c: Likewise.
14714 * testsuite/libgomp.oacc-c-c++-common/lib-71.c: Likewise.
14715 * testsuite/libgomp.oacc-c-c++-common/lib-72.c: Likewise.
14716 * testsuite/libgomp.oacc-c-c++-common/lib-73.c: Likewise.
14717 * testsuite/libgomp.oacc-c-c++-common/lib-74.c: Likewise.
14718 * testsuite/libgomp.oacc-c-c++-common/lib-75.c: Likewise.
14719 * testsuite/libgomp.oacc-c-c++-common/lib-76.c: Likewise.
14720 * testsuite/libgomp.oacc-c-c++-common/lib-77.c: Likewise.
14721 * testsuite/libgomp.oacc-c-c++-common/lib-78.c: Likewise.
14722 * testsuite/libgomp.oacc-c-c++-common/lib-79.c: Likewise.
14723 * testsuite/libgomp.oacc-c-c++-common/lib-80.c: Likewise.
14724 * testsuite/libgomp.oacc-c-c++-common/lib-81.c: Likewise.
14725 * testsuite/libgomp.oacc-c-c++-common/lib-82.c: Likewise.
14726 * testsuite/libgomp.oacc-c-c++-common/lib-83.c: Likewise.
14727 * testsuite/libgomp.oacc-c-c++-common/lib-84.c: Likewise.
14728 * testsuite/libgomp.oacc-c-c++-common/lib-85.c: Likewise.
14729 * testsuite/libgomp.oacc-c-c++-common/lib-86.c: Likewise.
14730 * testsuite/libgomp.oacc-c-c++-common/lib-87.c: Likewise.
14731 * testsuite/libgomp.oacc-c-c++-common/lib-88.c: Likewise.
14732 * testsuite/libgomp.oacc-c-c++-common/lib-89.c: Likewise.
14733 * testsuite/libgomp.oacc-c-c++-common/lib-9.c: Likewise.
14734 * testsuite/libgomp.oacc-c-c++-common/lib-90.c: Likewise.
14735 * testsuite/libgomp.oacc-c-c++-common/lib-91.c: Likewise.
14736 * testsuite/libgomp.oacc-c-c++-common/lib-92.c: Likewise.
14737 * testsuite/libgomp.oacc-c-c++-common/nested-1.c: Likewise.
14738 * testsuite/libgomp.oacc-c-c++-common/nested-2.c: Likewise.
14739 * testsuite/libgomp.oacc-c-c++-common/offset-1.c: Likewise.
14740 * testsuite/libgomp.oacc-c-c++-common/parallel-1.c: Likewise.
14741 * testsuite/libgomp.oacc-c-c++-common/parallel-empty.c: Likewise.
14742 * testsuite/libgomp.oacc-c-c++-common/pointer-align-1.c: Likewise.
14743 * testsuite/libgomp.oacc-c-c++-common/present-1.c: Likewise.
14744 * testsuite/libgomp.oacc-c-c++-common/present-2.c: Likewise.
14745 * testsuite/libgomp.oacc-c-c++-common/reduction-1.c: Likewise.
14746 * testsuite/libgomp.oacc-c-c++-common/reduction-2.c: Likewise.
14747 * testsuite/libgomp.oacc-c-c++-common/reduction-3.c: Likewise.
14748 * testsuite/libgomp.oacc-c-c++-common/reduction-4.c: Likewise.
14749 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Likewise.
14750 * testsuite/libgomp.oacc-c-c++-common/reduction-initial-1.c:
14751 Likewise.
14752 * testsuite/libgomp.oacc-c-c++-common/subr.h: Likewise.
14753 * testsuite/libgomp.oacc-c-c++-common/subr.ptx: Likewise.
14754 * testsuite/libgomp.oacc-c-c++-common/timer.h: Likewise.
14755 * testsuite/libgomp.oacc-c-c++-common/update-1-2.c: Likewise.
14756 * testsuite/libgomp.oacc-c-c++-common/update-1.c: Likewise.
14757 * testsuite/libgomp.oacc-fortran/abort-1.f90: Likewise.
14758 * testsuite/libgomp.oacc-fortran/abort-2.f90: Likewise.
14759 * testsuite/libgomp.oacc-fortran/acc_on_device-1-1.f90: Likewise.
14760 * testsuite/libgomp.oacc-fortran/acc_on_device-1-2.f: Likewise.
14761 * testsuite/libgomp.oacc-fortran/acc_on_device-1-3.f: Likewise.
14762 * testsuite/libgomp.oacc-fortran/asyncwait-1.f90: Likewise.
14763 * testsuite/libgomp.oacc-fortran/asyncwait-2.f90: Likewise.
14764 * testsuite/libgomp.oacc-fortran/asyncwait-3.f90: Likewise.
14765 * testsuite/libgomp.oacc-fortran/collapse-1.f90: Likewise.
14766 * testsuite/libgomp.oacc-fortran/collapse-2.f90: Likewise.
14767 * testsuite/libgomp.oacc-fortran/collapse-3.f90: Likewise.
14768 * testsuite/libgomp.oacc-fortran/collapse-4.f90: Likewise.
14769 * testsuite/libgomp.oacc-fortran/collapse-5.f90: Likewise.
14770 * testsuite/libgomp.oacc-fortran/collapse-6.f90: Likewise.
14771 * testsuite/libgomp.oacc-fortran/collapse-7.f90: Likewise.
14772 * testsuite/libgomp.oacc-fortran/collapse-8.f90: Likewise.
14773 * testsuite/libgomp.oacc-fortran/data-1.f90: Likewise.
14774 * testsuite/libgomp.oacc-fortran/data-2.f90: Likewise.
14775 * testsuite/libgomp.oacc-fortran/data-3.f90: Likewise.
14776 * testsuite/libgomp.oacc-fortran/data-4-2.f90: Likewise.
14777 * testsuite/libgomp.oacc-fortran/data-4.f90: Likewise.
14778 * testsuite/libgomp.oacc-fortran/data-already-1.f: Likewise.
14779 * testsuite/libgomp.oacc-fortran/data-already-2.f: Likewise.
14780 * testsuite/libgomp.oacc-fortran/data-already-3.f: Likewise.
14781 * testsuite/libgomp.oacc-fortran/data-already-4.f: Likewise.
14782 * testsuite/libgomp.oacc-fortran/data-already-5.f: Likewise.
14783 * testsuite/libgomp.oacc-fortran/data-already-6.f: Likewise.
14784 * testsuite/libgomp.oacc-fortran/data-already-7.f: Likewise.
14785 * testsuite/libgomp.oacc-fortran/data-already-8.f: Likewise.
14786 * testsuite/libgomp.oacc-fortran/lib-1.f90: Likewise.
14787 * testsuite/libgomp.oacc-fortran/lib-10.f90: Likewise.
14788 * testsuite/libgomp.oacc-fortran/lib-2.f: Likewise.
14789 * testsuite/libgomp.oacc-fortran/lib-3.f: Likewise.
14790 * testsuite/libgomp.oacc-fortran/lib-4.f90: Likewise.
14791 * testsuite/libgomp.oacc-fortran/lib-5.f90: Likewise.
14792 * testsuite/libgomp.oacc-fortran/lib-6.f90: Likewise.
14793 * testsuite/libgomp.oacc-fortran/lib-7.f90: Likewise.
14794 * testsuite/libgomp.oacc-fortran/lib-8.f90: Likewise.
14795 * testsuite/libgomp.oacc-fortran/map-1.f90: Likewise.
14796 * testsuite/libgomp.oacc-fortran/openacc_version-1.f: Likewise.
14797 * testsuite/libgomp.oacc-fortran/openacc_version-2.f90: Likewise.
14798 * testsuite/libgomp.oacc-fortran/pointer-align-1.f90: Likewise.
14799 * testsuite/libgomp.oacc-fortran/pset-1.f90: Likewise.
14800 * testsuite/libgomp.oacc-fortran/reduction-1.f90: Likewise.
14801 * testsuite/libgomp.oacc-fortran/reduction-2.f90: Likewise.
14802 * testsuite/libgomp.oacc-fortran/reduction-3.f90: Likewise.
14803 * testsuite/libgomp.oacc-fortran/reduction-4.f90: Likewise.
14804 * testsuite/libgomp.oacc-fortran/reduction-5.f90: Likewise.
14805 * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
14806 * testsuite/libgomp.oacc-fortran/routine-1.f90: Likewise.
14807 * testsuite/libgomp.oacc-fortran/routine-2.f90: Likewise.
14808 * testsuite/libgomp.oacc-fortran/routine-3.f90: Likewise.
14809 * testsuite/libgomp.oacc-fortran/routine-4.f90: Likewise.
14810 * testsuite/libgomp.oacc-fortran/subarrays-1.f90: Likewise.
14811 * testsuite/libgomp.oacc-fortran/subarrays-2.f90: Likewise.
14812
14813 2015-01-10 Thomas Schwinge <thomas@codesourcery.com>
14814 Julian Brown <julian@codesourcery.com>
14815 David Malcolm <dmalcolm@redhat.com>
14816
14817 * configure.ac: Rename libgomp from "GNU OpenMP Runtime Library"
14818 to "GNU Offloading and Multi Processing Runtime Library". Change
14819 all users.
14820 * configure: Regenerate.
14821 * libgomp.texi: Update.
14822
14823 2015-01-08 Thomas Schwinge <thomas@codesourcery.com>
14824
14825 * configure.ac [tgt_dir] (offload_additional_lib_paths): Also add
14826 "$tgt_dir/lib32".
14827 * configure: Regenerate.
14828
14829 * testsuite/lib/libgomp.exp (libgomp_init): Correctly match
14830 "intelmic" in $offload_targets.
14831
14832 2015-01-05 Jakub Jelinek <jakub@redhat.com>
14833
14834 Update copyright years.
14835
14836 * libgomp.texi: Bump @copying's copyright year.
14837
14838 2014-12-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14839
14840 * testsuite/lib/libgomp.exp: Load target-utils.exp.
14841 Move load of target-supports.exp earlier.
14842
14843 2014-12-10 Ilya Verbin <ilya.verbin@intel.com>
14844
14845 * testsuite/libgomp.c/target-9.c: New test.
14846
14847 2014-12-09 Varvara Rainchik <varvara.rainchik@intel.com>
14848
14849 * config.h.in: Regenerate.
14850 * configure: Regenerate.
14851 * configure.ac: Add GCC_CHECK_EMUTLS.
14852 * libgomp.h: Add check for USE_EMUTLS: this case
14853 is equal to HAVE_TLS.
14854 * team.c: Likewise.
14855
14856 2014-12-03 Uros Bizjak <ubizjak@gmail.com>
14857
14858 * configure.tgt (x86_64-*-linux*): Tune -m32 multilib to generic.
14859
14860 2014-11-28 Andrey Turetskiy <andrey.turetskiy@intel.com>
14861 Ilya Verbin <ilya.verbin@intel.com>
14862
14863 * testsuite/libgomp.c/target-critical-1.c: New test.
14864
14865 2014-11-26 Jakub Jelinek <jakub@redhat.com>
14866
14867 * testsuite/libgomp.c/examples-4/e.53.4.c: Add -DITESTITERS=20
14868 to dg-options unless expensive testing is on.
14869 (TESTITERS): Define to N if not defined.
14870 (main): Use TESTITERS instead of N.
14871 * testsuite/libgomp.c/examples-4/e.55.1.c: Define CHUNKSZ from
14872 dg-additional-options depending on whether expensive testing is on.
14873 * testsuite/libgomp.fortran/examples-4/e.55.1.f90 (e_55_1_mod):
14874 Decrease N to 100000 and CHUNKSZ to 10000.
14875
14876 2014-11-24 Jakub Jelinek <jakub@redhat.com>
14877
14878 PR fortran/63938
14879 * testsuite/libgomp.fortran/pr63938-1.f90: New test.
14880 * testsuite/libgomp.fortran/pr63938-2.f90: New test.
14881
14882 2014-11-21 Steve Ellcey <sellcey@imgtec.com>
14883
14884 * config/linux/mips/futex.h (SYS_futex): Define if not already done.
14885
14886 2014-11-21 H.J. Lu <hongjiu.lu@intel.com>
14887
14888 PR bootstrap/63784
14889 * configure: Regenerated.
14890
14891 2014-11-19 Uros Bizjak <ubizjak@gmail.com>
14892
14893 * testsuite/libgomp.c/examples-4/e.53.5.c: Require
14894 vect_simd_clones effective target.
14895 * testsuite/libgomp.fortran/examples-4/e.53.5.f90: Ditto.
14896
14897 2014-11-14 Jakub Jelinek <jakub@redhat.com>
14898
14899 * libgomp.c/examples-4/e.54.2.c (main): Use N / 8 instead
14900 of 32 as block_size.
14901 * libgomp.fortran/examples-4/e.54.2.f90 (e_54_1): Use n / 8
14902 instead of 32 as block_size.
14903
14904 2014-11-13 Andrey Turetskiy <andrey.turetskiy@intel.com>
14905 Ilya Verbin <ilya.verbin@intel.com>
14906
14907 * Makefile.in: Regenerate.
14908 * configure: Regenerate.
14909 * configure.ac: Set up offload_additional_options,
14910 offload_additional_lib_paths and offload_targets.
14911 * testsuite/Makefile.am: Export environment variables: OFFLOAD_TARGETS,
14912 OFFLOAD_ADDITIONAL_OPTIONS, OFFLOAD_ADDITIONAL_LIB_PATHS.
14913 * testsuite/Makefile.in: Regenerate.
14914 * testsuite/lib/libgomp.exp (libgomp_init): Append
14915 offload_additional_lib_paths to LD_LIBRARY_PATH. Append
14916 offload_additional_options to ALWAYS_CFLAGS. Append liboffloadmic
14917 build directory to LD_LIBRARY_PATH for intelmic offload targets.
14918
14919 2014-11-13 Andrey Turetskiy <andrey.turetskiy@intel.com>
14920 Ilya Verbin <ilya.verbin@intel.com>
14921 Kirill Yukhin <kirill.yukhin@intel.com>
14922 Ilya Tocar <ilya.tocar@intel.com>
14923
14924 * testsuite/lib/libgomp.exp
14925 (check_effective_target_offload_device): New.
14926 * testsuite/libgomp.c++/c++.exp: Include tests from subdirectories.
14927 * testsuite/libgomp.c++/examples-4/e.51.5.C: New test.
14928 * testsuite/libgomp.c++/examples-4/e.53.2.C: Ditto.
14929 * testsuite/libgomp.c/examples-4/e.50.1.c: Ditto.
14930 * testsuite/libgomp.c/examples-4/e.50.2.c: Ditto.
14931 * testsuite/libgomp.c/examples-4/e.50.3.c: Ditto.
14932 * testsuite/libgomp.c/examples-4/e.50.4.c: Ditto.
14933 * testsuite/libgomp.c/examples-4/e.50.5.c: Ditto.
14934 * testsuite/libgomp.c/examples-4/e.51.1.c: Ditto.
14935 * testsuite/libgomp.c/examples-4/e.51.2.c: Ditto.
14936 * testsuite/libgomp.c/examples-4/e.51.3.c: Ditto.
14937 * testsuite/libgomp.c/examples-4/e.51.4.c: Ditto.
14938 * testsuite/libgomp.c/examples-4/e.51.6.c: Ditto.
14939 * testsuite/libgomp.c/examples-4/e.51.7.c: Ditto.
14940 * testsuite/libgomp.c/examples-4/e.52.1.c: Ditto.
14941 * testsuite/libgomp.c/examples-4/e.52.2.c: Ditto.
14942 * testsuite/libgomp.c/examples-4/e.53.1.c: Ditto.
14943 * testsuite/libgomp.c/examples-4/e.53.3.c: Ditto.
14944 * testsuite/libgomp.c/examples-4/e.53.4.c: Ditto.
14945 * testsuite/libgomp.c/examples-4/e.53.5.c: Ditto.
14946 * testsuite/libgomp.c/examples-4/e.54.2.c: Ditto.
14947 * testsuite/libgomp.c/examples-4/e.54.3.c: Ditto.
14948 * testsuite/libgomp.c/examples-4/e.54.4.c: Ditto.
14949 * testsuite/libgomp.c/examples-4/e.54.5.c: Ditto.
14950 * testsuite/libgomp.c/examples-4/e.54.6.c: Ditto.
14951 * testsuite/libgomp.c/examples-4/e.55.1.c: Ditto.
14952 * testsuite/libgomp.c/examples-4/e.55.2.c: Ditto.
14953 * testsuite/libgomp.c/examples-4/e.56.3.c: Ditto.
14954 * testsuite/libgomp.c/examples-4/e.56.4.c: Ditto.
14955 * testsuite/libgomp.c/examples-4/e.57.1.c: Ditto.
14956 * testsuite/libgomp.c/examples-4/e.57.2.c: Ditto.
14957 * testsuite/libgomp.c/examples-4/e.57.3.c: Ditto.
14958 * testsuite/libgomp.c/target-7.c: Fix test.
14959 * testsuite/libgomp.fortran/examples-4/e.50.1.f90: New test.
14960 * testsuite/libgomp.fortran/examples-4/e.50.2.f90: Ditto.
14961 * testsuite/libgomp.fortran/examples-4/e.50.3.f90: Ditto.
14962 * testsuite/libgomp.fortran/examples-4/e.50.4.f90: Ditto.
14963 * testsuite/libgomp.fortran/examples-4/e.50.5.f90: Ditto.
14964 * testsuite/libgomp.fortran/examples-4/e.51.1.f90: Ditto.
14965 * testsuite/libgomp.fortran/examples-4/e.51.2.f90: Ditto.
14966 * testsuite/libgomp.fortran/examples-4/e.51.3.f90: Ditto.
14967 * testsuite/libgomp.fortran/examples-4/e.51.4.f90: Ditto.
14968 * testsuite/libgomp.fortran/examples-4/e.51.5.f90: Ditto.
14969 * testsuite/libgomp.fortran/examples-4/e.51.6.f90: Ditto.
14970 * testsuite/libgomp.fortran/examples-4/e.51.7.f90: Ditto.
14971 * testsuite/libgomp.fortran/examples-4/e.52.1.f90: Ditto.
14972 * testsuite/libgomp.fortran/examples-4/e.52.2.f90: Ditto.
14973 * testsuite/libgomp.fortran/examples-4/e.53.1.f90: Ditto.
14974 * testsuite/libgomp.fortran/examples-4/e.53.2.f90: Ditto.
14975 * testsuite/libgomp.fortran/examples-4/e.53.3.f90: Ditto.
14976 * testsuite/libgomp.fortran/examples-4/e.53.4.f90: Ditto.
14977 * testsuite/libgomp.fortran/examples-4/e.53.5.f90: Ditto.
14978 * testsuite/libgomp.fortran/examples-4/e.54.2.f90: Ditto.
14979 * testsuite/libgomp.fortran/examples-4/e.54.3.f90: Ditto.
14980 * testsuite/libgomp.fortran/examples-4/e.54.4.f90: Ditto.
14981 * testsuite/libgomp.fortran/examples-4/e.54.5.f90: Ditto.
14982 * testsuite/libgomp.fortran/examples-4/e.54.6.f90: Ditto.
14983 * testsuite/libgomp.fortran/examples-4/e.55.1.f90: Ditto.
14984 * testsuite/libgomp.fortran/examples-4/e.55.2.f90: Ditto.
14985 * testsuite/libgomp.fortran/examples-4/e.56.3.f90: Ditto.
14986 * testsuite/libgomp.fortran/examples-4/e.56.4.f90: Ditto.
14987 * testsuite/libgomp.fortran/examples-4/e.57.1.f90: Ditto.
14988 * testsuite/libgomp.fortran/examples-4/e.57.2.f90: Ditto.
14989 * testsuite/libgomp.fortran/examples-4/e.57.3.f90: Ditto.
14990
14991 2014-11-13 Jakub Jelinek <jakub@redhat.com>
14992 Ilya Verbin <ilya.verbin@intel.com>
14993 Thomas Schwinge <thomas@codesourcery.com>
14994 Andrey Turetskiy <andrey.turetskiy@intel.com>
14995
14996 * libgomp.map (GOMP_4.0.1): New symbol version.
14997 Add GOMP_offload_register.
14998 * libgomp_target.h: New file.
14999 * splay-tree.h: New file.
15000 * target.c: Include config.h, libgomp_target.h, dlfcn.h, splay-tree.h.
15001 (gomp_target_init): New forward declaration.
15002 (gomp_is_initialized): New static variable.
15003 (splay_tree_node, splay_tree, splay_tree_key): New typedefs.
15004 (struct target_mem_desc, struct splay_tree_key_s, offload_image_descr):
15005 New structures.
15006 (offload_images, num_offload_images, devices, num_devices): New static
15007 variables.
15008 (splay_compare): New static function.
15009 (struct gomp_device_descr): New structure.
15010 (gomp_get_num_devices): Call gomp_target_init.
15011 (resolve_device, gomp_map_vars_existing, gomp_map_vars, gomp_unmap_tgt)
15012 (gomp_unmap_vars, gomp_update, gomp_init_device): New static functions.
15013 (GOMP_offload_register): New function.
15014 (GOMP_target): Arrange for host callback to be performed in a separate
15015 initial thread and contention group, inheriting ICVs from
15016 gomp_global_icv etc. Call gomp_map_vars and gomp_unmap_vars.
15017 Add device initialization and lookup for target function in splay tree.
15018 (GOMP_target_data): Add device initialization and call gomp_map_vars.
15019 (GOMP_target_end_data): Call gomp_unmap_vars.
15020 (GOMP_target_update): Add device initialization and call gomp_update.
15021 (gomp_load_plugin_for_device, gomp_register_images_for_device)
15022 (gomp_target_init): New static functions.
15023
15024 2014-11-13 Bernd Schmidt <bernds@codesourcery.com>
15025 Thomas Schwinge <thomas@codesourcery.com>
15026 Ilya Verbin <ilya.verbin@intel.com>
15027 Andrey Turetskiy <andrey.turetskiy@intel.com>
15028
15029 * config.h.in: Regenerate.
15030 * configure: Regenerate.
15031 * configure.ac: Check for libdl, required for plugin support.
15032 (PLUGIN_SUPPORT): Define if plugins are supported.
15033 (enable_offload_targets): Support Intel MIC targets.
15034 (OFFLOAD_TARGETS): List of target names suitable for offloading.
15035
15036 2014-11-11 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
15037
15038 PR target/63610
15039 * configure: Regenerate.
15040
15041 2014-11-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15042
15043 * config/posix/lock.c (_XOPEN_SOURCE) Define as 600.
15044
15045 2014-10-06 Marek Polacek <polacek@redhat.com>
15046
15047 * testsuite/libgomp.c/affinity-1.c: Include <sys/wait.h>.
15048 * testsuite/libgomp.c/nqueens-1.c: Include <stdlib.h>.
15049 * testsuite/libgomp.c/thread-limit-1.c: Include <omp.h>
15050 * testsuite/libgomp.c/thread-limit-2.c: Likewise.
15051
15052 2014-10-06 Marek Polacek <polacek@redhat.com>
15053
15054 * testsuite/libgomp.c/affinity-1.c: Fix implicit declarations.
15055 * testsuite/libgomp.c/nqueens-1.c: Likewise.
15056 * testsuite/libgomp.c/pr26943-3.c: Likewise.
15057 * testsuite/libgomp.c/pr26943-4.c: Likewise.
15058 * testsuite/libgomp.c/pr36802-2.c: Likewise.
15059 * testsuite/libgomp.c/pr36802-3.c: Likewise.
15060 * testsuite/libgomp.c/thread-limit-1.c: Likewise.
15061 * testsuite/libgomp.c/thread-limit-2.c: Likewise.
15062 * testsuite/libgomp.c/appendix-a/a.15.1.c: Include <omp.h>.
15063 * testsuite/libgomp.c/omp-loop02.c: Fix defaulting to int.
15064 * testsuite/libgomp.c/omp-parallel-for.c: Likewise.
15065 * testsuite/libgomp.c/omp-parallel-if.c: Likewise.
15066 * testsuite/libgomp.c/omp-single-1.c: Likewise.
15067 * testsuite/libgomp.c/omp-single-2.c: Likewise.
15068 * testsuite/libgomp.c/omp_matvec.c: Likewise.
15069 * testsuite/libgomp.c/omp_workshare3.c: Likewise.
15070 * testsuite/libgomp.c/omp_workshare4.c: Likewise.
15071 * testsuite/libgomp.c/shared-1.c: Fix defaulting to int. Fix implicit
15072 declarations.
15073
15074 2014-10-03 Jakub Jelinek <jakub@redhat.com>
15075
15076 PR libgomp/61200
15077 * testsuite/libgomp.c/pr61200.c: New test.
15078
15079 2014-09-18 Jakub Jelinek <jakub@redhat.com>
15080
15081 PR c++/63248
15082 * testsuite/libgomp.c++/pr63248.C: New test.
15083
15084 2014-08-04 Jakub Jelinek <jakub@redhat.com>
15085
15086 * task.c (GOMP_taskgroup_end): If taskgroup->num_children
15087 is not zero, but taskgroup->children is NULL and there are
15088 any task->children, schedule those instead of waiting.
15089 * testsuite/libgomp.c/depend-6.c: New test.
15090 * testsuite/libgomp.c/depend-7.c: New test.
15091 * testsuite/libgomp.c/depend-8.c: New test.
15092 * testsuite/libgomp.c/depend-9.c: New test.
15093 * testsuite/libgomp.c/depend-10.c: New test.
15094
15095 2014-08-01 Jakub Jelinek <jakub@redhat.com>
15096
15097 * libgomp.h (struct gomp_task_depend_entry): Add redundant_out field.
15098 (struct gomp_taskwait): New type.
15099 (struct gomp_task): Add taskwait and parent_depends_on, remove
15100 in_taskwait and taskwait_sem fields.
15101 (gomp_finish_task): Don't destroy taskwait_sem.
15102 * task.c (gomp_init_task): Don't init in_taskwait, instead init
15103 taskwait and parent_depends_on.
15104 (GOMP_task): For if (0) tasks with depend clause that depend on
15105 earlier tasks don't defer them, instead call
15106 gomp_task_maybe_wait_for_dependencies to wait for the dependencies.
15107 Initialize redundant_out field, for redundant out entries just
15108 move them at the end of linked list instead of removing them
15109 completely, and set redundant_out flag instead of redundant.
15110 (gomp_task_run_pre): Update last_parent_depends_on if scheduling
15111 that task.
15112 (gomp_task_run_post_handle_dependers): If parent is in
15113 gomp_task_maybe_wait_for_dependencies and newly runnable task
15114 is not parent_depends_on, queue it in parent->children linked
15115 list after all runnable tasks with parent_depends_on set.
15116 Adjust for addition of taskwait indirection.
15117 (gomp_task_run_post_remove_parent): If parent is in
15118 gomp_task_maybe_wait_for_dependencies and task to be removed
15119 is parent_depends_on, decrement n_depend and if needed awake
15120 parent. Adjust for addition of taskwait indirection.
15121 (GOMP_taskwait): Adjust for addition of taskwait indirection.
15122 (gomp_task_maybe_wait_for_dependencies): New function.
15123 * testsuite/libgomp.c/depend-5.c: New test.
15124
15125 2014-07-13 Tobias Burnus <burnus@net-b.de>
15126
15127 * testsuite/libgomp.fortran/pr34020.f90: Make compile
15128 with TS 18508/Fortran 2015.
15129
15130 2014-07-06 Marek Polacek <polacek@redhat.com>
15131
15132 PR c/6940
15133 * testsuite/libgomp.c/appendix-a/a.29.1.c (f): Add dg-warnings.
15134
15135 2014-07-03 Jakub Jelinek <jakub@redhat.com>
15136
15137 * testsuite/lib/libgomp.exp (libgomp_target_compile): If $source
15138 matches regex $lang_source_re, add $lang_include_flags to options.
15139 * testsuite/libgomp.c/c.exp: Unset lang_include_flags.
15140 * testsuite/libgomp.c++/c++.exp: Likewise.
15141 * testsuite/libgomp.fortran/fortran.exp: Likewise. Set lang_source_re
15142 and lang_include_flags instead of adding -fintrinsic-modules-path= to
15143 ALWAYS_CFLAGS.
15144 * testsuite/libgomp.graphite/graphite.exp: Unset lang_include_flags.
15145
15146 2014-07-03 Thomas Schwinge <thomas@codesourcery.com>
15147
15148 * testsuite/libgomp.fortran/fortran.exp: Explain
15149 gfortran-dg-runtest usage.
15150
15151 2014-06-25 Jakub Jelinek <jakub@redhat.com>
15152
15153 * testsuite/libgomp.fortran/simd5.f90: New test.
15154 * testsuite/libgomp.fortran/simd6.f90: New test.
15155 * testsuite/libgomp.fortran/simd7.f90: New test.
15156
15157 2014-06-24 Jakub Jelinek <jakub@redhat.com>
15158
15159 * testsuite/libgomp.c/for-2.c: Define SC to static for
15160 #pragma omp for simd testing.
15161 * testsuite/libgomp.c/for-2.h (SC): Define if not defined.
15162 (N(f5), N(f6), N(f7), N(f8), N(f10), N(f12), N(f14)): Use
15163 SC macro.
15164 * testsuite/libgomp.c/simd-14.c: New test.
15165 * testsuite/libgomp.c/simd-15.c: New test.
15166 * testsuite/libgomp.c/simd-16.c: New test.
15167 * testsuite/libgomp.c/simd-17.c: New test.
15168 * testsuite/libgomp.c++/for-10.C: Define SC to static for
15169 #pragma omp for simd testing.
15170 * testsuite/libgomp.c++/simd10.C: New test.
15171 * testsuite/libgomp.c++/simd11.C: New test.
15172 * testsuite/libgomp.c++/simd12.C: New test.
15173 * testsuite/libgomp.c++/simd13.C: New test.
15174
15175 * testsuite/libgomp.fortran/aligned1.f03: New test.
15176 * testsuite/libgomp.fortran/nestedfn5.f90: New test.
15177 * testsuite/libgomp.fortran/target7.f90: Surround loop spawning
15178 tasks with !$omp parallel !$omp single.
15179 * testsuite/libgomp.fortran/target8.f90: New test.
15180 * testsuite/libgomp.fortran/udr4.f90 (foo UDR, bar UDR): Adjust
15181 not to use trim in the combiner, instead call elemental function.
15182 (fn): New elemental function.
15183 * testsuite/libgomp.fortran/udr6.f90 (do_add, dp_add, dp_init):
15184 Make elemental.
15185 * testsuite/libgomp.fortran/udr7.f90 (omp_priv, omp_orig, omp_out,
15186 omp_in): Likewise.
15187 * testsuite/libgomp.fortran/udr12.f90: New test.
15188 * testsuite/libgomp.fortran/udr13.f90: New test.
15189 * testsuite/libgomp.fortran/udr14.f90: New test.
15190 * testsuite/libgomp.fortran/udr15.f90: New test.
15191
15192 2014-06-18 Jakub Jelinek <jakub@redhat.com>
15193
15194 * omp_lib.f90.in (openmp_version): Set to 201307.
15195 * omp_lib.h.in (openmp_version): Likewise.
15196 * testsuite/libgomp.c/target-8.c: New test.
15197 * testsuite/libgomp.fortran/declare-simd-1.f90: Add notinbranch
15198 and inbranch clauses.
15199 * testsuite/libgomp.fortran/depend-3.f90: New test.
15200 * testsuite/libgomp.fortran/openmp_version-1.f: Adjust for new
15201 openmp_version.
15202 * testsuite/libgomp.fortran/openmp_version-2.f90: Likewise.
15203 * testsuite/libgomp.fortran/target1.f90: New test.
15204 * testsuite/libgomp.fortran/target2.f90: New test.
15205 * testsuite/libgomp.fortran/target3.f90: New test.
15206 * testsuite/libgomp.fortran/target4.f90: New test.
15207 * testsuite/libgomp.fortran/target5.f90: New test.
15208 * testsuite/libgomp.fortran/target6.f90: New test.
15209 * testsuite/libgomp.fortran/target7.f90: New test.
15210
15211 2014-06-10 Jakub Jelinek <jakub@redhat.com>
15212
15213 PR fortran/60928
15214 * testsuite/libgomp.fortran/allocatable9.f90: New test.
15215 * testsuite/libgomp.fortran/allocatable10.f90: New test.
15216 * testsuite/libgomp.fortran/allocatable11.f90: New test.
15217 * testsuite/libgomp.fortran/allocatable12.f90: New test.
15218 * testsuite/libgomp.fortran/alloc-comp-1.f90: New test.
15219 * testsuite/libgomp.fortran/alloc-comp-2.f90: New test.
15220 * testsuite/libgomp.fortran/alloc-comp-3.f90: New test.
15221 * testsuite/libgomp.fortran/associate1.f90: New test.
15222 * testsuite/libgomp.fortran/associate2.f90: New test.
15223 * testsuite/libgomp.fortran/procptr1.f90: New test.
15224
15225 2014-06-06 Jakub Jelinek <jakub@redhat.com>
15226
15227 * testsuite/libgomp.fortran/simd1.f90: New test.
15228 * testsuite/libgomp.fortran/udr1.f90: New test.
15229 * testsuite/libgomp.fortran/udr2.f90: New test.
15230 * testsuite/libgomp.fortran/udr3.f90: New test.
15231 * testsuite/libgomp.fortran/udr4.f90: New test.
15232 * testsuite/libgomp.fortran/udr5.f90: New test.
15233 * testsuite/libgomp.fortran/udr6.f90: New test.
15234 * testsuite/libgomp.fortran/udr7.f90: New test.
15235 * testsuite/libgomp.fortran/udr8.f90: New test.
15236 * testsuite/libgomp.fortran/udr9.f90: New test.
15237 * testsuite/libgomp.fortran/udr10.f90: New test.
15238 * testsuite/libgomp.fortran/udr11.f90: New test.
15239
15240 2014-05-27 Uros Bizjak <ubizjak@gmail.com>
15241
15242 * testsuite/libgomp.fortran/declare-simd-1.f90: Require
15243 vect_simd_clones effective target.
15244 * testsuite/libgomp.fortran/declare-simd-2.f90: Ditto.
15245
15246 2014-05-21 Jakub Jelinek <jakub@redhat.com>
15247
15248 PR middle-end/61252
15249 * testsuite/libgomp.c++/simd-9.C: New test.
15250
15251 2014-05-18 Uros Bizjak <ubizjak@gmail.com>
15252
15253 * libgomp.texi (Runitme Library Routines): Remove multiple @menu.
15254 (Environment Variables) Move OMP_PROC_BIND and OMP_STACKSIZE node
15255 texts according to their @menu entry positions.
15256
15257 2014-05-11 Jakub Jelinek <jakub@redhat.com>
15258
15259 * testsuite/libgomp.fortran/cancel-do-1.f90: New test.
15260 * testsuite/libgomp.fortran/cancel-do-2.f90: New test.
15261 * testsuite/libgomp.fortran/cancel-parallel-1.f90: New test.
15262 * testsuite/libgomp.fortran/cancel-parallel-3.f90: New test.
15263 * testsuite/libgomp.fortran/cancel-sections-1.f90: New test.
15264 * testsuite/libgomp.fortran/cancel-taskgroup-2.f90: New test.
15265 * testsuite/libgomp.fortran/declare-simd-1.f90: New test.
15266 * testsuite/libgomp.fortran/declare-simd-2.f90: New test.
15267 * testsuite/libgomp.fortran/declare-simd-3.f90: New test.
15268 * testsuite/libgomp.fortran/depend-1.f90: New test.
15269 * testsuite/libgomp.fortran/depend-2.f90: New test.
15270 * testsuite/libgomp.fortran/omp_atomic5.f90: New test.
15271 * testsuite/libgomp.fortran/simd1.f90: New test.
15272 * testsuite/libgomp.fortran/simd2.f90: New test.
15273 * testsuite/libgomp.fortran/simd3.f90: New test.
15274 * testsuite/libgomp.fortran/simd4.f90: New test.
15275 * testsuite/libgomp.fortran/taskgroup1.f90: New test.
15276
15277 2014-05-02 Jakub Jelinek <jakub@redhat.com>
15278
15279 * testsuite/libgomp.c/simd-10.c: New test.
15280 * testsuite/libgomp.c/simd-11.c: New test.
15281 * testsuite/libgomp.c/simd-12.c: New test.
15282 * testsuite/libgomp.c/simd-13.c: New test.
15283
15284 2014-04-24 Jakub Jelinek <jakub@redhat.com>
15285
15286 * testsuite/libgomp.c++/atomic-14.C: Allow seq_cst and
15287 atomic type clauses in any order and optional comma in between.
15288 * testsuite/libgomp.c++/atomic-15.C: Likewise.
15289 * testsuite/libgomp.c/atomic-17.c: Likewise.
15290
15291 * testsuite/libgomp.c/simd-7.c: New test.
15292 * testsuite/libgomp.c/simd-8.c: New test.
15293 * testsuite/libgomp.c/simd-9.c: New test.
15294 * testsuite/libgomp.c/loop-16.c: New test.
15295
15296 2014-04-02 Richard Henderson <rth@redhat.com>
15297
15298 * config/linux/futex.h (futex_wait): Get error value from errno.
15299 (futex_wake): Likewise.
15300
15301 2014-03-25 Jakub Jelinek <jakub@redhat.com>
15302
15303 PR c++/60331
15304 * testsuite/libgomp.c++/udr-11.C: New test.
15305 * testsuite/libgomp.c++/udr-12.C: New test.
15306 * testsuite/libgomp.c++/udr-13.C: New test.
15307 * testsuite/libgomp.c++/udr-14.C: New test.
15308 * testsuite/libgomp.c++/udr-15.C: New test.
15309 * testsuite/libgomp.c++/udr-16.C: New test.
15310 * testsuite/libgomp.c++/udr-17.C: New test.
15311 * testsuite/libgomp.c++/udr-18.C: New test.
15312 * testsuite/libgomp.c++/udr-19.C: New test.
15313
15314 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
15315
15316 Update copyright years
15317
15318 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
15319
15320 * hashtab.h: Use the standard form for the copyright notice.
15321
15322 2014-01-02 Tobias Burnus <burnus@net-b.de>
15323
15324 * libgomp.texi: Bump @copying's copyright year.
15325
15326 2013-12-17 Andreas Tobler <andreast@gcc.gnu.org>
15327
15328 * testsuite/libgomp.c/affinity-1.c: Remove alloca.h include. Replace
15329 alloca () with __builtin_alloca ().
15330 * testsuite/libgomp.c/icv-2.c: Add FreeBSD coverage.
15331 * testsuite/libgomp.c/lock-3.c: Likewise.
15332 * testsuite/libgomp.c/pr48591.c: Likewise.
15333
15334 2013-12-17 Jakub Jelinek <jakub@redhat.com>
15335
15336 PR testsuite/59534
15337 * testsuite/libgomp.fortran/retval1.f90 (e5): Avoid non-shortcircuited
15338 comparisons.
15339
15340 2013-12-16 Jakub Jelinek <jakub@redhat.com>
15341
15342 PR libgomp/58756
15343 * testsuite/libgomp.c/pr58756.c: New test.
15344
15345 2013-12-12 Jakub Jelinek <jakub@redhat.com>
15346
15347 PR libgomp/59467
15348 * testsuite/libgomp.fortran/crayptr2.f90: Add private (d) clause to
15349 !$omp parallel.
15350
15351 2013-11-07 Thomas Schwinge <thomas@codesourcery.com>
15352
15353 * testsuite/lib/libgomp.exp (libgomp_init): Don't add -fopenmp to
15354 ALWAYS_CFLAGS.
15355 * testsuite/libgomp.c++/c++.exp (ALWAYS_CFLAGS): Add -fopenmp.
15356 * testsuite/libgomp.c/c.exp (ALWAYS_CFLAGS): Likewise.
15357 * testsuite/libgomp.fortran/fortran.exp (ALWAYS_CFLAGS): Likewise.
15358 * testsuite/libgomp.graphite/graphite.exp (ALWAYS_CFLAGS):
15359 Likewise.
15360
15361 * libgomp_g.h: Include <stddef.h> for size_t.
15362
15363 * libgomp.spec.in: Update comment about libgomp's dependencies.
15364 * configure.ac: Likewise.
15365 * configure: Regenerate.
15366
15367 2013-10-16 Tobias Burnus <burnus@net-b.de>
15368
15369 * libgomp.texi: (Runtime Library Routines): Update references for
15370 OpenMP 4.0. Add omp_get_cancellation, omp_get_default_device,
15371 omp_get_num_devices, omp_get_num_teams, omp_get_proc_bind,
15372 omp_get_team_num, omp_is_initial_device, omp_set_default_device.
15373 (Environment Variables): Update references for OpenMP 4.0. Add
15374 OMP_CANCELLATION, OMP_DEFAULT_DEVICE, OMP_PLACES.
15375 Move OMP_DISPLAY_ENV and OMP_PROC_BIND up to be in alphabetical
15376 order.
15377
15378 2013-10-14 Jakub Jelinek <jakub@redhat.com>
15379
15380 * env.c (parse_bind_var): Initialize value to avoid
15381 (false positive) warning.
15382
15383 2013-10-12 Jakub Jelinek <jakub@redhat.com>
15384
15385 PR libgomp/58691
15386 * config/linux/proc.c (gomp_cpuset_popcount): Add unused attribute
15387 to check variable.
15388 (gomp_init_num_threads): Move i variable declaration into
15389 #ifdef CPU_ALLOC_SIZE block.
15390 * config/linux/affinity.c (gomp_affinity_init_level): Test
15391 gomp_places_list_len == 0 rather than gomp_places_list == 0
15392 when checking for topology reading error.
15393 * team.c (gomp_team_start): Don't handle bind == omp_proc_bind_false.
15394 * env.c (parse_affinity): Add ignore argument, if true, don't populate
15395 gomp_places_list, only parse env var and always return false.
15396 (parse_places_var): Likewise. Don't check gomp_global_icv.bind_var.
15397 (initialize_env): Always parse OMP_PLACES and GOMP_CPU_AFFINITY env
15398 vars, default to OMP_PROC_BIND=true if OMP_PROC_BIND wasn't specified
15399 and either of these variables were parsed correctly into a places
15400 list.
15401
15402 2013-10-11 Thomas Schwinge <thomas@codesourcery.com>
15403 Jakub Jelinek <jakub@redhat.com>
15404
15405 * testsuite/libgomp.graphite/force-parallel-1.c: Expect 4 instead
15406 of 5 loopfn matches.
15407 * testsuite/libgomp.graphite/force-parallel-2.c: Likewise.
15408 * testsuite/libgomp.graphite/force-parallel-3.c: Likewise.
15409 * testsuite/libgomp.graphite/force-parallel-4.c: Likewise.
15410 * testsuite/libgomp.graphite/force-parallel-5.c: Likewise.
15411 * testsuite/libgomp.graphite/force-parallel-6.c: Likewise.
15412 * testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
15413 * testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
15414 * testsuite/libgomp.graphite/force-parallel-9.c: Likewise.
15415
15416 2013-10-11 Thomas Schwinge <thomas@codesourcery.com>
15417
15418 * Makefile.am (omp_lib.mod): Streamline rule.
15419 * Makefile.in: Regenerate.
15420
15421 * libgomp.texi (Runtime Library Routines): C linkage, don't throw
15422 exceptions.
15423
15424 * testsuite/libgomp.c/lib-1.c (main): Add missing error check.
15425 * testsuite/libgomp.fortran/lib1.f90: Likewise.
15426 * testsuite/libgomp.fortran/lib2.f: Likewise.
15427 * testsuite/libgomp.fortran/lib3.f: Likewise.
15428
15429 * configure.ac: Typo fix.
15430 * configure: Regenerate.
15431
15432 * testsuite/libgomp.fortran/openmp_version-1.f: New file.
15433 * testsuite/libgomp.fortran/openmp_version-2.f90: Likewise.
15434
15435 * omp.h.in: Don't touch the user's namespace.
15436
15437 2013-10-11 Jakub Jelinek <jakub@redhat.com>
15438 Tobias Burnus <burnus@net-b.de>
15439 Richard Henderson <rth@redhat.com>
15440
15441 * target.c: New file.
15442 * Makefile.am (libgomp_la_SOURCES): Add target.c.
15443 * Makefile.in: Regenerated.
15444 * libgomp_g.h (GOMP_task): Add depend argument.
15445 (GOMP_barrier_cancel, GOMP_loop_end_cancel,
15446 GOMP_sections_end_cancel, GOMP_target, GOMP_target_data,
15447 GOMP_target_end_data, GOMP_target_update, GOMP_teams,
15448 GOMP_parallel_loop_static, GOMP_parallel_loop_dynamic,
15449 GOMP_parallel_loop_guided, GOMP_parallel_loop_runtime,
15450 GOMP_parallel, GOMP_cancel, GOMP_cancellation_point,
15451 GOMP_taskgroup_start, GOMP_taskgroup_end,
15452 GOMP_parallel_sections): New prototypes.
15453 * fortran.c (omp_is_initial_device): Add ialias_redirect.
15454 (omp_is_initial_device_): New function.
15455 (ULP, STR1, STR2, ialias_redirect): Removed.
15456 (omp_get_cancellation_, omp_get_proc_bind_, omp_set_default_device_,
15457 omp_set_default_device_8_, omp_get_default_device_,
15458 omp_get_num_devices_, omp_get_num_teams_, omp_get_team_num_): New
15459 functions.
15460 * libgomp.map (GOMP_barrier_cancel, GOMP_loop_end_cancel,
15461 GOMP_sections_end_cancel, GOMP_target, GOMP_target_data,
15462 GOMP_target_end_data, GOMP_target_update, GOMP_teams): Export
15463 @@GOMP_4.0.
15464 (omp_is_initial_device, omp_is_initial_device_, omp_get_cancellation,
15465 omp_get_cancellation_, omp_get_proc_bind, omp_get_proc_bind_,
15466 omp_set_default_device, omp_set_default_device_,
15467 omp_set_default_device_8_, omp_get_default_device,
15468 omp_get_default_device_, omp_get_num_devices, omp_get_num_devices_,
15469 omp_get_num_teams, omp_get_num_teams_, omp_get_team_num,
15470 omp_get_team_num_): Export @@OMP_4.0.
15471 * team.c (struct gomp_thread_start_data): Add place field.
15472 (gomp_thread_start): Clear thr->thread_pool and
15473 thr->task before returning. Use gomp_team_barrier_wait_final
15474 instead of gomp_team_barrier_wait. Initialize thr->place.
15475 (gomp_new_team): Initialize work_shares_to_free, work_share_cancelled,
15476 team_cancelled and task_queued_count fields.
15477 (gomp_free_pool_helper): Clear thr->thread_pool and thr->task
15478 before calling pthread_exit.
15479 (gomp_free_thread): No longer static. Use
15480 gomp_managed_threads_lock instead of gomp_remaining_threads_lock.
15481 (gomp_team_start): Add flags argument. Set
15482 thr->thread_pool->threads_busy to nthreads immediately after creating
15483 new pool. Use gomp_managed_threads_lock instead of
15484 gomp_remaining_threads_lock. Handle OpenMP 4.0 affinity.
15485 (gomp_team_end): Use gomp_managed_threads_lock instead of
15486 gomp_remaining_threads_lock. Use gomp_team_barrier_wait_final instead
15487 of gomp_team_barrier_wait. If team->team_cancelled, call
15488 gomp_fini_workshare on ws chain starting at team->work_shares_to_free
15489 rather than thr->ts.work_share.
15490 (initialize_team): Don't call gomp_sem_init here.
15491 * sections.c (GOMP_parallel_sections_start): Adjust gomp_team_start
15492 caller.
15493 (GOMP_parallel_sections, GOMP_sections_end_cancel): New functions.
15494 * env.c (gomp_global_icv): Add default_device_var, target_data and
15495 bind_var initializers.
15496 (gomp_cpu_affinity, gomp_cpu_affinity_len): Remove.
15497 (gomp_bind_var_list, gomp_bind_var_list_len, gomp_places_list,
15498 gomp_places_list_len): New variables.
15499 (parse_bind_var, parse_one_place, parse_places_var): New functions.
15500 (parse_affinity): Rewritten to construct OMP_PLACES list with unit
15501 sized places.
15502 (gomp_cancel_var): New global variable.
15503 (parse_int): New function.
15504 (handle_omp_display_env): New function.
15505 (initialize_env): Use it. Initialize default_device_var.
15506 Parse OMP_CANCELLATION env var. Use parse_bind_var to parse
15507 OMP_PROC_BIND instead of parse_boolean. Use parse_places_var for
15508 OMP_PLACES parsing. Don't call parse_affinity if OMP_PLACES has
15509 been successfully parsed (and call gomp_init_affinity in that case).
15510 (omp_get_cancellation, omp_get_proc_bind, omp_set_default_device,
15511 omp_get_default_device, omp_get_num_devices, omp_get_num_teams,
15512 omp_get_team_num, omp_is_initial_device): New functions.
15513 * libgomp.h: Include stdlib.h.
15514 (ialias_ulp, ialias_str1, ialias_str2, ialias_redirect, ialias_call):
15515 Define.
15516 (struct target_mem_desc): Forward declare.
15517 (struct gomp_task_icv): Add default_device_var, target_data, bind_var
15518 and thread_limit_var fields.
15519 (gomp_get_num_devices): New prototype.
15520 (gomp_cancel_var): New extern decl.
15521 (struct gomp_team): Add work_shares_to_free, work_share_cancelled,
15522 team_cancelled and task_queued_count fields. Add comments about
15523 task_{,queued_,running_}count.
15524 (gomp_cancel_kind): New enum.
15525 (gomp_work_share_end_cancel): New prototype.
15526 (struct gomp_task): Add next_taskgroup, prev_taskgroup, taskgroup,
15527 copy_ctors_done, dependers, depend_hash, depend_count, num_dependees
15528 and depend fields.
15529 (struct gomp_taskgroup): New type.
15530 (struct gomp_task_depend_entry,
15531 struct gomp_dependers_vec): New types.
15532 (gomp_finish_task): Free depend_hash if non-NULL.
15533 (struct gomp_team_state): Add place_partition_off
15534 and place_partition_len fields.
15535 (gomp_bind_var_list, gomp_bind_var_list_len, gomp_places_list,
15536 gomp_places_list_len): New extern decls.
15537 (struct gomp_thread): Add place field.
15538 (gomp_cpu_affinity, gomp_cpu_affinity_len): Remove.
15539 (gomp_init_thread_affinity): Add place argument.
15540 (gomp_affinity_alloc, gomp_affinity_init_place, gomp_affinity_add_cpus,
15541 gomp_affinity_remove_cpu, gomp_affinity_copy_place,
15542 gomp_affinity_same_place, gomp_affinity_finalize_place_list,
15543 gomp_affinity_init_level, gomp_affinity_print_place): New
15544 prototypes.
15545 (gomp_team_start): Add flags argument.
15546 (gomp_thread_limit_var, gomp_remaining_threads_count,
15547 gomp_remaining_threads_lock): Remove.
15548 (gomp_managed_threads_lock): New variable.
15549 (struct gomp_thread_pool): Add threads_busy field.
15550 (gomp_free_thread): New prototype.
15551 * task.c: Include hashtab.h.
15552 (hash_entry_type): New typedef.
15553 (htab_alloc, htab_free, htab_hash, htab_eq): New inlines.
15554 (gomp_init_task): Clear dependers, depend_hash, depend_count,
15555 copy_ctors_done and taskgroup fields.
15556 (GOMP_task): Add depend argument, handle depend clauses. If
15557 gomp_team_barrier_cancelled or if it's taskgroup has been
15558 cancelled, don't queue or start new tasks. Set copy_ctors_done
15559 field if needed. Initialize taskgroup field. If copy_ctors_done
15560 and already cancelled, don't discard the task. If taskgroup is
15561 non-NULL, enqueue the task into taskgroup queue. Increment
15562 num_children field in taskgroup. Increment task_queued_count.
15563 (gomp_task_run_pre, gomp_task_run_post_remove_parent,
15564 gomp_task_run_post_remove_taskgroup): New inline functions.
15565 (gomp_task_run_post_handle_depend_hash,
15566 gomp_task_run_post_handle_dependers,
15567 gomp_task_run_post_handle_depend): New functions.
15568 (GOMP_taskwait): Use them. If more than one new tasks
15569 have been queued, wake other threads if needed.
15570 (gomp_barrier_handle_tasks): Likewise. If
15571 gomp_team_barrier_cancelled, don't start any new tasks, just free
15572 all tasks.
15573 (GOMP_taskgroup_start, GOMP_taskgroup_end): New functions.
15574 * omp_lib.f90.in
15575 (omp_proc_bind_kind, omp_proc_bind_false,
15576 omp_proc_bind_true, omp_proc_bind_master, omp_proc_bind_close,
15577 omp_proc_bind_spread): New params.
15578 (omp_get_cancellation, omp_get_proc_bind, omp_set_default_device,
15579 omp_get_default_device, omp_get_num_devices, omp_get_num_teams,
15580 omp_get_team_num, omp_is_initial_device): New interfaces.
15581 (omp_get_dynamic, omp_get_nested, omp_in_parallel,
15582 omp_get_max_threads, omp_get_num_procs, omp_get_num_threads,
15583 omp_get_thread_num, omp_get_thread_limit, omp_set_max_active_levels,
15584 omp_get_max_active_levels, omp_get_level, omp_get_ancestor_thread_num,
15585 omp_get_team_size, omp_get_active_level, omp_in_final): Remove
15586 useless use omp_lib_kinds.
15587 * omp.h.in (omp_proc_bind_t): New typedef.
15588 (omp_get_cancellation, omp_get_proc_bind, omp_set_default_device,
15589 omp_get_default_device, omp_get_num_devices, omp_get_num_teams,
15590 omp_get_team_num, omp_is_initial_device): New prototypes.
15591 * loop.c (gomp_parallel_loop_start): Add flags argument, pass it
15592 through to gomp_team_start.
15593 (GOMP_parallel_loop_static_start, GOMP_parallel_loop_dynamic_start,
15594 GOMP_parallel_loop_guided_start, GOMP_parallel_loop_runtime_start):
15595 Adjust gomp_parallel_loop_start callers.
15596 (GOMP_parallel_loop_static, GOMP_parallel_loop_dynamic,
15597 GOMP_parallel_loop_guided, GOMP_parallel_loop_runtime,
15598 GOMP_loop_end_cancel): New functions.
15599 (GOMP_parallel_end): Add ialias_redirect.
15600 * hashtab.h: New file.
15601 * libgomp.texi (Environment Variables): Minor cleanup,
15602 update section refs to OpenMP 4.0rc2.
15603 (OMP_DISPLAY_ENV, GOMP_SPINCOUNT): Document these
15604 environment variables.
15605 * work.c (gomp_work_share_end, gomp_work_share_end_nowait): Set
15606 team->work_shares_to_free to thr->ts.work_share before calling
15607 free_work_share.
15608 (gomp_work_share_end_cancel): New function.
15609 * config/linux/proc.c: Include errno.h.
15610 (gomp_get_cpuset_size, gomp_cpuset_size, gomp_cpusetp): New variables.
15611 (gomp_cpuset_popcount): Add cpusetsize argument, use it instead of
15612 sizeof (cpu_set_t) to determine number of iterations. Fix up check
15613 extern decl. Use CPU_COUNT_S if available, or CPU_COUNT if
15614 gomp_cpuset_size is sizeof (cpu_set_t).
15615 (gomp_init_num_threads): Initialize gomp_cpuset_size,
15616 gomp_get_cpuset_size and gomp_cpusetp here, use gomp_cpusetp instead
15617 of &cpuset and pass gomp_cpuset_size instead of sizeof (cpu_set_t)
15618 to pthread_getaffinity_np. Free and clear gomp_cpusetp if it didn't
15619 contain any logical CPUs.
15620 (get_num_procs): Don't call pthread_getaffinity_np if gomp_cpusetp
15621 is NULL. Use gomp_cpusetp instead of &cpuset and pass
15622 gomp_get_cpuset_size instead of sizeof (cpu_set_t) to
15623 pthread_getaffinity_np. Check gomp_places_list instead of
15624 gomp_cpu_affinity. Adjust gomp_cpuset_popcount caller.
15625 * config/linux/bar.c (gomp_barrier_wait_end,
15626 gomp_barrier_wait_last): Use BAR_* defines.
15627 (gomp_team_barrier_wait_end): Likewise. Clear BAR_CANCELLED
15628 from state where needed. Set work_share_cancelled to 0 on last
15629 thread.
15630 (gomp_team_barrier_wait_final, gomp_team_barrier_wait_cancel_end,
15631 gomp_team_barrier_wait_cancel, gomp_team_barrier_cancel): New
15632 functions.
15633 * config/linux/proc.h (gomp_cpuset_popcount): Add attribute_hidden.
15634 Add cpusetsize argument.
15635 (gomp_cpuset_size, gomp_cpusetp): Declare.
15636 * config/linux/affinity.c: Include errno.h, stdio.h and string.h.
15637 (affinity_counter): Remove.
15638 (CPU_ISSET_S, CPU_ZERO_S, CPU_SET_S, CPU_CLR_S): Define
15639 if CPU_ALLOC_SIZE isn't defined.
15640 (gomp_init_affinity): Rewritten, if gomp_places_list is NULL, try
15641 silently create OMP_PLACES=threads, if it is non-NULL afterwards,
15642 bind current thread to the first place.
15643 (gomp_init_thread_affinity): Rewritten. Add place argument, just
15644 pthread_setaffinity_np to gomp_places_list[place].
15645 (gomp_affinity_alloc, gomp_affinity_init_place, gomp_affinity_add_cpus,
15646 gomp_affinity_remove_cpu, gomp_affinity_copy_place,
15647 gomp_affinity_same_place, gomp_affinity_finalize_place_list,
15648 gomp_affinity_init_level, gomp_affinity_print_place): New functions.
15649 * config/linux/bar.h (BAR_TASK_PENDING, BAR_WAS_LAST,
15650 BAR_WAITING_FOR_TASK, BAR_INCR, BAR_CANCELLED): Define.
15651 (gomp_barrier_t): Add awaited_final field.
15652 (gomp_barrier_init): Initialize awaited_final field.
15653 (gomp_team_barrier_wait_final, gomp_team_barrier_wait_cancel,
15654 gomp_team_barrier_wait_cancel_end, gomp_team_barrier_cancel): New
15655 prototypes.
15656 (gomp_barrier_wait_start): Preserve BAR_CANCELLED bit. Use BAR_*
15657 defines.
15658 (gomp_barrier_wait_cancel_start, gomp_team_barrier_wait_final_start,
15659 gomp_team_barrier_cancelled): New inline functions.
15660 (gomp_barrier_last_thread,
15661 gomp_team_barrier_set_task_pending,
15662 gomp_team_barrier_clear_task_pending,
15663 gomp_team_barrier_set_waiting_for_tasks,
15664 gomp_team_barrier_waiting_for_tasks,
15665 gomp_team_barrier_done): Use BAR_* defines.
15666 * config/posix/bar.c (gomp_barrier_init): Clear cancellable field.
15667 (gomp_barrier_wait_end): Use BAR_* defines.
15668 (gomp_team_barrier_wait_end): Clear BAR_CANCELLED from state.
15669 Set work_share_cancelled to 0 on last thread, use __atomic_load_n.
15670 Use BAR_* defines.
15671 (gomp_team_barrier_wait_cancel_end, gomp_team_barrier_wait_cancel,
15672 gomp_team_barrier_cancel): New functions.
15673 * config/posix/affinity.c (gomp_init_thread_affinity): Add place
15674 argument.
15675 (gomp_affinity_alloc, gomp_affinity_init_place, gomp_affinity_add_cpus,
15676 gomp_affinity_remove_cpu, gomp_affinity_copy_place,
15677 gomp_affinity_same_place, gomp_affinity_finalize_place_list,
15678 gomp_affinity_init_level, gomp_affinity_print_place): New stubs.
15679 * config/posix/bar.h (BAR_TASK_PENDING, BAR_WAS_LAST,
15680 BAR_WAITING_FOR_TASK, BAR_INCR, BAR_CANCELLED): Define.
15681 (gomp_barrier_t): Add cancellable field.
15682 (gomp_team_barrier_wait_cancel, gomp_team_barrier_wait_cancel_end,
15683 gomp_team_barrier_cancel): New prototypes.
15684 (gomp_barrier_wait_start): Preserve BAR_CANCELLED bit.
15685 (gomp_barrier_wait_cancel_start, gomp_team_barrier_wait_final,
15686 gomp_team_barrier_cancelled): New inline functions.
15687 (gomp_barrier_wait_start, gomp_barrier_last_thread,
15688 gomp_team_barrier_set_task_pending,
15689 gomp_team_barrier_clear_task_pending,
15690 gomp_team_barrier_set_waiting_for_tasks,
15691 gomp_team_barrier_waiting_for_tasks,
15692 gomp_team_barrier_done): Use BAR_* defines.
15693 * barrier.c (GOMP_barrier_cancel): New function.
15694 * omp_lib.h.in (omp_proc_bind_kind, omp_proc_bind_false,
15695 omp_proc_bind_true, omp_proc_bind_master, omp_proc_bind_close,
15696 omp_proc_bind_spread): New params.
15697 (omp_get_cancellation, omp_get_proc_bind, omp_set_default_device,
15698 omp_get_default_device, omp_get_num_devices, omp_get_num_teams,
15699 omp_get_team_num, omp_is_initial_device): New externals.
15700 * parallel.c (GOMP_parallel, GOMP_cancel, GOMP_cancellation_point):
15701 New functions.
15702 (gomp_resolve_num_threads): Adjust for thread_limit now being in
15703 icv->thread_limit_var. Use UINT_MAX instead of ULONG_MAX as
15704 infinity. If not nested, just return minimum of max_num_threads
15705 and icv->thread_limit_var and if thr->thread_pool, set threads_busy
15706 to the returned value. Otherwise, don't update atomically
15707 gomp_remaining_threads_count, but instead thr->thread_pool->threads_busy.
15708 (GOMP_parallel_end): Adjust for thread_limit now being in
15709 icv->thread_limit_var. Use UINT_MAX instead of ULONG_MAX as
15710 infinity. Adjust threads_busy in the pool rather than
15711 gomp_remaining_threads_count. Remember team->nthreads and call
15712 gomp_team_end before adjusting threads_busy, if not nested
15713 afterwards, just set it to 1 non-atomically. Add ialias.
15714 (GOMP_parallel_start): Adjust gomp_team_start caller.
15715 * testsuite/libgomp.c/atomic-14.c: Add parens to make it valid.
15716 * testsuite/libgomp.c/affinity-1.c: New test.
15717 * testsuite/libgomp.c/atomic-15.c: New test.
15718 * testsuite/libgomp.c/atomic-16.c: New test.
15719 * testsuite/libgomp.c/atomic-17.c: New test.
15720 * testsuite/libgomp.c/cancel-for-1.c: New test.
15721 * testsuite/libgomp.c/cancel-for-2.c: New test.
15722 * testsuite/libgomp.c/cancel-parallel-1.c: New test.
15723 * testsuite/libgomp.c/cancel-parallel-2.c: New test.
15724 * testsuite/libgomp.c/cancel-parallel-3.c: New test.
15725 * testsuite/libgomp.c/cancel-sections-1.c: New test.
15726 * testsuite/libgomp.c/cancel-taskgroup-1.c: New test.
15727 * testsuite/libgomp.c/cancel-taskgroup-2.c: New test.
15728 * testsuite/libgomp.c/depend-1.c: New test.
15729 * testsuite/libgomp.c/depend-2.c: New test.
15730 * testsuite/libgomp.c/depend-3.c: New test.
15731 * testsuite/libgomp.c/depend-4.c: New test.
15732 * testsuite/libgomp.c/for-1.c: New test.
15733 * testsuite/libgomp.c/for-1.h: New file.
15734 * testsuite/libgomp.c/for-2.c: New test.
15735 * testsuite/libgomp.c/for-2.h: New file.
15736 * testsuite/libgomp.c/for-3.c: New test.
15737 * testsuite/libgomp.c/pr58392.c: New test.
15738 * testsuite/libgomp.c/simd-1.c: New test.
15739 * testsuite/libgomp.c/simd-2.c: New test.
15740 * testsuite/libgomp.c/simd-3.c: New test.
15741 * testsuite/libgomp.c/simd-4.c: New test.
15742 * testsuite/libgomp.c/simd-5.c: New test.
15743 * testsuite/libgomp.c/simd-6.c: New test.
15744 * testsuite/libgomp.c/target-1.c: New test.
15745 * testsuite/libgomp.c/target-2.c: New test.
15746 * testsuite/libgomp.c/target-3.c: New test.
15747 * testsuite/libgomp.c/target-4.c: New test.
15748 * testsuite/libgomp.c/target-5.c: New test.
15749 * testsuite/libgomp.c/target-6.c: New test.
15750 * testsuite/libgomp.c/target-7.c: New test.
15751 * testsuite/libgomp.c/taskgroup-1.c: New test.
15752 * testsuite/libgomp.c/thread-limit-1.c: New test.
15753 * testsuite/libgomp.c/thread-limit-2.c: New test.
15754 * testsuite/libgomp.c/thread-limit-3.c: New test.
15755 * testsuite/libgomp.c/udr-1.c: New test.
15756 * testsuite/libgomp.c/udr-2.c: New test.
15757 * testsuite/libgomp.c/udr-3.c: New test.
15758 * testsuite/libgomp.c++/affinity-1.C: New test.
15759 * testsuite/libgomp.c++/atomic-10.C: New test.
15760 * testsuite/libgomp.c++/atomic-11.C: New test.
15761 * testsuite/libgomp.c++/atomic-12.C: New test.
15762 * testsuite/libgomp.c++/atomic-13.C: New test.
15763 * testsuite/libgomp.c++/atomic-14.C: New test.
15764 * testsuite/libgomp.c++/atomic-15.C: New test.
15765 * testsuite/libgomp.c++/cancel-for-1.C: New test.
15766 * testsuite/libgomp.c++/cancel-for-2.C: New test.
15767 * testsuite/libgomp.c++/cancel-parallel-1.C: New test.
15768 * testsuite/libgomp.c++/cancel-parallel-2.C: New test.
15769 * testsuite/libgomp.c++/cancel-parallel-3.C: New test.
15770 * testsuite/libgomp.c++/cancel-sections-1.C: New test.
15771 * testsuite/libgomp.c++/cancel-taskgroup-1.C: New test.
15772 * testsuite/libgomp.c++/cancel-taskgroup-2.C: New test.
15773 * testsuite/libgomp.c++/cancel-taskgroup-3.C: New test.
15774 * testsuite/libgomp.c++/cancel-test.h: New file.
15775 * testsuite/libgomp.c++/for-9.C: New test.
15776 * testsuite/libgomp.c++/for-10.C: New test.
15777 * testsuite/libgomp.c++/for-11.C: New test.
15778 * testsuite/libgomp.c++/simd-1.C: New test.
15779 * testsuite/libgomp.c++/simd-2.C: New test.
15780 * testsuite/libgomp.c++/simd-3.C: New test.
15781 * testsuite/libgomp.c++/simd-4.C: New test.
15782 * testsuite/libgomp.c++/simd-5.C: New test.
15783 * testsuite/libgomp.c++/simd-6.C: New test.
15784 * testsuite/libgomp.c++/simd-7.C: New test.
15785 * testsuite/libgomp.c++/simd-8.C: New test.
15786 * testsuite/libgomp.c++/target-1.C: New test.
15787 * testsuite/libgomp.c++/target-2.C: New test.
15788 * testsuite/libgomp.c++/target-2-aux.cc: New file.
15789 * testsuite/libgomp.c++/target-3.C: New test.
15790 * testsuite/libgomp.c++/taskgroup-1.C: New test.
15791 * testsuite/libgomp.c++/udr-1.C: New test.
15792 * testsuite/libgomp.c++/udr-2.C: New test.
15793 * testsuite/libgomp.c++/udr-3.C: New test.
15794 * testsuite/libgomp.c++/udr-4.C: New test.
15795 * testsuite/libgomp.c++/udr-5.C: New test.
15796 * testsuite/libgomp.c++/udr-6.C: New test.
15797 * testsuite/libgomp.c++/udr-7.C: New test.
15798 * testsuite/libgomp.c++/udr-8.C: New test.
15799 * testsuite/libgomp.c++/udr-9.C: New test.
15800
15801 2013-09-20 Jakub Jelinek <jakub@redhat.com>
15802
15803 PR testsuite/57605
15804 * testsuite/lib/libgomp.exp: Add -fdiagnostics-color=never to
15805 ALWAYS_CFLAGS.
15806
15807 2013-09-20 Alan Modra <amodra@gmail.com>
15808
15809 * configure: Regenerate.
15810
15811 2013-09-19 Jakub Jelinek <jakub@redhat.com>
15812
15813 * testsuite/libgomp.c/sections-2.c: New test.
15814
15815 2013-06-28 Marcus Shawcroft <marcus.shawcroft@arm.com>
15816
15817 * testsuite/libgomp.fortran/strassen.f90:
15818 Add dg-skip-if aarch64_tiny.
15819
15820 2013-06-20 Iain Sandoe <iain@codesourcery.com>
15821 Cesar Philippidis <cesar@codesourcery.com>
15822
15823 * testsuite/lib/libgomp.exp: Reorder lib loads into dependency order.
15824 Do not load_gcc_lib gcc-dg.exp and add a comment as to why.
15825 * testsuite/libgomp.c/c.exp: load_gcc_lib gcc-dg.exp.
15826 * testsuite/libgomp.fortran/fortran.exp: Likewise.
15827 * testsuite/libgomp.graphite/graphite.exp: Likewise.
15828 * testsuite/libgomp.c++/c++.exp: load_gcc_lib gcc-dg.exp.
15829 Use dg-runtest rather than gfortran-dg-runtest.
15830
15831 2013-06-10 Thomas Schwinge <thomas@codesourcery.com>
15832
15833 * testsuite/libgomp.c/icv-2.c: Extend current handling of
15834 Linux-based x86 systems to cover all GNU systems.
15835 * testsuite/libgomp.c/lock-3.c: Likewise.
15836 * testsuite/libgomp.c/pr48591.c: Likewise.
15837
15838 2013-06-06 Thomas Schwinge <thomas@codesourcery.com>
15839
15840 * configure.tgt (XCFLAGS): Add -ftls-model=initial-exec for
15841 GNU/Hurd, as done for Linux-based systems.
15842
15843 * config/posix/ptrlock.h: Fix comment.
15844
15845 2013-05-27 Tobias Burnus <burnus@net-b.de>
15846
15847 PR fortran/57423
15848 * libgomp.texi (omp_set_dynamic, omp_set_nested, omp_set_nested,
15849 omp_set_num_threads, omp_init_lock, omp_set_lock, omp_test_lock,
15850 omp_unset_lock, omp_destroy_lock, omp_init_nest_lock,
15851 omp_set_nest_lock, omp_test_nest_lock, omp_unset_nest_lock,
15852 omp_destroy_nest_lock): Correct arguments to match the one in
15853 the OpenMP spec.
15854 * omp_lib.f90.in (omp_init_lock, omp_init_nest_lock, omp_destroy_lock
15855 omp_destroy_nest_lock, omp_set_lock, omp_set_nest_lock, omp_unset_lock,
15856 omp_unset_nest_lock, omp_set_dynamic, omp_set_nested,
15857 omp_set_num_threads, omp_test_lock, omp_test_nest_lock): Ditto.
15858
15859 2013-05-16 Jakub Jelinek <jakub@redhat.com>
15860
15861 * testsuite/libgomp.c/loop-13.c: New test.
15862 * testsuite/libgomp.c/loop-14.c: New test.
15863 * testsuite/libgomp.c/loop-15.c: New test.
15864 * testsuite/libgomp.c++/loop-13.C: New test.
15865 * testsuite/libgomp.c++/loop-14.C: New test.
15866 * testsuite/libgomp.c++/loop-15.C: New test.
15867
15868 2013-02-06 Jakub Jelinek <jakub@redhat.com>
15869
15870 PR middle-end/56217
15871 * testsuite/libgomp.c++/pr56217.C: New test.
15872
15873 2013-02-01 Alan Modra <amodra@gmail.com>
15874
15875 * task.c (GOMP_task, GOMP_taskwait): Comment.
15876
15877 2013-01-31 Dmitry Vyukov <dvyukov@gcc.gnu.org>
15878 Joost VandeVondele <Joost.VandeVondele@mat.ethz.ch>
15879
15880 PR libgomp/55561
15881 * config/linux/wait.h (do_spin): Use atomic load for addr.
15882 * config/linux/ptrlock.c (gomp_ptrlock_get_slow): Use atomic
15883 for intptr and ptrlock.
15884 * config/linux/ptrlock.h (gomp_ptrlock_get): Use atomic load
15885 for ptrlock.
15886
15887 2013-01-22 Alan Modra <amodra@gmail.com>
15888
15889 PR libgomp/51376
15890 PR libgomp/56073
15891 * task.c (GOMP_task): Revert 2011-12-09 change.
15892 (GOMP_taskwait): Likewise. Instead use atomic load with acquire
15893 barrier to read task->children..
15894 (gomp_barrier_handle_tasks): ..and matching atomic store with
15895 release barrier here when setting parent->children to NULL.
15896
15897 2013-01-16 Jakub Jelinek <jakub@redhat.com>
15898 Tobias Burnus <burnus@net-b.de>
15899
15900 PR driver/55884
15901 * testsuite/libgomp.fortran/fortran.exp: Use
15902 -fintrinsic-modules-path= instead of
15903 -fintrinsic-modules-path.
15904
15905 2013-01-14 Richard Sandiford <rdsandiford@googlemail.com>
15906
15907 Update copyright years.
15908
15909 2012-12-19 Tobias Burnus <burnus@net-b.de>
15910
15911 * testsuite/libgomp.fortran/fortran.exp: Set
15912 -fintrinsic-modules-path.
15913
15914 2012-12-19 Tobias Burnus <burnus@net-b.de>
15915
15916 * testsuite/libgomp.fortran/use_intrinsic_1.f90: New; moved
15917 from gcc/testsuite/gfortran.dg/gomp/use_intrinsic_1.f90.
15918
15919 2012-11-21 Jakub Jelinek <jakub@redhat.com>
15920
15921 PR libgomp/55411
15922 * team.c (gomp_free_thread): Decrease gomp_managed_threads
15923 if pool had any threads_used.
15924
15925 2012-11-07 Jack Howarth <howarth@bromo.med.uc.edu>
15926
15927 * testsuite/libgomp.c++/pr24455.C: Use
15928 -Wl,-undefined,dynamic_lookup on darwin.
15929
15930 2012-11-07 David Edelsohn <dje.gcc@gmail.com>
15931
15932 * testsuite/libgomp.c++/pr24455.C: Use -Wl,-G on AIX.
15933
15934 2012-10-24 Dominique d'Humieres <dominiq@lps.ens.fr>
15935
15936 * testsuite/libgomp.graphite/force-parallel-6.c: Adjust the loops.
15937
15938 2012-10-23 Ian Bolton <ian.bolton@arm.com>
15939 Jim MacArthur <jim.macarthur@arm.com>
15940 Marcus Shawcroft <marcus.shawcroft@arm.com>
15941 Nigel Stephens <nigel.stephens@arm.com>
15942 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
15943 Richard Earnshaw <rearnsha@arm.com>
15944 Sofiane Naci <sofiane.naci@arm.com>
15945 Stephen Thomas <stephen.thomas@arm.com>
15946 Tejas Belagod <tejas.belagod@arm.com>
15947 Yufeng Zhang <yufeng.zhang@arm.com>
15948
15949 * configure.tgt: Add AArch64.
15950
15951 2012-10-04 Jason Merrill <jason@redhat.com>
15952
15953 * testsuite/libgomp.c++/tls-init1.C: New.
15954
15955 2012-09-14 David Edelsohn <dje.gcc@gmail.com>
15956
15957 * configure: Regenerated.
15958
15959 2012-08-29 Chung-Lin Tang <cltang@codesourcery.com>
15960
15961 * config/linux/mips/futex.h (sys_futex0): Change to static
15962 function with noinline, nomips16 attributes under MIPS16. Adjust
15963 asm statement to place 'li v0,SYS_futex' immediately before
15964 syscall insn.
15965
15966 2012-07-04 Sandra Loosemore <sandra@codesourcery.com>
15967
15968 * libgomp.texi (Library Index): Renamed from "Index" to prevent
15969 conflict with index.html on case-insensitive file systems.
15970
15971 2012-07-03 Uros Bizjak <ubizjak@gmail.com>
15972
15973 * config/linux/x86/futex.h (cpu_relax): Use __builtin_ia32_pause.
15974 * testsuite/libgomp.c/sort-1.c (busy_wait): Ditto.
15975
15976 2012-07-02 Richard Guenther <rguenther@suse.de>
15977 Michael Matz <matz@suse.de>
15978 Tobias Grosser <tobias@grosser.es>
15979 Sebastian Pop <sebpop@gmail.com>
15980
15981 * testsuite/libgomp.graphite/force-parallel-4.c: Adjust.
15982 * testsuite/libgomp.graphite/force-parallel-5.c: Likewise.
15983 * testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
15984 * testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
15985
15986 2012-06-28 Andreas Schwab <schwab@linux-m68k.org>
15987
15988 * libgomp.texi: Include gpl_v3.texi instead of gpl.texi.
15989
15990 2012-06-22 Richard Guenther <rguenther@suse.de>
15991
15992 Merge from graphite branch
15993 2012-01-13 Tobias Grosser <tobias@grosser.es>
15994
15995 * testsuite/libgomp.graphite/force-parallel-1.c: Adjust.
15996 * testsuite/libgomp.graphite/force-parallel-2.c: Likewise.
15997
15998 2012-06-07 Jakub Jelinek <jakub@redhat.com>
15999
16000 PR middle-end/53580
16001 * testsuite/libgomp.c/pr26943-2.c: Remove #pragma omp barrier,
16002 use GOMP_barrier () call instead.
16003 * testsuite/libgomp.c/pr26943-3.c: Likewise.
16004 * testsuite/libgomp.c/pr26943-4.c: Likewise.
16005 * testsuite/libgomp.fortran/vla4.f90: Remove !$omp barrier,
16006 call GOMP_barrier instead.
16007 * testsuite/libgomp.fortran/vla5.f90: Likewise.
16008
16009 2012-06-06 Jakub Jelinek <jakub@redhat.com>
16010
16011 PR libgomp/52993
16012 * config/linux/lock.c (gomp_init_nest_lock_25): Fix up last
16013 argument to memset call.
16014
16015 2012-05-16 H.J. Lu <hongjiu.lu@intel.com>
16016
16017 * configure: Regenerated.
16018
16019 2012-04-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
16020
16021 * testsuite/lib/libgomp.exp: Add -fno-diagnostics-show-caret.
16022
16023 2012-03-31 H.J. Lu <hongjiu.lu@intel.com>
16024
16025 PR bootstrap/52812
16026 * configure.tgt (i[456]86-*-linux*): Handle -mx32 like -m64.
16027
16028 2012-03-22 Jakub Jelinek <jakub@redhat.com>
16029
16030 PR middle-end/52547
16031 * testsuite/libgomp.c/pr52547.c: New test.
16032
16033 2012-03-16 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
16034
16035 * testsuite/lib/libgomp.exp: load fortran-modules.exp
16036
16037 2012-03-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16038
16039 * configure.tgt (mips-sgi-irix6*): Remove.
16040
16041 2012-03-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16042
16043 * configure.tgt (alpha*-dec-osf*): Remove.
16044
16045 * config/osf/sem.h: Remove.
16046 * config/posix/lock.c (_XOPEN_SOURCE): Define unconditionally.
16047
16048 2012-02-29 Eric Botcazou <ebotcazou@adacore.com>
16049
16050 * config/linux/sparc/futex.h (cpu_relax): Read from CC register.
16051
16052 2012-02-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16053
16054 PR libstdc++/52188
16055 * acinclude.m4 (LIBGOMP_ENABLE_SYMVERS): Remove symvers_renaming.
16056 Remove ENABLE_SYMVERS_SOL2.
16057 * configure: Regenerate.
16058 * Makefile.am [LIBGOMP_BUILD_VERSIONED_SHLIB] (comma): New variable.
16059 (PREPROCESS): New variable.
16060 (libgomp.ver): New target.
16061 [LIBGOMP_BUILD_VERSIONED_SHLIB &&
16062 LIBGOMP_BUILD_VERSIONED_SHLIB_GNU]: Remove
16063 LIBGOMP_BUILD_VERSIONED_SHLIB_SOL2 handling.
16064 Use libgomp.ver.
16065 [LIBGOMP_BUILD_VERSIONED_SHLIB_SUN]: Use libgomp.ver, libgomp.ver-sun.
16066 * Makefile.in: Regenerate.
16067
16068 2012-02-14 Walter Lee <walt@tilera.com>
16069
16070 * configure.tgt: Handle tilegx and tilepro.
16071 * config/linux/tile/futex.h: New file.
16072
16073 2012-02-08 Richard Guenther <rguenther@suse.de>
16074
16075 PR tree-optimization/46886
16076 * testsuite/libgomp.c/pr46886.c: New testcase.
16077
16078 2012-01-25 Matthias Klose <doko@ubuntu.com>
16079
16080 * config/linux/arm: Remove empty directory.
16081 * configure.tgt (config_path): Remove linux-arm for arm*-*-linux*.
16082
16083 2011-12-09 Alan Modra <amodra@gmail.com>
16084
16085 PR libgomp/51376
16086 * task.c (GOMP_taskwait): Don't access task->children outside of
16087 task_lock mutex region.
16088 (GOMP_task): Likewise.
16089
16090 2011-12-06 Jakub Jelinek <jakub@redhat.com>
16091
16092 PR libgomp/51132
16093 * testsuite/libgomp.graphite/force-parallel-1.c: Move large arrays
16094 to file scope.
16095 * testsuite/libgomp.graphite/force-parallel-3.c: Likewise.
16096 * testsuite/libgomp.graphite/force-parallel-6.c: Likewise.
16097 * testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
16098 * testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
16099 * testsuite/libgomp.graphite/force-parallel-9.c: Likewise.
16100
16101 2011-12-02 Alan Modra <amodra@gmail.com>
16102
16103 * config/linux/affinity.c: Use atomic rather than sync builtin.
16104 * config/linux/lock.c: Likewise.
16105 * config/linux/ptrlock.h: Likewise.
16106 * config/linux/ptrlock.c: Likewise.
16107 * config/linux/ptrlock.h (gomp_ptrlock_set): Always write here..
16108 * config/linux/ptrlock.c (gomp_ptrlock_set_slow): ..not here.
16109 * config/linux/futex.h (atomic_write_barrier): Delete unused function.
16110 * config/linux/alpha/futex.h (atomic_write_barrier): Likewise.
16111 * config/linux/ia64/futex.h (atomic_write_barrier): Likewise.
16112 * config/linux/mips/futex.h (atomic_write_barrier): Likewise.
16113 * config/linux/powerpc/futex.h (atomic_write_barrier): Likewise.
16114 * config/linux/s390/futex.h (atomic_write_barrier): Likewise.
16115 * config/linux/sparc/futex.h (atomic_write_barrier): Likewise.
16116 * config/linux/x86/futex.h (atomic_write_barrier): Likewise.
16117
16118 2011-11-30 Alan Modra <amodra@gmail.com>
16119
16120 PR libgomp/51298
16121 * config/linux/bar.h: Use atomic rather than sync builtins.
16122 * config/linux/bar.c: Likewise. Add missing acquire
16123 synchronisation on generation field.
16124 * task.c (gomp_barrier_handle_tasks): Regain lock so as to not
16125 double unlock.
16126
16127 2011-11-30 Alan Modra <amodra@gmail.com>
16128
16129 * ordered.c (gomp_ordered_sync): Add MEMMODEL_ACQ_REL fence.
16130 * critical.c (GOMP_critical_start): Add MEMMODEL_RELEASE fence.
16131 * config/linux/mutex.h: Use atomic rather than sync builtins.
16132 * config/linux/mutex.c: Likewise. Comment. Use -1 for waiting state.
16133 * config/linux/omp-lock.h: Comment fix.
16134 * config/linux/arm/mutex.h: Delete.
16135 * config/linux/powerpc/mutex.h: Delete.
16136 * config/linux/ia64/mutex.h: Delete.
16137 * config/linux/mips/mutex.h: Delete.
16138
16139 2011-11-30 Alan Modra <amodra@gmail.com>
16140
16141 PR libgomp/51249
16142 * config/linux/sem.h: Rewrite.
16143 * config/linux/sem.c: Rewrite.
16144
16145 2011-11-28 Richard Henderson <rth@redhat.com>
16146
16147 * libgomp.h (enum memmodel): New.
16148
16149 2011-11-21 Andreas Tobler <andreast@fgznet.ch>
16150
16151 * configure: Regenerate.
16152
16153 2011-10-10 Matthias Klose <doko@ubuntu.com>
16154
16155 * config/posix95: Remove empty directory.
16156
16157 2011-08-26 Jakub Jelinek <jakub@redhat.com>
16158
16159 * testsuite/libgomp.fortran/threadprivate4.f90: New test.
16160
16161 2011-08-19 Jakub Jelinek <jakub@redhat.com>
16162
16163 PR fortran/49792
16164 * testsuite/libgomp.fortran/pr49792-1.f90: New test.
16165 * testsuite/libgomp.fortran/pr49792-2.f90: New test.
16166
16167 2011-08-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16168
16169 * config/posix95/lock.c, posix95/omp-lock.h: Remove.
16170
16171 2011-08-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16172
16173 PR libgomp/49965
16174 * testsuite/libgomp.c++/task-8.C: Replaced err by errval.
16175
16176 2011-08-03 Uros Bizjak <ubizjak@gmail.com>
16177
16178 * config/linux/proc.h: New.
16179 * config/linux/proc.c: Include "proc.h". Do not include <sched.h>.
16180 (gomp_cpuset_popcount): Rename from cpuset_popcount. No more static.
16181 (gomp_init_num_threads): Update call to cpuset_popcount.
16182 (get_num_procs): Ditto.
16183 * config/linux/affinity.c (gomp_init_affinity): Call
16184 gomp_cpuset_popcount.
16185
16186 2011-08-02 Jakub Jelinek <jakub@redhat.com>
16187
16188 PR fortran/42041
16189 PR fortran/46752
16190 * omp.h.in (omp_in_final): New prototype.
16191 * omp_lib.f90.in (omp_in_final): New interface.
16192 (omp_integer_kind, omp_logical_kind): Remove
16193 and replace all its uses in the module with 4.
16194 (openmp_version): Change to 201107.
16195 * omp_lib.h.in (omp_sched_static, omp_sched_dynamic,
16196 omp_sched_guided, omp_sched_auto): Use omp_sched_kind
16197 kind for the parameters.
16198 (omp_in_final): New external.
16199 (openmp_version): Change to 201107.
16200 * task.c (omp_in_final): New function.
16201 (gomp_init_task): Initialize final_task.
16202 (GOMP_task): Remove unused attribute from flags. Handle final
16203 tasks.
16204 (GOMP_taskyield): New function.
16205 (omp_in_final): Return true if if (false) or final (true) task
16206 or descendant of final (true).
16207 * fortran.c (omp_in_final_): New function.
16208 * libgomp.map (OMP_3.1): Export omp_in_final and omp_in_final_.
16209 (GOMP_3.0): Export GOMP_taskyield.
16210 * env.c (gomp_nthreads_var_list, gomp_nthreads_var_list_len): New
16211 variables.
16212 (parse_unsigned_long_list): New function.
16213 (initialize_env): Use it for OMP_NUM_THREADS. Call parse_boolean
16214 with "OMP_PROC_BIND". If OMP_PROC_BIND=true, call gomp_init_affinity
16215 even if parse_affinity returned false.
16216 * config/linux/affinity.c (gomp_init_affinity): Handle
16217 gomp_cpu_affinity_len == 0.
16218 * libgomp_g.h (GOMP_taskyield): New prototype.
16219 * libgomp.h (struct gomp_task): Add final_task field.
16220 (gomp_nthreads_var_list, gomp_nthreads_var_list_len): New externs.
16221 * team.c (gomp_team_start): Override new task's nthreads_var icv
16222 if list form OMP_NUM_THREADS has been used and it has value for
16223 the new nesting level.
16224
16225 * testsuite/libgomp.c/atomic-11.c: New test.
16226 * testsuite/libgomp.c/atomic-12.c: New test.
16227 * testsuite/libgomp.c/atomic-13.c: New test.
16228 * testsuite/libgomp.c/atomic-14.c: New test.
16229 * testsuite/libgomp.c/reduction-6.c: New test.
16230 * testsuite/libgomp.c/task-5.c: New test.
16231 * testsuite/libgomp.c++/atomic-2.C: New test.
16232 * testsuite/libgomp.c++/atomic-3.C: New test.
16233 * testsuite/libgomp.c++/atomic-4.C: New test.
16234 * testsuite/libgomp.c++/atomic-5.C: New test.
16235 * testsuite/libgomp.c++/atomic-6.C: New test.
16236 * testsuite/libgomp.c++/atomic-7.C: New test.
16237 * testsuite/libgomp.c++/atomic-8.C: New test.
16238 * testsuite/libgomp.c++/atomic-9.C: New test.
16239 * testsuite/libgomp.c++/task-8.C: New test.
16240 * testsuite/libgomp.c++/reduction-4.C: New test.
16241 * testsuite/libgomp.fortran/allocatable7.f90: New test.
16242 * testsuite/libgomp.fortran/allocatable8.f90: New test.
16243 * testsuite/libgomp.fortran/crayptr3.f90: New test.
16244 * testsuite/libgomp.fortran/omp_atomic3.f90: New test.
16245 * testsuite/libgomp.fortran/omp_atomic4.f90: New test.
16246 * testsuite/libgomp.fortran/pointer1.f90: New test.
16247 * testsuite/libgomp.fortran/pointer2.f90: New test.
16248 * testsuite/libgomp.fortran/task4.f90: New test.
16249
16250 2011-08-02 Tobias Burnus <burnus@net-b.de>
16251
16252 * libgomp.texi: Update OpenMP spec references to 3.1.
16253 (omp_in_final,OMP_PROC_BIND): New sections.
16254 (OMP_NUM_THREADS): Document that the value can be now a list.
16255 (GOMP_STACKSIZE,GOMP_CPU_AFFINITY): Update @ref.
16256
16257 2011-08-02 H.J. Lu <hongjiu.lu@intel.com>
16258
16259 * config/linux/x86/futex.h: Check __x86_64__ instead of
16260 __LP64__.
16261
16262 2011-07-29 Jakub Jelinek <jakub@redhat.com>
16263
16264 PR middle-end/49897
16265 PR middle-end/49898
16266 * testsuite/libgomp.c/pr49897-1.c: New test.
16267 * testsuite/libgomp.c/pr49897-2.c: New test.
16268 * testsuite/libgomp.c/pr49898-1.c: New test.
16269 * testsuite/libgomp.c/pr49898-2.c: New test.
16270
16271 2011-07-28 H.J. Lu <hongjiu.lu@intel.com>
16272
16273 * testsuite/lib/libgomp.exp (libgomp_init): Add -march=i486
16274 for ia32 instead of ilp32.
16275
16276 * testsuite/libgomp.c/atomic-1.c: Require ia32 instead of ilp32.
16277 * testsuite/libgomp.c/atomic-6.c: Likewise.
16278
16279 2011-07-23 Sebastian Pop <sebastian.pop@amd.com>
16280
16281 * testsuite/libgomp.graphite/force-parallel-1.c: Un-xfail.
16282 * testsuite/libgomp.graphite/force-parallel-2.c: Adjust pattern.
16283
16284 2011-07-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16285
16286 PR libgomp/45351
16287 * config/osf/sem.h: New file.
16288 * configure.tgt (alpha*-dec-osf*): Prepend osf to config_path.
16289
16290 2011-07-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16291
16292 PR target/49541
16293 * testsuite/lib/libgomp.exp (libgomp_init): Don't add -lgomp to
16294 ldflags.
16295
16296 2011-07-15 Jakub Jelinek <jakub@redhat.com>
16297
16298 * config/linux/wait.h (do_spin): New inline, largely copied
16299 from do_wait, just don't do futex_wait here, instead return true if
16300 it should be done.
16301 (do_wait): Implement using do_spin.
16302 * config/linux/mutex.h (gomp_mutex_lock_slow): Add an int argument
16303 to prototype.
16304 (gomp_mutex_lock): Use __sync_val_compare_and_swap instead of
16305 __sync_bool_compare_and_swap, pass the oldval to
16306 gomp_mutex_lock_slow.
16307 * config/linux/mutex.c (gomp_mutex_lock_slow): Add oldval argument.
16308 If all mutex contenders are just spinning and not sleeping, don't
16309 change state to 2 unnecessarily. Optimize the loop when state has
16310 already become 2 to use just one atomic operation per loop instead
16311 of two.
16312 * config/linux/ia64/mutex.h (gomp_mutex_lock_slow): Add an int argument
16313 to prototype.
16314 (gomp_mutex_lock): Use __sync_val_compare_and_swap instead of
16315 __sync_bool_compare_and_swap, pass the oldval to
16316 gomp_mutex_lock_slow.
16317
16318 2011-06-22 Jakub Jelinek <jakub@redhat.com>
16319
16320 PR libgomp/49490
16321 * iter.c (gomp_iter_static_next): For chunk size 0
16322 only use n ceil/ nthreads size for the first
16323 n % nthreads threads in the team instead of
16324 all threads except for the last few ones which
16325 get less work or none at all.
16326 * iter_ull.c (gomp_iter_ull_static_next): Likewise.
16327 * env.c (parse_schedule): If OMP_SCHEDULE doesn't have
16328 chunk argument, set run_sched_modifier to 0 for static
16329 resp. 1 for other kinds. If chunk argument is 0
16330 and not static, set value to 1.
16331
16332 2011-05-19 Jakub Jelinek <jakub@redhat.com>
16333
16334 PR c++/49043
16335 * testsuite/libgomp.c++/pr49043.C: New test.
16336
16337 PR c++/48869
16338 * testsuite/libgomp.c++/pr48869.C: New test.
16339
16340 2011-05-06 Jakub Jelinek <jakub@redhat.com>
16341
16342 PR fortran/48894
16343 * fortran.c: Include limits.h.
16344 (TO_INT): Define.
16345 (omp_set_dynamic_8_, omp_set_num_threads_8_): Use !!*set instead of
16346 *set.
16347 (omp_set_num_threads_8_, omp_set_schedule_8_,
16348 omp_set_max_active_levels_8_, omp_get_ancestor_thread_num_8_,
16349 omp_get_team_size_8_): Use TO_INT macro.
16350 * testsuite/libgomp.fortran/pr48894.f90: New test.
16351
16352 2011-04-13 Jakub Jelinek <jakub@redhat.com>
16353
16354 PR middle-end/48591
16355 * testsuite/libgomp.c/pr48591.c: New test.
16356
16357 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16358
16359 PR bootstrap/48135
16360 * acinclude.m4 (enable_symvers): Handle --disable-symvers.
16361 * configure: Regenerate.
16362
16363 2011-02-27 Jakub Jelinek <jakub@redhat.com>
16364
16365 PR fortran/47886
16366 * testsuite/libgomp.fortran/task3.f90: New test.
16367
16368 2011-02-24 Tobias Burnus <burnus@net-b.de>
16369
16370 * libgomp.texi (GOMP_STACKSIZE): Fix @ref to OMP_STACKSIZE.
16371
16372 2011-02-23 Jakub Jelinek <jakub@redhat.com>
16373
16374 PR libgomp/47854
16375 * libgomp.texi (omp_get_wtime): Don't say time in the past
16376 must be Unix Epoch.
16377
16378 2011-02-18 Jakub Jelinek <jakub@redhat.com>
16379
16380 PR libgomp/47804
16381 * testsuite/libgomp.fortran/fortran.exp: Check for both
16382 libquadmath.a and libquadmath.${shlib_ext}. If neither exists,
16383 but $blddir != "", still append ${blddir}/${lang_library_path}
16384 to ld_library_path.
16385
16386 2011-02-16 Tobias Burnus <burnus@net-b.de>
16387
16388 PR libgomp/47758
16389 * testsuite/libgomp.fortran/fortran.exp: Check for the existence
16390 of libquadmath.a before adding its libpath to ldflags.
16391
16392 2011-02-14 Jakub Jelinek <jakub@redhat.com>
16393
16394 PR libgomp/47731
16395 * config/linux/futex.h (futex_wait): Pass NULL as timeout argument
16396 to FUTEX_WAIT futex syscall.
16397 * config/linux/wait.h: Include <futex.h> instead of "futex.h".
16398
16399 2011-02-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
16400
16401 * configure: Regenerate.
16402
16403 2011-01-20 Benjamin Kosnik <bkoz@redhat.com>
16404
16405 PR libstdc++/36104
16406 * acinclude.m4 (LIBGOMP_ENABLE_SYMVERS): Accept gnu variants.
16407
16408 2011-01-16 Gerald Pfeifer
16409
16410 * configure.tgt (*-*-freebsd*): Add -lpthread to XLDFLAGS.
16411
16412 2010-12-14 Jakub Jelinek <jakub@redhat.com>
16413
16414 PR fortran/46874
16415 * libgomp.fortran/allocatable6.f90: New test.
16416
16417 2010-12-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16418
16419 * acinclude.m4 (symvers_renaming): Also set if enable_symvers = no.
16420 * configure: Regenerate.
16421
16422 2010-12-06 Dave Korn <dave.korn.cygwin@gmail.com>
16423
16424 PR target/40125
16425 PR lto/46695
16426 * configure.ac: Invoke ACX_LT_HOST_FLAGS.
16427 * Makefile.am (libgomp_la_LDFLAGS): Use lt_host_flags.
16428 * aclocal.m4: Regenerate.
16429 * configure: Regenerate.
16430 * Makefile.in: Regenerate.
16431 * testsuite/Makefile.in: Regenerate.
16432
16433 2010-12-02 Jakub Jelinek <jakub@redhat.com>
16434
16435 PR fortran/46753
16436 * libgomp.fortran/pr46753.f90: New test.
16437
16438 PR libgomp/43706
16439 * env.c (initialize_env): Default to spin count 300000
16440 instead of 20000000 if neither OMP_WAIT_POLICY nor GOMP_SPINCOUNT
16441 is specified.
16442
16443 PR libgomp/45240
16444 * parallel.c (GOMP_parallel_end): Unlock gomp_remaining_threads_lock
16445 at the end if sync builtins aren't supported.
16446
16447 2010-12-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16448
16449 * configure.tgt (mips-sgi-irix6*): Add -lpthread to XLDFLAGS.
16450
16451 2010-12-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16452
16453 * testsuite/libgomp.fortran/vla8.f90: Use dg-timeout-factor 2.0.
16454
16455 2010-11-24 Iain Sandoe <iains@gcc.gnu.org>
16456
16457 * testsuite/libgomp.fortran/fortran.exp: Add paths for libquadmath.
16458
16459 2010-11-16 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
16460 Tobias Burnus <burnus@net-b.de>
16461
16462 PR fortran/32049
16463 * configure.ac:
16464 * configure: Regenerate.
16465
16466 2010-10-06 Marcus Shawcroft <marcus.shawcroft@arm.com>
16467
16468 * config/linux/futex.h: New.
16469 * config/linux/arm/mutex.h: New.
16470 * configure.tgt (arm*-*-linux*): Add config path.
16471
16472 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
16473
16474 * testsuite/libgomp.graphite/force-parallel-1.c: Adjust.
16475
16476 2010-09-23 Tobias Burnus <burnus@net-b.de>
16477
16478 * libgomp.texi (omp_get_nested, omp_set_nested, omp_set_dynamic):
16479 Change Fortran datatype to LOGICAL.
16480 (omp_set_lock, omp_test_lock, omp_unset_lock, omp_set_nested_lock,
16481 omp_unset_nested_lock): Use intent(inout) instead of intent(out).
16482
16483 2010-08-21 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
16484
16485 * configure: Regenerate.
16486
16487 2010-07-26 Jakub Jelinek <jakub@redhat.com>
16488
16489 * libgomp.texi: Add function keyword to a couple of Fortran
16490 interfaces, use integer instead of int for Fortran.
16491
16492 2010-07-26 Aldy Hernandez <aldyh@redhat.com>
16493
16494 * libgomp.texi: Fix spelling and pasto problems throughout.
16495 Adjust prototypes to match code.
16496
16497 2010-07-24 Tobias Burnus <burnus@net-b.de>
16498
16499 * testsuite/libgomp.fortran/appendix-a/a.28.5.f90: Add -w to
16500 silence -fwhole-file warning.
16501
16502 2010-07-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16503
16504 * configure.tgt (*-*-solaris2.[56]*): Removed.
16505
16506 2010-07-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16507
16508 * acinclude.m4 (LIBGOMP_ENABLE_SYMVERS): Handle sun style.
16509 Define LIBGOMP_BUILD_VERSIONED_SHLIB_GNU,
16510 LIBGOMP_BUILD_VERSIONED_SHLIB_SUN automake conditionals.
16511 (HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT): Define unless
16512 targetting solaris2*.
16513 * configure: Regenerate.
16514 * config.h.in: Regenerate.
16515
16516 * Makefile.am [LIBGOMP_BUILD_VERSIONED_SHLIB]: Protect
16517 libgomp_version_script with LIBGOMP_BUILD_VERSIONED_SHLIB_GNU.
16518 Add libgomp_version_dep.
16519 [LIBGOMP_BUILD_VERSIONED_SHLIB_SUN]: Handle Sun symbol
16520 versioning.
16521 [!LIBGOMP_BUILD_VERSIONED_SHLIB]: Add libgomp_version_dep.
16522 (libgomp_la_DEPENDENCIES): Set to $(libgomp_version_dep).
16523 * Makefile.in: Regenerate.
16524
16525 * libgomp.h (LIBGOMP_GNU_SYMBOL_VERSIONING): Undef unless
16526 HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT.
16527 * libgomp.map (OMP_1.0): Move symbols both in OMP_1.0 and OMP_3.0
16528 to common block, protected by
16529 HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT.
16530
16531 2010-06-10 Gerald Pfeifer <gerald@pfeifer.com>
16532
16533 * libgomp.texi: Move to GFDL version 1.3. Update copyright years.
16534
16535 2010-06-09 Iain Sandoe <iains@gcc.gnu.org>
16536
16537 PR bootstrap/43170
16538 * configure: Regenerate.
16539
16540 2010-05-04 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
16541
16542 PR other/43620
16543 * configure.ac (AM_INIT_AUTOMAKE): Add no-dist.
16544 * configure: Regenerate.
16545 * Makefile.in: Regenerate.
16546 * testsuite/Makefile.in: Regenerate.
16547
16548 2010-04-26 Jakub Jelinek <jakub@redhat.com>
16549
16550 PR c/43893
16551 * testsuite/libgomp.c/pr43893.c: New test.
16552 * testsuite/libgomp.c++/pr43893.C: New test.
16553
16554 2010-04-21 Jakub Jelinek <jakub@redhat.com>
16555
16556 PR middle-end/43570
16557 * testsuite/libgomp.fortran/vla8.f90: New test.
16558
16559 2010-04-20 Jakub Jelinek <jakub@redhat.com>
16560
16561 PR libgomp/43706
16562 * config/linux/affinity.c (gomp_init_affinity): Decrease
16563 gomp_available_cpus if affinity mask confines the process to fewer
16564 CPUs.
16565 * config/linux/proc.c (get_num_procs): If gomp_cpu_affinity is
16566 non-NULL, just return gomp_available_cpus.
16567
16568 PR libgomp/43569
16569 * sections.c (gomp_sections_init): Initialize ws->mode.
16570
16571 2010-04-14 Uros Bizjak <ubizjak@gmail.com>
16572
16573 * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS): Remove set but
16574 not unused bar variable.
16575 * configure: Regenerate.
16576
16577 2010-04-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
16578
16579 * Makefile.in: Regenerate.
16580 * aclocal.m4: Regenerate.
16581 * testsuite/Makefile.in: Regenerate.
16582
16583 2010-03-22 Jakub Jelinek <jakub@redhat.com>
16584
16585 PR libgomp/42942
16586 * env.c (parse_unsigned_long): Add ALLOW_ZERO argument.
16587 (initialize_env): Adjust callers.
16588 (omp_set_max_active_levels): Set gomp_max_active_levels_var even
16589 when the argument is 0.
16590
16591 * testsuite/libgomp.c/pr42942.c: New test.
16592
16593 2010-03-08 Tobias Grosser <grosser@fim.uni-passau.de>
16594
16595 PR middle-end/42644
16596 PR middle-end/42130
16597 * testsuite/libgomp.graphite/force-parallel-1.c: Adjust.
16598 * testsuite/libgomp.graphite/force-parallel-2.c: Adjust.
16599
16600 2010-01-29 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16601
16602 * testsuite/libgomp.c++/task-1.C: Renamed err to e.
16603 * testsuite/libgomp.c++/task-6.C: Likewise.
16604
16605 2010-01-28 Steve Ellcey <sje@cup.hp.com>
16606
16607 * configure.tgt (*-*-hpux*): Add -frandom-seed flag.
16608
16609 2010-01-26 Paolo Bonzini <bonzini@gnu.org>
16610
16611 * configure.ac: Test for executability of _the first word_ of GFORTRAN.
16612 * configure: Regenerate.
16613
16614 2010-01-26 Jakub Jelinek <jakub@redhat.com>
16615
16616 PR fortran/42866
16617 * testsuite/libgomp.fortran/allocatable5.f90: New test.
16618
16619 2010-01-20 Paolo Bonzini <bonzini@gnu.org>
16620
16621 * configure.ac: Test for executability of GFORTRAN.
16622 * configure: Regenerate.
16623
16624 2010-01-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16625
16626 * configure: Regenerate.
16627
16628 2010-01-04 H.J. Lu <hongjiu.lu@intel.com>
16629
16630 PR libgomp/42602
16631 * libgomp.fortran/recursion1.f90 (sub): Make 's' atomic.
16632
16633 2010-01-03 Richard Guenther <rguenther@suse.de>
16634
16635 * testsuite/libgomp.fortran/recursion1.f90: New testcase.
16636
16637 2009-12-23 Sebastian Pop <sebpop@gmail.com>
16638
16639 * testsuite/libgomp.graphite/pr4118.c: New.
16640
16641 2009-12-22 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
16642
16643 * testsuite/libgomp.fortran/crayptr2.f90: Remove forced static linkage
16644 for darwin, protect the test with require-effective-target tls_runtime.
16645 * testsuite/libgomp.fortran/pr32550.f90: Ditto.
16646
16647 2009-12-22 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
16648
16649 PR target/41605
16650 * testsuite/lib/libgomp.exp: Provide -B options to allow for
16651 link spec %s substitutions for static libraries.
16652
16653 2009-12-18 Jack Howarth <howarth@bromo.med.uc.edu>
16654
16655 PR testsuite/42135
16656 * libgomp.graphite/force-parallel-2.c: Reduce array size.
16657
16658 2009-12-05 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
16659
16660 * Makefile.in: Regenerate.
16661 * configure: Regenerate.
16662 * testsuite/Makefile.in: Regenerate.
16663
16664 2009-11-30 Dave Korn <dave.korn.cygwin@gmail.com>
16665
16666 * testsuite/lib/libgomp.exp (libgomp_init): Add host-dependent
16667 settings for LC_ALL and LANG.
16668
16669 2009-11-25 Jakub Jelinek <jakub@redhat.com>
16670
16671 PR fortran/42162
16672 * testsuite/libgomp.fortran/pr42162.f90: New test.
16673
16674 2009-11-13 Jakub Jelinek <jakub@redhat.com>
16675
16676 PR middle-end/42029
16677 * testsuite/libgomp.c/pr42029.c: New test.
16678
16679 2009-10-26 Jakub Jelinek <jakub@redhat.com>
16680
16681 * acinclude.m4 (LIBGOMP_CHECK_LINKER_FEATURES): Avoid using too many
16682 *s. Accept ld version without text in ()s.
16683 * configure: Regenerated.
16684
16685 2009-10-22 Razya Ladelsky <razya@il.ibm.com>
16686
16687 * testsuite/libgomp.graphite/force-parallel-2.c: Adjust scan.
16688
16689 2009-10-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
16690
16691 PR libgomp/41418
16692 * configure.ac: Set FC to "no" if $GFORTRAN starts with "no"
16693 or a hyphen (happens with fortran language disabled).
16694 * configure: Regenerate.
16695
16696 2009-09-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
16697
16698 * acinclude.m4 (LIBGOMP_CHECK_LINKER_FEATURES): Avoid 'head',
16699 use sed script portable to Solaris /bin/sed for extracting ld
16700 version.
16701 * configure: Regenerate.
16702
16703 2009-09-17 Alexander Monakov <amonakov@ispras.ru>
16704
16705 * testsuite/libgomp.graphite/bounds.c: New test.
16706
16707 2009-09-11 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
16708
16709 * Makefile.am (libgomp_la_LINK): New.
16710 * Makefile.in: Regenerate.
16711
16712 2009-08-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
16713
16714 * configure.ac (AC_PREREQ): Bump to 2.64.
16715
16716 2009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
16717
16718 * Makefile.am (install-html, install-pdf): Remove.
16719 * Makefile.in: Regenerate.
16720
16721 * Makefile.in: Regenerate.
16722 * aclocal.m4: Regenerate.
16723 * config.h.in: Regenerate.
16724 * configure: Regenerate.
16725 * testsuite/Makefile.in: Regenerate.
16726
16727 2009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
16728
16729 * Makefile.am (LINK): Add $(AM_LIBTOOLFLAGS) and $(LIBTOOLFLAGS).
16730 * Makefile.in: Regenerate.
16731
16732 2009-08-20 Dave Korn <dave.korn.cygwin@gmail.com>
16733
16734 * Makefile.am (libgomp_la_LDFLAGS): Add -bindir flag.
16735 * Makefile.in: Regenerate.
16736
16737 2009-08-19 Tobias Burnus <burnus@net-b.de>
16738
16739 PR fortran/41102
16740 omp_lib.h.in: Fix -std=f95 errors.
16741
16742 2009-08-14 David Edelsohn <edelsohn@gnu.org>
16743
16744 * testsuite/libgomp.graphite: Move from gcc.dg/graphite.
16745 * testsuite/libgomp.graphite/graphite_autopar.exp: Delete.
16746 * testsuite/libgomp.graphite/graphite.exp: New.
16747
16748 2009-08-05 Andreas Tobler <a.tobler@schweiz.org>
16749
16750 * testsuite/libgomp.fortran/fortran.exp: Add flags in case of shared
16751 only build.
16752
16753 2009-08-04 David Daney <ddaney@caviumnetworks.com>
16754
16755 * config/linux/mutex.h (gomp_mutex_unlock): Add comment about
16756 needed memory barrier semantics.
16757 * config/linux/mips/mutex.h: New file.
16758
16759 2009-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
16760
16761 * configure.ac (_AC_ARG_VAR_PRECIOUS): Use m4_rename_force.
16762
16763 2009-07-16 Joseph Myers <joseph@codesourcery.com>
16764
16765 * configure: Regenerate.
16766
16767 2009-07-11 Richard Sandiford <rdsandiford@googlemail.com>
16768
16769 PR testsuite/40699
16770 PR testsuite/40707
16771 PR testsuite/40709
16772 * testsuite/lib/libgomp.exp: Revert 2009-07-02 and 2009-06-30 commits.
16773 * testsuite/libgomp.c/c.exp, testsuite/libgomp.c++/c++.exp,
16774 testsuite/libgomp.fortran/fortran.exp: Revert 2009-06-30 commits.
16775
16776 2009-07-02 Richard Sandiford <r.sandiford@uk.ibm.com>
16777
16778 * testsuite/lib/libgomp.exp (libgomp_init): Use the ALWAYS_CFLAGS
16779 options when choosing a multilib.
16780
16781 2009-06-30 Richard Sandiford <r.sandiford@uk.ibm.com>
16782
16783 * testsuite/lib/libgomp.exp (libgomp_init): Don't add "." to
16784 ld_library_path. Use add_path. Add just find_libgcc_s to
16785 ld_library_path, not every libgcc multilib directory.
16786 * testsuite/libgomp.c/c.exp (ld_library_path): Don't call
16787 gcc-set-multilib-library-path; rely on $always_ld_library_path instead.
16788 * testsuite/libgomp.c++/c++.exp (ld_library_path): Likewise.
16789 Use add_path.
16790 * testsuite/libgomp.fortran/fortran.exp (ld_library_path): Likewise.
16791
16792 2009-06-09 Nathan Froyd <froydnj@codesourcery.com>
16793
16794 * Makefile.am (LTLDFLAGS): Define.
16795 (LINK): Define.
16796 * Makefile.in: Regenerate.
16797
16798 2009-05-27 Janne Blomqvist <jb@gcc.gnu.org>
16799
16800 PR fortran/39718
16801 * testsuite/libgomp.fortran/fortran.exp: Don't link with
16802 libgfortranbegin, check existence of libgfortran.a instead of
16803 libgfortranbegin.a.
16804
16805 2009-05-20 Jakub Jelinek <jakub@redhat.com>
16806
16807 PR libgomp/40174
16808 * team.c (gomp_thread_start): Destroy thr->release semaphore.
16809 (gomp_free_pool_helper): Likewise.
16810
16811 2009-04-20 Vasilis Liaskovitis <vliaskov@gmail.com>
16812 Jakub Jelinek <jakub@redhat.com>
16813
16814 PR fortran/35423
16815 * testsuite/libgomp.fortran/workshare2.f90: New test.
16816
16817 2009-04-09 Nick Clifton <nickc@redhat.com>
16818
16819 * iter.c: Change copyright header to refer to version 3 of the
16820 GNU General Public License with version 3.1 of the GCC Runtime
16821 Library Exception and to point readers at the COPYING3 and
16822 COPYING3.RUNTIME files and the FSF's license web page.
16823 * alloc.c: Likewise.
16824 * barrier.c: Likewise.
16825 * config/bsd/proc.c: Likewise.
16826 * config/linux/affinity.c: Likewise.
16827 * config/linux/alpha/futex.h: Likewise.
16828 * config/linux/bar.c: Likewise.
16829 * config/linux/bar.h: Likewise.
16830 * config/linux/ia64/futex.h: Likewise.
16831 * config/linux/ia64/mutex.h: Likewise.
16832 * config/linux/lock.c: Likewise.
16833 * config/linux/mips/futex.h: Likewise.
16834 * config/linux/mutex.c: Likewise.
16835 * config/linux/mutex.h: Likewise.
16836 * config/linux/powerpc/futex.h: Likewise.
16837 * config/linux/proc.c: Likewise.
16838 * config/linux/ptrlock.c: Likewise.
16839 * config/linux/ptrlock.h: Likewise.
16840 * config/linux/s390/futex.h: Likewise.
16841 * config/linux/sem.c: Likewise.
16842 * config/linux/sem.h: Likewise.
16843 * config/linux/sparc/futex.h: Likewise.
16844 * config/linux/wait.h: Likewise.
16845 * config/linux/x86/futex.h: Likewise.
16846 * config/mingw32/proc.c: Likewise.
16847 * config/mingw32/time.c: Likewise.
16848 * config/posix/affinity.c: Likewise.
16849 * config/posix/bar.c: Likewise.
16850 * config/posix/bar.h: Likewise.
16851 * config/posix/lock.c: Likewise.
16852 * config/posix/mutex.h: Likewise.
16853 * config/posix/proc.c: Likewise.
16854 * config/posix/ptrlock.h: Likewise.
16855 * config/posix/sem.c: Likewise.
16856 * config/posix/sem.h: Likewise.
16857 * config/posix/time.c: Likewise.
16858 * config/posix95/lock.c: Likewise.
16859 * critical.c: Likewise.
16860 * env.c: Likewise.
16861 * error.c: Likewise.
16862 * fortran.c: Likewise.
16863 * iter_ull.c: Likewise.
16864 * libgomp.h: Likewise.
16865 * libgomp_f.h.in: Likewise.
16866 * libgomp_g.h: Likewise.
16867 * loop.c: Likewise.
16868 * loop_ull.c: Likewise.
16869 * omp.h.in: Likewise.
16870 * omp_lib.f90.in: Likewise.
16871 * omp_lib.h.in: Likewise.
16872 * ordered.c: Likewise.
16873 * parallel.c: Likewise.
16874 * sections.c: Likewise.
16875 * single.c: Likewise.
16876 * task.c: Likewise.
16877 * team.c: Likewise.
16878 * work.c: Likewise.
16879
16880 2009-04-09 Jakub Jelinek <jakub@redhat.com>
16881
16882 * testsuite/config/default.exp: Change copyright header to refer to
16883 version 3 of the GNU General Public License and to point readers
16884 at the COPYING3 file and the FSF's license web page.
16885
16886 2009-04-08 Jakub Jelinek <jakub@redhat.com>
16887
16888 PR middle-end/39573
16889 * libgomp.c++/pr39573.C: New test.
16890
16891 2009-04-01 Jakub Jelinek <jakub@redhat.com>
16892
16893 PR other/39591
16894 * testsuite/libgomp.c/pr39591-1.c: New test.
16895 * testsuite/libgomp.c/pr39591-2.c: New test.
16896 * testsuite/libgomp.c/pr39591-3.c: New test.
16897
16898 2009-03-25 Uros Bizjak <ubizjak@gmail.com>
16899
16900 * testsuite/libgomp.c/atomic-5.c: Cleanup cpuid usage.
16901 * testsuite/libgomp.c/atomic-6.c: Ditto.
16902
16903 2009-03-23 Jakub Jelinek <jakub@redhat.com>
16904
16905 PR c/39495
16906 * testsuite/libgomp.c/loop-12.c: New test.
16907 * testsuite/libgomp.c/loop-11.c: New test.
16908 * testsuite/libgomp.c++/loop-11.C: New test.
16909 * testsuite/libgomp.c++/loop-12.C: New test.
16910 * testsuite/libgomp.c++/for-8.C: New test.
16911
16912 2009-03-01 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
16913
16914 * configure: Regenerate.
16915
16916 2009-02-11 Jakub Jelinek <jakub@redhat.com>
16917
16918 PR middle-end/39154
16919 * testsuite/libgomp.c/pr39154.c: New test.
16920
16921 2009-01-30 Ian Lance Taylor <iant@google.com>
16922
16923 * acinclude.m4 (LIBCOMP_CHECK_LINKER_FEATURES): Set
16924 libgomp_ld_is_gold. Get gold version number.
16925 (LIBGOMP_ENABLE_SYMVERS): Gold always support symbol versioning.
16926 * configure: Rebuild.
16927
16928 2009-01-19 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
16929
16930 * testsuite/lib/libgomp.exp: Add -B option for targets that
16931 use libgfortran.a%s in their specs.
16932
16933 2009-01-07 Jakub Jelinek <jakub@redhat.com>
16934
16935 PR libgomp/38086
16936 * acinclude.m4 (HAVE_AS_SYMVER_DIRECTIVE): New check.
16937 * libgomp.h (LIBGOMP_GNU_SYMBOL_VERSIONING): Undefine if
16938 HAVE_AS_SYMVER_DIRECTIVE is not defined.
16939 * configure: Regenerated.
16940 * config.h.in: Likewise.
16941
16942 2008-12-28 Jakub Jelinek <jakub@redhat.com>
16943
16944 PR c++/38650
16945 * testsuite/libgomp.c/pr38650.c: New test.
16946 * testsuite/libgomp.c++/pr38650.C: New test.
16947
16948 2008-12-27 Jakub Jelinek <jakub@redhat.com>
16949
16950 * testsuite/libgomp.c/collapse-1.c (main): Add private(k) clause.
16951
16952 2008-12-26 Uros Bizjak <ubizjak@gmail.com>
16953
16954 * testsuite/libgomp.c/atomic-6.c: Add -mieee for alpha*-*-* targets.
16955
16956 2008-12-18 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
16957
16958 * configure: Regenerate.
16959
16960 2008-12-08 Jakub Jelinek <jakub@redhat.com>
16961
16962 PR middle-end/36802
16963 * testsuite/libgomp.c/pr36802-1.c: New test.
16964 * testsuite/libgomp.c/pr36802-2.c: New test.
16965 * testsuite/libgomp.c/pr36802-3.c: New test.
16966
16967 2008-12-01 Janis Johnson <janis187@us.ibm.com>
16968
16969 PR libgomp/38270
16970 * config/linux/powerpc/mutex.h: New.
16971
16972 2008-12-01 Jakub Jelinek <jakub@redhat.com>
16973
16974 PR c++/38257
16975 * testsuite/libgomp.c++/for-7.C: New test.
16976
16977 PR c++/38348
16978 * testsuite/libgomp.c++/for-6.C: New test.
16979
16980 2008-11-26 Janis Johnson <janis187@us.ibm.com>
16981
16982 PR testsuite/28870
16983 * testsuite/lib/libgomp.exp: Include new timeout library files.
16984 (libgomp_target_compile): Set timeout value from new proc.
16985
16986 2008-11-13 Steve Ellcey <sje@cup.hp.com>
16987
16988 PR libgomp/37938
16989 * config/linux/ia64/mutex.h: New.
16990
16991 2008-11-04 Tobias Burnus <burnus@net-b.de>
16992
16993 PR libgomp/37935
16994 * libgomp.texi (Runtime library routines, environment variables):
16995 Update for OpenMP version 3.0.
16996
16997 2008-09-26 Peter O'Gorman <pogma@thewrittenword.com>
16998 Steve Ellcey <sje@cup.hp.com>
16999
17000 * configure: Regenerate for new libtool.
17001 * Makefile.in: Ditto.
17002 * testsuite/Makefile.in: Ditto.
17003
17004 2008-09-19 Jakub Jelinek <jakub@redhat.com>
17005 Andreas Tobler <a.tobler@schweiz.org>
17006
17007 * config/bsd/proc.c: New file.
17008 * configure.tgt (*-*-darwin*): Use config_path "bsd posix".
17009 * configure.ac: Check for header <sys/sysctl.h>
17010 * configure: Regenerate.
17011 * config.h.in: Likewise.
17012
17013 2008-09-05 Janis Johnson <janis187@us.ibm.com>
17014
17015 * testsuite/ligbomp.c/c.exp: Unset lang_test_file only if it exists.
17016
17017 2008-08-31 Aaron W. LaFramboise <aaronavay62@aaronwl.com>
17018
17019 * Makefile.am (libgomp_la_LDFLAGS): Add -no-undefined.
17020 * Makefile.in: Regenerated.
17021 * testsuite/Makefile.in: Regenerated.
17022
17023 2008-08-21 Nathan Froyd <froydnj@codesourcery.com>
17024
17025 * testsuite/lib/libgomp.exp (libgomp_init): Only set things that
17026 depend on blddir if blddir exists.
17027 (libgomp_target_compile): Likewise.
17028 * testsuite/libgomp.c++/c++.exp: Likewise.
17029 * testsuite/libgomp.fortran/fortran.exp: Likewise.
17030
17031 2008-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
17032
17033 * libgomp.texi: Update to GFDL 1.2. Update copyright years.
17034 Do not list GPL as Invariant Section.
17035
17036 2008-07-28 Ilie Garbacea <ilie@mips.com>
17037 Chao-ying Fu <fu@mips.com>
17038
17039 * configure.tgt: Enable futex for MIPS.
17040 * config/linux/mips/futex.h: New file.
17041
17042 2008-07-16 Jakub Jelinek <jakub@redhat.com>
17043
17044 * team.c (gomp_team_end): Free team immediately if it has
17045 just one thread.
17046
17047 2008-07-08 David Edelsohn <edelsohn@gnu.org>
17048
17049 * testsuite/libgomp.c++/c++.exp: Append multilib library path.
17050 * testsuite/libgomp.fortran/fortran.exp: Same.
17051 * testsuite/libgomp.c/c.exp: Same.
17052 * testsuite/lib/libgomp.exp: Append AIX libgcc pthread multilib
17053 directory to library path first.
17054
17055 2008-06-29 Krister Walfridsson <krister.walfridsson@gmail.com>
17056
17057 * env.c (parse_stacksize): Add cast to avoid warning.
17058 (parse_spincount): Likewise.
17059
17060 2008-06-27 Jakub Jelinek <jakub@redhat.com>
17061
17062 * testsuite/libgomp.c/loop-10.c: New test.
17063 * libgomp.c/loop-3.c (main): Add lastprivate clause.
17064 * libgomp.c++/loop-6.C (main): Likewise.
17065
17066 PR debug/36617
17067 * testsuite/libgomp.c/debug-1.c: New test.
17068
17069 2008-06-19 Jakub Jelinek <jakub@redhat.com>
17070
17071 * testsuite/libgomp.c/nqueens-1.c: New test.
17072
17073 PR c++/36523
17074 * testsuite/libgomp.c++/task-7.C: New function.
17075
17076 2008-06-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
17077
17078 * configure: Regenerate.
17079
17080 2008-06-15 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
17081
17082 * env.c (initialize_env): Always initialize gomp_remaining_threads_lock
17083 mutex when HAVE_SYNC_BUILTINS isn't defined.
17084
17085 2008-06-15 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
17086
17087 * libgomp.texi (omp_test_lock): Fix typo.
17088
17089 2008-06-12 Tobias Burnus <burnus@net-b.de>
17090
17091 * omp_lib.f90.in: Add "implicit none".
17092
17093 2008-06-12 Jakub Jelinek <jakub@redhat.com>
17094
17095 PR middle-end/36506
17096 * testsuite/libgomp.c/reduction-5.c: New test.
17097
17098 2008-06-11 Jakub Jelinek <jakub@redhat.com>
17099
17100 * libgomp.h (struct gomp_task): Add in_tied_task field.
17101 * task.c (gomp_init_task): Initialize it.
17102 (GOMP_task): Likewise. Call gomp_team_barrier_set_task_pending
17103 unconditionally. Don't call gomp_team_barrier_wake if
17104 current task is implicit or if(0) from implicit and number of
17105 running tasks is equal to nthreads - 1.
17106
17107 PR libgomp/36471
17108 * omp_lib.f90.in (omp_get_ancestor_thread_num_8,
17109 omp_get_team_size_8): Fix pastos.
17110
17111 PR libgomp/36469
17112 * configure.ac: Add AC_CHECK_FUNCS (strtoull).
17113 * configure: Regenerated.
17114 * config.h.in: Regenerated.
17115 * env.c (strtoull): Define to strtoul if HAVE_STRTOULL is not
17116 defined.
17117
17118 2008-06-06 Andreas Tobler <a.tobler@schweiz.org>
17119
17120 PR bootstrap/36452
17121 * loop_ull.c (GOMP_loop_ull_static_start): Adjust API.
17122 (GOMP_loop_ull_dynamic_start): Likewise.
17123 (GOMP_loop_ull_guided_start): Likewise.
17124 (GOMP_loop_ull_ordered_static_start): Likewise.
17125 (GOMP_loop_ull_ordered_dynamic_start): Likewise.
17126 (GOMP_loop_ull_ordered_guided_start): Likewise.
17127
17128 2008-06-06 Jakub Jelinek <jakub@redhat.com>
17129 Richard Henderson <rth@redhat.com>
17130 Ulrich Drepper <drepper@redhat.com>
17131 Jakob Blomer <jakob.blomer@ira.uka.de>
17132
17133 * configure.ac (LIBGOMP_GNU_SYMBOL_VERSIONING): New AC_DEFINE.
17134 Substitute also OMP_*LOCK_25*.
17135 * configure: Regenerated.
17136 * config.h.in: Regenerated.
17137 * Makefile.am (libgomp_la_SOURCES): Add loop_ull.c, iter_ull.c,
17138 ptrlock.c and task.c.
17139 * Makefile.in: Regenerated.
17140 * testsuite/Makefile.in: Regenerated.
17141 * task.c: New file.
17142 * loop_ull.c: New file.
17143 * iter_ull.c: New file.
17144 * libgomp.h: Include ptrlock.h.
17145 (enum gomp_task_kind): New type.
17146 (struct gomp_team): Add task_lock, task_queue, task_count,
17147 task_running_count, single_count fields. Add
17148 work_share_list_free_lock ifndef HAVE_SYNC_BUILTINS.
17149 Remove work_share_lock, generation_mask,
17150 oldest_live_gen, num_live_gen and init_work_shares fields, add
17151 work work_share_list_alloc, work_share_list_free and work_share_chunk
17152 fields. Change work_shares from pointer to pointers into an array.
17153 Change ordered_release field into gomp_sem_t ** from flexible array
17154 member. Add implicit_task and initial_work_shares fields.
17155 Move close to the end of the struct.
17156 (struct gomp_team_state): Add single_count, last_work_share,
17157 active_level and level fields, remove work_share_generation.
17158 (gomp_barrier_handle_tasks): New prototype.
17159 (gomp_finish_task): New inline function.
17160 (struct gomp_work_share): Move chunk_size, end, incr into
17161 transparent union/struct, add chunk_size_ull, end_ll, incr_ll and
17162 next_ll fields. Reshuffle fields. Add next_alloc,
17163 next_ws, next_free and inline_ordered_team_ids fields, change
17164 ordered_team_ids into pointer from flexible array member.
17165 Add mode field. Put lock and next into a different cache line
17166 from most of the write-once fields.
17167 (gomp_iter_ull_static_next, gomp_iter_ull_dynamic_next_locked,
17168 gomp_iter_ull_guided_next_locked, gomp_iter_ull_dynamic_next,
17169 gomp_iter_ull_guided_next): New prototypes.
17170 (gomp_new_icv): New prototype.
17171 (struct gomp_thread): Add thread_pool and task fields.
17172 (struct gomp_thread_pool): New type.
17173 (gomp_new_team): New prototype.
17174 (gomp_team_start): Change type of last argument.
17175 (gomp_new_work_share): Removed.
17176 (gomp_init_work_share, gomp_fini_work_share): New prototypes.
17177 (gomp_work_share_init_done): New static inline.
17178 (gomp_throttled_spin_count_var, gomp_available_cpus,
17179 gomp_managed_threads): New extern decls.
17180 (gomp_init_task): New prototype.
17181 (gomp_spin_count_var): New extern var decl.
17182 (LIBGOMP_GNU_SYMBOL_VERSIONING): Undef if no visibility
17183 or no alias support, or if not PIC.
17184 (gomp_init_lock_30, gomp_destroy_lock_30, gomp_set_lock_30,
17185 gomp_unset_lock_30, gomp_test_lock_30, gomp_init_nest_lock_30,
17186 gomp_destroy_nest_lock_30, gomp_set_nest_lock_30,
17187 gomp_unset_nest_lock_30, gomp_test_nest_lock_30, gomp_init_lock_25,
17188 gomp_destroy_lock_25, gomp_set_lock_25, gomp_unset_lock_25,
17189 gomp_test_lock_25, gomp_init_nest_lock_25, gomp_destroy_nest_lock_25,
17190 gomp_set_nest_lock_25, gomp_unset_nest_lock_25,
17191 gomp_test_nest_lock_25): New prototypes.
17192 (omp_lock_symver, strong_alias): Define.
17193 (gomp_remaining_threads_count, gomp_remaining_threads_lock): New
17194 decls.
17195 (gomp_end_task): New.
17196 (struct gomp_task_icv, gomp_global_icv): New.
17197 (gomp_thread_limit_var, gomp_max_active_levels_var): New.
17198 (struct gomp_task): New.
17199 (gomp_nthreads_var, gomp_dyn_var, gomp_nest_var,
17200 gomp_run_sched_var, gomp_run_sched_chunk): Remove.
17201 (gomp_icv): New.
17202 (gomp_schedule_type): Reorder enum to match
17203 omp_sched_t.
17204 * team.c (struct gomp_thread_start_data): Add thread_pool and task
17205 fields.
17206 (gomp_thread_start): Add gomp_team_barrier_wait call.
17207 For non-nested case remove clearing of docked thread thr fields.
17208 Use pool fields instead of global gomp_* variables. Use
17209 gomp_barrier_wait_last when needed. Initialize ts.active_level.
17210 Create tasks for each member thread.
17211 (free_team): Only destroy team barrier, task_lock here and free it.
17212 (gomp_free_thread): Free last_team if non-NULL.
17213 (gomp_team_end): Call gomp_team_barrier_wait instead of
17214 gomp_barrier_wait. For nested case call one extra
17215 gomp_barrier_wait. Move here some destruction from free_team.
17216 Call free_team on pool->last_team if any, rather than freeing
17217 current team. Destroy work_share_list_free_lock ifndef
17218 HAVE_SYNC_BUILTINS.
17219 (gomp_new_icv): New function.
17220 (gomp_threads, gomp_threads_size, gomp_threads_used,
17221 gomp_threads_dock): Removed.
17222 (gomp_thread_destructor): New variable.
17223 (gomp_new_thread_pool, gomp_free_pool_helper, gomp_free_thread): New
17224 functions.
17225 (gomp_team_start): Create new pool if current thread doesn't have
17226 one. Use pool fields instead of global gomp_* variables.
17227 Initialize thread_pool field for new threads. Clear single_count.
17228 Change last argument from ws to team, don't create
17229 new team, set ts.work_share to &team->work_shares[0] and clear
17230 ts.last_work_share. Don't clear ts.work_share_generation.
17231 If number of threads changed, adjust atomically gomp_managed_threads.
17232 Use gomp_init_task instead of gomp_new_task,
17233 set thr->task to the corresponding implicit_task array entry.
17234 Create tasks for each member thread. Initialize ts.level.
17235 (initialize_team): Call pthread_key_create on
17236 gomp_thread_destructor.
17237 (team_destructor): New function.
17238 (new_team): Removed.
17239 (gomp_new_team): New function.
17240 (free_team): Free gomp_work_share blocks chained through next_alloc,
17241 instead of freeing work_shares and destroying work_share_lock.
17242 (gomp_team_end): Call gomp_fini_work_share. If number of threads
17243 changed, adjust atomically gomp_managed_threads. Use gomp_end_task.
17244 * barrier.c (GOMP_barrier): Call gomp_team_barrier_wait instead
17245 of gomp_barrier_wait.
17246 * single.c (GOMP_single_copy_start): Call gomp_team_barrier_wait
17247 instead of gomp_barrier_wait. Call gomp_work_share_init_done
17248 if gomp_work_share_start returned true. Don't unlock ws->lock.
17249 (GOMP_single_copy_end): Call gomp_team_barrier_wait instead
17250 of gomp_barrier_wait.
17251 (GOMP_single_start): Rewritten if HAVE_SYNC_BUILTINS. Call
17252 gomp_work_share_init_done if gomp_work_share_start returned true.
17253 Don't unlock ws->lock.
17254 * work.c: Include stddef.h.
17255 (free_work_share): Use work_share_list_free_lock instead
17256 of atomic chaining ifndef HAVE_SYNC_BUILTINS. Add team argument.
17257 Call gomp_fini_work_share and then either free ws if orphaned, or
17258 put it into work_share_list_free list of the current team.
17259 (alloc_work_share, gomp_init_work_share, gomp_fini_work_share): New
17260 functions.
17261 (gomp_work_share_start, gomp_work_share_end,
17262 gomp_work_share_end_nowait): Rewritten.
17263 * omp_lib.f90.in Change some tabs to spaces to prevent warnings.
17264 (openmp_version): Set to 200805.
17265 (omp_sched_kind, omp_sched_static, omp_sched_dynamic,
17266 omp_sched_guided, omp_sched_auto): New parameters.
17267 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
17268 omp_set_max_active_levels, omp_get_max_active_levels,
17269 omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
17270 omp_get_active_level): New interfaces.
17271 * omp_lib.h.in (openmp_version): Set to 200805.
17272 (omp_sched_kind, omp_sched_static, omp_sched_dynamic,
17273 omp_sched_guided, omp_sched_auto): New parameters.
17274 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
17275 omp_set_max_active_levels, omp_get_max_active_levels,
17276 omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
17277 omp_get_active_level): New externals.
17278 * loop.c: Include limits.h.
17279 (GOMP_loop_runtime_next, GOMP_loop_ordered_runtime_next): Handle
17280 GFS_AUTO.
17281 (GOMP_loop_runtime_start, GOMP_loop_ordered_runtime_start):
17282 Likewise. Use gomp_icv.
17283 (gomp_loop_static_start, gomp_loop_dynamic_start): Clear
17284 ts.static_trip here.
17285 (gomp_loop_static_start, gomp_loop_ordered_static_start): Call
17286 gomp_work_share_init_done after gomp_loop_init. Don't unlock ws->lock.
17287 (gomp_loop_dynamic_start, gomp_loop_guided_start): Call
17288 gomp_work_share_init_done after gomp_loop_init. If HAVE_SYNC_BUILTINS,
17289 don't unlock ws->lock, otherwise lock it.
17290 (gomp_loop_ordered_dynamic_start, gomp_loop_ordered_guided_start): Call
17291 gomp_work_share_init_done after gomp_loop_init. Lock ws->lock.
17292 (gomp_parallel_loop_start): Call gomp_new_team instead of
17293 gomp_new_work_share. Call gomp_loop_init on &team->work_shares[0].
17294 Adjust gomp_team_start caller. Pass 0 as second argument to
17295 gomp_resolve_num_threads.
17296 (gomp_loop_init): For GFS_DYNAMIC, multiply ws->chunk_size by incr.
17297 If adding ws->chunk_size nthreads + 1 times after end won't
17298 overflow, set ws->mode to 1.
17299 * libgomp_g.h (GOMP_loop_ull_static_start, GOMP_loop_ull_dynamic_start,
17300 GOMP_loop_ull_guided_start, GOMP_loop_ull_runtime_start,
17301 GOMP_loop_ull_ordered_static_start,
17302 GOMP_loop_ull_ordered_dynamic_start,
17303 GOMP_loop_ull_ordered_guided_start,
17304 GOMP_loop_ull_ordered_runtime_start, GOMP_loop_ull_static_next,
17305 GOMP_loop_ull_dynamic_next, GOMP_loop_ull_guided_next,
17306 GOMP_loop_ull_runtime_next, GOMP_loop_ull_ordered_static_next,
17307 GOMP_loop_ull_ordered_dynamic_next, GOMP_loop_ull_ordered_guided_next,
17308 GOMP_loop_ull_ordered_runtime_next, GOMP_task, GOMP_taskwait): New
17309 prototypes.
17310 * libgomp.map: Export lock routines also @@OMP_2.0.
17311 (GOMP_loop_ordered_dynamic_first,
17312 GOMP_loop_ordered_guided_first, GOMP_loop_ordered_runtime_first,
17313 GOMP_loop_ordered_static_first): Remove.
17314 (GOMP_loop_ull_dynamic_next, GOMP_loop_ull_dynamic_start,
17315 GOMP_loop_ull_guided_next, GOMP_loop_ull_guided_start,
17316 GOMP_loop_ull_ordered_dynamic_next,
17317 GOMP_loop_ull_ordered_dynamic_start,
17318 GOMP_loop_ull_ordered_guided_next,
17319 GOMP_loop_ull_ordered_guided_start,
17320 GOMP_loop_ull_ordered_runtime_next,
17321 GOMP_loop_ull_ordered_runtime_start,
17322 GOMP_loop_ull_ordered_static_next,
17323 GOMP_loop_ull_ordered_static_start,
17324 GOMP_loop_ull_runtime_next, GOMP_loop_ull_runtime_start,
17325 GOMP_loop_ull_static_next, GOMP_loop_ull_static_start,
17326 GOMP_task, GOMP_taskwait): Export @@GOMP_2.0.
17327 (omp_set_schedule, omp_get_schedule,
17328 omp_get_thread_limit, omp_set_max_active_levels,
17329 omp_get_max_active_levels, omp_get_level,
17330 omp_get_ancestor_thread_num, omp_get_team_size, omp_get_active_level,
17331 omp_set_schedule_, omp_set_schedule_8_,
17332 omp_get_schedule_, omp_get_schedule_8_, omp_get_thread_limit_,
17333 omp_set_max_active_levels_, omp_set_max_active_levels_8_,
17334 omp_get_max_active_levels_, omp_get_level_,
17335 omp_get_ancestor_thread_num_, omp_get_ancestor_thread_num_8_,
17336 omp_get_team_size_, omp_get_team_size_8_, omp_get_active_level_):
17337 New exports @@OMP_3.0.
17338 * omp.h.in (omp_sched_t): New type.
17339 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
17340 omp_set_max_active_levels, omp_get_max_active_levels,
17341 omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
17342 omp_get_active_level): New prototypes.
17343 * env.c (gomp_spin_count_var, gomp_throttled_spin_count_var,
17344 gomp_available_cpus, gomp_managed_threads, gomp_max_active_levels_var,
17345 gomp_thread_limit_var, gomp_remaining_threads_count,
17346 gomp_remaining_threads_lock): New variables.
17347 (parse_spincount): New function.
17348 (initialize_env): Call gomp_init_num_threads unconditionally.
17349 Initialize gomp_available_cpus. Call parse_spincount,
17350 initialize gomp_{,throttled_}spin_count_var
17351 depending on presence and value of OMP_WAIT_POLICY and
17352 GOMP_SPINCOUNT env vars. Handle GOMP_BLOCKTIME env var.
17353 Handle OMP_WAIT_POLICY, OMP_MAX_ACTIVE_LEVELS,
17354 OMP_THREAD_LIMIT, OMP_STACKSIZE env vars. Handle unit specification
17355 for GOMP_STACKSIZE. Initialize gomp_remaining_threads_count and
17356 gomp_remaining_threads_lock if needed. Use gomp_global_icv.
17357 (gomp_nthreads_var, gomp_dyn_var, gomp_nest_var,
17358 gomp_run_sched_var, gomp_run_sched_chunk): Remove.
17359 (gomp_global_icv): New.
17360 (parse_schedule): Use it. Parse "auto".
17361 (omp_set_num_threads): Use gomp_icv.
17362 (omp_set_dynamic, omp_get_dynamic, omp_set_nested, omp_get_nested):
17363 Likewise.
17364 (omp_get_max_threads): Move from parallel.c.
17365 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
17366 omp_set_max_active_levels, omp_get_max_active_levels): New functions,
17367 add ialias.
17368 (parse_stacksize, parse_wait_policy): New functions.
17369 * fortran.c: Rewrite lock wrappers, if symbol versioning provide
17370 both wrappers for compatibility and new locks.
17371 (omp_set_schedule, omp_get_schedule,
17372 omp_get_thread_limit, omp_set_max_active_levels,
17373 omp_get_max_active_levels, omp_get_level,
17374 omp_get_ancestor_thread_num, omp_get_team_size,
17375 omp_get_active_level): New ialias_redirect.
17376 (omp_set_schedule_, omp_set_schedule_8_,
17377 omp_get_schedule_, omp_get_schedule_8_, omp_get_thread_limit_,
17378 omp_set_max_active_levels_, omp_set_max_active_levels_8_,
17379 omp_get_max_active_levels_, omp_get_level_,
17380 omp_get_ancestor_thread_num_, omp_get_ancestor_thread_num_8_,
17381 omp_get_team_size_, omp_get_team_size_8_, omp_get_active_level_):
17382 New functions.
17383 * parallel.c: Include limits.h.
17384 (gomp_resolve_num_threads): Add count argument. Rewritten.
17385 (GOMP_parallel_start): Call gomp_new_team and pass that as last
17386 argument to gomp_team_start. Pass 0 as second argument to
17387 gomp_resolve_num_threads.
17388 (GOMP_parallel_end): Decrease gomp_remaining_threads_count
17389 if gomp_thread_limit_var != ULONG_MAX.
17390 (omp_in_parallel): Implement using ts.active_level.
17391 (omp_get_max_threads): Move to env.c.
17392 (omp_get_level, omp_get_ancestor_thread_num,
17393 omp_get_team_size, omp_get_active_level): New functions,
17394 add ialias.
17395 * sections.c (GOMP_sections_start): Call gomp_work_share_init_done
17396 after gomp_sections_init. If HAVE_SYNC_BUILTINS, call
17397 gomp_iter_dynamic_next instead of the _locked variant and don't take
17398 lock around it, otherwise acquire it before calling
17399 gomp_iter_dynamic_next_locked.
17400 (GOMP_sections_next): If HAVE_SYNC_BUILTINS, call
17401 gomp_iter_dynamic_next instead of the _locked variant and don't take
17402 lock around it.
17403 (GOMP_parallel_sections_start): Call gomp_new_team instead of
17404 gomp_new_work_share. Call gomp_sections_init on &team->work_shares[0].
17405 Adjust gomp_team_start caller. Pass count as second argument to
17406 gomp_resolve_num_threads, don't adjust num_threads after the call.
17407 Use gomp_icv.
17408 * iter.c (gomp_iter_dynamic_next_locked): Don't multiply
17409 ws->chunk_size by incr.
17410 (gomp_iter_dynamic_next): Likewise. If ws->mode, use more efficient
17411 code.
17412 * libgomp_f.h.in (omp_lock_25_arg_t, omp_nest_lock_25_arg_t): New
17413 types.
17414 (omp_lock_25_arg, omp_nest_lock_25_arg): New macros.
17415 (omp_check_defines): Check even the compat defines.
17416 * config/linux/ptrlock.c: New file.
17417 * config/linux/ptrlock.h: New file.
17418 * config/linux/wait.h: New file.
17419 * config/posix/ptrlock.c: New file.
17420 * config/posix/ptrlock.h: New file.
17421 * config/linux/bar.h (gomp_team_barrier_wait,
17422 gomp_team_barrier_wait_end, gomp_team_barrier_wake): New prototypes.
17423 (gomp_team_barrier_set_task_pending,
17424 gomp_team_barrier_clear_task_pending,
17425 gomp_team_barrier_set_waiting_for_tasks,
17426 gomp_team_barrier_waiting_for_tasks,
17427 gomp_team_barrier_done): New inlines.
17428 (gomp_barrier_t): Rewritten.
17429 (gomp_barrier_state_t): New typedef.
17430 (gomp_barrier_init, gomp_barrier_reinit, gomp_barrier_destroy,
17431 gomp_barrier_wait_start): Rewritten.
17432 (gomp_barrier_wait_end): Change second argument to
17433 gomp_barrier_state_t.
17434 (gomp_barrier_last_thread, gomp_barrier_wait_last): New static
17435 inlines.
17436 * config/linux/bar.c: Include wait.h instead of libgomp.h and
17437 futex.h.
17438 (gomp_barrier_wait_end): Rewritten.
17439 (gomp_team_barrier_wait, gomp_team_barrier_wait_end,
17440 gomp_team_barrier_wake, gomp_barrier_wait_last): New functions.
17441 * config/posix/bar.h (gomp_barrier_t): Add generation field.
17442 (gomp_barrier_state_t): New typedef.
17443 (gomp_team_barrier_wait,
17444 gomp_team_barrier_wait_end, gomp_team_barrier_wake): New prototypes.
17445 (gomp_barrier_wait_start): Or all but low 2 bits from generation
17446 into the return value. Return gomp_barrier_state_t.
17447 (gomp_team_barrier_set_task_pending,
17448 gomp_team_barrier_clear_task_pending,
17449 gomp_team_barrier_set_waiting_for_tasks,
17450 gomp_team_barrier_waiting_for_tasks,
17451 gomp_team_barrier_done): New inlines.
17452 (gomp_barrier_wait_end): Change second argument to
17453 gomp_barrier_state_t.
17454 (gomp_barrier_last_thread, gomp_barrier_wait_last): New static
17455 inlines.
17456 * config/posix/bar.c (gomp_barrier_init): Clear generation field.
17457 (gomp_barrier_wait_end): Change second argument to
17458 gomp_barrier_state_t.
17459 (gomp_team_barrier_wait, gomp_team_barrier_wait_end,
17460 gomp_team_barrier_wake): New functions.
17461 * config/linux/mutex.c: Include wait.h instead of libgomp.h and
17462 futex.h.
17463 (gomp_futex_wake, gomp_futex_wait): New variables.
17464 (gomp_mutex_lock_slow): Call do_wait instead of futex_wait.
17465 * config/linux/lock.c: Rewrite to make locks task owned,
17466 for backwards compatibility provide the old entrypoints
17467 if symbol versioning. Include wait.h instead of libgomp.h and
17468 futex.h.
17469 (gomp_set_nest_lock_25): Call do_wait instead of futex_wait.
17470 * config/posix95/lock.c: Rewrite to make locks task owned,
17471 for backwards compatibility provide the old entrypoints
17472 if symbol versioning.
17473 * config/posix/lock.c: Rewrite to make locks task owned,
17474 for backwards compatibility provide the old entrypoints
17475 if symbol versioning.
17476 * config/linux/proc.c (gomp_init_num_threads): Use gomp_global_icv.
17477 (get_num_procs, gomp_dynamic_max_threads): Use gomp_icv.
17478 * config/posix/proc.c, config/mingw32/proc.c: Similarly.
17479 * config/linux/powerpc/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
17480 (sys_futex0): Return error code.
17481 (futex_wake, futex_wait): If ENOSYS was returned, clear
17482 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
17483 (cpu_relax, atomic_write_barrier): New static inlines.
17484 * config/linux/alpha/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
17485 (futex_wake, futex_wait): If ENOSYS was returned, clear
17486 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
17487 (cpu_relax, atomic_write_barrier): New static inlines.
17488 * config/linux/x86/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/s390/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
17494 (sys_futex0): Return error code.
17495 (futex_wake, futex_wait): If ENOSYS was returned, clear
17496 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
17497 (cpu_relax, atomic_write_barrier): New static inlines.
17498 * config/linux/ia64/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
17499 (sys_futex0): Return error code.
17500 (futex_wake, futex_wait): If ENOSYS was returned, clear
17501 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
17502 (cpu_relax, atomic_write_barrier): New static inlines.
17503 * config/linux/sparc/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
17504 (sys_futex0): Return error code.
17505 (futex_wake, futex_wait): If ENOSYS was returned, clear
17506 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
17507 (cpu_relax, atomic_write_barrier): New static inlines.
17508 * config/linux/sem.c: Include wait.h instead of libgomp.h and
17509 futex.h.
17510 (gomp_sem_wait_slow): Call do_wait instead of futex_wait.
17511 * config/linux/affinity.c: Assume HAVE_SYNC_BUILTINS.
17512 * config/linux/omp-lock.h (omp_lock_25_t, omp_nest_lock_25_t): New
17513 types.
17514 (omp_nest_lock_t): Change owner into void *, add lock field.
17515 * config/posix95/omp-lock.h: Include semaphore.h.
17516 (omp_lock_25_t, omp_nest_lock_25_t): New types.
17517 (omp_lock_t): Use sem_t instead of mutex if semaphores
17518 aren't broken.
17519 (omp_nest_lock_t): Likewise. Change owner to void *.
17520 * config/posix/omp-lock.h: Include semaphore.h.
17521 (omp_lock_25_t, omp_nest_lock_25_t): New types.
17522 (omp_lock_t): Use sem_t instead of mutex if semaphores
17523 aren't broken.
17524 (omp_nest_lock_t): Likewise. Add owner field.
17525
17526 2008-06-06 Jakub Jelinek <jakub@redhat.com>
17527
17528 * testsuite/libgomp.c/collapse-1.c: New test.
17529 * testsuite/libgomp.c/collapse-2.c: New test.
17530 * testsuite/libgomp.c/collapse-3.c: New test.
17531 * testsuite/libgomp.c/icv-1.c: New test.
17532 * testsuite/libgomp.c/icv-2.c: New test.
17533 * testsuite/libgomp.c/lib-2.c: New test.
17534 * testsuite/libgomp.c/lock-1.c: New test.
17535 * testsuite/libgomp.c/lock-2.c: New test.
17536 * testsuite/libgomp.c/lock-3.c: New test.
17537 * testsuite/libgomp.c/loop-4.c: New test.
17538 * testsuite/libgomp.c/loop-5.c: New test.
17539 * testsuite/libgomp.c/loop-6.c: New test.
17540 * testsuite/libgomp.c/loop-7.c: New test.
17541 * testsuite/libgomp.c/loop-8.c: New test.
17542 * testsuite/libgomp.c/loop-9.c: New test.
17543 * testsuite/libgomp.c/nested-3.c: New test.
17544 * testsuite/libgomp.c/nestedfn-6.c: New test.
17545 * testsuite/libgomp.c/sort-1.c: New test.
17546 * testsuite/libgomp.c/task-1.c: New test.
17547 * testsuite/libgomp.c/task-2.c: New test.
17548 * testsuite/libgomp.c/task-3.c: New test.
17549 * testsuite/libgomp.c/task-4.c: New test.
17550 * testsuite/libgomp.c++/c++.exp: Add libstdc++-v3 build includes
17551 to C++ testsuite default compiler options.
17552 * testsuite/libgomp.c++/collapse-1.C: New test.
17553 * testsuite/libgomp.c++/collapse-2.C: New test.
17554 * testsuite/libgomp.c++/ctor-10.C: New test.
17555 * testsuite/libgomp.c++/for-1.C: New test.
17556 * testsuite/libgomp.c++/for-2.C: New test.
17557 * testsuite/libgomp.c++/for-3.C: New test.
17558 * testsuite/libgomp.c++/for-4.C: New test.
17559 * testsuite/libgomp.c++/for-5.C: New test.
17560 * testsuite/libgomp.c++/loop-8.C: New test.
17561 * testsuite/libgomp.c++/loop-9.C: New test.
17562 * testsuite/libgomp.c++/loop-10.C: New test.
17563 * testsuite/libgomp.c++/task-1.C: New test.
17564 * testsuite/libgomp.c++/task-2.C: New test.
17565 * testsuite/libgomp.c++/task-3.C: New test.
17566 * testsuite/libgomp.c++/task-4.C: New test.
17567 * testsuite/libgomp.c++/task-5.C: New test.
17568 * testsuite/libgomp.c++/task-6.C: New test.
17569 * testsuite/libgomp.fortran/allocatable1.f90: New test.
17570 * testsuite/libgomp.fortran/allocatable2.f90: New test.
17571 * testsuite/libgomp.fortran/allocatable3.f90: New test.
17572 * testsuite/libgomp.fortran/allocatable4.f90: New test.
17573 * testsuite/libgomp.fortran/collapse1.f90: New test.
17574 * testsuite/libgomp.fortran/collapse2.f90: New test.
17575 * testsuite/libgomp.fortran/collapse3.f90: New test.
17576 * testsuite/libgomp.fortran/collapse4.f90: New test.
17577 * testsuite/libgomp.fortran/lastprivate1.f90: New test.
17578 * testsuite/libgomp.fortran/lastprivate2.f90: New test.
17579 * testsuite/libgomp.fortran/lib4.f90: New test.
17580 * testsuite/libgomp.fortran/lock-1.f90: New test.
17581 * testsuite/libgomp.fortran/lock-2.f90: New test.
17582 * testsuite/libgomp.fortran/nested1.f90: New test.
17583 * testsuite/libgomp.fortran/nestedfn4.f90: New test.
17584 * testsuite/libgomp.fortran/strassen.f90: New test.
17585 * testsuite/libgomp.fortran/tabs1.f90: New test.
17586 * testsuite/libgomp.fortran/tabs2.f: New test.
17587 * testsuite/libgomp.fortran/task1.f90: New test.
17588 * testsuite/libgomp.fortran/task2.f90: New test.
17589 * testsuite/libgomp.fortran/vla4.f90: Add dg-warning.
17590 * testsuite/libgomp.fortran/vla5.f90: Likewise.
17591 * testsuite/libgomp.c/pr26943-2.c: Likewise.
17592 * testsuite/libgomp.c/pr26943-3.c: Likewise.
17593 * testsuite/libgomp.c/pr26943-4.c: Likewise.
17594
17595 2008-05-23 Jakub Jelinek <jakub@redhat.com>
17596
17597 PR c++/36308
17598 * testsuite/libgomp.c++/ctor-11.C: New test.
17599 * testsuite/libgomp.c++/ctor-12.C: New test.
17600
17601 2008-05-15 Janis Johnson <janis187@us.ibm.com>
17602
17603 * testsuite/lib/libgomp.exp: Load torture-options.exp from gcc lib.
17604
17605 2008-05-07 Jakub Jelinek <jakub@redhat.com>
17606
17607 PR middle-end/36106
17608 * testsuite/libgomp.c/atomic-5.c: New test.
17609 * testsuite/libgomp.c/atomic-6.c: New test.
17610 * testsuite/libgomp.c/autopar-1.c: New test.
17611
17612 2008-04-21 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
17613
17614 * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS)
17615 (LIBGOMP_CHECK_ATTRIBUTE_VISIBILITY)
17616 (LIBGOMP_CHECK_ATTRIBUTE_DLLEXPORT)
17617 (LIBGOMP_CHECK_ATTRIBUTE_ALIAS): Fix cache variable names.
17618 * configure: Regenerate.
17619 * Makefile.in, testsuite/Makefile.in: Likewise.
17620
17621 2008-04-18 Paolo Bonzini <bonzini@gnu.org>
17622
17623 PR bootstrap/35457
17624 * aclocal.m4: Regenerate.
17625 * configure: Regenerate.
17626
17627 2008-03-18 Jakub Jelinek <jakub@redhat.com>
17628
17629 PR middle-end/35611
17630 * testsuite/libgomp.c/atomic-4.c: New test.
17631
17632 PR libgomp/35625
17633 * iter.c (gomp_iter_guided_next_locked): If q > n, set end to ws->end.
17634 (gomp_iter_guided_next): Likewise.
17635 * testsuite/libgomp.c/pr35625.c: New test.
17636
17637 2008-03-16 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
17638
17639 * aclocal.m4: Regenerate.
17640 * configure: Likewise.
17641 * Makefile.in: Likewise.
17642 * testsuite/Makefile.in: Likewise.
17643
17644 2008-03-13 Jakub Jelinek <jakub@redhat.com>
17645
17646 PR middle-end/35185
17647 * testsuite/libgomp.c++/pr35185.C: New test.
17648
17649 2008-03-12 Jakub Jelinek <jakub@redhat.com>
17650
17651 PR middle-end/35549
17652 * testsuite/libgomp.c/pr35549.c: New test.
17653
17654 2008-03-06 Jakub Jelinek <jakub@redhat.com>
17655
17656 * testsuite/libgomp.c/atomic-3.c: New test.
17657
17658 2008-03-03 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
17659
17660 PR fortran/33197
17661 * testsuite/libgomp.fortran/fortran.exp: Add .f08 and
17662 .F08 file suffixes.
17663
17664 2008-03-03 Peter O'Gorman <pogma@thewrittenword.com>
17665
17666 PR libgomp/33131
17667 * configure.ac: Add ACX_HEADER_STRING.
17668 * env.c: Include strings.h.
17669 * aclocal.m4: Regenerate.
17670 * config.h.in: Regenerate.
17671 * configure: Regenerate.
17672 * Makefile.in: Regenerate.
17673 * testsuite/Makefile.in: Regenerate.
17674
17675 2008-02-15 Jakub Jelinek <jakub@redhat.com>
17676
17677 PR middle-end/35196
17678 * testsuite/libgomp.c/pr35196.c: New test.
17679
17680 PR middle-end/35130
17681 * testsuite/libgomp.fortran/pr35130.f90: New test.
17682 * testsuite/libgomp.c/pr35130.c: New test.
17683
17684 2008-01-25 Jakub Jelinek <jakub@redhat.com>
17685
17686 PR middle-end/33880
17687 * testsuite/libgomp.c/pr33880.c: New test.
17688 * testsuite/libgomp.fortran/pr33880.f90: New test.
17689
17690 2008-01-24 David Edelsohn <edelsohn@gnu.org>
17691
17692 * configure: Regenerate.
17693
17694 2008-01-08 Jakub Jelinek <jakub@redhat.com>
17695
17696 * configure.ac: Move futex checking into ../config/futex.m4.
17697 * configure: Rebuilt.
17698 * aclocal.m4: Rebuilt.
17699 * Makefile.in: Rebuilt.
17700
17701 * configure.tgt: Rename have_tls to gcc_cv_have_tls to match
17702 2007-10-15 ../config/tls.m4 change.
17703
17704 2007-12-19 Jakub Jelinek <jakub@redhat.com>
17705
17706 PR c++/34513
17707 * testsuite/libgomp.c/pr34513.c: New test.
17708 * testsuite/libgomp.c++/pr34513.C: New test.
17709
17710 2007-12-17 Jack Howarth <howarth@bromo.med.uc.edu>
17711
17712 PR target/32765
17713 * testsuite/libgomp.fortran/crayptr2.f90: Move dg-options for darwin.
17714
17715 2007-12-04 Jakub Jelinek <jakub@redhat.com>
17716
17717 * omp.h.in (__GOMP_NOTHROW): Define. Use it on omp_* prototypes.
17718
17719 2007-12-03 Jakub Jelinek <jakub@redhat.com>
17720
17721 * testsuite/libgomp.c/private-1.c: New test.
17722
17723 2007-11-29 Andris Pavenis <andris.pavenis@iki.fi>
17724 Paolo Bonzini <bonzini@gnu.org>
17725
17726 * Makefile.am: Use space as vpath separator. Use 'vpath %'
17727 instead of 'VPATH ='.
17728 * Makefile.in: Regenerate.
17729
17730 2007-11-23 Matthias Klose <doko@ubuntu.com>
17731
17732 * configure.ac: Adjust makeinfo version check.
17733 * configure: Regenerate.
17734
17735 2007-11-10 Jakub Jelinek <jakub@redhat.com>
17736
17737 PR fortran/34020
17738 * testsuite/libgomp.fortran/pr34020.f90: New test.
17739
17740 2007-11-06 Jakub Jelinek <jakub@redhat.com>
17741
17742 PR c++/33894
17743 * testsuite/libgomp.c++/atomic-1.C: New test.
17744
17745 2007-10-25 Jakub Jelinek <jakub@redhat.com>
17746
17747 PR libgomp/33275
17748 * testsuite/libgomp.fortran/omp_parse3.f90 (test_threadprivate):
17749 Make x and y integers rather than (implicit) reals. Add private (j)
17750 clause to the last omp parallel.
17751
17752 2007-10-15 Maciej W. Rozycki <macro@linux-mips.org>
17753
17754 * configure: Regenerate following changes to ../config/tls.m4.
17755
17756 2007-09-28 Jakub Jelinek <jakub@redhat.com>
17757
17758 * testsuite/libgomp.fortran/stack.f90: New test.
17759
17760 2007-09-10 Danny Smith <dannysmith@users.sourceforge.net>
17761
17762 * config/mingw32/proc.c: New file.
17763
17764 2007-09-05 Uros Bizjak <ubizjak@gmail.com>
17765
17766 * testsuite/libgomp.c/atomic-1.c: Include cpuid.h for i386 targets.
17767 (main): Use __get_cpuid to get i386 target fetaures.
17768 * testsuite/libgomp.c/atomic-2.c: Include cpuid.h for x86_64 targets.
17769 (main): Use __get_cpuid to get x86_64 target fetaures.
17770
17771 2007-08-15 Jack Howarth <howarth@bromo.med.uc.edu>
17772
17773 PR target/32765
17774 * testsuite/libgomp.fortran/pr32550.f90: Use -static-libgcc on Darwin.
17775 * testsuite/libgomp.fortran/crayptr2.f90: Likwise.
17776
17777 2007-07-12 Jakub Jelinek <jakub@redhat.com>
17778
17779 PR fortran/32550
17780 * testsuite/libgomp.fortran/pr32550.f90: New test.
17781 * testsuite/libgomp.fortran/crayptr2.f90: New test.
17782
17783 2007-07-05 H.J. Lu <hongjiu.lu@intel.com>
17784
17785 * aclocal.m4: Regenerated.
17786
17787 2007-07-05 Tobias Burnus <burnus@net-b.de>
17788
17789 PR fortran/32359
17790 * testsuite/libgomp.fortran/pr32359.f90: New.
17791
17792 2007-07-02 Jakub Jelinek <jakub@redhat.com>
17793
17794 PR libgomp/32468
17795 * sections.c (GOMP_parallel_sections_start): Only decrease
17796 number of threads to COUNT if dyn_var is true.
17797 * testsuite/libgomp.c/pr32468.c: New test.
17798
17799 2007-07-02 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
17800
17801 PR libgomp/26308
17802 * config/posix/lock.c (_XOPEN_SOURCE): Don't define on Tru64 UNIX.
17803
17804 2007-06-21 Jakub Jelinek <jakub@redhat.com>
17805
17806 PR middle-end/32362
17807 * testsuite/libgomp.c/pr32362-1.c: New test.
17808 * testsuite/libgomp.c/pr32362-2.c: New test.
17809 * testsuite/libgomp.c/pr32362-3.c: New test.
17810
17811 2007-06-07 Jakub Jelinek <jakub@redhat.com>
17812
17813 * team.c (gomp_team_start): Fix setting up thread_attr
17814 stack size.
17815
17816 2007-06-02 Paolo Bonzini <bonzini@gnu.org>
17817
17818 * configure: Regenerate.
17819
17820 2007-05-23 Steve Ellcey <sje@cup.hp.com>
17821
17822 * Makefile.in: Regenerate.
17823 * configure: Regenerate.
17824 * aclocal.m4: Regenerate.
17825 * testsuite/Makefile.in: Regenerate.
17826
17827 2007-05-04 Jakub Jelinek <jakub@redhat.com>
17828
17829 * config/linux/proc.c: New file.
17830
17831 PR libgomp/28482
17832 * configure.tgt: Don't link with -Wl,-z,nodlopen even on Linux.
17833
17834 2007-04-19 Daniel Franke <franke.daniel@gmail.com>
17835
17836 * libgomp.texi (GOMP_CPU_AFFINITY): Updated.
17837
17838 2007-04-16 Matthias Klose <doko@debian.org>
17839
17840 * configure.tgt (i[456]86-*-linux*): Only add ia32 specific
17841 flags if not building with -m64.
17842 * testsuite/lib/libgomp-dg.exp (libgomp_init): Don't add -march
17843 flag for i?86-*-* targets, if current target matches -m64.
17844
17845 2007-04-14 Steve Ellcey <sje@cup.hp.com>
17846
17847 * Makefile.am: Add -I .. to ACLOCAL_AMFLAGS.
17848 * Makefile.in: Regenerate.
17849
17850 2007-04-07 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
17851
17852 PR testsuite/31369
17853 * testsuite/libgomp.c++/c++.exp: Don't use concat when setting
17854 ld_library_path.
17855 * testsuite/libgomp.fortran/fortran.exp: Likewise.
17856
17857 2007-04-04 Jakub Jelinek <jakub@redhat.com>
17858
17859 * libgomp.h (gomp_cpu_affinity, gomp_cpu_affinity_len): New extern
17860 decls.
17861 (gomp_init_affinity, gomp_init_thread_affinity): New prototypes.
17862 * env.c (gomp_cpu_affinity, gomp_cpu_affinity_len): New variables.
17863 (parse_affinity): New function.
17864 (initialize_env): Call it and gomp_init_affinity.
17865 * team.c (gomp_team_start): If gomp_cpu_affinity != NULL,
17866 create new pthread_attr_t and call gomp_init_thread_affinity
17867 on it for each thread before passing the attribute to pthread_create.
17868 * config/linux/affinity.c: New file.
17869 * config/posix/affinity.c: New file.
17870 * configure.ac (HAVE_PTHREAD_AFFINITY_NP): New test.
17871 * configure: Rebuilt.
17872 * config.h.in: Rebuilt.
17873 * Makefile.am (libgomp_la_SOURCES): Add affinity.c.
17874 * Makefile.in: Rebuilt.
17875
17876 2007-03-23 Andreas Tobler <a.tobler@schweiz.org>
17877
17878 * testsuite/lib/libgomp.exp (libgomp_init): Add -shared-libgcc for
17879 *-*-darwin*.
17880 * testsuite/libgomp.c++/c++.exp: Look for shared libstdc++ library
17881 and use it if found.
17882
17883 2007-03-18 Uros Bizjak <ubizjak@gmail.com>
17884
17885 * testsuite/config/default.exp: New file.
17886 * testsuite/lib/libgomp.exp: New file.
17887 * testsuite/lib/libgomp.dg (load_gcc_lib, libgomp_init,
17888 libgomp_target_compile, libgomp_option_help, libgomp_option_proc,
17889 load_lib *, load_gcc_lib *): Move to libgomp.exp.
17890 (libgomp_load): Remove.
17891 * testsuite/lib/libgomp.exp (libgomp_init): Compute
17892 always_ld_library_path, not ld_library_path. Set additional_flags
17893 to -march=i486 for ilp32 x86_64-*-* and i386-*-* targets.
17894 (target_compile): Do not call libgomp_init. Append lang_library_path
17895 and lang_link_flags to options.
17896 * testsuite/libgomp.c/c.exp: Set DEFAULT_FLAGS to -O2. Set
17897 ld_library_path from always_ld_library_path. Set LD_LIBRARY_PATH
17898 here.
17899 * testsuite/libgomp.c++/c++.exp: Set ld_library_path from
17900 always_ld_library_path. Set LD_LIBRARY_PATH here.
17901 * testsuite/libgomp.fortran/fortran.exp: Ditto.
17902 * testsuite/libgomp.c/atomic-1.c: Set dg-options to
17903 "-O2 -march=pentium" for ilp32 x86 targets. Simplify check for
17904 CX8 flag.
17905 * testsuite/libgomp.c/atomic-2.c: Set dg-options to "-O2 -mcx16" for
17906 lp64 x86 targets. Do not check for SSE3 bit. Do not define bit_SSE3.
17907 * testsuite/libgomp.c/pr29947-1.c: Remove default dg-options.
17908 * testsuite/libgomp.c/pr29947-1.c: Ditto.
17909 * testsuite/libgomp.c/atomic-10.c: Ditto.
17910
17911 2007-03-21 Jakub Jelinek <jakub@redhat.com>
17912
17913 * testsuite/libgomp.fortran/appendix-a/a.22.8.f90: Add
17914 dg-final cleanup-modules line.
17915 * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: Likewise.
17916 * testsuite/libgomp.fortran/appendix-a/a.31.5.f90: Likewise.
17917 * testsuite/libgomp.fortran/appendix-a/a.31.4.f90: Likewise.
17918 * testsuite/libgomp.fortran/threadprivate2.f90: Likewise.
17919 * testsuite/libgomp.fortran/reduction5.f90: Likewise.
17920 * testsuite/libgomp.fortran/threadprivate3.f90: Likewise.
17921 * testsuite/libgomp.fortran/threadprivate1.f90: Likewise.
17922
17923 2007-03-18 Andreas Schwab <schwab@suse.de>
17924
17925 * acinclude.m4: Adjust regular expression for ld version
17926 extraction.
17927 * configure: Regenerate.
17928
17929 2007-03-01 Brooks Moses <brooks.moses@codesourcery.com>
17930
17931 * Makefile.am: Add install-pdf target as copied from
17932 automake v1.10 rules.
17933 * Makefile.in: Regenerate
17934
17935 2007-02-07 Jakub Jelinek <jakub@redhat.com>
17936
17937 PR libgomp/28486
17938 * configure: Regenerate.
17939
17940 PR c++/30703
17941 * testsuite/libgomp.c++/pr30703.C: New test.
17942
17943 2007-02-02 Jakub Jelinek <jakub@redhat.com>
17944
17945 Revert:
17946 2006-07-05 Eric Christopher <echristo@apple.com>
17947 * configure.ac: Depend addition of -pthread on host OS.
17948 * configure: Regenerate.
17949
17950 2007-01-31 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
17951
17952 * libgomp.texi: Fix spacing after abbreviations.
17953
17954 2007-01-31 Daniel Franke <franke.daniel@gmail.com>
17955
17956 PR libgomp/30546
17957 * configure.ac: Add check for makeinfo
17958 * Makefile.am: Redefined target libgomp.info, build libgomp.info only
17959 if an appropriate version of makeinfo is found.
17960 * aclocal.m4: Regenerated.
17961 * configure: Regenerated.
17962 * Makefile.in: Regenerated.
17963 * testsuite/Makefile.in: Regenerated.
17964
17965 2007-01-29 Daniel Franke <franke.daniel@gmail.com>
17966
17967 PR libgomp/30540
17968 * libgomp.texi: More about implementation-dependent settings.
17969
17970 2007-01-26 Tobias Burnus <burnus@net-b.de>
17971
17972 * testsuite/libgomp.fortran/fortran.exp: Support .f03 extension.
17973
17974 2007-01-24 Jakub Jelinek <jakub@redhat.com>
17975
17976 PR middle-end/30494
17977 * testsuite/libgomp.c/pr30494.c: New test.
17978
17979 2007-01-15 Tom Tromey <tromey@redhat.com>
17980
17981 * configure: Rebuilt.
17982 * configure.ac: Fixed comment.
17983
17984 2007-01-14 Daniel Franke <franke.daniel@gmail.com>
17985
17986 * libgomp.texi: Document implementation specific default values of
17987 environment variables.
17988
17989 2006-12-21 Daniel Franke <franke.daniel@gmail.com>
17990
17991 PR libgomp/28209
17992 * libgomp.texi: New file.
17993 * configure.ac: Add --enable-generated-files-in-srcdir option.
17994 * Makefile.am: Add info, dvi, pdf, html targets. On request, copy
17995 files to srcdir.
17996 * Makefile.in: Regenerated.
17997 * config.h.in: Regenerated.
17998 * testsuite/Makefile.in: Regenerated.
17999 * NOTES: Removed.
18000
18001 2006-12-04 Daniel Franke <franke.daniel@gmail.com>
18002
18003 PR libgomp/29949
18004 * env.c (omp_set_num_threads): Set illegal thread count to 1.
18005
18006 2006-12-04 Eric Botcazou <ebotcazou@libertysurf.fr>
18007
18008 * configure: Regenerate.
18009
18010 2006-12-04 Jakub Jelinek <jakub@redhat.com>
18011
18012 PR libgomp/29947
18013 * loop.c (gomp_loop_init): Make parameters signed. Set ws->end to
18014 start if there shouldn't be any loop iterations.
18015 (gomp_loop_ordered_static_start): Remove start == end test.
18016 * testsuite/libgomp.c/pr29947-1.c: New test.
18017 * testsuite/libgomp.c/pr29947-2.c: New test.
18018
18019 2006-12-02 Eric Botcazou <ebotcazou@libertysurf.fr>
18020
18021 * configure.tgt: Force initial-exec TLS model on Linux only.
18022
18023 2006-11-13 Daniel Jacobowitz <dan@codesourcery.com>
18024
18025 * configure: Regenerated.
18026
18027 2006-11-09 Uros Bizjak <ubizjak@gmail.com>
18028
18029 * env.c (parse_schedule): Reject out of range values.
18030 (parse_unsigned_long): Reject out of range, negative or zero values.
18031
18032 2006-10-29 Jakub Jelinek <jakub@redhat.com>
18033
18034 PR fortran/29629
18035 * testsuite/libgomp.fortran/pr29629.f90: New test.
18036
18037 2006-10-24 Eric Botcazou <ebotcazou@libertysurf.fr>
18038
18039 PR libgomp/29494
18040 * configure.tgt: Use posix95 configuration for Solaris 2.5.1 and 2.6.
18041 * config/posix95: New directory.
18042 * config/posix95/omp-lock.h: New file.
18043 * config/posix95/lock.c: Likewise.
18044
18045 2006-10-14 Geoffrey Keating <geoffk@apple.com>
18046
18047 * aclocal.m4: Regenerate.
18048 * configure: Regenerate.
18049
18050 2006-10-05 Danny Smith <dannysmith@users.sourceforge.net>
18051
18052 * testsuite/libgomp.c/barrier-1.c: Change timestamp tests from
18053 '<' to '<='.
18054
18055 2006-10-05 Danny Smith <dannysmith@users.sourceforge.net>
18056
18057 * acinclude.m4 (HAVE_ATTRIBUTE_ALIAS): Remove __USER_LABEL_PREFIX__ from
18058 test.
18059 * configure: Regenerate.
18060 * fortran.c (ialias_redirect): Add __USER_LABEL_PREFIX__ to alias.
18061
18062 2006-09-26 Jakub Jelinek <jakub@redhat.com>
18063
18064 PR middle-end/25261
18065 PR middle-end/28790
18066 * testsuite/libgomp.c/nestedfn-4.c: New test.
18067 * testsuite/libgomp.c/nestedfn-5.c: New test.
18068 * testsuite/libgomp.fortran/nestedfn3.f90: New test.
18069
18070 PR fortran/29097
18071 * testsuite/libgomp.fortran/condinc1.f: New test.
18072 * testsuite/libgomp.fortran/condinc2.f: New test.
18073 * testsuite/libgomp.fortran/condinc3.f90: New test.
18074 * testsuite/libgomp.fortran/condinc4.f90: New test.
18075 * testsuite/libgomp.fortran/condinc1.inc: New file.
18076
18077 2006-09-18 Tom Tromey <tromey@redhat.com>
18078
18079 * configure: Rebuilt.
18080
18081 2006-09-13 Joseph S. Myers <joseph@codesourcery.com>
18082
18083 PR c/28768
18084 PR preprocessor/14634
18085 * configure.ac (HAVE_CLOCK_GETTIME): Add missing second argument
18086 to AC_DEFINE.
18087 * configure: Regenerate.
18088
18089 2006-09-08 Steven G. Kargl <kargl@gcc.gnu.org>
18090
18091 * testsuite/libgomp.fortran/reduction3.f90: Change
18092 -2147483648 to -huge(i)-1 to avoid overflow.
18093 * testsuite/libgomp.fortran/reduction4.f90: Change
18094 Z'ffffffff' to not(0) to avoid overflow.
18095
18096 2006-08-26 Joseph S. Myers <joseph@codesourcery.com>
18097
18098 PR libgomp/25938
18099 * Makefile.am (libsubincludedir): New.
18100 (nodist_include_HEADERS): Rename to nodist_libsubinclude_HEADERS.
18101 * Makefile.in: Regenerate.
18102
18103 2006-08-17 Jakub Jelinek <jakub@redhat.com>
18104
18105 PR libgomp/28725
18106 * env.c: Include ctype.h.
18107 (parse_schedule, parse_unsigned_long, parse_boolean): Allow
18108 leading and/or trailing whitespace and compare strings case
18109 insensitively.
18110
18111 2006-07-16 Jakub Jelinek <jakub@redhat.com>
18112
18113 PR fortran/28390
18114 * testsuite/libgomp.fortran/pr28390.f: New test.
18115
18116 2006-07-05 Eric Christopher <echristo@apple.com>
18117
18118 * configure.ac: Depend addition of -pthread on host OS.
18119 * configure: Regenerate.
18120
18121 2006-06-21 Jakub Jelinek <jakub@redhat.com>
18122
18123 * critical.c (GOMP_critical_name_start): Fix *pptr initialization
18124 when gomp_mutex_t is larger than pointer and HAVE_SYNC_BUILTINS is
18125 defined.
18126
18127 2006-06-20 Jakub Jelinek <jakub@redhat.com>
18128
18129 PR libgomp/26175
18130 PR libgomp/26477
18131 * configure.ac: If neither --enable-linux-futex nor
18132 --disable-linux-futex is passed, determine the default by checking
18133 for compiling and/or running against NPTL. With --enable-linux-futex,
18134 check if SYS_gettid and SYS_futex are defined.
18135 * configure: Rebuilt.
18136
18137 2006-06-14 Richard Henderson <rth@redhat.com>
18138
18139 PR libgomp/28008
18140 * env.c (initialize_env): Avoid using PTHREAD_STACK_MIN when
18141 undefined. Use GOMP_STACKSIZE not OMP_STACKSIZE for environment.
18142
18143 2006-06-09 Richard Henderson <rth@redhat.com>
18144
18145 * env.c (gomp_nthreads_var): Change to unsigned long.
18146 (gomp_run_sched_chunk): Likewise.
18147 (parse_unsigned_long): Rename from parse_num_threads and generalize.
18148 (initialize_env): Initialize gomp_thread_attr.
18149 * libgomp.h (gomp_nthreads_var): Update decl.
18150 (gomp_run_sched_chunk): Likewise.
18151 (gomp_thread_attr): Declare.
18152 * team.c (gomp_thread_attr): Export.
18153 (initialize_team): Don't initialize it.
18154
18155 2006-06-09 Jakub Jelinek <jakub@redhat.com>
18156
18157 PR fortran/27916
18158 * testsuite/libgomp.fortran/pr27916-1.f90: New test.
18159 * testsuite/libgomp.fortran/pr27916-2.f90: New test.
18160
18161 2006-06-06 Francois-Xavier Coudert <coudert@clipper.ens.fr>
18162
18163 * config/mingw32/time.c: New file.
18164 * configure.tgt: Use it.
18165
18166 2006-05-23 Carlos O'Donell <carlos@codesourcery.com>
18167
18168 * Makefile.am: Add install-html target. Add install-html to .PHONY
18169 * Makefile.in: Regenerate.
18170
18171 2006-05-22 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
18172
18173 PR libgomp/27612
18174 * testsuite/libgomp.c/sections-1.c: Require sync_int_long.
18175 * testsuite/libgomp.c/critical-1.c: Likewise.
18176 * testsuite/libgomp.c/loop-1.c: Likewise.
18177 * testsuite/libgomp.c/loop-2.c: Likewise.
18178 * testsuite/libgomp.c/single-1.c: Likewise.
18179 * testsuite/libgomp.c/ordered-1.c: Likewise.
18180 * testsuite/libgomp.c/ordered-2.c: Likewise.
18181
18182 2006-05-15 Jakub Jelinek <jakub@redhat.com>
18183
18184 PR middle-end/27416
18185 * libgomp.fortran/pr27416-1.f90: New test.
18186
18187 2006-05-03 Jakub Jelinek <jakub@redhat.com>
18188
18189 PR fortran/27395
18190 * testsuite/libgomp.fortran/pr27395-1.f90: New test.
18191 * testsuite/libgomp.fortran/pr27395-2.f90: New test.
18192
18193 2006-05-02 Jakub Jelinek <jakub@redhat.com>
18194
18195 PR c++/26943
18196 * testsuite/libgomp.c/pr26943-1.c: New test.
18197 * testsuite/libgomp.c/pr26943-2.c: New test.
18198 * testsuite/libgomp.c/pr26943-3.c: New test.
18199 * testsuite/libgomp.c/pr26943-4.c: New test.
18200 * testsuite/libgomp.c++/pr27337.C: Remove barrier.
18201 * testsuite/libgomp.c++/pr26943.C: New test.
18202
18203 2006-05-02 Jakub Jelinek <jakub@redhat.com>
18204
18205 PR middle-end/27337
18206 * testsuite/libgomp.c++/pr27337.C: New test.
18207
18208 2006-04-26 Jakub Jelinek <jakub@redhat.com>
18209
18210 PR c/26171
18211 * testsuite/libgomp.c/pr26171.c: New test.
18212
18213 2006-04-25 Richard Henderson <rth@redhat.com>
18214
18215 PR libgomp/25865
18216 * configure.ac: Use GCC_CHECK_TLS.
18217 * acinclude.m4 (LIBGOMP_CHECK_TLS): Remove.
18218 * Makefile.in, aclocal.m4, configure: Regenerate.
18219
18220 2006-04-10 Matthias Klose <doko@debian.org>
18221
18222 * testsuite/lib/libgomp.exp (libgomp_init): Recognize multilib
18223 directory names containing underscores.
18224
18225 2006-03-21 Jakub Jelinek <jakub@redhat.com>
18226
18227 PR c++/26691
18228 * testsuite/libgomp.c++/pr26691.C: New test.
18229
18230 2006-03-13 Jakub Jelinek <jakub@redhat.com>
18231
18232 * testsuite/libgomp.fortran/retval2.f90: New test.
18233
18234 2006-03-09 Diego Novillo <dnovillo@redhat.com>
18235
18236 * testsuite/libgomp.c++: New directory.
18237
18238 2006-02-25 Shantonu Sen <ssen@opendarwin.org>
18239
18240 * config/posix/sem.h: Define BROKEN_POSIX_SEMAPHORES functions.
18241 * config/posix/sem.c: Implement the above.
18242
18243 2006-02-25 Andreas Tobler <a.tobler@schweiz.ch>
18244
18245 * configure.ac (HAVE_BROKEN_POSIX_SEMAPHORES): Check for darwin and
18246 define HAVE_BROKEN_POSIX_SEMAPHORES.
18247 * configure: Rebuilt.
18248 * config.h.in: Rebuilt.
18249
18250 2006-02-17 Francois-Xavier Coudert <coudert@clipper.ens.fr>
18251
18252 PR bootstrap/26161
18253 * configure.ac: Remove AC_CHECK_HEADER for pthread.h. Add comment
18254 for the other pthread check.
18255 * configure: Regenerate.
18256 * config.h.in: Regenerate.
18257
18258 2006-02-15 Jakub Jelinek <jakub@redhat.com>
18259
18260 PR libgomp/25938
18261 PR libgomp/25984
18262 * Makefile.am (fincludedir): New variable.
18263 (nodist_include_HEADERS): Remove Fortran files.
18264 (nodist_finclude_HEADERS): New variable.
18265 * Makefile.in: Regenerated.
18266
18267 2006-02-13 Jakub Jelinek <jakub@redhat.com>
18268
18269 * testsuite/libgomp.fortran/vla7.f90: Add -w to options.
18270 Remove tests for returning assumed character length arrays.
18271
18272 2006-02-12 Roger Sayle <roger@eyesopen.com>
18273 John David Anglin <dave@hiauly1.hia.nrc.ca>
18274
18275 PR libgomp/25936
18276 * configure.tgt: Link against -lrt for sem_init on HPUX v11 systems.
18277
18278 2006-02-08 Ulrich Weigand <uweigand@de.ibm.com>
18279
18280 * testsuite/lib/libgomp-dg.exp: Load scanrtl.exp library.
18281
18282 2006-02-07 Eric Botcazou <ebotcazou@libertysurf.fr>
18283
18284 * testsuite/lib/libgomp-dg.exp (libgomp_init): Compute multilib related
18285 part of LD_LIBRARY_PATH manually.
18286
18287 2006-02-03 H.J. Lu <hongjiu.lu@intel.com>
18288
18289 PR libgomp/25852
18290 * testsuite/lib/libgomp-dg.exp (blddir): Set it in
18291 libgomp_init.
18292
18293 2005-01-25 Paolo Bonzini <bonzini@gnu.org>
18294
18295 PR libgomp/25884
18296 * Makefile.am (omp.h, omp_lib.h, omp_lib.f90, libgomp_f.h): Remove.
18297 * configure.ac (PERL): Don't set.
18298 (gstdint.h, omp.h, omp_lib.h, omp_lib.f90, libgomp_f.h): Create here.
18299 (OMP_LOCK_SIZE, OMP_LOCK_ALIGN, OMP_LOCK_KIND, OMP_NEST_LOCK_SIZE,
18300 OMP_NEST_LOCK_ALIGN, OMP_NEST_LOCK_KIND): New substitutions.
18301 * omp.h.in: Wrap the new configure substitutions with @ characters.
18302 * omp_lib.h.in, omp_lib.f90.in, libgomp_f.h.in: Likewise.
18303 * aclocal.m4, configure, Makefile.in: Regenerate.
18304 * mkomp_h.pl: Delete.
18305
18306 2005-01-24 Paolo Bonzini <bonzini@gnu.org>
18307
18308 PR libgomp/25259
18309 * configure.ac: Use GCC_HEADER_STDINT.
18310 * libgomp.h: Include gstdint.h.
18311 * libgomp_f.h.in: Don't include stdint.h or inttypes.h.
18312 * configure, Makefile.in, testsuite/Makefile.in, aclocal.m4: Rebuild.
18313
18314 2006-01-24 Richard Henderson <rth@redhat.com>
18315
18316 PR libgomp/25942
18317 * configure.ac: Add AM_MAINTAINER_MODE.
18318 * Makefile.in, aclocal.m4, configure, testsuite/Makefile.in: Rebuild.
18319
18320 2006-01-24 Diego Novillo <dnovillo@redhat.com>
18321
18322 * Makefile.in: Regenerate.
18323 * testsuite/Makefile.in: Regenerate.
18324 * aclocal.m4: Regenerate.
18325
18326 2006-01-23 Andreas Tobler <a.tobler@schweiz.ch>
18327
18328 * config/posix/proc.c: Conditional include of sys/loadavg.h for
18329 Solaris.
18330 * configure.ac: Add check for loadavg.h.
18331 (link_gomp): Adjust comment.
18332 * configure: Regenerate.
18333 * config.h.in: Regenerate.
18334
18335 2006-01-21 Steve Ellcey <sje@cup.hp.com>
18336
18337 PR libgomp/25877
18338 * configure.ac: Remove check for alloca.h.
18339 * configure: Regenerate.
18340 * config.h.in: Regenerate.
18341 * libgomp.h: define gomp_alloca to be __builtin_alloca.
18342 * team.c: Remove use of alloca.h.
18343 Call gomp_alloca instead of alloca.
18344
18345 2006-01-20 Steve Ellcey <sje@cup.hp.com>
18346
18347 PR libgomp/25877
18348 * team.c: Add include of alloca.h.
18349 * configure.ac: Add check for alloca.h.
18350 * configure: Regenerate.
18351 * config.h.in: Regenerate.
18352
18353 2006-01-17 Jakub Jelinek <jakub@redhat.com>
18354
18355 PR fortran/25219
18356 * testsuite/libgomp.fortran/pr25219.f90: New test.
18357
18358 2005-12-05 Uros Bizjak <uros@kss-loka.si>
18359
18360 * testsuite/libgomp.c/pr24455.c, testsuite/libgomp.c/copyin-1.c,
18361 testsuite/libgomp.c/copyin-2.c, testsuite/libgomp.c/copyin-3.c,
18362 testsuite/libgomp.c++/copyin-1.C, testsuite/libgomp.c++/copyin-2.C,
18363 testsuite/libgomp.c++/ctor-5.C, testsuite/libgomp.c++/ctor-8.C,
18364 testsuite/libgomp.c++/ctor-9.C, testsuite/libgomp.c++/pr24455.C,
18365 testsuite/libgomp.fortran/threadprivate1.f90,
18366 testsuite/libgomp.fortran/threadprivate2.f90,
18367 testsuite/libgomp.fortran/threadprivate3.f90,
18368 testsuite/libgomp.fortran/appendix-a/a.22.7.f9,
18369 testsuite/libgomp.fortran/appendix-a/a.22.8.f9,
18370 testsuite/libgomp.fortran/omp_parse3.f90: Change required
18371 effective-target to TLS runtime.
18372
18373 * testsuite/libgomp.fortran/pr25162.f: Require
18374 effective-target TLS runtime.
18375
18376 2005-12-01 Jakub Jelinek <jakub@redhat.com>
18377
18378 * testsuite/libgomp.fortran/nestedfn2.f90: New test.
18379 * testsuite/libgomp.c/nestedfn-3.c: New test.
18380
18381 2005-11-30 Jakub Jelinek <jakub@redhat.com>
18382
18383 PR fortran/25162
18384 * testsuite/libgomp.fortran/pr25162.f: New test.
18385
18386 2005-11-28 Jakub Jelinek <jakub@redhat.com>
18387
18388 * config/posix/time.c (omp_get_wtime, omp_get_wtick): Fall back to
18389 CLOCK_REALTIME if clock_* (CLOCK_MONOTONIC, &ts) call failed.
18390
18391 2005-11-25 Jakub Jelinek <jakub@redhat.com>
18392
18393 * alloc.c, barrier.c, critical.c, env.c, error.c, fortran.c, iter.c,
18394 libgomp.h, libgomp_f.h.in, libgomp_g.h, loop.c, mkomp_h.pl, omp.h.in,
18395 omp_lib.f90.in, omp_lib.h.in, ordered.c, parallel.c, sections.c,
18396 single.c, team.c, work.c, config/linux/alpha/futex.h,
18397 config/linux/bar.c, config/linux/bar.h, config/linux/ia64/futex.h,
18398 config/linux/lock.c, config/linux/mutex.c, config/linux/mutex.h,
18399 config/linux/powerpc/futex.h, config/linux/s390/futex.h,
18400 config/linux/sem.c, config/linux/sem.h, config/linux/sparc/futex.h,
18401 config/linux/x86/futex.h, config/posix/bar.c, config/posix/bar.h,
18402 config/posix/lock.c, config/posix/mutex.h, config/posix/proc.c,
18403 config/posix/sem.c, config/posix/sem.h, config/posix/time.c: Update
18404 FSF address.
18405
18406 2005-11-18 Jakub Jelinek <jakub@redhat.com>
18407
18408 * Makefile.am: Move libgomp_f.h from nodist_include_HEADERS
18409 to nodist_noinst_HEADERS.
18410 * Makefile.in: Rebuilt.
18411
18412 * config/posix/omp-lock.h (omp_nest_lock_t): Change into struct,
18413 add integer count field.
18414 * config/posix/lock.c (omp_destroy_nest_lock): Adjust for
18415 omp_nest_lock_t type change.
18416 (omp_init_nest_lock): Likewise. Initialize count to 0.
18417 (omp_set_nest_lock): Adjust for omp_nest_lock_t type change.
18418 Increment count.
18419 (omp_unset_nest_lock): Adjust for omp_nest_lock_t type change.
18420 Decrement count.
18421 (omp_test_nest_lock): Adjust for omp_nest_lock_t type change.
18422 Increment count if successful and return the new nesting level.
18423 * config/linux/lock.c (omp_test_nest_lock): Return new nesting level.
18424 * omp_lib.f90.in (omp_test_lock): Fix LOCK argument type.
18425 * testsuite/libgomp.c/lib-1.c: New test.
18426 * testsuite/libgomp.fortran/lib1.f90: New test.
18427 * testsuite/libgomp.fortran/lib2.f: New test.
18428 * testsuite/libgomp.fortran/lib3.f: New test.
18429
18430 2005-11-17 Richard Henderson <rth@redhat.com>
18431
18432 PR 24845
18433 * Makefile.am (nodist_toolexeclib_HEADERS): New.
18434 * configure.ac (link_gomp): New. Substitute it.
18435 (AC_CONFIG_FILES): Add libgomp.spec.
18436 * libgomp.spec.in: New file.
18437 * Makefile.in, testsuite/Makefile.in, configure: Rebuild.
18438 * testsuite/lib/libgomp-dg.exp: Add -B${blddir}/ to flags.
18439
18440 2005-11-18 Jakub Jelinek <jakub@redhat.com>
18441
18442 * testsuite/libgomp.fortran/reduction1.f90: Adjust for
18443 reduction(-:var) behaving the same as reduction(+:var).
18444 * testsuite/libgomp.c/reduction-4.c: New test.
18445
18446 2005-11-15 Uros Bizjak <uros@kss-loka.si>
18447
18448 * testsuite/libgomp.c/pr24455-1.c, testsuite/libgomp.c/pr24455.c,
18449 testsuite/libgomp.c/copyin-1.c, testsuite/libgomp.c/copyin-2.c,
18450 testsuite/libgomp.c/copyin-3.c,
18451 testsuite/libgomp.c++/copyin-1.C, testsuite/libgomp.c++/copyin-2.C,
18452 testsuite/libgomp.c++/ctor-5.C, testsuite/libgomp.c++/ctor-8.C,
18453 testsuite/libgomp.c++/ctor-9.C, testsuite/libgomp.c++/pr24455-1.C,
18454 testsuite/libgomp.c++/pr24455.C,
18455 testsuite/libgomp.fortran/threadprivate1.f90,
18456 testsuite/libgomp.fortran/threadprivate2.f90,
18457 testsuite/libgomp.fortran/threadprivate3.f90,
18458 testsuite/libgomp.fortran/appendix-a/a.22.7.f9,
18459 testsuite/libgomp.fortran/appendix-a/a.22.8.f9,
18460 testsuite/libgomp.fortran/omp_parse3.f90: Require
18461 effective-target TLS.
18462
18463 2005-11-14 Diego Novillo <dnovillo@redhat.com>
18464
18465 * HEADER: Remove.
18466
18467 2005-11-13 Jakub Jelinek <jakub@redhat.com>
18468
18469 PR libgomp/24797
18470 * team.c (initialize_team): Pass NULL rather than free as
18471 pthread_key_create destructor. Initialize thread specific data
18472 pointer in initial thread to a static local variable rather than
18473 malloced memory.
18474
18475 2005-11-11 Uros Bizjak <uros@kss-loka.si>
18476
18477 * testsuite/lib/libgomp-dg.exp: Locate libgcc.a and append
18478 its location to ld_library_path.
18479
18480 2005-11-10 Diego Novillo <dnovillo@redhat.com>
18481
18482 * testsuite/libgomp.c/c.exp: Rename from dg.exp.
18483
18484 2005-11-10 Diego Novillo <dnovillo@redhat.com>
18485
18486 * testsuite/libgomp.c: Rename from libgomp.dg.
18487
18488 2005-11-09 Diego Novillo <dnovillo@redhat.com>
18489
18490 * testsuite/libgomp.c++/pr24455.C: Add copyin clause for
18491 threadprivate variable 'i'.
18492
18493 2005-11-09 Jakub Jelinek <jakub@redhat.com>
18494
18495 * config/linux/s390/futex.h: New file.
18496 * configure.tgt: Use it.
18497
18498 * testsuite/libgomp.fortran/omp_parse4.f90: Move n initialization
18499 before the parallel.
18500
18501 2005-11-08 Jakub Jelinek <jakub@redhat.com>
18502
18503 PR c++/24734
18504 * testsuite/libgomp.c++/master-1.C: New test.
18505
18506 2005-11-07 Jakub Jelinek <jakub@redhat.com>
18507
18508 * testsuite/libgomp.dg/copyin-3.c: New test.
18509
18510 2005-11-07 Jakub Jelinek <jakub@redhat.com>
18511
18512 * testsuite/libgomp.fortran/retval1.f90: New test.
18513 * testsuite/libgomp.fortran/vla7.f90: New test.
18514
18515 2005-11-06 Jakub Jelinek <jakub@redhat.com>
18516
18517 * testsuite/libgomp.fortran/vla2.f90: New test.
18518 * testsuite/libgomp.fortran/vla3.f90: New test.
18519 * testsuite/libgomp.fortran/vla4.f90: New test.
18520 * testsuite/libgomp.fortran/vla5.f90: New test.
18521 * testsuite/libgomp.fortran/vla6.f90: New test.
18522
18523 2005-11-01 Jakub Jelinek <jakub@redhat.com>
18524
18525 * config/linux/sparc/futex.h: New file.
18526 * configure.tgt: Use it.
18527 * testsuite/lib/libgomp-dg.exp: Use -mcpu=v9 for sparc testing.
18528
18529 * critical.c: Include stdlib.h.
18530 * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS): Avoid warnings about
18531 ignoring return value.
18532 * configure.ac: Don't put -Wc,-pthread into XCFLAGS until after
18533 LIBGOMP_CHECK_SYNC_BUILTINS check.
18534 * configure: Rebuilt.
18535
18536 2005-10-31 Jakub Jelinek <jakub@redhat.com>
18537
18538 * testsuite/libgomp.fortran/vla1.f90: New test.
18539
18540 2005-10-31 Richard Henderson <rth@redhat.com>
18541
18542 * testsuite/libgomp.fortran/character2.f90: Fix race condition
18543 setting 's' in different threads.
18544
18545 2005-10-31 Jakub Jelinek <jakub@redhat.com>
18546
18547 * libgomp.h (attribute_hidden, ialias): Define.
18548 * config/posix/proc.c (omp_get_num_procs): Add ialias.
18549 * config/posix/time.c (omp_get_wtime, omp_get_wtick): Likewise.
18550 * config/posix/lock.c (omp_init_lock, omp_init_nest_lock,
18551 omp_destroy_lock, omp_destroy_nest_lock, omp_set_lock,
18552 omp_set_nest_lock, omp_unset_lock, omp_unset_nest_lock,
18553 omp_test_lock, omp_test_nest_lock): Likewise.
18554 * config/linux/lock.c (omp_init_lock, omp_init_nest_lock,
18555 omp_destroy_lock, omp_destroy_nest_lock, omp_set_lock,
18556 omp_set_nest_lock, omp_unset_lock, omp_unset_nest_lock,
18557 omp_test_lock, omp_test_nest_lock): Likewise.
18558 * env.c (omp_set_dynamic, omp_set_nested, omp_set_num_threads,
18559 omp_get_dynamic, omp_get_nested): Likewise.
18560 * parallel.c (omp_get_num_threads, omp_get_max_threads,
18561 omp_get_thread_num, omp_in_parallel): Likewise.
18562 * fortran.c (ialias_redirect): Define.
18563 (omp_init_lock, omp_init_nest_lock, omp_destroy_lock,
18564 omp_destroy_nest_lock, omp_set_lock, omp_set_nest_lock,
18565 omp_unset_lock, omp_unset_nest_lock, omp_test_lock,
18566 omp_test_nest_lock, omp_set_dynamic, omp_set_nested,
18567 omp_set_num_threads, omp_get_dynamic, omp_get_nested,
18568 omp_in_parallel, omp_get_max_threads, omp_get_num_procs,
18569 omp_get_num_threads, omp_get_thread_num, omp_get_wtick,
18570 omp_get_wtime): Add ialias_redirect.
18571
18572 2005-10-30 Jakub Jelinek <jakub@redhat.com>
18573
18574 * fortran.c: Include stdlib.h.
18575
18576 2005-10-29 Jakub Jelinek <jakub@redhat.com>
18577
18578 * Makefile.am (env.o, env.lo): Depend on libgomp_f.h.
18579 * Makefile.in: Regenerated.
18580
18581 2005-10-28 Jakub Jelinek <jakub@redhat.com>
18582
18583 * mkomp_h.pl: Remove all -Wc, option prefixes in $COMPILE.
18584 * libgomp_f.h.in (omp_check_defines): New function.
18585 * env.c: Include libgomp_f.h.
18586 (initialize_env): Call omp_check_defines.
18587
18588 * testsuite/libgomp.dg/copyin-2.c: New test.
18589 * testsuite/libgomp.c++/copyin-2.C: New test.
18590 * testsuite/libgomp.fortran/threadprivate3.f90: New test.
18591
18592 * testsuite/libgomp.fortran/threadprivate2.f90: New test.
18593 * testsuite/libgomp.fortran/sharing2.f90: New test.
18594
18595 * testsuite/libgomp.dg/copyin-1.c: New test.
18596 * testsuite/libgomp.c++/copyin-1.C: New test.
18597
18598 2005-10-26 Jakub Jelinek <jakub@redhat.com>
18599
18600 * testsuite/libgomp.fortran/crayptr1.f90: New test.
18601
18602 * testsuite/libgomp.fortran/workshare1.f90: New test.
18603
18604 * libgomp.fortran/appendix-a/a.28.5.f90: Change into compile
18605 only test.
18606 * libgomp.fortran/sharing1.f90: New test.
18607
18608 2005-10-24 Jakub Jelinek <jakub@redhat.com>
18609
18610 PR c++/24502
18611 * testsuite/libgomp.c++/loop-7.C: New test.
18612
18613 * testsuite/libgomp.dg/nestedfn-2.c: New test.
18614
18615 * testsuite/libgomp.dg/nestedfn-1.c: New test.
18616 * testsuite/libgomp.fortran/reduction6.f90: New test.
18617 * testsuite/libgomp.fortran/nestedfn1.f90: New test.
18618
18619 2005-10-23 Richard Henderson <rth@redhat.com>
18620
18621 * testsuite/libgomp.c++/ctor-1.C: New.
18622 * testsuite/libgomp.c++/ctor-2.C: New.
18623 * testsuite/libgomp.c++/ctor-3.C: New.
18624 * testsuite/libgomp.c++/ctor-4.C: New.
18625 * testsuite/libgomp.c++/ctor-5.C: New.
18626 * testsuite/libgomp.c++/ctor-6.C: New.
18627 * testsuite/libgomp.c++/ctor-7.C: New.
18628 * testsuite/libgomp.c++/ctor-8.C: New.
18629 * testsuite/libgomp.c++/ctor-9.C: New.
18630
18631 2005-10-21 Diego Novillo <dnovillo@redhat.com>
18632
18633 PR 24455
18634 * testsuite/libgomp.c++/pr24455-1.C: New test.
18635 * testsuite/libgomp.c++/pr24455.C: New test.
18636 * testsuite/libgomp.dg/pr24455-1.c: New test.
18637 * testsuite/libgomp.dg/pr24455.c: New test.
18638
18639 2005-10-20 Richard Henderson <rth@redhat.com>
18640
18641 * testsuite/libgomp.c++/loop-6.C: New.
18642 * testsuite/libgomp.dg/loop-3.c: New.
18643
18644 2005-10-20 Jakub Jelinek <jakub@redhat.com>
18645
18646 * testsuite/libgomp.fortran/jacobi.f: Don't make i and j
18647 explicitly private.
18648 * testsuite/libgomp.fortran/omp_parse1.f90 (test_do): Make i
18649 explicitly shared.
18650
18651 2005-10-19 Diego Novillo <dnovillo@redhat.com>
18652
18653 * testsuite/libgomp.fortran/jacobi.f: New test.
18654
18655 2005-10-19 Richard Henderson <rth@redhat.com>
18656
18657 * configure.tgt (i?86-linux): Default to with_arch instead of
18658 CFLAGS. Add -mtune to match target_cpu.
18659 (x86_64-linux): Tune to i686.
18660
18661 * fortran.c (omp_test_nest_lock_): Fix typo.
18662
18663 2005-10-19 Jakub Jelinek <jakub@redhat.com>
18664
18665 * ordered.c (gomp_ordered_first, gomp_ordered_last, gomp_ordered_next,
18666 gomp_ordered_sync): Do nothing if team->nthreads == 1.
18667 * testsuite/libgomp.dg/ordered-3.c: New test.
18668
18669 * testsuite/libgomp.dg/appendix-a/a.18.1.c: Remove unconditional abort.
18670 Remove volatile keyword.
18671
18672 * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: Reorder variables
18673 in COMMON block to avoid warnings on 64-bit targets.
18674
18675 2005-10-18 Diego Novillo <dnovillo@redhat.com>
18676
18677 * testsuite/libgomp.dg/shared-3.c: New test.
18678
18679 2005-10-18 Jakub Jelinek <jakub@redhat.com>
18680
18681 * testsuite/libgomp.fortran/appendix-a/a.31.3.f90: Removed.
18682 * testsuite/libgomp.fortran/reduction5.f90: New test.
18683
18684 2005-10-18 Jakub Jelinek <jakub@redhat.com>
18685
18686 * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: Add -ffixed-form to
18687 dg-options.
18688 * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: Likewise. Enable
18689 flush loop now that __sync_synchronize has proper memory barrier.
18690 * testsuite/libgomp.fortran/appendix-a/a.3.1.f90: Fix a typo.
18691 Add -ffixed-form to dg-options.
18692
18693 2005-10-17 Diego Novillo <dnovillo@redhat.com>
18694
18695 * testsuite/libgomp.fortran/fortran.exp: Also gather tests
18696 from subdirectories.
18697 * testsuite/libgomp.fortran/appendix-a/a.15.1.f90: New test.
18698 * testsuite/libgomp.fortran/appendix-a/a.16.1.f90: New test.
18699 * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: New test.
18700 * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: New test.
18701 * testsuite/libgomp.fortran/appendix-a/a.2.1.f90: New test.
18702 * testsuite/libgomp.fortran/appendix-a/a.21.1.f90: New test.
18703 * testsuite/libgomp.fortran/appendix-a/a.22.7.f90: New test.
18704 * testsuite/libgomp.fortran/appendix-a/a.22.8.f90: New test.
18705 * testsuite/libgomp.fortran/appendix-a/a.26.1.f90: New test.
18706 * testsuite/libgomp.fortran/appendix-a/a.28.1.f90: New test.
18707 * testsuite/libgomp.fortran/appendix-a/a.28.2.f90: New test.
18708 * testsuite/libgomp.fortran/appendix-a/a.28.3.f90: New test.
18709 * testsuite/libgomp.fortran/appendix-a/a.28.4.f90: New test.
18710 * testsuite/libgomp.fortran/appendix-a/a.28.5.f90: New test.
18711 * testsuite/libgomp.fortran/appendix-a/a.3.1.f90: New test.
18712 * testsuite/libgomp.fortran/appendix-a/a.31.3.f90: New test.
18713 * testsuite/libgomp.fortran/appendix-a/a.31.4.f90: New test.
18714 * testsuite/libgomp.fortran/appendix-a/a.31.5.f90: New test.
18715 * testsuite/libgomp.fortran/appendix-a/a.33.3.f90: New test.
18716 * testsuite/libgomp.fortran/appendix-a/a.38.1.f90: New test.
18717 * testsuite/libgomp.fortran/appendix-a/a.39.1.f90: New test.
18718 * testsuite/libgomp.fortran/appendix-a/a.4.1.f90: New test.
18719 * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: New test.
18720 * testsuite/libgomp.fortran/appendix-a/a.5.1.f90: New test.
18721 * testsuite/libgomp.fortran/appendix-a/a10.1.f90: New test.
18722
18723 2005-10-17 Jakub Jelinek <jakub@redhat.com>
18724
18725 * testsuite/libgomp.dg/dg.exp: Only unset lang_* if
18726 lang_library_path exists. Use find instead of glob to gather tests.
18727 * testsuite/libgomp.dg/appendix-a/appendix-a.exp: Removed.
18728
18729 2005-10-17 Diego Novillo <dnovillo@redhat.com>
18730
18731 * testsuite/libgomp.dg/appendix-a/a.15.1.c: New test.
18732 * testsuite/libgomp.dg/appendix-a/a.16.1.c: New test.
18733 * testsuite/libgomp.dg/appendix-a/a.18.1.c: New test.
18734 * testsuite/libgomp.dg/appendix-a/a.19.1.c: New test.
18735 * testsuite/libgomp.dg/appendix-a/a.2.1.c: New test.
18736 * testsuite/libgomp.dg/appendix-a/a.21.1.c: New test.
18737 * testsuite/libgomp.dg/appendix-a/a.26.1.c: New test.
18738 * testsuite/libgomp.dg/appendix-a/a.29.1.c: New test.
18739 * testsuite/libgomp.dg/appendix-a/a.3.1.c: New test.
18740 * testsuite/libgomp.dg/appendix-a/a.39.1.c: New test.
18741 * testsuite/libgomp.dg/appendix-a/a.4.1.c: New test.
18742 * testsuite/libgomp.dg/appendix-a/a.5.1.c: New test.
18743 * testsuite/libgomp.dg/appendix-a/appendix-a.exp: New file.
18744
18745 2005-10-15 Jakub Jelinek <jakub@redhat.com>
18746
18747 * testsuite/libgomp.dg/vla-1.c: New test.
18748
18749 * testsuite/libgomp.fortran/reference2.f90: New test.
18750
18751 * testsuite/libgomp.fortran/character2.f90: Remove explicit
18752 declaration of omp_get_thread_num.
18753 * testsuite/libgomp.fortran/threadprivate1.f90: Likewise. Add
18754 use omp_lib.
18755
18756 * testsuite/libgomp.fortran/reduction1.f90: New test.
18757 * testsuite/libgomp.fortran/reduction2.f90: New test.
18758 * testsuite/libgomp.fortran/reduction3.f90: New test.
18759 * testsuite/libgomp.fortran/reduction4.f90: New test.
18760
18761 2005-10-13 Richard Henderson <rth@redhat.com>
18762
18763 * Makefile.am (libgomp_la_SOURCES): Add bar.c.
18764 * Makefile.in: Regenerate.
18765 * barrier.c (GOMP_barrier): Use gomp_barrier_wait.
18766 * libgomp.h: Include bar.h.
18767 (struct gomp_barrier): Remove.
18768 (struct gomp_team): Add barrier. Replace master_barrier with
18769 master_release. Replace threads with ordered_release.
18770 (struct gomp_thread): Replace barrier with release.
18771 * ordered.c (gomp_ordered_first): Update for ordered_release change.
18772 (gomp_ordered_last, gomp_ordered_next, gomp_ordered_static_init,
18773 gomp_ordered_static_next, gomp_ordered_sync): Likewise.
18774 * single.c (GOMP_single_copy_start): Use gomp_barrier_wait.
18775 (GOMP_single_copy_end): Likewise.
18776 * team.c (gomp_threads_dock): New.
18777 (gomp_barrier_init, gomp_barrier_destroy): Remove.
18778 (gomp_thread_start): Use gomp_barrier_wait.
18779 (new_team, free_team): Update for gomp_team changes.
18780 (gomp_team_start): Use gomp_barrier_wait and gomp_barrier_reinit.
18781 (gomp_team_end): Use gomp_barrier_wait.
18782 (initialize_team): Update for gomp_thread changes.
18783 * work.c (gomp_work_share_end): Use gomp_barrier_wait_start.
18784 (gomp_work_share_end_nowait): Use atomic ops when available.
18785 * config/linux/bar.c, config/linux/bar.h: New files.
18786 * config/posix/bar.c, config/posix/bar.h: New files.
18787
18788 2005-10-13 Jakub Jelinek <jakub@redhat.com>
18789
18790 * single.c (GOMP_single_copy_end): Don't segfault if team is NULL.
18791 * testsuite/libgomp.dg/single-2.c: New test.
18792
18793 * testsuite/libgomp.dg/dg.exp (lang_library_path, lang_test_file,
18794 lang_link_flags): Unset, so that they aren't inherited from previously
18795 sourced *.exp.
18796
18797 * testsuite/libgomp.fortran/threadprivate1.f90: New test.
18798
18799 2005-10-12 Richard Henderson <rth@redhat.com>
18800
18801 * testsuite/lib/libgomp-dg.exp: Set blddir at toplevel.
18802 (libgomp_init): Use lang_test_file, lang_library_path, and
18803 lang_link_flags, set by the subdirectory files. Add -fopenmp here.
18804
18805 * testsuite/libgomp.fortran/fortran.exp (lang_library_path): New.
18806 (lang_test_file, lang_link_flags): New.
18807 (DEFAULT_FFLAGS, ALWAYS_CFLAGS, multilibs, blddir): Remove.
18808
18809 * testsuite/libgomp.c++/c++.exp, testsuite/libgomp.c++/loop-1.C,
18810 testsuite/libgomp.c++/loop-2.C, testsuite/libgomp.c++/loop-3.C,
18811 testsuite/libgomp.c++/loop-4.C, testsuite/libgomp.c++/nested-1.C,
18812 testsuite/libgomp.c++/parallel-1.C,
18813 testsuite/libgomp.c++/reduction-1.C,
18814 testsuite/libgomp.c++/reduction-2.C,
18815 testsuite/libgomp.c++/reduction-3.C,
18816 testsuite/libgomp.c++/sections-1.C, testsuite/libgomp.c++/shared-1.C,
18817 testsuite/libgomp.c++/shared-2.C, testsuite/libgomp.c++/single-1.C,
18818 testsuite/libgomp.c++/single-2.C, testsuite/libgomp.c++/single-3.C:
18819 New files, largely cribbed from the C testsuite.
18820
18821 2005-10-12 Jakub Jelinek <jakub@redhat.com>
18822
18823 * testsuite/libgomp.fortran/character1.f90: New test.
18824 * testsuite/libgomp.fortran/character2.f90: New test.
18825
18826 * testsuite/libgomp.dg/nested-1.c: New test.
18827 * testsuite/libgomp.dg/nested-2.c: New test.
18828 * testsuite/libgomp.fortran/do1.f90: New test.
18829 * testsuite/libgomp.fortran/do2.f90: New test.
18830
18831 * testsuite/libgomp.fortran/reference1.f90: New test.
18832
18833 2005-10-11 Jakub Jelinek <jakub@redhat.com>
18834
18835 * testsuite/libgomp.dg/reduction-1.c: New test.
18836 * testsuite/libgomp.dg/reduction-2.c: New test.
18837 * testsuite/libgomp.dg/reduction-3.c: New test.
18838
18839 2005-10-10 Jakub Jelinek <jakub@redhat.com>
18840
18841 * testsuite/libgomp.dg/atomic-1.c: New test.
18842 * testsuite/libgomp.dg/atomic-2.c: New test.
18843
18844 2005-10-09 Richard Henderson <rth@redhat.com>
18845
18846 * critical.c (atomic_lock): New.
18847 (initialize_critical): Initialize it.
18848 (GOMP_atomic_start, GOMP_atomic_end): New.
18849 * libgomp.map: Export them.
18850 * libgomp_g.h: Declare them.
18851
18852 * testsuite/libgomp.dg/atomic-10.c: Move from gcc testsuite.
18853
18854 2005-10-02 Richard Henderson <rth@redhat.com>
18855
18856 * configure.ac: Move save_CFLAGS hack earlier. Append -Wall/-Werror
18857 to XCFLAGS instead of CFLAGS.
18858
18859 2005-09-30 Richard Henderson <rth@redhat.com>
18860
18861 * configure.ac: Determine whether -pthread or -lpthread is needed.
18862 * Makefile.am (libgomp_la_LDFLAGS): Remove explicit -lpthread.
18863 * Makefile.in, configure: Rebuild.
18864
18865 2005-09-28 Richard Henderson <rth@redhat.com>
18866
18867 * testsuite/libgomp.dg/omp-loop03.c: Fix return code.
18868 * testsuite/libgomp.dg/omp-single-3.c: New test.
18869
18870 2005-09-28 Diego Novillo <dnovillo@redhat.com>
18871
18872 * testsuite/libgomp.dg/omp-single-2.c: New test.
18873 * testsuite/libgomp.dg/shared-2.c: Fix return code.
18874
18875 2005-09-27 Richard Henderson <rth@redhat.com>
18876
18877 * testsuite/libgomp.dg/omp-loop03.c: Add initial barrier.
18878 * testsuite/libgomp.dg/omp-parallel-for.c: Specify static schedule.
18879
18880 2005-09-27 Jakub Jelinek <jakub@redhat.com>
18881
18882 * testsuite/libgomp.dg/omp-loop03.c: New test.
18883
18884 2005-09-27 Diego Novillo <dnovillo@redhat.com>
18885
18886 * testsuite/libgomp.dg/omp-parallel-for.c: New test.
18887
18888 2005-09-27 Diego Novillo <dnovillo@redhat.com>
18889
18890 * testsuite/libgomp.dg/omp-single-1.c: New test.
18891 * testsuite/libgomp.dg/shared-1.c: Return 0.
18892 Add prototype for abort.
18893 * testsuite/libgomp.dg/shared-2.c: Likewise.
18894
18895 2005-09-26 Jakub Jelinek <jakub@redhat.com>
18896
18897 * testsuite/libgomp.fortran/omp_parse3.f90: Fix non-conforming
18898 constructs.
18899
18900 2005-09-26 Diego Novillo <dnovillo@redhat.com>
18901
18902 * testsuite/libgomp.dg/shared-1.c: New test.
18903 * testsuite/libgomp.dg/shared-2.c: New test.
18904
18905 2005-09-24 Richard Henderson <rth@redhat.com>
18906
18907 * testsuite/libgomp.dg/omp_workshare3.c: Mark dg-error.
18908
18909 2005-09-24 Richard Henderson <rth@redhat.com>
18910
18911 * iter.c (gomp_iter_static_next): Round up when computing number
18912 of iterations. Don't bother distributing a remainder equally.
18913
18914 * testsuite/libgomp.dg/omp-loop01.c (main1): Rename from main.
18915 Don't call srand. Zero b before testing.
18916 (main): New.
18917
18918 2005-09-24 Jakub Jelinek <jakub@redhat.com>
18919
18920 * testsuite/libgomp.fortran/omp_atomic1.f90: New test.
18921 * testsuite/libgomp.fortran/omp_atomic2.f90: New test.
18922
18923 2005-09-23 Jakub Jelinek <jakub@redhat.com>
18924
18925 * testsuite/libgomp.fortran/omp_parse1.f90: Add a test for !$omp do
18926 without !$omp end do, followed immediately by subroutine end.
18927
18928 2005-09-23 Diego Novillo <dnovillo@redhat.com>
18929
18930 * testsuite/libgomp.dg/omp-parallel-if.c: New test.
18931
18932 2005-09-22 Richard Henderson <rth@redhat.com>
18933
18934 * critical.c (GOMP_critical_name_start): Change argument to void**.
18935 Reuse the pointer space if the mutex fits.
18936 (GOMP_critical_name_end): Likewise.
18937 (initialize_critical): Don't define if GOMP_MUTEX_INIT_0.
18938 * libgomp_g.h (GOMP_critical_name_start): Update decl.
18939 (GOMP_critical_name_end): Likewise.
18940 * config/linux/mutex.h (GOMP_MUTEX_INIT_0): New.
18941 * config/posix/mutex.h (GOMP_MUTEX_INIT_0): New.
18942
18943 2005-09-20 Richard Henderson <rth@redhat.com>
18944
18945 * critical.c (GOMP_critical_name_start, GOMP_critical_name_end): New.
18946 (create_lock_lock): New.
18947 (initialize_critical): Initialize it.
18948 * libgomp.map (GOMP_critical_name_start, GOMP_critical_name_end): New.
18949 * libgomp_g.h (GOMP_ordered_start, GOMP_ordered_end): Declare.
18950
18951 2005-09-20 Diego Novillo <dnovillo@redhat.com>
18952
18953 * testsuite/libgom.dg/omp-loop01.c: Include stdio.h.
18954
18955 2005-09-20 Diego Novillo <dnovillo@redhat.com>
18956
18957 * testsuite/libgomp.dg/omp-loop01.c: New test.
18958 * testsuite/libgomp.dg/omp-loop02.c: New test.
18959
18960 2005-09-20 Jakub Jelinek <jakub@redhat.com>
18961
18962 * configure.ac (AC_PROG_FC): Add.
18963 (USE_FORTRAN): New automake conditional.
18964 * configure: Rebuilt.
18965 * Makefile.am (libgomp_la_SOURCES): Add fortran.c.
18966 (nodist_include_HEADERS): Add omp_lib.h, omp_lib.f90 and libgomp_f.h.
18967 If USE_FORTRAN, add also omp_lib.mod and omp_lib_kinds.mod.
18968 Add rules to build them.
18969 * Makefile.in: Rebuilt.
18970 * mkomp_h.pl: Compute and replace also OMP_LOCK_KIND and
18971 OMP_NEST_LOCK_KIND.
18972 * libgomp.map: Add Fortran wrappers.
18973 * libgomp_f.h.in: New file.
18974 * omp_lib.h.in: New file.
18975 * omp_lib.f90.in: New file.
18976 * fortran.c: New file.
18977 * testsuite/lib/libgomp-dg.exp: Load a few more .exp files.
18978 Append libgfortran directory to LD_LIBRARY_PATH if it exists.
18979 Add -Lpath_to_libgfortran and -lgfortran -lgfortranbegin if
18980 libgfortran has been built.
18981 * testsuite/libgomp.fortran/fortran.exp: New file.
18982 * testsuite/libgomp.fortran/omp_cond1.f: New test.
18983 * testsuite/libgomp.fortran/omp_cond2.f: New test.
18984 * testsuite/libgomp.fortran/omp_cond3.F90: New test.
18985 * testsuite/libgomp.fortran/omp_cond4.F90: New test.
18986 * testsuite/libgomp.fortran/omp_hello.f: New test.
18987 * testsuite/libgomp.fortran/omp_orphan.f: New test.
18988 * testsuite/libgomp.fortran/omp_parse1.f90: New test.
18989 * testsuite/libgomp.fortran/omp_parse2.f90: New test.
18990 * testsuite/libgomp.fortran/omp_parse3.f90: New test.
18991 * testsuite/libgomp.fortran/omp_parse4.f90: New test.
18992 * testsuite/libgomp.fortran/omp_reduction.f: New test.
18993 * testsuite/libgomp.fortran/omp_workshare1.f: New test.
18994 * testsuite/libgomp.fortran/omp_workshare2.f: New test.
18995
18996 2005-08-30 Richard Henderson <rth@redhat.com>
18997
18998 * loop.c (GOMP_loop_static_start): Provide fallback wrapper
18999 function for when aliases are not usable.
19000 (GOMP_loop_dynamic_start, GOMP_loop_guided_start,
19001 GOMP_loop_ordered_static_start, GOMP_loop_ordered_dynamic_start,
19002 GOMP_loop_ordered_guided_start, GOMP_loop_static_next,
19003 GOMP_loop_dynamic_next, GOMP_loop_guided_next,
19004 GOMP_loop_ordered_static_next, GOMP_loop_ordered_dynamic_next,
19005 GOMP_loop_ordered_guided_next): Likewise.
19006 * ordered.c (GOMP_ordered_start): Likewise.
19007
19008 2005-08-01 Diego Novillo <dnovillo@redhat.com>
19009
19010 * testsuite/libgomp.dg/dg.exp: Use -O2 for now.
19011 * testsuite/libgomp.dg/omp_hello.c: Fix return code
19012 * testsuite/libgomp.dg/omp_matvec.c: Likewise.
19013 * testsuite/libgomp.dg/omp_orphan.c: Likewise
19014 * testsuite/libgomp.dg/omp_reduction.c: Likewise
19015 * testsuite/libgomp.dg/omp_workshare1.c: Likewise
19016 * testsuite/libgomp.dg/omp_workshare2.c: Likewise
19017 * testsuite/libgomp.dg/omp_workshare3.c: Likewise
19018 * testsuite/libgomp.dg/omp_workshare4.c: Likewise
19019
19020 2005-07-07 Eric Christopher <echristo@redhat.com>
19021 Diego Novillo <dnovillo@redhat.com>
19022
19023 * testsuite/libgomp.dg/dg.exp: Add -fopenmp to DEFAULT_CFLAGS.
19024 * testsuite/libgomp.dg/omp_hello.c: Add standard includes, fix
19025 up code.
19026 * testsuite/libgomp.dg/omp_matvec.c: Ditto.
19027 * testsuite/libgomp.dg/omp_orphan.c: Ditto.
19028 * testsuite/libgomp.dg/omp_reduction.c: Ditto.
19029 * testsuite/libgomp.dg/omp_workshare1.c: Ditto.
19030 * testsuite/libgomp.dg/omp_workshare2.c: Ditto.
19031 * testsuite/libgomp.dg/omp_workshare3.c: Ditto.
19032 * testsuite/libgomp.dg/omp_workshare4.c: Ditto.
19033
19034 2005-06-13 Diego Novillo <dnovillo@redhat.com>
19035
19036 * TOPLEVEL.patch: Remove.
19037
19038 2005-05-16 Richard Henderson <rth@redhat.com>
19039
19040 * configure.ac: Test for clock_gettime.
19041 * config.h.in, configure: Rebuild.
19042 * config/posix/time.c: Use recommended TIME_WITH_SYS_TIME pattern.
19043 (omp_get_wtime): Use clock_gettime if available.
19044 (omp_get_wtick): Use clock_getres if available.
19045
19046 2005-05-11 Richard Henderson <rth@redhat.com>
19047
19048 * config/linux/ia64/futex.h: New file.
19049 * configure.tgt: Use it.
19050
19051 * team.c (gomp_barrier_init, gomp_barrier_destroy): Mark inline.
19052
19053 2005-05-07 Richard Henderson <rth@redhat.com>
19054
19055 * config/linux/powerpc/futex.h: New file.
19056 * configure.tgt: Use it.
19057
19058 * config/linux/i486/futex.h: Merge ...
19059 * config/linux/x86_64/futex.h: ... into ...
19060 * config/linux/x86/futex.h: ... here.
19061 * configure.tgt: Update to match.
19062
19063 2005-05-06 Richard Henderson <rth@redhat.com>
19064
19065 * config/linux/alpha/futex.h: Conditionally define SYS_futex.
19066 * config/linux/i486/futex.h: Likewise.
19067 * config/linux/x86_64/futex.h: Likewise.
19068
19069 * config/linux/lock.c: New file.
19070 * config/linux/omp-lock.h: New file.
19071
19072 * critical.c, env.h: Don't include omp.h
19073 * config/posix/lock.c: Include libgomp.h instead of omp.h.
19074 * config/posix/time.c: Likewise.
19075 * config/posix/omp-lock.h: New file.
19076 * libgomp.h: Include omp-lock.h and omp.h.
19077 * Makefile.am (nodist_include_HEADERS): New.
19078 (omp.h): New rule.
19079 * configure.ac (PERL): New.
19080 * mkomp_h.pl: New file.
19081 * omp.h.in: Rename from omp.h; replace omp_lock_t and omp_nest_lock_t
19082 with templates.
19083 * Makefile.in, configure, testsuite/Makefile.in: Rebuild.
19084
19085 * testsuite/lib/libgomp-dg.exp (libgomp_init): Add include into
19086 build directory. Re-add -march=i486 hack.
19087
19088 * testsuite/lib/libgomp-dg.exp (libgomp_compile_flags): Remove.
19089 (libgomp_link_flags): Remove.
19090 (libgomp_initialized): Remove.
19091 (libgomp_init): Don't protect from reinitialization. Copy code
19092 from libstdc++ for getting the multilib set correctly.
19093
19094 2005-05-05 Richard Henderson <rth@redhat.com>
19095
19096 * config/linux/alpha/futex.h: New file.
19097 * configure.tgt (alpha*-*-linux*): Use it.
19098
19099 * config/posix/mutex.c: New file.
19100 * config/posix/sem.c: Use libgomp.h.
19101
19102 * configure.tgt (x86_64-linux): Also test CC for -m32.
19103 * config/linux/x86_64/futex.h (futex_wait): Fix r10 usage.
19104
19105 * testsuite/lib/libgomp-dg.exp (libgomp_link_flags): Add /
19106 after $gccpath.
19107
19108 * Makefile.am (SUBDIRS): New.
19109 (libgomp_la_LDFLAGS): Add -lpthread.
19110 * configure.ac (AM_INIT_AUTOMAKE): Enable dependencies.
19111 * Makefile.in, aclocal.m4, config.h.in, configure: Rebuild.
19112
19113 * libgomp_g.h: New file.
19114 * libgomp.h: Split out all public declarations to libgomp_g.h.
19115 Use pragma GCC visibility instead of ATTRIBUTE_HIDDEN.
19116 * config/linux/mutex.h: Remove ATTRIBUTE_HIDDEN.
19117 * config/linux/sem.h: Likewise.
19118 * config/posix/sem.h: Likewise.
19119
19120 * Makefile.am (AM_LDFLAGS): New.
19121 (libgomp_version_script): Split out from ...
19122 (libgomp_la_LDFLAGS): ... here.
19123 (libgomp_version_info): New.
19124 * acinclude.m4 (LIBGOMP_CHECK_TLS): Use LIBGOMP_ENABLE.
19125 (LIBGOMP_ENABLE): New.
19126 (LIBGOMP_CHECK_LINKER_FEATURES): New.
19127 (LIBGOMP_ENABLE_SYMVERS): New.
19128 * configure.ac (AC_INIT): Version 1.0.
19129 (enable-version-specific-runtime-libs): Use LIBGOMP_ENABLE.
19130 (enable-linux-futex): Likewise. Rename from enable-futex.
19131 (libtool_VERSION): New.
19132 (LIBGOMP_ENABLE_SYMVERS): Use it.
19133 * configure.tgt: Check with_gnu_ld wrt have_tls optimizations.
19134 * Makefile.in, aclocal.m4, configure: Rebuild.
19135
19136 * config/linux/mutex.c: Include libgomp.h instead of mutex.h.
19137 (gomp_mutex_unlock_slow): Fix typo.
19138 * config/linux/sem.c: Similarly.
19139 (gomp_sem_post_slow): Fix typo.
19140 * config/linux/sem.h (gomp_sem_post_slow): Fix typo.
19141 * config/linux/i486/futex.h: Remove USE_LINUX_SYSENTER code.
19142 [__PIC__] (sys_futex0): Don't use tmp output in asm.
19143
19144 * Makefile.am (AM_CFLAGS): Expand with XCFLAGS.
19145 (libgomp_la_LDFLAGS): Add top_srcdir to path.
19146 * acinclude.m4: Copy libtool.m4 stuff from libgfortran.
19147 * configure.ac: Check for getloadavg. Substitute XCFLAGS and
19148 XLDFLAGS. Add XCFLAGS to CFLAGS around LIBGOMP_CHECK_SYNC_BUILTINS.
19149 * configure.tgt: Set XCFLAGS and XLDFLAGS instead of CFLAGS and
19150 LDFLAGS. Pull enable_futex check to top-level.
19151 * libgomp.h: Fix sem.h and mutex.h includes. Define ATTRIBUTE_HIDDEN.
19152 * Makefile.in, aclocal.m4, config.h.in, configure: Regenerate.
19153
19154 First attempt at real configury.
19155 * Makefile, config.h: Remove file.
19156 * Makefile.am, Makefile.in: New file.
19157 * acinclude.m4 aclocal.m4: New file.
19158 * configure.ac, configure.tgt, configure: New file.
19159
19160 * config/posix/lock.c: Rename from sys-lock.c.
19161 * config/posix/mutex.h: Rename from sys-mutex.h.
19162 * config/posix/sem.c: Rename from sys-sem.c.
19163 * config/posix/sem.h: Rename from sys-sem.h.
19164 * config/posix/proc.c: Rename from sys-proc.c.
19165 * config/posix/time.c: Rename from sys-proc.c.
19166
19167 * config/linux/mutex.c: New file.
19168 * config/linux/mutex.h: New file.
19169 * config/linux/sem.c: New file.
19170 * config/linux/sem.h: New file.
19171 * config/linux/i486/futex.h: New file.
19172 * config/linux/x86_64/futex.h: New file.
19173
19174 2005-05-04 Richard Henderson <rth@redhat.com>
19175
19176 * iter.c (gomp_iter_dynamic_next, gomp_iter_guided_next): New.
19177 * libgomp.h: Declare them.
19178 * loop.c (gomp_loop_dynamic_start, gomp_loop_guided_start,
19179 gomp_loop_dynamic_next, gomp_loop_guided_next): Use them.
19180
19181 2005-05-04 Richard Henderson <rth@redhat.com>
19182
19183 * libgomp-1 code drop
19184
19185 2005-05-04 Richard Henderson <rth@redhat.com>
19186
19187 * iter.c (gomp_iter_static_next): Return tri-state on 0.
19188 * ordered.c (gomp_ordered_static_next): Remove not_last argument.
19189 * libgomp.h (struct gomp_team_state): Make static_trip unsigned.
19190 (gomp_iter_static_next): Update.
19191 (gomp_ordered_static_next): Update.
19192 * loop.c (gomp_loop_static_start): Update for gomp_iter_static_next.
19193 (gomp_loop_ordered_static_start): Likewise. Exit early for a
19194 totally empty range.
19195 (gomp_loop_ordered_static_next): Refine test for calling
19196 gomp_ordered_static_next.
19197 * testsuite/ordered-1.c: Add case for more threads than iterations.
19198
19199 * iter.c (gomp_iter_runtime_next_locked): Remove.
19200 * loop.c (gomp_loop_static_start, gomp_loop_dynamic_start,
19201 gomp_loop_guided_start, gomp_loop_ordered_static_start,
19202 gomp_loop_ordered_dynamic_start, gomp_loop_ordered_guided_start,
19203 gomp_loop_static_next, gomp_loop_dynamic_next, gomp_loop_guided_next,
19204 gomp_loop_ordered_static_next, gomp_loop_ordered_dynamic_next,
19205 gomp_loop_ordered_guided_next): Downcase name, make static, add
19206 an external alias with the old name.
19207 (GOMP_loop_runtime_start, GOMP_loop_ordered_runtime_start,
19208 GOMP_loop_runtime_next, GOMP_loop_ordered_runtime_next): Use a
19209 switch and call one of the above static functions.
19210 * libgomp.h: Update.
19211
19212 * work.c (gomp_work_share_start): Lock the mutex for !first too.
19213 * loop.c (GOMP_loop_static_start, GOMP_loop_dynamic_start,
19214 GOMP_loop_guided_start, GOMP_loop_runtime_start,
19215 GOMP_loop_ordered_static_start, GOMP_loop_ordered_dynamic_start,
19216 GOMP_loop_ordered_guided_start): Update to match.
19217 * sections.c (GOMP_sections_start): Likewise.
19218 * single.c (GOMP_single_start, GOMP_single_copy_start): Likewise.
19219
19220 * ordered.c (gomp_ordered_first, gomp_ordered_last, gomp_ordered_next,
19221 gomp_ordered_static_init, gomp_ordered_static_next): Rename s/_loop//.
19222 Use bounds check instead of modulus.
19223 (gomp_ordered_sync): Split out of GOMP_ordered_start.
19224 (gomp_ordered_last): Don't sync with ordered_owner here.
19225 (gomp_ordered_next): Likewise.
19226 (gomp_ordered_static_loop_next): Likewise.
19227 * loop.c, libgomp.h: Update to match.
19228
19229 * libgomp.h (GOMP_barrier): Declare.
19230
19231 * testsuite/barrier-1.c: New file.
19232 * testsuite/critical-1.c: New file.
19233 * testsuite/ordered-2.c: New file.
19234 * testsuite/ordered-1.c: New file.
19235 * testsuite/sections-1.c: New file.
19236 * testsuite/single-1.c: New file.
19237 * testsuite/Makefile (TESTS): Add them.
19238
19239 2005-05-04 Richard Henderson <rth@redhat.com>
19240
19241 * libgomp.h (struct gomp_work_share): Add ordered_owner.
19242 * loop.c (GOMP_loop_static_start): If not the startup thread,
19243 acquire the mutex to wait for initialization complete.
19244 (GOMP_loop_ordered_static_start): Likewise.
19245 (GOMP_loop_ordered_runtime_start): Likewise.
19246 (GOMP_loop_ordered_static_first): Remove.
19247 (GOMP_loop_ordered_dynamic_first): Remove.
19248 (GOMP_loop_ordered_guided_first): Remove.
19249 (GOMP_loop_ordered_runtime_first): Remove.
19250 * ordered.c (gomp_ordered_loop_first): Post to own release when
19251 we're the first thread.
19252 (gomp_ordered_loop_last): Wait on release if not owner.
19253 (gomp_ordered_loop_next): Likewise.
19254 (gomp_ordered_static_loop_init): New.
19255 (gomp_ordered_static_loop_next): Use ordered_owner.
19256 (GOMP_ordered_start): Likewise.
19257 * work.c (gomp_new_work_share): Initialize ordered_owner.
19258
19259 2005-05-03 Richard Henderson <rth@redhat.com>
19260
19261 * Makefile (OPT): New.
19262 (CFLAGS): Use it.
19263
19264 * loop.c (GOMP_loop_end, GOMP_loop_end_nowait): New.
19265 * sections.c (GOMP_sections_end, GOMP_sections_end_nowait): New.
19266 * libgomp.h, libgomp.map, NOTES: Update to match.
19267
19268 * team.c (struct gomp_thread_start_data): Remove ts, fn, data.
19269 Add initialized and thr members.
19270 (gomp_thread_start): Pause when initially spawned to wait for
19271 the whole team to be created.
19272 (gomp_team_start): Release team members at the end.
19273
19274 * testsuite/loop-1.c (N): New. Use it instead of hardcoded 100.
19275 (f_foo_1): Use GOMP_loop_end.
19276 (f_foo_2): Use GOMP_loop_end_nowait.
19277
19278 * testsuite/loop-2.c: New file.
19279 * testsuite/Makefile (TESTS): Add it.
19280
19281 2005-05-03 Richard Henderson <rth@redhat.com>
19282
19283 * iter.c (gomp_iter_static_next): Fix overflow check typo.
19284 (gomp_iter_dynamic_next_locked): Fix overflow check thinko.
19285 * team.c (new_team): Initialize oldest_live_gen to 1 if no
19286 initial work_share.
19287
19288 * testsuite/Makefile: New file.
19289 * testsuite/loop-1.c: New file.
19290
19291 2005-05-03 Richard Henderson <rth@redhat.com>
19292
19293 Initial implementation and checkin.
19294 \f
19295 Copyright (C) 2005-2022 Free Software Foundation, Inc.
19296
19297 Copying and distribution of this file, with or without modification,
19298 are permitted in any medium without royalty provided the copyright
19299 notice and this notice are preserved.