]> git.ipfire.org Git - thirdparty/gcc.git/blob - libgomp/ChangeLog
Daily bump.
[thirdparty/gcc.git] / libgomp / ChangeLog
1 2022-11-09 Martin Liska <mliska@suse.cz>
2
3 * Makefile.in: Add missing HAS_SPHINX_BUILD.
4
5 2022-11-09 Martin Liska <mliska@suse.cz>
6
7 * doc/amd-radeon-gcn.rst:
8 Add trailing newline.
9 * doc/copyright.rst:
10 Add trailing newline.
11 * doc/cuda-streams-usage.rst:
12 Add trailing newline.
13 * doc/enabling-openacc.rst:
14 Add trailing newline.
15 * doc/enabling-openmp.rst:
16 Add trailing newline.
17 * doc/first-invocation-nvidia-cublas-library-api.rst:
18 Add trailing newline.
19 * doc/first-invocation-openacc-library-api.rst:
20 Add trailing newline.
21 * doc/funding.rst:
22 Add trailing newline.
23 * doc/general-public-license-3.rst:
24 Add trailing newline.
25 * doc/gnu-free-documentation-license.rst:
26 Add trailing newline.
27 * doc/implementation-status-and-implementation-defined-behavior.rst:
28 Add trailing newline.
29 * doc/index.rst:
30 Add trailing newline.
31 * doc/indices-and-tables.rst:
32 Add trailing newline.
33 * doc/introduction.rst:
34 Add trailing newline.
35 * doc/memory-allocation-with-libmemkind.rst:
36 Add trailing newline.
37 * doc/nvptx.rst:
38 Add trailing newline.
39 * doc/offload-target-specifics.rst:
40 Add trailing newline.
41 * doc/openacc-environment-variables.rst:
42 Add trailing newline.
43 * doc/openacc-environment-variables/accdevicenum.rst:
44 Add trailing newline.
45 * doc/openacc-environment-variables/accdevicetype.rst:
46 Add trailing newline.
47 * doc/openacc-environment-variables/accproflib.rst:
48 Add trailing newline.
49 * doc/openacc-environment-variables/gccaccnotify.rst:
50 Add trailing newline.
51 * doc/openacc-introduction.rst:
52 Add trailing newline.
53 * doc/openacc-library-and-environment-variables.rst:
54 Add trailing newline.
55 * doc/openacc-library-interoperability.rst:
56 Add trailing newline.
57 * doc/openacc-profiling-interface.rst:
58 Add trailing newline.
59 * doc/openacc-runtime-library-routines.rst:
60 Add trailing newline.
61 * doc/openacc-runtime-library-routines/accasynctest.rst:
62 Add trailing newline.
63 * doc/openacc-runtime-library-routines/accasynctestall.rst:
64 Add trailing newline.
65 * doc/openacc-runtime-library-routines/accattach.rst:
66 Add trailing newline.
67 * doc/openacc-runtime-library-routines/acccopyin.rst:
68 Add trailing newline.
69 * doc/openacc-runtime-library-routines/acccopyout.rst:
70 Add trailing newline.
71 * doc/openacc-runtime-library-routines/acccreate.rst:
72 Add trailing newline.
73 * doc/openacc-runtime-library-routines/accdelete.rst:
74 Add trailing newline.
75 * doc/openacc-runtime-library-routines/accdetach.rst:
76 Add trailing newline.
77 * doc/openacc-runtime-library-routines/accdeviceptr.rst:
78 Add trailing newline.
79 * doc/openacc-runtime-library-routines/accfree.rst:
80 Add trailing newline.
81 * doc/openacc-runtime-library-routines/accgetcudastream.rst:
82 Add trailing newline.
83 * doc/openacc-runtime-library-routines/accgetcurrentcudacontext.rst:
84 Add trailing newline.
85 * doc/openacc-runtime-library-routines/accgetcurrentcudadevice.rst:
86 Add trailing newline.
87 * doc/openacc-runtime-library-routines/accgetdevicenum.rst:
88 Add trailing newline.
89 * doc/openacc-runtime-library-routines/accgetdevicetype.rst:
90 Add trailing newline.
91 * doc/openacc-runtime-library-routines/accgetnumdevices.rst:
92 Add trailing newline.
93 * doc/openacc-runtime-library-routines/accgetproperty.rst:
94 Add trailing newline.
95 * doc/openacc-runtime-library-routines/acchostptr.rst:
96 Add trailing newline.
97 * doc/openacc-runtime-library-routines/accinit.rst:
98 Add trailing newline.
99 * doc/openacc-runtime-library-routines/accispresent.rst:
100 Add trailing newline.
101 * doc/openacc-runtime-library-routines/accmalloc.rst:
102 Add trailing newline.
103 * doc/openacc-runtime-library-routines/accmapdata.rst:
104 Add trailing newline.
105 * doc/openacc-runtime-library-routines/accmemcpyfromdevice.rst:
106 Add trailing newline.
107 * doc/openacc-runtime-library-routines/accmemcpytodevice.rst:
108 Add trailing newline.
109 * doc/openacc-runtime-library-routines/accondevice.rst:
110 Add trailing newline.
111 * doc/openacc-runtime-library-routines/accpresentorcopyin.rst:
112 Add trailing newline.
113 * doc/openacc-runtime-library-routines/accpresentorcreate.rst:
114 Add trailing newline.
115 * doc/openacc-runtime-library-routines/accproflookup.rst:
116 Add trailing newline.
117 * doc/openacc-runtime-library-routines/accprofregister.rst:
118 Add trailing newline.
119 * doc/openacc-runtime-library-routines/accprofunregister.rst:
120 Add trailing newline.
121 * doc/openacc-runtime-library-routines/accregisterlibrary.rst:
122 Add trailing newline.
123 * doc/openacc-runtime-library-routines/accsetcudastream.rst:
124 Add trailing newline.
125 * doc/openacc-runtime-library-routines/accsetdevicenum.rst:
126 Add trailing newline.
127 * doc/openacc-runtime-library-routines/accsetdevicetype.rst:
128 Add trailing newline.
129 * doc/openacc-runtime-library-routines/accshutdown.rst:
130 Add trailing newline.
131 * doc/openacc-runtime-library-routines/accunmapdata.rst:
132 Add trailing newline.
133 * doc/openacc-runtime-library-routines/accupdatedevice.rst:
134 Add trailing newline.
135 * doc/openacc-runtime-library-routines/accupdateself.rst:
136 Add trailing newline.
137 * doc/openacc-runtime-library-routines/accwait.rst:
138 Add trailing newline.
139 * doc/openacc-runtime-library-routines/accwaitall.rst:
140 Add trailing newline.
141 * doc/openacc-runtime-library-routines/accwaitallasync.rst:
142 Add trailing newline.
143 * doc/openacc-runtime-library-routines/accwaitasync.rst:
144 Add trailing newline.
145 * doc/openmp-context-selectors.rst:
146 Add trailing newline.
147 * doc/openmp-environment-variables.rst:
148 Add trailing newline.
149 * doc/openmp-environment-variables/gompcpuaffinity.rst:
150 Add trailing newline.
151 * doc/openmp-environment-variables/gompdebug.rst:
152 Add trailing newline.
153 * doc/openmp-environment-variables/gomprtemsthreadpools.rst:
154 Add trailing newline.
155 * doc/openmp-environment-variables/gompspincount.rst:
156 Add trailing newline.
157 * doc/openmp-environment-variables/gompstacksize.rst:
158 Add trailing newline.
159 * doc/openmp-environment-variables/ompcancellation.rst:
160 Add trailing newline.
161 * doc/openmp-environment-variables/ompdefaultdevice.rst:
162 Add trailing newline.
163 * doc/openmp-environment-variables/ompdisplayenv.rst:
164 Add trailing newline.
165 * doc/openmp-environment-variables/ompdynamic.rst:
166 Add trailing newline.
167 * doc/openmp-environment-variables/ompmaxactivelevels.rst:
168 Add trailing newline.
169 * doc/openmp-environment-variables/ompmaxtaskpriority.rst:
170 Add trailing newline.
171 * doc/openmp-environment-variables/ompnested.rst:
172 Add trailing newline.
173 * doc/openmp-environment-variables/ompnumteams.rst:
174 Add trailing newline.
175 * doc/openmp-environment-variables/ompnumthreads.rst:
176 Add trailing newline.
177 * doc/openmp-environment-variables/ompplaces.rst:
178 Add trailing newline.
179 * doc/openmp-environment-variables/ompprocbind.rst:
180 Add trailing newline.
181 * doc/openmp-environment-variables/ompschedule.rst:
182 Add trailing newline.
183 * doc/openmp-environment-variables/ompstacksize.rst:
184 Add trailing newline.
185 * doc/openmp-environment-variables/omptargetoffload.rst:
186 Add trailing newline.
187 * doc/openmp-environment-variables/ompteamsthreadlimit.rst:
188 Add trailing newline.
189 * doc/openmp-environment-variables/ompthreadlimit.rst:
190 Add trailing newline.
191 * doc/openmp-environment-variables/ompwaitpolicy.rst:
192 Add trailing newline.
193 * doc/openmp-implementation-specifics.rst:
194 Add trailing newline.
195 * doc/openmp-implementation-status.rst:
196 Add trailing newline.
197 * doc/openmp-implementation-status/openmp-45.rst:
198 Add trailing newline.
199 * doc/openmp-implementation-status/openmp-50.rst:
200 Add trailing newline.
201 * doc/openmp-implementation-status/openmp-51.rst:
202 Add trailing newline.
203 * doc/openmp-implementation-status/openmp-52.rst:
204 Add trailing newline.
205 * doc/openmp-runtime-library-routines.rst:
206 Add trailing newline.
207 * doc/openmp-runtime-library-routines/ompdestroylock.rst:
208 Add trailing newline.
209 * doc/openmp-runtime-library-routines/ompdestroynestlock.rst:
210 Add trailing newline.
211 * doc/openmp-runtime-library-routines/ompfulfillevent.rst:
212 Add trailing newline.
213 * doc/openmp-runtime-library-routines/ompgetactivelevel.rst:
214 Add trailing newline.
215 * doc/openmp-runtime-library-routines/ompgetancestorthreadnum.rst:
216 Add trailing newline.
217 * doc/openmp-runtime-library-routines/ompgetcancellation.rst:
218 Add trailing newline.
219 * doc/openmp-runtime-library-routines/ompgetdefaultdevice.rst:
220 Add trailing newline.
221 * doc/openmp-runtime-library-routines/ompgetdevicenum.rst:
222 Add trailing newline.
223 * doc/openmp-runtime-library-routines/ompgetdynamic.rst:
224 Add trailing newline.
225 * doc/openmp-runtime-library-routines/ompgetinitialdevice.rst:
226 Add trailing newline.
227 * doc/openmp-runtime-library-routines/ompgetlevel.rst:
228 Add trailing newline.
229 * doc/openmp-runtime-library-routines/ompgetmaxactivelevels.rst:
230 Add trailing newline.
231 * doc/openmp-runtime-library-routines/ompgetmaxtaskpriority.rst:
232 Add trailing newline.
233 * doc/openmp-runtime-library-routines/ompgetmaxteams.rst:
234 Add trailing newline.
235 * doc/openmp-runtime-library-routines/ompgetmaxthreads.rst:
236 Add trailing newline.
237 * doc/openmp-runtime-library-routines/ompgetnested.rst:
238 Add trailing newline.
239 * doc/openmp-runtime-library-routines/ompgetnumdevices.rst:
240 Add trailing newline.
241 * doc/openmp-runtime-library-routines/ompgetnumprocs.rst:
242 Add trailing newline.
243 * doc/openmp-runtime-library-routines/ompgetnumteams.rst:
244 Add trailing newline.
245 * doc/openmp-runtime-library-routines/ompgetnumthreads.rst:
246 Add trailing newline.
247 * doc/openmp-runtime-library-routines/ompgetprocbind.rst:
248 Add trailing newline.
249 * doc/openmp-runtime-library-routines/ompgetschedule.rst:
250 Add trailing newline.
251 * doc/openmp-runtime-library-routines/ompgetsupportedactivelevels.rst:
252 Add trailing newline.
253 * doc/openmp-runtime-library-routines/ompgetteamnum.rst:
254 Add trailing newline.
255 * doc/openmp-runtime-library-routines/ompgetteamsize.rst:
256 Add trailing newline.
257 * doc/openmp-runtime-library-routines/ompgetteamsthreadlimit.rst:
258 Add trailing newline.
259 * doc/openmp-runtime-library-routines/ompgetthreadlimit.rst:
260 Add trailing newline.
261 * doc/openmp-runtime-library-routines/ompgetthreadnum.rst:
262 Add trailing newline.
263 * doc/openmp-runtime-library-routines/ompgetwtick.rst:
264 Add trailing newline.
265 * doc/openmp-runtime-library-routines/ompgetwtime.rst:
266 Add trailing newline.
267 * doc/openmp-runtime-library-routines/ompinfinal.rst:
268 Add trailing newline.
269 * doc/openmp-runtime-library-routines/ompinitlock.rst:
270 Add trailing newline.
271 * doc/openmp-runtime-library-routines/ompinitnestlock.rst:
272 Add trailing newline.
273 * doc/openmp-runtime-library-routines/ompinparallel.rst:
274 Add trailing newline.
275 * doc/openmp-runtime-library-routines/ompisinitialdevice.rst:
276 Add trailing newline.
277 * doc/openmp-runtime-library-routines/ompsetdefaultdevice.rst:
278 Add trailing newline.
279 * doc/openmp-runtime-library-routines/ompsetdynamic.rst:
280 Add trailing newline.
281 * doc/openmp-runtime-library-routines/ompsetlock.rst:
282 Add trailing newline.
283 * doc/openmp-runtime-library-routines/ompsetmaxactivelevels.rst:
284 Add trailing newline.
285 * doc/openmp-runtime-library-routines/ompsetnested.rst:
286 Add trailing newline.
287 * doc/openmp-runtime-library-routines/ompsetnestlock.rst:
288 Add trailing newline.
289 * doc/openmp-runtime-library-routines/ompsetnumteams.rst:
290 Add trailing newline.
291 * doc/openmp-runtime-library-routines/ompsetnumthreads.rst:
292 Add trailing newline.
293 * doc/openmp-runtime-library-routines/ompsetschedule.rst:
294 Add trailing newline.
295 * doc/openmp-runtime-library-routines/ompsetteamsthreadlimit.rst:
296 Add trailing newline.
297 * doc/openmp-runtime-library-routines/omptestlock.rst:
298 Add trailing newline.
299 * doc/openmp-runtime-library-routines/omptestnestlock.rst:
300 Add trailing newline.
301 * doc/openmp-runtime-library-routines/ompunsetlock.rst:
302 Add trailing newline.
303 * doc/openmp-runtime-library-routines/ompunsetnestlock.rst:
304 Add trailing newline.
305 * doc/reporting-bugs.rst:
306 Add trailing newline.
307 * doc/the-libgomp-abi.rst:
308 Add trailing newline.
309 * doc/the-libgomp-abi/implementing-atomic-construct.rst:
310 Add trailing newline.
311 * doc/the-libgomp-abi/implementing-barrier-construct.rst:
312 Add trailing newline.
313 * doc/the-libgomp-abi/implementing-critical-construct.rst:
314 Add trailing newline.
315 * doc/the-libgomp-abi/implementing-firstprivate-lastprivate-copyin-and-copyprivate-clauses.rst:
316 Add trailing newline.
317 * doc/the-libgomp-abi/implementing-flush-construct.rst:
318 Add trailing newline.
319 * doc/the-libgomp-abi/implementing-for-construct.rst:
320 Add trailing newline.
321 * doc/the-libgomp-abi/implementing-master-construct.rst:
322 Add trailing newline.
323 * doc/the-libgomp-abi/implementing-openaccs-parallel-construct.rst:
324 Add trailing newline.
325 * doc/the-libgomp-abi/implementing-ordered-construct.rst:
326 Add trailing newline.
327 * doc/the-libgomp-abi/implementing-parallel-construct.rst:
328 Add trailing newline.
329 * doc/the-libgomp-abi/implementing-private-clause.rst:
330 Add trailing newline.
331 * doc/the-libgomp-abi/implementing-reduction-clause.rst:
332 Add trailing newline.
333 * doc/the-libgomp-abi/implementing-sections-construct.rst:
334 Add trailing newline.
335 * doc/the-libgomp-abi/implementing-single-construct.rst:
336 Add trailing newline.
337 * doc/the-libgomp-abi/implementing-threadprivate-construct.rst:
338 Add trailing newline.
339
340 2022-11-09 Martin Liska <mliska@suse.cz>
341
342 * Makefile.in: Build info pages conditionally.
343
344 2022-11-09 Martin Liska <mliska@suse.cz>
345
346 * Makefile.in: Support --with-sphinx-build.
347 * configure.ac: Likewise..
348 * configure: Regenerate.
349
350 2022-11-09 Martin Liska <mliska@suse.cz>
351
352 * libgomp.texi: Removed.
353
354 2022-11-09 Martin Liska <mliska@suse.cz>
355
356 * Makefile.in: Support Sphinx based documentation.
357
358 2022-11-09 Martin Liska <mliska@suse.cz>
359
360 * doc/amd-radeon-gcn.rst: New file.
361 * doc/conf.py: New file.
362 * doc/copyright.rst: New file.
363 * doc/cuda-streams-usage.rst: New file.
364 * doc/enabling-openacc.rst: New file.
365 * doc/enabling-openmp.rst: New file.
366 * doc/first-invocation-nvidia-cublas-library-api.rst: New file.
367 * doc/first-invocation-openacc-library-api.rst: New file.
368 * doc/funding.rst: New file.
369 * doc/general-public-license-3.rst: New file.
370 * doc/gnu-free-documentation-license.rst: New file.
371 * doc/implementation-status-and-implementation-defined-behavior.rst: New file.
372 * doc/index.rst: New file.
373 * doc/indices-and-tables.rst: New file.
374 * doc/introduction.rst: New file.
375 * doc/memory-allocation-with-libmemkind.rst: New file.
376 * doc/nvptx.rst: New file.
377 * doc/offload-target-specifics.rst: New file.
378 * doc/openacc-environment-variables.rst: New file.
379 * doc/openacc-environment-variables/accdevicenum.rst: New file.
380 * doc/openacc-environment-variables/accdevicetype.rst: New file.
381 * doc/openacc-environment-variables/accproflib.rst: New file.
382 * doc/openacc-environment-variables/gccaccnotify.rst: New file.
383 * doc/openacc-introduction.rst: New file.
384 * doc/openacc-library-and-environment-variables.rst: New file.
385 * doc/openacc-library-interoperability.rst: New file.
386 * doc/openacc-profiling-interface.rst: New file.
387 * doc/openacc-runtime-library-routines.rst: New file.
388 * doc/openacc-runtime-library-routines/accasynctest.rst: New file.
389 * doc/openacc-runtime-library-routines/accasynctestall.rst: New file.
390 * doc/openacc-runtime-library-routines/accattach.rst: New file.
391 * doc/openacc-runtime-library-routines/acccopyin.rst: New file.
392 * doc/openacc-runtime-library-routines/acccopyout.rst: New file.
393 * doc/openacc-runtime-library-routines/acccreate.rst: New file.
394 * doc/openacc-runtime-library-routines/accdelete.rst: New file.
395 * doc/openacc-runtime-library-routines/accdetach.rst: New file.
396 * doc/openacc-runtime-library-routines/accdeviceptr.rst: New file.
397 * doc/openacc-runtime-library-routines/accfree.rst: New file.
398 * doc/openacc-runtime-library-routines/accgetcudastream.rst: New file.
399 * doc/openacc-runtime-library-routines/accgetcurrentcudacontext.rst: New file.
400 * doc/openacc-runtime-library-routines/accgetcurrentcudadevice.rst: New file.
401 * doc/openacc-runtime-library-routines/accgetdevicenum.rst: New file.
402 * doc/openacc-runtime-library-routines/accgetdevicetype.rst: New file.
403 * doc/openacc-runtime-library-routines/accgetnumdevices.rst: New file.
404 * doc/openacc-runtime-library-routines/accgetproperty.rst: New file.
405 * doc/openacc-runtime-library-routines/acchostptr.rst: New file.
406 * doc/openacc-runtime-library-routines/accinit.rst: New file.
407 * doc/openacc-runtime-library-routines/accispresent.rst: New file.
408 * doc/openacc-runtime-library-routines/accmalloc.rst: New file.
409 * doc/openacc-runtime-library-routines/accmapdata.rst: New file.
410 * doc/openacc-runtime-library-routines/accmemcpyfromdevice.rst: New file.
411 * doc/openacc-runtime-library-routines/accmemcpytodevice.rst: New file.
412 * doc/openacc-runtime-library-routines/accondevice.rst: New file.
413 * doc/openacc-runtime-library-routines/accpresentorcopyin.rst: New file.
414 * doc/openacc-runtime-library-routines/accpresentorcreate.rst: New file.
415 * doc/openacc-runtime-library-routines/accproflookup.rst: New file.
416 * doc/openacc-runtime-library-routines/accprofregister.rst: New file.
417 * doc/openacc-runtime-library-routines/accprofunregister.rst: New file.
418 * doc/openacc-runtime-library-routines/accregisterlibrary.rst: New file.
419 * doc/openacc-runtime-library-routines/accsetcudastream.rst: New file.
420 * doc/openacc-runtime-library-routines/accsetdevicenum.rst: New file.
421 * doc/openacc-runtime-library-routines/accsetdevicetype.rst: New file.
422 * doc/openacc-runtime-library-routines/accshutdown.rst: New file.
423 * doc/openacc-runtime-library-routines/accunmapdata.rst: New file.
424 * doc/openacc-runtime-library-routines/accupdatedevice.rst: New file.
425 * doc/openacc-runtime-library-routines/accupdateself.rst: New file.
426 * doc/openacc-runtime-library-routines/accwait.rst: New file.
427 * doc/openacc-runtime-library-routines/accwaitall.rst: New file.
428 * doc/openacc-runtime-library-routines/accwaitallasync.rst: New file.
429 * doc/openacc-runtime-library-routines/accwaitasync.rst: New file.
430 * doc/openmp-context-selectors.rst: New file.
431 * doc/openmp-environment-variables.rst: New file.
432 * doc/openmp-environment-variables/gompcpuaffinity.rst: New file.
433 * doc/openmp-environment-variables/gompdebug.rst: New file.
434 * doc/openmp-environment-variables/gomprtemsthreadpools.rst: New file.
435 * doc/openmp-environment-variables/gompspincount.rst: New file.
436 * doc/openmp-environment-variables/gompstacksize.rst: New file.
437 * doc/openmp-environment-variables/ompcancellation.rst: New file.
438 * doc/openmp-environment-variables/ompdefaultdevice.rst: New file.
439 * doc/openmp-environment-variables/ompdisplayenv.rst: New file.
440 * doc/openmp-environment-variables/ompdynamic.rst: New file.
441 * doc/openmp-environment-variables/ompmaxactivelevels.rst: New file.
442 * doc/openmp-environment-variables/ompmaxtaskpriority.rst: New file.
443 * doc/openmp-environment-variables/ompnested.rst: New file.
444 * doc/openmp-environment-variables/ompnumteams.rst: New file.
445 * doc/openmp-environment-variables/ompnumthreads.rst: New file.
446 * doc/openmp-environment-variables/ompplaces.rst: New file.
447 * doc/openmp-environment-variables/ompprocbind.rst: New file.
448 * doc/openmp-environment-variables/ompschedule.rst: New file.
449 * doc/openmp-environment-variables/ompstacksize.rst: New file.
450 * doc/openmp-environment-variables/omptargetoffload.rst: New file.
451 * doc/openmp-environment-variables/ompteamsthreadlimit.rst: New file.
452 * doc/openmp-environment-variables/ompthreadlimit.rst: New file.
453 * doc/openmp-environment-variables/ompwaitpolicy.rst: New file.
454 * doc/openmp-implementation-specifics.rst: New file.
455 * doc/openmp-implementation-status.rst: New file.
456 * doc/openmp-implementation-status/openmp-45.rst: New file.
457 * doc/openmp-implementation-status/openmp-50.rst: New file.
458 * doc/openmp-implementation-status/openmp-51.rst: New file.
459 * doc/openmp-implementation-status/openmp-52.rst: New file.
460 * doc/openmp-runtime-library-routines.rst: New file.
461 * doc/openmp-runtime-library-routines/ompdestroylock.rst: New file.
462 * doc/openmp-runtime-library-routines/ompdestroynestlock.rst: New file.
463 * doc/openmp-runtime-library-routines/ompfulfillevent.rst: New file.
464 * doc/openmp-runtime-library-routines/ompgetactivelevel.rst: New file.
465 * doc/openmp-runtime-library-routines/ompgetancestorthreadnum.rst: New file.
466 * doc/openmp-runtime-library-routines/ompgetcancellation.rst: New file.
467 * doc/openmp-runtime-library-routines/ompgetdefaultdevice.rst: New file.
468 * doc/openmp-runtime-library-routines/ompgetdevicenum.rst: New file.
469 * doc/openmp-runtime-library-routines/ompgetdynamic.rst: New file.
470 * doc/openmp-runtime-library-routines/ompgetinitialdevice.rst: New file.
471 * doc/openmp-runtime-library-routines/ompgetlevel.rst: New file.
472 * doc/openmp-runtime-library-routines/ompgetmaxactivelevels.rst: New file.
473 * doc/openmp-runtime-library-routines/ompgetmaxtaskpriority.rst: New file.
474 * doc/openmp-runtime-library-routines/ompgetmaxteams.rst: New file.
475 * doc/openmp-runtime-library-routines/ompgetmaxthreads.rst: New file.
476 * doc/openmp-runtime-library-routines/ompgetnested.rst: New file.
477 * doc/openmp-runtime-library-routines/ompgetnumdevices.rst: New file.
478 * doc/openmp-runtime-library-routines/ompgetnumprocs.rst: New file.
479 * doc/openmp-runtime-library-routines/ompgetnumteams.rst: New file.
480 * doc/openmp-runtime-library-routines/ompgetnumthreads.rst: New file.
481 * doc/openmp-runtime-library-routines/ompgetprocbind.rst: New file.
482 * doc/openmp-runtime-library-routines/ompgetschedule.rst: New file.
483 * doc/openmp-runtime-library-routines/ompgetsupportedactivelevels.rst: New file.
484 * doc/openmp-runtime-library-routines/ompgetteamnum.rst: New file.
485 * doc/openmp-runtime-library-routines/ompgetteamsize.rst: New file.
486 * doc/openmp-runtime-library-routines/ompgetteamsthreadlimit.rst: New file.
487 * doc/openmp-runtime-library-routines/ompgetthreadlimit.rst: New file.
488 * doc/openmp-runtime-library-routines/ompgetthreadnum.rst: New file.
489 * doc/openmp-runtime-library-routines/ompgetwtick.rst: New file.
490 * doc/openmp-runtime-library-routines/ompgetwtime.rst: New file.
491 * doc/openmp-runtime-library-routines/ompinfinal.rst: New file.
492 * doc/openmp-runtime-library-routines/ompinitlock.rst: New file.
493 * doc/openmp-runtime-library-routines/ompinitnestlock.rst: New file.
494 * doc/openmp-runtime-library-routines/ompinparallel.rst: New file.
495 * doc/openmp-runtime-library-routines/ompisinitialdevice.rst: New file.
496 * doc/openmp-runtime-library-routines/ompsetdefaultdevice.rst: New file.
497 * doc/openmp-runtime-library-routines/ompsetdynamic.rst: New file.
498 * doc/openmp-runtime-library-routines/ompsetlock.rst: New file.
499 * doc/openmp-runtime-library-routines/ompsetmaxactivelevels.rst: New file.
500 * doc/openmp-runtime-library-routines/ompsetnested.rst: New file.
501 * doc/openmp-runtime-library-routines/ompsetnestlock.rst: New file.
502 * doc/openmp-runtime-library-routines/ompsetnumteams.rst: New file.
503 * doc/openmp-runtime-library-routines/ompsetnumthreads.rst: New file.
504 * doc/openmp-runtime-library-routines/ompsetschedule.rst: New file.
505 * doc/openmp-runtime-library-routines/ompsetteamsthreadlimit.rst: New file.
506 * doc/openmp-runtime-library-routines/omptestlock.rst: New file.
507 * doc/openmp-runtime-library-routines/omptestnestlock.rst: New file.
508 * doc/openmp-runtime-library-routines/ompunsetlock.rst: New file.
509 * doc/openmp-runtime-library-routines/ompunsetnestlock.rst: New file.
510 * doc/reporting-bugs.rst: New file.
511 * doc/the-libgomp-abi.rst: New file.
512 * doc/the-libgomp-abi/implementing-atomic-construct.rst: New file.
513 * doc/the-libgomp-abi/implementing-barrier-construct.rst: New file.
514 * doc/the-libgomp-abi/implementing-critical-construct.rst: New file.
515 * doc/the-libgomp-abi/implementing-firstprivate-lastprivate-copyin-and-copyprivate-clauses.rst:
516 New file.
517 * doc/the-libgomp-abi/implementing-flush-construct.rst: New file.
518 * doc/the-libgomp-abi/implementing-for-construct.rst: New file.
519 * doc/the-libgomp-abi/implementing-master-construct.rst: New file.
520 * doc/the-libgomp-abi/implementing-openaccs-parallel-construct.rst: New file.
521 * doc/the-libgomp-abi/implementing-ordered-construct.rst: New file.
522 * doc/the-libgomp-abi/implementing-parallel-construct.rst: New file.
523 * doc/the-libgomp-abi/implementing-private-clause.rst: New file.
524 * doc/the-libgomp-abi/implementing-reduction-clause.rst: New file.
525 * doc/the-libgomp-abi/implementing-sections-construct.rst: New file.
526 * doc/the-libgomp-abi/implementing-single-construct.rst: New file.
527 * doc/the-libgomp-abi/implementing-threadprivate-construct.rst: New file.
528
529 2022-11-04 Thomas Schwinge <thomas@codesourcery.com>
530
531 * libgomp-plugin.h (OFFLOAD_TARGET_TYPE_INTEL_MIC): Remove.
532 * libgomp.texi (OpenMP Context Selectors): Remove Intel MIC
533 documentation.
534 * plugin/configfrag.ac <enable_offload_targets>
535 [*-intelmic-* | *-intelmicemul-*]: Remove.
536 * configure: Regenerate.
537 * testsuite/lib/libgomp.exp (libgomp_init): Remove 'liboffloadmic'
538 handling.
539 (offload_target_to_openacc_device_type)
540 [$offload_target = *-intelmic*]: Remove.
541 (check_effective_target_offload_device_intel_mic)
542 (check_effective_target_offload_device_any_intel_mic): Remove.
543 * testsuite/libgomp.c-c++-common/on_device_arch.h
544 (device_arch_intel_mic, on_device_arch_intel_mic, any_device_arch)
545 (any_device_arch_intel_mic): Remove.
546 * testsuite/libgomp.c-c++-common/target-45.c: Remove
547 'offload_device_any_intel_mic' XFAIL.
548 * testsuite/libgomp.fortran/target10.f90: Likewise.
549
550 2022-11-03 Tobias Burnus <tobias@codesourcery.com>
551
552 * testsuite/libgomp.fortran/target-11.f90: New test.
553 * testsuite/libgomp.fortran/target-13.f90: New test.
554
555 2022-11-02 Thomas Schwinge <thomas@codesourcery.com>
556
557 PR libgomp/106643
558 PR fortran/96668
559 * oacc-mem.c (goacc_enter_data_internal): Support
560 OpenACC 'declare create' with Fortran allocatable arrays, part II.
561 * testsuite/libgomp.oacc-fortran/declare-allocatable-array_descriptor-1-directive.f90:
562 Adjust.
563 * testsuite/libgomp.oacc-fortran/pr106643-1.f90: New.
564
565 2022-11-02 Thomas Schwinge <thomas@codesourcery.com>
566
567 PR libgomp/106643
568 * oacc-mem.c (goacc_enter_data_internal): Support
569 OpenACC 'declare create' with Fortran allocatable arrays, part I.
570 * testsuite/libgomp.oacc-fortran/declare-allocatable-1-directive.f90:
571 New.
572 * testsuite/libgomp.oacc-fortran/declare-allocatable-array_descriptor-1-directive.f90:
573 New.
574
575 2022-11-02 Thomas Schwinge <thomas@codesourcery.com>
576
577 * testsuite/libgomp.oacc-fortran/declare-allocatable-array_descriptor-1-runtime.f90:
578 New.
579
580 2022-11-02 Thomas Schwinge <thomas@codesourcery.com>
581
582 * testsuite/libgomp.oacc-fortran/declare-allocatable-1-runtime.f90:
583 New.
584
585 2022-11-02 Cesar Philippidis <cesar@codesourcery.com>
586 Thomas Schwinge <thomas@codesourcery.com>
587
588 * testsuite/libgomp.oacc-fortran/declare-allocatable-1.f90: New.
589
590 2022-10-28 Julian Brown <julian@codesourcery.com>
591 Thomas Schwinge <thomas@codesourcery.com>
592
593 PR middle-end/90115
594 * testsuite/libgomp.oacc-fortran/declare-1.f90: Adjust scan output.
595 * testsuite/libgomp.oacc-fortran/host_data-5.F90: Likewise.
596 * testsuite/libgomp.oacc-fortran/if-1.f90: Likewise.
597 * testsuite/libgomp.oacc-fortran/print-1.f90: Likewise.
598 * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Likewise.
599
600 2022-10-24 Thomas Schwinge <thomas@codesourcery.com>
601
602 * plugin/plugin-nvptx.c (nvptx_open_device): Initialize
603 'ptx_dev->rev_data'.
604
605 2022-10-24 Tobias Burnus <tobias@codesourcery.com>
606
607 * config/nvptx/icv-device.c (GOMP_DEVICE_NUM_VAR): Remove
608 'static' for this variable.
609 * config/nvptx/libgomp-nvptx.h: New file.
610 * config/nvptx/target.c: Include it.
611 (GOMP_ADDITIONAL_ICVS): Declare extern var.
612 (GOMP_REV_OFFLOAD_VAR): Declare var.
613 (GOMP_target_ext): Handle reverse offload.
614 * libgomp-plugin.h (GOMP_PLUGIN_target_rev): New prototype.
615 * libgomp-plugin.c (GOMP_PLUGIN_target_rev): New, call ...
616 * target.c (gomp_target_rev): ... this new stub function.
617 * libgomp.h (gomp_target_rev): Declare.
618 * libgomp.map (GOMP_PLUGIN_1.4): New; add GOMP_PLUGIN_target_rev.
619 * plugin/cuda-lib.def (cuMemHostAlloc): Add.
620 * plugin/plugin-nvptx.c: Include libgomp-nvptx.h.
621 (struct ptx_device): Add rev_data member.
622 (nvptx_open_device): Remove async_engines query, last used in
623 r10-304-g1f4c5b9b; add unified-address assert check.
624 (GOMP_OFFLOAD_get_num_devices): Claim unified address
625 support.
626 (GOMP_OFFLOAD_load_image): Free rev_fn_table if no
627 offload functions exist. Make offload var available
628 on host and device.
629 (rev_off_dev_to_host_cpy, rev_off_host_to_dev_cpy): New.
630 (GOMP_OFFLOAD_run): Handle reverse offload.
631
632 2022-10-21 Thomas Schwinge <thomas@codesourcery.com>
633
634 PR tree-optimization/107195
635 PR target/107344
636 * testsuite/libgomp.oacc-c-c++-common/nvptx-sese-1.c: Restore SESE
637 regions checking.
638
639 2022-10-20 Tobias Burnus <tobias@codesourcery.com>
640
641 * testsuite/lib/libgomp.exp (check_effective_target_offload_device_gcn):
642 New.
643 * testsuite/libgomp.c-c++-common/on_device_arch.h (device_arch_gcn,
644 on_device_arch_gcn): New.
645 * testsuite/libgomp.c-c++-common/requires-4a.c: New test; copied from
646 requires-4.c but using heap-allocated memory.
647
648 2022-10-20 Thomas Schwinge <thomas@codesourcery.com>
649
650 PR target/105421
651 * testsuite/libgomp.oacc-c-c++-common/private-big-1.c: New.
652
653 2022-10-17 Thomas Schwinge <thomas@codesourcery.com>
654
655 * testsuite/libgomp.c/reverse-offload-sm30.c: Fix nvptx-specific
656 '-foffload-options' syntax.
657
658 2022-10-13 Tobias Burnus <tobias@codesourcery.com>
659
660 * testsuite/libgomp.fortran/task-7.f90: New test.
661 * testsuite/libgomp.fortran/task-8.f90: New test.
662 * testsuite/libgomp.fortran/task-in-explicit-1.f90: New test.
663 * testsuite/libgomp.fortran/task-in-explicit-2.f90: New test.
664 * testsuite/libgomp.fortran/task-in-explicit-3.f90: New test.
665 * testsuite/libgomp.fortran/task-reduction-17.f90: New test.
666 * testsuite/libgomp.fortran/task-reduction-18.f90: New test.
667
668 2022-10-12 Jakub Jelinek <jakub@redhat.com>
669
670 * libgomp.texi (OpenMP 5.2): Fix up allocator -> allocate directive
671 in deprecation bullet.
672
673 2022-10-12 Jakub Jelinek <jakub@redhat.com>
674
675 * omp.h.in (omp_in_explicit_task): Declare.
676 * omp_lib.h.in (omp_in_explicit_task): Likewise.
677 * omp_lib.f90.in (omp_in_explicit_task): New interface.
678 * libgomp.map (OMP_5.2): New symbol version, export
679 omp_in_explicit_task and omp_in_explicit_task_.
680 * task.c (omp_in_explicit_task): New function.
681 * fortran.c (omp_in_explicit_task): Add ialias_redirect.
682 (omp_in_explicit_task_): New function.
683 * libgomp.texi (OpenMP 5.2): Mark omp_in_explicit_task as implemented.
684 * testsuite/libgomp.c-c++-common/task-in-explicit-1.c: New test.
685 * testsuite/libgomp.c-c++-common/task-in-explicit-2.c: New test.
686 * testsuite/libgomp.c-c++-common/task-in-explicit-3.c: New test.
687
688 2022-10-12 Jakub Jelinek <jakub@redhat.com>
689
690 * task.c (gomp_create_artificial_team): Fix up handling of invocations
691 from within explicit task.
692 * target.c (GOMP_target_ext): Likewise.
693 * testsuite/libgomp.c/task-7.c: New test.
694 * testsuite/libgomp.c/task-8.c: New test.
695 * testsuite/libgomp.c-c++-common/task-reduction-17.c: New test.
696 * testsuite/libgomp.c-c++-common/task-reduction-18.c: New test.
697
698 2022-10-12 Martin Liska <mliska@suse.cz>
699
700 * configure: Regenerate.
701
702 2022-10-11 Olivier Hainque <hainque@adacore.com>
703 Olivier Hainque <hainque@adacore.com>
704
705 * configure: Regenerate.
706
707 2022-10-05 Tobias Burnus <tobias@codesourcery.com>
708
709 * libgomp.texi (OpenMP 5.1 Impl. Status): Mark 'assume' as 'Y'.
710
711 2022-10-04 Jakub Jelinek <jakub@redhat.com>
712
713 * libgomp.texi (Support begin/end declare target syntax in C/C++):
714 Mark as implemented.
715
716 2022-09-30 Tobias Burnus <tobias@codesourcery.com>
717
718 PR fortran/105318
719 * testsuite/libgomp.fortran/is_device_ptr-2.f90: New test.
720
721 2022-09-28 Tobias Burnus <tobias@codesourcery.com>
722
723 * libgomp.texi (OpenMP 5.1): Mark 'assume' as implemented
724 for C/C++. Remove duplicated 'begin declare target' entry.
725
726 2022-09-24 Jakub Jelinek <jakub@redhat.com>
727
728 PR c/106981
729 * testsuite/libgomp.c-c++-common/pr106981.c: New test.
730
731 2022-09-14 Julian Brown <julian@codesourcery.com>
732
733 * testsuite/libgomp.oacc-c-c++-common/deep-copy-15.c: New test.
734 * testsuite/libgomp.oacc-c-c++-common/deep-copy-16.c: New test.
735 * testsuite/libgomp.oacc-c++/deep-copy-17.C: New test.
736 * testsuite/libgomp.oacc-c-c++-common/deep-copy-arrayofstruct.c: Move
737 test to here, make "run" test.
738
739 2022-09-13 Jakub Jelinek <jakub@redhat.com>
740
741 PR libgomp/106906
742 * env.c (get_icv_member_addr): Cast false to void * before assigning
743 it to icv_addr[1], and comment the whole assignment out.
744
745 2022-09-13 Tobias Burnus <tobias@codesourcery.com>
746
747 * libgomp.texi (gcn): Move misplaced -march=sm_30 remark to ...
748 (nvptx): ... here.
749
750 2022-09-12 Tobias Burnus <tobias@codesourcery.com>
751
752 * libgomp.texi (Offload-Target Specifics: nvptx): Document
753 that reverse offload requires >= -march=sm_35.
754 * testsuite/libgomp.c-c++-common/requires-4.c: Build for nvptx
755 with -misa=sm_35.
756 * testsuite/libgomp.c-c++-common/requires-5.c: Likewise.
757 * testsuite/libgomp.c-c++-common/requires-6.c: Likewise.
758 * testsuite/libgomp.c-c++-common/reverse-offload-1.c: Likewise.
759 * testsuite/libgomp.fortran/reverse-offload-1.f90: Likewise.
760 * testsuite/libgomp.c/reverse-offload-sm30.c: New test.
761
762 2022-09-12 Tobias Burnus <tobias@codesourcery.com>
763
764 * libgomp.texi (OpenMP 5.1 Impl. Status): Add two new minor items.
765 (OpenMP 5.2 Impl. Status): Improve omp/omx/ompx wording.
766
767 2022-09-12 Jakub Jelinek <jakub@redhat.com>
768
769 PR libgomp/106894
770 * testsuite/libgomp.c-c++-common/icv-6.c: Include string.h.
771 (main): Avoid tests for which corresponding non-_ALL suffixed variable
772 is in the environment, or for OMP_NUM_TEAMS on the device
773 OMP_NUM_TEAMS_DEV_?.
774
775 2022-09-10 Iain Sandoe <iain@sandoe.co.uk>
776
777 * env.c (initialize_env): Include libiberty environ.h.
778
779 2022-09-09 Tobias Burnus <tobias@codesourcery.com>
780
781 * plugin/plugin-nvptx.c (GOMP_OFFLOAD_load_image): Read offload
782 function address table '$offload_func_table' if rev_fn_table
783 is not NULL.
784
785 2022-09-09 Tobias Burnus <tobias@codesourcery.com>
786
787 * plugin/plugin-gcn.c (GOMP_OFFLOAD_load_image): Read
788 .offload_func_table to populate rev_fn_table when requested.
789
790 2022-09-09 Tobias Burnus <tobias@codesourcery.com>
791
792 * libgomp-plugin.h (GOMP_OFFLOAD_load_image): Add
793 'uint64_t **rev_fn_table' argument.
794 * oacc-host.c (host_load_image): Likewise.
795 * plugin/plugin-gcn.c (GOMP_OFFLOAD_load_image): Likewise;
796 currently unused.
797 * plugin/plugin-nvptx.c (GOMP_OFFLOAD_load_image): Likewise.
798 * target.c (gomp_load_image_to_device): Update call but pass
799 NULL for now.
800
801 2022-09-09 Jakub Jelinek <jakub@redhat.com>
802
803 PR libgomp/106894
804 * env.c (initialize_env) <case PARSE_BIND>: Use char ** instead of
805 char * for dest[1] initialization from params[1]. Formatting fixes.
806
807 2022-09-08 Tobias Burnus <tobias@codesourcery.com>
808
809 PR fortran/106670
810 * libgomp.texi (OpenMP 5.2): Add comment to ompx/omx entry.
811
812 2022-09-08 Tobias Burnus <tobias@codesourcery.com>
813
814 * libgomp.texi (OpenMP-Implementation Specifics): New; add libmemkind
815 section; move OpenMP Context Selectors from ...
816 (Offload-Target Specifics): ... here; add 'AMD Radeo (GCN)' and
817 'nvptx' sections.
818
819 2022-09-08 Marcel Vollweiler <marcel@codesourcery.com>
820
821 * config/gcn/icv-device.c (omp_get_default_device): Return device-
822 specific ICV.
823 (omp_get_max_teams): Added for GCN devices.
824 (omp_set_num_teams): Likewise.
825 (ialias): Likewise.
826 * config/nvptx/icv-device.c (omp_get_default_device): Return device-
827 specific ICV.
828 (omp_get_max_teams): Added for NVPTX devices.
829 (omp_set_num_teams): Likewise.
830 (ialias): Likewise.
831 * env.c (struct gomp_icv_list): New struct to store entries of initial
832 ICV values.
833 (struct gomp_offload_icv_list): New struct to store entries of device-
834 specific ICV values that are copied to the device and back.
835 (struct gomp_default_icv_values): New struct to store default values of
836 ICVs according to the OpenMP standard.
837 (parse_schedule): Generalized for different variants of OMP_SCHEDULE.
838 (print_env_var_error): Function that prints an error for invalid values
839 for ICVs.
840 (parse_unsigned_long_1): Removed getenv. Generalized.
841 (parse_unsigned_long): Likewise.
842 (parse_int_1): Likewise.
843 (parse_int): Likewise.
844 (parse_int_secure): Likewise.
845 (parse_unsigned_long_list): Likewise.
846 (parse_target_offload): Likewise.
847 (parse_bind_var): Likewise.
848 (parse_stacksize): Likewise.
849 (parse_boolean): Likewise.
850 (parse_wait_policy): Likewise.
851 (parse_allocator): Likewise.
852 (omp_display_env): Extended to output different variants of environment
853 variables.
854 (print_schedule): New helper function for omp_display_env which prints
855 the values of run_sched_var.
856 (print_proc_bind): New helper function for omp_display_env which prints
857 the values of proc_bind_var.
858 (enum gomp_parse_type): Collection of types used for parsing environment
859 variables.
860 (ENTRY): Preprocess string lengths of environment variables.
861 (OMP_VAR_CNT): Preprocess table size.
862 (OMP_HOST_VAR_CNT): Likewise.
863 (INT_MAX_STR_LEN): Constant for the maximal number of digits of a device
864 number.
865 (gomp_get_icv_flag): Returns if a flag for a particular ICV is set.
866 (gomp_set_icv_flag): Sets a flag for a particular ICV.
867 (print_device_specific_icvs): New helper function for omp_display_env to
868 print device specific ICV values.
869 (get_device_num): New helper function for parse_device_specific.
870 Extracts the device number from an environment variable name.
871 (get_icv_member_addr): Gets the memory address for a particular member
872 of an ICV struct.
873 (gomp_get_initial_icv_item): Get a list item of gomp_initial_icv_list.
874 (initialize_icvs): New function to initialize a gomp_initial_icvs
875 struct.
876 (add_initial_icv_to_list): Adds an ICV struct to gomp_initial_icv_list.
877 (startswith): Checks if a string starts with a given prefix.
878 (initialize_env): Extended to parse the new syntax of environment
879 variables.
880 * icv-device.c (omp_get_max_teams): Added.
881 (ialias): Likewise.
882 (omp_set_num_teams): Likewise.
883 * icv.c (omp_set_num_teams): Moved to icv-device.c.
884 (omp_get_max_teams): Likewise.
885 (ialias): Likewise.
886 * libgomp-plugin.h (GOMP_DEVICE_NUM_VAR): Removed.
887 (GOMP_ADDITIONAL_ICVS): New target-side struct that
888 holds the designated ICVs of the target device.
889 * libgomp.h (enum gomp_icvs): Collection of ICVs.
890 (enum gomp_device_num): Definition of device numbers for _ALL, _DEV, and
891 no suffix.
892 (enum gomp_env_suffix): Collection of possible suffixes of environment
893 variables.
894 (struct gomp_initial_icvs): Contains all ICVs for which we need to store
895 initial values.
896 (struct gomp_default_icv):New struct to hold ICVs for which we need
897 to store initial values.
898 (struct gomp_icv_list): Definition of a linked list that is used for
899 storing ICVs for the devices and also for _DEV, _ALL, and without
900 suffix.
901 (struct gomp_offload_icvs): New struct to hold ICVs that are copied to
902 a device.
903 (struct gomp_offload_icv_list): Definition of a linked list that holds
904 device-specific ICVs that are copied to devices.
905 (gomp_get_initial_icv_item): Get a list item of gomp_initial_icv_list.
906 (gomp_get_icv_flag): Returns if a flag for a particular ICV is set.
907 * libgomp.texi: Updated.
908 * plugin/plugin-gcn.c (GOMP_OFFLOAD_load_image): Extended to read
909 further ICVs from the offload image.
910 * plugin/plugin-nvptx.c (GOMP_OFFLOAD_load_image): Likewise.
911 * target.c (gomp_get_offload_icv_item): Get a list item of
912 gomp_offload_icv_list.
913 (get_gomp_offload_icvs): New. Returns the ICV values
914 depending on the device num and the variable hierarchy.
915 (gomp_load_image_to_device): Extended to copy further ICVs to a device.
916 * testsuite/libgomp.c-c++-common/icv-5.c: New test.
917 * testsuite/libgomp.c-c++-common/icv-6.c: New test.
918 * testsuite/libgomp.c-c++-common/icv-7.c: New test.
919 * testsuite/libgomp.c-c++-common/icv-8.c: New test.
920 * testsuite/libgomp.c-c++-common/omp-display-env-1.c: New test.
921 * testsuite/libgomp.c-c++-common/omp-display-env-2.c: New test.
922
923 2022-09-08 Jakub Jelinek <jakub@redhat.com>
924
925 * libgomp.texi (OpenMP 5.2): Mention that omp_cur_iteration is now
926 fully supported.
927 * testsuite/libgomp.c/doacross-4.c: New test.
928 * testsuite/libgomp.c/doacross-5.c: New test.
929 * testsuite/libgomp.c/doacross-6.c: New test.
930 * testsuite/libgomp.c/doacross-7.c: New test.
931
932 2022-09-05 Tobias Burnus <tobias@codesourcery.com>
933
934 * libgomp.texi (OpenMP 5.2): Update doacross/omp_cur_iteration status.
935
936 2022-08-26 Tobias Burnus <tobias@codesourcery.com>
937
938 * libgomp.texi (OpenMP 5.0): Mark 'ancestor' as implemented but
939 refer to 'requires'.
940 * testsuite/libgomp.c-c++-common/reverse-offload-1-aux.c: New test.
941 * testsuite/libgomp.c-c++-common/reverse-offload-1.c: New test.
942 * testsuite/libgomp.fortran/reverse-offload-1-aux.f90: New test.
943 * testsuite/libgomp.fortran/reverse-offload-1.f90: New test.
944
945 2022-08-17 Tobias Burnus <tobias@codesourcery.com>
946
947 PR middle-end/106548
948 * testsuite/libgomp.c/linear-2.c: New test.
949
950 2022-08-17 Tobias Burnus <tobias@codesourcery.com>
951
952 * splay-tree.h: Fix splay_* macro unsetting if
953 splay_tree_prefix is defined.
954
955 2022-07-29 Tobias Burnus <tobias@codesourcery.com>
956
957 * testsuite/libgomp.c-c++-common/pr106449-2.c: New test.
958
959 2022-07-29 Jakub Jelinek <jakub@redhat.com>
960
961 PR middle-end/106449
962 * testsuite/libgomp.c-c++-common/pr106449.c: New test.
963
964 2022-07-12 Tobias Burnus <tobias@codesourcery.com>
965
966 * target.c (gomp_target_init): Added tailing '\n' to gomp_debug.
967
968 2022-07-12 Thomas Schwinge <thomas@codesourcery.com>
969
970 PR middle-end/101551
971 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: XFAIL
972 'offloading_enabled' diagnostics issue.
973
974 2022-07-11 Thomas Schwinge <thomas@codesourcery.com>
975
976 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Enhance
977 '_Pragma' diagnostics verification.
978
979 2022-07-10 Lewis Hyatt <lhyatt@gmail.com>
980
981 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Adapt for
982 improved warning locations.
983 * testsuite/libgomp.oacc-c-c++-common/vred2d-128.c: Likewise.
984
985 2022-07-08 Thomas Schwinge <thomas@codesourcery.com>
986
987 * testsuite/libgomp.c-c++-common/requires-1.c: Add 'dg-note's.
988 * testsuite/libgomp.c-c++-common/requires-2.c: Likewise.
989 * testsuite/libgomp.c-c++-common/requires-3.c: Likewise.
990 * testsuite/libgomp.c-c++-common/requires-7.c: Likewise.
991 * testsuite/libgomp.fortran/requires-1.f90: Likewise.
992
993 2022-07-07 Thomas Schwinge <thomas@codesourcery.com>
994
995 * target.c (GOMP_offload_register, GOMP_offload_unregister):
996 Denote as legacy entry points.
997 * testsuite/lib/libgomp.exp
998 (check_effective_target_offload_target_any): New proc.
999 * testsuite/libgomp.c-c++-common/requires-1.c: Enable for
1000 'offload_target_any'.
1001 * testsuite/libgomp.c-c++-common/requires-3.c: Likewise.
1002 * testsuite/libgomp.c-c++-common/requires-7.c: Likewise.
1003 * testsuite/libgomp.fortran/requires-1.f90: Likewise.
1004
1005 2022-07-07 Thomas Schwinge <thomas@codesourcery.com>
1006
1007 * testsuite/libgomp.c-c++-common/requires-4.c: Enhance testing.
1008 * testsuite/libgomp.c-c++-common/requires-5.c: Likewise.
1009
1010 2022-07-07 Thomas Schwinge <thomas@codesourcery.com>
1011
1012 * testsuite/libgomp.c-c++-common/requires-3.c: Adjust.
1013
1014 2022-07-06 Thomas Schwinge <thomas@codesourcery.com>
1015
1016 * target.c (GOMP_offload_register_ver): Clarify 'target_data' ->
1017 'data'.
1018 (GOMP_offload_unregister_ver): Likewise. Fix up 'target_data'.
1019
1020 2022-07-04 Tobias Burnus <tobias@codesourcery.com>
1021 Jakub Jelinek <jakub@redhat.com>
1022
1023 * libgomp.texi (OpenMP 5.2): Mark linear-clause change as 'Y'.
1024
1025 2022-07-04 Tobias Burnus <tobias@codesourcery.com>
1026 Chung-Lin Tang <cltang@codesourcery.com>
1027 Thomas Schwinge <thomas@codesourcery.com>
1028
1029 * libgomp-plugin.h (GOMP_OFFLOAD_get_num_devices): Add
1030 omp_requires_mask arg.
1031 * plugin/plugin-gcn.c (GOMP_OFFLOAD_get_num_devices): Likewise;
1032 return -1 when device available but omp_requires_mask != 0.
1033 * plugin/plugin-nvptx.c (GOMP_OFFLOAD_get_num_devices): Likewise.
1034 * oacc-host.c (host_get_num_devices, host_openacc_get_property):
1035 Update call.
1036 * oacc-init.c (resolve_device, acc_init_1, acc_shutdown_1,
1037 goacc_attach_host_thread_to_device, acc_get_num_devices,
1038 acc_set_device_num, get_property_any): Likewise.
1039 * target.c (omp_requires_mask): New global var.
1040 (gomp_requires_to_name): New.
1041 (GOMP_offload_register_ver): Handle passed omp_requires_mask.
1042 (gomp_target_init): Handle omp_requires_mask.
1043 * libgomp.texi (OpenMP 5.0): Update requires impl. status.
1044 (OpenMP 5.1): Add a missed item.
1045 (OpenMP 5.2): Mark linear-clause change as supported in C/C++.
1046 * testsuite/libgomp.c-c++-common/requires-1-aux.c: New test.
1047 * testsuite/libgomp.c-c++-common/requires-1.c: New test.
1048 * testsuite/libgomp.c-c++-common/requires-2-aux.c: New test.
1049 * testsuite/libgomp.c-c++-common/requires-2.c: New test.
1050 * testsuite/libgomp.c-c++-common/requires-3-aux.c: New test.
1051 * testsuite/libgomp.c-c++-common/requires-3.c: New test.
1052 * testsuite/libgomp.c-c++-common/requires-4-aux.c: New test.
1053 * testsuite/libgomp.c-c++-common/requires-4.c: New test.
1054 * testsuite/libgomp.c-c++-common/requires-5-aux.c: New test.
1055 * testsuite/libgomp.c-c++-common/requires-5.c: New test.
1056 * testsuite/libgomp.c-c++-common/requires-6.c: New test.
1057 * testsuite/libgomp.c-c++-common/requires-7-aux.c: New test.
1058 * testsuite/libgomp.c-c++-common/requires-7.c: New test.
1059 * testsuite/libgomp.fortran/requires-1-aux.f90: New test.
1060 * testsuite/libgomp.fortran/requires-1.f90: New test.
1061
1062 2022-07-01 Tobias Burnus <tobias@codesourcery.com>
1063
1064 * libgomp.texi (OpenMP 5.2): Mark target enter/exit data
1065 with fromto as implemented.
1066
1067 2022-06-28 Martin Liska <mliska@suse.cz>
1068
1069 * acinclude.m4: Fix typo in mold linker detection.
1070 * Makefile.in: Regenerate.
1071 * configure: Regenerate.
1072
1073 2022-06-21 Jakub Jelinek <jakub@redhat.com>
1074 Paul Iannetta <piannetta@kalrayinc.com>
1075
1076 PR libgomp/106045
1077 * testsuite/libgomp.c/target-31.c: Add private (i) clause.
1078
1079 2022-06-17 Martin Liska <mliska@suse.cz>
1080
1081 * libgomp.texi: Add table header for new features of
1082 OpenMP 5.2.
1083
1084 2022-06-15 Jakub Jelinek <jakub@redhat.com>
1085
1086 * testsuite/libgomp.c-c++-common/get-mapped-ptr-1.c (main): Initialize
1087 q to ddress of an automatic variable. Use -5 instead of -1 in
1088 omp_get_mapped_ptr call. Add test with omp_initial_device.
1089 * testsuite/libgomp.fortran/get-mapped-ptr-1.f90 (main): Use -5 instead
1090 of -1 in omp_get_mapped_ptr call. Add test with omp_initial_device.
1091 Renumber stop arguments afterwards.
1092
1093 2022-06-13 Jakub Jelinek <jakub@redhat.com>
1094
1095 * omp.h.in (omp_initial_device, omp_invalid_device): New enumerators.
1096 * omp_lib.f90.in (omp_initial_device, omp_invalid_device): New
1097 parameters.
1098 * omp_lib.h.in (omp_initial_device, omp_invalid_device): Likewise.
1099 * target.c (resolve_device): Add remapped argument, handle
1100 GOMP_DEVICE_ICV only if remapped is true (and clear remapped),
1101 for negative values, treat GOMP_DEVICE_FALLBACK as fallback only
1102 if remapped, otherwise treat omp_initial_device that way. For
1103 omp_invalid_device, always emit gomp_fatal, even when
1104 OMP_TARGET_OFFLOAD isn't mandatory.
1105 (GOMP_target, GOMP_target_ext, GOMP_target_data, GOMP_target_data_ext,
1106 GOMP_target_update, GOMP_target_update_ext,
1107 GOMP_target_enter_exit_data): Pass true as remapped argument to
1108 resolve_device.
1109 (omp_target_alloc, omp_target_free, omp_target_is_present,
1110 omp_target_memcpy_check, omp_target_associate_ptr,
1111 omp_target_disassociate_ptr, omp_get_mapped_ptr,
1112 omp_target_is_accessible): Pass false as remapped argument to
1113 resolve_device. Treat omp_initial_device the same as
1114 gomp_get_num_devices (). Don't bypass resolve_device calls if
1115 device_num is negative.
1116 (omp_pause_resource): Treat omp_initial_device the same as
1117 gomp_get_num_devices (). Call resolve_device.
1118 * icv-device.c (omp_set_default_device): Always set to device_num
1119 even when it is negative.
1120 * libgomp.texi: Document that Conforming device numbers,
1121 omp_initial_device and omp_invalid_device is implemented.
1122 * testsuite/libgomp.c/target-41.c (main): Add test with
1123 omp_initial_device.
1124 * testsuite/libgomp.c/target-45.c: New test.
1125 * testsuite/libgomp.c/target-46.c: New test.
1126 * testsuite/libgomp.c/target-47.c: New test.
1127 * testsuite/libgomp.c-c++-common/target-is-accessible-1.c (main): Add
1128 test with omp_initial_device. Use -5 instead of -1 for negative value
1129 test.
1130 * testsuite/libgomp.fortran/target-is-accessible-1.f90 (main):
1131 Likewise. Reorder stop numbers.
1132
1133 2022-06-10 Jakub Jelinek <jakub@redhat.com>
1134
1135 * allocator.c (gomp_init_memkind): Call dlopen with "libmemkind.so.0"
1136 rather than "libmemkind.so".
1137
1138 2022-06-10 Thomas Schwinge <thomas@codesourcery.com>
1139
1140 * plugin/Makefrag.am: Evaluate 'if PLUGIN_NVPTX_DYNAMIC' to true.
1141 * plugin/configfrag.ac (--with-cuda-driver)
1142 (--with-cuda-driver-include, --with-cuda-driver-lib)
1143 (CUDA_DRIVER_INCLUDE, CUDA_DRIVER_LIB, PLUGIN_NVPTX_CPPFLAGS)
1144 (PLUGIN_NVPTX_LDFLAGS, PLUGIN_NVPTX_LIBS, PLUGIN_NVPTX_DYNAMIC):
1145 Remove.
1146 * testsuite/libgomp-test-support.exp.in (cuda_driver_include)
1147 (cuda_driver_lib): Remove.
1148 * testsuite/lib/libgomp.exp (libgomp_init): Don't consider these.
1149 * Makefile.in: Regenerate.
1150 * configure: Likewise.
1151 * testsuite/Makefile.in: Likewise.
1152
1153 2022-06-09 Jakub Jelinek <jakub@redhat.com>
1154
1155 * config/linux/allocator.c: Fix up #include directive.
1156
1157 2022-06-09 Jakub Jelinek <jakub@redhat.com>
1158
1159 * allocator.c: Include dlfcn.h if LIBGOMP_USE_MEMKIND is defined.
1160 (enum gomp_memkind_kind): New type.
1161 (struct omp_allocator_data): Add memkind field if LIBGOMP_USE_MEMKIND
1162 is defined.
1163 (struct gomp_memkind_data): New type.
1164 (memkind_data, memkind_data_once): New variables.
1165 (gomp_init_memkind, gomp_get_memkind): New functions.
1166 (omp_init_allocator): Initialize data.memkind, don't fail for
1167 omp_high_bw_mem_space if libmemkind supports it.
1168 (omp_aligned_alloc, omp_free, omp_aligned_calloc, omp_realloc): Add
1169 memkind support of LIBGOMP_USE_MEMKIND is defined.
1170 * config/linux/allocator.c: New file.
1171
1172 2022-06-03 Tobias Burnus <tobias@codesourcery.com>
1173
1174 * libgomp.texi (OpenMP 5.2): Mark scope w/ firstprivate/allocate as Y.
1175 * testsuite/libgomp.fortran/scope-2.f90: New test.
1176
1177 2022-06-02 David Malcolm <dmalcolm@redhat.com>
1178
1179 * testsuite/lib/libgomp.exp: Add load_gcc_lib of scansarif.exp.
1180
1181 2022-05-31 Jakub Jelinek <jakub@redhat.com>
1182
1183 * testsuite/libgomp.c-c++-common/allocate-1.c (foo): Add testcase for
1184 scope construct with allocate clause.
1185 * testsuite/libgomp.c-c++-common/allocate-3.c (foo): Likewise.
1186 * testsuite/libgomp.c-c++-common/scope-2.c: New test.
1187
1188 2022-05-28 Tobias Burnus <tobias@codesourcery.com>
1189
1190 * libgomp.texi (OpenMP 5.2): Mark 'enter' clause as supported.
1191 * testsuite/libgomp.fortran/declare-target-1.f90: Extend to test
1192 explicit 'to' and 'enter' clause.
1193 * testsuite/libgomp.fortran/declare-target-2.f90: Update accordingly.
1194
1195 2022-05-28 Jakub Jelinek <jakub@redhat.com>
1196
1197 PR libgomp/105745
1198 * libgomp.h (GOMP_HAVE_EFFICIENT_ALIGNED_ALLOC): Don't define for
1199 defined(HAVE__ALIGNED_MALLOC) case.
1200 * alloc.c (gomp_aligned_alloc): Move defined(HAVE__ALIGNED_MALLOC)
1201 handling as last option before fallback instead of first.
1202 (gomp_aligned_free): For defined(HAVE__ALIGNED_MALLOC) call
1203 _aligned_free.
1204
1205 2022-05-27 Jakub Jelinek <jakub@redhat.com>
1206
1207 * testsuite/libgomp.c-c++-common/target-40.c: Modify some existing to
1208 clauses to enter.
1209 * testsuite/libgomp.c/target-41.c: Likewise.
1210
1211 2022-05-27 Tobias Burnus <tobias@codesourcery.com>
1212
1213 * libgomp.texi (Other new OpenMP 5.1 features): Add
1214 'begin declare target'.
1215 (Other new OpenMP 5.2 features): New.
1216
1217 2022-05-25 Jakub Jelinek <jakub@redhat.com>
1218
1219 * task.c (gomp_task_run_post_handle_dependers): If empty_task
1220 is the last task taskwait depend depends on, wake it up.
1221 Similarly if it is the last child of a taskgroup, use atomic
1222 store instead of decrement and awak taskgroup wait if any.
1223 * testsuite/libgomp.c-c++-common/taskwait-depend-nowait-2.c: New test.
1224
1225 2022-05-24 Andrew Stubbs <ams@codesourcery.com>
1226
1227 * plugin/plugin-gcn.c (EF_AMDGPU_MACH): Add
1228 EF_AMDGPU_MACH_AMDGCN_GFX90a.
1229 (gcn_gfx90a_s): New.
1230 (isa_hsa_name): Support gfx90a.
1231 (isa_code): Likewise.
1232
1233 2022-05-24 Tobias Burnus <tobias@codesourcery.com>
1234
1235 PR c/105378
1236 * libgomp.texi (OpenMP 5.1): Set 'taskwait nowait' to 'Y'.
1237 * testsuite/libgomp.fortran/taskwait-depend-nowait-1.f90: New.
1238
1239 2022-05-24 Jakub Jelinek <jakub@redhat.com>
1240
1241 PR c/105378
1242 * libgomp_g.h (GOMP_taskwait_depend_nowait): Declare.
1243 * libgomp.map (GOMP_taskwait_depend_nowait): Export at GOMP_5.1.1.
1244 * task.c (empty_task): New function.
1245 (gomp_task_run_post_handle_depend_hash): Declare earlier.
1246 (gomp_task_run_post_handle_depend): Declare.
1247 (GOMP_task): Optimize fn == empty_task if there is nothing to wait
1248 for.
1249 (gomp_task_run_post_handle_dependers): Optimize task->fn == empty_task.
1250 (GOMP_taskwait_depend_nowait): New function.
1251 * testsuite/libgomp.c-c++-common/taskwait-depend-nowait-1.c: New test.
1252
1253 2022-05-23 Tobias Burnus <tobias@codesourcery.com>
1254
1255 PR fortran/104949
1256 * target.c (gomp_map_vars_internal, copy_firstprivate_data):
1257 Support attach for GOMP_MAP_FIRSTPRIVATE.
1258 * testsuite/libgomp.fortran/target-firstprivate-1.f90: New test.
1259 * testsuite/libgomp.fortran/target-firstprivate-2.f90: New test.
1260 * testsuite/libgomp.fortran/target-firstprivate-3.f90: New test.
1261
1262 2022-05-20 Marcel Vollweiler <marcel@codesourcery.com>
1263
1264 * libgomp.map: Added omp_target_memcpy_async and
1265 omp_target_memcpy_rect_async.
1266 * libgomp.texi: Both functions are now supported.
1267 * omp.h.in: Added omp_target_memcpy_async and
1268 omp_target_memcpy_rect_async.
1269 * omp_lib.f90.in: Added interfaces for both new functions.
1270 * omp_lib.h.in: Likewise.
1271 * target.c (ialias_redirect): Added for GOMP_task.
1272 (omp_target_memcpy): Restructured into check and copy part.
1273 (omp_target_memcpy_check): New helper function for omp_target_memcpy and
1274 omp_target_memcpy_async that checks requirements.
1275 (omp_target_memcpy_copy): New helper function for omp_target_memcpy and
1276 omp_target_memcpy_async that performs the memcpy.
1277 (omp_target_memcpy_async_helper): New helper function that is used in
1278 omp_target_memcpy_async for the asynchronous task.
1279 (omp_target_memcpy_async): Added.
1280 (omp_target_memcpy_rect): Restructured into check and copy part.
1281 (omp_target_memcpy_rect_check): New helper function for
1282 omp_target_memcpy_rect and omp_target_memcpy_rect_async that checks
1283 requirements.
1284 (omp_target_memcpy_rect_copy): New helper function for
1285 omp_target_memcpy_rect and omp_target_memcpy_rect_async that performs
1286 the memcpy.
1287 (omp_target_memcpy_rect_async_helper): New helper function that is used
1288 in omp_target_memcpy_rect_async for the asynchronous task.
1289 (omp_target_memcpy_rect_async): Added.
1290 * task.c (ialias): Added for GOMP_task.
1291 * testsuite/libgomp.c-c++-common/target-memcpy-async-1.c: New test.
1292 * testsuite/libgomp.c-c++-common/target-memcpy-async-2.c: New test.
1293 * testsuite/libgomp.c-c++-common/target-memcpy-rect-async-1.c: New test.
1294 * testsuite/libgomp.c-c++-common/target-memcpy-rect-async-2.c: New test.
1295 * testsuite/libgomp.fortran/target-memcpy-async-1.f90: New test.
1296 * testsuite/libgomp.fortran/target-memcpy-async-2.f90: New test.
1297 * testsuite/libgomp.fortran/target-memcpy-rect-async-1.f90: New test.
1298 * testsuite/libgomp.fortran/target-memcpy-rect-async-2.f90: New test.
1299
1300 2022-05-18 Tobias Burnus <tobias@codesourcery.com>
1301
1302 * libgomp.texi (OpenMP 5.1): Set 'inoutset' to Y.
1303 (OpenMP Context Selectors): Add missing comma.
1304 * testsuite/libgomp.fortran/depend-5.f90: Add inoutset test.
1305 * testsuite/libgomp.fortran/depend-6.f90: Likewise.
1306 * testsuite/libgomp.fortran/depend-7.f90: Likewise.
1307 * testsuite/libgomp.fortran/depend-inoutset-1.f90: New test.
1308
1309 2022-05-17 Jakub Jelinek <jakub@redhat.com>
1310
1311 * libgomp.texi (OpenMP 5.1): Remove "Not inside target regions"
1312 comment for omp_display_env feature.
1313
1314 2022-05-17 Tobias Burnus <tobias@codesourcery.com>
1315
1316 * libgomp.texi (Offload-Target Specifics): New chapter; add section
1317 to document OpenMP context selectors.
1318
1319 2022-05-17 Jakub Jelinek <jakub@redhat.com>
1320
1321 * libgomp.h (struct gomp_task_depend_entry): Change is_in type
1322 from bool to unsigned char.
1323 * task.c (gomp_task_handle_depend): Handle GOMP_DEPEND_INOUTSET.
1324 Ignore dependencies where
1325 task->depend[i].is_in && task->depend[i].is_in == ent->is_in
1326 rather than just task->depend[i].is_in && ent->is_in. Remember
1327 whether GOMP_DEPEND_IN loop is needed and guard the loop with that
1328 conditional.
1329 (gomp_task_maybe_wait_for_dependencies): Handle GOMP_DEPEND_INOUTSET.
1330 Ignore dependencies where elem.is_in && elem.is_in == ent->is_in
1331 rather than just elem.is_in && ent->is_in.
1332 * testsuite/libgomp.c-c++-common/depend-1.c (test): Add task with
1333 inoutset depend-kind.
1334 * testsuite/libgomp.c-c++-common/depend-2.c (test): Likewise.
1335 * testsuite/libgomp.c-c++-common/depend-3.c (test): Likewise.
1336 * testsuite/libgomp.c-c++-common/depend-inoutset-1.c: New test.
1337
1338 2022-05-17 Tobias Burnus <tobias@codesourcery.com>
1339
1340 * libgomp.texi (OpenMP Implementation Status): Add 5.2 table.
1341
1342 2022-05-17 Tobias Burnus <tobias@codesourcery.com>
1343
1344 * libgomp.texi (OpenMP 5.1): Set omp_all_memory to 'Y'.
1345 * testsuite/libgomp.fortran/depend-5.f90: New test.
1346 * testsuite/libgomp.fortran/depend-6.f90: New test.
1347 * testsuite/libgomp.fortran/depend-7.f90: New test.
1348
1349 2022-05-16 Marcel Vollweiler <marcel@codesourcery.com>
1350
1351 * testsuite/libgomp.c++/target-has-device-addr-7.C: New test.
1352 * testsuite/libgomp.c++/target-has-device-addr-8.C: New test.
1353 * testsuite/libgomp.c++/target-has-device-addr-9.C: New test.
1354
1355 2022-05-13 Tobias Burnus <tobias@codesourcery.com>
1356
1357 * testsuite/libgomp.fortran/target-nowait-array-section.f90: New test.
1358
1359 2022-05-13 Tobias Burnus <tobias@codesourcery.com>
1360
1361 * testsuite/libgomp.fortran/target-nowait-array-section.f90: New test.
1362
1363 2022-05-13 Thomas Schwinge <thomas@codesourcery.com>
1364
1365 * plugin/Makefrag.am (libgomp_plugin_nvptx_la_CPPFLAGS)
1366 [PLUGIN_NVPTX_DYNAMIC]: Don't append '$(PLUGIN_NVPTX_CPPFLAGS)'.
1367 (libgomp_plugin_nvptx_la_LDFLAGS) [PLUGIN_NVPTX_DYNAMIC]: Don't
1368 append '$(PLUGIN_NVPTX_LDFLAGS)'.
1369 * Makefile.in: Regenerate.
1370
1371 2022-05-12 Thomas Schwinge <thomas@codesourcery.com>
1372
1373 * Makefile.am (libgomp_la_LIBADD): Initialize.
1374 * plugin/configfrag.ac (DL_LIBS): New.
1375 (PLUGIN_GCN_LIBS): Remove.
1376 (PLUGIN_NVPTX_LIBS): Don't set in the 'PLUGIN_NVPTX_DYNAMIC' case.
1377 * plugin/Makefrag.am (libgomp_la_LIBADD)
1378 (libgomp_plugin_gcn_la_LIBADD): Consider '$(DL_LIBS)'.
1379 (libgomp_plugin_nvptx_la_LIBADD) <PLUGIN_NVPTX_DYNAMIC>: Likewise.
1380 * Makefile.in: Regenerate.
1381 * config.h.in: Likewise.
1382 * configure: Likewise.
1383 * testsuite/Makefile.in: Likewise.
1384
1385 2022-05-12 Thomas Schwinge <thomas@codesourcery.com>
1386
1387 * plugin/Makefrag.am: Handle 'PLUGIN_NVPTX_DYNAMIC'.
1388 * plugin/configfrag.ac (PLUGIN_NVPTX_DYNAMIC): Change
1389 'AC_DEFINE_UNQUOTED' into 'AM_CONDITIONAL'.
1390 * plugin/plugin-nvptx.c: Split 'PLUGIN_NVPTX_DYNAMIC' into
1391 'PLUGIN_NVPTX_INCLUDE_SYSTEM_CUDA_H' and
1392 'PLUGIN_NVPTX_LINK_LIBCUDA'.
1393 * Makefile.in: Regenerate.
1394 * config.h.in: Likewise.
1395 * configure: Likewise.
1396
1397 2022-05-12 Thomas Schwinge <thomas@codesourcery.com>
1398
1399 * plugin/configfrag.ac: Don't 'AC_SUBST' and 'AC_DEFINE_UNQUOTED'
1400 for 'PLUGIN_GCN', 'PLUGIN_NVPTX'.
1401 * Makefile.in: Regenerate.
1402 * config.h.in: Likewise.
1403 * configure: Likewise.
1404 * testsuite/Makefile.in: Likewise.
1405
1406 2022-05-12 Jakub Jelinek <jakub@redhat.com>
1407
1408 * libgomp.h (struct gomp_task): Add depend_all_memory member.
1409 * task.c (gomp_init_task): Initialize depend_all_memory.
1410 (gomp_task_handle_depend): Handle omp_all_memory.
1411 (gomp_task_run_post_handle_depend_hash): Clear
1412 parent->depend_all_memory if equal to current task.
1413 (gomp_task_maybe_wait_for_dependencies): Handle omp_all_memory.
1414 * testsuite/libgomp.c-c++-common/depend-1.c: New test.
1415 * testsuite/libgomp.c-c++-common/depend-2.c: New test.
1416 * testsuite/libgomp.c-c++-common/depend-3.c: New test.
1417
1418 2022-05-11 Thomas Schwinge <thomas@codesourcery.com>
1419
1420 * plugin/configfrag.ac: Remove '--with-hsa-runtime',
1421 '--with-hsa-runtime-include', '--with-hsa-runtime-lib' processing.
1422 * Makefile.in: Regenerate.
1423 * configure: Likewise.
1424 * testsuite/Makefile.in: Likewise.
1425
1426 2022-05-11 Thomas Schwinge <thomas@codesourcery.com>
1427
1428 * plugin/Makefrag.am (libgomp_plugin_gcn_la_CPPFLAGS): Don't
1429 consider 'PLUGIN_GCN_CPPFLAGS'.
1430 (libgomp_plugin_gcn_la_LDFLAGS): Don't consider
1431 'PLUGIN_GCN_LDFLAGS'.
1432 * plugin/configfrag.ac (PLUGIN_GCN_CPPFLAGS, PLUGIN_GCN_LDFLAGS):
1433 Remove.
1434 * Makefile.in: Regenerate.
1435 * configure: Likewise.
1436 * testsuite/Makefile.in: Likewise.
1437
1438 2022-05-11 Thomas Schwinge <thomas@codesourcery.com>
1439
1440 * plugin/configfrag.ac (HSA_RUNTIME_CPPFLAGS)
1441 (HSA_RUNTIME_LDFLAGS): Remove.
1442 * configure: Regenerate.
1443
1444 2022-05-11 Thomas Schwinge <thomas@codesourcery.com>
1445
1446 * testsuite/lib/libgomp.exp (libgomp_init): Don't
1447 'append always_ld_library_path ":$hsa_runtime_lib"'.
1448 * testsuite/libgomp-test-support.exp.in (hsa_runtime_lib): Don't set.
1449
1450 2022-05-10 Thomas Schwinge <thomas@codesourcery.com>
1451
1452 * testsuite/libgomp.fortran/use_device_addr-5.f90: Fix up
1453 multi-device testing.
1454
1455 2022-05-06 Marcel Vollweiler <marcel@codesourcery.com>
1456
1457 * libgomp.map: Added omp_target_is_accessible.
1458 * libgomp.texi: Tagged omp_target_is_accessible as supported.
1459 * omp.h.in: Added omp_target_is_accessible.
1460 * omp_lib.f90.in: Added interface for omp_target_is_accessible.
1461 * omp_lib.h.in: Likewise.
1462 * target.c (omp_target_is_accessible): Added implementation of
1463 omp_target_is_accessible.
1464 * testsuite/libgomp.c-c++-common/target-is-accessible-1.c: New test.
1465 * testsuite/libgomp.fortran/target-is-accessible-1.f90: New test.
1466
1467 2022-05-05 Sandra Loosemore <sandra@codesourcery.com>
1468
1469 * libgomp.texi (OpenMP 5.0): Feature is now fully supported.
1470
1471 2022-05-04 Tobias Burnus <tobias@codesourcery.com>
1472
1473 * plugin/plugin-gcn.c (isa_matches_agent): Suggest -foffload-options.
1474
1475 2022-05-04 Tobias Burnus <tobias@codesourcery.com>
1476
1477 * testsuite/libgomp.fortran/use_device_addr-5.f90: New test.
1478
1479 2022-05-03 Marcel Vollweiler <marcel@codesourcery.com>
1480
1481 * libgomp.map: Added omp_get_mapped_ptr.
1482 * libgomp.texi: Tagged omp_get_mapped_ptr as supported.
1483 * omp.h.in: Added omp_get_mapped_ptr.
1484 * omp_lib.f90.in: Added interface for omp_get_mapped_ptr.
1485 * omp_lib.h.in: Likewise.
1486 * target.c (omp_get_mapped_ptr): Added implementation of
1487 omp_get_mapped_ptr.
1488 * testsuite/libgomp.c-c++-common/get-mapped-ptr-1.c: New test.
1489 * testsuite/libgomp.c-c++-common/get-mapped-ptr-2.c: New test.
1490 * testsuite/libgomp.c-c++-common/get-mapped-ptr-3.c: New test.
1491 * testsuite/libgomp.c-c++-common/get-mapped-ptr-4.c: New test.
1492 * testsuite/libgomp.fortran/get-mapped-ptr-1.f90: New test.
1493 * testsuite/libgomp.fortran/get-mapped-ptr-2.f90: New test.
1494 * testsuite/libgomp.fortran/get-mapped-ptr-3.f90: New test.
1495 * testsuite/libgomp.fortran/get-mapped-ptr-4.f90: New test.
1496
1497 2022-04-28 Thomas Schwinge <thomas@codesourcery.com>
1498
1499 PR fortran/104717
1500 * testsuite/libgomp.oacc-fortran/print-1.f90: Add OpenACC
1501 privatization scanning. For GCN offloading compilation, raise
1502 '-mgang-private-size'.
1503
1504 2022-04-26 Jakub Jelinek <jakub@redhat.com>
1505
1506 PR libgomp/105358
1507 * work.c (gomp_init_work_share): Don't mask of adjustment for
1508 dynamic long long realignment if struct gomp_work_share has smaller
1509 alignof than long long.
1510 * loop.c (GOMP_loop_start): Don't use inline_ordered_team_ids if
1511 struct gomp_work_share has smaller alignof than long long or if
1512 sizeof (struct gomp_work_share) is smaller than
1513 INLINE_ORDERED_TEAM_IDS_OFF.
1514 * loop_ull.c (GOMP_loop_ull_start): Likewise.
1515 * sections.c (GOMP_sections2_start): Likewise.
1516
1517 2022-04-25 Jakub Jelinek <jakub@redhat.com>
1518 Thomas Schwinge <thomas@codesourcery.com>
1519
1520 PR fortran/104717
1521 * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Adjust.
1522
1523 2022-04-13 Jakub Jelinek <jakub@redhat.com>
1524
1525 * libgomp.texi: Fix a typo - mutexinouset -> mutexinoutset.
1526
1527 2022-04-06 Thomas Schwinge <thomas@codesourcery.com>
1528
1529 * plugin/cuda/cuda.h: Remove file.
1530 * plugin/plugin-nvptx.c [PLUGIN_NVPTX_DYNAMIC]: Include
1531 "cuda/cuda.h" instead of <cuda.h>.
1532 * plugin/configfrag.ac <PLUGIN_NVPTX_DYNAMIC>: Don't set
1533 'PLUGIN_NVPTX_CPPFLAGS'.
1534 * configure: Regenerate.
1535
1536 2022-04-05 Chung-Lin Tang <cltang@codesourcery.com>
1537
1538 * testsuite/libgomp.fortran/use_device_ptr-4.f90: New testcase.
1539
1540 2022-04-04 Tom de Vries <tdevries@suse.de>
1541
1542 * testsuite/libgomp.fortran/examples-4/declare_target-1.f90: Use
1543 on_device_arch_nvptx instead of offload_target_nvptx.
1544 * testsuite/libgomp.fortran/examples-4/declare_target-2.f90: Same.
1545
1546 2022-04-01 Tom de Vries <tdevries@suse.de>
1547
1548 * testsuite/libgomp.fortran/examples-4/declare_target-1.f90: Define
1549 and use REC_DEPTH.
1550 * testsuite/libgomp.fortran/examples-4/declare_target-2.f90: Same.
1551
1552 2022-04-01 Tom de Vries <tdevries@suse.de>
1553
1554 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-7.c: Fix
1555 num_workers check.
1556
1557 2022-03-29 Chenghua Xu <xuchenghua@loongson.cn>
1558 Lulu Cheng <chenglulu@loongson.cn>
1559
1560 * configure.tgt: Add LoongArch triplet.
1561
1562 2022-03-28 Tom de Vries <tdevries@suse.de>
1563
1564 * plugin/configfrag.ac: Use /$(libexecdir:\$(exec_prefix)/%=%)/
1565 instead of /libexec/.
1566 * configure: Regenerate.
1567
1568 2022-03-25 Tom de Vries <tdevries@suse.de>
1569
1570 PR libgomp/105042
1571 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Reduce
1572 execution time.
1573 * testsuite/libgomp.oacc-c-c++-common/vred2d-128.c: Same.
1574 * testsuite/libgomp.oacc-fortran/parallel-dims.f90: Same.
1575
1576 2022-03-23 Tobias Burnus <tobias@codesourcery.com>
1577
1578 PR middle-end/104285
1579 * testsuite/libgomp.c++/target-same-name-2-a.C: New test.
1580 * testsuite/libgomp.c++/target-same-name-2-b.C: New test.
1581 * testsuite/libgomp.c++/target-same-name-2.C: New test.
1582 * testsuite/libgomp.c-c++-common/target-same-name-1-a.c: New test.
1583 * testsuite/libgomp.c-c++-common/target-same-name-1-b.c: New test.
1584 * testsuite/libgomp.c-c++-common/target-same-name-1.c: New test.
1585
1586 2022-03-22 Tom de Vries <tdevries@suse.de>
1587
1588 PR target/104916
1589 PR target/104783
1590 * testsuite/libgomp.c/pr104783-2.c: New test.
1591
1592 2022-03-18 Tobias Burnus <tobias@codesourcery.com>
1593
1594 PR fortran/103039
1595 * testsuite/libgomp.fortran/associate4.f90: New test.
1596
1597 2022-03-18 Tom de Vries <tdevries@suse.de>
1598
1599 PR target/104952
1600 * testsuite/libgomp.c/pr104952-1.c: New test.
1601 * testsuite/libgomp.c/pr104952-2.c: New test.
1602
1603 2022-03-18 Jakub Jelinek <jakub@redhat.com>
1604
1605 * config/linux/affinity.c (gomp_affinity_init_numa_domains): Move seen
1606 variable next to pl variable.
1607
1608 2022-03-17 Thomas Schwinge <thomas@codesourcery.com>
1609
1610 * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c:
1611 Enhance.
1612 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-g.c: Likewise.
1613 * testsuite/libgomp.oacc-fortran/if-1.f90: Likewise.
1614
1615 2022-03-17 Thomas Schwinge <thomas@codesourcery.com>
1616
1617 PR middle-end/90115
1618 * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c: Enhance.
1619 * testsuite/libgomp.oacc-fortran/if-1.f90: Likewise.
1620
1621 2022-03-16 Marcel Vollweiler <marcel@codesourcery.com>
1622
1623 * fortran.c (omp_set_num_teams_8_): Call omp_set_num_teams instead of
1624 omp_set_max_active_levels.
1625 * testsuite/libgomp.fortran/icv-8.f90: New test.
1626
1627 2022-03-16 Thomas Schwinge <thomas@codesourcery.com>
1628
1629 PR testsuite/102841
1630 * testsuite/libgomp.oacc-c-c++-common/host_data-7.c: Adjust.
1631
1632 2022-03-13 Tobias Burnus <tobias@codesourcery.com>
1633
1634 * libgomp.texi: Fix typo.
1635
1636 2022-03-12 Thomas Schwinge <thomas@codesourcery.com>
1637
1638 PR middle-end/100280
1639 PR middle-end/104892
1640 * testsuite/libgomp.oacc-c-c++-common/declare-vla.c: Adjust.
1641 * testsuite/libgomp.oacc-c-c++-common/default-1.c: Likewise.
1642 * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c:
1643 Likewise.
1644 * testsuite/libgomp.oacc-c-c++-common/kernels-reduction-1.c:
1645 Likewise.
1646 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Likewise.
1647 * testsuite/libgomp.oacc-fortran/asyncwait-1.f90: Likewise.
1648 * testsuite/libgomp.oacc-fortran/kernels-reduction-1.f90:
1649 Likewise.
1650
1651 2022-03-12 Thomas Schwinge <thomas@codesourcery.com>
1652
1653 PR middle-end/104892
1654 * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c: Point
1655 to PR104892.
1656 * testsuite/libgomp.oacc-c-c++-common/default-1.c: Likewise,
1657 enable '--param=openacc-kernels=decompose' and adjust.
1658 * testsuite/libgomp.oacc-c-c++-common/kernels-reduction-1.c:
1659 Likewise.
1660 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Likewise.
1661 * testsuite/libgomp.oacc-fortran/kernels-reduction-1.f90:
1662 Likewise.
1663
1664 2022-03-12 Thomas Schwinge <thomas@codesourcery.com>
1665
1666 PR middle-end/90115
1667 * testsuite/libgomp.oacc-c-c++-common/default-1.c: Enhance.
1668 * testsuite/libgomp.oacc-c-c++-common/kernels-reduction-1.c: Likewise.
1669 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Likewise.
1670 * testsuite/libgomp.oacc-fortran/kernels-reduction-1.f90: Likewise.
1671
1672 2022-03-12 Thomas Schwinge <thomas@codesourcery.com>
1673
1674 PR middle-end/100280
1675 PR middle-end/104086
1676 * testsuite/libgomp.oacc-c-c++-common/declare-vla-kernels-decompose-ice-1.c:
1677 Merge this...
1678 * testsuite/libgomp.oacc-c-c++-common/declare-vla-kernels-decompose.c:
1679 ..., and this...
1680 * testsuite/libgomp.oacc-c-c++-common/declare-vla.c: ... into
1681 this, and adjust.
1682 * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c:
1683 Extend.
1684
1685 2022-03-10 Hafiz Abid Qadeer <abidh@codesourcery.com>
1686
1687 * testsuite/libgomp.fortran/allocate-1.f90: Remove pool_size
1688 trait. Test last index in w and v array. Remove redundant
1689 assignment to V(1). Move alignment checks at the end of
1690 parallel region.
1691
1692 2022-03-10 Tom de Vries <tdevries@suse.de>
1693
1694 * testsuite/libgomp.c/pr104783.c: New test.
1695
1696 2022-03-10 Thomas Schwinge <thomas@codesourcery.com>
1697
1698 PR middle-end/90115
1699 PR middle-end/102330
1700 PR middle-end/104774
1701 * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c:
1702 Enhance.
1703 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-1.c:
1704 Adjust.
1705 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-2.c:
1706 Likewise.
1707 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-3.c:
1708 Likewise.
1709 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-4.c:
1710 Likewise.
1711 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-5.c:
1712 Likewise.
1713 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-vector-1.c:
1714 Likewise.
1715 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-vector-2.c:
1716 Likewise.
1717 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-2.c:
1718 Likewise.
1719 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-3.c:
1720 Likewise.
1721 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-4.c:
1722 Likewise.
1723 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-5.c:
1724 Likewise.
1725 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-6.c:
1726 Likewise.
1727 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-7.c:
1728 Likewise.
1729 * testsuite/libgomp.oacc-fortran/optional-private.f90: Likewise.
1730 * testsuite/libgomp.oacc-fortran/privatized-ref-1.f95: Likewise.
1731 * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Likewise.
1732
1733 2022-03-10 Thomas Schwinge <thomas@codesourcery.com>
1734
1735 PR middle-end/90115
1736 * testsuite/libgomp.oacc-fortran/routine-1.f90: Enhance.
1737 * testsuite/libgomp.oacc-fortran/routine-2.f90: Likewise.
1738 * testsuite/libgomp.oacc-fortran/routine-3.f90: Likewise.
1739 * testsuite/libgomp.oacc-fortran/routine-9.f90: Likewise.
1740
1741 2022-03-04 Thomas Schwinge <thomas@codesourcery.com>
1742
1743 PR testsuite/104791
1744 * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c: Fix
1745 expected diagnostics.
1746
1747 2022-03-04 Thomas Schwinge <thomas@codesourcery.com>
1748
1749 PR middle-end/104784
1750 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-1.c:
1751 Test with '--param=openacc-kernels=decompose'.
1752 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-2.c:
1753 Likewise.
1754 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-3.c:
1755 Likewise.
1756 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-4.c:
1757 Likewise.
1758 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-5.c:
1759 Likewise.
1760 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-1.c:
1761 Likewise.
1762 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-2.c:
1763 Likewise.
1764 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-3.c:
1765 Likewise.
1766 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-4.c:
1767 Likewise.
1768 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-5.c:
1769 Likewise.
1770 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-6.c:
1771 Likewise.
1772 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-vector-1.c:
1773 Likewise.
1774 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-vector-2.c:
1775 Likewise.
1776 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-1.c:
1777 Likewise.
1778 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-2.c:
1779 Likewise.
1780 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-3.c:
1781 Likewise.
1782 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-4.c:
1783 Likewise.
1784 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-5.c:
1785 Likewise.
1786 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-6.c:
1787 Likewise.
1788 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-7.c:
1789 Likewise.
1790 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-1.f90:
1791 Likewise.
1792 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-2.f90:
1793 Likewise.
1794 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-3.f90:
1795 Likewise.
1796 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-6.f90:
1797 Likewise.
1798 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-vector-1.f90:
1799 Likewise.
1800 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-vector-2.f90:
1801 Likewise.
1802 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-1.f90:
1803 Likewise.
1804 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-2.f90:
1805 Likewise.
1806 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-3.f90:
1807 Likewise.
1808 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-4.f90:
1809 Likewise.
1810 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-5.f90:
1811 Likewise.
1812 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-6.f90:
1813 Likewise.
1814 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-7.f90:
1815 Likewise.
1816
1817 2022-03-04 Thomas Schwinge <thomas@codesourcery.com>
1818
1819 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-1.c:
1820 Test '-fopt-info-omp-all'.
1821 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-2.c:
1822 Likewise.
1823 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-3.c:
1824 Likewise.
1825 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-4.c:
1826 Likewise.
1827 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-5.c:
1828 Likewise.
1829 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-1.c:
1830 Likewise.
1831 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-2.c:
1832 Likewise.
1833 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-3.c:
1834 Likewise.
1835 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-4.c:
1836 Likewise.
1837 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-5.c:
1838 Likewise.
1839 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-6.c:
1840 Likewise.
1841 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-vector-1.c:
1842 Likewise.
1843 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-vector-2.c:
1844 Likewise.
1845 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-1.c:
1846 Likewise.
1847 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-2.c:
1848 Likewise.
1849 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-3.c:
1850 Likewise.
1851 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-4.c:
1852 Likewise.
1853 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-5.c:
1854 Likewise.
1855 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-6.c:
1856 Likewise.
1857 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-7.c:
1858 Likewise.
1859 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-1.f90:
1860 Likewise.
1861 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-2.f90:
1862 Likewise.
1863 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-3.f90:
1864 Likewise.
1865 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-6.f90:
1866 Likewise.
1867 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-vector-1.f90:
1868 Likewise.
1869 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-vector-2.f90:
1870 Likewise.
1871 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-1.f90:
1872 Likewise.
1873 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-2.f90:
1874 Likewise.
1875 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-3.f90:
1876 Likewise.
1877 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-4.f90:
1878 Likewise.
1879 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-5.f90:
1880 Likewise.
1881 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-6.f90:
1882 Likewise.
1883 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-7.f90:
1884 Likewise.
1885
1886 2022-03-04 Thomas Schwinge <thomas@codesourcery.com>
1887
1888 PR middle-end/100280
1889 PR middle-end/104132
1890 PR middle-end/104133
1891 * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c:
1892 Extend.
1893
1894 2022-03-04 Thomas Schwinge <thomas@codesourcery.com>
1895
1896 PR middle-end/100280
1897 * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-1.c: Adjust.
1898 * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c:
1899 Likewise.
1900
1901 2022-03-04 Thomas Schwinge <thomas@codesourcery.com>
1902
1903 PR middle-end/100280
1904 * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-1.c: Adjust.
1905 * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c:
1906 Likewise.
1907
1908 2022-02-28 Tom de Vries <tdevries@suse.de>
1909
1910 * testsuite/libgomp.c/declare-variant-3-sm30.c: Add -foffload=-mptx=_.
1911 * testsuite/libgomp.c/declare-variant-3-sm35.c: Same.
1912 * testsuite/libgomp.c/declare-variant-3-sm53.c: Same.
1913 * testsuite/libgomp.c/declare-variant-3-sm70.c: Same.
1914 * testsuite/libgomp.c/declare-variant-3-sm75.c: Same.
1915 * testsuite/libgomp.c/declare-variant-3-sm80.c: Same.
1916
1917 2022-02-24 Tom de Vries <tdevries@suse.de>
1918
1919 * testsuite/libgomp.c/declare-variant-3-sm30.c: New test.
1920 * testsuite/libgomp.c/declare-variant-3-sm35.c: New test.
1921 * testsuite/libgomp.c/declare-variant-3-sm53.c: New test.
1922 * testsuite/libgomp.c/declare-variant-3-sm70.c: New test.
1923 * testsuite/libgomp.c/declare-variant-3-sm75.c: New test.
1924 * testsuite/libgomp.c/declare-variant-3-sm80.c: New test.
1925 * testsuite/libgomp.c/declare-variant-3.h: New header file.
1926
1927 2022-02-22 Thomas Schwinge <thomas@codesourcery.com>
1928
1929 * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Fix OpenACC
1930 gang-redundant execution.
1931
1932 2022-02-22 Tom de Vries <tdevries@suse.de>
1933
1934 PR target/99555
1935 * config/nvptx/bar.c (generation_to_barrier): New function, copied
1936 from config/rtems/bar.c.
1937 (futex_wait, futex_wake): New function.
1938 (do_spin, do_wait): New function, copied from config/linux/wait.h.
1939 (gomp_barrier_wait_end, gomp_barrier_wait_last)
1940 (gomp_team_barrier_wake, gomp_team_barrier_wait_end):
1941 (gomp_team_barrier_wait_cancel_end, gomp_team_barrier_cancel): Remove
1942 and replace with include of config/linux/bar.c.
1943 * config/nvptx/bar.h (gomp_barrier_t): Add fields waiters and lock.
1944 (gomp_barrier_init): Init new fields.
1945 * testsuite/libgomp.c-c++-common/task-detach-6.c: Remove nvptx-specific
1946 workarounds.
1947 * testsuite/libgomp.c/pr99555-1.c: Same.
1948 * testsuite/libgomp.fortran/task-detach-6.f90: Same.
1949
1950 2022-02-22 Tom de Vries <tdevries@suse.de>
1951
1952 PR testsuite/104146
1953 * testsuite/libgomp.c++/pr96390.C: Add additional-option
1954 -foffload=-Wa,--verify for nvptx.
1955 * testsuite/libgomp.c-c++-common/pr96390.c: Same.
1956
1957 2022-02-15 Tobias Burnus <tobias@codesourcery.com>
1958
1959 * testsuite/libgomp.fortran/depend-4.f90: New test.
1960
1961 2022-02-10 Tobias Burnus <tobias@codesourcery.com>
1962
1963 PR c++/102204
1964 * testsuite/libgomp.c++/target-virtual-1.C: New test.
1965
1966 2022-02-10 Marcel Vollweiler <marcel@codesourcery.com>
1967
1968 * libgomp.texi: Updated entry for HAS_DEVICE_ADDR.
1969 * target.c (copy_firstprivate_data): Copy only if host address is not
1970 NULL.
1971 * testsuite/libgomp.c++/target-has-device-addr-2.C: New test.
1972 * testsuite/libgomp.c++/target-has-device-addr-4.C: New test.
1973 * testsuite/libgomp.c++/target-has-device-addr-5.C: New test.
1974 * testsuite/libgomp.c++/target-has-device-addr-6.C: New test.
1975 * testsuite/libgomp.c-c++-common/target-has-device-addr-1.c: New test.
1976 * testsuite/libgomp.c/target-has-device-addr-3.c: New test.
1977 * testsuite/libgomp.fortran/target-has-device-addr-1.f90: New test.
1978 * testsuite/libgomp.fortran/target-has-device-addr-2.f90: New test.
1979 * testsuite/libgomp.fortran/target-has-device-addr-3.f90: New test.
1980 * testsuite/libgomp.fortran/target-has-device-addr-4.f90: New test.
1981
1982 2022-02-08 Jakub Jelinek <jakub@redhat.com>
1983
1984 PR libgomp/104385
1985 * task.c (gomp_task_run_post_handle_dependers): If parent is NULL,
1986 clear task->parent.
1987 * testsuite/libgomp.c/pr104385.c: New test.
1988
1989 2022-02-04 Tobias Burnus <tobias@codesourcery.com>
1990
1991 * testsuite/libgomp.fortran/allocate-1.f90: Remove spurious
1992 STOP of previous commit.
1993
1994 2022-02-04 Tobias Burnus <tobias@codesourcery.com>
1995
1996 * testsuite/libgomp.fortran/allocate-1.c (is_64bit_aligned): Renamed
1997 from is_64bit_aligned_.
1998 * testsuite/libgomp.fortran/allocate-1.f90: Fix interface decl
1999 and use it, more implicit none, remove unused argument.
2000
2001 2022-02-03 David Seifert <soap@gentoo.org>
2002 Jakub Jelinek <jakub@redhat.com>
2003
2004 * configure.ac: Support --disable-werror.
2005 * configure: Regenerate.
2006
2007 2022-02-01 Tom de Vries <tdevries@suse.de>
2008
2009 * testsuite/libgomp.oacc-c-c++-common/private-atomic-1.c: Remove
2010 PR83812 workaround.
2011 * testsuite/libgomp.oacc-fortran/private-atomic-1-vector.f90: Same.
2012 * testsuite/libgomp.oacc-fortran/private-atomic-1-worker.f90: Same.
2013
2014 2022-02-01 Tom de Vries <tdevries@suse.de>
2015
2016 * testsuite/libgomp.oacc-c-c++-common/broadcast-many.c: Reduce
2017 num_workers for nvidia accelerator to fix libgomp error 'insufficient
2018 resources'.
2019 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-4.c:
2020 Same.
2021 * testsuite/libgomp.oacc-c-c++-common/reduction-7.c: Same.
2022
2023 2022-02-01 Tom de Vries <tdevries@suse.de>
2024
2025 * testsuite/libgomp.fortran/examples-4/declare_target-1.f90: Reduce
2026 recursion depth.
2027 * testsuite/libgomp.fortran/examples-4/declare_target-2.f90: Same.
2028
2029 2022-01-31 Martin Liska <mliska@suse.cz>
2030
2031 * acinclude.m4: Detect *_ld_is_mold and use it.
2032 * configure: Regenerate.
2033
2034 2022-01-27 Tobias Burnus <tobias@codesourcery.com>
2035
2036 * libgomp.texi (OpenMP 5.0): Update implementation status.
2037
2038 2022-01-21 Thomas Schwinge <thomas@codesourcery.com>
2039
2040 * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c: Strengthen.
2041 * testsuite/libgomp.oacc-c-c++-common/loop-gwv-2.c: Likewise.
2042 * testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c: Likewise.
2043 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c: Likewise.
2044 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c: Likewise.
2045 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c: Likewise.
2046 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c: Likewise.
2047 * testsuite/libgomp.oacc-c-c++-common/loop-red-wv-1.c: Likewise.
2048 * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c: Likewise.
2049 * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c: Likewise.
2050 * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c: Likewise.
2051 * testsuite/libgomp.oacc-c-c++-common/routine-gwv-1.c: Likewise.
2052 * testsuite/libgomp.oacc-c-c++-common/routine-v-1.c: Likewise.
2053 * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c: Likewise.
2054 * testsuite/libgomp.oacc-c-c++-common/routine-wv-1.c: Likewise.
2055
2056 2022-01-19 Marcel Vollweiler <marcel@codesourcery.com>
2057
2058 * config/gcn/icv-device.c: Make GOMP_DEVICE_NUM_VAR public (remove
2059 "static") to make the device num available in the offload image.
2060
2061 2022-01-19 Martin Liska <mliska@suse.cz>
2062 Thomas Schwinge <thomas@codesourcery.com>
2063
2064 * testsuite/libgomp.oacc-c++/privatized-ref-2.C: Update scanning
2065 patterns.
2066 * testsuite/libgomp.oacc-c++/privatized-ref-3.C: Likewise.
2067 * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c:
2068 Likewise.
2069 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-2.c: Likewise.
2070 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Likewise.
2071 * testsuite/libgomp.oacc-c-c++-common/pr85486.c: Likewise.
2072 * testsuite/libgomp.oacc-c-c++-common/pr95270-1.c: Likewise.
2073 * testsuite/libgomp.oacc-c-c++-common/routine-nohost-2.c:
2074 Likewise.
2075 * testsuite/libgomp.oacc-c-c++-common/struct-copyout-1.c:
2076 Likewise.
2077 * testsuite/libgomp.oacc-c-c++-common/struct-copyout-2.c:
2078 Likewise.
2079 * testsuite/libgomp.oacc-c-c++-common/vector-length-64-1.c:
2080 Likewise.
2081 * testsuite/libgomp.oacc-fortran/attach-descriptor-1.f90:
2082 Likewise.
2083 * testsuite/libgomp.oacc-fortran/derivedtypes-arrays-1.f90:
2084 Likewise.
2085 * testsuite/libgomp.oacc-fortran/kernels-loop-2.f95: Likewise.
2086 * testsuite/libgomp.oacc-fortran/parallel-dims.f90: Likewise.
2087 * testsuite/libgomp.oacc-fortran/privatized-ref-1.f95: Likewise.
2088
2089 2022-01-18 Martin Liska <mliska@suse.cz>
2090
2091 * testsuite/libgomp.oacc-c++/privatized-ref-2.C: Update keyword
2092 in dg-warning.
2093 * testsuite/libgomp.oacc-c++/privatized-ref-3.C: Likewise.
2094 * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c: Likewise.
2095 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-2.c: Likewise.
2096 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Likewise.
2097 * testsuite/libgomp.oacc-c-c++-common/pr85486.c: Likewise.
2098 * testsuite/libgomp.oacc-c-c++-common/pr95270-1.c: Likewise.
2099 * testsuite/libgomp.oacc-c-c++-common/routine-nohost-2.c: Likewise.
2100 * testsuite/libgomp.oacc-c-c++-common/struct-copyout-1.c: Likewise.
2101 * testsuite/libgomp.oacc-c-c++-common/struct-copyout-2.c: Likewise.
2102 * testsuite/libgomp.oacc-c-c++-common/vector-length-64-1.c: Likewise.
2103 * testsuite/libgomp.oacc-fortran/attach-descriptor-1.f90: Likewise.
2104 * testsuite/libgomp.oacc-fortran/derivedtypes-arrays-1.f90: Likewise.
2105 * testsuite/libgomp.oacc-fortran/kernels-loop-2.f95: Likewise.
2106 * testsuite/libgomp.oacc-fortran/parallel-dims.f90: Likewise.
2107 * testsuite/libgomp.oacc-fortran/privatized-ref-1.f95: Likewise.
2108
2109 2022-01-17 Thomas Schwinge <thomas@codesourcery.com>
2110
2111 * testsuite/libgomp.oacc-c++/privatized-ref-2.C: Extend.
2112 * testsuite/libgomp.oacc-c++/privatized-ref-3.C: Likewise.
2113 * testsuite/libgomp.oacc-fortran/privatized-ref-1.f95: Likewise.
2114
2115 2022-01-17 Julian Brown <julian@codesourcery.com>
2116 Thomas Schwinge <thomas@codesourcery.com>
2117
2118 * testsuite/libgomp.oacc-fortran/privatized-ref-1.f95: New test.
2119 * testsuite/libgomp.oacc-c++/privatized-ref-2.C: New test.
2120 * testsuite/libgomp.oacc-c++/privatized-ref-3.C: New test.
2121
2122 2022-01-16 Kwok Cheung Yeung <kcy@codesourcery.com>
2123 Andrew Stubbs <ams@codesourcery.com>
2124
2125 * plugin/plugin-gcn.c (parse_target_attributes): Automatically set
2126 the number of teams and threads if necessary.
2127 (gcn_exec): Automatically set the number of gangs and workers if
2128 necessary.
2129
2130 2022-01-13 Hafiz Abid Qadeer <abidh@codesourcery.com>
2131
2132 * testsuite/libgomp.fortran/allocate-1.c: New test.
2133 * testsuite/libgomp.fortran/allocate-1.f90: New test.
2134 * libgomp.texi: Remove string that says that allocate clause
2135 support is for C/C++ only.
2136
2137 2022-01-13 Thomas Schwinge <thomas@codesourcery.com>
2138
2139 * testsuite/libgomp.c-c++-common/on_device_arch.h
2140 (any_device_arch, any_device_arch_intel_mic): New.
2141 * testsuite/lib/libgomp.exp
2142 (check_effective_target_offload_device_any_intel_mic): New.
2143 * testsuite/libgomp.c-c++-common/target-45.c: Use it.
2144 * testsuite/libgomp.fortran/target10.f90: Likewise.
2145
2146 2022-01-13 Thomas Schwinge <thomas@codesourcery.com>
2147
2148 PR tree-optimization/102192
2149 * testsuite/libgomp.oacc-fortran/routine-10.f90: Document current
2150 '-Wuninitialized' diagnostics.
2151
2152 2022-01-13 Thomas Schwinge <thomas@codesourcery.com>
2153
2154 * testsuite/libgomp.oacc-c-c++-common/vred2d-128.c: Document
2155 current '-Wuninitialized' diagnostics.
2156 * testsuite/libgomp.oacc-fortran/data-5.f90: Likewise.
2157 * testsuite/libgomp.oacc-fortran/gemm-2.f90: Likewise.
2158 * testsuite/libgomp.oacc-fortran/gemm.f90: Likewise.
2159 * testsuite/libgomp.oacc-fortran/optional-reduction.f90: Likewise.
2160 * testsuite/libgomp.oacc-fortran/parallel-reduction.f90: Likewise.
2161 * testsuite/libgomp.oacc-fortran/pr70643.f90: Likewise.
2162 * testsuite/libgomp.oacc-fortran/pr96628-part1.f90: Likewise.
2163 * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Likewise.
2164 * testsuite/libgomp.oacc-fortran/reduction-5.f90: Likewise.
2165 * testsuite/libgomp.oacc-fortran/reduction-7.f90: Likewise.
2166 * testsuite/libgomp.oacc-fortran/reference-reductions.f90:
2167 Likewise.
2168
2169 2022-01-13 Thomas Schwinge <thomas@codesourcery.com>
2170
2171 * testsuite/libgomp.c/address-space-1.c: Remove 'dg-xfail-run-if'
2172 for 'offload_device_intel_mic'.
2173
2174 2022-01-13 Julian Brown <julian@codesourcery.com>
2175 Thomas Schwinge <thomas@codesourcery.com>
2176
2177 * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-1.c: Remove GCN
2178 offloading execution XFAIL.
2179
2180 2022-01-13 Thomas Schwinge <thomas@codesourcery.com>
2181
2182 PR middle-end/100280
2183 * testsuite/libgomp.oacc-c-c++-common/declare-vla-kernels-decompose-ice-1.c:
2184 Update.
2185 * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-1.c: Likewise.
2186 * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c:
2187 Likewise.
2188
2189 2022-01-13 Thomas Schwinge <thomas@codesourcery.com>
2190
2191 * testsuite/libgomp.oacc-c-c++-common/declare-vla-kernels-decompose-ice-1.c:
2192 Enhance.
2193 * testsuite/libgomp.oacc-c-c++-common/declare-vla-kernels-decompose.c:
2194 Likewise.
2195 * testsuite/libgomp.oacc-c-c++-common/declare-vla.c: Likewise.
2196 * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-1.c: Likewise.
2197 * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-2.c: Likewise.
2198 * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-3.c: Likewise.
2199 * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c:
2200 Likewise.
2201 * testsuite/libgomp.oacc-fortran/asyncwait-1.f90: Likewise.
2202 * testsuite/libgomp.oacc-fortran/asyncwait-2.f90: Likewise.
2203 * testsuite/libgomp.oacc-fortran/asyncwait-3.f90: Likewise.
2204 * testsuite/libgomp.oacc-fortran/pr94358-1.f90: Likewise.
2205
2206 2022-01-04 Tobias Burnus <tobias@codesourcery.com>
2207
2208 * testsuite/libgomp.c-c++-common/target-45.c: Iterate over all devices.
2209 * testsuite/libgomp.fortran/target10.f90: Likewise.
2210
2211 2022-01-04 Chung-Lin Tang <cltang@codesourcery.com>
2212
2213 * plugin/plugin-gcn.c (GOMP_OFFLOAD_load_image): Change uses of STRINGX
2214 into XSTRING when looking for GOMP_DEVICE_NUM_VAR in offload image.
2215 * plugin/plugin-nvptx.c (GOMP_OFFLOAD_load_image): Likewise.
2216
2217 2022-01-03 Jakub Jelinek <jakub@redhat.com>
2218
2219 * libgomp.texi: Bump @copying's copyright year.
2220
2221 2021-12-13 Tobias Burnus <tobias@codesourcery.com>
2222
2223 * libgomp.texi (OpenMP 5.1): Set Fortran support for atomic to 'Y'.
2224 * testsuite/libgomp.fortran/atomic-19.f90: New test.
2225
2226 2021-12-10 Andrew Stubbs <ams@codesourcery.com>
2227
2228 * plugin/plugin-gcn.c (struct gcn_image_desc): Remove global_variables.
2229 (GOMP_OFFLOAD_load_image): Locate the offload variables via the
2230 table, not individual symbols.
2231
2232 2021-12-09 Chung-Lin Tang <cltang@codesourcery.com>
2233
2234 * testsuite/libgomp.c++/target-lambda-1.C: Only run under
2235 "target offload_device_nonshared_as"
2236 * testsuite/libgomp.c++/target-this-3.C: Likewise.
2237 * testsuite/libgomp.c++/target-this-4.C: Likewise.
2238
2239 2021-12-08 Chung-Lin Tang <cltang@codesourcery.com>
2240
2241 * target.c (gomp_map_vars_existing): Make sure attached pointer is
2242 not overwritten during cross-host/device copying.
2243 (gomp_update): Likewise.
2244 (gomp_exit_data): Likewise.
2245 * testsuite/libgomp.c++/target-11.C: Adjust testcase.
2246 * testsuite/libgomp.c++/target-12.C: Likewise.
2247 * testsuite/libgomp.c++/target-15.C: Likewise.
2248 * testsuite/libgomp.c++/target-16.C: Likewise.
2249 * testsuite/libgomp.c++/target-17.C: Likewise.
2250 * testsuite/libgomp.c++/target-21.C: Likewise.
2251 * testsuite/libgomp.c++/target-23.C: Likewise.
2252 * testsuite/libgomp.c/target-23.c: Likewise.
2253 * testsuite/libgomp.c/target-29.c: Likewise.
2254 * testsuite/libgomp.c-c++-common/target-implicit-map-2.c: New testcase.
2255
2256 2021-12-08 Chung-Lin Tang <cltang@codesourcery.com>
2257
2258 PR middle-end/92120
2259 * libgomp.h (gomp_attach_pointer): Add bool parameter.
2260 * oacc-mem.c (acc_attach_async): Update call to gomp_attach_pointer.
2261 (goacc_enter_data_internal): Likewise.
2262 * target.c (gomp_map_vars_existing): Update assert condition to
2263 include GOMP_MAP_ATTACH_ZERO_LENGTH_ARRAY_SECTION.
2264 (gomp_map_pointer): Add 'bool allow_zero_length_array_sections'
2265 parameter, add support for mapping a pointer with NULL target.
2266 (gomp_attach_pointer): Add 'bool allow_zero_length_array_sections'
2267 parameter, add support for attaching a pointer with NULL target.
2268 (gomp_map_vars_internal): Update calls to gomp_map_pointer and
2269 gomp_attach_pointer, add handling for
2270 GOMP_MAP_ATTACH_ZERO_LENGTH_ARRAY_SECTION, and
2271 GOMP_MAP_POINTER_TO_ZERO_LENGTH_ARRAY_SECTION cases.
2272 * testsuite/libgomp.c++/target-23.C: New testcase.
2273 * testsuite/libgomp.c++/target-lambda-1.C: New testcase.
2274 * testsuite/libgomp.c++/target-lambda-2.C: New testcase.
2275 * testsuite/libgomp.c++/target-this-1.C: New testcase.
2276 * testsuite/libgomp.c++/target-this-2.C: New testcase.
2277 * testsuite/libgomp.c++/target-this-3.C: New testcase.
2278 * testsuite/libgomp.c++/target-this-4.C: New testcase.
2279 * testsuite/libgomp.c++/target-this-5.C: New testcase.
2280
2281 2021-12-04 Tobias Burnus <tobias@codesourcery.com>
2282
2283 * libgomp.texi (OpenMP 5.1): Update status.
2284
2285 2021-12-04 Tobias Burnus <tobias@codesourcery.com>
2286
2287 * libgomp.texi (OMP_PLACES): Extend description for OMP 5.1 changes.
2288
2289 2021-12-02 Chung-Lin Tang <cltang@codesourcery.com>
2290
2291 PR fortran/90030
2292 * testsuite/libgomp.oacc-fortran/pr90030.f90: New test.
2293 * testsuite/libgomp.fortran/pr90030.f90: New test.
2294
2295 2021-11-30 Kwok Cheung Yeung <kcy@codesourcery.com>
2296 Thomas Schwinge <thomas@codesourcery.com>
2297
2298 * testsuite/libgomp.oacc-fortran/parallel-dims.f90: Remove
2299 temporary skip.
2300
2301 2021-11-30 Cesar Philippidis <cesar@codesourcery.com>
2302 Thomas Schwinge <thomas@codesourcery.com>
2303
2304 * testsuite/libgomp.oacc-fortran/parallel-dims.f90: Temporarily
2305 skip.
2306
2307 2021-11-29 Richard Biener <rguenther@suse.de>
2308
2309 * oacc-plugin.c (GOMP_PLUGIN_acc_default_dim): Remove unreachable
2310 return.
2311
2312 2021-11-24 Jakub Jelinek <jakub@redhat.com>
2313
2314 PR middle-end/103384
2315 * testsuite/libgomp.c/declare-variant-2.c: New test.
2316
2317 2021-11-18 David Edelsohn <dje.gcc@gmail.com>
2318
2319 * alloc.c (gomp_aligned_alloc): Fix typo.
2320
2321 2021-11-18 Jakub Jelinek <jakub@redhat.com>
2322
2323 PR libgomp/102838
2324 * libgomp.h (GOMP_USE_ALIGNED_WORK_SHARES): Define if
2325 GOMP_HAVE_EFFICIENT_ALIGNED_ALLOC is defined and __AMDGCN__ is not.
2326 (struct gomp_work_share): Use GOMP_USE_ALIGNED_WORK_SHARES instead of
2327 GOMP_HAVE_EFFICIENT_ALIGNED_ALLOC.
2328 * work.c (alloc_work_share, gomp_work_share_start): Likewise.
2329 * team.c (gomp_new_team): If GOMP_USE_ALIGNED_WORK_SHARES, use
2330 gomp_aligned_alloc instead of team_malloc.
2331
2332 2021-11-18 Jakub Jelinek <jakub@redhat.com>
2333
2334 PR libgomp/102838
2335 * alloc.c (gomp_aligned_alloc): Prefer _aligned_alloc over
2336 memalign over posix_memalign over aligned_alloc over fallback
2337 with malloc instead of aligned_alloc over _aligned_alloc over
2338 posix_memalign over memalign over fallback with malloc. For
2339 aligned_alloc, round up size up to multiple of al.
2340
2341 2021-11-16 Jakub Jelinek <jakub@redhat.com>
2342
2343 * libgomp.texi (OpenMP 5.1): Mark thread_limit clause to target
2344 construct as implemented.
2345
2346 2021-11-15 Tobias Burnus <tobias@codesourcery.com>
2347
2348 * testsuite/libgomp.fortran/thread-limit-1.f90: New test.
2349
2350 2021-11-15 Jakub Jelinek <jakub@redhat.com>
2351
2352 * task.c (gomp_create_target_task): Copy args array as well.
2353 * target.c (gomp_target_fallback): Add args argument.
2354 Set gomp_icv (true)->thread_limit_var if thread_limit is present.
2355 (GOMP_target): Adjust gomp_target_fallback caller.
2356 (GOMP_target_ext): Likewise.
2357 (gomp_target_task_fn): Likewise.
2358 * config/nvptx/team.c (gomp_nvptx_main): Set
2359 gomp_global_icv.thread_limit_var.
2360 * testsuite/libgomp.c-c++-common/thread-limit-1.c: New test.
2361
2362 2021-11-15 Jakub Jelinek <jakub@redhat.com>
2363
2364 * config/nvptx/team.c (__gomp_team_num): Define as
2365 __attribute__((shared)) var.
2366 (gomp_nvptx_main): Initialize __gomp_team_num to 0.
2367 * config/nvptx/target.c (__gomp_team_num): Declare as
2368 extern __attribute__((shared)) var.
2369 (GOMP_teams4): Use __gomp_team_num as the team number instead of
2370 %ctaid.x. If first, initialize it to %ctaid.x. If num_teams_lower
2371 is bigger than num_blocks, use num_teams_lower teams and arrange for
2372 bumping of __gomp_team_num if !first and returning false once we run
2373 out of teams.
2374 * config/nvptx/teams.c (__gomp_team_num): Declare as
2375 extern __attribute__((shared)) var.
2376 (omp_get_team_num): Return __gomp_team_num value instead of %ctaid.x.
2377
2378 2021-11-15 Jakub Jelinek <jakub@redhat.com>
2379
2380 * testsuite/libgomp.c/teams-5.c: New test.
2381
2382 2021-11-12 Jakub Jelinek <jakub@redhat.com>
2383
2384 PR target/103201
2385 * config/gcn/icv-device.c (omp_get_num_teams, omp_get_team_num): Move
2386 to ...
2387 * config/gcn/teams.c: ... here. New file.
2388
2389 2021-11-12 Chung-Lin Tang <cltang@codesourcery.com>
2390
2391 * target.c (gomp_map_vars_existing): Add 'bool implicit' parameter, add
2392 implicit map handling to allow a "superset" existing map as valid case.
2393 (get_kind): Adjust to filter out GOMP_MAP_IMPLICIT bits in return value.
2394 (get_implicit): New function to extract implicit status.
2395 (gomp_map_fields_existing): Adjust arguments in calls to
2396 gomp_map_vars_existing, and add uses of get_implicit.
2397 (gomp_map_vars_internal): Likewise.
2398 * testsuite/libgomp.c-c++-common/target-implicit-map-1.c: New test.
2399
2400 2021-11-12 Jakub Jelinek <jakub@redhat.com>
2401
2402 * libgomp_g.h (GOMP_teams4): Declare.
2403 * libgomp.map (GOMP_5.1): Export GOMP_teams4.
2404 * target.c (GOMP_teams4): New function.
2405 * config/nvptx/target.c (GOMP_teams): Remove.
2406 (GOMP_teams4): New function.
2407 * config/gcn/target.c (GOMP_teams): Remove.
2408 (GOMP_teams4): New function.
2409 * testsuite/libgomp.c/teams-4.c (main): Expect exactly 2
2410 teams instead of <= 2.
2411 * testsuite/libgomp.c-c++-common/teams-2.c: New test.
2412
2413 2021-11-11 Tobias Burnus <tobias@codesourcery.com>
2414
2415 * testsuite/libgomp.fortran/teams-1.f90: New test.
2416
2417 2021-11-11 Jakub Jelinek <jakub@redhat.com>
2418
2419 * libgomp.h (struct gomp_thread): Add num_teams and team_num members.
2420 * team.c (struct gomp_thread_start_data): Likewise.
2421 (gomp_thread_start): Initialize thr->num_teams and thr->team_num.
2422 (gomp_team_start): Initialize start_data->num_teams and
2423 start_data->team_num. Update nthr->num_teams and nthr->team_num.
2424 * teams.c (gomp_num_teams, gomp_team_num): Remove.
2425 (GOMP_teams_reg): Set and restore thr->num_teams and thr->team_num
2426 instead of gomp_num_teams and gomp_team_num.
2427 (omp_get_num_teams): Use thr->num_teams + 1 instead of gomp_num_teams.
2428 (omp_get_team_num): Use thr->team_num instead of gomp_team_num.
2429 * testsuite/libgomp.c/teams-4.c: New test.
2430
2431 2021-11-11 Jakub Jelinek <jakub@redhat.com>
2432
2433 * testsuite/libgomp.c-c++-common/teams-1.c: New test.
2434
2435 2021-11-09 Thomas Schwinge <thomas@codesourcery.com>
2436
2437 * env.c (parse_gomp_openacc_dim): Restore parsing.
2438
2439 2021-10-30 Tobias Burnus <tobias@codesourcery.com>
2440
2441 PR middle-end/102972
2442 * testsuite/libgomp.c-c++-common/icv-3.c: Nest API calls inside
2443 parallel construct.
2444 * testsuite/libgomp.c-c++-common/icv-4.c: Likewise.
2445 * testsuite/libgomp.c/target-3.c: Likewise.
2446 * testsuite/libgomp.c/target-5.c: Likewise.
2447 * testsuite/libgomp.c/target-6.c: Likewise.
2448 * testsuite/libgomp.c/target-teams-1.c: Likewise.
2449 * testsuite/libgomp.c/teams-1.c: Likewise.
2450 * testsuite/libgomp.c/thread-limit-2.c: Likewise.
2451 * testsuite/libgomp.c/thread-limit-3.c: Likewise.
2452 * testsuite/libgomp.c/thread-limit-4.c: Likewise.
2453 * testsuite/libgomp.c/thread-limit-5.c: Likewise.
2454 * testsuite/libgomp.fortran/icv-3.f90: Likewise.
2455 * testsuite/libgomp.fortran/icv-4.f90: Likewise.
2456 * testsuite/libgomp.fortran/teams1.f90: Likewise.
2457
2458 2021-10-29 Aldy Hernandez <aldyh@redhat.com>
2459
2460 * testsuite/libgomp.graphite/force-parallel-4.c: Adjust for threading changes.
2461 * testsuite/libgomp.graphite/force-parallel-8.c: Same.
2462
2463 2021-10-27 Jakub Jelinek <jakub@redhat.com>
2464
2465 * libgomp.texi (OpenMP 5.0): Mention that Non-rectangular loop nests
2466 aren't implemented for Fortran yet.
2467
2468 2021-10-27 Jakub Jelinek <jakub@redhat.com>
2469
2470 * testsuite/libgomp.c/loop-26.c: New test.
2471 * testsuite/libgomp.c/loop-27.c: New test.
2472
2473 2021-10-25 Tobias Burnus <tobias@codesourcery.com>
2474
2475 PR testsuite/102910
2476 * testsuite/libgomp.oacc-c-c++-common/loop-gwv-2.c: Use __builtin_alloca
2477 instead of #include <alloca.h> + alloca.
2478
2479 2021-10-21 Chung-Lin Tang <cltang@codesourcery.com>
2480
2481 * libgomp.texi (Support of strictly structured blocks in Fortran):
2482 Adjust to 'Y'.
2483 * testsuite/libgomp.fortran/task-reduction-16.f90: Adjust testcase.
2484
2485 2021-10-20 Chung-Lin Tang <cltang@codesourcery.com>
2486
2487 * testsuite/libgomp.fortran/target-in-reduction-1.f90: New test.
2488 * testsuite/libgomp.fortran/target-in-reduction-2.f90: New test.
2489
2490 2021-10-20 Jakub Jelinek <jakub@redhat.com>
2491
2492 PR libgomp/102838
2493 * libgomp.h (struct gomp_work_share_1st_cacheline): New type.
2494 (struct gomp_work_share): Only use aligned(64) attribute if
2495 GOMP_HAVE_EFFICIENT_ALIGNED_ALLOC is defined, otherwise just
2496 add padding before lock to ensure lock is at offset 64 bytes
2497 into the structure.
2498 (gomp_workshare_struct_check1, gomp_workshare_struct_check2):
2499 New poor man's static assertions.
2500 * work.c (gomp_work_share_start): Use gomp_aligned_alloc instead of
2501 gomp_malloc if GOMP_HAVE_EFFICIENT_ALIGNED_ALLOC.
2502
2503 2021-10-20 Aldy Hernandez <aldyh@redhat.com>
2504 Richard Biener <rguenther@suse.de>
2505
2506 * testsuite/libgomp.graphite/force-parallel-5.c: Remove xfail.
2507
2508 2021-10-18 Jakub Jelinek <jakub@redhat.com>
2509
2510 * config/linux/affinity.c (gomp_affinity_init_numa_domains): Add
2511 && gomp_places_list_len < count after nfirst <= nlast loop condition.
2512
2513 2021-10-18 Tobias Burnus <tobias@codesourcery.com>
2514
2515 PR fortran/102086
2516 PR fortran/92189
2517 PR fortran/92621
2518 PR fortran/101308
2519 PR fortran/101309
2520 PR fortran/101635
2521 PR fortran/92482
2522 * testsuite/libgomp.fortran/optional-bind-c.f90: New test.
2523
2524 2021-10-15 Jakub Jelinek <jakub@redhat.com>
2525
2526 * testsuite/libgomp.c/affinity-1.c (struct places): Change name field
2527 type from char [50] to const char *.
2528 (places_array): Add a testcase for simplified syntax place followed
2529 by length or length and stride.
2530
2531 2021-10-15 Jakub Jelinek <jakub@redhat.com>
2532
2533 * env.c (parse_one_place): Handle non-negative-number the same
2534 as { non-negative-number }. Reject even !number:1 and
2535 !number:1:stride or !place:1 or !place:1:stride instead of just
2536 length other than 1.
2537 * libgomp.texi (OpenMP 5.1): Document OMP_PLACES syntax extensions
2538 and OMP_NUM_TEAMS/OMP_TEAMS_THREAD_LIMIT and
2539 omp_{set_num,get_max}_teams/omp_{s,g}et_teams_thread_limit features
2540 as implemented.
2541 * testsuite/libgomp.c/affinity-1.c: Add a test for the 5.1 place
2542 simplified syntax.
2543
2544 2021-10-15 Jakub Jelinek <jakub@redhat.com>
2545
2546 * env.c (parse_schedule): For strtoul or strtoull calls which don't
2547 clearly reject return value 0 as invalid handle the case where end
2548 pointer is the same as first argument as invalid.
2549 (parse_unsigned_long_1): Likewise.
2550 (parse_one_place): Likewise.
2551 (parse_places_var): Likewise.
2552 (parse_stacksize): Likewise.
2553 (parse_spincount): Likewise.
2554 (parse_affinity): Likewise.
2555 (parse_gomp_openacc_dim): Likewise. Avoid strict aliasing violation.
2556 Make code valid C89.
2557 * config/linux/affinity.c (gomp_affinity_find_last_cache_level):
2558 For strtoul calls which don't clearly reject return value 0 as
2559 invalid handle the case where end pointer is the same as first
2560 argument as invalid.
2561 (gomp_affinity_init_level_1): Likewise.
2562 (gomp_affinity_init_numa_domains): Likewise.
2563 * config/rtems/proc.c (parse_thread_pools): Likewise.
2564
2565 2021-10-15 Jakub Jelinek <jakub@redhat.com>
2566
2567 * config/linux/affinity.c (gomp_affinity_init_level_1): For level 1
2568 after creating count places clean up and return immediately.
2569 * testsuite/libgomp.c/places-6.c: New test.
2570 * testsuite/libgomp.c/places-7.c: New test.
2571 * testsuite/libgomp.c/places-8.c: New test.
2572 * testsuite/libgomp.c/places-9.c: New test.
2573 * testsuite/libgomp.c/places-10.c: New test.
2574
2575 2021-10-15 Jakub Jelinek <jakub@redhat.com>
2576
2577 * env.c (parse_places_var): Handle numa_domains as level 5.
2578 * config/linux/affinity.c (gomp_affinity_init_numa_domains): New
2579 function.
2580 (gomp_affinity_init_level): Use it instead of
2581 gomp_affinity_init_level_1 for level == 5.
2582 * testsuite/libgomp.c/places-5.c: New test.
2583
2584 2021-10-15 Jakub Jelinek <jakub@redhat.com>
2585
2586 * env.c (parse_places_var): Handle ll_caches as level 4.
2587 * config/linux/affinity.c (gomp_affinity_find_last_cache_level): New
2588 function.
2589 (gomp_affinity_init_level_1): Handle level 4 as logical cpus sharing
2590 last level cache.
2591 (gomp_affinity_init_level): Likewise.
2592 * testsuite/libgomp.c/places-1.c: New test.
2593 * testsuite/libgomp.c/places-2.c: New test.
2594 * testsuite/libgomp.c/places-3.c: New test.
2595 * testsuite/libgomp.c/places-4.c: New test.
2596
2597 2021-10-14 Kwok Cheung Yeung <kcy@codesourcery.com>
2598
2599 * libgomp.texi (OpenMP 5.0): Update entry for declare variant
2600 directive.
2601
2602 2021-10-14 Kwok Cheung Yeung <kcy@codesourcery.com>
2603
2604 * testsuite/libgomp.fortran/declare-variant-1.f90: New test.
2605
2606 2021-10-12 Julian Brown <julian@codesourcery.com>
2607
2608 * target.c (gomp_copy_host2dev): Release device lock on cbuf
2609 error path.
2610
2611 2021-10-12 Tobias Burnus <tobias@codesourcery.com>
2612
2613 * testsuite/libgomp.fortran/icv-3.f90: New.
2614 * testsuite/libgomp.fortran/icv-4.f90: New.
2615
2616 2021-10-12 Jakub Jelinek <jakub@redhat.com>
2617
2618 * libgomp.texi (omp_get_max_teams, omp_get_teams_thread_limit,
2619 omp_set_num_teams, omp_set_teams_thread_limit, OMP_NUM_TEAMS,
2620 OMP_TEAMS_THREAD_LIMIT): Document.
2621
2622 2021-10-12 Jakub Jelinek <jakub@redhat.com>
2623
2624 * libgomp.texi (omp_get_device_num): Move @node before omp_get_dynamic
2625 to avoid makeinfo warnings.
2626
2627 2021-10-12 Jakub Jelinek <jakub@redhat.com>
2628
2629 * testsuite/libgomp.c-c++-common/icv-3.c: New test.
2630 * testsuite/libgomp.c-c++-common/icv-4.c: New test.
2631
2632 2021-10-12 Jakub Jelinek <jakub@redhat.com>
2633
2634 PR libgomp/102628
2635 PR libgomp/102668
2636 * testsuite/libgomp.c-c++-common/alloc-9.c (main): Decrease
2637 allocation sizes from 420 to 320 and from 768 to 568.
2638 * testsuite/libgomp.fortran/alloc-11.f90: Likewise.
2639 * testsuite/libgomp.fortran/alloc-1.F90: Change expected alignment
2640 for cr from 16 to 4.
2641
2642 2021-10-12 Jakub Jelinek <jakub@redhat.com>
2643
2644 * testsuite/libgomp.c/scan-11.c: Remove option -fvect-cost-model=cheap.
2645 * testsuite/libgomp.c/scan-12.c: Likewise.
2646 * testsuite/libgomp.c/scan-13.c: Likewise.
2647 * testsuite/libgomp.c/scan-14.c: Likewise.
2648 * testsuite/libgomp.c/scan-15.c: Likewise.
2649 * testsuite/libgomp.c/scan-16.c: Likewise.
2650 * testsuite/libgomp.c/scan-17.c: Likewise.
2651 * testsuite/libgomp.c/scan-18.c: Likewise.
2652 * testsuite/libgomp.c/scan-19.c: Likewise.
2653 * testsuite/libgomp.c/scan-20.c: Likewise.
2654 * testsuite/libgomp.c/scan-21.c: Likewise.
2655 * testsuite/libgomp.c/scan-22.c: Likewise.
2656 * testsuite/libgomp.c++/scan-9.C: Likewise.
2657 * testsuite/libgomp.c++/scan-10.C: Likewise.
2658 * testsuite/libgomp.c++/scan-11.C: Likewise.
2659 * testsuite/libgomp.c++/scan-12.C: Likewise.
2660 * testsuite/libgomp.c++/scan-13.C: Likewise.
2661 * testsuite/libgomp.c++/scan-14.C: Likewise.
2662 * testsuite/libgomp.c++/scan-15.C: Likewise.
2663 * testsuite/libgomp.c++/scan-16.C: Likewise.
2664
2665 2021-10-12 Kewen Lin <linkw@linux.ibm.com>
2666
2667 * testsuite/libgomp.graphite/force-parallel-8.c: Add --param max-stores-to-sink=0.
2668
2669 2021-10-11 Marcel Vollweiler <marcel@codesourcery.com>
2670
2671 * allocator.c (omp_init_allocator): Replace omp_atv_sequential with
2672 omp_atv_serialized.
2673 * omp.h.in: Add deprecated flag for omp_atv_sequential.
2674 * omp_lib.f90.in: Add deprecated flag for omp_atv_sequential.
2675 * testsuite/libgomp.c-c++-common/alloc-10.c: New test.
2676 * testsuite/libgomp.fortran/alloc-12.f90: New test.
2677
2678 2021-10-11 Jakub Jelinek <jakub@redhat.com>
2679
2680 * omp.h.in (omp_set_num_teams, omp_get_max_teams,
2681 omp_set_teams_thread_limit, omp_get_teams_thread_limit): Declare.
2682 * omp_lib.f90.in (omp_set_num_teams, omp_get_max_teams,
2683 omp_set_teams_thread_limit, omp_get_teams_thread_limit): Declare.
2684 * omp_lib.h.in (omp_set_num_teams, omp_get_max_teams,
2685 omp_set_teams_thread_limit, omp_get_teams_thread_limit): Declare.
2686 * libgomp.h (gomp_nteams_var, gomp_teams_thread_limit_var): Declare.
2687 * libgomp.map (OMP_5.1): Export omp_get_max_teams{,_},
2688 omp_get_teams_thread_limit{,_}, omp_set_num_teams{,_,_8_} and
2689 omp_set_teams_thread_limit{,_,_8_}.
2690 * icv.c (omp_set_num_teams, omp_get_max_teams,
2691 omp_set_teams_thread_limit, omp_get_teams_thread_limit): New
2692 functions.
2693 * env.c (gomp_nteams_var, gomp_teams_thread_limit_var): Define.
2694 (omp_display_env): Print OMP_NUM_TEAMS and OMP_TEAMS_THREAD_LIMIT.
2695 (initialize_env): Handle OMP_NUM_TEAMS and OMP_TEAMS_THREAD_LIMIT env
2696 vars.
2697 * teams.c (GOMP_teams_reg): If thread_limit is not specified, use
2698 gomp_teams_thread_limit_var as fallback if not zero. If num_teams
2699 is not specified, use gomp_nteams_var.
2700 * fortran.c (omp_set_num_teams, omp_get_max_teams,
2701 omp_set_teams_thread_limit, omp_get_teams_thread_limit): Add
2702 ialias_redirect.
2703 (omp_set_num_teams_, omp_set_num_teams_8_, omp_get_max_teams_,
2704 omp_set_teams_thread_limit_, omp_set_teams_thread_limit_8_,
2705 omp_get_teams_thread_limit_): New functions.
2706
2707 2021-10-09 liuhongt <hongtao.liu@intel.com>
2708
2709 * testsuite/libgomp.c++/scan-10.C: Add option -fvect-cost-model=cheap.
2710 * testsuite/libgomp.c++/scan-11.C: Ditto.
2711 * testsuite/libgomp.c++/scan-12.C: Ditto.
2712 * testsuite/libgomp.c++/scan-13.C: Ditto.
2713 * testsuite/libgomp.c++/scan-14.C: Ditto.
2714 * testsuite/libgomp.c++/scan-15.C: Ditto.
2715 * testsuite/libgomp.c++/scan-16.C: Ditto.
2716 * testsuite/libgomp.c++/scan-9.C: Ditto.
2717 * testsuite/libgomp.c-c++-common/lastprivate-conditional-7.c: Ditto.
2718 * testsuite/libgomp.c-c++-common/lastprivate-conditional-8.c: Ditto.
2719 * testsuite/libgomp.c/scan-11.c: Ditto.
2720 * testsuite/libgomp.c/scan-12.c: Ditto.
2721 * testsuite/libgomp.c/scan-13.c: Ditto.
2722 * testsuite/libgomp.c/scan-14.c: Ditto.
2723 * testsuite/libgomp.c/scan-15.c: Ditto.
2724 * testsuite/libgomp.c/scan-16.c: Ditto.
2725 * testsuite/libgomp.c/scan-17.c: Ditto.
2726 * testsuite/libgomp.c/scan-18.c: Ditto.
2727 * testsuite/libgomp.c/scan-19.c: Ditto.
2728 * testsuite/libgomp.c/scan-20.c: Ditto.
2729 * testsuite/libgomp.c/scan-21.c: Ditto.
2730 * testsuite/libgomp.c/scan-22.c: Ditto.
2731
2732 2021-10-09 Jakub Jelinek <jakub@redhat.com>
2733
2734 * libgomp.texi (OpenMP 5.1): Mention implemented support for
2735 structured block sequences in C/C++. Mention support for
2736 unconstrained/reproducible modifiers on order clause.
2737 Mention partial (C/C++ only) support of extentensions to atomics
2738 construct. Mention partial (C/C++ on clause only) support of
2739 align/allocator modifiers on allocate clause.
2740
2741 2021-10-02 Tobias Burnus <tobias@codesourcery.com>
2742
2743 * testsuite/libgomp.fortran/order-reproducible-1.f90: New test
2744 based on libgomp.c-c++-common/order-reproducible-1.c.
2745 * testsuite/libgomp.fortran/order-reproducible-2.f90: Likewise.
2746 * testsuite/libgomp.fortran/my-usleep.c: New test.
2747
2748 2021-10-01 Tobias Burnus <tobias@codesourcery.com>
2749
2750 * testsuite/libgomp.fortran/alloc-10.f90: Fix alignment check.
2751 * testsuite/libgomp.fortran/alloc-7.f90: Fix array access.
2752 * testsuite/libgomp.fortran/alloc-8.f90: Likewise.
2753 * testsuite/libgomp.fortran/alloc-11.f90: New test for omp_realloc,
2754 based on libgomp.c-c++-common/alloc-9.c.
2755
2756 2021-10-01 Jakub Jelinek <jakub@redhat.com>
2757
2758 * testsuite/libgomp.c-c++-common/order-reproducible-1.c: New test.
2759 * testsuite/libgomp.c-c++-common/order-reproducible-2.c: New test.
2760
2761 2021-10-01 Jakub Jelinek <jakub@redhat.com>
2762
2763 * affinity-fmt.c (omp_get_team_num, omp_get_num_teams): Add
2764 ialias_redirect.
2765 * env.c (handle_omp_display_env): Use ialias_call.
2766 * icv-device.c: Move ialias right below each function.
2767 (omp_get_device_num): Use ialias_call.
2768 * fortran.c (omp_fulfill_event): Add ialias_redirect.
2769 * icv.c (omp_get_active_level): Add ialias_redirect.
2770
2771 2021-10-01 Jakub Jelinek <jakub@redhat.com>
2772
2773 * omp.h.in (omp_aligned_alloc, omp_aligned_calloc): Add
2774 __alloc_align__ (1) attribute.
2775 * testsuite/libgomp.c-c++-common/alloc-9.c: New test.
2776
2777 2021-09-30 Tobias Burnus <tobias@codesourcery.com>
2778
2779 * testsuite/libgomp.fortran/alloc-7.f90: Add dg-prune-output
2780 for -fintrinsic-modules-path= warning of the C compiler.
2781 * testsuite/libgomp.fortran/alloc-9.f90: Likewise.
2782 * testsuite/libgomp.fortran/alloc-10.f90: Likewise.
2783
2784 2021-09-30 Tobias Burnus <tobias@codesourcery.com>
2785
2786 * libgomp.texi (OpenMP 5.1): Set implementation status to Y for
2787 omp_aligned_{,c}alloc and omp_{c,re}alloc routines.
2788 * omp_lib.f90.in (omp_aligned_alloc, omp_aligned_calloc, omp_calloc,
2789 omp_realloc): Add.
2790 * omp_lib.h.in (omp_aligned_alloc, omp_aligned_calloc, omp_calloc,
2791 omp_realloc): Add.
2792 * testsuite/libgomp.fortran/alloc-10.f90: New test.
2793 * testsuite/libgomp.fortran/alloc-6.f90: New test.
2794 * testsuite/libgomp.fortran/alloc-7.c: New test.
2795 * testsuite/libgomp.fortran/alloc-7.f90: New test.
2796 * testsuite/libgomp.fortran/alloc-8.f90: New test.
2797 * testsuite/libgomp.fortran/alloc-9.f90: New test.
2798
2799 2021-09-30 Jakub Jelinek <jakub@redhat.com>
2800
2801 * omp.h.in (omp_aligned_alloc, omp_calloc, omp_aligned_calloc,
2802 omp_realloc): New prototypes.
2803 (omp_alloc): Move after omp_free prototype, add __malloc__ (omp_free)
2804 attribute.
2805 * allocator.c: Include string.h.
2806 (omp_aligned_alloc): No longer static, add ialias. Add new_alignment
2807 variable and use it instead of alignment so that when retrying the old
2808 alignment is used again. Don't retry if new alignment is the same
2809 as old alignment, unless allocator had pool size.
2810 (omp_alloc, GOMP_alloc, GOMP_free): Use ialias_call.
2811 (omp_aligned_calloc, omp_calloc, omp_realloc): New functions.
2812 * libgomp.map (OMP_5.0.2): Export omp_aligned_alloc, omp_calloc,
2813 omp_aligned_calloc and omp_realloc.
2814 * testsuite/libgomp.c-c++-common/alloc-4.c (main): Add
2815 omp_aligned_alloc, omp_calloc and omp_aligned_calloc tests.
2816 * testsuite/libgomp.c-c++-common/alloc-5.c: New test.
2817 * testsuite/libgomp.c-c++-common/alloc-6.c: New test.
2818 * testsuite/libgomp.c-c++-common/alloc-7.c: New test.
2819 * testsuite/libgomp.c-c++-common/alloc-8.c: New test.
2820
2821 2021-09-28 Tobias Burnus <tobias@codesourcery.com>
2822
2823 PR libgomp/96661
2824 * configure.ac: Only check for int-type = 2*size_t support when
2825 building with Fortran support.
2826 * configure: Regenerate.
2827
2828 2021-09-28 Thomas Schwinge <thomas@codesourcery.com>
2829
2830 * testsuite/libgomp.oacc-fortran/if-1.f90: Adjust.
2831 * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Likewise.
2832
2833 2021-09-27 Aldy Hernandez <aldyh@redhat.com>
2834
2835 * team.c: Initialize start_data.
2836 * testsuite/libgomp.graphite/force-parallel-4.c: Adjust.
2837 * testsuite/libgomp.graphite/force-parallel-8.c: Adjust.
2838
2839 2021-09-27 Tobias Burnus <tobias@codesourcery.com>
2840
2841 * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Change
2842 dg-message back to dg-note.
2843
2844 2021-09-27 Tobias Burnus <tobias@codesourcery.com>
2845
2846 PR fortran/94070
2847 * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Update
2848 expected dg-note output.
2849
2850 2021-09-22 Tobias Burnus <tobias@codesourcery.com>
2851
2852 PR fortran/55534
2853 * testsuite/libgomp.fortran/fortran.exp (ALWAYS_CFLAGS): Revert
2854 r12-3722 by removing -Wno-missing-include-dirs.
2855 * testsuite/libgomp.oacc-fortran/fortran.exp (ALWAYS_CFLAGS): Likewise.
2856
2857 2021-09-22 Jakub Jelinek <jakub@redhat.com>
2858
2859 * testsuite/libgomp.c-c++-common/allocate-2.c: New test.
2860 * testsuite/libgomp.c-c++-common/allocate-3.c: New test.
2861
2862 2021-09-21 Tobias Burnus <tobias@codesourcery.com>
2863
2864 PR fortran/55534
2865 * testsuite/libgomp.fortran/fortran.exp: Add -Wno-missing-include-dirs
2866 to ALWAYS_CFLAGS.
2867 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
2868
2869 2021-09-18 Jakub Jelinek <jakub@redhat.com>
2870
2871 * testsuite/libgomp.c++/default-1.C: New test.
2872 * testsuite/libgomp.c-c++-common/default-1.c: New test.
2873 * libgomp.texi (OpenMP 5.1): Mark "private and firstprivate argument
2874 to default clause in C and C++" as implemented.
2875
2876 2021-09-17 Julian Brown <julian@codesourcery.com>
2877
2878 * testsuite/libgomp.oacc-c-c++-common/broadcast-many.c: Update.
2879
2880 2021-09-17 Julian Brown <julian@codesourcery.com>
2881
2882 * testsuite/libgomp.oacc-c-c++-common/broadcast-many.c: New test.
2883
2884 2021-09-17 Jakub Jelinek <jakub@redhat.com>
2885
2886 * libgomp.texi (OpenMP 5.1): Spelling fix,
2887 declare variante -> declare variant.
2888
2889 2021-09-17 Jakub Jelinek <jakub@redhat.com>
2890
2891 * testsuite/libgomp.c-c++-common/atomic-19.c: Drop c effective target.
2892 Use /* */ comments instead of //.
2893 * testsuite/libgomp.c-c++-common/atomic-20.c: Likewise.
2894 * testsuite/libgomp.c-c++-common/atomic-21.c: Likewise.
2895 * testsuite/libgomp.c++/atomic-16.C: New test.
2896 * testsuite/libgomp.c++/atomic-17.C: New test.
2897
2898 2021-09-10 Jakub Jelinek <jakub@redhat.com>
2899
2900 * testsuite/libgomp.c-c++-common/atomic-19.c: New test.
2901 * testsuite/libgomp.c-c++-common/atomic-20.c: New test.
2902 * testsuite/libgomp.c-c++-common/atomic-21.c: New test.
2903
2904 2021-09-07 Tobias Burnus <tobias@codesourcery.com>
2905
2906 * libgomp.texi (OpenMP Implementation Status): Extend
2907 OpenMP 5.0 section.
2908 (OpenACC Profiling Interface): Fix typo.
2909
2910 2021-09-07 Tobias Burnus <tobias@codesourcery.com>
2911
2912 * libgomp.texi (Enabling OpenMP): Refer to OMP spec in general
2913 not to 4.5; link to new section.
2914 (OpenMP Implementation Status): New.
2915
2916 2021-09-06 Thomas Schwinge <thomas@codesourcery.com>
2917
2918 * testsuite/libgomp.c/target-43.c: '-latomic' for nvptx offloading.
2919
2920 2021-09-03 Tobias Burnus <tobias@codesourcery.com>
2921
2922 * testsuite/libgomp.c-c++-common/error-1.c: Use \r\n not \n\r in
2923 dg-output.
2924 * testsuite/libgomp.fortran/error-1.f90: Likewise.
2925
2926 2021-08-23 Thomas Schwinge <thomas@codesourcery.com>
2927 Jakub Jelinek <jakub@redhat.com>
2928
2929 * testsuite/libgomp.c/address-space-1.c: New file.
2930
2931 2021-08-23 Thomas Schwinge <thomas@codesourcery.com>
2932
2933 * testsuite/lib/libgomp.exp
2934 (check_effective_target_offload_target_intelmic): Remove 'proc'.
2935 (check_effective_target_offload_device_intel_mic): New 'proc'.
2936 * testsuite/libgomp.c-c++-common/on_device_arch.h
2937 (device_arch_intel_mic, on_device_arch_intel_mic): New.
2938 * testsuite/libgomp.c-c++-common/target-45.c: Use that for
2939 'dg-xfail-run-if'.
2940 * testsuite/libgomp.fortran/target10.f90: Likewise.
2941
2942 2021-08-23 Tobias Burnus <tobias@codesourcery.com>
2943
2944 * testsuite/libgomp.fortran/taskloop-4-a.f90: New test.
2945 * testsuite/libgomp.fortran/taskloop-4.f90: New test.
2946 * testsuite/libgomp.fortran/taskloop-5-a.f90: New test.
2947 * testsuite/libgomp.fortran/taskloop-5.f90: New test.
2948
2949 2021-08-23 Jakub Jelinek <jakub@redhat.com>
2950
2951 * taskloop.c (GOMP_taskloop): Handle GOMP_TASK_FLAG_STRICT.
2952 * testsuite/libgomp.c-c++-common/taskloop-4.c (main): Fix up comment.
2953 * testsuite/libgomp.c-c++-common/taskloop-5.c: New test.
2954
2955 2021-08-22 Thomas Schwinge <thomas@codesourcery.com>
2956
2957 * config/nvptx/error.c (fwrite, exit): Override, too.
2958 * testsuite/libgomp.c-c++-common/error-1.c: Add a minimum amount
2959 of offloading testing.
2960 * testsuite/libgomp.fortran/error-1.f90: Likewise.
2961
2962 2021-08-20 Tobias Burnus <tobias@codesourcery.com>
2963
2964 * testsuite/libgomp.fortran/error-1.f90: New test.
2965
2966 2021-08-20 Jakub Jelinek <jakub@redhat.com>
2967
2968 * libgomp.map (GOMP_5.1): Add GOMP_error and GOMP_warning.
2969 * libgomp_g.h (GOMP_warning, GOMP_error): Declare.
2970 * error.c (GOMP_warning, GOMP_error): New functions.
2971 * testsuite/libgomp.c-c++-common/error-1.c: New test.
2972
2973 2021-08-18 Tobias Burnus <tobias@codesourcery.com>
2974
2975 * omp_lib.f90.in (omp_alloc, omp_free, omp_target_alloc,
2976 omp_target_free. omp_target_is_present, omp_target_memcpy,
2977 omp_target_memcpy_rect, omp_target_associate_ptr,
2978 omp_target_disassociate_ptr): Add interface.
2979 * omp_lib.h.in (omp_alloc, omp_free, omp_target_alloc,
2980 omp_target_free. omp_target_is_present, omp_target_memcpy,
2981 omp_target_memcpy_rect, omp_target_associate_ptr,
2982 omp_target_disassociate_ptr): Add interface.
2983 * testsuite/libgomp.fortran/alloc-1.F90: Remove local
2984 interface block for omp_alloc + omp_free.
2985 * testsuite/libgomp.fortran/alloc-4.f90: Likewise.
2986 * testsuite/libgomp.fortran/refcount-1.f90: New test.
2987 * testsuite/libgomp.fortran/target-12.f90: New test.
2988
2989 2021-08-18 Jakub Jelinek <jakub@redhat.com>
2990
2991 * testsuite/libgomp.c-c++-common/nothing-1.c: New test.
2992
2993 2021-08-17 Tobias Burnus <tobias@codesourcery.com>
2994
2995 * testsuite/libgomp.fortran/scope-1.f90: New test.
2996 * testsuite/libgomp.fortran/task-reduction-16.f90: New test.
2997
2998 2021-08-17 Jakub Jelinek <jakub@redhat.com>
2999
3000 * Makefile.am (libgomp_la_SOURCES): Add scope.c
3001 * Makefile.in: Regenerated.
3002 * libgomp_g.h (GOMP_scope_start): Declare.
3003 * libgomp.map: Add GOMP_scope_start@@GOMP_5.1.
3004 * scope.c: New file.
3005 * testsuite/libgomp.c-c++-common/scope-1.c: New test.
3006 * testsuite/libgomp.c-c++-common/task-reduction-16.c: New test.
3007
3008 2021-08-16 Thomas Schwinge <thomas@codesourcery.com>
3009
3010 * testsuite/libgomp.oacc-c-c++-common/mode-transitions.c: Address
3011 '?:' issues.
3012
3013 2021-08-16 Tobias Burnus <tobias@codesourcery.com>
3014
3015 * testsuite/libgomp.fortran/masked-1.f90: New test.
3016
3017 2021-08-13 Thomas Schwinge <thomas@codesourcery.com>
3018
3019 * testsuite/libgomp.oacc-c-c++-common/static-variable-1.c: Adjust.
3020
3021 2021-08-12 Jakub Jelinek <jakub@redhat.com>
3022
3023 * testsuite/libgomp.c-c++-common/masked-1.c: New test.
3024
3025 2021-08-12 Tobias Burnus <tobias@codesourcery.com>
3026
3027 * env.c (parse_bind_var): Accept 'primary' as alias for
3028 'master'.
3029 (omp_display_env): Add TODO comment to
3030 change 'master' to 'primary' in proc_bind for OpenMP 5.1.
3031 * libgomp.texi: Change 'master thread' to 'primary thread'
3032 in line with OpenMP 5.1.
3033 (omp_get_proc_bind): Add omp_proc_bind_primary and note that
3034 omp_proc_bind_master is an alias of it.
3035 (OMP_PROC_BIND): Mention 'PRIMARY'.
3036 * omp.h.in (__GOMP_DEPRECATED_5_1): Define.
3037 (omp_proc_bind_primary): Add.
3038 (omp_proc_bind_master): Deprecate for OpenMP 5.1.
3039 * omp_lib.f90.in (omp_proc_bind_primary): Add.
3040 (omp_proc_bind_master): Deprecate for OpenMP 5.1.
3041 * omp_lib.h.in (omp_proc_bind_primary): Add.
3042 * testsuite/libgomp.c/affinity-1.c: Check that
3043 'primary' works and is identical to 'master'.
3044
3045 2021-08-09 Julian Brown <julian@codesourcery.com>
3046 Kwok Cheung Yeung <kcy@codesourcery.com>
3047 Thomas Schwinge <thomas@codesourcery.com>
3048
3049 * plugin/plugin-gcn.c (gcn_exec): Change default number of workers to
3050 16.
3051 * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c
3052 [acc_device_radeon]: Update.
3053 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c
3054 [ACC_DEVICE_TYPE_radeon]: Likewise.
3055 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c
3056 [acc_device_radeon]: Likewise.
3057 * testsuite/libgomp.oacc-c-c++-common/routine-wv-2.c
3058 [ACC_DEVICE_TYPE_radeon]: Likewise.
3059 * testsuite/libgomp.oacc-fortran/optional-reduction.f90: XFAIL for
3060 'openacc_radeon_accel_selected' and '-O0'.
3061 * testsuite/libgomp.oacc-fortran/reduction-7.f90: Likewise.
3062
3063 2021-08-05 Chung-Lin Tang <cltang@codesourcery.com>
3064
3065 * icv-device.c (omp_get_device_num): New API function, host side.
3066 * fortran.c (omp_get_device_num_): New interface function.
3067 * libgomp-plugin.h (GOMP_DEVICE_NUM_VAR): Define macro symbol.
3068 * libgomp.map (OMP_5.0.2): New version space with omp_get_device_num,
3069 omp_get_device_num_.
3070 * libgomp.texi (omp_get_device_num): Add documentation for new API
3071 function.
3072 * omp.h.in (omp_get_device_num): Add declaration.
3073 * omp_lib.f90.in (omp_get_device_num): Likewise.
3074 * omp_lib.h.in (omp_get_device_num): Likewise.
3075 * target.c (gomp_load_image_to_device): If additional entry for device
3076 number exists at end of returned entries from 'load_image_func' hook,
3077 copy the assigned device number over to the device variable.
3078 * config/gcn/icv-device.c (GOMP_DEVICE_NUM_VAR): Define static global.
3079 (omp_get_device_num): New API function, device side.
3080 * plugin/plugin-gcn.c ("symcat.h"): Add include.
3081 (GOMP_OFFLOAD_load_image): Add addresses of device GOMP_DEVICE_NUM_VAR
3082 at end of returned 'target_table' entries.
3083 * config/nvptx/icv-device.c (GOMP_DEVICE_NUM_VAR): Define static global.
3084 (omp_get_device_num): New API function, device side.
3085 * plugin/plugin-nvptx.c ("symcat.h"): Add include.
3086 (GOMP_OFFLOAD_load_image): Add addresses of device GOMP_DEVICE_NUM_VAR
3087 at end of returned 'target_table' entries.
3088 * testsuite/lib/libgomp.exp
3089 (check_effective_target_offload_target_intelmic): New function for
3090 testing for intelmic offloading.
3091 * testsuite/libgomp.c-c++-common/target-45.c: New test.
3092 * testsuite/libgomp.fortran/target10.f90: New test.
3093
3094 2021-07-30 Thomas Schwinge <thomas@codesourcery.com>
3095 Ulrich Drepper <drepper@redhat.com>
3096
3097 * fortran.c (omp_display_env_, omp_display_env_8_): Only
3098 '#ifndef LIBGOMP_OFFLOADED_ONLY'.
3099
3100 2021-07-29 Thomas Schwinge <thomas@codesourcery.com>
3101 Julian Brown <julian@codesourcery.com>
3102 Kwok Cheung Yeung <kcy@codesourcery.com>
3103
3104 * testsuite/libgomp.oacc-c-c++-common/pr85486-2.c:
3105 's%oaccdevlow%oaccloops%g'.
3106 * testsuite/libgomp.oacc-c-c++-common/pr85486-3.c: Likewise.
3107 * testsuite/libgomp.oacc-c-c++-common/pr85486.c: Likewise.
3108 * testsuite/libgomp.oacc-c-c++-common/routine-nohost-1.c:
3109 Likewise.
3110 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-1.c:
3111 Likewise.
3112 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-2.c:
3113 Likewise.
3114 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-3.c:
3115 Likewise.
3116 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-4.c:
3117 Likewise.
3118 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-5.c:
3119 Likewise.
3120 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-6.c:
3121 Likewise.
3122 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-7.c:
3123 Likewise.
3124 * testsuite/libgomp.oacc-fortran/routine-nohost-1.f90: Likewise.
3125
3126 2021-07-29 Aldy Hernandez <aldyh@redhat.com>
3127
3128 * testsuite/libgomp.graphite/force-parallel-4.c: Adjust for
3129 threader.
3130 * testsuite/libgomp.graphite/force-parallel-8.c: Same.
3131
3132 2021-07-27 Ulrich Drepper <drepper@gmail.com>
3133
3134 * env.c (wait_policy, stacksize): New static variables,
3135 move out of handle_omp_display_env.
3136 (omp_display_env): New function. The meat of the old
3137 handle_omp_display_env function.
3138 (handle_omp_display_env): Change to not take parameters
3139 and instead use the global variables. Only perform
3140 parsing, defer to omp_display_env for the implementation.
3141 (initialize_env): Remove local variables wait_policy and
3142 stacksize. Don't pass parameters to handle_omp_display_env.
3143 * fortran.c: Add ialias_redirect for omp_display_env.
3144 (omp_display_env_, omp_display_env_8_): New functions.
3145 * libgomp.map (OMP_5.1): New version. Add omp_display_env,
3146 omp_display_env_, and omp_display_env_8_.
3147 * omp.h.in: Declare omp_display_env.
3148 * omp_lib.f90.in: Likewise.
3149 * omp_lib.h.in: Likewise.
3150
3151 2021-07-27 Thomas Schwinge <thomas@codesourcery.com>
3152 Julian Brown <julian@codesourcery.com>
3153
3154 * target.c (gomp_coalesce_buf_add): Update comment.
3155 (gomp_copy_host2dev, gomp_map_vars_internal): Don't expect to see
3156 'aq && cbuf'.
3157 (gomp_map_vars_internal): Only 'if (!aq)', do
3158 'gomp_coalesce_buf_add'.
3159 * testsuite/libgomp.oacc-c-c++-common/async-data-1-2.c: Remove
3160 XFAIL.
3161
3162 2021-07-27 Julian Brown <julian@codesourcery.com>
3163 Thomas Schwinge <thomas@codesourcery.com>
3164
3165 * libgomp.h (gomp_copy_host2dev): Update prototype.
3166 * oacc-mem.c (memcpy_tofrom_device, update_dev_host): Add new
3167 argument to gomp_copy_host2dev (false).
3168 * plugin/plugin-gcn.c (struct copy_data): Remove free_src field.
3169 (copy_data): Don't free src.
3170 (queue_push_copy): Remove free_src handling.
3171 (GOMP_OFFLOAD_dev2dev): Update call to queue_push_copy.
3172 (GOMP_OFFLOAD_openacc_async_host2dev): Remove source-data
3173 snapshotting.
3174 (GOMP_OFFLOAD_openacc_async_dev2host): Update call to
3175 queue_push_copy.
3176 * target.c (goacc_device_copy_async): Add SRCADDR_ORIG parameter.
3177 (gomp_copy_host2dev): Add EPHEMERAL parameter. Snapshot source
3178 data when true, and set up deferred freeing of temporary buffer.
3179 (gomp_copy_dev2host): Update call to goacc_device_copy_async.
3180 (gomp_map_vars_existing, gomp_map_pointer, gomp_attach_pointer)
3181 (gomp_detach_pointer, gomp_map_vars_internal, gomp_update): Update
3182 calls to gomp_copy_host2dev with appropriate ephemeral argument.
3183 * testsuite/libgomp.oacc-c-c++-common/async-data-1-1.c: Remove
3184 XFAIL.
3185
3186 2021-07-27 Thomas Schwinge <thomas@codesourcery.com>
3187 Tom de Vries <tom@codesourcery.com>
3188
3189 * testsuite/libgomp.oacc-c-c++-common/async-data-1-1.c: New file.
3190 * testsuite/libgomp.oacc-c-c++-common/async-data-1-2.c: Likewise.
3191
3192 2021-07-27 Thomas Schwinge <thomas@codesourcery.com>
3193
3194 * testsuite/libgomp.oacc-c-c++-common/acc_prof-init-1.c: Clarify
3195 sequencing of 'async' data copying vs. profiling events.
3196 * testsuite/libgomp.oacc-c-c++-common/acc_prof-parallel-1.c:
3197 Likewise.
3198
3199 2021-07-27 Thomas Schwinge <thomas@codesourcery.com>
3200 Julian Brown <julian@codesourcery.com>
3201
3202 * testsuite/libgomp.oacc-c-c++-common/lib-94.c: Fix OpenACC
3203 'async'/'wait' issue.
3204 * testsuite/libgomp.oacc-c-c++-common/lib-95.c: Likewise.
3205 * testsuite/libgomp.oacc-fortran/lib-16-2.f90: Likewise.
3206 * testsuite/libgomp.oacc-fortran/lib-16.f90: Likewise.
3207
3208 2021-07-21 Thomas Schwinge <thomas@codesourcery.com>
3209 Joseph Myers <joseph@codesourcery.com>
3210 Cesar Philippidis <cesar@codesourcery.com>
3211
3212 * testsuite/libgomp.oacc-c-c++-common/routine-nohost-1.c: New
3213 file.
3214 * testsuite/libgomp.oacc-c-c++-common/routine-nohost-2.c:
3215 Likewise.
3216 * testsuite/libgomp.oacc-c-c++-common/routine-nohost-2_2.c:
3217 Likewise.
3218 * testsuite/libgomp.oacc-fortran/routine-nohost-1.f90: Likewise.
3219
3220 2021-07-20 Thomas Schwinge <thomas@codesourcery.com>
3221
3222 PR target/101484
3223 * configure.tgt [amdgcn*-*-*] (XCFLAGS): Add
3224 '-Wno-error=array-bounds'.
3225 * config/gcn/team.c: Remove '-Werror=array-bounds' work-around.
3226 * libgomp.h [__AMDGCN__]: Likewise.
3227
3228 2021-07-19 Thomas Schwinge <thomas@codesourcery.com>
3229
3230 PR target/101484
3231 * config/gcn/team.c: Apply '-Werror=array-bounds' work-around.
3232 * libgomp.h [__AMDGCN__]: Likewise.
3233
3234 2021-07-13 Jakub Jelinek <jakub@redhat.com>
3235 Florian Weimer <fweimer@redhat.com>
3236
3237 * config/linux/sem.h: Don't include limits.h.
3238 (SEM_WAIT): Define to -__INT_MAX__ - 1 instead of INT_MIN.
3239 * config/linux/affinity.c: Include limits.h.
3240
3241 2021-07-01 Jakub Jelinek <jakub@redhat.com>
3242
3243 PR middle-end/94366
3244 * testsuite/libgomp.c-c++-common/pr94366.c: New test.
3245
3246 2021-06-29 Tobias Burnus <tobias@codesourcery.com>
3247
3248 PR other/67300
3249 * testsuite/libgomp.c-c++-common/reduction-16.c: Replace
3250 -foffload=nvptx-none= by -foffload-options=nvptx-none= to
3251 avoid disabling other offload targets.
3252 * testsuite/libgomp.c-c++-common/reduction-5.c: Likewise.
3253 * testsuite/libgomp.c-c++-common/reduction-6.c: Likewise.
3254 * testsuite/libgomp.c/target-44.c: Likewise.
3255
3256 2021-06-29 Tobias Burnus <tobias@codesourcery.com>
3257
3258 * testsuite/libgomp.fortran/defaultmap-8.f90 (bar): Determine whether
3259 target has shared memory and disable some scalar pointer/allocatable
3260 checks if not as firstprivate does not work.
3261
3262 2021-06-25 Chung-Lin Tang <cltang@codesourcery.com>
3263
3264 PR testsuite/101114
3265 * testsuite/libgomp.c-c++-common/struct-elem-5.c:
3266 Add "target offload_device_nonshared_as" condition for enabling test.
3267
3268 2021-06-24 Jakub Jelinek <jakub@redhat.com>
3269
3270 * testsuite/libgomp.c-c++-common/target-in-reduction-1.c: New test.
3271 * testsuite/libgomp.c-c++-common/target-in-reduction-2.c: New test.
3272 * testsuite/libgomp.c++/target-in-reduction-1.C: New test.
3273 * testsuite/libgomp.c++/target-in-reduction-2.C: New test.
3274
3275 2021-06-23 Jakub Jelinek <jakub@redhat.com>
3276
3277 PR middle-end/101167
3278 * testsuite/libgomp.c-c++-common/task-reduction-15.c: New test.
3279
3280 2021-06-17 Chung-Lin Tang <cltang@codesourcery.com>
3281
3282 * hashtab.h (htab_clear): New function with initialization code
3283 factored out from...
3284 (htab_create): ...here, adjust to use htab_clear function.
3285 * libgomp.h (REFCOUNT_SPECIAL): New symbol to denote range of
3286 special refcount values, add comments.
3287 (REFCOUNT_INFINITY): Adjust definition to use REFCOUNT_SPECIAL.
3288 (REFCOUNT_LINK): Likewise.
3289 (REFCOUNT_STRUCTELEM): New special refcount range for structure
3290 element siblings.
3291 (REFCOUNT_STRUCTELEM_P): Macro for testing for structure element
3292 sibling maps.
3293 (REFCOUNT_STRUCTELEM_FLAG_FIRST): Flag to indicate first sibling.
3294 (REFCOUNT_STRUCTELEM_FLAG_LAST): Flag to indicate last sibling.
3295 (REFCOUNT_STRUCTELEM_FIRST_P): Macro to test _FIRST flag.
3296 (REFCOUNT_STRUCTELEM_LAST_P): Macro to test _LAST flag.
3297 (struct splay_tree_key_s): Add structelem_refcount and
3298 structelem_refcount_ptr fields into a union with dynamic_refcount.
3299 Add comments.
3300 (gomp_map_vars): Delete declaration.
3301 (gomp_map_vars_async): Likewise.
3302 (gomp_unmap_vars): Likewise.
3303 (gomp_unmap_vars_async): Likewise.
3304 (goacc_map_vars): New declaration.
3305 (goacc_unmap_vars): Likewise.
3306 * oacc-mem.c (acc_map_data): Adjust to use goacc_map_vars.
3307 (goacc_enter_datum): Likewise.
3308 (goacc_enter_data_internal): Likewise.
3309 * oacc-parallel.c (GOACC_parallel_keyed): Adjust to use goacc_map_vars
3310 and goacc_unmap_vars.
3311 (GOACC_data_start): Adjust to use goacc_map_vars.
3312 (GOACC_data_end): Adjust to use goacc_unmap_vars.
3313 * target.c (hash_entry_type): New typedef.
3314 (htab_alloc): New function hook for hashtab.h.
3315 (htab_free): Likewise.
3316 (htab_hash): Likewise.
3317 (htab_eq): Likewise.
3318 (hashtab.h): Add file include.
3319 (gomp_increment_refcount): New function.
3320 (gomp_decrement_refcount): Likewise.
3321 (gomp_map_vars_existing): Add refcount_set parameter, adjust to use
3322 gomp_increment_refcount.
3323 (gomp_map_fields_existing): Add refcount_set parameter, adjust calls
3324 to gomp_map_vars_existing.
3325 (gomp_map_vars_internal): Add refcount_set parameter, add local openmp_p
3326 variable to guard OpenMP specific paths, adjust calls to
3327 gomp_map_vars_existing, add structure element sibling splay_tree_key
3328 sequence creation code, adjust Fortran map case to avoid increment
3329 under OpenMP.
3330 (gomp_map_vars): Adjust to static, add refcount_set parameter, manage
3331 local refcount_set if caller passed in NULL, adjust call to
3332 gomp_map_vars_internal.
3333 (gomp_map_vars_async): Adjust and rename into...
3334 (goacc_map_vars): ...this new function, adjust call to
3335 gomp_map_vars_internal.
3336 (gomp_remove_splay_tree_key): New function with code factored out from
3337 gomp_remove_var_internal.
3338 (gomp_remove_var_internal): Add code to handle removing multiple
3339 splay_tree_key sequence for structure elements, adjust code to use
3340 gomp_remove_splay_tree_key for splay-tree key removal.
3341 (gomp_unmap_vars_internal): Add refcount_set parameter, adjust to use
3342 gomp_decrement_refcount.
3343 (gomp_unmap_vars): Adjust to static, add refcount_set parameter, manage
3344 local refcount_set if caller passed in NULL, adjust call to
3345 gomp_unmap_vars_internal.
3346 (gomp_unmap_vars_async): Adjust and rename into...
3347 (goacc_unmap_vars): ...this new function, adjust call to
3348 gomp_unmap_vars_internal.
3349 (GOMP_target): Manage refcount_set and adjust calls to gomp_map_vars and
3350 gomp_unmap_vars.
3351 (GOMP_target_ext): Likewise.
3352 (gomp_target_data_fallback): Adjust call to gomp_map_vars.
3353 (GOMP_target_data): Likewise.
3354 (GOMP_target_data_ext): Likewise.
3355 (GOMP_target_end_data): Adjust call to gomp_unmap_vars.
3356 (gomp_exit_data): Add refcount_set parameter, adjust to use
3357 gomp_decrement_refcount, adjust to queue splay-tree keys for removal
3358 after main loop.
3359 (GOMP_target_enter_exit_data): Manage refcount_set and adjust calls to
3360 gomp_map_vars and gomp_exit_data.
3361 (gomp_target_task_fn): Likewise.
3362 * testsuite/libgomp.c-c++-common/refcount-1.c: New testcase.
3363 * testsuite/libgomp.c-c++-common/struct-elem-1.c: New testcase.
3364 * testsuite/libgomp.c-c++-common/struct-elem-2.c: New testcase.
3365 * testsuite/libgomp.c-c++-common/struct-elem-3.c: New testcase.
3366 * testsuite/libgomp.c-c++-common/struct-elem-4.c: New testcase.
3367 * testsuite/libgomp.c-c++-common/struct-elem-5.c: New testcase.
3368
3369 2021-06-15 Tobias Burnus <tobias@codesourcery.com>
3370
3371 PR fortran/92568
3372 * testsuite/libgomp.fortran/defaultmap-8.f90: New test.
3373
3374 2021-06-10 Andrew Stubbs <ams@codesourcery.com>
3375 Thomas Schwinge <thomas@codesourcery.com>
3376
3377 * libgomp.map (GOACC_2.0.2): New symbol version.
3378 * libgomp_g.h (GOACC_enter_data, GOACC_exit_data) New prototypes.
3379 * oacc-mem.c (GOACC_enter_data, GOACC_exit_data) New functions.
3380
3381 2021-06-10 Thomas Schwinge <thomas@codesourcery.com>
3382 Andrew Stubbs <ams@codesourcery.com>
3383
3384 * oacc-mem.c (goacc_enter_exit_data_internal): New function,
3385 extracted from...
3386 (GOACC_enter_exit_data): ... here.
3387 (GOACC_declare): Use it.
3388
3389 2021-06-10 Thomas Schwinge <thomas@codesourcery.com>
3390
3391 * oacc-parallel.c (GOACC_declare): Move...
3392 * oacc-mem.c: ... here.
3393 * libgomp_g.h: Adjust.
3394
3395 2021-06-10 Andrew Stubbs <ams@codesourcery.com>
3396 Thomas Schwinge <thomas@codesourcery.com>
3397
3398 * oacc-parallel.c (GOACC_declare): Clean up 'GOMP_MAP_POINTER'
3399 handling.
3400
3401 2021-06-10 Jakub Jelinek <jakub@redhat.com>
3402
3403 PR tree-optimization/100981
3404 * testsuite/libgomp.fortran/pr100981-2.f90 (cdcdot): Initialize
3405 dsdotr and dsdoti to 0.
3406
3407 2021-06-09 H.J. Lu <hjl.tools@gmail.com>
3408
3409 * testsuite/lib/libgomp.exp (libgomp_init): Don't add -march=i486
3410 if atomic compare-and-swap is supported on 'int'.
3411
3412 2021-06-09 Richard Biener <rguenther@suse.de>
3413
3414 PR tree-optimization/100981
3415 * testsuite/libgomp.fortran/pr100981-2.f90: New testcase.
3416
3417 2021-06-08 Thomas Schwinge <thomas@codesourcery.com>
3418
3419 * plugin/plugin-gcn.c (gcn_exec): Force 'num_workers (1)'
3420 unconditionally.
3421 * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c:
3422 Update.
3423 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Likewise.
3424 * testsuite/libgomp.oacc-c-c++-common/routine-wv-2.c: Likewise.
3425
3426 2021-06-08 Thomas Schwinge <thomas@codesourcery.com>
3427
3428 * testsuite/libgomp.oacc-c-c++-common/lib-11.c: Enable for all but
3429 '-DACC_MEM_SHARED=0'.
3430 * testsuite/libgomp.oacc-c-c++-common/lib-13.c: Likewise.
3431 * testsuite/libgomp.oacc-c-c++-common/lib-14.c: Likewise.
3432 * testsuite/libgomp.oacc-c-c++-common/lib-15.c: Likewise.
3433 * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
3434 * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
3435 * testsuite/libgomp.oacc-c-c++-common/lib-24.c: Likewise.
3436 * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
3437 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
3438 * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
3439 * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
3440 * testsuite/libgomp.oacc-c-c++-common/lib-88.c: Likewise.
3441 * testsuite/libgomp.oacc-c-c++-common/lib-89.c: Likewise.
3442 * testsuite/libgomp.oacc-c-c++-common/lib-92.c: Likewise.
3443 * testsuite/libgomp.oacc-fortran/lib-14.f90: Likewise.
3444 * testsuite/libgomp.oacc-c-c++-common/lib-5.c: Add
3445 'acc_device_radeon' testing.
3446 * testsuite/libgomp.oacc-c-c++-common/lib-6.c: Likewise.
3447 * testsuite/libgomp.oacc-fortran/lib-5.f90: Likewise.
3448 * testsuite/libgomp.oacc-fortran/lib-7.f90: Likewise.
3449 * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Enable for all.
3450 * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
3451 * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
3452 * testsuite/libgomp.oacc-c-c++-common/lib-86.c: Likewise.
3453 * testsuite/libgomp.oacc-c-c++-common/lib-87.c: Likewise.
3454 * testsuite/libgomp.oacc-fortran/lib-10.f90: Likewise.
3455 * testsuite/libgomp.oacc-fortran/lib-8.f90: Likewise.
3456 * testsuite/libgomp.oacc-c-c++-common/lib-57.c: Improve checking
3457 for non-'openacc_nvidia_accel_selected'.
3458 * testsuite/libgomp.oacc-c-c++-common/lib-58.c: Likewise.
3459 * testsuite/libgomp.oacc-c-c++-common/lib-62.c: Clarify that "Not
3460 all implement this checking".
3461 * testsuite/libgomp.oacc-c-c++-common/lib-63.c: Likewise.
3462 * testsuite/libgomp.oacc-c-c++-common/lib-64.c: Likewise.
3463 * testsuite/libgomp.oacc-c-c++-common/lib-65.c: Likewise.
3464 * testsuite/libgomp.oacc-c-c++-common/lib-67.c: Likewise.
3465 * testsuite/libgomp.oacc-c-c++-common/lib-68.c: Likewise.
3466
3467 2021-06-08 Thomas Schwinge <thomas@codesourcery.com>
3468
3469 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Simplify.
3470 * testsuite/libgomp.oacc-fortran/parallel-dims-aux.c: Update.
3471
3472 2021-06-08 Thomas Schwinge <thomas@codesourcery.com>
3473
3474 * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c: Fix
3475 for 'acc_device_radeon'.
3476
3477 2021-06-08 Thomas Schwinge <thomas@codesourcery.com>
3478
3479 * testsuite/libgomp.oacc-c-c++-common/firstprivate-1.c: Enhance
3480 for non-'acc_device_nvidia'.
3481
3482 2021-06-08 Thomas Schwinge <thomas@codesourcery.com>
3483
3484 * testsuite/libgomp.oacc-c-c++-common/acc_on_device-1.c: Add
3485 'acc_device_radeon' testing.
3486 * testsuite/libgomp.oacc-fortran/acc_on_device-1-1.f90: Likewise.
3487 * testsuite/libgomp.oacc-fortran/acc_on_device-1-2.f: Likewise.
3488 * testsuite/libgomp.oacc-fortran/acc_on_device-1-3.f: Likewise.
3489
3490 2021-06-08 Thomas Schwinge <thomas@codesourcery.com>
3491
3492 * testsuite/libgomp.oacc-c-c++-common/async_queue-1.c: Don't
3493 require 'openacc_nvidia_accel_selected'. Fix up for
3494 'ACC_DEVICE_TYPE_radeon'.
3495
3496 2021-06-08 Thomas Schwinge <thomas@codesourcery.com>
3497
3498 * testsuite/libgomp.oacc-c++/declare-1.C: Don't require
3499 'openacc_nvidia_accel_selected'.
3500 * testsuite/libgomp.oacc-c-c++-common/declare-3.c: Likewise.
3501
3502 2021-06-08 Thomas Schwinge <thomas@codesourcery.com>
3503
3504 * testsuite/lib/libgomp.exp
3505 (check_effective_target_openacc_radeon_accel_selected):
3506 Streamline.
3507
3508 2021-06-08 Thomas Schwinge <thomas@codesourcery.com>
3509
3510 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Revert
3511 PR80547 workaround.
3512
3513 2021-06-08 Thomas Schwinge <thomas@codesourcery.com>
3514
3515 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c
3516 <acc_device_nvidia>: Update comment.
3517
3518 2021-05-28 Tobias Burnus <tobias@codesourcery.com>
3519
3520 * testsuite/libgomp.fortran/depend-iterator-2.f90: New test.
3521
3522 2021-05-27 Jakub Jelinek <jakub@redhat.com>
3523
3524 * testsuite/lib/libgomp.exp (check_effective_target_openacc_cuda,
3525 check_effective_target_openacc_cublas,
3526 check_effective_target_openacc_cudart): New.
3527 * testsuite/libgomp.oacc-fortran/host_data-4.f90: Require effective
3528 target openacc_cublas.
3529 * testsuite/libgomp.oacc-fortran/host_data-2.f90: Likewise.
3530 * testsuite/libgomp.oacc-fortran/host_data-3.f: Likewise.
3531 * testsuite/libgomp.oacc-c-c++-common/lib-91.c: Require effective
3532 target openacc_cuda.
3533 * testsuite/libgomp.oacc-c-c++-common/lib-70.c: Likewise.
3534 * testsuite/libgomp.oacc-c-c++-common/lib-90.c: Likewise.
3535 * testsuite/libgomp.oacc-c-c++-common/lib-75.c: Likewise.
3536 * testsuite/libgomp.oacc-c-c++-common/lib-69.c: Likewise.
3537 * testsuite/libgomp.oacc-c-c++-common/lib-74.c: Likewise.
3538 * testsuite/libgomp.oacc-c-c++-common/lib-81.c: Likewise.
3539 * testsuite/libgomp.oacc-c-c++-common/lib-72.c: Likewise.
3540 * testsuite/libgomp.oacc-c-c++-common/lib-85.c: Likewise.
3541 * testsuite/libgomp.oacc-c-c++-common/pr87835.c: Likewise.
3542 * testsuite/libgomp.oacc-c-c++-common/lib-82.c: Likewise.
3543 * testsuite/libgomp.oacc-c-c++-common/lib-73.c: Likewise.
3544 * testsuite/libgomp.oacc-c-c++-common/lib-83.c: Likewise.
3545 * testsuite/libgomp.oacc-c-c++-common/lib-78.c: Likewise.
3546 * testsuite/libgomp.oacc-c-c++-common/lib-76.c: Likewise.
3547 * testsuite/libgomp.oacc-c-c++-common/lib-84.c: Likewise.
3548 * testsuite/libgomp.oacc-c-c++-common/lib-79.c: Likewise.
3549 * testsuite/libgomp.oacc-c-c++-common/host_data-1.c: Require effective
3550 targets openacc_cublas and openacc_cudart.
3551 * testsuite/libgomp.oacc-c-c++-common/context-1.c: Likewise.
3552 * testsuite/libgomp.oacc-c-c++-common/context-2.c: Likewise.
3553 * testsuite/libgomp.oacc-c-c++-common/context-3.c: Likewise.
3554 * testsuite/libgomp.oacc-c-c++-common/context-4.c: Likewise.
3555 * testsuite/libgomp.oacc-c-c++-common/acc_get_property-nvptx.c:
3556 Require effective target openacc_cudart.
3557 * testsuite/libgomp.oacc-c-c++-common/asyncwait-1.c: Add -DUSE_CUDA_H
3558 for effective target openacc_cuda and add && defined USE_CUDA_H to
3559 preprocessor conditionals. Guard -lcuda also on openacc_cuda
3560 effective target.
3561
3562 2021-05-26 Jakub Jelinek <jakub@redhat.com>
3563
3564 PR libgomp/100573
3565 * config/nvptx/target.c (GOMP_target_ext, GOMP_target_data_ext,
3566 GOMP_target_end_data, GOMP_target_update_ext,
3567 GOMP_target_enter_exit_data): New dummy entrypoints.
3568 * config/gcn/target.c (GOMP_target_ext, GOMP_target_data_ext,
3569 GOMP_target_end_data, GOMP_target_update_ext,
3570 GOMP_target_enter_exit_data): Likewise.
3571 * testsuite/libgomp.c-c++-common/for-3.c (DO_PRAGMA, OMPTEAMS,
3572 OMPFROM, OMPTO): Define.
3573 (main): Remove #pragma omp target teams around all the tests.
3574 * testsuite/libgomp.c-c++-common/target-41.c: New test.
3575 * testsuite/libgomp.c-c++-common/target-42.c: New test.
3576
3577 2021-05-25 Jakub Jelinek <jakub@redhat.com>
3578
3579 PR middle-end/99928
3580 * testsuite/libgomp.c-c++-common/reduction-17.c: New test.
3581
3582 2021-05-24 Tobias Burnus <tobias@codesourcery.com>
3583
3584 PR fortran/86470
3585 * testsuite/libgomp.fortran/class-firstprivate-1.f90: New test.
3586 * testsuite/libgomp.fortran/class-firstprivate-2.f90: New test.
3587 * testsuite/libgomp.fortran/class-firstprivate-3.f90: New test.
3588
3589 2021-05-22 Thomas Schwinge <thomas@codesourcery.com>
3590
3591 PR testsuite/90115
3592 * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Prune
3593 uninteresting/varying diagnostics.
3594
3595 2021-05-21 Thomas Schwinge <thomas@codesourcery.com>
3596
3597 PR middle-end/90115
3598 * testsuite/libgomp.oacc-c-c++-common/static-variable-1.c: Update.
3599 * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Likewise.
3600
3601 2021-05-21 Thomas Schwinge <thomas@codesourcery.com>
3602
3603 PR middle-end/90115
3604 * testsuite/libgomp.oacc-fortran/private-atomic-1-vector.f90: New
3605 file.
3606 * testsuite/libgomp.oacc-c-c++-common/firstprivate-1.c: Update.
3607 * testsuite/libgomp.oacc-c-c++-common/host_data-7.c: Likewise.
3608 * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c:
3609 Likewise.
3610 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-1.c:
3611 Likewise.
3612 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-2.c:
3613 Likewise.
3614 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-3.c:
3615 Likewise.
3616 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-4.c:
3617 Likewise.
3618 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-5.c:
3619 Likewise.
3620 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-1.c:
3621 Likewise.
3622 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-2.c:
3623 Likewise.
3624 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-3.c:
3625 Likewise.
3626 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-4.c:
3627 Likewise.
3628 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-5.c:
3629 Likewise.
3630 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-6.c:
3631 Likewise.
3632 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-vector-1.c:
3633 Likewise.
3634 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-vector-2.c:
3635 Likewise.
3636 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-1.c:
3637 Likewise.
3638 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-2.c:
3639 Likewise.
3640 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-3.c:
3641 Likewise.
3642 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-4.c:
3643 Likewise.
3644 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-5.c:
3645 Likewise.
3646 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-6.c:
3647 Likewise.
3648 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-7.c:
3649 Likewise.
3650 * testsuite/libgomp.oacc-c-c++-common/loop-g-1.c: Likewise.
3651 * testsuite/libgomp.oacc-c-c++-common/loop-g-2.c: Likewise.
3652 * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c: Likewise.
3653 * testsuite/libgomp.oacc-c-c++-common/loop-gwv-2.c: Likewise.
3654 * testsuite/libgomp.oacc-c-c++-common/loop-red-g-1.c: Likewise.
3655 * testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c: Likewise.
3656 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c: Likewise.
3657 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c: Likewise.
3658 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c: Likewise.
3659 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c: Likewise.
3660 * testsuite/libgomp.oacc-c-c++-common/loop-red-wv-1.c: Likewise.
3661 * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c: Likewise.
3662 * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c: Likewise.
3663 * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c: Likewise.
3664 * testsuite/libgomp.oacc-c-c++-common/parallel-reduction.c:
3665 Likewise.
3666 * testsuite/libgomp.oacc-c-c++-common/private-atomic-1-gang.c:
3667 Likewise.
3668 * testsuite/libgomp.oacc-c-c++-common/private-atomic-1.c:
3669 Likewise.
3670 * testsuite/libgomp.oacc-c-c++-common/private-variables.c:
3671 Likewise.
3672 * testsuite/libgomp.oacc-c-c++-common/routine-4.c: Likewise.
3673 * testsuite/libgomp.oacc-c-c++-common/static-variable-1.c:
3674 Likewise.
3675 * testsuite/libgomp.oacc-fortran/acc_on_device-1-1.f90: Likewise.
3676 * testsuite/libgomp.oacc-fortran/acc_on_device-1-2.f: Likewise.
3677 * testsuite/libgomp.oacc-fortran/acc_on_device-1-3.f: Likewise.
3678 * testsuite/libgomp.oacc-fortran/declare-1.f90: Likewise.
3679 * testsuite/libgomp.oacc-fortran/host_data-5.F90: Likewise.
3680 * testsuite/libgomp.oacc-fortran/if-1.f90: Likewise.
3681 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-1.f90:
3682 Likewise.
3683 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-2.f90:
3684 Likewise.
3685 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-3.f90:
3686 Likewise.
3687 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-6.f90:
3688 Likewise.
3689 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-vector-1.f90:
3690 Likewise.
3691 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-vector-2.f90:
3692 Likewise.
3693 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-1.f90:
3694 Likewise.
3695 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-2.f90:
3696 Likewise.
3697 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-3.f90:
3698 Likewise.
3699 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-4.f90:
3700 Likewise.
3701 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-5.f90:
3702 Likewise.
3703 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-6.f90:
3704 Likewise.
3705 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-7.f90:
3706 Likewise.
3707 * testsuite/libgomp.oacc-fortran/optional-private.f90: Likewise.
3708 * testsuite/libgomp.oacc-fortran/parallel-dims.f90: Likewise.
3709 * testsuite/libgomp.oacc-fortran/private-atomic-1-gang.f90:
3710 Likewise.
3711 * testsuite/libgomp.oacc-fortran/private-atomic-1-worker.f90:
3712 Likewise.
3713 * testsuite/libgomp.oacc-fortran/private-variables.f90: Likewise.
3714 * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Likewise.
3715 * testsuite/libgomp.oacc-fortran/routine-7.f90: Likewise.
3716
3717 2021-05-21 Julian Brown <julian@codesourcery.com>
3718 Chung-Lin Tang <cltang@codesourcery.com>
3719 Thomas Schwinge <thomas@codesourcery.com>
3720
3721 PR middle-end/90115
3722 * testsuite/libgomp.oacc-c-c++-common/private-atomic-1-gang.c: New
3723 test.
3724 * testsuite/libgomp.oacc-fortran/private-atomic-1-gang.f90:
3725 Likewise.
3726 * testsuite/libgomp.oacc-fortran/private-atomic-1-worker.f90:
3727 Likewise.
3728
3729 2021-05-21 Thomas Schwinge <thomas@codesourcery.com>
3730
3731 * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Don't skip
3732 for nvptx offloading.
3733
3734 2021-05-21 Tobias Burnus <tobias@codesourcery.com>
3735
3736 * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: New.
3737
3738 2021-05-19 Thomas Schwinge <thomas@codesourcery.com>
3739
3740 PR target/83812
3741 * testsuite/libgomp.oacc-c-c++-common/private-atomic-1.c: New.
3742
3743 2021-05-19 Julian Brown <julian@codesourcery.com>
3744
3745 * testsuite/libgomp.oacc-c-c++-common/loop-gwv-2.c: New.
3746
3747 2021-05-18 Thomas Schwinge <thomas@codesourcery.com>
3748
3749 * testsuite/lib/libgomp.exp
3750 (check_effective_target_offload_target_nvptx): Don't shadow global
3751 'offload_targets' variable.
3752
3753 2021-05-18 Thomas Schwinge <thomas@codesourcery.com>
3754
3755 * testsuite/libgomp.c-c++-common/reduction-5.c: Restrict
3756 '-latomic' to nvptx offloading compilation.
3757 * testsuite/libgomp.c-c++-common/reduction-6.c: Likewise.
3758
3759 2021-05-18 Thomas Schwinge <thomas@codesourcery.com>
3760
3761 * testsuite/libgomp.c/target-44.c: Restrict '-latomic' to nvptx
3762 offloading compilation.
3763
3764 2021-05-17 Kwok Cheung Yeung <kcy@codesourcery.com>
3765
3766 * task.c (omp_fulfill_event): Call gomp_team_barrier_set_task_pending
3767 if new tasks generated.
3768 * testsuite/libgomp.c-c++-common/task-detach-13.c: New.
3769
3770 2021-05-14 Tobias Burnus <tobias@codesourcery.com>
3771
3772 * testsuite/libgomp.fortran/parallel-master.f90: New test.
3773
3774 2021-05-13 Martin Liska <mliska@suse.cz>
3775
3776 PR testsuite/100569
3777 * testsuite/libgomp.c/omp-nested-3.c: Prune new LTO warning.
3778 * testsuite/libgomp.c/pr46032-2.c: Likewise.
3779 * testsuite/libgomp.oacc-c-c++-common/data-clauses-kernels-ipa-pta.c: Likewise.
3780 * testsuite/libgomp.oacc-c-c++-common/data-clauses-parallel-ipa-pta.c: Likewise.
3781
3782 2021-05-12 Tobias Burnus <tobias@codesourcery.com>
3783
3784 * testsuite/libgomp.c-c++-common/task-detach-12.c: New test.
3785 * testsuite/libgomp.fortran/task-detach-12.f90: New test.
3786
3787 2021-05-11 Jakub Jelinek <jakub@redhat.com>
3788
3789 PR middle-end/100471
3790 * taskloop.c (GOMP_taskloop): If GOMP_TASK_FLAG_REDUCTION and not
3791 GOMP_TASK_FLAG_NOGROUP, when doing early return clear the task
3792 reduction pointer.
3793 * testsuite/libgomp.c/task-reduction-4.c: New test.
3794
3795 2021-05-07 Tobias Burnus <tobias@codesourcery.com>
3796 Tom de Vries <tdevries@suse.de>
3797
3798 * testsuite/libgomp.c-c++-common/reduction-5.c: New test, testing
3799 complex/floating-point || + && reduction with 'omp target'.
3800 * testsuite/libgomp.c-c++-common/reduction-6.c: Likewise.
3801
3802 2021-05-04 Tobias Burnus <tobias@codesourcery.com>
3803
3804 * testsuite/libgomp.c-c++-common/reduction-1.c: New test.
3805 * testsuite/libgomp.c-c++-common/reduction-2.c: New test.
3806 * testsuite/libgomp.c-c++-common/reduction-3.c: New test.
3807 * testsuite/libgomp.c-c++-common/reduction-4.c: New file.
3808
3809 2021-05-04 Tobias Burnus <tobias@codesourcery.com>
3810
3811 PR testsuite/100397
3812 * testsuite/libgomp.fortran/depobj-1.f90 (dep2, dep3): Move var
3813 declaration to scope of non-'depend'-guarded assignment to avoid races.
3814
3815 2021-05-03 Tom de Vries <tdevries@suse.de>
3816
3817 PR target/100321
3818 * testsuite/libgomp.c/target-44.c: New test.
3819
3820 2021-04-30 Roman Zhuykov <zhroma@ispras.ru>
3821
3822 * testsuite/libgomp.oacc-c-c++-common/atomic_capture-3.c: New test.
3823
3824 2021-04-29 Tom de Vries <tdevries@suse.de>
3825
3826 * testsuite/libgomp.c/pr81778.c: New test.
3827
3828 2021-04-29 Tom de Vries <tdevries@suse.de>
3829
3830 PR target/100232
3831 * testsuite/libgomp.c/target-43.c: New file.
3832
3833 2021-04-28 Jakub Jelinek <jakub@redhat.com>
3834 Tobias Burnus <tobias@codesourcery.com>
3835
3836 * configure.ac (OFFLOAD_DEFAULTED): AC_DEFINE if offload-defaulted.
3837 * target.c (gomp_load_plugin_for_device): If set and if a plugin
3838 can't be dlopened, silently assume it has no devices.
3839 * Makefile.in: Regenerate.
3840 * config.h.in: Regenerate.
3841 * configure: Regenerate.
3842
3843 2021-04-26 Tobias Burnus <tobias@codesourcery.com>
3844
3845 * testsuite/libgomp.oacc-fortran/par-reduction-2-1.f:
3846 Use [Ww]arning in dg-bogus as FE diagnostic and default
3847 diagnostic differ and the result depends on ENABLE_OFFLOAD.
3848 * testsuite/libgomp.oacc-fortran/par-reduction-2-2.f: Likewise.
3849 * testsuite/libgomp.oacc-fortran/parallel-dims.f90: Likewise.
3850 * testsuite/libgomp.oacc-fortran/parallel-reduction.f90: Likewise.
3851
3852 2021-04-26 Tobias Burnus <tobias@codesourcery.com>
3853
3854 * testsuite/libgomp.oacc-fortran/par-reduction-2-1.f:
3855 Correct spelling in dg-bogus to match -Wopenacc-parallelism.
3856 * testsuite/libgomp.oacc-fortran/par-reduction-2-2.f: Likewise.
3857 * testsuite/libgomp.oacc-fortran/parallel-dims.f90: Likewise.
3858 * testsuite/libgomp.oacc-fortran/parallel-reduction.f90: Likewise.
3859
3860 2021-04-26 Thomas Schwinge <thomas@codesourcery.com>
3861 Nathan Sidwell <nathan@codesourcery.com>
3862 Tom de Vries <vries@codesourcery.com>
3863 Julian Brown <julian@codesourcery.com>
3864 Kwok Cheung Yeung <kcy@codesourcery.com>
3865
3866 * testsuite/libgomp.oacc-c-c++-common/firstprivate-1.c: Specify
3867 '-Wopenacc-parallelism', and match diagnostics, as appropriate.
3868 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Likewise.
3869 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c: Likewise.
3870 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c: Likewise.
3871 * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c: Likewise.
3872 * testsuite/libgomp.oacc-c-c++-common/mode-transitions.c:
3873 Likewise.
3874 * testsuite/libgomp.oacc-c-c++-common/par-reduction-1.c: Likewise.
3875 * testsuite/libgomp.oacc-c-c++-common/par-reduction-2.c: Likewise.
3876 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Likewise.
3877 * testsuite/libgomp.oacc-c-c++-common/parallel-reduction.c:
3878 Likewise.
3879 * testsuite/libgomp.oacc-c-c++-common/pr85381-3.c: Likewise.
3880 * testsuite/libgomp.oacc-c-c++-common/private-variables.c:
3881 Likewise.
3882 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Likewise.
3883 * testsuite/libgomp.oacc-c-c++-common/reduction-7.c: Likewise.
3884 * testsuite/libgomp.oacc-c-c++-common/routine-g-1.c: Likewise.
3885 * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c: Likewise.
3886 * testsuite/libgomp.oacc-c-c++-common/routine-wv-2.c: Likewise.
3887 * testsuite/libgomp.oacc-c-c++-common/static-variable-1.c:
3888 Likewise.
3889 * testsuite/libgomp.oacc-fortran/optional-private.f90: Likewise.
3890 * testsuite/libgomp.oacc-fortran/par-reduction-2-1.f: Likewise.
3891 * testsuite/libgomp.oacc-fortran/par-reduction-2-2.f: Likewise.
3892 * testsuite/libgomp.oacc-fortran/parallel-dims.f90: Likewise.
3893 * testsuite/libgomp.oacc-fortran/parallel-reduction.f90: Likewise.
3894 * testsuite/libgomp.oacc-fortran/pr84028.f90: Likewise.
3895 * testsuite/libgomp.oacc-fortran/private-variables.f90: Likewise.
3896 * testsuite/libgomp.oacc-fortran/reduction-1.f90: Likewise.
3897 * testsuite/libgomp.oacc-fortran/reduction-5.f90: Likewise.
3898 * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
3899 * testsuite/libgomp.oacc-fortran/routine-7.f90: Likewise.
3900
3901 2021-04-26 Thomas Schwinge <thomas@codesourcery.com>
3902
3903 * testsuite/libgomp.oacc-c-c++-common/par-reduction-1.c: Don't
3904 compile with '-w'.
3905 * testsuite/libgomp.oacc-c-c++-common/par-reduction-2.c: Likewise.
3906 * testsuite/libgomp.oacc-c-c++-common/parallel-reduction.c:
3907 Likewise.
3908 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Likewise.
3909 * testsuite/libgomp.oacc-c-c++-common/reduction-6.c: Likewise.
3910 * testsuite/libgomp.oacc-fortran/parallel-reduction.f90: Likewise.
3911 * testsuite/libgomp.oacc-fortran/reduction-1.f90: Likewise.
3912 * testsuite/libgomp.oacc-fortran/reduction-5.f90: Likewise.
3913 * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
3914 * testsuite/libgomp.oacc-fortran/reduction-7.f90: Likewise.
3915
3916 2021-04-22 Richard Biener <rguenther@suse.de>
3917
3918 * testsuite/libgomp.c-c++-common/reduction-16.c: Use -latomic
3919 only on nvptx-none.
3920
3921 2021-04-21 Tobias Burnus <tobias@codesourcery.com>
3922
3923 * testsuite/libgomp.fortran/depobj-1.f90: Use omp_lib's
3924 omp_depend_kind instead of defining it as 16.
3925
3926 2021-04-21 Tobias Burnus <tobias@codesourcery.com>
3927
3928 * testsuite/lib/libgomp.exp (offload_target_to_openacc_device_type):
3929 New, based on check_effective_target_offload_target_nvptx.
3930 (check_effective_target_offload_target_nvptx): Call it.
3931 (check_effective_target_offload_target_amdgcn): New.
3932 * testsuite/libgomp.c-c++-common/function-not-offloaded.c:
3933 Require target offload_target_nvptx || offload_target_amdgcn.
3934 * testsuite/libgomp.c-c++-common/variable-not-offloaded.c: Likewise.
3935 * testsuite/libgomp.c/pr86416-1.c: Likewise.
3936 * testsuite/libgomp.c/pr86416-2.c: Likewise.
3937
3938 2021-04-21 Tobias Burnus <tobias@codesourcery.com>
3939
3940 * testsuite/libgomp.fortran/depobj-1.f90: New test.
3941
3942 2021-04-19 Thomas Schwinge <thomas@codesourcery.com>
3943
3944 * testsuite/libgomp.oacc-c-c++-common/declare-vla-kernels-decompose-ice-1.c:
3945 '-fopenacc-kernels=[...]' -> '--param=openacc-kernels=[...]'.
3946 * testsuite/libgomp.oacc-c-c++-common/declare-vla-kernels-decompose.c:
3947 Likewise.
3948 * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c:
3949 Likewise.
3950 * testsuite/libgomp.oacc-fortran/pr94358-1.f90: Likewise.
3951
3952 2021-04-15 Thomas Schwinge <thomas@codesourcery.com>
3953
3954 PR target/99555
3955 * testsuite/lib/libgomp.exp
3956 (check_effective_target_offload_device_nvptx): New.
3957 * testsuite/libgomp.c/pr99555-1.c <nvptx offload device>: Until
3958 resolved, make sure that we exit quickly, with error status,
3959 XFAILed.
3960 * testsuite/libgomp.c-c++-common/task-detach-6.c: Likewise.
3961 * testsuite/libgomp.fortran/task-detach-6.f90: Likewise.
3962
3963 2021-04-14 Jakub Jelinek <jakub@redhat.com>
3964
3965 PR testsuite/100071
3966 * testsuite/libgomp.fortran/alloc-1.F90: Call c_f_pointer after last
3967 cp = omp_alloc with cp, p arguments instead of cq, q and call
3968 c_f_pointer after last cq = omp_alloc with cq, q.
3969
3970 2021-04-11 Hafiz Abid Qadeer <abidh@codesourcery.com>
3971
3972 PR middle-end/98088
3973 * testsuite/libgomp.oacc-c-c++-common/collapse-2.c: Add check
3974 for loop with GT/GE condition.
3975 * testsuite/libgomp.oacc-c-c++-common/collapse-3.c: Likewise.
3976
3977 2021-04-09 Thomas Schwinge <thomas@codesourcery.com>
3978
3979 PR middle-end/84991
3980 PR middle-end/84992
3981 PR middle-end/90779
3982 * testsuite/libgomp.oacc-c-c++-common/static-variable-1.c: New.
3983
3984 2021-04-09 Jakub Jelinek <jakub@redhat.com>
3985
3986 PR libgomp/99984
3987 * team.c (gomp_thread_start): Call pthread_setspecific for
3988 !(defined HAVE_TLS || defined USE_EMUTLS) only after local_thr
3989 has been initialized to avoid false positive warning.
3990
3991 2021-03-29 Tobias Burnus <tobias@codesourcery.com>
3992
3993 PR target/99555
3994 * testsuite/lib/on_device_arch.c: Move to ...
3995 * testsuite/libgomp.c-c++-common/on_device_arch.h: ... here.
3996 * testsuite/libgomp.fortran/on_device_arch.c: New file;
3997 #include on_device_arch.h.
3998 * testsuite/libgomp.c-c++-common/task-detach-6.c: #include
3999 on_device_arch.h instead of using dg-additional-source.
4000 * testsuite/libgomp.c/pr99555-1.c: Likewise.
4001 * testsuite/libgomp.fortran/task-detach-6.f90: Update to use
4002 on_device_arch.c without relative paths.
4003
4004 2021-03-25 Thomas Schwinge <thomas@codesourcery.com>
4005
4006 * plugin/plugin-gcn.c (init_environment_variables): Don't prepend
4007 the 'HSA_RUNTIME_LIB' path to 'libhsa-runtime64.so'.
4008 * plugin/configfrag.ac (HSA_RUNTIME_LIB): Clean up.
4009 * config.h.in: Regenerate.
4010 * configure: Likewise.
4011
4012 2021-03-25 Thomas Schwinge <thomas@codesourcery.com>
4013
4014 PR target/99555
4015 * testsuite/lib/on_device_arch.c: New file.
4016 * testsuite/libgomp.c/pr99555-1.c: Likewise.
4017 * testsuite/libgomp.c-c++-common/task-detach-6.c: Until resolved,
4018 skip for nvptx offloading, with error status.
4019 * testsuite/libgomp.fortran/task-detach-6.f90: Likewise.
4020
4021 2021-03-25 Thomas Schwinge <thomas@codesourcery.com>
4022
4023 * testsuite/libgomp.oacc-fortran/derivedtypes-arrays-1.f90:
4024 OpenACC 'serial' construct diagnostic for nvptx offloading.
4025
4026 2021-03-15 Tobias Burnus <tobias@codesourcery.com>
4027
4028 PR c++/99509
4029 * testsuite/libgomp.c-c++-common/declare_target-1.c: New test.
4030
4031 2021-03-12 Tobias Burnus <tobias@codesourcery.com>
4032
4033 PR fortran/98858
4034 * testsuite/libgomp.fortran/use_device_ptr-3.f90: New test.
4035
4036 2021-03-04 Jakub Jelinek <jakub@redhat.com>
4037
4038 * configure.ac: Add AC_CHECK_SIZEOF([void *]).
4039 * plugin/configfrag.ac: Check $ac_cv_sizeof_void_p value instead of
4040 checking of -m32 or -mx32 options on the command line.
4041 * config.h.in: Regenerated.
4042 * configure: Regenerated.
4043
4044 2021-02-27 Iain Sandoe <iain@sandoe.co.uk>
4045
4046 * testsuite/libgomp.c-c++-common/pr96390.c: Require alias
4047 support from the target.
4048
4049 2021-02-25 Kwok Cheung Yeung <kcy@codesourcery.com>
4050 Jakub Jelinek <jakub@redhat.com>
4051
4052 PR libgomp/98738
4053 * libgomp.h (enum gomp_task_kind): Add GOMP_TASK_DETACHED.
4054 (struct gomp_task): Replace detach and completion_sem fields with
4055 union containing completion_sem and detach_team. Add deferred_p
4056 field.
4057 (struct gomp_team): Remove task_detach_queue.
4058 * task.c: Include assert.h.
4059 (gomp_init_task): Initialize deferred_p and completion_sem fields.
4060 Rearrange initialization order of fields.
4061 (task_fulfilled_p): Delete.
4062 (GOMP_task): Use address of task as the event handle. Remove
4063 initialization of detach field. Initialize deferred_p field.
4064 Use automatic local for completion_sem. Initialize detach_team field
4065 for deferred tasks.
4066 (gomp_barrier_handle_tasks): Remove handling of task_detach_queue.
4067 Set kind of suspended detach task to GOMP_TASK_DETACHED and
4068 decrement task_running_count. Move finish_cancelled block out of
4069 else branch. Relocate call to gomp_team_barrier_done.
4070 (GOMP_taskwait): Handle tasks with completion events that have not
4071 been fulfilled.
4072 (GOMP_taskgroup_end): Likewise.
4073 (omp_fulfill_event): Use address of task as event handle. Post to
4074 completion_sem for undeferred tasks. Clear detach_team if task
4075 has not finished. For finished tasks, handle post-execution tasks,
4076 call gomp_team_barrier_wake if necessary, and free task.
4077 * team.c (gomp_new_team): Remove initialization of task_detach_queue.
4078 (free_team): Remove free of task_detach_queue.
4079 * testsuite/libgomp.c-c++-common/task-detach-1.c: Fix formatting.
4080 * testsuite/libgomp.c-c++-common/task-detach-2.c: Fix formatting.
4081 * testsuite/libgomp.c-c++-common/task-detach-3.c: Fix formatting.
4082 * testsuite/libgomp.c-c++-common/task-detach-4.c: Fix formatting.
4083 * testsuite/libgomp.c-c++-common/task-detach-5.c: Fix formatting.
4084 Change data-sharing of detach events on enclosing parallel to private.
4085 * testsuite/libgomp.c-c++-common/task-detach-6.c: Likewise. Remove
4086 taskwait directive.
4087 * testsuite/libgomp.c-c++-common/task-detach-7.c: New.
4088 * testsuite/libgomp.c-c++-common/task-detach-8.c: New.
4089 * testsuite/libgomp.c-c++-common/task-detach-9.c: New.
4090 * testsuite/libgomp.c-c++-common/task-detach-10.c: New.
4091 * testsuite/libgomp.c-c++-common/task-detach-11.c: New.
4092 * testsuite/libgomp.fortran/task-detach-1.f90: Fix formatting.
4093 * testsuite/libgomp.fortran/task-detach-2.f90: Fix formatting.
4094 * testsuite/libgomp.fortran/task-detach-3.f90: Fix formatting.
4095 * testsuite/libgomp.fortran/task-detach-4.f90: Fix formatting.
4096 * testsuite/libgomp.fortran/task-detach-5.f90: Fix formatting.
4097 Change data-sharing of detach events on enclosing parallel to private.
4098 * testsuite/libgomp.fortran/task-detach-6.f90: Likewise. Remove
4099 taskwait directive.
4100 * testsuite/libgomp.fortran/task-detach-7.f90: New.
4101 * testsuite/libgomp.fortran/task-detach-8.f90: New.
4102 * testsuite/libgomp.fortran/task-detach-9.f90: New.
4103 * testsuite/libgomp.fortran/task-detach-10.f90: New.
4104 * testsuite/libgomp.fortran/task-detach-11.f90: New.
4105
4106 2021-02-22 Tobias Burnus <tobias@codesourcery.com>
4107
4108 PR fortran/99171
4109 * testsuite/libgomp.fortran/dummy-procs-1.f90: New test.
4110
4111 2021-02-17 Julian Brown <julian@codesourcery.com>
4112
4113 * testsuite/libgomp.oacc-fortran/array-stride-dt-1.f90: Remove
4114 expected errors.
4115
4116 2021-02-17 Julian Brown <julian@codesourcery.com>
4117
4118 * testsuite/libgomp.oacc-fortran/derivedtypes-arrays-1.f90: New test.
4119 * testsuite/libgomp.oacc-fortran/update-dt-array.f90: Likewise.
4120
4121 2021-02-11 Uroš Bizjak <ubizjak@gmail.com>
4122
4123 * config/linux/x86/futex.h (__futex_wait):
4124 Revert output type back to long.
4125 (__futex_wake): Ditto.
4126 (futex_wait): Update for revert.
4127 (futex_wake): Ditto.
4128
4129 2021-02-11 Uroš Bizjak <ubizjak@gmail.com>
4130
4131 * config/linux/x86/futex.h (__futex_wait): New static inline
4132 wrapper function. Correct output type to int and
4133 timeout type to void *.
4134 (__futex_wake): New static inline wrapper function.
4135 Correct output type to int.
4136 (futex_wait): Use __futex_wait.
4137 (futex_wake): Use __futex_wake.
4138
4139 2021-02-10 Julian Brown <julian@codesourcery.com>
4140
4141 PR fortran/98979
4142 * testsuite/libgomp.oacc-fortran/array-stride-dt-1.f90: Add expected
4143 errors.
4144
4145 2021-02-04 Julian Brown <julian@codesourcery.com>
4146
4147 * testsuite/libgomp.oacc-fortran/array-stride-dt-1.f90: New test.
4148
4149 2021-02-03 Andrew Stubbs <ams@codesourcery.com>
4150
4151 * plugin/plugin-gcn.c (EF_AMDGPU_MACH): Add
4152 EF_AMDGPU_MACH_AMDGCN_GFX908.
4153 (gcn_gfx908_s): New constant string.
4154 (isa_hsa_name): Add gfx908.
4155 (isa_code): Add gfx908.
4156
4157 2021-01-25 Kwok Cheung Yeung <kcy@codesourcery.com>
4158
4159 * libgomp.texi (omp_fulfill_event): New entry.
4160
4161 2021-01-20 Jakub Jelinek <jakub@redhat.com>
4162
4163 * task.c (GOMP_task): Rename priority argument to priority_arg,
4164 add priority automatic variable and modify that variable. Instead of
4165 clearing detach argument when GOMP_TASK_FLAG_DETACH bit is not set,
4166 check flags for that bit.
4167
4168 2021-01-19 Tobias Burnus <tobias@codesourcery.com>
4169
4170 PR fortran/98476
4171 * testsuite/libgomp.fortran/is_device_ptr-1.f90: New test.
4172
4173 2021-01-18 Andreas Schwab <schwab@suse.de>
4174
4175 * configure.tgt (riscv64*-*-linux*): Add linux to config_path.
4176
4177 2021-01-18 Sebastian Huber <sebastian.huber@embedded-brains.de>
4178
4179 * config/rtems/sem.h (gomp_sem_getcount): New function.
4180
4181 2021-01-18 Jakub Jelinek <jakub@redhat.com>
4182
4183 * config/linux/sem.h (gomp_sem_getcount): New function.
4184 * config/posix/sem.h (gomp_sem_getcount): New function.
4185 * config/posix/sem.c (gomp_sem_getcount): New function.
4186 * config/accel/sem.h (gomp_sem_getcount): New function.
4187 * task.c (task_fulfilled_p): Use gomp_sem_getcount.
4188 (omp_fulfill_event): Likewise.
4189
4190 2021-01-16 Kwok Cheung Yeung <kcy@codesourcery.com>
4191
4192 * fortran.c (omp_fulfill_event_): New.
4193 * libgomp.h (struct gomp_task): Add detach and completion_sem fields.
4194 (struct gomp_team): Add task_detach_queue and task_detach_count
4195 fields.
4196 * libgomp.map (OMP_5.0.1): Add omp_fulfill_event and omp_fulfill_event_.
4197 * libgomp_g.h (GOMP_task): Add extra argument.
4198 * omp.h.in (enum omp_event_handle_t): New.
4199 (omp_fulfill_event): New.
4200 * omp_lib.f90.in (omp_event_handle_kind): New.
4201 (omp_fulfill_event): New.
4202 * omp_lib.h.in (omp_event_handle_kind): New.
4203 (omp_fulfill_event): Declare.
4204 * priority_queue.c (priority_tree_find): New.
4205 (priority_list_find): New.
4206 (priority_queue_find): New.
4207 * priority_queue.h (priority_queue_predicate): New.
4208 (priority_queue_find): New.
4209 * task.c (gomp_init_task): Initialize detach field.
4210 (task_fulfilled_p): New.
4211 (GOMP_task): Add detach argument. Ignore detach argument if
4212 GOMP_TASK_FLAG_DETACH not set in flags. Initialize completion_sem
4213 field. Copy address of completion_sem into detach argument and
4214 into the start of the data record. Wait for detach event if task
4215 not deferred.
4216 (gomp_barrier_handle_tasks): Queue tasks with unfulfilled events.
4217 Remove completed tasks and requeue dependent tasks.
4218 (omp_fulfill_event): New.
4219 * team.c (gomp_new_team): Initialize task_detach_queue and
4220 task_detach_count fields.
4221 (free_team): Free task_detach_queue field.
4222 * testsuite/libgomp.c-c++-common/task-detach-1.c: New testcase.
4223 * testsuite/libgomp.c-c++-common/task-detach-2.c: New testcase.
4224 * testsuite/libgomp.c-c++-common/task-detach-3.c: New testcase.
4225 * testsuite/libgomp.c-c++-common/task-detach-4.c: New testcase.
4226 * testsuite/libgomp.c-c++-common/task-detach-5.c: New testcase.
4227 * testsuite/libgomp.c-c++-common/task-detach-6.c: New testcase.
4228 * testsuite/libgomp.fortran/task-detach-1.f90: New testcase.
4229 * testsuite/libgomp.fortran/task-detach-2.f90: New testcase.
4230 * testsuite/libgomp.fortran/task-detach-3.f90: New testcase.
4231 * testsuite/libgomp.fortran/task-detach-4.f90: New testcase.
4232 * testsuite/libgomp.fortran/task-detach-5.f90: New testcase.
4233 * testsuite/libgomp.fortran/task-detach-6.f90: New testcase.
4234
4235 2021-01-15 Jakub Jelinek <jakub@redhat.com>
4236
4237 PR target/70454
4238 * configure.tgt: For i?86 and x86_64 determine if -march=i486 needs to
4239 be added through preprocessor check on
4240 __GCC_HAVE_SYNC_COMPARE_AND_SWAP_4.
4241
4242 2021-01-14 Thomas Schwinge <thomas@codesourcery.com>
4243
4244 PR libgomp/65099
4245 * plugin/configfrag.ac (PLUGIN_NVPTX): Restrict to supported
4246 configurations.
4247 * configure: Regenerate.
4248 * plugin/plugin-nvptx.c (nvptx_get_num_devices): Remove 64-bit
4249 check.
4250
4251 2021-01-05 Samuel Thibault <samuel.thibault@ens-lyon.org>
4252
4253 * configure: Re-generate.
4254
4255 2021-01-05 Samuel Thibault <samuel.thibault@ens-lyon.org>
4256
4257 * configure: Re-generate.
4258
4259 2021-01-05 Julian Brown <julian@codesourcery.com>
4260
4261 * plugin/plugin-nvptx.c (SOFTSTACK_CACHE_LIMIT): New define.
4262 (struct ptx_device): Add omp_stacks struct.
4263 (nvptx_open_device): Initialise cached-stacks housekeeping info.
4264 (nvptx_close_device): Free cached stacks block and mutex.
4265 (nvptx_stacks_free): New function.
4266 (nvptx_alloc): Add SUPPRESS_ERRORS parameter.
4267 (GOMP_OFFLOAD_alloc): Add strategies for freeing soft-stacks block.
4268 (nvptx_stacks_alloc): Rename to...
4269 (nvptx_stacks_acquire): This. Cache stacks block between runs if same
4270 size or smaller is required.
4271 (nvptx_stacks_free): Remove.
4272 (GOMP_OFFLOAD_run): Call nvptx_stacks_acquire and lock stacks block
4273 during kernel execution.
4274
4275 2021-01-01 Jakub Jelinek <jakub@redhat.com>
4276
4277 * libgomp.texi: Bump @copying's copyright year.
4278
4279 2020-12-28 Gerald Pfeifer <gerald@pfeifer.com>
4280
4281 * libgomp.texi (Top): Avoid bad "up" link.
4282
4283 2020-12-18 Jakub Jelinek <jakub@redhat.com>
4284
4285 * testsuite/libgomp.c/task-6.c: New test.
4286
4287 2020-12-09 Andrew Stubbs <ams@codesourcery.com>
4288
4289 * plugin/plugin-gcn.c: Include hsa_ext_amd.h.
4290 (HSA_AMD_AGENT_INFO_COMPUTE_UNIT_COUNT): Delete redundant definition.
4291
4292 2020-12-08 Tobias Burnus <tobias@codesourcery.com>
4293
4294 * testsuite/libgomp.fortran/scan-1.f90: New test.
4295
4296 2020-12-05 Iain Sandoe <iain@sandoe.co.uk>
4297
4298 PR target/97865
4299 * configure: Regenerate.
4300
4301 2020-11-29 John David Anglin <danglin@gcc.gnu.org>
4302
4303 * configure: Regenerate.
4304
4305 2020-11-25 Thomas Schwinge <thomas@codesourcery.com>
4306
4307 * testsuite/libgomp.oacc-c++/cache-1.C: New.
4308 * testsuite/libgomp.oacc-c-c++-common/cache-1.c: Update.
4309
4310 2020-11-25 Andrew Stubbs <ams@codesourcery.com>
4311
4312 * testsuite/libgomp.oacc-fortran/atomic_capture-1.f90 (main): Adjust
4313 expected results.
4314
4315 2020-11-24 Andrew Stubbs <ams@codesourcery.com>
4316
4317 * plugin/plugin-gcn.c: Don't redefine relocations if elf.h has them.
4318 (reserved): Delete unused define.
4319
4320 2020-11-24 Thomas Schwinge <thomas@codesourcery.com>
4321
4322 * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c: Avoid
4323 Tcl 8.5-specific behavior.
4324 * testsuite/libgomp.oacc-fortran/pr94358-1.f90: Likewise.
4325
4326 2020-11-18 Kwok Cheung Yeung <kcy@codesourcery.com>
4327
4328 * env.c (gomp_global_icv): Remove nest_var field. Add
4329 max_active_levels_var field.
4330 (gomp_max_active_levels_var): Remove.
4331 (parse_boolean): Return true on success.
4332 (handle_omp_display_env): Express OMP_NESTED in terms of
4333 max_active_levels_var. Change format specifier for
4334 max_active_levels_var.
4335 (initialize_env): Set max_active_levels_var from
4336 OMP_MAX_ACTIVE_LEVELS, OMP_NESTED, OMP_NUM_THREADS and
4337 OMP_PROC_BIND.
4338 * icv.c (omp_set_nested): Express in terms of
4339 max_active_levels_var.
4340 (omp_get_nested): Likewise.
4341 (omp_set_max_active_levels): Use max_active_levels_var field instead
4342 of gomp_max_active_levels_var.
4343 (omp_get_max_active_levels): Likewise.
4344 * libgomp.h (struct gomp_task_icv): Remove nest_var field. Add
4345 max_active_levels_var field.
4346 (gomp_supported_active_levels): Set to UCHAR_MAX.
4347 (gomp_max_active_levels_var): Delete.
4348 * libgomp.texi (omp_get_nested): Update documentation.
4349 (omp_set_nested): Likewise.
4350 (OMP_MAX_ACTIVE_LEVELS): Likewise.
4351 (OMP_NESTED): Likewise.
4352 (OMP_NUM_THREADS): Likewise.
4353 (OMP_PROC_BIND): Likewise.
4354 * parallel.c (gomp_resolve_num_threads): Replace reference
4355 to nest_var with max_active_levels_var. Use max_active_levels_var
4356 field instead of gomp_max_active_levels_var.
4357
4358 2020-11-18 Tobias Burnus <tobias@codesourcery.com>
4359
4360 * testsuite/libgomp.c/usleep.h (fallback_usleep): Renamed from
4361 nvptx_usleep; use also for device={arch(gcn)}.
4362
4363 2020-11-14 Jakub Jelinek <jakub@redhat.com>
4364
4365 * testsuite/libgomp.c-c++-common/allocate-1.c (struct S): New type.
4366 (foo): Add tests for non-VLA private and firstprivate clauses on
4367 omp task.
4368 (bar): Likewise. Remove taking of address from private/firstprivate
4369 variables.
4370 * testsuite/libgomp.c++/allocate-1.C (struct S): New type.
4371 (foo): Add p, q, px and s arguments. Add tests for array reductions
4372 and for non-VLA private and firstprivate clauses on omp task.
4373 (bar): Removed.
4374 (main): Adjust foo caller. Don't call bar.
4375
4376 2020-11-13 Gergö Barany <gergo@codesourcery.com>
4377 Thomas Schwinge <thomas@codesourcery.com>
4378
4379 * testsuite/libgomp.oacc-c-c++-common/declare-vla-kernels-decompose-ice-1.c:
4380 New.
4381 * testsuite/libgomp.oacc-c-c++-common/declare-vla-kernels-decompose.c:
4382 Likewise.
4383 * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c:
4384 Likewise.
4385 * testsuite/libgomp.oacc-c-c++-common/declare-vla.c: Adjust.
4386 * testsuite/libgomp.oacc-fortran/pr94358-1.f90: Likewise.
4387
4388 2020-11-13 Gergö Barany <gergo@codesourcery.com>
4389 Thomas Schwinge <thomas@codesourcery.com>
4390
4391 PR fortran/94358
4392 * testsuite/libgomp.oacc-fortran/pr94358-1.f90: New.
4393
4394 2020-11-13 Jakub Jelinek <jakub@redhat.com>
4395
4396 * testsuite/libgomp.c-c++-common/allocate-1.c (foo): Add tests
4397 for array reductions.
4398 (main): Adjust foo callers.
4399
4400 2020-11-12 Jakub Jelinek <jakub@redhat.com>
4401
4402 * libgomp.map (GOMP_alloc, GOMP_free): Export at GOMP_5.0.1.
4403 * omp.h.in (omp_alloc): Add malloc and alloc_size attributes.
4404 * libgomp_g.h (GOMP_alloc, GOMP_free): Declare.
4405 * allocator.c (omp_aligned_alloc): New for now static function,
4406 add alignment argument and handle it.
4407 (omp_alloc): Reimplement using omp_aligned_alloc.
4408 (GOMP_alloc, GOMP_free): New functions.
4409 (omp_free): Add ialias.
4410 * testsuite/libgomp.c-c++-common/allocate-1.c: New test.
4411 * testsuite/libgomp.c++/allocate-1.C: New test.
4412
4413 2020-11-12 Thomas Schwinge <thomas@codesourcery.com>
4414
4415 PR fortran/97782
4416 * testsuite/libgomp.oacc-fortran/attach-descriptor-1.f90: Adjust.
4417
4418 2020-11-10 Chung-Lin Tang <cltang@codesourcery.com>
4419
4420 * libgomp.h (enum gomp_map_vars_kind): Adjust enum values to be bit-flag
4421 usable.
4422 * oacc-mem.c (acc_map_data): Adjust gomp_map_vars argument flags to
4423 'GOMP_MAP_VARS_OPENACC | GOMP_MAP_VARS_ENTER_DATA'.
4424 (goacc_enter_datum): Likewise for call to gomp_map_vars_async.
4425 (goacc_enter_data_internal): Likewise.
4426 * target.c (gomp_map_vars_internal):
4427 Change checks of GOMP_MAP_VARS_ENTER_DATA to use bit-and (&). Adjust use
4428 of gomp_attach_pointer for OpenMP cases.
4429 (gomp_exit_data): Add handling of GOMP_MAP_DETACH.
4430 (GOMP_target_enter_exit_data): Add handling of GOMP_MAP_ATTACH.
4431 * testsuite/libgomp.c-c++-common/ptr-attach-1.c: New testcase.
4432
4433 2020-11-05 Ulrich Drepper <drepper@redhat.com>
4434 Kwok Cheung Yeung <kcy@codesourcery.com>
4435
4436 * Makefile.am (%.mod): Add -cpp and -fopenmp to compile flags.
4437 * Makefile.in: Regenerate.
4438 * fortran.c: Wrap uses of omp_set_nested and omp_get_nested with
4439 pragmas to ignore -Wdeprecated-declarations warnings.
4440 * icv.c: Likewise.
4441 * omp.h.in (__GOMP_DEPRECATED_5_0): Define.
4442 Mark omp_lock_hint_* enum values, omp_lock_hint_t, omp_set_nested,
4443 and omp_get_nested with __GOMP_DEPRECATED_5_0.
4444 * omp_lib.f90.in: Mark omp_get_nested and omp_set_nested as
4445 deprecated.
4446 * testsuite/libgomp.c++/affinity-1.C: Add -Wno-deprecated-declarations
4447 to test options.
4448 * testsuite/libgomp.c/affinity-1.c: Likewise.
4449 * testsuite/libgomp.c/affinity-2.c: Likewise.
4450 * testsuite/libgomp.c/appendix-a/a.15.1.c: Likewise.
4451 * testsuite/libgomp.c/lib-1.c: Likewise.
4452 * testsuite/libgomp.c/nested-1.c: Likewise.
4453 * testsuite/libgomp.c/nested-2.c: Likewise.
4454 * testsuite/libgomp.c/nested-3.c: Likewise.
4455 * testsuite/libgomp.c/pr32362-1.c: Likewise.
4456 * testsuite/libgomp.c/pr32362-2.c: Likewise.
4457 * testsuite/libgomp.c/pr32362-3.c: Likewise.
4458 * testsuite/libgomp.c/pr35549.c: Likewise.
4459 * testsuite/libgomp.c/pr42942.c: Likewise.
4460 * testsuite/libgomp.c/pr61200.c: Likewise.
4461 * testsuite/libgomp.c/sort-1.c: Likewise.
4462 * testsuite/libgomp.c/target-5.c: Likewise.
4463 * testsuite/libgomp.c/target-6.c: Likewise.
4464 * testsuite/libgomp.c/teams-1.c: Likewise.
4465 * testsuite/libgomp.c/thread-limit-1.c: Likewise.
4466 * testsuite/libgomp.c/thread-limit-2.c: Likewise.
4467 * testsuite/libgomp.c/thread-limit-4.c: Likewise.
4468 * testsuite/libgomp.fortran/affinity1.f90: Likewise.
4469 * testsuite/libgomp.fortran/lib1.f90: Likewise.
4470 * testsuite/libgomp.fortran/lib2.f: Likewise.
4471 * testsuite/libgomp.fortran/nested1.f90: Likewise.
4472 * testsuite/libgomp.fortran/teams1.f90: Likewise.
4473
4474 2020-11-02 Thomas Schwinge <thomas@codesourcery.com>
4475
4476 PR target/85486
4477 * testsuite/libgomp.oacc-c-c++-common/pr85486-2.c: Simplify and enhance.
4478 * testsuite/libgomp.oacc-c-c++-common/pr85486-3.c: Likewise.
4479 * testsuite/libgomp.oacc-c-c++-common/pr85486.c: Likewise.
4480
4481 2020-11-02 Thomas Schwinge <thomas@codesourcery.com>
4482
4483 PR testsuite/80219
4484 PR testsuite/85303
4485 * testsuite/lib/libgomp.exp (libgomp_init): Set
4486 'gcc_warning_prefix', 'gcc_error_prefix'.
4487
4488 2020-10-30 Jakub Jelinek <jakub@redhat.com>
4489
4490 * target.c (gomp_map_vars_internal): Use FIELD_TGT_EMPTY macro
4491 even in field_tgt_clear initializer.
4492
4493 2020-10-28 Jakub Jelinek <jakub@redhat.com>
4494
4495 * testsuite/libgomp.c/target-42.c: New test.
4496
4497 2020-10-28 Jakub Jelinek <jakub@redhat.com>
4498 Tom de Vries <tdevries@suse.de>
4499
4500 PR testsuite/81690
4501 * testsuite/libgomp.c/usleep.h: New file.
4502 * testsuite/libgomp.c/target-32.c: Include usleep.h.
4503 (main): Use tgt_usleep instead of usleep.
4504 * testsuite/libgomp.c/thread-limit-2.c: Include usleep.h.
4505 (main): Use tgt_usleep instead of usleep.
4506
4507 2020-10-28 Jakub Jelinek <jakub@redhat.com>
4508
4509 PR lto/96680
4510 * testsuite/libgomp.c/declare-variant-1.c: New test.
4511
4512 2020-10-22 Jakub Jelinek <jakub@redhat.com>
4513
4514 * testsuite/libgomp.c/target-41.c: New test.
4515
4516 2020-10-22 Jakub Jelinek <jakub@redhat.com>
4517
4518 * icv.c (omp_get_initial_device): Remove including corresponding
4519 ialias.
4520 * icv-device.c (omp_get_initial_device): New function. Return
4521 gomp_get_num_devices (). Add ialias.
4522 * target.c (resolve_device): Don't fail with
4523 OMP_TARGET_OFFLOAD=mandatory if device_id is equal to
4524 gomp_get_num_devices ().
4525 (omp_target_alloc, omp_target_free, omp_target_is_present,
4526 omp_target_memcpy, omp_target_memcpy_rect, omp_target_associate_ptr,
4527 omp_target_disassociate_ptr, omp_pause_resource): Use
4528 gomp_get_num_devices () instead of GOMP_DEVICE_HOST_FALLBACK on the
4529 first use in the functions, in uses dominated by the
4530 gomp_get_num_devices call use num_devices_openmp instead.
4531 * libgomp.texi (omp_get_initial_device): Document.
4532 * config/gcn/icv-device.c (omp_get_initial_device): New function.
4533 Add ialias.
4534 * config/nvptx/icv-device.c (omp_get_initial_device): Likewise.
4535 * testsuite/libgomp.c/target-40.c: New test.
4536
4537 2020-10-21 Jakub Jelinek <jakub@redhat.com>
4538
4539 * env.c (parse_target_offload): Change new_offload var type to int,
4540 preinitialize to -1, remove found var and test new_offload != -1
4541 instead of found.
4542
4543 2020-10-20 Jakub Jelinek <jakub@redhat.com>
4544
4545 * target.c (gomp_target_init): Inside of the function, use automatic
4546 variables corresponding to num_devices, num_devices_openmp and devices
4547 global variables and update the globals only at the end of the
4548 function.
4549
4550 2020-10-20 Kwok Cheung Yeung <kcy@codesourcery.com>
4551
4552 * env.c (gomp_target_offload_var): New.
4553 (parse_target_offload): New.
4554 (handle_omp_display_env): Print value of OMP_TARGET_OFFLOAD.
4555 (initialize_env): Parse OMP_TARGET_OFFLOAD.
4556 * libgomp.h (gomp_target_offload_t): New.
4557 (gomp_target_offload_var): New.
4558 * libgomp.texi (OMP_TARGET_OFFLOAD): New section.
4559 * target.c (resolve_device): Generate error if device not found and
4560 offloading is mandatory.
4561 (gomp_target_fallback): Generate error if offloading is mandatory.
4562 (GOMP_target): Add argument in call to gomp_target_fallback.
4563 (GOMP_target_ext): Likewise.
4564 (gomp_target_data_fallback): Generate error if offloading is mandatory.
4565 (GOMP_target_data): Add argument in call to gomp_target_data_fallback.
4566 (GOMP_target_data_ext): Likewise.
4567 (gomp_target_task_fn): Add argument in call to gomp_target_fallback.
4568 (gomp_target_init): Return early if offloading is disabled.
4569
4570 2020-10-15 Kwok Cheung Yeung <kcy@codesourcery.com>
4571
4572 * libgomp.texi (omp_get_max_active_levels): Modify description.
4573 (omp_get_supported_active_levels): Make descriptions consistent.
4574
4575 2020-10-14 Jakub Jelinek <jakub@redhat.com>
4576
4577 * libgomp.texi (omp_get_supported_active_levels): Fix a typo.
4578
4579 2020-10-13 Kwok Cheung Yeung <kcy@codesourcery.com>
4580
4581 * env.c (gomp_max_active_levels_var): Initialize to
4582 gomp_supported_active_levels.
4583 (initialize_env): Limit gomp_max_active_levels_var to be at most
4584 equal to gomp_supported_active_levels.
4585 * fortran.c (omp_get_supported_active_levels): Add ialias_redirect.
4586 (omp_get_supported_active_levels_): New.
4587 * icv.c (omp_set_max_active_levels): Limit gomp_max_active_levels_var
4588 to at most equal to gomp_supported_active_levels.
4589 (omp_get_supported_active_levels): New.
4590 * libgomp.h (gomp_supported_active_levels): New.
4591 * libgomp.map (OMP_5.0.1): Add omp_get_supported_active_levels and
4592 omp_get_supported_active_levels_.
4593 * libgomp.texi (omp_get_supported_active_levels): New.
4594 (omp_set_max_active_levels): Update. Add reference to
4595 omp_get_supported_active_levels.
4596 * omp.h.in (omp_get_supported_active_levels): New.
4597 * omp_lib.f90.in (omp_get_supported_active_levels): New.
4598 * omp_lib.h.in (omp_get_supported_active_levels): New.
4599 * testsuite/libgomp.c/lib-2.c (main): Check omp_get_max_active_levels
4600 against omp_get_supported_active_levels.
4601 * testsuite/libgomp.fortran/lib4.f90 (lib4): Likewise.
4602
4603 2020-10-11 Clement Chigot <clement.chigot@atos.net>
4604
4605 * config/t-aix: Delete and recreate libgomp before creating
4606 FAT library.
4607
4608 2020-10-08 Tom de Vries <tdevries@suse.de>
4609
4610 PR libgomp/81802
4611 * plugin/plugin-nvptx.c (GOMP_OFFLOAD_run): Report launch
4612 dimensions.
4613
4614 2020-10-06 Tom de Vries <tdevries@suse.de>
4615
4616 * testsuite/libgomp.oacc-fortran/declare-5.f90: Add xfail for PR92790.
4617
4618 2020-10-06 Tom de Vries <tdevries@suse.de>
4619
4620 PR middle-end/90861
4621 * testsuite/libgomp.oacc-c-c++-common/declare-vla.c: Remove xfail.
4622
4623 2020-10-05 Tom de Vries <tdevries@suse.de>
4624
4625 PR fortran/95654
4626 * testsuite/libgomp.fortran/pr95654.f90: New test.
4627
4628 2020-10-02 Tobias Burnus <tobias@codesourcery.com>
4629
4630 * Makefile.in: Regenerate with automake 1.15.1.
4631 * aclocal.m4: Likewise.
4632 * configure: Likewise.
4633 * testsuite/Makefile.in: Likewise.
4634
4635 2020-09-30 Andrew Stubbs <ams@codesourcery.com>
4636
4637 * parallel.c (gomp_resolve_num_threads): Ignore nest_var on nvptx
4638 and amdgcn targets.
4639
4640 2020-09-30 Tobias Burnus <tobias@codesourcery.com>
4641
4642 * testsuite/libgomp.fortran/declare-target-3.f90: New test.
4643
4644 2020-09-29 Andrew Stubbs <ams@codesourcery.com>
4645
4646 * config/gcn/bar.c (gomp_barrier_wait_end): Skip the barrier if the
4647 total number of threads is one.
4648 (gomp_team_barrier_wake): Likewise.
4649 (gomp_team_barrier_wait_end): Likewise.
4650 (gomp_team_barrier_wait_cancel_end): Likewise.
4651 * config/nvptx/bar.c (gomp_barrier_wait_end): Likewise.
4652 (gomp_team_barrier_wake): Likewise.
4653 (gomp_team_barrier_wait_end): Likewise.
4654 (gomp_team_barrier_wait_cancel_end): Likewise.
4655 * testsuite/libgomp.c-c++-common/nested-parallel-unbalanced.c: New test.
4656
4657 2020-09-28 Tobias Burnus <tobias@codesourcery.com>
4658
4659 PR middle-end/96390
4660 * testsuite/libgomp.c++/pr96390.C: New test.
4661 * testsuite/libgomp.c-c++-common/pr96390.c: New test.
4662
4663 2020-09-27 Clement Chigot <clement.chigot@atos.net>
4664
4665 * config/t-aix: Use $(AR) without -X32_64.
4666
4667 2020-09-25 Jakub Jelinek <jakub@redhat.com>
4668
4669 * testsuite/libgomp.c/loop-25.c: New test.
4670
4671 2020-09-22 Tobias Burnus <tobias@codesourcery.com>
4672
4673 PR fortran/95654
4674 * testsuite/libgomp.fortran/pr66199-5.f90: Make stop codes unique.
4675
4676 2020-09-22 Tom de Vries <tdevries@suse.de>
4677
4678 * plugin/plugin-nvptx.c (link_ptx): Print elog if cuLinkComplete call
4679 fails.
4680
4681 2020-09-16 Nathan Sidwell <nathan@acm.org>
4682
4683 * testsuite/libgomp.c++/udr-3.C: Add missing ctor.
4684
4685 2020-09-15 Tobias Burnus <tobias@codesourcery.com>
4686
4687 PR fortran/96668
4688 * target.c (gomp_map_vars_internal): Initialize has_nullptr.
4689
4690 2020-09-15 Tobias Burnus <tobias@codesourcery.com>
4691
4692 PR fortran/96668
4693 * libgomp.h (struct target_var_desc): Add has_null_ptr_assoc member.
4694 * target.c (gomp_map_vars_existing): Add always_to_flag flag.
4695 (gomp_map_vars_existing): Update call to it.
4696 (gomp_map_fields_existing): Likewise
4697 (gomp_map_vars_internal): Update PSET handling such that if a nullptr is
4698 now allocated or if GOMP_MAP_POINTER is used PSET is updated and pointer
4699 remapped.
4700 (GOMP_target_enter_exit_data): Hanlde GOMP_MAP_ALWAYS_POINTER like
4701 GOMP_MAP_POINTER.
4702 * testsuite/libgomp.fortran/map-alloc-ptr-1.f90: New test.
4703 * testsuite/libgomp.fortran/map-alloc-ptr-2.f90: New test.
4704
4705 2020-09-14 Tom de Vries <tdevries@suse.de>
4706
4707 * config/nvptx/atomic.c: New file. Add
4708 __sync_val_compare_and_swap_16.
4709 * testsuite/libgomp.c-c++-common/reduction-16.c: Add -latomic for
4710 target offload_target_nvptx.
4711
4712 2020-09-08 Julian Brown <julian@codesourcery.com>
4713
4714 * testsuite/libgomp.oacc-c-c++-common/atomic_capture-2.c: Remove
4715 iteration-ordering assumptions.
4716
4717 2020-09-08 Julian Brown <julian@codesourcery.com>
4718
4719 * testsuite/libgomp.oacc-fortran/collapse-1.f90: Fix race condition.
4720 * testsuite/libgomp.oacc-fortran/collapse-2.f90: Likewise.
4721
4722 2020-08-20 Chung-Lin Tang <cltang@codesourcery.com>
4723
4724 * plugin/plugin-nvptx.c (nvptx_free):
4725 Change "GOMP_PLUGIN_acc_thread () == NULL" test into check of
4726 CUDA_ERROR_NOT_PERMITTED status for cuMemGetAddressRange. Adjust
4727 comments.
4728
4729 2020-08-20 Tobias Burnus <tobias@codesourcery.com>
4730
4731 * testsuite/libgomp.fortran/lastprivate-conditional-10.f90: New test.
4732
4733 2020-08-13 Kwok Cheung Yeung <kcy@codesourcery.com>
4734
4735 * testsuite/libgomp.c-c++-common/reduction-16.c: New.
4736
4737 2020-08-13 Jakub Jelinek <jakub@redhat.com>
4738
4739 * testsuite/libgomp.c/loop-22.c (main): Add some further tests.
4740 * testsuite/libgomp.c/loop-23.c (main): Likewise.
4741 * testsuite/libgomp.c/loop-24.c: New test.
4742
4743 2020-08-08 Jakub Jelinek <jakub@redhat.com>
4744 Tobias Burnus <tobias@codesourcery.com>
4745
4746 PR fortran/93553
4747 * testsuite/libgomp.fortran/pr93553.f90: New test.
4748
4749 2020-08-05 Jakub Jelinek <jakub@redhat.com>
4750
4751 * testsuite/libgomp.c/loop-22.c: New test.
4752 * testsuite/libgomp.c/loop-23.c: New test.
4753
4754 2020-08-05 Jakub Jelinek <jakub@redhat.com>
4755
4756 PR middle-end/96459
4757 * testsuite/libgomp.c/teams-3.c: New test.
4758 * testsuite/libgomp.c-c++-common/for-2.h (OMPTEAMS): Define to nothing
4759 if not defined yet.
4760 (N(test)): Use it before all N(f*) calls.
4761 * testsuite/libgomp.c-c++-common/for-14.c (DO_PRAGMA, OMPTEAMS): Define.
4762 (main): Don't call all test_* functions from within
4763 #pragma omp teams reduction(|:err), call them directly.
4764
4765 2020-08-04 Tom de Vries <tdevries@suse.de>
4766
4767 PR target/96428
4768 * testsuite/libgomp.oacc-fortran/pr96628-part1.f90: New test.
4769 * testsuite/libgomp.oacc-fortran/pr96628-part2.f90: New test.
4770
4771 2020-08-03 Julian Brown <julian@codesourcery.com>
4772 Thomas Schwinge <thomas@codesourcery.com>
4773
4774 * testsuite/libgomp.oacc-fortran/attach-descriptor-1.f90: Don't run for
4775 shared-memory devices. Extend with further checking.
4776
4777 2020-08-03 Martin Jambor <mjambor@suse.cz>
4778
4779 * plugin/Makefrag.am: Remove configuration of HSA plugin.
4780 * aclocal.m4: Regenerated.
4781 * Makefile.in: Regenerated.
4782 * config.h.in: Regenerated.
4783 * configure: Regenerated.
4784 * plugin/configfrag.ac: Likewise.
4785 * plugin/hsa_ext_finalize.h: Removed.
4786 * plugin/plugin-hsa.c: Likewise.
4787 * testsuite/Makefile.in: Regenerated.
4788 * testsuite/lib/libgomp.exp
4789 (offload_target_to_openacc_device_type): Remove hsa case.
4790 (check_effective_target_hsa_offloading_selected_nocache): Removed
4791 (check_effective_target_hsa_offloading_selected): Likewise.
4792 (libgomp_init): Do not add -Wno-hsa to additional_flags.
4793 * testsuite/libgomp.hsa.c/alloca-1.c: Removed test.
4794 * testsuite/libgomp.hsa.c/bitfield-1.c: Likewise.
4795 * testsuite/libgomp.hsa.c/bits-insns.c: Likewise.
4796 * testsuite/libgomp.hsa.c/builtins-1.c: Likewise.
4797 * testsuite/libgomp.hsa.c/c.exp: Likewise.
4798 * testsuite/libgomp.hsa.c/complex-1.c: Likewise.
4799 * testsuite/libgomp.hsa.c/complex-align-2.c: Likewise.
4800 * testsuite/libgomp.hsa.c/formal-actual-args-1.c: Likewise.
4801 * testsuite/libgomp.hsa.c/function-call-1.c: Likewise.
4802 * testsuite/libgomp.hsa.c/get-level-1.c: Likewise.
4803 * testsuite/libgomp.hsa.c/gridify-1.c: Likewise.
4804 * testsuite/libgomp.hsa.c/gridify-2.c: Likewise.
4805 * testsuite/libgomp.hsa.c/gridify-3.c: Likewise.
4806 * testsuite/libgomp.hsa.c/gridify-4.c: Likewise.
4807 * testsuite/libgomp.hsa.c/memory-operations-1.c: Likewise.
4808 * testsuite/libgomp.hsa.c/pr69568.c: Likewise.
4809 * testsuite/libgomp.hsa.c/pr82416.c: Likewise.
4810 * testsuite/libgomp.hsa.c/rotate-1.c: Likewise.
4811 * testsuite/libgomp.hsa.c/staticvar.c: Likewise.
4812 * testsuite/libgomp.hsa.c/switch-1.c: Likewise.
4813 * testsuite/libgomp.hsa.c/switch-branch-1.c: Likewise.
4814 * testsuite/libgomp.hsa.c/switch-sbr-2.c: Likewise.
4815 * testsuite/libgomp.hsa.c/tiling-1.c: Likewise.
4816 * testsuite/libgomp.hsa.c/tiling-2.c: Likewise.
4817
4818 2020-07-27 Julian Brown <julian@codesourcery.com>
4819 Thomas Schwinge <thomas@codesourcery.com>
4820
4821 * libgomp.h (struct target_var_desc): Rename do_detach field to
4822 is_attach.
4823 * oacc-mem.c (goacc_exit_datum_1): Add assert. Don't set finalize for
4824 GOMP_MAP_FORCE_DETACH. Update checking to use is_attach field.
4825 (goacc_enter_data_internal): Don't affect reference counts
4826 for attach mappings.
4827 (goacc_exit_data_internal): Don't affect reference counts for detach
4828 mappings.
4829 * target.c (gomp_map_vars_existing): Don't affect reference counts for
4830 attach mappings.
4831 (gomp_map_vars_internal): Set renamed is_attach flag unconditionally to
4832 mark attach mappings.
4833 (gomp_unmap_vars_internal): Use is_attach flag to prevent affecting
4834 reference count for attach mappings.
4835 * testsuite/libgomp.oacc-c-c++-common/mdc-refcount-1.c: New test.
4836 * testsuite/libgomp.oacc-c-c++-common/mdc-refcount-2.c: New test.
4837 * testsuite/libgomp.oacc-c-c++-common/mdc-refcount-2.c: New test.
4838 * testsuite/libgomp.oacc-fortran/deep-copy-6-no_finalize.F90: Mark
4839 test as shouldfail.
4840 * testsuite/libgomp.oacc-fortran/deep-copy-6.f90: Adjust to fail
4841 gracefully in no-finalize mode.
4842 * testsuite/libgomp.oacc-c-c++-common/mdc-refcount-3.c: New file.
4843
4844 2020-07-24 Thomas Schwinge <thomas@codesourcery.com>
4845
4846 * testsuite/libgomp.oacc-c++/c++.exp: Unset 'offload_target' after
4847 use.
4848 * testsuite/libgomp.oacc-c/c.exp: Likewise.
4849 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
4850
4851 2020-07-23 Julian Brown <julian@codesourcery.com>
4852 Thomas Schwinge <thomas@codesourcery.com>
4853
4854 * target.c (gomp_unmap_vars_internal): Remove unnecessary forcing of
4855 finalization for detach operation.
4856 * testsuite/libgomp.oacc-c-c++-common/structured-detach-underflow.c:
4857 New test.
4858
4859 2020-07-23 Tobias Burnus <tobias@codesourcery.com>
4860
4861 * configure.ac: Add OMP_DEPEND_KIND and OMP_INT128_SIZE.
4862 * libgomp_f.h.in (omp_check_defines): Check whether
4863 sizeof of determined Fortran kind and C typedef match.
4864 * omp_lib.f90.in: Add omp_depened_kind.
4865 * omp_lib.h.in: Likewise; fix omp_alloctrait_key_kind.
4866 * configure: Regenerate.
4867 * Makefile.in: Regenerate.
4868 * testsuite/Makefile.in: Regenerate.
4869
4870 2020-07-22 Tobias Burnus <tobias@codesourcery.com>
4871
4872 * testsuite/libgomp.c-c++-common/critical-hint-1.c: New; moved from
4873 gcc/testsuite/c-c++-common/gomp/.
4874 * testsuite/libgomp.c-c++-common/critical-hint-2.c: Likewise.
4875 * testsuite/libgomp.fortran/critical-hint-1.f90: New; moved
4876 from gcc/testsuite/gfortran.dg/gomp/.
4877 * testsuite/libgomp.fortran/critical-hint-2.f90: Likewise.
4878
4879 2020-07-22 Tobias Burnus <tobias@codesourcery.com>
4880
4881 * omp_lib.f90.in: Add omp_sync_hint_* and omp_sync_hint_kind.
4882 * omp_lib.h.in: Likewise.
4883
4884 2020-07-18 H.J. Lu <hjl.tools@gmail.com>
4885
4886 PR target/95620
4887 * testsuite/libgomp.c/pr95620.c: New test.
4888
4889 2020-07-16 Julian Brown <julian@codesourcery.com>
4890 Thomas Schwinge <thomas@codesourcery.com>
4891
4892 * testsuite/libgomp.oacc-fortran/attach-descriptor-1.f90: New test.
4893 * testsuite/libgomp.oacc-fortran/attach-descriptor-2.f90: New test.
4894
4895 2020-07-15 Tobias Burnus <tobias@codesourcery.com>
4896
4897 * testsuite/libgomp.fortran/alloc-1.F90: Use c_size_t to
4898 avoid conversion on 32bit systems from 32bit to 64bit due
4899 to -fdefault-integer-8.
4900
4901 2020-07-15 Tobias Burnus <tobias@codesourcery.com>
4902
4903 * testsuite/libgomp.fortran/struct-elem-map-1.f90: Remove unused
4904 variables; add character(kind=4) tests; update TODO comment.
4905
4906 2020-07-15 Tobias Burnus <tobias@codesourcery.com>
4907
4908 * allocator.c: Add ialias for omp_init_allocator and
4909 omp_destroy_allocator.
4910 * configure.ac: Set INTPTR_T_KIND.
4911 * configure: Regenerate.
4912 * Makefile.in: Regenerate.
4913 * testsuite/Makefile.in: Regenerate.
4914 * fortran.c (omp_init_allocator_, omp_destroy_allocator_,
4915 omp_set_default_allocator_, omp_get_default_allocator_): New
4916 functions and ialias_redirect.
4917 * icv.c: Add ialias for omp_set_default_allocator and
4918 omp_get_default_allocator.
4919 * libgomp.map (OMP_5.0.1): Add omp_init_allocator_,
4920 omp_destroy_allocator_, omp_set_default_allocator_ and
4921 omp_get_default_allocator_.
4922 * omp_lib.f90.in: Add allocator traits parameters, declare
4923 allocator routines and add related kind parameters.
4924 * omp_lib.h.in: Likewise.
4925 * testsuite/libgomp.c-c++-common/alloc-2.c: Fix sizeof.
4926 * testsuite/libgomp.fortran/alloc-1.F90: New test.
4927 * testsuite/libgomp.fortran/alloc-2.F90: New test.
4928 * testsuite/libgomp.fortran/alloc-3.F: New test.
4929 * testsuite/libgomp.fortran/alloc-4.f90: New test.
4930 * testsuite/libgomp.fortran/alloc-5.f90: New test.
4931
4932 2020-07-14 Tom de Vries <tom@codesourcery.com>
4933 Cesar Philippidis <cesar@codesourcery.com>
4934 Thomas Schwinge <thomas@codesourcery.com>
4935 Kwok Cheung Yeung <kcy@codesourcery.com>
4936
4937 * oacc-init.c (acc_init_state_lock, acc_init_state, acc_init_thread):
4938 New variable.
4939 (acc_init_1): Set acc_init_thread to pthread_self (). Set
4940 acc_init_state to initializing at the start, and to initialized at the
4941 end.
4942 (self_initializing_p): New function.
4943 (acc_get_device_type): Return acc_device_none if called by thread that
4944 is currently executing acc_init_1.
4945 * libgomp.texi (acc_get_device_type): Update documentation.
4946 (Implementation Status and Implementation-Defined Behavior): Likewise.
4947 * testsuite/libgomp.oacc-c-c++-common/acc_prof-init-2.c: New.
4948
4949 2020-07-14 David Edelsohn <dje.gcc@gmail.com>
4950
4951 * config/t-aix: Set BITS from compiler cpp macro.
4952
4953 2020-07-14 Tobias Burnus <tobias@codesourcery.com>
4954
4955 * testsuite/libgomp.fortran/struct-elem-map-1.f90: New test.
4956
4957 2020-07-14 Tobias Burnus <tobias@codesourcery.com>
4958
4959 PR fortran/67311
4960 * testsuite/libgomp.fortran/target-map-1.f90: New test.
4961
4962 2020-07-14 Jakub Jelinek <jakub@redhat.com>
4963
4964 * testsuite/libgomp.c/loop-21.c: New test.
4965
4966 2020-07-13 Julian Brown <julian@codesourcery.com>
4967 Thomas Schwinge <thomas@codesourcery.com>
4968
4969 * testsuite/libgomp.oacc-fortran/dynamic-pointer-1.f90: New test.
4970
4971 2020-07-10 Julian Brown <julian@codesourcery.com>
4972 Thomas Schwinge <thomas@codesourcery.com>
4973
4974 * libgomp.h (struct splay_tree_key_s): Change virtual_refcount to
4975 dynamic_refcount.
4976 (struct gomp_device_descr): Remove GOMP_MAP_VARS_OPENACC_ENTER_DATA.
4977 * oacc-mem.c (acc_map_data): Substitute virtual_refcount for
4978 dynamic_refcount.
4979 (acc_unmap_data): Update comment.
4980 (goacc_map_var_existing, goacc_enter_datum): Adjust for
4981 dynamic_refcount semantics.
4982 (goacc_exit_datum_1, goacc_exit_datum): Re-add some error checking.
4983 Adjust for dynamic_refcount semantics.
4984 (goacc_enter_data_internal): Implement "present" case of dynamic
4985 memory-map handling here. Update "non-present" case for
4986 dynamic_refcount semantics.
4987 (goacc_exit_data_internal): Use goacc_exit_datum_1.
4988 * target.c (gomp_map_vars_internal): Remove
4989 GOMP_MAP_VARS_OPENACC_ENTER_DATA handling. Update for dynamic_refcount
4990 handling.
4991 (gomp_unmap_vars_internal): Remove virtual_refcount handling.
4992 (gomp_load_image_to_device): Substitute dynamic_refcount for
4993 virtual_refcount.
4994 * testsuite/libgomp.oacc-c-c++-common/pr92843-1.c: Remove XFAILs.
4995 * testsuite/libgomp.oacc-c-c++-common/refcounting-1.c: New test.
4996 * testsuite/libgomp.oacc-c-c++-common/refcounting-2.c: New test.
4997 * testsuite/libgomp.oacc-c-c++-common/struct-3-1-1.c: New test.
4998 * testsuite/libgomp.oacc-fortran/deep-copy-6.f90: Remove XFAILs and
4999 trace output.
5000 * testsuite/libgomp.oacc-fortran/deep-copy-6-no_finalize.F90: Remove
5001 trace output.
5002 * testsuite/libgomp.oacc-fortran/dynamic-incr-structural-1.f90: New
5003 test.
5004 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-4.c:
5005 Remove stale comment.
5006 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-1-1.f90: Remove XFAILs.
5007 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-1-2.F90: Likewise.
5008 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-2-1.f90: Likewise.
5009 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-2-2.f90: Likewise.
5010 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-3-1.f90: Likewise.
5011 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-4-1.f90: Adjust XFAIL.
5012
5013 2020-07-10 Julian Brown <julian@codesourcery.com>
5014 Thomas Schwinge <thomas@codesourcery.com>
5015
5016 * oacc-mem.c (goacc_map_var_existing): New function.
5017 (goacc_enter_datum): Use above function.
5018 (goacc_exit_datum_1): New function.
5019 (goacc_exit_datum): Use above function.
5020
5021 2020-07-09 Julian Brown <julian@codesourcery.com>
5022 Thomas Schwinge <thomas@codesourcery.com>
5023
5024 PR middle-end/95270
5025 * testsuite/libgomp.oacc-c-c++-common/pr95270-1.c: New test.
5026 * testsuite/libgomp.oacc-c-c++-common/pr95270-2.c: New test.
5027
5028 2020-07-09 Julian Brown <julian@codesourcery.com>
5029
5030 * oacc-mem.c (find_group_last): Group data-movement clauses
5031 (GOMP_MAP_TO_PSET, GOMP_MAP_TO, etc.) together with a subsequent
5032 GOMP_MAP_ATTACH. Allow standalone GOMP_MAP_ATTACH also.
5033
5034 2020-07-09 Jakub Jelinek <jakub@redhat.com>
5035
5036 * testsuite/libgomp.c/loop-19.c: New test.
5037 * testsuite/libgomp.c/loop-20.c: New test.
5038
5039 2020-07-09 Jakub Jelinek <jakub@redhat.com>
5040
5041 * omp.h.in (omp_alloctrait_value_t): Change omp_atv_default from
5042 2 to -1. Add omp_atv_serialized and define omp_atv_sequential using
5043 it. Remove __omp_alloctrait_value_max__.
5044 * allocator.c (omp_init_allocator): Handle omp_atv_default for
5045 omp_atk_alignment and omp_atk_pool_size.
5046
5047 2020-07-03 Thomas Schwinge <thomas@codesourcery.com>
5048
5049 * oacc-mem.c (goacc_exit_data_internal): Revert always-copyfrom
5050 behavior for 'GOMP_MAP_FORCE_FROM'.
5051 * testsuite/libgomp.oacc-c-c++-common/pr92843-1.c: Adjust XFAIL.
5052
5053 2020-07-03 Thomas Schwinge <thomas@codesourcery.com>
5054
5055 * oacc-mem.c (goacc_exit_data_internal): Remove
5056 'GOMP_MAP_ALWAYS_FROM' handling.
5057
5058 2020-06-30 Thomas Schwinge <thomas@codesourcery.com>
5059
5060 * testsuite/libgomp.oacc-c-c++-common/pr85381-2.c: Replace fragile
5061 'scan-assembler' with 'scan-offload-rtl'.
5062 * testsuite/libgomp.oacc-c-c++-common/pr85381-3.c: Likewise.
5063 * testsuite/libgomp.oacc-c-c++-common/pr85381-4.c: Likewise.
5064 * testsuite/libgomp.oacc-c-c++-common/pr85381-5.c: Likewise.
5065 * testsuite/libgomp.oacc-c-c++-common/pr85381.c: Likewise.
5066
5067 2020-06-30 Thomas Schwinge <thomas@codesourcery.com>
5068
5069 * target.c (gomp_map_vars_existing): Assert 'kind !=
5070 GOMP_MAP_ATTACH'.
5071 (gomp_map_vars_internal): Clean up.
5072
5073 2020-06-27 Jakub Jelinek <jakub@redhat.com>
5074
5075 * testsuite/libgomp.c/loop-17.c: New test.
5076 * testsuite/libgomp.c/loop-18.c: New test.
5077
5078 2020-06-26 Marek Polacek <polacek@redhat.com>
5079
5080 * testsuite/libgomp.c++/atomic-3.C: Use -std=gnu++14.
5081
5082 2020-06-23 Alexandre Oliva <oliva@adacore.com>
5083
5084 * testsuite/lib/libgomp.exp: Load gcc lib scanoffload.exp.
5085 * testsuite/lib/libgomp-dg.exp: Drop now-obsolete -save-temps.
5086
5087 2020-06-22 David Edelsohn <dje.gcc@gmail.com>
5088
5089 * Makefile.am: Use -include.
5090 * Makefile.in: Regenerate.
5091
5092 2020-06-21 David Edelsohn <dje.gcc@gmail.com>
5093
5094 * Makefile.am (tmake_file): Build and install AIX-style FAT libraries.
5095 * Makefile.in: Regenerate
5096 * configure.ac (tmake_file): Substitute.
5097 * configure: Regenerate.
5098 * configure.tgt (powerpc-ibm-aix*): Define tmake_file.
5099 * config/t-aix: New file.
5100
5101 2020-06-17 Thomas Schwinge <thomas@codesourcery.com>
5102
5103 PR lto/94848
5104 * testsuite/libgomp.fortran/use_device_ptr-optional-3.f90: Add
5105 'dg-do run'.
5106
5107 2020-06-17 Andrew Stubbs <ams@codesourcery.com>
5108
5109 * plugin/plugin-gcn.c (init_environment_variables): Use ".so.1"
5110 variant for HSA_RUNTIME_LIB name.
5111 (find_executable_symbol_1): Delete.
5112 (find_executable_symbol): Delete.
5113 (init_kernel_properties): Add ".kd" suffix to symbol names.
5114 (find_load_offset): Delete.
5115 (create_and_finalize_hsa_program): Remove relocation handling.
5116
5117 2020-06-16 Tobias Burnus <tobias@codesourcery.com>
5118
5119 * testsuite/libgomp.oacc-fortran/routine-10.f90: New test.
5120
5121 2020-06-08 Tobias Burnus <tobias@codesourcery.com>
5122
5123 PR lto/94848
5124 PR middle-end/95551
5125 * testsuite/libgomp.fortran/target-var.f90: New test.
5126
5127 2020-06-05 Thomas Schwinge <thomas@codesourcery.com>
5128 Julian Brown <julian@codesourcery.com>
5129
5130 * oacc-mem.c (goacc_exit_data_internal) <GOMP_MAP_STRUCT>: Explain
5131 special handling.
5132
5133 2020-06-05 Thomas Schwinge <thomas@codesourcery.com>
5134 Julian Brown <julian@codesourcery.com>
5135
5136 * oacc-mem.c (goacc_exit_data_internal) <GOMP_MAP_STRUCT>:
5137 Simplify.
5138
5139 2020-06-05 Julian Brown <julian@codesourcery.com>
5140
5141 * testsuite/libgomp.oacc-c-c++-common/struct-copyout-1.c: New test.
5142 * testsuite/libgomp.oacc-c-c++-common/struct-copyout-2.c: New test.
5143
5144 2020-06-04 Thomas Schwinge <thomas@codesourcery.com>
5145
5146 * oacc-mem.c (goacc_exit_data_internal) <GOMP_MAP_STRUCT>:
5147 Evaluate 'copyfrom' individually for each entry.
5148 * testsuite/libgomp.oacc-c-c++-common/struct-1.c: Update.
5149
5150 2020-06-04 Thomas Schwinge <thomas@codesourcery.com>
5151
5152 * oacc-mem.c (goacc_exit_data_internal) <GOMP_MAP_STRUCT>:
5153 Evaluate 'finalize' individually for each entry.
5154 * testsuite/libgomp.oacc-c-c++-common/struct-1.c: New file.
5155 * testsuite/libgomp.oacc-c-c++-common/struct-refcount-1.c: Remove
5156 file.
5157
5158 2020-06-04 Thomas Schwinge <thomas@codesourcery.com>
5159
5160 * testsuite/libgomp.oacc-c-c++-common/deep-copy-7.c: Fix 'sizeof'
5161 usage.
5162 * testsuite/libgomp.oacc-c-c++-common/deep-copy-8.c: Likewise.
5163
5164 2020-06-04 Thomas Schwinge <thomas@codesourcery.com>
5165 Julian Brown <julian@codesourcery.com>
5166
5167 * oacc-mem.c (goacc_exit_datum): Repair 'is_tgt_unmapped'
5168 checking.
5169 (acc_unmap_data, goacc_exit_data_internal): Restore
5170 'is_tgt_unmapped' checking.
5171 * testsuite/libgomp.oacc-c-c++-common/struct-refcount-1.c: New
5172 file.
5173 * testsuite/libgomp.oacc-fortran/deep-copy-6.f90: Adjust.
5174 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-1-1.f90: Likewise.
5175 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-2-1.f90: Likewise.
5176 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-2-2.f90: Likewise.
5177 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-3-1.f90: Likewise.
5178 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-4-1.f90: Likewise.
5179
5180 2020-06-04 Thomas Schwinge <thomas@codesourcery.com>
5181 Julian Brown <julian@codesourcery.com>
5182
5183 * oacc-mem.c (acc_unmap_data): Don't open-code 'gomp_remove_var'.
5184
5185 2020-06-04 Thomas Schwinge <thomas@codesourcery.com>
5186
5187 PR libgomp/92854
5188 * oacc-mem.c (acc_unmap_data): Remove 'tgt' reference counting.
5189
5190 2020-06-04 Thomas Schwinge <thomas@codesourcery.com>
5191
5192 PR libgomp/92854
5193 * testsuite/libgomp.oacc-c-c++-common/pr92854-1.c: Extend some
5194 more.
5195
5196 2020-06-04 Thomas Schwinge <thomas@codesourcery.com>
5197 Julian Brown <julian@codesourcery.com>
5198
5199 * oacc-mem.c (goacc_enter_datum): Use 'tgt' returned from
5200 'gomp_map_vars'.
5201 (acc_map_data): Clean up accordingly.
5202
5203 2020-06-04 Thomas Schwinge <thomas@codesourcery.com>
5204
5205 * testsuite/libgomp.oacc-fortran/deep-copy-6.f90: XFAIL behavior
5206 of over-eager 'finalize' clause.
5207 * testsuite/libgomp.oacc-fortran/deep-copy-6-no_finalize.F90: New
5208 file.
5209 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-1-1.f90: Likewise.
5210 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-1-2.F90: Likewise.
5211 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-2-1.f90: Likewise.
5212 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-2-2.f90: Likewise.
5213 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-3-1.f90: Likewise.
5214 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-3-2.f90: Likewise.
5215 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-4-1.f90: Likewise.
5216 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-4-2.f90: Likewise.
5217
5218 2020-06-04 Thomas Schwinge <thomas@codesourcery.com>
5219
5220 * oacc-mem.c (goacc_exit_data_internal): Unlock on error path.
5221
5222 2020-06-04 Julian Brown <julian@codesourcery.com>
5223
5224 * oacc-mem.c (acc_attach_async): Add missing gomp_mutex_unlock on
5225 error path.
5226 (goacc_detach_internal): Likewise.
5227
5228 2020-06-04 Thomas Schwinge <thomas@codesourcery.com>
5229
5230 * testsuite/libgomp.oacc-fortran/error_stop-1.f: Initialize before
5231 the checkpoint.
5232 * testsuite/libgomp.oacc-fortran/error_stop-2.f: Likewise.
5233 * testsuite/libgomp.oacc-fortran/error_stop-3.f: Likewise.
5234 * testsuite/libgomp.oacc-fortran/stop-1.f: Likewise.
5235 * testsuite/libgomp.oacc-fortran/stop-2.f: Likewise.
5236 * testsuite/libgomp.oacc-fortran/stop-3.f: Likewise.
5237
5238 2020-06-02 Jakub Jelinek <jakub@redhat.com>
5239
5240 * allocator.c (omp_free): Fix up build if HAVE_SYNC_BUILTINS is not
5241 defined.
5242
5243 2020-05-30 Jakub Jelinek <jakub@redhat.com>
5244
5245 * testsuite/libgomp.c-c++-common/alloc-4.c: New test.
5246
5247 2020-05-30 Jakub Jelinek <jakub@redhat.com>
5248
5249 * allocator.c (omp_alloc): For size == 0, return NULL early.
5250
5251 2020-05-29 H.J. Lu <hjl.tools@gmail.com>
5252
5253 PR bootstrap/95413
5254 * configure: Regenerated.
5255
5256 2020-05-23 Thomas Koenig <tkoenig@gcc.gnu.org>
5257
5258 PR libfortran/95191
5259 * testsuite/libgomp.fortran/async_io_9.f90: New test.
5260
5261 2020-05-19 Jakub Jelinek <jakub@redhat.com>
5262
5263 * omp.h.in (omp_uintptr_t): New typedef.
5264 (__GOMP_UINTPTR_T_ENUM): Define.
5265 (omp_memspace_handle_t, omp_allocator_handle_t, omp_alloctrait_key_t,
5266 omp_alloctrait_value_t, omp_alloctrait_t): New typedefs.
5267 (__GOMP_DEFAULT_NULL_ALLOCATOR): Define.
5268 (omp_init_allocator, omp_destroy_allocator, omp_set_default_allocator,
5269 omp_get_default_allocator, omp_alloc, omp_free): Declare.
5270 * libgomp.h (struct gomp_team_state): Add def_allocator field.
5271 (gomp_def_allocator): Declare.
5272 * libgomp.map (OMP_5.0.1): Export omp_set_default_allocator,
5273 omp_get_default_allocator, omp_init_allocator, omp_destroy_allocator,
5274 omp_alloc and omp_free.
5275 * team.c (gomp_team_start): Copy over ts.def_allocator.
5276 * env.c (gomp_def_allocator): New variable.
5277 (parse_wait_policy): Adjust function comment.
5278 (parse_allocator): New function.
5279 (handle_omp_display_env): Print OMP_ALLOCATOR.
5280 (initialize_env): Call parse_allocator.
5281 * Makefile.am (libgomp_la_SOURCES): Add allocator.c.
5282 * allocator.c: New file.
5283 * icv.c (omp_set_default_allocator, omp_get_default_allocator): New
5284 functions.
5285 * testsuite/libgomp.c-c++-common/alloc-1.c: New test.
5286 * testsuite/libgomp.c-c++-common/alloc-2.c: New test.
5287 * testsuite/libgomp.c-c++-common/alloc-3.c: New test.
5288 * Makefile.in: Regenerated.
5289
5290 2020-05-15 H.J. Lu <hongjiu.lu@intel.com>
5291
5292 PR bootstrap/95147
5293 * configure: Regenerated.
5294
5295 2020-05-14 Thomas Koenig <tkoenig@gcc.gnu.org>
5296
5297 PR libfortran/95119
5298 * testsuite/libgomp.fortran/close_errors_1.f90: New test.
5299
5300 2020-05-14 H.J. Lu <hongjiu.lu@intel.com>
5301
5302 * configure: Regenerated.
5303
5304 2020-05-14 Jakub Jelinek <jakub@redhat.com>
5305
5306 * testsuite/libgomp.c-c++-common/target-40.c: New test.
5307
5308 2020-05-13 Tobias Burnus <tobias@codesourcery.com>
5309
5310 PR fortran/94690
5311 * testsuite/libgomp.fortran/pr66199-3.f90: New.
5312 * testsuite/libgomp.fortran/pr66199-4.f90: New.
5313 * testsuite/libgomp.fortran/pr66199-5.f90: New.
5314 * testsuite/libgomp.fortran/pr66199-6.f90: New.
5315 * testsuite/libgomp.fortran/pr66199-7.f90: New.
5316 * testsuite/libgomp.fortran/pr66199-8.f90: New.
5317 * testsuite/libgomp.fortran/pr66199-9.f90: New.
5318
5319 2020-05-12 Jakub Jelinek <jakub@redhat.com>
5320
5321 * testsuite/libgomp.c/target-39.c: New test.
5322
5323 2020-04-29 Thomas Schwinge <thomas@codesourcery.com>
5324
5325 * config/accel/openacc.f90 (acc_device_current): Set to '-1'.
5326 * openacc.f90 (acc_device_current): Likewise.
5327 * openacc.h (acc_device_current): Likewise.
5328 * openacc_lib.h (acc_device_current): Likewise.
5329
5330 PR target/94282
5331 * testsuite/libgomp.c-c++-common/function-not-offloaded.c: Remove
5332 'dg-allow-blank-lines-in-output'.
5333
5334 * oacc-init.c (get_openacc_name): Handle 'gcn'.
5335 * testsuite/lib/libgomp.exp
5336 (offload_target_to_openacc_device_type) [amdgcn*]: Return
5337 'radeon'. Adjust all users.
5338 (check_effective_target_openacc_amdgcn_accel_present): Rename
5339 to...
5340 (check_effective_target_openacc_radeon_accel_present): ... this.
5341 Adjust all users.
5342 (check_effective_target_openacc_amdgcn_accel_selected): Rename to...
5343 (check_effective_target_openacc_radeon_accel_selected): ... this.
5344 Adjust all users.
5345
5346 * testsuite/libgomp.fortran/use_device_ptr-optional-2.f90: Add
5347 'dg-do run'.
5348
5349 2020-04-23 Andrew Stubbs <ams@codesourcery.com>
5350
5351 PR other/94629
5352
5353 * plugin/plugin-gcn.c (init_hsa_context): Check return value from
5354 hsa_iterate_agents.
5355 (GOMP_OFFLOAD_init_device): Check return values from both calls to
5356 hsa_agent_iterate_regions.
5357
5358 2020-04-20 Thomas Schwinge <thomas@codesourcery.com>
5359
5360 PR middle-end/94635
5361 * testsuite/libgomp.fortran/target-enter-data-2.F90: Add 'dg-do
5362 run'.
5363
5364 2020-04-20 Tobias Burnus <tobias@codesourcery.com>
5365
5366 PR middle-end/94120
5367 * testsuite/libgomp.oacc-c++/declare-pr94120.C: Fix 'declare copy(out)'
5368 test case.
5369
5370 2020-04-17 Tobias Burnus <tobias@codesourcery.com>
5371
5372 PR middle-end/94635
5373 * testsuite/libgomp.fortran/target-enter-data-2.F90: New.
5374
5375 2020-04-13 Thomas Schwinge <thomas@codesourcery.com>
5376
5377 PR libgomp/92843
5378 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-1-lib.c:
5379 Rename to...
5380 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-1-lib.c:
5381 ... this.
5382 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-1.c:
5383 Rename to...
5384 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-1.c:
5385 ... this.
5386 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-2-lib.c:
5387 Rename to...
5388 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-2-lib.c:
5389 ... this.
5390 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-2.c:
5391 Rename to...
5392 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-2.c:
5393 ... this.
5394 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-3-lib.c:
5395 Rename to...
5396 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-3-lib.c:
5397 ... this.
5398 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-3.c:
5399 Rename to...
5400 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-3.c:
5401 ... this.
5402 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-4-lib.c:
5403 Rename to...
5404 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-4-lib.c:
5405 ... this.
5406 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-4.c:
5407 Rename to...
5408 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-4.c:
5409 ... this.
5410 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-5-lib.c:
5411 Rename to...
5412 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-5-lib.c:
5413 ... this.
5414 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-5.c:
5415 Rename to...
5416 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-5.c:
5417 ... this.
5418 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-6-lib.c:
5419 Rename to...
5420 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-6-lib.c:
5421 ... this.
5422 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-6.c:
5423 Rename to...
5424 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-6.c:
5425 ... this.
5426 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-7-lib.c:
5427 Rename to...
5428 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-7-lib.c:
5429 ... this.
5430 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-7.c:
5431 Rename to...
5432 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-7.c:
5433 ... this.
5434 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-8-lib.c:
5435 Rename to...
5436 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-8-lib.c:
5437 ... this.
5438 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-8.c::
5439 Rename to...
5440 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-8.c:
5441 ... this.
5442
5443 2020-04-10 Julian Brown <julian@codesourcery.com>
5444 Thomas Schwinge <thomas@codesourcery.com>
5445
5446 PR libgomp/92843
5447 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-1-lib.c:
5448 New file.
5449 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-1.c:
5450 Likewise.
5451 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-2-lib.c:
5452 Likewise.
5453 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-2.c:
5454 Likewise.
5455 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-3-lib.c:
5456 Likewise.
5457 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-3.c:
5458 Likewise.
5459 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-4-lib.c:
5460 Likewise.
5461 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-4.c:
5462 Likewise.
5463 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-5-lib.c:
5464 Likewise.
5465 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-5.c:
5466 Likewise.
5467 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-6-lib.c:
5468 Likewise.
5469 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-6.c:
5470 Likewise.
5471 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-7-lib.c:
5472 Likewise.
5473 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-7.c:
5474 Likewise.
5475 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-8-lib.c:
5476 Likewise.
5477 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-8.c:
5478 Likewise.
5479
5480 2020-04-10 Thomas Schwinge <thomas@codesourcery.com>
5481
5482 * testsuite/libgomp.fortran/target-enter-data-1.f90: Add 'dg-do
5483 run'.
5484
5485 2020-04-08 Tobias Burnus <tobias@codesourcery.com>
5486
5487 PR middle-end/94120
5488 * libgomp.oacc-c++/declare-pr94120.C: New.
5489
5490 2020-04-06 Maciej W. Rozycki <macro@wdc.com>
5491
5492 * configure.ac: Add testsuite/libgomp-site-extra.exp to output
5493 files.
5494 * configure: Regenerate.
5495 * testsuite/libgomp-site-extra.exp.in: New file.
5496 * testsuite/libgomp-test-support.exp.in (GCC_UNDER_TEST): Remove
5497 variable.
5498 * testsuite/Makefile.am (EXTRA_DEJAGNU_SITE_CONFIG): New
5499 variable.
5500 * testsuite/Makefile.in: Regenerate.
5501
5502 2020-04-03 Thomas Schwinge <thomas@codesourcery.com>
5503
5504 PR tree-optimization/89713
5505 PR c/94392
5506 * testsuite/libgomp.oacc-c-c++-common/pr85381-2.c: Again expect
5507 'bar.sync'.
5508 * testsuite/libgomp.oacc-c-c++-common/pr85381-4.c: Likewise.
5509
5510 2020-03-31 Tobias Burnus <tobias@codesourcery.com>
5511
5512 * target.c (GOMP_target_enter_exit_data): Handle PSET/MAP_POINTER.
5513 * testsuite/libgomp.fortran/target-enter-data-1.f90: New.
5514
5515 2020-03-24 Tobias Burnus <tobias@codesourcery.com>
5516
5517 PR libgomp/81689
5518 * testsuite/libgomp.c/target-link-1.c: Remove xfail.
5519
5520 2020-03-20 Tobias Burnus <tobias@codesourcery.com>
5521
5522 PR libgomp/94251
5523 * target.c (gomp_load_image_to_device): Fix link
5524 variable handling.
5525
5526 2020-03-19 Jakub Jelinek <jakub@redhat.com>
5527
5528 PR c++/93931
5529 * testsuite/libgomp.c++/pr93931.C: New test.
5530
5531 2020-03-19 Tobias Burnus <tobias@codesourcery.com>
5532
5533 * testsuite/libgomp.c-c++-common/function-not-offloaded.c: Add
5534 dg-allow-blank-lines-in-output.
5535
5536 2020-03-18 Julian Brown <julian@codesourcery.com>
5537 Tobias Burnus <tobias@codesourcery.com>
5538
5539 * testsuite/libgomp.oacc-fortran/atomic_capture-1.f90: Really make
5540 it work concurrently.
5541
5542 2020-03-18 Tobias Burnus <tobias@codesourcery.com>
5543
5544 * testsuite/libgomp.oacc-c++/firstprivate-mappings-1.C: Add
5545 #define DO_LONG_DOUBLE; set to 1, except for nvidia + gcn.
5546 * libgomp.oacc-c-c++-common/firstprivate-mappings-1.c: Likewise.
5547
5548 2020-03-14 Jakub Jelinek <jakub@redhat.com>
5549
5550 PR middle-end/93566
5551 * testsuite/libgomp.c/pr93566.c: New test.
5552
5553 2020-02-21 Frederik Harwath <frederik@codesourcery.com>
5554
5555 * testsuite/libgomp.oacc-fortran/acc_get_property.f90: Adapt to
5556 changes from 2020-02-19, i.e. use integer(c_size_t) instead of
5557 integer(acc_device_property) for the type of the return value of
5558 acc_get_property.
5559
5560 2020-02-19 Tobias Burnus <tobias@codesourcery.com>
5561
5562 * .gitattributes: New; whitespace handling for Fortran's openacc_lib.h.
5563 * config/accel/openacc.f90 (openacc_kinds): Add acc_device_current.
5564 (openacc_internal, acc_on_device_h): Fix argument name; minor cleanup.
5565 * libgomp.texi (Enabling OpenACC): No longer mark as experimental.
5566 (acc_set_device_num): Fix Fortran argument name, use same name for C.
5567 (acc_get_property): Update Fortran interface to post-OpenACC 3.0
5568 corrections; add note about the previous interface and named constant.
5569 (OpenACC library and environment variables): Fix two typos.
5570 * openacc.f90: Use for all procedures the argument names from the spec
5571 as for …_h they are user visible.
5572 (openacc_kinds): Rename acc_device_property to
5573 acc_device_property_kinds and change value to int32 ; and update users.
5574 Re-add acc_device_property for for backward compatibility.
5575 (acc_get_property_string_h): Clean up as acc_device_property_kind
5576 changed.
5577 (acc_get_property_h): Likewise and return c_size_t instead of
5578 acc_device_property.
5579 (openacc): Also export acc_device_property_kinds.
5580 (acc_async_test_h, acc_async_test_all_h, acc_on_device_h,
5581 acc_is_present_32_h, acc_is_present_64_h): Simplify logical-return-value
5582 handling; check against /= 0 instead of == 1 to match C.
5583 * openacc_lib.h: Use for all procedures the argument names from the spec
5584 as for …_h they are user visible. Place !GCC$ into the first column to
5585 be active also for fixed-form souce form.
5586 (acc_device_current, acc_device_property_kind, acc_device_property,
5587 acc_property_memory, acc_property_free_memory, acc_property_name,
5588 acc_property_vendor, acc_property_driver): New named constants.
5589 (acc_get_property, acc_get_property_string): New generic interface.
5590
5591 2020-02-13 Frederik Harwath <frederik@codesourcery.com>
5592
5593 PR libgomp/93481
5594 * plugin/plugin-nvptx.c: Remove GOMP_OFFLOAD_async_run stub.
5595 * target.c (gomp_load_plugin_for_device): Make "async_run" loading
5596 optional.
5597 (gomp_target_task_fn): Assert "devicep->async_run_func".
5598 (clear_unsupported_flags): New function to remove unsupported flags
5599 (right now only GOMP_TARGET_FLAG_NOWAIT) that can be be ignored.
5600 (GOMP_target_ext): Apply clear_unsupported_flags to flags.
5601 * testsuite/libgomp.c/target-33.c:
5602 Remove xfail for offload_target_nvptx.
5603 * testsuite/libgomp.c/target-34.c: Likewise.
5604
5605 2020-02-10 Frederik Harwath <frederik@codesourcery.com>
5606
5607 * testsuite/libgomp.c/target-33.c: Add xfail for execution on
5608 offload_target_nvptx, cf. https://gcc.gnu.org/PR81688.
5609 * testsuite/libgomp.c/target-34.c: Likewise.
5610 * testsuite/libgomp.c/target-link-1.c: Add xfail for
5611 offload_target_nvptx, cf. https://gcc.gnu.org/PR81689.
5612
5613 2020-02-09 Jakub Jelinek <jakub@redhat.com>
5614
5615 * testsuite/libgomp.c/target-38.c: New test.
5616
5617 2020-02-06 Jakub Jelinek <jakub@redhat.com>
5618
5619 PR libgomp/93515
5620 * testsuite/libgomp.c-c++-common/pr93515.c: New test.
5621
5622 2020-02-05 Tobias Burnus <tobias@codesourcery.com>
5623
5624 * testsuite/lib/libgomp.exp
5625 (check_effective_target_offload_target_nvptx): Pass flags as 'options'
5626 and not as 'source' argument to libgomp_target_compile.
5627
5628 2020-02-03 Andrew Stubbs <ams@codesourcery.com>
5629
5630 * plugin/plugin-gcn.c (EF_AMDGPU_MACH_AMDGCN_GFX801): Remove.
5631 (gcn_gfx801_s): Remove.
5632 (isa_hsa_name): Remove gfx801.
5633 (isa_gcc_name): Remove gfx801/carizzo.
5634 (isa_code): Remove gfx801.
5635
5636 2020-02-03 Julian Brown <julian@codesourcery.com>
5637 Tobias Burnus <tobias@codesourcery.com>
5638
5639 * libgomp.texi (OpenACC Runtime Library Routines): Document *_async
5640 and *_finalize variants; document acc_attach and acc_detach; update
5641 references from OpenACC 2.0 to 2.6.
5642 * openacc.f90 (openacc_version): Update to 201711.
5643 * openacc_lib.h (openacc_version): Update to 201711.
5644 * testsuite/libgomp.oacc-fortran/openacc_version-1.f: Update expected
5645 openacc_version to 201711.
5646 * testsuite/libgomp.oacc-fortran/openacc_version-2.f90: Likewise.
5647
5648 2020-01-31 Kwok Cheung Yeung <kcy@codesourcery.com>
5649
5650 * plugin/plugin-gcn.c (struct hsa_kernel_description): Add sgpr_count
5651 and vgpr_count fields.
5652 (struct kernel_info): Add a field for a hsa_kernel_description.
5653 (run_kernel): Reduce the number of threads/workers if the requested
5654 number would require too many VGPRs.
5655 (init_basic_kernel_info): Initialize description field with
5656 the hsa_kernel_description entry for the kernel.
5657
5658 2020-01-29 Tobias Burnus <tobias@codesourcery.com>
5659
5660 PR bootstrap/93409
5661 * plugin/configfrag.ac (enable_offload_targets): Skip
5662 HSA and GCN plugin besides -m32 also for -mx32.
5663 * configure: Regenerate.
5664
5665 2020-01-29 Frederik Harwath <frederik@codesourcery.com>
5666
5667 * oacc-init.c (name_of_acc_device_t): Handle acc_device_radeon.
5668
5669 2020-01-29 Frederik Harwath <frederik@codesourcery.com>
5670
5671 * plugin-gcn.c (struct agent_info): Add fields "name" and
5672 "vendor_name" ...
5673 (GOMP_OFFLOAD_init_device): ... and init from here.
5674 (struct hsa_context_info): Add field "driver_version_s" ...
5675 (init_hsa_contest): ... and init from here.
5676 (GOMP_OFFLOAD_openacc_get_property): Replace stub with a proper
5677 implementation.
5678 * testsuite/libgomp.oacc-c-c++-common/acc_get_property.c:
5679 Enable test execution for amdgcn and host offloading targets.
5680 * testsuite/libgomp.oacc-fortran/acc_get_property.f90: Likewise.
5681 * testsuite/libgomp.oacc-c-c++-common/acc_get_property-aux.c
5682 (expect_device_properties): Split function into ...
5683 (expect_device_string_properties): ... this new function ...
5684 (expect_device_memory): ... and this new function.
5685 * testsuite/libgomp.oacc-c-c++-common/acc_get_property-gcn.c:
5686 Add test.
5687
5688 2020-01-28 Julian Brown <julian@codesourcery.com>
5689
5690 * testsuite/libgomp.oacc-fortran/deep-copy-2.f90: Remove test from here.
5691 * testsuite/libgomp.oacc-fortran/deep-copy-3.f90: Don't use mixed
5692 component/non-component variable refs in a single directive.
5693 * testsuite/libgomp.oacc-fortran/classtypes-1.f95: Likewise.
5694
5695 2020-01-24 Maciej W. Rozycki <macro@wdc.com>
5696
5697 * configure.ac: Handle `--with-toolexeclibdir='.
5698 * Makefile.in: Regenerate.
5699 * aclocal.m4: Regenerate.
5700 * configure: Regenerate.
5701 * testsuite/Makefile.in: Regenerate.
5702
5703 2020-01-24 Frederik Harwath <frederik@codesourcery.com>
5704
5705 * testsuite/libgomp.oacc-c-c++-common/acc_get_property-aux.c
5706 (expect_device_properties): Remove "expected_free_mem" argument,
5707 change "expected_total_mem" argument type to size_t;
5708 change types of acc_get_property results to size_t,
5709 adapt format strings.
5710 * testsuite/libgomp.oacc-c-c++-common/acc_get_property.c:
5711 Use %zu instead of %zd to print size_t values.
5712 * testsuite/libgomp.oacc-c-c++-common/acc_get_property-2.c: Adapt and
5713 rename to ...
5714 * testsuite/libgomp.oacc-c-c++-common/acc_get_property-nvptx.c: ... this.
5715 * testsuite/libgomp.oacc-c-c++-common/acc_get_property-3.c: Adapt and
5716 rename to ...
5717 * testsuite/libgomp.oacc-c-c++-common/acc_get_property-host.c: ... this.
5718
5719 2020-01-23 Andrew Stubbs <ams@codesourcery.com>
5720
5721 * plugin/plugin-gcn.c (parse_target_attributes): Use correct mask for
5722 the device id.
5723
5724 2020-01-20 Andrew Stubbs <ams@codesourcery.com>
5725
5726 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Skip test on gcn.
5727 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c (main):
5728 Adjust test dimensions for amdgcn.
5729 * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c (main): Adjust
5730 gang/worker/vector expectations dynamically.
5731 * testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c
5732 (main): Likewise.
5733 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c (main): Likewise.
5734 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c (main): Likewise.
5735 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c (main): Likewise.
5736 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c (main): Likewise.
5737 * testsuite/libgomp.oacc-c-c++-common/loop-red-wv-1.c (main): Likewise.
5738 * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c (main): Likewise.
5739 * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c (main): Likewise.
5740 * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c (main): Likewise.
5741 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c
5742 (acc_gang): Recognise acc_device_radeon.
5743 (acc_worker): Likewise.
5744 (acc_vector): Likewise.
5745 (main): Set expectations for amdgcn.
5746 * testsuite/libgomp.oacc-c-c++-common/routine-gwv-1.c
5747 (main): Adjust gang/worker/vector expectations dynamically.
5748 * testsuite/libgomp.oacc-c-c++-common/routine-v-1.c (main): Likewise.
5749 * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c (main): Likewise.
5750 * testsuite/libgomp.oacc-c-c++-common/routine-wv-1.c (main): Likewise.
5751 * testsuite/libgomp.oacc-c-c++-common/routine-wv-2.c: Set expectations
5752 for amdgcn.
5753
5754 2020-01-17 Andrew Stubbs <ams@codesourcery.com>
5755
5756 * config/accel/openacc.f90 (openacc_kinds): Rename acc_device_gcn to
5757 acc_device_radeon.
5758 (openacc): Likewise.
5759 * openacc.f90 (openacc_kinds): Likewise.
5760 (openacc): Likewise.
5761 * openacc.h (acc_device_t): Likewise.
5762 * openacc_lib.h: Likewise.
5763 * testsuite/lib/libgomp.exp
5764 (check_effective_target_openacc_amdgcn_accel_present): Likewise.
5765 * testsuite/libgomp.oacc-c-c++-common/acc_prof-init-1.c
5766 (cb_compute_construct_end): Likewise.
5767 * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c
5768 (cb_enqueue_launch_start): Likewise.
5769 * testsuite/libgomp.oacc-c-c++-common/acc_prof-parallel-1.c
5770 (cb_enter_data_end): Likewise.
5771 (cb_exit_data_start): Likewise.
5772 (cb_exit_data_end): Likewise.
5773 (cb_compute_construct_end): Likewise.
5774 (cb_enqueue_launch_start): Likewise.
5775 (cb_enqueue_launch_end): Likewise.
5776 * testsuite/libgomp.oacc-c-c++-common/asyncwait-nop-1.c
5777 (main): Likewise.
5778
5779 2020-01-10 Thomas Schwinge <thomas@codesourcery.com>
5780
5781 * libgomp-plugin.h (enum goacc_property): New. Adjust all users
5782 to use this instead of 'enum gomp_device_property'.
5783 (GOMP_OFFLOAD_get_property): Rename to...
5784 (GOMP_OFFLOAD_openacc_get_property): ... this. Adjust all users.
5785 * libgomp.h (struct gomp_device_descr): Move
5786 'GOMP_OFFLOAD_openacc_get_property'...
5787 (struct acc_dispatch_t): ... here. Adjust all users.
5788 * plugin/plugin-hsa.c (GOMP_OFFLOAD_get_property): Remove.
5789
5790 * target.c (gomp_map_vars_internal)
5791 <GOMP_MAP_USE_DEVICE_PTR_IF_PRESENT>: Clean up/elaborate code
5792 paths.
5793
5794 2020-01-10 Jakub Jelinek <jakub@redhat.com>
5795
5796 PR libgomp/93219
5797 * libgomp.h (gomp_print_string): Change return type from void to int.
5798 * affinity-fmt.c (gomp_print_string): Likewise. Return true if
5799 not all characters have been written.
5800
5801 2020-01-08 Tobias Burnus <tobias@codesourcery.com>
5802
5803 * libgomp.texi: Fix typos, use https.
5804
5805 2020-01-03 Tobias Burnus <tobias@codesourcery.com>
5806
5807 * testsuite/libgomp.fortran/optional-map.f90: Add test for
5808 unallocated/disassociated actual arguments to nonallocatable/nonpointer
5809 dummy arguments; those are/shall be regarded as absent arguments.
5810 * testsuite/libgomp.fortran/use_device_ptr-optional-2.f90: Ditto.
5811 * testsuite/libgomp.fortran/use_device_ptr-optional-3.f90: New.
5812
5813 2020-01-01 Jakub Jelinek <jakub@redhat.com>
5814
5815 Update copyright years.
5816
5817 * libgomp.texi: Bump @copying's copyright year.
5818
5819 2019-12-31 Ayush Mittal <ayush.m@samsung.com>
5820
5821 PR libgomp/93065
5822 * oacc-init.c (goacc_runtime_deinitialize): New function.
5823
5824 2019-12-28 Jakub Jelinek <jakub@redhat.com>
5825
5826 PR bootstrap/93074
5827 * plugin/cuda/cuda.h (cuDeviceGetName, cuDriverGetVersion): Declare.
5828 (cuDeviceTotalMem, cuMemGetInfo): Likewise. Define to *_v2.
5829
5830 2019-12-22 Maciej W. Rozycki <macro@codesourcery.com>
5831 Frederik Harwath <frederik@codesourcery.com>
5832 Thomas Schwinge <tschwinge@codesourcery.com>
5833
5834 * libgomp.h (gomp_device_descr): Add `get_property_func' member.
5835 * libgomp-plugin.h (gomp_device_property_value): New union.
5836 (gomp_device_property_value): New prototype.
5837 * openacc.h (acc_device_t): Add `acc_device_current' enumeration
5838 constant.
5839 (acc_device_property_t): New enum.
5840 (acc_get_property, acc_get_property_string): New prototypes.
5841 * oacc-init.c (acc_get_device_type): Also assert that result
5842 is not `acc_device_current'.
5843 (get_property_any, acc_get_property, acc_get_property_string):
5844 New functions.
5845 * openacc.f90 (openacc_kinds): Add `acc_device_current' and
5846 `acc_property_memory', `acc_property_free_memory',
5847 `acc_property_name', `acc_property_vendor' and
5848 `acc_property_driver' constants. Add `acc_device_property' data
5849 type.
5850 (openacc_internal): Add `acc_get_property' and
5851 `acc_get_property_string' interfaces. Add `acc_get_property_h',
5852 `acc_get_property_string_h', `acc_get_property_l' and
5853 `acc_get_property_string_l'.
5854 * oacc-host.c (host_get_property): New function.
5855 (host_dispatch): Wire it.
5856 * target.c (gomp_load_plugin_for_device): Handle `get_property'.
5857 * libgomp.map (OACC_2.6): Add `acc_get_property', `acc_get_property_h_',
5858 `acc_get_property_string' and `acc_get_property_string_h_' symbols.
5859 * libgomp.texi (OpenACC Runtime Library Routines): Add
5860 `acc_get_property'.
5861 (acc_get_property): New node.
5862 * plugin/plugin-gcn.c (GOMP_OFFLOAD_get_property): New
5863 function (stub).
5864 * plugin/plugin-hsa.c (GOMP_OFFLOAD_get_property): New function.
5865 * plugin/plugin-nvptx.c (CUDA_CALLS): Add `cuDeviceGetName',
5866 `cuDeviceTotalMem', `cuDriverGetVersion' and `cuMemGetInfo'
5867 calls.
5868 (GOMP_OFFLOAD_get_property): New function.
5869 (struct ptx_device): Add new field "name".
5870 (cuda_driver_version_s): Add new static variable ...
5871 (nvptx_init): ... and init from here.
5872
5873 * testsuite/libgomp.oacc-c-c++-common/acc_get_property.c: New test.
5874 * testsuite/libgomp.oacc-c-c++-common/acc_get_property-2.c: New test.
5875 * testsuite/libgomp.oacc-c-c++-common/acc_get_property-3.c: New test.
5876 * testsuite/libgomp.oacc-c-c++-common/acc_get_property-aux.c: New file
5877 with test helper functions.
5878
5879 * testsuite/libgomp.oacc-fortran/acc_get_property.f90: New test.
5880
5881 2019-12-22 Maciej W. Rozycki <macro@wdc.com>
5882
5883 * testsuite/libgomp-test-support.exp.in (GCC_UNDER_TEST): New
5884 variable.
5885
5886 2019-12-21 Thomas Schwinge <thomas@codesourcery.com>
5887
5888 * target.c (gomp_map_vars_internal): Restore 'omp declare target
5889 link' handling.
5890
5891 2019-12-19 Julian Brown <julian@codesourcery.com>
5892
5893 * testsuite/libgomp.oacc-fortran/class-ptr-param.f95: New test.
5894 * testsuite/libgomp.oacc-fortran/classtypes-1.f95: New test.
5895 * testsuite/libgomp.oacc-fortran/classtypes-2.f95: New test.
5896
5897 2019-12-19 Julian Brown <julian@codesourcery.com>
5898 Cesar Philippidis <cesar@codesourcery.com>
5899
5900 * testsuite/libgomp.oacc-fortran/deep-copy-1.f90: New test.
5901 * testsuite/libgomp.oacc-fortran/deep-copy-2.f90: New test.
5902 * testsuite/libgomp.oacc-fortran/deep-copy-3.f90: New test.
5903 * testsuite/libgomp.oacc-fortran/deep-copy-4.f90: New test.
5904 * testsuite/libgomp.oacc-fortran/deep-copy-5.f90: New test.
5905 * testsuite/libgomp.oacc-fortran/deep-copy-6.f90: New test.
5906 * testsuite/libgomp.oacc-fortran/deep-copy-7.f90: New test.
5907 * testsuite/libgomp.oacc-fortran/deep-copy-8.f90: New test.
5908 * testsuite/libgomp.oacc-fortran/derived-type-1.f90: New test.
5909 * testsuite/libgomp.oacc-fortran/derivedtype-1.f95: New test.
5910 * testsuite/libgomp.oacc-fortran/derivedtype-2.f95: New test.
5911 * testsuite/libgomp.oacc-fortran/multidim-slice.f95: New test.
5912 * testsuite/libgomp.oacc-fortran/update-2.f90: New test.
5913
5914 2019-12-19 Julian Brown <julian@codesourcery.com>
5915
5916 * testsuite/libgomp.oacc-c-c++-common/deep-copy-1.c: New test.
5917 * testsuite/libgomp.oacc-c-c++-common/deep-copy-2.c: New test.
5918 * testsuite/libgomp.oacc-c-c++-common/deep-copy-4.c: New test.
5919 * testsuite/libgomp.oacc-c-c++-common/deep-copy-6.c: New test.
5920 * testsuite/libgomp.oacc-c-c++-common/deep-copy-7.c: New test.
5921 * testsuite/libgomp.oacc-c-c++-common/deep-copy-8.c: New test.
5922 * testsuite/libgomp.oacc-c-c++-common/deep-copy-9.c: New test.
5923 * testsuite/libgomp.oacc-c-c++-common/deep-copy-10.c: New test.
5924 * testsuite/libgomp.oacc-c-c++-common/deep-copy-11.c: New test.
5925 * testsuite/libgomp.oacc-c-c++-common/deep-copy-14.c: New test.
5926 * testsuite/libgomp.oacc-c++/deep-copy-12.C: New test.
5927 * testsuite/libgomp.oacc-c++/deep-copy-13.C: New test.
5928
5929 2019-12-19 Julian Brown <julian@codesourcery.com>
5930
5931 * libgomp.h (struct target_var_desc): Add do_detach flag.
5932 * oacc-init.c (acc_shutdown_1): Free aux block if present.
5933 * oacc-mem.c (find_group_last): Add SIZES parameter. Support
5934 struct components. Tidy up and add some new checks.
5935 (goacc_enter_data_internal): Update call to find_group_last.
5936 (goacc_exit_data_internal): Support detach operations and
5937 GOMP_MAP_STRUCT.
5938 (GOACC_enter_exit_data): Handle initial GOMP_MAP_STRUCT or
5939 GOMP_MAP_FORCE_PRESENT in finalization detection code. Handle
5940 attach/detach in enter/exit data detection code.
5941 * target.c (gomp_map_vars_existing): Initialise do_detach field of
5942 tgt_var_desc.
5943 (gomp_map_vars_internal): Support attach.
5944 (gomp_unmap_vars_internal): Support detach.
5945
5946 2019-12-19 Julian Brown <julian@codesourcery.com>
5947 Thomas Schwinge <thomas@codesourcery.com>
5948
5949 * libgomp.h (struct splay_tree_aux): Add attach_count field.
5950 (gomp_attach_pointer, gomp_detach_pointer): Add prototypes.
5951 * libgomp.map (OACC_2.6): New section. Add acc_attach,
5952 acc_attach_async, acc_detach, acc_detach_async, acc_detach_finalize,
5953 acc_detach_finalize_async.
5954 * oacc-mem.c (acc_attach_async, acc_attach, goacc_detach_internal,
5955 acc_detach, acc_detach_async, acc_detach_finalize,
5956 acc_detach_finalize_async): New functions.
5957 * openacc.h (acc_attach, acc_attach_async, acc_detach,
5958 (acc_detach_async, acc_detach_finalize, acc_detach_finalize_async): Add
5959 prototypes.
5960 * target.c (gomp_attach_pointer, gomp_detach_pointer): New functions.
5961 (gomp_remove_var_internal): Free attachment counts if present.
5962 * testsuite/libgomp.oacc-c-c++-common/deep-copy-3.c: New test.
5963 * testsuite/libgomp.oacc-c-c++-common/deep-copy-5.c: New test.
5964
5965 2019-12-19 Julian Brown <julian@codesourcery.com>
5966 Cesar Philippidis <cesar@codesourcery.com>
5967
5968 * libgomp.h (gomp_map_val): Add prototype.
5969 * oacc-parallel.c (GOACC_parallel_keyed): Use gomp_map_val instead of
5970 open-coding device-address calculation.
5971 * target.c (gomp_map_val): Make global. Use OFFSET_POINTER in
5972 non-present case.
5973
5974 2019-12-19 Julian Brown <julian@codesourcery.com>
5975
5976 * libgomp.h (struct splay_tree_key_s): Substitute dynamic_refcount
5977 field for virtual_refcount.
5978 (enum gomp_map_vars_kind): Add GOMP_MAP_VARS_OPENACC_ENTER_DATA.
5979 (gomp_free_memmap): Remove prototype.
5980 * oacc-init.c (acc_shutdown_1): Iteratively call gomp_remove_var
5981 instead of calling gomp_free_memmap.
5982 * oacc-mem.c (acc_map_data): Use virtual_refcount instead of
5983 dynamic_refcount.
5984 (acc_unmap_data): Open code instead of forcing target_mem_desc's
5985 to_free field to NULL then calling gomp_unmap_vars. Handle
5986 REFCOUNT_INFINITY on target blocks.
5987 (goacc_enter_data): Rename to...
5988 (goacc_enter_datum): ...this. Remove MAPNUM parameter and special
5989 handling for mapping groups. Use virtual_refcount instead of
5990 dynamic_refcount. Use GOMP_MAP_VARS_OPENACC_ENTER_DATA for
5991 map_map_vars_async call. Re-do lookup for target pointer return value.
5992 (acc_create, acc_create_async, acc_copyin, acc_copyin_async): Call
5993 renamed goacc_enter_datum function.
5994 (goacc_exit_data): Rename to...
5995 (goacc_exit_datum): ...this. Update for virtual_refcount semantics.
5996 (acc_delete, acc_delete_async, acc_delete_finalize,
5997 acc_delete_finalize_async, acc_copyout, acc_copyout_async,
5998 acc_copyout_finalize, acc_copyout_finalize_async): Call renamed
5999 goacc_exit_datum function.
6000 (gomp_acc_remove_pointer, find_pointer): Remove functions.
6001 (find_group_last, goacc_enter_data_internal, goacc_exit_data_internal):
6002 New functions.
6003 (GOACC_enter_exit_data): Use goacc_enter_data_internal and
6004 goacc_exit_data_internal helper functions.
6005 * target.c (gomp_map_vars_internal): Handle
6006 GOMP_MAP_VARS_OPENACC_ENTER_DATA. Update for virtual_refcount
6007 semantics.
6008 (gomp_unmap_vars_internal): Update for virtual_refcount semantics.
6009 (gomp_load_image_to_device, omp_target_associate_ptr): Zero-initialise
6010 virtual_refcount field instead of dynamic_refcount.
6011 (gomp_free_memmap): Remove function.
6012 * testsuite/libgomp.oacc-c-c++-common/unmap-infinity-1.c: New test.
6013 * testsuite/libgomp.c-c++-common/unmap-infinity-2.c: New test.
6014 * testsuite/libgomp.oacc-c-c++-common/pr92843-1.c: Add XFAIL.
6015
6016 2019-12-19 Julian Brown <julian@codesourcery.com>
6017 Thomas Schwinge <thomas@codesourcery.com>
6018
6019 * libgomp.h (struct splay_tree_aux): New.
6020 (struct splay_tree_key_s): Replace link_key field with aux pointer.
6021 * target.c (gomp_map_vars_internal): Adjust for link_key being moved
6022 to aux struct.
6023 (gomp_remove_var_internal): Free aux block if present.
6024 (gomp_load_image_to_device): Zero-initialise aux field instead of
6025 link_key field.
6026 (omp_target_associate_pointer): Zero-initialise aux field.
6027
6028 2019-12-18 Jakub Jelinek <jakub@redhat.com>
6029
6030 PR middle-end/86416
6031 * testsuite/libgomp.c/pr86416-1.c (main): Use L suffixes rather than
6032 q or none.
6033 * testsuite/libgomp.c/pr86416-2.c (main): Use Q suffixes rather than
6034 L or none.
6035
6036 2019-12-19 Julian Brown <julian@codesourcery.com>
6037 Maciej W. Rozycki <macro@codesourcery.com>
6038 Tobias Burnus <tobias@codesourcery.com>
6039 Thomas Schwinge <thomas@codesourcery.com>
6040
6041 * target.c (gomp_map_vars_async): Support GOMP_MAP_NO_ALLOC.
6042 * testsuite/libgomp.oacc-c-c++-common/no_create-1.c: New test.
6043 * testsuite/libgomp.oacc-c-c++-common/no_create-2.c: New test.
6044 * testsuite/libgomp.oacc-c-c++-common/no_create-3.c: New test.
6045 * testsuite/libgomp.oacc-c-c++-common/no_create-4.c: New test.
6046 * testsuite/libgomp.oacc-c-c++-common/no_create-5.c: New test.
6047 * testsuite/libgomp.oacc-fortran/no_create-1.f90: New test.
6048 * testsuite/libgomp.oacc-fortran/no_create-2.f90: New test.
6049 * testsuite/libgomp.oacc-fortran/no_create-3.F90: New test.
6050
6051 2019-12-18 Thomas Schwinge <thomas@codesourcery.com>
6052
6053 * oacc-mem.c (goacc_enter_data): Refactor, so that it can be
6054 called...
6055 (goacc_insert_pointer): ... from here, "present" case.
6056 (goacc_insert_pointer): Inline function into...
6057 (GOACC_enter_exit_data): ... here, and simplify.
6058
6059 * oacc-mem.c (goacc_enter_data): Refactor, so that it can be
6060 called...
6061 (goacc_insert_pointer): ... from here, "not present" case.
6062
6063 * oacc-mem.c (goacc_remove_pointer): Refactor interface. Adjust
6064 all users.
6065
6066 * oacc-mem.c (GOACC_enter_exit_data): Refactor code to call
6067 'goacc_enter_data', 'goacc_exit_data'.
6068
6069 * oacc-mem.c (delete_copyout): Refactor into...
6070 (goacc_exit_data): ... this. Adjust all users.
6071
6072 * oacc-mem.c (present_create_copy): Refactor into...
6073 (goacc_enter_data): ... this. Adjust all users.
6074
6075 * target.c (gomp_unmap_vars_internal): Add a safeguard to
6076 'gomp_remove_var'.
6077
6078 * target.c (gomp_to_device_kind_p): Handle 'GOMP_MAP_FORCE_FROM'
6079 like 'GOMP_MAP_FROM'.
6080
6081 PR libgomp/92726
6082 PR libgomp/92970
6083 PR libgomp/92984
6084 * oacc-mem.c (delete_copyout): No-op behavior if 'lookup_host'
6085 fails.
6086 (GOACC_enter_exit_data): Simplify accordingly.
6087 * testsuite/libgomp.oacc-c-c++-common/pr92970-1.c: New file,
6088 subsuming...
6089 * testsuite/libgomp.oacc-c-c++-common/lib-17.c: ... this file...
6090 * testsuite/libgomp.oacc-c-c++-common/lib-18.c: ..., and this
6091 file.
6092 * testsuite/libgomp.oacc-c-c++-common/pr92984-1.c: New file,
6093 subsuming...
6094 * testsuite/libgomp.oacc-c-c++-common/lib-21.c: ... this file...
6095 * testsuite/libgomp.oacc-c-c++-common/lib-29.c: ..., and this
6096 file.
6097 * testsuite/libgomp.oacc-c-c++-common/pr92726-1.c: New file,
6098 subsuming...
6099 * testsuite/libgomp.oacc-c-c++-common/lib-28.c: ... this file.
6100
6101 * oacc-mem.c (GOACC_enter_exit_data): Simplify 'exit data'
6102 'finalize' handling.
6103
6104 PR libgomp/92848
6105 * oacc-mem.c (acc_map_data, present_create_copy)
6106 (goacc_insert_pointer): Use 'GOMP_MAP_VARS_ENTER_DATA'.
6107 (acc_unmap_data, delete_copyout, goacc_remove_pointer): Adjust.
6108 * testsuite/libgomp.oacc-c-c++-common/lib-50.c: Remove.
6109 * testsuite/libgomp.oacc-c-c++-common/pr92848-1-d-a.c: New file
6110 * testsuite/libgomp.oacc-c-c++-common/pr92848-1-d-p.c: Likewise.
6111 * testsuite/libgomp.oacc-c-c++-common/pr92848-1-r-a.c: Likewise.
6112 * testsuite/libgomp.oacc-c-c++-common/pr92848-1-r-p.c: Likewise.
6113 * testsuite/libgomp.oacc-c-c++-common/subset-subarray-mappings-1-r-p.c:
6114 Remove "XFAIL"s.
6115
6116 * target.c (gomp_unmap_tgt): Make it 'static'.
6117 * libgomp.h (gomp_unmap_tgt): Remove.
6118
6119 2019-12-18 Tobias Burnus <tobias@codesourcery.com>
6120
6121 PR middle-end/86416
6122 * testsuite/libgomp.c/pr86416-1.c: New.
6123 * testsuite/libgomp.c/pr86416-2.c: New.
6124
6125 2019-12-17 Tobias Burnus <tobias@codesourcery.com>
6126
6127 * config/accel/openacc.f90 (module openacc_kinds): Use 'PUBLIC' to mark
6128 all symbols as public except for the 'use …, only' imported symbol,
6129 which is private.
6130 (module openacc): Default to 'PRIVATE' to exclude openacc_internal; mark
6131 all symbols from module openacc_kinds as PUBLIC
6132 * openacc.f90: Add comment with crossref to that file and openmp_lib.h;
6133 fix comment typo.
6134 * openacc_lib.h (acc_device_gcn): Add this PARAMETER.
6135
6136 2019-12-13 Julian Brown <julian@codesourcery.com>
6137
6138 PR libgomp/92881
6139
6140 * libgomp.h (gomp_remove_var_async): Add prototype.
6141 * oacc-mem.c (delete_copyout): Call gomp_remove_var_async instead of
6142 gomp_remove_var.
6143 * target.c (gomp_unref_tgt): Change return type to bool, indicating
6144 whether target_mem_desc was unmapped.
6145 (gomp_unref_tgt_void): New.
6146 (gomp_remove_var): Reimplement in terms of...
6147 (gomp_remove_var_internal): ...this new helper function.
6148 (gomp_remove_var_async): New, implemented using above helper function.
6149 (gomp_unmap_vars_internal): Use gomp_unref_tgt_void instead of
6150 gomp_unref_tgt.
6151
6152 2019-12-13 Andrew Stubbs <ams@codesourcery.com>
6153
6154 * testsuite/libgomp.oacc-c-c++-common/acc_prof-init-1.c: Handle gcn.
6155 * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c: Likewise.
6156 * testsuite/libgomp.oacc-c-c++-common/acc_prof-parallel-1.c: Likewise.
6157 * testsuite/libgomp.oacc-c-c++-common/asyncwait-nop-1.c: Likewise.
6158 * testsuite/libgomp.oacc-c-c++-common/function-not-offloaded.c:
6159 Likewise.
6160 * testsuite/libgomp.oacc-c-c++-common/async_queue-1.c: Disable on GCN.
6161 * testsuite/libgomp.oacc-c-c++-common/tile-1.c: Likewise.
6162
6163 2019-12-13 Tobias Burnus <tobias@codesourcery.com>
6164
6165 * openacc.f90 (module openacc_kinds): Use 'PUBLIC' to mark all symbols
6166 as public except for the 'use …, only' imported symbol, which is
6167 private.
6168 (module openacc): Default to 'PRIVATE' to exclude openacc_internal; mark
6169 all symbols from module openacc_kinds as PUBLIC; add missing PUBLIC
6170 attributes for acc_copyout_finalize and acc_delete_finalize.
6171
6172 2019-12-11 Jakub Jelinek <jakub@redhat.com>
6173
6174 PR fortran/92899
6175 * testsuite/libgomp.fortran/atomic1.f90: New test.
6176
6177 2019-12-11 Thomas Schwinge <thomas@codesourcery.com>
6178
6179 PR libgomp/92843
6180 * oacc-mem.c (present_create_copy, delete_copyout): Fix dynamic
6181 reference counting for structured 'REFCOUNT_INFINITY'. Add some
6182 assertions.
6183 (goacc_insert_pointer, goacc_remove_pointer): Adjust accordingly.
6184 * testsuite/libgomp.oacc-c-c++-common/pr92843-1.c: New file.
6185 * testsuite/libgomp.oacc-c-c++-common/clauses-1.c: Fix OpenACC.
6186 * testsuite/libgomp.oacc-c-c++-common/lib-82.c: Likewise.
6187 * testsuite/libgomp.oacc-c-c++-common/nested-1.c: Likewise.
6188
6189 * oacc-parallel.c (find_pointer, GOACC_enter_exit_data): Move...
6190 * oacc-mem.c: ... here.
6191 (gomp_acc_insert_pointer, gomp_acc_remove_pointer): Rename to
6192 'goacc_insert_pointer', 'goacc_remove_pointer', and make 'static'.
6193 * libgomp.h (gomp_acc_insert_pointer, gomp_acc_remove_pointer):
6194 Remove.
6195 * libgomp_g.h: Update.
6196
6197 * oacc-parallel.c (GOACC_wait, goacc_wait): Move...
6198 * oacc-async.c: ... here.
6199 * oacc-int.h (goacc_wait): Declare.
6200 * libgomp_g.h: Update
6201
6202 PR libgomp/92854
6203 * testsuite/libgomp.oacc-c-c++-common/acc_map_data-device_already-1.c:
6204 New file.
6205 * testsuite/libgomp.oacc-c-c++-common/acc_map_data-device_already-2.c:
6206 Likewise.
6207 * testsuite/libgomp.oacc-c-c++-common/acc_map_data-device_already-3.c:
6208 Likewise.
6209 * testsuite/libgomp.oacc-c-c++-common/acc_map_data-host_already-1.c:
6210 Likewise.
6211 * testsuite/libgomp.oacc-c-c++-common/acc_map_data-host_already-2.c:
6212 Likewise.
6213 * testsuite/libgomp.oacc-c-c++-common/acc_map_data-host_already-3.c:
6214 Likewise.
6215
6216 2019-12-11 Thomas Schwinge <thomas@codesourcery.com>
6217 Julian Brown <julian@codesourcery.com>
6218
6219 * target.c (gomp_load_image_to_device, omp_target_associate_ptr):
6220 Initialize 'dynamic_refcount' whenever we initialize 'refcount'.
6221
6222 2019-12-11 Tobias Burnus <tobias@codesourcery.com>
6223
6224 * omp_lib.h.in: Fix spelling of function declaration
6225 omp_get_cancell(l)ation.
6226 * libgomp.texi (acc_is_present, acc_async_test, acc_async_test_all):
6227 Fix typos.
6228 * env.c: Fix comment typos.
6229 * oacc-host.c: Likewise.
6230 * ordered.c: Likewise.
6231 * task.c: Likewise.
6232 * team.c: Likewise.
6233 * config/gcn/task.c: Likewise.
6234 * config/gcn/team.c: Likewise.
6235 * config/nvptx/task.c: Likewise.
6236 * config/nvptx/team.c: Likewise.
6237 * plugin/plugin-gcn.c: Likewise.
6238 * testsuite/libgomp.fortran/jacobi.f: Likewise.
6239 * testsuite/libgomp.hsa.c/tiling-2.c: Likewise.
6240 * testsuite/libgomp.oacc-c-c++-common/enter_exit-lib.c: Likewise.
6241
6242 2019-12-11 Tobias Burnus <tobias@codesourcery.com>
6243
6244 * testsuite/libgomp.oacc-fortran/optional-cache.f95: Add 'dg-do run'.
6245 * testsuite/libgomp.oacc-fortran/optional-reduction.f90: Remove
6246 unnecessary 'dg-additional-options "-w"'.
6247
6248 2019-12-09 Thomas Schwinge <thomas@codesourcery.com>
6249 Julian Brown <julian@codesourcery.com>
6250
6251 PR libgomp/92116
6252 PR libgomp/92877
6253
6254 * oacc-mem.c (lookup_dev): Reimplement. Adjust all users.
6255 * libgomp.h (struct acc_dispatch_t): Remove 'data_environ' member.
6256 Adjust all users.
6257 * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-4-2.c:
6258 Remove XFAIL.
6259 * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-4.c:
6260 Likewise.
6261 * testsuite/libgomp.oacc-c-c++-common/pr92877-1.c: New file.
6262
6263 2019-12-09 Thomas Schwinge <thomas@codesourcery.com>
6264
6265 PR libgomp/92503
6266 * oacc-mem.c (acc_free): Error out instead of 'acc_unmap_data'.
6267 * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-1.c: New
6268 file.
6269 * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-2.c:
6270 Likewise.
6271 * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-3-2.c:
6272 Likewise.
6273 * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-3.c:
6274 Likewise.
6275 * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-4-2.c:
6276 Likewise.
6277 * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-4.c:
6278 Likewise.
6279 * testsuite/libgomp.oacc-c-c++-common/clauses-1.c: Adjust.
6280 * testsuite/libgomp.oacc-c-c++-common/context-1.c: Likewise.
6281 * testsuite/libgomp.oacc-c-c++-common/context-2.c: Likewise.
6282 * testsuite/libgomp.oacc-c-c++-common/context-3.c: Likewise.
6283 * testsuite/libgomp.oacc-c-c++-common/context-4.c: Likewise.
6284 * testsuite/libgomp.oacc-c-c++-common/lib-13.c: Likewise.
6285 * testsuite/libgomp.oacc-c-c++-common/lib-14.c: Likewise.
6286 * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
6287 * testsuite/libgomp.oacc-c-c++-common/lib-91.c: Likewise.
6288 * testsuite/libgomp.oacc-c-c++-common/nested-1.c: Likewise.
6289
6290 PR libgomp/92840
6291 * oacc-mem.c (acc_map_data): Clarify reference counting behavior.
6292 (acc_unmap_data): Add error case for 'REFCOUNT_INFINITY'.
6293 * testsuite/libgomp.oacc-c-c++-common/acc_unmap_data-pr92840-1.c:
6294 New file.
6295 * testsuite/libgomp.oacc-c-c++-common/acc_unmap_data-pr92840-2.c:
6296 Likewise.
6297 * testsuite/libgomp.oacc-c-c++-common/acc_unmap_data-pr92840-3.c:
6298 Likewise.
6299 * testsuite/libgomp.oacc-c-c++-common/clauses-1.c: Adjust.
6300 * testsuite/libgomp.oacc-c-c++-common/nested-1.c: Adjust.
6301
6302 PR libgomp/92511
6303 * testsuite/libgomp.oacc-c-c++-common/copyin-devptr-1.c: Remove
6304 this file...
6305 * testsuite/libgomp.oacc-c-c++-common/copyin-devptr-2.c: ..., and
6306 this file...
6307 * testsuite/libgomp.oacc-c-c++-common/lib-22.c: ..., and this
6308 file...
6309 * testsuite/libgomp.oacc-c-c++-common/lib-30.c: ..., and this
6310 file...
6311 * testsuite/libgomp.oacc-c-c++-common/subset-subarray-mappings-1-r-p.c:
6312 ... with their content moved into, and extended in this new file.
6313 * testsuite/libgomp.oacc-c-c++-common/subset-subarray-mappings-1-d-a.c:
6314 New file.
6315 * testsuite/libgomp.oacc-c-c++-common/subset-subarray-mappings-1-d-p.c:
6316 Likewise.
6317 * testsuite/libgomp.oacc-c-c++-common/subset-subarray-mappings-1-r-a.c:
6318 Likewise.
6319 * testsuite/libgomp.oacc-c-c++-common/subset-subarray-mappings-2.c:
6320 Likewise.
6321
6322 * testsuite/libgomp.oacc-c-c++-common/map-data-1.c: New file.
6323
6324 PR libgomp/92854
6325 * testsuite/libgomp.oacc-c-c++-common/pr92854-1.c: New file.
6326
6327 * testsuite/libgomp.oacc-c-c++-common/host_data-6.c: New file.
6328
6329 * target.c (gomp_exit_data): Use 'gomp_remove_var'.
6330
6331 2019-12-09 Tobias Burnus <tobias@codesourcery.com>
6332
6333 * testsuite/libgomp.fortran/use_device_addr-3.f90: Make 'stop' codes
6334 unique.
6335 * testsuite/libgomp.fortran/use_device_addr-4.f90: Ditto.
6336 * testsuite/libgomp.fortran/use_device_ptr-optional-2.f90: Ditto.
6337 * testsuite/libgomp.oacc-fortran/declare-5.f90: Ditto.
6338 * testsuite/libgomp.oacc-fortran/optional-data-copyin-by-value.f90:
6339 Ditto.
6340 * testsuite/libgomp.oacc-fortran/optional-firstprivate.f90: Ditto.
6341 * testsuite/libgomp.oacc-fortran/optional-update-host.f90: Ditto.
6342
6343 2019-12-06 Kwok Cheung Yeung <kcy@codesourcery.com>
6344
6345 * config/accel/proc.c (omp_get_num_procs): Apply ialias macro.
6346
6347 2019-12-06 Tobias Burnus <tobias@codesourcery.com>
6348 Kwok Cheung Yeung <kcy@codesourcery.com>
6349
6350 * oacc-mem.c (update_dev_host, gomp_acc_insert_pointer): Just return
6351 if input it a NULL pointer.
6352 * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Remove; dependent on
6353 diagnostic of NULL pointer.
6354 * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Ditto.
6355 * testsuite/libgomp.fortran/optional-map.f90: New.
6356 * testsuite/libgomp.fortran/use_device_addr-1.f90
6357 (test_dummy_opt_callee_1_absent): New.
6358 (test_dummy_opt_call_1): Call it.
6359 * testsuite/libgomp.fortran/use_device_addr-2.f90: Likewise.
6360 * testsuite/libgomp.fortran/use_device_addr-3.f90: Likewise.
6361 * testsuite/libgomp.fortran/use_device_addr-4.f90: Likewise.
6362 * testsuite/libgomp.oacc-fortran/optional-cache.f95: New.
6363 * testsuite/libgomp.oacc-fortran/optional-data-copyin-by-value.f90: New.
6364 * testsuite/libgomp.oacc-fortran/optional-data-copyin.f90: New.
6365 * testsuite/libgomp.oacc-fortran/optional-data-copyout.f90: New.
6366 * testsuite/libgomp.oacc-fortran/optional-data-enter-exit.f90: New.
6367 * testsuite/libgomp.oacc-fortran/optional-declare.f90: New.
6368 * testsuite/libgomp.oacc-fortran/optional-firstprivate.f90: New.
6369 * testsuite/libgomp.oacc-fortran/optional-host_data.f90: New.
6370 * testsuite/libgomp.oacc-fortran/optional-nested-calls.f90: New.
6371 * testsuite/libgomp.oacc-fortran/optional-private.f90: New.
6372 * testsuite/libgomp.oacc-fortran/optional-reduction.f90: New.
6373 * testsuite/libgomp.oacc-fortran/optional-update-device.f90: New.
6374 * testsuite/libgomp.oacc-fortran/optional-update-host.f90: New.
6375
6376 2019-12-05 Tobias Burnus <tobias@codesourcery.com>
6377
6378 * testsuite/libgomp.oacc-fortran/error_stop-1.f: Also don't
6379 expect dg-output of 'Error termination.' for GCN.
6380 * testsuite/libgomp.oacc-fortran/error_stop-2.f: Likewise.
6381 * testsuite/libgomp.oacc-fortran/error_stop-3.f: Likewise.
6382
6383 2019-12-04 Jakub Jelinek <jakub@redhat.com>
6384
6385 PR fortran/92756
6386 * testsuite/libgomp.fortran/teams1.f90: New test.
6387 * testsuite/libgomp.fortran/teams2.f90: New test.
6388
6389 2019-12-03 Frederik Harwath <frederik@codesourcery.com>
6390
6391 * oacc-init.c (acc_known_device_type): Add function.
6392 (unknown_device_type_error): Add function.
6393 (name_of_acc_device_t): Change to call unknown_device_type_error
6394 on unknown type.
6395 (resolve_device): Use acc_known_device_type.
6396 (acc_init): Fail if acc_device_t argument is not valid.
6397 (acc_shutdown): Likewise.
6398 (acc_get_num_devices): Likewise.
6399 (acc_set_device_type): Likewise.
6400 (acc_get_device_num): Likewise.
6401 (acc_set_device_num): Likewise.
6402 (acc_on_device): Add comment that argument validity is not checked.
6403
6404 2019-12-03 Andrew Stubbs <ams@codesourcery.com>
6405
6406 * testsuite/lib/libgomp.exp (offload_target_to_openacc_device_type):
6407 Recognize amdgcn.
6408 (check_effective_target_openacc_amdgcn_accel_present): New proc.
6409 (check_effective_target_openacc_amdgcn_accel_selected): New proc.
6410 * testsuite/libgomp.oacc-c++/c++.exp: Add support for amdgcn.
6411 * testsuite/libgomp.oacc-c/c.exp: Likewise.
6412 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
6413
6414 2019-12-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
6415
6416 PR libgomp/91938
6417 * configure.tgt: Avoid IE tls on *-*-musl*.
6418
6419 2019-11-29 Tobias Burnus <tobias@codesourcery.com>
6420
6421 * testsuite/libgomp.oacc-fortran/declare-5.f90: Extend by
6422 adding a common-block test case.
6423
6424 2019-11-29 Jakub Jelinek <jakub@redhat.com>
6425
6426 PR c++/60228
6427 * testsuite/libgomp.c++/udr-20.C: New test.
6428 * testsuite/libgomp.c++/udr-21.C: New test.
6429
6430 2019-11-27 Thomas Schwinge <thomas@codesourcery.com>
6431
6432 * testsuite/lib/libgomp.exp
6433 (check_effective_target_offload_target_nvptx): New proc.
6434 * testsuite/libgomp.fortran/target-print-1.f90: Use it with
6435 'dg-skip-if'.
6436 * testsuite/libgomp.oacc-fortran/print-1.f90: Likewise.
6437 * testsuite/libgomp.fortran/target-print-1-nvptx.f90: New file.
6438 * testsuite/libgomp.oacc-fortran/print-1-nvptx.f90: Likewise.
6439
6440 2019-11-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6441
6442 * testsuite/libgomp.c/pr39591-1.c: Rename err to e.
6443 * testsuite/libgomp.c/pr39591-2.c: Likewise.
6444 * testsuite/libgomp.c/pr39591-3.c: Likewise.
6445 * testsuite/libgomp.c/private-1.c: Likewise.
6446 * testsuite/libgomp.c/task-1.c: Likewise.
6447 * testsuite/libgomp.c/task-5.c: Renamed err to serr.
6448
6449 2019-11-20 Julian Brown <julian@codesourcery.com>
6450
6451 * plugin/plugin-gcn.c (wait_for_queue_nonfull): Don't lock/unlock
6452 aq->mutex here.
6453 (queue_push_launch): Lock aq->mutex before calling
6454 wait_for_queue_nonfull.
6455 (queue_push_callback): Likewise.
6456 (queue_push_asyncwait): Likewise.
6457 (queue_push_placeholder): Likewise.
6458
6459 2019-11-20 Julian Brown <julian@codesourcery.com>
6460
6461 * plugin/plugin-gcn.c (hsa_memory_copy_wrapper): New.
6462 (copy_data, GOMP_OFFLOAD_host2dev): Use above function.
6463 (GOMP_OFFLOAD_dev2host, GOMP_OFFLOAD_dev2dev): Check hsa_memory_copy
6464 return code.
6465
6466 2019-11-20 Julian Brown <julian@codesourcery.com>
6467
6468 PR libgomp/92511
6469
6470 * oacc-mem.c (present_create_copy): Fix device pointer return value in
6471 case of "present" subarray. Use tgt->tgt_start instead of tgt->to_free
6472 in non-present/create case.
6473 (delete_copyout): Change error condition to fail only on copies outside
6474 of mapped block. Adjust error message accordingly.
6475 * testsuite/libgomp.oacc-c-c++-common/copyin-devptr-1.c: New test.
6476 * testsuite/libgomp.oacc-c-c++-common/copyin-devptr-2.c: New test.
6477 * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Adjust expected error
6478 message.
6479 * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
6480 * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Allow test to pass now.
6481 * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
6482
6483 2019-11-20 Maciej W. Rozycki <macro@wdc.com>
6484
6485 * testsuite/lib/libgomp.exp (libgomp_init): Add flags to find
6486 libatomic in build-tree testing.
6487
6488 2019-11-18 Maciej W. Rozycki <macro@wdc.com>
6489
6490 * testsuite/Makefile.in: Regenerate.
6491
6492 2019-11-15 Andrew Stubbs <ams@codesourcery.com>
6493
6494 * testsuite/libgomp.c/target-print-1.c: New file.
6495 * testsuite/libgomp.fortran/target-print-1.f90: New file.
6496 * testsuite/libgomp.oacc-c/print-1.c: New file.
6497 * testsuite/libgomp.oacc-fortran/print-1.f90: New file.
6498
6499 2019-11-13 Andrew Stubbs <ams@codesourcery.com>
6500 Kwok Cheung Yeung <kcy@codesourcery.com>
6501 Julian Brown <julian@codesourcery.com>
6502 Tom de Vries <tom@codesourcery.com>
6503
6504 * plugin/Makefrag.am: Add amdgcn plugin support.
6505 * plugin/configfrag.ac: Likewise.
6506 * plugin/plugin-gcn.c: New file.
6507 * configure: Regenerate.
6508 * Makefile.in: Regenerate.
6509 * testsuite/Makefile.in: Regenerate.
6510
6511 2019-11-13 Andrew Stubbs <ams@codesourcery.com>
6512
6513 * config/gcn/team.c (gomp_gcn_enter_kernel): Set up the team arena
6514 and use team_malloc variants.
6515 (gomp_gcn_exit_kernel): Use team_free.
6516 * libgomp.h (TEAM_ARENA_SIZE): Define.
6517 (TEAM_ARENA_START): Define.
6518 (TEAM_ARENA_FREE): Define.
6519 (TEAM_ARENA_END): Define.
6520 (team_malloc): New function.
6521 (team_malloc_cleared): New function.
6522 (team_free): New function.
6523 * team.c (gomp_new_team): Initialize and use team_malloc.
6524 (free_team): Use team_free.
6525 (gomp_free_thread): Use team_free.
6526 (gomp_pause_host): Use team_free.
6527 * work.c (gomp_init_work_share): Use team_malloc.
6528 (gomp_fini_work_share): Use team_free.
6529
6530 2019-11-13 Andrew Stubbs <ams@codesourcery.com>
6531 Kwok Cheung Yeung <kcy@codesourcery.com>
6532 Julian Brown <julian@codesourcery.com>
6533 Tom de Vries <tom@codesourcery.com>
6534
6535 * Makefile.am (libgomp_la_SOURCES): Add oacc-target.c.
6536 * Makefile.in: Regenerate.
6537 * config.h.in (PLUGIN_GCN): Add new undef.
6538 * config/accel/openacc.f90 (acc_device_gcn): New parameter.
6539 * config/gcn/affinity-fmt.c: New file.
6540 * config/gcn/bar.c: New file.
6541 * config/gcn/bar.h: New file.
6542 * config/gcn/doacross.h: New file.
6543 * config/gcn/icv-device.c: New file.
6544 * config/gcn/oacc-target.c: New file.
6545 * config/gcn/simple-bar.h: New file.
6546 * config/gcn/target.c: New file.
6547 * config/gcn/task.c: New file.
6548 * config/gcn/team.c: New file.
6549 * config/gcn/time.c: New file.
6550 * configure.ac: Add amdgcn*-*-*.
6551 * configure: Regenerate.
6552 * configure.tgt: Add amdgcn*-*-*.
6553 * libgomp-plugin.h (offload_target_type): Add OFFLOAD_TARGET_TYPE_GCN.
6554 * libgomp.h (gcn_thrs): Add amdgcn variant.
6555 (set_gcn_thrs): Likewise.
6556 (gomp_thread): Likewise.
6557 * oacc-int.h (goacc_thread): Likewise.
6558 * oacc-target.c: New file.
6559 * openacc.f90 (acc_device_gcn): New parameter.
6560 * openacc.h (acc_device_t): Add acc_device_gcn.
6561 * team.c (gomp_free_pool_helper): Add amdgcn support.
6562
6563 2019-11-13 Andrew Stubbs <ams@codesourcery.com>
6564 Julian Brown <julian@codesourcery.com>
6565
6566 * libgomp-plugin.h (GOMP_OFFLOAD_openacc_async_construct): Add int
6567 parameter.
6568 * oacc-async.c (lookup_goacc_asyncqueue): Pass device number to the
6569 queue constructor.
6570 * oacc-host.c (host_openacc_async_construct): Add device parameter.
6571 * plugin/plugin-nvptx.c (GOMP_OFFLOAD_openacc_async_construct): Add
6572 device parameter.
6573
6574 2019-11-13 Andrew Stubbs <ams@codesourcery.com>
6575
6576 * configure.tgt (nvptx*-*-*): Add "accel" directory.
6577 * config/nvptx/libgomp-plugin.c: Move ...
6578 * config/accel/libgomp-plugin.c: ... to here.
6579 * config/nvptx/lock.c: Move ...
6580 * config/accel/lock.c: ... to here.
6581 * config/nvptx/mutex.c: Move ...
6582 * config/accel/mutex.c: ... to here.
6583 * config/nvptx/mutex.h: Move ...
6584 * config/accel/mutex.h: ... to here.
6585 * config/nvptx/oacc-async.c: Move ...
6586 * config/accel/oacc-async.c: ... to here.
6587 * config/nvptx/oacc-cuda.c: Move ...
6588 * config/accel/oacc-cuda.c: ... to here.
6589 * config/nvptx/oacc-host.c: Move ...
6590 * config/accel/oacc-host.c: ... to here.
6591 * config/nvptx/oacc-init.c: Move ...
6592 * config/accel/oacc-init.c: ... to here.
6593 * config/nvptx/oacc-mem.c: Move ...
6594 * config/accel/oacc-mem.c: ... to here.
6595 * config/nvptx/oacc-plugin.c: Move ...
6596 * config/accel/oacc-plugin.c: ... to here.
6597 * config/nvptx/omp-lock.h: Move ...
6598 * config/accel/omp-lock.h: ... to here.
6599 * config/nvptx/openacc.f90: Move ...
6600 * config/accel/openacc.f90: ... to here.
6601 * config/nvptx/pool.h: Move ...
6602 * config/accel/pool.h: ... to here.
6603 * config/nvptx/proc.c: Move ...
6604 * config/accel/proc.c: ... to here.
6605 * config/nvptx/ptrlock.c: Move ...
6606 * config/accel/ptrlock.c: ... to here.
6607 * config/nvptx/ptrlock.h: Move ...
6608 * config/accel/ptrlock.h: ... to here.
6609 * config/nvptx/sem.c: Move ...
6610 * config/accel/sem.c: ... to here.
6611 * config/nvptx/sem.h: Move ...
6612 * config/accel/sem.h: ... to here.
6613 * config/nvptx/thread-stacksize.h: Move ...
6614 * config/accel/thread-stacksize.h: ... to here.
6615
6616 2019-11-12 Maciej W. Rozycki <macro@codesourcery.com>
6617 Tobias Burnus <tobias@codesourcery.com>
6618 Frederik Harwath <frederik@codesourcery.com>
6619 Thomas Schwinge <thomas@codesourcery.com>
6620
6621 libgomp/
6622 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: New test.
6623 * testsuite/libgomp.oacc-fortran/parallel-dims-aux.c: New test.
6624 * testsuite/libgomp.oacc-fortran/parallel-dims.f89: New test.
6625
6626 2019-11-11 Tobias Burnus <tobias@codesourcery.com>
6627 Kwok Cheung Yeung <kcy@codesourcery.com>
6628
6629 * testsuite/libgomp.fortran/use_device_ptr-optional-1.f90: Extend.
6630 * testsuite/libgomp.fortran/use_device_ptr-optional-2.f90: New.
6631
6632 2019-11-11 Thomas Schwinge <thomas@codesourcery.com>
6633
6634 * testsuite/libgomp.fortran/target9.f90: Specify 'dg-do run'.
6635
6636 * testsuite/libgomp.fortran/use_device_addr-3.f90: Specify 'dg-do
6637 run'.
6638 * testsuite/libgomp.fortran/use_device_addr-4.f90: Likewise.
6639 * testsuite/libgomp.fortran/use_device_ptr-1.f90: Likewise.
6640
6641 2019-11-06 Thomas Schwinge <thomas@codesourcery.com>
6642
6643 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-1.c:
6644 Add expected warnings about missing reduction clauses.
6645 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-2.c:
6646 Likewise.
6647 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-3.c:
6648 Likewise.
6649 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-4.c:
6650 Likewise.
6651
6652 2019-11-04 Tobias Burnus <tobias@codesourcery.com>
6653
6654 * testsuite/libgomp.fortran/pr66199-1.f90: Remove
6655 'dg-do run' (implies torture test) as 'dg-options "O2"' is used.
6656 * testsuite/libgomp.fortran/pr66199-2.f90: Ditto.
6657 * testsuite/libgomp.fortran/taskloop2.f90: Ditto.
6658 * testsuite/libgomp.fortran/taskloop3.f90: Ditto.
6659 * testsuite/libgomp.fortran/taskloop4.f90: Ditto.
6660
6661 2019-11-04 Tobias Burnus <tobias@codesourcery.com>
6662
6663 PR fortran/92305
6664 * testsuite/libgomp.fortran/allocatable2.f90: Use
6665 unique numbers with 'stop'.
6666 * testsuite/libgomp.fortran/use_device_addr-1.f90: Ditto.
6667 * testsuite/libgomp.fortran/use_device_addr-2.f90: Ditto.
6668 * testsuite/libgomp.fortran/use_device_ptr-1.f90: Ditto.
6669 * testsuite/libgomp.oacc-fortran/lib-15.f90: Ditto.
6670 * testsuite/libgomp.oacc-fortran/pset-1.f90: Ditto.
6671
6672 2019-11-01 Tobias Burnus <tobias@codesourcery.com>
6673
6674 * testsuite/libgomp.fortran/use_device_addr-1.f90 (test_nullptr_1,
6675 test_dummy_opt_nullptr_callee_1): Add present but unallocated test.
6676 * testsuite/libgomp.fortran/use_device_addr-2.f90: Likewise.
6677 * testsuite/libgomp.fortran/use_device_addr-3.f90: New.
6678 * testsuite/libgomp.fortran/use_device_addr-4.f90: New.
6679 * testsuite/testsuite/libgomp.fortran/use_device_ptr-1.f90: New.
6680
6681 2019-10-30 Tobias Burnus <tobias@codesourcery.com>
6682
6683 * testsuite/libgomp.fortran/target9.f90: New.
6684
6685 2019-10-30 Tobias Burnus <tobias@codesourcery.com>
6686
6687 * testsuite/libgomp.fortran/aligned1.f03: Replace 'STOP' by 'stop'.
6688 * testsuite/libgomp.fortran/alloc-comp-1.f90: Ditto.
6689 * testsuite/libgomp.fortran/alloc-comp-2.f90: Ditto.
6690 * testsuite/libgomp.fortran/alloc-comp-3.f90: Ditto.
6691 * testsuite/libgomp.fortran/allocatable1.f90: Ditto.
6692 * testsuite/libgomp.fortran/allocatable10.f90: Ditto.
6693 * testsuite/libgomp.fortran/allocatable11.f90: Ditto.
6694 * testsuite/libgomp.fortran/allocatable12.f90: Ditto.
6695 * testsuite/libgomp.fortran/allocatable2.f90: Ditto.
6696 * testsuite/libgomp.fortran/allocatable3.f90: Ditto.
6697 * testsuite/libgomp.fortran/allocatable4.f90: Ditto.
6698 * testsuite/libgomp.fortran/allocatable5.f90: Ditto.
6699 * testsuite/libgomp.fortran/allocatable6.f90: Ditto.
6700 * testsuite/libgomp.fortran/allocatable7.f90: Ditto.
6701 * testsuite/libgomp.fortran/allocatable8.f90: Ditto.
6702 * testsuite/libgomp.fortran/allocatable9.f90: Ditto.
6703 * testsuite/libgomp.fortran/associate1.f90: Ditto.
6704 * testsuite/libgomp.fortran/associate2.f90: Ditto.
6705 * testsuite/libgomp.fortran/associate3.f90: Ditto.
6706 * testsuite/libgomp.fortran/async_io_4.f90: Ditto.
6707 * testsuite/libgomp.fortran/async_io_5.f90: Ditto.
6708 * testsuite/libgomp.fortran/async_io_6.f90: Ditto.
6709 * testsuite/libgomp.fortran/async_io_7.f90: Ditto.
6710 * testsuite/libgomp.fortran/cancel-do-1.f90: Ditto.
6711 * testsuite/libgomp.fortran/cancel-do-2.f90: Ditto.
6712 * testsuite/libgomp.fortran/cancel-parallel-1.f90: Ditto.
6713 * testsuite/libgomp.fortran/cancel-sections-1.f90: Ditto.
6714 * testsuite/libgomp.fortran/cancel-taskgroup-2.f90: Ditto.
6715 * testsuite/libgomp.fortran/character1.f90: Ditto.
6716 * testsuite/libgomp.fortran/character2.f90: Ditto.
6717 * testsuite/libgomp.fortran/collapse1.f90: Ditto.
6718 * testsuite/libgomp.fortran/collapse2.f90: Ditto.
6719 * testsuite/libgomp.fortran/collapse3.f90: Ditto.
6720 * testsuite/libgomp.fortran/collapse4.f90: Ditto.
6721 * testsuite/libgomp.fortran/crayptr1.f90: Ditto.
6722 * testsuite/libgomp.fortran/crayptr2.f90: Ditto.
6723 * testsuite/libgomp.fortran/crayptr3.f90: Ditto.
6724 * testsuite/libgomp.fortran/declare-simd-1.f90: Ditto.
6725 * testsuite/libgomp.fortran/declare-simd-3.f90: Ditto.
6726 * testsuite/libgomp.fortran/declare-target-2.f90: Ditto.
6727 * testsuite/libgomp.fortran/depend-1.f90: Ditto.
6728 * testsuite/libgomp.fortran/depend-2.f90: Ditto.
6729 * testsuite/libgomp.fortran/depend-3.f90: Ditto.
6730 * testsuite/libgomp.fortran/do1.f90: Ditto.
6731 * testsuite/libgomp.fortran/do2.f90: Ditto.
6732 * testsuite/libgomp.fortran/do_concurrent_5.f90: Ditto.
6733 * testsuite/libgomp.fortran/doacross1.f90: Ditto.
6734 * testsuite/libgomp.fortran/doacross2.f90: Ditto.
6735 * testsuite/libgomp.fortran/doacross3.f90: Ditto.
6736 * testsuite/libgomp.fortran/examples-4/array_sections-3.f90: Ditto.
6737 * testsuite/libgomp.fortran/examples-4/array_sections-4.f90: Ditto.
6738 * testsuite/libgomp.fortran/examples-4/async_target-1.f90: Ditto.
6739 * testsuite/libgomp.fortran/examples-4/async_target-2.f90: Ditto.
6740 * testsuite/libgomp.fortran/examples-4/declare_target-1.f90: Ditto.
6741 * testsuite/libgomp.fortran/examples-4/declare_target-2.f90: Ditto.
6742 * testsuite/libgomp.fortran/examples-4/declare_target-3.f90: Ditto.
6743 * testsuite/libgomp.fortran/examples-4/declare_target-4.f90: Ditto.
6744 * testsuite/libgomp.fortran/examples-4/declare_target-5.f90: Ditto.
6745 * testsuite/libgomp.fortran/examples-4/device-1.f90: Ditto.
6746 * testsuite/libgomp.fortran/examples-4/device-2.f90: Ditto.
6747 * testsuite/libgomp.fortran/examples-4/device-3.f90: Ditto.
6748 * testsuite/libgomp.fortran/examples-4/simd-1.f90: Ditto.
6749 * testsuite/libgomp.fortran/examples-4/simd-2.f90: Ditto.
6750 * testsuite/libgomp.fortran/examples-4/simd-3.f90: Ditto.
6751 * testsuite/libgomp.fortran/examples-4/simd-4.f90: Ditto.
6752 * testsuite/libgomp.fortran/examples-4/simd-5.f90: Ditto.
6753 * testsuite/libgomp.fortran/examples-4/simd-6.f90: Ditto.
6754 * testsuite/libgomp.fortran/examples-4/simd-7.f90: Ditto.
6755 * testsuite/libgomp.fortran/examples-4/simd-8.f90: Ditto.
6756 * testsuite/libgomp.fortran/examples-4/target-1.f90: Ditto.
6757 * testsuite/libgomp.fortran/examples-4/target-2.f90: Ditto.
6758 * testsuite/libgomp.fortran/examples-4/target-3.f90: Ditto.
6759 * testsuite/libgomp.fortran/examples-4/target-4.f90: Ditto.
6760 * testsuite/libgomp.fortran/examples-4/target-5.f90: Ditto.
6761 * testsuite/libgomp.fortran/examples-4/target_data-1.f90: Ditto.
6762 * testsuite/libgomp.fortran/examples-4/target_data-2.f90: Ditto.
6763 * testsuite/libgomp.fortran/examples-4/target_data-3.f90: Ditto.
6764 * testsuite/libgomp.fortran/examples-4/target_data-4.f90: Ditto.
6765 * testsuite/libgomp.fortran/examples-4/target_data-5.f90: Ditto.
6766 * testsuite/libgomp.fortran/examples-4/target_data-6.f90: Ditto.
6767 * testsuite/libgomp.fortran/examples-4/target_data-7.f90: Ditto.
6768 * testsuite/libgomp.fortran/examples-4/target_update-1.f90: Ditto.
6769 * testsuite/libgomp.fortran/examples-4/target_update-2.f90: Ditto.
6770 * testsuite/libgomp.fortran/examples-4/task_dep-1.f90: Ditto.
6771 * testsuite/libgomp.fortran/examples-4/task_dep-2.f90: Ditto.
6772 * testsuite/libgomp.fortran/examples-4/task_dep-3.f90: Ditto.
6773 * testsuite/libgomp.fortran/examples-4/task_dep-4.f90: Ditto.
6774 * testsuite/libgomp.fortran/examples-4/task_dep-5.f90: Ditto.
6775 * testsuite/libgomp.fortran/examples-4/teams-2.f90: Ditto.
6776 * testsuite/libgomp.fortran/examples-4/teams-3.f90: Ditto.
6777 * testsuite/libgomp.fortran/examples-4/teams-4.f90: Ditto.
6778 * testsuite/libgomp.fortran/examples-4/teams-5.f90: Ditto.
6779 * testsuite/libgomp.fortran/examples-4/teams-6.f90: Ditto.
6780 * testsuite/libgomp.fortran/lastprivate1.f90: Ditto.
6781 * testsuite/libgomp.fortran/lastprivate2.f90: Ditto.
6782 * testsuite/libgomp.fortran/lib1.f90: Ditto.
6783 * testsuite/libgomp.fortran/lib4.f90: Ditto.
6784 * testsuite/libgomp.fortran/lock-1.f90: Ditto.
6785 * testsuite/libgomp.fortran/lock-2.f90: Ditto.
6786 * testsuite/libgomp.fortran/nested1.f90: Ditto.
6787 * testsuite/libgomp.fortran/nestedfn1.f90: Ditto.
6788 * testsuite/libgomp.fortran/nestedfn2.f90: Ditto.
6789 * testsuite/libgomp.fortran/nestedfn3.f90: Ditto.
6790 * testsuite/libgomp.fortran/nestedfn4.f90: Ditto.
6791 * testsuite/libgomp.fortran/nestedfn5.f90: Ditto.
6792 * testsuite/libgomp.fortran/omp_atomic1.f90: Ditto.
6793 * testsuite/libgomp.fortran/omp_atomic2.f90: Ditto.
6794 * testsuite/libgomp.fortran/omp_atomic3.f90: Ditto.
6795 * testsuite/libgomp.fortran/omp_atomic4.f90: Ditto.
6796 * testsuite/libgomp.fortran/omp_atomic5.f90: Ditto.
6797 * testsuite/libgomp.fortran/omp_cond1.f: Ditto.
6798 * testsuite/libgomp.fortran/omp_cond2.f: Ditto.
6799 * testsuite/libgomp.fortran/omp_cond3.F90: Ditto.
6800 * testsuite/libgomp.fortran/omp_cond4.F90: Ditto.
6801 * testsuite/libgomp.fortran/omp_parse1.f90: Ditto.
6802 * testsuite/libgomp.fortran/omp_parse2.f90: Ditto.
6803 * testsuite/libgomp.fortran/omp_parse3.f90: Ditto.
6804 * testsuite/libgomp.fortran/omp_parse4.f90: Ditto.
6805 * testsuite/libgomp.fortran/openmp_version-1.f: Ditto.
6806 * testsuite/libgomp.fortran/openmp_version-2.f90: Ditto.
6807 * testsuite/libgomp.fortran/parloops-exit-first-loop-alt-2.f95: Ditto.
6808 * testsuite/libgomp.fortran/parloops-exit-first-loop-alt.f95: Ditto.
6809 * testsuite/libgomp.fortran/pointer1.f90: Ditto.
6810 * testsuite/libgomp.fortran/pointer2.f90: Ditto.
6811 * testsuite/libgomp.fortran/pr25219.f90: Ditto.
6812 * testsuite/libgomp.fortran/pr27395-1.f90: Ditto.
6813 * testsuite/libgomp.fortran/pr27395-2.f90: Ditto.
6814 * testsuite/libgomp.fortran/pr27416-1.f90: Ditto.
6815 * testsuite/libgomp.fortran/pr27916-1.f90: Ditto.
6816 * testsuite/libgomp.fortran/pr27916-2.f90: Ditto.
6817 * testsuite/libgomp.fortran/pr28390.f: Ditto.
6818 * testsuite/libgomp.fortran/pr29629.f90: Ditto.
6819 * testsuite/libgomp.fortran/pr32550.f90: Ditto.
6820 * testsuite/libgomp.fortran/pr33880.f90: Ditto.
6821 * testsuite/libgomp.fortran/pr34020.f90: Ditto.
6822 * testsuite/libgomp.fortran/pr35130.f90: Ditto.
6823 * testsuite/libgomp.fortran/pr42162.f90: Ditto.
6824 * testsuite/libgomp.fortran/pr46753.f90: Ditto.
6825 * testsuite/libgomp.fortran/pr48894.f90: Ditto.
6826 * testsuite/libgomp.fortran/pr49792-1.f90: Ditto.
6827 * testsuite/libgomp.fortran/pr49792-2.f90: Ditto.
6828 * testsuite/libgomp.fortran/pr63938-1.f90: Ditto.
6829 * testsuite/libgomp.fortran/pr63938-2.f90: Ditto.
6830 * testsuite/libgomp.fortran/pr65597.f90: Ditto.
6831 * testsuite/libgomp.fortran/pr66199-1.f90: Ditto.
6832 * testsuite/libgomp.fortran/pr71014.f90: Ditto.
6833 * testsuite/libgomp.fortran/pr81304.f90: Ditto.
6834 * testsuite/libgomp.fortran/pr81841.f90: Ditto.
6835 * testsuite/libgomp.fortran/pr84418-1.f90: Ditto.
6836 * testsuite/libgomp.fortran/pr84418-2.f90: Ditto.
6837 * testsuite/libgomp.fortran/procptr1.f90: Ditto.
6838 * testsuite/libgomp.fortran/recursion1.f90: Ditto.
6839 * testsuite/libgomp.fortran/reduction1.f90: Ditto.
6840 * testsuite/libgomp.fortran/reduction2.f90: Ditto.
6841 * testsuite/libgomp.fortran/reduction3.f90: Ditto.
6842 * testsuite/libgomp.fortran/reduction4.f90: Ditto.
6843 * testsuite/libgomp.fortran/reduction5.f90: Ditto.
6844 * testsuite/libgomp.fortran/reduction6.f90: Ditto.
6845 * testsuite/libgomp.fortran/reference1.f90: Ditto.
6846 * testsuite/libgomp.fortran/reference2.f90: Ditto.
6847 * testsuite/libgomp.fortran/retval1.f90: Ditto.
6848 * testsuite/libgomp.fortran/retval2.f90: Ditto.
6849 * testsuite/libgomp.fortran/sharing1.f90: Ditto.
6850 * testsuite/libgomp.fortran/sharing2.f90: Ditto.
6851 * testsuite/libgomp.fortran/simd1.f90: Ditto.
6852 * testsuite/libgomp.fortran/simd2.f90: Ditto.
6853 * testsuite/libgomp.fortran/simd3.f90: Ditto.
6854 * testsuite/libgomp.fortran/simd4.f90: Ditto.
6855 * testsuite/libgomp.fortran/simd5.f90: Ditto.
6856 * testsuite/libgomp.fortran/simd6.f90: Ditto.
6857 * testsuite/libgomp.fortran/simd7.f90: Ditto.
6858 * testsuite/libgomp.fortran/stack.f90: Ditto.
6859 * testsuite/libgomp.fortran/strassen.f90: Ditto.
6860 * testsuite/libgomp.fortran/tabs1.f90: Ditto.
6861 * testsuite/libgomp.fortran/tabs2.f: Ditto.
6862 * testsuite/libgomp.fortran/target1.f90: Ditto.
6863 * testsuite/libgomp.fortran/target2.f90: Ditto.
6864 * testsuite/libgomp.fortran/target3.f90: Ditto.
6865 * testsuite/libgomp.fortran/target4.f90: Ditto.
6866 * testsuite/libgomp.fortran/target5.f90: Ditto.
6867 * testsuite/libgomp.fortran/target6.f90: Ditto.
6868 * testsuite/libgomp.fortran/target7.f90: Ditto.
6869 * testsuite/libgomp.fortran/target8.f90: Ditto.
6870 * testsuite/libgomp.fortran/task1.f90: Ditto.
6871 * testsuite/libgomp.fortran/task2.f90: Ditto.
6872 * testsuite/libgomp.fortran/task3.f90: Ditto.
6873 * testsuite/libgomp.fortran/task4.f90: Ditto.
6874 * testsuite/libgomp.fortran/taskgroup1.f90: Ditto.
6875 * testsuite/libgomp.fortran/taskloop1.f90: Ditto.
6876 * testsuite/libgomp.fortran/taskloop2.f90: Ditto.
6877 * testsuite/libgomp.fortran/taskloop3.f90: Ditto.
6878 * testsuite/libgomp.fortran/taskloop4.f90: Ditto.
6879 * testsuite/libgomp.fortran/threadprivate1.f90: Ditto.
6880 * testsuite/libgomp.fortran/threadprivate2.f90: Ditto.
6881 * testsuite/libgomp.fortran/threadprivate3.f90: Ditto.
6882 * testsuite/libgomp.fortran/threadprivate4.f90: Ditto.
6883 * testsuite/libgomp.fortran/udr1.f90: Ditto.
6884 * testsuite/libgomp.fortran/udr10.f90: Ditto.
6885 * testsuite/libgomp.fortran/udr11.f90: Ditto.
6886 * testsuite/libgomp.fortran/udr12.f90: Ditto.
6887 * testsuite/libgomp.fortran/udr13.f90: Ditto.
6888 * testsuite/libgomp.fortran/udr14.f90: Ditto.
6889 * testsuite/libgomp.fortran/udr15.f90: Ditto.
6890 * testsuite/libgomp.fortran/udr2.f90: Ditto.
6891 * testsuite/libgomp.fortran/udr3.f90: Ditto.
6892 * testsuite/libgomp.fortran/udr4.f90: Ditto.
6893 * testsuite/libgomp.fortran/udr5.f90: Ditto.
6894 * testsuite/libgomp.fortran/udr6.f90: Ditto.
6895 * testsuite/libgomp.fortran/udr7.f90: Ditto.
6896 * testsuite/libgomp.fortran/udr8.f90: Ditto.
6897 * testsuite/libgomp.fortran/udr9.f90: Ditto.
6898 * testsuite/libgomp.fortran/vla1.f90: Ditto.
6899 * testsuite/libgomp.fortran/vla2.f90: Ditto.
6900 * testsuite/libgomp.fortran/vla3.f90: Ditto.
6901 * testsuite/libgomp.fortran/vla4.f90: Ditto.
6902 * testsuite/libgomp.fortran/vla5.f90: Ditto.
6903 * testsuite/libgomp.fortran/vla6.f90: Ditto.
6904 * testsuite/libgomp.fortran/vla7.f90: Ditto.
6905 * testsuite/libgomp.fortran/vla8.f90: Ditto.
6906 * testsuite/libgomp.fortran/workshare1.f90: Ditto.
6907 * testsuite/libgomp.fortran/workshare2.f90: Ditto.
6908
6909 2019-10-30 Tobias Burnus <tobias@codesourcery.com>
6910
6911 * testsuite/libgomp.fortran/target-simd.f90: Use stop not abort.
6912 * testsuite/libgomp.fortran/use_device_ptr-optional-1.f90:
6913 Ditto; add 'dg-do run' for torture testing.
6914 * testsuite/libgomp.fortran/lastprivate1.f90: Add 'dg-do run'.
6915 * testsuite/libgomp.fortran/lastprivate2.f90: Ditto.
6916 * testsuite/libgomp.fortran/nestedfn4.f90: Ditto.
6917 * testsuite/libgomp.fortran/pr25219.f90: Ditto.
6918 * testsuite/libgomp.fortran/pr28390.f: Ditto.
6919 * testsuite/libgomp.fortran/pr35130.f90: Ditto.
6920 * testsuite/libgomp.fortran/pr90779.f90: Ditto.
6921 * testsuite/libgomp.fortran/task2.f90: Ditto.
6922 * testsuite/libgomp.fortran/taskgroup1.f90: Ditto.
6923 * testsuite/libgomp.fortran/taskloop1.f90: Ditto.
6924 * testsuite/libgomp.fortran/use_device_addr-1.f90: Ditto.
6925 * testsuite/libgomp.fortran/use_device_addr-2.f90: Ditto.
6926 * testsuite/libgomp.fortran/workshare1.f90: Ditto.
6927 * testsuite/libgomp.fortran/workshare2.f90: Ditto.
6928
6929 2019-10-28 Tobias Burnus <tobias@codesourcery.com>
6930
6931 * testsuite/libgomp.oacc-fortran/abort-1.f90: Add 'dg-do run'.
6932 * testsuite/libgomp.oacc-fortran/abort-2.f90: Ditto.
6933 * testsuite/libgomp.oacc-fortran/acc_on_device-1-1.f90: Ditto.
6934 * testsuite/libgomp.oacc-fortran/acc_on_device-1-2.f90: Ditto.
6935 * testsuite/libgomp.oacc-fortran/acc_on_device-1-3.f90: Ditto.
6936 * testsuite/libgomp.oacc-fortran/lib-1.f90: Ditto.
6937 * testsuite/libgomp.oacc-fortran/common-block-1.f90:
6938 Use 'stop' not abort().
6939 * testsuite/libgomp.oacc-fortran/common-block-2.f90: Ditto.
6940 * testsuite/libgomp.oacc-fortran/common-block-3.f90: Ditto.
6941 * testsuite/libgomp.oacc-fortran/data-1.f90: Ditto.
6942 * testsuite/libgomp.oacc-fortran/data-2.f90: Ditto.
6943 * testsuite/libgomp.oacc-fortran/data-5.f90: Ditto.
6944 * testsuite/libgomp.oacc-fortran/dummy-array.f90: Ditto.
6945 * testsuite/libgomp.oacc-fortran/gemm-2.f90: Ditto.
6946 * testsuite/libgomp.oacc-fortran/gemm.f90: Ditto.
6947 * testsuite/libgomp.oacc-fortran/host_data-2.f90: Ditto.
6948 * testsuite/libgomp.oacc-fortran/host_data-3.f90: Ditto.
6949 * testsuite/libgomp.oacc-fortran/host_data-4.f90: Ditto.
6950 * testsuite/libgomp.oacc-fortran/kernels-collapse-3.f90: Ditto.
6951 * testsuite/libgomp.oacc-fortran/kernels-collapse-4.f90: Ditto.
6952 * testsuite/libgomp.oacc-fortran/kernels-independent.f90: Ditto.
6953 * testsuite/libgomp.oacc-fortran/kernels-loop-1.f90: Ditto.
6954 * testsuite/libgomp.oacc-fortran/kernels-map-1.f90: Ditto.
6955 * testsuite/libgomp.oacc-fortran/kernels-parallel-loop-data-enter-exit.f95:
6956 Ditto.
6957 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-1.f90:
6958 Ditto.
6959 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-2.f90:
6960 Ditto.
6961 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-3.f90:
6962 Ditto.
6963 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-6.f90:
6964 Ditto.
6965 * testsuite/libgomp.oacc-fortran/kernels-private-vars-vector-1.f90:
6966 Ditto.
6967 * testsuite/libgomp.oacc-fortran/kernels-private-vars-vector-2.f90:
6968 Ditto.
6969 * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-1.f90:
6970 Ditto.
6971 * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-2.f90:
6972 Ditto.
6973 * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-3.f90:
6974 Ditto.
6975 * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-4.f90:
6976 Ditto.
6977 * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-5.f90:
6978 Ditto.
6979 * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-6.f90:
6980 Ditto.
6981 * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-7.f90:
6982 Ditto.
6983 * testsuite/libgomp.oacc-fortran/kernels-reduction-1.f90: Ditto.
6984 * testsuite/libgomp.oacc-fortran/lib-12.f90: Ditto.
6985 * testsuite/libgomp.oacc-fortran/lib-13.f90: Ditto.
6986 * testsuite/libgomp.oacc-fortran/lib-14.f90: Ditto.
6987 * testsuite/libgomp.oacc-fortran/kernels-acc-loop-reduction-2.f90:
6988 Likewise and also add 'dg-do run'.
6989 * testsuite/libgomp.oacc-fortran/kernels-acc-loop-reduction.f90:
6990 Ditto.
6991
6992 2019-10-25 Cesar Philippidis <cesar@codesourcery.com>
6993 Tobias Burnus <tobias@codesourcery.com>
6994
6995 * testsuite/libgomp.oacc-fortran/common-block-1.f90: New test.
6996 * testsuite/libgomp.oacc-fortran/common-block-2.f90: New test.
6997 * testsuite/libgomp.oacc-fortran/common-block-3.f90: New test.
6998
6999 2019-10-14 Jakub Jelinek <jakub@redhat.com>
7000
7001 PR libgomp/92081
7002 * testsuite/libgomp.fortran/target-simd.f90: Iterate from 1 rather
7003 than 0.
7004
7005 2019-10-11 Tobias Burnus <tobias@codesourcery.com>
7006
7007 * testsuite/libgomp.fortran/use_device_addr-1.f90: New.
7008 * testsuite/libgomp.fortran/use_device_addr-2.f90: New.
7009
7010 2019-10-09 Thomas Schwinge <thomas@codesourcery.com>
7011
7012 PR middle-end/92036
7013 * testsuite/libgomp.oacc-c-c++-common/data-firstprivate-1.c: New
7014 file.
7015
7016 2019-10-09 Tobias Burnus <tobias@codesourcery.com>
7017
7018 PR testsuite/91884
7019 * testsuite/libgomp.fortran/fortran.exp: Conditionally
7020 add -lquadmath.
7021 * testsuite/libgomp.oacc-fortran/fortran.exp: Ditto.
7022
7023 2019-10-09 Jakub Jelinek <jakub@redhat.com>
7024
7025 PR libgomp/92028
7026 * target.c (gomp_map_vars_internal): Readd the previous
7027 GOMP_MAP_USE_DEVICE_PTR handling code in the first loop,
7028 though do that just in the !not_found_cnt case.
7029
7030 2019-10-08 Tobias Burnus <tobias@codesourcery.com>
7031
7032 * gfortran.dg/gomp/target-simd.f90: New.
7033
7034 2019-10-02 Julian Brown <julian@codesourcery.com>
7035 Cesar Philippidis <cesar@codesourcery.com>
7036
7037 * libgomp.h (OFFSET_INLINED, OFFSET_POINTER, OFFSET_STRUCT): Define.
7038 * target.c (FIELD_TGT_EMPTY): Define.
7039 (gomp_map_val): Use OFFSET_* macros instead of magic constants. Write
7040 as switch instead of list of ifs.
7041 (gomp_map_vars_internal): Use OFFSET_* and FIELD_TGT_EMPTY macros.
7042
7043 2019-10-02 Andreas Tobler <andreast@gcc.gnu.org>
7044
7045 * testsuite/libgomp.oacc-c-c++-common/loop-default.h: Remove alloca.h
7046 include. Replace alloca () with __builtin_alloca ().
7047 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: Likewise.
7048
7049 2019-10-01 Jakub Jelinek <jakub@redhat.com>
7050
7051 * configure.ac: Remove GCC_HEADER_STDINT(gstdint.h).
7052 * libgomp.h: Include <stdint.h> instead of "gstdint.h".
7053 * oacc-parallel.c: Don't include "libgomp_g.h".
7054 * plugin/plugin-hsa.c: Include <stdint.h> instead of "gstdint.h".
7055 * plugin/plugin-nvptx.c: Don't include "gstdint.h".
7056 * aclocal.m4: Regenerated.
7057 * config.h.in: Regenerated.
7058 * configure: Regenerated.
7059 * Makefile.in: Regenerated.
7060
7061 2019-09-30 Kwok Cheung Yeung <kcy@codesourcery.com>
7062
7063 * libgomp_g.h: Include stdint.h instead of gstdint.h.
7064
7065 2019-09-27 Maciej W. Rozycki <macro@wdc.com>
7066
7067 * configure: Regenerate.
7068
7069 2019-09-13 Tobias Burnus <tobias@codesourcery.com>
7070
7071 * plugin/plugin-hsa.c (hsa_warn, hsa_fatal, hsa_error): Ensure
7072 string is initialized.
7073
7074 2019-09-06 Florian Weimer <fweimer@redhat.com>
7075
7076 * configure: Regenerate.
7077
7078 2019-09-03 Chung-Lin Tang <cltang@codesourcery.com>
7079
7080 PR other/79543
7081 * acinclude.m4 (LIBGOMP_CHECK_LINKER_FEATURES): Fix GNU ld --version
7082 scanning to conform to the GNU Coding Standards.
7083 * configure: Regenerate.
7084
7085 2019-08-28 Jakub Jelinek <jakub@redhat.com>
7086
7087 PR libgomp/91530
7088 * testsuite/libgomp.c/scan-21.c: New test.
7089 * testsuite/libgomp.c/scan-22.c: New test.
7090
7091 2019-08-27 Jakub Jelinek <jakub@redhat.com>
7092
7093 PR libgomp/91530
7094 * testsuite/libgomp.c/scan-11.c: Add -msse2 option for sse2_runtime
7095 targets.
7096 * testsuite/libgomp.c/scan-12.c: Likewise.
7097 * testsuite/libgomp.c/scan-13.c: Likewise.
7098 * testsuite/libgomp.c/scan-14.c: Likewise.
7099 * testsuite/libgomp.c/scan-15.c: Likewise.
7100 * testsuite/libgomp.c/scan-16.c: Likewise.
7101 * testsuite/libgomp.c/scan-17.c: Likewise.
7102 * testsuite/libgomp.c/scan-18.c: Likewise.
7103 * testsuite/libgomp.c/scan-19.c: Likewise.
7104 * testsuite/libgomp.c/scan-20.c: Likewise.
7105 * testsuite/libgomp.c++/scan-9.C: Likewise.
7106 * testsuite/libgomp.c++/scan-10.C: Likewise.
7107 * testsuite/libgomp.c++/scan-11.C: Likewise.
7108 * testsuite/libgomp.c++/scan-12.C: Likewise.
7109 * testsuite/libgomp.c++/scan-14.C: Likewise.
7110 * testsuite/libgomp.c++/scan-15.C: Likewise.
7111 * testsuite/libgomp.c++/scan-13.C: Likewise. Use sse2_runtime
7112 instead of i?86-*-* x86_64-*-* as target for scan-tree-dump-times.
7113 * testsuite/libgomp.c++/scan-16.C: Likewise.
7114
7115 2019-08-17 Thomas Koenig <tkoenig@gcc.gnu.org>
7116
7117 PR fortran/91473
7118 * testsuite/libgomp.fortran/appendix-a/a.28.5.f90: Add
7119 -std=legacy so invalid code in the test case is accepted.
7120
7121 2019-08-12 Thomas Koenig <tkoenig@gcc.gnu.org>
7122
7123 PR fortran/91422
7124 * testsuite/libgomp.oacc-fortran/routine-7.f90: Correct array
7125 dimension.
7126
7127 2019-08-08 Jakub Jelinek <jakub@redhat.com>
7128
7129 * target.c (gomp_map_vars_internal): For GOMP_MAP_USE_DEVICE_PTR
7130 perform the lookup in the first loop only if !not_found_cnt, otherwise
7131 perform lookups for it in the second loop guarded with
7132 if (not_found_cnt || has_firstprivate).
7133 * testsuite/libgomp.c/target-37.c: New test.
7134 * testsuite/libgomp.c++/target-22.C: New test.
7135
7136 2019-08-07 Jakub Jelinek <jakub@redhat.com>
7137
7138 * testsuite/libgomp.c/target-18.c (struct S): New type.
7139 (foo): Use use_device_addr clause instead of use_device_ptr clause
7140 where required by OpenMP 5.0, add further tests for both use_device_ptr
7141 and use_device_addr clauses.
7142 * testsuite/libgomp.c++/target-9.C (struct S): New type.
7143 (foo): Use use_device_addr clause instead of use_device_ptr clause
7144 where required by OpenMP 5.0, add further tests for both use_device_ptr
7145 and use_device_addr clauses. Add t and u arguments.
7146 (main): Adjust caller.
7147
7148 2019-08-06 Jakub Jelinek <jakub@redhat.com>
7149
7150 * testsuite/libgomp.c++/loop-13.C: New test.
7151 * testsuite/libgomp.c++/loop-14.C: New test.
7152 * testsuite/libgomp.c++/loop-15.C: New test.
7153
7154 2019-07-31 Jakub Jelinek <jakub@redhat.com>
7155
7156 PR middle-end/91301
7157 * testsuite/libgomp.c++/for-27.C: New test.
7158
7159 2019-07-23 Steven G. Kargl <kargl@gcc.gnu.org>
7160
7161 * testsuite/libgomp.fortran/reduction4.f90: Update BOZ usage.
7162 * testsuite/libgomp.fortran/reduction5.f90: Ditto.
7163
7164 2019-07-20 Jakub Jelinek <jakub@redhat.com>
7165
7166 * testsuite/libgomp.c-c++-common/loop-1.c: New test.
7167
7168 2019-07-08 Jakub Jelinek <jakub@redhat.com>
7169
7170 * testsuite/libgomp.c++/scan-13.C: Replace xfail with target x86.
7171 * testsuite/libgomp.c++/scan-16.C: Likewise.
7172
7173 2019-07-06 Jakub Jelinek <jakub@redhat.com>
7174
7175 * testsuite/libgomp.c/scan-19.c: New test.
7176 * testsuite/libgomp.c/scan-20.c: New test.
7177
7178 * testsuite/libgomp.c/scan-11.c: New test.
7179 * testsuite/libgomp.c/scan-12.c: New test.
7180 * testsuite/libgomp.c/scan-13.c: New test.
7181 * testsuite/libgomp.c/scan-14.c: New test.
7182 * testsuite/libgomp.c/scan-15.c: New test.
7183 * testsuite/libgomp.c/scan-16.c: New test.
7184 * testsuite/libgomp.c/scan-17.c: New test.
7185 * testsuite/libgomp.c/scan-18.c: New test.
7186 * testsuite/libgomp.c++/scan-9.C: New test.
7187 * testsuite/libgomp.c++/scan-10.C: New test.
7188 * testsuite/libgomp.c++/scan-11.C: New test.
7189 * testsuite/libgomp.c++/scan-12.C: New test.
7190 * testsuite/libgomp.c++/scan-13.C: New test.
7191 * testsuite/libgomp.c++/scan-14.C: New test.
7192 * testsuite/libgomp.c++/scan-15.C: New test.
7193 * testsuite/libgomp.c++/scan-16.C: New test.
7194
7195 2019-07-04 Jakub Jelinek <jakub@redhat.com>
7196
7197 * testsuite/libgomp.c/scan-9.c: New test.
7198 * testsuite/libgomp.c/scan-10.c: New test.
7199
7200 2019-07-03 Jakub Jelinek <jakub@redhat.com>
7201
7202 * testsuite/libgomp.c++/scan-1.C: New test.
7203 * testsuite/libgomp.c++/scan-2.C: New test.
7204 * testsuite/libgomp.c++/scan-3.C: New test.
7205 * testsuite/libgomp.c++/scan-4.C: New test.
7206 * testsuite/libgomp.c++/scan-5.C: New test.
7207 * testsuite/libgomp.c++/scan-6.C: New test.
7208 * testsuite/libgomp.c++/scan-7.C: New test.
7209 * testsuite/libgomp.c++/scan-8.C: New test.
7210 * testsuite/libgomp.c/scan-1.c: New test.
7211 * testsuite/libgomp.c/scan-2.c: New test.
7212 * testsuite/libgomp.c/scan-3.c: New test.
7213 * testsuite/libgomp.c/scan-4.c: New test.
7214 * testsuite/libgomp.c/scan-5.c: New test.
7215 * testsuite/libgomp.c/scan-6.c: New test.
7216 * testsuite/libgomp.c/scan-7.c: New test.
7217 * testsuite/libgomp.c/scan-8.c: New test.
7218
7219 2019-06-18 Thomas Schwinge <thomas@codesourcery.com>
7220
7221 * testsuite/libgomp.oacc-c++/firstprivate-mappings-1.C: New file.
7222 * testsuite/libgomp.oacc-c-c++-common/firstprivate-mappings-1.c:
7223 Likewise.
7224
7225 * testsuite/libgomp.fortran/allocatable3.f90: Add missing results
7226 check.
7227
7228 2019-06-18 Cesar Philippidis <cesar@codesourcery.com>
7229
7230 * testsuite/libgomp.oacc-fortran/allocatable-array-1.f90: New
7231 file.
7232
7233 2019-06-18 Thomas Schwinge <thomas@codesourcery.com>
7234
7235 PR fortran/90743
7236 * oacc-parallel.c (GOACC_parallel_keyed): Handle NULL mapping
7237 case.
7238 * testsuite/libgomp.fortran/target-allocatable-1-1.f90: New file.
7239 * testsuite/libgomp.fortran/target-allocatable-1-2.f90: Likewise.
7240 * testsuite/libgomp.oacc-fortran/allocatable-1-1.f90: Likewise.
7241 * testsuite/libgomp.oacc-fortran/allocatable-1-2.f90: Likewise.
7242
7243 PR testsuite/90861
7244 * testsuite/libgomp.oacc-c-c++-common/declare-vla.c: Update.
7245
7246 PR middle-end/90862
7247 * testsuite/libgomp.oacc-c-c++-common/declare-1.c: Update.
7248
7249 2019-06-16 Tom de Vries <tdevries@suse.de>
7250
7251 PR tree-optimization/89376
7252 * testsuite/libgomp.oacc-c-c++-common/pr89376.c: New test.
7253
7254 2019-06-15 Tom de Vries <tdevries@suse.de>
7255
7256 PR tree-optimization/89713
7257 * testsuite/libgomp.oacc-c-c++-common/pr85381-2.c: Expect no bar.sync.
7258 * testsuite/libgomp.oacc-c-c++-common/pr85381-4.c: Same.
7259
7260 2019-06-15 Jakub Jelinek <jakub@redhat.com>
7261
7262 PR middle-end/90779
7263 * testsuite/libgomp.c/pr90779.c: New test.
7264 * testsuite/libgomp.fortran/pr90779.f90: New test.
7265
7266 2019-06-15 Tom de Vries <tdevries@suse.de>
7267
7268 PR tree-optimization/90009
7269 * testsuite/libgomp.oacc-c-c++-common/pr90009.c: New test.
7270
7271 2019-06-13 Feng Xue <fxue@os.amperecomputing.com>
7272
7273 PR tree-optimization/89713
7274 * testsuite/libgomp.oacc-c-c++-common/pr84955-1.c: New test.
7275
7276 2019-06-11 Jakub Jelinek <jakub@redhat.com>
7277
7278 PR target/90811
7279 * testsuite/libgomp.c/pr90811.c: New test.
7280
7281 2019-06-05 Jakub Jelinek <jakub@redhat.com>
7282
7283 * testsuite/libgomp.c++/lastprivate-conditional-1.C: New test.
7284 * testsuite/libgomp.c++/lastprivate-conditional-2.C: New test.
7285
7286 2019-06-04 Jakub Jelinek <jakub@redhat.com>
7287
7288 * testsuite/libgomp.c-c++-common/lastprivate-conditional-7.c: New test.
7289 * testsuite/libgomp.c-c++-common/lastprivate-conditional-8.c: New test.
7290 * testsuite/libgomp.c-c++-common/lastprivate-conditional-9.c: New test.
7291 * testsuite/libgomp.c-c++-common/lastprivate-conditional-10.c: New test.
7292
7293 2019-05-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7294
7295 * configure.ac: Call AX_COUNT_CPUS.
7296 Substitute CPU_COUNT.
7297 * testsuite/Makefile.am (check-am): Use CPU_COUNT as processor
7298 count fallback.
7299 * aclocal.m4: Regenerate.
7300 * configure: Regenerate.
7301 * Makefile.in, testsuite/Makefile.in: Regenerate.
7302
7303 2019-05-29 Jakub Jelinek <jakub@redhat.com>
7304
7305 * testsuite/libgomp.c-c++-common/lastprivate_conditional_4.c: Rename
7306 to ...
7307 * testsuite/libgomp.c-c++-common/lastprivate-conditional-4.c: ... this.
7308 * testsuite/libgomp.c-c++-common/lastprivate-conditional-5.c: New test.
7309 * testsuite/libgomp.c-c++-common/lastprivate-conditional-6.c: New test.
7310
7311 2019-05-27 Jakub Jelinek <jakub@redhat.com>
7312
7313 * testsuite/libgomp.c-c++-common/lastprivate_conditional_4.c: New test.
7314
7315 * testsuite/libgomp.c-c++-common/lastprivate-conditional-3.c: New test.
7316
7317 PR libgomp/90641
7318 * work.c (gomp_init_work_share): Instead of aligning final ordered
7319 value to multiples of long long alignment, align to that the
7320 first part (ordered team ids) and if inline_ordered_team_ids
7321 is not on a long long alignment boundary within the structure,
7322 use __alignof__ (long long) - 1 pad size always.
7323 * loop.c (GOMP_loop_start): Fix *mem computation if
7324 inline_ordered_team_ids is not aligned on long long alignment boundary
7325 within the structure.
7326 * loop-ull.c (GOMP_loop_ull_start): Likewise.
7327 * sections.c (GOMP_sections2_start): Likewise.
7328
7329 2019-05-24 Jakub Jelinek <jakub@redhat.com>
7330
7331 * testsuite/libgomp.c-c++-common/lastprivate-conditional-1.c: New test.
7332 * testsuite/libgomp.c-c++-common/lastprivate-conditional-2.c: New test.
7333
7334 PR libgomp/90585
7335 * plugin/plugin-hsa.c: Include gstdint.h. Include inttypes.h only if
7336 HAVE_INTTYPES_H is defined.
7337 (print_uint64_t): New typedef.
7338 (PRIu64): Define if HAVE_INTTYPES_H is not defined.
7339 (print_kernel_dispatch, run_kernel): Use PRIu64 macro instead of
7340 "lu", cast uint64_t HSA_DEBUG and fprintf arguments to print_uint64_t.
7341 (release_kernel_dispatch): Likewise. Cast shadow->debug to uintptr_t
7342 before casting to void *.
7343 * plugin/plugin-nvptx.c: Include gstdint.h instead of stdint.h.
7344 * oacc-mem.c: Don't include config.h nor stdint.h.
7345 * target.c: Don't include config.h.
7346 * oacc-cuda.c: Likewise.
7347 * oacc-host.c: Don't include stdint.h.
7348
7349 2019-05-20 Jakub Jelinek <jakub@redhat.com>
7350
7351 PR libgomp/90527
7352 * alloc.c (_GNU_SOURCE): Define.
7353
7354 2019-05-17 Thomas Schwinge <thomas@codesourcery.com>
7355
7356 * acc_prof.h: New file.
7357 * oacc-profiling.c: Likewise.
7358 * Makefile.am (nodist_libsubinclude_HEADERS, libgomp_la_SOURCES):
7359 Add these, respectively.
7360 * Makefile.in: Regenerate.
7361 * env.c (initialize_env): Call goacc_profiling_initialize.
7362 * oacc-plugin.c (GOMP_PLUGIN_goacc_thread)
7363 (GOMP_PLUGIN_goacc_profiling_dispatch): New functions.
7364 * oacc-plugin.h (GOMP_PLUGIN_goacc_thread)
7365 (GOMP_PLUGIN_goacc_profiling_dispatch): Declare.
7366 * libgomp.map (OACC_2.5.1): Add acc_prof_lookup,
7367 acc_prof_register, acc_prof_unregister, and acc_register_library.
7368 (GOMP_PLUGIN_1.3): Add GOMP_PLUGIN_goacc_profiling_dispatch, and
7369 GOMP_PLUGIN_goacc_thread.
7370 * oacc-int.h (struct goacc_thread): Add prof_info, api_info,
7371 prof_callbacks_enabled members.
7372 (goacc_prof_enabled, goacc_profiling_initialize)
7373 (_goacc_profiling_dispatch_p, _goacc_profiling_setup_p)
7374 (goacc_profiling_dispatch): Declare.
7375 (GOACC_PROF_ENABLED, GOACC_PROFILING_DISPATCH_P)
7376 (GOACC_PROFILING_SETUP_P): Define.
7377 * oacc-async.c (acc_async_test, acc_async_test_all, acc_wait)
7378 (acc_wait_async, acc_wait_all, acc_wait_all_async): Update for
7379 OpenACC Profiling Interface.
7380 * oacc-cuda.c (acc_get_current_cuda_device)
7381 (acc_get_current_cuda_context, acc_get_cuda_stream)
7382 (acc_set_cuda_stream): Likewise.
7383 * oacc-init.c (acc_init_1, goacc_attach_host_thread_to_device)
7384 (acc_init, acc_set_device_type, acc_get_device_type)
7385 (acc_get_device_num, goacc_lazy_initialize): Likewise.
7386 * oacc-mem.c (acc_malloc, acc_free, memcpy_tofrom_device)
7387 (acc_deviceptr, acc_hostptr, acc_is_present, acc_map_data)
7388 (acc_unmap_data, present_create_copy, delete_copyout)
7389 (update_dev_host): Likewise.
7390 * oacc-parallel.c (GOACC_parallel_keyed, GOACC_data_start)
7391 (GOACC_data_end, GOACC_enter_exit_data, GOACC_update, GOACC_wait):
7392 Likewise.
7393 * plugin/plugin-nvptx.c (nvptx_exec, nvptx_alloc, nvptx_free)
7394 (GOMP_OFFLOAD_openacc_exec, GOMP_OFFLOAD_openacc_async_exec):
7395 Likewise.
7396 * libgomp.texi: Update.
7397 * testsuite/libgomp.oacc-c-c++-common/acc_prof-dispatch-1.c: New
7398 file.
7399 * testsuite/libgomp.oacc-c-c++-common/acc_prof-init-1.c: Likewise.
7400 * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c:
7401 Likewise.
7402 * testsuite/libgomp.oacc-c-c++-common/acc_prof-parallel-1.c:
7403 Likewise.
7404 * testsuite/libgomp.oacc-c-c++-common/acc_prof-valid_bytes-1.c:
7405 Likewise.
7406 * testsuite/libgomp.oacc-c-c++-common/acc_prof-version-1.c:
7407 Likewise.
7408
7409 2019-05-13 Chung-Lin Tang <cltang@codesourcery.com>
7410
7411 * libgomp-plugin.h (struct goacc_asyncqueue): Declare.
7412 (struct goacc_asyncqueue_list): Likewise.
7413 (goacc_aq): Likewise.
7414 (goacc_aq_list): Likewise.
7415 (GOMP_OFFLOAD_openacc_register_async_cleanup): Remove.
7416 (GOMP_OFFLOAD_openacc_async_test): Remove.
7417 (GOMP_OFFLOAD_openacc_async_test_all): Remove.
7418 (GOMP_OFFLOAD_openacc_async_wait): Remove.
7419 (GOMP_OFFLOAD_openacc_async_wait_async): Remove.
7420 (GOMP_OFFLOAD_openacc_async_wait_all): Remove.
7421 (GOMP_OFFLOAD_openacc_async_wait_all_async): Remove.
7422 (GOMP_OFFLOAD_openacc_async_set_async): Remove.
7423 (GOMP_OFFLOAD_openacc_exec): Adjust declaration.
7424 (GOMP_OFFLOAD_openacc_cuda_get_stream): Likewise.
7425 (GOMP_OFFLOAD_openacc_cuda_set_stream): Likewise.
7426 (GOMP_OFFLOAD_openacc_async_exec): Declare.
7427 (GOMP_OFFLOAD_openacc_async_construct): Declare.
7428 (GOMP_OFFLOAD_openacc_async_destruct): Declare.
7429 (GOMP_OFFLOAD_openacc_async_test): Declare.
7430 (GOMP_OFFLOAD_openacc_async_synchronize): Declare.
7431 (GOMP_OFFLOAD_openacc_async_serialize): Declare.
7432 (GOMP_OFFLOAD_openacc_async_queue_callback): Declare.
7433 (GOMP_OFFLOAD_openacc_async_host2dev): Declare.
7434 (GOMP_OFFLOAD_openacc_async_dev2host): Declare.
7435
7436 * libgomp.h (struct acc_dispatch_t): Define 'async' sub-struct.
7437 (gomp_acc_insert_pointer): Adjust declaration.
7438 (gomp_copy_host2dev): New declaration.
7439 (gomp_copy_dev2host): Likewise.
7440 (gomp_map_vars_async): Likewise.
7441 (gomp_unmap_tgt): Likewise.
7442 (gomp_unmap_vars_async): Likewise.
7443 (gomp_fini_device): Likewise.
7444
7445 * oacc-async.c (get_goacc_thread): New function.
7446 (get_goacc_thread_device): New function.
7447 (lookup_goacc_asyncqueue): New function.
7448 (get_goacc_asyncqueue): New function.
7449 (acc_async_test): Adjust code to use new async design.
7450 (acc_async_test_all): Likewise.
7451 (acc_wait): Likewise.
7452 (acc_wait_async): Likewise.
7453 (acc_wait_all): Likewise.
7454 (acc_wait_all_async): Likewise.
7455 (goacc_async_free): New function.
7456 (goacc_init_asyncqueues): Likewise.
7457 (goacc_fini_asyncqueues): Likewise.
7458 * oacc-cuda.c (acc_get_cuda_stream): Adjust code to use new async
7459 design.
7460 (acc_set_cuda_stream): Likewise.
7461 * oacc-host.c (host_openacc_exec): Adjust parameters, remove 'async'.
7462 (host_openacc_register_async_cleanup): Remove.
7463 (host_openacc_async_exec): New function.
7464 (host_openacc_async_test): Adjust parameters.
7465 (host_openacc_async_test_all): Remove.
7466 (host_openacc_async_wait): Remove.
7467 (host_openacc_async_wait_async): Remove.
7468 (host_openacc_async_wait_all): Remove.
7469 (host_openacc_async_wait_all_async): Remove.
7470 (host_openacc_async_set_async): Remove.
7471 (host_openacc_async_synchronize): New function.
7472 (host_openacc_async_serialize): New function.
7473 (host_openacc_async_host2dev): New function.
7474 (host_openacc_async_dev2host): New function.
7475 (host_openacc_async_queue_callback): New function.
7476 (host_openacc_async_construct): New function.
7477 (host_openacc_async_destruct): New function.
7478 (struct gomp_device_descr host_dispatch): Remove initialization of old
7479 interface, add initialization of new async sub-struct.
7480 * oacc-init.c (acc_shutdown_1): Adjust to use gomp_fini_device.
7481 (goacc_attach_host_thread_to_device): Remove old async code usage.
7482 * oacc-int.h (goacc_init_asyncqueues): New declaration.
7483 (goacc_fini_asyncqueues): Likewise.
7484 (goacc_async_copyout_unmap_vars): Likewise.
7485 (goacc_async_free): Likewise.
7486 (get_goacc_asyncqueue): Likewise.
7487 (lookup_goacc_asyncqueue): Likewise.
7488 * oacc-mem.c (memcpy_tofrom_device): Adjust code to use new async
7489 design.
7490 (present_create_copy): Adjust code to use new async design.
7491 (delete_copyout): Likewise.
7492 (update_dev_host): Likewise.
7493 (gomp_acc_insert_pointer): Add async parameter, adjust code to use new
7494 async design.
7495 (gomp_acc_remove_pointer): Adjust code to use new async design.
7496 * oacc-parallel.c (GOACC_parallel_keyed): Adjust code to use new async
7497 design.
7498 (GOACC_enter_exit_data): Likewise.
7499 (goacc_wait): Likewise.
7500 (GOACC_update): Likewise.
7501 * oacc-plugin.c (GOMP_PLUGIN_async_unmap_vars): Change to assert fail
7502 when called, warn as obsolete in comment.
7503 * target.c (goacc_device_copy_async): New function.
7504 (gomp_copy_host2dev): Remove 'static', add goacc_asyncqueue parameter,
7505 add goacc_device_copy_async case.
7506 (gomp_copy_dev2host): Likewise.
7507 (gomp_map_vars_existing): Add goacc_asyncqueue parameter, adjust code.
7508 (gomp_map_pointer): Likewise.
7509 (gomp_map_fields_existing): Likewise.
7510 (gomp_map_vars_internal): New always_inline function, renamed from
7511 gomp_map_vars.
7512 (gomp_map_vars): Implement by calling gomp_map_vars_internal.
7513 (gomp_map_vars_async): Implement by calling gomp_map_vars_internal,
7514 passing goacc_asyncqueue argument.
7515 (gomp_unmap_tgt): Remove static, add attribute_hidden.
7516 (gomp_unref_tgt): New function.
7517 (gomp_unmap_vars_internal): New always_inline function, renamed from
7518 gomp_unmap_vars.
7519 (gomp_unmap_vars): Implement by calling gomp_unmap_vars_internal.
7520 (gomp_unmap_vars_async): Implement by calling
7521 gomp_unmap_vars_internal, passing goacc_asyncqueue argument.
7522 (gomp_fini_device): New function.
7523 (gomp_exit_data): Adjust gomp_copy_dev2host call.
7524 (gomp_load_plugin_for_device): Remove old interface, adjust to load
7525 new async interface.
7526 (gomp_target_fini): Adjust code to call gomp_fini_device.
7527
7528 * plugin/plugin-nvptx.c (struct cuda_map): Remove.
7529 (struct ptx_stream): Remove.
7530 (struct nvptx_thread): Remove current_stream field.
7531 (cuda_map_create): Remove.
7532 (cuda_map_destroy): Remove.
7533 (map_init): Remove.
7534 (map_fini): Remove.
7535 (map_pop): Remove.
7536 (map_push): Remove.
7537 (struct goacc_asyncqueue): Define.
7538 (struct nvptx_callback): Define.
7539 (struct ptx_free_block): Define.
7540 (struct ptx_device): Remove null_stream, active_streams, async_streams,
7541 stream_lock, and next fields.
7542 (enum ptx_event_type): Remove.
7543 (struct ptx_event): Remove.
7544 (ptx_event_lock): Remove.
7545 (ptx_events): Remove.
7546 (init_streams_for_device): Remove.
7547 (fini_streams_for_device): Remove.
7548 (select_stream_for_async): Remove.
7549 (nvptx_init): Remove ptx_events and ptx_event_lock references.
7550 (nvptx_attach_host_thread_to_device): Remove CUDA_ERROR_NOT_PERMITTED
7551 case.
7552 (nvptx_open_device): Add free_blocks initialization, remove
7553 init_streams_for_device call.
7554 (nvptx_close_device): Remove fini_streams_for_device call, add
7555 free_blocks destruct code.
7556 (event_gc): Remove.
7557 (event_add): Remove.
7558 (nvptx_exec): Adjust parameters and code.
7559 (nvptx_free): Likewise.
7560 (nvptx_host2dev): Remove.
7561 (nvptx_dev2host): Remove.
7562 (nvptx_set_async): Remove.
7563 (nvptx_async_test): Remove.
7564 (nvptx_async_test_all): Remove.
7565 (nvptx_wait): Remove.
7566 (nvptx_wait_async): Remove.
7567 (nvptx_wait_all): Remove.
7568 (nvptx_wait_all_async): Remove.
7569 (nvptx_get_cuda_stream): Remove.
7570 (nvptx_set_cuda_stream): Remove.
7571 (GOMP_OFFLOAD_alloc): Adjust code.
7572 (GOMP_OFFLOAD_free): Likewise.
7573 (GOMP_OFFLOAD_openacc_register_async_cleanup): Remove.
7574 (GOMP_OFFLOAD_openacc_exec): Adjust parameters and code.
7575 (GOMP_OFFLOAD_openacc_async_test_all): Remove.
7576 (GOMP_OFFLOAD_openacc_async_wait): Remove.
7577 (GOMP_OFFLOAD_openacc_async_wait_async): Remove.
7578 (GOMP_OFFLOAD_openacc_async_wait_all): Remove.
7579 (GOMP_OFFLOAD_openacc_async_wait_all_async): Remove.
7580 (GOMP_OFFLOAD_openacc_async_set_async): Remove.
7581 (cuda_free_argmem): New function.
7582 (GOMP_OFFLOAD_openacc_async_exec): New plugin hook function.
7583 (GOMP_OFFLOAD_openacc_create_thread_data): Adjust code.
7584 (GOMP_OFFLOAD_openacc_cuda_get_stream): Adjust code.
7585 (GOMP_OFFLOAD_openacc_cuda_set_stream): Adjust code.
7586 (GOMP_OFFLOAD_openacc_async_construct): New plugin hook function.
7587 (GOMP_OFFLOAD_openacc_async_destruct): New plugin hook function.
7588 (GOMP_OFFLOAD_openacc_async_test): Remove and re-implement.
7589 (GOMP_OFFLOAD_openacc_async_synchronize): New plugin hook function.
7590 (GOMP_OFFLOAD_openacc_async_serialize): New plugin hook function.
7591 (GOMP_OFFLOAD_openacc_async_queue_callback): New plugin hook function.
7592 (cuda_callback_wrapper): New function.
7593 (cuda_memcpy_sanity_check): New function.
7594 (GOMP_OFFLOAD_host2dev): Remove and re-implement.
7595 (GOMP_OFFLOAD_dev2host): Remove and re-implement.
7596 (GOMP_OFFLOAD_openacc_async_host2dev): New plugin hook function.
7597 (GOMP_OFFLOAD_openacc_async_dev2host): New plugin hook function.
7598
7599 2019-05-07 Thomas Schwinge <thomas@codesourcery.com>
7600
7601 PR target/87835
7602 * testsuite/libgomp.oacc-c-c++-common/pr87835.c: Update.
7603
7604 2019-05-06 Thomas Schwinge <thomas@codesourcery.com>
7605
7606 * oacc-parallel.c: Add comments to legacy entry points (GCC 5).
7607
7608 2019-03-27 Kevin Buettner <kevinb@redhat.com>
7609
7610 * team.c (gomp_team_start): Initialize pool->threads[0].
7611
7612 2019-02-22 Thomas Schwinge <thomas@codesourcery.com>
7613
7614 * testsuite/libgomp.oacc-c++/c++.exp: Specify
7615 "-foffload=$offload_target".
7616 * testsuite/libgomp.oacc-c/c.exp: Likewise.
7617 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
7618 * testsuite/lib/libgomp.exp
7619 (check_effective_target_openacc_nvidia_accel_configured): Remove,
7620 as (conceptually) merged into
7621 check_effective_target_openacc_nvidia_accel_selected. Adjust all
7622 users.
7623
7624 * plugin/configfrag.ac: Populate and AC_SUBST offload_targets.
7625 * testsuite/libgomp-test-support.exp.in: Adjust.
7626 * testsuite/lib/libgomp.exp: Likewise. Don't populate
7627 openacc_device_types_s.
7628 (offload_target_to_openacc_device_type): New proc.
7629 * testsuite/libgomp.oacc-c++/c++.exp: Adjust.
7630 * testsuite/libgomp.oacc-c/c.exp: Likewise.
7631 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
7632 * Makefile.in: Regenerate.
7633 * configure: Likewise.
7634 * testsuite/Makefile.in: Likewise.
7635
7636 * plugin/configfrag.ac: Populate and AC_SUBST offload_plugins
7637 instead of offload_targets, and AC_DEFINE_UNQUOTED OFFLOAD_PLUGINS
7638 instead of OFFLOAD_TARGETS.
7639 * target.c (gomp_target_init): Adjust.
7640 * testsuite/libgomp-test-support.exp.in: Likewise.
7641 * testsuite/lib/libgomp.exp: Likewise. Populate
7642 openacc_device_types_s instead of offload_targets_s_openacc.
7643 (check_effective_target_openacc_nvidia_accel_selected)
7644 (check_effective_target_openacc_host_selected): Adjust.
7645 * testsuite/libgomp.oacc-c++/c++.exp: Likewise.
7646 * testsuite/libgomp.oacc-c/c.exp: Likewise.
7647 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
7648 * Makefile.in: Regenerate.
7649 * config.h.in: Likewise.
7650 * configure: Likewise.
7651 * testsuite/Makefile.in: Likewise.
7652
7653 * testsuite/lib/libgomp.exp: Error out for unknown offload target.
7654 * testsuite/libgomp.oacc-c++/c++.exp: Likewise. Report if
7655 "offloading: supported, but hardware not accessible".
7656 * testsuite/libgomp.oacc-c/c.exp: Likewise.
7657 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
7658
7659 2019-02-19 Chung-Lin Tang <cltang@codesourcery.com>
7660
7661 PR c/87924
7662 * oacc-parallel.c (GOACC_parallel_keyed): Remove condition on call to
7663 goacc_wait().
7664 (goacc_wait): Handle ACC_ASYNC_NOVAL case, remove goacc_thread() call
7665 and related adjustment.
7666
7667 2019-01-30 Jakub Jelinek <jakub@redhat.com>
7668
7669 PR c++/88988
7670 * testsuite/libgomp.c++/pr88988.C: New test.
7671
7672 2019-01-28 Jakub Jelinek <jakub@redhat.com>
7673
7674 PR middle-end/89002
7675 * testsuite/libgomp.c/pr89002.c: New test.
7676
7677 2019-01-28 Richard Biener <rguenther@suse.de>
7678
7679 PR testsuite/89064
7680 PR tree-optimization/86865
7681 * testsuite/libgomp.graphite/force-parallel-5.c: XFAIL.
7682
7683 2019-01-24 Tom de Vries <tdevries@suse.de>
7684
7685 * plugin/plugin-nvptx.c (GOMP_OFFLOAD_fini_device): Free ptx_devices
7686 once instantiated_devices drops to 0.
7687
7688 2019-01-23 Tom de Vries <tdevries@suse.de>
7689
7690 PR target/PR88946
7691 * plugin/plugin-nvptx.c (cuda_map_destroy): Use CUDA_CALL_NOCHECK for
7692 cuMemFree.
7693 (nvptx_exec): Don't call map_push if mapnum == 0.
7694 * testsuite/libgomp.oacc-c-c++-common/pr88946.c: New test.
7695
7696 2019-01-23 Tom de Vries <tdevries@suse.de>
7697
7698 PR target/88941
7699 PR target/88939
7700 * plugin/plugin-nvptx.c (cuda_map_destroy): Handle map->active case.
7701 (map_fini): Remove "assert (!s->map->active)".
7702 * testsuite/libgomp.oacc-c-c++-common/pr88941.c: New test.
7703
7704 2019-01-23 Tom de Vries <tdevries@suse.de>
7705
7706 PR target/87835
7707 * plugin/plugin-nvptx.c (map_push): Fix adding of allocated element.
7708 * testsuite/libgomp.oacc-c-c++-common/pr87835.c: New test.
7709
7710 2019-01-15 Tom de Vries <tdevries@suse.de>
7711
7712 PR target/80547
7713 * testsuite/libgomp.oacc-c-c++-common/gang-reduction-var-assignment.c:
7714 New test.
7715
7716 2019-01-12 Tom de Vries <tdevries@suse.de>
7717
7718 * testsuite/libgomp.oacc-c-c++-common/pr85486-2.c: New test.
7719 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-2.c: New test.
7720 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-5.c: New test.
7721 * testsuite/libgomp.oacc-fortran/gemm-2.f90: New test.
7722
7723 2019-01-12 Tom de Vries <tdevries@suse.de>
7724
7725 * plugin/plugin-nvptx.c (nvptx_exec): Update error message.
7726
7727 2019-01-12 Tom de Vries <tdevries@suse.de>
7728
7729 * testsuite/libgomp.oacc-c-c++-common/vector-length-64-1.c: New test.
7730 * testsuite/libgomp.oacc-c-c++-common/vector-length-64-2.c: New test.
7731 * testsuite/libgomp.oacc-c-c++-common/vector-length-64-3.c: New test.
7732
7733 2019-01-12 Tom de Vries <tdevries@suse.de>
7734
7735 PR target/85486
7736 * testsuite/libgomp.oacc-c-c++-common/pr85486-3.c: New test.
7737 * testsuite/libgomp.oacc-c-c++-common/pr85486.c: New test.
7738
7739 2019-01-12 Tom de Vries <tdevries@suse.de>
7740
7741 PR target/85381
7742 * testsuite/libgomp.oacc-c-c++-common/pr85381-5.c: New test.
7743 * testsuite/libgomp.oacc-c-c++-common/pr85381.c: New test.
7744
7745 2019-01-12 Tom de Vries <tdevries@suse.de>
7746
7747 * testsuite/libgomp.oacc-c-c++-common/vred2d-128.c: New test.
7748 * testsuite/libgomp.oacc-fortran/gemm.f90: New test.
7749 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-10.c: New test.
7750
7751 2019-01-12 Tom de Vries <tdevries@suse.de>
7752
7753 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-7.c: New test.
7754 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-4.c: New test.
7755 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-6.c: New test.
7756
7757 2019-01-12 Tom de Vries <tdevries@suse.de>
7758
7759 * plugin/plugin-nvptx.c (nvptx_exec): Update insufficient hardware
7760 resources diagnostic.
7761
7762 2019-01-12 Tom de Vries <tdevries@suse.de>
7763
7764 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-1.c: Expect
7765 vector length to be 128.
7766 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Expect vector
7767 length 2097152 to be reduced to 1024 instead of 32.
7768
7769 2019-01-11 Thomas Schwinge <thomas@codesourcery.com>
7770 James Norris <jnorris@codesourcery.com>
7771
7772 * libgomp.texi: Better distinguish OpenACC and OpenMP "Runtime
7773 Library Routines", and "Environment Variables".
7774
7775 2019-01-11 Tom de Vries <tdevries@suse.de>
7776
7777 * plugin/plugin-nvptx.c (nvptx_exec): Prevent vector_length 64 and
7778 num_workers 16.
7779
7780 2019-01-11 Tom de Vries <tdevries@suse.de>
7781
7782 * testsuite/libgomp.oacc-c-c++-common/reduction-1.c: Remove
7783 -foffload=-w.
7784 * testsuite/libgomp.oacc-c-c++-common/reduction-2.c: Same.
7785 * testsuite/libgomp.oacc-c-c++-common/reduction-3.c: Same.
7786 * testsuite/libgomp.oacc-c-c++-common/reduction-4.c: Same.
7787 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Same.
7788
7789 2019-01-11 Tom de Vries <tdevries@suse.de>
7790
7791 * testsuite/libgomp.oacc-c-c++-common/insufficient-resources.c: New
7792 test.
7793
7794 2019-01-10 Nathan Sidwell <nathan@acm.org>
7795 Julian Brown <julian@codesourcery.com>
7796
7797 PR lto/71959
7798 * testsuite/libgomp.oacc-c++/pr71959-aux.cc: New.
7799 * testsuite/libgomp.oacc-c++/pr71959.C: New.
7800
7801 2019-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
7802
7803 * config/rtems/bar.c: Include "../linux/bar.c" and delete copy
7804 and paste code.
7805
7806 2019-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
7807
7808 * config/rtems/affinity-fmt.c: New file. Include affinity-fmt.c,
7809 undefining HAVE_GETPID and HAVE_GETHOSTNAME, and mapping fwrite to
7810 write.
7811
7812 2019-01-09 Tom de Vries <tdevries@suse.de>
7813
7814 PR target/88756
7815 * testsuite/libgomp.oacc-c-c++-common/reduction-1.c (ng, nw, vl): Use
7816 #define instead of "const int".
7817 * testsuite/libgomp.oacc-c-c++-common/reduction-2.c (ng, nw, vl): Same.
7818 * testsuite/libgomp.oacc-c-c++-common/reduction-3.c (ng, nw, vl): Same.
7819 * testsuite/libgomp.oacc-c-c++-common/reduction-4.c (ng, nw, vl): Same.
7820 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c (ng, nw, vl): Same.
7821
7822 2019-01-09 Tom de Vries <tdevries@suse.de>
7823
7824 * plugin/plugin-nvptx.c (nvptx_exec): Make sure to launch with at least
7825 one worker.
7826
7827 2019-01-07 Tom de Vries <tdevries@suse.de>
7828
7829 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-3.c: Fix
7830 GOMP_OPENACC_DIM argument.
7831
7832 2019-01-03 Tom de Vries <tdevries@suse.de>
7833
7834 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-1.c: New test.
7835 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-3.c: New test.
7836
7837 2019-01-01 Jakub Jelinek <jakub@redhat.com>
7838
7839 Update copyright years.
7840
7841 2019-01-01 Jakub Jelinek <jakub@redhat.com>
7842
7843 * libgomp.texi: Bump @copying's copyright year.
7844
7845 2018-12-28 Thomas Schwinge <thomas@codesourcery.com>
7846
7847 * oacc-parallel.c (GOACC_parallel_keyed, GOACC_parallel)
7848 (GOACC_data_start, GOACC_enter_exit_data, GOACC_update)
7849 (GOACC_declare): Redefine the "device" argument to "flags".
7850
7851 2018-12-28 Thomas Schwinge <thomas@codesourcery.com>
7852 Cesar Philippidis <cesar@codesourcery.com>
7853
7854 * target.c (struct gomp_coalesce_chunk): New structure.
7855 (struct gomp_coalesce_buf): Update the chunks member to use that
7856 type. Adjust all users.
7857
7858 2018-12-19 Tom de Vries <tdevries@suse.de>
7859
7860 * testsuite/libgomp.oacc-c-c++-common/pr85381-2.c: New test.
7861 * testsuite/libgomp.oacc-c-c++-common/pr85381-3.c: New test.
7862 * testsuite/libgomp.oacc-c-c++-common/pr85381-4.c: New test.
7863
7864 2018-12-19 Tom de Vries <tdevries@suse.de>
7865
7866 * testsuite/lib/libgomp.exp: Add load_lib of scanoffloadrtl.exp.
7867 * testsuite/libgomp.oacc-c-c++-common/nvptx-merged-loop.c: Move from
7868 gcc/testsuite/gcc.dg/goacc.
7869 * testsuite/libgomp.oacc-c-c++-common/nvptx-sese-1.c: Same.
7870
7871 2018-12-14 Thomas Schwinge <thomas@codesourcery.com>
7872 Chung-Lin Tang <cltang@codesourcery.com>
7873
7874 * oacc-mem.c (acc_present_or_create): Remove definition and change
7875 to alias of acc_create.
7876 (acc_present_or_copyin): Remove definition and change to alias of
7877 acc_copyin.
7878 * oacc-parallel.c (GOACC_enter_exit_data): Call acc_create instead
7879 of acc_present_or_create.
7880 * testsuite/libgomp.oacc-c-c++-common/data-already-1.c: Remove.
7881 * testsuite/libgomp.oacc-c-c++-common/data-already-2.c: Likewise.
7882 * testsuite/libgomp.oacc-c-c++-common/data-already-3.c: Likewise.
7883 * testsuite/libgomp.oacc-c-c++-common/data-already-4.c: Likewise.
7884 * testsuite/libgomp.oacc-c-c++-common/data-already-5.c: Likewise.
7885 * testsuite/libgomp.oacc-c-c++-common/data-already-6.c: Likewise.
7886 * testsuite/libgomp.oacc-c-c++-common/data-already-7.c: Likewise.
7887 * testsuite/libgomp.oacc-c-c++-common/data-already-8.c: Likewise.
7888 * testsuite/libgomp.oacc-fortran/data-already-1.f: Likewise.
7889 * testsuite/libgomp.oacc-fortran/data-already-2.f: Likewise.
7890 * testsuite/libgomp.oacc-fortran/data-already-3.f: Likewise.
7891 * testsuite/libgomp.oacc-fortran/data-already-4.f: Likewise.
7892 * testsuite/libgomp.oacc-fortran/data-already-5.f: Likewise.
7893 * testsuite/libgomp.oacc-fortran/data-already-6.f: Likewise.
7894 * testsuite/libgomp.oacc-fortran/data-already-7.f: Likewise.
7895 * testsuite/libgomp.oacc-fortran/data-already-8.f: Likewise.
7896
7897 2018-12-14 Thomas Schwinge <thomas@codesourcery.com>
7898
7899 PR libgomp/88495
7900 * plugin/plugin-nvptx.c (nvptx_wait_async): Don't refuse
7901 "identical parameters".
7902 * testsuite/libgomp.oacc-c-c++-common/asyncwait-nop-1.c: Update.
7903 * testsuite/libgomp.oacc-c-c++-common/lib-80.c: Remove.
7904
7905 PR libgomp/88484
7906 * oacc-parallel.c (GOACC_wait): Correct handling for "async >= 0".
7907 * testsuite/libgomp.oacc-c-c++-common/asyncwait-nop-1.c: New file.
7908
7909 PR libgomp/88407
7910 * plugin/plugin-nvptx.c (nvptx_async_test, nvptx_wait)
7911 (nvptx_wait_async): Unseen async-argument is a no-op.
7912 * testsuite/libgomp.oacc-c-c++-common/async_queue-1.c: Update.
7913 * testsuite/libgomp.oacc-c-c++-common/data-2-lib.c: Likewise.
7914 * testsuite/libgomp.oacc-c-c++-common/data-2.c: Likewise.
7915 * testsuite/libgomp.oacc-c-c++-common/lib-79.c: Likewise.
7916 * testsuite/libgomp.oacc-fortran/lib-12.f90: Likewise.
7917 * testsuite/libgomp.oacc-c-c++-common/lib-71.c: Merge into...
7918 * testsuite/libgomp.oacc-c-c++-common/lib-69.c: ... this. Update.
7919 * testsuite/libgomp.oacc-c-c++-common/lib-77.c: Merge into...
7920 * testsuite/libgomp.oacc-c-c++-common/lib-74.c: ... this. Update
7921
7922 * testsuite/libgomp.oacc-c-c++-common/data-2-lib.c: Revise.
7923 * testsuite/libgomp.oacc-c-c++-common/data-2.c: Likewise.
7924
7925 2018-12-14 Chung-Lin Tang <cltang@codesourcery.com>
7926
7927 * testsuite/libgomp.oacc-c-c++-common/data-2-lib.c: Adjust.
7928 * testsuite/libgomp.oacc-c-c++-common/data-2.c: Likewise.
7929 * testsuite/libgomp.oacc-c-c++-common/data-3.c: Likewise.
7930
7931 2018-12-14 Thomas Schwinge <thomas@codesourcery.com>
7932
7933 PR libgomp/88370
7934 * libgomp.texi (acc_get_current_cuda_context, acc_get_cuda_stream)
7935 (acc_set_cuda_stream): Clarify.
7936 * oacc-cuda.c (acc_get_cuda_stream, acc_set_cuda_stream): Use
7937 "async_valid_p".
7938 * plugin/plugin-nvptx.c (nvptx_set_cuda_stream): Refuse "async ==
7939 acc_async_sync".
7940 * testsuite/libgomp.oacc-c-c++-common/acc_set_cuda_stream-1.c: New file.
7941 * testsuite/libgomp.oacc-c-c++-common/async_queue-1.c: Likewise.
7942 * testsuite/libgomp.oacc-c-c++-common/lib-84.c: Update.
7943 * testsuite/libgomp.oacc-c-c++-common/lib-85.c: Likewise.
7944
7945 2018-12-14 Tom de Vries <tdevries@suse.de>
7946
7947 * testsuite/libgomp.c-c++-common/function-not-offloaded-aux.c: New test.
7948 * testsuite/libgomp.c-c++-common/function-not-offloaded.c: New test.
7949 * testsuite/libgomp.c-c++-common/variable-not-offloaded.c: New test.
7950 * testsuite/libgomp.oacc-c-c++-common/function-not-offloaded.c: New test.
7951 * testsuite/libgomp.oacc-c-c++-common/variable-not-offloaded.c: New test.
7952
7953 2018-12-13 Tom de Vries <tdevries@suse.de>
7954
7955 * affinity-fmt.c (gomp_print_string): New function, factored out of ...
7956 (omp_display_affinity, gomp_display_affinity_thread): ... here, and ...
7957 * fortran.c (omp_display_affinity_): ... here.
7958 * libgomp.h (gomp_print_string): Declare.
7959 * config/nvptx/affinity-fmt.c: New file. Include affinity-fmt.c,
7960 undefining HAVE_GETPID and HAVE_GETHOSTNAME, and mapping fwrite to
7961 write.
7962
7963 2018-12-13 Jakub Jelinek <jakub@redhat.com>
7964
7965 PR libgomp/88460
7966 * testsuite/libgomp.c++/for-24.C (results): Include it in
7967 omp declare target region.
7968 (main): Use map (always, tofrom: results) instead of
7969 map (tofrom: results).
7970
7971 2018-12-12 Jakub Jelinek <jakub@redhat.com>
7972
7973 PR fortran/88463
7974 * testsuite/libgomp.fortran/pr88463-1.f90: New test.
7975 * testsuite/libgomp.fortran/pr88463-2.f90: New test.
7976
7977 * testsuite/libgomp.c-c++-common/for-16.c: New test.
7978
7979 2018-12-12 Andreas Schwab <schwab@suse.de>
7980
7981 * config/linux/ia64/futex.h (sys_futex0): Don't mark r12 as
7982 clobbered.
7983
7984 2018-12-09 Thomas Koenig <tkoenig@gcc.gnu.org>
7985
7986 PR fortran/88411
7987 * testsuite/libgomp.fortran/async_io_8.f90: New test.
7988
7989 2018-12-09 Thomas Schwinge <thomas@codesourcery.com>
7990 Jakub Jelinek <jakub@redhat.com>
7991
7992 * target.c (gomp_map_vars): Call gomp_copy_host2dev instead of
7993 devicep->host2dev_func.
7994
7995 2018-12-08 Jakub Jelinek <jakub@redhat.com>
7996
7997 PR libgomp/87995
7998 * testsuite/libgomp.c-c++-common/cancel-taskgroup-3.c: Require
7999 tls_runtime effective target.
8000 (t): New threadprivate variable.
8001 (main): Set t in threads which execute iterations of the worksharing
8002 loop. Propagate that to the task after the loop and don't abort
8003 if the current taskgroup hasn't been cancelled.
8004
8005 2018-12-02 Jakub Jelinek <jakub@redhat.com>
8006
8007 * testsuite/libgomp.c/task-reduction-3.c: New test.
8008
8009 * testsuite/libgomp.c-c++-common/cancel-taskgroup-4.c: New test.
8010
8011 2018-11-30 Cesar Philippidis <cesar@codesourcery.com>
8012
8013 PR libgomp/88288
8014 * oacc-parallel.c (GOACC_parallel_keyed): Add offset to devaddrs.
8015 * testsuite/libgomp.oacc-c-c++-common/pr88288.c: New test.
8016
8017 2018-11-30 Thomas Schwinge <thomas@codesourcery.com>
8018
8019 * testsuite/libgomp.oacc-fortran/lib-16-2.f90: New file.
8020
8021 2018-10-19 Richard Biener <rguenther@suse.de>
8022
8023 PR tree-optimization/88182
8024 * testsuite/libgomp.c++/pr88182.C: Move to g++.dg/gomp.
8025
8026 2018-11-26 Jakub Jelinek <jakub@redhat.com>
8027
8028 * testsuite/Makefile.am (AUTOMAKE_OPTIONS): Drop dejagnu.
8029 (RUNTEST): Don't define.
8030 (RUNTESTDEFAULTFLAGS): Add.
8031 (check-DEJAGNU, site.exp, distclean-DEJAGNU): New goals.
8032 (distclean-am): Depend on distclean-DEJAGNU.
8033 (check-am): If -j% option is present in MFLAGS and if
8034 `getconf _NPROCESSORS_ONLN` is more than 8, export OMP_NUM_THREADS=8.
8035 (.PHONY): Add check-DEJAGNU and distclean-DEJAGNU.
8036 * testsuite/Makefile.in: Regenerated.
8037
8038 2018-11-26 Richard Biener <rguenther@suse.de>
8039
8040 PR tree-optimization/88182
8041 * testsuite/libgomp.c++/pr88182.C: New testcase.
8042
8043 2018-11-20 Jakub Jelinek <jakub@redhat.com>
8044
8045 PR bootstrap/88106
8046 * config/mingw32/affinity-fmt.c: New file.
8047
8048 2018-11-09 Jakub Jelinek <jakub@redhat.com>
8049
8050 * affinity-fmt.c: Include inttypes.h if HAVE_INTTYPES_H.
8051 (gomp_display_affinity): Use __builtin_choose_expr to handle
8052 properly handle argument having integral, or pointer or some other
8053 type. If inttypes.h is available and PRIx64 is defined, use PRIx64
8054 with uint64_t type instead of %llx and unsigned long long.
8055
8056 * testsuite/libgomp.c-c++-common/task-reduction-13.c: New test.
8057 * testsuite/libgomp.c-c++-common/task-reduction-14.c: New test.
8058
8059 2018-11-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8060
8061 * affinity.c: Include <string.h>, <stdio.h>.
8062 (gomp_display_affinity_place): Remove cpusetp.
8063 * teams.c: Include <limits.h>.
8064
8065 2018-11-08 Jakub Jelinek <jakub@redhat.com>
8066
8067 * testsuite/libgomp.c-c++-common/task-reduction-8.c (bar): Add
8068 in_reduction clause for s[0].
8069
8070 * affinity.c (gomp_display_affinity_place): New function.
8071 * affinity-fmt.c: New file.
8072 * alloc.c (gomp_aligned_alloc, gomp_aligned_free): New functions.
8073 * config/linux/affinity.c (gomp_display_affinity_place): New function.
8074 * config/nvptx/icv-device.c (omp_get_num_teams, omp_get_team_num):
8075 Move these functions to ...
8076 * config/nvptx/teams.c: ... here. New file.
8077 * config/nvptx/target.c (omp_pause_resource, omp_pause_resource_all):
8078 New functions.
8079 * config/nvptx/team.c (gomp_team_start, gomp_pause_host): New
8080 functions.
8081 * configure.ac: Check for aligned_alloc, posix_memalign, memalign
8082 and _aligned_malloc.
8083 (HAVE_UNAME, HAVE_GETHOSTNAME, HAVE_GETPID): Add new tests.
8084 * configure.tgt: Add -DUSING_INITIAL_EXEC_TLS to XCFLAGS for Linux.
8085 * env.c (gomp_display_affinity_var, gomp_affinity_format_var,
8086 gomp_affinity_format_len): New variables.
8087 (parse_schedule): Parse monotonic and nonmonotonic modifiers in
8088 OMP_SCHEDULE variable. Set GFS_MONOTONIC for monotonic schedules.
8089 (handle_omp_display_env): Display monotonic/nonmonotonic schedule
8090 modifiers. Display (non-default) chunk sizes. Print
8091 OMP_DISPLAY_AFFINITY and OMP_AFFINITY_FORMAT.
8092 (initialize_env): Don't call pthread_attr_setdetachstate. Handle
8093 OMP_DISPLAY_AFFINITY and OMP_AFFINITY_FORMAT env vars.
8094 * fortran.c: Include stdio.h and string.h.
8095 (omp_pause_resource, omp_pause_resource_all): Add ialias_redirect.
8096 (omp_get_schedule_, omp_get_schedule_8_): Mask off GFS_MONOTONIC bit.
8097 (omp_set_affinity_format_, omp_get_affinity_format_,
8098 omp_display_affinity_, omp_capture_affinity_, omp_pause_resource_,
8099 omp_pause_resource_all_): New functions.
8100 * icv.c (omp_set_schedule): Mask off omp_sched_monotonic bit in
8101 switch.
8102 * icv-device.c (omp_get_num_teams, omp_get_team_num): Move these
8103 functions to ...
8104 * teams.c: ... here. New file.
8105 * libgomp_g.h: Include gstdint.h.
8106 (GOMP_loop_nonmonotonic_runtime_start,
8107 GOMP_loop_maybe_nonmonotonic_runtime_start, GOMP_loop_start,
8108 GOMP_loop_ordered_start, GOMP_loop_nonmonotonic_runtime_next,
8109 GOMP_loop_maybe_nonmonotonic_runtime_next, GOMP_loop_doacross_start,
8110 GOMP_parallel_loop_nonmonotonic_runtime,
8111 GOMP_parallel_loop_maybe_nonmonotonic_runtime,
8112 GOMP_loop_ull_nonmonotonic_runtime_start,
8113 GOMP_loop_ull_maybe_nonmonotonic_runtime_start, GOMP_loop_ull_start,
8114 GOMP_loop_ull_ordered_start, GOMP_loop_ull_nonmonotonic_runtime_next,
8115 GOMP_loop_ull_maybe_nonmonotonic_runtime_next,
8116 GOMP_loop_ull_doacross_start, GOMP_parallel_reductions,
8117 GOMP_taskwait_depend, GOMP_taskgroup_reduction_register,
8118 GOMP_taskgroup_reduction_unregister, GOMP_task_reduction_remap,
8119 GOMP_workshare_task_reduction_unregister, GOMP_sections2_start,
8120 GOMP_teams_reg): Declare.
8121 * libgomp.h (GOMP_HAVE_EFFICIENT_ALIGNED_ALLOC): Define unless
8122 gomp_aligned_alloc uses fallback implementation.
8123 (gomp_aligned_alloc, gomp_aligned_free): Declare.
8124 (enum gomp_schedule_type): Add GFS_MONOTONIC.
8125 (struct gomp_doacross_work_share): Add extra field.
8126 (struct gomp_work_share): Add task_reductions field.
8127 (struct gomp_taskgroup): Add workshare and reductions fields.
8128 (GOMP_NEEDS_THREAD_HANDLE): Define if needed.
8129 (gomp_thread_handle): New typedef.
8130 (gomp_display_affinity_place, gomp_set_affinity_format,
8131 gomp_display_string, gomp_display_affinity,
8132 gomp_display_affinity_thread): Declare.
8133 (gomp_doacross_init, gomp_doacross_ull_init): Add size_t argument.
8134 (gomp_parallel_reduction_register, gomp_workshare_taskgroup_start,
8135 gomp_workshare_task_reduction_register): Declare.
8136 (gomp_team_start): Add taskgroup argument.
8137 (gomp_pause_host): Declare.
8138 (gomp_init_work_share, gomp_work_share_start): Change bool argument
8139 to size_t.
8140 (gomp_thread_self, gomp_thread_to_pthread_t): New inline functions.
8141 * libgomp.map (GOMP_5.0): Export GOMP_loop_start,
8142 GOMP_loop_ordered_start, GOMP_loop_doacross_start,
8143 GOMP_loop_ull_start, GOMP_loop_ull_ordered_start,
8144 GOMP_loop_ull_doacross_start,
8145 GOMP_workshare_task_reduction_unregister, GOMP_sections2_start,
8146 GOMP_loop_maybe_nonmonotonic_runtime_next,
8147 GOMP_loop_maybe_nonmonotonic_runtime_start,
8148 GOMP_loop_nonmonotonic_runtime_next,
8149 GOMP_loop_nonmonotonic_runtime_start,
8150 GOMP_loop_ull_maybe_nonmonotonic_runtime_next,
8151 GOMP_loop_ull_maybe_nonmonotonic_runtime_start,
8152 GOMP_loop_ull_nonmonotonic_runtime_next,
8153 GOMP_loop_ull_nonmonotonic_runtime_start,
8154 GOMP_parallel_loop_maybe_nonmonotonic_runtime,
8155 GOMP_parallel_loop_nonmonotonic_runtime, GOMP_parallel_reductions,
8156 GOMP_taskgroup_reduction_register,
8157 GOMP_taskgroup_reduction_unregister, GOMP_task_reduction_remap,
8158 GOMP_teams_reg and GOMP_taskwait_depend.
8159 (OMP_5.0): Export omp_pause_resource{,_all}{,_},
8160 omp_{capture,display}_affinity{,_}, and
8161 omp_[gs]et_affinity_format{,_}.
8162 * loop.c: Include string.h.
8163 (GOMP_loop_runtime_next): Add ialias.
8164 (GOMP_taskgroup_reduction_register): Add ialias_redirect.
8165 (gomp_loop_static_start, gomp_loop_dynamic_start,
8166 gomp_loop_guided_start, gomp_loop_ordered_static_start,
8167 gomp_loop_ordered_dynamic_start, gomp_loop_ordered_guided_start,
8168 gomp_loop_doacross_static_start, gomp_loop_doacross_dynamic_start,
8169 gomp_loop_doacross_guided_start): Adjust gomp_work_share_start
8170 or gomp_doacross_init callers.
8171 (gomp_adjust_sched, GOMP_loop_start, GOMP_loop_ordered_start,
8172 GOMP_loop_doacross_start): New functions.
8173 (GOMP_loop_runtime_start, GOMP_loop_ordered_runtime_start,
8174 GOMP_loop_doacross_runtime_start, GOMP_parallel_loop_runtime_start):
8175 Mask off GFS_MONOTONIC bit.
8176 (GOMP_loop_maybe_nonmonotonic_runtime_next,
8177 GOMP_loop_maybe_nonmonotonic_runtime_start,
8178 GOMP_loop_nonmonotonic_runtime_next,
8179 GOMP_loop_nonmonotonic_runtime_start,
8180 GOMP_parallel_loop_maybe_nonmonotonic_runtime,
8181 GOMP_parallel_loop_nonmonotonic_runtime): New aliases or wrapper
8182 functions.
8183 (gomp_parallel_loop_start): Pass NULL as taskgroup to
8184 gomp_team_start.
8185 * loop_ull.c: Include string.h.
8186 (GOMP_loop_ull_runtime_next): Add ialias.
8187 (GOMP_taskgroup_reduction_register): Add ialias_redirect.
8188 (gomp_loop_ull_static_start, gomp_loop_ull_dynamic_start,
8189 gomp_loop_ull_guided_start, gomp_loop_ull_ordered_static_start,
8190 gomp_loop_ull_ordered_dynamic_start,
8191 gomp_loop_ull_ordered_guided_start,
8192 gomp_loop_ull_doacross_static_start,
8193 gomp_loop_ull_doacross_dynamic_start,
8194 gomp_loop_ull_doacross_guided_start): Adjust gomp_work_share_start
8195 and gomp_doacross_ull_init callers.
8196 (gomp_adjust_sched, GOMP_loop_ull_start, GOMP_loop_ull_ordered_start,
8197 GOMP_loop_ull_doacross_start): New functions.
8198 (GOMP_loop_ull_runtime_start,
8199 GOMP_loop_ull_ordered_runtime_start,
8200 GOMP_loop_ull_doacross_runtime_start): Mask off GFS_MONOTONIC bit.
8201 (GOMP_loop_ull_maybe_nonmonotonic_runtime_next,
8202 GOMP_loop_ull_maybe_nonmonotonic_runtime_start,
8203 GOMP_loop_ull_nonmonotonic_runtime_next,
8204 GOMP_loop_ull_nonmonotonic_runtime_start): Likewise.
8205 * Makefile.am (libgomp_la_SOURCES): Add teams.c and affinity-fmt.c.
8206 * omp.h.in (enum omp_sched_t): Add omp_sched_monotonic.
8207 (omp_pause_resource_t, omp_depend_t): New typedefs.
8208 (enum omp_lock_hint_t): Renamed to ...
8209 (enum omp_sync_hint_t): ... this. Define omp_sync_hint_*
8210 enumerators using numbers and omp_lock_hint_* as their aliases.
8211 (omp_lock_hint_t): New typedef. Rename to ...
8212 (omp_sync_hint_t): ... this.
8213 (omp_init_lock_with_hint, omp_init_nest_lock_with_hint): Use
8214 omp_sync_hint_t instead of omp_lock_hint_t.
8215 (omp_pause_resource, omp_pause_resource_all, omp_set_affinity_format,
8216 omp_get_affinity_format, omp_display_affinity, omp_capture_affinity):
8217 Declare.
8218 (omp_target_is_present, omp_target_disassociate_ptr):
8219 Change first argument from void * to const void *.
8220 (omp_target_memcpy, omp_target_memcpy_rect): Change second argument
8221 from void * to const void *.
8222 (omp_target_associate_ptr): Change first and second arguments from
8223 void * to const void *.
8224 * omp_lib.f90.in (omp_pause_resource_kind, omp_pause_soft,
8225 omp_pause_hard): New parameters.
8226 (omp_pause_resource, omp_pause_resource_all, omp_set_affinity_format,
8227 omp_get_affinity_format, omp_display_affinity, omp_capture_affinity):
8228 New interfaces.
8229 * omp_lib.h.in (omp_pause_resource_kind, omp_pause_soft,
8230 omp_pause_hard): New parameters.
8231 (omp_pause_resource, omp_pause_resource_all, omp_set_affinity_format,
8232 omp_get_affinity_format, omp_display_affinity, omp_capture_affinity):
8233 New externals.
8234 * ordered.c (gomp_doacross_init, gomp_doacross_ull_init): Add
8235 EXTRA argument. If not needed to prepare array, if extra is 0,
8236 clear ws->doacross, otherwise allocate just doacross structure and
8237 extra payload. If array is needed, allocate also extra payload.
8238 (GOMP_doacross_post, GOMP_doacross_wait, GOMP_doacross_ull_post,
8239 GOMP_doacross_ull_wait): Handle doacross->array == NULL like
8240 doacross == NULL.
8241 * parallel.c (GOMP_parallel_start): Pass NULL as taskgroup to
8242 gomp_team_start.
8243 (GOMP_parallel): Likewise. Formatting fix.
8244 (GOMP_parallel_reductions): New function.
8245 (GOMP_cancellation_point): If taskgroup has workshare
8246 flag set, check cancelled of prev taskgroup if any.
8247 (GOMP_cancel): If taskgroup has workshare flag set, set cancelled
8248 on prev taskgroup if any.
8249 * sections.c: Include string.h.
8250 (GOMP_taskgroup_reduction_register): Add ialias_redirect.
8251 (GOMP_sections_start): Adjust gomp_work_share_start caller.
8252 (GOMP_sections2_start): New function.
8253 (GOMP_parallel_sections_start, GOMP_parallel_sections):
8254 Pass NULL as taskgroup to gomp_team_start.
8255 * single.c (GOMP_single_start, GOMP_single_copy_start): Adjust
8256 gomp_work_share_start callers.
8257 * target.c (GOMP_target_update_ext, GOMP_target_enter_exit_data):
8258 If taskgroup has workshare flag set, check cancelled on prev
8259 taskgroup if any. Guard all cancellation tests with
8260 gomp_cancel_var test.
8261 (omp_target_is_present, omp_target_disassociate_ptr):
8262 Change ptr argument from void * to const void *.
8263 (omp_target_memcpy): Change src argument from void * to const void *.
8264 (omp_target_memcpy_rect): Likewise.
8265 (omp_target_memcpy_rect_worker): Likewise. Use const char * casts
8266 instead of char * where needed.
8267 (omp_target_associate_ptr): Change host_ptr and device_ptr arguments
8268 from void * to const void *.
8269 (omp_pause_resource, omp_pause_resource_all): New functions.
8270 * task.c (gomp_task_handle_depend): Handle new depend array format
8271 in addition to the old. Handle mutexinoutset kinds the same as
8272 inout for now, handle unspecified kinds.
8273 (gomp_create_target_task): If taskgroup has workshare flag set, check
8274 cancelled on prev taskgroup if any. Guard all cancellation tests with
8275 gomp_cancel_var test. Handle new depend array format count in
8276 addition to the old.
8277 (GOMP_task): Likewise. Adjust function comment.
8278 (gomp_task_run_pre): If taskgroup has workshare flag set, check
8279 cancelled on prev taskgroup if any. Guard all cancellation tests with
8280 gomp_cancel_var test.
8281 (GOMP_taskwait_depend): New function.
8282 (gomp_task_maybe_wait_for_dependencies): Handle new depend array
8283 format in addition to the old. Handle mutexinoutset kinds the same as
8284 inout for now, handle unspecified kinds. Fix a function comment typo.
8285 (gomp_taskgroup_init): New function.
8286 (GOMP_taskgroup_start): Use it.
8287 (gomp_reduction_register, gomp_create_artificial_team,
8288 GOMP_taskgroup_reduction_register,
8289 GOMP_taskgroup_reduction_unregister, GOMP_task_reduction_remap,
8290 gomp_parallel_reduction_register,
8291 gomp_workshare_task_reduction_register,
8292 gomp_workshare_taskgroup_start,
8293 GOMP_workshare_task_reduction_unregister): New functions.
8294 * taskloop.c (GOMP_taskloop): If taskgroup has workshare flag set,
8295 check cancelled on prev taskgroup if any. Guard all cancellation
8296 tests with gomp_cancel_var test. Handle GOMP_TASK_FLAG_REDUCTION flag
8297 by calling GOMP_taskgroup_reduction_register.
8298 * team.c (gomp_thread_attr): Remove comment.
8299 (struct gomp_thread_start_data): Add handle field.
8300 (gomp_thread_start): Call pthread_detach.
8301 (gomp_new_team): Adjust gomp_init_work_share caller.
8302 (gomp_free_pool_helper): Call pthread_detach.
8303 (gomp_team_start): Add taskgroup argument, initialize implicit
8304 tasks' taskgroup field to that. Don't call
8305 pthread_attr_setdetachstate. Handle OMP_DISPLAY_AFFINITY env var.
8306 (gomp_team_end): Determine nesting by thr->ts.level != 0
8307 rather than thr->ts.team != NULL.
8308 (gomp_pause_pool_helper, gomp_pause_host): New functions.
8309 * work.c (alloc_work_share): Use gomp_aligned_alloc instead of
8310 gomp_malloc if GOMP_HAVE_EFFICIENT_ALIGNED_ALLOC is defined.
8311 (gomp_init_work_share): Change ORDERED argument from bool to size_t,
8312 if more than 1 allocate also extra payload at the end of array. Never
8313 keep ordered_team_ids NULL, set it to inline_ordered_team_ids instead.
8314 (gomp_work_share_start): Change ORDERED argument from bool to size_t,
8315 return true instead of ws.
8316 * Makefile.in: Regenerated.
8317 * configure: Regenerated.
8318 * config.h.in: Regenerated.
8319 * testsuite/libgomp.c/cancel-for-2.c (foo): Use cancel modifier
8320 in some cases.
8321 * testsuite/libgomp.c-c++-common/cancel-parallel-1.c: New test.
8322 * testsuite/libgomp.c-c++-common/cancel-taskgroup-3.c: New test.
8323 * testsuite/libgomp.c-c++-common/depend-iterator-1.c: New test.
8324 * testsuite/libgomp.c-c++-common/depend-iterator-2.c: New test.
8325 * testsuite/libgomp.c-c++-common/depend-mutexinout-1.c: New test.
8326 * testsuite/libgomp.c-c++-common/depend-mutexinout-2.c: New test.
8327 * testsuite/libgomp.c-c++-common/depobj-1.c: New test.
8328 * testsuite/libgomp.c-c++-common/display-affinity-1.c: New test.
8329 * testsuite/libgomp.c-c++-common/for-10.c: New test.
8330 * testsuite/libgomp.c-c++-common/for-11.c: New test.
8331 * testsuite/libgomp.c-c++-common/for-12.c: New test.
8332 * testsuite/libgomp.c-c++-common/for-13.c: New test.
8333 * testsuite/libgomp.c-c++-common/for-14.c: New test.
8334 * testsuite/libgomp.c-c++-common/for-15.c: New test.
8335 * testsuite/libgomp.c-c++-common/for-2.h: If CONDNE macro is defined,
8336 define a different N(test), don't define N(f0) to N(f14), but instead
8337 define N(f20) to N(f34) using != comparisons.
8338 * testsuite/libgomp.c-c++-common/for-7.c: New test.
8339 * testsuite/libgomp.c-c++-common/for-8.c: New test.
8340 * testsuite/libgomp.c-c++-common/for-9.c: New test.
8341 * testsuite/libgomp.c-c++-common/master-combined-1.c: New test.
8342 * testsuite/libgomp.c-c++-common/pause-1.c: New test.
8343 * testsuite/libgomp.c-c++-common/pause-2.c: New test.
8344 * testsuite/libgomp.c-c++-common/pr66199-10.c: New test.
8345 * testsuite/libgomp.c-c++-common/pr66199-11.c: New test.
8346 * testsuite/libgomp.c-c++-common/pr66199-12.c: New test.
8347 * testsuite/libgomp.c-c++-common/pr66199-13.c: New test.
8348 * testsuite/libgomp.c-c++-common/pr66199-14.c: New test.
8349 * testsuite/libgomp.c-c++-common/simd-1.c: New test.
8350 * testsuite/libgomp.c-c++-common/taskloop-reduction-1.c: New test.
8351 * testsuite/libgomp.c-c++-common/taskloop-reduction-2.c: New test.
8352 * testsuite/libgomp.c-c++-common/taskloop-reduction-3.c: New test.
8353 * testsuite/libgomp.c-c++-common/taskloop-reduction-4.c: New test.
8354 * testsuite/libgomp.c-c++-common/task-reduction-11.c: New test.
8355 * testsuite/libgomp.c-c++-common/task-reduction-12.c: New test.
8356 * testsuite/libgomp.c-c++-common/task-reduction-1.c: New test.
8357 * testsuite/libgomp.c-c++-common/task-reduction-2.c: New test.
8358 * testsuite/libgomp.c-c++-common/task-reduction-3.c: New test.
8359 * testsuite/libgomp.c-c++-common/task-reduction-4.c: New test.
8360 * testsuite/libgomp.c-c++-common/task-reduction-5.c: New test.
8361 * testsuite/libgomp.c-c++-common/task-reduction-6.c: New test.
8362 * testsuite/libgomp.c-c++-common/task-reduction-7.c: New test.
8363 * testsuite/libgomp.c-c++-common/task-reduction-8.c: New test.
8364 * testsuite/libgomp.c-c++-common/task-reduction-9.c: New test.
8365 * testsuite/libgomp.c-c++-common/taskwait-depend-1.c: New test.
8366 * testsuite/libgomp.c++/depend-1.C: New test.
8367 * testsuite/libgomp.c++/depend-iterator-1.C: New test.
8368 * testsuite/libgomp.c++/depobj-1.C: New test.
8369 * testsuite/libgomp.c++/for-16.C: New test.
8370 * testsuite/libgomp.c++/for-21.C: New test.
8371 * testsuite/libgomp.c++/for-22.C: New test.
8372 * testsuite/libgomp.c++/for-23.C: New test.
8373 * testsuite/libgomp.c++/for-24.C: New test.
8374 * testsuite/libgomp.c++/for-25.C: New test.
8375 * testsuite/libgomp.c++/for-26.C: New test.
8376 * testsuite/libgomp.c++/taskloop-reduction-1.C: New test.
8377 * testsuite/libgomp.c++/taskloop-reduction-2.C: New test.
8378 * testsuite/libgomp.c++/taskloop-reduction-3.C: New test.
8379 * testsuite/libgomp.c++/taskloop-reduction-4.C: New test.
8380 * testsuite/libgomp.c++/task-reduction-10.C: New test.
8381 * testsuite/libgomp.c++/task-reduction-11.C: New test.
8382 * testsuite/libgomp.c++/task-reduction-12.C: New test.
8383 * testsuite/libgomp.c++/task-reduction-13.C: New test.
8384 * testsuite/libgomp.c++/task-reduction-14.C: New test.
8385 * testsuite/libgomp.c++/task-reduction-15.C: New test.
8386 * testsuite/libgomp.c++/task-reduction-16.C: New test.
8387 * testsuite/libgomp.c++/task-reduction-17.C: New test.
8388 * testsuite/libgomp.c++/task-reduction-18.C: New test.
8389 * testsuite/libgomp.c++/task-reduction-19.C: New test.
8390 * testsuite/libgomp.c/task-reduction-1.c: New test.
8391 * testsuite/libgomp.c++/task-reduction-1.C: New test.
8392 * testsuite/libgomp.c/task-reduction-2.c: New test.
8393 * testsuite/libgomp.c++/task-reduction-2.C: New test.
8394 * testsuite/libgomp.c++/task-reduction-3.C: New test.
8395 * testsuite/libgomp.c++/task-reduction-4.C: New test.
8396 * testsuite/libgomp.c++/task-reduction-5.C: New test.
8397 * testsuite/libgomp.c++/task-reduction-6.C: New test.
8398 * testsuite/libgomp.c++/task-reduction-7.C: New test.
8399 * testsuite/libgomp.c++/task-reduction-8.C: New test.
8400 * testsuite/libgomp.c++/task-reduction-9.C: New test.
8401 * testsuite/libgomp.c/teams-1.c: New test.
8402 * testsuite/libgomp.c/teams-2.c: New test.
8403 * testsuite/libgomp.c/thread-limit-4.c: New test.
8404 * testsuite/libgomp.c/thread-limit-5.c: New test.
8405 * testsuite/libgomp.fortran/display-affinity-1.f90: New test.
8406
8407 2018-11-06 Chung-Lin Tang <cltang@codesourcery.com>
8408
8409 * oacc-mem.c (memcpy_tofrom_device): New function, combined from
8410 acc_memcpy_to/from_device functions, now with async parameter.
8411 (acc_memcpy_to_device): Modify to use memcpy_tofrom_device.
8412 (acc_memcpy_from_device): Likewise.
8413 (acc_memcpy_to_device_async): New API function.
8414 (acc_memcpy_from_device_async): Likewise.
8415 (present_create_copy): Add async parameter and async setting/unsetting.
8416 (acc_create): Adjust present_create_copy call.
8417 (acc_copyin): Likewise.
8418 (acc_present_or_create): Likewise.
8419 (acc_present_or_copyin): Likewise.
8420 (acc_create_async): New API function.
8421 (acc_copyin_async): New API function.
8422 (delete_copyout): Add async parameter and async setting/unsetting.
8423 (acc_delete): Adjust delete_copyout call.
8424 (acc_copyout): Likewise.
8425 (acc_delete_async): New API function.
8426 (acc_copyout_async): Likewise.
8427 (update_dev_host): Add async parameter and async setting/unsetting.
8428 (acc_update_device): Adjust update_dev_host call.
8429 (acc_update_self): Likewise.
8430 (acc_update_device_async): New API function.
8431 (acc_update_self_async): Likewise.
8432 * openacc.h (acc_copyin_async): Declare new API function.
8433 (acc_create_async): Likewise.
8434 (acc_copyout_async): Likewise.
8435 (acc_delete_async): Likewise.
8436 (acc_update_device_async): Likewise.
8437 (acc_update_self_async): Likewise.
8438 (acc_memcpy_to_device_async): Likewise.
8439 (acc_memcpy_from_device_async): Likewise.
8440 * openacc_lib.h (acc_copyin_async_32_h): New subroutine.
8441 (acc_copyin_async_64_h): New subroutine.
8442 (acc_copyin_async_array_h): New subroutine.
8443 (acc_create_async_32_h): New subroutine.
8444 (acc_create_async_64_h): New subroutine.
8445 (acc_create_async_array_h): New subroutine.
8446 (acc_copyout_async_32_h): New subroutine.
8447 (acc_copyout_async_64_h): New subroutine.
8448 (acc_copyout_async_array_h): New subroutine.
8449 (acc_delete_async_32_h): New subroutine.
8450 (acc_delete_async_64_h): New subroutine.
8451 (acc_delete_async_array_h): New subroutine.
8452 (acc_update_device_async_32_h): New subroutine.
8453 (acc_update_device_async_64_h): New subroutine.
8454 (acc_update_device_async_array_h): New subroutine.
8455 (acc_update_self_async_32_h): New subroutine.
8456 (acc_update_self_async_64_h): New subroutine.
8457 (acc_update_self_async_array_h): New subroutine.
8458 * openacc.f90 (acc_copyin_async_32_h): New subroutine.
8459 (acc_copyin_async_64_h): New subroutine.
8460 (acc_copyin_async_array_h): New subroutine.
8461 (acc_create_async_32_h): New subroutine.
8462 (acc_create_async_64_h): New subroutine.
8463 (acc_create_async_array_h): New subroutine.
8464 (acc_copyout_async_32_h): New subroutine.
8465 (acc_copyout_async_64_h): New subroutine.
8466 (acc_copyout_async_array_h): New subroutine.
8467 (acc_delete_async_32_h): New subroutine.
8468 (acc_delete_async_64_h): New subroutine.
8469 (acc_delete_async_array_h): New subroutine.
8470 (acc_update_device_async_32_h): New subroutine.
8471 (acc_update_device_async_64_h): New subroutine.
8472 (acc_update_device_async_array_h): New subroutine.
8473 (acc_update_self_async_32_h): New subroutine.
8474 (acc_update_self_async_64_h): New subroutine.
8475 (acc_update_self_async_array_h): New subroutine.
8476 * libgomp.map (OACC_2.5): Add acc_copyin_async*, acc_copyout_async*,
8477 acc_copyout_finalize_async*, acc_create_async*, acc_delete_async*,
8478 acc_delete_finalize_async*, acc_memcpy_from_device_async*,
8479 acc_memcpy_to_device_async*, acc_update_device_async*, and
8480 acc_update_self_async* entries.
8481 * testsuite/libgomp.oacc-c-c++-common/lib-94.c: New test.
8482 * testsuite/libgomp.oacc-c-c++-common/lib-95.c: New test.
8483 * testsuite/libgomp.oacc-fortran/lib-16.f90: New test.
8484
8485 2018-10-31 Joseph Myers <joseph@codesourcery.com>
8486
8487 PR bootstrap/82856
8488 * Makefile.am: Include multilib.am
8489 (AUTOMAKE_OPTIONS): Add info-in-builddir.
8490 (CLEANFILES): Remove libgomp.info.
8491 * configure.ac: Remove AC_PREREQ.
8492 * testsuite/Makefile.am (RUNTEST): Remove quotes.
8493 * Makefile.in, aclocal.m4, configure, testsuite/Makefile.in:
8494 Regenerate.
8495
8496 2018-10-29 Joseph Myers <joseph@codesourcery.com>
8497 Julian Brown <julian@codesourcery.com>
8498
8499 * testsuite/libgomp.oacc-c++/this.C: New.
8500
8501 2018-09-18 Cesar Philippidis <cesar@codesourcery.com>
8502
8503 * plugin/plugin-nvptx.c (struct cuda_map): New.
8504 (struct ptx_stream): Replace d, h, h_begin, h_end, h_next, h_prev,
8505 h_tail with (cuda_map *) map.
8506 (cuda_map_create): New function.
8507 (cuda_map_destroy): New function.
8508 (map_init): Update to use a linked list of cuda_map objects.
8509 (map_fini): Likewise.
8510 (map_pop): Likewise.
8511 (map_push): Likewise. Return CUdeviceptr instead of void.
8512 (init_streams_for_device): Remove stales references to ptx_stream
8513 members.
8514 (select_stream_for_async): Likewise.
8515 (nvptx_exec): Update call to map_init.
8516
8517 2018-09-09 Cesar Philippidis <cesar@codesourcery.com>
8518 Julian Brown <julian@codesourcery.com>
8519
8520 PR middle-end/86336
8521 * testsuite/libgomp.oacc-c++/non-scalar-data.C: Remove XFAIL.
8522
8523 2018-08-21 Nicolas Koenig <koenigni@gcc.gnu.org>
8524 Thomas Koenig <tkoenig@gcc.gnu.org>
8525
8526 PR fortran/25829
8527 * testsuite/libgomp.fortran/async_io_1.f90: New test.
8528 * testsuite/libgomp.fortran/async_io_2.f90: New test.
8529 * testsuite/libgomp.fortran/async_io_3.f90: New test.
8530 * testsuite/libgomp.fortran/async_io_4.f90: New test.
8531 * testsuite/libgomp.fortran/async_io_5.f90: New test.
8532 * testsuite/libgomp.fortran/async_io_6.f90: New test.
8533 * testsuite/libgomp.fortran/async_io_7.f90: New test.
8534
8535 2018-08-13 Cesar Philippidis <cesar@codesourcery.com>
8536 Tom de Vries <tdevries@suse.de>
8537
8538 PR target/85590
8539 * plugin/cuda/cuda.h (CUoccupancyB2DSize): New typedef.
8540 (cuOccupancyMaxPotentialBlockSize): Declare.
8541 * plugin/cuda-lib.def (cuOccupancyMaxPotentialBlockSize): New
8542 CUDA_ONE_CALL_MAYBE_NULL.
8543 * plugin/plugin-nvptx.c (CUDA_VERSION < 6050): Define
8544 CUoccupancyB2DSize and declare
8545 cuOccupancyMaxPotentialBlockSize.
8546 (nvptx_exec): Use cuOccupancyMaxPotentialBlockSize to set the
8547 default num_gangs and num_workers when the driver supports it.
8548
8549 2018-08-08 Tom de Vries <tdevries@suse.de>
8550
8551 * plugin/cuda-lib.def (cuLinkAddData_v2, cuLinkCreate_v2): Declare using
8552 CUDA_ONE_CALL_MAYBE_NULL.
8553 * plugin/plugin-nvptx.c (cuLinkAddData, cuLinkCreate): Undef and declare.
8554 (cuLinkAddData_v2, cuLinkCreate_v2): Declare.
8555 (link_ptx): Fall back to cuLinkAddData/cuLinkCreate if the _v2 versions
8556 are not found.
8557
8558 2018-08-08 Tom de Vries <tdevries@suse.de>
8559
8560 * plugin/cuda-lib.def (cuGetErrorString): Use CUDA_ONE_CALL_MAYBE_NULL.
8561 * plugin/plugin-nvptx.c (cuda_error): Handle if cuGetErrorString is not
8562 present.
8563
8564 2018-08-08 Tom de Vries <tdevries@suse.de>
8565
8566 * plugin/plugin-nvptx.c
8567 (CU_DEVICE_ATTRIBUTE_MAX_REGISTERS_PER_MULTIPROCESSOR): Define.
8568 (nvptx_open_device): Use
8569 CU_DEVICE_ATTRIBUTE_MAX_REGISTERS_PER_MULTIPROCESSOR.
8570
8571 2018-08-08 Tom de Vries <tdevries@suse.de>
8572
8573 * plugin/plugin-nvptx.c (cuda_error): Move declaration of cuGetErrorString ...
8574 (cuGetErrorString): ... here. Guard with CUDA_VERSION < 6000.
8575
8576 2018-08-07 Tom de Vries <tdevries@suse.de>
8577
8578 * plugin/plugin-nvptx.c (DO_PRAGMA): Define.
8579 (struct cuda_lib_s): Add def/undef of CUDA_ONE_CALL_MAYBE_NULL.
8580 (init_cuda_lib): Add new param to CUDA_ONE_CALL_1. Add arg to
8581 corresponding call in CUDA_ONE_CALL. Add def/undef of
8582 CUDA_ONE_CALL_MAYBE_NULL.
8583 (CUDA_CALL_EXISTS): Define.
8584
8585 2018-08-07 Tom de Vries <tdevries@suse.de>
8586
8587 * plugin/plugin-nvptx.c (struct cuda_lib_s, init_cuda_lib): Put
8588 CUDA_ONE_CALL defines right before the cuda-lib.def include, and the
8589 corresponding undefs right after.
8590
8591 2018-08-04 Tom de Vries <tdevries@suse.de>
8592
8593 * plugin/configfrag.ac: For --without-cuda-driver, set
8594 CUDA_DRIVER_INCLUDE and CUDA_DRIVER_LIB to no. Handle
8595 CUDA_DRIVER_INCLUDE == no and CUDA_DRIVER_LIB == no.
8596 * configure: Regenerate.
8597
8598 2018-08-02 Tom de Vries <tdevries@suse.de>
8599
8600 PR target/86660
8601 * testsuite/libgomp.oacc-c++/routine-1-auto.C: Remove -fno-exceptions.
8602 * testsuite/libgomp.oacc-c++/routine-1-template-auto.C: Same.
8603 * testsuite/libgomp.oacc-c++/routine-1-template-trailing-return-type.C:
8604 Same.
8605 * testsuite/libgomp.oacc-c++/routine-1-template.C: Same.
8606 * testsuite/libgomp.oacc-c++/routine-1-trailing-return-type.C: Same.
8607 * testsuite/libgomp.oacc-c-c++-common/routine-1.c: Same.
8608
8609 2018-08-01 Cesar Philippidis <cesar@codesourcery.com>
8610 Thomas Schwinge <thomas@codesourcery.com>
8611
8612 * config/nvptx/oacc-parallel.c: Truncate.
8613
8614 2018-08-01 Cesar Philippidis <cesar@codesourcery.com>
8615 James Norris <jnorris@codesourcery.com>
8616
8617 * plugin/plugin-nvptx.c (struct map): Removed.
8618 (map_init, map_pop): Remove use of struct map.
8619 (map_push): Likewise and change argument list.
8620 * testsuite/libgomp.oacc-c-c++-common/mapping-1.c: New
8621
8622 2018-08-01 Tom de Vries <tdevries@suse.de>
8623
8624 * plugin/cuda-lib.def: New file. Factor out of ...
8625 * plugin/plugin-nvptx.c (CUDA_CALLS): ... here.
8626 (struct cuda_lib_s, init_cuda_lib): Include cuda-lib.def instead of
8627 using CUDA_CALLS.
8628
8629 2018-07-31 Andre Vieira <andre.simoesdiasvieira@arm.com>
8630
8631 Revert 'AsyncI/O patch committed'.
8632 2018-07-25 Nicolas Koenig <koenigni@gcc.gnu.org>
8633 Thomas Koenig <tkoenig@gcc.gnu.org>
8634
8635 PR fortran/25829
8636 * testsuite/libgomp.fortran/async_io_1.f90: New test.
8637 * testsuite/libgomp.fortran/async_io_2.f90: New test.
8638 * testsuite/libgomp.fortran/async_io_3.f90: New test.
8639 * testsuite/libgomp.fortran/async_io_4.f90: New test.
8640 * testsuite/libgomp.fortran/async_io_5.f90: New test.
8641 * testsuite/libgomp.fortran/async_io_6.f90: New test.
8642 * testsuite/libgomp.fortran/async_io_7.f90: New test.
8643
8644 2018-07-30 Tom de Vries <tdevries@suse.de>
8645
8646 * plugin/plugin-nvptx.c (MIN, MAX): Redefine.
8647 (nvptx_exec): Ensure worker and vector default dims don't exceed
8648 targ_fn->max_threads_per_block.
8649
8650 2018-07-30 Tom de Vries <tdevries@suse.de>
8651
8652 * plugin/plugin-nvptx.c (struct ptx_device): Add default_dims field.
8653 (nvptx_open_device): Init default_dims for device.
8654 (nvptx_exec): Use default_dims from device.
8655
8656 2018-07-26 Jakub Jelinek <jakub@redhat.com>
8657
8658 PR testsuite/86660
8659 * testsuite/libgomp.c++/for-15.C (results): Include it in
8660 omp declare target region.
8661 (main): Use map (always, tofrom: results) instead of
8662 map (tofrom: results).
8663
8664 PR middle-end/86660
8665 * testsuite/libgomp.c/pr86660.c: New test.
8666
8667 2018-07-26 Cesar Philippidis <cesar@codesourcery.com>
8668 Tom de Vries <tdevries@suse.de>
8669
8670 * plugin/plugin-nvptx.c (nvptx_exec): Error if the hardware doesn't have
8671 sufficient resources to launch a kernel, and give a hint on how to fix
8672 it.
8673
8674 2018-07-26 Cesar Philippidis <cesar@codesourcery.com>
8675 Tom de Vries <tdevries@suse.de>
8676
8677 * plugin/plugin-nvptx.c (struct ptx_device): Add warp_size,
8678 max_threads_per_block and max_threads_per_multiprocessor fields.
8679 (nvptx_open_device): Initialize new fields.
8680 (nvptx_exec): Use num_sms, and new fields.
8681
8682 2018-07-26 Tom de Vries <tdevries@suse.de>
8683
8684 * testsuite/libgomp.oacc-fortran/lib-12.f90: Move acc_async_test calls
8685 to correct locations. Remove xfail.
8686
8687 2018-07-26 Tom de Vries <tdevries@suse.de>
8688
8689 * testsuite/libgomp.oacc-fortran/lib-13.f90: Replace acc_wait_all with
8690 acc_wait. Move acc_async_test calls to correct locations. Remove
8691 xfail.
8692
8693 2018-07-25 Nicolas Koenig <koenigni@gcc.gnu.org>
8694 Thomas Koenig <tkoenig@gcc.gnu.org>
8695
8696 PR fortran/25829
8697 * testsuite/libgomp.fortran/async_io_1.f90: New test.
8698 * testsuite/libgomp.fortran/async_io_2.f90: New test.
8699 * testsuite/libgomp.fortran/async_io_3.f90: New test.
8700 * testsuite/libgomp.fortran/async_io_4.f90: New test.
8701 * testsuite/libgomp.fortran/async_io_5.f90: New test.
8702 * testsuite/libgomp.fortran/async_io_6.f90: New test.
8703 * testsuite/libgomp.fortran/async_io_7.f90: New test.
8704
8705 2018-07-17 Jakub Jelinek <jakub@redhat.com>
8706
8707 PR middle-end/86542
8708 * testsuite/libgomp.c++/pr86542.C: New test.
8709
8710 PR middle-end/86539
8711 * testsuite/libgomp.c++/pr86539.C: New test.
8712
8713 2018-07-11 Jakub Jelinek <jakub@redhat.com>
8714
8715 PR c++/86443
8716 * testsuite/libgomp.c++/for-15.C (a): Remove unused variable.
8717 (results): Make sure the variable is not inside declare target region.
8718 (qux): Remove unused function.
8719
8720 2018-07-10 Jakub Jelinek <jakub@redhat.com>
8721
8722 PR c++/86443
8723 * testsuite/libgomp.c++/for-15.C: New test.
8724
8725 2018-06-26 Jakub Jelinek <jakub@redhat.com>
8726
8727 PR c++/86291
8728 * testsuite/libgomp.c++/pr86291.C: New test.
8729
8730 2018-06-24 Gerald Pfeifer <gerald@pfeifer.com>
8731
8732 * libgomp.texi (Top): Move www.openmp.org to https.
8733 (Enabling OpenMP): Ditto.
8734 (omp_get_active_level): Ditto.
8735 (omp_get_ancestor_thread_num): Ditto.
8736 (omp_get_cancellation): Ditto.
8737 (omp_get_default_device): Ditto.
8738 (omp_get_dynamic): Ditto.
8739 (omp_get_level): Ditto.
8740 (omp_get_max_active_levels): Ditto.
8741 (omp_get_max_task_priority): Ditto.
8742 (omp_get_max_threads): Ditto.
8743 (omp_get_nested): Ditto.
8744 (omp_get_num_devices): Ditto.
8745 (omp_get_num_procs): Ditto.
8746 (omp_get_num_teams): Ditto.
8747 (omp_get_num_threads): Ditto.
8748 (omp_get_proc_bind): Ditto.
8749 (omp_get_schedule): Ditto.
8750 (omp_get_team_num): Ditto.
8751 (omp_get_team_size): Ditto.
8752 (omp_get_thread_limit): Ditto.
8753 (omp_get_thread_num): Ditto.
8754 (omp_in_parallel): Ditto.
8755 (omp_in_final): Ditto.
8756 (omp_is_initial_device): Ditto.
8757 (omp_set_default_device): Ditto.
8758 (omp_set_dynamic): Ditto.
8759 (omp_set_max_active_levels): Ditto.
8760 (omp_set_nested): Ditto.
8761 (omp_set_num_threads): Ditto.
8762 (omp_set_schedule): Ditto.
8763 (omp_init_lock): Ditto.
8764 (omp_set_lock): Ditto.
8765 (omp_test_lock): Ditto.
8766 (omp_unset_lock): Ditto.
8767 (omp_destroy_lock): Ditto.
8768 (omp_init_nest_lock): Ditto.
8769 (omp_set_nest_lock): Ditto.
8770 (omp_test_nest_lock): Ditto.
8771 (omp_unset_nest_lock): Ditto.
8772 (omp_destroy_nest_lock): Ditto.
8773 (omp_get_wtick): Ditto.
8774 (omp_get_wtime): Ditto.
8775 (OMP_CANCELLATION): Ditto.
8776 (OMP_DISPLAY_ENV): Ditto.
8777 (OMP_DEFAULT_DEVICE): Ditto.
8778 (OMP_DYNAMIC): Ditto.
8779 (OMP_MAX_ACTIVE_LEVELS): Ditto.
8780 (OMP_MAX_TASK_PRIORITY): Ditto.
8781 (OMP_NESTED): Ditto.
8782 (OMP_NUM_THREADS): Ditto.
8783 (OMP_PROC_BIND): Ditto.
8784 (OMP_PLACES): Ditto.
8785 (OMP_STACKSIZE): Ditto.
8786 (OMP_SCHEDULE): Ditto.
8787 (OMP_THREAD_LIMIT): Ditto.
8788 (OMP_WAIT_POLICY): Ditto.
8789
8790 2018-06-22 Cesar Philippidis <cesar@codesourcery.com>
8791 James Norris <jnorris@codesourcery.com>
8792 Julian Brown <julian@codesourcery.com>
8793 Thomas Schwinge <thomas@codesourcery.com>
8794 Tom de Vries <tom@codesourcery.com>
8795
8796 * testsuite/libgomp.oacc-c-c++-common/loop-red-wv-1.c: Don't force "-O2".
8797 * testsuite/libgomp.oacc-c-c++-common/data-2.c: Update.
8798 * testsuite/libgomp.oacc-c-c++-common/host_data-1.c: Likewise.
8799 * testsuite/libgomp.oacc-c-c++-common/mode-transitions.c: Likewise.
8800 * testsuite/libgomp.oacc-fortran/data-1.f90: Likewise.
8801 * testsuite/libgomp.oacc-fortran/data-2.f90: Likewise.
8802 * testsuite/libgomp.oacc-c++/non-scalar-data.C: New file.
8803 * testsuite/libgomp.oacc-c-c++-common/declare-3.c: Likewise.
8804 * testsuite/libgomp.oacc-c-c++-common/enter-data.c: Likewise.
8805 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-2.c:
8806 Likewise.
8807 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-enter-exit-2.c:
8808 Likewise.
8809 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-enter-exit.c:
8810 Likewise.
8811 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-update.c:
8812 Likewise.
8813 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data.c:
8814 Likewise.
8815 * testsuite/libgomp.oacc-c-c++-common/kernels-parallel-loop-data-enter-exit.c:
8816 Likewise.
8817 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-1.c:
8818 Likewise.
8819 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-2.c:
8820 Likewise.
8821 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-3.c:
8822 Likewise.
8823 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-4.c:
8824 Likewise.
8825 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-5.c:
8826 Likewise.
8827 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-1.c:
8828 Likewise.
8829 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-2.c:
8830 Likewise.
8831 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-3.c:
8832 Likewise.
8833 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-4.c:
8834 Likewise.
8835 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-5.c:
8836 Likewise.
8837 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-6.c:
8838 Likewise.
8839 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-vector-1.c:
8840 Likewise.
8841 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-vector-2.c:
8842 Likewise.
8843 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-1.c:
8844 Likewise.
8845 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-2.c:
8846 Likewise.
8847 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-3.c:
8848 Likewise.
8849 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-4.c:
8850 Likewise.
8851 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-5.c:
8852 Likewise.
8853 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-6.c:
8854 Likewise.
8855 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-7.c:
8856 Likewise.
8857 * testsuite/libgomp.oacc-c-c++-common/kernels-reduction-1.c:
8858 Likewise.
8859 * testsuite/libgomp.oacc-c-c++-common/parallel-loop-1.c: Likewise.
8860 * testsuite/libgomp.oacc-c-c++-common/parallel-loop-1.h: Likewise.
8861 * testsuite/libgomp.oacc-c-c++-common/parallel-loop-2.h: Likewise.
8862 * testsuite/libgomp.oacc-fortran/cublas-fixed.h: Likewise.
8863 * testsuite/libgomp.oacc-fortran/dummy-array.f90: Likewise.
8864 * testsuite/libgomp.oacc-fortran/host_data-2.f90: Likewise.
8865 * testsuite/libgomp.oacc-fortran/host_data-3.f: Likewise.
8866 * testsuite/libgomp.oacc-fortran/host_data-4.f90: Likewise.
8867 * testsuite/libgomp.oacc-fortran/kernels-acc-loop-reduction-2.f90:
8868 Likewise.
8869 * testsuite/libgomp.oacc-fortran/kernels-acc-loop-reduction.f90:
8870 Likewise.
8871 * testsuite/libgomp.oacc-fortran/kernels-collapse-3.f90: Likewise.
8872 * testsuite/libgomp.oacc-fortran/kernels-collapse-4.f90: Likewise.
8873 * testsuite/libgomp.oacc-fortran/kernels-independent.f90:
8874 Likewise.
8875 * testsuite/libgomp.oacc-fortran/kernels-loop-1.f90: Likewise.
8876 * testsuite/libgomp.oacc-fortran/kernels-map-1.f90: Likewise.
8877 * testsuite/libgomp.oacc-fortran/kernels-parallel-loop-data-enter-exit.f95:
8878 Likewise.
8879 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-1.f90:
8880 Likewise.
8881 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-2.f90:
8882 Likewise.
8883 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-3.f90:
8884 Likewise.
8885 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-6.f90:
8886 Likewise.
8887 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-vector-1.f90:
8888 Likewise.
8889 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-vector-2.f90:
8890 Likewise.
8891 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-1.f90:
8892 Likewise.
8893 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-2.f90:
8894 Likewise.
8895 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-3.f90:
8896 Likewise.
8897 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-4.f90:
8898 Likewise.
8899 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-5.f90:
8900 Likewise.
8901 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-6.f90:
8902 Likewise.
8903 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-7.f90:
8904 Likewise.
8905 * testsuite/libgomp.oacc-fortran/kernels-reduction-1.f90:
8906 Likewise.
8907 * testsuite/libgomp.oacc-fortran/lib-12.f90: Likewise.
8908 * testsuite/libgomp.oacc-fortran/lib-13.f90: Likewise.
8909 * testsuite/libgomp.oacc-fortran/lib-14.f90: Likewise.
8910 * testsuite/libgomp.oacc-fortran/lib-15.f90: Likewise.
8911 * testsuite/libgomp.oacc-fortran/parallel-loop-1.f90: Likewise.
8912 * testsuite/libgomp.oacc-fortran/reference-reductions.f90: Likewise.
8913 * testsuite/libgomp.oacc-fortran/vector-routine.f90: Likewise.
8914
8915 2018-06-20 Chung-Lin Tang <cltang@codesourcery.com>
8916 Thomas Schwinge <thomas@codesourcery.com>
8917 Cesar Philippidis <cesar@codesourcery.com>
8918
8919 * libgomp.h (struct splay_tree_key_s): Add dynamic_refcount member.
8920 (gomp_acc_remove_pointer): Update declaration.
8921 (gomp_acc_declare_allocate): Declare.
8922 (gomp_remove_var): Declare.
8923 * libgomp.map (OACC_2.5): Define.
8924 * oacc-mem.c (acc_map_data): Update refcount.
8925 (acc_unmap_data): Likewise.
8926 (present_create_copy): Likewise.
8927 (acc_create): Add FLAG_PRESENT when calling present_create_copy.
8928 (acc_copyin): Likewise.
8929 (FLAG_FINALIZE): Define.
8930 (delete_copyout): Update dynamic refcounts, add support for FINALIZE.
8931 (acc_delete_finalize): New function.
8932 (acc_delete_finalize_async): New function.
8933 (acc_copyout_finalize): New function.
8934 (acc_copyout_finalize_async): New function.
8935 (gomp_acc_insert_pointer): Update refcounts.
8936 (gomp_acc_remove_pointer): Return if data is not present on the
8937 accelerator.
8938 * oacc-parallel.c (find_pset): Rename to find_pointer.
8939 (find_pointer): Add support for GOMP_MAP_POINTER.
8940 (handle_ftn_pointers): New function.
8941 (GOACC_parallel_keyed): Update refcounts of variables.
8942 (GOACC_enter_exit_data): Add support for finalized data mappings.
8943 Add support for GOMP_MAP_{TO,ALLOC,RELESE,FROM}. Update handling
8944 of fortran arrays.
8945 (GOACC_update): Add support for GOMP_MAP_{ALWAYS_POINTER,TO,FROM}.
8946 (GOACC_declare): Add support for GOMP_MAP_RELEASE, remove support
8947 for GOMP_MAP_FORCE_FROM.
8948 * openacc.f90 (module openacc_internal): Add
8949 acc_copyout_finalize_{32_h,64_h,array_h,_l}, and
8950 acc_delete_finalize_{32_h,64_h,array_h,_l}. Add interfaces for
8951 acc_copyout_finalize and acc_delete_finalize.
8952 (acc_copyout_finalize_32_h): New subroutine.
8953 (acc_copyout_finalize_64_h): New subroutine.
8954 (acc_copyout_finalize_array_h): New subroutine.
8955 (acc_delete_finalize_32_h): New subroutine.
8956 (acc_delete_finalize_64_h): New subroutine.
8957 (acc_delete_finalize_array_h): New subroutine.
8958 * openacc.h (acc_copyout_finalize): Declare.
8959 (acc_copyout_finalize_async): Declare.
8960 (acc_delete_finalize): Declare.
8961 (acc_delete_finalize_async): Declare.
8962 * openacc_lib.h (acc_copyout_finalize): New interface.
8963 (acc_delete_finalize): New interface.
8964 * target.c (gomp_map_vars): Update dynamic_refcount.
8965 (gomp_remove_var): New function.
8966 (gomp_unmap_vars): Use it.
8967 (gomp_unload_image_from_device): Likewise.
8968 * testsuite/libgomp.oacc-c-c++-common/data-already-1.c: Update test
8969 case to utilize OpenACC 2.5 data clause semantics.
8970 * testsuite/libgomp.oacc-c-c++-common/data-already-2.c: Likewise.
8971 * testsuite/libgomp.oacc-c-c++-common/data-already-3.c: Likewise.
8972 * testsuite/libgomp.oacc-c-c++-common/data-already-4.c: Likewise.
8973 * testsuite/libgomp.oacc-c-c++-common/data-already-5.c: Likewise.
8974 * testsuite/libgomp.oacc-c-c++-common/data-already-6.c: Likewise.
8975 * testsuite/libgomp.oacc-c-c++-common/data-already-7.c: Likewise.
8976 * testsuite/libgomp.oacc-c-c++-common/data-already-8.c: Likewise.
8977 * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
8978 * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
8979 * testsuite/libgomp.oacc-c-c++-common/lib-32.c: Likewise.
8980 * testsuite/libgomp.oacc-c-c++-common/lib-83.c: Likewise.
8981 * testsuite/libgomp.oacc-fortran/data-5.f90: New test.
8982 * testsuite/libgomp.oacc-fortran/data-already-1.f: Update test case to
8983 utilize OpenACC 2.5 data clause semantics.
8984 * testsuite/libgomp.oacc-fortran/data-already-2.f: Likewise.
8985 * testsuite/libgomp.oacc-fortran/data-already-3.f: Likewise.
8986 * testsuite/libgomp.oacc-fortran/data-already-4.f: Likewise.
8987 * testsuite/libgomp.oacc-fortran/data-already-5.f: Likewise.
8988 * testsuite/libgomp.oacc-fortran/data-already-6.f: Likewise.
8989 * testsuite/libgomp.oacc-fortran/data-already-7.f: Likewise.
8990 * testsuite/libgomp.oacc-fortran/data-already-8.f: Likewise.
8991 * testsuite/libgomp.oacc-fortran/lib-32-1.f: Likewise.
8992 * testsuite/libgomp.oacc-fortran/lib-32-2.f: Likewise.
8993
8994 2018-05-21 Janus Weil <janus@gcc.gnu.org>
8995
8996 PR fortran/85841
8997 PR testsuite/85865
8998 * testsuite/libgomp.fortran/collapse2.f90: Add option "-std=legacy".
8999 * testsuite/libgomp.fortran/omp_atomic2.f90: Ditto.
9000 * testsuite/libgomp.fortran/omp_parse1.f90: Ditto.
9001 * testsuite/libgomp.fortran/omp_parse3.f90: Ditto.
9002 * testsuite/libgomp.fortran/task2.f90: Ditto.
9003 * testsuite/libgomp.fortran/vla1.f90: Ditto.
9004 * testsuite/libgomp.fortran/vla2.f90: Ditto.
9005 * testsuite/libgomp.fortran/vla3.f90: Ditto.
9006 * testsuite/libgomp.fortran/vla4.f90: Ditto.
9007 * testsuite/libgomp.fortran/vla5.f90: Ditto.
9008 * testsuite/libgomp.fortran/vla6.f90: Ditto.
9009 * testsuite/libgomp.fortran/vla8.f90: Ditto.
9010 * testsuite/libgomp.oacc-fortran/collapse-2.f90: Ditto.
9011 * testsuite/libgomp.oacc-fortran/nested-function-1.f90: Ditto.
9012
9013 2018-05-18 Cesar Philippidis <cesar@codesourcery.com>
9014
9015 PR c++/85782
9016 * testsuite/libgomp.oacc-c-c++-common/pr85782.c: New test.
9017
9018 2018-05-09 Tom de Vries <tom@codesourcery.com>
9019
9020 PR libgomp/82901
9021 * oacc-parallel.c (GOACC_declare): Use GOMP_ASYNC_SYNC as async argument
9022 to GOACC_enter_exit_data.
9023
9024 2018-05-09 Tom de Vries <tom@codesourcery.com>
9025
9026 PR libgomp/83792
9027 * oacc-int.h (async_valid_stream_id_p, async_valid_p)
9028 (async_synchronous_p): New function.
9029 * oacc-async.c (acc_async_test, acc_wait, acc_wait_all_async): Use
9030 async_valid_p.
9031 * oacc-cuda.c (acc_get_cuda_stream, acc_set_cuda_stream): Use
9032 async_valid_stream_id_p.
9033 * oacc-mem.c (gomp_acc_remove_pointer): Use async_synchronous_p.
9034 * oacc-parallel.c (GOACC_parallel_keyed): Same.
9035
9036 2018-05-07 Tom de Vries <tom@codesourcery.com>
9037
9038 PR testsuite/85677
9039 * testsuite/lib/libgomp.exp (libgomp_init): Move inclusion of top-level
9040 include directory in ALWAYS_CFLAGS out of $blddir != "" condition.
9041
9042 2018-05-03 Tom de Vries <tom@codesourcery.com>
9043
9044 PR testsuite/85106
9045 * testsuite/lib/libgomp-dg.exp (libgomp-dg-test): Add save-temps to
9046 extra_tool_flags if it contains an -foffload=-fdump-* flag.
9047 * testsuite/lib/libgomp.exp: Include scanoffloadtree.exp.
9048 * testsuite/libgomp.oacc-c/vec.c: Use scan-offload-tree-dump.
9049
9050 2018-05-02 Tom de Vries <tom@codesourcery.com>
9051
9052 PR libgomp/85411
9053 * plugin/plugin-nvptx.c (nvptx_exec): Move parsing of
9054 GOMP_OPENACC_DIM ...
9055 * env.c (parse_gomp_openacc_dim): ... here. New function.
9056 (initialize_env): Call parse_gomp_openacc_dim.
9057 (goacc_default_dims): Define.
9058 * libgomp.h (goacc_default_dims): Declare.
9059 * oacc-plugin.c (GOMP_PLUGIN_acc_default_dim): New function.
9060 * oacc-plugin.h (GOMP_PLUGIN_acc_default_dim): Declare.
9061 * libgomp.map: New version "GOMP_PLUGIN_1.2". Add
9062 GOMP_PLUGIN_acc_default_dim.
9063 * testsuite/libgomp.oacc-c-c++-common/loop-default-runtime.c: New test.
9064 * testsuite/libgomp.oacc-c-c++-common/loop-default.h: New test.
9065
9066 2018-05-02 Tom de Vries <tom@codesourcery.com>
9067
9068 PR testsuite/83791
9069 * testsuite/libgomp.c++/udr-9.C: Update.
9070 * testsuite/libgomp.c++/atomic-16.C: Remove.
9071 * testsuite/libgomp.c++/cancel-taskgroup-2.C: Remove.
9072 * testsuite/libgomp.c++/loop-13.C: Remove.
9073 * testsuite/libgomp.c++/loop-14.C: Remove.
9074 * testsuite/libgomp.c++/loop-15.C: Remove.
9075 * testsuite/libgomp.c++/monotonic-1.C: Remove.
9076 * testsuite/libgomp.c++/monotonic-2.C: Remove.
9077 * testsuite/libgomp.c++/nonmonotonic-1.C: Remove.
9078 * testsuite/libgomp.c++/nonmonotonic-2.C: Remove.
9079 * testsuite/libgomp.c++/ordered-1.C: Remove.
9080 * testsuite/libgomp.c++/pr45784.C: Remove.
9081 * testsuite/libgomp.c++/pr64824.C: Remove.
9082 * testsuite/libgomp.c++/pr64868.C: Remove.
9083 * testsuite/libgomp.c++/pr66199-1.C: Remove.
9084 * testsuite/libgomp.c++/pr66199-2.C: Remove.
9085 * testsuite/libgomp.c++/pr66199-3.C: Remove.
9086 * testsuite/libgomp.c++/pr66199-4.C: Remove.
9087 * testsuite/libgomp.c++/pr66199-5.C: Remove.
9088 * testsuite/libgomp.c++/pr66199-6.C: Remove.
9089 * testsuite/libgomp.c++/pr66199-7.C: Remove.
9090 * testsuite/libgomp.c++/pr66199-8.C: Remove.
9091 * testsuite/libgomp.c++/pr66199-9.C: Remove.
9092 * testsuite/libgomp.c++/pr69389.C: Remove.
9093 * testsuite/libgomp.c++/simd10.C: Remove.
9094 * testsuite/libgomp.c++/simd11.C: Remove.
9095 * testsuite/libgomp.c++/simd12.C: Remove.
9096 * testsuite/libgomp.c++/simd13.C: Remove.
9097 * testsuite/libgomp.c++/target-1.C: Remove.
9098 * testsuite/libgomp.c++/target-3.C: Remove.
9099 * testsuite/libgomp.c++/target-4.C: Remove.
9100 * testsuite/libgomp.c++/target-5.C: Remove.
9101 * testsuite/libgomp.c++/taskgroup-1.C: Remove.
9102 * testsuite/libgomp.c++/taskloop-1.C: Remove.
9103 * testsuite/libgomp.c++/taskloop-2.C: Remove.
9104 * testsuite/libgomp.c++/taskloop-3.C: Remove.
9105 * testsuite/libgomp.c++/taskloop-4.C: Remove.
9106 * testsuite/libgomp.c++/udr-9.C: Remove.
9107 * testsuite/libgomp.c++/for-10.C: Remove.
9108 * testsuite/libgomp.c++/for-11.C: Remove.
9109 * testsuite/libgomp.c++/for-12.C: Remove.
9110 * testsuite/libgomp.c++/for-13.C: Remove.
9111 * testsuite/libgomp.c++/for-14.C: Remove.
9112 * testsuite/libgomp.c++/for-9.C: Remove.
9113 * testsuite/libgomp.c/atomic-18.c: Move ...
9114 * testsuite/libgomp.c-c++-common/atomic-18.c: ... here.
9115 * testsuite/libgomp.c/cancel-taskgroup-2.c: Move ...
9116 * testsuite/libgomp.c-c++-common/cancel-taskgroup-2.c: here.
9117 * testsuite/libgomp.c/loop-13.c: Move ...
9118 * testsuite/libgomp.c-c++-common/loop-13.c: ... here.
9119 * testsuite/libgomp.c/loop-14.c: Move ...
9120 * testsuite/libgomp.c-c++-common/loop-14.c: ... here.
9121 * testsuite/libgomp.c/loop-15.c: Remove.
9122 * testsuite/libgomp.c-c++-common/loop-15.c: New test.
9123 * testsuite/libgomp.c/monotonic-1.c: Move ...
9124 * testsuite/libgomp.c-c++-common/monotonic-1.c: ... here.
9125 * testsuite/libgomp.c/monotonic-2.c: Move ...
9126 * testsuite/libgomp.c-c++-common/monotonic-2.c: ... here.
9127 * testsuite/libgomp.c/nonmonotonic-1.c: Move ...
9128 * testsuite/libgomp.c-c++-common/nonmonotonic-1.c: ... here.
9129 * testsuite/libgomp.c/nonmonotonic-2.c: Move ...
9130 * testsuite/libgomp.c-c++-common/nonmonotonic-2.c: ... here.
9131 * testsuite/libgomp.c/ordered-4.c: Move ...
9132 * testsuite/libgomp.c-c++-common/ordered-4.c: ... here.
9133 * testsuite/libgomp.c/pr45784.c: Move ...
9134 * testsuite/libgomp.c-c++-common/pr45784.c: ... here.
9135 * testsuite/libgomp.c/pr64824.c: Move ...
9136 * testsuite/libgomp.c-c++-common/pr64824.c: ... here.
9137 * testsuite/libgomp.c/pr64868.c: Move ...
9138 * testsuite/libgomp.c-c++-common/pr64868.c: ... here.
9139 * testsuite/libgomp.c/pr66199-1.c: Move ...
9140 * testsuite/libgomp.c-c++-common/pr66199-1.c: ... here.
9141 * testsuite/libgomp.c/pr66199-2.c: Move ...
9142 * testsuite/libgomp.c-c++-common/pr66199-2.c: ... here.
9143 * testsuite/libgomp.c/pr66199-3.c: Move ...
9144 * testsuite/libgomp.c-c++-common/pr66199-3.c: ... here.
9145 * testsuite/libgomp.c/pr66199-4.c: Move ...
9146 * testsuite/libgomp.c-c++-common/pr66199-4.c: ... here.
9147 * testsuite/libgomp.c/pr66199-5.c: Move ...
9148 * testsuite/libgomp.c-c++-common/pr66199-5.c: ... here.
9149 * testsuite/libgomp.c/pr66199-6.c: Move ...
9150 * testsuite/libgomp.c-c++-common/pr66199-6.c: ... here.
9151 * testsuite/libgomp.c/pr66199-7.c: Move ...
9152 * testsuite/libgomp.c-c++-common/pr66199-7.c: ... here.
9153 * testsuite/libgomp.c/pr66199-8.c: Move ...
9154 * testsuite/libgomp.c-c++-common/pr66199-8.c: ... here.
9155 * testsuite/libgomp.c/pr66199-9.c: Move ...
9156 * testsuite/libgomp.c-c++-common/pr66199-9.c: ... here.
9157 * testsuite/libgomp.c/pr69389.c: Move ...
9158 * testsuite/libgomp.c-c++-common/pr69389.c: ... here.
9159 * testsuite/libgomp.c/simd-14.c: Move ...
9160 * testsuite/libgomp.c-c++-common/simd-14.c: ... here.
9161 * testsuite/libgomp.c/simd-15.c: Move ...
9162 * testsuite/libgomp.c-c++-common/simd-15.c: ... here.
9163 * testsuite/libgomp.c/simd-16.c: Move ...
9164 * testsuite/libgomp.c-c++-common/simd-16.c: ... here.
9165 * testsuite/libgomp.c/simd-17.c: Move ...
9166 * testsuite/libgomp.c-c++-common/simd-17.c: ... here.
9167 * testsuite/libgomp.c/target-1.c: Move ...
9168 * testsuite/libgomp.c-c++-common/target-1.c: ... here.
9169 * testsuite/libgomp.c/target-10.c: Move ...
9170 * testsuite/libgomp.c-c++-common/target-10.c: ... here.
9171 * testsuite/libgomp.c/target-13.c: Move ...
9172 * testsuite/libgomp.c-c++-common/target-13.c: ... here.
9173 * testsuite/libgomp.c/target-2.c: Move ...
9174 * testsuite/libgomp.c-c++-common/target-2.c: ... here.
9175 * testsuite/libgomp.c/taskgroup-1.c: Move ...
9176 * testsuite/libgomp.c-c++-common/taskgroup-1.c: ... here.
9177 * testsuite/libgomp.c/taskloop-1.c: Move ...
9178 * testsuite/libgomp.c-c++-common/taskloop-1.c: ... here.
9179 * testsuite/libgomp.c/taskloop-2.c: Move ...
9180 * testsuite/libgomp.c-c++-common/taskloop-2.c: ... here.
9181 * testsuite/libgomp.c/taskloop-3.c: Move ...
9182 * testsuite/libgomp.c-c++-common/taskloop-3.c: ... here.
9183 * testsuite/libgomp.c/taskloop-4.c: Move ...
9184 * testsuite/libgomp.c-c++-common/taskloop-4.c: ... here.
9185 * testsuite/libgomp.c/udr-1.c: Move ...
9186 * testsuite/libgomp.c-c++-common/udr-1.c: ... here.
9187 * testsuite/libgomp.c/for-1.c: Move ...
9188 * testsuite/libgomp.c-c++-common/for-1.c: ... here.
9189 * testsuite/libgomp.c/for-1.h: Move ...
9190 * testsuite/libgomp.c-c++-common/for-1.h: ... here.
9191 * testsuite/libgomp.c/for-2.c: Move ...
9192 * testsuite/libgomp.c-c++-common/for-2.c: ... here.
9193 * testsuite/libgomp.c/for-2.h: Move ...
9194 * testsuite/libgomp.c-c++-common/for-2.h: ... here.
9195 * testsuite/libgomp.c/for-3.c: Move ...
9196 * testsuite/libgomp.c-c++-common/for-3.c: ... here.
9197 * testsuite/libgomp.c/for-4.c: Move ...
9198 * testsuite/libgomp.c-c++-common/for-4.c: ... here.
9199 * testsuite/libgomp.c/for-5.c: Move ...
9200 * testsuite/libgomp.c-c++-common/for-5.c: ... here.
9201 * testsuite/libgomp.c/for-6.c: Move ...
9202 * testsuite/libgomp.c-c++-common/for-6.c: ... here.
9203
9204 2018-05-02 Tom de Vries <tom@codesourcery.com>
9205
9206 PR libgomp/82428
9207 * testsuite/libgomp.oacc-c-c++-common/gang-static-2.c: Use
9208 __builtin_goacc_parlevel_{id,size}.
9209 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Same.
9210 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: Same.
9211 * testsuite/libgomp.oacc-c-c++-common/loop-g-1.c: Same.
9212 * testsuite/libgomp.oacc-c-c++-common/loop-g-2.c: Same.
9213 * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c: Same.
9214 * testsuite/libgomp.oacc-c-c++-common/loop-red-g-1.c: Same.
9215 * testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c: Same.
9216 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c: Same.
9217 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c: Same.
9218 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c: Same.
9219 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c: Same.
9220 * testsuite/libgomp.oacc-c-c++-common/loop-red-wv-1.c: Same.
9221 * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c: Same.
9222 * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c: Same.
9223 * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c: Same.
9224 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Same.
9225 * testsuite/libgomp.oacc-c-c++-common/routine-g-1.c: Same.
9226 * testsuite/libgomp.oacc-c-c++-common/routine-gwv-1.c: Same.
9227 * testsuite/libgomp.oacc-c-c++-common/routine-v-1.c: Same.
9228 * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c: Same.
9229 * testsuite/libgomp.oacc-c-c++-common/routine-wv-1.c: Same.
9230 * testsuite/libgomp.oacc-c-c++-common/routine-wv-2.c: Same.
9231 * testsuite/libgomp.oacc-c-c++-common/tile-1.c: Same.
9232
9233 2018-05-02 Tom de Vries <tom@codesourcery.com>
9234
9235 PR testsuite/85106
9236 * testsuite/lib/libgomp.exp: Include scanltranstree.exp.
9237
9238 2018-05-02 Tom de Vries <tom@codesourcery.com>
9239
9240 PR testsuite/85106
9241 * testsuite/lib/libgomp.exp: Include scanwpaipa.exp.
9242
9243 2018-04-29 Julian Brown <julian@codesourcery.com>
9244 Tom de Vries <tom@codesourcery.com>
9245
9246 PR testsuite/85527
9247 * testsuite/libgomp.oacc-c-c++-common/atomic_capture-1.c: Allow
9248 arbitrary order for iterations of atomic subtract check.
9249
9250 2018-04-28 Tom de Vries <tom@codesourcery.com>
9251
9252 PR testsuite/85527
9253 * testsuite/libgomp.oacc-fortran/atomic_capture-1.f90 (main): Store
9254 atomic capture results obtained in parallel loop to an array, instead of
9255 to a scalar.
9256
9257 2018-04-26 Tom de Vries <tom@codesourcery.com>
9258
9259 PR libgomp/84020
9260 * plugin/cuda/cuda.h (CUjit_option): Add CU_JIT_OPTIMIZATION_LEVEL.
9261 * plugin/plugin-nvptx.c (_GNU_SOURCE): Define.
9262 (process_GOMP_NVPTX_JIT): New function.
9263 (link_ptx): Use process_GOMP_NVPTX_JIT.
9264
9265 2018-04-26 Richard Biener <rguenther@suse.de>
9266 Tom de Vries <tom@codesourcery.com>
9267
9268 PR lto/85422
9269 * testsuite/libgomp.oacc-c-c++-common/pr85422.c: New test.
9270
9271 2018-04-26 Tom de Vries <tom@codesourcery.com>
9272
9273 PR target/85519
9274 * testsuite/libgomp.fortran/examples-4/declare_target-1.f90: Reduce
9275 recursion depth from 25 to 23.
9276 * testsuite/libgomp.fortran/examples-4/declare_target-2.f90: Same.
9277
9278 2018-04-24 H.J. Lu <hongjiu.lu@intel.com>
9279
9280 * configure: Regenerated.
9281
9282 2018-04-20 Nathan Sidwell <nathan@codesourcery.com>
9283 Tom de Vries <tom@codesourcery.com>
9284
9285 PR target/85445
9286 * testsuite/libgomp.oacc-c++/ref-1.C: New.
9287
9288 2018-04-19 Thomas Schwinge <thomas@codesourcery.com>
9289
9290 PR libgomp/85463
9291 * testsuite/libgomp.oacc-fortran/error_stop-1.f: New file.
9292 * testsuite/libgomp.oacc-fortran/error_stop-2.f: Likewise.
9293 * testsuite/libgomp.oacc-fortran/error_stop-3.f: Likewise.
9294 * testsuite/libgomp.oacc-fortran/stop-1.f: Likewise.
9295 * testsuite/libgomp.oacc-fortran/stop-2.f: Likewise.
9296 * testsuite/libgomp.oacc-fortran/stop-3.f: Likewise.
9297
9298 PR libfortran/85166
9299 * testsuite/libgomp.oacc-fortran/abort-1.f90: Switch back to "call
9300 abort".
9301 * testsuite/libgomp.oacc-fortran/abort-2.f90: Likewise.
9302
9303 2018-04-19 Jakub Jelinek <jakub@redhat.com>
9304
9305 * configure: Regenerated.
9306
9307 2018-04-18 David Malcolm <dmalcolm@redhat.com>
9308
9309 PR jit/85384
9310 * configure: Regenerate.
9311
9312 2018-04-16 Cesar Philippidis <cesar@codesourcery.com>
9313 Tom de Vries <tom@codesourcery.com>
9314
9315 PR middle-end/84955
9316 * testsuite/libgomp.oacc-c-c++-common/pr84955.c: New test.
9317 * testsuite/libgomp.oacc-fortran/pr84955.f90: New test.
9318
9319 2018-04-12 Thomas Koenig <tkoenig@gcc.gnu.org>
9320
9321 PR fortran/83064
9322 PR testsuite/85346
9323 * testsuite/libgomp.fortran/do_concurrent_5.f90: Move modified
9324 test from gfortran.dg to here.
9325
9326 2018-04-12 Cesar Philippidis <cesar@codesourcery.com>
9327
9328 * testsuite/libgomp.oacc-c-c++-common/pr84955.c: Revert 259346.
9329 * testsuite/libgomp.oacc-fortran/pr84955.f90: Likewise.
9330
9331 2018-04-12 Cesar Philippidis <cesar@codesourcery.com>
9332
9333 PR middle-end/84955
9334 * testsuite/libgomp.oacc-c-c++-common/pr84955.c: New test.
9335 * testsuite/libgomp.oacc-fortran/pr84955.f90: New test.
9336
9337 2018-04-05 Tom de Vries <tom@codesourcery.com>
9338
9339 PR target/85204
9340 * testsuite/libgomp.oacc-c-c++-common/broadcast-1.c: New test.
9341
9342 2018-03-26 Tom de Vries <tom@codesourcery.com>
9343
9344 PR tree-optimization/85063
9345 * testsuite/libgomp.c/switch-conversion-2.c: New test.
9346 * testsuite/libgomp.c/switch-conversion.c: New test.
9347 * testsuite/libgomp.oacc-c-c++-common/switch-conversion-2.c: New test.
9348 * testsuite/libgomp.oacc-c-c++-common/switch-conversion.c: New test.
9349
9350 2018-03-25 Thomas Koenig <tkoenig@gcc.gnu.org>
9351
9352 PR fortran/84381
9353 * testsuite/libgomp.fortran/aligned1.f03: Replace non-standard
9354 call abort by STOP n.
9355 * testsuite/libgomp.fortran/alloc-comp-1.f90: Likewise.
9356 * testsuite/libgomp.fortran/alloc-comp-2.f90: Likewise.
9357 * testsuite/libgomp.fortran/alloc-comp-3.f90: Likewise.
9358 * testsuite/libgomp.fortran/allocatable1.f90: Likewise.
9359 * testsuite/libgomp.fortran/allocatable10.f90: Likewise.
9360 * testsuite/libgomp.fortran/allocatable11.f90: Likewise.
9361 * testsuite/libgomp.fortran/allocatable12.f90: Likewise.
9362 * testsuite/libgomp.fortran/allocatable2.f90: Likewise.
9363 * testsuite/libgomp.fortran/allocatable3.f90: Likewise.
9364 * testsuite/libgomp.fortran/allocatable4.f90: Likewise.
9365 * testsuite/libgomp.fortran/allocatable5.f90: Likewise.
9366 * testsuite/libgomp.fortran/allocatable6.f90: Likewise.
9367 * testsuite/libgomp.fortran/allocatable7.f90: Likewise.
9368 * testsuite/libgomp.fortran/allocatable8.f90: Likewise.
9369 * testsuite/libgomp.fortran/allocatable9.f90: Likewise.
9370 * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: Likewise.
9371 * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: Likewise.
9372 * testsuite/libgomp.fortran/associate1.f90: Likewise.
9373 * testsuite/libgomp.fortran/associate2.f90: Likewise.
9374 * testsuite/libgomp.fortran/associate3.f90: Likewise.
9375 * testsuite/libgomp.fortran/cancel-do-1.f90: Likewise.
9376 * testsuite/libgomp.fortran/cancel-do-2.f90: Likewise.
9377 * testsuite/libgomp.fortran/cancel-parallel-1.f90: Likewise.
9378 * testsuite/libgomp.fortran/cancel-sections-1.f90: Likewise.
9379 * testsuite/libgomp.fortran/cancel-taskgroup-2.f90: Likewise.
9380 * testsuite/libgomp.fortran/character1.f90: Likewise.
9381 * testsuite/libgomp.fortran/character2.f90: Likewise.
9382 * testsuite/libgomp.fortran/collapse1.f90: Likewise.
9383 * testsuite/libgomp.fortran/collapse2.f90: Likewise.
9384 * testsuite/libgomp.fortran/collapse3.f90: Likewise.
9385 * testsuite/libgomp.fortran/collapse4.f90: Likewise.
9386 * testsuite/libgomp.fortran/crayptr1.f90: Likewise.
9387 * testsuite/libgomp.fortran/crayptr2.f90: Likewise.
9388 * testsuite/libgomp.fortran/crayptr3.f90: Likewise.
9389 * testsuite/libgomp.fortran/declare-simd-1.f90: Likewise.
9390 * testsuite/libgomp.fortran/declare-simd-3.f90: Likewise.
9391 * testsuite/libgomp.fortran/declare-target-2.f90: Likewise.
9392 * testsuite/libgomp.fortran/depend-1.f90: Likewise.
9393 * testsuite/libgomp.fortran/depend-2.f90: Likewise.
9394 * testsuite/libgomp.fortran/depend-3.f90: Likewise.
9395 * testsuite/libgomp.fortran/do1.f90: Likewise.
9396 * testsuite/libgomp.fortran/do2.f90: Likewise.
9397 * testsuite/libgomp.fortran/doacross1.f90: Likewise.
9398 * testsuite/libgomp.fortran/doacross2.f90: Likewise.
9399 * testsuite/libgomp.fortran/doacross3.f90: Likewise.
9400 * testsuite/libgomp.fortran/examples-4/array_sections-3.f90: Likewise.
9401 * testsuite/libgomp.fortran/examples-4/array_sections-4.f90: Likewise.
9402 * testsuite/libgomp.fortran/examples-4/async_target-1.f90: Likewise.
9403 * testsuite/libgomp.fortran/examples-4/async_target-2.f90: Likewise.
9404 * testsuite/libgomp.fortran/examples-4/declare_target-1.f90: Likewise.
9405 * testsuite/libgomp.fortran/examples-4/declare_target-2.f90: Likewise.
9406 * testsuite/libgomp.fortran/examples-4/declare_target-3.f90: Likewise.
9407 * testsuite/libgomp.fortran/examples-4/declare_target-4.f90: Likewise.
9408 * testsuite/libgomp.fortran/examples-4/declare_target-5.f90: Likewise.
9409 * testsuite/libgomp.fortran/examples-4/device-1.f90: Likewise.
9410 * testsuite/libgomp.fortran/examples-4/device-2.f90: Likewise.
9411 * testsuite/libgomp.fortran/examples-4/device-3.f90: Likewise.
9412 * testsuite/libgomp.fortran/examples-4/simd-1.f90: Likewise.
9413 * testsuite/libgomp.fortran/examples-4/simd-2.f90: Likewise.
9414 * testsuite/libgomp.fortran/examples-4/simd-3.f90: Likewise.
9415 * testsuite/libgomp.fortran/examples-4/simd-4.f90: Likewise.
9416 * testsuite/libgomp.fortran/examples-4/simd-5.f90: Likewise.
9417 * testsuite/libgomp.fortran/examples-4/simd-6.f90: Likewise.
9418 * testsuite/libgomp.fortran/examples-4/simd-7.f90: Likewise.
9419 * testsuite/libgomp.fortran/examples-4/simd-8.f90: Likewise.
9420 * testsuite/libgomp.fortran/examples-4/target-1.f90: Likewise.
9421 * testsuite/libgomp.fortran/examples-4/target-2.f90: Likewise.
9422 * testsuite/libgomp.fortran/examples-4/target-3.f90: Likewise.
9423 * testsuite/libgomp.fortran/examples-4/target-4.f90: Likewise.
9424 * testsuite/libgomp.fortran/examples-4/target-5.f90: Likewise.
9425 * testsuite/libgomp.fortran/examples-4/target_data-1.f90: Likewise.
9426 * testsuite/libgomp.fortran/examples-4/target_data-2.f90: Likewise.
9427 * testsuite/libgomp.fortran/examples-4/target_data-3.f90: Likewise.
9428 * testsuite/libgomp.fortran/examples-4/target_data-4.f90: Likewise.
9429 * testsuite/libgomp.fortran/examples-4/target_data-5.f90: Likewise.
9430 * testsuite/libgomp.fortran/examples-4/target_data-6.f90: Likewise.
9431 * testsuite/libgomp.fortran/examples-4/target_data-7.f90: Likewise.
9432 * testsuite/libgomp.fortran/examples-4/target_update-1.f90: Likewise.
9433 * testsuite/libgomp.fortran/examples-4/target_update-2.f90: Likewise.
9434 * testsuite/libgomp.fortran/examples-4/task_dep-1.f90: Likewise.
9435 * testsuite/libgomp.fortran/examples-4/task_dep-2.f90: Likewise.
9436 * testsuite/libgomp.fortran/examples-4/task_dep-3.f90: Likewise.
9437 * testsuite/libgomp.fortran/examples-4/task_dep-4.f90: Likewise.
9438 * testsuite/libgomp.fortran/examples-4/task_dep-5.f90: Likewise.
9439 * testsuite/libgomp.fortran/examples-4/teams-2.f90: Likewise.
9440 * testsuite/libgomp.fortran/examples-4/teams-3.f90: Likewise.
9441 * testsuite/libgomp.fortran/examples-4/teams-4.f90: Likewise.
9442 * testsuite/libgomp.fortran/examples-4/teams-5.f90: Likewise.
9443 * testsuite/libgomp.fortran/examples-4/teams-6.f90: Likewise.
9444 * testsuite/libgomp.fortran/lastprivate1.f90: Likewise.
9445 * testsuite/libgomp.fortran/lastprivate2.f90: Likewise.
9446 * testsuite/libgomp.fortran/lib1.f90: Likewise.
9447 * testsuite/libgomp.fortran/lib2.f: Likewise.
9448 * testsuite/libgomp.fortran/lib3.f: Likewise.
9449 * testsuite/libgomp.fortran/lib4.f90: Likewise.
9450 * testsuite/libgomp.fortran/lock-1.f90: Likewise.
9451 * testsuite/libgomp.fortran/lock-2.f90: Likewise.
9452 * testsuite/libgomp.fortran/nested1.f90: Likewise.
9453 * testsuite/libgomp.fortran/nestedfn1.f90: Likewise.
9454 * testsuite/libgomp.fortran/nestedfn2.f90: Likewise.
9455 * testsuite/libgomp.fortran/nestedfn3.f90: Likewise.
9456 * testsuite/libgomp.fortran/nestedfn4.f90: Likewise.
9457 * testsuite/libgomp.fortran/nestedfn5.f90: Likewise.
9458 * testsuite/libgomp.fortran/omp_atomic1.f90: Likewise.
9459 * testsuite/libgomp.fortran/omp_atomic2.f90: Likewise.
9460 * testsuite/libgomp.fortran/omp_atomic3.f90: Likewise.
9461 * testsuite/libgomp.fortran/omp_atomic4.f90: Likewise.
9462 * testsuite/libgomp.fortran/omp_atomic5.f90: Likewise.
9463 * testsuite/libgomp.fortran/omp_cond1.f: Likewise.
9464 * testsuite/libgomp.fortran/omp_cond2.f: Likewise.
9465 * testsuite/libgomp.fortran/omp_cond3.F90: Likewise.
9466 * testsuite/libgomp.fortran/omp_cond4.F90: Likewise.
9467 * testsuite/libgomp.fortran/omp_parse1.f90: Likewise.
9468 * testsuite/libgomp.fortran/omp_parse2.f90: Likewise.
9469 * testsuite/libgomp.fortran/omp_parse3.f90: Likewise.
9470 * testsuite/libgomp.fortran/omp_parse4.f90: Likewise.
9471 * testsuite/libgomp.fortran/openmp_version-1.f: Likewise.
9472 * testsuite/libgomp.fortran/openmp_version-2.f90: Likewise.
9473 * testsuite/libgomp.fortran/parloops-exit-first-loop-alt-2.f95: Likewise.
9474 * testsuite/libgomp.fortran/parloops-exit-first-loop-alt.f95: Likewise.
9475 * testsuite/libgomp.fortran/pointer1.f90: Likewise.
9476 * testsuite/libgomp.fortran/pointer2.f90: Likewise.
9477 * testsuite/libgomp.fortran/pr25162.f: Likewise.
9478 * testsuite/libgomp.fortran/pr25219.f90: Likewise.
9479 * testsuite/libgomp.fortran/pr27395-1.f90: Likewise.
9480 * testsuite/libgomp.fortran/pr27395-2.f90: Likewise.
9481 * testsuite/libgomp.fortran/pr27416-1.f90: Likewise.
9482 * testsuite/libgomp.fortran/pr27916-1.f90: Likewise.
9483 * testsuite/libgomp.fortran/pr27916-2.f90: Likewise.
9484 * testsuite/libgomp.fortran/pr28390.f: Likewise.
9485 * testsuite/libgomp.fortran/pr29629.f90: Likewise.
9486 * testsuite/libgomp.fortran/pr32550.f90: Likewise.
9487 * testsuite/libgomp.fortran/pr33880.f90: Likewise.
9488 * testsuite/libgomp.fortran/pr34020.f90: Likewise.
9489 * testsuite/libgomp.fortran/pr35130.f90: Likewise.
9490 * testsuite/libgomp.fortran/pr42162.f90: Likewise.
9491 * testsuite/libgomp.fortran/pr46753.f90: Likewise.
9492 * testsuite/libgomp.fortran/pr48894.f90: Likewise.
9493 * testsuite/libgomp.fortran/pr49792-1.f90: Likewise.
9494 * testsuite/libgomp.fortran/pr49792-2.f90: Likewise.
9495 * testsuite/libgomp.fortran/pr63938-1.f90: Likewise.
9496 * testsuite/libgomp.fortran/pr63938-2.f90: Likewise.
9497 * testsuite/libgomp.fortran/pr65597.f90: Likewise.
9498 * testsuite/libgomp.fortran/pr66199-1.f90: Likewise.
9499 * testsuite/libgomp.fortran/pr71014.f90: Likewise.
9500 * testsuite/libgomp.fortran/pr81304.f90: Likewise.
9501 * testsuite/libgomp.fortran/pr81841.f90: Likewise.
9502 * testsuite/libgomp.fortran/pr84418-1.f90: Likewise.
9503 * testsuite/libgomp.fortran/pr84418-2.f90: Likewise.
9504 * testsuite/libgomp.fortran/procptr1.f90: Likewise.
9505 * testsuite/libgomp.fortran/recursion1.f90: Likewise.
9506 * testsuite/libgomp.fortran/reduction1.f90: Likewise.
9507 * testsuite/libgomp.fortran/reduction2.f90: Likewise.
9508 * testsuite/libgomp.fortran/reduction3.f90: Likewise.
9509 * testsuite/libgomp.fortran/reduction4.f90: Likewise.
9510 * testsuite/libgomp.fortran/reduction5.f90: Likewise.
9511 * testsuite/libgomp.fortran/reduction6.f90: Likewise.
9512 * testsuite/libgomp.fortran/reference1.f90: Likewise.
9513 * testsuite/libgomp.fortran/reference2.f90: Likewise.
9514 * testsuite/libgomp.fortran/retval1.f90: Likewise.
9515 * testsuite/libgomp.fortran/retval2.f90: Likewise.
9516 * testsuite/libgomp.fortran/sharing1.f90: Likewise.
9517 * testsuite/libgomp.fortran/sharing2.f90: Likewise.
9518 * testsuite/libgomp.fortran/simd1.f90: Likewise.
9519 * testsuite/libgomp.fortran/simd2.f90: Likewise.
9520 * testsuite/libgomp.fortran/simd3.f90: Likewise.
9521 * testsuite/libgomp.fortran/simd4.f90: Likewise.
9522 * testsuite/libgomp.fortran/simd5.f90: Likewise.
9523 * testsuite/libgomp.fortran/simd6.f90: Likewise.
9524 * testsuite/libgomp.fortran/simd7.f90: Likewise.
9525 * testsuite/libgomp.fortran/stack.f90: Likewise.
9526 * testsuite/libgomp.fortran/strassen.f90: Likewise.
9527 * testsuite/libgomp.fortran/tabs1.f90: Likewise.
9528 * testsuite/libgomp.fortran/tabs2.f: Likewise.
9529 * testsuite/libgomp.fortran/target1.f90: Likewise.
9530 * testsuite/libgomp.fortran/target2.f90: Likewise.
9531 * testsuite/libgomp.fortran/target3.f90: Likewise.
9532 * testsuite/libgomp.fortran/target4.f90: Likewise.
9533 * testsuite/libgomp.fortran/target5.f90: Likewise.
9534 * testsuite/libgomp.fortran/target6.f90: Likewise.
9535 * testsuite/libgomp.fortran/target7.f90: Likewise.
9536 * testsuite/libgomp.fortran/target8.f90: Likewise.
9537 * testsuite/libgomp.fortran/task1.f90: Likewise.
9538 * testsuite/libgomp.fortran/task2.f90: Likewise.
9539 * testsuite/libgomp.fortran/task3.f90: Likewise.
9540 * testsuite/libgomp.fortran/task4.f90: Likewise.
9541 * testsuite/libgomp.fortran/taskgroup1.f90: Likewise.
9542 * testsuite/libgomp.fortran/taskloop1.f90: Likewise.
9543 * testsuite/libgomp.fortran/taskloop2.f90: Likewise.
9544 * testsuite/libgomp.fortran/taskloop3.f90: Likewise.
9545 * testsuite/libgomp.fortran/taskloop4.f90: Likewise.
9546 * testsuite/libgomp.fortran/threadprivate1.f90: Likewise.
9547 * testsuite/libgomp.fortran/threadprivate2.f90: Likewise.
9548 * testsuite/libgomp.fortran/threadprivate3.f90: Likewise.
9549 * testsuite/libgomp.fortran/threadprivate4.f90: Likewise.
9550 * testsuite/libgomp.fortran/udr1.f90: Likewise.
9551 * testsuite/libgomp.fortran/udr10.f90: Likewise.
9552 * testsuite/libgomp.fortran/udr11.f90: Likewise.
9553 * testsuite/libgomp.fortran/udr12.f90: Likewise.
9554 * testsuite/libgomp.fortran/udr13.f90: Likewise.
9555 * testsuite/libgomp.fortran/udr14.f90: Likewise.
9556 * testsuite/libgomp.fortran/udr15.f90: Likewise.
9557 * testsuite/libgomp.fortran/udr2.f90: Likewise.
9558 * testsuite/libgomp.fortran/udr3.f90: Likewise.
9559 * testsuite/libgomp.fortran/udr4.f90: Likewise.
9560 * testsuite/libgomp.fortran/udr5.f90: Likewise.
9561 * testsuite/libgomp.fortran/udr6.f90: Likewise.
9562 * testsuite/libgomp.fortran/udr7.f90: Likewise.
9563 * testsuite/libgomp.fortran/udr8.f90: Likewise.
9564 * testsuite/libgomp.fortran/udr9.f90: Likewise.
9565 * testsuite/libgomp.fortran/vla1.f90: Likewise.
9566 * testsuite/libgomp.fortran/vla2.f90: Likewise.
9567 * testsuite/libgomp.fortran/vla3.f90: Likewise.
9568 * testsuite/libgomp.fortran/vla4.f90: Likewise.
9569 * testsuite/libgomp.fortran/vla5.f90: Likewise.
9570 * testsuite/libgomp.fortran/vla6.f90: Likewise.
9571 * testsuite/libgomp.fortran/vla7.f90: Likewise.
9572 * testsuite/libgomp.fortran/vla8.f90: Likewise.
9573 * testsuite/libgomp.fortran/workshare1.f90: Likewise.
9574 * testsuite/libgomp.fortran/workshare2.f90: Likewise.
9575 * testsuite/libgomp.oacc-fortran/abort-1.f90: Likewise.
9576 * testsuite/libgomp.oacc-fortran/abort-2.f90: Likewise.
9577 * testsuite/libgomp.oacc-fortran/acc_on_device-1-1.f90: Likewise.
9578 * testsuite/libgomp.oacc-fortran/acc_on_device-1-2.f: Likewise.
9579 * testsuite/libgomp.oacc-fortran/acc_on_device-1-3.f: Likewise.
9580 * testsuite/libgomp.oacc-fortran/asyncwait-1.f90: Likewise.
9581 * testsuite/libgomp.oacc-fortran/asyncwait-2.f90: Likewise.
9582 * testsuite/libgomp.oacc-fortran/asyncwait-3.f90: Likewise.
9583 * testsuite/libgomp.oacc-fortran/atomic_capture-1.f90: Likewise.
9584 * testsuite/libgomp.oacc-fortran/atomic_rw-1.f90: Likewise.
9585 * testsuite/libgomp.oacc-fortran/atomic_update-1.f90: Likewise.
9586 * testsuite/libgomp.oacc-fortran/c2.pl: Likewise.
9587 * testsuite/libgomp.oacc-fortran/clauses-1.f90: Likewise.
9588 * testsuite/libgomp.oacc-fortran/collapse-1.f90: Likewise.
9589 * testsuite/libgomp.oacc-fortran/collapse-2.f90: Likewise.
9590 * testsuite/libgomp.oacc-fortran/collapse-3.f90: Likewise.
9591 * testsuite/libgomp.oacc-fortran/collapse-4.f90: Likewise.
9592 * testsuite/libgomp.oacc-fortran/collapse-5.f90: Likewise.
9593 * testsuite/libgomp.oacc-fortran/collapse-6.f90: Likewise.
9594 * testsuite/libgomp.oacc-fortran/collapse-7.f90: Likewise.
9595 * testsuite/libgomp.oacc-fortran/collapse-8.f90: Likewise.
9596 * testsuite/libgomp.oacc-fortran/combined-directives-1.f90: Likewise.
9597 * testsuite/libgomp.oacc-fortran/combined-reduction.f90: Likewise.
9598 * testsuite/libgomp.oacc-fortran/data-1.f90: Likewise.
9599 * testsuite/libgomp.oacc-fortran/data-2.f90: Likewise.
9600 * testsuite/libgomp.oacc-fortran/data-3.f90: Likewise.
9601 * testsuite/libgomp.oacc-fortran/data-4-2.f90: Likewise.
9602 * testsuite/libgomp.oacc-fortran/data-4.f90: Likewise.
9603 * testsuite/libgomp.oacc-fortran/declare-1.f90: Likewise.
9604 * testsuite/libgomp.oacc-fortran/declare-2.f90: Likewise.
9605 * testsuite/libgomp.oacc-fortran/declare-3.f90: Likewise.
9606 * testsuite/libgomp.oacc-fortran/declare-4.f90: Likewise.
9607 * testsuite/libgomp.oacc-fortran/declare-5.f90: Likewise.
9608 * testsuite/libgomp.oacc-fortran/default-1.f90: Likewise.
9609 * testsuite/libgomp.oacc-fortran/firstprivate-1.f90: Likewise.
9610 * testsuite/libgomp.oacc-fortran/gang-static-1.f90: Likewise.
9611 * testsuite/libgomp.oacc-fortran/host_data-1.f90: Likewise.
9612 * testsuite/libgomp.oacc-fortran/if-1.f90: Likewise.
9613 * testsuite/libgomp.oacc-fortran/implicit-firstprivate-ref.f90: Likewise.
9614 * testsuite/libgomp.oacc-fortran/kernels-loop-2.f95: Likewise.
9615 * testsuite/libgomp.oacc-fortran/kernels-loop-data-2.f95: Likewise.
9616 * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit-2.f95: Likewise.
9617 * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit.f95: Likewise.
9618 * testsuite/libgomp.oacc-fortran/kernels-loop-data-update.f95: Likewise.
9619 * testsuite/libgomp.oacc-fortran/kernels-loop-data.f95: Likewise.
9620 * testsuite/libgomp.oacc-fortran/kernels-loop.f95: Likewise.
9621 * testsuite/libgomp.oacc-fortran/lib-1.f90: Likewise.
9622 * testsuite/libgomp.oacc-fortran/lib-10.f90: Likewise.
9623 * testsuite/libgomp.oacc-fortran/lib-2.f: Likewise.
9624 * testsuite/libgomp.oacc-fortran/lib-3.f: Likewise.
9625 * testsuite/libgomp.oacc-fortran/lib-32-1.f: Likewise.
9626 * testsuite/libgomp.oacc-fortran/lib-32-2.f: Likewise.
9627 * testsuite/libgomp.oacc-fortran/lib-4.f90: Likewise.
9628 * testsuite/libgomp.oacc-fortran/lib-5.f90: Likewise.
9629 * testsuite/libgomp.oacc-fortran/lib-6.f90: Likewise.
9630 * testsuite/libgomp.oacc-fortran/lib-7.f90: Likewise.
9631 * testsuite/libgomp.oacc-fortran/lib-8.f90: Likewise.
9632 * testsuite/libgomp.oacc-fortran/map-1.f90: Likewise.
9633 * testsuite/libgomp.oacc-fortran/nested-function-1.f90: Likewise.
9634 * testsuite/libgomp.oacc-fortran/nested-function-2.f90: Likewise.
9635 * testsuite/libgomp.oacc-fortran/nested-function-3.f90: Likewise.
9636 * testsuite/libgomp.oacc-fortran/non-scalar-data.f90: Likewise.
9637 * testsuite/libgomp.oacc-fortran/openacc_version-1.f: Likewise.
9638 * testsuite/libgomp.oacc-fortran/openacc_version-2.f90: Likewise.
9639 * testsuite/libgomp.oacc-fortran/par-reduction-2-1.f: Likewise.
9640 * testsuite/libgomp.oacc-fortran/par-reduction-2-2.f: Likewise.
9641 * testsuite/libgomp.oacc-fortran/parallel-reduction.f90: Likewise.
9642 * testsuite/libgomp.oacc-fortran/pointer-align-1.f90: Likewise.
9643 * testsuite/libgomp.oacc-fortran/pr70643.f90: Likewise.
9644 * testsuite/libgomp.oacc-fortran/pr81352.f90: Likewise.
9645 * testsuite/libgomp.oacc-fortran/pr83920.f90: Likewise.
9646 * testsuite/libgomp.oacc-fortran/pr84028.f90: Likewise.
9647 * testsuite/libgomp.oacc-fortran/private-variables.f90: Likewise.
9648 * testsuite/libgomp.oacc-fortran/pset-1.f90: Likewise.
9649 * testsuite/libgomp.oacc-fortran/reduction-1.f90: Likewise.
9650 * testsuite/libgomp.oacc-fortran/reduction-2.f90: Likewise.
9651 * testsuite/libgomp.oacc-fortran/reduction-3.f90: Likewise.
9652 * testsuite/libgomp.oacc-fortran/reduction-4.f90: Likewise.
9653 * testsuite/libgomp.oacc-fortran/reduction-5.f90: Likewise.
9654 * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
9655 * testsuite/libgomp.oacc-fortran/reduction-7.f90: Likewise.
9656 * testsuite/libgomp.oacc-fortran/reduction-8.f90: Likewise.
9657 * testsuite/libgomp.oacc-fortran/routine-1.f90: Likewise.
9658 * testsuite/libgomp.oacc-fortran/routine-2.f90: Likewise.
9659 * testsuite/libgomp.oacc-fortran/routine-3.f90: Likewise.
9660 * testsuite/libgomp.oacc-fortran/routine-4.f90: Likewise.
9661 * testsuite/libgomp.oacc-fortran/routine-5.f90: Likewise.
9662 * testsuite/libgomp.oacc-fortran/routine-7.f90: Likewise.
9663 * testsuite/libgomp.oacc-fortran/routine-9.f90: Likewise.
9664 * testsuite/libgomp.oacc-fortran/subarrays-1.f90: Likewise.
9665 * testsuite/libgomp.oacc-fortran/subarrays-2.f90: Likewise.
9666 * testsuite/libgomp.oacc-fortran/update-1.f90: Likewise.
9667
9668 2018-03-20 Richard Biener <rguenther@suse.de>
9669
9670 * testsuite/libgomp.graphite/force-parallel-4.c: XFAIL one
9671 parallelizable loop.
9672
9673 2018-02-19 Igor Tsimbalist <igor.v.tsimbalist@intel.com>
9674
9675 PR target/84148
9676 * configure: Regenerate.
9677
9678 2018-02-16 Jakub Jelinek <jakub@redhat.com>
9679
9680 PR fortran/84418
9681 * libgomp.fortran/pr84418-1.f90: New test.
9682 * libgomp.fortran/pr84418-2.f90: New test.
9683
9684 2018-02-14 Jakub Jelinek <jakub@redhat.com>
9685
9686 PR fortran/84313
9687 * testsuite/libgomp.fortran/threadprivate4.f90: Add
9688 -std=f2003 -fall-intrinsics into dg-additional-options.
9689
9690 2018-02-08 Martin Jambor <mjambor@suse.cz>
9691
9692 * testsuite/libgomp.hsa.c/pr82416.c: Make the function with target
9693 clonable.
9694
9695 2018-02-08 Martin Jambor <mjambor@suse.cz>
9696
9697 * testsuite/libgomp.hsa.c/staticvar.c: New test.
9698
9699 2018-02-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9700
9701 * testsuite/libgomp.oacc-c-c++-common/pr84217.c (abort)
9702 [__cplusplus]: Declare extern "C".
9703
9704 2018-02-07 Tom de Vries <tom@codesourcery.com>
9705
9706 PR libgomp/84217
9707 * testsuite/libgomp.oacc-c-c++-common/pr84217.c: New test.
9708
9709 2018-01-29 Christoph Spiel <cspiel@freenet.de>
9710 Jakub Jelinek <jakub@redhat.com>
9711
9712 PR libgomp/84096
9713 * omp.h.in (omp_init_nest_lock_with_hint): Use omp_nest_lock_t
9714 instead of omp_lock_t.
9715
9716 2018-01-25 Tom de Vries <tom@codesourcery.com>
9717
9718 PR target/84028
9719 * testsuite/libgomp.oacc-fortran/pr84028.f90: New test.
9720
9721 2018-01-24 Tom de Vries <tom@codesourcery.com>
9722
9723 PR target/83589
9724 * testsuite/libgomp.oacc-c-c++-common/pr83589.c: New test.
9725
9726 2018-01-24 Tom de Vries <tom@codesourcery.com>
9727
9728 PR target/81352
9729 * testsuite/libgomp.oacc-fortran/pr81352.f90: New test.
9730
9731 2018-01-19 Tom de Vries <tom@codesourcery.com>
9732 Cesar Philippidis <cesar@codesourcery.com>
9733
9734 PR target/83920
9735 * testsuite/libgomp.oacc-c-c++-common/pr83920.c: New test.
9736 * testsuite/libgomp.oacc-fortran/pr83920.f90: New test.
9737
9738 2018-01-03 Jakub Jelinek <jakub@redhat.com>
9739
9740 Update copyright years.
9741
9742 * libgomp.texi: Bump @copying's copyright year.
9743
9744 2017-12-30 Tom de Vries <tom@codesourcery.com>
9745
9746 PR libgomp/83046
9747 * testsuite/libgomp.oacc-c-c++-common/pr83046.c: New test.
9748 * testsuite/libgomp.c-c++-common/pr83046.c: New test.
9749
9750 2017-12-27 Tom de Vries <tom@codesourcery.com>
9751
9752 PR c++/83046
9753 * testsuite/libgomp.oacc-c-c++-common/gang-static-2.c (test_static)
9754 (test_nonstatic): Fix return type to workaround PR83046.
9755
9756 2017-12-05 Jakub Jelinek <jakub@redhat.com>
9757
9758 PR testsuite/83281
9759 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-flt.c (main): Use
9760 j suffix instead of i.
9761 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-dbl.c (main):
9762 Likewise.
9763
9764 2017-12-01 Cesar Philippidis <cesar@codesourcery.com>
9765
9766 * testsuite/libgomp.oacc-c-c++-common/data-2-lib.c: Add missing
9767 call to acc_wait (1).
9768
9769 2017-11-24 Jakub Jelinek <jakub@redhat.com>
9770
9771 PR fortran/81304
9772 * testsuite/libgomp.fortran/pr81304.f90: New test.
9773
9774 2017-11-23 Jakub Jelinek <jakub@redhat.com>
9775
9776 PR fortran/81841
9777 * libgomp.fortran/pr81841.f90: New test.
9778
9779 2017-11-22 Jakub Jelinek <jakub@redhat.com>
9780
9781 PR libgomp/83106
9782 * target.c (gomp_target_init): Compute lengths just once and
9783 use them in both malloc size and subsequent copying.
9784
9785 2017-11-17 Igor Tsimbalist <igor.v.tsimbalist@intel.com>
9786
9787 * configure.ac: Set CET_FLAGS, update XCFLAGS and FCFLAGS.
9788 * acinclude.m4: Add cet.m4.
9789 * configure: Regenerate.
9790 * Makefile.in: Likewise.
9791 * testsuite/Makefile.in: Likewise.
9792
9793 2017-11-15 Tom de Vries <tom@codesourcery.com>
9794
9795 * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-1.c: New test, copied
9796 from asyncwait-1.f90. Rewrite into C. Rewrite from float to int.
9797 * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-2.c: New test, copied
9798 from asyncwait-2.f90. Rewrite into C. Rewrite from float to int.
9799 * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-3.c: New test, copied
9800 from asyncwait-3.f90. Rewrite into C. Rewrite from float to int.
9801
9802 2017-11-14 Tom de Vries <tom@codesourcery.com>
9803
9804 * testsuite/libgomp.oacc-c-c++-common/asyncwait-1.c: Allow to run for
9805 non-nvidia devices.
9806
9807 2017-11-07 Jakub Jelinek <jakub@redhat.com>
9808
9809 PR c++/82835
9810 * testsuite/libgomp.c++/pr82835.C: New test.
9811
9812 2017-11-06 Martin Liska <mliska@suse.cz>
9813
9814 * testsuite/libgomp.c++/loop-2.C: Return a value
9815 for functions with non-void return type, or change type to void,
9816 or add -Wno-return-type for test.
9817 * testsuite/libgomp.c++/loop-4.C: Likewise.
9818 * testsuite/libgomp.c++/parallel-1.C: Likewise.
9819 * testsuite/libgomp.c++/shared-1.C: Likewise.
9820 * testsuite/libgomp.c++/single-1.C: Likewise.
9821 * testsuite/libgomp.c++/single-2.C: Likewise.
9822
9823 2017-10-31 Tom de Vries <tom@codesourcery.com>
9824
9825 * plugin/plugin-hsa.c (HSA_LOG): Remove semicolon after
9826 "do {} while (false)".
9827 (init_single_kernel, GOMP_OFFLOAD_async_run): Add missing semicolon
9828 after HSA_DEBUG call.
9829
9830 2017-10-28 Jakub Jelinek <jakub@redhat.com>
9831
9832 * target.c (struct gomp_coalesce_buf): New type.
9833 (MAX_COALESCE_BUF_SIZE, MAX_COALESCE_BUF_GAP): Define.
9834 (gomp_coalesce_buf_add, gomp_to_device_kind_p): New functions.
9835 (gomp_copy_host2dev): Add CBUF argument, if copying into
9836 the cached ranges, memcpy into buffer instead of copying
9837 into device.
9838 (gomp_map_vars_existing, gomp_map_pointer, gomp_map_fields_existing):
9839 Add CBUF argument, pass it through to other calls.
9840 (gomp_map_vars): Aggregate copies from host to device if small enough
9841 and with small enough gaps in between into memcpy into a buffer and
9842 fewer host to device copies from the buffer.
9843 (gomp_update): Adjust gomp_copy_host2dev caller.
9844
9845 2017-10-17 Thomas Schwinge <thomas@codesourcery.com>
9846
9847 * testsuite/libgomp.oacc-fortran/declare-1.f90: Restore "dg-do
9848 run" directive.
9849 * testsuite/libgomp.oacc-fortran/declare-2.f90: Likewise.
9850 * testsuite/libgomp.oacc-fortran/declare-3.f90: Likewise.
9851 * testsuite/libgomp.oacc-fortran/declare-4.f90: Likewise.
9852 * testsuite/libgomp.oacc-fortran/declare-5.f90: Likewise.
9853
9854 2017-10-16 Tom de Vries <tom@codesourcery.com>
9855
9856 * testsuite/libgomp.oacc-c-c++-common/declare-1.c: Don't require
9857 openacc_nvidia_accel_selected.
9858 * testsuite/libgomp.oacc-c-c++-common/declare-2.c: Same.
9859 * testsuite/libgomp.oacc-c-c++-common/declare-4.c: Same.
9860 * testsuite/libgomp.oacc-fortran/declare-2.f90: Same.
9861 * testsuite/libgomp.oacc-fortran/declare-4.f90: Same
9862 * testsuite/libgomp.oacc-fortran/declare-5.f90: Same.
9863 * testsuite/libgomp.oacc-c-c++-common/declare-5.c: Don't require
9864 openacc_nvidia_accel_selected. Skip for shared memory device.
9865 * testsuite/libgomp.oacc-fortran/declare-1.f90: Same.
9866 * testsuite/libgomp.oacc-fortran/declare-3.f90: Same.
9867
9868 2017-10-09 Martin Jambor <mjambor@suse.cz>
9869
9870 PR hsa/82416
9871 * testsuite/libgomp.hsa.c/pr82416.c: New test.
9872
9873 2017-10-07 Tom de Vries <tom@codesourcery.com>
9874
9875 * testsuite/libgomp.oacc-fortran/firstprivate-1.f90 (firstprivate):
9876 Remove acc_device_nvidia references.
9877 * testsuite/libgomp.oacc-fortran/parallel-reduction.f90 (reduction):
9878 Same.
9879
9880 2017-10-05 Tom de Vries <tom@codesourcery.com>
9881
9882 * testsuite/libgomp.oacc-c-c++-common/loop-red-g-1.c (main): Remove
9883 vector_length(32) clause from acc parallel directive.
9884 * testsuite/libgomp.oacc-c-c++-common/routine-g-1.c (main): Same.
9885
9886 2017-10-04 Tom de Vries <tom@codesourcery.com>
9887
9888 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-3.c
9889 (main): Reduce sum of arr elements. Assert that hres is exactly
9890 representable in 32-bit floating point.
9891 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-4.c
9892 (main): Reduce sum of arr elements. Assert that hres and hmres are
9893 exactly representable in 32-bit floating point.
9894 * testsuite/libgomp.oacc-c-c++-common/reduction-7.c (gwv_np_4): Same.
9895
9896 2017-09-28 Tom de Vries <tom@codesourcery.com>
9897
9898 * testsuite/libgomp.c++/for-12.C: Remove superfluous -fopenmp option
9899 setting.
9900 * testsuite/libgomp.c++/pr69393.C: Same.
9901 * testsuite/libgomp.c++/taskloop-1.C: Same.
9902 * testsuite/libgomp.c++/taskloop-3.C: Same.
9903 * testsuite/libgomp.c++/taskloop-4.C: Same.
9904 * testsuite/libgomp.c/for-4.c: Same.
9905 * testsuite/libgomp.c/pr66199-3.c: Same.
9906 * testsuite/libgomp.c/pr66199-4.c: Same.
9907 * testsuite/libgomp.c/pr66199-6.c: Same.
9908 * testsuite/libgomp.c/taskloop-1.c: Same.
9909 * testsuite/libgomp.c/taskloop-3.c: Same.
9910 * testsuite/libgomp.c/taskloop-4.c: Same.
9911 * testsuite/libgomp.fortran/aligned1.f03: Same.
9912 * testsuite/libgomp.fortran/condinc1.f: Same.
9913 * testsuite/libgomp.fortran/condinc3.f90: Same.
9914 * testsuite/libgomp.fortran/crayptr1.f90: Same.
9915 * testsuite/libgomp.fortran/crayptr2.f90: Same.
9916 * testsuite/libgomp.fortran/crayptr3.f90: Same.
9917 * testsuite/libgomp.fortran/omp_cond1.f: Same.
9918 * testsuite/libgomp.fortran/omp_cond3.F90: Same.
9919 * testsuite/libgomp.fortran/pr66199-1.f90: Same.
9920 * testsuite/libgomp.fortran/pr66199-2.f90: Same.
9921 * testsuite/libgomp.fortran/recursion1.f90: Same.
9922 * testsuite/libgomp.fortran/target2.f90: Same.
9923 * testsuite/libgomp.fortran/target5.f90: Same.
9924 * testsuite/libgomp.fortran/task3.f90: Same.
9925
9926 2017-09-28 Tom de Vries <tom@codesourcery.com>
9927
9928 * testsuite/libgomp.oacc-c-c++-common/loop-g-1.c (main): Remove
9929 vector_length(32) clause from acc parallel directive.
9930 * testsuite/libgomp.oacc-c-c++-common/loop-g-2.c (main): Same.
9931
9932 2017-09-27 Tom de Vries <tom@codesourcery.com>
9933
9934 * testsuite/libgomp.oacc-c-c++-common/parallel-reduction.c (main):
9935 Remove acc_device_nvidia references.
9936
9937 2017-09-16 Tom de Vries <tom@codesourcery.com>
9938
9939 PR c/81875
9940 * testsuite/libgomp.c-c++-common/pr81875.c: New test.
9941
9942 2017-09-14 Tom de Vries <tom@codesourcery.com>
9943
9944 * testsuite/libgomp.c++/cancel-taskgroup-1.C: Remove.
9945 * testsuite/libgomp.c/cancel-taskgroup-1.c: Move to ...
9946 * testsuite/libgomp.c-c++-common/cancel-taskgroup-1.c: ... here.
9947 * testsuite/libgomp.c/c.exp: Include test-cases from
9948 libgomp.c-c++-common.
9949 * testsuite/libgomp.c++/c++.exp: Same. Force c++-mode compilation of .c
9950 files.
9951
9952 2017-09-14 Jakub Jelinek <jakub@redhat.com>
9953
9954 PR c++/81314
9955 * testsuite/libgomp.c++/pr81314.C: New test.
9956
9957 2017-09-03 Gerald Pfeifer <gerald@pfeifer.com>
9958
9959 * libgomp.texi (Top): www.openacc.org now uses https.
9960 (Enabling OpenACC): Ditto.
9961 (acc_get_num_devices): Ditto.
9962 (acc_set_device_type): Ditto.
9963 (acc_get_device_type): Ditto.
9964 (acc_set_device_num): Ditto.
9965 (acc_get_device_num): Ditto.
9966 (acc_async_test): Ditto.
9967 (acc_async_test_all): Ditto.
9968 (acc_wait): Ditto.
9969 (acc_wait_all): Ditto.
9970 (acc_wait_all_async): Ditto.
9971 (acc_wait_async): Ditto.
9972 (acc_init): Ditto.
9973 (acc_shutdown): Ditto.
9974 (acc_on_device): Ditto.
9975 (acc_malloc): Ditto.
9976 (acc_free): Ditto.
9977 (acc_copyin): Ditto.
9978 (acc_present_or_copyin): Ditto.
9979 (acc_create): Ditto.
9980 (acc_present_or_create): Ditto.
9981 (acc_copyout): Ditto.
9982 (acc_delete): Ditto.
9983 (acc_update_device): Ditto.
9984 (acc_update_self): Ditto.
9985 (acc_map_data): Ditto.
9986 (acc_unmap_data): Ditto.
9987 (acc_deviceptr): Ditto.
9988 (acc_hostptr): Ditto.
9989 (acc_is_present): Ditto.
9990 (acc_memcpy_to_device): Ditto.
9991 (acc_memcpy_from_device): Ditto.
9992 (acc_get_current_cuda_device): Ditto.
9993 (acc_get_current_cuda_context): Ditto.
9994 (acc_get_cuda_stream): Ditto.
9995 (acc_set_cuda_stream): Ditto.
9996 (ACC_DEVICE_TYPE): Ditto.
9997 (ACC_DEVICE_NUM): Ditto.
9998 (OpenACC Library Interoperability): Ditto.
9999
10000 2017-08-09 Jakub Jelinek <jakub@redhat.com>
10001
10002 PR c/81687
10003 * testsuite/libgomp.c/pr81687-1.c: New test.
10004 * testsuite/libgomp.c/pr81687-2.c: New test.
10005
10006 2017-08-07 Jakub Jelinek <jakub@redhat.com>
10007
10008 PR c/69389
10009 * testsuite/libgomp.c/pr69389.c: New test.
10010 * testsuite/libgomp.c++/pr69389.C: New test.
10011
10012 2017-08-07 Tom de Vries <tom@codesourcery.com>
10013
10014 PR middle-end/78266
10015 * testsuite/libgomp.oacc-c-c++-common/vprop-2.c: New test.
10016 * testsuite/libgomp.oacc-c-c++-common/vprop.c: Remove xfail.
10017
10018 2017-07-27 Jakub Jelinek <jakub@redhat.com>
10019
10020 PR c/45784
10021 * testsuite/libgomp.c/pr45784.c: New test.
10022 * testsuite/libgomp.c++/pr45784.C: New test.
10023
10024 2017-07-19 Tom de Vries <tom@codesourcery.com>
10025
10026 * testsuite/libgomp.oacc-c/vec.c: New test.
10027
10028 2017-07-03 Tom de Vries <tom@codesourcery.com>
10029
10030 * plugin/plugin-hsa.c: Fix secure_getenv.h include.
10031
10032 2017-06-27 Tom de Vries <tom@codesourcery.com>
10033
10034 * plugin/plugin-nvptx.c (notify_var): New function.
10035 (nvptx_exec): Use notify_var for GOMP_OPENACC_DIM.
10036
10037 2017-06-27 Tom de Vries <tom@codesourcery.com>
10038
10039 * env.c (parse_unsigned_long_1): Factor out of ...
10040 (parse_unsigned_long): ... here.
10041 (parse_int_1): Factor out of ...
10042 (parse_int): ... here.
10043 (parse_int_secure): New function.
10044 (initialize_env): Use parse_int_secure for GOMP_DEBUG.
10045 * secure_getenv.h: Factor out of ...
10046 * plugin/plugin-hsa.c: ... here.
10047 * testsuite/libgomp.oacc-c-c++-common/gomp-debug-env.c: New test.
10048
10049 2017-06-21 Jakub Jelinek <jakub@redhat.com>
10050
10051 PR c++/81130
10052 * testsuite/libgomp.c++/pr81130.C: New test.
10053
10054 2017-06-17 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10055
10056 * testsuite/libgomp.fortran/strassen.f90: Remove dg-skip-if
10057 default args.
10058 * testsuite/libgomp.oacc-c-c++-common/vprop.c: Remove
10059 dg-xfail-run-if default args.
10060
10061 2017-06-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
10062
10063 * testsuite/libgomp.c/pr39591-2.c: Fix test case.
10064 * testsuite/libgomp.c/pr39591-3.c: Likewise.
10065
10066 2017-05-30 Jakub Jelinek <jakub@redhat.com>
10067
10068 PR libgomp/80822
10069 * config/linux/affinity.c (gomp_affinity_init_level_1): New function.
10070 (gomp_affinity_init_level): Use it. Always analyze the core and thread
10071 sibling lists, depending on level just pick up what CPUs to put
10072 together into a place vs. whether add multiple ordered places.
10073
10074 2017-05-24 Thomas Schwinge <thomas@codesourcery.com>
10075
10076 * openacc.h (acc_async_wait, acc_async_wait_all): New prototypes.
10077 * libgomp.map (OACC_2.0.1): Add these.
10078 * oacc-async.c (acc_async_wait, acc_async_wait_all): New aliases
10079 for "acc_wait", and "acc_wait_all", respectively.
10080 * openacc.f90 (acc_async_wait, acc_async_wait_all): New interfaces
10081 for "acc_wait", and "acc_wait_all", respectively.
10082 * openacc_lib.h (acc_async_wait, acc_async_wait_all): Likewise.
10083 * libgomp.texi (acc_wait, acc_wait_all): Update.
10084 * testsuite/libgomp.oacc-c-c++-common/par-reduction-2.c: Update.
10085 * testsuite/libgomp.oacc-fortran/par-reduction-2-1.f: New file.
10086 * testsuite/libgomp.oacc-fortran/par-reduction-2-2.f: Likewise.
10087
10088 * openacc_lib.h (acc_pcopyin, acc_pcreate): Route to
10089 acc_present_or_copyin and acc_present_or_create procedures,
10090 respectively.
10091 * testsuite/libgomp.oacc-fortran/lib-32-1.f: Exercise these, and
10092 generally different variants of OpenACC Runtime Library functions.
10093 * testsuite/libgomp.oacc-fortran/lib-32-2.f: Likewise.
10094
10095 * testsuite/libgomp.oacc-fortran/lib-32-1.f: New file.
10096 * testsuite/libgomp.oacc-fortran/lib-32-2.f: Likewise.
10097
10098 * openacc.h (acc_pcopyin, acc_pcreate): Provide prototypes instead
10099 of preprocessor definitions.
10100 * libgomp.h (strong_alias): Guard by "#ifdef
10101 HAVE_ATTRIBUTE_ALIAS".
10102 * oacc-mem.c: Provide "acc_pcreate" as alias for
10103 "acc_present_or_create", and "acc_pcopyin" as alias for
10104 "acc_present_or_copyin".
10105 * libgomp.map: New version "OACC_2.0.1".
10106 (OACC_2.0.1): Add "acc_pcopyin", and "acc_pcreate".
10107 * testsuite/libgomp.oacc-c-c++-common/lib-38.c: Remove, merging
10108 its content into...
10109 * testsuite/libgomp.oacc-c-c++-common/lib-32.c: ... this file.
10110 Extend testing.
10111
10112 * plugin/plugin-nvptx.c (nvptx_get_num_devices): Debugging output
10113 when disabling nvptx offloading.
10114
10115 2017-05-23 Thomas Schwinge <thomas@codesourcery.com>
10116
10117 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-2.c: Update.
10118 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Likewise.
10119 * testsuite/libgomp.oacc-fortran/kernels-loop-2.f95: Likewise.
10120
10121 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Rewrite.
10122 * testsuite/lib/libgomp.exp
10123 (check_effective_target_openacc_nvidia_accel_configured): New
10124 proc.
10125 * testsuite/libgomp.oacc-c++/c++.exp (check_effective_target_c)
10126 (check_effective_target_c++): New procs.
10127 * testsuite/libgomp.oacc-c/c.exp (check_effective_target_c)
10128 (check_effective_target_c++): Likewise.
10129
10130 2017-05-22 Jakub Jelinek <jakub@redhat.com>
10131
10132 PR middle-end/80809
10133 * testsuite/libgomp.c/pr80809-2.c: New test.
10134 * testsuite/libgomp.c/pr80809-3.c: New test.
10135
10136 PR middle-end/80809
10137 * testsuite/libgomp.c/pr80809-1.c: New test.
10138
10139 PR middle-end/80853
10140 * testsuite/libgomp.c/pr80853.c: New test.
10141
10142 2017-05-19 Thomas Schwinge <thomas@codesourcery.com>
10143
10144 * testsuite/libgomp.oacc-c++/template-reduction.C: Update.
10145 * testsuite/libgomp.oacc-c-c++-common/nested-2.c: Update.
10146 * testsuite/libgomp.oacc-fortran/data-4-2.f90: Likewise.
10147 * testsuite/libgomp.oacc-fortran/default-1.f90: Likewise.
10148 * testsuite/libgomp.oacc-fortran/non-scalar-data.f90: Likewise.
10149
10150 * plugin/plugin-hsa.c (DLSYM_FN, init_hsa_runtime_functions):
10151 Debug output for failure.
10152
10153 2017-05-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10154
10155 * testsuite/lib/libgomp.exp: Load scanlang.exp.
10156
10157 2017-04-27 Jakub Jelinek <jakub@redhat.com>
10158
10159 PR bootstrap/80531
10160 * configure.tgt (*-*-aix*): Add -frandom-seed=$@ to XCFLAGS to avoid
10161 bootstrap compare failures.
10162
10163 2017-04-20 Alexander Monakov <amonakov@ispras.ru>
10164
10165 * testsuite/libgomp.c/target-36.c: New testcase.
10166
10167 2017-04-13 Jakub Jelinek <jakub@redhat.com>
10168
10169 * plugin/plugin-nvptx.c (cuda_lib_inited): Use signed char type
10170 instead of char.
10171
10172 2017-04-11 Jakub Jelinek <jakub@redhat.com>
10173
10174 PR libgomp/80394
10175 * testsuite/libgomp.c/pr80394.c: New test.
10176
10177 2017-04-04 Jakub Jelinek <jakub@redhat.com>
10178
10179 PR libgomp/79876
10180 * config/posix/thread-stacksize.h: New file.
10181 * config/darwin/thread-stacksize.h: New file.
10182 * config/nvptx/thread-stacksize.h: New file.
10183 * env.c: Include thread-stacksize.h.
10184 (initialize_env): Initialize stacksize to GOMP_DEFAULT_STACKSIZE
10185 instead of 0. Call pthread_attr_setstacksize even if
10186 GOMP_DEFAULT_STACKSIZE is non-zero.
10187
10188 2017-03-30 Jakub Jelinek <jakub@redhat.com>
10189
10190 * env.c (initialize_env): Initialize stacksize to 0.
10191
10192 2017-03-22 Cesar Philippidis <cesar@codesourcery.com>
10193
10194 PR c++/80029
10195 * testsuite/libgomp.oacc-c-c++-common/declare-vla.c: New test.
10196
10197 2017-03-08 Jakub Jelinek <jakub@redhat.com>
10198
10199 PR c/79940
10200 * testsuite/libgomp.c/pr79940.c: New test.
10201
10202 2017-02-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10203
10204 * testsuite/libgomp.c/pr48591.c: Enable on all __float128
10205 targets.
10206 Add __float128 options.
10207
10208 2017-02-11 John David Anglin <danglin@gcc.gnu.org>
10209
10210 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: Remove
10211 hppa*-*-* dg-skip-if directive.
10212
10213 2017-02-09 Jakub Jelinek <jakub@redhat.com>
10214
10215 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: Move
10216 dg-skip-if directive into a comment.
10217
10218 2017-02-09 Nathan Sidwell <nathan@codesourcery.com>
10219 Chung-Lin Tang <cltang@codesourcery.com>
10220
10221 * testsuite/libgomp.oacc-c-c++-common/tile-1.c: New.
10222 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Adjust and
10223 add additional case.
10224 * testsuite/libgomp.oacc-c-c++-common/vprop.c: XFAIL under
10225 "openacc_nvidia_accel_selected".
10226 * libgomp.oacc-fortran/nested-function-1.f90 (test2):
10227 Add num_workers(8) clause.
10228
10229 2017-02-08 John David Anglin <danglin@gcc.gnu.org>
10230
10231 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: Skip on
10232 hppa*-*-*.
10233 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-dbl.c: Don't
10234 include complex.h on hppa*-*-hpux*.
10235 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-flt.c: Likewise.
10236
10237 2017-02-02 Thomas Schwinge <thomas@codesourcery.com>
10238
10239 * plugin/plugin-nvptx.c (nvptx_exec): Make it static.
10240
10241 * libgomp-plugin.h (GOMP_OFFLOAD_openacc_parallel): Rename to
10242 GOMP_OFFLOAD_openacc_exec. Adjust all users.
10243 (GOMP_OFFLOAD_openacc_get_current_cuda_device): Rename to
10244 GOMP_OFFLOAD_openacc_cuda_get_current_device. Adjust all users.
10245 (GOMP_OFFLOAD_openacc_get_current_cuda_context): Rename to
10246 GOMP_OFFLOAD_openacc_cuda_get_current_context. Adjust all users.
10247 (GOMP_OFFLOAD_openacc_get_cuda_stream): Rename to
10248 GOMP_OFFLOAD_openacc_cuda_get_stream. Adjust all users.
10249 (GOMP_OFFLOAD_openacc_set_cuda_stream): Rename to
10250 GOMP_OFFLOAD_openacc_cuda_set_stream. Adjust all users.
10251
10252 2017-01-31 Thomas Schwinge <thomas@codesourcery.com>
10253
10254 * libgomp-plugin.h: #include <stdbool.h>.
10255 (GOMP_OFFLOAD_get_name, GOMP_OFFLOAD_get_caps)
10256 (GOMP_OFFLOAD_get_type, GOMP_OFFLOAD_get_num_devices)
10257 (GOMP_OFFLOAD_init_device, GOMP_OFFLOAD_fini_device)
10258 (GOMP_OFFLOAD_version, GOMP_OFFLOAD_load_image)
10259 (GOMP_OFFLOAD_unload_image, GOMP_OFFLOAD_alloc, GOMP_OFFLOAD_free)
10260 (GOMP_OFFLOAD_dev2host, GOMP_OFFLOAD_host2dev)
10261 (GOMP_OFFLOAD_dev2dev, GOMP_OFFLOAD_can_run, GOMP_OFFLOAD_run)
10262 (GOMP_OFFLOAD_async_run, GOMP_OFFLOAD_openacc_parallel)
10263 (GOMP_OFFLOAD_openacc_register_async_cleanup)
10264 (GOMP_OFFLOAD_openacc_async_test)
10265 (GOMP_OFFLOAD_openacc_async_test_all)
10266 (GOMP_OFFLOAD_openacc_async_wait)
10267 (GOMP_OFFLOAD_openacc_async_wait_async)
10268 (GOMP_OFFLOAD_openacc_async_wait_all)
10269 (GOMP_OFFLOAD_openacc_async_wait_all_async)
10270 (GOMP_OFFLOAD_openacc_async_set_async)
10271 (GOMP_OFFLOAD_openacc_create_thread_data)
10272 (GOMP_OFFLOAD_openacc_destroy_thread_data)
10273 (GOMP_OFFLOAD_openacc_get_current_cuda_device)
10274 (GOMP_OFFLOAD_openacc_get_current_cuda_context)
10275 (GOMP_OFFLOAD_openacc_get_cuda_stream)
10276 (GOMP_OFFLOAD_openacc_set_cuda_stream): New prototypes.
10277 * libgomp.h (struct acc_dispatch_t, struct gomp_device_descr): Use
10278 these.
10279 * plugin/plugin-hsa.c (GOMP_OFFLOAD_load_image)
10280 (GOMP_OFFLOAD_unload_image): Fix argument types.
10281
10282 2017-01-26 Jakub Jelinek <jakub@redhat.com>
10283
10284 * testsuite/lib/libgomp.exp
10285 (check_effective_target_hsa_offloading_selected_nocache): Fix up
10286 check_compile invocation. Fix up removal of executable. Drop
10287 bogus "2>&1" argument.
10288
10289 * testsuite/libgomp.fortran/declare-simd-4.f90: Add cleanup-modules
10290 directive.
10291
10292 2017-01-24 Pekka Jääskeläinen <pekka@parmance.com>
10293 Martin Jambor <mjambor@suse.cz>
10294
10295 * plugin/hsa.h: Moved to top level include.
10296 * plugin/plugin-hsa.c: Chanfgd include of hsa.h accordingly.
10297
10298 2017-01-21 Jakub Jelinek <jakub@redhat.com>
10299
10300 PR other/79046
10301 * testsuite/Makefile.am (gcc_version): Use @get_gcc_base_ver@ instead
10302 of cat to get version from BASE-VER file.
10303 * testsuite/Makefile.in: Regenerated.
10304
10305 2017-01-19 Jakub Jelinek <jakub@redhat.com>
10306
10307 * plugin/cuda/cuda.h (CUdeviceptr): Typedef to unsigned long long even
10308 for _WIN64.
10309
10310 2017-01-17 Jakub Jelinek <jakub@redhat.com>
10311
10312 * plugin/hsa.h: Add GCC runtime library exception.
10313 * plugin/hsa_ext_finalize.h: Likewise.
10314
10315 * plugin/configfrag.ac: For --without-cuda-driver don't initialize
10316 CUDA_DRIVER_INCLUDE nor CUDA_DRIVER_LIB. If both
10317 CUDA_DRIVER_INCLUDE and CUDA_DRIVER_LIB are empty and linking small
10318 cuda program fails, define PLUGIN_NVPTX_DYNAMIC to 1 and use
10319 plugin/include/cuda as include dir and -ldl instead of -lcuda as
10320 library to link ptx plugin against.
10321 * plugin/plugin-nvptx.c: Include dlfcn.h if PLUGIN_NVPTX_DYNAMIC.
10322 (CUDA_CALLS): Define.
10323 (cuda_lib, cuda_lib_inited): New variables.
10324 (init_cuda_lib): New function.
10325 (CUDA_CALL_PREFIX): Define.
10326 (CUDA_CALL_ERET, CUDA_CALL_ASSERT): Use CUDA_CALL_PREFIX.
10327 (CUDA_CALL): Use FN instead of (FN).
10328 (CUDA_CALL_NOCHECK): Define.
10329 (cuda_error, fini_streams_for_device, select_stream_for_async,
10330 nvptx_attach_host_thread_to_device, nvptx_open_device, link_ptx,
10331 event_gc, nvptx_exec, nvptx_async_test, nvptx_async_test_all,
10332 nvptx_wait_all, nvptx_set_clocktick, GOMP_OFFLOAD_unload_image,
10333 nvptx_stacks_alloc, nvptx_stacks_free, GOMP_OFFLOAD_run): Use
10334 CUDA_CALL_NOCHECK.
10335 (nvptx_init): Call init_cuda_lib, if it fails, return false. Use
10336 CUDA_CALL_NOCHECK.
10337 (nvptx_get_num_devices): Call init_cuda_lib, if it fails, return 0.
10338 Use CUDA_CALL_NOCHECK.
10339 * plugin/cuda/cuda.h: New file.
10340 * config.h.in: Regenerated.
10341 * configure: Regenerated.
10342
10343 PR other/79046
10344 * configure.ac: Add GCC_BASE_VER.
10345 * Makefile.am (gcc_version): Use @get_gcc_base_ver@ instead of cat to
10346 get version from BASE-VER file.
10347 * testsuite/Makefile.in: Regenerated.
10348 * configure: Regenerated.
10349 * Makefile.in: Regenerated.
10350
10351 2017-01-09 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
10352
10353 PR libgomp/60670
10354 * Makefile.am: Make fincludedir multilib-aware.
10355 * Makefile.in: Regenerate.
10356
10357 2017-01-01 Jakub Jelinek <jakub@redhat.com>
10358
10359 Update copyright years.
10360
10361 * libgomp.texi: Bump @copying's copyright year.
10362
10363 2016-12-02 Sebastian Huber <sebastian.huber@embedded-brains.de>
10364
10365 * libgomp/config/rtems/pool.h (gomp_thread_pool_reservoir): Use
10366 pthread_spinlock_t instead of gomp_mutex_t lock.
10367 (gomp_get_thread_pool): Likewise.
10368 (gomp_release_thread_pool): Likewise.
10369 * libgomp/config/rtems/proc.c (allocate_thread_pool_reservoir):
10370 Likewise.
10371
10372 2016-12-02 Sebastian Huber <sebastian.huber@embedded-brains.de>
10373
10374 * config/rtems/pool.h (gomp_get_thread_pool): Return proper
10375 thread pool in case nthreads == 1.
10376
10377 2016-11-30 Alexander Monakov <amonakov@ispras.ru>
10378
10379 * config/nvptx/env.c: Delete.
10380 * icv.c: Move definitions of ICV variables back ...
10381 * env.c: ...here. Do not compile environment-related functionality if
10382 LIBGOMP_OFFLOADED_ONLY is set.
10383
10384 2016-11-30 Alexander Monakov <amonakov@ispras.ru>
10385
10386 * configure.ac [nvptx*-*-*] (libgomp_offloaded_only): Set and use it...
10387 (LIBGOMP_OFFLOADED_ONLY): ...here; new define.
10388 * configure: Regenerate.
10389 * config.h.in: Likewise.
10390
10391 2016-11-30 Alexander Monakov <amonakov@ispras.ru>
10392
10393 * Makefile.in: Regenerate with automake-1.11.6.
10394 * aclocal.m4: Likewise.
10395 * configure: Likewise.
10396 * testsuite/Makefile.in: Likewise.
10397
10398 2016-11-28 Alexander Monakov <amonakov@ispras.ru>
10399
10400 * config/nvptx/critical.c: Delete to use generic implementation.
10401
10402 2016-11-28 Jonas Hahnfeld <Hahnfeld@itc.rwth-aachen.de>
10403
10404 * config/linux/affinity.c [!HAVE_PTHREAD_AFFINITY_NP]: Include
10405 ../../affinity.c as fallback.
10406 * config/nvptx/affinity.c: Delete to use fallback implementation.
10407
10408 2016-11-23 Alexander Monakov <amonakov@ispras.ru>
10409 Jakub Jelinek <jakub@redhat.com>
10410 Dmitry Melnik <dm@ispras.ru>
10411
10412 * Makefile.am (libgomp_la_SOURCES): Add atomic.c, icv.c, icv-device.c.
10413 * Makefile.in. Regenerate.
10414 * configure.ac [nvptx*-*-*] (libgomp_use_pthreads): Set and use it...
10415 (LIBGOMP_USE_PTHREADS): ...here; new define.
10416 * configure: Regenerate.
10417 * config.h.in: Likewise.
10418 * config/posix/affinity.c: Move to...
10419 * affinity.c: ...here (new file). Guard use of Pthreads-specific
10420 interface by LIBGOMP_USE_PTHREADS.
10421 * critical.c: Split out GOMP_atomic_{start,end} into...
10422 * atomic.c: ...here (new file).
10423 * env.c: Split out ICV definitions into...
10424 * icv.c: ...here (new file) and...
10425 * icv-device.c: ...here. New file.
10426 * config/linux/lock.c (gomp_init_lock_30): Move to generic lock.c.
10427 (gomp_destroy_lock_30): Ditto.
10428 (gomp_set_lock_30): Ditto.
10429 (gomp_unset_lock_30): Ditto.
10430 (gomp_test_lock_30): Ditto.
10431 (gomp_init_nest_lock_30): Ditto.
10432 (gomp_destroy_nest_lock_30): Ditto.
10433 (gomp_set_nest_lock_30): Ditto.
10434 (gomp_unset_nest_lock_30): Ditto.
10435 (gomp_test_nest_lock_30): Ditto.
10436 * lock.c: New.
10437 * config/nvptx/lock.c: New.
10438 * config/nvptx/bar.c: New.
10439 * config/nvptx/bar.h: New.
10440 * config/nvptx/doacross.h: New.
10441 * config/nvptx/error.c: New.
10442 * config/nvptx/icv-device.c: New.
10443 * config/nvptx/mutex.h: New.
10444 * config/nvptx/pool.h: New.
10445 * config/nvptx/proc.c: New.
10446 * config/nvptx/ptrlock.h: New.
10447 * config/nvptx/sem.h: New.
10448 * config/nvptx/simple-bar.h: New.
10449 * config/nvptx/target.c: New.
10450 * config/nvptx/task.c: New.
10451 * config/nvptx/team.c: New.
10452 * config/nvptx/time.c: New.
10453 * config/posix/simple-bar.h: New.
10454 * libgomp.h: Guard pthread.h inclusion. Include simple-bar.h.
10455 (gomp_num_teams_var): Declare.
10456 (struct gomp_thread_pool): Change threads_dock member to
10457 gomp_simple_barrier_t.
10458 [__nvptx__] (gomp_thread): New implementation.
10459 (gomp_thread_attr): Guard by LIBGOMP_USE_PTHREADS.
10460 (gomp_thread_destructor): Ditto.
10461 (gomp_init_thread_affinity): Ditto.
10462 * team.c: Guard uses of Pthreads-specific interfaces by
10463 LIBGOMP_USE_PTHREADS. Adjust all uses of threads_dock.
10464 (gomp_free_thread) [__nvptx__]: Do not call 'free'.
10465 * config/nvptx/alloc.c: Delete.
10466 * config/nvptx/barrier.c: Ditto.
10467 * config/nvptx/fortran.c: Ditto.
10468 * config/nvptx/iter.c: Ditto.
10469 * config/nvptx/iter_ull.c: Ditto.
10470 * config/nvptx/loop.c: Ditto.
10471 * config/nvptx/loop_ull.c: Ditto.
10472 * config/nvptx/ordered.c: Ditto.
10473 * config/nvptx/parallel.c: Ditto.
10474 * config/nvptx/priority_queue.c: Ditto.
10475 * config/nvptx/sections.c: Ditto.
10476 * config/nvptx/single.c: Ditto.
10477 * config/nvptx/splay-tree.c: Ditto.
10478 * config/nvptx/work.c: Ditto.
10479 * testsuite/libgomp.fortran/fortran.exp (lang_link_flags): Pass
10480 -foffload=-lgfortran in addition to -lgfortran.
10481 * testsuite/libgomp.oacc-fortran/fortran.exp (lang_link_flags): Ditto.
10482 * plugin/plugin-nvptx.c: Include <limits.h>.
10483 (struct targ_fn_descriptor): Add new fields.
10484 (struct ptx_device): Ditto. Set them...
10485 (nvptx_open_device): ...here.
10486 (nvptx_adjust_launch_bounds): New.
10487 (nvptx_host2dev): Allow NULL 'nvthd'.
10488 (nvptx_dev2host): Ditto.
10489 (GOMP_OFFLOAD_get_caps): Add GOMP_OFFLOAD_CAP_OPENMP_400.
10490 (link_ptx): Adjust log sizes.
10491 (nvptx_host2dev): Allow NULL 'nvthd'.
10492 (nvptx_dev2host): Ditto.
10493 (nvptx_set_clocktick): New. Use it...
10494 (GOMP_OFFLOAD_load_image): ...here. Set new targ_fn_descriptor
10495 fields.
10496 (GOMP_OFFLOAD_dev2dev): New.
10497 (nvptx_adjust_launch_bounds): New.
10498 (nvptx_stacks_size): New.
10499 (nvptx_stacks_alloc): New.
10500 (nvptx_stacks_free): New.
10501 (GOMP_OFFLOAD_run): New.
10502 (GOMP_OFFLOAD_async_run): New (stub).
10503
10504 2016-11-23 Martin Jambor <mjambor@suse.cz>
10505
10506 * testsuite/libgomp.hsa.c/bits-insns.c: New test.
10507 * testsuite/libgomp.hsa.c/tiling-1.c: Likewise.
10508 * testsuite/libgomp.hsa.c/tiling-2.c: Likewise.
10509
10510 2016-11-23 Martin Liska <mliska@suse.cz>
10511 Martin Jambor <mjambor@suse.cz>
10512
10513 * plugin/hsa.h: New file.
10514 * plugin/hsa_ext_finalize.h: New file.
10515 * plugin/configfrag.ac: Remove hsa-kmt-lib test. Added checks for
10516 header file unistd.h, and functions secure_getenv, __secure_getenv,
10517 getuid, geteuid, getgid and getegid.
10518 * plugin/Makefrag.am (libgomp_plugin_hsa_la_CPPFLAGS): Added
10519 -D_GNU_SOURCE.
10520 * plugin/plugin-hsa.c: Include config.h, inttypes.h and stdbool.h.
10521 Handle various cases of secure_getenv presence, add an implementation
10522 when we can test effective UID and GID.
10523 (struct hsa_runtime_fn_info): New structure.
10524 (hsa_runtime_fn_info hsa_fns): New variable.
10525 (hsa_runtime_lib): Likewise.
10526 (support_cpu_devices): Likewise.
10527 (init_enviroment_variables): Load newly introduced ENV
10528 variables.
10529 (hsa_warn): Call hsa run-time functions via hsa_fns structure.
10530 (hsa_fatal): Likewise.
10531 (DLSYM_FN): New macro.
10532 (init_hsa_runtime_functions): New function.
10533 (suitable_hsa_agent_p): Call hsa run-time functions via hsa_fns
10534 structure. Depending on environment, also allow CPU devices.
10535 (init_hsa_context): Call hsa run-time functions via hsa_fns structure.
10536 (get_kernarg_memory_region): Likewise.
10537 (GOMP_OFFLOAD_init_device): Likewise.
10538 (destroy_hsa_program): Likewise.
10539 (init_basic_kernel_info): New function.
10540 (GOMP_OFFLOAD_load_image): Use it.
10541 (create_and_finalize_hsa_program): Call hsa run-time functions via
10542 hsa_fns structure.
10543 (create_single_kernel_dispatch): Likewise.
10544 (release_kernel_dispatch): Likewise.
10545 (init_single_kernel): Likewise.
10546 (parse_target_attributes): Allow up multiple HSA grid dimensions.
10547 (get_group_size): New function.
10548 (run_kernel): Likewise.
10549 (GOMP_OFFLOAD_run): Outline most functionality to run_kernel.
10550 (GOMP_OFFLOAD_fini_device): Call hsa run-time functions via hsa_fns
10551 structure.
10552 * testsuite/lib/libgomp.exp: Remove hsa_kmt_lib support.
10553 * testsuite/libgomp-test-support.exp.in: Likewise.
10554 * Makefile.in: Regenerated.
10555 * aclocal.m4: Likewise.
10556 * config.h.in: Likewise.
10557 * configure: Likewise.
10558 * testsuite/Makefile.in: Likewise.
10559
10560 2016-11-15 Martin Jambor <mjambor@suse.cz>
10561 Alexander Monakov <amonakov@ispras.ru>
10562
10563 * testsuite/libgomp.fortran/examples-4/device-1.f90 (e_57_1): Add
10564 mapping clauses to target constructs.
10565 * testsuite/libgomp.fortran/examples-4/device-3.f90 (e_57_3): Ditto.
10566
10567 2016-11-15 Matthias Klose <doko@ubuntu.com>
10568
10569 * configure: Regenerate.
10570
10571 2016-11-10 Jakub Jelinek <jakub@redhat.com>
10572
10573 * omp_lib.f90.in (openmp_version): Change to 201511 from 201307.
10574 * omp_lib.h.in (openmp_version): Likewise.
10575 * testsuite/libgomp.fortran/openmp_version-1.f: Expect 201511 instead
10576 of 201307.
10577 * testsuite/libgomp.fortran/openmp_version-2.f90: Likewise.
10578
10579 * testsuite/libgomp.fortran/examples-4/declare_target-1.f90
10580 (fib_wrapper): Add map(from: x) clause.
10581 * testsuite/libgomp.fortran/examples-4/declare_target-2.f90
10582 (e_53_2): Likewise.
10583 * testsuite/libgomp.fortran/examples-4/declare_target-4.f90
10584 (accum): Add map(tmp) clause.
10585 * testsuite/libgomp.fortran/examples-4/declare_target-5.f90
10586 (accum): Add map(tofrom: tmp) clause.
10587 * testsuite/libgomp.fortran/examples-4/target_data-3.f90
10588 (gramSchmidt): Likewise.
10589 * testsuite/libgomp.fortran/examples-4/teams-2.f90 (dotprod): Add
10590 map(tofrom: sum) clause.
10591 * testsuite/libgomp.fortran/nestedfn5.f90 (foo): Add twice
10592 map (alloc: a, l) clause. Add defaultmap(tofrom: scalar) clause.
10593 * testsuite/libgomp.fortran/pr66199-2.f90: Adjust for linear clause
10594 only allowed on the loop iterator.
10595 * testsuite/libgomp.fortran/target4.f90 (foo): Add map(t) clause.
10596 * testsuite/libgomp.fortran/taskloop2.f90: New test.
10597 * testsuite/libgomp.fortran/taskloop4.f90: New test.
10598 * testsuite/libgomp.fortran/doacross1.f90: New test.
10599 * testsuite/libgomp.fortran/doacross3.f90: New test.
10600 * testsuite/libgomp.fortran/taskloop1.f90: New test.
10601 * testsuite/libgomp.fortran/taskloop3.f90: New test.
10602 * testsuite/libgomp.fortran/doacross2.f90: New test.
10603 * testsuite/libgomp.c/doacross-1.c (main): Add missing
10604 #pragma omp atomic read.
10605 * testsuite/libgomp.c/doacross-2.c (main): Likewise.
10606 * testsuite/libgomp.c/doacross-3.c (main): Likewise.
10607
10608 2016-11-02 Cesar Philippidis <cesar@codesourcery.com>
10609 Nathan Sidwell <nathan@acm.org>
10610
10611 * plugin/plugin-nvptx.c (nvptx_exec): Interrogate board attributes
10612 to determine default geometry.
10613 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Set gang
10614 dimension.
10615
10616 2016-11-01 Jakub Jelinek <jakub@redhat.com>
10617
10618 * hashtab.h: Use standard GPLv3 with runtime exception
10619 boilerplate.
10620
10621 2016-10-27 Aldy Hernandez <aldyh@redhat.com>
10622
10623 * oacc-init.c (goacc_new_thread): Use sizeof of the appropriate
10624 size when allocating new thread.
10625
10626 2016-09-14 Marek Polacek <polacek@redhat.com>
10627
10628 * testsuite/libgomp.c++/atomic-3.C: Use -Wno-deprecated.
10629
10630 2016-08-19 Jakub Jelinek <jakub@redhat.com>
10631
10632 PR fortran/71014
10633 * testsuite/libgomp.fortran/pr71014.f90: New test.
10634
10635 2016-08-18 Chung-Lin Tang <cltang@codesourcery.com>
10636
10637 PR middle-end/70895
10638 * testsuite/libgomp.oacc-fortran/reduction-7.f90: Add explicit
10639 firstprivate clauses.
10640 * testsuite/libgomp.oacc-fortran/reduction-6.f90: Remove explicit
10641 copy clauses.
10642 * testsuite/libgomp.oacc-c-c++-common/reduction-7.c: Likewise.
10643 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-flt.c: Likewise.
10644 * testsuite/libgomp.oacc-c-c++-common/reduction-flt.c: Likewise.
10645 * testsuite/libgomp.oacc-c-c++-common/collapse-2.c: Likewise.
10646 * testsuite/libgomp.oacc-c-c++-common/loop-red-wv-1.c: Likewise.
10647 * testsuite/libgomp.oacc-c-c++-common/collapse-4.c: Likewise.
10648 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c: Likewise.
10649 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-dbl.c: Likewise.
10650 * testsuite/libgomp.oacc-c-c++-common/loop-red-g-1.c: Likewise.
10651 * testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c: Likewise.
10652 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c: Likewise.
10653 * testsuite/libgomp.oacc-c-c++-common/reduction-dbl.c: Likewise.
10654
10655 2016-08-14 Chung-Lin Tang <cltang@codesourcery.com>
10656
10657 PR fortran/70598
10658 * testsuite/libgomp.oacc-fortran/host_data-1.f90: New test.
10659
10660 2016-08-08 Jakub Jelinek <jakub@redhat.com>
10661
10662 PR c++/58706
10663 * testsuite/libgomp.c++/pr58706.C: New test.
10664
10665 2016-08-04 Thomas Schwinge <thomas@codesourcery.com>
10666
10667 * testsuite/libgomp.oacc-c++/routine-1-auto.C: New file.
10668 * testsuite/libgomp.oacc-c++/routine-1-template-auto.C: Likewise.
10669 * testsuite/libgomp.oacc-c++/routine-1-template-trailing-return-type.C:
10670 Likewise.
10671 * testsuite/libgomp.oacc-c++/routine-1-template.C: Likewise.
10672 * testsuite/libgomp.oacc-c++/routine-1-trailing-return-type.C:
10673 Likewise.
10674 * testsuite/libgomp.oacc-c-c++-common/routine-1.c: Adjust.
10675
10676 * testsuite/libgomp.oacc-c-c++-common/crash-1.c: Make it a "link"
10677 test, and don't hardcode -O0.
10678
10679 2016-08-03 Nathan Sidwell <nathan@codesourcery.com>
10680
10681 * testsuite/libgomp.oacc-c-c++-common/crash-1.c: New.
10682
10683 2016-07-15 Cesar Philippidis <cesar@codesourcery.com>
10684
10685 * testsuite/libgomp.oacc-c-c++-common/zero_length_subarrays.c: New
10686 test.
10687
10688 2016-07-03 H.J. Lu <hongjiu.lu@intel.com>
10689
10690 PR middle-end/71734
10691 * testsuite/libgomp.fortran/pr71734-1.f90: New test.
10692 * testsuite/libgomp.fortran/pr71734-2.f90: Likewise.
10693
10694 2016-07-01 Jakub Jelinek <jakub@redhat.com>
10695
10696 PR fortran/71717
10697 * testsuite/libgomp.fortran/associate3.f90: New test.
10698
10699 2016-06-17 Jakub Jelinek <jakub@redhat.com>
10700
10701 * testsuite/libgomp.c++/target-21.C: New test.
10702
10703 2016-06-16 Jakub Jelinek <jakub@redhat.com>
10704
10705 * testsuite/libgomp.c++/target-20.C: New test.
10706
10707 2016-06-10 Thomas Schwinge <thomas@codesourcery.com>
10708 Cesar Philippidis <cesar@codesourcery.com>
10709
10710 PR middle-end/71373
10711 * libgomp.oacc-c/nested-function-1.c: New file.
10712 * libgomp.oacc-c/nested-function-2.c: Likewise.
10713 * libgomp.oacc-fortran/nested-function-1.f90: Likewise.
10714 * libgomp.oacc-fortran/nested-function-2.f90: Likewise.
10715 * libgomp.oacc-fortran/nested-function-3.f90: Likewise.
10716
10717 2016-06-10 Thomas Schwinge <thomas@codesourcery.com>
10718
10719 PR c/71381
10720 * testsuite/libgomp.oacc-c-c++-common/cache-1.c: #include
10721 "../../../gcc/testsuite/c-c++-common/goacc/cache-1.c".
10722 * testsuite/libgomp.oacc-fortran/cache-1.f95: New file.
10723
10724 2016-06-03 Chung-Lin Tang <cltang@codesourcery.com>
10725
10726 * testsuite/libgomp.oacc-fortran/reduction-8.f90: New testcase.
10727 * testsuite/libgomp.oacc-c-c++-common/reduction-8.c: New testcase.
10728
10729 2016-06-01 Cesar Philippidis <cesar@codesourcery.com>
10730
10731 PR c/70688
10732 * testsuite/libgomp.oacc-c-c++-common/pr70688.c: New file.
10733
10734 2016-05-26 Jakub Jelinek <jakub@redhat.com>
10735
10736 * testsuite/libgomp.c/doacross-1.c (main): Use schedule(static)
10737 instead of invalid schedule(static, 0).
10738 * testsuite/libgomp.c/doacross-2.c (main): Likewise.
10739
10740 2016-05-26 Chung-Lin Tang <cltang@codesourcery.com>
10741
10742 * oacc-plugin.h (GOMP_PLUGIN_async_unmap_vars): Add int parameter.
10743 * oacc-plugin.c (GOMP_PLUGIN_async_unmap_vars): Add 'int async'
10744 parameter, use to set async stream around call to gomp_unmap_vars,
10745 call gomp_unmap_vars() with 'do_copyfrom' set to true.
10746 * plugin/plugin-nvptx.c (struct ptx_event): Add 'int val' field.
10747 (event_gc): Adjust event handling loop, collect PTX_EVT_ASYNC_CLEANUP
10748 events and call GOMP_PLUGIN_async_unmap_vars() for each of them.
10749 (event_add): Add int parameter, initialize 'val' field when
10750 adding new ptx_event struct.
10751 (nvptx_evec): Adjust event_add() call arguments.
10752 (nvptx_host2dev): Likewise.
10753 (nvptx_dev2host): Likewise.
10754 (nvptx_wait_async): Likewise.
10755 (nvptx_wait_all_async): Likewise.
10756 (GOMP_OFFLOAD_openacc_register_async_cleanup): Add async parameter,
10757 pass to event_add() call.
10758 * oacc-host.c (host_openacc_register_async_cleanup): Add 'int async'
10759 parameter.
10760 * oacc-mem.c (gomp_acc_remove_pointer): Adjust async case to
10761 call openacc.register_async_cleanup_func() hook.
10762 * oacc-parallel.c (GOACC_parallel_keyed): Likewise.
10763 * target.c (gomp_copy_from_async): Delete function.
10764 (gomp_map_vars): Remove async_refcount.
10765 (gomp_unmap_vars): Likewise.
10766 (gomp_load_image_to_device): Likewise.
10767 (omp_target_associate_ptr): Likewise.
10768 * libgomp.h (struct splay_tree_key_s): Remove async_refcount.
10769 (acc_dispatch_t.register_async_cleanup_func): Add int parameter.
10770 (gomp_copy_from_async): Remove.
10771
10772 2016-05-26 Chung-Lin Tang <cltang@codesourcery.com>
10773
10774 * target.c (gomp_device_copy): New function.
10775 (gomp_copy_host2dev): Likewise.
10776 (gomp_copy_dev2host): Likewise.
10777 (gomp_free_device_memory): Likewise.
10778 (gomp_map_vars_existing): Adjust to call gomp_copy_host2dev.
10779 (gomp_map_pointer): Likewise.
10780 (gomp_map_vars): Adjust to call gomp_copy_host2dev, handle
10781 NULL value from alloc_func plugin hook.
10782 (gomp_unmap_tgt): Adjust to call gomp_free_device_memory.
10783 (gomp_copy_from_async): Adjust to call gomp_copy_dev2host.
10784 (gomp_unmap_vars): Likewise.
10785 (gomp_update): Adjust to call gomp_copy_dev2host and
10786 gomp_copy_host2dev functions.
10787 (gomp_unload_image_from_device): Handle false value from
10788 unload_image_func plugin hook.
10789 (gomp_init_device): Handle false value from init_device_func
10790 plugin hook.
10791 (gomp_exit_data): Adjust to call gomp_copy_dev2host.
10792 (omp_target_free): Adjust to call gomp_free_device_memory.
10793 (omp_target_memcpy): Handle return values from host2dev_func,
10794 dev2host_func, and dev2dev_func plugin hooks.
10795 (omp_target_memcpy_rect_worker): Likewise.
10796 (gomp_target_fini): Handle false value from fini_device_func
10797 plugin hook.
10798 * libgomp.h (struct gomp_device_descr): Adjust return type of
10799 init_device_func, fini_device_func, unload_image_func, free_func,
10800 dev2host_func,host2dev_func, and dev2dev_func plugin hooks to 'bool'.
10801 * oacc-init.c (acc_shutdown_1): Handle false value from
10802 fini_device_func plugin hook.
10803 * oacc-host.c (host_init_device): Change return type to bool.
10804 (host_fini_device): Likewise.
10805 (host_unload_image): Likewise.
10806 (host_free): Likewise.
10807 (host_dev2host): Likewise.
10808 (host_host2dev): Likewise.
10809 * oacc-mem.c (acc_free): Handle plugin hook fatal error case.
10810 (acc_memcpy_to_device): Likewise.
10811 (acc_memcpy_from_device): Likewise.
10812 (delete_copyout): Add libfnname parameter, handle free_func
10813 hook fatal error case.
10814 (acc_delete): Adjust delete_copyout call.
10815 (acc_copyout): Likewise.
10816 (update_dev_host): Move gomp_mutex_unlock to after
10817 host2dev/dev2host hook calls.
10818
10819 * plugin/plugin-hsa.c (hsa_warn): Adjust 'hsa_error' local variable
10820 to 'hsa_error_msg', for clarity.
10821 (hsa_fatal): Likewise.
10822 (hsa_error): New function.
10823 (init_hsa_context): Change return type to bool, adjust to return
10824 false on error.
10825 (GOMP_OFFLOAD_get_num_devices): Adjust to handle init_hsa_context
10826 return value.
10827 (GOMP_OFFLOAD_init_device): Change return type to bool, adjust to
10828 return false on error.
10829 (get_agent_info): Adjust to return NULL on error.
10830 (destroy_hsa_program): Change return type to bool, adjust to
10831 return false on error.
10832 (GOMP_OFFLOAD_load_image): Adjust to return -1 on error.
10833 (destroy_module): Change return type to bool, adjust to
10834 return false on error.
10835 (GOMP_OFFLOAD_unload_image): Likewise.
10836 (GOMP_OFFLOAD_fini_device): Likewise.
10837 (GOMP_OFFLOAD_alloc): Change to return NULL when called.
10838 (GOMP_OFFLOAD_free): Change to return false when called.
10839 (GOMP_OFFLOAD_dev2host): Likewise.
10840 (GOMP_OFFLOAD_host2dev): Likewise.
10841 (GOMP_OFFLOAD_dev2dev): Likewise.
10842
10843 * plugin/plugin-nvptx.c (CUDA_CALL_ERET): New convenience macro.
10844 (CUDA_CALL): Likewise.
10845 (CUDA_CALL_ASSERT): Likewise.
10846 (map_init): Change return type to bool, use CUDA_CALL* macros.
10847 (map_fini): Likewise.
10848 (init_streams_for_device): Change return type to bool, adjust
10849 call to map_init.
10850 (fini_streams_for_device): Change return type to bool, adjust
10851 call to map_fini.
10852 (select_stream_for_async): Release stream_lock before calls to
10853 GOMP_PLUGIN_fatal, adjust call to map_init.
10854 (nvptx_init): Use CUDA_CALL* macros.
10855 (nvptx_attach_host_thread_to_device): Change return type to bool,
10856 use CUDA_CALL* macros.
10857 (nvptx_open_device): Use CUDA_CALL* macros.
10858 (nvptx_close_device): Change return type to bool, use CUDA_CALL*
10859 macros.
10860 (nvptx_get_num_devices): Use CUDA_CALL* macros.
10861 (link_ptx): Change return type to bool, use CUDA_CALL* macros.
10862 (nvptx_exec): Use CUDA_CALL* macros.
10863 (nvptx_alloc): Use CUDA_CALL* macros.
10864 (nvptx_free): Change return type to bool, use CUDA_CALL* macros.
10865 (nvptx_host2dev): Likewise.
10866 (nvptx_dev2host): Likewise.
10867 (nvptx_wait): Use CUDA_CALL* macros.
10868 (nvptx_wait_async): Likewise.
10869 (nvptx_wait_all): Likewise.
10870 (nvptx_wait_all_async): Likewise.
10871 (nvptx_set_cuda_stream): Adjust order of stream_lock acquire,
10872 use CUDA_CALL* macros, adjust call to map_fini.
10873 (GOMP_OFFLOAD_init_device): Change return type to bool,
10874 adjust code accordingly.
10875 (GOMP_OFFLOAD_fini_device): Likewise.
10876 (GOMP_OFFLOAD_load_image): Adjust calls to
10877 nvptx_attach_host_thread_to_device/link_ptx to handle errors,
10878 use CUDA_CALL* macros.
10879 (GOMP_OFFLOAD_unload_image): Change return type to bool, adjust
10880 return code.
10881 (GOMP_OFFLOAD_alloc): Adjust calls to code to handle error return.
10882 (GOMP_OFFLOAD_free): Change return type to bool, adjust calls to
10883 handle error return.
10884 (GOMP_OFFLOAD_dev2host): Likewise.
10885 (GOMP_OFFLOAD_host2dev): Likewise.
10886 (GOMP_OFFLOAD_openacc_register_async_cleanup): Use CUDA_CALL* macros.
10887 (GOMP_OFFLOAD_openacc_create_thread_data): Likewise.
10888
10889 2016-05-24 Cesar Philippidis <cesar@codesourcery.com>
10890
10891 * oacc-mem.c (acc_malloc): Update handling of shared-memory targets.
10892 (acc_free): Likewise.
10893 (acc_memcpy_to_device): Likewise.
10894 (acc_memcpy_from_device): Likewise.
10895 (acc_deviceptr): Likewise.
10896 (acc_hostptr): Likewise.
10897 (acc_is_present): Likewise.
10898 (acc_map_data): Likewise.
10899 (acc_unmap_data): Likewise.
10900 (present_create_copy): Likewise.
10901 (delete_copyout): Likewise.
10902 (update_dev_host): Likewise.
10903 * testsuite/libgomp.oacc-c-c++-common/asyncwait-1.c: Remove xfail.
10904 * testsuite/libgomp.oacc-c-c++-common/data-2-lib.c: New test.
10905 * testsuite/libgomp.oacc-c-c++-common/data-2.c: Adjust test.
10906 * testsuite/libgomp.oacc-c-c++-common/data-3.c: Likewise.
10907 * testsuite/libgomp.oacc-c-c++-common/enter_exit-lib.c: New test.
10908 * testsuite/libgomp.oacc-c-c++-common/lib-13.c: Adjust test so that
10909 it only runs on nvptx targets.
10910 * testsuite/libgomp.oacc-c-c++-common/lib-14.c: Likewise.
10911 * testsuite/libgomp.oacc-c-c++-common/lib-15.c: Likewise.
10912 * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
10913 * testsuite/libgomp.oacc-c-c++-common/lib-17.c: Likewise.
10914 * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
10915 * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
10916 * testsuite/libgomp.oacc-c-c++-common/lib-21.c: Likewise.
10917 * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Likewise.
10918 * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
10919 * testsuite/libgomp.oacc-c-c++-common/lib-24.c: Likewise.
10920 * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
10921 * testsuite/libgomp.oacc-c-c++-common/lib-28.c: Likewise.
10922 * testsuite/libgomp.oacc-c-c++-common/lib-29.c: Likewise.
10923 * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
10924 * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
10925 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
10926 * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Likewise.
10927 * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
10928 * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Likewise.
10929 * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
10930 * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Likewise.
10931 * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
10932 * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
10933
10934 2016-05-23 Martin Jambor <mjambor@suse.cz>
10935
10936 * testsuite/libgomp.hsa.c/switch-sbr-2.c: New test.
10937
10938 2016-05-17 Chung-Lin Tang <cltang@codesourcery.com>
10939
10940 * oacc-init.c (acc_init): Remove !cached_base_dev condition on call
10941 to gomp_init_targets_once.
10942 (acc_set_device_type): Remove !cached_base_dev condition on call to
10943 gomp_init_targets_once, move call to before acc_device_lock acquire,
10944 to avoid deadlock.
10945 (acc_get_device_num): Remove !cached_base_dev condition on call to
10946 gomp_init_targets_once.
10947 (acc_set_device_num): Likewise.
10948
10949 2016-05-16 Martin Jambor <mjambor@suse.cz>
10950
10951 * testsuite/libgomp.hsa.c/complex-align-2.c: New test.
10952
10953 2016-05-02 Nathan Sidwell <nathan@codesourcery.com>
10954
10955 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Adjust
10956 expected partitioning.
10957
10958 2016-04-29 Cesar Philippidis <cesar@codesourcery.com>
10959
10960 PR middle-end/70626
10961 * testsuite/libgomp.oacc-c++/template-reduction.C: Adjust test.
10962 * testsuite/libgomp.oacc-c-c++-common/combined-reduction.c: New test.
10963 * testsuite/libgomp.oacc-fortran/combined-reduction.f90: New test.
10964
10965 2016-04-21 Alexander Monakov <amonakov@ispras.ru>
10966
10967 * plugin/plugin-nvptx.c (map_fini): Make cuMemFreeHost error
10968 non-fatal.
10969
10970 2016-04-19 Jakub Jelinek <jakub@redhat.com>
10971
10972 PR middle-end/70680
10973 * testsuite/libgomp.c/pr70680-1.c: New test.
10974 * testsuite/libgomp.c/pr70680-2.c: New test.
10975
10976 2016-04-14 Cesar Philippidis <cesar@codesourcery.com>
10977
10978 * testsuite/libgomp.oacc-fortran/non-scalar-data.f90: Don't
10979 pass parameter variables to subroutines.
10980
10981 2016-04-14 Cesar Philippidis <cesar@codesourcery.com>
10982
10983 PR middle-end/70643
10984 * testsuite/libgomp.oacc-fortran/pr70643.f90: New test.
10985
10986 2016-04-13 Cesar Philippidis <cesar@codesourcery.com>
10987
10988 PR testsuite/68242
10989 * testsuite/libgomp.oacc-c-c++-common/reduction-1.c: Adjust test.
10990 * testsuite/libgomp.oacc-c-c++-common/reduction-2.c: Likewise.
10991
10992 2016-04-12 Thomas Schwinge <thomas@codesourcery.com>
10993
10994 * libgomp_g.h: Rename GOACC_parallel_keyd prototype to
10995 GOACC_parallel_keyed, restore GOACC_parallel prototype, new
10996 GOACC_declare prototype.
10997
10998 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gang-np-1.c:
10999 Merge this file, and...
11000 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gv-np-1.c:
11001 ... this file, and...
11002 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gw-np-1.c:
11003 ... this file, and...
11004 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-1.c:
11005 ... this file, and...
11006 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-2.c:
11007 ... this file, and...
11008 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-3.c:
11009 ... this file, and...
11010 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-4.c:
11011 ... this file, and...
11012 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-vector-p-1.c:
11013 ... this file, and...
11014 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-vector-p-2.c:
11015 ... this file, and...
11016 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-worker-p-1.c:
11017 ... this file, and...
11018 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-1.c:
11019 ... this file, and...
11020 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-2.c:
11021 ... this file, and...
11022 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-3.c:
11023 ... this file into...
11024 * testsuite/libgomp.oacc-c-c++-common/reduction-7.c: ... this
11025 file.
11026
11027 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-2.c:
11028 Make failure observable.
11029
11030 2016-04-12 Jakub Jelinek <jakub@redhat.com>
11031
11032 * libgomp.h (struct gomp_target_task): Remove firstprivate_copies
11033 field.
11034 * target.c (gomp_target_fallback_firstprivate,
11035 gomp_target_unshare_firstprivate): Removed.
11036 (GOMP_target_ext): Copy firstprivate vars into gomp_allocaed memory
11037 before waiting for dependencies.
11038 (gomp_target_task_fn): Don't copy firstprivate vars here.
11039 * task.c (GOMP_PLUGIN_target_task_completion): Don't free
11040 firstprivate_copies here.
11041 (gomp_create_target_task): Don't initialize firstprivate_copies field.
11042 * testsuite/libgomp.c/target-25.c (main): Use map (to:) instead of
11043 explicit/implicit firstprivate.
11044
11045 2016-04-08 Cesar Philippidis <cesar@codesourcery.com>
11046
11047 PR lto/70289
11048 PR ipa/70348
11049 PR tree-optimization/70373
11050 PR middle-end/70533
11051 PR middle-end/70534
11052 PR middle-end/70535
11053 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gang-np-1.c: New
11054 test.
11055 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gw-np-1.c: New
11056 test.
11057 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-1.c: New
11058 test.
11059 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-2.c: New
11060 test.
11061 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-3.c: New
11062 test.
11063 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-4.c: New
11064 test.
11065 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-vector-p-1.c: New
11066 test.
11067 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-vector-p-2.c: New
11068 test.
11069 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-worker-p-1.c: New
11070 test.
11071 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-1.c: New test.
11072 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-2.c: New test.
11073 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-3.c: New test.
11074 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-1.c: New
11075 test.
11076 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-2.c: New
11077 test.
11078 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-3.c: New
11079 test.
11080 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-4.c: New
11081 test.
11082 * testsuite/libgomp.oacc-c-c++-common/par-reduction-1.c: Add test
11083 coverage.
11084 * testsuite/libgomp.oacc-c-c++-common/par-reduction-2.c: Likewise.
11085 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Likewise.
11086 * testsuite/libgomp.oacc-c-c++-common/parallel-reduction.c: New test.
11087 * testsuite/libgomp.oacc-c-c++-common/pr70289.c: New test.
11088 * testsuite/libgomp.oacc-c-c++-common/pr70373.c: New test.
11089 * testsuite/libgomp.oacc-c-c++-common/reduction-1.c: Add test
11090 coverage.
11091 * testsuite/libgomp.oacc-c-c++-common/reduction-2.c: Likewise.
11092 * testsuite/libgomp.oacc-c-c++-common/reduction-3.c: Likewise.
11093 * testsuite/libgomp.oacc-c-c++-common/reduction-4.c: Likewise.
11094 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Likewise.
11095 * testsuite/libgomp.oacc-c-c++-common/reduction-6.c: New test.
11096 * testsuite/libgomp.oacc-c-c++-common/reduction.h: New test.
11097 * testsuite/libgomp.oacc-fortran/parallel-reduction.f90: New test.
11098 * testsuite/libgomp.oacc-fortran/pr70289.f90: New test.
11099 * testsuite/libgomp.oacc-fortran/reduction-1.f90: Add test coverage.
11100 * testsuite/libgomp.oacc-fortran/reduction-2.f90: Likewise.
11101 * testsuite/libgomp.oacc-fortran/reduction-3.f90: Likewise.
11102 * testsuite/libgomp.oacc-fortran/reduction-4.f90: Likewise.
11103 * testsuite/libgomp.oacc-fortran/reduction-5.f90: Likewise.
11104 * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
11105 * testsuite/libgomp.oacc-fortran/reduction-7.f90: New test.
11106
11107 2016-03-30 Thomas Schwinge <thomas@codesourcery.com>
11108 James Norris <jnorris@codesourcery.com>
11109 Nathan Sidwell <nathan@codesourcery.com>
11110 Julian Brown <julian@codesourcery.com>
11111 Cesar Philippidis <cesar@codesourcery.com>
11112 Chung-Lin Tang <cltang@codesourcery.com>
11113 Tom de Vries <tom@codesourcery.com>
11114
11115 * testsuite/libgomp.oacc-c-c++-common/clauses-1.c: Update.
11116 * testsuite/libgomp.oacc-c-c++-common/deviceptr-1.c: Likewise.
11117 * testsuite/libgomp.oacc-c-c++-common/if-1.c: Likewise.
11118 * testsuite/libgomp.oacc-c-c++-common/vector-loop.c: Likewise.
11119 * testsuite/libgomp.oacc-fortran/asyncwait-1.f90: Likewise.
11120 * testsuite/libgomp.oacc-fortran/asyncwait-2.f90: Likewise.
11121 * testsuite/libgomp.oacc-fortran/asyncwait-3.f90: Likewise.
11122 * testsuite/libgomp.oacc-fortran/declare-1.f90: Likewise.
11123 * testsuite/libgomp.oacc-c-c++-common/asyncwait-1.c: Likewise.
11124 XFAIL.
11125 * testsuite/libgomp.oacc-c-c++-common/firstprivate-1.c: Update.
11126 Incorporate...
11127 * testsuite/libgomp.oacc-c-c++-common/firstprivate-2.c: ... this
11128 file.
11129 * testsuite/libgomp.oacc-c++/template-reduction.C: New file.
11130 * testsuite/libgomp.oacc-c-c++-common/gang-static-1.c: Likewise.
11131 * testsuite/libgomp.oacc-c-c++-common/gang-static-2.c: Likewise.
11132 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-clauses.c:
11133 Likewise.
11134 * testsuite/libgomp.oacc-c-c++-common/private-variables.c:
11135 Likewise.
11136 * testsuite/libgomp.oacc-c-c++-common/reduction-7.c: Likewise.
11137 * testsuite/libgomp.oacc-c-c++-common/routine-1.c: Likewise.
11138 * testsuite/libgomp.oacc-c-c++-common/routine-4.c: Likewise.
11139 * testsuite/libgomp.oacc-c-c++-common/routine-wv-2.c: Likewise.
11140 * testsuite/libgomp.oacc-fortran/clauses-1.f90: Likewise.
11141 * testsuite/libgomp.oacc-fortran/default-1.f90: Likewise.
11142 * testsuite/libgomp.oacc-fortran/firstprivate-1.f90: Likewise.
11143 * testsuite/libgomp.oacc-fortran/gang-static-1.f90: Likewise.
11144 * testsuite/libgomp.oacc-fortran/if-1.f90: Likewise.
11145 * testsuite/libgomp.oacc-fortran/implicit-firstprivate-ref.f90:
11146 Likewise.
11147 * testsuite/libgomp.oacc-fortran/pr68813.f90: Likewise.
11148 * testsuite/libgomp.oacc-fortran/private-variables.f90: Likewise.
11149 * testsuite/libgomp.oacc-c-c++-common/kernels-1.c: Merge this
11150 file...
11151 * testsuite/libgomp.oacc-c-c++-common/parallel-1.c: ..., and this
11152 file into...
11153 * testsuite/libgomp.oacc-c-c++-common/data-clauses.h: ... this new
11154 file. Update.
11155 * testsuite/libgomp.oacc-c-c++-common/data-clauses-kernels.c: New
11156 file.
11157 * testsuite/libgomp.oacc-c-c++-common/data-clauses-parallel.c:
11158 Likewise.
11159 * testsuite/libgomp.oacc-c-c++-common/kernels-2.c: Rename to...
11160 * testsuite/libgomp.oacc-c-c++-common/data-clauses-kernels-ipa-pta.c:
11161 ... this new file. Update.
11162 * testsuite/libgomp.oacc-c-c++-common/parallel-2.c: Rename to...
11163 * testsuite/libgomp.oacc-c-c++-common/data-clauses-parallel-ipa-pta.c:
11164 ... this new file. Update.
11165 * testsuite/libgomp.oacc-c-c++-common/mode-transitions.c: New
11166 file. Incorporate...
11167 * testsuite/libgomp.oacc-c-c++-common/worker-single-1a.c: ... this
11168 file, and...
11169 * testsuite/libgomp.oacc-c-c++-common/worker-single-4.c: ... this
11170 file, and...
11171 * testsuite/libgomp.oacc-c-c++-common/worker-single-6.c: ... this
11172 file.
11173 * testsuite/libgomp.oacc-c-c++-common/update-1-2.c: Remove file.
11174
11175 2016-03-29 Thomas Schwinge <thomas@codesourcery.com>
11176
11177 * testsuite/libgomp.oacc-c++/c++.exp [!lang_test_file_found]: Call
11178 set-torture-options.
11179
11180 2016-03-24 Thomas Schwinge <thomas@codesourcery.com>
11181
11182 * testsuite/libgomp.oacc-c++/c++.exp: Set up torture testing, use
11183 gcc-dg-runtest.
11184 * testsuite/libgomp.oacc-c/c.exp: Likewise.
11185 * testsuite/libgomp.oacc-c-c++-common/acc-on-device-2.c: Specify
11186 -fno-builtin-acc_on_device instead of -O0.
11187 * testsuite/libgomp.oacc-c-c++-common/acc-on-device.c: Skip for
11188 -O0.
11189 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Likewise.
11190 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c:
11191 Likewise.
11192 * testsuite/libgomp.oacc-c-c++-common/loop-g-1.c: Likewise.
11193 * testsuite/libgomp.oacc-c-c++-common/loop-g-2.c: Likewise.
11194 * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c: Likewise.
11195 * testsuite/libgomp.oacc-c-c++-common/loop-red-g-1.c: Likewise.
11196 * testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c: Likewise.
11197 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c: Likewise.
11198 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c: Likewise.
11199 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c: Likewise.
11200 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c: Likewise.
11201 * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c: Likewise.
11202 * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c: Likewise.
11203 * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c: Likewise.
11204 * testsuite/libgomp.oacc-c-c++-common/routine-g-1.c: Likewise.
11205 * testsuite/libgomp.oacc-c-c++-common/routine-gwv-1.c: Likewise.
11206 * testsuite/libgomp.oacc-c-c++-common/routine-v-1.c: Likewise.
11207 * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c: Likewise.
11208 * testsuite/libgomp.oacc-c-c++-common/routine-wv-1.c: Likewise.
11209 * testsuite/libgomp.oacc-c-c++-common/kernels-alias-ipa-pta-2.c:
11210 Don't specify -O2.
11211 * testsuite/libgomp.oacc-c-c++-common/kernels-alias-ipa-pta-3.c:
11212 Likewise.
11213 * testsuite/libgomp.oacc-c-c++-common/kernels-alias-ipa-pta.c:
11214 Likewise.
11215
11216 2016-03-24 Martin Liska <mliska@suse.cz>
11217
11218 * plugin/plugin-hsa.c (packet_store_release): New function
11219 that is taken from the HSA runtime manual.
11220 (GOMP_OFFLOAD_run): Use the function.
11221
11222 2016-03-23 Jakub Jelinek <jakub@redhat.com>
11223
11224 PR c++/70376
11225 * testsuite/libgomp.c++/pr70376.C: New test.
11226
11227 2016-03-23 Tom de Vries <tom@codesourcery.com>
11228
11229 * testsuite/libgomp.oacc-fortran/reduction-2.f90: Add missing
11230 initialization of lresult and lvresult.
11231 * testsuite/libgomp.oacc-fortran/reduction-3.f90: Same.
11232
11233 2016-03-23 James Norris <jnorris@codesourcery.com>
11234 Daichi Fukuoka <dc-fukuoka@sgi.com>
11235
11236 PR libgomp/69414
11237 * oacc-mem.c (delete_copyout, update_dev_host): Fix device address.
11238 * testsuite/libgomp.oacc-c-c++-common/update-1.c: Additional tests.
11239 * testsuite/libgomp.oacc-c-c++-common/update-1-2.c: Likewise.
11240 * testsuite/libgomp.oacc-fortran/update-1.f90: New file.
11241
11242 2016-03-23 Martin Liska <mliska@suse.cz>
11243
11244 PR hsa/70337
11245 * plugin/plugin-hsa.c (GOMP_OFFLOAD_run): Copy shadow
11246 argument just in case a dispatched kernel uses that argument.
11247
11248 2016-03-16 Thomas Schwinge <thomas@codesourcery.com>
11249
11250 * testsuite/libgomp.oacc-fortran/kernels-loop-2.f95: Adjust to
11251 -ftree-parallelize-loops/-fopenacc changes.
11252 * testsuite/libgomp.oacc-fortran/kernels-loop-data-2.f95:
11253 Likewise.
11254 * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit-2.f95:
11255 Likewise.
11256 * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit.f95:
11257 Likewise.
11258 * testsuite/libgomp.oacc-fortran/kernels-loop-data-update.f95:
11259 Likewise.
11260 * testsuite/libgomp.oacc-fortran/kernels-loop-data.f95: Likewise.
11261 * testsuite/libgomp.oacc-fortran/kernels-loop.f95: Likewise.
11262
11263 2016-03-13 Thomas Schwinge <thomas@codesourcery.com>
11264
11265 * testsuite/lib/libgomp.exp (libgomp_init): Potentially append to
11266 always_ld_library_path the path to libgcc_s.
11267
11268 2016-03-10 Cesar Philippidis <cesar@codesourcery.com>
11269
11270 PR testsuite/70009
11271 * testsuite/libgomp.oacc-c-c++-common/vprop.c: Make test data signed.
11272
11273 2016-03-09 Tom de Vries <tom@codesourcery.com>
11274
11275 * testsuite/libgomp.oacc-fortran/kernels-loop-2.f95: New test.
11276 * testsuite/libgomp.oacc-fortran/kernels-loop-data-2.f95: Same.
11277 * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit-2.f95:
11278 Same.
11279 * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit.f95: Same.
11280 * testsuite/libgomp.oacc-fortran/kernels-loop-data-update.f95: Same.
11281 * testsuite/libgomp.oacc-fortran/kernels-loop-data.f95: Same.
11282 * testsuite/libgomp.oacc-fortran/kernels-loop.f95: Same.
11283
11284 2016-03-07 Martin Jambor <mjambor@suse.cz>
11285
11286 * testsuite/lib/libgomp.exp
11287 (check_effective_target_hsa_offloading_selected_nocache): New.
11288 (check_effective_target_hsa_offloading_selected): Likewise.
11289 * testsuite/libgomp.hsa.c/c.exp: Likewise.
11290 * testsuite/libgomp.hsa.c/alloca-1.c: Likewise.
11291 * testsuite/libgomp.hsa.c/bitfield-1.c: Likewise.
11292 * testsuite/libgomp.hsa.c/builtins-1.c: Likewise.
11293 * testsuite/libgomp.hsa.c/complex-1.c: Likewise.
11294 * testsuite/libgomp.hsa.c/formal-actual-args-1.c: Likewise.
11295 * testsuite/libgomp.hsa.c/function-call-1.c: Likewise.
11296 * testsuite/libgomp.hsa.c/get-level-1.c: Likewise.
11297 * testsuite/libgomp.hsa.c/gridify-1.c: Likewise.
11298 * testsuite/libgomp.hsa.c/gridify-2.c: Likewise.
11299 * testsuite/libgomp.hsa.c/gridify-3.c: Likewise.
11300 * testsuite/libgomp.hsa.c/gridify-4.c: Likewise.
11301 * testsuite/libgomp.hsa.c/memory-operations-1.c: Likewise.
11302 * testsuite/libgomp.hsa.c/pr69568.c: Likewise.
11303 * testsuite/libgomp.hsa.c/rotate-1.c: Likewise.
11304 * testsuite/libgomp.hsa.c/switch-1.c: Likewise.
11305 * testsuite/libgomp.hsa.c/switch-branch-1.c: Likewise.
11306
11307 2016-03-07 Martin Jambor <mjambor@suse.cz>
11308
11309 * testsuite/libgomp.c/examples-4/async_target-2.c: Only run on
11310 non-shared memory accelerators.
11311 * testsuite/libgomp.c/examples-4/device-1.c: Likewise.
11312 * testsuite/libgomp.c/examples-4/target-5.c: Likewise.
11313 * testsuite/libgomp.c/examples-4/target_data-6.c: Likewise.
11314 * testsuite/libgomp.c/examples-4/target_data-7.c: Likewise.
11315 * testsuite/libgomp.fortran/examples-4/async_target-2.f90: Likewise.
11316 * testsuite/libgomp.fortran/examples-4/device-1.f90: Likewise.
11317 * testsuite/libgomp.fortran/examples-4/target-5.f90: Likewise.
11318 * testsuite/libgomp.fortran/examples-4/target_data-6.f90: Likewise.
11319 * testsuite/libgomp.fortran/examples-4/target_data-7.f90: Likewise.
11320
11321 2016-03-07 Martin Jambor <mjambor@suse.cz>
11322
11323 * testsuite/lib/libgomp.exp (libgomp_init): Append -Wno-hsa to
11324 ALWAYS_CFLAGS.
11325
11326 2016-03-02 Jakub Jelinek <jakub@redhat.com>
11327
11328 PR libgomp/69555
11329 * testsuite/libgomp.c++/pr69555-1.C: New test.
11330 * testsuite/libgomp.c++/pr69555-2.C: New test.
11331
11332 2016-02-26 Keith McDaniel <k.allen.mcdaniel@gmail.com>
11333 Martin Jambor <mjambor@suse.cz>
11334
11335 * testsuite/lib/libgomp.exp
11336 (check_effective_target_offload_device_shared_as): New proc.
11337 * testsuite/libgomp.c++/declare_target-1.C: New test.
11338
11339 2016-02-25 Ilya Verbin <ilya.verbin@intel.com>
11340
11341 PR driver/68463
11342 * testsuite/libgomp.oacc-c-c++-common/parallel-dims-2.c: Remove.
11343
11344 2016-02-23 Thomas Schwinge <thomas@codesourcery.com>
11345
11346 * oacc-parallel.c (GOACC_parallel_keyed): Initialize dims.
11347 * plugin/plugin-nvptx.c (nvptx_exec): Provide default values for
11348 dims.
11349 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-2.c: Adjust to
11350 -ftree-parallelize-loops/-fopenacc changes.
11351 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-3.c: Likewise.
11352 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-2.c:
11353 Likewise.
11354 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-3.c:
11355 Likewise.
11356 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-4.c:
11357 Likewise.
11358 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-5.c:
11359 Likewise.
11360 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-6.c:
11361 Likewise.
11362 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq.c:
11363 Likewise.
11364 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-collapse.c:
11365 Likewise.
11366 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-g.c: Likewise.
11367 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-mod-not-zero.c:
11368 Likewise.
11369 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-n.c: Likewise.
11370 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-nest.c:
11371 Likewise.
11372 * testsuite/libgomp.oacc-c-c++-common/kernels-loop.c: Likewise.
11373 * testsuite/libgomp.oacc-c-c++-common/kernels-reduction.c:
11374 Likewise.
11375
11376 2016-02-22 Cesar Philippidis <cesar@codesourcery.com>
11377
11378 * testsuite/libgomp.oacc-c-c++-common/vprop.c: New test.
11379
11380 2016-02-19 Jakub Jelinek <jakub@redhat.com>
11381
11382 PR driver/69805
11383 * testsuite/libgomp.c/pr69805.c: New test.
11384
11385 2016-02-16 Tom de Vries <tom@codesourcery.com>
11386
11387 PR lto/67709
11388 * testsuite/libgomp.fortran/declare-simd-4.f90: New test.
11389
11390 2016-02-09 Tom de Vries <tom@codesourcery.com>
11391
11392 PR tree-optimization/69599
11393 * testsuite/libgomp.c/omp-nested-3.c: New test.
11394 * testsuite/libgomp.c/pr46032-2.c: New test.
11395 * testsuite/libgomp.oacc-c-c++-common/kernels-2.c: New test.
11396 * testsuite/libgomp.oacc-c-c++-common/parallel-2.c: New test.
11397
11398 2016-02-09 Tom de Vries <tom@codesourcery.com>
11399
11400 PR lto/69707
11401 * testsuite/libgomp.oacc-c-c++-common/parallel-dims-2.c: New test.
11402
11403 2016-02-02 Alexander Monakov <amonakov@ispras.ru>
11404
11405 * testsuite/libgomp.c/target-31.c: Fix testcase.
11406
11407 2016-02-02 Alexander Monakov <amonakov@ispras.ru>
11408
11409 * testsuite/libgomp.c/examples-4/teams-3.c: Add missing reduction
11410 clause.
11411 * testsuite/libgomp.c/examples-4/teams-4.c: Likewise.
11412 * testsuite/libgomp.fortran/examples-4/teams-3.f90: Add missing
11413 reduction and map clauses.
11414 * testsuite/libgomp.fortran/examples-4/teams-4.f90: Likewise.
11415
11416 2016-02-02 James Norris <jnorris@codesourcery.com>
11417
11418 * testsuite/libgomp.oacc-c-c++-common/declare-4.c: Fix clause.
11419
11420 2016-02-02 Thomas Schwinge <thomas@codesourcery.com>
11421
11422 * libgomp.map (GOACC_2.0): Remove GOACC_host_data.
11423 * oacc-parallel.c (GOACC_host_data): Remove function definition.
11424
11425 * testsuite/lib/libgomp.exp: Skip hsa offloading for OpenACC test
11426 cases.
11427
11428 * plugin/configfrag.ac (HSA_KMT_LIB, HSA_KMT_LDFLAGS): New
11429 variables.
11430 * testsuite/libgomp-test-support.exp.in (hsa_runtime_lib)
11431 (hsa_kmt_lib): Set variables.
11432 * testsuite/lib/libgomp.exp (libgomp_init): Use them to amend
11433 always_ld_library_path.
11434 * Makefile.in: Regenerate.
11435 * configure: Likewise.
11436 * testsuite/Makefile.in: Likewise.
11437
11438 * plugin/configfrag.ac (offload_additional_options)
11439 (offload_additional_lib_paths): Don't amend for hsa offloading.
11440 * configure: Regenerate.
11441
11442 * plugin/configfrag.ac: Don't configure for offloading target if
11443 we don't build the corresponding plugin.
11444 * configure: Regenerate.
11445
11446 2016-02-01 Nathan Sidwell <nathan@codesourcery.com>
11447
11448 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: New.
11449 * testsuite/libgomp.oacc-fortran/routine-7.f90: Serialize loop.
11450
11451 2016-01-26 Tom de Vries <tom@codesourcery.com>
11452
11453 PR tree-optimization/69110
11454 * testsuite/libgomp.c/pr69110.c: New test.
11455
11456 2016-01-25 Richard Biener <rguenther@suse.de>
11457
11458 PR lto/69393
11459 * testsuite/libgomp.c++/pr69393.C: New testcase.
11460
11461 2016-01-22 Ilya Verbin <ilya.verbin@intel.com>
11462
11463 * target.c (gomp_get_target_fn_addr): Allow host fallback if target
11464 function wasn't mapped to the device with non-shared memory.
11465
11466 2016-01-20 Ilya Verbin <ilya.verbin@intel.com>
11467
11468 * task.c (gomp_create_target_task): Set firstprivate_copies to NULL.
11469
11470 2016-01-19 Martin Jambor <mjambor@suse.cz>
11471 Martin Liska <mliska@suse.cz>
11472
11473 * plugin/Makefrag.am: Add HSA plugin requirements.
11474 * plugin/configfrag.ac (HSA_RUNTIME_INCLUDE): New variable.
11475 (HSA_RUNTIME_LIB): Likewise.
11476 (HSA_RUNTIME_CPPFLAGS): Likewise.
11477 (HSA_RUNTIME_INCLUDE): New substitution.
11478 (HSA_RUNTIME_LIB): Likewise.
11479 (HSA_RUNTIME_LDFLAGS): Likewise.
11480 (hsa-runtime): New configure option.
11481 (hsa-runtime-include): Likewise.
11482 (hsa-runtime-lib): Likewise.
11483 (PLUGIN_HSA): New substitution variable.
11484 Fill HSA_RUNTIME_INCLUDE and HSA_RUNTIME_LIB according to the new
11485 configure options.
11486 (PLUGIN_HSA_CPPFLAGS): Likewise.
11487 (PLUGIN_HSA_LDFLAGS): Likewise.
11488 (PLUGIN_HSA_LIBS): Likewise.
11489 Check that we have access to HSA run-time.
11490 * libgomp-plugin.h (offload_target_type): New element
11491 OFFLOAD_TARGET_TYPE_HSA.
11492 * libgomp.h (gomp_target_task): New fields firstprivate_copies and
11493 args.
11494 (bool gomp_create_target_task): Updated.
11495 (gomp_device_descr): Extra parameter of run_func and async_run_func,
11496 new field can_run_func.
11497 * libgomp_g.h (GOMP_target_ext): Update prototype.
11498 * oacc-host.c (host_run): Added a new parameter args.
11499 * target.c (calculate_firstprivate_requirements): New function.
11500 (copy_firstprivate_data): Likewise.
11501 (gomp_target_fallback_firstprivate): Use them.
11502 (gomp_target_unshare_firstprivate): New function.
11503 (gomp_get_target_fn_addr): Allow returning NULL for shared memory
11504 devices.
11505 (GOMP_target): Do host fallback for all shared memory devices. Do not
11506 pass any args to plugins.
11507 (GOMP_target_ext): Introduce device-specific argument parameter args.
11508 Allow host fallback if device shares memory. Do not remap data if
11509 device has shared memory.
11510 (gomp_target_task_fn): Likewise. Also treat shared memory devices
11511 like host fallback for mappings.
11512 (GOMP_target_data): Treat shared memory devices like host fallback.
11513 (GOMP_target_data_ext): Likewise.
11514 (GOMP_target_update): Likewise.
11515 (GOMP_target_update_ext): Likewise. Also pass NULL as args to
11516 gomp_create_target_task.
11517 (GOMP_target_enter_exit_data): Likewise.
11518 (omp_target_alloc): Treat shared memory devices like host fallback.
11519 (omp_target_free): Likewise.
11520 (omp_target_is_present): Likewise.
11521 (omp_target_memcpy): Likewise.
11522 (omp_target_memcpy_rect): Likewise.
11523 (omp_target_associate_ptr): Likewise.
11524 (gomp_load_plugin_for_device): Also load can_run.
11525 * task.c (GOMP_PLUGIN_target_task_completion): Free
11526 firstprivate_copies.
11527 (gomp_create_target_task): Accept new argument args and store it to
11528 ttask.
11529 * plugin/plugin-hsa.c: New file.
11530
11531 2016-01-18 Tom de Vries <tom@codesourcery.com>
11532
11533 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-2.c: New test.
11534 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-3.c: Same.
11535 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-2.c: Same.
11536 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-3.c: Same.
11537 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-4.c: Same.
11538 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-5.c: Same.
11539 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-6.c: Same.
11540 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq.c: Same.
11541 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-collapse.c: Same.
11542 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-2.c: Same.
11543 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-enter-exit-2.c:
11544 Same.
11545 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-enter-exit.c:
11546 Same.
11547 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-update.c: Same.
11548 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data.c: Same.
11549 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-g.c: Same.
11550 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-mod-not-zero.c: Same.
11551 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-n.c: Same.
11552 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-nest.c: Same.
11553 * testsuite/libgomp.oacc-c-c++-common/kernels-loop.c: Same.
11554 * testsuite/libgomp.oacc-c-c++-common/kernels-parallel-loop-data-enter-exit.c:
11555 Same.
11556 * testsuite/libgomp.oacc-c-c++-common/kernels-reduction.c: Same.
11557
11558 2016-01-15 Jakub Jelinek <jakub@redhat.com>
11559
11560 * task.c (GOMP_PLUGIN_target_task_completion): Add missing return.
11561
11562 2016-01-15 Cesar Philippidis <cesar@codesourcery.com>
11563
11564 * testsuite/libgomp.oacc-fortran/kernels-data.f90: New test.
11565
11566 2016-01-12 James Norris <jnorris@codesourcery.com>
11567
11568 * libgomp.texi: Updates for OpenACC.
11569
11570 2016-01-11 Alexander Monakov <amonakov@ispras.ru>
11571
11572 * plugin/plugin-nvptx.c (link_ptx): Do not set CU_JIT_TARGET.
11573
11574 2016-01-07 H.J. Lu <hongjiu.lu@intel.com>
11575
11576 PR fortran/66680
11577 * testsuite/libgomp.fortran/pr66680.f90: New test.
11578
11579 2016-01-07 Jakub Jelinek <jakub@redhat.com>
11580
11581 PR middle-end/68960
11582 * testsuite/libgomp.c/pr68960.c: New test.
11583
11584 2016-01-06 Nathan Sidwell <nathan@acm.org>
11585
11586 * openacc.h (acc_on_device): Add routine pragma for C++ wrapper.
11587 * testsuite/libgomp.oacc-c-c++-common/acc-on-device-2.c: New.
11588
11589 2016-01-04 Jakub Jelinek <jakub@redhat.com>
11590
11591 Update copyright years.
11592
11593 * libgomp.texi: Bump @copying's copyright year.
11594
11595 2015-12-31 Nathan Sidwell <nathan@acm.org>
11596
11597 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c: Correct
11598 dg-additional-options syntax.
11599 * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c: Likewise.
11600 * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c: Likewise.
11601 * testsuite/libgomp.oacc-c-c++-common/routine-v-1.c: Likewise.
11602 * testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c: Likewise.
11603 * testsuite/libgomp.oacc-c-c++-common/routine-gwv-1.c: Likewise.
11604 * testsuite/libgomp.oacc-c-c++-common/routine-g-1.c: Likewise.
11605 * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c: Likewise.
11606 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Likewise.
11607 * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c: Likewise.
11608 * testsuite/libgomp.oacc-c-c++-common/routine-wv-1.c: Likewise.
11609 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c: Likewise.
11610 * testsuite/libgomp.oacc-c-c++-common/loop-g-1.c: Likewise.
11611 * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c: Likewise.
11612 * testsuite/libgomp.oacc-c-c++-common/loop-red-wv-1.c: Likewise.
11613 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c: Likewise.
11614 * testsuite/libgomp.oacc-c-c++-common/loop-g-2.c: Likewise.
11615 * testsuite/libgomp.oacc-c-c++-common/loop-red-g-1.c: Likewise.
11616 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c: Likewise.
11617
11618 2015-12-15 Ilya Verbin <ilya.verbin@intel.com>
11619
11620 * libgomp.h (REFCOUNT_LINK): Define.
11621 (struct splay_tree_key_s): Add link_key.
11622 * target.c (gomp_map_vars): Treat REFCOUNT_LINK objects as not mapped.
11623 Replace target address of the pointer with target address of newly
11624 mapped object in the splay tree. Set link pointer on target to the
11625 device address of the mapped object.
11626 (gomp_unmap_vars): Restore target address of the pointer in the splay
11627 tree for REFCOUNT_LINK objects after unmapping.
11628 (gomp_load_image_to_device): Set refcount to REFCOUNT_LINK for "omp
11629 declare target link" objects.
11630 (gomp_unload_image_from_device): Replace j with i. Force unmap of all
11631 "omp declare target link" objects, which were mapped for the image.
11632 (gomp_exit_data): Restore target address of the pointer in the splay
11633 tree for REFCOUNT_LINK objects after unmapping.
11634 * testsuite/libgomp.c/target-link-1.c: New file.
11635
11636 2015-12-14 Ilya Verbin <ilya.verbin@intel.com>
11637
11638 * libgomp.h (gomp_device_state): New enum.
11639 (struct gomp_device_descr): Replace is_initialized with state.
11640 (gomp_fini_device): Remove declaration.
11641 * oacc-host.c (host_dispatch): Use state instead of is_initialized.
11642 * oacc-init.c (acc_init_1): Use state instead of is_initialized.
11643 (acc_shutdown_1): Likewise. Inline gomp_fini_device.
11644 (acc_set_device_type): Use state instead of is_initialized.
11645 (acc_set_device_num): Likewise.
11646 * target.c (resolve_device): Use state instead of is_initialized.
11647 Do not initialize finalized device.
11648 (gomp_map_vars): Do nothing if device is finalized.
11649 (gomp_unmap_vars): Likewise.
11650 (gomp_update): Likewise.
11651 (GOMP_offload_register_ver): Use state instead of is_initialized.
11652 (GOMP_offload_unregister_ver): Likewise.
11653 (gomp_init_device): Likewise.
11654 (gomp_unload_device): Likewise.
11655 (gomp_fini_device): Remove.
11656 (gomp_get_target_fn_addr): Do nothing if device is finalized.
11657 (GOMP_target): Go to host fallback if device is finalized.
11658 (GOMP_target_ext): Likewise.
11659 (gomp_exit_data): Do nothing if device is finalized.
11660 (gomp_target_task_fn): Go to host fallback if device is finalized.
11661 (gomp_target_fini): New static function.
11662 (gomp_target_init): Use state instead of is_initialized.
11663 Call gomp_target_fini at exit.
11664
11665 2015-12-09 Tom de Vries <tom@codesourcery.com>
11666
11667 PR tree-optimization/68716
11668 * testsuite/libgomp.c/omp-nested-2.c: New test.
11669
11670 2015-12-02 Thomas Schwinge <thomas@codesourcery.com>
11671
11672 * testsuite/libgomp.oacc-c-c++-common/host_data-2.c: Restrict to
11673 target openacc_nvidia_accel_selected.
11674 * testsuite/libgomp.oacc-c-c++-common/host_data-4.c: Likewise.
11675 * testsuite/libgomp.oacc-c-c++-common/host_data-5.c: Likewise.
11676 * testsuite/libgomp.oacc-c-c++-common/host_data-3.c: Remove file.
11677 * testsuite/libgomp.oacc-c-c++-common/host_data-6.c: Remove file.
11678
11679 2015-12-01 Julian Brown <julian@codesourcery.com>
11680 James Norris <James_Norris@mentor.com>
11681
11682 * oacc-parallel.c (GOACC_host_data): New function.
11683 * libgomp.map (GOACC_host_data): Add to GOACC_2.0.1.
11684 * testsuite/libgomp.oacc-c-c++-common/host_data-1.c: New test.
11685 * testsuite/libgomp.oacc-c-c++-common/host_data-2.c: New test.
11686 * testsuite/libgomp.oacc-c-c++-common/host_data-3.c: New test.
11687 * testsuite/libgomp.oacc-c-c++-common/host_data-4.c: New test.
11688 * testsuite/libgomp.oacc-c-c++-common/host_data-5.c: New test.
11689 * testsuite/libgomp.oacc-c-c++-common/host_data-6.c: New test.
11690
11691 2015-11-30 James Norris <jnorris@codesourcery.com>
11692 Cesar Philippidis <cesar@codesourcery.com>
11693
11694 libgomp/
11695 * libgomp.oacc-fortran/routine-5.f90: New test.
11696 * libgomp.oacc-fortran/routine-7.f90: New test.
11697 * libgomp.oacc-fortran/routine-9.f90: New test.
11698
11699 2015-11-30 Tom de Vries <tom@codesourcery.com>
11700
11701 PR tree-optimization/46032
11702 * testsuite/libgomp.c/pr46032.c: New test.
11703
11704 2015-11-27 Jakub Jelinek <jakub@redhat.com>
11705
11706 PR libgomp/68579
11707 * task.c (gomp_task_run_post_handle_depend_hash): New forward decl.
11708 (gomp_create_target_task): Call it before freeing
11709 GOMP_TARGET_TASK_DATA tasks.
11710
11711 PR c/63326
11712 * testsuite/libgomp.c/cancel-parallel-2.c (foo): Add semicolon
11713 in between case label and OpenMP standalone directives.
11714 * testsuite/libgomp.c++/cancel-parallel-2.C (foo): Likewise.
11715
11716 2015-11-26 David Edelsohn <dje.gcc@gmail.com>
11717
11718 * configure: Regenerate.
11719
11720 2015-11-26 Jakub Jelinek <jakub@redhat.com>
11721
11722 * testsuite/libgomp.c/target-35.c: New test.
11723
11724 2015-11-22 James Norris <jnorris@codesourcery.com>
11725 Cesar Philippidis <cesar@codesourcery.com>
11726
11727 * testsuite/libgomp.oacc-fortran/declare-1.f90: New test.
11728 * testsuite/libgomp.oacc-fortran/declare-2.f90: Likewise.
11729 * testsuite/libgomp.oacc-fortran/declare-3.f90: Likewise.
11730 * testsuite/libgomp.oacc-fortran/declare-4.f90: Likewise.
11731 * testsuite/libgomp.oacc-fortran/declare-5.f90: Likewise.
11732
11733 2015-11-20 Jakub Jelinek <jakub@redhat.com>
11734
11735 PR middle-end/68221
11736 * testsuite/libgomp.c/reduction-11.c: Remove xfail.
11737 * testsuite/libgomp.c/reduction-12.c: Likewise.
11738 * testsuite/libgomp.c++/reduction-11.C: Likewise.
11739 * testsuite/libgomp.c++/reduction-12.C: Likewise.
11740
11741 2015-11-19 Nathan Sidwell <nathan@codesourcery.com>
11742
11743 * libgomp.oacc-c-c++-common/reduction-dbl.c: New.
11744 * libgomp.oacc-c-c++-common/reduction-flt.c: New.
11745 * libgomp.oacc-c-c++-common/reduction-cplx-dbl.c: Use typedef.
11746 * libgomp.oacc-c-c++-common/reduction-cplx-flt.c: Use typedef.
11747 * libgomp.oacc-c-c++-common/reduction-2.c: Uncomment broken tests
11748 and fix.
11749 * libgomp.oacc-c-c++-common/reduction-3.c: Likewise.
11750 * libgomp.oacc-c-c++-common/reduction-4.c: Likewise.
11751
11752 2015-11-18 Nathan Sidwell <nathan@codesourcery.com>
11753
11754 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-flt.c: Add
11755 worker & gang cases.
11756 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-dbl.c: Likewise.
11757
11758 2015-11-17 Cesar Philippidis <cesar@codesourcery.com>
11759
11760 * config/nvptx/priority_queue.c: New file.
11761
11762 2015-11-14 Jakub Jelinek <jakub@redhat.com>
11763
11764 * libgomp.texi: Update references from OpenMP 4.0 to OpenMP 4.5
11765 sections.
11766
11767 2015-11-14 Jakub Jelinek <jakub@redhat.com>
11768 Aldy Hernandez <aldyh@redhat.com>
11769 Ilya Verbin <ilya.verbin@intel.com>
11770
11771 * ordered.c (gomp_doacross_init, GOMP_doacross_post,
11772 GOMP_doacross_wait, gomp_doacross_ull_init, GOMP_doacross_ull_post,
11773 GOMP_doacross_ull_wait): For GFS_GUIDED don't divide number of
11774 iterators or IV by chunk size.
11775 * parallel.c (gomp_resolve_num_threads): Don't assume that
11776 if thr->ts.team is non-NULL, then pool must be non-NULL.
11777 * libgomp-plugin.h (GOMP_PLUGIN_target_task_completion): Declare.
11778 * libgomp.map (GOMP_PLUGIN_1.1): New symbol version, export
11779 GOMP_PLUGIN_target_task_completion.
11780 * Makefile.am (libgomp_la_SOURCES): Add priority_queue.c.
11781 * Makefile.in: Regenerate.
11782 * libgomp.h: Shuffle prototypes and forward definitions around so
11783 priority queues can be defined.
11784 (enum gomp_task_kind): Add GOMP_TASK_ASYNC_RUNNING.
11785 (enum gomp_target_task_state): New enum.
11786 (struct gomp_target_task): Add state, tgt, task and team fields.
11787 (gomp_create_target_task): Change return type to bool, add
11788 state argument.
11789 (gomp_target_task_fn): Change return type to bool.
11790 (struct gomp_device_descr): Add async_run_func.
11791 (struct gomp_task): Remove children, next_child, prev_child,
11792 next_queue, prev_queue, next_taskgroup, prev_taskgroup.
11793 Add pnode field.
11794 (struct gomp_taskgroup): Remove children.
11795 Add taskgroup_queue.
11796 (struct gomp_team): Change task_queue type to a priority queue.
11797 (splay_compare): Define inline.
11798 (priority_queue_offset): New.
11799 (priority_node_to_task): New.
11800 (task_to_priority_node): New.
11801 * oacc-mem.c: Do not include splay-tree.h.
11802 * priority_queue.c: New file.
11803 * priority_queue.h: New file.
11804 * splay-tree.c: Do not include splay-tree.h.
11805 (splay_tree_foreach_internal): New.
11806 (splay_tree_foreach): New.
11807 * splay-tree.h: Become re-entrant if splay_tree_prefix is defined.
11808 (splay_tree_callback): Define typedef.
11809 * target.c (splay_compare): Move to libgomp.h.
11810 (GOMP_target): Don't adjust *thr in any way around running offloaded
11811 task.
11812 (GOMP_target_ext): Likewise. Handle target nowait.
11813 (GOMP_target_update_ext, GOMP_target_enter_exit_data): Check
11814 return value from gomp_create_target_task, if false, fallthrough
11815 as if no dependencies exist.
11816 (gomp_target_task_fn): Change return type to bool, return true
11817 if the task should have another part scheduled later. Handle
11818 target nowait.
11819 (gomp_load_plugin_for_device): Initialize async_run.
11820 * task.c (gomp_init_task): Initialize children_queue.
11821 (gomp_clear_parent_in_list): New.
11822 (gomp_clear_parent_in_tree): New.
11823 (gomp_clear_parent): Handle priorities.
11824 (GOMP_task): Likewise.
11825 (priority_queue_move_task_first,
11826 gomp_target_task_completion, GOMP_PLUGIN_target_task_completion):
11827 New functions.
11828 (gomp_create_target_task): Use priority queues. Change return type
11829 to bool, add state argument, return false if for async
11830 {{enter,exit} data,update} constructs no dependencies need to be
11831 waited for, handle target nowait. Set task->fn to NULL instead of
11832 gomp_target_task_fn.
11833 (verify_children_queue): Remove.
11834 (priority_list_upgrade_task): New.
11835 (priority_queue_upgrade_task): New.
11836 (verify_task_queue): Remove.
11837 (priority_list_downgrade_task): New.
11838 (priority_queue_downgrade_task): New.
11839 (gomp_task_run_pre): Use priority queues.
11840 Abstract code out to priority_queue_downgrade_task.
11841 (gomp_task_run_post_handle_dependers): Use priority queues.
11842 (gomp_task_run_post_remove_parent): Likewise.
11843 (gomp_task_run_post_remove_taskgroup): Likewise.
11844 (gomp_barrier_handle_tasks): Likewise. Handle target nowait target
11845 tasks specially.
11846 (GOMP_taskwait): Likewise.
11847 (gomp_task_maybe_wait_for_dependencies): Likewise. Abstract code to
11848 priority-queue_upgrade_task.
11849 (GOMP_taskgroup_start): Use priority queues.
11850 (GOMP_taskgroup_end): Likewise. Handle target nowait target tasks
11851 specially. If taskgroup is NULL, and thr->ts.level is 0, act as a
11852 barrier.
11853 * taskloop.c (GOMP_taskloop): Handle priorities.
11854 * team.c (gomp_new_team): Call priority_queue_init.
11855 (free_team): Call priority_queue_free.
11856 (gomp_free_thread): Call gomp_team_end if thr->ts.team is artificial
11857 team created for target nowait in implicit parallel region.
11858 (gomp_team_start): For nested check, test thr->ts.level instead of
11859 thr->ts.team != NULL.
11860 * testsuite/libgomp.c/doacross-3.c: New test.
11861 * testsuite/libgomp.c/ordered-5.c: New test.
11862 * testsuite/libgomp.c/priority.c: New test.
11863 * testsuite/libgomp.c/target-31.c: New test.
11864 * testsuite/libgomp.c/target-32.c: New test.
11865 * testsuite/libgomp.c/target-33.c: New test.
11866 * testsuite/libgomp.c/target-34.c: New test.
11867
11868 2015-11-13 Nathan Sidwell <nathan@codesourcery.com>
11869
11870 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: New.
11871
11872 * testsuite/libgomp.oacc-c-c++-common/collapse-2.c: Sequential
11873 loop is sequential.
11874
11875 2015-11-13 Nathan Sidwell <nathan@codesourcery.com>
11876
11877 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-dbl.c: New.
11878 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-flt.c: New.
11879
11880 2015-11-12 James Norris <jnorris@codesourcery.com>
11881 Joseph Myers <joseph@codesourcery.com>
11882
11883 * libgomp.map (GOACC_2.0.1): Export GOACC_declare.
11884 * oacc-parallel.c (GOACC_declare): New function.
11885 * testsuite/libgomp.oacc-c-c++-common/declare-1.c: New test.
11886 * testsuite/libgomp.oacc-c-c++-common/declare-2.c: Likewise.
11887 * testsuite/libgomp.oacc-c-c++-common/declare-4.c: Likewise.
11888 * testsuite/libgomp.oacc-c-c++-common/declare-5.c: Likewise.
11889 * testsuite/libgomp.oacc-c++/declare-1.C: Likewise.
11890
11891 2015-11-12 Nathan Sidwell <nathan@codesourcery.com>
11892
11893 * testsuite/libgomp.oacc-c-c++-common/default-1.c: New.
11894
11895 2015-11-1 Nathan Sidwell <nathan@codesourcery.com>
11896
11897 * testsuite/libgomp.oacc-c-c++-common/firstprivate-1.c: New.
11898 * testsuite/libgomp.oacc-c-c++-common/firstprivate-2.c: New.
11899
11900 2015-11-09 Nathan Sidwell <nathan@codesourcery.com>
11901
11902 * testsuite/libgomp.oacc-c-c++-common/firstprivate-1.c: Remove
11903 inadvertent commit.
11904
11905 2015-11-09 Nathan Sidwell <nathan@codesourcery.com>
11906
11907 * testsuite/libgomp.oacc-c-c++-common/routine-g-1.c: New.
11908 * testsuite/libgomp.oacc-c-c++-common/routine-gwv-1.c: New.
11909 * testsuite/libgomp.oacc-c-c++-common/routine-v-1.c: New.
11910 * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c: New.
11911 * testsuite/libgomp.oacc-c-c++-common/routine-wv-1.c: New.
11912
11913 2015-11-06 Thomas Schwinge <thomas@codesourcery.com>
11914
11915 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c: XFAIL.
11916 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c: Likewise.
11917
11918 2015-11-05 Jakub Jelinek <jakub@redhat.com>
11919 Ilya Verbin <ilya.verbin@intel.com>
11920
11921 * libgomp_g.h (GOMP_loop_nonmonotonic_dynamic_next,
11922 GOMP_loop_nonmonotonic_dynamic_start,
11923 GOMP_loop_nonmonotonic_guided_next,
11924 GOMP_loop_nonmonotonic_guided_start,
11925 GOMP_loop_ull_nonmonotonic_dynamic_next,
11926 GOMP_loop_ull_nonmonotonic_dynamic_start,
11927 GOMP_loop_ull_nonmonotonic_guided_next,
11928 GOMP_loop_ull_nonmonotonic_guided_start,
11929 GOMP_parallel_loop_nonmonotonic_dynamic,
11930 GOMP_parallel_loop_nonmonotonic_guided): New prototypes.
11931 (GOMP_target_41): Renamed to ...
11932 (GOMP_target_ext): ... this. Add num_teams and thread_limit
11933 arguments.
11934 (GOMP_target_data_41): Renamed to ...
11935 (GOMP_target_data_ext): ... this.
11936 (GOMP_target_update_41): Renamed to ...
11937 (GOMP_target_update_ext): ... this.
11938 * libgomp.map (GOMP_4.5): Export GOMP_target_ext,
11939 GOMP_target_data_ext and GOMP_target_update_ext instead of
11940 GOMP_target_41, GOMP_target_data_41 and GOMP_target_update_41.
11941 Export GOMP_loop_nonmonotonic_dynamic_next,
11942 GOMP_loop_nonmonotonic_dynamic_start,
11943 GOMP_loop_nonmonotonic_guided_next,
11944 GOMP_loop_nonmonotonic_guided_start,
11945 GOMP_loop_ull_nonmonotonic_dynamic_next,
11946 GOMP_loop_ull_nonmonotonic_dynamic_start,
11947 GOMP_loop_ull_nonmonotonic_guided_next,
11948 GOMP_loop_ull_nonmonotonic_guided_start,
11949 GOMP_parallel_loop_nonmonotonic_dynamic and
11950 GOMP_parallel_loop_nonmonotonic_guided.
11951 * loop.c (GOMP_parallel_loop_nonmonotonic_dynamic,
11952 GOMP_parallel_loop_nonmonotonic_guided,
11953 GOMP_loop_nonmonotonic_dynamic_start,
11954 GOMP_loop_nonmonotonic_guided_start,
11955 GOMP_loop_nonmonotonic_dynamic_next,
11956 GOMP_loop_nonmonotonic_guided_next): New aliases or functions.
11957 * loop_ull.c (GOMP_loop_ull_nonmonotonic_dynamic_start,
11958 GOMP_loop_ull_nonmonotonic_guided_start,
11959 GOMP_loop_ull_nonmonotonic_dynamic_next,
11960 GOMP_loop_ull_nonmonotonic_guided_next): Likewise.
11961 * target.c (gomp_map_0len_lookup, gomp_map_val): New inline
11962 functions.
11963 (gomp_map_vars): Handle GOMP_MAP_ALWAYS_POINTER. For
11964 GOMP_MAP_ZERO_LEN_ARRAY_SECTION use gomp_map_0len_lookup.
11965 Use gomp_map_val function.
11966 (gomp_target_fallback_firstprivate): New static function.
11967 (GOMP_target_41): Renamed to ...
11968 (GOMP_target_ext): ... this. Add num_teams and thread_limit
11969 arguments. Move firstprivate fallback handling into a new
11970 function.
11971 (GOMP_target_data_41): Renamed to ...
11972 (GOMP_target_data_ext): ... this.
11973 (GOMP_target_update_41): Renamed to ...
11974 (GOMP_target_update_ext): ... this.
11975 (gomp_exit_data): For GOMP_MAP_*ZERO_LEN* use
11976 gomp_map_0len_lookup instead of gomp_map_lookup.
11977 (omp_target_is_present): Use gomp_map_0len_lookup instead of
11978 gomp_map_lookup.
11979 * testsuite/libgomp.c/target-28.c: Likewise.
11980 * testsuite/libgomp.c/monotonic-1.c: New test.
11981 * testsuite/libgomp.c/monotonic-2.c: New test.
11982 * testsuite/libgomp.c/nonmonotonic-1.c: New test.
11983 * testsuite/libgomp.c/nonmonotonic-2.c: New test.
11984 * testsuite/libgomp.c/pr66199-5.c: New test.
11985 * testsuite/libgomp.c/pr66199-6.c: New test.
11986 * testsuite/libgomp.c/pr66199-7.c: New test.
11987 * testsuite/libgomp.c/pr66199-8.c: New test.
11988 * testsuite/libgomp.c/pr66199-9.c: New test.
11989 * testsuite/libgomp.c/reduction-11.c: New test.
11990 * testsuite/libgomp.c/reduction-12.c: New test.
11991 * testsuite/libgomp.c/reduction-13.c: New test.
11992 * testsuite/libgomp.c/reduction-14.c: New test.
11993 * testsuite/libgomp.c/reduction-15.c: New test.
11994 * testsuite/libgomp.c/target-12.c (main): Adjust for
11995 omp_target_is_present change for one-past-last element.
11996 * testsuite/libgomp.c/target-17.c (foo): Drop tests where
11997 the same var is both mapped and privatized.
11998 * testsuite/libgomp.c/target-19.c (foo): Adjust for different
11999 handling of zero-length array sections.
12000 * testsuite/libgomp.c/target-28.c: New test.
12001 * testsuite/libgomp.c/target-29.c: New test.
12002 * testsuite/libgomp.c/target-30.c: New test.
12003 * testsuite/libgomp.c/target-teams-1.c: New test.
12004 * testsuite/libgomp.c++/member-6.C: New test.
12005 * testsuite/libgomp.c++/member-7.C: New test.
12006 * testsuite/libgomp.c++/monotonic-1.C: New test.
12007 * testsuite/libgomp.c++/monotonic-2.C: New test.
12008 * testsuite/libgomp.c++/nonmonotonic-1.C: New test.
12009 * testsuite/libgomp.c++/nonmonotonic-2.C: New test.
12010 * testsuite/libgomp.c++/pr66199-3.C: New test.
12011 * testsuite/libgomp.c++/pr66199-4.C: New test.
12012 * testsuite/libgomp.c++/pr66199-5.C: New test.
12013 * testsuite/libgomp.c++/pr66199-6.C: New test.
12014 * testsuite/libgomp.c++/pr66199-7.C: New test.
12015 * testsuite/libgomp.c++/pr66199-8.C: New test.
12016 * testsuite/libgomp.c++/pr66199-9.C: New test.
12017 * testsuite/libgomp.c++/reduction-11.C: New test.
12018 * testsuite/libgomp.c++/reduction-12.C: New test.
12019 * testsuite/libgomp.c++/target-13.C: New test.
12020 * testsuite/libgomp.c++/target-14.C: New test.
12021 * testsuite/libgomp.c++/target-15.C: New test.
12022 * testsuite/libgomp.c++/target-16.C: New test.
12023 * testsuite/libgomp.c++/target-17.C: New test.
12024 * testsuite/libgomp.c++/target-18.C: New test.
12025 * testsuite/libgomp.c++/target-19.C: New test.
12026
12027 2015-11-04 Nathan Sidwell <nathan@codesourcery.com>
12028
12029 * testsuite/libgomp.oacc-fortran/reduction-1.f90: Fix dimensions
12030 and reduction copy.
12031 * testsuite/libgomp.oacc-fortran/reduction-2.f90: Likewise.
12032 * testsuite/libgomp.oacc-fortran/reduction-3.f90: Likewise.
12033 * testsuite/libgomp.oacc-fortran/reduction-4.f90: Likewise.
12034 * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
12035 * testsuite/libgomp.oacc-c-c++-common/par-reduction-1.c: Likewise.
12036 * testsuite/libgomp.oacc-c-c++-common/reduction-3.c: Likewise.
12037 * testsuite/libgomp.oacc-c-c++-common/collapse-2.c: Likewise.
12038 * testsuite/libgomp.oacc-c-c++-common/par-reduction-2.c: Likewise.
12039 * testsuite/libgomp.oacc-c-c++-common/reduction-4.c: Likewise.
12040 * testsuite/libgomp.oacc-c-c++-common/reduction-initial-1.c: Likewise.
12041 * testsuite/libgomp.oacc-c-c++-common/reduction-1.c: Likewise.
12042 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Likewise.
12043 * testsuite/libgomp.oacc-c-c++-common/reduction-2.c: Likewise.
12044 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: New.
12045
12046 2015-11-04 Nathan Sidwell <nathan@codesourcery.com>
12047
12048 * libgomp.oacc-c-c++-common/loop-red-g-1.c: New.
12049 * libgomp.oacc-c-c++-common/loop-red-gwv-1.c: New.
12050 * libgomp.oacc-c-c++-common/loop-red-v-1.c: New.
12051 * libgomp.oacc-c-c++-common/loop-red-v-2.c: New.
12052 * libgomp.oacc-c-c++-common/loop-red-w-1.c: New.
12053 * libgomp.oacc-c-c++-common/loop-red-w-2.c: New.
12054 * libgomp.oacc-c-c++-common/loop-red-wv-1.c: New.
12055 * libgomp.oacc-fortran/reduction-5.f90: Avoid reference var.
12056
12057 2015-11-03 Nathan Sidwell <nathan@codesourcery.com>
12058
12059 * libgomp.h (struct acc_dispatch_t): Remove args from exec_func.
12060 * plugin/plugin-nvptx.c (nvptx_exec): Remove sizes & kinds arg.
12061 (GOMP_OFFLOAD_openacc_parallel): Likewise.
12062 * oacc-host.c (host_openacc_exec): Likewise.
12063 * oacc-parallel.c (GOACC_parallel_keyed): Adjust exec_func call.
12064
12065 2015-11-03 Julian Brown <julian@codesourcery.com>
12066 Thomas Schwinge <thomas@codesourcery.com>
12067
12068 * testsuite/libgomp.oacc-c-c++-common/par-reduction-1.c: New file.
12069 * testsuite/libgomp.oacc-c-c++-common/par-reduction-2.c: Likewise.
12070 * testsuite/libgomp.oacc-c-c++-common/worker-single-1a.c:
12071 Likewise.
12072 * testsuite/libgomp.oacc-c-c++-common/worker-single-4.c: Likewise.
12073 * testsuite/libgomp.oacc-c-c++-common/worker-single-6.c: Likewise.
12074
12075 2015-11-03 James Norris <jnorris@codesourcery.com>
12076
12077 * testsuite/libgomp.oacc-c-c++-common/atomic_capture-1.c: New
12078 file.
12079 * testsuite/libgomp.oacc-c-c++-common/atomic_capture-2.c:
12080 Likewise.
12081 * testsuite/libgomp.oacc-c-c++-common/atomic_rw-1.c: Likewise.
12082 * testsuite/libgomp.oacc-c-c++-common/atomic_update-1.c: Likewise.
12083 * testsuite/libgomp.oacc-fortran/atomic_capture-1.f90: Likewise.
12084 * testsuite/libgomp.oacc-fortran/atomic_rw-1.f90: New file.
12085 * testsuite/libgomp.oacc-fortran/atomic_update-1.f90: Likewise.
12086
12087 2015-10-29 Nathan Sidwell <nathan@codesourcery.com>
12088
12089 * openacc.h (enum acc_device_t): Reformat. Ensure layout
12090 compatibility.
12091 (enum acc_async_t): Reformat.
12092 (acc_on_device): Declare compatible with builtin and provide C++
12093 wrapper.
12094 * testsuite/libgomp.oacc-c-c++-common/acc-on-device.c: New.
12095
12096 2015-10-29 Thomas Schwinge <thomas@codesourcery.com>
12097 Cesar Philippidis <cesar@codesourcery.com>
12098
12099 * testsuite/libgomp.oacc-c-c++-common/combdir-1.c: Rename to...
12100 * testsuite/libgomp.oacc-c-c++-common/combined-directives-1.c:
12101 ... this. Add a description of the test at the top of the file.
12102 * testsuite/libgomp.oacc-fortran/combdir-1.f90: Rename file to...
12103 * testsuite/libgomp.oacc-fortran/combined-directives-1.f90:
12104 ... this. Add a description of the test at the top of the file.
12105
12106 2015-10-28 Nathan Sidwell <nathan@codesourcery.com>
12107
12108 * testsuite/libgomp.oacc-c-c++-common/loop-g-1.c: New.
12109 * testsuite/libgomp.oacc-c-c++-common/loop-g-2.c: New.
12110 * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c: New.
12111 * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c: New.
12112 * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c: New.
12113 * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c: New.
12114
12115 2015-10-27 Nathan Sidwell <nathan@codesourcery.com>
12116
12117 * plugin/plugin-nvptx.c (nvptx_exec): Remove check on compute
12118 dimensions.
12119
12120 2015-10-27 Thomas Schwinge <thomas@codesourcery.com>
12121
12122 PR testsuite/68063
12123 * testsuite/libgomp.c++/member-1.C (A::m1): Add missing private clause.
12124
12125 2015-10-27 James Norris <jnorris@codesourcery.com>
12126
12127 * testsuite/libgomp.oacc-c-c++-common/combdir-1.c: New file.
12128 * testsuite/libgomp.oacc-fortran/combdir-1.f90: Likewise.
12129
12130 2015-10-26 Thomas Schwinge <thomas@codesourcery.com>
12131
12132 * testsuite/libgomp.oacc-c-c++-common/abort-1.c: Print to stderr.
12133 * testsuite/libgomp.oacc-c-c++-common/abort-3.c: Likewise.
12134
12135 * testsuite/libgomp.oacc-c-c++-common/lib-1.c: Remove explicit
12136 acc_device_nvidia usage.
12137 * testsuite/libgomp.oacc-c-c++-common/lib-10.c: Likewise.
12138 * testsuite/libgomp.oacc-c-c++-common/lib-2.c: Likewise.
12139 * testsuite/libgomp.oacc-c-c++-common/lib-9.c: Likewise.
12140
12141 * oacc-init.c (acc_shutdown): Call gomp_init_targets_once.
12142 * testsuite/libgomp.oacc-c-c++-common/lib-8.c: New file.
12143
12144 PR libgomp/66518
12145 * testsuite/libgomp.oacc-c-c++-common/lib-3.c: Resolve XFAIL.
12146
12147 PR libgomp/65437
12148 PR libgomp/66518
12149 * oacc-mem.c (update_dev_host): Call goacc_lazy_initialize.
12150 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Remove XFAIL.
12151
12152 2015-10-23 Tom de Vries <tom@codesourcery.com>
12153
12154 PR testsuite/68063
12155 * testsuite/libgomp.c++/member-2.C (A::m1): Add missing private clause.
12156
12157 2015-10-20 Nathan Sidwell <nathan@codesourcery.com>
12158
12159 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Set sane
12160 vector_length.
12161 * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
12162
12163 2015-10-14 Ilya Verbin <ilya.verbin@intel.com>
12164 Aleksander Ivanushenko <aleksander.ivanushenko@intel.com>
12165
12166 * target.c (gomp_map_vars): Initialize tgt->tgt_start and tgt->tgt_end
12167 to 0 when mapnum is 0.
12168
12169 2015-10-14 Sebastian Huber <sebastian.huber@embedded-brains.de>
12170
12171 * fortran.c (omp_get_place_proc_ids_, omp_get_partition_place_nums_):
12172 Cast to int from int32_t.
12173
12174 2015-10-13 Jakub Jelinek <jakub@redhat.com>
12175 Aldy Hernandez <aldyh@redhat.com>
12176 Ilya Verbin <ilya.verbin@intel.com>
12177
12178 * config/linux/affinity.c (omp_get_place_num_procs,
12179 omp_get_place_proc_ids, gomp_get_place_proc_ids_8): New functions.
12180 * config/linux/doacross.h: New file.
12181 * config/posix/affinity.c (omp_get_place_num_procs,
12182 omp_get_place_proc_ids, gomp_get_place_proc_ids_8): New functions.
12183 * config/posix/doacross.h: New file.
12184 * env.c: Include gomp-constants.h.
12185 (struct gomp_task_icv): Rename run_sched_modifier to
12186 run_sched_chunk_size.
12187 (gomp_max_task_priority_var): New variable.
12188 (parse_schedule): Rename run_sched_modifier to run_sched_chunk_size.
12189 (handle_omp_display_env): Change _OPENMP value from 201307 to
12190 201511. Print OMP_MAX_TASK_PRIORITY.
12191 (initialize_env): Parse OMP_MAX_TASK_PRIORITY.
12192 (omp_set_schedule, omp_get_schedule): Rename modifier argument to
12193 chunk_size and run_sched_modifier to run_sched_chunk_size.
12194 (omp_get_max_task_priority, omp_get_initial_device,
12195 omp_get_num_places, omp_get_place_num, omp_get_partition_num_places,
12196 omp_get_partition_place_nums): New functions.
12197 * fortran.c (omp_set_schedule_, omp_set_schedule_8_,
12198 omp_get_schedule_, omp_get_schedule_8_): Rename modifier argument
12199 to chunk_size.
12200 (omp_get_num_places_, omp_get_place_num_procs_,
12201 omp_get_place_num_procs_8_, omp_get_place_proc_ids_,
12202 omp_get_place_proc_ids_8_, omp_get_place_num_,
12203 omp_get_partition_num_places_, omp_get_partition_place_nums_,
12204 omp_get_partition_place_nums_8_, omp_get_initial_device_,
12205 omp_get_max_task_priority_): New functions.
12206 * libgomp_g.h (GOMP_loop_doacross_static_start,
12207 GOMP_loop_doacross_dynamic_start, GOMP_loop_doacross_guided_start,
12208 GOMP_loop_doacross_runtime_start, GOMP_loop_ull_doacross_static_start,
12209 GOMP_loop_ull_doacross_dynamic_start,
12210 GOMP_loop_ull_doacross_guided_start,
12211 GOMP_loop_ull_doacross_runtime_start, GOMP_doacross_post,
12212 GOMP_doacross_wait, GOMP_doacross_ull_post, GOMP_doacross_wait,
12213 GOMP_taskloop, GOMP_taskloop_ull, GOMP_target_41,
12214 GOMP_target_data_41, GOMP_target_update_41,
12215 GOMP_target_enter_exit_data): New prototypes.
12216 (GOMP_task): Add prototype argument.
12217 * libgomp.h (_LIBGOMP_CHECKING_): Define to 0 if not yet defined.
12218 (struct gomp_doacross_work_share): New type.
12219 (struct gomp_work_share): Add doacross field.
12220 (struct gomp_task_icv): Rename run_sched_modifier to
12221 run_sched_chunk_size.
12222 (enum gomp_task_kind): Rename GOMP_TASK_IFFALSE to
12223 GOMP_TASK_UNDEFERRED. Add comments.
12224 (struct gomp_task_depend_entry): Add comments.
12225 (struct gomp_task): Likewise.
12226 (struct gomp_taskgroup): Likewise.
12227 (struct gomp_target_task): New type.
12228 (struct gomp_team): Add comment.
12229 (gomp_get_place_proc_ids_8, gomp_doacross_init,
12230 gomp_doacross_ull_init, gomp_task_maybe_wait_for_dependencies,
12231 gomp_create_target_task, gomp_target_task_fn): New prototypes.
12232 (struct target_var_desc): New type.
12233 (struct target_mem_desc): Adjust comment. Use struct
12234 target_var_desc instead of splay_tree_key for list.
12235 (REFCOUNT_INFINITY): Define.
12236 (struct splay_tree_key_s): Remove copy_from field.
12237 (struct gomp_device_descr): Add dev2dev_func field.
12238 (enum gomp_map_vars_kind): New enum.
12239 (gomp_map_vars): Add one argument.
12240 * libgomp.map (OMP_4.5): Export omp_get_max_task_priority,
12241 omp_get_max_task_priority_, omp_get_num_places, omp_get_num_places_,
12242 omp_get_place_num_procs, omp_get_place_num_procs_,
12243 omp_get_place_num_procs_8_, omp_get_place_proc_ids,
12244 omp_get_place_proc_ids_, omp_get_place_proc_ids_8_, omp_get_place_num,
12245 omp_get_place_num_, omp_get_partition_num_places,
12246 omp_get_partition_num_places_, omp_get_partition_place_nums,
12247 omp_get_partition_place_nums_, omp_get_partition_place_nums_8_,
12248 omp_get_initial_device, omp_get_initial_device_, omp_target_alloc,
12249 omp_target_free, omp_target_is_present, omp_target_memcpy,
12250 omp_target_memcpy_rect, omp_target_associate_ptr and
12251 omp_target_disassociate_ptr.
12252 (GOMP_4.0.2): Renamed to ...
12253 (GOMP_4.5): ... this. Export GOMP_target_41, GOMP_target_data_41,
12254 GOMP_target_update_41, GOMP_target_enter_exit_data, GOMP_taskloop,
12255 GOMP_taskloop_ull, GOMP_loop_doacross_dynamic_start,
12256 GOMP_loop_doacross_guided_start, GOMP_loop_doacross_runtime_start,
12257 GOMP_loop_doacross_static_start, GOMP_doacross_post,
12258 GOMP_doacross_wait, GOMP_loop_ull_doacross_dynamic_start,
12259 GOMP_loop_ull_doacross_guided_start,
12260 GOMP_loop_ull_doacross_runtime_start,
12261 GOMP_loop_ull_doacross_static_start, GOMP_doacross_ull_post and
12262 GOMP_doacross_ull_wait.
12263 * libgomp.texi: Document omp_get_max_task_priority.
12264 Rename modifier argument to chunk_size for omp_set_schedule and
12265 omp_get_schedule. Document OMP_MAX_TASK_PRIORITY env var.
12266 * loop.c (GOMP_loop_runtime_start): Adjust for run_sched_modifier
12267 to run_sched_chunk_size renaming.
12268 (GOMP_loop_ordered_runtime_start): Likewise.
12269 (gomp_loop_doacross_static_start, gomp_loop_doacross_dynamic_start,
12270 gomp_loop_doacross_guided_start, GOMP_loop_doacross_runtime_start,
12271 GOMP_parallel_loop_runtime_start): New functions.
12272 (GOMP_parallel_loop_runtime): Adjust for run_sched_modifier
12273 to run_sched_chunk_size renaming.
12274 (GOMP_loop_doacross_static_start, GOMP_loop_doacross_dynamic_start,
12275 GOMP_loop_doacross_guided_start): New functions or aliases.
12276 * loop_ull.c (GOMP_loop_ull_runtime_start): Adjust for
12277 run_sched_modifier to run_sched_chunk_size renaming.
12278 (GOMP_loop_ull_ordered_runtime_start): Likewise.
12279 (gomp_loop_ull_doacross_static_start,
12280 gomp_loop_ull_doacross_dynamic_start,
12281 gomp_loop_ull_doacross_guided_start,
12282 GOMP_loop_ull_doacross_runtime_start): New functions.
12283 (GOMP_loop_ull_doacross_static_start,
12284 GOMP_loop_ull_doacross_dynamic_start,
12285 GOMP_loop_ull_doacross_guided_start): New functions or aliases.
12286 * oacc-mem.c (acc_map_data, present_create_copy,
12287 gomp_acc_insert_pointer): Pass GOMP_MAP_VARS_OPENACC instead of false
12288 to gomp_map_vars.
12289 (gomp_acc_remove_pointer): Use copy_from from target_var_desc.
12290 * oacc-parallel.c (GOACC_data_start): Pass GOMP_MAP_VARS_OPENACC
12291 instead of false to gomp_map_vars.
12292 (GOACC_parallel_keyed): Likewise. Use copy_from from target_var_desc.
12293 * omp.h.in (omp_lock_hint_t): New type.
12294 (omp_init_lock_with_hint, omp_init_nest_lock_with_hint,
12295 omp_get_num_places, omp_get_place_num_procs, omp_get_place_proc_ids,
12296 omp_get_place_num, omp_get_partition_num_places,
12297 omp_get_partition_place_nums, omp_get_initial_device,
12298 omp_get_max_task_priority, omp_target_alloc, omp_target_free,
12299 omp_target_is_present, omp_target_memcpy, omp_target_memcpy_rect,
12300 omp_target_associate_ptr, omp_target_disassociate_ptr): New
12301 prototypes.
12302 * omp_lib.f90.in (omp_lock_hint_kind): New parameter.
12303 (omp_lock_hint_none, omp_lock_hint_uncontended,
12304 omp_lock_hint_contended, omp_lock_hint_nonspeculative,
12305 omp_lock_hint_speculative): New parameters.
12306 (omp_init_lock_with_hint, omp_init_nest_lock_with_hint,
12307 omp_get_num_places, omp_get_place_num_procs, omp_get_place_proc_ids,
12308 omp_get_place_num, omp_get_partition_num_places,
12309 omp_get_partition_place_nums, omp_get_initial_device,
12310 omp_get_max_task_priority): New interfaces.
12311 (omp_set_schedule, omp_get_schedule): Rename modifier argument
12312 to chunk_size.
12313 * omp_lib.h.in (omp_lock_hint_kind): New parameter.
12314 (omp_lock_hint_none, omp_lock_hint_uncontended,
12315 omp_lock_hint_contended, omp_lock_hint_nonspeculative,
12316 omp_lock_hint_speculative): New parameters.
12317 (omp_init_lock_with_hint, omp_init_nest_lock_with_hint,
12318 omp_get_num_places, omp_get_place_num_procs, omp_get_place_proc_ids,
12319 omp_get_place_num, omp_get_partition_num_places,
12320 omp_get_partition_place_nums, omp_get_initial_device,
12321 omp_get_max_task_priority): New functions and subroutines.
12322 * ordered.c: Include stdarg.h and string.h.
12323 (MAX_COLLAPSED_BITS): Define.
12324 (gomp_doacross_init, GOMP_doacross_post, GOMP_doacross_wait,
12325 gomp_doacross_ull_init, GOMP_doacross_ull_post,
12326 GOMP_doacross_ull_wait): New functions.
12327 * target.c: Include errno.h.
12328 (resolve_device): If device is not initialized, call
12329 gomp_init_device on it.
12330 (gomp_map_lookup): New function.
12331 (gomp_map_vars_existing): Add tgt_var argument, fill it in.
12332 Don't bump refcount if REFCOUNT_INFINITY. Handle
12333 GOMP_MAP_ALWAYS_TO_P.
12334 (get_kind): Rename is_openacc argument to short_mapkind.
12335 (gomp_map_pointer): Use gomp_map_lookup.
12336 (gomp_map_fields_existing): New function.
12337 (gomp_map_vars): Rename is_openacc argument to short_mapkind
12338 and is_target to pragma_kind. Handle GOMP_MAP_VARS_ENTER_DATA,
12339 handle GOMP_MAP_FIRSTPRIVATE_INT, GOMP_MAP_STRUCT,
12340 GOMP_MAP_USE_DEVICE_PTR, GOMP_MAP_ZERO_LEN_ARRAY_SECTION.
12341 Adjust for tgt->list changed type and copy_from living in there.
12342 (gomp_copy_from_async): Adjust for tgt->list changed type and
12343 copy_from living in there.
12344 (gomp_unmap_vars): Likewise.
12345 (gomp_update): Likewise. Rename is_openacc argument to
12346 short_mapkind. Don't fail if object is not mapped.
12347 (gomp_load_image_to_device): Initialize refcount to
12348 REFCOUNT_INFINITY.
12349 (gomp_target_fallback): New function.
12350 (gomp_get_target_fn_addr): Likewise.
12351 (GOMP_target): Adjust gomp_map_vars caller, use
12352 gomp_get_target_fn_addr and gomp_target_fallback.
12353 (GOMP_target_41): New function.
12354 (gomp_target_data_fallback): New function.
12355 (GOMP_target_data): Use it, adjust gomp_map_vars caller.
12356 (GOMP_target_data_41): New function.
12357 (GOMP_target_update): Adjust gomp_update caller.
12358 (GOMP_target_update_41): New function.
12359 (gomp_exit_data, GOMP_target_enter_exit_data,
12360 gomp_target_task_fn, omp_target_alloc, omp_target_free,
12361 omp_target_is_present, omp_target_memcpy,
12362 omp_target_memcpy_rect_worker, omp_target_memcpy_rect,
12363 omp_target_associate_ptr, omp_target_disassociate_ptr,
12364 gomp_load_plugin_for_device): New functions.
12365 * task.c: Include gomp-constants.h. Include taskloop.c
12366 twice to get GOMP_taskloop and GOMP_taskloop_ull definitions.
12367 (gomp_task_handle_depend): New function.
12368 (GOMP_task): Use it. Add priority argument. Use
12369 gomp-constant.h constants instead of hardcoded numbers.
12370 Rename GOMP_TASK_IFFALSE to GOMP_TASK_UNDEFERRED.
12371 (gomp_create_target_task): New function.
12372 (verify_children_queue, verify_taskgroup_queue,
12373 verify_task_queue): New functions.
12374 (gomp_task_run_pre): Call verify_*_queue functions.
12375 If an upcoming tied task is about to leave the sibling or
12376 taskgroup queues in an invalid state, adjust appropriately.
12377 Remove taskgroup argument. Add comments.
12378 (gomp_task_run_post_handle_dependers): Add comments.
12379 (gomp_task_run_post_remove_parent): Likewise.
12380 (gomp_barrier_handle_tasks): Adjust gomp_task_run_pre caller.
12381 (GOMP_taskwait): Likewise. Add comments.
12382 (gomp_task_maybe_wait_for_dependencies): Fix scheduling
12383 problem such that the first non parent_depends_on task does not
12384 end up at the end of the children queue.
12385 (GOMP_taskgroup_start): Rename GOMP_TASK_IFFALSE to
12386 GOMP_TASK_UNDEFERRED.
12387 (GOMP_taskgroup_end): Adjust gomp_task_run_pre caller.
12388 * taskloop.c: New file.
12389 * testsuite/lib/libgomp.exp
12390 (check_effective_target_offload_device_nonshared_as): New proc.
12391 * testsuite/libgomp.c/affinity-2.c: New test.
12392 * testsuite/libgomp.c/doacross-1.c: New test.
12393 * testsuite/libgomp.c/doacross-2.c: New test.
12394 * testsuite/libgomp.c/examples-4/declare_target-1.c (fib_wrapper):
12395 Add map clause to target.
12396 * testsuite/libgomp.c/examples-4/declare_target-4.c (accum): Likewise.
12397 * testsuite/libgomp.c/examples-4/declare_target-5.c (accum): Likewise.
12398 * testsuite/libgomp.c/examples-4/device-1.c (main): Likewise.
12399 * testsuite/libgomp.c/examples-4/device-3.c (main): Likewise.
12400 * testsuite/libgomp.c/examples-4/target_data-3.c (gramSchmidt):
12401 Likewise.
12402 * testsuite/libgomp.c/examples-4/teams-2.c (dotprod): Likewise.
12403 * testsuite/libgomp.c/examples-4/teams-3.c (dotprod): Likewise.
12404 * testsuite/libgomp.c/examples-4/teams-4.c (dotprod): Likewise.
12405 * testsuite/libgomp.c/for-2.h (OMPTGT, OMPTO, OMPFROM): Define if
12406 not defined. Use those where needed.
12407 * testsuite/libgomp.c/for-4.c: New test.
12408 * testsuite/libgomp.c/for-5.c: New test.
12409 * testsuite/libgomp.c/for-6.c: New test.
12410 * testsuite/libgomp.c/linear-1.c: New test.
12411 * testsuite/libgomp.c/ordered-4.c: New test.
12412 * testsuite/libgomp.c/pr66199-2.c (f2): Adjust for linear clause
12413 only allowed on the loop iterator.
12414 * testsuite/libgomp.c/pr66199-3.c: New test.
12415 * testsuite/libgomp.c/pr66199-4.c: New test.
12416 * testsuite/libgomp.c/reduction-7.c: New test.
12417 * testsuite/libgomp.c/reduction-8.c: New test.
12418 * testsuite/libgomp.c/reduction-9.c: New test.
12419 * testsuite/libgomp.c/reduction-10.c: New test.
12420 * testsuite/libgomp.c/target-1.c (fn2, fn3, fn4): Add
12421 map(tofrom:s).
12422 * testsuite/libgomp.c/target-2.c (fn2, fn3, fn4): Likewise.
12423 * testsuite/libgomp.c/target-7.c (foo): Add map(h) where needed.
12424 * testsuite/libgomp.c/target-11.c: New test.
12425 * testsuite/libgomp.c/target-12.c: New test.
12426 * testsuite/libgomp.c/target-13.c: New test.
12427 * testsuite/libgomp.c/target-14.c: New test.
12428 * testsuite/libgomp.c/target-15.c: New test.
12429 * testsuite/libgomp.c/target-16.c: New test.
12430 * testsuite/libgomp.c/target-17.c: New test.
12431 * testsuite/libgomp.c/target-18.c: New test.
12432 * testsuite/libgomp.c/target-19.c: New test.
12433 * testsuite/libgomp.c/target-20.c: New test.
12434 * testsuite/libgomp.c/target-21.c: New test.
12435 * testsuite/libgomp.c/target-22.c: New test.
12436 * testsuite/libgomp.c/target-23.c: New test.
12437 * testsuite/libgomp.c/target-24.c: New test.
12438 * testsuite/libgomp.c/target-25.c: New test.
12439 * testsuite/libgomp.c/target-26.c: New test.
12440 * testsuite/libgomp.c/target-27.c: New test.
12441 * testsuite/libgomp.c/taskloop-1.c: New test.
12442 * testsuite/libgomp.c/taskloop-2.c: New test.
12443 * testsuite/libgomp.c/taskloop-3.c: New test.
12444 * testsuite/libgomp.c/taskloop-4.c: New test.
12445 * testsuite/libgomp.c++/ctor-13.C: New test.
12446 * testsuite/libgomp.c++/doacross-1.C: New test.
12447 * testsuite/libgomp.c++/examples-4/declare_target-2.C:
12448 Replace offload_device with offload_device_nonshared_as.
12449 * testsuite/libgomp.c++/for-12.C: New test.
12450 * testsuite/libgomp.c++/for-13.C: New test.
12451 * testsuite/libgomp.c++/for-14.C: New test.
12452 * testsuite/libgomp.c++/linear-1.C: New test.
12453 * testsuite/libgomp.c++/member-1.C: New test.
12454 * testsuite/libgomp.c++/member-2.C: New test.
12455 * testsuite/libgomp.c++/member-3.C: New test.
12456 * testsuite/libgomp.c++/member-4.C: New test.
12457 * testsuite/libgomp.c++/member-5.C: New test.
12458 * testsuite/libgomp.c++/ordered-1.C: New test.
12459 * testsuite/libgomp.c++/reduction-5.C: New test.
12460 * testsuite/libgomp.c++/reduction-6.C: New test.
12461 * testsuite/libgomp.c++/reduction-7.C: New test.
12462 * testsuite/libgomp.c++/reduction-8.C: New test.
12463 * testsuite/libgomp.c++/reduction-9.C: New test.
12464 * testsuite/libgomp.c++/reduction-10.C: New test.
12465 * testsuite/libgomp.c++/reference-1.C: New test.
12466 * testsuite/libgomp.c++/simd14.C: New test.
12467 * testsuite/libgomp.c++/target-2.C (fn2): Add map(tofrom: s) clause.
12468 * testsuite/libgomp.c++/target-5.C: New test.
12469 * testsuite/libgomp.c++/target-6.C: New test.
12470 * testsuite/libgomp.c++/target-7.C: New test.
12471 * testsuite/libgomp.c++/target-8.C: New test.
12472 * testsuite/libgomp.c++/target-9.C: New test.
12473 * testsuite/libgomp.c++/target-10.C: New test.
12474 * testsuite/libgomp.c++/target-11.C: New test.
12475 * testsuite/libgomp.c++/target-12.C: New test.
12476 * testsuite/libgomp.c++/taskloop-1.C: New test.
12477 * testsuite/libgomp.c++/taskloop-2.C: New test.
12478 * testsuite/libgomp.c++/taskloop-3.C: New test.
12479 * testsuite/libgomp.c++/taskloop-4.C: New test.
12480 * testsuite/libgomp.c++/taskloop-5.C: New test.
12481 * testsuite/libgomp.c++/taskloop-6.C: New test.
12482 * testsuite/libgomp.c++/taskloop-7.C: New test.
12483 * testsuite/libgomp.c++/taskloop-8.C: New test.
12484 * testsuite/libgomp.c++/taskloop-9.C: New test.
12485 * testsuite/libgomp.fortran/affinity1.f90: New test.
12486 * testsuite/libgomp.fortran/affinity2.f90: New test.
12487
12488 2015-10-13 Tom de Vries <tom@codesourcery.com>
12489
12490 PR tree-optimization/67476
12491 * testsuite/libgomp.c/autopar-3.c: New test.
12492 * testsuite/libgomp.c/autopar-4.c: New test.
12493 * testsuite/libgomp.c/autopar-5.c: New test.
12494 * testsuite/libgomp.c/autopar-6.c: New test.
12495 * testsuite/libgomp.c/autopar-7.c: New test.
12496 * testsuite/libgomp.c/autopar-8.c: New test.
12497
12498 2015-10-12 James Norris <jnorris@codesourcery.com>
12499
12500 * testsuite/libgomp.oacc-c-c++-common/vector-loop.c: Fix loop
12501 initializer.
12502
12503 2015-10-09 David Malcolm <dmalcolm@redhat.com>
12504
12505 * testsuite/lib/libgomp.exp: Load multiline.exp before prune.exp,
12506 using load_gcc_lib.
12507
12508 2015-10-02 Thomas Schwinge <thomas@codesourcery.com>
12509
12510 * oacc-ptx.h: Remove file, moving its content into...
12511 * config/nvptx/fortran.c: ... here...
12512 * config/nvptx/oacc-init.c: ..., here...
12513 * config/nvptx/oacc-parallel.c: ..., and here.
12514 * config/nvptx/openacc.f90: New file.
12515 * plugin/plugin-nvptx.c: Don't include "oacc-ptx.h".
12516 (link_ptx): Don't link in predefined bits of PTX code.
12517
12518 2015-09-30 Nathan Sidwell <nathan@codesourcery.com>
12519 Bernd Schmidt <bernds@codesourcery.com>
12520
12521 * plugin/plugin-nvptx.c (targ_fn_launch): Use GOMP_DIM_MAX.
12522 (struct targ_ptx_obj): New.
12523 (nvptx_tdata): Move earlier, change data format.
12524 (link_ptx): Take targ_ptx_obj ptr and count. Allow multiple
12525 objects.
12526 (GOMP_OFFLOAD_load_image): Adjust.
12527
12528 2015-09-30 Thomas Schwinge <thomas@codesourcery.com>
12529
12530 * testsuite/libgomp.oacc-c-c++-common/abort-1.c: Add checkpoint.
12531 * testsuite/libgomp.oacc-c-c++-common/abort-3.c: Likewise.
12532 * testsuite/libgomp.oacc-c-c++-common/clauses-2.c: Likewise.
12533 * testsuite/libgomp.oacc-c-c++-common/data-already-1.c: Likewise.
12534 * testsuite/libgomp.oacc-c-c++-common/data-already-2.c: Likewise.
12535 * testsuite/libgomp.oacc-c-c++-common/data-already-3.c: Likewise.
12536 * testsuite/libgomp.oacc-c-c++-common/data-already-4.c: Likewise.
12537 * testsuite/libgomp.oacc-c-c++-common/data-already-5.c: Likewise.
12538 * testsuite/libgomp.oacc-c-c++-common/data-already-6.c: Likewise.
12539 * testsuite/libgomp.oacc-c-c++-common/data-already-7.c: Likewise.
12540 * testsuite/libgomp.oacc-c-c++-common/data-already-8.c: Likewise.
12541 * testsuite/libgomp.oacc-c-c++-common/lib-1.c: Likewise.
12542 * testsuite/libgomp.oacc-c-c++-common/lib-11.c: Likewise.
12543 * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
12544 * testsuite/libgomp.oacc-c-c++-common/lib-17.c: Likewise.
12545 * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
12546 * testsuite/libgomp.oacc-c-c++-common/lib-2.c: Likewise.
12547 * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
12548 * testsuite/libgomp.oacc-c-c++-common/lib-21.c: Likewise.
12549 * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Likewise.
12550 * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
12551 * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
12552 * testsuite/libgomp.oacc-c-c++-common/lib-26.c: Likewise.
12553 * testsuite/libgomp.oacc-c-c++-common/lib-27.c: Likewise.
12554 * testsuite/libgomp.oacc-c-c++-common/lib-28.c: Likewise.
12555 * testsuite/libgomp.oacc-c-c++-common/lib-29.c: Likewise.
12556 * testsuite/libgomp.oacc-c-c++-common/lib-3.c: Likewise.
12557 * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
12558 * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
12559 * testsuite/libgomp.oacc-c-c++-common/lib-35.c: Likewise.
12560 * testsuite/libgomp.oacc-c-c++-common/lib-36.c: Likewise.
12561 * testsuite/libgomp.oacc-c-c++-common/lib-39.c: Likewise.
12562 * testsuite/libgomp.oacc-c-c++-common/lib-4.c: Likewise.
12563 * testsuite/libgomp.oacc-c-c++-common/lib-40.c: Likewise.
12564 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
12565 * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Likewise.
12566 * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
12567 * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Likewise.
12568 * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
12569 * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Likewise.
12570 * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
12571 * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
12572 * testsuite/libgomp.oacc-c-c++-common/lib-57.c: Likewise.
12573 * testsuite/libgomp.oacc-c-c++-common/lib-58.c: Likewise.
12574 * testsuite/libgomp.oacc-c-c++-common/lib-62.c: Likewise.
12575 * testsuite/libgomp.oacc-c-c++-common/lib-63.c: Likewise.
12576 * testsuite/libgomp.oacc-c-c++-common/lib-64.c: Likewise.
12577 * testsuite/libgomp.oacc-c-c++-common/lib-65.c: Likewise.
12578 * testsuite/libgomp.oacc-c-c++-common/lib-67.c: Likewise.
12579 * testsuite/libgomp.oacc-c-c++-common/lib-68.c: Likewise.
12580 * testsuite/libgomp.oacc-c-c++-common/lib-71.c: Likewise.
12581 * testsuite/libgomp.oacc-c-c++-common/lib-77.c: Likewise.
12582 * testsuite/libgomp.oacc-c-c++-common/lib-80.c: Likewise.
12583 * testsuite/libgomp.oacc-c-c++-common/present-1.c: Likewise.
12584 * testsuite/libgomp.oacc-fortran/abort-1.f90: Likewise.
12585 * testsuite/libgomp.oacc-fortran/data-already-1.f: Likewise.
12586 * testsuite/libgomp.oacc-fortran/data-already-2.f: Likewise.
12587 * testsuite/libgomp.oacc-fortran/data-already-3.f: Likewise.
12588 * testsuite/libgomp.oacc-fortran/data-already-4.f: Likewise.
12589 * testsuite/libgomp.oacc-fortran/data-already-5.f: Likewise.
12590 * testsuite/libgomp.oacc-fortran/data-already-6.f: Likewise.
12591 * testsuite/libgomp.oacc-fortran/data-already-7.f: Likewise.
12592 * testsuite/libgomp.oacc-fortran/data-already-8.f: Likewise.
12593
12594 2015-09-29 Nathan Sidwell <nathan@codesourcery.com>
12595
12596 * oacc-init.c (acc_on_device): Force optimization level.
12597
12598 2015-09-29 Nathan Sidwell <nathan@codesourcery.com>
12599
12600 * plugin/plugin-nvptx.c (ARRAYSIZE): Delete.
12601 (cuda_errlist): Delete.
12602 (cuda_error): Reimplement.
12603
12604 2015-09-28 Nathan Sidwell <nathan@codesourcery.com>
12605
12606 * libgomp.h (acc_dispatch_t): Replace separate geometry args with
12607 array.
12608 * libgomp.map (GOACC_parallel_keyed): New.
12609 * oacc-parallel.c (goacc_wait): Take pointer to va_list. Adjust
12610 all callers.
12611 (GOACC_parallel_keyed): New interface. Lose geometry arguments
12612 and take keyed varargs list. Adjust call to exec_func.
12613 (GOACC_parallel): Force host fallback.
12614 * libgomp_g.h (GOACC_parallel): Remove.
12615 (GOACC_parallel_keyed): Declare.
12616 * plugin/plugin-nvptx.c (struct targ_fn_launch): New struct.
12617 (struct targ_gn_descriptor): Replace name field with launch field.
12618 (nvptx_exec): Lose separate geometry args, take array. Process
12619 dynamic dimensions and adjust.
12620 (struct nvptx_tdata): Replace fn_names field with fn_descs.
12621 (GOMP_OFFLOAD_load_image): Adjust for change in function table
12622 data.
12623 (GOMP_OFFLOAD_openacc_parallel): Adjust for change in dimension
12624 passing.
12625 * oacc-host.c (host_openacc_exec): Adjust for change in dimension
12626 passing.
12627
12628 2015-09-22 Chung-Lin Tang <cltang@codesourcery.com>
12629
12630 PR libgomp/67141
12631 * oacc-int.h (goacc_host_init): Add declaration.
12632 * oacc-host.c (goacc_host_init): Remove static and constructor attribute.
12633 * oacc-init.c (goacc_runtime_initialize): Call goacc_host_init() at end.
12634
12635 2015-09-08 Aditya Kumar <hiraditya@msn.com>
12636 Sebastian Pop <s.pop@samsung.com>
12637
12638 * testsuite/libgomp.graphite/bounds.c (int foo): Modified test case to
12639 match o/p.
12640 * testsuite/libgomp.graphite/force-parallel-1.c (void parloop): Same.
12641 * testsuite/libgomp.graphite/force-parallel-4.c: Same.
12642 * testsuite/libgomp.graphite/force-parallel-5.c: Same.
12643 * testsuite/libgomp.graphite/force-parallel-7.c: Same.
12644 * testsuite/libgomp.graphite/force-parallel-8.c: Same.
12645
12646 2015-09-03 Jakub Jelinek <jakub@redhat.com>
12647
12648 * configure.tgt: Add missing ;; in between nvptx and rtems
12649 snippets.
12650
12651 2015-09-03 Sebastian Huber <sebastian.huber@embedded-brains.de>
12652
12653 * config/posix/pool.h (gomp_adjust_thread_attr): New.
12654 * config/rtems/pool.h (gomp_adjust_thread_attr): Likewise.
12655 (gomp_thread_pool_reservoir): Add priority member.
12656 * confi/rtems/proc.c (allocate_thread_pool_reservoir): Add
12657 priority.
12658 (parse_thread_pools): Likewise.
12659 * team.c (gomp_team_start): Call configuration provided
12660 gomp_adjust_thread_attr(). Destroy thread attributes if
12661 necessary.
12662 * libgomp.texi: Document GOMP_RTEMS_THREAD_POOLS.
12663
12664 2015-09-03 Sebastian Huber <sebastian.huber@embedded-brains.de>
12665
12666 * config/posix/pool.h: New.
12667 * config/rtems/pool.h: Likewise.
12668 * config/rtems/proc.c: Likewise.
12669 * libgomp.h (gomp_thread_destructor): Declare.
12670 * team.c: Include configuration provided "pool.h".
12671 (gomp_get_thread_pool): Define in configuration.
12672 (gomp_team_end): Call configuration defined
12673 gomp_release_thread_pool().
12674
12675 2015-09-03 Sebastian Huber <sebastian.huber@embedded-brains.de>
12676
12677 * config/rtems/bar.c: New.
12678 * config/rtems/bar.h: Likewise.
12679 * config/rtems/mutex.c: Likewise.
12680 * config/rtems/mutex.h: Likewise.
12681 * config/rtems/sem.c: Likewise.
12682 * config/rtems/sem.h: Likewise.
12683 * configure.ac (*-*-rtems*): Check that Newlib provides a proper
12684 <sys/lock.h> header file.
12685 * configure.tgt (*-*-rtems*): Enable RTEMS configuration if
12686 supported by Newlib.
12687 * configure: Regenerate.
12688
12689 2015-09-03 Sebastian Huber <sebastian.huber@embedded-brains.de>
12690
12691 * team.c (gomp_new_thread_pool): Delete and move content to ...
12692 (gomp_get_thread_pool): ... new function. Allocate and
12693 initialize thread pool on demand.
12694 (get_last_team): Use gomp_get_thread_pool().
12695 (gomp_team_start): Delete thread pool initialization.
12696
12697 2015-09-03 Tom de Vries <tom@codesourcery.com>
12698
12699 PR tree-optimization/65637
12700 * testsuite/libgomp.c/autopar-2.c: New test.
12701
12702 2015-08-29 Tom de Vries <tom@codesourcery.com>
12703
12704 PR tree-optimization/46193
12705 * testsuite/libgomp.c/pr46193.c: New test.
12706
12707 2015-08-24 Nathan Sidwell <nathan@codesourcery.com>
12708
12709 libgomp/
12710 * libgomp.map: Add 4.0.2 version.
12711 * target.c (offload_image_descr): Add version field.
12712 (gomp_load_image_to_device): Add version argument. Adjust plugin
12713 call. Improve load mismatch diagnostic.
12714 (gomp_unload_image_from_device): Add version argument. Adjust plugin
12715 call.
12716 (GOMP_offload_regster): Make stub function, move bulk to ...
12717 (GOMP_offload_register_ver): ... here. Process version argument.
12718 (GOMP_offload_unregister): Make stub function, move bulk to ...
12719 (GOMP_offload_unregister_ver): ... here. Process version argument.
12720 (gomp_init_device): Process version field.
12721 (gomp_unload_device): Process version field.
12722 (gomp_load_plugin_for_device): Reimplement DLSYM & DLSYM_OPT
12723 macros. Check plugin version.
12724 * libgomp.h (gomp_device_descr): Add version function field. Adjust
12725 loader and unloader types.
12726 * oacc-host.c: Include gomp-constants.h.
12727 (host_version): New.
12728 (host_load_image, host_unload_image): Adjust.
12729 (host_dispatch): Add host_version.
12730 * plugin/plugin-nvptx.c: Include gomp-constants.h.
12731 (GOMP_OFFLOAD_version): New.
12732 (GOMP_OFFLOAD_load_image): Add version arg and check it.
12733 (GOMP_OFFLOAD_unload_image): Likewise.
12734 * plugin/plugin-host.c: Include gomp-constants.h.
12735 (GOMP_OFFLOAD_version): New.
12736 (GOMP_OFFLOAD_load_image): Add version arg.
12737 (GOMP_OFFLOAD_unload_image): Likewise.
12738
12739 2015-08-24 Tom de Vries <tom@codesourcery.com>
12740
12741 PR tree-optimization/65468
12742 * testsuite/libgomp.oacc-c-c++-common/vector-loop.c: New test.
12743
12744 2015-08-24 Tom de Vries <tom@codesourcery.com>
12745
12746 PR tree-optimization/65468
12747 * testsuite/libgomp.c/static-chunk-size-one.c: New test.
12748
12749 2015-08-24 Joost VandeVondele <vondele@gnu.gcc.org>
12750
12751 PR libgomp/66761
12752 PR libgomp/67303
12753 * iter.c (gomp_iter_dynamic_next): Employ an atomic load.
12754 (gomp_iter_guided_next): Idem.
12755 * iter_ull.c (gomp_iter_ull_dynamic_next): Idem.
12756 (gomp_iter_ull_guided_next): Idem.
12757 * config/linux/wait.h (do_spin): Idem.
12758
12759 2015-08-10 Thomas Schwinge <thomas@codesourcery.com>
12760
12761 * libgomp-plugin.h (enum offload_target_type): Remove
12762 OFFLOAD_TARGET_TYPE_HOST_NONSHM.
12763 * openacc.f90 (openacc_kinds): Remove acc_device_host_nonshm.
12764 * openacc.h (enum acc_device_t): Likewise.
12765 * openacc_lib.h: Likewise.
12766 * oacc-init.c (name_of_acc_device_t): Don't handle it.
12767 (acc_on_device): Just use __builtin_acc_on_device.
12768 * testsuite/libgomp.oacc-c-c++-common/if-1.c: Don't forbid usage
12769 of acc_on_device builtin.
12770 * plugin/plugin-host.h: Remove file.
12771 * plugin/plugin-host.c: Likewise, but salvage some content into...
12772 * oacc-host.c: ... this file.
12773 * plugin/Makefrag.am: Don't build libgomp-plugin-host_nonshm.la.
12774 * plugin/configfrag.ac (offload_targets): Don't add host_nonshm.
12775 * Makefile.in: Regenerate.
12776 * configure: Likewise.
12777 * testsuite/lib/libgomp.exp
12778 (check_effective_target_openacc_host_nonshm_selected): Remove.
12779 * testsuite/libgomp.oacc-c++/c++.exp: Don't handle
12780 ACC_DEVICE_TYPE=host_nonshm.
12781 * testsuite/libgomp.oacc-c/c.exp: Likewise.
12782 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
12783 * testsuite/libgomp.oacc-c-c++-common/acc_on_device-1.c: Likewise.
12784 * testsuite/libgomp.oacc-fortran/acc_on_device-1-1.f90: Likewise.
12785 * testsuite/libgomp.oacc-fortran/acc_on_device-1-2.f: Likewise.
12786 * testsuite/libgomp.oacc-fortran/acc_on_device-1-3.f: Likewise.
12787
12788 2015-08-10 Thomas Schwinge <thomas@codesourcery.com>
12789 Jakub Jelinek <jakub@redhat.com>
12790
12791 * config/nvptx/affinity.c: New file.
12792 * config/nvptx/alloc.c: Likewise.
12793 * config/nvptx/bar.c: Likewise.
12794 * config/nvptx/barrier.c: Likewise.
12795 * config/nvptx/critical.c: Likewise.
12796 * config/nvptx/env.c: Likewise.
12797 * config/nvptx/error.c: Likewise.
12798 * config/nvptx/fortran.c: Likewise.
12799 * config/nvptx/iter.c: Likewise.
12800 * config/nvptx/iter_ull.c: Likewise.
12801 * config/nvptx/libgomp-plugin.c: Likewise.
12802 * config/nvptx/lock.c: Likewise.
12803 * config/nvptx/loop.c: Likewise.
12804 * config/nvptx/loop_ull.c: Likewise.
12805 * config/nvptx/mutex.c: Likewise.
12806 * config/nvptx/oacc-async.c: Likewise.
12807 * config/nvptx/oacc-cuda.c: Likewise.
12808 * config/nvptx/oacc-host.c: Likewise.
12809 * config/nvptx/oacc-init.c: Likewise.
12810 * config/nvptx/oacc-mem.c: Likewise.
12811 * config/nvptx/oacc-parallel.c: Likewise.
12812 * config/nvptx/oacc-plugin.c: Likewise.
12813 * config/nvptx/omp-lock.h: Likewise.
12814 * config/nvptx/ordered.c: Likewise.
12815 * config/nvptx/parallel.c: Likewise.
12816 * config/nvptx/proc.c: Likewise.
12817 * config/nvptx/ptrlock.c: Likewise.
12818 * config/nvptx/sections.c: Likewise.
12819 * config/nvptx/sem.c: Likewise.
12820 * config/nvptx/single.c: Likewise.
12821 * config/nvptx/splay-tree.c: Likewise.
12822 * config/nvptx/target.c: Likewise.
12823 * config/nvptx/task.c: Likewise.
12824 * config/nvptx/team.c: Likewise.
12825 * config/nvptx/time.c: Likewise.
12826 * config/nvptx/work.c: Likewise.
12827 * configure.ac: Don't probe pthreads support for host nvptx*-*-*.
12828 * configure: Regenerate.
12829 * configure.tgt (config_path): Set to "nvptx" for target
12830 nvptx*-*-*.
12831
12832 2015-08-10 Thomas Schwinge <thomas@codesourcery.com>
12833
12834 * testsuite/libgomp.oacc-c-c++-common/vector-type-1.c: New file.
12835
12836 2015-08-03 Nathan Sidwell <nathan@codesourcery.com>
12837
12838 * plugin/plugin-nvptx.c: Don't include dlfcn.h.
12839 (cuda_errlist): Constify.
12840 (errmsg): Move into ...
12841 (cuda_error): ... here. Make smaller.
12842 (_XSTR, _STR): Delete.
12843 (cuda_synames): Delete.
12844 (verify_device_library): Delete.
12845 (nvptx_init): Don't call it.
12846
12847 2015-07-28 Tom de Vries <tom@codesourcery.com>
12848
12849 * testsuite/libgomp.c/uns-outer-4.c: New test.
12850
12851 2015-07-24 Cesar Philippidis <cesar@codesourcery.com>
12852
12853 * testsuite/libgomp.c/pr66714.c: New test.
12854
12855 2015-07-22 Maxim Blumenthal <maxim.blumenthal@intel.com>
12856
12857 PR libgomp/66950
12858 * testsuite/libgomp.c/examples-4/simd-7.c (N): Change to 30 from 45.
12859 (fib_ref): New function.
12860 (fib): Correct corner cases in the recursion.
12861 (main): Replace the non-simd loop with fib_ref call.
12862 * testsuite/libgomp.fortran/examples-4/simd-7.f90: (fib_ref): New
12863 subroutine.
12864 (fibonacci): Lower the parameter N to 30. Correct accordingly check
12865 for the last array element value. Replace the non-simd loop with
12866 fib_ref call. Remove redundant b_ref array. Remove the comparison
12867 of the last array element with according Fibonacci sequence element.
12868 (fib): Correct corner cases in the recursion.
12869
12870 2015-07-21 Nathan Sidwell <nathan@codesourcery.com>
12871
12872 * target.c (gomp_offload_image_to_device): Rename to ...
12873 (gomp_load_image_to_device): ... here.
12874 (GOMP_offload_register): Adjust call.
12875 (gomp_init_device): Likewise.
12876 (gomp_unload_image_from_device): New. Broken out of ...
12877 (GOMP_offload_unregister): ... here. Call it.
12878 (gomp_unload_device): New.
12879 * libgomp.h (gomp_unload_device): Declare.
12880 * oacc-init.c (acc_shutdown_1): Unload from device before deleting
12881 mem maps.
12882
12883 2015-07-20 Nathan Sidwell <nathan@codesourcery.com>
12884
12885 * oacc-parallel.c (GOACC_parallel): Move variadic handling into
12886 wait=-specific if.
12887 (GOACC_enter_exit_data, GOACC_update): Use consistent num_waits
12888 !=0 condition.
12889 (goacc_waits): Move !num_waits handling to ...
12890 (GOACC_wait): ... here, the only caller that might have zero waits.
12891
12892 * plugin/plugin-nvptx.c (struct targ_fn_descriptor): Move later.
12893 (struct ptx_image_data): Move earlier, add fns field.
12894 (struct ptx_device): Add images and image_lock fields.
12895 (ptx_images, ptx_image_lock): Delete.
12896 (nvptx_open_device): Initialize images and image_lock fields.
12897 (nvptx_close_device): Destroy image_lock.
12898 (GOMP_OFFLOAD_load_image): Register image to device-specific fields.
12899 (GOMP_OFFLOAD_unload_image): Unregister image from device-specific
12900 fields.
12901
12902 2015-07-17 Nathan Sidwell <nathan@codesourcery.com>
12903
12904 * target.c (GOMP_offload_register): Use int for device type arg.
12905 (GOMP_offload_unregister): Likewise.
12906
12907 * target.c (struct_offload_image_descr): Constify host_table.
12908 (gomp_offload_image_to_device): Likewise.
12909 (GOMP_offload_register, GOMP_offload_unregister): Likewise.
12910
12911 * libgomp.h (gomp_device_descr): Constify target data arguments.
12912 * target.c (struct offload_image_descr): Constify target_data.
12913 (gomp_offload_image_to_device): Likewise.
12914 (GOMP_offload_register): Likewise.
12915 (GOMP_offload_unregister): Likewise.
12916 * plugin/plugin-host.c (GOMP_OFFLOAD_load_image,
12917 GOMP_OFFLOAD_unload_image): Constify target data.
12918 * plugin/plugin-nvptx.c (struct ptx_image_data): Constify target data.
12919 (GOMP_OFFLOAD_load_image, GOMP_OFFLOAD_unload_image): Likewise.
12920
12921 2015-07-16 Nathan Sidwell <nathan@codesourcery.com>
12922
12923 * plugin/plugin-nvptx.c (link_ptx): Constify string argument.
12924 Workaround driver library const error.
12925 (struct nvptx_tdata, nvptx_tdata_t): New.
12926 (GOMP_OFFLOAD_load_image): Use struct for target_data's real
12927 type.
12928
12929 2015-07-15 Maxim Blumenthal <maxim.blumenthal@intel.com>
12930
12931 * testsuite/libgomp.fortran/examples-4/simd-8.f90: (main): Change type
12932 of EPS parameter from integer to real.
12933 * testsuite/libgomp.fortran/examples-4/task_dep-5.f90: (check): Change
12934 type of EPS parameter from integer to real.
12935
12936 2015-07-15 Sebastian Huber <sebastian.huber@embedded-brains.de>
12937
12938 * team.c (get_last_team): New.
12939 (gomp_new_team): Recycle last non-nested team if possible.
12940 (gomp_team_end): Move team work share list free lock destruction
12941 to ...
12942 (free_team): ... here.
12943
12944 2015-07-14 Maxim Blumenthal <maxim.blumenthal@intel.com>
12945
12946 * testsuite/libgomp.c/examples-4/simd-3.c: (main): Change type of res
12947 and ref from int to double. Replaced their comparison with
12948 an inequality of their difference and EPS.
12949 * testsuite/libgomp.c/examples-4/simd-8.c: (main): Replace the
12950 comparison of pri and a reference number with an inequality of their
12951 difference and EPS.
12952 * testsuite/libgomp.fortran/examples-4/simd-3.f90: (main): Replaced
12953 the comparison of sum and sum_ref with an inequality of their
12954 difference and EPS.
12955 * testsuite/libgomp.fortran/examples-4/simd-8.f90: (main): Replace
12956 the comparison of pri and a reference number with an inequality of
12957 their difference and EPS.
12958
12959 2015-07-13 Maxim Blumenthal <maxim.blumenthal@intel.com>
12960
12961 * testsuite/libgomp.c++/examples-4/e.53.2.C: Renamed to...
12962 * testsuite/libgomp.c++/examples-4/declare_target-2.C: ...this.
12963 * testsuite/libgomp.c++/examples-4/e.51.5.C: Renamed to...
12964 * testsuite/libgomp.c++/examples-4/target_data-5.C: ...this.
12965 * testsuite/libgomp.c/examples-4/e.56.3.c: Renamed to...
12966 * testsuite/libgomp.c/examples-4/array_sections-3.c: ...this.
12967 * testsuite/libgomp.c/examples-4/e.56.4.c: Renamed to...
12968 * testsuite/libgomp.c/examples-4/array_sections-4.c: ...this.
12969 * testsuite/libgomp.c/examples-4/e.55.1.c: Renamed to...
12970 * testsuite/libgomp.c/examples-4/async_target-1.c: ...this.
12971 * testsuite/libgomp.c/examples-4/e.55.2.c: Renamed to...
12972 * testsuite/libgomp.c/examples-4/async_target-2.c: ...this.
12973 (vec_mult_ref): Remove v1 and v2 arguments, turn them into local
12974 variables.
12975 (vec_mult): Likewise. Add #pragma omp taskwait.
12976 (main): Adjust caller.
12977 * testsuite/libgomp.c/examples-4/e.53.1.c: Renamed to...
12978 * testsuite/libgomp.c/examples-4/declare_target-1.c: ...this.
12979 * testsuite/libgomp.c/examples-4/e.53.3.c: Renamed to...
12980 * testsuite/libgomp.c/examples-4/declare_target-3.c: ...this.
12981 * testsuite/libgomp.c/examples-4/e.53.4.c: Renamed to...
12982 * testsuite/libgomp.c/examples-4/declare_target-4.c: ...this.
12983 * testsuite/libgomp.c/examples-4/e.53.5.c: Renamed to...
12984 * testsuite/libgomp.c/examples-4/declare_target-5.c: ...this.
12985 * testsuite/libgomp.c/examples-4/e.57.1.c: Renamed to...
12986 * testsuite/libgomp.c/examples-4/device-1.c: ...this.
12987 * testsuite/libgomp.c/examples-4/e.57.2.c: Renamed to...
12988 * testsuite/libgomp.c/examples-4/device-2.c: ...this.
12989 * testsuite/libgomp.c/examples-4/e.57.3.c: Renamed to...
12990 * testsuite/libgomp.c/examples-4/device-3.c: ...this.
12991 * testsuite/libgomp.c/examples-4/simd-1.c: New file.
12992 * testsuite/libgomp.c/examples-4/simd-2.c: New file.
12993 * testsuite/libgomp.c/examples-4/simd-3.c: New file.
12994 * testsuite/libgomp.c/examples-4/simd-4.c: New file.
12995 * testsuite/libgomp.c/examples-4/simd-5.c: New file.
12996 * testsuite/libgomp.c/examples-4/simd-6.c: New file.
12997 * testsuite/libgomp.c/examples-4/simd-7.c: New file.
12998 * testsuite/libgomp.c/examples-4/simd-8.c: New file.
12999 * testsuite/libgomp.c/examples-4/e.50.1.c: Renamed to...
13000 * testsuite/libgomp.c/examples-4/target-1.c: ...this.
13001 * testsuite/libgomp.c/examples-4/e.50.2.c: Renamed to...
13002 * testsuite/libgomp.c/examples-4/target-2.c: ...this.
13003 * testsuite/libgomp.c/examples-4/e.50.3.c: Renamed to...
13004 * testsuite/libgomp.c/examples-4/target-3.c: ...this.
13005 * testsuite/libgomp.c/examples-4/e.50.4.c: Renamed to...
13006 * testsuite/libgomp.c/examples-4/target-4.c: ...this.
13007 * testsuite/libgomp.c/examples-4/e.50.5.c: Renamed to...
13008 * testsuite/libgomp.c/examples-4/target-5.c: ...this.
13009 * testsuite/libgomp.c/examples-4/e.51.1.c: Renamed to...
13010 * testsuite/libgomp.c/examples-4/target_data-1.c: ...this.
13011 * testsuite/libgomp.c/examples-4/e.51.2.c: Renamed to...
13012 * testsuite/libgomp.c/examples-4/target_data-2.c: ...this.
13013 * testsuite/libgomp.c/examples-4/e.51.3.c: Renamed to...
13014 * testsuite/libgomp.c/examples-4/target_data-3.c: ...this.
13015 * testsuite/libgomp.c/examples-4/e.51.4.c: Renamed to...
13016 * testsuite/libgomp.c/examples-4/target_data-4.c: ...this.
13017 * testsuite/libgomp.c/examples-4/e.51.6.c: Renamed to...
13018 * testsuite/libgomp.c/examples-4/target_data-6.c: ...this.
13019 * testsuite/libgomp.c/examples-4/e.51.7.c: Renamed to...
13020 * testsuite/libgomp.c/examples-4/target_data-7.c: ...this.
13021 * testsuite/libgomp.c/examples-4/e.52.1.c: Renamed to...
13022 * testsuite/libgomp.c/examples-4/target_update-1.c: ...this.
13023 * testsuite/libgomp.c/examples-4/e.52.2.c: Renamed to...
13024 * testsuite/libgomp.c/examples-4/target_update-2.c: ...this.
13025 * testsuite/libgomp.c/examples-4/task_dep-1.c: New file.
13026 * testsuite/libgomp.c/examples-4/task_dep-2.c: New file.
13027 * testsuite/libgomp.c/examples-4/task_dep-3.c: New file.
13028 * testsuite/libgomp.c/examples-4/task_dep-4.c: New file.
13029 * testsuite/libgomp.c/examples-4/task_dep-5.c: New file.
13030 * testsuite/libgomp.c/examples-4/e.54.2.c: Renamed to...
13031 * testsuite/libgomp.c/examples-4/teams-2.c: ...this.
13032 * testsuite/libgomp.c/examples-4/e.54.3.c: Renamed to...
13033 * testsuite/libgomp.c/examples-4/teams-3.c: ...this.
13034 * testsuite/libgomp.c/examples-4/e.54.4.c: Renamed to...
13035 * testsuite/libgomp.c/examples-4/teams-4.c: ...this.
13036 * testsuite/libgomp.c/examples-4/e.54.5.c: Renamed to...
13037 * testsuite/libgomp.c/examples-4/teams-5.c: ...this.
13038 * testsuite/libgomp.c/examples-4/e.54.6.c: Renamed to...
13039 * testsuite/libgomp.c/examples-4/teams-6.c: ...this.
13040 * testsuite/libgomp.fortran/examples-4/e.56.3.f90: Renamed to...
13041 * testsuite/libgomp.fortran/examples-4/array_sections-3.f90: ...this.
13042 * testsuite/libgomp.fortran/examples-4/e.56.4.f90: Renamed to...
13043 * testsuite/libgomp.fortran/examples-4/array_sections-4.f90: ...this.
13044 * testsuite/libgomp.fortran/examples-4/e.55.1.f90: Renamed to...
13045 * testsuite/libgomp.fortran/examples-4/async_target-1.f90: ...this.
13046 * testsuite/libgomp.fortran/examples-4/e.55.2.f90: Renamed to...
13047 * testsuite/libgomp.fortran/examples-4/async_target-2.f90: ...this.
13048 (vec_mult): Add !$omp taskwait.
13049 * testsuite/libgomp.fortran/examples-4/e.53.1.f90: Renamed to...
13050 * testsuite/libgomp.fortran/examples-4/declare_target-1.f90: ...this.
13051 * testsuite/libgomp.fortran/examples-4/e.53.2.f90: Renamed to...
13052 * testsuite/libgomp.fortran/examples-4/declare_target-2.f90: ...this.
13053 * testsuite/libgomp.fortran/examples-4/e.53.3.f90: Renamed to...
13054 * testsuite/libgomp.fortran/examples-4/declare_target-3.f90: ...this.
13055 * testsuite/libgomp.fortran/examples-4/e.53.4.f90: Renamed to...
13056 * testsuite/libgomp.fortran/examples-4/declare_target-4.f90: ...this.
13057 * testsuite/libgomp.fortran/examples-4/e.53.5.f90: Renamed to...
13058 * testsuite/libgomp.fortran/examples-4/declare_target-5.f90: ...this.
13059 * testsuite/libgomp.fortran/examples-4/e.57.1.f90: Renamed to...
13060 * testsuite/libgomp.fortran/examples-4/device-1.f90: ...this.
13061 * testsuite/libgomp.fortran/examples-4/e.57.2.f90: Renamed to...
13062 * testsuite/libgomp.fortran/examples-4/device-2.f90: ...this.
13063 * testsuite/libgomp.fortran/examples-4/e.57.3.f90: Renamed to...
13064 * testsuite/libgomp.fortran/examples-4/device-3.f90: ...this.
13065 * testsuite/libgomp.fortran/examples-4/simd-1.f90: New file.
13066 * testsuite/libgomp.fortran/examples-4/simd-2.f90: New file.
13067 * testsuite/libgomp.fortran/examples-4/simd-3.f90: New file.
13068 * testsuite/libgomp.fortran/examples-4/simd-4.f90: New file.
13069 * testsuite/libgomp.fortran/examples-4/simd-5.f90: New file.
13070 * testsuite/libgomp.fortran/examples-4/simd-6.f90: New file.
13071 * testsuite/libgomp.fortran/examples-4/simd-7.f90: New file.
13072 * testsuite/libgomp.fortran/examples-4/simd-8.f90: New file.
13073 * testsuite/libgomp.fortran/examples-4/e.50.1.f90: Renamed to...
13074 * testsuite/libgomp.fortran/examples-4/target-1.f90: ...this.
13075 * testsuite/libgomp.fortran/examples-4/e.50.2.f90: Renamed to...
13076 * testsuite/libgomp.fortran/examples-4/target-2.f90: ...this.
13077 * testsuite/libgomp.fortran/examples-4/e.50.3.f90: Renamed to...
13078 * testsuite/libgomp.fortran/examples-4/target-3.f90: ...this.
13079 * testsuite/libgomp.fortran/examples-4/e.50.4.f90: Renamed to...
13080 * testsuite/libgomp.fortran/examples-4/target-4.f90: ...this.
13081 * testsuite/libgomp.fortran/examples-4/e.50.5.f90: Renamed to...
13082 * testsuite/libgomp.fortran/examples-4/target-5.f90: ...this.
13083 * testsuite/libgomp.fortran/examples-4/e.51.1.f90: Renamed to...
13084 * testsuite/libgomp.fortran/examples-4/target_data-1.f90: ...this.
13085 * testsuite/libgomp.fortran/examples-4/e.51.2.f90: Renamed to...
13086 * testsuite/libgomp.fortran/examples-4/target_data-2.f90: ...this.
13087 * testsuite/libgomp.fortran/examples-4/e.51.3.f90: Renamed to...
13088 * testsuite/libgomp.fortran/examples-4/target_data-3.f90: ...this.
13089 * testsuite/libgomp.fortran/examples-4/e.51.4.f90: Renamed to...
13090 * testsuite/libgomp.fortran/examples-4/target_data-4.f90: ...this.
13091 * testsuite/libgomp.fortran/examples-4/e.51.5.f90: Renamed to...
13092 * testsuite/libgomp.fortran/examples-4/target_data-5.f90: ...this.
13093 * testsuite/libgomp.fortran/examples-4/e.51.6.f90: Renamed to...
13094 * testsuite/libgomp.fortran/examples-4/target_data-6.f90: ...this.
13095 * testsuite/libgomp.fortran/examples-4/e.51.7.f90: Renamed to...
13096 * testsuite/libgomp.fortran/examples-4/target_data-7.f90: ...this.
13097 * testsuite/libgomp.fortran/examples-4/e.52.1.f90: Renamed to...
13098 * testsuite/libgomp.fortran/examples-4/target_update-1.f90: ...this.
13099 * testsuite/libgomp.fortran/examples-4/e.52.2.f90: Renamed to...
13100 * testsuite/libgomp.fortran/examples-4/target_update-2.f90: ...this.
13101 * testsuite/libgomp.fortran/examples-4/task_dep-1.f90: New file.
13102 * testsuite/libgomp.fortran/examples-4/task_dep-2.f90: New file.
13103 * testsuite/libgomp.fortran/examples-4/task_dep-3.f90: New file.
13104 * testsuite/libgomp.fortran/examples-4/task_dep-4.f90: New file.
13105 * testsuite/libgomp.fortran/examples-4/task_dep-5.f90: New file.
13106 * testsuite/libgomp.fortran/examples-4/e.54.2.f90: Renamed to...
13107 * testsuite/libgomp.fortran/examples-4/teams-2.f90: ...this.
13108 * testsuite/libgomp.fortran/examples-4/e.54.3.f90: Renamed to...
13109 * testsuite/libgomp.fortran/examples-4/teams-3.f90: ...this.
13110 * testsuite/libgomp.fortran/examples-4/e.54.4.f90: Renamed to...
13111 * testsuite/libgomp.fortran/examples-4/teams-4.f90: ...this.
13112 * testsuite/libgomp.fortran/examples-4/e.54.5.f90: Renamed to...
13113 * testsuite/libgomp.fortran/examples-4/teams-5.f90: ...this.
13114 * testsuite/libgomp.fortran/examples-4/e.54.6.f90: Renamed to...
13115 * testsuite/libgomp.fortran/examples-4/teams-6.f90: ...this.
13116
13117 2015-07-10 Tom de Vries <tom@codesourcery.com>
13118
13119 * testsuite/libgomp.fortran/parloops-exit-first-loop-alt-2.f95: New test.
13120 * testsuite/libgomp.fortran/parloops-exit-first-loop-alt.f95: New test.
13121
13122 2015-07-08 Thomas Schwinge <thomas@codesourcery.com>
13123
13124 PR libgomp/65099
13125 * plugin/plugin-nvptx.c (nvptx_get_num_devices): Return 0 if not
13126 in a 64-bit configuration.
13127 * testsuite/libgomp.oacc-c++/c++.exp: Don't attempt nvidia
13128 offloading testing if no such device is available.
13129 * testsuite/libgomp.oacc-c/c.exp: Likewise.
13130 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
13131
13132 2015-07-08 Tom de Vries <tom@codesourcery.com>
13133
13134 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c (main): Fix
13135 second call to f.
13136 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: Same.
13137
13138 2015-07-07 Tom de Vries <tom@codesourcery.com>
13139
13140 PR tree-optimization/66642
13141 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c (main): Test low
13142 iteration count case.
13143 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c (init): New
13144 function, factor out of ...
13145 (main): ... here. Test low iteration count case.
13146
13147 2015-07-06 Sebastian Huber <sebastian.huber@embedded-brains.de>
13148
13149 * libgomp.h (gomp_thread_pool): Comment last_team field.
13150
13151 2015-07-02 Uros Bizjak <ubizjak@gmail.com>
13152
13153 * testsuite/libgomp.c++/pr66702-1.C: Require
13154 vect_simd_clones effective target.
13155 * testsuite/libgomp.c++/pr66702-2.C: Ditto.
13156
13157 2015-06-30 Tom de Vries <tom@codesourcery.com>
13158
13159 * testsuite/libgomp.oacc-c++/c++.exp: Set DEFAULT_CFLAGS to -O2 if not
13160 already set. Use DEFAULT_CFLAGS in dg-runtest.
13161 * testsuite/libgomp.oacc-c-c++-common/collapse-3.c: Remove dg-options
13162 "-O2".
13163
13164 2015-06-30 Tom de Vries <tom@codesourcery.com>
13165
13166 * testsuite/libgomp.c++/c++.exp: Set DEFAULT_CFLAGS to -O2 if not
13167 already set. Use DEFAULT_CFLAGS in dg-runtest.
13168 * testsuite/libgomp.c++/atomic-16.C: Remove dg-options "-O2 -fopenmp".
13169 * testsuite/libgomp.c++/pr64824.C: Same.
13170 * testsuite/libgomp.c++/pr64868.C: Same.
13171 * testsuite/libgomp.c++/pr66199-1.C: Same.
13172 * testsuite/libgomp.c++/pr66199-2.C: Same.
13173 * testsuite/libgomp.c++/target-2.C: Same.
13174 * testsuite/libgomp.c++/for-7.C: Use dg-additional-options for
13175 -std=<standard> option.
13176 * testsuite/libgomp.c++/udr-11.C: Same.
13177 * testsuite/libgomp.c++/udr-12.C: Same.
13178 * testsuite/libgomp.c++/udr-13.C: Same.
13179 * testsuite/libgomp.c++/udr-14.C: Same.
13180 * testsuite/libgomp.c++/udr-15.C: Same.
13181 * testsuite/libgomp.c++/udr-16.C: Same.
13182 * testsuite/libgomp.c++/udr-17.C: Same.
13183 * testsuite/libgomp.c++/udr-18.C: Same.
13184 * testsuite/libgomp.c++/udr-19.C: Same.
13185 * testsuite/libgomp.c++/atomic-1.C: Remove dg-options "-O2".
13186 * testsuite/libgomp.c++/simd-1.C: Same.
13187 * testsuite/libgomp.c++/simd-2.C: Same.
13188 * testsuite/libgomp.c++/simd-3.C: Same.
13189 * testsuite/libgomp.c++/simd-4.C: Same.
13190 * testsuite/libgomp.c++/simd-5.C: Same.
13191 * testsuite/libgomp.c++/simd-6.C: Same.
13192 * testsuite/libgomp.c++/simd-7.C: Same.
13193 * testsuite/libgomp.c++/simd-8.C: Same.
13194 * testsuite/libgomp.c++/simd-9.C: Same.
13195 * testsuite/libgomp.c++/simd10.C: Same.
13196 * testsuite/libgomp.c++/simd11.C: Same.
13197 * testsuite/libgomp.c++/simd12.C: Same.
13198 * testsuite/libgomp.c++/simd13.C: Same.
13199
13200 2015-06-30 Jakub Jelinek <jakub@redhat.com>
13201
13202 PR middle-end/66702
13203 * testsuite/libgomp.c++/pr66702-1.C: New test.
13204 * testsuite/libgomp.c++/pr66702-2.C: New test.
13205
13206 2015-06-30 Tom de Vries <tom@codesourcery.com>
13207
13208 * testsuite/libgomp.c/parloops-exit-first-loop-alt-5.c: New test.
13209 * testsuite/libgomp.c/parloops-exit-first-loop-alt-6.c: New test.
13210 * testsuite/libgomp.c/parloops-exit-first-loop-alt-7.c: New test.
13211 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: Update comment.
13212
13213 2015-06-30 Tom de Vries <tom@codesourcery.com>
13214
13215 PR tree-optimization/66652
13216 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c (f): Rewrite
13217 using restrict pointers.
13218 (main): Add arguments to calls to f.
13219 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: Same.
13220
13221 2015-06-23 Andreas Tobler <andreast@gcc.gnu.org>
13222
13223 * configure.ac: Fix check for header <sys/sysctl.h>.
13224 * configure: Regenerate.
13225 * config.h.in: Likewise.
13226
13227 2015-06-23 Tom de Vries <tom@codesourcery.com>
13228
13229 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c (main): Use
13230 abort.
13231 * testsuite/libgomp.c/parloops-exit-first-loop-alt-4.c (main): Same.
13232
13233 2015-06-19 Thomas Schwinge <thomas@codesourcery.com>
13234
13235 * testsuite/libgomp.oacc-c-c++-common/lib-62.c: Only consider for
13236 acc_device_nvidia.
13237
13238 PR libgomp/66518
13239 * testsuite/libgomp.oacc-c-c++-common/lib-3.c: XFAIL.
13240 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
13241
13242 2015-06-15 Tom de Vries <tom@codesourcery.com>
13243
13244 * testsuite/libgomp.c/atomic-1.c: Remove dg-options "-O2". Use
13245 dg-additional-options for any remaining options.
13246 * testsuite/libgomp.c/atomic-2.c: Same.
13247 * testsuite/libgomp.c/atomic-4.c: Same.
13248 * testsuite/libgomp.c/atomic-5.c: Same.
13249 * testsuite/libgomp.c/atomic-6.c: Same.
13250 * testsuite/libgomp.c/autopar-1.c: Same.
13251 * testsuite/libgomp.c/copyin-1.c: Same.
13252 * testsuite/libgomp.c/copyin-2.c: Same.
13253 * testsuite/libgomp.c/copyin-3.c: Same.
13254 * testsuite/libgomp.c/examples-4/e.53.5.c: Same.
13255 * testsuite/libgomp.c/nestedfn-5.c: Same.
13256 * testsuite/libgomp.c/parloops-exit-first-loop-alt-2.c: Same.
13257 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c: Same.
13258 * testsuite/libgomp.c/parloops-exit-first-loop-alt-4.c: Same.
13259 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: Same.
13260 * testsuite/libgomp.c/pr32362-1.c: Same.
13261 * testsuite/libgomp.c/pr32362-2.c: Same.
13262 * testsuite/libgomp.c/pr32362-3.c: Same.
13263 * testsuite/libgomp.c/pr39591-1.c: Same.
13264 * testsuite/libgomp.c/pr39591-2.c: Same.
13265 * testsuite/libgomp.c/pr39591-3.c: Same.
13266 * testsuite/libgomp.c/pr58392.c: Same.
13267 * testsuite/libgomp.c/pr58756.c: Same.
13268 * testsuite/libgomp.c/simd-1.c: Same.
13269 * testsuite/libgomp.c/simd-10.c: Same.
13270 * testsuite/libgomp.c/simd-11.c: Same.
13271 * testsuite/libgomp.c/simd-12.c: Same.
13272 * testsuite/libgomp.c/simd-13.c: Same.
13273 * testsuite/libgomp.c/simd-14.c: Same.
13274 * testsuite/libgomp.c/simd-15.c: Same.
13275 * testsuite/libgomp.c/simd-2.c: Same.
13276 * testsuite/libgomp.c/simd-3.c: Same.
13277 * testsuite/libgomp.c/simd-4.c: Same.
13278 * testsuite/libgomp.c/simd-5.c: Same.
13279 * testsuite/libgomp.c/simd-6.c: Same.
13280 * testsuite/libgomp.c/simd-7.c: Same.
13281 * testsuite/libgomp.c/simd-8.c: Same.
13282 * testsuite/libgomp.c/simd-9.c: Same.
13283
13284 2015-06-15 Tom de Vries <tom@codesourcery.com>
13285
13286 * testsuite/libgomp.c/pr35625.c: Fix typo.
13287
13288 2015-06-15 Tom de Vries <tom@codesourcery.com>
13289
13290 * testsuite/libgomp.c/atomic-18.c: Remove superfluous -fopenmp setting
13291 in dg-options.
13292 * testsuite/libgomp.c/atomic-3.c: Same.
13293 * testsuite/libgomp.c/debug-1.c: Same.
13294 * testsuite/libgomp.c/nqueens-1.c: Same.
13295 * testsuite/libgomp.c/pr26171.c: Same.
13296 * testsuite/libgomp.c/pr48591.c: Same.
13297 * testsuite/libgomp.c/pr64824.c: Same.
13298 * testsuite/libgomp.c/pr64868.c: Same.
13299 * testsuite/libgomp.c/pr66133.c: Same.
13300 * testsuite/libgomp.c/pr66199-1.c: Same.
13301 * testsuite/libgomp.c/pr66199-2.c: Same.
13302 * testsuite/libgomp.c/target-8.c: Same.
13303
13304 2015-06-15 Tom de Vries <tom@codesourcery.com>
13305
13306 * testsuite/libgomp.c/collapse-3.c: Use dg-additional-options for
13307 -std={gnu99,c99}.
13308 * testsuite/libgomp.c/for-1.c: Same.
13309 * testsuite/libgomp.c/for-2.c: Same.
13310 * testsuite/libgomp.c/for-3.c: Same.
13311 * testsuite/libgomp.c/pr35625.c: Same.
13312 * testsuite/libgomp.c/pr39154.c: Same.
13313 * testsuite/libgomp.c/simd-16.c: Same.
13314 * testsuite/libgomp.c/simd-17.c: Same.
13315
13316 2015-06-13 Tom de Vries <tom@codesourcery.com>
13317
13318 * testsuite/libgomp.c/parloops-exit-first-loop-alt-4.c: New test.
13319
13320 2015-06-13 Tom de Vries <tom@codesourcery.com>
13321
13322 * testsuite/libgomp.c/parloops-exit-first-loop-alt-2.c: Add comment.
13323 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: Same.
13324 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c: Add comment.
13325 (N): Define.
13326 (main): Use N instead of hardcoded constants.
13327
13328 2015-06-05 Tom de Vries <tom@codesourcery.com>
13329
13330 merge from gomp4 branch:
13331 2015-05-28 Tom de Vries <tom@codesourcery.com>
13332
13333 PR tree-optimization/65443
13334 * testsuite/libgomp.c/parloops-exit-first-loop-alt-2.c: New test.
13335 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c: New test.
13336 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: New test.
13337
13338 2015-05-29 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
13339
13340 * testsuite/libgomp.graphite/bounds.c: Adjust for
13341 cleanup-tree-dump removal.
13342 * testsuite/libgomp.graphite/force-parallel-1.c: Likewise.
13343 * testsuite/libgomp.graphite/force-parallel-2.c: Likewise.
13344 * testsuite/libgomp.graphite/force-parallel-3.c: Likewise.
13345 * testsuite/libgomp.graphite/force-parallel-4.c: Likewise.
13346 * testsuite/libgomp.graphite/force-parallel-5.c: Likewise.
13347 * testsuite/libgomp.graphite/force-parallel-6.c: Likewise.
13348 * testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
13349 * testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
13350 * testsuite/libgomp.graphite/force-parallel-9.c: Likewise.
13351 * testsuite/libgomp.graphite/pr41118.c: Likewise.
13352
13353 2015-05-28 Uros Bizjak <ubizjak@gmail.com>
13354
13355 * config/linux/x86/futex.h (sys_futex0) [!__x86_64__]: Remove function.
13356 (futex_wait) [!__x86_64__]: Use __asm operand instead of sys_futex0.
13357 (futex_wake) [!__x86_64__]: Ditto.
13358
13359 2015-05-28 Julian Brown <julian@codesourcery.com>
13360
13361 * oacc-init.c (resolve_device): Add FAIL_IS_ERROR argument. Update
13362 function comment. Only call gomp_fatal if new argument is true.
13363 (acc_dev_num_out_of_range): New function.
13364 (acc_init_1, acc_shutdown_1): Update call to resolve_device. Call
13365 acc_dev_num_out_of_range as appropriate.
13366 (acc_get_num_devices, acc_set_device_type, acc_get_device_type)
13367 (acc_get_device_num, acc_set_device_num): Update calls to
13368 resolve_device.
13369 * testsuite/libgomp.oacc-c-c++-common/lib-4.c: Update expected test
13370 output.
13371
13372 2015-05-28 Julian Brown <julian@codesourcery.com>
13373
13374 PR libgomp/65742
13375 * oacc-init.c (plugin/plugin-host.h): Include.
13376 (acc_on_device): Check whether we're in an offloaded region for
13377 host_nonshm
13378 plugin. Don't use __builtin_acc_on_device.
13379 * plugin/plugin-host.c (GOMP_OFFLOAD_openacc_parallel): Set
13380 nonshm_exec flag in thread-local data.
13381 (GOMP_OFFLOAD_openacc_create_thread_data): Allocate thread-local
13382 data for host_nonshm plugin.
13383 (GOMP_OFFLOAD_openacc_destroy_thread_data): Free thread-local data
13384 for host_nonshm plugin.
13385 * plugin/plugin-host.h: New.
13386
13387 2015-05-27 Uros Bizjak <ubizjak@gmail.com>
13388
13389 * config/linux/ia64/futex.h (sys_futex0) Change operand "op" to int.
13390
13391 2015-05-27 Uros Bizjak <ubizjak@gmail.com>
13392
13393 * config/linux/wait.h (gomp_futex_wait, gomp_futex_wake):
13394 Declare as int.
13395 (FUTEX_PRIVATE_FLAG): Remove L suffix.
13396 * config/linux/mutex.c (gomp_futex_wait, gomp_futex_wake):
13397 Declare as int.
13398
13399 2015-05-27 Uros Bizjak <ubizjak@gmail.com>
13400
13401 * config/linux/x86/futex.h (sys_futex0) [__PIC__]: Remove function.
13402
13403 2015-05-27 Chung-Lin Tang <cltang@codesourcery.com>
13404
13405 * target.c (gomp_map_pointer): New function abstracting out
13406 GOMP_MAP_POINTER handling.
13407 (gomp_map_vars): Remove GOMP_MAP_POINTER handling code and use
13408 gomp_map_pointer().
13409
13410 2015-05-19 Jakub Jelinek <jakub@redhat.com>
13411
13412 PR middle-end/66199
13413 * testsuite/libgomp.c/pr66199-1.c: New test.
13414 * testsuite/libgomp.c/pr66199-2.c: New test.
13415 * testsuite/libgomp.c++/pr66199-1.C: New test.
13416 * testsuite/libgomp.c++/pr66199-2.C: New test.
13417 * testsuite/libgomp.fortran/pr66199-1.f90: New test.
13418 * testsuite/libgomp.fortran/pr66199-2.f90: New test.
13419
13420 2015-05-19 Julian Brown <julian@codesourcery.com>
13421
13422 * plugin/plugin-nvptx.c (nvptx_get_num_devices): Return zero
13423 on cuInit failure.
13424
13425 2015-05-13 Jakub Jelinek <jakub@redhat.com>
13426
13427 PR middle-end/66133
13428 * testsuite/libgomp.c/pr66133.c: New test.
13429
13430 2015-05-13 Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
13431
13432 * Makefile.in: Regenerated with automake-1.11.6.
13433 * aclocal.m4: Likewise.
13434 * config.h.in: Likewise.
13435 * configure: Likewise.
13436 * testsuite/Makefile.in: Likewise.
13437
13438 2015-05-08 Jason Merrill <jason@redhat.com>
13439
13440 * testsuite/libgomp.oacc-c-c++-common/reduction-4.c (main): Use
13441 _Complex.
13442
13443 * openacc.h (__GOACC_NOTHROW): Fix noexcept syntax.
13444
13445 2015-05-06 Julian Brown <julian@codesourcery.com>
13446
13447 * oacc-init.c (acc_device_lock): Add explanatory comment.
13448 (resolve_device): Add comment about locking requirement.
13449 (acc_init_1, acc_shutdown_1): Likewise. Add locking around
13450 gomp_init_device and gomp_fini_device calls.
13451 (acc_get_num_devices, acc_set_device_type, acc_get_device_type)
13452 (acc_get_device_num, acc_set_device_num): Add locking around
13453 resolve_device and gomp_init_device calls.
13454
13455 2015-05-06 Julian Brown <julian@codesourcery.com>
13456
13457 * oacc-init.c (acc_shutdown_1): Call gomp_mutex_unlock for
13458 goacc_thread_lock on error paths.
13459 * oacc-mem.c (lookup_host): Remove locking from function. Note
13460 locking requirement for caller in function comment.
13461 (lookup_dev): Likewise.
13462 (acc_free, acc_deviceptr, acc_hostptr, acc_is_present)
13463 (acc_map_data, acc_unmap_data, present_create_copy, delete_copyout)
13464 (update_dev_host, gomp_acc_insert_pointer, gomp_acc_remove_pointer):
13465 Add locking.
13466
13467 2015-05-05 Thomas Schwinge <thomas@codesourcery.com>
13468
13469 PR testsuite/65205
13470 PR libgomp/65993
13471 * testsuite/libgomp.oacc-c-c++-common/clauses-2.c: In dg-output,
13472 don't expect "0x" prefix for "%p" format specifier, don't expect
13473 "(nil)" for NULL pointer.
13474 * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
13475 * testsuite/libgomp.oacc-c-c++-common/lib-17.c: Likewise.
13476 * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
13477 * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
13478 * testsuite/libgomp.oacc-c-c++-common/lib-21.c: Likewise.
13479 * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Likewise.
13480 * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
13481 * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
13482 * testsuite/libgomp.oacc-c-c++-common/lib-26.c: Likewise.
13483 * testsuite/libgomp.oacc-c-c++-common/lib-27.c: Likewise.
13484 * testsuite/libgomp.oacc-c-c++-common/lib-28.c: Likewise.
13485 * testsuite/libgomp.oacc-c-c++-common/lib-29.c: Likewise.
13486 * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
13487 * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
13488 * testsuite/libgomp.oacc-c-c++-common/lib-35.c: Likewise.
13489 * testsuite/libgomp.oacc-c-c++-common/lib-36.c: Likewise.
13490 * testsuite/libgomp.oacc-c-c++-common/lib-39.c: Likewise.
13491 * testsuite/libgomp.oacc-c-c++-common/lib-40.c: Likewise.
13492 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
13493 * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Likewise.
13494 * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
13495 * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Likewise.
13496 * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
13497 * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Likewise.
13498 * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
13499 * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
13500 * testsuite/libgomp.oacc-c-c++-common/lib-57.c: Likewise.
13501 * testsuite/libgomp.oacc-c-c++-common/lib-58.c: Likewise.
13502 * testsuite/libgomp.oacc-c-c++-common/data-already-1.c: More
13503 accurately specify what we're looking for.
13504 * testsuite/libgomp.oacc-c-c++-common/data-already-2.c: Likewise.
13505 * testsuite/libgomp.oacc-c-c++-common/data-already-8.c: Likewise.
13506 * testsuite/libgomp.oacc-fortran/data-already-1.f: Likewise.
13507 * testsuite/libgomp.oacc-fortran/data-already-2.f: Likewise.
13508 * testsuite/libgomp.oacc-fortran/data-already-8.f: Likewise.
13509
13510 2015-04-30 James Norris <jnorris@codesourcery.com>
13511
13512 PR testsuite/65205
13513 * testsuite/lib/libgomp.exp
13514 (check_effective_target_openacc_host_selected)
13515 (check_effective_target_openacc_host_nonshm_selected): New
13516 procedures.
13517 * testsuite/libgomp.oacc-c-c++-common/clauses-2.c: Fix misuse of
13518 dg-shouldfail.
13519 * testsuite/libgomp.oacc-c-c++-common/lib-1.c: Likewise.
13520 * testsuite/libgomp.oacc-c-c++-common/lib-11.c: Likewise.
13521 * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
13522 * testsuite/libgomp.oacc-c-c++-common/lib-17.c: Likewise.
13523 * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
13524 * testsuite/libgomp.oacc-c-c++-common/lib-2.c: Likewise.
13525 * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
13526 * testsuite/libgomp.oacc-c-c++-common/lib-21.c: Likewise.
13527 * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Likewise.
13528 * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
13529 * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
13530 * testsuite/libgomp.oacc-c-c++-common/lib-26.c: Likewise.
13531 * testsuite/libgomp.oacc-c-c++-common/lib-27.c: Likewise.
13532 * testsuite/libgomp.oacc-c-c++-common/lib-28.c: Likewise.
13533 * testsuite/libgomp.oacc-c-c++-common/lib-29.c: Likewise.
13534 * testsuite/libgomp.oacc-c-c++-common/lib-3.c: Likewise.
13535 * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
13536 * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
13537 * testsuite/libgomp.oacc-c-c++-common/lib-35.c: Likewise.
13538 * testsuite/libgomp.oacc-c-c++-common/lib-36.c: Likewise.
13539 * testsuite/libgomp.oacc-c-c++-common/lib-39.c: Likewise.
13540 * testsuite/libgomp.oacc-c-c++-common/lib-4.c: Likewise.
13541 * testsuite/libgomp.oacc-c-c++-common/lib-40.c: Likewise.
13542 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
13543 * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Likewise.
13544 * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
13545 * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Likewise.
13546 * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
13547 * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Likewise.
13548 * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
13549 * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
13550 * testsuite/libgomp.oacc-c-c++-common/lib-57.c: Likewise.
13551 * testsuite/libgomp.oacc-c-c++-common/lib-58.c: Likewise.
13552 * testsuite/libgomp.oacc-c-c++-common/lib-62.c: Likewise.
13553 * testsuite/libgomp.oacc-c-c++-common/lib-63.c: Likewise.
13554 * testsuite/libgomp.oacc-c-c++-common/lib-64.c: Likewise.
13555 * testsuite/libgomp.oacc-c-c++-common/lib-65.c: Likewise.
13556 * testsuite/libgomp.oacc-c-c++-common/lib-67.c: Likewise.
13557 * testsuite/libgomp.oacc-c-c++-common/lib-68.c: Likewise.
13558 * testsuite/libgomp.oacc-c-c++-common/lib-71.c: Likewise.
13559 * testsuite/libgomp.oacc-c-c++-common/lib-77.c: Likewise.
13560 * testsuite/libgomp.oacc-c-c++-common/lib-80.c: Likewise.
13561 * testsuite/libgomp.oacc-c-c++-common/present-1.c: Likewise.
13562
13563 2015-04-08 Julian Brown <julian@codesourcery.com>
13564
13565 * libgomp.h (target_mem_desc: Remove mem_map field.
13566 (acc_dispatch_t): Remove open_device_func, close_device_func,
13567 get_device_num_func, set_device_num_func, target_data members.
13568 Change create_thread_data_func argument to device number instead of
13569 generic pointer.
13570 * oacc-async.c (assert.h): Include.
13571 (acc_async_test, acc_async_test_all, acc_wait, acc_wait_async)
13572 (acc_wait_all, acc_wait_all_async): Use current host thread's
13573 active device, not base_dev.
13574 * oacc-cuda.c (acc_get_current_cuda_device)
13575 (acc_get_current_cuda_context, acc_get_cuda_stream)
13576 (acc_set_cuda_stream): Likewise.
13577 * oacc-host.c (host_dispatch): Don't set open_device_func,
13578 close_device_func, get_device_num_func or set_device_num_func.
13579 * oacc-init.c (base_dev, init_key): Remove.
13580 (cached_base_dev): New.
13581 (name_of_acc_device_t): New.
13582 (acc_init_1): Initialise default-numbered device, not zeroth.
13583 (acc_shutdown_1): Close all devices of a given type.
13584 (goacc_destroy_thread): Don't use base_dev.
13585 (lazy_open, lazy_init, lazy_init_and_open): Remove.
13586 (goacc_attach_host_thread_to_device): New.
13587 (acc_init): Reimplement with goacc_attach_host_thread_to_device.
13588 (acc_get_num_devices): Don't use base_dev.
13589 (acc_set_device_type): Reimplement.
13590 (acc_get_device_type): Don't use base_dev.
13591 (acc_get_device_num): Tweak logic.
13592 (acc_set_device_num): Likewise.
13593 (acc_on_device): Use acc_get_device_type.
13594 (goacc_runtime_initialize): Initialize cached_base_dev not base_dev.
13595 (goacc_lazy_initialize): Reimplement with acc_init and
13596 goacc_attach_host_thread_to_device.
13597 * oacc-int.h (goacc_thread): Add base_dev field.
13598 (base_dev): Remove extern declaration.
13599 (goacc_attach_host_thread_to_device): Add prototype.
13600 * oacc-mem.c (acc_malloc): Use current thread's device instead of
13601 base_dev.
13602 (acc_free): Likewise.
13603 (acc_memcpy_to_device): Likewise.
13604 (acc_memcpy_from_device): Likewise.
13605 * oacc-parallel.c (select_acc_device): Remove. Replace calls with
13606 goacc_lazy_initialize (throughout).
13607 (GOACC_parallel): Use tgt_offset to locate target functions.
13608 * target.c (gomp_map_vars): Don't set tgt->mem_map.
13609 (gomp_unmap_vars): Use devicep->mem_map pointer not tgt->mem_map.
13610 (gomp_load_plugin_for_device): Remove open_device, close_device,
13611 get_device_num, set_device_num openacc hook initialisation. Don't set
13612 openacc.target_data.
13613 * plugin/plugin-host.c (GOMP_OFFLOAD_openacc_open_device)
13614 (GOMP_OFFLOAD_openacc_close_device)
13615 (GOMP_OFFLOAD_openacc_get_device_num)
13616 (GOMP_OFFLOAD_openacc_set_device_num): Remove.
13617 (GOMP_OFFLOAD_openacc_create_thread_data): Change (unused) argument
13618 to int.
13619 * plugin/plugin-nvptx.c (ptx_inited): Remove.
13620 (instantiated_devices, ptx_dev_lock): New.
13621 (struct ptx_image_data): New.
13622 (ptx_devices, ptx_images, ptx_image_lock): New.
13623 (fini_streams_for_device): Reorder cuStreamDestroy call.
13624 (nvptx_get_num_devices): Remove forward declaration.
13625 (nvptx_init): Change return type to bool.
13626 (nvptx_fini): Remove.
13627 (nvptx_attach_host_thread_to_device): New.
13628 (nvptx_open_device): Return struct ptx_device* instead of void*.
13629 (nvptx_close_device): Change argument type to struct ptx_device*,
13630 return type to void.
13631 (nvptx_get_num_devices): Use instantiated_devices not ptx_inited.
13632 (kernel_target_data, kernel_host_table): Remove static globals.
13633 (GOMP_OFFLOAD_register_image, GOMP_OFFLOAD_get_table): Remove.
13634 (GOMP_OFFLOAD_init_device): Reimplement.
13635 (GOMP_OFFLOAD_fini_device): Likewise.
13636 (GOMP_OFFLOAD_load_image, GOMP_OFFLOAD_unload_image): New.
13637 (GOMP_OFFLOAD_alloc, GOMP_OFFLOAD_free, GOMP_OFFLOAD_dev2host)
13638 (GOMP_OFFLOAD_host2dev): Use ORD argument.
13639 (GOMP_OFFLOAD_openacc_open_device)
13640 (GOMP_OFFLOAD_openacc_close_device)
13641 (GOMP_OFFLOAD_openacc_set_device_num)
13642 (GOMP_OFFLOAD_openacc_get_device_num): Remove.
13643 (GOMP_OFFLOAD_openacc_create_thread_data): Change argument to int
13644 (device number).
13645
13646 testsuite/
13647 * libgomp.oacc-c-c++-common/lib-9.c: Fix devnum check in test.
13648
13649 2015-04-06 Ilya Verbin <ilya.verbin@intel.com>
13650
13651 * libgomp-plugin.h (struct mapping_table): Replace with addr_pair.
13652 * libgomp.h (struct gomp_memory_mapping): Remove.
13653 (struct target_mem_desc): Change type of mem_map from
13654 gomp_memory_mapping * to splay_tree_s *.
13655 (struct gomp_device_descr): Remove register_image_func, get_table_func.
13656 Add load_image_func, unload_image_func.
13657 Change type of mem_map from gomp_memory_mapping to splay_tree_s.
13658 Remove offload_regions_registered.
13659 (gomp_init_tables): Remove.
13660 (gomp_free_memmap): Change type of argument from gomp_memory_mapping *
13661 to splay_tree_s *.
13662 * libgomp.map (GOMP_4.0.1): Add GOMP_offload_unregister.
13663 * oacc-host.c (host_dispatch): Do not initialize register_image_func,
13664 get_table_func, mem_map.is_initialized, mem_map.splay_tree.root,
13665 offload_regions_registered.
13666 Initialize load_image_func, unload_image_func, mem_map.root.
13667 (goacc_host_init): Do not initialize host_dispatch.mem_map.lock.
13668 * oacc-init.c (lazy_open): Don't call gomp_init_tables.
13669 (acc_shutdown_1): Use dev's lock and splay_tree instead of mem_map's.
13670 * oacc-mem.c (lookup_host): Get gomp_device_descr *dev instead of
13671 gomp_memory_mapping *. Use dev's lock and splay_tree.
13672 (lookup_dev): Use dev's lock.
13673 (acc_deviceptr): Pass dev to lookup_host instead of mem_map.
13674 (acc_is_present): Likewise.
13675 (acc_map_data): Likewise.
13676 (acc_unmap_data): Likewise. Use dev's lock.
13677 (present_create_copy): Likewise.
13678 (delete_copyout): Pass dev to lookup_host instead of mem_map.
13679 (update_dev_host): Likewise.
13680 (gomp_acc_remove_pointer): Likewise. Use dev's lock.
13681 * oacc-parallel.c (GOACC_parallel): Use dev's lock and splay_tree.
13682 * plugin/plugin-host.c (GOMP_OFFLOAD_register_image): Remove.
13683 (GOMP_OFFLOAD_get_table): Remove
13684 (GOMP_OFFLOAD_load_image): New function.
13685 (GOMP_OFFLOAD_unload_image): New function.
13686 * target.c (register_lock): New mutex for offload image registration.
13687 (num_devices): Do not guard with PLUGIN_SUPPORT.
13688 (gomp_realloc_unlock): New static function.
13689 (gomp_map_vars_existing): Add device descriptor argument. Unlock mutex
13690 before gomp_fatal.
13691 (gomp_map_vars): Use dev's lock and splay_tree instead of mem_map's.
13692 Pass devicep to gomp_map_vars_existing. Unlock mutex before gomp_fatal.
13693 (gomp_copy_from_async): Use dev's lock and splay_tree instead of
13694 mem_map's.
13695 (gomp_unmap_vars): Likewise.
13696 (gomp_update): Remove gomp_memory_mapping argument. Use dev's lock and
13697 splay_tree instead of mm's. Unlock mutex before gomp_fatal.
13698 (gomp_offload_image_to_device): New static function.
13699 (GOMP_offload_register): Add mutex lock.
13700 Call gomp_offload_image_to_device for all initialized devices.
13701 Replace gomp_realloc with gomp_realloc_unlock.
13702 (GOMP_offload_unregister): New function.
13703 (gomp_init_tables): Replace with gomp_init_device. Replace a call to
13704 get_table_func from the plugin with calls to init_device_func and
13705 gomp_offload_image_to_device.
13706 (gomp_free_memmap): Change type of argument from gomp_memory_mapping *
13707 to splay_tree_s *.
13708 (GOMP_target): Do not call gomp_init_tables. Use dev's lock and
13709 splay_tree instead of mem_map's. Unlock mutex before gomp_fatal.
13710 (GOMP_target_data): Do not call gomp_init_tables.
13711 (GOMP_target_update): Likewise. Remove argument from gomp_update.
13712 (gomp_load_plugin_for_device): Replace register_image and get_table
13713 with load_image and unload_image in DLSYM ().
13714 (gomp_register_images_for_device): Remove function.
13715 (gomp_target_init): Do not initialize current_device.mem_map.*,
13716 current_device.offload_regions_registered.
13717 Remove call to gomp_register_images_for_device.
13718 Do not free offload_images and num_offload_images.
13719
13720 2015-03-30 Jakub Jelinek <jakub@redhat.com>
13721
13722 PR fortran/65597
13723 * testsuite/libgomp.fortran/pr65597.f90: New test.
13724
13725 2015-03-27 Tom de Vries <tom@codesourcery.com>
13726
13727 PR testsuite/65594
13728 * testsuite/libgomp.graphite/force-parallel-6.c (abort): Declare.
13729 (init, check): New function.
13730 (foo): Change return type to void.
13731 (main): Call init and check.
13732
13733 2015-03-27 Tom de Vries <tom@codesourcery.com>
13734
13735 PR testsuite/65594
13736 * testsuite/libgomp.graphite/force-parallel-6.c (M): Define.
13737 (foo): Use M for non-inner loops to scale down test-case.
13738
13739 2015-03-25 Kai Tietz <ktietz@redhat.com>
13740
13741 PR libgomp/64972
13742 * oacc-parallel.c (GOACC_parallel): Use PRIu64 if available.
13743 (GOACC_data_start): Likewise.
13744 * target.c (gomp_map_vars): Likewise.
13745
13746 2015-03-21 John David Anglin <danglin@gcc.gnu.org>
13747
13748 * testsuite/libgomp.oacc-c-c++-common/reduction-4.c: Don't run on
13749 hppa*-*-hpux*.
13750
13751 2015-03-19 Jakub Jelinek <jakub@redhat.com>
13752
13753 * testsuite/libgomp.c/target-10.c: New test.
13754 * testsuite/libgomp.c++/target-4.C: New test.
13755
13756 2015-03-13 Ilya Verbin <ilya.verbin@intel.com>
13757
13758 * testsuite/libgomp.fortran/declare-target-1.f90: New test.
13759 * testsuite/libgomp.fortran/declare-target-2.f90: New file.
13760
13761 2015-03-13 Sebastian Huber <sebastian.huber@embedded-brains.de>
13762
13763 * configure.tgt (*-*-rtems*): Use local-exec TLS model.
13764 * configure.ac (*-*-rtems*): Assume Pthread is supported.
13765 (pthread.h): Check for this header file.
13766 * configure: Regenerate.
13767
13768 2015-02-25 Tom de Vries <tom@codesourcery.com>
13769
13770 * testsuite/libgomp.oacc-c-c++-common/reduction-1.c (DO_PRAGMA)
13771 (check_reduction_op, check_reduction_macro, max, min):
13772 Declare.
13773 (test_reductions_int, test_reductions_minmax, test_reductions_bool): New
13774 function.
13775 (main): Use new functions.
13776
13777 2015-02-18 Ilya Tocar <ilya.tocar@intel.com>
13778
13779 * target.c (gomp_load_plugin_for_device): Use const char * instead of
13780 char * for variables holding dlerror return values.
13781 (DLSYM_OPT): Ditto.
13782
13783 2015-02-17 Thomas Schwinge <thomas@codesourcery.com>
13784
13785 * libgomp-plugin.c (GOMP_PLUGIN_debug): Fix typo.
13786
13787 2015-02-17 Thomas Schwinge <thomas@codesourcery.com>
13788 Cesar Philippidis <cesar@codesourcery.com>
13789
13790 * oacc-ptx.h (GOACC_INTERNAL_PTX): Add GOACC_tid, GOACC_ntid,
13791 GOACC_ctaid, and GOACC_nctaid routines.
13792
13793 2015-02-11 Jakub Jelinek <jakub@redhat.com>
13794
13795 PR c/64824
13796 * testsuite/libgomp.c/atomic-18.c: New test.
13797 * testsuite/libgomp.c++/atomic-16.C: New test.
13798
13799 2015-02-04 Jakub Jelinek <jakub@redhat.com>
13800
13801 PR c/64824
13802 PR c/64868
13803 * testsuite/libgomp.c/pr64824.c: New test.
13804 * testsuite/libgomp.c/pr64868.c: New test.
13805 * testsuite/libgomp.c++/pr64824.C: New test.
13806 * testsuite/libgomp.c++/pr64868.C: New test.
13807
13808 2015-02-01 David Edelsohn <dje.gcc@gmail.com>
13809
13810 PR libgomp/64635
13811 * configure.tgt (*-*-aix*): Use standard posix plugin-suffix.h.
13812 Link with -lpthread.
13813 * config/aix/plugin-suffix.h: Delete.
13814
13815 2015-01-28 Jack Howarth <howarth.at.gcc@gmail.com>
13816
13817 PR libgomp/64635
13818 * configure.tgt (*-*-aix*): Use config_path "aix posix".
13819 (*-*-darwin*): Use config_path "bsd darwin posix".
13820 (*-*-hpux*): Use config_path "hpux posix".
13821 * target.c: Add include of plugin-suffix.h and use
13822 SONAME_SUFFIX macro.
13823 * config/aix/plugin-suffix.h: New file.
13824 * config/darwin/plugin-suffix.h: New file.
13825 * config/hpux/plugin-suffix.h: New file.
13826 * config/posix/plugin-suffix.h: New file.
13827
13828 2015-01-23 Jakub Jelinek <jakub@redhat.com>
13829
13830 PR middle-end/64734
13831 * libgomp.c/pr64734.c: New test.
13832
13833 2015-01-23 Tom de Vries <tom@codesourcery.com>
13834
13835 PR libgomp/64672
13836 * testsuite/libgomp.oacc-c-c++-common/abort-5.c: New test.
13837
13838 2015-01-23 Tom de Vries <tom@codesourcery.com>
13839
13840 PR libgomp/64707
13841 * testsuite/libgomp.c/target-9.c: Add -ftree-parallelize-loops=0 to
13842 dg-options.
13843
13844 2015-01-19 Thomas Schwinge <thomas@codesourcery.com>
13845
13846 PR libgomp/64625
13847 * libgomp_g.h (GOACC_data_start, GOACC_enter_exit_data)
13848 (GOACC_parallel, GOACC_update): Remove const_void *offload_table
13849 formal parameter. Update all users.
13850 * target.c (GOMP_target, GOMP_target_data, GOMP_target_update):
13851 Document unused formal parameter.
13852
13853 2015-01-16 Thomas Schwinge <thomas@codesourcery.com>
13854
13855 * oacc-parallel.c: Don't include <alloca.h>.
13856 (GOACC_parallel): Use gomp_alloca instead of alloca.
13857
13858 2015-01-16 Gerald Pfeifer <gerald@pfeifer.com>
13859
13860 * target.c (num_devices): Guard with PLUGIN_SUPPORT.
13861
13862 2015-01-15 Thomas Schwinge <thomas@codesourcery.com>
13863 James Norris <jnorris@codesourcery.com>
13864 Tom de Vries <tom@codesourcery.com>
13865 Julian Brown <julian@codesourcery.com>
13866 Cesar Philippidis <cesar@codesourcery.com>
13867 Nathan Sidwell <nathan@codesourcery.com>
13868 Tobias Burnus <burnus@net-b.de>
13869
13870 * Makefile.am (search_path): Add $(top_srcdir)/../include.
13871 (libgomp_la_SOURCES): Add splay-tree.c, libgomp-plugin.c,
13872 oacc-parallel.c, oacc-host.c, oacc-init.c, oacc-mem.c,
13873 oacc-async.c, oacc-plugin.c, oacc-cuda.c.
13874 [USE_FORTRAN] (libgomp_la_SOURCES): Add openacc.f90.
13875 Include $(top_srcdir)/plugin/Makefrag.am.
13876 (nodist_libsubinclude_HEADERS): Add openacc.h.
13877 [USE_FORTRAN] (nodist_finclude_HEADERS): Add openacc_lib.h,
13878 openacc.f90, openacc.mod, openacc_kinds.mod.
13879 (omp_lib.mod): Generalize into...
13880 (%.mod): ... this new rule.
13881 (openacc_kinds.mod, openacc.mod): New rules.
13882 * plugin/configfrag.ac: New file.
13883 * configure.ac: Move plugin/offloading support into it. Include
13884 it. Instantiate testsuite/libgomp-test-support.pt.exp.
13885 * plugin/Makefrag.am: New file.
13886 * testsuite/Makefile.am (OFFLOAD_TARGETS)
13887 (OFFLOAD_ADDITIONAL_OPTIONS, OFFLOAD_ADDITIONAL_LIB_PATHS): Don't
13888 export.
13889 (libgomp-test-support.exp): New rule.
13890 (all-local): Depend on it.
13891 * Makefile.in: Regenerate.
13892 * testsuite/Makefile.in: Regenerate.
13893 * config.h.in: Likewise.
13894 * configure: Likewise.
13895 * configure.tgt: Harden shell syntax.
13896 * env.c: Include "oacc-int.h".
13897 (parse_acc_device_type): New function.
13898 (gomp_debug_var, goacc_device_type, goacc_device_num): New
13899 variables.
13900 (initialize_env): Initialize those. Call
13901 goacc_runtime_initialize.
13902 * error.c (gomp_vdebug, gomp_debug, gomp_vfatal): New functions.
13903 (gomp_fatal): Call gomp_vfatal.
13904 * libgomp.h: Include "libgomp-plugin.h" and <stdarg.h>.
13905 (gomp_debug_var, goacc_device_type, goacc_device_num, gomp_vdebug)
13906 (gomp_debug, gomp_verror, gomp_vfatal, gomp_init_targets_once)
13907 (splay_tree_node, splay_tree, splay_tree_key)
13908 (struct target_mem_desc, struct splay_tree_key_s)
13909 (struct gomp_memory_mapping, struct acc_dispatch_t)
13910 (struct gomp_device_descr, gomp_acc_insert_pointer)
13911 (gomp_acc_remove_pointer, target_mem_desc, gomp_copy_from_async)
13912 (gomp_unmap_vars, gomp_init_device, gomp_init_tables)
13913 (gomp_free_memmap, gomp_fini_device): New declarations.
13914 (gomp_vdebug, gomp_debug): New macros.
13915 Include "splay-tree.h".
13916 * libgomp.map (OACC_2.0): New symbol version. Use for
13917 acc_get_num_devices, acc_get_num_devices_h_, acc_set_device_type,
13918 acc_set_device_type_h_, acc_get_device_type,
13919 acc_get_device_type_h_, acc_set_device_num, acc_set_device_num_h_,
13920 acc_get_device_num, acc_get_device_num_h_, acc_async_test,
13921 acc_async_test_h_, acc_async_test_all, acc_async_test_all_h_,
13922 acc_wait, acc_wait_h_, acc_wait_async, acc_wait_async_h_,
13923 acc_wait_all, acc_wait_all_h_, acc_wait_all_async,
13924 acc_wait_all_async_h_, acc_init, acc_init_h_, acc_shutdown,
13925 acc_shutdown_h_, acc_on_device, acc_on_device_h_, acc_malloc,
13926 acc_free, acc_copyin, acc_copyin_32_h_, acc_copyin_64_h_,
13927 acc_copyin_array_h_, acc_present_or_copyin,
13928 acc_present_or_copyin_32_h_, acc_present_or_copyin_64_h_,
13929 acc_present_or_copyin_array_h_, acc_create, acc_create_32_h_,
13930 acc_create_64_h_, acc_create_array_h_, acc_present_or_create,
13931 acc_present_or_create_32_h_, acc_present_or_create_64_h_,
13932 acc_present_or_create_array_h_, acc_copyout, acc_copyout_32_h_,
13933 acc_copyout_64_h_, acc_copyout_array_h_, acc_delete,
13934 acc_delete_32_h_, acc_delete_64_h_, acc_delete_array_h_,
13935 acc_update_device, acc_update_device_32_h_,
13936 acc_update_device_64_h_, acc_update_device_array_h_,
13937 acc_update_self, acc_update_self_32_h_, acc_update_self_64_h_,
13938 acc_update_self_array_h_, acc_map_data, acc_unmap_data,
13939 acc_deviceptr, acc_hostptr, acc_is_present, acc_is_present_32_h_,
13940 acc_is_present_64_h_, acc_is_present_array_h_,
13941 acc_memcpy_to_device, acc_memcpy_from_device,
13942 acc_get_current_cuda_device, acc_get_current_cuda_context,
13943 acc_get_cuda_stream, acc_set_cuda_stream.
13944 (GOACC_2.0): New symbol version. Use for GOACC_data_end,
13945 GOACC_data_start, GOACC_enter_exit_data, GOACC_parallel,
13946 GOACC_update, GOACC_wait, GOACC_get_thread_num,
13947 GOACC_get_num_threads.
13948 (GOMP_PLUGIN_1.0): New symbol version. Use for
13949 GOMP_PLUGIN_malloc, GOMP_PLUGIN_malloc_cleared,
13950 GOMP_PLUGIN_realloc, GOMP_PLUGIN_debug, GOMP_PLUGIN_error,
13951 GOMP_PLUGIN_fatal, GOMP_PLUGIN_async_unmap_vars,
13952 GOMP_PLUGIN_acc_thread.
13953 * libgomp.texi: Update for OpenACC changes, and GOMP_DEBUG
13954 environment variable.
13955 * libgomp_g.h (GOACC_data_start, GOACC_data_end)
13956 (GOACC_enter_exit_data, GOACC_parallel, GOACC_update, GOACC_wait)
13957 (GOACC_get_num_threads, GOACC_get_thread_num): New declarations.
13958 * splay-tree.h (splay_tree_lookup, splay_tree_insert)
13959 (splay_tree_remove): New declarations.
13960 (rotate_left, rotate_right, splay_tree_splay, splay_tree_insert)
13961 (splay_tree_remove, splay_tree_lookup): Move into...
13962 * splay-tree.c: ... this new file.
13963 * target.c: Include "oacc-plugin.h", "oacc-int.h", <assert.h>.
13964 (splay_tree_node, splay_tree, splay_tree_key)
13965 (struct target_mem_desc, struct splay_tree_key_s)
13966 (struct gomp_device_descr): Don't declare.
13967 (num_devices_openmp): New variable.
13968 (gomp_get_num_devices ): Use it.
13969 (gomp_init_targets_once): New function.
13970 (gomp_get_num_devices ): Use it.
13971 (get_kind, gomp_copy_from_async, gomp_free_memmap)
13972 (gomp_fini_device, gomp_register_image_for_device): New functions.
13973 (gomp_map_vars): Add devaddrs parameter.
13974 (gomp_update): Add mm parameter.
13975 (gomp_init_device): Move most of it into...
13976 (gomp_init_tables): ... this new function.
13977 (gomp_register_images_for_device): Remove function.
13978 (splay_compare, gomp_map_vars, gomp_unmap_vars, gomp_init_device):
13979 Make them hidden instead of static.
13980 (gomp_map_vars_existing, gomp_map_vars, gomp_unmap_vars)
13981 (gomp_update, gomp_init_device, GOMP_target, GOMP_target_data)
13982 (GOMP_target_end_data, GOMP_target_update)
13983 (gomp_load_plugin_for_device, gomp_target_init): Update for
13984 OpenACC changes.
13985 * oacc-async.c: New file.
13986 * oacc-cuda.c: Likewise.
13987 * oacc-host.c: Likewise.
13988 * oacc-init.c: Likewise.
13989 * oacc-int.h: Likewise.
13990 * oacc-mem.c: Likewise.
13991 * oacc-parallel.c: Likewise.
13992 * oacc-plugin.c: Likewise.
13993 * oacc-plugin.h: Likewise.
13994 * oacc-ptx.h: Likewise.
13995 * openacc.f90: Likewise.
13996 * openacc.h: Likewise.
13997 * openacc_lib.h: Likewise.
13998 * plugin/plugin-host.c: Likewise.
13999 * plugin/plugin-nvptx.c: Likewise.
14000 * libgomp-plugin.c: Likewise.
14001 * libgomp-plugin.h: Likewise.
14002 * libgomp_target.h: Remove file after merging content into the
14003 former file. Update all users.
14004 * testsuite/lib/libgomp.exp: Load libgomp-test-support.exp.
14005 (offload_targets_s, offload_targets_s_openacc): New variables.
14006 (check_effective_target_openacc_nvidia_accel_present)
14007 (check_effective_target_openacc_nvidia_accel_selected): New
14008 procedures.
14009 (libgomp_init): Update for OpenACC changes.
14010 * testsuite/libgomp-test-support.exp.in: New file.
14011 * testsuite/libgomp.oacc-c++/c++.exp: Likewise.
14012 * testsuite/libgomp.oacc-c/c.exp: Likewise.
14013 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
14014 * testsuite/libgomp.oacc-c-c++-common/abort-1.c: Likewise.
14015 * testsuite/libgomp.oacc-c-c++-common/abort-2.c: Likewise.
14016 * testsuite/libgomp.oacc-c-c++-common/abort-3.c: Likewise.
14017 * testsuite/libgomp.oacc-c-c++-common/abort-4.c: Likewise.
14018 * testsuite/libgomp.oacc-c-c++-common/acc_on_device-1.c: Likewise.
14019 * testsuite/libgomp.oacc-c-c++-common/asyncwait-1.c: Likewise.
14020 * testsuite/libgomp.oacc-c-c++-common/cache-1.c: Likewise.
14021 * testsuite/libgomp.oacc-c-c++-common/clauses-1.c: Likewise.
14022 * testsuite/libgomp.oacc-c-c++-common/clauses-2.c: Likewise.
14023 * testsuite/libgomp.oacc-c-c++-common/collapse-1.c: Likewise.
14024 * testsuite/libgomp.oacc-c-c++-common/collapse-2.c: Likewise.
14025 * testsuite/libgomp.oacc-c-c++-common/collapse-3.c: Likewise.
14026 * testsuite/libgomp.oacc-c-c++-common/collapse-4.c: Likewise.
14027 * testsuite/libgomp.oacc-c-c++-common/context-1.c: Likewise.
14028 * testsuite/libgomp.oacc-c-c++-common/context-2.c: Likewise.
14029 * testsuite/libgomp.oacc-c-c++-common/context-3.c: Likewise.
14030 * testsuite/libgomp.oacc-c-c++-common/context-4.c: Likewise.
14031 * testsuite/libgomp.oacc-c-c++-common/data-1.c: Likewise.
14032 * testsuite/libgomp.oacc-c-c++-common/data-2.c: Likewise.
14033 * testsuite/libgomp.oacc-c-c++-common/data-3.c: Likewise.
14034 * testsuite/libgomp.oacc-c-c++-common/data-already-1.c: Likewise.
14035 * testsuite/libgomp.oacc-c-c++-common/data-already-2.c: Likewise.
14036 * testsuite/libgomp.oacc-c-c++-common/data-already-3.c: Likewise.
14037 * testsuite/libgomp.oacc-c-c++-common/data-already-4.c: Likewise.
14038 * testsuite/libgomp.oacc-c-c++-common/data-already-5.c: Likewise.
14039 * testsuite/libgomp.oacc-c-c++-common/data-already-6.c: Likewise.
14040 * testsuite/libgomp.oacc-c-c++-common/data-already-7.c: Likewise.
14041 * testsuite/libgomp.oacc-c-c++-common/data-already-8.c: Likewise.
14042 * testsuite/libgomp.oacc-c-c++-common/deviceptr-1.c: Likewise.
14043 * testsuite/libgomp.oacc-c-c++-common/if-1.c: Likewise.
14044 * testsuite/libgomp.oacc-c-c++-common/kernels-1.c: Likewise.
14045 * testsuite/libgomp.oacc-c-c++-common/kernels-empty.c: Likewise.
14046 * testsuite/libgomp.oacc-c-c++-common/lib-1.c: Likewise.
14047 * testsuite/libgomp.oacc-c-c++-common/lib-10.c: Likewise.
14048 * testsuite/libgomp.oacc-c-c++-common/lib-11.c: Likewise.
14049 * testsuite/libgomp.oacc-c-c++-common/lib-12.c: Likewise.
14050 * testsuite/libgomp.oacc-c-c++-common/lib-13.c: Likewise.
14051 * testsuite/libgomp.oacc-c-c++-common/lib-14.c: Likewise.
14052 * testsuite/libgomp.oacc-c-c++-common/lib-15.c: Likewise.
14053 * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
14054 * testsuite/libgomp.oacc-c-c++-common/lib-17.c: Likewise.
14055 * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
14056 * testsuite/libgomp.oacc-c-c++-common/lib-19.c: Likewise.
14057 * testsuite/libgomp.oacc-c-c++-common/lib-2.c: Likewise.
14058 * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
14059 * testsuite/libgomp.oacc-c-c++-common/lib-21.c: Likewise.
14060 * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Likewise.
14061 * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
14062 * testsuite/libgomp.oacc-c-c++-common/lib-24.c: Likewise.
14063 * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
14064 * testsuite/libgomp.oacc-c-c++-common/lib-26.c: Likewise.
14065 * testsuite/libgomp.oacc-c-c++-common/lib-27.c: Likewise.
14066 * testsuite/libgomp.oacc-c-c++-common/lib-28.c: Likewise.
14067 * testsuite/libgomp.oacc-c-c++-common/lib-29.c: Likewise.
14068 * testsuite/libgomp.oacc-c-c++-common/lib-3.c: Likewise.
14069 * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
14070 * testsuite/libgomp.oacc-c-c++-common/lib-31.c: Likewise.
14071 * testsuite/libgomp.oacc-c-c++-common/lib-32.c: Likewise.
14072 * testsuite/libgomp.oacc-c-c++-common/lib-33.c: Likewise.
14073 * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
14074 * testsuite/libgomp.oacc-c-c++-common/lib-35.c: Likewise.
14075 * testsuite/libgomp.oacc-c-c++-common/lib-36.c: Likewise.
14076 * testsuite/libgomp.oacc-c-c++-common/lib-37.c: Likewise.
14077 * testsuite/libgomp.oacc-c-c++-common/lib-38.c: Likewise.
14078 * testsuite/libgomp.oacc-c-c++-common/lib-39.c: Likewise.
14079 * testsuite/libgomp.oacc-c-c++-common/lib-4.c: Likewise.
14080 * testsuite/libgomp.oacc-c-c++-common/lib-40.c: Likewise.
14081 * testsuite/libgomp.oacc-c-c++-common/lib-41.c: Likewise.
14082 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
14083 * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Likewise.
14084 * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
14085 * testsuite/libgomp.oacc-c-c++-common/lib-45.c: Likewise.
14086 * testsuite/libgomp.oacc-c-c++-common/lib-46.c: Likewise.
14087 * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Likewise.
14088 * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
14089 * testsuite/libgomp.oacc-c-c++-common/lib-49.c: Likewise.
14090 * testsuite/libgomp.oacc-c-c++-common/lib-5.c: Likewise.
14091 * testsuite/libgomp.oacc-c-c++-common/lib-50.c: Likewise.
14092 * testsuite/libgomp.oacc-c-c++-common/lib-51.c: Likewise.
14093 * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Likewise.
14094 * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
14095 * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
14096 * testsuite/libgomp.oacc-c-c++-common/lib-55.c: Likewise.
14097 * testsuite/libgomp.oacc-c-c++-common/lib-56.c: Likewise.
14098 * testsuite/libgomp.oacc-c-c++-common/lib-57.c: Likewise.
14099 * testsuite/libgomp.oacc-c-c++-common/lib-58.c: Likewise.
14100 * testsuite/libgomp.oacc-c-c++-common/lib-59.c: Likewise.
14101 * testsuite/libgomp.oacc-c-c++-common/lib-6.c: Likewise.
14102 * testsuite/libgomp.oacc-c-c++-common/lib-60.c: Likewise.
14103 * testsuite/libgomp.oacc-c-c++-common/lib-61.c: Likewise.
14104 * testsuite/libgomp.oacc-c-c++-common/lib-62.c: Likewise.
14105 * testsuite/libgomp.oacc-c-c++-common/lib-63.c: Likewise.
14106 * testsuite/libgomp.oacc-c-c++-common/lib-64.c: Likewise.
14107 * testsuite/libgomp.oacc-c-c++-common/lib-65.c: Likewise.
14108 * testsuite/libgomp.oacc-c-c++-common/lib-66.c: Likewise.
14109 * testsuite/libgomp.oacc-c-c++-common/lib-67.c: Likewise.
14110 * testsuite/libgomp.oacc-c-c++-common/lib-68.c: Likewise.
14111 * testsuite/libgomp.oacc-c-c++-common/lib-69.c: Likewise.
14112 * testsuite/libgomp.oacc-c-c++-common/lib-7.c: Likewise.
14113 * testsuite/libgomp.oacc-c-c++-common/lib-70.c: Likewise.
14114 * testsuite/libgomp.oacc-c-c++-common/lib-71.c: Likewise.
14115 * testsuite/libgomp.oacc-c-c++-common/lib-72.c: Likewise.
14116 * testsuite/libgomp.oacc-c-c++-common/lib-73.c: Likewise.
14117 * testsuite/libgomp.oacc-c-c++-common/lib-74.c: Likewise.
14118 * testsuite/libgomp.oacc-c-c++-common/lib-75.c: Likewise.
14119 * testsuite/libgomp.oacc-c-c++-common/lib-76.c: Likewise.
14120 * testsuite/libgomp.oacc-c-c++-common/lib-77.c: Likewise.
14121 * testsuite/libgomp.oacc-c-c++-common/lib-78.c: Likewise.
14122 * testsuite/libgomp.oacc-c-c++-common/lib-79.c: Likewise.
14123 * testsuite/libgomp.oacc-c-c++-common/lib-80.c: Likewise.
14124 * testsuite/libgomp.oacc-c-c++-common/lib-81.c: Likewise.
14125 * testsuite/libgomp.oacc-c-c++-common/lib-82.c: Likewise.
14126 * testsuite/libgomp.oacc-c-c++-common/lib-83.c: Likewise.
14127 * testsuite/libgomp.oacc-c-c++-common/lib-84.c: Likewise.
14128 * testsuite/libgomp.oacc-c-c++-common/lib-85.c: Likewise.
14129 * testsuite/libgomp.oacc-c-c++-common/lib-86.c: Likewise.
14130 * testsuite/libgomp.oacc-c-c++-common/lib-87.c: Likewise.
14131 * testsuite/libgomp.oacc-c-c++-common/lib-88.c: Likewise.
14132 * testsuite/libgomp.oacc-c-c++-common/lib-89.c: Likewise.
14133 * testsuite/libgomp.oacc-c-c++-common/lib-9.c: Likewise.
14134 * testsuite/libgomp.oacc-c-c++-common/lib-90.c: Likewise.
14135 * testsuite/libgomp.oacc-c-c++-common/lib-91.c: Likewise.
14136 * testsuite/libgomp.oacc-c-c++-common/lib-92.c: Likewise.
14137 * testsuite/libgomp.oacc-c-c++-common/nested-1.c: Likewise.
14138 * testsuite/libgomp.oacc-c-c++-common/nested-2.c: Likewise.
14139 * testsuite/libgomp.oacc-c-c++-common/offset-1.c: Likewise.
14140 * testsuite/libgomp.oacc-c-c++-common/parallel-1.c: Likewise.
14141 * testsuite/libgomp.oacc-c-c++-common/parallel-empty.c: Likewise.
14142 * testsuite/libgomp.oacc-c-c++-common/pointer-align-1.c: Likewise.
14143 * testsuite/libgomp.oacc-c-c++-common/present-1.c: Likewise.
14144 * testsuite/libgomp.oacc-c-c++-common/present-2.c: Likewise.
14145 * testsuite/libgomp.oacc-c-c++-common/reduction-1.c: Likewise.
14146 * testsuite/libgomp.oacc-c-c++-common/reduction-2.c: Likewise.
14147 * testsuite/libgomp.oacc-c-c++-common/reduction-3.c: Likewise.
14148 * testsuite/libgomp.oacc-c-c++-common/reduction-4.c: Likewise.
14149 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Likewise.
14150 * testsuite/libgomp.oacc-c-c++-common/reduction-initial-1.c:
14151 Likewise.
14152 * testsuite/libgomp.oacc-c-c++-common/subr.h: Likewise.
14153 * testsuite/libgomp.oacc-c-c++-common/subr.ptx: Likewise.
14154 * testsuite/libgomp.oacc-c-c++-common/timer.h: Likewise.
14155 * testsuite/libgomp.oacc-c-c++-common/update-1-2.c: Likewise.
14156 * testsuite/libgomp.oacc-c-c++-common/update-1.c: Likewise.
14157 * testsuite/libgomp.oacc-fortran/abort-1.f90: Likewise.
14158 * testsuite/libgomp.oacc-fortran/abort-2.f90: Likewise.
14159 * testsuite/libgomp.oacc-fortran/acc_on_device-1-1.f90: Likewise.
14160 * testsuite/libgomp.oacc-fortran/acc_on_device-1-2.f: Likewise.
14161 * testsuite/libgomp.oacc-fortran/acc_on_device-1-3.f: Likewise.
14162 * testsuite/libgomp.oacc-fortran/asyncwait-1.f90: Likewise.
14163 * testsuite/libgomp.oacc-fortran/asyncwait-2.f90: Likewise.
14164 * testsuite/libgomp.oacc-fortran/asyncwait-3.f90: Likewise.
14165 * testsuite/libgomp.oacc-fortran/collapse-1.f90: Likewise.
14166 * testsuite/libgomp.oacc-fortran/collapse-2.f90: Likewise.
14167 * testsuite/libgomp.oacc-fortran/collapse-3.f90: Likewise.
14168 * testsuite/libgomp.oacc-fortran/collapse-4.f90: Likewise.
14169 * testsuite/libgomp.oacc-fortran/collapse-5.f90: Likewise.
14170 * testsuite/libgomp.oacc-fortran/collapse-6.f90: Likewise.
14171 * testsuite/libgomp.oacc-fortran/collapse-7.f90: Likewise.
14172 * testsuite/libgomp.oacc-fortran/collapse-8.f90: Likewise.
14173 * testsuite/libgomp.oacc-fortran/data-1.f90: Likewise.
14174 * testsuite/libgomp.oacc-fortran/data-2.f90: Likewise.
14175 * testsuite/libgomp.oacc-fortran/data-3.f90: Likewise.
14176 * testsuite/libgomp.oacc-fortran/data-4-2.f90: Likewise.
14177 * testsuite/libgomp.oacc-fortran/data-4.f90: Likewise.
14178 * testsuite/libgomp.oacc-fortran/data-already-1.f: Likewise.
14179 * testsuite/libgomp.oacc-fortran/data-already-2.f: Likewise.
14180 * testsuite/libgomp.oacc-fortran/data-already-3.f: Likewise.
14181 * testsuite/libgomp.oacc-fortran/data-already-4.f: Likewise.
14182 * testsuite/libgomp.oacc-fortran/data-already-5.f: Likewise.
14183 * testsuite/libgomp.oacc-fortran/data-already-6.f: Likewise.
14184 * testsuite/libgomp.oacc-fortran/data-already-7.f: Likewise.
14185 * testsuite/libgomp.oacc-fortran/data-already-8.f: Likewise.
14186 * testsuite/libgomp.oacc-fortran/lib-1.f90: Likewise.
14187 * testsuite/libgomp.oacc-fortran/lib-10.f90: Likewise.
14188 * testsuite/libgomp.oacc-fortran/lib-2.f: Likewise.
14189 * testsuite/libgomp.oacc-fortran/lib-3.f: Likewise.
14190 * testsuite/libgomp.oacc-fortran/lib-4.f90: Likewise.
14191 * testsuite/libgomp.oacc-fortran/lib-5.f90: Likewise.
14192 * testsuite/libgomp.oacc-fortran/lib-6.f90: Likewise.
14193 * testsuite/libgomp.oacc-fortran/lib-7.f90: Likewise.
14194 * testsuite/libgomp.oacc-fortran/lib-8.f90: Likewise.
14195 * testsuite/libgomp.oacc-fortran/map-1.f90: Likewise.
14196 * testsuite/libgomp.oacc-fortran/openacc_version-1.f: Likewise.
14197 * testsuite/libgomp.oacc-fortran/openacc_version-2.f90: Likewise.
14198 * testsuite/libgomp.oacc-fortran/pointer-align-1.f90: Likewise.
14199 * testsuite/libgomp.oacc-fortran/pset-1.f90: Likewise.
14200 * testsuite/libgomp.oacc-fortran/reduction-1.f90: Likewise.
14201 * testsuite/libgomp.oacc-fortran/reduction-2.f90: Likewise.
14202 * testsuite/libgomp.oacc-fortran/reduction-3.f90: Likewise.
14203 * testsuite/libgomp.oacc-fortran/reduction-4.f90: Likewise.
14204 * testsuite/libgomp.oacc-fortran/reduction-5.f90: Likewise.
14205 * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
14206 * testsuite/libgomp.oacc-fortran/routine-1.f90: Likewise.
14207 * testsuite/libgomp.oacc-fortran/routine-2.f90: Likewise.
14208 * testsuite/libgomp.oacc-fortran/routine-3.f90: Likewise.
14209 * testsuite/libgomp.oacc-fortran/routine-4.f90: Likewise.
14210 * testsuite/libgomp.oacc-fortran/subarrays-1.f90: Likewise.
14211 * testsuite/libgomp.oacc-fortran/subarrays-2.f90: Likewise.
14212
14213 2015-01-10 Thomas Schwinge <thomas@codesourcery.com>
14214 Julian Brown <julian@codesourcery.com>
14215 David Malcolm <dmalcolm@redhat.com>
14216
14217 * configure.ac: Rename libgomp from "GNU OpenMP Runtime Library"
14218 to "GNU Offloading and Multi Processing Runtime Library". Change
14219 all users.
14220 * configure: Regenerate.
14221 * libgomp.texi: Update.
14222
14223 2015-01-08 Thomas Schwinge <thomas@codesourcery.com>
14224
14225 * configure.ac [tgt_dir] (offload_additional_lib_paths): Also add
14226 "$tgt_dir/lib32".
14227 * configure: Regenerate.
14228
14229 * testsuite/lib/libgomp.exp (libgomp_init): Correctly match
14230 "intelmic" in $offload_targets.
14231
14232 2015-01-05 Jakub Jelinek <jakub@redhat.com>
14233
14234 Update copyright years.
14235
14236 * libgomp.texi: Bump @copying's copyright year.
14237
14238 2014-12-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14239
14240 * testsuite/lib/libgomp.exp: Load target-utils.exp.
14241 Move load of target-supports.exp earlier.
14242
14243 2014-12-10 Ilya Verbin <ilya.verbin@intel.com>
14244
14245 * testsuite/libgomp.c/target-9.c: New test.
14246
14247 2014-12-09 Varvara Rainchik <varvara.rainchik@intel.com>
14248
14249 * config.h.in: Regenerate.
14250 * configure: Regenerate.
14251 * configure.ac: Add GCC_CHECK_EMUTLS.
14252 * libgomp.h: Add check for USE_EMUTLS: this case
14253 is equal to HAVE_TLS.
14254 * team.c: Likewise.
14255
14256 2014-12-03 Uros Bizjak <ubizjak@gmail.com>
14257
14258 * configure.tgt (x86_64-*-linux*): Tune -m32 multilib to generic.
14259
14260 2014-11-28 Andrey Turetskiy <andrey.turetskiy@intel.com>
14261 Ilya Verbin <ilya.verbin@intel.com>
14262
14263 * testsuite/libgomp.c/target-critical-1.c: New test.
14264
14265 2014-11-26 Jakub Jelinek <jakub@redhat.com>
14266
14267 * testsuite/libgomp.c/examples-4/e.53.4.c: Add -DITESTITERS=20
14268 to dg-options unless expensive testing is on.
14269 (TESTITERS): Define to N if not defined.
14270 (main): Use TESTITERS instead of N.
14271 * testsuite/libgomp.c/examples-4/e.55.1.c: Define CHUNKSZ from
14272 dg-additional-options depending on whether expensive testing is on.
14273 * testsuite/libgomp.fortran/examples-4/e.55.1.f90 (e_55_1_mod):
14274 Decrease N to 100000 and CHUNKSZ to 10000.
14275
14276 2014-11-24 Jakub Jelinek <jakub@redhat.com>
14277
14278 PR fortran/63938
14279 * testsuite/libgomp.fortran/pr63938-1.f90: New test.
14280 * testsuite/libgomp.fortran/pr63938-2.f90: New test.
14281
14282 2014-11-21 Steve Ellcey <sellcey@imgtec.com>
14283
14284 * config/linux/mips/futex.h (SYS_futex): Define if not already done.
14285
14286 2014-11-21 H.J. Lu <hongjiu.lu@intel.com>
14287
14288 PR bootstrap/63784
14289 * configure: Regenerated.
14290
14291 2014-11-19 Uros Bizjak <ubizjak@gmail.com>
14292
14293 * testsuite/libgomp.c/examples-4/e.53.5.c: Require
14294 vect_simd_clones effective target.
14295 * testsuite/libgomp.fortran/examples-4/e.53.5.f90: Ditto.
14296
14297 2014-11-14 Jakub Jelinek <jakub@redhat.com>
14298
14299 * libgomp.c/examples-4/e.54.2.c (main): Use N / 8 instead
14300 of 32 as block_size.
14301 * libgomp.fortran/examples-4/e.54.2.f90 (e_54_1): Use n / 8
14302 instead of 32 as block_size.
14303
14304 2014-11-13 Andrey Turetskiy <andrey.turetskiy@intel.com>
14305 Ilya Verbin <ilya.verbin@intel.com>
14306
14307 * Makefile.in: Regenerate.
14308 * configure: Regenerate.
14309 * configure.ac: Set up offload_additional_options,
14310 offload_additional_lib_paths and offload_targets.
14311 * testsuite/Makefile.am: Export environment variables: OFFLOAD_TARGETS,
14312 OFFLOAD_ADDITIONAL_OPTIONS, OFFLOAD_ADDITIONAL_LIB_PATHS.
14313 * testsuite/Makefile.in: Regenerate.
14314 * testsuite/lib/libgomp.exp (libgomp_init): Append
14315 offload_additional_lib_paths to LD_LIBRARY_PATH. Append
14316 offload_additional_options to ALWAYS_CFLAGS. Append liboffloadmic
14317 build directory to LD_LIBRARY_PATH for intelmic offload targets.
14318
14319 2014-11-13 Andrey Turetskiy <andrey.turetskiy@intel.com>
14320 Ilya Verbin <ilya.verbin@intel.com>
14321 Kirill Yukhin <kirill.yukhin@intel.com>
14322 Ilya Tocar <ilya.tocar@intel.com>
14323
14324 * testsuite/lib/libgomp.exp
14325 (check_effective_target_offload_device): New.
14326 * testsuite/libgomp.c++/c++.exp: Include tests from subdirectories.
14327 * testsuite/libgomp.c++/examples-4/e.51.5.C: New test.
14328 * testsuite/libgomp.c++/examples-4/e.53.2.C: Ditto.
14329 * testsuite/libgomp.c/examples-4/e.50.1.c: Ditto.
14330 * testsuite/libgomp.c/examples-4/e.50.2.c: Ditto.
14331 * testsuite/libgomp.c/examples-4/e.50.3.c: Ditto.
14332 * testsuite/libgomp.c/examples-4/e.50.4.c: Ditto.
14333 * testsuite/libgomp.c/examples-4/e.50.5.c: Ditto.
14334 * testsuite/libgomp.c/examples-4/e.51.1.c: Ditto.
14335 * testsuite/libgomp.c/examples-4/e.51.2.c: Ditto.
14336 * testsuite/libgomp.c/examples-4/e.51.3.c: Ditto.
14337 * testsuite/libgomp.c/examples-4/e.51.4.c: Ditto.
14338 * testsuite/libgomp.c/examples-4/e.51.6.c: Ditto.
14339 * testsuite/libgomp.c/examples-4/e.51.7.c: Ditto.
14340 * testsuite/libgomp.c/examples-4/e.52.1.c: Ditto.
14341 * testsuite/libgomp.c/examples-4/e.52.2.c: Ditto.
14342 * testsuite/libgomp.c/examples-4/e.53.1.c: Ditto.
14343 * testsuite/libgomp.c/examples-4/e.53.3.c: Ditto.
14344 * testsuite/libgomp.c/examples-4/e.53.4.c: Ditto.
14345 * testsuite/libgomp.c/examples-4/e.53.5.c: Ditto.
14346 * testsuite/libgomp.c/examples-4/e.54.2.c: Ditto.
14347 * testsuite/libgomp.c/examples-4/e.54.3.c: Ditto.
14348 * testsuite/libgomp.c/examples-4/e.54.4.c: Ditto.
14349 * testsuite/libgomp.c/examples-4/e.54.5.c: Ditto.
14350 * testsuite/libgomp.c/examples-4/e.54.6.c: Ditto.
14351 * testsuite/libgomp.c/examples-4/e.55.1.c: Ditto.
14352 * testsuite/libgomp.c/examples-4/e.55.2.c: Ditto.
14353 * testsuite/libgomp.c/examples-4/e.56.3.c: Ditto.
14354 * testsuite/libgomp.c/examples-4/e.56.4.c: Ditto.
14355 * testsuite/libgomp.c/examples-4/e.57.1.c: Ditto.
14356 * testsuite/libgomp.c/examples-4/e.57.2.c: Ditto.
14357 * testsuite/libgomp.c/examples-4/e.57.3.c: Ditto.
14358 * testsuite/libgomp.c/target-7.c: Fix test.
14359 * testsuite/libgomp.fortran/examples-4/e.50.1.f90: New test.
14360 * testsuite/libgomp.fortran/examples-4/e.50.2.f90: Ditto.
14361 * testsuite/libgomp.fortran/examples-4/e.50.3.f90: Ditto.
14362 * testsuite/libgomp.fortran/examples-4/e.50.4.f90: Ditto.
14363 * testsuite/libgomp.fortran/examples-4/e.50.5.f90: Ditto.
14364 * testsuite/libgomp.fortran/examples-4/e.51.1.f90: Ditto.
14365 * testsuite/libgomp.fortran/examples-4/e.51.2.f90: Ditto.
14366 * testsuite/libgomp.fortran/examples-4/e.51.3.f90: Ditto.
14367 * testsuite/libgomp.fortran/examples-4/e.51.4.f90: Ditto.
14368 * testsuite/libgomp.fortran/examples-4/e.51.5.f90: Ditto.
14369 * testsuite/libgomp.fortran/examples-4/e.51.6.f90: Ditto.
14370 * testsuite/libgomp.fortran/examples-4/e.51.7.f90: Ditto.
14371 * testsuite/libgomp.fortran/examples-4/e.52.1.f90: Ditto.
14372 * testsuite/libgomp.fortran/examples-4/e.52.2.f90: Ditto.
14373 * testsuite/libgomp.fortran/examples-4/e.53.1.f90: Ditto.
14374 * testsuite/libgomp.fortran/examples-4/e.53.2.f90: Ditto.
14375 * testsuite/libgomp.fortran/examples-4/e.53.3.f90: Ditto.
14376 * testsuite/libgomp.fortran/examples-4/e.53.4.f90: Ditto.
14377 * testsuite/libgomp.fortran/examples-4/e.53.5.f90: Ditto.
14378 * testsuite/libgomp.fortran/examples-4/e.54.2.f90: Ditto.
14379 * testsuite/libgomp.fortran/examples-4/e.54.3.f90: Ditto.
14380 * testsuite/libgomp.fortran/examples-4/e.54.4.f90: Ditto.
14381 * testsuite/libgomp.fortran/examples-4/e.54.5.f90: Ditto.
14382 * testsuite/libgomp.fortran/examples-4/e.54.6.f90: Ditto.
14383 * testsuite/libgomp.fortran/examples-4/e.55.1.f90: Ditto.
14384 * testsuite/libgomp.fortran/examples-4/e.55.2.f90: Ditto.
14385 * testsuite/libgomp.fortran/examples-4/e.56.3.f90: Ditto.
14386 * testsuite/libgomp.fortran/examples-4/e.56.4.f90: Ditto.
14387 * testsuite/libgomp.fortran/examples-4/e.57.1.f90: Ditto.
14388 * testsuite/libgomp.fortran/examples-4/e.57.2.f90: Ditto.
14389 * testsuite/libgomp.fortran/examples-4/e.57.3.f90: Ditto.
14390
14391 2014-11-13 Jakub Jelinek <jakub@redhat.com>
14392 Ilya Verbin <ilya.verbin@intel.com>
14393 Thomas Schwinge <thomas@codesourcery.com>
14394 Andrey Turetskiy <andrey.turetskiy@intel.com>
14395
14396 * libgomp.map (GOMP_4.0.1): New symbol version.
14397 Add GOMP_offload_register.
14398 * libgomp_target.h: New file.
14399 * splay-tree.h: New file.
14400 * target.c: Include config.h, libgomp_target.h, dlfcn.h, splay-tree.h.
14401 (gomp_target_init): New forward declaration.
14402 (gomp_is_initialized): New static variable.
14403 (splay_tree_node, splay_tree, splay_tree_key): New typedefs.
14404 (struct target_mem_desc, struct splay_tree_key_s, offload_image_descr):
14405 New structures.
14406 (offload_images, num_offload_images, devices, num_devices): New static
14407 variables.
14408 (splay_compare): New static function.
14409 (struct gomp_device_descr): New structure.
14410 (gomp_get_num_devices): Call gomp_target_init.
14411 (resolve_device, gomp_map_vars_existing, gomp_map_vars, gomp_unmap_tgt)
14412 (gomp_unmap_vars, gomp_update, gomp_init_device): New static functions.
14413 (GOMP_offload_register): New function.
14414 (GOMP_target): Arrange for host callback to be performed in a separate
14415 initial thread and contention group, inheriting ICVs from
14416 gomp_global_icv etc. Call gomp_map_vars and gomp_unmap_vars.
14417 Add device initialization and lookup for target function in splay tree.
14418 (GOMP_target_data): Add device initialization and call gomp_map_vars.
14419 (GOMP_target_end_data): Call gomp_unmap_vars.
14420 (GOMP_target_update): Add device initialization and call gomp_update.
14421 (gomp_load_plugin_for_device, gomp_register_images_for_device)
14422 (gomp_target_init): New static functions.
14423
14424 2014-11-13 Bernd Schmidt <bernds@codesourcery.com>
14425 Thomas Schwinge <thomas@codesourcery.com>
14426 Ilya Verbin <ilya.verbin@intel.com>
14427 Andrey Turetskiy <andrey.turetskiy@intel.com>
14428
14429 * config.h.in: Regenerate.
14430 * configure: Regenerate.
14431 * configure.ac: Check for libdl, required for plugin support.
14432 (PLUGIN_SUPPORT): Define if plugins are supported.
14433 (enable_offload_targets): Support Intel MIC targets.
14434 (OFFLOAD_TARGETS): List of target names suitable for offloading.
14435
14436 2014-11-11 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
14437
14438 PR target/63610
14439 * configure: Regenerate.
14440
14441 2014-11-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14442
14443 * config/posix/lock.c (_XOPEN_SOURCE) Define as 600.
14444
14445 2014-10-06 Marek Polacek <polacek@redhat.com>
14446
14447 * testsuite/libgomp.c/affinity-1.c: Include <sys/wait.h>.
14448 * testsuite/libgomp.c/nqueens-1.c: Include <stdlib.h>.
14449 * testsuite/libgomp.c/thread-limit-1.c: Include <omp.h>
14450 * testsuite/libgomp.c/thread-limit-2.c: Likewise.
14451
14452 2014-10-06 Marek Polacek <polacek@redhat.com>
14453
14454 * testsuite/libgomp.c/affinity-1.c: Fix implicit declarations.
14455 * testsuite/libgomp.c/nqueens-1.c: Likewise.
14456 * testsuite/libgomp.c/pr26943-3.c: Likewise.
14457 * testsuite/libgomp.c/pr26943-4.c: Likewise.
14458 * testsuite/libgomp.c/pr36802-2.c: Likewise.
14459 * testsuite/libgomp.c/pr36802-3.c: Likewise.
14460 * testsuite/libgomp.c/thread-limit-1.c: Likewise.
14461 * testsuite/libgomp.c/thread-limit-2.c: Likewise.
14462 * testsuite/libgomp.c/appendix-a/a.15.1.c: Include <omp.h>.
14463 * testsuite/libgomp.c/omp-loop02.c: Fix defaulting to int.
14464 * testsuite/libgomp.c/omp-parallel-for.c: Likewise.
14465 * testsuite/libgomp.c/omp-parallel-if.c: Likewise.
14466 * testsuite/libgomp.c/omp-single-1.c: Likewise.
14467 * testsuite/libgomp.c/omp-single-2.c: Likewise.
14468 * testsuite/libgomp.c/omp_matvec.c: Likewise.
14469 * testsuite/libgomp.c/omp_workshare3.c: Likewise.
14470 * testsuite/libgomp.c/omp_workshare4.c: Likewise.
14471 * testsuite/libgomp.c/shared-1.c: Fix defaulting to int. Fix implicit
14472 declarations.
14473
14474 2014-10-03 Jakub Jelinek <jakub@redhat.com>
14475
14476 PR libgomp/61200
14477 * testsuite/libgomp.c/pr61200.c: New test.
14478
14479 2014-09-18 Jakub Jelinek <jakub@redhat.com>
14480
14481 PR c++/63248
14482 * testsuite/libgomp.c++/pr63248.C: New test.
14483
14484 2014-08-04 Jakub Jelinek <jakub@redhat.com>
14485
14486 * task.c (GOMP_taskgroup_end): If taskgroup->num_children
14487 is not zero, but taskgroup->children is NULL and there are
14488 any task->children, schedule those instead of waiting.
14489 * testsuite/libgomp.c/depend-6.c: New test.
14490 * testsuite/libgomp.c/depend-7.c: New test.
14491 * testsuite/libgomp.c/depend-8.c: New test.
14492 * testsuite/libgomp.c/depend-9.c: New test.
14493 * testsuite/libgomp.c/depend-10.c: New test.
14494
14495 2014-08-01 Jakub Jelinek <jakub@redhat.com>
14496
14497 * libgomp.h (struct gomp_task_depend_entry): Add redundant_out field.
14498 (struct gomp_taskwait): New type.
14499 (struct gomp_task): Add taskwait and parent_depends_on, remove
14500 in_taskwait and taskwait_sem fields.
14501 (gomp_finish_task): Don't destroy taskwait_sem.
14502 * task.c (gomp_init_task): Don't init in_taskwait, instead init
14503 taskwait and parent_depends_on.
14504 (GOMP_task): For if (0) tasks with depend clause that depend on
14505 earlier tasks don't defer them, instead call
14506 gomp_task_maybe_wait_for_dependencies to wait for the dependencies.
14507 Initialize redundant_out field, for redundant out entries just
14508 move them at the end of linked list instead of removing them
14509 completely, and set redundant_out flag instead of redundant.
14510 (gomp_task_run_pre): Update last_parent_depends_on if scheduling
14511 that task.
14512 (gomp_task_run_post_handle_dependers): If parent is in
14513 gomp_task_maybe_wait_for_dependencies and newly runnable task
14514 is not parent_depends_on, queue it in parent->children linked
14515 list after all runnable tasks with parent_depends_on set.
14516 Adjust for addition of taskwait indirection.
14517 (gomp_task_run_post_remove_parent): If parent is in
14518 gomp_task_maybe_wait_for_dependencies and task to be removed
14519 is parent_depends_on, decrement n_depend and if needed awake
14520 parent. Adjust for addition of taskwait indirection.
14521 (GOMP_taskwait): Adjust for addition of taskwait indirection.
14522 (gomp_task_maybe_wait_for_dependencies): New function.
14523 * testsuite/libgomp.c/depend-5.c: New test.
14524
14525 2014-07-13 Tobias Burnus <burnus@net-b.de>
14526
14527 * testsuite/libgomp.fortran/pr34020.f90: Make compile
14528 with TS 18508/Fortran 2015.
14529
14530 2014-07-06 Marek Polacek <polacek@redhat.com>
14531
14532 PR c/6940
14533 * testsuite/libgomp.c/appendix-a/a.29.1.c (f): Add dg-warnings.
14534
14535 2014-07-03 Jakub Jelinek <jakub@redhat.com>
14536
14537 * testsuite/lib/libgomp.exp (libgomp_target_compile): If $source
14538 matches regex $lang_source_re, add $lang_include_flags to options.
14539 * testsuite/libgomp.c/c.exp: Unset lang_include_flags.
14540 * testsuite/libgomp.c++/c++.exp: Likewise.
14541 * testsuite/libgomp.fortran/fortran.exp: Likewise. Set lang_source_re
14542 and lang_include_flags instead of adding -fintrinsic-modules-path= to
14543 ALWAYS_CFLAGS.
14544 * testsuite/libgomp.graphite/graphite.exp: Unset lang_include_flags.
14545
14546 2014-07-03 Thomas Schwinge <thomas@codesourcery.com>
14547
14548 * testsuite/libgomp.fortran/fortran.exp: Explain
14549 gfortran-dg-runtest usage.
14550
14551 2014-06-25 Jakub Jelinek <jakub@redhat.com>
14552
14553 * testsuite/libgomp.fortran/simd5.f90: New test.
14554 * testsuite/libgomp.fortran/simd6.f90: New test.
14555 * testsuite/libgomp.fortran/simd7.f90: New test.
14556
14557 2014-06-24 Jakub Jelinek <jakub@redhat.com>
14558
14559 * testsuite/libgomp.c/for-2.c: Define SC to static for
14560 #pragma omp for simd testing.
14561 * testsuite/libgomp.c/for-2.h (SC): Define if not defined.
14562 (N(f5), N(f6), N(f7), N(f8), N(f10), N(f12), N(f14)): Use
14563 SC macro.
14564 * testsuite/libgomp.c/simd-14.c: New test.
14565 * testsuite/libgomp.c/simd-15.c: New test.
14566 * testsuite/libgomp.c/simd-16.c: New test.
14567 * testsuite/libgomp.c/simd-17.c: New test.
14568 * testsuite/libgomp.c++/for-10.C: Define SC to static for
14569 #pragma omp for simd testing.
14570 * testsuite/libgomp.c++/simd10.C: New test.
14571 * testsuite/libgomp.c++/simd11.C: New test.
14572 * testsuite/libgomp.c++/simd12.C: New test.
14573 * testsuite/libgomp.c++/simd13.C: New test.
14574
14575 * testsuite/libgomp.fortran/aligned1.f03: New test.
14576 * testsuite/libgomp.fortran/nestedfn5.f90: New test.
14577 * testsuite/libgomp.fortran/target7.f90: Surround loop spawning
14578 tasks with !$omp parallel !$omp single.
14579 * testsuite/libgomp.fortran/target8.f90: New test.
14580 * testsuite/libgomp.fortran/udr4.f90 (foo UDR, bar UDR): Adjust
14581 not to use trim in the combiner, instead call elemental function.
14582 (fn): New elemental function.
14583 * testsuite/libgomp.fortran/udr6.f90 (do_add, dp_add, dp_init):
14584 Make elemental.
14585 * testsuite/libgomp.fortran/udr7.f90 (omp_priv, omp_orig, omp_out,
14586 omp_in): Likewise.
14587 * testsuite/libgomp.fortran/udr12.f90: New test.
14588 * testsuite/libgomp.fortran/udr13.f90: New test.
14589 * testsuite/libgomp.fortran/udr14.f90: New test.
14590 * testsuite/libgomp.fortran/udr15.f90: New test.
14591
14592 2014-06-18 Jakub Jelinek <jakub@redhat.com>
14593
14594 * omp_lib.f90.in (openmp_version): Set to 201307.
14595 * omp_lib.h.in (openmp_version): Likewise.
14596 * testsuite/libgomp.c/target-8.c: New test.
14597 * testsuite/libgomp.fortran/declare-simd-1.f90: Add notinbranch
14598 and inbranch clauses.
14599 * testsuite/libgomp.fortran/depend-3.f90: New test.
14600 * testsuite/libgomp.fortran/openmp_version-1.f: Adjust for new
14601 openmp_version.
14602 * testsuite/libgomp.fortran/openmp_version-2.f90: Likewise.
14603 * testsuite/libgomp.fortran/target1.f90: New test.
14604 * testsuite/libgomp.fortran/target2.f90: New test.
14605 * testsuite/libgomp.fortran/target3.f90: New test.
14606 * testsuite/libgomp.fortran/target4.f90: New test.
14607 * testsuite/libgomp.fortran/target5.f90: New test.
14608 * testsuite/libgomp.fortran/target6.f90: New test.
14609 * testsuite/libgomp.fortran/target7.f90: New test.
14610
14611 2014-06-10 Jakub Jelinek <jakub@redhat.com>
14612
14613 PR fortran/60928
14614 * testsuite/libgomp.fortran/allocatable9.f90: New test.
14615 * testsuite/libgomp.fortran/allocatable10.f90: New test.
14616 * testsuite/libgomp.fortran/allocatable11.f90: New test.
14617 * testsuite/libgomp.fortran/allocatable12.f90: New test.
14618 * testsuite/libgomp.fortran/alloc-comp-1.f90: New test.
14619 * testsuite/libgomp.fortran/alloc-comp-2.f90: New test.
14620 * testsuite/libgomp.fortran/alloc-comp-3.f90: New test.
14621 * testsuite/libgomp.fortran/associate1.f90: New test.
14622 * testsuite/libgomp.fortran/associate2.f90: New test.
14623 * testsuite/libgomp.fortran/procptr1.f90: New test.
14624
14625 2014-06-06 Jakub Jelinek <jakub@redhat.com>
14626
14627 * testsuite/libgomp.fortran/simd1.f90: New test.
14628 * testsuite/libgomp.fortran/udr1.f90: New test.
14629 * testsuite/libgomp.fortran/udr2.f90: New test.
14630 * testsuite/libgomp.fortran/udr3.f90: New test.
14631 * testsuite/libgomp.fortran/udr4.f90: New test.
14632 * testsuite/libgomp.fortran/udr5.f90: New test.
14633 * testsuite/libgomp.fortran/udr6.f90: New test.
14634 * testsuite/libgomp.fortran/udr7.f90: New test.
14635 * testsuite/libgomp.fortran/udr8.f90: New test.
14636 * testsuite/libgomp.fortran/udr9.f90: New test.
14637 * testsuite/libgomp.fortran/udr10.f90: New test.
14638 * testsuite/libgomp.fortran/udr11.f90: New test.
14639
14640 2014-05-27 Uros Bizjak <ubizjak@gmail.com>
14641
14642 * testsuite/libgomp.fortran/declare-simd-1.f90: Require
14643 vect_simd_clones effective target.
14644 * testsuite/libgomp.fortran/declare-simd-2.f90: Ditto.
14645
14646 2014-05-21 Jakub Jelinek <jakub@redhat.com>
14647
14648 PR middle-end/61252
14649 * testsuite/libgomp.c++/simd-9.C: New test.
14650
14651 2014-05-18 Uros Bizjak <ubizjak@gmail.com>
14652
14653 * libgomp.texi (Runitme Library Routines): Remove multiple @menu.
14654 (Environment Variables) Move OMP_PROC_BIND and OMP_STACKSIZE node
14655 texts according to their @menu entry positions.
14656
14657 2014-05-11 Jakub Jelinek <jakub@redhat.com>
14658
14659 * testsuite/libgomp.fortran/cancel-do-1.f90: New test.
14660 * testsuite/libgomp.fortran/cancel-do-2.f90: New test.
14661 * testsuite/libgomp.fortran/cancel-parallel-1.f90: New test.
14662 * testsuite/libgomp.fortran/cancel-parallel-3.f90: New test.
14663 * testsuite/libgomp.fortran/cancel-sections-1.f90: New test.
14664 * testsuite/libgomp.fortran/cancel-taskgroup-2.f90: New test.
14665 * testsuite/libgomp.fortran/declare-simd-1.f90: New test.
14666 * testsuite/libgomp.fortran/declare-simd-2.f90: New test.
14667 * testsuite/libgomp.fortran/declare-simd-3.f90: New test.
14668 * testsuite/libgomp.fortran/depend-1.f90: New test.
14669 * testsuite/libgomp.fortran/depend-2.f90: New test.
14670 * testsuite/libgomp.fortran/omp_atomic5.f90: New test.
14671 * testsuite/libgomp.fortran/simd1.f90: New test.
14672 * testsuite/libgomp.fortran/simd2.f90: New test.
14673 * testsuite/libgomp.fortran/simd3.f90: New test.
14674 * testsuite/libgomp.fortran/simd4.f90: New test.
14675 * testsuite/libgomp.fortran/taskgroup1.f90: New test.
14676
14677 2014-05-02 Jakub Jelinek <jakub@redhat.com>
14678
14679 * testsuite/libgomp.c/simd-10.c: New test.
14680 * testsuite/libgomp.c/simd-11.c: New test.
14681 * testsuite/libgomp.c/simd-12.c: New test.
14682 * testsuite/libgomp.c/simd-13.c: New test.
14683
14684 2014-04-24 Jakub Jelinek <jakub@redhat.com>
14685
14686 * testsuite/libgomp.c++/atomic-14.C: Allow seq_cst and
14687 atomic type clauses in any order and optional comma in between.
14688 * testsuite/libgomp.c++/atomic-15.C: Likewise.
14689 * testsuite/libgomp.c/atomic-17.c: Likewise.
14690
14691 * testsuite/libgomp.c/simd-7.c: New test.
14692 * testsuite/libgomp.c/simd-8.c: New test.
14693 * testsuite/libgomp.c/simd-9.c: New test.
14694 * testsuite/libgomp.c/loop-16.c: New test.
14695
14696 2014-04-02 Richard Henderson <rth@redhat.com>
14697
14698 * config/linux/futex.h (futex_wait): Get error value from errno.
14699 (futex_wake): Likewise.
14700
14701 2014-03-25 Jakub Jelinek <jakub@redhat.com>
14702
14703 PR c++/60331
14704 * testsuite/libgomp.c++/udr-11.C: New test.
14705 * testsuite/libgomp.c++/udr-12.C: New test.
14706 * testsuite/libgomp.c++/udr-13.C: New test.
14707 * testsuite/libgomp.c++/udr-14.C: New test.
14708 * testsuite/libgomp.c++/udr-15.C: New test.
14709 * testsuite/libgomp.c++/udr-16.C: New test.
14710 * testsuite/libgomp.c++/udr-17.C: New test.
14711 * testsuite/libgomp.c++/udr-18.C: New test.
14712 * testsuite/libgomp.c++/udr-19.C: New test.
14713
14714 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
14715
14716 Update copyright years
14717
14718 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
14719
14720 * hashtab.h: Use the standard form for the copyright notice.
14721
14722 2014-01-02 Tobias Burnus <burnus@net-b.de>
14723
14724 * libgomp.texi: Bump @copying's copyright year.
14725
14726 2013-12-17 Andreas Tobler <andreast@gcc.gnu.org>
14727
14728 * testsuite/libgomp.c/affinity-1.c: Remove alloca.h include. Replace
14729 alloca () with __builtin_alloca ().
14730 * testsuite/libgomp.c/icv-2.c: Add FreeBSD coverage.
14731 * testsuite/libgomp.c/lock-3.c: Likewise.
14732 * testsuite/libgomp.c/pr48591.c: Likewise.
14733
14734 2013-12-17 Jakub Jelinek <jakub@redhat.com>
14735
14736 PR testsuite/59534
14737 * testsuite/libgomp.fortran/retval1.f90 (e5): Avoid non-shortcircuited
14738 comparisons.
14739
14740 2013-12-16 Jakub Jelinek <jakub@redhat.com>
14741
14742 PR libgomp/58756
14743 * testsuite/libgomp.c/pr58756.c: New test.
14744
14745 2013-12-12 Jakub Jelinek <jakub@redhat.com>
14746
14747 PR libgomp/59467
14748 * testsuite/libgomp.fortran/crayptr2.f90: Add private (d) clause to
14749 !$omp parallel.
14750
14751 2013-11-07 Thomas Schwinge <thomas@codesourcery.com>
14752
14753 * testsuite/lib/libgomp.exp (libgomp_init): Don't add -fopenmp to
14754 ALWAYS_CFLAGS.
14755 * testsuite/libgomp.c++/c++.exp (ALWAYS_CFLAGS): Add -fopenmp.
14756 * testsuite/libgomp.c/c.exp (ALWAYS_CFLAGS): Likewise.
14757 * testsuite/libgomp.fortran/fortran.exp (ALWAYS_CFLAGS): Likewise.
14758 * testsuite/libgomp.graphite/graphite.exp (ALWAYS_CFLAGS):
14759 Likewise.
14760
14761 * libgomp_g.h: Include <stddef.h> for size_t.
14762
14763 * libgomp.spec.in: Update comment about libgomp's dependencies.
14764 * configure.ac: Likewise.
14765 * configure: Regenerate.
14766
14767 2013-10-16 Tobias Burnus <burnus@net-b.de>
14768
14769 * libgomp.texi: (Runtime Library Routines): Update references for
14770 OpenMP 4.0. Add omp_get_cancellation, omp_get_default_device,
14771 omp_get_num_devices, omp_get_num_teams, omp_get_proc_bind,
14772 omp_get_team_num, omp_is_initial_device, omp_set_default_device.
14773 (Environment Variables): Update references for OpenMP 4.0. Add
14774 OMP_CANCELLATION, OMP_DEFAULT_DEVICE, OMP_PLACES.
14775 Move OMP_DISPLAY_ENV and OMP_PROC_BIND up to be in alphabetical
14776 order.
14777
14778 2013-10-14 Jakub Jelinek <jakub@redhat.com>
14779
14780 * env.c (parse_bind_var): Initialize value to avoid
14781 (false positive) warning.
14782
14783 2013-10-12 Jakub Jelinek <jakub@redhat.com>
14784
14785 PR libgomp/58691
14786 * config/linux/proc.c (gomp_cpuset_popcount): Add unused attribute
14787 to check variable.
14788 (gomp_init_num_threads): Move i variable declaration into
14789 #ifdef CPU_ALLOC_SIZE block.
14790 * config/linux/affinity.c (gomp_affinity_init_level): Test
14791 gomp_places_list_len == 0 rather than gomp_places_list == 0
14792 when checking for topology reading error.
14793 * team.c (gomp_team_start): Don't handle bind == omp_proc_bind_false.
14794 * env.c (parse_affinity): Add ignore argument, if true, don't populate
14795 gomp_places_list, only parse env var and always return false.
14796 (parse_places_var): Likewise. Don't check gomp_global_icv.bind_var.
14797 (initialize_env): Always parse OMP_PLACES and GOMP_CPU_AFFINITY env
14798 vars, default to OMP_PROC_BIND=true if OMP_PROC_BIND wasn't specified
14799 and either of these variables were parsed correctly into a places
14800 list.
14801
14802 2013-10-11 Thomas Schwinge <thomas@codesourcery.com>
14803 Jakub Jelinek <jakub@redhat.com>
14804
14805 * testsuite/libgomp.graphite/force-parallel-1.c: Expect 4 instead
14806 of 5 loopfn matches.
14807 * testsuite/libgomp.graphite/force-parallel-2.c: Likewise.
14808 * testsuite/libgomp.graphite/force-parallel-3.c: Likewise.
14809 * testsuite/libgomp.graphite/force-parallel-4.c: Likewise.
14810 * testsuite/libgomp.graphite/force-parallel-5.c: Likewise.
14811 * testsuite/libgomp.graphite/force-parallel-6.c: Likewise.
14812 * testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
14813 * testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
14814 * testsuite/libgomp.graphite/force-parallel-9.c: Likewise.
14815
14816 2013-10-11 Thomas Schwinge <thomas@codesourcery.com>
14817
14818 * Makefile.am (omp_lib.mod): Streamline rule.
14819 * Makefile.in: Regenerate.
14820
14821 * libgomp.texi (Runtime Library Routines): C linkage, don't throw
14822 exceptions.
14823
14824 * testsuite/libgomp.c/lib-1.c (main): Add missing error check.
14825 * testsuite/libgomp.fortran/lib1.f90: Likewise.
14826 * testsuite/libgomp.fortran/lib2.f: Likewise.
14827 * testsuite/libgomp.fortran/lib3.f: Likewise.
14828
14829 * configure.ac: Typo fix.
14830 * configure: Regenerate.
14831
14832 * testsuite/libgomp.fortran/openmp_version-1.f: New file.
14833 * testsuite/libgomp.fortran/openmp_version-2.f90: Likewise.
14834
14835 * omp.h.in: Don't touch the user's namespace.
14836
14837 2013-10-11 Jakub Jelinek <jakub@redhat.com>
14838 Tobias Burnus <burnus@net-b.de>
14839 Richard Henderson <rth@redhat.com>
14840
14841 * target.c: New file.
14842 * Makefile.am (libgomp_la_SOURCES): Add target.c.
14843 * Makefile.in: Regenerated.
14844 * libgomp_g.h (GOMP_task): Add depend argument.
14845 (GOMP_barrier_cancel, GOMP_loop_end_cancel,
14846 GOMP_sections_end_cancel, GOMP_target, GOMP_target_data,
14847 GOMP_target_end_data, GOMP_target_update, GOMP_teams,
14848 GOMP_parallel_loop_static, GOMP_parallel_loop_dynamic,
14849 GOMP_parallel_loop_guided, GOMP_parallel_loop_runtime,
14850 GOMP_parallel, GOMP_cancel, GOMP_cancellation_point,
14851 GOMP_taskgroup_start, GOMP_taskgroup_end,
14852 GOMP_parallel_sections): New prototypes.
14853 * fortran.c (omp_is_initial_device): Add ialias_redirect.
14854 (omp_is_initial_device_): New function.
14855 (ULP, STR1, STR2, ialias_redirect): Removed.
14856 (omp_get_cancellation_, omp_get_proc_bind_, omp_set_default_device_,
14857 omp_set_default_device_8_, omp_get_default_device_,
14858 omp_get_num_devices_, omp_get_num_teams_, omp_get_team_num_): New
14859 functions.
14860 * libgomp.map (GOMP_barrier_cancel, GOMP_loop_end_cancel,
14861 GOMP_sections_end_cancel, GOMP_target, GOMP_target_data,
14862 GOMP_target_end_data, GOMP_target_update, GOMP_teams): Export
14863 @@GOMP_4.0.
14864 (omp_is_initial_device, omp_is_initial_device_, omp_get_cancellation,
14865 omp_get_cancellation_, omp_get_proc_bind, omp_get_proc_bind_,
14866 omp_set_default_device, omp_set_default_device_,
14867 omp_set_default_device_8_, omp_get_default_device,
14868 omp_get_default_device_, omp_get_num_devices, omp_get_num_devices_,
14869 omp_get_num_teams, omp_get_num_teams_, omp_get_team_num,
14870 omp_get_team_num_): Export @@OMP_4.0.
14871 * team.c (struct gomp_thread_start_data): Add place field.
14872 (gomp_thread_start): Clear thr->thread_pool and
14873 thr->task before returning. Use gomp_team_barrier_wait_final
14874 instead of gomp_team_barrier_wait. Initialize thr->place.
14875 (gomp_new_team): Initialize work_shares_to_free, work_share_cancelled,
14876 team_cancelled and task_queued_count fields.
14877 (gomp_free_pool_helper): Clear thr->thread_pool and thr->task
14878 before calling pthread_exit.
14879 (gomp_free_thread): No longer static. Use
14880 gomp_managed_threads_lock instead of gomp_remaining_threads_lock.
14881 (gomp_team_start): Add flags argument. Set
14882 thr->thread_pool->threads_busy to nthreads immediately after creating
14883 new pool. Use gomp_managed_threads_lock instead of
14884 gomp_remaining_threads_lock. Handle OpenMP 4.0 affinity.
14885 (gomp_team_end): Use gomp_managed_threads_lock instead of
14886 gomp_remaining_threads_lock. Use gomp_team_barrier_wait_final instead
14887 of gomp_team_barrier_wait. If team->team_cancelled, call
14888 gomp_fini_workshare on ws chain starting at team->work_shares_to_free
14889 rather than thr->ts.work_share.
14890 (initialize_team): Don't call gomp_sem_init here.
14891 * sections.c (GOMP_parallel_sections_start): Adjust gomp_team_start
14892 caller.
14893 (GOMP_parallel_sections, GOMP_sections_end_cancel): New functions.
14894 * env.c (gomp_global_icv): Add default_device_var, target_data and
14895 bind_var initializers.
14896 (gomp_cpu_affinity, gomp_cpu_affinity_len): Remove.
14897 (gomp_bind_var_list, gomp_bind_var_list_len, gomp_places_list,
14898 gomp_places_list_len): New variables.
14899 (parse_bind_var, parse_one_place, parse_places_var): New functions.
14900 (parse_affinity): Rewritten to construct OMP_PLACES list with unit
14901 sized places.
14902 (gomp_cancel_var): New global variable.
14903 (parse_int): New function.
14904 (handle_omp_display_env): New function.
14905 (initialize_env): Use it. Initialize default_device_var.
14906 Parse OMP_CANCELLATION env var. Use parse_bind_var to parse
14907 OMP_PROC_BIND instead of parse_boolean. Use parse_places_var for
14908 OMP_PLACES parsing. Don't call parse_affinity if OMP_PLACES has
14909 been successfully parsed (and call gomp_init_affinity in that case).
14910 (omp_get_cancellation, omp_get_proc_bind, omp_set_default_device,
14911 omp_get_default_device, omp_get_num_devices, omp_get_num_teams,
14912 omp_get_team_num, omp_is_initial_device): New functions.
14913 * libgomp.h: Include stdlib.h.
14914 (ialias_ulp, ialias_str1, ialias_str2, ialias_redirect, ialias_call):
14915 Define.
14916 (struct target_mem_desc): Forward declare.
14917 (struct gomp_task_icv): Add default_device_var, target_data, bind_var
14918 and thread_limit_var fields.
14919 (gomp_get_num_devices): New prototype.
14920 (gomp_cancel_var): New extern decl.
14921 (struct gomp_team): Add work_shares_to_free, work_share_cancelled,
14922 team_cancelled and task_queued_count fields. Add comments about
14923 task_{,queued_,running_}count.
14924 (gomp_cancel_kind): New enum.
14925 (gomp_work_share_end_cancel): New prototype.
14926 (struct gomp_task): Add next_taskgroup, prev_taskgroup, taskgroup,
14927 copy_ctors_done, dependers, depend_hash, depend_count, num_dependees
14928 and depend fields.
14929 (struct gomp_taskgroup): New type.
14930 (struct gomp_task_depend_entry,
14931 struct gomp_dependers_vec): New types.
14932 (gomp_finish_task): Free depend_hash if non-NULL.
14933 (struct gomp_team_state): Add place_partition_off
14934 and place_partition_len fields.
14935 (gomp_bind_var_list, gomp_bind_var_list_len, gomp_places_list,
14936 gomp_places_list_len): New extern decls.
14937 (struct gomp_thread): Add place field.
14938 (gomp_cpu_affinity, gomp_cpu_affinity_len): Remove.
14939 (gomp_init_thread_affinity): Add place argument.
14940 (gomp_affinity_alloc, gomp_affinity_init_place, gomp_affinity_add_cpus,
14941 gomp_affinity_remove_cpu, gomp_affinity_copy_place,
14942 gomp_affinity_same_place, gomp_affinity_finalize_place_list,
14943 gomp_affinity_init_level, gomp_affinity_print_place): New
14944 prototypes.
14945 (gomp_team_start): Add flags argument.
14946 (gomp_thread_limit_var, gomp_remaining_threads_count,
14947 gomp_remaining_threads_lock): Remove.
14948 (gomp_managed_threads_lock): New variable.
14949 (struct gomp_thread_pool): Add threads_busy field.
14950 (gomp_free_thread): New prototype.
14951 * task.c: Include hashtab.h.
14952 (hash_entry_type): New typedef.
14953 (htab_alloc, htab_free, htab_hash, htab_eq): New inlines.
14954 (gomp_init_task): Clear dependers, depend_hash, depend_count,
14955 copy_ctors_done and taskgroup fields.
14956 (GOMP_task): Add depend argument, handle depend clauses. If
14957 gomp_team_barrier_cancelled or if it's taskgroup has been
14958 cancelled, don't queue or start new tasks. Set copy_ctors_done
14959 field if needed. Initialize taskgroup field. If copy_ctors_done
14960 and already cancelled, don't discard the task. If taskgroup is
14961 non-NULL, enqueue the task into taskgroup queue. Increment
14962 num_children field in taskgroup. Increment task_queued_count.
14963 (gomp_task_run_pre, gomp_task_run_post_remove_parent,
14964 gomp_task_run_post_remove_taskgroup): New inline functions.
14965 (gomp_task_run_post_handle_depend_hash,
14966 gomp_task_run_post_handle_dependers,
14967 gomp_task_run_post_handle_depend): New functions.
14968 (GOMP_taskwait): Use them. If more than one new tasks
14969 have been queued, wake other threads if needed.
14970 (gomp_barrier_handle_tasks): Likewise. If
14971 gomp_team_barrier_cancelled, don't start any new tasks, just free
14972 all tasks.
14973 (GOMP_taskgroup_start, GOMP_taskgroup_end): New functions.
14974 * omp_lib.f90.in
14975 (omp_proc_bind_kind, omp_proc_bind_false,
14976 omp_proc_bind_true, omp_proc_bind_master, omp_proc_bind_close,
14977 omp_proc_bind_spread): New params.
14978 (omp_get_cancellation, omp_get_proc_bind, omp_set_default_device,
14979 omp_get_default_device, omp_get_num_devices, omp_get_num_teams,
14980 omp_get_team_num, omp_is_initial_device): New interfaces.
14981 (omp_get_dynamic, omp_get_nested, omp_in_parallel,
14982 omp_get_max_threads, omp_get_num_procs, omp_get_num_threads,
14983 omp_get_thread_num, omp_get_thread_limit, omp_set_max_active_levels,
14984 omp_get_max_active_levels, omp_get_level, omp_get_ancestor_thread_num,
14985 omp_get_team_size, omp_get_active_level, omp_in_final): Remove
14986 useless use omp_lib_kinds.
14987 * omp.h.in (omp_proc_bind_t): New typedef.
14988 (omp_get_cancellation, omp_get_proc_bind, omp_set_default_device,
14989 omp_get_default_device, omp_get_num_devices, omp_get_num_teams,
14990 omp_get_team_num, omp_is_initial_device): New prototypes.
14991 * loop.c (gomp_parallel_loop_start): Add flags argument, pass it
14992 through to gomp_team_start.
14993 (GOMP_parallel_loop_static_start, GOMP_parallel_loop_dynamic_start,
14994 GOMP_parallel_loop_guided_start, GOMP_parallel_loop_runtime_start):
14995 Adjust gomp_parallel_loop_start callers.
14996 (GOMP_parallel_loop_static, GOMP_parallel_loop_dynamic,
14997 GOMP_parallel_loop_guided, GOMP_parallel_loop_runtime,
14998 GOMP_loop_end_cancel): New functions.
14999 (GOMP_parallel_end): Add ialias_redirect.
15000 * hashtab.h: New file.
15001 * libgomp.texi (Environment Variables): Minor cleanup,
15002 update section refs to OpenMP 4.0rc2.
15003 (OMP_DISPLAY_ENV, GOMP_SPINCOUNT): Document these
15004 environment variables.
15005 * work.c (gomp_work_share_end, gomp_work_share_end_nowait): Set
15006 team->work_shares_to_free to thr->ts.work_share before calling
15007 free_work_share.
15008 (gomp_work_share_end_cancel): New function.
15009 * config/linux/proc.c: Include errno.h.
15010 (gomp_get_cpuset_size, gomp_cpuset_size, gomp_cpusetp): New variables.
15011 (gomp_cpuset_popcount): Add cpusetsize argument, use it instead of
15012 sizeof (cpu_set_t) to determine number of iterations. Fix up check
15013 extern decl. Use CPU_COUNT_S if available, or CPU_COUNT if
15014 gomp_cpuset_size is sizeof (cpu_set_t).
15015 (gomp_init_num_threads): Initialize gomp_cpuset_size,
15016 gomp_get_cpuset_size and gomp_cpusetp here, use gomp_cpusetp instead
15017 of &cpuset and pass gomp_cpuset_size instead of sizeof (cpu_set_t)
15018 to pthread_getaffinity_np. Free and clear gomp_cpusetp if it didn't
15019 contain any logical CPUs.
15020 (get_num_procs): Don't call pthread_getaffinity_np if gomp_cpusetp
15021 is NULL. Use gomp_cpusetp instead of &cpuset and pass
15022 gomp_get_cpuset_size instead of sizeof (cpu_set_t) to
15023 pthread_getaffinity_np. Check gomp_places_list instead of
15024 gomp_cpu_affinity. Adjust gomp_cpuset_popcount caller.
15025 * config/linux/bar.c (gomp_barrier_wait_end,
15026 gomp_barrier_wait_last): Use BAR_* defines.
15027 (gomp_team_barrier_wait_end): Likewise. Clear BAR_CANCELLED
15028 from state where needed. Set work_share_cancelled to 0 on last
15029 thread.
15030 (gomp_team_barrier_wait_final, gomp_team_barrier_wait_cancel_end,
15031 gomp_team_barrier_wait_cancel, gomp_team_barrier_cancel): New
15032 functions.
15033 * config/linux/proc.h (gomp_cpuset_popcount): Add attribute_hidden.
15034 Add cpusetsize argument.
15035 (gomp_cpuset_size, gomp_cpusetp): Declare.
15036 * config/linux/affinity.c: Include errno.h, stdio.h and string.h.
15037 (affinity_counter): Remove.
15038 (CPU_ISSET_S, CPU_ZERO_S, CPU_SET_S, CPU_CLR_S): Define
15039 if CPU_ALLOC_SIZE isn't defined.
15040 (gomp_init_affinity): Rewritten, if gomp_places_list is NULL, try
15041 silently create OMP_PLACES=threads, if it is non-NULL afterwards,
15042 bind current thread to the first place.
15043 (gomp_init_thread_affinity): Rewritten. Add place argument, just
15044 pthread_setaffinity_np to gomp_places_list[place].
15045 (gomp_affinity_alloc, gomp_affinity_init_place, gomp_affinity_add_cpus,
15046 gomp_affinity_remove_cpu, gomp_affinity_copy_place,
15047 gomp_affinity_same_place, gomp_affinity_finalize_place_list,
15048 gomp_affinity_init_level, gomp_affinity_print_place): New functions.
15049 * config/linux/bar.h (BAR_TASK_PENDING, BAR_WAS_LAST,
15050 BAR_WAITING_FOR_TASK, BAR_INCR, BAR_CANCELLED): Define.
15051 (gomp_barrier_t): Add awaited_final field.
15052 (gomp_barrier_init): Initialize awaited_final field.
15053 (gomp_team_barrier_wait_final, gomp_team_barrier_wait_cancel,
15054 gomp_team_barrier_wait_cancel_end, gomp_team_barrier_cancel): New
15055 prototypes.
15056 (gomp_barrier_wait_start): Preserve BAR_CANCELLED bit. Use BAR_*
15057 defines.
15058 (gomp_barrier_wait_cancel_start, gomp_team_barrier_wait_final_start,
15059 gomp_team_barrier_cancelled): New inline functions.
15060 (gomp_barrier_last_thread,
15061 gomp_team_barrier_set_task_pending,
15062 gomp_team_barrier_clear_task_pending,
15063 gomp_team_barrier_set_waiting_for_tasks,
15064 gomp_team_barrier_waiting_for_tasks,
15065 gomp_team_barrier_done): Use BAR_* defines.
15066 * config/posix/bar.c (gomp_barrier_init): Clear cancellable field.
15067 (gomp_barrier_wait_end): Use BAR_* defines.
15068 (gomp_team_barrier_wait_end): Clear BAR_CANCELLED from state.
15069 Set work_share_cancelled to 0 on last thread, use __atomic_load_n.
15070 Use BAR_* defines.
15071 (gomp_team_barrier_wait_cancel_end, gomp_team_barrier_wait_cancel,
15072 gomp_team_barrier_cancel): New functions.
15073 * config/posix/affinity.c (gomp_init_thread_affinity): Add place
15074 argument.
15075 (gomp_affinity_alloc, gomp_affinity_init_place, gomp_affinity_add_cpus,
15076 gomp_affinity_remove_cpu, gomp_affinity_copy_place,
15077 gomp_affinity_same_place, gomp_affinity_finalize_place_list,
15078 gomp_affinity_init_level, gomp_affinity_print_place): New stubs.
15079 * config/posix/bar.h (BAR_TASK_PENDING, BAR_WAS_LAST,
15080 BAR_WAITING_FOR_TASK, BAR_INCR, BAR_CANCELLED): Define.
15081 (gomp_barrier_t): Add cancellable field.
15082 (gomp_team_barrier_wait_cancel, gomp_team_barrier_wait_cancel_end,
15083 gomp_team_barrier_cancel): New prototypes.
15084 (gomp_barrier_wait_start): Preserve BAR_CANCELLED bit.
15085 (gomp_barrier_wait_cancel_start, gomp_team_barrier_wait_final,
15086 gomp_team_barrier_cancelled): New inline functions.
15087 (gomp_barrier_wait_start, gomp_barrier_last_thread,
15088 gomp_team_barrier_set_task_pending,
15089 gomp_team_barrier_clear_task_pending,
15090 gomp_team_barrier_set_waiting_for_tasks,
15091 gomp_team_barrier_waiting_for_tasks,
15092 gomp_team_barrier_done): Use BAR_* defines.
15093 * barrier.c (GOMP_barrier_cancel): New function.
15094 * omp_lib.h.in (omp_proc_bind_kind, omp_proc_bind_false,
15095 omp_proc_bind_true, omp_proc_bind_master, omp_proc_bind_close,
15096 omp_proc_bind_spread): New params.
15097 (omp_get_cancellation, omp_get_proc_bind, omp_set_default_device,
15098 omp_get_default_device, omp_get_num_devices, omp_get_num_teams,
15099 omp_get_team_num, omp_is_initial_device): New externals.
15100 * parallel.c (GOMP_parallel, GOMP_cancel, GOMP_cancellation_point):
15101 New functions.
15102 (gomp_resolve_num_threads): Adjust for thread_limit now being in
15103 icv->thread_limit_var. Use UINT_MAX instead of ULONG_MAX as
15104 infinity. If not nested, just return minimum of max_num_threads
15105 and icv->thread_limit_var and if thr->thread_pool, set threads_busy
15106 to the returned value. Otherwise, don't update atomically
15107 gomp_remaining_threads_count, but instead thr->thread_pool->threads_busy.
15108 (GOMP_parallel_end): Adjust for thread_limit now being in
15109 icv->thread_limit_var. Use UINT_MAX instead of ULONG_MAX as
15110 infinity. Adjust threads_busy in the pool rather than
15111 gomp_remaining_threads_count. Remember team->nthreads and call
15112 gomp_team_end before adjusting threads_busy, if not nested
15113 afterwards, just set it to 1 non-atomically. Add ialias.
15114 (GOMP_parallel_start): Adjust gomp_team_start caller.
15115 * testsuite/libgomp.c/atomic-14.c: Add parens to make it valid.
15116 * testsuite/libgomp.c/affinity-1.c: New test.
15117 * testsuite/libgomp.c/atomic-15.c: New test.
15118 * testsuite/libgomp.c/atomic-16.c: New test.
15119 * testsuite/libgomp.c/atomic-17.c: New test.
15120 * testsuite/libgomp.c/cancel-for-1.c: New test.
15121 * testsuite/libgomp.c/cancel-for-2.c: New test.
15122 * testsuite/libgomp.c/cancel-parallel-1.c: New test.
15123 * testsuite/libgomp.c/cancel-parallel-2.c: New test.
15124 * testsuite/libgomp.c/cancel-parallel-3.c: New test.
15125 * testsuite/libgomp.c/cancel-sections-1.c: New test.
15126 * testsuite/libgomp.c/cancel-taskgroup-1.c: New test.
15127 * testsuite/libgomp.c/cancel-taskgroup-2.c: New test.
15128 * testsuite/libgomp.c/depend-1.c: New test.
15129 * testsuite/libgomp.c/depend-2.c: New test.
15130 * testsuite/libgomp.c/depend-3.c: New test.
15131 * testsuite/libgomp.c/depend-4.c: New test.
15132 * testsuite/libgomp.c/for-1.c: New test.
15133 * testsuite/libgomp.c/for-1.h: New file.
15134 * testsuite/libgomp.c/for-2.c: New test.
15135 * testsuite/libgomp.c/for-2.h: New file.
15136 * testsuite/libgomp.c/for-3.c: New test.
15137 * testsuite/libgomp.c/pr58392.c: New test.
15138 * testsuite/libgomp.c/simd-1.c: New test.
15139 * testsuite/libgomp.c/simd-2.c: New test.
15140 * testsuite/libgomp.c/simd-3.c: New test.
15141 * testsuite/libgomp.c/simd-4.c: New test.
15142 * testsuite/libgomp.c/simd-5.c: New test.
15143 * testsuite/libgomp.c/simd-6.c: New test.
15144 * testsuite/libgomp.c/target-1.c: New test.
15145 * testsuite/libgomp.c/target-2.c: New test.
15146 * testsuite/libgomp.c/target-3.c: New test.
15147 * testsuite/libgomp.c/target-4.c: New test.
15148 * testsuite/libgomp.c/target-5.c: New test.
15149 * testsuite/libgomp.c/target-6.c: New test.
15150 * testsuite/libgomp.c/target-7.c: New test.
15151 * testsuite/libgomp.c/taskgroup-1.c: New test.
15152 * testsuite/libgomp.c/thread-limit-1.c: New test.
15153 * testsuite/libgomp.c/thread-limit-2.c: New test.
15154 * testsuite/libgomp.c/thread-limit-3.c: New test.
15155 * testsuite/libgomp.c/udr-1.c: New test.
15156 * testsuite/libgomp.c/udr-2.c: New test.
15157 * testsuite/libgomp.c/udr-3.c: New test.
15158 * testsuite/libgomp.c++/affinity-1.C: New test.
15159 * testsuite/libgomp.c++/atomic-10.C: New test.
15160 * testsuite/libgomp.c++/atomic-11.C: New test.
15161 * testsuite/libgomp.c++/atomic-12.C: New test.
15162 * testsuite/libgomp.c++/atomic-13.C: New test.
15163 * testsuite/libgomp.c++/atomic-14.C: New test.
15164 * testsuite/libgomp.c++/atomic-15.C: New test.
15165 * testsuite/libgomp.c++/cancel-for-1.C: New test.
15166 * testsuite/libgomp.c++/cancel-for-2.C: New test.
15167 * testsuite/libgomp.c++/cancel-parallel-1.C: New test.
15168 * testsuite/libgomp.c++/cancel-parallel-2.C: New test.
15169 * testsuite/libgomp.c++/cancel-parallel-3.C: New test.
15170 * testsuite/libgomp.c++/cancel-sections-1.C: New test.
15171 * testsuite/libgomp.c++/cancel-taskgroup-1.C: New test.
15172 * testsuite/libgomp.c++/cancel-taskgroup-2.C: New test.
15173 * testsuite/libgomp.c++/cancel-taskgroup-3.C: New test.
15174 * testsuite/libgomp.c++/cancel-test.h: New file.
15175 * testsuite/libgomp.c++/for-9.C: New test.
15176 * testsuite/libgomp.c++/for-10.C: New test.
15177 * testsuite/libgomp.c++/for-11.C: New test.
15178 * testsuite/libgomp.c++/simd-1.C: New test.
15179 * testsuite/libgomp.c++/simd-2.C: New test.
15180 * testsuite/libgomp.c++/simd-3.C: New test.
15181 * testsuite/libgomp.c++/simd-4.C: New test.
15182 * testsuite/libgomp.c++/simd-5.C: New test.
15183 * testsuite/libgomp.c++/simd-6.C: New test.
15184 * testsuite/libgomp.c++/simd-7.C: New test.
15185 * testsuite/libgomp.c++/simd-8.C: New test.
15186 * testsuite/libgomp.c++/target-1.C: New test.
15187 * testsuite/libgomp.c++/target-2.C: New test.
15188 * testsuite/libgomp.c++/target-2-aux.cc: New file.
15189 * testsuite/libgomp.c++/target-3.C: New test.
15190 * testsuite/libgomp.c++/taskgroup-1.C: New test.
15191 * testsuite/libgomp.c++/udr-1.C: New test.
15192 * testsuite/libgomp.c++/udr-2.C: New test.
15193 * testsuite/libgomp.c++/udr-3.C: New test.
15194 * testsuite/libgomp.c++/udr-4.C: New test.
15195 * testsuite/libgomp.c++/udr-5.C: New test.
15196 * testsuite/libgomp.c++/udr-6.C: New test.
15197 * testsuite/libgomp.c++/udr-7.C: New test.
15198 * testsuite/libgomp.c++/udr-8.C: New test.
15199 * testsuite/libgomp.c++/udr-9.C: New test.
15200
15201 2013-09-20 Jakub Jelinek <jakub@redhat.com>
15202
15203 PR testsuite/57605
15204 * testsuite/lib/libgomp.exp: Add -fdiagnostics-color=never to
15205 ALWAYS_CFLAGS.
15206
15207 2013-09-20 Alan Modra <amodra@gmail.com>
15208
15209 * configure: Regenerate.
15210
15211 2013-09-19 Jakub Jelinek <jakub@redhat.com>
15212
15213 * testsuite/libgomp.c/sections-2.c: New test.
15214
15215 2013-06-28 Marcus Shawcroft <marcus.shawcroft@arm.com>
15216
15217 * testsuite/libgomp.fortran/strassen.f90:
15218 Add dg-skip-if aarch64_tiny.
15219
15220 2013-06-20 Iain Sandoe <iain@codesourcery.com>
15221 Cesar Philippidis <cesar@codesourcery.com>
15222
15223 * testsuite/lib/libgomp.exp: Reorder lib loads into dependency order.
15224 Do not load_gcc_lib gcc-dg.exp and add a comment as to why.
15225 * testsuite/libgomp.c/c.exp: load_gcc_lib gcc-dg.exp.
15226 * testsuite/libgomp.fortran/fortran.exp: Likewise.
15227 * testsuite/libgomp.graphite/graphite.exp: Likewise.
15228 * testsuite/libgomp.c++/c++.exp: load_gcc_lib gcc-dg.exp.
15229 Use dg-runtest rather than gfortran-dg-runtest.
15230
15231 2013-06-10 Thomas Schwinge <thomas@codesourcery.com>
15232
15233 * testsuite/libgomp.c/icv-2.c: Extend current handling of
15234 Linux-based x86 systems to cover all GNU systems.
15235 * testsuite/libgomp.c/lock-3.c: Likewise.
15236 * testsuite/libgomp.c/pr48591.c: Likewise.
15237
15238 2013-06-06 Thomas Schwinge <thomas@codesourcery.com>
15239
15240 * configure.tgt (XCFLAGS): Add -ftls-model=initial-exec for
15241 GNU/Hurd, as done for Linux-based systems.
15242
15243 * config/posix/ptrlock.h: Fix comment.
15244
15245 2013-05-27 Tobias Burnus <burnus@net-b.de>
15246
15247 PR fortran/57423
15248 * libgomp.texi (omp_set_dynamic, omp_set_nested, omp_set_nested,
15249 omp_set_num_threads, omp_init_lock, omp_set_lock, omp_test_lock,
15250 omp_unset_lock, omp_destroy_lock, omp_init_nest_lock,
15251 omp_set_nest_lock, omp_test_nest_lock, omp_unset_nest_lock,
15252 omp_destroy_nest_lock): Correct arguments to match the one in
15253 the OpenMP spec.
15254 * omp_lib.f90.in (omp_init_lock, omp_init_nest_lock, omp_destroy_lock
15255 omp_destroy_nest_lock, omp_set_lock, omp_set_nest_lock, omp_unset_lock,
15256 omp_unset_nest_lock, omp_set_dynamic, omp_set_nested,
15257 omp_set_num_threads, omp_test_lock, omp_test_nest_lock): Ditto.
15258
15259 2013-05-16 Jakub Jelinek <jakub@redhat.com>
15260
15261 * testsuite/libgomp.c/loop-13.c: New test.
15262 * testsuite/libgomp.c/loop-14.c: New test.
15263 * testsuite/libgomp.c/loop-15.c: New test.
15264 * testsuite/libgomp.c++/loop-13.C: New test.
15265 * testsuite/libgomp.c++/loop-14.C: New test.
15266 * testsuite/libgomp.c++/loop-15.C: New test.
15267
15268 2013-02-06 Jakub Jelinek <jakub@redhat.com>
15269
15270 PR middle-end/56217
15271 * testsuite/libgomp.c++/pr56217.C: New test.
15272
15273 2013-02-01 Alan Modra <amodra@gmail.com>
15274
15275 * task.c (GOMP_task, GOMP_taskwait): Comment.
15276
15277 2013-01-31 Dmitry Vyukov <dvyukov@gcc.gnu.org>
15278 Joost VandeVondele <Joost.VandeVondele@mat.ethz.ch>
15279
15280 PR libgomp/55561
15281 * config/linux/wait.h (do_spin): Use atomic load for addr.
15282 * config/linux/ptrlock.c (gomp_ptrlock_get_slow): Use atomic
15283 for intptr and ptrlock.
15284 * config/linux/ptrlock.h (gomp_ptrlock_get): Use atomic load
15285 for ptrlock.
15286
15287 2013-01-22 Alan Modra <amodra@gmail.com>
15288
15289 PR libgomp/51376
15290 PR libgomp/56073
15291 * task.c (GOMP_task): Revert 2011-12-09 change.
15292 (GOMP_taskwait): Likewise. Instead use atomic load with acquire
15293 barrier to read task->children..
15294 (gomp_barrier_handle_tasks): ..and matching atomic store with
15295 release barrier here when setting parent->children to NULL.
15296
15297 2013-01-16 Jakub Jelinek <jakub@redhat.com>
15298 Tobias Burnus <burnus@net-b.de>
15299
15300 PR driver/55884
15301 * testsuite/libgomp.fortran/fortran.exp: Use
15302 -fintrinsic-modules-path= instead of
15303 -fintrinsic-modules-path.
15304
15305 2013-01-14 Richard Sandiford <rdsandiford@googlemail.com>
15306
15307 Update copyright years.
15308
15309 2012-12-19 Tobias Burnus <burnus@net-b.de>
15310
15311 * testsuite/libgomp.fortran/fortran.exp: Set
15312 -fintrinsic-modules-path.
15313
15314 2012-12-19 Tobias Burnus <burnus@net-b.de>
15315
15316 * testsuite/libgomp.fortran/use_intrinsic_1.f90: New; moved
15317 from gcc/testsuite/gfortran.dg/gomp/use_intrinsic_1.f90.
15318
15319 2012-11-21 Jakub Jelinek <jakub@redhat.com>
15320
15321 PR libgomp/55411
15322 * team.c (gomp_free_thread): Decrease gomp_managed_threads
15323 if pool had any threads_used.
15324
15325 2012-11-07 Jack Howarth <howarth@bromo.med.uc.edu>
15326
15327 * testsuite/libgomp.c++/pr24455.C: Use
15328 -Wl,-undefined,dynamic_lookup on darwin.
15329
15330 2012-11-07 David Edelsohn <dje.gcc@gmail.com>
15331
15332 * testsuite/libgomp.c++/pr24455.C: Use -Wl,-G on AIX.
15333
15334 2012-10-24 Dominique d'Humieres <dominiq@lps.ens.fr>
15335
15336 * testsuite/libgomp.graphite/force-parallel-6.c: Adjust the loops.
15337
15338 2012-10-23 Ian Bolton <ian.bolton@arm.com>
15339 Jim MacArthur <jim.macarthur@arm.com>
15340 Marcus Shawcroft <marcus.shawcroft@arm.com>
15341 Nigel Stephens <nigel.stephens@arm.com>
15342 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
15343 Richard Earnshaw <rearnsha@arm.com>
15344 Sofiane Naci <sofiane.naci@arm.com>
15345 Stephen Thomas <stephen.thomas@arm.com>
15346 Tejas Belagod <tejas.belagod@arm.com>
15347 Yufeng Zhang <yufeng.zhang@arm.com>
15348
15349 * configure.tgt: Add AArch64.
15350
15351 2012-10-04 Jason Merrill <jason@redhat.com>
15352
15353 * testsuite/libgomp.c++/tls-init1.C: New.
15354
15355 2012-09-14 David Edelsohn <dje.gcc@gmail.com>
15356
15357 * configure: Regenerated.
15358
15359 2012-08-29 Chung-Lin Tang <cltang@codesourcery.com>
15360
15361 * config/linux/mips/futex.h (sys_futex0): Change to static
15362 function with noinline, nomips16 attributes under MIPS16. Adjust
15363 asm statement to place 'li v0,SYS_futex' immediately before
15364 syscall insn.
15365
15366 2012-07-04 Sandra Loosemore <sandra@codesourcery.com>
15367
15368 * libgomp.texi (Library Index): Renamed from "Index" to prevent
15369 conflict with index.html on case-insensitive file systems.
15370
15371 2012-07-03 Uros Bizjak <ubizjak@gmail.com>
15372
15373 * config/linux/x86/futex.h (cpu_relax): Use __builtin_ia32_pause.
15374 * testsuite/libgomp.c/sort-1.c (busy_wait): Ditto.
15375
15376 2012-07-02 Richard Guenther <rguenther@suse.de>
15377 Michael Matz <matz@suse.de>
15378 Tobias Grosser <tobias@grosser.es>
15379 Sebastian Pop <sebpop@gmail.com>
15380
15381 * testsuite/libgomp.graphite/force-parallel-4.c: Adjust.
15382 * testsuite/libgomp.graphite/force-parallel-5.c: Likewise.
15383 * testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
15384 * testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
15385
15386 2012-06-28 Andreas Schwab <schwab@linux-m68k.org>
15387
15388 * libgomp.texi: Include gpl_v3.texi instead of gpl.texi.
15389
15390 2012-06-22 Richard Guenther <rguenther@suse.de>
15391
15392 Merge from graphite branch
15393 2012-01-13 Tobias Grosser <tobias@grosser.es>
15394
15395 * testsuite/libgomp.graphite/force-parallel-1.c: Adjust.
15396 * testsuite/libgomp.graphite/force-parallel-2.c: Likewise.
15397
15398 2012-06-07 Jakub Jelinek <jakub@redhat.com>
15399
15400 PR middle-end/53580
15401 * testsuite/libgomp.c/pr26943-2.c: Remove #pragma omp barrier,
15402 use GOMP_barrier () call instead.
15403 * testsuite/libgomp.c/pr26943-3.c: Likewise.
15404 * testsuite/libgomp.c/pr26943-4.c: Likewise.
15405 * testsuite/libgomp.fortran/vla4.f90: Remove !$omp barrier,
15406 call GOMP_barrier instead.
15407 * testsuite/libgomp.fortran/vla5.f90: Likewise.
15408
15409 2012-06-06 Jakub Jelinek <jakub@redhat.com>
15410
15411 PR libgomp/52993
15412 * config/linux/lock.c (gomp_init_nest_lock_25): Fix up last
15413 argument to memset call.
15414
15415 2012-05-16 H.J. Lu <hongjiu.lu@intel.com>
15416
15417 * configure: Regenerated.
15418
15419 2012-04-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
15420
15421 * testsuite/lib/libgomp.exp: Add -fno-diagnostics-show-caret.
15422
15423 2012-03-31 H.J. Lu <hongjiu.lu@intel.com>
15424
15425 PR bootstrap/52812
15426 * configure.tgt (i[456]86-*-linux*): Handle -mx32 like -m64.
15427
15428 2012-03-22 Jakub Jelinek <jakub@redhat.com>
15429
15430 PR middle-end/52547
15431 * testsuite/libgomp.c/pr52547.c: New test.
15432
15433 2012-03-16 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
15434
15435 * testsuite/lib/libgomp.exp: load fortran-modules.exp
15436
15437 2012-03-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15438
15439 * configure.tgt (mips-sgi-irix6*): Remove.
15440
15441 2012-03-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15442
15443 * configure.tgt (alpha*-dec-osf*): Remove.
15444
15445 * config/osf/sem.h: Remove.
15446 * config/posix/lock.c (_XOPEN_SOURCE): Define unconditionally.
15447
15448 2012-02-29 Eric Botcazou <ebotcazou@adacore.com>
15449
15450 * config/linux/sparc/futex.h (cpu_relax): Read from CC register.
15451
15452 2012-02-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15453
15454 PR libstdc++/52188
15455 * acinclude.m4 (LIBGOMP_ENABLE_SYMVERS): Remove symvers_renaming.
15456 Remove ENABLE_SYMVERS_SOL2.
15457 * configure: Regenerate.
15458 * Makefile.am [LIBGOMP_BUILD_VERSIONED_SHLIB] (comma): New variable.
15459 (PREPROCESS): New variable.
15460 (libgomp.ver): New target.
15461 [LIBGOMP_BUILD_VERSIONED_SHLIB &&
15462 LIBGOMP_BUILD_VERSIONED_SHLIB_GNU]: Remove
15463 LIBGOMP_BUILD_VERSIONED_SHLIB_SOL2 handling.
15464 Use libgomp.ver.
15465 [LIBGOMP_BUILD_VERSIONED_SHLIB_SUN]: Use libgomp.ver, libgomp.ver-sun.
15466 * Makefile.in: Regenerate.
15467
15468 2012-02-14 Walter Lee <walt@tilera.com>
15469
15470 * configure.tgt: Handle tilegx and tilepro.
15471 * config/linux/tile/futex.h: New file.
15472
15473 2012-02-08 Richard Guenther <rguenther@suse.de>
15474
15475 PR tree-optimization/46886
15476 * testsuite/libgomp.c/pr46886.c: New testcase.
15477
15478 2012-01-25 Matthias Klose <doko@ubuntu.com>
15479
15480 * config/linux/arm: Remove empty directory.
15481 * configure.tgt (config_path): Remove linux-arm for arm*-*-linux*.
15482
15483 2011-12-09 Alan Modra <amodra@gmail.com>
15484
15485 PR libgomp/51376
15486 * task.c (GOMP_taskwait): Don't access task->children outside of
15487 task_lock mutex region.
15488 (GOMP_task): Likewise.
15489
15490 2011-12-06 Jakub Jelinek <jakub@redhat.com>
15491
15492 PR libgomp/51132
15493 * testsuite/libgomp.graphite/force-parallel-1.c: Move large arrays
15494 to file scope.
15495 * testsuite/libgomp.graphite/force-parallel-3.c: Likewise.
15496 * testsuite/libgomp.graphite/force-parallel-6.c: Likewise.
15497 * testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
15498 * testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
15499 * testsuite/libgomp.graphite/force-parallel-9.c: Likewise.
15500
15501 2011-12-02 Alan Modra <amodra@gmail.com>
15502
15503 * config/linux/affinity.c: Use atomic rather than sync builtin.
15504 * config/linux/lock.c: Likewise.
15505 * config/linux/ptrlock.h: Likewise.
15506 * config/linux/ptrlock.c: Likewise.
15507 * config/linux/ptrlock.h (gomp_ptrlock_set): Always write here..
15508 * config/linux/ptrlock.c (gomp_ptrlock_set_slow): ..not here.
15509 * config/linux/futex.h (atomic_write_barrier): Delete unused function.
15510 * config/linux/alpha/futex.h (atomic_write_barrier): Likewise.
15511 * config/linux/ia64/futex.h (atomic_write_barrier): Likewise.
15512 * config/linux/mips/futex.h (atomic_write_barrier): Likewise.
15513 * config/linux/powerpc/futex.h (atomic_write_barrier): Likewise.
15514 * config/linux/s390/futex.h (atomic_write_barrier): Likewise.
15515 * config/linux/sparc/futex.h (atomic_write_barrier): Likewise.
15516 * config/linux/x86/futex.h (atomic_write_barrier): Likewise.
15517
15518 2011-11-30 Alan Modra <amodra@gmail.com>
15519
15520 PR libgomp/51298
15521 * config/linux/bar.h: Use atomic rather than sync builtins.
15522 * config/linux/bar.c: Likewise. Add missing acquire
15523 synchronisation on generation field.
15524 * task.c (gomp_barrier_handle_tasks): Regain lock so as to not
15525 double unlock.
15526
15527 2011-11-30 Alan Modra <amodra@gmail.com>
15528
15529 * ordered.c (gomp_ordered_sync): Add MEMMODEL_ACQ_REL fence.
15530 * critical.c (GOMP_critical_start): Add MEMMODEL_RELEASE fence.
15531 * config/linux/mutex.h: Use atomic rather than sync builtins.
15532 * config/linux/mutex.c: Likewise. Comment. Use -1 for waiting state.
15533 * config/linux/omp-lock.h: Comment fix.
15534 * config/linux/arm/mutex.h: Delete.
15535 * config/linux/powerpc/mutex.h: Delete.
15536 * config/linux/ia64/mutex.h: Delete.
15537 * config/linux/mips/mutex.h: Delete.
15538
15539 2011-11-30 Alan Modra <amodra@gmail.com>
15540
15541 PR libgomp/51249
15542 * config/linux/sem.h: Rewrite.
15543 * config/linux/sem.c: Rewrite.
15544
15545 2011-11-28 Richard Henderson <rth@redhat.com>
15546
15547 * libgomp.h (enum memmodel): New.
15548
15549 2011-11-21 Andreas Tobler <andreast@fgznet.ch>
15550
15551 * configure: Regenerate.
15552
15553 2011-10-10 Matthias Klose <doko@ubuntu.com>
15554
15555 * config/posix95: Remove empty directory.
15556
15557 2011-08-26 Jakub Jelinek <jakub@redhat.com>
15558
15559 * testsuite/libgomp.fortran/threadprivate4.f90: New test.
15560
15561 2011-08-19 Jakub Jelinek <jakub@redhat.com>
15562
15563 PR fortran/49792
15564 * testsuite/libgomp.fortran/pr49792-1.f90: New test.
15565 * testsuite/libgomp.fortran/pr49792-2.f90: New test.
15566
15567 2011-08-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15568
15569 * config/posix95/lock.c, posix95/omp-lock.h: Remove.
15570
15571 2011-08-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15572
15573 PR libgomp/49965
15574 * testsuite/libgomp.c++/task-8.C: Replaced err by errval.
15575
15576 2011-08-03 Uros Bizjak <ubizjak@gmail.com>
15577
15578 * config/linux/proc.h: New.
15579 * config/linux/proc.c: Include "proc.h". Do not include <sched.h>.
15580 (gomp_cpuset_popcount): Rename from cpuset_popcount. No more static.
15581 (gomp_init_num_threads): Update call to cpuset_popcount.
15582 (get_num_procs): Ditto.
15583 * config/linux/affinity.c (gomp_init_affinity): Call
15584 gomp_cpuset_popcount.
15585
15586 2011-08-02 Jakub Jelinek <jakub@redhat.com>
15587
15588 PR fortran/42041
15589 PR fortran/46752
15590 * omp.h.in (omp_in_final): New prototype.
15591 * omp_lib.f90.in (omp_in_final): New interface.
15592 (omp_integer_kind, omp_logical_kind): Remove
15593 and replace all its uses in the module with 4.
15594 (openmp_version): Change to 201107.
15595 * omp_lib.h.in (omp_sched_static, omp_sched_dynamic,
15596 omp_sched_guided, omp_sched_auto): Use omp_sched_kind
15597 kind for the parameters.
15598 (omp_in_final): New external.
15599 (openmp_version): Change to 201107.
15600 * task.c (omp_in_final): New function.
15601 (gomp_init_task): Initialize final_task.
15602 (GOMP_task): Remove unused attribute from flags. Handle final
15603 tasks.
15604 (GOMP_taskyield): New function.
15605 (omp_in_final): Return true if if (false) or final (true) task
15606 or descendant of final (true).
15607 * fortran.c (omp_in_final_): New function.
15608 * libgomp.map (OMP_3.1): Export omp_in_final and omp_in_final_.
15609 (GOMP_3.0): Export GOMP_taskyield.
15610 * env.c (gomp_nthreads_var_list, gomp_nthreads_var_list_len): New
15611 variables.
15612 (parse_unsigned_long_list): New function.
15613 (initialize_env): Use it for OMP_NUM_THREADS. Call parse_boolean
15614 with "OMP_PROC_BIND". If OMP_PROC_BIND=true, call gomp_init_affinity
15615 even if parse_affinity returned false.
15616 * config/linux/affinity.c (gomp_init_affinity): Handle
15617 gomp_cpu_affinity_len == 0.
15618 * libgomp_g.h (GOMP_taskyield): New prototype.
15619 * libgomp.h (struct gomp_task): Add final_task field.
15620 (gomp_nthreads_var_list, gomp_nthreads_var_list_len): New externs.
15621 * team.c (gomp_team_start): Override new task's nthreads_var icv
15622 if list form OMP_NUM_THREADS has been used and it has value for
15623 the new nesting level.
15624
15625 * testsuite/libgomp.c/atomic-11.c: New test.
15626 * testsuite/libgomp.c/atomic-12.c: New test.
15627 * testsuite/libgomp.c/atomic-13.c: New test.
15628 * testsuite/libgomp.c/atomic-14.c: New test.
15629 * testsuite/libgomp.c/reduction-6.c: New test.
15630 * testsuite/libgomp.c/task-5.c: New test.
15631 * testsuite/libgomp.c++/atomic-2.C: New test.
15632 * testsuite/libgomp.c++/atomic-3.C: New test.
15633 * testsuite/libgomp.c++/atomic-4.C: New test.
15634 * testsuite/libgomp.c++/atomic-5.C: New test.
15635 * testsuite/libgomp.c++/atomic-6.C: New test.
15636 * testsuite/libgomp.c++/atomic-7.C: New test.
15637 * testsuite/libgomp.c++/atomic-8.C: New test.
15638 * testsuite/libgomp.c++/atomic-9.C: New test.
15639 * testsuite/libgomp.c++/task-8.C: New test.
15640 * testsuite/libgomp.c++/reduction-4.C: New test.
15641 * testsuite/libgomp.fortran/allocatable7.f90: New test.
15642 * testsuite/libgomp.fortran/allocatable8.f90: New test.
15643 * testsuite/libgomp.fortran/crayptr3.f90: New test.
15644 * testsuite/libgomp.fortran/omp_atomic3.f90: New test.
15645 * testsuite/libgomp.fortran/omp_atomic4.f90: New test.
15646 * testsuite/libgomp.fortran/pointer1.f90: New test.
15647 * testsuite/libgomp.fortran/pointer2.f90: New test.
15648 * testsuite/libgomp.fortran/task4.f90: New test.
15649
15650 2011-08-02 Tobias Burnus <burnus@net-b.de>
15651
15652 * libgomp.texi: Update OpenMP spec references to 3.1.
15653 (omp_in_final,OMP_PROC_BIND): New sections.
15654 (OMP_NUM_THREADS): Document that the value can be now a list.
15655 (GOMP_STACKSIZE,GOMP_CPU_AFFINITY): Update @ref.
15656
15657 2011-08-02 H.J. Lu <hongjiu.lu@intel.com>
15658
15659 * config/linux/x86/futex.h: Check __x86_64__ instead of
15660 __LP64__.
15661
15662 2011-07-29 Jakub Jelinek <jakub@redhat.com>
15663
15664 PR middle-end/49897
15665 PR middle-end/49898
15666 * testsuite/libgomp.c/pr49897-1.c: New test.
15667 * testsuite/libgomp.c/pr49897-2.c: New test.
15668 * testsuite/libgomp.c/pr49898-1.c: New test.
15669 * testsuite/libgomp.c/pr49898-2.c: New test.
15670
15671 2011-07-28 H.J. Lu <hongjiu.lu@intel.com>
15672
15673 * testsuite/lib/libgomp.exp (libgomp_init): Add -march=i486
15674 for ia32 instead of ilp32.
15675
15676 * testsuite/libgomp.c/atomic-1.c: Require ia32 instead of ilp32.
15677 * testsuite/libgomp.c/atomic-6.c: Likewise.
15678
15679 2011-07-23 Sebastian Pop <sebastian.pop@amd.com>
15680
15681 * testsuite/libgomp.graphite/force-parallel-1.c: Un-xfail.
15682 * testsuite/libgomp.graphite/force-parallel-2.c: Adjust pattern.
15683
15684 2011-07-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15685
15686 PR libgomp/45351
15687 * config/osf/sem.h: New file.
15688 * configure.tgt (alpha*-dec-osf*): Prepend osf to config_path.
15689
15690 2011-07-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15691
15692 PR target/49541
15693 * testsuite/lib/libgomp.exp (libgomp_init): Don't add -lgomp to
15694 ldflags.
15695
15696 2011-07-15 Jakub Jelinek <jakub@redhat.com>
15697
15698 * config/linux/wait.h (do_spin): New inline, largely copied
15699 from do_wait, just don't do futex_wait here, instead return true if
15700 it should be done.
15701 (do_wait): Implement using do_spin.
15702 * config/linux/mutex.h (gomp_mutex_lock_slow): Add an int argument
15703 to prototype.
15704 (gomp_mutex_lock): Use __sync_val_compare_and_swap instead of
15705 __sync_bool_compare_and_swap, pass the oldval to
15706 gomp_mutex_lock_slow.
15707 * config/linux/mutex.c (gomp_mutex_lock_slow): Add oldval argument.
15708 If all mutex contenders are just spinning and not sleeping, don't
15709 change state to 2 unnecessarily. Optimize the loop when state has
15710 already become 2 to use just one atomic operation per loop instead
15711 of two.
15712 * config/linux/ia64/mutex.h (gomp_mutex_lock_slow): Add an int argument
15713 to prototype.
15714 (gomp_mutex_lock): Use __sync_val_compare_and_swap instead of
15715 __sync_bool_compare_and_swap, pass the oldval to
15716 gomp_mutex_lock_slow.
15717
15718 2011-06-22 Jakub Jelinek <jakub@redhat.com>
15719
15720 PR libgomp/49490
15721 * iter.c (gomp_iter_static_next): For chunk size 0
15722 only use n ceil/ nthreads size for the first
15723 n % nthreads threads in the team instead of
15724 all threads except for the last few ones which
15725 get less work or none at all.
15726 * iter_ull.c (gomp_iter_ull_static_next): Likewise.
15727 * env.c (parse_schedule): If OMP_SCHEDULE doesn't have
15728 chunk argument, set run_sched_modifier to 0 for static
15729 resp. 1 for other kinds. If chunk argument is 0
15730 and not static, set value to 1.
15731
15732 2011-05-19 Jakub Jelinek <jakub@redhat.com>
15733
15734 PR c++/49043
15735 * testsuite/libgomp.c++/pr49043.C: New test.
15736
15737 PR c++/48869
15738 * testsuite/libgomp.c++/pr48869.C: New test.
15739
15740 2011-05-06 Jakub Jelinek <jakub@redhat.com>
15741
15742 PR fortran/48894
15743 * fortran.c: Include limits.h.
15744 (TO_INT): Define.
15745 (omp_set_dynamic_8_, omp_set_num_threads_8_): Use !!*set instead of
15746 *set.
15747 (omp_set_num_threads_8_, omp_set_schedule_8_,
15748 omp_set_max_active_levels_8_, omp_get_ancestor_thread_num_8_,
15749 omp_get_team_size_8_): Use TO_INT macro.
15750 * testsuite/libgomp.fortran/pr48894.f90: New test.
15751
15752 2011-04-13 Jakub Jelinek <jakub@redhat.com>
15753
15754 PR middle-end/48591
15755 * testsuite/libgomp.c/pr48591.c: New test.
15756
15757 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15758
15759 PR bootstrap/48135
15760 * acinclude.m4 (enable_symvers): Handle --disable-symvers.
15761 * configure: Regenerate.
15762
15763 2011-02-27 Jakub Jelinek <jakub@redhat.com>
15764
15765 PR fortran/47886
15766 * testsuite/libgomp.fortran/task3.f90: New test.
15767
15768 2011-02-24 Tobias Burnus <burnus@net-b.de>
15769
15770 * libgomp.texi (GOMP_STACKSIZE): Fix @ref to OMP_STACKSIZE.
15771
15772 2011-02-23 Jakub Jelinek <jakub@redhat.com>
15773
15774 PR libgomp/47854
15775 * libgomp.texi (omp_get_wtime): Don't say time in the past
15776 must be Unix Epoch.
15777
15778 2011-02-18 Jakub Jelinek <jakub@redhat.com>
15779
15780 PR libgomp/47804
15781 * testsuite/libgomp.fortran/fortran.exp: Check for both
15782 libquadmath.a and libquadmath.${shlib_ext}. If neither exists,
15783 but $blddir != "", still append ${blddir}/${lang_library_path}
15784 to ld_library_path.
15785
15786 2011-02-16 Tobias Burnus <burnus@net-b.de>
15787
15788 PR libgomp/47758
15789 * testsuite/libgomp.fortran/fortran.exp: Check for the existence
15790 of libquadmath.a before adding its libpath to ldflags.
15791
15792 2011-02-14 Jakub Jelinek <jakub@redhat.com>
15793
15794 PR libgomp/47731
15795 * config/linux/futex.h (futex_wait): Pass NULL as timeout argument
15796 to FUTEX_WAIT futex syscall.
15797 * config/linux/wait.h: Include <futex.h> instead of "futex.h".
15798
15799 2011-02-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15800
15801 * configure: Regenerate.
15802
15803 2011-01-20 Benjamin Kosnik <bkoz@redhat.com>
15804
15805 PR libstdc++/36104
15806 * acinclude.m4 (LIBGOMP_ENABLE_SYMVERS): Accept gnu variants.
15807
15808 2011-01-16 Gerald Pfeifer
15809
15810 * configure.tgt (*-*-freebsd*): Add -lpthread to XLDFLAGS.
15811
15812 2010-12-14 Jakub Jelinek <jakub@redhat.com>
15813
15814 PR fortran/46874
15815 * libgomp.fortran/allocatable6.f90: New test.
15816
15817 2010-12-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15818
15819 * acinclude.m4 (symvers_renaming): Also set if enable_symvers = no.
15820 * configure: Regenerate.
15821
15822 2010-12-06 Dave Korn <dave.korn.cygwin@gmail.com>
15823
15824 PR target/40125
15825 PR lto/46695
15826 * configure.ac: Invoke ACX_LT_HOST_FLAGS.
15827 * Makefile.am (libgomp_la_LDFLAGS): Use lt_host_flags.
15828 * aclocal.m4: Regenerate.
15829 * configure: Regenerate.
15830 * Makefile.in: Regenerate.
15831 * testsuite/Makefile.in: Regenerate.
15832
15833 2010-12-02 Jakub Jelinek <jakub@redhat.com>
15834
15835 PR fortran/46753
15836 * libgomp.fortran/pr46753.f90: New test.
15837
15838 PR libgomp/43706
15839 * env.c (initialize_env): Default to spin count 300000
15840 instead of 20000000 if neither OMP_WAIT_POLICY nor GOMP_SPINCOUNT
15841 is specified.
15842
15843 PR libgomp/45240
15844 * parallel.c (GOMP_parallel_end): Unlock gomp_remaining_threads_lock
15845 at the end if sync builtins aren't supported.
15846
15847 2010-12-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15848
15849 * configure.tgt (mips-sgi-irix6*): Add -lpthread to XLDFLAGS.
15850
15851 2010-12-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15852
15853 * testsuite/libgomp.fortran/vla8.f90: Use dg-timeout-factor 2.0.
15854
15855 2010-11-24 Iain Sandoe <iains@gcc.gnu.org>
15856
15857 * testsuite/libgomp.fortran/fortran.exp: Add paths for libquadmath.
15858
15859 2010-11-16 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
15860 Tobias Burnus <burnus@net-b.de>
15861
15862 PR fortran/32049
15863 * configure.ac:
15864 * configure: Regenerate.
15865
15866 2010-10-06 Marcus Shawcroft <marcus.shawcroft@arm.com>
15867
15868 * config/linux/futex.h: New.
15869 * config/linux/arm/mutex.h: New.
15870 * configure.tgt (arm*-*-linux*): Add config path.
15871
15872 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
15873
15874 * testsuite/libgomp.graphite/force-parallel-1.c: Adjust.
15875
15876 2010-09-23 Tobias Burnus <burnus@net-b.de>
15877
15878 * libgomp.texi (omp_get_nested, omp_set_nested, omp_set_dynamic):
15879 Change Fortran datatype to LOGICAL.
15880 (omp_set_lock, omp_test_lock, omp_unset_lock, omp_set_nested_lock,
15881 omp_unset_nested_lock): Use intent(inout) instead of intent(out).
15882
15883 2010-08-21 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15884
15885 * configure: Regenerate.
15886
15887 2010-07-26 Jakub Jelinek <jakub@redhat.com>
15888
15889 * libgomp.texi: Add function keyword to a couple of Fortran
15890 interfaces, use integer instead of int for Fortran.
15891
15892 2010-07-26 Aldy Hernandez <aldyh@redhat.com>
15893
15894 * libgomp.texi: Fix spelling and pasto problems throughout.
15895 Adjust prototypes to match code.
15896
15897 2010-07-24 Tobias Burnus <burnus@net-b.de>
15898
15899 * testsuite/libgomp.fortran/appendix-a/a.28.5.f90: Add -w to
15900 silence -fwhole-file warning.
15901
15902 2010-07-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15903
15904 * configure.tgt (*-*-solaris2.[56]*): Removed.
15905
15906 2010-07-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15907
15908 * acinclude.m4 (LIBGOMP_ENABLE_SYMVERS): Handle sun style.
15909 Define LIBGOMP_BUILD_VERSIONED_SHLIB_GNU,
15910 LIBGOMP_BUILD_VERSIONED_SHLIB_SUN automake conditionals.
15911 (HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT): Define unless
15912 targetting solaris2*.
15913 * configure: Regenerate.
15914 * config.h.in: Regenerate.
15915
15916 * Makefile.am [LIBGOMP_BUILD_VERSIONED_SHLIB]: Protect
15917 libgomp_version_script with LIBGOMP_BUILD_VERSIONED_SHLIB_GNU.
15918 Add libgomp_version_dep.
15919 [LIBGOMP_BUILD_VERSIONED_SHLIB_SUN]: Handle Sun symbol
15920 versioning.
15921 [!LIBGOMP_BUILD_VERSIONED_SHLIB]: Add libgomp_version_dep.
15922 (libgomp_la_DEPENDENCIES): Set to $(libgomp_version_dep).
15923 * Makefile.in: Regenerate.
15924
15925 * libgomp.h (LIBGOMP_GNU_SYMBOL_VERSIONING): Undef unless
15926 HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT.
15927 * libgomp.map (OMP_1.0): Move symbols both in OMP_1.0 and OMP_3.0
15928 to common block, protected by
15929 HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT.
15930
15931 2010-06-10 Gerald Pfeifer <gerald@pfeifer.com>
15932
15933 * libgomp.texi: Move to GFDL version 1.3. Update copyright years.
15934
15935 2010-06-09 Iain Sandoe <iains@gcc.gnu.org>
15936
15937 PR bootstrap/43170
15938 * configure: Regenerate.
15939
15940 2010-05-04 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15941
15942 PR other/43620
15943 * configure.ac (AM_INIT_AUTOMAKE): Add no-dist.
15944 * configure: Regenerate.
15945 * Makefile.in: Regenerate.
15946 * testsuite/Makefile.in: Regenerate.
15947
15948 2010-04-26 Jakub Jelinek <jakub@redhat.com>
15949
15950 PR c/43893
15951 * testsuite/libgomp.c/pr43893.c: New test.
15952 * testsuite/libgomp.c++/pr43893.C: New test.
15953
15954 2010-04-21 Jakub Jelinek <jakub@redhat.com>
15955
15956 PR middle-end/43570
15957 * testsuite/libgomp.fortran/vla8.f90: New test.
15958
15959 2010-04-20 Jakub Jelinek <jakub@redhat.com>
15960
15961 PR libgomp/43706
15962 * config/linux/affinity.c (gomp_init_affinity): Decrease
15963 gomp_available_cpus if affinity mask confines the process to fewer
15964 CPUs.
15965 * config/linux/proc.c (get_num_procs): If gomp_cpu_affinity is
15966 non-NULL, just return gomp_available_cpus.
15967
15968 PR libgomp/43569
15969 * sections.c (gomp_sections_init): Initialize ws->mode.
15970
15971 2010-04-14 Uros Bizjak <ubizjak@gmail.com>
15972
15973 * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS): Remove set but
15974 not unused bar variable.
15975 * configure: Regenerate.
15976
15977 2010-04-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15978
15979 * Makefile.in: Regenerate.
15980 * aclocal.m4: Regenerate.
15981 * testsuite/Makefile.in: Regenerate.
15982
15983 2010-03-22 Jakub Jelinek <jakub@redhat.com>
15984
15985 PR libgomp/42942
15986 * env.c (parse_unsigned_long): Add ALLOW_ZERO argument.
15987 (initialize_env): Adjust callers.
15988 (omp_set_max_active_levels): Set gomp_max_active_levels_var even
15989 when the argument is 0.
15990
15991 * testsuite/libgomp.c/pr42942.c: New test.
15992
15993 2010-03-08 Tobias Grosser <grosser@fim.uni-passau.de>
15994
15995 PR middle-end/42644
15996 PR middle-end/42130
15997 * testsuite/libgomp.graphite/force-parallel-1.c: Adjust.
15998 * testsuite/libgomp.graphite/force-parallel-2.c: Adjust.
15999
16000 2010-01-29 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16001
16002 * testsuite/libgomp.c++/task-1.C: Renamed err to e.
16003 * testsuite/libgomp.c++/task-6.C: Likewise.
16004
16005 2010-01-28 Steve Ellcey <sje@cup.hp.com>
16006
16007 * configure.tgt (*-*-hpux*): Add -frandom-seed flag.
16008
16009 2010-01-26 Paolo Bonzini <bonzini@gnu.org>
16010
16011 * configure.ac: Test for executability of _the first word_ of GFORTRAN.
16012 * configure: Regenerate.
16013
16014 2010-01-26 Jakub Jelinek <jakub@redhat.com>
16015
16016 PR fortran/42866
16017 * testsuite/libgomp.fortran/allocatable5.f90: New test.
16018
16019 2010-01-20 Paolo Bonzini <bonzini@gnu.org>
16020
16021 * configure.ac: Test for executability of GFORTRAN.
16022 * configure: Regenerate.
16023
16024 2010-01-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16025
16026 * configure: Regenerate.
16027
16028 2010-01-04 H.J. Lu <hongjiu.lu@intel.com>
16029
16030 PR libgomp/42602
16031 * libgomp.fortran/recursion1.f90 (sub): Make 's' atomic.
16032
16033 2010-01-03 Richard Guenther <rguenther@suse.de>
16034
16035 * testsuite/libgomp.fortran/recursion1.f90: New testcase.
16036
16037 2009-12-23 Sebastian Pop <sebpop@gmail.com>
16038
16039 * testsuite/libgomp.graphite/pr4118.c: New.
16040
16041 2009-12-22 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
16042
16043 * testsuite/libgomp.fortran/crayptr2.f90: Remove forced static linkage
16044 for darwin, protect the test with require-effective-target tls_runtime.
16045 * testsuite/libgomp.fortran/pr32550.f90: Ditto.
16046
16047 2009-12-22 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
16048
16049 PR target/41605
16050 * testsuite/lib/libgomp.exp: Provide -B options to allow for
16051 link spec %s substitutions for static libraries.
16052
16053 2009-12-18 Jack Howarth <howarth@bromo.med.uc.edu>
16054
16055 PR testsuite/42135
16056 * libgomp.graphite/force-parallel-2.c: Reduce array size.
16057
16058 2009-12-05 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
16059
16060 * Makefile.in: Regenerate.
16061 * configure: Regenerate.
16062 * testsuite/Makefile.in: Regenerate.
16063
16064 2009-11-30 Dave Korn <dave.korn.cygwin@gmail.com>
16065
16066 * testsuite/lib/libgomp.exp (libgomp_init): Add host-dependent
16067 settings for LC_ALL and LANG.
16068
16069 2009-11-25 Jakub Jelinek <jakub@redhat.com>
16070
16071 PR fortran/42162
16072 * testsuite/libgomp.fortran/pr42162.f90: New test.
16073
16074 2009-11-13 Jakub Jelinek <jakub@redhat.com>
16075
16076 PR middle-end/42029
16077 * testsuite/libgomp.c/pr42029.c: New test.
16078
16079 2009-10-26 Jakub Jelinek <jakub@redhat.com>
16080
16081 * acinclude.m4 (LIBGOMP_CHECK_LINKER_FEATURES): Avoid using too many
16082 *s. Accept ld version without text in ()s.
16083 * configure: Regenerated.
16084
16085 2009-10-22 Razya Ladelsky <razya@il.ibm.com>
16086
16087 * testsuite/libgomp.graphite/force-parallel-2.c: Adjust scan.
16088
16089 2009-10-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
16090
16091 PR libgomp/41418
16092 * configure.ac: Set FC to "no" if $GFORTRAN starts with "no"
16093 or a hyphen (happens with fortran language disabled).
16094 * configure: Regenerate.
16095
16096 2009-09-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
16097
16098 * acinclude.m4 (LIBGOMP_CHECK_LINKER_FEATURES): Avoid 'head',
16099 use sed script portable to Solaris /bin/sed for extracting ld
16100 version.
16101 * configure: Regenerate.
16102
16103 2009-09-17 Alexander Monakov <amonakov@ispras.ru>
16104
16105 * testsuite/libgomp.graphite/bounds.c: New test.
16106
16107 2009-09-11 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
16108
16109 * Makefile.am (libgomp_la_LINK): New.
16110 * Makefile.in: Regenerate.
16111
16112 2009-08-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
16113
16114 * configure.ac (AC_PREREQ): Bump to 2.64.
16115
16116 2009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
16117
16118 * Makefile.am (install-html, install-pdf): Remove.
16119 * Makefile.in: Regenerate.
16120
16121 * Makefile.in: Regenerate.
16122 * aclocal.m4: Regenerate.
16123 * config.h.in: Regenerate.
16124 * configure: Regenerate.
16125 * testsuite/Makefile.in: Regenerate.
16126
16127 2009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
16128
16129 * Makefile.am (LINK): Add $(AM_LIBTOOLFLAGS) and $(LIBTOOLFLAGS).
16130 * Makefile.in: Regenerate.
16131
16132 2009-08-20 Dave Korn <dave.korn.cygwin@gmail.com>
16133
16134 * Makefile.am (libgomp_la_LDFLAGS): Add -bindir flag.
16135 * Makefile.in: Regenerate.
16136
16137 2009-08-19 Tobias Burnus <burnus@net-b.de>
16138
16139 PR fortran/41102
16140 omp_lib.h.in: Fix -std=f95 errors.
16141
16142 2009-08-14 David Edelsohn <edelsohn@gnu.org>
16143
16144 * testsuite/libgomp.graphite: Move from gcc.dg/graphite.
16145 * testsuite/libgomp.graphite/graphite_autopar.exp: Delete.
16146 * testsuite/libgomp.graphite/graphite.exp: New.
16147
16148 2009-08-05 Andreas Tobler <a.tobler@schweiz.org>
16149
16150 * testsuite/libgomp.fortran/fortran.exp: Add flags in case of shared
16151 only build.
16152
16153 2009-08-04 David Daney <ddaney@caviumnetworks.com>
16154
16155 * config/linux/mutex.h (gomp_mutex_unlock): Add comment about
16156 needed memory barrier semantics.
16157 * config/linux/mips/mutex.h: New file.
16158
16159 2009-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
16160
16161 * configure.ac (_AC_ARG_VAR_PRECIOUS): Use m4_rename_force.
16162
16163 2009-07-16 Joseph Myers <joseph@codesourcery.com>
16164
16165 * configure: Regenerate.
16166
16167 2009-07-11 Richard Sandiford <rdsandiford@googlemail.com>
16168
16169 PR testsuite/40699
16170 PR testsuite/40707
16171 PR testsuite/40709
16172 * testsuite/lib/libgomp.exp: Revert 2009-07-02 and 2009-06-30 commits.
16173 * testsuite/libgomp.c/c.exp, testsuite/libgomp.c++/c++.exp,
16174 testsuite/libgomp.fortran/fortran.exp: Revert 2009-06-30 commits.
16175
16176 2009-07-02 Richard Sandiford <r.sandiford@uk.ibm.com>
16177
16178 * testsuite/lib/libgomp.exp (libgomp_init): Use the ALWAYS_CFLAGS
16179 options when choosing a multilib.
16180
16181 2009-06-30 Richard Sandiford <r.sandiford@uk.ibm.com>
16182
16183 * testsuite/lib/libgomp.exp (libgomp_init): Don't add "." to
16184 ld_library_path. Use add_path. Add just find_libgcc_s to
16185 ld_library_path, not every libgcc multilib directory.
16186 * testsuite/libgomp.c/c.exp (ld_library_path): Don't call
16187 gcc-set-multilib-library-path; rely on $always_ld_library_path instead.
16188 * testsuite/libgomp.c++/c++.exp (ld_library_path): Likewise.
16189 Use add_path.
16190 * testsuite/libgomp.fortran/fortran.exp (ld_library_path): Likewise.
16191
16192 2009-06-09 Nathan Froyd <froydnj@codesourcery.com>
16193
16194 * Makefile.am (LTLDFLAGS): Define.
16195 (LINK): Define.
16196 * Makefile.in: Regenerate.
16197
16198 2009-05-27 Janne Blomqvist <jb@gcc.gnu.org>
16199
16200 PR fortran/39718
16201 * testsuite/libgomp.fortran/fortran.exp: Don't link with
16202 libgfortranbegin, check existence of libgfortran.a instead of
16203 libgfortranbegin.a.
16204
16205 2009-05-20 Jakub Jelinek <jakub@redhat.com>
16206
16207 PR libgomp/40174
16208 * team.c (gomp_thread_start): Destroy thr->release semaphore.
16209 (gomp_free_pool_helper): Likewise.
16210
16211 2009-04-20 Vasilis Liaskovitis <vliaskov@gmail.com>
16212 Jakub Jelinek <jakub@redhat.com>
16213
16214 PR fortran/35423
16215 * testsuite/libgomp.fortran/workshare2.f90: New test.
16216
16217 2009-04-09 Nick Clifton <nickc@redhat.com>
16218
16219 * iter.c: Change copyright header to refer to version 3 of the
16220 GNU General Public License with version 3.1 of the GCC Runtime
16221 Library Exception and to point readers at the COPYING3 and
16222 COPYING3.RUNTIME files and the FSF's license web page.
16223 * alloc.c: Likewise.
16224 * barrier.c: Likewise.
16225 * config/bsd/proc.c: Likewise.
16226 * config/linux/affinity.c: Likewise.
16227 * config/linux/alpha/futex.h: Likewise.
16228 * config/linux/bar.c: Likewise.
16229 * config/linux/bar.h: Likewise.
16230 * config/linux/ia64/futex.h: Likewise.
16231 * config/linux/ia64/mutex.h: Likewise.
16232 * config/linux/lock.c: Likewise.
16233 * config/linux/mips/futex.h: Likewise.
16234 * config/linux/mutex.c: Likewise.
16235 * config/linux/mutex.h: Likewise.
16236 * config/linux/powerpc/futex.h: Likewise.
16237 * config/linux/proc.c: Likewise.
16238 * config/linux/ptrlock.c: Likewise.
16239 * config/linux/ptrlock.h: Likewise.
16240 * config/linux/s390/futex.h: Likewise.
16241 * config/linux/sem.c: Likewise.
16242 * config/linux/sem.h: Likewise.
16243 * config/linux/sparc/futex.h: Likewise.
16244 * config/linux/wait.h: Likewise.
16245 * config/linux/x86/futex.h: Likewise.
16246 * config/mingw32/proc.c: Likewise.
16247 * config/mingw32/time.c: Likewise.
16248 * config/posix/affinity.c: Likewise.
16249 * config/posix/bar.c: Likewise.
16250 * config/posix/bar.h: Likewise.
16251 * config/posix/lock.c: Likewise.
16252 * config/posix/mutex.h: Likewise.
16253 * config/posix/proc.c: Likewise.
16254 * config/posix/ptrlock.h: Likewise.
16255 * config/posix/sem.c: Likewise.
16256 * config/posix/sem.h: Likewise.
16257 * config/posix/time.c: Likewise.
16258 * config/posix95/lock.c: Likewise.
16259 * critical.c: Likewise.
16260 * env.c: Likewise.
16261 * error.c: Likewise.
16262 * fortran.c: Likewise.
16263 * iter_ull.c: Likewise.
16264 * libgomp.h: Likewise.
16265 * libgomp_f.h.in: Likewise.
16266 * libgomp_g.h: Likewise.
16267 * loop.c: Likewise.
16268 * loop_ull.c: Likewise.
16269 * omp.h.in: Likewise.
16270 * omp_lib.f90.in: Likewise.
16271 * omp_lib.h.in: Likewise.
16272 * ordered.c: Likewise.
16273 * parallel.c: Likewise.
16274 * sections.c: Likewise.
16275 * single.c: Likewise.
16276 * task.c: Likewise.
16277 * team.c: Likewise.
16278 * work.c: Likewise.
16279
16280 2009-04-09 Jakub Jelinek <jakub@redhat.com>
16281
16282 * testsuite/config/default.exp: Change copyright header to refer to
16283 version 3 of the GNU General Public License and to point readers
16284 at the COPYING3 file and the FSF's license web page.
16285
16286 2009-04-08 Jakub Jelinek <jakub@redhat.com>
16287
16288 PR middle-end/39573
16289 * libgomp.c++/pr39573.C: New test.
16290
16291 2009-04-01 Jakub Jelinek <jakub@redhat.com>
16292
16293 PR other/39591
16294 * testsuite/libgomp.c/pr39591-1.c: New test.
16295 * testsuite/libgomp.c/pr39591-2.c: New test.
16296 * testsuite/libgomp.c/pr39591-3.c: New test.
16297
16298 2009-03-25 Uros Bizjak <ubizjak@gmail.com>
16299
16300 * testsuite/libgomp.c/atomic-5.c: Cleanup cpuid usage.
16301 * testsuite/libgomp.c/atomic-6.c: Ditto.
16302
16303 2009-03-23 Jakub Jelinek <jakub@redhat.com>
16304
16305 PR c/39495
16306 * testsuite/libgomp.c/loop-12.c: New test.
16307 * testsuite/libgomp.c/loop-11.c: New test.
16308 * testsuite/libgomp.c++/loop-11.C: New test.
16309 * testsuite/libgomp.c++/loop-12.C: New test.
16310 * testsuite/libgomp.c++/for-8.C: New test.
16311
16312 2009-03-01 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
16313
16314 * configure: Regenerate.
16315
16316 2009-02-11 Jakub Jelinek <jakub@redhat.com>
16317
16318 PR middle-end/39154
16319 * testsuite/libgomp.c/pr39154.c: New test.
16320
16321 2009-01-30 Ian Lance Taylor <iant@google.com>
16322
16323 * acinclude.m4 (LIBCOMP_CHECK_LINKER_FEATURES): Set
16324 libgomp_ld_is_gold. Get gold version number.
16325 (LIBGOMP_ENABLE_SYMVERS): Gold always support symbol versioning.
16326 * configure: Rebuild.
16327
16328 2009-01-19 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
16329
16330 * testsuite/lib/libgomp.exp: Add -B option for targets that
16331 use libgfortran.a%s in their specs.
16332
16333 2009-01-07 Jakub Jelinek <jakub@redhat.com>
16334
16335 PR libgomp/38086
16336 * acinclude.m4 (HAVE_AS_SYMVER_DIRECTIVE): New check.
16337 * libgomp.h (LIBGOMP_GNU_SYMBOL_VERSIONING): Undefine if
16338 HAVE_AS_SYMVER_DIRECTIVE is not defined.
16339 * configure: Regenerated.
16340 * config.h.in: Likewise.
16341
16342 2008-12-28 Jakub Jelinek <jakub@redhat.com>
16343
16344 PR c++/38650
16345 * testsuite/libgomp.c/pr38650.c: New test.
16346 * testsuite/libgomp.c++/pr38650.C: New test.
16347
16348 2008-12-27 Jakub Jelinek <jakub@redhat.com>
16349
16350 * testsuite/libgomp.c/collapse-1.c (main): Add private(k) clause.
16351
16352 2008-12-26 Uros Bizjak <ubizjak@gmail.com>
16353
16354 * testsuite/libgomp.c/atomic-6.c: Add -mieee for alpha*-*-* targets.
16355
16356 2008-12-18 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
16357
16358 * configure: Regenerate.
16359
16360 2008-12-08 Jakub Jelinek <jakub@redhat.com>
16361
16362 PR middle-end/36802
16363 * testsuite/libgomp.c/pr36802-1.c: New test.
16364 * testsuite/libgomp.c/pr36802-2.c: New test.
16365 * testsuite/libgomp.c/pr36802-3.c: New test.
16366
16367 2008-12-01 Janis Johnson <janis187@us.ibm.com>
16368
16369 PR libgomp/38270
16370 * config/linux/powerpc/mutex.h: New.
16371
16372 2008-12-01 Jakub Jelinek <jakub@redhat.com>
16373
16374 PR c++/38257
16375 * testsuite/libgomp.c++/for-7.C: New test.
16376
16377 PR c++/38348
16378 * testsuite/libgomp.c++/for-6.C: New test.
16379
16380 2008-11-26 Janis Johnson <janis187@us.ibm.com>
16381
16382 PR testsuite/28870
16383 * testsuite/lib/libgomp.exp: Include new timeout library files.
16384 (libgomp_target_compile): Set timeout value from new proc.
16385
16386 2008-11-13 Steve Ellcey <sje@cup.hp.com>
16387
16388 PR libgomp/37938
16389 * config/linux/ia64/mutex.h: New.
16390
16391 2008-11-04 Tobias Burnus <burnus@net-b.de>
16392
16393 PR libgomp/37935
16394 * libgomp.texi (Runtime library routines, environment variables):
16395 Update for OpenMP version 3.0.
16396
16397 2008-09-26 Peter O'Gorman <pogma@thewrittenword.com>
16398 Steve Ellcey <sje@cup.hp.com>
16399
16400 * configure: Regenerate for new libtool.
16401 * Makefile.in: Ditto.
16402 * testsuite/Makefile.in: Ditto.
16403
16404 2008-09-19 Jakub Jelinek <jakub@redhat.com>
16405 Andreas Tobler <a.tobler@schweiz.org>
16406
16407 * config/bsd/proc.c: New file.
16408 * configure.tgt (*-*-darwin*): Use config_path "bsd posix".
16409 * configure.ac: Check for header <sys/sysctl.h>
16410 * configure: Regenerate.
16411 * config.h.in: Likewise.
16412
16413 2008-09-05 Janis Johnson <janis187@us.ibm.com>
16414
16415 * testsuite/ligbomp.c/c.exp: Unset lang_test_file only if it exists.
16416
16417 2008-08-31 Aaron W. LaFramboise <aaronavay62@aaronwl.com>
16418
16419 * Makefile.am (libgomp_la_LDFLAGS): Add -no-undefined.
16420 * Makefile.in: Regenerated.
16421 * testsuite/Makefile.in: Regenerated.
16422
16423 2008-08-21 Nathan Froyd <froydnj@codesourcery.com>
16424
16425 * testsuite/lib/libgomp.exp (libgomp_init): Only set things that
16426 depend on blddir if blddir exists.
16427 (libgomp_target_compile): Likewise.
16428 * testsuite/libgomp.c++/c++.exp: Likewise.
16429 * testsuite/libgomp.fortran/fortran.exp: Likewise.
16430
16431 2008-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
16432
16433 * libgomp.texi: Update to GFDL 1.2. Update copyright years.
16434 Do not list GPL as Invariant Section.
16435
16436 2008-07-28 Ilie Garbacea <ilie@mips.com>
16437 Chao-ying Fu <fu@mips.com>
16438
16439 * configure.tgt: Enable futex for MIPS.
16440 * config/linux/mips/futex.h: New file.
16441
16442 2008-07-16 Jakub Jelinek <jakub@redhat.com>
16443
16444 * team.c (gomp_team_end): Free team immediately if it has
16445 just one thread.
16446
16447 2008-07-08 David Edelsohn <edelsohn@gnu.org>
16448
16449 * testsuite/libgomp.c++/c++.exp: Append multilib library path.
16450 * testsuite/libgomp.fortran/fortran.exp: Same.
16451 * testsuite/libgomp.c/c.exp: Same.
16452 * testsuite/lib/libgomp.exp: Append AIX libgcc pthread multilib
16453 directory to library path first.
16454
16455 2008-06-29 Krister Walfridsson <krister.walfridsson@gmail.com>
16456
16457 * env.c (parse_stacksize): Add cast to avoid warning.
16458 (parse_spincount): Likewise.
16459
16460 2008-06-27 Jakub Jelinek <jakub@redhat.com>
16461
16462 * testsuite/libgomp.c/loop-10.c: New test.
16463 * libgomp.c/loop-3.c (main): Add lastprivate clause.
16464 * libgomp.c++/loop-6.C (main): Likewise.
16465
16466 PR debug/36617
16467 * testsuite/libgomp.c/debug-1.c: New test.
16468
16469 2008-06-19 Jakub Jelinek <jakub@redhat.com>
16470
16471 * testsuite/libgomp.c/nqueens-1.c: New test.
16472
16473 PR c++/36523
16474 * testsuite/libgomp.c++/task-7.C: New function.
16475
16476 2008-06-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
16477
16478 * configure: Regenerate.
16479
16480 2008-06-15 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
16481
16482 * env.c (initialize_env): Always initialize gomp_remaining_threads_lock
16483 mutex when HAVE_SYNC_BUILTINS isn't defined.
16484
16485 2008-06-15 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
16486
16487 * libgomp.texi (omp_test_lock): Fix typo.
16488
16489 2008-06-12 Tobias Burnus <burnus@net-b.de>
16490
16491 * omp_lib.f90.in: Add "implicit none".
16492
16493 2008-06-12 Jakub Jelinek <jakub@redhat.com>
16494
16495 PR middle-end/36506
16496 * testsuite/libgomp.c/reduction-5.c: New test.
16497
16498 2008-06-11 Jakub Jelinek <jakub@redhat.com>
16499
16500 * libgomp.h (struct gomp_task): Add in_tied_task field.
16501 * task.c (gomp_init_task): Initialize it.
16502 (GOMP_task): Likewise. Call gomp_team_barrier_set_task_pending
16503 unconditionally. Don't call gomp_team_barrier_wake if
16504 current task is implicit or if(0) from implicit and number of
16505 running tasks is equal to nthreads - 1.
16506
16507 PR libgomp/36471
16508 * omp_lib.f90.in (omp_get_ancestor_thread_num_8,
16509 omp_get_team_size_8): Fix pastos.
16510
16511 PR libgomp/36469
16512 * configure.ac: Add AC_CHECK_FUNCS (strtoull).
16513 * configure: Regenerated.
16514 * config.h.in: Regenerated.
16515 * env.c (strtoull): Define to strtoul if HAVE_STRTOULL is not
16516 defined.
16517
16518 2008-06-06 Andreas Tobler <a.tobler@schweiz.org>
16519
16520 PR bootstrap/36452
16521 * loop_ull.c (GOMP_loop_ull_static_start): Adjust API.
16522 (GOMP_loop_ull_dynamic_start): Likewise.
16523 (GOMP_loop_ull_guided_start): Likewise.
16524 (GOMP_loop_ull_ordered_static_start): Likewise.
16525 (GOMP_loop_ull_ordered_dynamic_start): Likewise.
16526 (GOMP_loop_ull_ordered_guided_start): Likewise.
16527
16528 2008-06-06 Jakub Jelinek <jakub@redhat.com>
16529 Richard Henderson <rth@redhat.com>
16530 Ulrich Drepper <drepper@redhat.com>
16531 Jakob Blomer <jakob.blomer@ira.uka.de>
16532
16533 * configure.ac (LIBGOMP_GNU_SYMBOL_VERSIONING): New AC_DEFINE.
16534 Substitute also OMP_*LOCK_25*.
16535 * configure: Regenerated.
16536 * config.h.in: Regenerated.
16537 * Makefile.am (libgomp_la_SOURCES): Add loop_ull.c, iter_ull.c,
16538 ptrlock.c and task.c.
16539 * Makefile.in: Regenerated.
16540 * testsuite/Makefile.in: Regenerated.
16541 * task.c: New file.
16542 * loop_ull.c: New file.
16543 * iter_ull.c: New file.
16544 * libgomp.h: Include ptrlock.h.
16545 (enum gomp_task_kind): New type.
16546 (struct gomp_team): Add task_lock, task_queue, task_count,
16547 task_running_count, single_count fields. Add
16548 work_share_list_free_lock ifndef HAVE_SYNC_BUILTINS.
16549 Remove work_share_lock, generation_mask,
16550 oldest_live_gen, num_live_gen and init_work_shares fields, add
16551 work work_share_list_alloc, work_share_list_free and work_share_chunk
16552 fields. Change work_shares from pointer to pointers into an array.
16553 Change ordered_release field into gomp_sem_t ** from flexible array
16554 member. Add implicit_task and initial_work_shares fields.
16555 Move close to the end of the struct.
16556 (struct gomp_team_state): Add single_count, last_work_share,
16557 active_level and level fields, remove work_share_generation.
16558 (gomp_barrier_handle_tasks): New prototype.
16559 (gomp_finish_task): New inline function.
16560 (struct gomp_work_share): Move chunk_size, end, incr into
16561 transparent union/struct, add chunk_size_ull, end_ll, incr_ll and
16562 next_ll fields. Reshuffle fields. Add next_alloc,
16563 next_ws, next_free and inline_ordered_team_ids fields, change
16564 ordered_team_ids into pointer from flexible array member.
16565 Add mode field. Put lock and next into a different cache line
16566 from most of the write-once fields.
16567 (gomp_iter_ull_static_next, gomp_iter_ull_dynamic_next_locked,
16568 gomp_iter_ull_guided_next_locked, gomp_iter_ull_dynamic_next,
16569 gomp_iter_ull_guided_next): New prototypes.
16570 (gomp_new_icv): New prototype.
16571 (struct gomp_thread): Add thread_pool and task fields.
16572 (struct gomp_thread_pool): New type.
16573 (gomp_new_team): New prototype.
16574 (gomp_team_start): Change type of last argument.
16575 (gomp_new_work_share): Removed.
16576 (gomp_init_work_share, gomp_fini_work_share): New prototypes.
16577 (gomp_work_share_init_done): New static inline.
16578 (gomp_throttled_spin_count_var, gomp_available_cpus,
16579 gomp_managed_threads): New extern decls.
16580 (gomp_init_task): New prototype.
16581 (gomp_spin_count_var): New extern var decl.
16582 (LIBGOMP_GNU_SYMBOL_VERSIONING): Undef if no visibility
16583 or no alias support, or if not PIC.
16584 (gomp_init_lock_30, gomp_destroy_lock_30, gomp_set_lock_30,
16585 gomp_unset_lock_30, gomp_test_lock_30, gomp_init_nest_lock_30,
16586 gomp_destroy_nest_lock_30, gomp_set_nest_lock_30,
16587 gomp_unset_nest_lock_30, gomp_test_nest_lock_30, gomp_init_lock_25,
16588 gomp_destroy_lock_25, gomp_set_lock_25, gomp_unset_lock_25,
16589 gomp_test_lock_25, gomp_init_nest_lock_25, gomp_destroy_nest_lock_25,
16590 gomp_set_nest_lock_25, gomp_unset_nest_lock_25,
16591 gomp_test_nest_lock_25): New prototypes.
16592 (omp_lock_symver, strong_alias): Define.
16593 (gomp_remaining_threads_count, gomp_remaining_threads_lock): New
16594 decls.
16595 (gomp_end_task): New.
16596 (struct gomp_task_icv, gomp_global_icv): New.
16597 (gomp_thread_limit_var, gomp_max_active_levels_var): New.
16598 (struct gomp_task): New.
16599 (gomp_nthreads_var, gomp_dyn_var, gomp_nest_var,
16600 gomp_run_sched_var, gomp_run_sched_chunk): Remove.
16601 (gomp_icv): New.
16602 (gomp_schedule_type): Reorder enum to match
16603 omp_sched_t.
16604 * team.c (struct gomp_thread_start_data): Add thread_pool and task
16605 fields.
16606 (gomp_thread_start): Add gomp_team_barrier_wait call.
16607 For non-nested case remove clearing of docked thread thr fields.
16608 Use pool fields instead of global gomp_* variables. Use
16609 gomp_barrier_wait_last when needed. Initialize ts.active_level.
16610 Create tasks for each member thread.
16611 (free_team): Only destroy team barrier, task_lock here and free it.
16612 (gomp_free_thread): Free last_team if non-NULL.
16613 (gomp_team_end): Call gomp_team_barrier_wait instead of
16614 gomp_barrier_wait. For nested case call one extra
16615 gomp_barrier_wait. Move here some destruction from free_team.
16616 Call free_team on pool->last_team if any, rather than freeing
16617 current team. Destroy work_share_list_free_lock ifndef
16618 HAVE_SYNC_BUILTINS.
16619 (gomp_new_icv): New function.
16620 (gomp_threads, gomp_threads_size, gomp_threads_used,
16621 gomp_threads_dock): Removed.
16622 (gomp_thread_destructor): New variable.
16623 (gomp_new_thread_pool, gomp_free_pool_helper, gomp_free_thread): New
16624 functions.
16625 (gomp_team_start): Create new pool if current thread doesn't have
16626 one. Use pool fields instead of global gomp_* variables.
16627 Initialize thread_pool field for new threads. Clear single_count.
16628 Change last argument from ws to team, don't create
16629 new team, set ts.work_share to &team->work_shares[0] and clear
16630 ts.last_work_share. Don't clear ts.work_share_generation.
16631 If number of threads changed, adjust atomically gomp_managed_threads.
16632 Use gomp_init_task instead of gomp_new_task,
16633 set thr->task to the corresponding implicit_task array entry.
16634 Create tasks for each member thread. Initialize ts.level.
16635 (initialize_team): Call pthread_key_create on
16636 gomp_thread_destructor.
16637 (team_destructor): New function.
16638 (new_team): Removed.
16639 (gomp_new_team): New function.
16640 (free_team): Free gomp_work_share blocks chained through next_alloc,
16641 instead of freeing work_shares and destroying work_share_lock.
16642 (gomp_team_end): Call gomp_fini_work_share. If number of threads
16643 changed, adjust atomically gomp_managed_threads. Use gomp_end_task.
16644 * barrier.c (GOMP_barrier): Call gomp_team_barrier_wait instead
16645 of gomp_barrier_wait.
16646 * single.c (GOMP_single_copy_start): Call gomp_team_barrier_wait
16647 instead of gomp_barrier_wait. Call gomp_work_share_init_done
16648 if gomp_work_share_start returned true. Don't unlock ws->lock.
16649 (GOMP_single_copy_end): Call gomp_team_barrier_wait instead
16650 of gomp_barrier_wait.
16651 (GOMP_single_start): Rewritten if HAVE_SYNC_BUILTINS. Call
16652 gomp_work_share_init_done if gomp_work_share_start returned true.
16653 Don't unlock ws->lock.
16654 * work.c: Include stddef.h.
16655 (free_work_share): Use work_share_list_free_lock instead
16656 of atomic chaining ifndef HAVE_SYNC_BUILTINS. Add team argument.
16657 Call gomp_fini_work_share and then either free ws if orphaned, or
16658 put it into work_share_list_free list of the current team.
16659 (alloc_work_share, gomp_init_work_share, gomp_fini_work_share): New
16660 functions.
16661 (gomp_work_share_start, gomp_work_share_end,
16662 gomp_work_share_end_nowait): Rewritten.
16663 * omp_lib.f90.in Change some tabs to spaces to prevent warnings.
16664 (openmp_version): Set to 200805.
16665 (omp_sched_kind, omp_sched_static, omp_sched_dynamic,
16666 omp_sched_guided, omp_sched_auto): New parameters.
16667 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
16668 omp_set_max_active_levels, omp_get_max_active_levels,
16669 omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
16670 omp_get_active_level): New interfaces.
16671 * omp_lib.h.in (openmp_version): Set to 200805.
16672 (omp_sched_kind, omp_sched_static, omp_sched_dynamic,
16673 omp_sched_guided, omp_sched_auto): New parameters.
16674 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
16675 omp_set_max_active_levels, omp_get_max_active_levels,
16676 omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
16677 omp_get_active_level): New externals.
16678 * loop.c: Include limits.h.
16679 (GOMP_loop_runtime_next, GOMP_loop_ordered_runtime_next): Handle
16680 GFS_AUTO.
16681 (GOMP_loop_runtime_start, GOMP_loop_ordered_runtime_start):
16682 Likewise. Use gomp_icv.
16683 (gomp_loop_static_start, gomp_loop_dynamic_start): Clear
16684 ts.static_trip here.
16685 (gomp_loop_static_start, gomp_loop_ordered_static_start): Call
16686 gomp_work_share_init_done after gomp_loop_init. Don't unlock ws->lock.
16687 (gomp_loop_dynamic_start, gomp_loop_guided_start): Call
16688 gomp_work_share_init_done after gomp_loop_init. If HAVE_SYNC_BUILTINS,
16689 don't unlock ws->lock, otherwise lock it.
16690 (gomp_loop_ordered_dynamic_start, gomp_loop_ordered_guided_start): Call
16691 gomp_work_share_init_done after gomp_loop_init. Lock ws->lock.
16692 (gomp_parallel_loop_start): Call gomp_new_team instead of
16693 gomp_new_work_share. Call gomp_loop_init on &team->work_shares[0].
16694 Adjust gomp_team_start caller. Pass 0 as second argument to
16695 gomp_resolve_num_threads.
16696 (gomp_loop_init): For GFS_DYNAMIC, multiply ws->chunk_size by incr.
16697 If adding ws->chunk_size nthreads + 1 times after end won't
16698 overflow, set ws->mode to 1.
16699 * libgomp_g.h (GOMP_loop_ull_static_start, GOMP_loop_ull_dynamic_start,
16700 GOMP_loop_ull_guided_start, GOMP_loop_ull_runtime_start,
16701 GOMP_loop_ull_ordered_static_start,
16702 GOMP_loop_ull_ordered_dynamic_start,
16703 GOMP_loop_ull_ordered_guided_start,
16704 GOMP_loop_ull_ordered_runtime_start, GOMP_loop_ull_static_next,
16705 GOMP_loop_ull_dynamic_next, GOMP_loop_ull_guided_next,
16706 GOMP_loop_ull_runtime_next, GOMP_loop_ull_ordered_static_next,
16707 GOMP_loop_ull_ordered_dynamic_next, GOMP_loop_ull_ordered_guided_next,
16708 GOMP_loop_ull_ordered_runtime_next, GOMP_task, GOMP_taskwait): New
16709 prototypes.
16710 * libgomp.map: Export lock routines also @@OMP_2.0.
16711 (GOMP_loop_ordered_dynamic_first,
16712 GOMP_loop_ordered_guided_first, GOMP_loop_ordered_runtime_first,
16713 GOMP_loop_ordered_static_first): Remove.
16714 (GOMP_loop_ull_dynamic_next, GOMP_loop_ull_dynamic_start,
16715 GOMP_loop_ull_guided_next, GOMP_loop_ull_guided_start,
16716 GOMP_loop_ull_ordered_dynamic_next,
16717 GOMP_loop_ull_ordered_dynamic_start,
16718 GOMP_loop_ull_ordered_guided_next,
16719 GOMP_loop_ull_ordered_guided_start,
16720 GOMP_loop_ull_ordered_runtime_next,
16721 GOMP_loop_ull_ordered_runtime_start,
16722 GOMP_loop_ull_ordered_static_next,
16723 GOMP_loop_ull_ordered_static_start,
16724 GOMP_loop_ull_runtime_next, GOMP_loop_ull_runtime_start,
16725 GOMP_loop_ull_static_next, GOMP_loop_ull_static_start,
16726 GOMP_task, GOMP_taskwait): Export @@GOMP_2.0.
16727 (omp_set_schedule, omp_get_schedule,
16728 omp_get_thread_limit, omp_set_max_active_levels,
16729 omp_get_max_active_levels, omp_get_level,
16730 omp_get_ancestor_thread_num, omp_get_team_size, omp_get_active_level,
16731 omp_set_schedule_, omp_set_schedule_8_,
16732 omp_get_schedule_, omp_get_schedule_8_, omp_get_thread_limit_,
16733 omp_set_max_active_levels_, omp_set_max_active_levels_8_,
16734 omp_get_max_active_levels_, omp_get_level_,
16735 omp_get_ancestor_thread_num_, omp_get_ancestor_thread_num_8_,
16736 omp_get_team_size_, omp_get_team_size_8_, omp_get_active_level_):
16737 New exports @@OMP_3.0.
16738 * omp.h.in (omp_sched_t): New type.
16739 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
16740 omp_set_max_active_levels, omp_get_max_active_levels,
16741 omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
16742 omp_get_active_level): New prototypes.
16743 * env.c (gomp_spin_count_var, gomp_throttled_spin_count_var,
16744 gomp_available_cpus, gomp_managed_threads, gomp_max_active_levels_var,
16745 gomp_thread_limit_var, gomp_remaining_threads_count,
16746 gomp_remaining_threads_lock): New variables.
16747 (parse_spincount): New function.
16748 (initialize_env): Call gomp_init_num_threads unconditionally.
16749 Initialize gomp_available_cpus. Call parse_spincount,
16750 initialize gomp_{,throttled_}spin_count_var
16751 depending on presence and value of OMP_WAIT_POLICY and
16752 GOMP_SPINCOUNT env vars. Handle GOMP_BLOCKTIME env var.
16753 Handle OMP_WAIT_POLICY, OMP_MAX_ACTIVE_LEVELS,
16754 OMP_THREAD_LIMIT, OMP_STACKSIZE env vars. Handle unit specification
16755 for GOMP_STACKSIZE. Initialize gomp_remaining_threads_count and
16756 gomp_remaining_threads_lock if needed. Use gomp_global_icv.
16757 (gomp_nthreads_var, gomp_dyn_var, gomp_nest_var,
16758 gomp_run_sched_var, gomp_run_sched_chunk): Remove.
16759 (gomp_global_icv): New.
16760 (parse_schedule): Use it. Parse "auto".
16761 (omp_set_num_threads): Use gomp_icv.
16762 (omp_set_dynamic, omp_get_dynamic, omp_set_nested, omp_get_nested):
16763 Likewise.
16764 (omp_get_max_threads): Move from parallel.c.
16765 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
16766 omp_set_max_active_levels, omp_get_max_active_levels): New functions,
16767 add ialias.
16768 (parse_stacksize, parse_wait_policy): New functions.
16769 * fortran.c: Rewrite lock wrappers, if symbol versioning provide
16770 both wrappers for compatibility and new locks.
16771 (omp_set_schedule, omp_get_schedule,
16772 omp_get_thread_limit, omp_set_max_active_levels,
16773 omp_get_max_active_levels, omp_get_level,
16774 omp_get_ancestor_thread_num, omp_get_team_size,
16775 omp_get_active_level): New ialias_redirect.
16776 (omp_set_schedule_, omp_set_schedule_8_,
16777 omp_get_schedule_, omp_get_schedule_8_, omp_get_thread_limit_,
16778 omp_set_max_active_levels_, omp_set_max_active_levels_8_,
16779 omp_get_max_active_levels_, omp_get_level_,
16780 omp_get_ancestor_thread_num_, omp_get_ancestor_thread_num_8_,
16781 omp_get_team_size_, omp_get_team_size_8_, omp_get_active_level_):
16782 New functions.
16783 * parallel.c: Include limits.h.
16784 (gomp_resolve_num_threads): Add count argument. Rewritten.
16785 (GOMP_parallel_start): Call gomp_new_team and pass that as last
16786 argument to gomp_team_start. Pass 0 as second argument to
16787 gomp_resolve_num_threads.
16788 (GOMP_parallel_end): Decrease gomp_remaining_threads_count
16789 if gomp_thread_limit_var != ULONG_MAX.
16790 (omp_in_parallel): Implement using ts.active_level.
16791 (omp_get_max_threads): Move to env.c.
16792 (omp_get_level, omp_get_ancestor_thread_num,
16793 omp_get_team_size, omp_get_active_level): New functions,
16794 add ialias.
16795 * sections.c (GOMP_sections_start): Call gomp_work_share_init_done
16796 after gomp_sections_init. If HAVE_SYNC_BUILTINS, call
16797 gomp_iter_dynamic_next instead of the _locked variant and don't take
16798 lock around it, otherwise acquire it before calling
16799 gomp_iter_dynamic_next_locked.
16800 (GOMP_sections_next): If HAVE_SYNC_BUILTINS, call
16801 gomp_iter_dynamic_next instead of the _locked variant and don't take
16802 lock around it.
16803 (GOMP_parallel_sections_start): Call gomp_new_team instead of
16804 gomp_new_work_share. Call gomp_sections_init on &team->work_shares[0].
16805 Adjust gomp_team_start caller. Pass count as second argument to
16806 gomp_resolve_num_threads, don't adjust num_threads after the call.
16807 Use gomp_icv.
16808 * iter.c (gomp_iter_dynamic_next_locked): Don't multiply
16809 ws->chunk_size by incr.
16810 (gomp_iter_dynamic_next): Likewise. If ws->mode, use more efficient
16811 code.
16812 * libgomp_f.h.in (omp_lock_25_arg_t, omp_nest_lock_25_arg_t): New
16813 types.
16814 (omp_lock_25_arg, omp_nest_lock_25_arg): New macros.
16815 (omp_check_defines): Check even the compat defines.
16816 * config/linux/ptrlock.c: New file.
16817 * config/linux/ptrlock.h: New file.
16818 * config/linux/wait.h: New file.
16819 * config/posix/ptrlock.c: New file.
16820 * config/posix/ptrlock.h: New file.
16821 * config/linux/bar.h (gomp_team_barrier_wait,
16822 gomp_team_barrier_wait_end, gomp_team_barrier_wake): New prototypes.
16823 (gomp_team_barrier_set_task_pending,
16824 gomp_team_barrier_clear_task_pending,
16825 gomp_team_barrier_set_waiting_for_tasks,
16826 gomp_team_barrier_waiting_for_tasks,
16827 gomp_team_barrier_done): New inlines.
16828 (gomp_barrier_t): Rewritten.
16829 (gomp_barrier_state_t): New typedef.
16830 (gomp_barrier_init, gomp_barrier_reinit, gomp_barrier_destroy,
16831 gomp_barrier_wait_start): Rewritten.
16832 (gomp_barrier_wait_end): Change second argument to
16833 gomp_barrier_state_t.
16834 (gomp_barrier_last_thread, gomp_barrier_wait_last): New static
16835 inlines.
16836 * config/linux/bar.c: Include wait.h instead of libgomp.h and
16837 futex.h.
16838 (gomp_barrier_wait_end): Rewritten.
16839 (gomp_team_barrier_wait, gomp_team_barrier_wait_end,
16840 gomp_team_barrier_wake, gomp_barrier_wait_last): New functions.
16841 * config/posix/bar.h (gomp_barrier_t): Add generation field.
16842 (gomp_barrier_state_t): New typedef.
16843 (gomp_team_barrier_wait,
16844 gomp_team_barrier_wait_end, gomp_team_barrier_wake): New prototypes.
16845 (gomp_barrier_wait_start): Or all but low 2 bits from generation
16846 into the return value. Return gomp_barrier_state_t.
16847 (gomp_team_barrier_set_task_pending,
16848 gomp_team_barrier_clear_task_pending,
16849 gomp_team_barrier_set_waiting_for_tasks,
16850 gomp_team_barrier_waiting_for_tasks,
16851 gomp_team_barrier_done): New inlines.
16852 (gomp_barrier_wait_end): Change second argument to
16853 gomp_barrier_state_t.
16854 (gomp_barrier_last_thread, gomp_barrier_wait_last): New static
16855 inlines.
16856 * config/posix/bar.c (gomp_barrier_init): Clear generation field.
16857 (gomp_barrier_wait_end): Change second argument to
16858 gomp_barrier_state_t.
16859 (gomp_team_barrier_wait, gomp_team_barrier_wait_end,
16860 gomp_team_barrier_wake): New functions.
16861 * config/linux/mutex.c: Include wait.h instead of libgomp.h and
16862 futex.h.
16863 (gomp_futex_wake, gomp_futex_wait): New variables.
16864 (gomp_mutex_lock_slow): Call do_wait instead of futex_wait.
16865 * config/linux/lock.c: Rewrite to make locks task owned,
16866 for backwards compatibility provide the old entrypoints
16867 if symbol versioning. Include wait.h instead of libgomp.h and
16868 futex.h.
16869 (gomp_set_nest_lock_25): Call do_wait instead of futex_wait.
16870 * config/posix95/lock.c: Rewrite to make locks task owned,
16871 for backwards compatibility provide the old entrypoints
16872 if symbol versioning.
16873 * config/posix/lock.c: Rewrite to make locks task owned,
16874 for backwards compatibility provide the old entrypoints
16875 if symbol versioning.
16876 * config/linux/proc.c (gomp_init_num_threads): Use gomp_global_icv.
16877 (get_num_procs, gomp_dynamic_max_threads): Use gomp_icv.
16878 * config/posix/proc.c, config/mingw32/proc.c: Similarly.
16879 * config/linux/powerpc/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
16880 (sys_futex0): Return error code.
16881 (futex_wake, futex_wait): If ENOSYS was returned, clear
16882 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
16883 (cpu_relax, atomic_write_barrier): New static inlines.
16884 * config/linux/alpha/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
16885 (futex_wake, futex_wait): If ENOSYS was returned, clear
16886 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
16887 (cpu_relax, atomic_write_barrier): New static inlines.
16888 * config/linux/x86/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
16889 (sys_futex0): Return error code.
16890 (futex_wake, futex_wait): If ENOSYS was returned, clear
16891 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
16892 (cpu_relax, atomic_write_barrier): New static inlines.
16893 * config/linux/s390/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
16894 (sys_futex0): Return error code.
16895 (futex_wake, futex_wait): If ENOSYS was returned, clear
16896 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
16897 (cpu_relax, atomic_write_barrier): New static inlines.
16898 * config/linux/ia64/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
16899 (sys_futex0): Return error code.
16900 (futex_wake, futex_wait): If ENOSYS was returned, clear
16901 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
16902 (cpu_relax, atomic_write_barrier): New static inlines.
16903 * config/linux/sparc/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
16904 (sys_futex0): Return error code.
16905 (futex_wake, futex_wait): If ENOSYS was returned, clear
16906 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
16907 (cpu_relax, atomic_write_barrier): New static inlines.
16908 * config/linux/sem.c: Include wait.h instead of libgomp.h and
16909 futex.h.
16910 (gomp_sem_wait_slow): Call do_wait instead of futex_wait.
16911 * config/linux/affinity.c: Assume HAVE_SYNC_BUILTINS.
16912 * config/linux/omp-lock.h (omp_lock_25_t, omp_nest_lock_25_t): New
16913 types.
16914 (omp_nest_lock_t): Change owner into void *, add lock field.
16915 * config/posix95/omp-lock.h: Include semaphore.h.
16916 (omp_lock_25_t, omp_nest_lock_25_t): New types.
16917 (omp_lock_t): Use sem_t instead of mutex if semaphores
16918 aren't broken.
16919 (omp_nest_lock_t): Likewise. Change owner to void *.
16920 * config/posix/omp-lock.h: Include semaphore.h.
16921 (omp_lock_25_t, omp_nest_lock_25_t): New types.
16922 (omp_lock_t): Use sem_t instead of mutex if semaphores
16923 aren't broken.
16924 (omp_nest_lock_t): Likewise. Add owner field.
16925
16926 2008-06-06 Jakub Jelinek <jakub@redhat.com>
16927
16928 * testsuite/libgomp.c/collapse-1.c: New test.
16929 * testsuite/libgomp.c/collapse-2.c: New test.
16930 * testsuite/libgomp.c/collapse-3.c: New test.
16931 * testsuite/libgomp.c/icv-1.c: New test.
16932 * testsuite/libgomp.c/icv-2.c: New test.
16933 * testsuite/libgomp.c/lib-2.c: New test.
16934 * testsuite/libgomp.c/lock-1.c: New test.
16935 * testsuite/libgomp.c/lock-2.c: New test.
16936 * testsuite/libgomp.c/lock-3.c: New test.
16937 * testsuite/libgomp.c/loop-4.c: New test.
16938 * testsuite/libgomp.c/loop-5.c: New test.
16939 * testsuite/libgomp.c/loop-6.c: New test.
16940 * testsuite/libgomp.c/loop-7.c: New test.
16941 * testsuite/libgomp.c/loop-8.c: New test.
16942 * testsuite/libgomp.c/loop-9.c: New test.
16943 * testsuite/libgomp.c/nested-3.c: New test.
16944 * testsuite/libgomp.c/nestedfn-6.c: New test.
16945 * testsuite/libgomp.c/sort-1.c: New test.
16946 * testsuite/libgomp.c/task-1.c: New test.
16947 * testsuite/libgomp.c/task-2.c: New test.
16948 * testsuite/libgomp.c/task-3.c: New test.
16949 * testsuite/libgomp.c/task-4.c: New test.
16950 * testsuite/libgomp.c++/c++.exp: Add libstdc++-v3 build includes
16951 to C++ testsuite default compiler options.
16952 * testsuite/libgomp.c++/collapse-1.C: New test.
16953 * testsuite/libgomp.c++/collapse-2.C: New test.
16954 * testsuite/libgomp.c++/ctor-10.C: New test.
16955 * testsuite/libgomp.c++/for-1.C: New test.
16956 * testsuite/libgomp.c++/for-2.C: New test.
16957 * testsuite/libgomp.c++/for-3.C: New test.
16958 * testsuite/libgomp.c++/for-4.C: New test.
16959 * testsuite/libgomp.c++/for-5.C: New test.
16960 * testsuite/libgomp.c++/loop-8.C: New test.
16961 * testsuite/libgomp.c++/loop-9.C: New test.
16962 * testsuite/libgomp.c++/loop-10.C: New test.
16963 * testsuite/libgomp.c++/task-1.C: New test.
16964 * testsuite/libgomp.c++/task-2.C: New test.
16965 * testsuite/libgomp.c++/task-3.C: New test.
16966 * testsuite/libgomp.c++/task-4.C: New test.
16967 * testsuite/libgomp.c++/task-5.C: New test.
16968 * testsuite/libgomp.c++/task-6.C: New test.
16969 * testsuite/libgomp.fortran/allocatable1.f90: New test.
16970 * testsuite/libgomp.fortran/allocatable2.f90: New test.
16971 * testsuite/libgomp.fortran/allocatable3.f90: New test.
16972 * testsuite/libgomp.fortran/allocatable4.f90: New test.
16973 * testsuite/libgomp.fortran/collapse1.f90: New test.
16974 * testsuite/libgomp.fortran/collapse2.f90: New test.
16975 * testsuite/libgomp.fortran/collapse3.f90: New test.
16976 * testsuite/libgomp.fortran/collapse4.f90: New test.
16977 * testsuite/libgomp.fortran/lastprivate1.f90: New test.
16978 * testsuite/libgomp.fortran/lastprivate2.f90: New test.
16979 * testsuite/libgomp.fortran/lib4.f90: New test.
16980 * testsuite/libgomp.fortran/lock-1.f90: New test.
16981 * testsuite/libgomp.fortran/lock-2.f90: New test.
16982 * testsuite/libgomp.fortran/nested1.f90: New test.
16983 * testsuite/libgomp.fortran/nestedfn4.f90: New test.
16984 * testsuite/libgomp.fortran/strassen.f90: New test.
16985 * testsuite/libgomp.fortran/tabs1.f90: New test.
16986 * testsuite/libgomp.fortran/tabs2.f: New test.
16987 * testsuite/libgomp.fortran/task1.f90: New test.
16988 * testsuite/libgomp.fortran/task2.f90: New test.
16989 * testsuite/libgomp.fortran/vla4.f90: Add dg-warning.
16990 * testsuite/libgomp.fortran/vla5.f90: Likewise.
16991 * testsuite/libgomp.c/pr26943-2.c: Likewise.
16992 * testsuite/libgomp.c/pr26943-3.c: Likewise.
16993 * testsuite/libgomp.c/pr26943-4.c: Likewise.
16994
16995 2008-05-23 Jakub Jelinek <jakub@redhat.com>
16996
16997 PR c++/36308
16998 * testsuite/libgomp.c++/ctor-11.C: New test.
16999 * testsuite/libgomp.c++/ctor-12.C: New test.
17000
17001 2008-05-15 Janis Johnson <janis187@us.ibm.com>
17002
17003 * testsuite/lib/libgomp.exp: Load torture-options.exp from gcc lib.
17004
17005 2008-05-07 Jakub Jelinek <jakub@redhat.com>
17006
17007 PR middle-end/36106
17008 * testsuite/libgomp.c/atomic-5.c: New test.
17009 * testsuite/libgomp.c/atomic-6.c: New test.
17010 * testsuite/libgomp.c/autopar-1.c: New test.
17011
17012 2008-04-21 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
17013
17014 * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS)
17015 (LIBGOMP_CHECK_ATTRIBUTE_VISIBILITY)
17016 (LIBGOMP_CHECK_ATTRIBUTE_DLLEXPORT)
17017 (LIBGOMP_CHECK_ATTRIBUTE_ALIAS): Fix cache variable names.
17018 * configure: Regenerate.
17019 * Makefile.in, testsuite/Makefile.in: Likewise.
17020
17021 2008-04-18 Paolo Bonzini <bonzini@gnu.org>
17022
17023 PR bootstrap/35457
17024 * aclocal.m4: Regenerate.
17025 * configure: Regenerate.
17026
17027 2008-03-18 Jakub Jelinek <jakub@redhat.com>
17028
17029 PR middle-end/35611
17030 * testsuite/libgomp.c/atomic-4.c: New test.
17031
17032 PR libgomp/35625
17033 * iter.c (gomp_iter_guided_next_locked): If q > n, set end to ws->end.
17034 (gomp_iter_guided_next): Likewise.
17035 * testsuite/libgomp.c/pr35625.c: New test.
17036
17037 2008-03-16 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
17038
17039 * aclocal.m4: Regenerate.
17040 * configure: Likewise.
17041 * Makefile.in: Likewise.
17042 * testsuite/Makefile.in: Likewise.
17043
17044 2008-03-13 Jakub Jelinek <jakub@redhat.com>
17045
17046 PR middle-end/35185
17047 * testsuite/libgomp.c++/pr35185.C: New test.
17048
17049 2008-03-12 Jakub Jelinek <jakub@redhat.com>
17050
17051 PR middle-end/35549
17052 * testsuite/libgomp.c/pr35549.c: New test.
17053
17054 2008-03-06 Jakub Jelinek <jakub@redhat.com>
17055
17056 * testsuite/libgomp.c/atomic-3.c: New test.
17057
17058 2008-03-03 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
17059
17060 PR fortran/33197
17061 * testsuite/libgomp.fortran/fortran.exp: Add .f08 and
17062 .F08 file suffixes.
17063
17064 2008-03-03 Peter O'Gorman <pogma@thewrittenword.com>
17065
17066 PR libgomp/33131
17067 * configure.ac: Add ACX_HEADER_STRING.
17068 * env.c: Include strings.h.
17069 * aclocal.m4: Regenerate.
17070 * config.h.in: Regenerate.
17071 * configure: Regenerate.
17072 * Makefile.in: Regenerate.
17073 * testsuite/Makefile.in: Regenerate.
17074
17075 2008-02-15 Jakub Jelinek <jakub@redhat.com>
17076
17077 PR middle-end/35196
17078 * testsuite/libgomp.c/pr35196.c: New test.
17079
17080 PR middle-end/35130
17081 * testsuite/libgomp.fortran/pr35130.f90: New test.
17082 * testsuite/libgomp.c/pr35130.c: New test.
17083
17084 2008-01-25 Jakub Jelinek <jakub@redhat.com>
17085
17086 PR middle-end/33880
17087 * testsuite/libgomp.c/pr33880.c: New test.
17088 * testsuite/libgomp.fortran/pr33880.f90: New test.
17089
17090 2008-01-24 David Edelsohn <edelsohn@gnu.org>
17091
17092 * configure: Regenerate.
17093
17094 2008-01-08 Jakub Jelinek <jakub@redhat.com>
17095
17096 * configure.ac: Move futex checking into ../config/futex.m4.
17097 * configure: Rebuilt.
17098 * aclocal.m4: Rebuilt.
17099 * Makefile.in: Rebuilt.
17100
17101 * configure.tgt: Rename have_tls to gcc_cv_have_tls to match
17102 2007-10-15 ../config/tls.m4 change.
17103
17104 2007-12-19 Jakub Jelinek <jakub@redhat.com>
17105
17106 PR c++/34513
17107 * testsuite/libgomp.c/pr34513.c: New test.
17108 * testsuite/libgomp.c++/pr34513.C: New test.
17109
17110 2007-12-17 Jack Howarth <howarth@bromo.med.uc.edu>
17111
17112 PR target/32765
17113 * testsuite/libgomp.fortran/crayptr2.f90: Move dg-options for darwin.
17114
17115 2007-12-04 Jakub Jelinek <jakub@redhat.com>
17116
17117 * omp.h.in (__GOMP_NOTHROW): Define. Use it on omp_* prototypes.
17118
17119 2007-12-03 Jakub Jelinek <jakub@redhat.com>
17120
17121 * testsuite/libgomp.c/private-1.c: New test.
17122
17123 2007-11-29 Andris Pavenis <andris.pavenis@iki.fi>
17124 Paolo Bonzini <bonzini@gnu.org>
17125
17126 * Makefile.am: Use space as vpath separator. Use 'vpath %'
17127 instead of 'VPATH ='.
17128 * Makefile.in: Regenerate.
17129
17130 2007-11-23 Matthias Klose <doko@ubuntu.com>
17131
17132 * configure.ac: Adjust makeinfo version check.
17133 * configure: Regenerate.
17134
17135 2007-11-10 Jakub Jelinek <jakub@redhat.com>
17136
17137 PR fortran/34020
17138 * testsuite/libgomp.fortran/pr34020.f90: New test.
17139
17140 2007-11-06 Jakub Jelinek <jakub@redhat.com>
17141
17142 PR c++/33894
17143 * testsuite/libgomp.c++/atomic-1.C: New test.
17144
17145 2007-10-25 Jakub Jelinek <jakub@redhat.com>
17146
17147 PR libgomp/33275
17148 * testsuite/libgomp.fortran/omp_parse3.f90 (test_threadprivate):
17149 Make x and y integers rather than (implicit) reals. Add private (j)
17150 clause to the last omp parallel.
17151
17152 2007-10-15 Maciej W. Rozycki <macro@linux-mips.org>
17153
17154 * configure: Regenerate following changes to ../config/tls.m4.
17155
17156 2007-09-28 Jakub Jelinek <jakub@redhat.com>
17157
17158 * testsuite/libgomp.fortran/stack.f90: New test.
17159
17160 2007-09-10 Danny Smith <dannysmith@users.sourceforge.net>
17161
17162 * config/mingw32/proc.c: New file.
17163
17164 2007-09-05 Uros Bizjak <ubizjak@gmail.com>
17165
17166 * testsuite/libgomp.c/atomic-1.c: Include cpuid.h for i386 targets.
17167 (main): Use __get_cpuid to get i386 target fetaures.
17168 * testsuite/libgomp.c/atomic-2.c: Include cpuid.h for x86_64 targets.
17169 (main): Use __get_cpuid to get x86_64 target fetaures.
17170
17171 2007-08-15 Jack Howarth <howarth@bromo.med.uc.edu>
17172
17173 PR target/32765
17174 * testsuite/libgomp.fortran/pr32550.f90: Use -static-libgcc on Darwin.
17175 * testsuite/libgomp.fortran/crayptr2.f90: Likwise.
17176
17177 2007-07-12 Jakub Jelinek <jakub@redhat.com>
17178
17179 PR fortran/32550
17180 * testsuite/libgomp.fortran/pr32550.f90: New test.
17181 * testsuite/libgomp.fortran/crayptr2.f90: New test.
17182
17183 2007-07-05 H.J. Lu <hongjiu.lu@intel.com>
17184
17185 * aclocal.m4: Regenerated.
17186
17187 2007-07-05 Tobias Burnus <burnus@net-b.de>
17188
17189 PR fortran/32359
17190 * testsuite/libgomp.fortran/pr32359.f90: New.
17191
17192 2007-07-02 Jakub Jelinek <jakub@redhat.com>
17193
17194 PR libgomp/32468
17195 * sections.c (GOMP_parallel_sections_start): Only decrease
17196 number of threads to COUNT if dyn_var is true.
17197 * testsuite/libgomp.c/pr32468.c: New test.
17198
17199 2007-07-02 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
17200
17201 PR libgomp/26308
17202 * config/posix/lock.c (_XOPEN_SOURCE): Don't define on Tru64 UNIX.
17203
17204 2007-06-21 Jakub Jelinek <jakub@redhat.com>
17205
17206 PR middle-end/32362
17207 * testsuite/libgomp.c/pr32362-1.c: New test.
17208 * testsuite/libgomp.c/pr32362-2.c: New test.
17209 * testsuite/libgomp.c/pr32362-3.c: New test.
17210
17211 2007-06-07 Jakub Jelinek <jakub@redhat.com>
17212
17213 * team.c (gomp_team_start): Fix setting up thread_attr
17214 stack size.
17215
17216 2007-06-02 Paolo Bonzini <bonzini@gnu.org>
17217
17218 * configure: Regenerate.
17219
17220 2007-05-23 Steve Ellcey <sje@cup.hp.com>
17221
17222 * Makefile.in: Regenerate.
17223 * configure: Regenerate.
17224 * aclocal.m4: Regenerate.
17225 * testsuite/Makefile.in: Regenerate.
17226
17227 2007-05-04 Jakub Jelinek <jakub@redhat.com>
17228
17229 * config/linux/proc.c: New file.
17230
17231 PR libgomp/28482
17232 * configure.tgt: Don't link with -Wl,-z,nodlopen even on Linux.
17233
17234 2007-04-19 Daniel Franke <franke.daniel@gmail.com>
17235
17236 * libgomp.texi (GOMP_CPU_AFFINITY): Updated.
17237
17238 2007-04-16 Matthias Klose <doko@debian.org>
17239
17240 * configure.tgt (i[456]86-*-linux*): Only add ia32 specific
17241 flags if not building with -m64.
17242 * testsuite/lib/libgomp-dg.exp (libgomp_init): Don't add -march
17243 flag for i?86-*-* targets, if current target matches -m64.
17244
17245 2007-04-14 Steve Ellcey <sje@cup.hp.com>
17246
17247 * Makefile.am: Add -I .. to ACLOCAL_AMFLAGS.
17248 * Makefile.in: Regenerate.
17249
17250 2007-04-07 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
17251
17252 PR testsuite/31369
17253 * testsuite/libgomp.c++/c++.exp: Don't use concat when setting
17254 ld_library_path.
17255 * testsuite/libgomp.fortran/fortran.exp: Likewise.
17256
17257 2007-04-04 Jakub Jelinek <jakub@redhat.com>
17258
17259 * libgomp.h (gomp_cpu_affinity, gomp_cpu_affinity_len): New extern
17260 decls.
17261 (gomp_init_affinity, gomp_init_thread_affinity): New prototypes.
17262 * env.c (gomp_cpu_affinity, gomp_cpu_affinity_len): New variables.
17263 (parse_affinity): New function.
17264 (initialize_env): Call it and gomp_init_affinity.
17265 * team.c (gomp_team_start): If gomp_cpu_affinity != NULL,
17266 create new pthread_attr_t and call gomp_init_thread_affinity
17267 on it for each thread before passing the attribute to pthread_create.
17268 * config/linux/affinity.c: New file.
17269 * config/posix/affinity.c: New file.
17270 * configure.ac (HAVE_PTHREAD_AFFINITY_NP): New test.
17271 * configure: Rebuilt.
17272 * config.h.in: Rebuilt.
17273 * Makefile.am (libgomp_la_SOURCES): Add affinity.c.
17274 * Makefile.in: Rebuilt.
17275
17276 2007-03-23 Andreas Tobler <a.tobler@schweiz.org>
17277
17278 * testsuite/lib/libgomp.exp (libgomp_init): Add -shared-libgcc for
17279 *-*-darwin*.
17280 * testsuite/libgomp.c++/c++.exp: Look for shared libstdc++ library
17281 and use it if found.
17282
17283 2007-03-18 Uros Bizjak <ubizjak@gmail.com>
17284
17285 * testsuite/config/default.exp: New file.
17286 * testsuite/lib/libgomp.exp: New file.
17287 * testsuite/lib/libgomp.dg (load_gcc_lib, libgomp_init,
17288 libgomp_target_compile, libgomp_option_help, libgomp_option_proc,
17289 load_lib *, load_gcc_lib *): Move to libgomp.exp.
17290 (libgomp_load): Remove.
17291 * testsuite/lib/libgomp.exp (libgomp_init): Compute
17292 always_ld_library_path, not ld_library_path. Set additional_flags
17293 to -march=i486 for ilp32 x86_64-*-* and i386-*-* targets.
17294 (target_compile): Do not call libgomp_init. Append lang_library_path
17295 and lang_link_flags to options.
17296 * testsuite/libgomp.c/c.exp: Set DEFAULT_FLAGS to -O2. Set
17297 ld_library_path from always_ld_library_path. Set LD_LIBRARY_PATH
17298 here.
17299 * testsuite/libgomp.c++/c++.exp: Set ld_library_path from
17300 always_ld_library_path. Set LD_LIBRARY_PATH here.
17301 * testsuite/libgomp.fortran/fortran.exp: Ditto.
17302 * testsuite/libgomp.c/atomic-1.c: Set dg-options to
17303 "-O2 -march=pentium" for ilp32 x86 targets. Simplify check for
17304 CX8 flag.
17305 * testsuite/libgomp.c/atomic-2.c: Set dg-options to "-O2 -mcx16" for
17306 lp64 x86 targets. Do not check for SSE3 bit. Do not define bit_SSE3.
17307 * testsuite/libgomp.c/pr29947-1.c: Remove default dg-options.
17308 * testsuite/libgomp.c/pr29947-1.c: Ditto.
17309 * testsuite/libgomp.c/atomic-10.c: Ditto.
17310
17311 2007-03-21 Jakub Jelinek <jakub@redhat.com>
17312
17313 * testsuite/libgomp.fortran/appendix-a/a.22.8.f90: Add
17314 dg-final cleanup-modules line.
17315 * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: Likewise.
17316 * testsuite/libgomp.fortran/appendix-a/a.31.5.f90: Likewise.
17317 * testsuite/libgomp.fortran/appendix-a/a.31.4.f90: Likewise.
17318 * testsuite/libgomp.fortran/threadprivate2.f90: Likewise.
17319 * testsuite/libgomp.fortran/reduction5.f90: Likewise.
17320 * testsuite/libgomp.fortran/threadprivate3.f90: Likewise.
17321 * testsuite/libgomp.fortran/threadprivate1.f90: Likewise.
17322
17323 2007-03-18 Andreas Schwab <schwab@suse.de>
17324
17325 * acinclude.m4: Adjust regular expression for ld version
17326 extraction.
17327 * configure: Regenerate.
17328
17329 2007-03-01 Brooks Moses <brooks.moses@codesourcery.com>
17330
17331 * Makefile.am: Add install-pdf target as copied from
17332 automake v1.10 rules.
17333 * Makefile.in: Regenerate
17334
17335 2007-02-07 Jakub Jelinek <jakub@redhat.com>
17336
17337 PR libgomp/28486
17338 * configure: Regenerate.
17339
17340 PR c++/30703
17341 * testsuite/libgomp.c++/pr30703.C: New test.
17342
17343 2007-02-02 Jakub Jelinek <jakub@redhat.com>
17344
17345 Revert:
17346 2006-07-05 Eric Christopher <echristo@apple.com>
17347 * configure.ac: Depend addition of -pthread on host OS.
17348 * configure: Regenerate.
17349
17350 2007-01-31 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
17351
17352 * libgomp.texi: Fix spacing after abbreviations.
17353
17354 2007-01-31 Daniel Franke <franke.daniel@gmail.com>
17355
17356 PR libgomp/30546
17357 * configure.ac: Add check for makeinfo
17358 * Makefile.am: Redefined target libgomp.info, build libgomp.info only
17359 if an appropriate version of makeinfo is found.
17360 * aclocal.m4: Regenerated.
17361 * configure: Regenerated.
17362 * Makefile.in: Regenerated.
17363 * testsuite/Makefile.in: Regenerated.
17364
17365 2007-01-29 Daniel Franke <franke.daniel@gmail.com>
17366
17367 PR libgomp/30540
17368 * libgomp.texi: More about implementation-dependent settings.
17369
17370 2007-01-26 Tobias Burnus <burnus@net-b.de>
17371
17372 * testsuite/libgomp.fortran/fortran.exp: Support .f03 extension.
17373
17374 2007-01-24 Jakub Jelinek <jakub@redhat.com>
17375
17376 PR middle-end/30494
17377 * testsuite/libgomp.c/pr30494.c: New test.
17378
17379 2007-01-15 Tom Tromey <tromey@redhat.com>
17380
17381 * configure: Rebuilt.
17382 * configure.ac: Fixed comment.
17383
17384 2007-01-14 Daniel Franke <franke.daniel@gmail.com>
17385
17386 * libgomp.texi: Document implementation specific default values of
17387 environment variables.
17388
17389 2006-12-21 Daniel Franke <franke.daniel@gmail.com>
17390
17391 PR libgomp/28209
17392 * libgomp.texi: New file.
17393 * configure.ac: Add --enable-generated-files-in-srcdir option.
17394 * Makefile.am: Add info, dvi, pdf, html targets. On request, copy
17395 files to srcdir.
17396 * Makefile.in: Regenerated.
17397 * config.h.in: Regenerated.
17398 * testsuite/Makefile.in: Regenerated.
17399 * NOTES: Removed.
17400
17401 2006-12-04 Daniel Franke <franke.daniel@gmail.com>
17402
17403 PR libgomp/29949
17404 * env.c (omp_set_num_threads): Set illegal thread count to 1.
17405
17406 2006-12-04 Eric Botcazou <ebotcazou@libertysurf.fr>
17407
17408 * configure: Regenerate.
17409
17410 2006-12-04 Jakub Jelinek <jakub@redhat.com>
17411
17412 PR libgomp/29947
17413 * loop.c (gomp_loop_init): Make parameters signed. Set ws->end to
17414 start if there shouldn't be any loop iterations.
17415 (gomp_loop_ordered_static_start): Remove start == end test.
17416 * testsuite/libgomp.c/pr29947-1.c: New test.
17417 * testsuite/libgomp.c/pr29947-2.c: New test.
17418
17419 2006-12-02 Eric Botcazou <ebotcazou@libertysurf.fr>
17420
17421 * configure.tgt: Force initial-exec TLS model on Linux only.
17422
17423 2006-11-13 Daniel Jacobowitz <dan@codesourcery.com>
17424
17425 * configure: Regenerated.
17426
17427 2006-11-09 Uros Bizjak <ubizjak@gmail.com>
17428
17429 * env.c (parse_schedule): Reject out of range values.
17430 (parse_unsigned_long): Reject out of range, negative or zero values.
17431
17432 2006-10-29 Jakub Jelinek <jakub@redhat.com>
17433
17434 PR fortran/29629
17435 * testsuite/libgomp.fortran/pr29629.f90: New test.
17436
17437 2006-10-24 Eric Botcazou <ebotcazou@libertysurf.fr>
17438
17439 PR libgomp/29494
17440 * configure.tgt: Use posix95 configuration for Solaris 2.5.1 and 2.6.
17441 * config/posix95: New directory.
17442 * config/posix95/omp-lock.h: New file.
17443 * config/posix95/lock.c: Likewise.
17444
17445 2006-10-14 Geoffrey Keating <geoffk@apple.com>
17446
17447 * aclocal.m4: Regenerate.
17448 * configure: Regenerate.
17449
17450 2006-10-05 Danny Smith <dannysmith@users.sourceforge.net>
17451
17452 * testsuite/libgomp.c/barrier-1.c: Change timestamp tests from
17453 '<' to '<='.
17454
17455 2006-10-05 Danny Smith <dannysmith@users.sourceforge.net>
17456
17457 * acinclude.m4 (HAVE_ATTRIBUTE_ALIAS): Remove __USER_LABEL_PREFIX__ from
17458 test.
17459 * configure: Regenerate.
17460 * fortran.c (ialias_redirect): Add __USER_LABEL_PREFIX__ to alias.
17461
17462 2006-09-26 Jakub Jelinek <jakub@redhat.com>
17463
17464 PR middle-end/25261
17465 PR middle-end/28790
17466 * testsuite/libgomp.c/nestedfn-4.c: New test.
17467 * testsuite/libgomp.c/nestedfn-5.c: New test.
17468 * testsuite/libgomp.fortran/nestedfn3.f90: New test.
17469
17470 PR fortran/29097
17471 * testsuite/libgomp.fortran/condinc1.f: New test.
17472 * testsuite/libgomp.fortran/condinc2.f: New test.
17473 * testsuite/libgomp.fortran/condinc3.f90: New test.
17474 * testsuite/libgomp.fortran/condinc4.f90: New test.
17475 * testsuite/libgomp.fortran/condinc1.inc: New file.
17476
17477 2006-09-18 Tom Tromey <tromey@redhat.com>
17478
17479 * configure: Rebuilt.
17480
17481 2006-09-13 Joseph S. Myers <joseph@codesourcery.com>
17482
17483 PR c/28768
17484 PR preprocessor/14634
17485 * configure.ac (HAVE_CLOCK_GETTIME): Add missing second argument
17486 to AC_DEFINE.
17487 * configure: Regenerate.
17488
17489 2006-09-08 Steven G. Kargl <kargl@gcc.gnu.org>
17490
17491 * testsuite/libgomp.fortran/reduction3.f90: Change
17492 -2147483648 to -huge(i)-1 to avoid overflow.
17493 * testsuite/libgomp.fortran/reduction4.f90: Change
17494 Z'ffffffff' to not(0) to avoid overflow.
17495
17496 2006-08-26 Joseph S. Myers <joseph@codesourcery.com>
17497
17498 PR libgomp/25938
17499 * Makefile.am (libsubincludedir): New.
17500 (nodist_include_HEADERS): Rename to nodist_libsubinclude_HEADERS.
17501 * Makefile.in: Regenerate.
17502
17503 2006-08-17 Jakub Jelinek <jakub@redhat.com>
17504
17505 PR libgomp/28725
17506 * env.c: Include ctype.h.
17507 (parse_schedule, parse_unsigned_long, parse_boolean): Allow
17508 leading and/or trailing whitespace and compare strings case
17509 insensitively.
17510
17511 2006-07-16 Jakub Jelinek <jakub@redhat.com>
17512
17513 PR fortran/28390
17514 * testsuite/libgomp.fortran/pr28390.f: New test.
17515
17516 2006-07-05 Eric Christopher <echristo@apple.com>
17517
17518 * configure.ac: Depend addition of -pthread on host OS.
17519 * configure: Regenerate.
17520
17521 2006-06-21 Jakub Jelinek <jakub@redhat.com>
17522
17523 * critical.c (GOMP_critical_name_start): Fix *pptr initialization
17524 when gomp_mutex_t is larger than pointer and HAVE_SYNC_BUILTINS is
17525 defined.
17526
17527 2006-06-20 Jakub Jelinek <jakub@redhat.com>
17528
17529 PR libgomp/26175
17530 PR libgomp/26477
17531 * configure.ac: If neither --enable-linux-futex nor
17532 --disable-linux-futex is passed, determine the default by checking
17533 for compiling and/or running against NPTL. With --enable-linux-futex,
17534 check if SYS_gettid and SYS_futex are defined.
17535 * configure: Rebuilt.
17536
17537 2006-06-14 Richard Henderson <rth@redhat.com>
17538
17539 PR libgomp/28008
17540 * env.c (initialize_env): Avoid using PTHREAD_STACK_MIN when
17541 undefined. Use GOMP_STACKSIZE not OMP_STACKSIZE for environment.
17542
17543 2006-06-09 Richard Henderson <rth@redhat.com>
17544
17545 * env.c (gomp_nthreads_var): Change to unsigned long.
17546 (gomp_run_sched_chunk): Likewise.
17547 (parse_unsigned_long): Rename from parse_num_threads and generalize.
17548 (initialize_env): Initialize gomp_thread_attr.
17549 * libgomp.h (gomp_nthreads_var): Update decl.
17550 (gomp_run_sched_chunk): Likewise.
17551 (gomp_thread_attr): Declare.
17552 * team.c (gomp_thread_attr): Export.
17553 (initialize_team): Don't initialize it.
17554
17555 2006-06-09 Jakub Jelinek <jakub@redhat.com>
17556
17557 PR fortran/27916
17558 * testsuite/libgomp.fortran/pr27916-1.f90: New test.
17559 * testsuite/libgomp.fortran/pr27916-2.f90: New test.
17560
17561 2006-06-06 Francois-Xavier Coudert <coudert@clipper.ens.fr>
17562
17563 * config/mingw32/time.c: New file.
17564 * configure.tgt: Use it.
17565
17566 2006-05-23 Carlos O'Donell <carlos@codesourcery.com>
17567
17568 * Makefile.am: Add install-html target. Add install-html to .PHONY
17569 * Makefile.in: Regenerate.
17570
17571 2006-05-22 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
17572
17573 PR libgomp/27612
17574 * testsuite/libgomp.c/sections-1.c: Require sync_int_long.
17575 * testsuite/libgomp.c/critical-1.c: Likewise.
17576 * testsuite/libgomp.c/loop-1.c: Likewise.
17577 * testsuite/libgomp.c/loop-2.c: Likewise.
17578 * testsuite/libgomp.c/single-1.c: Likewise.
17579 * testsuite/libgomp.c/ordered-1.c: Likewise.
17580 * testsuite/libgomp.c/ordered-2.c: Likewise.
17581
17582 2006-05-15 Jakub Jelinek <jakub@redhat.com>
17583
17584 PR middle-end/27416
17585 * libgomp.fortran/pr27416-1.f90: New test.
17586
17587 2006-05-03 Jakub Jelinek <jakub@redhat.com>
17588
17589 PR fortran/27395
17590 * testsuite/libgomp.fortran/pr27395-1.f90: New test.
17591 * testsuite/libgomp.fortran/pr27395-2.f90: New test.
17592
17593 2006-05-02 Jakub Jelinek <jakub@redhat.com>
17594
17595 PR c++/26943
17596 * testsuite/libgomp.c/pr26943-1.c: New test.
17597 * testsuite/libgomp.c/pr26943-2.c: New test.
17598 * testsuite/libgomp.c/pr26943-3.c: New test.
17599 * testsuite/libgomp.c/pr26943-4.c: New test.
17600 * testsuite/libgomp.c++/pr27337.C: Remove barrier.
17601 * testsuite/libgomp.c++/pr26943.C: New test.
17602
17603 2006-05-02 Jakub Jelinek <jakub@redhat.com>
17604
17605 PR middle-end/27337
17606 * testsuite/libgomp.c++/pr27337.C: New test.
17607
17608 2006-04-26 Jakub Jelinek <jakub@redhat.com>
17609
17610 PR c/26171
17611 * testsuite/libgomp.c/pr26171.c: New test.
17612
17613 2006-04-25 Richard Henderson <rth@redhat.com>
17614
17615 PR libgomp/25865
17616 * configure.ac: Use GCC_CHECK_TLS.
17617 * acinclude.m4 (LIBGOMP_CHECK_TLS): Remove.
17618 * Makefile.in, aclocal.m4, configure: Regenerate.
17619
17620 2006-04-10 Matthias Klose <doko@debian.org>
17621
17622 * testsuite/lib/libgomp.exp (libgomp_init): Recognize multilib
17623 directory names containing underscores.
17624
17625 2006-03-21 Jakub Jelinek <jakub@redhat.com>
17626
17627 PR c++/26691
17628 * testsuite/libgomp.c++/pr26691.C: New test.
17629
17630 2006-03-13 Jakub Jelinek <jakub@redhat.com>
17631
17632 * testsuite/libgomp.fortran/retval2.f90: New test.
17633
17634 2006-03-09 Diego Novillo <dnovillo@redhat.com>
17635
17636 * testsuite/libgomp.c++: New directory.
17637
17638 2006-02-25 Shantonu Sen <ssen@opendarwin.org>
17639
17640 * config/posix/sem.h: Define BROKEN_POSIX_SEMAPHORES functions.
17641 * config/posix/sem.c: Implement the above.
17642
17643 2006-02-25 Andreas Tobler <a.tobler@schweiz.ch>
17644
17645 * configure.ac (HAVE_BROKEN_POSIX_SEMAPHORES): Check for darwin and
17646 define HAVE_BROKEN_POSIX_SEMAPHORES.
17647 * configure: Rebuilt.
17648 * config.h.in: Rebuilt.
17649
17650 2006-02-17 Francois-Xavier Coudert <coudert@clipper.ens.fr>
17651
17652 PR bootstrap/26161
17653 * configure.ac: Remove AC_CHECK_HEADER for pthread.h. Add comment
17654 for the other pthread check.
17655 * configure: Regenerate.
17656 * config.h.in: Regenerate.
17657
17658 2006-02-15 Jakub Jelinek <jakub@redhat.com>
17659
17660 PR libgomp/25938
17661 PR libgomp/25984
17662 * Makefile.am (fincludedir): New variable.
17663 (nodist_include_HEADERS): Remove Fortran files.
17664 (nodist_finclude_HEADERS): New variable.
17665 * Makefile.in: Regenerated.
17666
17667 2006-02-13 Jakub Jelinek <jakub@redhat.com>
17668
17669 * testsuite/libgomp.fortran/vla7.f90: Add -w to options.
17670 Remove tests for returning assumed character length arrays.
17671
17672 2006-02-12 Roger Sayle <roger@eyesopen.com>
17673 John David Anglin <dave@hiauly1.hia.nrc.ca>
17674
17675 PR libgomp/25936
17676 * configure.tgt: Link against -lrt for sem_init on HPUX v11 systems.
17677
17678 2006-02-08 Ulrich Weigand <uweigand@de.ibm.com>
17679
17680 * testsuite/lib/libgomp-dg.exp: Load scanrtl.exp library.
17681
17682 2006-02-07 Eric Botcazou <ebotcazou@libertysurf.fr>
17683
17684 * testsuite/lib/libgomp-dg.exp (libgomp_init): Compute multilib related
17685 part of LD_LIBRARY_PATH manually.
17686
17687 2006-02-03 H.J. Lu <hongjiu.lu@intel.com>
17688
17689 PR libgomp/25852
17690 * testsuite/lib/libgomp-dg.exp (blddir): Set it in
17691 libgomp_init.
17692
17693 2005-01-25 Paolo Bonzini <bonzini@gnu.org>
17694
17695 PR libgomp/25884
17696 * Makefile.am (omp.h, omp_lib.h, omp_lib.f90, libgomp_f.h): Remove.
17697 * configure.ac (PERL): Don't set.
17698 (gstdint.h, omp.h, omp_lib.h, omp_lib.f90, libgomp_f.h): Create here.
17699 (OMP_LOCK_SIZE, OMP_LOCK_ALIGN, OMP_LOCK_KIND, OMP_NEST_LOCK_SIZE,
17700 OMP_NEST_LOCK_ALIGN, OMP_NEST_LOCK_KIND): New substitutions.
17701 * omp.h.in: Wrap the new configure substitutions with @ characters.
17702 * omp_lib.h.in, omp_lib.f90.in, libgomp_f.h.in: Likewise.
17703 * aclocal.m4, configure, Makefile.in: Regenerate.
17704 * mkomp_h.pl: Delete.
17705
17706 2005-01-24 Paolo Bonzini <bonzini@gnu.org>
17707
17708 PR libgomp/25259
17709 * configure.ac: Use GCC_HEADER_STDINT.
17710 * libgomp.h: Include gstdint.h.
17711 * libgomp_f.h.in: Don't include stdint.h or inttypes.h.
17712 * configure, Makefile.in, testsuite/Makefile.in, aclocal.m4: Rebuild.
17713
17714 2006-01-24 Richard Henderson <rth@redhat.com>
17715
17716 PR libgomp/25942
17717 * configure.ac: Add AM_MAINTAINER_MODE.
17718 * Makefile.in, aclocal.m4, configure, testsuite/Makefile.in: Rebuild.
17719
17720 2006-01-24 Diego Novillo <dnovillo@redhat.com>
17721
17722 * Makefile.in: Regenerate.
17723 * testsuite/Makefile.in: Regenerate.
17724 * aclocal.m4: Regenerate.
17725
17726 2006-01-23 Andreas Tobler <a.tobler@schweiz.ch>
17727
17728 * config/posix/proc.c: Conditional include of sys/loadavg.h for
17729 Solaris.
17730 * configure.ac: Add check for loadavg.h.
17731 (link_gomp): Adjust comment.
17732 * configure: Regenerate.
17733 * config.h.in: Regenerate.
17734
17735 2006-01-21 Steve Ellcey <sje@cup.hp.com>
17736
17737 PR libgomp/25877
17738 * configure.ac: Remove check for alloca.h.
17739 * configure: Regenerate.
17740 * config.h.in: Regenerate.
17741 * libgomp.h: define gomp_alloca to be __builtin_alloca.
17742 * team.c: Remove use of alloca.h.
17743 Call gomp_alloca instead of alloca.
17744
17745 2006-01-20 Steve Ellcey <sje@cup.hp.com>
17746
17747 PR libgomp/25877
17748 * team.c: Add include of alloca.h.
17749 * configure.ac: Add check for alloca.h.
17750 * configure: Regenerate.
17751 * config.h.in: Regenerate.
17752
17753 2006-01-17 Jakub Jelinek <jakub@redhat.com>
17754
17755 PR fortran/25219
17756 * testsuite/libgomp.fortran/pr25219.f90: New test.
17757
17758 2005-12-05 Uros Bizjak <uros@kss-loka.si>
17759
17760 * testsuite/libgomp.c/pr24455.c, testsuite/libgomp.c/copyin-1.c,
17761 testsuite/libgomp.c/copyin-2.c, testsuite/libgomp.c/copyin-3.c,
17762 testsuite/libgomp.c++/copyin-1.C, testsuite/libgomp.c++/copyin-2.C,
17763 testsuite/libgomp.c++/ctor-5.C, testsuite/libgomp.c++/ctor-8.C,
17764 testsuite/libgomp.c++/ctor-9.C, testsuite/libgomp.c++/pr24455.C,
17765 testsuite/libgomp.fortran/threadprivate1.f90,
17766 testsuite/libgomp.fortran/threadprivate2.f90,
17767 testsuite/libgomp.fortran/threadprivate3.f90,
17768 testsuite/libgomp.fortran/appendix-a/a.22.7.f9,
17769 testsuite/libgomp.fortran/appendix-a/a.22.8.f9,
17770 testsuite/libgomp.fortran/omp_parse3.f90: Change required
17771 effective-target to TLS runtime.
17772
17773 * testsuite/libgomp.fortran/pr25162.f: Require
17774 effective-target TLS runtime.
17775
17776 2005-12-01 Jakub Jelinek <jakub@redhat.com>
17777
17778 * testsuite/libgomp.fortran/nestedfn2.f90: New test.
17779 * testsuite/libgomp.c/nestedfn-3.c: New test.
17780
17781 2005-11-30 Jakub Jelinek <jakub@redhat.com>
17782
17783 PR fortran/25162
17784 * testsuite/libgomp.fortran/pr25162.f: New test.
17785
17786 2005-11-28 Jakub Jelinek <jakub@redhat.com>
17787
17788 * config/posix/time.c (omp_get_wtime, omp_get_wtick): Fall back to
17789 CLOCK_REALTIME if clock_* (CLOCK_MONOTONIC, &ts) call failed.
17790
17791 2005-11-25 Jakub Jelinek <jakub@redhat.com>
17792
17793 * alloc.c, barrier.c, critical.c, env.c, error.c, fortran.c, iter.c,
17794 libgomp.h, libgomp_f.h.in, libgomp_g.h, loop.c, mkomp_h.pl, omp.h.in,
17795 omp_lib.f90.in, omp_lib.h.in, ordered.c, parallel.c, sections.c,
17796 single.c, team.c, work.c, config/linux/alpha/futex.h,
17797 config/linux/bar.c, config/linux/bar.h, config/linux/ia64/futex.h,
17798 config/linux/lock.c, config/linux/mutex.c, config/linux/mutex.h,
17799 config/linux/powerpc/futex.h, config/linux/s390/futex.h,
17800 config/linux/sem.c, config/linux/sem.h, config/linux/sparc/futex.h,
17801 config/linux/x86/futex.h, config/posix/bar.c, config/posix/bar.h,
17802 config/posix/lock.c, config/posix/mutex.h, config/posix/proc.c,
17803 config/posix/sem.c, config/posix/sem.h, config/posix/time.c: Update
17804 FSF address.
17805
17806 2005-11-18 Jakub Jelinek <jakub@redhat.com>
17807
17808 * Makefile.am: Move libgomp_f.h from nodist_include_HEADERS
17809 to nodist_noinst_HEADERS.
17810 * Makefile.in: Rebuilt.
17811
17812 * config/posix/omp-lock.h (omp_nest_lock_t): Change into struct,
17813 add integer count field.
17814 * config/posix/lock.c (omp_destroy_nest_lock): Adjust for
17815 omp_nest_lock_t type change.
17816 (omp_init_nest_lock): Likewise. Initialize count to 0.
17817 (omp_set_nest_lock): Adjust for omp_nest_lock_t type change.
17818 Increment count.
17819 (omp_unset_nest_lock): Adjust for omp_nest_lock_t type change.
17820 Decrement count.
17821 (omp_test_nest_lock): Adjust for omp_nest_lock_t type change.
17822 Increment count if successful and return the new nesting level.
17823 * config/linux/lock.c (omp_test_nest_lock): Return new nesting level.
17824 * omp_lib.f90.in (omp_test_lock): Fix LOCK argument type.
17825 * testsuite/libgomp.c/lib-1.c: New test.
17826 * testsuite/libgomp.fortran/lib1.f90: New test.
17827 * testsuite/libgomp.fortran/lib2.f: New test.
17828 * testsuite/libgomp.fortran/lib3.f: New test.
17829
17830 2005-11-17 Richard Henderson <rth@redhat.com>
17831
17832 PR 24845
17833 * Makefile.am (nodist_toolexeclib_HEADERS): New.
17834 * configure.ac (link_gomp): New. Substitute it.
17835 (AC_CONFIG_FILES): Add libgomp.spec.
17836 * libgomp.spec.in: New file.
17837 * Makefile.in, testsuite/Makefile.in, configure: Rebuild.
17838 * testsuite/lib/libgomp-dg.exp: Add -B${blddir}/ to flags.
17839
17840 2005-11-18 Jakub Jelinek <jakub@redhat.com>
17841
17842 * testsuite/libgomp.fortran/reduction1.f90: Adjust for
17843 reduction(-:var) behaving the same as reduction(+:var).
17844 * testsuite/libgomp.c/reduction-4.c: New test.
17845
17846 2005-11-15 Uros Bizjak <uros@kss-loka.si>
17847
17848 * testsuite/libgomp.c/pr24455-1.c, testsuite/libgomp.c/pr24455.c,
17849 testsuite/libgomp.c/copyin-1.c, testsuite/libgomp.c/copyin-2.c,
17850 testsuite/libgomp.c/copyin-3.c,
17851 testsuite/libgomp.c++/copyin-1.C, testsuite/libgomp.c++/copyin-2.C,
17852 testsuite/libgomp.c++/ctor-5.C, testsuite/libgomp.c++/ctor-8.C,
17853 testsuite/libgomp.c++/ctor-9.C, testsuite/libgomp.c++/pr24455-1.C,
17854 testsuite/libgomp.c++/pr24455.C,
17855 testsuite/libgomp.fortran/threadprivate1.f90,
17856 testsuite/libgomp.fortran/threadprivate2.f90,
17857 testsuite/libgomp.fortran/threadprivate3.f90,
17858 testsuite/libgomp.fortran/appendix-a/a.22.7.f9,
17859 testsuite/libgomp.fortran/appendix-a/a.22.8.f9,
17860 testsuite/libgomp.fortran/omp_parse3.f90: Require
17861 effective-target TLS.
17862
17863 2005-11-14 Diego Novillo <dnovillo@redhat.com>
17864
17865 * HEADER: Remove.
17866
17867 2005-11-13 Jakub Jelinek <jakub@redhat.com>
17868
17869 PR libgomp/24797
17870 * team.c (initialize_team): Pass NULL rather than free as
17871 pthread_key_create destructor. Initialize thread specific data
17872 pointer in initial thread to a static local variable rather than
17873 malloced memory.
17874
17875 2005-11-11 Uros Bizjak <uros@kss-loka.si>
17876
17877 * testsuite/lib/libgomp-dg.exp: Locate libgcc.a and append
17878 its location to ld_library_path.
17879
17880 2005-11-10 Diego Novillo <dnovillo@redhat.com>
17881
17882 * testsuite/libgomp.c/c.exp: Rename from dg.exp.
17883
17884 2005-11-10 Diego Novillo <dnovillo@redhat.com>
17885
17886 * testsuite/libgomp.c: Rename from libgomp.dg.
17887
17888 2005-11-09 Diego Novillo <dnovillo@redhat.com>
17889
17890 * testsuite/libgomp.c++/pr24455.C: Add copyin clause for
17891 threadprivate variable 'i'.
17892
17893 2005-11-09 Jakub Jelinek <jakub@redhat.com>
17894
17895 * config/linux/s390/futex.h: New file.
17896 * configure.tgt: Use it.
17897
17898 * testsuite/libgomp.fortran/omp_parse4.f90: Move n initialization
17899 before the parallel.
17900
17901 2005-11-08 Jakub Jelinek <jakub@redhat.com>
17902
17903 PR c++/24734
17904 * testsuite/libgomp.c++/master-1.C: New test.
17905
17906 2005-11-07 Jakub Jelinek <jakub@redhat.com>
17907
17908 * testsuite/libgomp.dg/copyin-3.c: New test.
17909
17910 2005-11-07 Jakub Jelinek <jakub@redhat.com>
17911
17912 * testsuite/libgomp.fortran/retval1.f90: New test.
17913 * testsuite/libgomp.fortran/vla7.f90: New test.
17914
17915 2005-11-06 Jakub Jelinek <jakub@redhat.com>
17916
17917 * testsuite/libgomp.fortran/vla2.f90: New test.
17918 * testsuite/libgomp.fortran/vla3.f90: New test.
17919 * testsuite/libgomp.fortran/vla4.f90: New test.
17920 * testsuite/libgomp.fortran/vla5.f90: New test.
17921 * testsuite/libgomp.fortran/vla6.f90: New test.
17922
17923 2005-11-01 Jakub Jelinek <jakub@redhat.com>
17924
17925 * config/linux/sparc/futex.h: New file.
17926 * configure.tgt: Use it.
17927 * testsuite/lib/libgomp-dg.exp: Use -mcpu=v9 for sparc testing.
17928
17929 * critical.c: Include stdlib.h.
17930 * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS): Avoid warnings about
17931 ignoring return value.
17932 * configure.ac: Don't put -Wc,-pthread into XCFLAGS until after
17933 LIBGOMP_CHECK_SYNC_BUILTINS check.
17934 * configure: Rebuilt.
17935
17936 2005-10-31 Jakub Jelinek <jakub@redhat.com>
17937
17938 * testsuite/libgomp.fortran/vla1.f90: New test.
17939
17940 2005-10-31 Richard Henderson <rth@redhat.com>
17941
17942 * testsuite/libgomp.fortran/character2.f90: Fix race condition
17943 setting 's' in different threads.
17944
17945 2005-10-31 Jakub Jelinek <jakub@redhat.com>
17946
17947 * libgomp.h (attribute_hidden, ialias): Define.
17948 * config/posix/proc.c (omp_get_num_procs): Add ialias.
17949 * config/posix/time.c (omp_get_wtime, omp_get_wtick): Likewise.
17950 * config/posix/lock.c (omp_init_lock, omp_init_nest_lock,
17951 omp_destroy_lock, omp_destroy_nest_lock, omp_set_lock,
17952 omp_set_nest_lock, omp_unset_lock, omp_unset_nest_lock,
17953 omp_test_lock, omp_test_nest_lock): Likewise.
17954 * config/linux/lock.c (omp_init_lock, omp_init_nest_lock,
17955 omp_destroy_lock, omp_destroy_nest_lock, omp_set_lock,
17956 omp_set_nest_lock, omp_unset_lock, omp_unset_nest_lock,
17957 omp_test_lock, omp_test_nest_lock): Likewise.
17958 * env.c (omp_set_dynamic, omp_set_nested, omp_set_num_threads,
17959 omp_get_dynamic, omp_get_nested): Likewise.
17960 * parallel.c (omp_get_num_threads, omp_get_max_threads,
17961 omp_get_thread_num, omp_in_parallel): Likewise.
17962 * fortran.c (ialias_redirect): Define.
17963 (omp_init_lock, omp_init_nest_lock, omp_destroy_lock,
17964 omp_destroy_nest_lock, omp_set_lock, omp_set_nest_lock,
17965 omp_unset_lock, omp_unset_nest_lock, omp_test_lock,
17966 omp_test_nest_lock, omp_set_dynamic, omp_set_nested,
17967 omp_set_num_threads, omp_get_dynamic, omp_get_nested,
17968 omp_in_parallel, omp_get_max_threads, omp_get_num_procs,
17969 omp_get_num_threads, omp_get_thread_num, omp_get_wtick,
17970 omp_get_wtime): Add ialias_redirect.
17971
17972 2005-10-30 Jakub Jelinek <jakub@redhat.com>
17973
17974 * fortran.c: Include stdlib.h.
17975
17976 2005-10-29 Jakub Jelinek <jakub@redhat.com>
17977
17978 * Makefile.am (env.o, env.lo): Depend on libgomp_f.h.
17979 * Makefile.in: Regenerated.
17980
17981 2005-10-28 Jakub Jelinek <jakub@redhat.com>
17982
17983 * mkomp_h.pl: Remove all -Wc, option prefixes in $COMPILE.
17984 * libgomp_f.h.in (omp_check_defines): New function.
17985 * env.c: Include libgomp_f.h.
17986 (initialize_env): Call omp_check_defines.
17987
17988 * testsuite/libgomp.dg/copyin-2.c: New test.
17989 * testsuite/libgomp.c++/copyin-2.C: New test.
17990 * testsuite/libgomp.fortran/threadprivate3.f90: New test.
17991
17992 * testsuite/libgomp.fortran/threadprivate2.f90: New test.
17993 * testsuite/libgomp.fortran/sharing2.f90: New test.
17994
17995 * testsuite/libgomp.dg/copyin-1.c: New test.
17996 * testsuite/libgomp.c++/copyin-1.C: New test.
17997
17998 2005-10-26 Jakub Jelinek <jakub@redhat.com>
17999
18000 * testsuite/libgomp.fortran/crayptr1.f90: New test.
18001
18002 * testsuite/libgomp.fortran/workshare1.f90: New test.
18003
18004 * libgomp.fortran/appendix-a/a.28.5.f90: Change into compile
18005 only test.
18006 * libgomp.fortran/sharing1.f90: New test.
18007
18008 2005-10-24 Jakub Jelinek <jakub@redhat.com>
18009
18010 PR c++/24502
18011 * testsuite/libgomp.c++/loop-7.C: New test.
18012
18013 * testsuite/libgomp.dg/nestedfn-2.c: New test.
18014
18015 * testsuite/libgomp.dg/nestedfn-1.c: New test.
18016 * testsuite/libgomp.fortran/reduction6.f90: New test.
18017 * testsuite/libgomp.fortran/nestedfn1.f90: New test.
18018
18019 2005-10-23 Richard Henderson <rth@redhat.com>
18020
18021 * testsuite/libgomp.c++/ctor-1.C: New.
18022 * testsuite/libgomp.c++/ctor-2.C: New.
18023 * testsuite/libgomp.c++/ctor-3.C: New.
18024 * testsuite/libgomp.c++/ctor-4.C: New.
18025 * testsuite/libgomp.c++/ctor-5.C: New.
18026 * testsuite/libgomp.c++/ctor-6.C: New.
18027 * testsuite/libgomp.c++/ctor-7.C: New.
18028 * testsuite/libgomp.c++/ctor-8.C: New.
18029 * testsuite/libgomp.c++/ctor-9.C: New.
18030
18031 2005-10-21 Diego Novillo <dnovillo@redhat.com>
18032
18033 PR 24455
18034 * testsuite/libgomp.c++/pr24455-1.C: New test.
18035 * testsuite/libgomp.c++/pr24455.C: New test.
18036 * testsuite/libgomp.dg/pr24455-1.c: New test.
18037 * testsuite/libgomp.dg/pr24455.c: New test.
18038
18039 2005-10-20 Richard Henderson <rth@redhat.com>
18040
18041 * testsuite/libgomp.c++/loop-6.C: New.
18042 * testsuite/libgomp.dg/loop-3.c: New.
18043
18044 2005-10-20 Jakub Jelinek <jakub@redhat.com>
18045
18046 * testsuite/libgomp.fortran/jacobi.f: Don't make i and j
18047 explicitly private.
18048 * testsuite/libgomp.fortran/omp_parse1.f90 (test_do): Make i
18049 explicitly shared.
18050
18051 2005-10-19 Diego Novillo <dnovillo@redhat.com>
18052
18053 * testsuite/libgomp.fortran/jacobi.f: New test.
18054
18055 2005-10-19 Richard Henderson <rth@redhat.com>
18056
18057 * configure.tgt (i?86-linux): Default to with_arch instead of
18058 CFLAGS. Add -mtune to match target_cpu.
18059 (x86_64-linux): Tune to i686.
18060
18061 * fortran.c (omp_test_nest_lock_): Fix typo.
18062
18063 2005-10-19 Jakub Jelinek <jakub@redhat.com>
18064
18065 * ordered.c (gomp_ordered_first, gomp_ordered_last, gomp_ordered_next,
18066 gomp_ordered_sync): Do nothing if team->nthreads == 1.
18067 * testsuite/libgomp.dg/ordered-3.c: New test.
18068
18069 * testsuite/libgomp.dg/appendix-a/a.18.1.c: Remove unconditional abort.
18070 Remove volatile keyword.
18071
18072 * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: Reorder variables
18073 in COMMON block to avoid warnings on 64-bit targets.
18074
18075 2005-10-18 Diego Novillo <dnovillo@redhat.com>
18076
18077 * testsuite/libgomp.dg/shared-3.c: New test.
18078
18079 2005-10-18 Jakub Jelinek <jakub@redhat.com>
18080
18081 * testsuite/libgomp.fortran/appendix-a/a.31.3.f90: Removed.
18082 * testsuite/libgomp.fortran/reduction5.f90: New test.
18083
18084 2005-10-18 Jakub Jelinek <jakub@redhat.com>
18085
18086 * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: Add -ffixed-form to
18087 dg-options.
18088 * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: Likewise. Enable
18089 flush loop now that __sync_synchronize has proper memory barrier.
18090 * testsuite/libgomp.fortran/appendix-a/a.3.1.f90: Fix a typo.
18091 Add -ffixed-form to dg-options.
18092
18093 2005-10-17 Diego Novillo <dnovillo@redhat.com>
18094
18095 * testsuite/libgomp.fortran/fortran.exp: Also gather tests
18096 from subdirectories.
18097 * testsuite/libgomp.fortran/appendix-a/a.15.1.f90: New test.
18098 * testsuite/libgomp.fortran/appendix-a/a.16.1.f90: New test.
18099 * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: New test.
18100 * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: New test.
18101 * testsuite/libgomp.fortran/appendix-a/a.2.1.f90: New test.
18102 * testsuite/libgomp.fortran/appendix-a/a.21.1.f90: New test.
18103 * testsuite/libgomp.fortran/appendix-a/a.22.7.f90: New test.
18104 * testsuite/libgomp.fortran/appendix-a/a.22.8.f90: New test.
18105 * testsuite/libgomp.fortran/appendix-a/a.26.1.f90: New test.
18106 * testsuite/libgomp.fortran/appendix-a/a.28.1.f90: New test.
18107 * testsuite/libgomp.fortran/appendix-a/a.28.2.f90: New test.
18108 * testsuite/libgomp.fortran/appendix-a/a.28.3.f90: New test.
18109 * testsuite/libgomp.fortran/appendix-a/a.28.4.f90: New test.
18110 * testsuite/libgomp.fortran/appendix-a/a.28.5.f90: New test.
18111 * testsuite/libgomp.fortran/appendix-a/a.3.1.f90: New test.
18112 * testsuite/libgomp.fortran/appendix-a/a.31.3.f90: New test.
18113 * testsuite/libgomp.fortran/appendix-a/a.31.4.f90: New test.
18114 * testsuite/libgomp.fortran/appendix-a/a.31.5.f90: New test.
18115 * testsuite/libgomp.fortran/appendix-a/a.33.3.f90: New test.
18116 * testsuite/libgomp.fortran/appendix-a/a.38.1.f90: New test.
18117 * testsuite/libgomp.fortran/appendix-a/a.39.1.f90: New test.
18118 * testsuite/libgomp.fortran/appendix-a/a.4.1.f90: New test.
18119 * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: New test.
18120 * testsuite/libgomp.fortran/appendix-a/a.5.1.f90: New test.
18121 * testsuite/libgomp.fortran/appendix-a/a10.1.f90: New test.
18122
18123 2005-10-17 Jakub Jelinek <jakub@redhat.com>
18124
18125 * testsuite/libgomp.dg/dg.exp: Only unset lang_* if
18126 lang_library_path exists. Use find instead of glob to gather tests.
18127 * testsuite/libgomp.dg/appendix-a/appendix-a.exp: Removed.
18128
18129 2005-10-17 Diego Novillo <dnovillo@redhat.com>
18130
18131 * testsuite/libgomp.dg/appendix-a/a.15.1.c: New test.
18132 * testsuite/libgomp.dg/appendix-a/a.16.1.c: New test.
18133 * testsuite/libgomp.dg/appendix-a/a.18.1.c: New test.
18134 * testsuite/libgomp.dg/appendix-a/a.19.1.c: New test.
18135 * testsuite/libgomp.dg/appendix-a/a.2.1.c: New test.
18136 * testsuite/libgomp.dg/appendix-a/a.21.1.c: New test.
18137 * testsuite/libgomp.dg/appendix-a/a.26.1.c: New test.
18138 * testsuite/libgomp.dg/appendix-a/a.29.1.c: New test.
18139 * testsuite/libgomp.dg/appendix-a/a.3.1.c: New test.
18140 * testsuite/libgomp.dg/appendix-a/a.39.1.c: New test.
18141 * testsuite/libgomp.dg/appendix-a/a.4.1.c: New test.
18142 * testsuite/libgomp.dg/appendix-a/a.5.1.c: New test.
18143 * testsuite/libgomp.dg/appendix-a/appendix-a.exp: New file.
18144
18145 2005-10-15 Jakub Jelinek <jakub@redhat.com>
18146
18147 * testsuite/libgomp.dg/vla-1.c: New test.
18148
18149 * testsuite/libgomp.fortran/reference2.f90: New test.
18150
18151 * testsuite/libgomp.fortran/character2.f90: Remove explicit
18152 declaration of omp_get_thread_num.
18153 * testsuite/libgomp.fortran/threadprivate1.f90: Likewise. Add
18154 use omp_lib.
18155
18156 * testsuite/libgomp.fortran/reduction1.f90: New test.
18157 * testsuite/libgomp.fortran/reduction2.f90: New test.
18158 * testsuite/libgomp.fortran/reduction3.f90: New test.
18159 * testsuite/libgomp.fortran/reduction4.f90: New test.
18160
18161 2005-10-13 Richard Henderson <rth@redhat.com>
18162
18163 * Makefile.am (libgomp_la_SOURCES): Add bar.c.
18164 * Makefile.in: Regenerate.
18165 * barrier.c (GOMP_barrier): Use gomp_barrier_wait.
18166 * libgomp.h: Include bar.h.
18167 (struct gomp_barrier): Remove.
18168 (struct gomp_team): Add barrier. Replace master_barrier with
18169 master_release. Replace threads with ordered_release.
18170 (struct gomp_thread): Replace barrier with release.
18171 * ordered.c (gomp_ordered_first): Update for ordered_release change.
18172 (gomp_ordered_last, gomp_ordered_next, gomp_ordered_static_init,
18173 gomp_ordered_static_next, gomp_ordered_sync): Likewise.
18174 * single.c (GOMP_single_copy_start): Use gomp_barrier_wait.
18175 (GOMP_single_copy_end): Likewise.
18176 * team.c (gomp_threads_dock): New.
18177 (gomp_barrier_init, gomp_barrier_destroy): Remove.
18178 (gomp_thread_start): Use gomp_barrier_wait.
18179 (new_team, free_team): Update for gomp_team changes.
18180 (gomp_team_start): Use gomp_barrier_wait and gomp_barrier_reinit.
18181 (gomp_team_end): Use gomp_barrier_wait.
18182 (initialize_team): Update for gomp_thread changes.
18183 * work.c (gomp_work_share_end): Use gomp_barrier_wait_start.
18184 (gomp_work_share_end_nowait): Use atomic ops when available.
18185 * config/linux/bar.c, config/linux/bar.h: New files.
18186 * config/posix/bar.c, config/posix/bar.h: New files.
18187
18188 2005-10-13 Jakub Jelinek <jakub@redhat.com>
18189
18190 * single.c (GOMP_single_copy_end): Don't segfault if team is NULL.
18191 * testsuite/libgomp.dg/single-2.c: New test.
18192
18193 * testsuite/libgomp.dg/dg.exp (lang_library_path, lang_test_file,
18194 lang_link_flags): Unset, so that they aren't inherited from previously
18195 sourced *.exp.
18196
18197 * testsuite/libgomp.fortran/threadprivate1.f90: New test.
18198
18199 2005-10-12 Richard Henderson <rth@redhat.com>
18200
18201 * testsuite/lib/libgomp-dg.exp: Set blddir at toplevel.
18202 (libgomp_init): Use lang_test_file, lang_library_path, and
18203 lang_link_flags, set by the subdirectory files. Add -fopenmp here.
18204
18205 * testsuite/libgomp.fortran/fortran.exp (lang_library_path): New.
18206 (lang_test_file, lang_link_flags): New.
18207 (DEFAULT_FFLAGS, ALWAYS_CFLAGS, multilibs, blddir): Remove.
18208
18209 * testsuite/libgomp.c++/c++.exp, testsuite/libgomp.c++/loop-1.C,
18210 testsuite/libgomp.c++/loop-2.C, testsuite/libgomp.c++/loop-3.C,
18211 testsuite/libgomp.c++/loop-4.C, testsuite/libgomp.c++/nested-1.C,
18212 testsuite/libgomp.c++/parallel-1.C,
18213 testsuite/libgomp.c++/reduction-1.C,
18214 testsuite/libgomp.c++/reduction-2.C,
18215 testsuite/libgomp.c++/reduction-3.C,
18216 testsuite/libgomp.c++/sections-1.C, testsuite/libgomp.c++/shared-1.C,
18217 testsuite/libgomp.c++/shared-2.C, testsuite/libgomp.c++/single-1.C,
18218 testsuite/libgomp.c++/single-2.C, testsuite/libgomp.c++/single-3.C:
18219 New files, largely cribbed from the C testsuite.
18220
18221 2005-10-12 Jakub Jelinek <jakub@redhat.com>
18222
18223 * testsuite/libgomp.fortran/character1.f90: New test.
18224 * testsuite/libgomp.fortran/character2.f90: New test.
18225
18226 * testsuite/libgomp.dg/nested-1.c: New test.
18227 * testsuite/libgomp.dg/nested-2.c: New test.
18228 * testsuite/libgomp.fortran/do1.f90: New test.
18229 * testsuite/libgomp.fortran/do2.f90: New test.
18230
18231 * testsuite/libgomp.fortran/reference1.f90: New test.
18232
18233 2005-10-11 Jakub Jelinek <jakub@redhat.com>
18234
18235 * testsuite/libgomp.dg/reduction-1.c: New test.
18236 * testsuite/libgomp.dg/reduction-2.c: New test.
18237 * testsuite/libgomp.dg/reduction-3.c: New test.
18238
18239 2005-10-10 Jakub Jelinek <jakub@redhat.com>
18240
18241 * testsuite/libgomp.dg/atomic-1.c: New test.
18242 * testsuite/libgomp.dg/atomic-2.c: New test.
18243
18244 2005-10-09 Richard Henderson <rth@redhat.com>
18245
18246 * critical.c (atomic_lock): New.
18247 (initialize_critical): Initialize it.
18248 (GOMP_atomic_start, GOMP_atomic_end): New.
18249 * libgomp.map: Export them.
18250 * libgomp_g.h: Declare them.
18251
18252 * testsuite/libgomp.dg/atomic-10.c: Move from gcc testsuite.
18253
18254 2005-10-02 Richard Henderson <rth@redhat.com>
18255
18256 * configure.ac: Move save_CFLAGS hack earlier. Append -Wall/-Werror
18257 to XCFLAGS instead of CFLAGS.
18258
18259 2005-09-30 Richard Henderson <rth@redhat.com>
18260
18261 * configure.ac: Determine whether -pthread or -lpthread is needed.
18262 * Makefile.am (libgomp_la_LDFLAGS): Remove explicit -lpthread.
18263 * Makefile.in, configure: Rebuild.
18264
18265 2005-09-28 Richard Henderson <rth@redhat.com>
18266
18267 * testsuite/libgomp.dg/omp-loop03.c: Fix return code.
18268 * testsuite/libgomp.dg/omp-single-3.c: New test.
18269
18270 2005-09-28 Diego Novillo <dnovillo@redhat.com>
18271
18272 * testsuite/libgomp.dg/omp-single-2.c: New test.
18273 * testsuite/libgomp.dg/shared-2.c: Fix return code.
18274
18275 2005-09-27 Richard Henderson <rth@redhat.com>
18276
18277 * testsuite/libgomp.dg/omp-loop03.c: Add initial barrier.
18278 * testsuite/libgomp.dg/omp-parallel-for.c: Specify static schedule.
18279
18280 2005-09-27 Jakub Jelinek <jakub@redhat.com>
18281
18282 * testsuite/libgomp.dg/omp-loop03.c: New test.
18283
18284 2005-09-27 Diego Novillo <dnovillo@redhat.com>
18285
18286 * testsuite/libgomp.dg/omp-parallel-for.c: New test.
18287
18288 2005-09-27 Diego Novillo <dnovillo@redhat.com>
18289
18290 * testsuite/libgomp.dg/omp-single-1.c: New test.
18291 * testsuite/libgomp.dg/shared-1.c: Return 0.
18292 Add prototype for abort.
18293 * testsuite/libgomp.dg/shared-2.c: Likewise.
18294
18295 2005-09-26 Jakub Jelinek <jakub@redhat.com>
18296
18297 * testsuite/libgomp.fortran/omp_parse3.f90: Fix non-conforming
18298 constructs.
18299
18300 2005-09-26 Diego Novillo <dnovillo@redhat.com>
18301
18302 * testsuite/libgomp.dg/shared-1.c: New test.
18303 * testsuite/libgomp.dg/shared-2.c: New test.
18304
18305 2005-09-24 Richard Henderson <rth@redhat.com>
18306
18307 * testsuite/libgomp.dg/omp_workshare3.c: Mark dg-error.
18308
18309 2005-09-24 Richard Henderson <rth@redhat.com>
18310
18311 * iter.c (gomp_iter_static_next): Round up when computing number
18312 of iterations. Don't bother distributing a remainder equally.
18313
18314 * testsuite/libgomp.dg/omp-loop01.c (main1): Rename from main.
18315 Don't call srand. Zero b before testing.
18316 (main): New.
18317
18318 2005-09-24 Jakub Jelinek <jakub@redhat.com>
18319
18320 * testsuite/libgomp.fortran/omp_atomic1.f90: New test.
18321 * testsuite/libgomp.fortran/omp_atomic2.f90: New test.
18322
18323 2005-09-23 Jakub Jelinek <jakub@redhat.com>
18324
18325 * testsuite/libgomp.fortran/omp_parse1.f90: Add a test for !$omp do
18326 without !$omp end do, followed immediately by subroutine end.
18327
18328 2005-09-23 Diego Novillo <dnovillo@redhat.com>
18329
18330 * testsuite/libgomp.dg/omp-parallel-if.c: New test.
18331
18332 2005-09-22 Richard Henderson <rth@redhat.com>
18333
18334 * critical.c (GOMP_critical_name_start): Change argument to void**.
18335 Reuse the pointer space if the mutex fits.
18336 (GOMP_critical_name_end): Likewise.
18337 (initialize_critical): Don't define if GOMP_MUTEX_INIT_0.
18338 * libgomp_g.h (GOMP_critical_name_start): Update decl.
18339 (GOMP_critical_name_end): Likewise.
18340 * config/linux/mutex.h (GOMP_MUTEX_INIT_0): New.
18341 * config/posix/mutex.h (GOMP_MUTEX_INIT_0): New.
18342
18343 2005-09-20 Richard Henderson <rth@redhat.com>
18344
18345 * critical.c (GOMP_critical_name_start, GOMP_critical_name_end): New.
18346 (create_lock_lock): New.
18347 (initialize_critical): Initialize it.
18348 * libgomp.map (GOMP_critical_name_start, GOMP_critical_name_end): New.
18349 * libgomp_g.h (GOMP_ordered_start, GOMP_ordered_end): Declare.
18350
18351 2005-09-20 Diego Novillo <dnovillo@redhat.com>
18352
18353 * testsuite/libgom.dg/omp-loop01.c: Include stdio.h.
18354
18355 2005-09-20 Diego Novillo <dnovillo@redhat.com>
18356
18357 * testsuite/libgomp.dg/omp-loop01.c: New test.
18358 * testsuite/libgomp.dg/omp-loop02.c: New test.
18359
18360 2005-09-20 Jakub Jelinek <jakub@redhat.com>
18361
18362 * configure.ac (AC_PROG_FC): Add.
18363 (USE_FORTRAN): New automake conditional.
18364 * configure: Rebuilt.
18365 * Makefile.am (libgomp_la_SOURCES): Add fortran.c.
18366 (nodist_include_HEADERS): Add omp_lib.h, omp_lib.f90 and libgomp_f.h.
18367 If USE_FORTRAN, add also omp_lib.mod and omp_lib_kinds.mod.
18368 Add rules to build them.
18369 * Makefile.in: Rebuilt.
18370 * mkomp_h.pl: Compute and replace also OMP_LOCK_KIND and
18371 OMP_NEST_LOCK_KIND.
18372 * libgomp.map: Add Fortran wrappers.
18373 * libgomp_f.h.in: New file.
18374 * omp_lib.h.in: New file.
18375 * omp_lib.f90.in: New file.
18376 * fortran.c: New file.
18377 * testsuite/lib/libgomp-dg.exp: Load a few more .exp files.
18378 Append libgfortran directory to LD_LIBRARY_PATH if it exists.
18379 Add -Lpath_to_libgfortran and -lgfortran -lgfortranbegin if
18380 libgfortran has been built.
18381 * testsuite/libgomp.fortran/fortran.exp: New file.
18382 * testsuite/libgomp.fortran/omp_cond1.f: New test.
18383 * testsuite/libgomp.fortran/omp_cond2.f: New test.
18384 * testsuite/libgomp.fortran/omp_cond3.F90: New test.
18385 * testsuite/libgomp.fortran/omp_cond4.F90: New test.
18386 * testsuite/libgomp.fortran/omp_hello.f: New test.
18387 * testsuite/libgomp.fortran/omp_orphan.f: New test.
18388 * testsuite/libgomp.fortran/omp_parse1.f90: New test.
18389 * testsuite/libgomp.fortran/omp_parse2.f90: New test.
18390 * testsuite/libgomp.fortran/omp_parse3.f90: New test.
18391 * testsuite/libgomp.fortran/omp_parse4.f90: New test.
18392 * testsuite/libgomp.fortran/omp_reduction.f: New test.
18393 * testsuite/libgomp.fortran/omp_workshare1.f: New test.
18394 * testsuite/libgomp.fortran/omp_workshare2.f: New test.
18395
18396 2005-08-30 Richard Henderson <rth@redhat.com>
18397
18398 * loop.c (GOMP_loop_static_start): Provide fallback wrapper
18399 function for when aliases are not usable.
18400 (GOMP_loop_dynamic_start, GOMP_loop_guided_start,
18401 GOMP_loop_ordered_static_start, GOMP_loop_ordered_dynamic_start,
18402 GOMP_loop_ordered_guided_start, GOMP_loop_static_next,
18403 GOMP_loop_dynamic_next, GOMP_loop_guided_next,
18404 GOMP_loop_ordered_static_next, GOMP_loop_ordered_dynamic_next,
18405 GOMP_loop_ordered_guided_next): Likewise.
18406 * ordered.c (GOMP_ordered_start): Likewise.
18407
18408 2005-08-01 Diego Novillo <dnovillo@redhat.com>
18409
18410 * testsuite/libgomp.dg/dg.exp: Use -O2 for now.
18411 * testsuite/libgomp.dg/omp_hello.c: Fix return code
18412 * testsuite/libgomp.dg/omp_matvec.c: Likewise.
18413 * testsuite/libgomp.dg/omp_orphan.c: Likewise
18414 * testsuite/libgomp.dg/omp_reduction.c: Likewise
18415 * testsuite/libgomp.dg/omp_workshare1.c: Likewise
18416 * testsuite/libgomp.dg/omp_workshare2.c: Likewise
18417 * testsuite/libgomp.dg/omp_workshare3.c: Likewise
18418 * testsuite/libgomp.dg/omp_workshare4.c: Likewise
18419
18420 2005-07-07 Eric Christopher <echristo@redhat.com>
18421 Diego Novillo <dnovillo@redhat.com>
18422
18423 * testsuite/libgomp.dg/dg.exp: Add -fopenmp to DEFAULT_CFLAGS.
18424 * testsuite/libgomp.dg/omp_hello.c: Add standard includes, fix
18425 up code.
18426 * testsuite/libgomp.dg/omp_matvec.c: Ditto.
18427 * testsuite/libgomp.dg/omp_orphan.c: Ditto.
18428 * testsuite/libgomp.dg/omp_reduction.c: Ditto.
18429 * testsuite/libgomp.dg/omp_workshare1.c: Ditto.
18430 * testsuite/libgomp.dg/omp_workshare2.c: Ditto.
18431 * testsuite/libgomp.dg/omp_workshare3.c: Ditto.
18432 * testsuite/libgomp.dg/omp_workshare4.c: Ditto.
18433
18434 2005-06-13 Diego Novillo <dnovillo@redhat.com>
18435
18436 * TOPLEVEL.patch: Remove.
18437
18438 2005-05-16 Richard Henderson <rth@redhat.com>
18439
18440 * configure.ac: Test for clock_gettime.
18441 * config.h.in, configure: Rebuild.
18442 * config/posix/time.c: Use recommended TIME_WITH_SYS_TIME pattern.
18443 (omp_get_wtime): Use clock_gettime if available.
18444 (omp_get_wtick): Use clock_getres if available.
18445
18446 2005-05-11 Richard Henderson <rth@redhat.com>
18447
18448 * config/linux/ia64/futex.h: New file.
18449 * configure.tgt: Use it.
18450
18451 * team.c (gomp_barrier_init, gomp_barrier_destroy): Mark inline.
18452
18453 2005-05-07 Richard Henderson <rth@redhat.com>
18454
18455 * config/linux/powerpc/futex.h: New file.
18456 * configure.tgt: Use it.
18457
18458 * config/linux/i486/futex.h: Merge ...
18459 * config/linux/x86_64/futex.h: ... into ...
18460 * config/linux/x86/futex.h: ... here.
18461 * configure.tgt: Update to match.
18462
18463 2005-05-06 Richard Henderson <rth@redhat.com>
18464
18465 * config/linux/alpha/futex.h: Conditionally define SYS_futex.
18466 * config/linux/i486/futex.h: Likewise.
18467 * config/linux/x86_64/futex.h: Likewise.
18468
18469 * config/linux/lock.c: New file.
18470 * config/linux/omp-lock.h: New file.
18471
18472 * critical.c, env.h: Don't include omp.h
18473 * config/posix/lock.c: Include libgomp.h instead of omp.h.
18474 * config/posix/time.c: Likewise.
18475 * config/posix/omp-lock.h: New file.
18476 * libgomp.h: Include omp-lock.h and omp.h.
18477 * Makefile.am (nodist_include_HEADERS): New.
18478 (omp.h): New rule.
18479 * configure.ac (PERL): New.
18480 * mkomp_h.pl: New file.
18481 * omp.h.in: Rename from omp.h; replace omp_lock_t and omp_nest_lock_t
18482 with templates.
18483 * Makefile.in, configure, testsuite/Makefile.in: Rebuild.
18484
18485 * testsuite/lib/libgomp-dg.exp (libgomp_init): Add include into
18486 build directory. Re-add -march=i486 hack.
18487
18488 * testsuite/lib/libgomp-dg.exp (libgomp_compile_flags): Remove.
18489 (libgomp_link_flags): Remove.
18490 (libgomp_initialized): Remove.
18491 (libgomp_init): Don't protect from reinitialization. Copy code
18492 from libstdc++ for getting the multilib set correctly.
18493
18494 2005-05-05 Richard Henderson <rth@redhat.com>
18495
18496 * config/linux/alpha/futex.h: New file.
18497 * configure.tgt (alpha*-*-linux*): Use it.
18498
18499 * config/posix/mutex.c: New file.
18500 * config/posix/sem.c: Use libgomp.h.
18501
18502 * configure.tgt (x86_64-linux): Also test CC for -m32.
18503 * config/linux/x86_64/futex.h (futex_wait): Fix r10 usage.
18504
18505 * testsuite/lib/libgomp-dg.exp (libgomp_link_flags): Add /
18506 after $gccpath.
18507
18508 * Makefile.am (SUBDIRS): New.
18509 (libgomp_la_LDFLAGS): Add -lpthread.
18510 * configure.ac (AM_INIT_AUTOMAKE): Enable dependencies.
18511 * Makefile.in, aclocal.m4, config.h.in, configure: Rebuild.
18512
18513 * libgomp_g.h: New file.
18514 * libgomp.h: Split out all public declarations to libgomp_g.h.
18515 Use pragma GCC visibility instead of ATTRIBUTE_HIDDEN.
18516 * config/linux/mutex.h: Remove ATTRIBUTE_HIDDEN.
18517 * config/linux/sem.h: Likewise.
18518 * config/posix/sem.h: Likewise.
18519
18520 * Makefile.am (AM_LDFLAGS): New.
18521 (libgomp_version_script): Split out from ...
18522 (libgomp_la_LDFLAGS): ... here.
18523 (libgomp_version_info): New.
18524 * acinclude.m4 (LIBGOMP_CHECK_TLS): Use LIBGOMP_ENABLE.
18525 (LIBGOMP_ENABLE): New.
18526 (LIBGOMP_CHECK_LINKER_FEATURES): New.
18527 (LIBGOMP_ENABLE_SYMVERS): New.
18528 * configure.ac (AC_INIT): Version 1.0.
18529 (enable-version-specific-runtime-libs): Use LIBGOMP_ENABLE.
18530 (enable-linux-futex): Likewise. Rename from enable-futex.
18531 (libtool_VERSION): New.
18532 (LIBGOMP_ENABLE_SYMVERS): Use it.
18533 * configure.tgt: Check with_gnu_ld wrt have_tls optimizations.
18534 * Makefile.in, aclocal.m4, configure: Rebuild.
18535
18536 * config/linux/mutex.c: Include libgomp.h instead of mutex.h.
18537 (gomp_mutex_unlock_slow): Fix typo.
18538 * config/linux/sem.c: Similarly.
18539 (gomp_sem_post_slow): Fix typo.
18540 * config/linux/sem.h (gomp_sem_post_slow): Fix typo.
18541 * config/linux/i486/futex.h: Remove USE_LINUX_SYSENTER code.
18542 [__PIC__] (sys_futex0): Don't use tmp output in asm.
18543
18544 * Makefile.am (AM_CFLAGS): Expand with XCFLAGS.
18545 (libgomp_la_LDFLAGS): Add top_srcdir to path.
18546 * acinclude.m4: Copy libtool.m4 stuff from libgfortran.
18547 * configure.ac: Check for getloadavg. Substitute XCFLAGS and
18548 XLDFLAGS. Add XCFLAGS to CFLAGS around LIBGOMP_CHECK_SYNC_BUILTINS.
18549 * configure.tgt: Set XCFLAGS and XLDFLAGS instead of CFLAGS and
18550 LDFLAGS. Pull enable_futex check to top-level.
18551 * libgomp.h: Fix sem.h and mutex.h includes. Define ATTRIBUTE_HIDDEN.
18552 * Makefile.in, aclocal.m4, config.h.in, configure: Regenerate.
18553
18554 First attempt at real configury.
18555 * Makefile, config.h: Remove file.
18556 * Makefile.am, Makefile.in: New file.
18557 * acinclude.m4 aclocal.m4: New file.
18558 * configure.ac, configure.tgt, configure: New file.
18559
18560 * config/posix/lock.c: Rename from sys-lock.c.
18561 * config/posix/mutex.h: Rename from sys-mutex.h.
18562 * config/posix/sem.c: Rename from sys-sem.c.
18563 * config/posix/sem.h: Rename from sys-sem.h.
18564 * config/posix/proc.c: Rename from sys-proc.c.
18565 * config/posix/time.c: Rename from sys-proc.c.
18566
18567 * config/linux/mutex.c: New file.
18568 * config/linux/mutex.h: New file.
18569 * config/linux/sem.c: New file.
18570 * config/linux/sem.h: New file.
18571 * config/linux/i486/futex.h: New file.
18572 * config/linux/x86_64/futex.h: New file.
18573
18574 2005-05-04 Richard Henderson <rth@redhat.com>
18575
18576 * iter.c (gomp_iter_dynamic_next, gomp_iter_guided_next): New.
18577 * libgomp.h: Declare them.
18578 * loop.c (gomp_loop_dynamic_start, gomp_loop_guided_start,
18579 gomp_loop_dynamic_next, gomp_loop_guided_next): Use them.
18580
18581 2005-05-04 Richard Henderson <rth@redhat.com>
18582
18583 * libgomp-1 code drop
18584
18585 2005-05-04 Richard Henderson <rth@redhat.com>
18586
18587 * iter.c (gomp_iter_static_next): Return tri-state on 0.
18588 * ordered.c (gomp_ordered_static_next): Remove not_last argument.
18589 * libgomp.h (struct gomp_team_state): Make static_trip unsigned.
18590 (gomp_iter_static_next): Update.
18591 (gomp_ordered_static_next): Update.
18592 * loop.c (gomp_loop_static_start): Update for gomp_iter_static_next.
18593 (gomp_loop_ordered_static_start): Likewise. Exit early for a
18594 totally empty range.
18595 (gomp_loop_ordered_static_next): Refine test for calling
18596 gomp_ordered_static_next.
18597 * testsuite/ordered-1.c: Add case for more threads than iterations.
18598
18599 * iter.c (gomp_iter_runtime_next_locked): Remove.
18600 * loop.c (gomp_loop_static_start, gomp_loop_dynamic_start,
18601 gomp_loop_guided_start, gomp_loop_ordered_static_start,
18602 gomp_loop_ordered_dynamic_start, gomp_loop_ordered_guided_start,
18603 gomp_loop_static_next, gomp_loop_dynamic_next, gomp_loop_guided_next,
18604 gomp_loop_ordered_static_next, gomp_loop_ordered_dynamic_next,
18605 gomp_loop_ordered_guided_next): Downcase name, make static, add
18606 an external alias with the old name.
18607 (GOMP_loop_runtime_start, GOMP_loop_ordered_runtime_start,
18608 GOMP_loop_runtime_next, GOMP_loop_ordered_runtime_next): Use a
18609 switch and call one of the above static functions.
18610 * libgomp.h: Update.
18611
18612 * work.c (gomp_work_share_start): Lock the mutex for !first too.
18613 * loop.c (GOMP_loop_static_start, GOMP_loop_dynamic_start,
18614 GOMP_loop_guided_start, GOMP_loop_runtime_start,
18615 GOMP_loop_ordered_static_start, GOMP_loop_ordered_dynamic_start,
18616 GOMP_loop_ordered_guided_start): Update to match.
18617 * sections.c (GOMP_sections_start): Likewise.
18618 * single.c (GOMP_single_start, GOMP_single_copy_start): Likewise.
18619
18620 * ordered.c (gomp_ordered_first, gomp_ordered_last, gomp_ordered_next,
18621 gomp_ordered_static_init, gomp_ordered_static_next): Rename s/_loop//.
18622 Use bounds check instead of modulus.
18623 (gomp_ordered_sync): Split out of GOMP_ordered_start.
18624 (gomp_ordered_last): Don't sync with ordered_owner here.
18625 (gomp_ordered_next): Likewise.
18626 (gomp_ordered_static_loop_next): Likewise.
18627 * loop.c, libgomp.h: Update to match.
18628
18629 * libgomp.h (GOMP_barrier): Declare.
18630
18631 * testsuite/barrier-1.c: New file.
18632 * testsuite/critical-1.c: New file.
18633 * testsuite/ordered-2.c: New file.
18634 * testsuite/ordered-1.c: New file.
18635 * testsuite/sections-1.c: New file.
18636 * testsuite/single-1.c: New file.
18637 * testsuite/Makefile (TESTS): Add them.
18638
18639 2005-05-04 Richard Henderson <rth@redhat.com>
18640
18641 * libgomp.h (struct gomp_work_share): Add ordered_owner.
18642 * loop.c (GOMP_loop_static_start): If not the startup thread,
18643 acquire the mutex to wait for initialization complete.
18644 (GOMP_loop_ordered_static_start): Likewise.
18645 (GOMP_loop_ordered_runtime_start): Likewise.
18646 (GOMP_loop_ordered_static_first): Remove.
18647 (GOMP_loop_ordered_dynamic_first): Remove.
18648 (GOMP_loop_ordered_guided_first): Remove.
18649 (GOMP_loop_ordered_runtime_first): Remove.
18650 * ordered.c (gomp_ordered_loop_first): Post to own release when
18651 we're the first thread.
18652 (gomp_ordered_loop_last): Wait on release if not owner.
18653 (gomp_ordered_loop_next): Likewise.
18654 (gomp_ordered_static_loop_init): New.
18655 (gomp_ordered_static_loop_next): Use ordered_owner.
18656 (GOMP_ordered_start): Likewise.
18657 * work.c (gomp_new_work_share): Initialize ordered_owner.
18658
18659 2005-05-03 Richard Henderson <rth@redhat.com>
18660
18661 * Makefile (OPT): New.
18662 (CFLAGS): Use it.
18663
18664 * loop.c (GOMP_loop_end, GOMP_loop_end_nowait): New.
18665 * sections.c (GOMP_sections_end, GOMP_sections_end_nowait): New.
18666 * libgomp.h, libgomp.map, NOTES: Update to match.
18667
18668 * team.c (struct gomp_thread_start_data): Remove ts, fn, data.
18669 Add initialized and thr members.
18670 (gomp_thread_start): Pause when initially spawned to wait for
18671 the whole team to be created.
18672 (gomp_team_start): Release team members at the end.
18673
18674 * testsuite/loop-1.c (N): New. Use it instead of hardcoded 100.
18675 (f_foo_1): Use GOMP_loop_end.
18676 (f_foo_2): Use GOMP_loop_end_nowait.
18677
18678 * testsuite/loop-2.c: New file.
18679 * testsuite/Makefile (TESTS): Add it.
18680
18681 2005-05-03 Richard Henderson <rth@redhat.com>
18682
18683 * iter.c (gomp_iter_static_next): Fix overflow check typo.
18684 (gomp_iter_dynamic_next_locked): Fix overflow check thinko.
18685 * team.c (new_team): Initialize oldest_live_gen to 1 if no
18686 initial work_share.
18687
18688 * testsuite/Makefile: New file.
18689 * testsuite/loop-1.c: New file.
18690
18691 2005-05-03 Richard Henderson <rth@redhat.com>
18692
18693 Initial implementation and checkin.
18694 \f
18695 Copyright (C) 2005-2022 Free Software Foundation, Inc.
18696
18697 Copying and distribution of this file, with or without modification,
18698 are permitted in any medium without royalty provided the copyright
18699 notice and this notice are preserved.