1 2022-11-14 Martin Liska <mliska@suse.cz>
4 2022-11-14 Martin Liska <mliska@suse.cz>
6 * doc/amd-radeon-gcn.rst: New file.
7 * doc/conf.py: New file.
8 * doc/copyright.rst: New file.
9 * doc/cuda-streams-usage.rst: New file.
10 * doc/enabling-openacc.rst: New file.
11 * doc/enabling-openmp.rst: New file.
12 * doc/first-invocation-nvidia-cublas-library-api.rst: New file.
13 * doc/first-invocation-openacc-library-api.rst: New file.
14 * doc/funding.rst: New file.
15 * doc/general-public-license-3.rst: New file.
16 * doc/gnu-free-documentation-license.rst: New file.
17 * doc/implementation-status-and-implementation-defined-behavior.rst: New file.
18 * doc/index.rst: New file.
19 * doc/indices-and-tables.rst: New file.
20 * doc/introduction.rst: New file.
21 * doc/memory-allocation-with-libmemkind.rst: New file.
22 * doc/nvptx.rst: New file.
23 * doc/offload-target-specifics.rst: New file.
24 * doc/openacc-environment-variables.rst: New file.
25 * doc/openacc-environment-variables/accdevicenum.rst: New file.
26 * doc/openacc-environment-variables/accdevicetype.rst: New file.
27 * doc/openacc-environment-variables/accproflib.rst: New file.
28 * doc/openacc-environment-variables/gccaccnotify.rst: New file.
29 * doc/openacc-introduction.rst: New file.
30 * doc/openacc-library-and-environment-variables.rst: New file.
31 * doc/openacc-library-interoperability.rst: New file.
32 * doc/openacc-profiling-interface.rst: New file.
33 * doc/openacc-runtime-library-routines.rst: New file.
34 * doc/openacc-runtime-library-routines/accasynctest.rst: New file.
35 * doc/openacc-runtime-library-routines/accasynctestall.rst: New file.
36 * doc/openacc-runtime-library-routines/accattach.rst: New file.
37 * doc/openacc-runtime-library-routines/acccopyin.rst: New file.
38 * doc/openacc-runtime-library-routines/acccopyout.rst: New file.
39 * doc/openacc-runtime-library-routines/acccreate.rst: New file.
40 * doc/openacc-runtime-library-routines/accdelete.rst: New file.
41 * doc/openacc-runtime-library-routines/accdetach.rst: New file.
42 * doc/openacc-runtime-library-routines/accdeviceptr.rst: New file.
43 * doc/openacc-runtime-library-routines/accfree.rst: New file.
44 * doc/openacc-runtime-library-routines/accgetcudastream.rst: New file.
45 * doc/openacc-runtime-library-routines/accgetcurrentcudacontext.rst: New file.
46 * doc/openacc-runtime-library-routines/accgetcurrentcudadevice.rst: New file.
47 * doc/openacc-runtime-library-routines/accgetdevicenum.rst: New file.
48 * doc/openacc-runtime-library-routines/accgetdevicetype.rst: New file.
49 * doc/openacc-runtime-library-routines/accgetnumdevices.rst: New file.
50 * doc/openacc-runtime-library-routines/accgetproperty.rst: New file.
51 * doc/openacc-runtime-library-routines/acchostptr.rst: New file.
52 * doc/openacc-runtime-library-routines/accinit.rst: New file.
53 * doc/openacc-runtime-library-routines/accispresent.rst: New file.
54 * doc/openacc-runtime-library-routines/accmalloc.rst: New file.
55 * doc/openacc-runtime-library-routines/accmapdata.rst: New file.
56 * doc/openacc-runtime-library-routines/accmemcpyfromdevice.rst: New file.
57 * doc/openacc-runtime-library-routines/accmemcpytodevice.rst: New file.
58 * doc/openacc-runtime-library-routines/accondevice.rst: New file.
59 * doc/openacc-runtime-library-routines/accpresentorcopyin.rst: New file.
60 * doc/openacc-runtime-library-routines/accpresentorcreate.rst: New file.
61 * doc/openacc-runtime-library-routines/accproflookup.rst: New file.
62 * doc/openacc-runtime-library-routines/accprofregister.rst: New file.
63 * doc/openacc-runtime-library-routines/accprofunregister.rst: New file.
64 * doc/openacc-runtime-library-routines/accregisterlibrary.rst: New file.
65 * doc/openacc-runtime-library-routines/accsetcudastream.rst: New file.
66 * doc/openacc-runtime-library-routines/accsetdevicenum.rst: New file.
67 * doc/openacc-runtime-library-routines/accsetdevicetype.rst: New file.
68 * doc/openacc-runtime-library-routines/accshutdown.rst: New file.
69 * doc/openacc-runtime-library-routines/accunmapdata.rst: New file.
70 * doc/openacc-runtime-library-routines/accupdatedevice.rst: New file.
71 * doc/openacc-runtime-library-routines/accupdateself.rst: New file.
72 * doc/openacc-runtime-library-routines/accwait.rst: New file.
73 * doc/openacc-runtime-library-routines/accwaitall.rst: New file.
74 * doc/openacc-runtime-library-routines/accwaitallasync.rst: New file.
75 * doc/openacc-runtime-library-routines/accwaitasync.rst: New file.
76 * doc/openmp-context-selectors.rst: New file.
77 * doc/openmp-environment-variables.rst: New file.
78 * doc/openmp-environment-variables/gompcpuaffinity.rst: New file.
79 * doc/openmp-environment-variables/gompdebug.rst: New file.
80 * doc/openmp-environment-variables/gomprtemsthreadpools.rst: New file.
81 * doc/openmp-environment-variables/gompspincount.rst: New file.
82 * doc/openmp-environment-variables/gompstacksize.rst: New file.
83 * doc/openmp-environment-variables/ompcancellation.rst: New file.
84 * doc/openmp-environment-variables/ompdefaultdevice.rst: New file.
85 * doc/openmp-environment-variables/ompdisplayenv.rst: New file.
86 * doc/openmp-environment-variables/ompdynamic.rst: New file.
87 * doc/openmp-environment-variables/ompmaxactivelevels.rst: New file.
88 * doc/openmp-environment-variables/ompmaxtaskpriority.rst: New file.
89 * doc/openmp-environment-variables/ompnested.rst: New file.
90 * doc/openmp-environment-variables/ompnumteams.rst: New file.
91 * doc/openmp-environment-variables/ompnumthreads.rst: New file.
92 * doc/openmp-environment-variables/ompplaces.rst: New file.
93 * doc/openmp-environment-variables/ompprocbind.rst: New file.
94 * doc/openmp-environment-variables/ompschedule.rst: New file.
95 * doc/openmp-environment-variables/ompstacksize.rst: New file.
96 * doc/openmp-environment-variables/omptargetoffload.rst: New file.
97 * doc/openmp-environment-variables/ompteamsthreadlimit.rst: New file.
98 * doc/openmp-environment-variables/ompthreadlimit.rst: New file.
99 * doc/openmp-environment-variables/ompwaitpolicy.rst: New file.
100 * doc/openmp-implementation-specifics.rst: New file.
101 * doc/openmp-implementation-status.rst: New file.
102 * doc/openmp-implementation-status/openmp-45.rst: New file.
103 * doc/openmp-implementation-status/openmp-50.rst: New file.
104 * doc/openmp-implementation-status/openmp-51.rst: New file.
105 * doc/openmp-implementation-status/openmp-52.rst: New file.
106 * doc/openmp-runtime-library-routines.rst: New file.
107 * doc/openmp-runtime-library-routines/ompdestroylock.rst: New file.
108 * doc/openmp-runtime-library-routines/ompdestroynestlock.rst: New file.
109 * doc/openmp-runtime-library-routines/ompfulfillevent.rst: New file.
110 * doc/openmp-runtime-library-routines/ompgetactivelevel.rst: New file.
111 * doc/openmp-runtime-library-routines/ompgetancestorthreadnum.rst: New file.
112 * doc/openmp-runtime-library-routines/ompgetcancellation.rst: New file.
113 * doc/openmp-runtime-library-routines/ompgetdefaultdevice.rst: New file.
114 * doc/openmp-runtime-library-routines/ompgetdevicenum.rst: New file.
115 * doc/openmp-runtime-library-routines/ompgetdynamic.rst: New file.
116 * doc/openmp-runtime-library-routines/ompgetinitialdevice.rst: New file.
117 * doc/openmp-runtime-library-routines/ompgetlevel.rst: New file.
118 * doc/openmp-runtime-library-routines/ompgetmaxactivelevels.rst: New file.
119 * doc/openmp-runtime-library-routines/ompgetmaxtaskpriority.rst: New file.
120 * doc/openmp-runtime-library-routines/ompgetmaxteams.rst: New file.
121 * doc/openmp-runtime-library-routines/ompgetmaxthreads.rst: New file.
122 * doc/openmp-runtime-library-routines/ompgetnested.rst: New file.
123 * doc/openmp-runtime-library-routines/ompgetnumdevices.rst: New file.
124 * doc/openmp-runtime-library-routines/ompgetnumprocs.rst: New file.
125 * doc/openmp-runtime-library-routines/ompgetnumteams.rst: New file.
126 * doc/openmp-runtime-library-routines/ompgetnumthreads.rst: New file.
127 * doc/openmp-runtime-library-routines/ompgetprocbind.rst: New file.
128 * doc/openmp-runtime-library-routines/ompgetschedule.rst: New file.
129 * doc/openmp-runtime-library-routines/ompgetsupportedactivelevels.rst: New file.
130 * doc/openmp-runtime-library-routines/ompgetteamnum.rst: New file.
131 * doc/openmp-runtime-library-routines/ompgetteamsize.rst: New file.
132 * doc/openmp-runtime-library-routines/ompgetteamsthreadlimit.rst: New file.
133 * doc/openmp-runtime-library-routines/ompgetthreadlimit.rst: New file.
134 * doc/openmp-runtime-library-routines/ompgetthreadnum.rst: New file.
135 * doc/openmp-runtime-library-routines/ompgetwtick.rst: New file.
136 * doc/openmp-runtime-library-routines/ompgetwtime.rst: New file.
137 * doc/openmp-runtime-library-routines/ompinfinal.rst: New file.
138 * doc/openmp-runtime-library-routines/ompinitlock.rst: New file.
139 * doc/openmp-runtime-library-routines/ompinitnestlock.rst: New file.
140 * doc/openmp-runtime-library-routines/ompinparallel.rst: New file.
141 * doc/openmp-runtime-library-routines/ompisinitialdevice.rst: New file.
142 * doc/openmp-runtime-library-routines/ompsetdefaultdevice.rst: New file.
143 * doc/openmp-runtime-library-routines/ompsetdynamic.rst: New file.
144 * doc/openmp-runtime-library-routines/ompsetlock.rst: New file.
145 * doc/openmp-runtime-library-routines/ompsetmaxactivelevels.rst: New file.
146 * doc/openmp-runtime-library-routines/ompsetnested.rst: New file.
147 * doc/openmp-runtime-library-routines/ompsetnestlock.rst: New file.
148 * doc/openmp-runtime-library-routines/ompsetnumteams.rst: New file.
149 * doc/openmp-runtime-library-routines/ompsetnumthreads.rst: New file.
150 * doc/openmp-runtime-library-routines/ompsetschedule.rst: New file.
151 * doc/openmp-runtime-library-routines/ompsetteamsthreadlimit.rst: New file.
152 * doc/openmp-runtime-library-routines/omptestlock.rst: New file.
153 * doc/openmp-runtime-library-routines/omptestnestlock.rst: New file.
154 * doc/openmp-runtime-library-routines/ompunsetlock.rst: New file.
155 * doc/openmp-runtime-library-routines/ompunsetnestlock.rst: New file.
156 * doc/reporting-bugs.rst: New file.
157 * doc/the-libgomp-abi.rst: New file.
158 * doc/the-libgomp-abi/implementing-atomic-construct.rst: New file.
159 * doc/the-libgomp-abi/implementing-barrier-construct.rst: New file.
160 * doc/the-libgomp-abi/implementing-critical-construct.rst: New file.
161 * doc/the-libgomp-abi/implementing-firstprivate-lastprivate-copyin-and-copyprivate-clauses.rst:
163 * doc/the-libgomp-abi/implementing-flush-construct.rst: New file.
164 * doc/the-libgomp-abi/implementing-for-construct.rst: New file.
165 * doc/the-libgomp-abi/implementing-master-construct.rst: New file.
166 * doc/the-libgomp-abi/implementing-openaccs-parallel-construct.rst: New file.
167 * doc/the-libgomp-abi/implementing-ordered-construct.rst: New file.
168 * doc/the-libgomp-abi/implementing-parallel-construct.rst: New file.
169 * doc/the-libgomp-abi/implementing-private-clause.rst: New file.
170 * doc/the-libgomp-abi/implementing-reduction-clause.rst: New file.
171 * doc/the-libgomp-abi/implementing-sections-construct.rst: New file.
172 * doc/the-libgomp-abi/implementing-single-construct.rst: New file.
173 * doc/the-libgomp-abi/implementing-threadprivate-construct.rst: New file.
175 2022-11-14 Martin Liska <mliska@suse.cz>
178 2022-11-14 Martin Liska <mliska@suse.cz>
180 * Makefile.in: Support Sphinx based documentation.
182 2022-11-14 Martin Liska <mliska@suse.cz>
185 2022-11-14 Martin Liska <mliska@suse.cz>
187 * libgomp.texi: Removed.
189 2022-11-14 Martin Liska <mliska@suse.cz>
192 2022-11-14 Martin Liska <mliska@suse.cz>
194 * Makefile.in: Support --with-sphinx-build.
195 * configure.ac: Likewise..
196 * configure: Regenerate.
198 2022-11-14 Martin Liska <mliska@suse.cz>
201 2022-11-09 Martin Liska <mliska@suse.cz>
203 * Makefile.in: Build info pages conditionally.
205 2022-11-14 Martin Liska <mliska@suse.cz>
208 2022-11-14 Martin Liska <mliska@suse.cz>
210 * doc/amd-radeon-gcn.rst:
211 Add trailing newline.
213 Add trailing newline.
214 * doc/cuda-streams-usage.rst:
215 Add trailing newline.
216 * doc/enabling-openacc.rst:
217 Add trailing newline.
218 * doc/enabling-openmp.rst:
219 Add trailing newline.
220 * doc/first-invocation-nvidia-cublas-library-api.rst:
221 Add trailing newline.
222 * doc/first-invocation-openacc-library-api.rst:
223 Add trailing newline.
225 Add trailing newline.
226 * doc/general-public-license-3.rst:
227 Add trailing newline.
228 * doc/gnu-free-documentation-license.rst:
229 Add trailing newline.
230 * doc/implementation-status-and-implementation-defined-behavior.rst:
231 Add trailing newline.
233 Add trailing newline.
234 * doc/indices-and-tables.rst:
235 Add trailing newline.
236 * doc/introduction.rst:
237 Add trailing newline.
238 * doc/memory-allocation-with-libmemkind.rst:
239 Add trailing newline.
241 Add trailing newline.
242 * doc/offload-target-specifics.rst:
243 Add trailing newline.
244 * doc/openacc-environment-variables.rst:
245 Add trailing newline.
246 * doc/openacc-environment-variables/accdevicenum.rst:
247 Add trailing newline.
248 * doc/openacc-environment-variables/accdevicetype.rst:
249 Add trailing newline.
250 * doc/openacc-environment-variables/accproflib.rst:
251 Add trailing newline.
252 * doc/openacc-environment-variables/gccaccnotify.rst:
253 Add trailing newline.
254 * doc/openacc-introduction.rst:
255 Add trailing newline.
256 * doc/openacc-library-and-environment-variables.rst:
257 Add trailing newline.
258 * doc/openacc-library-interoperability.rst:
259 Add trailing newline.
260 * doc/openacc-profiling-interface.rst:
261 Add trailing newline.
262 * doc/openacc-runtime-library-routines.rst:
263 Add trailing newline.
264 * doc/openacc-runtime-library-routines/accasynctest.rst:
265 Add trailing newline.
266 * doc/openacc-runtime-library-routines/accasynctestall.rst:
267 Add trailing newline.
268 * doc/openacc-runtime-library-routines/accattach.rst:
269 Add trailing newline.
270 * doc/openacc-runtime-library-routines/acccopyin.rst:
271 Add trailing newline.
272 * doc/openacc-runtime-library-routines/acccopyout.rst:
273 Add trailing newline.
274 * doc/openacc-runtime-library-routines/acccreate.rst:
275 Add trailing newline.
276 * doc/openacc-runtime-library-routines/accdelete.rst:
277 Add trailing newline.
278 * doc/openacc-runtime-library-routines/accdetach.rst:
279 Add trailing newline.
280 * doc/openacc-runtime-library-routines/accdeviceptr.rst:
281 Add trailing newline.
282 * doc/openacc-runtime-library-routines/accfree.rst:
283 Add trailing newline.
284 * doc/openacc-runtime-library-routines/accgetcudastream.rst:
285 Add trailing newline.
286 * doc/openacc-runtime-library-routines/accgetcurrentcudacontext.rst:
287 Add trailing newline.
288 * doc/openacc-runtime-library-routines/accgetcurrentcudadevice.rst:
289 Add trailing newline.
290 * doc/openacc-runtime-library-routines/accgetdevicenum.rst:
291 Add trailing newline.
292 * doc/openacc-runtime-library-routines/accgetdevicetype.rst:
293 Add trailing newline.
294 * doc/openacc-runtime-library-routines/accgetnumdevices.rst:
295 Add trailing newline.
296 * doc/openacc-runtime-library-routines/accgetproperty.rst:
297 Add trailing newline.
298 * doc/openacc-runtime-library-routines/acchostptr.rst:
299 Add trailing newline.
300 * doc/openacc-runtime-library-routines/accinit.rst:
301 Add trailing newline.
302 * doc/openacc-runtime-library-routines/accispresent.rst:
303 Add trailing newline.
304 * doc/openacc-runtime-library-routines/accmalloc.rst:
305 Add trailing newline.
306 * doc/openacc-runtime-library-routines/accmapdata.rst:
307 Add trailing newline.
308 * doc/openacc-runtime-library-routines/accmemcpyfromdevice.rst:
309 Add trailing newline.
310 * doc/openacc-runtime-library-routines/accmemcpytodevice.rst:
311 Add trailing newline.
312 * doc/openacc-runtime-library-routines/accondevice.rst:
313 Add trailing newline.
314 * doc/openacc-runtime-library-routines/accpresentorcopyin.rst:
315 Add trailing newline.
316 * doc/openacc-runtime-library-routines/accpresentorcreate.rst:
317 Add trailing newline.
318 * doc/openacc-runtime-library-routines/accproflookup.rst:
319 Add trailing newline.
320 * doc/openacc-runtime-library-routines/accprofregister.rst:
321 Add trailing newline.
322 * doc/openacc-runtime-library-routines/accprofunregister.rst:
323 Add trailing newline.
324 * doc/openacc-runtime-library-routines/accregisterlibrary.rst:
325 Add trailing newline.
326 * doc/openacc-runtime-library-routines/accsetcudastream.rst:
327 Add trailing newline.
328 * doc/openacc-runtime-library-routines/accsetdevicenum.rst:
329 Add trailing newline.
330 * doc/openacc-runtime-library-routines/accsetdevicetype.rst:
331 Add trailing newline.
332 * doc/openacc-runtime-library-routines/accshutdown.rst:
333 Add trailing newline.
334 * doc/openacc-runtime-library-routines/accunmapdata.rst:
335 Add trailing newline.
336 * doc/openacc-runtime-library-routines/accupdatedevice.rst:
337 Add trailing newline.
338 * doc/openacc-runtime-library-routines/accupdateself.rst:
339 Add trailing newline.
340 * doc/openacc-runtime-library-routines/accwait.rst:
341 Add trailing newline.
342 * doc/openacc-runtime-library-routines/accwaitall.rst:
343 Add trailing newline.
344 * doc/openacc-runtime-library-routines/accwaitallasync.rst:
345 Add trailing newline.
346 * doc/openacc-runtime-library-routines/accwaitasync.rst:
347 Add trailing newline.
348 * doc/openmp-context-selectors.rst:
349 Add trailing newline.
350 * doc/openmp-environment-variables.rst:
351 Add trailing newline.
352 * doc/openmp-environment-variables/gompcpuaffinity.rst:
353 Add trailing newline.
354 * doc/openmp-environment-variables/gompdebug.rst:
355 Add trailing newline.
356 * doc/openmp-environment-variables/gomprtemsthreadpools.rst:
357 Add trailing newline.
358 * doc/openmp-environment-variables/gompspincount.rst:
359 Add trailing newline.
360 * doc/openmp-environment-variables/gompstacksize.rst:
361 Add trailing newline.
362 * doc/openmp-environment-variables/ompcancellation.rst:
363 Add trailing newline.
364 * doc/openmp-environment-variables/ompdefaultdevice.rst:
365 Add trailing newline.
366 * doc/openmp-environment-variables/ompdisplayenv.rst:
367 Add trailing newline.
368 * doc/openmp-environment-variables/ompdynamic.rst:
369 Add trailing newline.
370 * doc/openmp-environment-variables/ompmaxactivelevels.rst:
371 Add trailing newline.
372 * doc/openmp-environment-variables/ompmaxtaskpriority.rst:
373 Add trailing newline.
374 * doc/openmp-environment-variables/ompnested.rst:
375 Add trailing newline.
376 * doc/openmp-environment-variables/ompnumteams.rst:
377 Add trailing newline.
378 * doc/openmp-environment-variables/ompnumthreads.rst:
379 Add trailing newline.
380 * doc/openmp-environment-variables/ompplaces.rst:
381 Add trailing newline.
382 * doc/openmp-environment-variables/ompprocbind.rst:
383 Add trailing newline.
384 * doc/openmp-environment-variables/ompschedule.rst:
385 Add trailing newline.
386 * doc/openmp-environment-variables/ompstacksize.rst:
387 Add trailing newline.
388 * doc/openmp-environment-variables/omptargetoffload.rst:
389 Add trailing newline.
390 * doc/openmp-environment-variables/ompteamsthreadlimit.rst:
391 Add trailing newline.
392 * doc/openmp-environment-variables/ompthreadlimit.rst:
393 Add trailing newline.
394 * doc/openmp-environment-variables/ompwaitpolicy.rst:
395 Add trailing newline.
396 * doc/openmp-implementation-specifics.rst:
397 Add trailing newline.
398 * doc/openmp-implementation-status.rst:
399 Add trailing newline.
400 * doc/openmp-implementation-status/openmp-45.rst:
401 Add trailing newline.
402 * doc/openmp-implementation-status/openmp-50.rst:
403 Add trailing newline.
404 * doc/openmp-implementation-status/openmp-51.rst:
405 Add trailing newline.
406 * doc/openmp-implementation-status/openmp-52.rst:
407 Add trailing newline.
408 * doc/openmp-runtime-library-routines.rst:
409 Add trailing newline.
410 * doc/openmp-runtime-library-routines/ompdestroylock.rst:
411 Add trailing newline.
412 * doc/openmp-runtime-library-routines/ompdestroynestlock.rst:
413 Add trailing newline.
414 * doc/openmp-runtime-library-routines/ompfulfillevent.rst:
415 Add trailing newline.
416 * doc/openmp-runtime-library-routines/ompgetactivelevel.rst:
417 Add trailing newline.
418 * doc/openmp-runtime-library-routines/ompgetancestorthreadnum.rst:
419 Add trailing newline.
420 * doc/openmp-runtime-library-routines/ompgetcancellation.rst:
421 Add trailing newline.
422 * doc/openmp-runtime-library-routines/ompgetdefaultdevice.rst:
423 Add trailing newline.
424 * doc/openmp-runtime-library-routines/ompgetdevicenum.rst:
425 Add trailing newline.
426 * doc/openmp-runtime-library-routines/ompgetdynamic.rst:
427 Add trailing newline.
428 * doc/openmp-runtime-library-routines/ompgetinitialdevice.rst:
429 Add trailing newline.
430 * doc/openmp-runtime-library-routines/ompgetlevel.rst:
431 Add trailing newline.
432 * doc/openmp-runtime-library-routines/ompgetmaxactivelevels.rst:
433 Add trailing newline.
434 * doc/openmp-runtime-library-routines/ompgetmaxtaskpriority.rst:
435 Add trailing newline.
436 * doc/openmp-runtime-library-routines/ompgetmaxteams.rst:
437 Add trailing newline.
438 * doc/openmp-runtime-library-routines/ompgetmaxthreads.rst:
439 Add trailing newline.
440 * doc/openmp-runtime-library-routines/ompgetnested.rst:
441 Add trailing newline.
442 * doc/openmp-runtime-library-routines/ompgetnumdevices.rst:
443 Add trailing newline.
444 * doc/openmp-runtime-library-routines/ompgetnumprocs.rst:
445 Add trailing newline.
446 * doc/openmp-runtime-library-routines/ompgetnumteams.rst:
447 Add trailing newline.
448 * doc/openmp-runtime-library-routines/ompgetnumthreads.rst:
449 Add trailing newline.
450 * doc/openmp-runtime-library-routines/ompgetprocbind.rst:
451 Add trailing newline.
452 * doc/openmp-runtime-library-routines/ompgetschedule.rst:
453 Add trailing newline.
454 * doc/openmp-runtime-library-routines/ompgetsupportedactivelevels.rst:
455 Add trailing newline.
456 * doc/openmp-runtime-library-routines/ompgetteamnum.rst:
457 Add trailing newline.
458 * doc/openmp-runtime-library-routines/ompgetteamsize.rst:
459 Add trailing newline.
460 * doc/openmp-runtime-library-routines/ompgetteamsthreadlimit.rst:
461 Add trailing newline.
462 * doc/openmp-runtime-library-routines/ompgetthreadlimit.rst:
463 Add trailing newline.
464 * doc/openmp-runtime-library-routines/ompgetthreadnum.rst:
465 Add trailing newline.
466 * doc/openmp-runtime-library-routines/ompgetwtick.rst:
467 Add trailing newline.
468 * doc/openmp-runtime-library-routines/ompgetwtime.rst:
469 Add trailing newline.
470 * doc/openmp-runtime-library-routines/ompinfinal.rst:
471 Add trailing newline.
472 * doc/openmp-runtime-library-routines/ompinitlock.rst:
473 Add trailing newline.
474 * doc/openmp-runtime-library-routines/ompinitnestlock.rst:
475 Add trailing newline.
476 * doc/openmp-runtime-library-routines/ompinparallel.rst:
477 Add trailing newline.
478 * doc/openmp-runtime-library-routines/ompisinitialdevice.rst:
479 Add trailing newline.
480 * doc/openmp-runtime-library-routines/ompsetdefaultdevice.rst:
481 Add trailing newline.
482 * doc/openmp-runtime-library-routines/ompsetdynamic.rst:
483 Add trailing newline.
484 * doc/openmp-runtime-library-routines/ompsetlock.rst:
485 Add trailing newline.
486 * doc/openmp-runtime-library-routines/ompsetmaxactivelevels.rst:
487 Add trailing newline.
488 * doc/openmp-runtime-library-routines/ompsetnested.rst:
489 Add trailing newline.
490 * doc/openmp-runtime-library-routines/ompsetnestlock.rst:
491 Add trailing newline.
492 * doc/openmp-runtime-library-routines/ompsetnumteams.rst:
493 Add trailing newline.
494 * doc/openmp-runtime-library-routines/ompsetnumthreads.rst:
495 Add trailing newline.
496 * doc/openmp-runtime-library-routines/ompsetschedule.rst:
497 Add trailing newline.
498 * doc/openmp-runtime-library-routines/ompsetteamsthreadlimit.rst:
499 Add trailing newline.
500 * doc/openmp-runtime-library-routines/omptestlock.rst:
501 Add trailing newline.
502 * doc/openmp-runtime-library-routines/omptestnestlock.rst:
503 Add trailing newline.
504 * doc/openmp-runtime-library-routines/ompunsetlock.rst:
505 Add trailing newline.
506 * doc/openmp-runtime-library-routines/ompunsetnestlock.rst:
507 Add trailing newline.
508 * doc/reporting-bugs.rst:
509 Add trailing newline.
510 * doc/the-libgomp-abi.rst:
511 Add trailing newline.
512 * doc/the-libgomp-abi/implementing-atomic-construct.rst:
513 Add trailing newline.
514 * doc/the-libgomp-abi/implementing-barrier-construct.rst:
515 Add trailing newline.
516 * doc/the-libgomp-abi/implementing-critical-construct.rst:
517 Add trailing newline.
518 * doc/the-libgomp-abi/implementing-firstprivate-lastprivate-copyin-and-copyprivate-clauses.rst:
519 Add trailing newline.
520 * doc/the-libgomp-abi/implementing-flush-construct.rst:
521 Add trailing newline.
522 * doc/the-libgomp-abi/implementing-for-construct.rst:
523 Add trailing newline.
524 * doc/the-libgomp-abi/implementing-master-construct.rst:
525 Add trailing newline.
526 * doc/the-libgomp-abi/implementing-openaccs-parallel-construct.rst:
527 Add trailing newline.
528 * doc/the-libgomp-abi/implementing-ordered-construct.rst:
529 Add trailing newline.
530 * doc/the-libgomp-abi/implementing-parallel-construct.rst:
531 Add trailing newline.
532 * doc/the-libgomp-abi/implementing-private-clause.rst:
533 Add trailing newline.
534 * doc/the-libgomp-abi/implementing-reduction-clause.rst:
535 Add trailing newline.
536 * doc/the-libgomp-abi/implementing-sections-construct.rst:
537 Add trailing newline.
538 * doc/the-libgomp-abi/implementing-single-construct.rst:
539 Add trailing newline.
540 * doc/the-libgomp-abi/implementing-threadprivate-construct.rst:
541 Add trailing newline.
543 2022-11-14 Martin Liska <mliska@suse.cz>
546 2022-11-09 Martin Liska <mliska@suse.cz>
548 * Makefile.in: Add missing HAS_SPHINX_BUILD.
550 2022-11-14 Martin Liska <mliska@suse.cz>
553 2022-11-14 Martin Liska <mliska@suse.cz>
555 * doc/conf.py: Add newline at last line.
557 2022-11-14 Martin Liska <mliska@suse.cz>
560 2022-11-14 Martin Liska <mliska@suse.cz>
563 * configure: Regenerate.
564 * configure.ac: Always set sphinx-build.
566 2022-11-13 Martin Liska <mliska@suse.cz>
569 * configure: Regenerate.
570 * configure.ac: Always set sphinx-build.
572 2022-11-12 Jakub Jelinek <jakub@redhat.com>
575 * env.c (parse_unsigned_long): Cast params[2] to uintptr_t rather than
576 unsigned long. Change type of upper from unsigned to unsigned long.
578 2022-11-10 Martin Liska <mliska@suse.cz>
580 * doc/conf.py: Add newline at last line.
582 2022-11-09 Martin Liska <mliska@suse.cz>
584 * Makefile.in: Add missing HAS_SPHINX_BUILD.
586 2022-11-09 Martin Liska <mliska@suse.cz>
588 * doc/amd-radeon-gcn.rst:
589 Add trailing newline.
591 Add trailing newline.
592 * doc/cuda-streams-usage.rst:
593 Add trailing newline.
594 * doc/enabling-openacc.rst:
595 Add trailing newline.
596 * doc/enabling-openmp.rst:
597 Add trailing newline.
598 * doc/first-invocation-nvidia-cublas-library-api.rst:
599 Add trailing newline.
600 * doc/first-invocation-openacc-library-api.rst:
601 Add trailing newline.
603 Add trailing newline.
604 * doc/general-public-license-3.rst:
605 Add trailing newline.
606 * doc/gnu-free-documentation-license.rst:
607 Add trailing newline.
608 * doc/implementation-status-and-implementation-defined-behavior.rst:
609 Add trailing newline.
611 Add trailing newline.
612 * doc/indices-and-tables.rst:
613 Add trailing newline.
614 * doc/introduction.rst:
615 Add trailing newline.
616 * doc/memory-allocation-with-libmemkind.rst:
617 Add trailing newline.
619 Add trailing newline.
620 * doc/offload-target-specifics.rst:
621 Add trailing newline.
622 * doc/openacc-environment-variables.rst:
623 Add trailing newline.
624 * doc/openacc-environment-variables/accdevicenum.rst:
625 Add trailing newline.
626 * doc/openacc-environment-variables/accdevicetype.rst:
627 Add trailing newline.
628 * doc/openacc-environment-variables/accproflib.rst:
629 Add trailing newline.
630 * doc/openacc-environment-variables/gccaccnotify.rst:
631 Add trailing newline.
632 * doc/openacc-introduction.rst:
633 Add trailing newline.
634 * doc/openacc-library-and-environment-variables.rst:
635 Add trailing newline.
636 * doc/openacc-library-interoperability.rst:
637 Add trailing newline.
638 * doc/openacc-profiling-interface.rst:
639 Add trailing newline.
640 * doc/openacc-runtime-library-routines.rst:
641 Add trailing newline.
642 * doc/openacc-runtime-library-routines/accasynctest.rst:
643 Add trailing newline.
644 * doc/openacc-runtime-library-routines/accasynctestall.rst:
645 Add trailing newline.
646 * doc/openacc-runtime-library-routines/accattach.rst:
647 Add trailing newline.
648 * doc/openacc-runtime-library-routines/acccopyin.rst:
649 Add trailing newline.
650 * doc/openacc-runtime-library-routines/acccopyout.rst:
651 Add trailing newline.
652 * doc/openacc-runtime-library-routines/acccreate.rst:
653 Add trailing newline.
654 * doc/openacc-runtime-library-routines/accdelete.rst:
655 Add trailing newline.
656 * doc/openacc-runtime-library-routines/accdetach.rst:
657 Add trailing newline.
658 * doc/openacc-runtime-library-routines/accdeviceptr.rst:
659 Add trailing newline.
660 * doc/openacc-runtime-library-routines/accfree.rst:
661 Add trailing newline.
662 * doc/openacc-runtime-library-routines/accgetcudastream.rst:
663 Add trailing newline.
664 * doc/openacc-runtime-library-routines/accgetcurrentcudacontext.rst:
665 Add trailing newline.
666 * doc/openacc-runtime-library-routines/accgetcurrentcudadevice.rst:
667 Add trailing newline.
668 * doc/openacc-runtime-library-routines/accgetdevicenum.rst:
669 Add trailing newline.
670 * doc/openacc-runtime-library-routines/accgetdevicetype.rst:
671 Add trailing newline.
672 * doc/openacc-runtime-library-routines/accgetnumdevices.rst:
673 Add trailing newline.
674 * doc/openacc-runtime-library-routines/accgetproperty.rst:
675 Add trailing newline.
676 * doc/openacc-runtime-library-routines/acchostptr.rst:
677 Add trailing newline.
678 * doc/openacc-runtime-library-routines/accinit.rst:
679 Add trailing newline.
680 * doc/openacc-runtime-library-routines/accispresent.rst:
681 Add trailing newline.
682 * doc/openacc-runtime-library-routines/accmalloc.rst:
683 Add trailing newline.
684 * doc/openacc-runtime-library-routines/accmapdata.rst:
685 Add trailing newline.
686 * doc/openacc-runtime-library-routines/accmemcpyfromdevice.rst:
687 Add trailing newline.
688 * doc/openacc-runtime-library-routines/accmemcpytodevice.rst:
689 Add trailing newline.
690 * doc/openacc-runtime-library-routines/accondevice.rst:
691 Add trailing newline.
692 * doc/openacc-runtime-library-routines/accpresentorcopyin.rst:
693 Add trailing newline.
694 * doc/openacc-runtime-library-routines/accpresentorcreate.rst:
695 Add trailing newline.
696 * doc/openacc-runtime-library-routines/accproflookup.rst:
697 Add trailing newline.
698 * doc/openacc-runtime-library-routines/accprofregister.rst:
699 Add trailing newline.
700 * doc/openacc-runtime-library-routines/accprofunregister.rst:
701 Add trailing newline.
702 * doc/openacc-runtime-library-routines/accregisterlibrary.rst:
703 Add trailing newline.
704 * doc/openacc-runtime-library-routines/accsetcudastream.rst:
705 Add trailing newline.
706 * doc/openacc-runtime-library-routines/accsetdevicenum.rst:
707 Add trailing newline.
708 * doc/openacc-runtime-library-routines/accsetdevicetype.rst:
709 Add trailing newline.
710 * doc/openacc-runtime-library-routines/accshutdown.rst:
711 Add trailing newline.
712 * doc/openacc-runtime-library-routines/accunmapdata.rst:
713 Add trailing newline.
714 * doc/openacc-runtime-library-routines/accupdatedevice.rst:
715 Add trailing newline.
716 * doc/openacc-runtime-library-routines/accupdateself.rst:
717 Add trailing newline.
718 * doc/openacc-runtime-library-routines/accwait.rst:
719 Add trailing newline.
720 * doc/openacc-runtime-library-routines/accwaitall.rst:
721 Add trailing newline.
722 * doc/openacc-runtime-library-routines/accwaitallasync.rst:
723 Add trailing newline.
724 * doc/openacc-runtime-library-routines/accwaitasync.rst:
725 Add trailing newline.
726 * doc/openmp-context-selectors.rst:
727 Add trailing newline.
728 * doc/openmp-environment-variables.rst:
729 Add trailing newline.
730 * doc/openmp-environment-variables/gompcpuaffinity.rst:
731 Add trailing newline.
732 * doc/openmp-environment-variables/gompdebug.rst:
733 Add trailing newline.
734 * doc/openmp-environment-variables/gomprtemsthreadpools.rst:
735 Add trailing newline.
736 * doc/openmp-environment-variables/gompspincount.rst:
737 Add trailing newline.
738 * doc/openmp-environment-variables/gompstacksize.rst:
739 Add trailing newline.
740 * doc/openmp-environment-variables/ompcancellation.rst:
741 Add trailing newline.
742 * doc/openmp-environment-variables/ompdefaultdevice.rst:
743 Add trailing newline.
744 * doc/openmp-environment-variables/ompdisplayenv.rst:
745 Add trailing newline.
746 * doc/openmp-environment-variables/ompdynamic.rst:
747 Add trailing newline.
748 * doc/openmp-environment-variables/ompmaxactivelevels.rst:
749 Add trailing newline.
750 * doc/openmp-environment-variables/ompmaxtaskpriority.rst:
751 Add trailing newline.
752 * doc/openmp-environment-variables/ompnested.rst:
753 Add trailing newline.
754 * doc/openmp-environment-variables/ompnumteams.rst:
755 Add trailing newline.
756 * doc/openmp-environment-variables/ompnumthreads.rst:
757 Add trailing newline.
758 * doc/openmp-environment-variables/ompplaces.rst:
759 Add trailing newline.
760 * doc/openmp-environment-variables/ompprocbind.rst:
761 Add trailing newline.
762 * doc/openmp-environment-variables/ompschedule.rst:
763 Add trailing newline.
764 * doc/openmp-environment-variables/ompstacksize.rst:
765 Add trailing newline.
766 * doc/openmp-environment-variables/omptargetoffload.rst:
767 Add trailing newline.
768 * doc/openmp-environment-variables/ompteamsthreadlimit.rst:
769 Add trailing newline.
770 * doc/openmp-environment-variables/ompthreadlimit.rst:
771 Add trailing newline.
772 * doc/openmp-environment-variables/ompwaitpolicy.rst:
773 Add trailing newline.
774 * doc/openmp-implementation-specifics.rst:
775 Add trailing newline.
776 * doc/openmp-implementation-status.rst:
777 Add trailing newline.
778 * doc/openmp-implementation-status/openmp-45.rst:
779 Add trailing newline.
780 * doc/openmp-implementation-status/openmp-50.rst:
781 Add trailing newline.
782 * doc/openmp-implementation-status/openmp-51.rst:
783 Add trailing newline.
784 * doc/openmp-implementation-status/openmp-52.rst:
785 Add trailing newline.
786 * doc/openmp-runtime-library-routines.rst:
787 Add trailing newline.
788 * doc/openmp-runtime-library-routines/ompdestroylock.rst:
789 Add trailing newline.
790 * doc/openmp-runtime-library-routines/ompdestroynestlock.rst:
791 Add trailing newline.
792 * doc/openmp-runtime-library-routines/ompfulfillevent.rst:
793 Add trailing newline.
794 * doc/openmp-runtime-library-routines/ompgetactivelevel.rst:
795 Add trailing newline.
796 * doc/openmp-runtime-library-routines/ompgetancestorthreadnum.rst:
797 Add trailing newline.
798 * doc/openmp-runtime-library-routines/ompgetcancellation.rst:
799 Add trailing newline.
800 * doc/openmp-runtime-library-routines/ompgetdefaultdevice.rst:
801 Add trailing newline.
802 * doc/openmp-runtime-library-routines/ompgetdevicenum.rst:
803 Add trailing newline.
804 * doc/openmp-runtime-library-routines/ompgetdynamic.rst:
805 Add trailing newline.
806 * doc/openmp-runtime-library-routines/ompgetinitialdevice.rst:
807 Add trailing newline.
808 * doc/openmp-runtime-library-routines/ompgetlevel.rst:
809 Add trailing newline.
810 * doc/openmp-runtime-library-routines/ompgetmaxactivelevels.rst:
811 Add trailing newline.
812 * doc/openmp-runtime-library-routines/ompgetmaxtaskpriority.rst:
813 Add trailing newline.
814 * doc/openmp-runtime-library-routines/ompgetmaxteams.rst:
815 Add trailing newline.
816 * doc/openmp-runtime-library-routines/ompgetmaxthreads.rst:
817 Add trailing newline.
818 * doc/openmp-runtime-library-routines/ompgetnested.rst:
819 Add trailing newline.
820 * doc/openmp-runtime-library-routines/ompgetnumdevices.rst:
821 Add trailing newline.
822 * doc/openmp-runtime-library-routines/ompgetnumprocs.rst:
823 Add trailing newline.
824 * doc/openmp-runtime-library-routines/ompgetnumteams.rst:
825 Add trailing newline.
826 * doc/openmp-runtime-library-routines/ompgetnumthreads.rst:
827 Add trailing newline.
828 * doc/openmp-runtime-library-routines/ompgetprocbind.rst:
829 Add trailing newline.
830 * doc/openmp-runtime-library-routines/ompgetschedule.rst:
831 Add trailing newline.
832 * doc/openmp-runtime-library-routines/ompgetsupportedactivelevels.rst:
833 Add trailing newline.
834 * doc/openmp-runtime-library-routines/ompgetteamnum.rst:
835 Add trailing newline.
836 * doc/openmp-runtime-library-routines/ompgetteamsize.rst:
837 Add trailing newline.
838 * doc/openmp-runtime-library-routines/ompgetteamsthreadlimit.rst:
839 Add trailing newline.
840 * doc/openmp-runtime-library-routines/ompgetthreadlimit.rst:
841 Add trailing newline.
842 * doc/openmp-runtime-library-routines/ompgetthreadnum.rst:
843 Add trailing newline.
844 * doc/openmp-runtime-library-routines/ompgetwtick.rst:
845 Add trailing newline.
846 * doc/openmp-runtime-library-routines/ompgetwtime.rst:
847 Add trailing newline.
848 * doc/openmp-runtime-library-routines/ompinfinal.rst:
849 Add trailing newline.
850 * doc/openmp-runtime-library-routines/ompinitlock.rst:
851 Add trailing newline.
852 * doc/openmp-runtime-library-routines/ompinitnestlock.rst:
853 Add trailing newline.
854 * doc/openmp-runtime-library-routines/ompinparallel.rst:
855 Add trailing newline.
856 * doc/openmp-runtime-library-routines/ompisinitialdevice.rst:
857 Add trailing newline.
858 * doc/openmp-runtime-library-routines/ompsetdefaultdevice.rst:
859 Add trailing newline.
860 * doc/openmp-runtime-library-routines/ompsetdynamic.rst:
861 Add trailing newline.
862 * doc/openmp-runtime-library-routines/ompsetlock.rst:
863 Add trailing newline.
864 * doc/openmp-runtime-library-routines/ompsetmaxactivelevels.rst:
865 Add trailing newline.
866 * doc/openmp-runtime-library-routines/ompsetnested.rst:
867 Add trailing newline.
868 * doc/openmp-runtime-library-routines/ompsetnestlock.rst:
869 Add trailing newline.
870 * doc/openmp-runtime-library-routines/ompsetnumteams.rst:
871 Add trailing newline.
872 * doc/openmp-runtime-library-routines/ompsetnumthreads.rst:
873 Add trailing newline.
874 * doc/openmp-runtime-library-routines/ompsetschedule.rst:
875 Add trailing newline.
876 * doc/openmp-runtime-library-routines/ompsetteamsthreadlimit.rst:
877 Add trailing newline.
878 * doc/openmp-runtime-library-routines/omptestlock.rst:
879 Add trailing newline.
880 * doc/openmp-runtime-library-routines/omptestnestlock.rst:
881 Add trailing newline.
882 * doc/openmp-runtime-library-routines/ompunsetlock.rst:
883 Add trailing newline.
884 * doc/openmp-runtime-library-routines/ompunsetnestlock.rst:
885 Add trailing newline.
886 * doc/reporting-bugs.rst:
887 Add trailing newline.
888 * doc/the-libgomp-abi.rst:
889 Add trailing newline.
890 * doc/the-libgomp-abi/implementing-atomic-construct.rst:
891 Add trailing newline.
892 * doc/the-libgomp-abi/implementing-barrier-construct.rst:
893 Add trailing newline.
894 * doc/the-libgomp-abi/implementing-critical-construct.rst:
895 Add trailing newline.
896 * doc/the-libgomp-abi/implementing-firstprivate-lastprivate-copyin-and-copyprivate-clauses.rst:
897 Add trailing newline.
898 * doc/the-libgomp-abi/implementing-flush-construct.rst:
899 Add trailing newline.
900 * doc/the-libgomp-abi/implementing-for-construct.rst:
901 Add trailing newline.
902 * doc/the-libgomp-abi/implementing-master-construct.rst:
903 Add trailing newline.
904 * doc/the-libgomp-abi/implementing-openaccs-parallel-construct.rst:
905 Add trailing newline.
906 * doc/the-libgomp-abi/implementing-ordered-construct.rst:
907 Add trailing newline.
908 * doc/the-libgomp-abi/implementing-parallel-construct.rst:
909 Add trailing newline.
910 * doc/the-libgomp-abi/implementing-private-clause.rst:
911 Add trailing newline.
912 * doc/the-libgomp-abi/implementing-reduction-clause.rst:
913 Add trailing newline.
914 * doc/the-libgomp-abi/implementing-sections-construct.rst:
915 Add trailing newline.
916 * doc/the-libgomp-abi/implementing-single-construct.rst:
917 Add trailing newline.
918 * doc/the-libgomp-abi/implementing-threadprivate-construct.rst:
919 Add trailing newline.
921 2022-11-09 Martin Liska <mliska@suse.cz>
923 * Makefile.in: Build info pages conditionally.
925 2022-11-09 Martin Liska <mliska@suse.cz>
927 * Makefile.in: Support --with-sphinx-build.
928 * configure.ac: Likewise..
929 * configure: Regenerate.
931 2022-11-09 Martin Liska <mliska@suse.cz>
933 * libgomp.texi: Removed.
935 2022-11-09 Martin Liska <mliska@suse.cz>
937 * Makefile.in: Support Sphinx based documentation.
939 2022-11-09 Martin Liska <mliska@suse.cz>
941 * doc/amd-radeon-gcn.rst: New file.
942 * doc/conf.py: New file.
943 * doc/copyright.rst: New file.
944 * doc/cuda-streams-usage.rst: New file.
945 * doc/enabling-openacc.rst: New file.
946 * doc/enabling-openmp.rst: New file.
947 * doc/first-invocation-nvidia-cublas-library-api.rst: New file.
948 * doc/first-invocation-openacc-library-api.rst: New file.
949 * doc/funding.rst: New file.
950 * doc/general-public-license-3.rst: New file.
951 * doc/gnu-free-documentation-license.rst: New file.
952 * doc/implementation-status-and-implementation-defined-behavior.rst: New file.
953 * doc/index.rst: New file.
954 * doc/indices-and-tables.rst: New file.
955 * doc/introduction.rst: New file.
956 * doc/memory-allocation-with-libmemkind.rst: New file.
957 * doc/nvptx.rst: New file.
958 * doc/offload-target-specifics.rst: New file.
959 * doc/openacc-environment-variables.rst: New file.
960 * doc/openacc-environment-variables/accdevicenum.rst: New file.
961 * doc/openacc-environment-variables/accdevicetype.rst: New file.
962 * doc/openacc-environment-variables/accproflib.rst: New file.
963 * doc/openacc-environment-variables/gccaccnotify.rst: New file.
964 * doc/openacc-introduction.rst: New file.
965 * doc/openacc-library-and-environment-variables.rst: New file.
966 * doc/openacc-library-interoperability.rst: New file.
967 * doc/openacc-profiling-interface.rst: New file.
968 * doc/openacc-runtime-library-routines.rst: New file.
969 * doc/openacc-runtime-library-routines/accasynctest.rst: New file.
970 * doc/openacc-runtime-library-routines/accasynctestall.rst: New file.
971 * doc/openacc-runtime-library-routines/accattach.rst: New file.
972 * doc/openacc-runtime-library-routines/acccopyin.rst: New file.
973 * doc/openacc-runtime-library-routines/acccopyout.rst: New file.
974 * doc/openacc-runtime-library-routines/acccreate.rst: New file.
975 * doc/openacc-runtime-library-routines/accdelete.rst: New file.
976 * doc/openacc-runtime-library-routines/accdetach.rst: New file.
977 * doc/openacc-runtime-library-routines/accdeviceptr.rst: New file.
978 * doc/openacc-runtime-library-routines/accfree.rst: New file.
979 * doc/openacc-runtime-library-routines/accgetcudastream.rst: New file.
980 * doc/openacc-runtime-library-routines/accgetcurrentcudacontext.rst: New file.
981 * doc/openacc-runtime-library-routines/accgetcurrentcudadevice.rst: New file.
982 * doc/openacc-runtime-library-routines/accgetdevicenum.rst: New file.
983 * doc/openacc-runtime-library-routines/accgetdevicetype.rst: New file.
984 * doc/openacc-runtime-library-routines/accgetnumdevices.rst: New file.
985 * doc/openacc-runtime-library-routines/accgetproperty.rst: New file.
986 * doc/openacc-runtime-library-routines/acchostptr.rst: New file.
987 * doc/openacc-runtime-library-routines/accinit.rst: New file.
988 * doc/openacc-runtime-library-routines/accispresent.rst: New file.
989 * doc/openacc-runtime-library-routines/accmalloc.rst: New file.
990 * doc/openacc-runtime-library-routines/accmapdata.rst: New file.
991 * doc/openacc-runtime-library-routines/accmemcpyfromdevice.rst: New file.
992 * doc/openacc-runtime-library-routines/accmemcpytodevice.rst: New file.
993 * doc/openacc-runtime-library-routines/accondevice.rst: New file.
994 * doc/openacc-runtime-library-routines/accpresentorcopyin.rst: New file.
995 * doc/openacc-runtime-library-routines/accpresentorcreate.rst: New file.
996 * doc/openacc-runtime-library-routines/accproflookup.rst: New file.
997 * doc/openacc-runtime-library-routines/accprofregister.rst: New file.
998 * doc/openacc-runtime-library-routines/accprofunregister.rst: New file.
999 * doc/openacc-runtime-library-routines/accregisterlibrary.rst: New file.
1000 * doc/openacc-runtime-library-routines/accsetcudastream.rst: New file.
1001 * doc/openacc-runtime-library-routines/accsetdevicenum.rst: New file.
1002 * doc/openacc-runtime-library-routines/accsetdevicetype.rst: New file.
1003 * doc/openacc-runtime-library-routines/accshutdown.rst: New file.
1004 * doc/openacc-runtime-library-routines/accunmapdata.rst: New file.
1005 * doc/openacc-runtime-library-routines/accupdatedevice.rst: New file.
1006 * doc/openacc-runtime-library-routines/accupdateself.rst: New file.
1007 * doc/openacc-runtime-library-routines/accwait.rst: New file.
1008 * doc/openacc-runtime-library-routines/accwaitall.rst: New file.
1009 * doc/openacc-runtime-library-routines/accwaitallasync.rst: New file.
1010 * doc/openacc-runtime-library-routines/accwaitasync.rst: New file.
1011 * doc/openmp-context-selectors.rst: New file.
1012 * doc/openmp-environment-variables.rst: New file.
1013 * doc/openmp-environment-variables/gompcpuaffinity.rst: New file.
1014 * doc/openmp-environment-variables/gompdebug.rst: New file.
1015 * doc/openmp-environment-variables/gomprtemsthreadpools.rst: New file.
1016 * doc/openmp-environment-variables/gompspincount.rst: New file.
1017 * doc/openmp-environment-variables/gompstacksize.rst: New file.
1018 * doc/openmp-environment-variables/ompcancellation.rst: New file.
1019 * doc/openmp-environment-variables/ompdefaultdevice.rst: New file.
1020 * doc/openmp-environment-variables/ompdisplayenv.rst: New file.
1021 * doc/openmp-environment-variables/ompdynamic.rst: New file.
1022 * doc/openmp-environment-variables/ompmaxactivelevels.rst: New file.
1023 * doc/openmp-environment-variables/ompmaxtaskpriority.rst: New file.
1024 * doc/openmp-environment-variables/ompnested.rst: New file.
1025 * doc/openmp-environment-variables/ompnumteams.rst: New file.
1026 * doc/openmp-environment-variables/ompnumthreads.rst: New file.
1027 * doc/openmp-environment-variables/ompplaces.rst: New file.
1028 * doc/openmp-environment-variables/ompprocbind.rst: New file.
1029 * doc/openmp-environment-variables/ompschedule.rst: New file.
1030 * doc/openmp-environment-variables/ompstacksize.rst: New file.
1031 * doc/openmp-environment-variables/omptargetoffload.rst: New file.
1032 * doc/openmp-environment-variables/ompteamsthreadlimit.rst: New file.
1033 * doc/openmp-environment-variables/ompthreadlimit.rst: New file.
1034 * doc/openmp-environment-variables/ompwaitpolicy.rst: New file.
1035 * doc/openmp-implementation-specifics.rst: New file.
1036 * doc/openmp-implementation-status.rst: New file.
1037 * doc/openmp-implementation-status/openmp-45.rst: New file.
1038 * doc/openmp-implementation-status/openmp-50.rst: New file.
1039 * doc/openmp-implementation-status/openmp-51.rst: New file.
1040 * doc/openmp-implementation-status/openmp-52.rst: New file.
1041 * doc/openmp-runtime-library-routines.rst: New file.
1042 * doc/openmp-runtime-library-routines/ompdestroylock.rst: New file.
1043 * doc/openmp-runtime-library-routines/ompdestroynestlock.rst: New file.
1044 * doc/openmp-runtime-library-routines/ompfulfillevent.rst: New file.
1045 * doc/openmp-runtime-library-routines/ompgetactivelevel.rst: New file.
1046 * doc/openmp-runtime-library-routines/ompgetancestorthreadnum.rst: New file.
1047 * doc/openmp-runtime-library-routines/ompgetcancellation.rst: New file.
1048 * doc/openmp-runtime-library-routines/ompgetdefaultdevice.rst: New file.
1049 * doc/openmp-runtime-library-routines/ompgetdevicenum.rst: New file.
1050 * doc/openmp-runtime-library-routines/ompgetdynamic.rst: New file.
1051 * doc/openmp-runtime-library-routines/ompgetinitialdevice.rst: New file.
1052 * doc/openmp-runtime-library-routines/ompgetlevel.rst: New file.
1053 * doc/openmp-runtime-library-routines/ompgetmaxactivelevels.rst: New file.
1054 * doc/openmp-runtime-library-routines/ompgetmaxtaskpriority.rst: New file.
1055 * doc/openmp-runtime-library-routines/ompgetmaxteams.rst: New file.
1056 * doc/openmp-runtime-library-routines/ompgetmaxthreads.rst: New file.
1057 * doc/openmp-runtime-library-routines/ompgetnested.rst: New file.
1058 * doc/openmp-runtime-library-routines/ompgetnumdevices.rst: New file.
1059 * doc/openmp-runtime-library-routines/ompgetnumprocs.rst: New file.
1060 * doc/openmp-runtime-library-routines/ompgetnumteams.rst: New file.
1061 * doc/openmp-runtime-library-routines/ompgetnumthreads.rst: New file.
1062 * doc/openmp-runtime-library-routines/ompgetprocbind.rst: New file.
1063 * doc/openmp-runtime-library-routines/ompgetschedule.rst: New file.
1064 * doc/openmp-runtime-library-routines/ompgetsupportedactivelevels.rst: New file.
1065 * doc/openmp-runtime-library-routines/ompgetteamnum.rst: New file.
1066 * doc/openmp-runtime-library-routines/ompgetteamsize.rst: New file.
1067 * doc/openmp-runtime-library-routines/ompgetteamsthreadlimit.rst: New file.
1068 * doc/openmp-runtime-library-routines/ompgetthreadlimit.rst: New file.
1069 * doc/openmp-runtime-library-routines/ompgetthreadnum.rst: New file.
1070 * doc/openmp-runtime-library-routines/ompgetwtick.rst: New file.
1071 * doc/openmp-runtime-library-routines/ompgetwtime.rst: New file.
1072 * doc/openmp-runtime-library-routines/ompinfinal.rst: New file.
1073 * doc/openmp-runtime-library-routines/ompinitlock.rst: New file.
1074 * doc/openmp-runtime-library-routines/ompinitnestlock.rst: New file.
1075 * doc/openmp-runtime-library-routines/ompinparallel.rst: New file.
1076 * doc/openmp-runtime-library-routines/ompisinitialdevice.rst: New file.
1077 * doc/openmp-runtime-library-routines/ompsetdefaultdevice.rst: New file.
1078 * doc/openmp-runtime-library-routines/ompsetdynamic.rst: New file.
1079 * doc/openmp-runtime-library-routines/ompsetlock.rst: New file.
1080 * doc/openmp-runtime-library-routines/ompsetmaxactivelevels.rst: New file.
1081 * doc/openmp-runtime-library-routines/ompsetnested.rst: New file.
1082 * doc/openmp-runtime-library-routines/ompsetnestlock.rst: New file.
1083 * doc/openmp-runtime-library-routines/ompsetnumteams.rst: New file.
1084 * doc/openmp-runtime-library-routines/ompsetnumthreads.rst: New file.
1085 * doc/openmp-runtime-library-routines/ompsetschedule.rst: New file.
1086 * doc/openmp-runtime-library-routines/ompsetteamsthreadlimit.rst: New file.
1087 * doc/openmp-runtime-library-routines/omptestlock.rst: New file.
1088 * doc/openmp-runtime-library-routines/omptestnestlock.rst: New file.
1089 * doc/openmp-runtime-library-routines/ompunsetlock.rst: New file.
1090 * doc/openmp-runtime-library-routines/ompunsetnestlock.rst: New file.
1091 * doc/reporting-bugs.rst: New file.
1092 * doc/the-libgomp-abi.rst: New file.
1093 * doc/the-libgomp-abi/implementing-atomic-construct.rst: New file.
1094 * doc/the-libgomp-abi/implementing-barrier-construct.rst: New file.
1095 * doc/the-libgomp-abi/implementing-critical-construct.rst: New file.
1096 * doc/the-libgomp-abi/implementing-firstprivate-lastprivate-copyin-and-copyprivate-clauses.rst:
1098 * doc/the-libgomp-abi/implementing-flush-construct.rst: New file.
1099 * doc/the-libgomp-abi/implementing-for-construct.rst: New file.
1100 * doc/the-libgomp-abi/implementing-master-construct.rst: New file.
1101 * doc/the-libgomp-abi/implementing-openaccs-parallel-construct.rst: New file.
1102 * doc/the-libgomp-abi/implementing-ordered-construct.rst: New file.
1103 * doc/the-libgomp-abi/implementing-parallel-construct.rst: New file.
1104 * doc/the-libgomp-abi/implementing-private-clause.rst: New file.
1105 * doc/the-libgomp-abi/implementing-reduction-clause.rst: New file.
1106 * doc/the-libgomp-abi/implementing-sections-construct.rst: New file.
1107 * doc/the-libgomp-abi/implementing-single-construct.rst: New file.
1108 * doc/the-libgomp-abi/implementing-threadprivate-construct.rst: New file.
1110 2022-11-04 Thomas Schwinge <thomas@codesourcery.com>
1112 * libgomp-plugin.h (OFFLOAD_TARGET_TYPE_INTEL_MIC): Remove.
1113 * libgomp.texi (OpenMP Context Selectors): Remove Intel MIC
1115 * plugin/configfrag.ac <enable_offload_targets>
1116 [*-intelmic-* | *-intelmicemul-*]: Remove.
1117 * configure: Regenerate.
1118 * testsuite/lib/libgomp.exp (libgomp_init): Remove 'liboffloadmic'
1120 (offload_target_to_openacc_device_type)
1121 [$offload_target = *-intelmic*]: Remove.
1122 (check_effective_target_offload_device_intel_mic)
1123 (check_effective_target_offload_device_any_intel_mic): Remove.
1124 * testsuite/libgomp.c-c++-common/on_device_arch.h
1125 (device_arch_intel_mic, on_device_arch_intel_mic, any_device_arch)
1126 (any_device_arch_intel_mic): Remove.
1127 * testsuite/libgomp.c-c++-common/target-45.c: Remove
1128 'offload_device_any_intel_mic' XFAIL.
1129 * testsuite/libgomp.fortran/target10.f90: Likewise.
1131 2022-11-03 Tobias Burnus <tobias@codesourcery.com>
1133 * testsuite/libgomp.fortran/target-11.f90: New test.
1134 * testsuite/libgomp.fortran/target-13.f90: New test.
1136 2022-11-02 Thomas Schwinge <thomas@codesourcery.com>
1140 * oacc-mem.c (goacc_enter_data_internal): Support
1141 OpenACC 'declare create' with Fortran allocatable arrays, part II.
1142 * testsuite/libgomp.oacc-fortran/declare-allocatable-array_descriptor-1-directive.f90:
1144 * testsuite/libgomp.oacc-fortran/pr106643-1.f90: New.
1146 2022-11-02 Thomas Schwinge <thomas@codesourcery.com>
1149 * oacc-mem.c (goacc_enter_data_internal): Support
1150 OpenACC 'declare create' with Fortran allocatable arrays, part I.
1151 * testsuite/libgomp.oacc-fortran/declare-allocatable-1-directive.f90:
1153 * testsuite/libgomp.oacc-fortran/declare-allocatable-array_descriptor-1-directive.f90:
1156 2022-11-02 Thomas Schwinge <thomas@codesourcery.com>
1158 * testsuite/libgomp.oacc-fortran/declare-allocatable-array_descriptor-1-runtime.f90:
1161 2022-11-02 Thomas Schwinge <thomas@codesourcery.com>
1163 * testsuite/libgomp.oacc-fortran/declare-allocatable-1-runtime.f90:
1166 2022-11-02 Cesar Philippidis <cesar@codesourcery.com>
1167 Thomas Schwinge <thomas@codesourcery.com>
1169 * testsuite/libgomp.oacc-fortran/declare-allocatable-1.f90: New.
1171 2022-10-28 Julian Brown <julian@codesourcery.com>
1172 Thomas Schwinge <thomas@codesourcery.com>
1175 * testsuite/libgomp.oacc-fortran/declare-1.f90: Adjust scan output.
1176 * testsuite/libgomp.oacc-fortran/host_data-5.F90: Likewise.
1177 * testsuite/libgomp.oacc-fortran/if-1.f90: Likewise.
1178 * testsuite/libgomp.oacc-fortran/print-1.f90: Likewise.
1179 * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Likewise.
1181 2022-10-24 Thomas Schwinge <thomas@codesourcery.com>
1183 * plugin/plugin-nvptx.c (nvptx_open_device): Initialize
1184 'ptx_dev->rev_data'.
1186 2022-10-24 Tobias Burnus <tobias@codesourcery.com>
1188 * config/nvptx/icv-device.c (GOMP_DEVICE_NUM_VAR): Remove
1189 'static' for this variable.
1190 * config/nvptx/libgomp-nvptx.h: New file.
1191 * config/nvptx/target.c: Include it.
1192 (GOMP_ADDITIONAL_ICVS): Declare extern var.
1193 (GOMP_REV_OFFLOAD_VAR): Declare var.
1194 (GOMP_target_ext): Handle reverse offload.
1195 * libgomp-plugin.h (GOMP_PLUGIN_target_rev): New prototype.
1196 * libgomp-plugin.c (GOMP_PLUGIN_target_rev): New, call ...
1197 * target.c (gomp_target_rev): ... this new stub function.
1198 * libgomp.h (gomp_target_rev): Declare.
1199 * libgomp.map (GOMP_PLUGIN_1.4): New; add GOMP_PLUGIN_target_rev.
1200 * plugin/cuda-lib.def (cuMemHostAlloc): Add.
1201 * plugin/plugin-nvptx.c: Include libgomp-nvptx.h.
1202 (struct ptx_device): Add rev_data member.
1203 (nvptx_open_device): Remove async_engines query, last used in
1204 r10-304-g1f4c5b9b; add unified-address assert check.
1205 (GOMP_OFFLOAD_get_num_devices): Claim unified address
1207 (GOMP_OFFLOAD_load_image): Free rev_fn_table if no
1208 offload functions exist. Make offload var available
1210 (rev_off_dev_to_host_cpy, rev_off_host_to_dev_cpy): New.
1211 (GOMP_OFFLOAD_run): Handle reverse offload.
1213 2022-10-21 Thomas Schwinge <thomas@codesourcery.com>
1215 PR tree-optimization/107195
1217 * testsuite/libgomp.oacc-c-c++-common/nvptx-sese-1.c: Restore SESE
1220 2022-10-20 Tobias Burnus <tobias@codesourcery.com>
1222 * testsuite/lib/libgomp.exp (check_effective_target_offload_device_gcn):
1224 * testsuite/libgomp.c-c++-common/on_device_arch.h (device_arch_gcn,
1225 on_device_arch_gcn): New.
1226 * testsuite/libgomp.c-c++-common/requires-4a.c: New test; copied from
1227 requires-4.c but using heap-allocated memory.
1229 2022-10-20 Thomas Schwinge <thomas@codesourcery.com>
1232 * testsuite/libgomp.oacc-c-c++-common/private-big-1.c: New.
1234 2022-10-17 Thomas Schwinge <thomas@codesourcery.com>
1236 * testsuite/libgomp.c/reverse-offload-sm30.c: Fix nvptx-specific
1237 '-foffload-options' syntax.
1239 2022-10-13 Tobias Burnus <tobias@codesourcery.com>
1241 * testsuite/libgomp.fortran/task-7.f90: New test.
1242 * testsuite/libgomp.fortran/task-8.f90: New test.
1243 * testsuite/libgomp.fortran/task-in-explicit-1.f90: New test.
1244 * testsuite/libgomp.fortran/task-in-explicit-2.f90: New test.
1245 * testsuite/libgomp.fortran/task-in-explicit-3.f90: New test.
1246 * testsuite/libgomp.fortran/task-reduction-17.f90: New test.
1247 * testsuite/libgomp.fortran/task-reduction-18.f90: New test.
1249 2022-10-12 Jakub Jelinek <jakub@redhat.com>
1251 * libgomp.texi (OpenMP 5.2): Fix up allocator -> allocate directive
1252 in deprecation bullet.
1254 2022-10-12 Jakub Jelinek <jakub@redhat.com>
1256 * omp.h.in (omp_in_explicit_task): Declare.
1257 * omp_lib.h.in (omp_in_explicit_task): Likewise.
1258 * omp_lib.f90.in (omp_in_explicit_task): New interface.
1259 * libgomp.map (OMP_5.2): New symbol version, export
1260 omp_in_explicit_task and omp_in_explicit_task_.
1261 * task.c (omp_in_explicit_task): New function.
1262 * fortran.c (omp_in_explicit_task): Add ialias_redirect.
1263 (omp_in_explicit_task_): New function.
1264 * libgomp.texi (OpenMP 5.2): Mark omp_in_explicit_task as implemented.
1265 * testsuite/libgomp.c-c++-common/task-in-explicit-1.c: New test.
1266 * testsuite/libgomp.c-c++-common/task-in-explicit-2.c: New test.
1267 * testsuite/libgomp.c-c++-common/task-in-explicit-3.c: New test.
1269 2022-10-12 Jakub Jelinek <jakub@redhat.com>
1271 * task.c (gomp_create_artificial_team): Fix up handling of invocations
1272 from within explicit task.
1273 * target.c (GOMP_target_ext): Likewise.
1274 * testsuite/libgomp.c/task-7.c: New test.
1275 * testsuite/libgomp.c/task-8.c: New test.
1276 * testsuite/libgomp.c-c++-common/task-reduction-17.c: New test.
1277 * testsuite/libgomp.c-c++-common/task-reduction-18.c: New test.
1279 2022-10-12 Martin Liska <mliska@suse.cz>
1281 * configure: Regenerate.
1283 2022-10-11 Olivier Hainque <hainque@adacore.com>
1284 Olivier Hainque <hainque@adacore.com>
1286 * configure: Regenerate.
1288 2022-10-05 Tobias Burnus <tobias@codesourcery.com>
1290 * libgomp.texi (OpenMP 5.1 Impl. Status): Mark 'assume' as 'Y'.
1292 2022-10-04 Jakub Jelinek <jakub@redhat.com>
1294 * libgomp.texi (Support begin/end declare target syntax in C/C++):
1295 Mark as implemented.
1297 2022-09-30 Tobias Burnus <tobias@codesourcery.com>
1300 * testsuite/libgomp.fortran/is_device_ptr-2.f90: New test.
1302 2022-09-28 Tobias Burnus <tobias@codesourcery.com>
1304 * libgomp.texi (OpenMP 5.1): Mark 'assume' as implemented
1305 for C/C++. Remove duplicated 'begin declare target' entry.
1307 2022-09-24 Jakub Jelinek <jakub@redhat.com>
1310 * testsuite/libgomp.c-c++-common/pr106981.c: New test.
1312 2022-09-14 Julian Brown <julian@codesourcery.com>
1314 * testsuite/libgomp.oacc-c-c++-common/deep-copy-15.c: New test.
1315 * testsuite/libgomp.oacc-c-c++-common/deep-copy-16.c: New test.
1316 * testsuite/libgomp.oacc-c++/deep-copy-17.C: New test.
1317 * testsuite/libgomp.oacc-c-c++-common/deep-copy-arrayofstruct.c: Move
1318 test to here, make "run" test.
1320 2022-09-13 Jakub Jelinek <jakub@redhat.com>
1323 * env.c (get_icv_member_addr): Cast false to void * before assigning
1324 it to icv_addr[1], and comment the whole assignment out.
1326 2022-09-13 Tobias Burnus <tobias@codesourcery.com>
1328 * libgomp.texi (gcn): Move misplaced -march=sm_30 remark to ...
1331 2022-09-12 Tobias Burnus <tobias@codesourcery.com>
1333 * libgomp.texi (Offload-Target Specifics: nvptx): Document
1334 that reverse offload requires >= -march=sm_35.
1335 * testsuite/libgomp.c-c++-common/requires-4.c: Build for nvptx
1337 * testsuite/libgomp.c-c++-common/requires-5.c: Likewise.
1338 * testsuite/libgomp.c-c++-common/requires-6.c: Likewise.
1339 * testsuite/libgomp.c-c++-common/reverse-offload-1.c: Likewise.
1340 * testsuite/libgomp.fortran/reverse-offload-1.f90: Likewise.
1341 * testsuite/libgomp.c/reverse-offload-sm30.c: New test.
1343 2022-09-12 Tobias Burnus <tobias@codesourcery.com>
1345 * libgomp.texi (OpenMP 5.1 Impl. Status): Add two new minor items.
1346 (OpenMP 5.2 Impl. Status): Improve omp/omx/ompx wording.
1348 2022-09-12 Jakub Jelinek <jakub@redhat.com>
1351 * testsuite/libgomp.c-c++-common/icv-6.c: Include string.h.
1352 (main): Avoid tests for which corresponding non-_ALL suffixed variable
1353 is in the environment, or for OMP_NUM_TEAMS on the device
1354 OMP_NUM_TEAMS_DEV_?.
1356 2022-09-10 Iain Sandoe <iain@sandoe.co.uk>
1358 * env.c (initialize_env): Include libiberty environ.h.
1360 2022-09-09 Tobias Burnus <tobias@codesourcery.com>
1362 * plugin/plugin-nvptx.c (GOMP_OFFLOAD_load_image): Read offload
1363 function address table '$offload_func_table' if rev_fn_table
1366 2022-09-09 Tobias Burnus <tobias@codesourcery.com>
1368 * plugin/plugin-gcn.c (GOMP_OFFLOAD_load_image): Read
1369 .offload_func_table to populate rev_fn_table when requested.
1371 2022-09-09 Tobias Burnus <tobias@codesourcery.com>
1373 * libgomp-plugin.h (GOMP_OFFLOAD_load_image): Add
1374 'uint64_t **rev_fn_table' argument.
1375 * oacc-host.c (host_load_image): Likewise.
1376 * plugin/plugin-gcn.c (GOMP_OFFLOAD_load_image): Likewise;
1378 * plugin/plugin-nvptx.c (GOMP_OFFLOAD_load_image): Likewise.
1379 * target.c (gomp_load_image_to_device): Update call but pass
1382 2022-09-09 Jakub Jelinek <jakub@redhat.com>
1385 * env.c (initialize_env) <case PARSE_BIND>: Use char ** instead of
1386 char * for dest[1] initialization from params[1]. Formatting fixes.
1388 2022-09-08 Tobias Burnus <tobias@codesourcery.com>
1391 * libgomp.texi (OpenMP 5.2): Add comment to ompx/omx entry.
1393 2022-09-08 Tobias Burnus <tobias@codesourcery.com>
1395 * libgomp.texi (OpenMP-Implementation Specifics): New; add libmemkind
1396 section; move OpenMP Context Selectors from ...
1397 (Offload-Target Specifics): ... here; add 'AMD Radeo (GCN)' and
1400 2022-09-08 Marcel Vollweiler <marcel@codesourcery.com>
1402 * config/gcn/icv-device.c (omp_get_default_device): Return device-
1404 (omp_get_max_teams): Added for GCN devices.
1405 (omp_set_num_teams): Likewise.
1407 * config/nvptx/icv-device.c (omp_get_default_device): Return device-
1409 (omp_get_max_teams): Added for NVPTX devices.
1410 (omp_set_num_teams): Likewise.
1412 * env.c (struct gomp_icv_list): New struct to store entries of initial
1414 (struct gomp_offload_icv_list): New struct to store entries of device-
1415 specific ICV values that are copied to the device and back.
1416 (struct gomp_default_icv_values): New struct to store default values of
1417 ICVs according to the OpenMP standard.
1418 (parse_schedule): Generalized for different variants of OMP_SCHEDULE.
1419 (print_env_var_error): Function that prints an error for invalid values
1421 (parse_unsigned_long_1): Removed getenv. Generalized.
1422 (parse_unsigned_long): Likewise.
1423 (parse_int_1): Likewise.
1424 (parse_int): Likewise.
1425 (parse_int_secure): Likewise.
1426 (parse_unsigned_long_list): Likewise.
1427 (parse_target_offload): Likewise.
1428 (parse_bind_var): Likewise.
1429 (parse_stacksize): Likewise.
1430 (parse_boolean): Likewise.
1431 (parse_wait_policy): Likewise.
1432 (parse_allocator): Likewise.
1433 (omp_display_env): Extended to output different variants of environment
1435 (print_schedule): New helper function for omp_display_env which prints
1436 the values of run_sched_var.
1437 (print_proc_bind): New helper function for omp_display_env which prints
1438 the values of proc_bind_var.
1439 (enum gomp_parse_type): Collection of types used for parsing environment
1441 (ENTRY): Preprocess string lengths of environment variables.
1442 (OMP_VAR_CNT): Preprocess table size.
1443 (OMP_HOST_VAR_CNT): Likewise.
1444 (INT_MAX_STR_LEN): Constant for the maximal number of digits of a device
1446 (gomp_get_icv_flag): Returns if a flag for a particular ICV is set.
1447 (gomp_set_icv_flag): Sets a flag for a particular ICV.
1448 (print_device_specific_icvs): New helper function for omp_display_env to
1449 print device specific ICV values.
1450 (get_device_num): New helper function for parse_device_specific.
1451 Extracts the device number from an environment variable name.
1452 (get_icv_member_addr): Gets the memory address for a particular member
1454 (gomp_get_initial_icv_item): Get a list item of gomp_initial_icv_list.
1455 (initialize_icvs): New function to initialize a gomp_initial_icvs
1457 (add_initial_icv_to_list): Adds an ICV struct to gomp_initial_icv_list.
1458 (startswith): Checks if a string starts with a given prefix.
1459 (initialize_env): Extended to parse the new syntax of environment
1461 * icv-device.c (omp_get_max_teams): Added.
1463 (omp_set_num_teams): Likewise.
1464 * icv.c (omp_set_num_teams): Moved to icv-device.c.
1465 (omp_get_max_teams): Likewise.
1467 * libgomp-plugin.h (GOMP_DEVICE_NUM_VAR): Removed.
1468 (GOMP_ADDITIONAL_ICVS): New target-side struct that
1469 holds the designated ICVs of the target device.
1470 * libgomp.h (enum gomp_icvs): Collection of ICVs.
1471 (enum gomp_device_num): Definition of device numbers for _ALL, _DEV, and
1473 (enum gomp_env_suffix): Collection of possible suffixes of environment
1475 (struct gomp_initial_icvs): Contains all ICVs for which we need to store
1477 (struct gomp_default_icv):New struct to hold ICVs for which we need
1478 to store initial values.
1479 (struct gomp_icv_list): Definition of a linked list that is used for
1480 storing ICVs for the devices and also for _DEV, _ALL, and without
1482 (struct gomp_offload_icvs): New struct to hold ICVs that are copied to
1484 (struct gomp_offload_icv_list): Definition of a linked list that holds
1485 device-specific ICVs that are copied to devices.
1486 (gomp_get_initial_icv_item): Get a list item of gomp_initial_icv_list.
1487 (gomp_get_icv_flag): Returns if a flag for a particular ICV is set.
1488 * libgomp.texi: Updated.
1489 * plugin/plugin-gcn.c (GOMP_OFFLOAD_load_image): Extended to read
1490 further ICVs from the offload image.
1491 * plugin/plugin-nvptx.c (GOMP_OFFLOAD_load_image): Likewise.
1492 * target.c (gomp_get_offload_icv_item): Get a list item of
1493 gomp_offload_icv_list.
1494 (get_gomp_offload_icvs): New. Returns the ICV values
1495 depending on the device num and the variable hierarchy.
1496 (gomp_load_image_to_device): Extended to copy further ICVs to a device.
1497 * testsuite/libgomp.c-c++-common/icv-5.c: New test.
1498 * testsuite/libgomp.c-c++-common/icv-6.c: New test.
1499 * testsuite/libgomp.c-c++-common/icv-7.c: New test.
1500 * testsuite/libgomp.c-c++-common/icv-8.c: New test.
1501 * testsuite/libgomp.c-c++-common/omp-display-env-1.c: New test.
1502 * testsuite/libgomp.c-c++-common/omp-display-env-2.c: New test.
1504 2022-09-08 Jakub Jelinek <jakub@redhat.com>
1506 * libgomp.texi (OpenMP 5.2): Mention that omp_cur_iteration is now
1508 * testsuite/libgomp.c/doacross-4.c: New test.
1509 * testsuite/libgomp.c/doacross-5.c: New test.
1510 * testsuite/libgomp.c/doacross-6.c: New test.
1511 * testsuite/libgomp.c/doacross-7.c: New test.
1513 2022-09-05 Tobias Burnus <tobias@codesourcery.com>
1515 * libgomp.texi (OpenMP 5.2): Update doacross/omp_cur_iteration status.
1517 2022-08-26 Tobias Burnus <tobias@codesourcery.com>
1519 * libgomp.texi (OpenMP 5.0): Mark 'ancestor' as implemented but
1520 refer to 'requires'.
1521 * testsuite/libgomp.c-c++-common/reverse-offload-1-aux.c: New test.
1522 * testsuite/libgomp.c-c++-common/reverse-offload-1.c: New test.
1523 * testsuite/libgomp.fortran/reverse-offload-1-aux.f90: New test.
1524 * testsuite/libgomp.fortran/reverse-offload-1.f90: New test.
1526 2022-08-17 Tobias Burnus <tobias@codesourcery.com>
1528 PR middle-end/106548
1529 * testsuite/libgomp.c/linear-2.c: New test.
1531 2022-08-17 Tobias Burnus <tobias@codesourcery.com>
1533 * splay-tree.h: Fix splay_* macro unsetting if
1534 splay_tree_prefix is defined.
1536 2022-07-29 Tobias Burnus <tobias@codesourcery.com>
1538 * testsuite/libgomp.c-c++-common/pr106449-2.c: New test.
1540 2022-07-29 Jakub Jelinek <jakub@redhat.com>
1542 PR middle-end/106449
1543 * testsuite/libgomp.c-c++-common/pr106449.c: New test.
1545 2022-07-12 Tobias Burnus <tobias@codesourcery.com>
1547 * target.c (gomp_target_init): Added tailing '\n' to gomp_debug.
1549 2022-07-12 Thomas Schwinge <thomas@codesourcery.com>
1551 PR middle-end/101551
1552 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: XFAIL
1553 'offloading_enabled' diagnostics issue.
1555 2022-07-11 Thomas Schwinge <thomas@codesourcery.com>
1557 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Enhance
1558 '_Pragma' diagnostics verification.
1560 2022-07-10 Lewis Hyatt <lhyatt@gmail.com>
1562 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Adapt for
1563 improved warning locations.
1564 * testsuite/libgomp.oacc-c-c++-common/vred2d-128.c: Likewise.
1566 2022-07-08 Thomas Schwinge <thomas@codesourcery.com>
1568 * testsuite/libgomp.c-c++-common/requires-1.c: Add 'dg-note's.
1569 * testsuite/libgomp.c-c++-common/requires-2.c: Likewise.
1570 * testsuite/libgomp.c-c++-common/requires-3.c: Likewise.
1571 * testsuite/libgomp.c-c++-common/requires-7.c: Likewise.
1572 * testsuite/libgomp.fortran/requires-1.f90: Likewise.
1574 2022-07-07 Thomas Schwinge <thomas@codesourcery.com>
1576 * target.c (GOMP_offload_register, GOMP_offload_unregister):
1577 Denote as legacy entry points.
1578 * testsuite/lib/libgomp.exp
1579 (check_effective_target_offload_target_any): New proc.
1580 * testsuite/libgomp.c-c++-common/requires-1.c: Enable for
1581 'offload_target_any'.
1582 * testsuite/libgomp.c-c++-common/requires-3.c: Likewise.
1583 * testsuite/libgomp.c-c++-common/requires-7.c: Likewise.
1584 * testsuite/libgomp.fortran/requires-1.f90: Likewise.
1586 2022-07-07 Thomas Schwinge <thomas@codesourcery.com>
1588 * testsuite/libgomp.c-c++-common/requires-4.c: Enhance testing.
1589 * testsuite/libgomp.c-c++-common/requires-5.c: Likewise.
1591 2022-07-07 Thomas Schwinge <thomas@codesourcery.com>
1593 * testsuite/libgomp.c-c++-common/requires-3.c: Adjust.
1595 2022-07-06 Thomas Schwinge <thomas@codesourcery.com>
1597 * target.c (GOMP_offload_register_ver): Clarify 'target_data' ->
1599 (GOMP_offload_unregister_ver): Likewise. Fix up 'target_data'.
1601 2022-07-04 Tobias Burnus <tobias@codesourcery.com>
1602 Jakub Jelinek <jakub@redhat.com>
1604 * libgomp.texi (OpenMP 5.2): Mark linear-clause change as 'Y'.
1606 2022-07-04 Tobias Burnus <tobias@codesourcery.com>
1607 Chung-Lin Tang <cltang@codesourcery.com>
1608 Thomas Schwinge <thomas@codesourcery.com>
1610 * libgomp-plugin.h (GOMP_OFFLOAD_get_num_devices): Add
1611 omp_requires_mask arg.
1612 * plugin/plugin-gcn.c (GOMP_OFFLOAD_get_num_devices): Likewise;
1613 return -1 when device available but omp_requires_mask != 0.
1614 * plugin/plugin-nvptx.c (GOMP_OFFLOAD_get_num_devices): Likewise.
1615 * oacc-host.c (host_get_num_devices, host_openacc_get_property):
1617 * oacc-init.c (resolve_device, acc_init_1, acc_shutdown_1,
1618 goacc_attach_host_thread_to_device, acc_get_num_devices,
1619 acc_set_device_num, get_property_any): Likewise.
1620 * target.c (omp_requires_mask): New global var.
1621 (gomp_requires_to_name): New.
1622 (GOMP_offload_register_ver): Handle passed omp_requires_mask.
1623 (gomp_target_init): Handle omp_requires_mask.
1624 * libgomp.texi (OpenMP 5.0): Update requires impl. status.
1625 (OpenMP 5.1): Add a missed item.
1626 (OpenMP 5.2): Mark linear-clause change as supported in C/C++.
1627 * testsuite/libgomp.c-c++-common/requires-1-aux.c: New test.
1628 * testsuite/libgomp.c-c++-common/requires-1.c: New test.
1629 * testsuite/libgomp.c-c++-common/requires-2-aux.c: New test.
1630 * testsuite/libgomp.c-c++-common/requires-2.c: New test.
1631 * testsuite/libgomp.c-c++-common/requires-3-aux.c: New test.
1632 * testsuite/libgomp.c-c++-common/requires-3.c: New test.
1633 * testsuite/libgomp.c-c++-common/requires-4-aux.c: New test.
1634 * testsuite/libgomp.c-c++-common/requires-4.c: New test.
1635 * testsuite/libgomp.c-c++-common/requires-5-aux.c: New test.
1636 * testsuite/libgomp.c-c++-common/requires-5.c: New test.
1637 * testsuite/libgomp.c-c++-common/requires-6.c: New test.
1638 * testsuite/libgomp.c-c++-common/requires-7-aux.c: New test.
1639 * testsuite/libgomp.c-c++-common/requires-7.c: New test.
1640 * testsuite/libgomp.fortran/requires-1-aux.f90: New test.
1641 * testsuite/libgomp.fortran/requires-1.f90: New test.
1643 2022-07-01 Tobias Burnus <tobias@codesourcery.com>
1645 * libgomp.texi (OpenMP 5.2): Mark target enter/exit data
1646 with fromto as implemented.
1648 2022-06-28 Martin Liska <mliska@suse.cz>
1650 * acinclude.m4: Fix typo in mold linker detection.
1651 * Makefile.in: Regenerate.
1652 * configure: Regenerate.
1654 2022-06-21 Jakub Jelinek <jakub@redhat.com>
1655 Paul Iannetta <piannetta@kalrayinc.com>
1658 * testsuite/libgomp.c/target-31.c: Add private (i) clause.
1660 2022-06-17 Martin Liska <mliska@suse.cz>
1662 * libgomp.texi: Add table header for new features of
1665 2022-06-15 Jakub Jelinek <jakub@redhat.com>
1667 * testsuite/libgomp.c-c++-common/get-mapped-ptr-1.c (main): Initialize
1668 q to ddress of an automatic variable. Use -5 instead of -1 in
1669 omp_get_mapped_ptr call. Add test with omp_initial_device.
1670 * testsuite/libgomp.fortran/get-mapped-ptr-1.f90 (main): Use -5 instead
1671 of -1 in omp_get_mapped_ptr call. Add test with omp_initial_device.
1672 Renumber stop arguments afterwards.
1674 2022-06-13 Jakub Jelinek <jakub@redhat.com>
1676 * omp.h.in (omp_initial_device, omp_invalid_device): New enumerators.
1677 * omp_lib.f90.in (omp_initial_device, omp_invalid_device): New
1679 * omp_lib.h.in (omp_initial_device, omp_invalid_device): Likewise.
1680 * target.c (resolve_device): Add remapped argument, handle
1681 GOMP_DEVICE_ICV only if remapped is true (and clear remapped),
1682 for negative values, treat GOMP_DEVICE_FALLBACK as fallback only
1683 if remapped, otherwise treat omp_initial_device that way. For
1684 omp_invalid_device, always emit gomp_fatal, even when
1685 OMP_TARGET_OFFLOAD isn't mandatory.
1686 (GOMP_target, GOMP_target_ext, GOMP_target_data, GOMP_target_data_ext,
1687 GOMP_target_update, GOMP_target_update_ext,
1688 GOMP_target_enter_exit_data): Pass true as remapped argument to
1690 (omp_target_alloc, omp_target_free, omp_target_is_present,
1691 omp_target_memcpy_check, omp_target_associate_ptr,
1692 omp_target_disassociate_ptr, omp_get_mapped_ptr,
1693 omp_target_is_accessible): Pass false as remapped argument to
1694 resolve_device. Treat omp_initial_device the same as
1695 gomp_get_num_devices (). Don't bypass resolve_device calls if
1696 device_num is negative.
1697 (omp_pause_resource): Treat omp_initial_device the same as
1698 gomp_get_num_devices (). Call resolve_device.
1699 * icv-device.c (omp_set_default_device): Always set to device_num
1700 even when it is negative.
1701 * libgomp.texi: Document that Conforming device numbers,
1702 omp_initial_device and omp_invalid_device is implemented.
1703 * testsuite/libgomp.c/target-41.c (main): Add test with
1705 * testsuite/libgomp.c/target-45.c: New test.
1706 * testsuite/libgomp.c/target-46.c: New test.
1707 * testsuite/libgomp.c/target-47.c: New test.
1708 * testsuite/libgomp.c-c++-common/target-is-accessible-1.c (main): Add
1709 test with omp_initial_device. Use -5 instead of -1 for negative value
1711 * testsuite/libgomp.fortran/target-is-accessible-1.f90 (main):
1712 Likewise. Reorder stop numbers.
1714 2022-06-10 Jakub Jelinek <jakub@redhat.com>
1716 * allocator.c (gomp_init_memkind): Call dlopen with "libmemkind.so.0"
1717 rather than "libmemkind.so".
1719 2022-06-10 Thomas Schwinge <thomas@codesourcery.com>
1721 * plugin/Makefrag.am: Evaluate 'if PLUGIN_NVPTX_DYNAMIC' to true.
1722 * plugin/configfrag.ac (--with-cuda-driver)
1723 (--with-cuda-driver-include, --with-cuda-driver-lib)
1724 (CUDA_DRIVER_INCLUDE, CUDA_DRIVER_LIB, PLUGIN_NVPTX_CPPFLAGS)
1725 (PLUGIN_NVPTX_LDFLAGS, PLUGIN_NVPTX_LIBS, PLUGIN_NVPTX_DYNAMIC):
1727 * testsuite/libgomp-test-support.exp.in (cuda_driver_include)
1728 (cuda_driver_lib): Remove.
1729 * testsuite/lib/libgomp.exp (libgomp_init): Don't consider these.
1730 * Makefile.in: Regenerate.
1731 * configure: Likewise.
1732 * testsuite/Makefile.in: Likewise.
1734 2022-06-09 Jakub Jelinek <jakub@redhat.com>
1736 * config/linux/allocator.c: Fix up #include directive.
1738 2022-06-09 Jakub Jelinek <jakub@redhat.com>
1740 * allocator.c: Include dlfcn.h if LIBGOMP_USE_MEMKIND is defined.
1741 (enum gomp_memkind_kind): New type.
1742 (struct omp_allocator_data): Add memkind field if LIBGOMP_USE_MEMKIND
1744 (struct gomp_memkind_data): New type.
1745 (memkind_data, memkind_data_once): New variables.
1746 (gomp_init_memkind, gomp_get_memkind): New functions.
1747 (omp_init_allocator): Initialize data.memkind, don't fail for
1748 omp_high_bw_mem_space if libmemkind supports it.
1749 (omp_aligned_alloc, omp_free, omp_aligned_calloc, omp_realloc): Add
1750 memkind support of LIBGOMP_USE_MEMKIND is defined.
1751 * config/linux/allocator.c: New file.
1753 2022-06-03 Tobias Burnus <tobias@codesourcery.com>
1755 * libgomp.texi (OpenMP 5.2): Mark scope w/ firstprivate/allocate as Y.
1756 * testsuite/libgomp.fortran/scope-2.f90: New test.
1758 2022-06-02 David Malcolm <dmalcolm@redhat.com>
1760 * testsuite/lib/libgomp.exp: Add load_gcc_lib of scansarif.exp.
1762 2022-05-31 Jakub Jelinek <jakub@redhat.com>
1764 * testsuite/libgomp.c-c++-common/allocate-1.c (foo): Add testcase for
1765 scope construct with allocate clause.
1766 * testsuite/libgomp.c-c++-common/allocate-3.c (foo): Likewise.
1767 * testsuite/libgomp.c-c++-common/scope-2.c: New test.
1769 2022-05-28 Tobias Burnus <tobias@codesourcery.com>
1771 * libgomp.texi (OpenMP 5.2): Mark 'enter' clause as supported.
1772 * testsuite/libgomp.fortran/declare-target-1.f90: Extend to test
1773 explicit 'to' and 'enter' clause.
1774 * testsuite/libgomp.fortran/declare-target-2.f90: Update accordingly.
1776 2022-05-28 Jakub Jelinek <jakub@redhat.com>
1779 * libgomp.h (GOMP_HAVE_EFFICIENT_ALIGNED_ALLOC): Don't define for
1780 defined(HAVE__ALIGNED_MALLOC) case.
1781 * alloc.c (gomp_aligned_alloc): Move defined(HAVE__ALIGNED_MALLOC)
1782 handling as last option before fallback instead of first.
1783 (gomp_aligned_free): For defined(HAVE__ALIGNED_MALLOC) call
1786 2022-05-27 Jakub Jelinek <jakub@redhat.com>
1788 * testsuite/libgomp.c-c++-common/target-40.c: Modify some existing to
1790 * testsuite/libgomp.c/target-41.c: Likewise.
1792 2022-05-27 Tobias Burnus <tobias@codesourcery.com>
1794 * libgomp.texi (Other new OpenMP 5.1 features): Add
1795 'begin declare target'.
1796 (Other new OpenMP 5.2 features): New.
1798 2022-05-25 Jakub Jelinek <jakub@redhat.com>
1800 * task.c (gomp_task_run_post_handle_dependers): If empty_task
1801 is the last task taskwait depend depends on, wake it up.
1802 Similarly if it is the last child of a taskgroup, use atomic
1803 store instead of decrement and awak taskgroup wait if any.
1804 * testsuite/libgomp.c-c++-common/taskwait-depend-nowait-2.c: New test.
1806 2022-05-24 Andrew Stubbs <ams@codesourcery.com>
1808 * plugin/plugin-gcn.c (EF_AMDGPU_MACH): Add
1809 EF_AMDGPU_MACH_AMDGCN_GFX90a.
1810 (gcn_gfx90a_s): New.
1811 (isa_hsa_name): Support gfx90a.
1812 (isa_code): Likewise.
1814 2022-05-24 Tobias Burnus <tobias@codesourcery.com>
1817 * libgomp.texi (OpenMP 5.1): Set 'taskwait nowait' to 'Y'.
1818 * testsuite/libgomp.fortran/taskwait-depend-nowait-1.f90: New.
1820 2022-05-24 Jakub Jelinek <jakub@redhat.com>
1823 * libgomp_g.h (GOMP_taskwait_depend_nowait): Declare.
1824 * libgomp.map (GOMP_taskwait_depend_nowait): Export at GOMP_5.1.1.
1825 * task.c (empty_task): New function.
1826 (gomp_task_run_post_handle_depend_hash): Declare earlier.
1827 (gomp_task_run_post_handle_depend): Declare.
1828 (GOMP_task): Optimize fn == empty_task if there is nothing to wait
1830 (gomp_task_run_post_handle_dependers): Optimize task->fn == empty_task.
1831 (GOMP_taskwait_depend_nowait): New function.
1832 * testsuite/libgomp.c-c++-common/taskwait-depend-nowait-1.c: New test.
1834 2022-05-23 Tobias Burnus <tobias@codesourcery.com>
1837 * target.c (gomp_map_vars_internal, copy_firstprivate_data):
1838 Support attach for GOMP_MAP_FIRSTPRIVATE.
1839 * testsuite/libgomp.fortran/target-firstprivate-1.f90: New test.
1840 * testsuite/libgomp.fortran/target-firstprivate-2.f90: New test.
1841 * testsuite/libgomp.fortran/target-firstprivate-3.f90: New test.
1843 2022-05-20 Marcel Vollweiler <marcel@codesourcery.com>
1845 * libgomp.map: Added omp_target_memcpy_async and
1846 omp_target_memcpy_rect_async.
1847 * libgomp.texi: Both functions are now supported.
1848 * omp.h.in: Added omp_target_memcpy_async and
1849 omp_target_memcpy_rect_async.
1850 * omp_lib.f90.in: Added interfaces for both new functions.
1851 * omp_lib.h.in: Likewise.
1852 * target.c (ialias_redirect): Added for GOMP_task.
1853 (omp_target_memcpy): Restructured into check and copy part.
1854 (omp_target_memcpy_check): New helper function for omp_target_memcpy and
1855 omp_target_memcpy_async that checks requirements.
1856 (omp_target_memcpy_copy): New helper function for omp_target_memcpy and
1857 omp_target_memcpy_async that performs the memcpy.
1858 (omp_target_memcpy_async_helper): New helper function that is used in
1859 omp_target_memcpy_async for the asynchronous task.
1860 (omp_target_memcpy_async): Added.
1861 (omp_target_memcpy_rect): Restructured into check and copy part.
1862 (omp_target_memcpy_rect_check): New helper function for
1863 omp_target_memcpy_rect and omp_target_memcpy_rect_async that checks
1865 (omp_target_memcpy_rect_copy): New helper function for
1866 omp_target_memcpy_rect and omp_target_memcpy_rect_async that performs
1868 (omp_target_memcpy_rect_async_helper): New helper function that is used
1869 in omp_target_memcpy_rect_async for the asynchronous task.
1870 (omp_target_memcpy_rect_async): Added.
1871 * task.c (ialias): Added for GOMP_task.
1872 * testsuite/libgomp.c-c++-common/target-memcpy-async-1.c: New test.
1873 * testsuite/libgomp.c-c++-common/target-memcpy-async-2.c: New test.
1874 * testsuite/libgomp.c-c++-common/target-memcpy-rect-async-1.c: New test.
1875 * testsuite/libgomp.c-c++-common/target-memcpy-rect-async-2.c: New test.
1876 * testsuite/libgomp.fortran/target-memcpy-async-1.f90: New test.
1877 * testsuite/libgomp.fortran/target-memcpy-async-2.f90: New test.
1878 * testsuite/libgomp.fortran/target-memcpy-rect-async-1.f90: New test.
1879 * testsuite/libgomp.fortran/target-memcpy-rect-async-2.f90: New test.
1881 2022-05-18 Tobias Burnus <tobias@codesourcery.com>
1883 * libgomp.texi (OpenMP 5.1): Set 'inoutset' to Y.
1884 (OpenMP Context Selectors): Add missing comma.
1885 * testsuite/libgomp.fortran/depend-5.f90: Add inoutset test.
1886 * testsuite/libgomp.fortran/depend-6.f90: Likewise.
1887 * testsuite/libgomp.fortran/depend-7.f90: Likewise.
1888 * testsuite/libgomp.fortran/depend-inoutset-1.f90: New test.
1890 2022-05-17 Jakub Jelinek <jakub@redhat.com>
1892 * libgomp.texi (OpenMP 5.1): Remove "Not inside target regions"
1893 comment for omp_display_env feature.
1895 2022-05-17 Tobias Burnus <tobias@codesourcery.com>
1897 * libgomp.texi (Offload-Target Specifics): New chapter; add section
1898 to document OpenMP context selectors.
1900 2022-05-17 Jakub Jelinek <jakub@redhat.com>
1902 * libgomp.h (struct gomp_task_depend_entry): Change is_in type
1903 from bool to unsigned char.
1904 * task.c (gomp_task_handle_depend): Handle GOMP_DEPEND_INOUTSET.
1905 Ignore dependencies where
1906 task->depend[i].is_in && task->depend[i].is_in == ent->is_in
1907 rather than just task->depend[i].is_in && ent->is_in. Remember
1908 whether GOMP_DEPEND_IN loop is needed and guard the loop with that
1910 (gomp_task_maybe_wait_for_dependencies): Handle GOMP_DEPEND_INOUTSET.
1911 Ignore dependencies where elem.is_in && elem.is_in == ent->is_in
1912 rather than just elem.is_in && ent->is_in.
1913 * testsuite/libgomp.c-c++-common/depend-1.c (test): Add task with
1914 inoutset depend-kind.
1915 * testsuite/libgomp.c-c++-common/depend-2.c (test): Likewise.
1916 * testsuite/libgomp.c-c++-common/depend-3.c (test): Likewise.
1917 * testsuite/libgomp.c-c++-common/depend-inoutset-1.c: New test.
1919 2022-05-17 Tobias Burnus <tobias@codesourcery.com>
1921 * libgomp.texi (OpenMP Implementation Status): Add 5.2 table.
1923 2022-05-17 Tobias Burnus <tobias@codesourcery.com>
1925 * libgomp.texi (OpenMP 5.1): Set omp_all_memory to 'Y'.
1926 * testsuite/libgomp.fortran/depend-5.f90: New test.
1927 * testsuite/libgomp.fortran/depend-6.f90: New test.
1928 * testsuite/libgomp.fortran/depend-7.f90: New test.
1930 2022-05-16 Marcel Vollweiler <marcel@codesourcery.com>
1932 * testsuite/libgomp.c++/target-has-device-addr-7.C: New test.
1933 * testsuite/libgomp.c++/target-has-device-addr-8.C: New test.
1934 * testsuite/libgomp.c++/target-has-device-addr-9.C: New test.
1936 2022-05-13 Tobias Burnus <tobias@codesourcery.com>
1938 * testsuite/libgomp.fortran/target-nowait-array-section.f90: New test.
1940 2022-05-13 Tobias Burnus <tobias@codesourcery.com>
1942 * testsuite/libgomp.fortran/target-nowait-array-section.f90: New test.
1944 2022-05-13 Thomas Schwinge <thomas@codesourcery.com>
1946 * plugin/Makefrag.am (libgomp_plugin_nvptx_la_CPPFLAGS)
1947 [PLUGIN_NVPTX_DYNAMIC]: Don't append '$(PLUGIN_NVPTX_CPPFLAGS)'.
1948 (libgomp_plugin_nvptx_la_LDFLAGS) [PLUGIN_NVPTX_DYNAMIC]: Don't
1949 append '$(PLUGIN_NVPTX_LDFLAGS)'.
1950 * Makefile.in: Regenerate.
1952 2022-05-12 Thomas Schwinge <thomas@codesourcery.com>
1954 * Makefile.am (libgomp_la_LIBADD): Initialize.
1955 * plugin/configfrag.ac (DL_LIBS): New.
1956 (PLUGIN_GCN_LIBS): Remove.
1957 (PLUGIN_NVPTX_LIBS): Don't set in the 'PLUGIN_NVPTX_DYNAMIC' case.
1958 * plugin/Makefrag.am (libgomp_la_LIBADD)
1959 (libgomp_plugin_gcn_la_LIBADD): Consider '$(DL_LIBS)'.
1960 (libgomp_plugin_nvptx_la_LIBADD) <PLUGIN_NVPTX_DYNAMIC>: Likewise.
1961 * Makefile.in: Regenerate.
1962 * config.h.in: Likewise.
1963 * configure: Likewise.
1964 * testsuite/Makefile.in: Likewise.
1966 2022-05-12 Thomas Schwinge <thomas@codesourcery.com>
1968 * plugin/Makefrag.am: Handle 'PLUGIN_NVPTX_DYNAMIC'.
1969 * plugin/configfrag.ac (PLUGIN_NVPTX_DYNAMIC): Change
1970 'AC_DEFINE_UNQUOTED' into 'AM_CONDITIONAL'.
1971 * plugin/plugin-nvptx.c: Split 'PLUGIN_NVPTX_DYNAMIC' into
1972 'PLUGIN_NVPTX_INCLUDE_SYSTEM_CUDA_H' and
1973 'PLUGIN_NVPTX_LINK_LIBCUDA'.
1974 * Makefile.in: Regenerate.
1975 * config.h.in: Likewise.
1976 * configure: Likewise.
1978 2022-05-12 Thomas Schwinge <thomas@codesourcery.com>
1980 * plugin/configfrag.ac: Don't 'AC_SUBST' and 'AC_DEFINE_UNQUOTED'
1981 for 'PLUGIN_GCN', 'PLUGIN_NVPTX'.
1982 * Makefile.in: Regenerate.
1983 * config.h.in: Likewise.
1984 * configure: Likewise.
1985 * testsuite/Makefile.in: Likewise.
1987 2022-05-12 Jakub Jelinek <jakub@redhat.com>
1989 * libgomp.h (struct gomp_task): Add depend_all_memory member.
1990 * task.c (gomp_init_task): Initialize depend_all_memory.
1991 (gomp_task_handle_depend): Handle omp_all_memory.
1992 (gomp_task_run_post_handle_depend_hash): Clear
1993 parent->depend_all_memory if equal to current task.
1994 (gomp_task_maybe_wait_for_dependencies): Handle omp_all_memory.
1995 * testsuite/libgomp.c-c++-common/depend-1.c: New test.
1996 * testsuite/libgomp.c-c++-common/depend-2.c: New test.
1997 * testsuite/libgomp.c-c++-common/depend-3.c: New test.
1999 2022-05-11 Thomas Schwinge <thomas@codesourcery.com>
2001 * plugin/configfrag.ac: Remove '--with-hsa-runtime',
2002 '--with-hsa-runtime-include', '--with-hsa-runtime-lib' processing.
2003 * Makefile.in: Regenerate.
2004 * configure: Likewise.
2005 * testsuite/Makefile.in: Likewise.
2007 2022-05-11 Thomas Schwinge <thomas@codesourcery.com>
2009 * plugin/Makefrag.am (libgomp_plugin_gcn_la_CPPFLAGS): Don't
2010 consider 'PLUGIN_GCN_CPPFLAGS'.
2011 (libgomp_plugin_gcn_la_LDFLAGS): Don't consider
2012 'PLUGIN_GCN_LDFLAGS'.
2013 * plugin/configfrag.ac (PLUGIN_GCN_CPPFLAGS, PLUGIN_GCN_LDFLAGS):
2015 * Makefile.in: Regenerate.
2016 * configure: Likewise.
2017 * testsuite/Makefile.in: Likewise.
2019 2022-05-11 Thomas Schwinge <thomas@codesourcery.com>
2021 * plugin/configfrag.ac (HSA_RUNTIME_CPPFLAGS)
2022 (HSA_RUNTIME_LDFLAGS): Remove.
2023 * configure: Regenerate.
2025 2022-05-11 Thomas Schwinge <thomas@codesourcery.com>
2027 * testsuite/lib/libgomp.exp (libgomp_init): Don't
2028 'append always_ld_library_path ":$hsa_runtime_lib"'.
2029 * testsuite/libgomp-test-support.exp.in (hsa_runtime_lib): Don't set.
2031 2022-05-10 Thomas Schwinge <thomas@codesourcery.com>
2033 * testsuite/libgomp.fortran/use_device_addr-5.f90: Fix up
2034 multi-device testing.
2036 2022-05-06 Marcel Vollweiler <marcel@codesourcery.com>
2038 * libgomp.map: Added omp_target_is_accessible.
2039 * libgomp.texi: Tagged omp_target_is_accessible as supported.
2040 * omp.h.in: Added omp_target_is_accessible.
2041 * omp_lib.f90.in: Added interface for omp_target_is_accessible.
2042 * omp_lib.h.in: Likewise.
2043 * target.c (omp_target_is_accessible): Added implementation of
2044 omp_target_is_accessible.
2045 * testsuite/libgomp.c-c++-common/target-is-accessible-1.c: New test.
2046 * testsuite/libgomp.fortran/target-is-accessible-1.f90: New test.
2048 2022-05-05 Sandra Loosemore <sandra@codesourcery.com>
2050 * libgomp.texi (OpenMP 5.0): Feature is now fully supported.
2052 2022-05-04 Tobias Burnus <tobias@codesourcery.com>
2054 * plugin/plugin-gcn.c (isa_matches_agent): Suggest -foffload-options.
2056 2022-05-04 Tobias Burnus <tobias@codesourcery.com>
2058 * testsuite/libgomp.fortran/use_device_addr-5.f90: New test.
2060 2022-05-03 Marcel Vollweiler <marcel@codesourcery.com>
2062 * libgomp.map: Added omp_get_mapped_ptr.
2063 * libgomp.texi: Tagged omp_get_mapped_ptr as supported.
2064 * omp.h.in: Added omp_get_mapped_ptr.
2065 * omp_lib.f90.in: Added interface for omp_get_mapped_ptr.
2066 * omp_lib.h.in: Likewise.
2067 * target.c (omp_get_mapped_ptr): Added implementation of
2069 * testsuite/libgomp.c-c++-common/get-mapped-ptr-1.c: New test.
2070 * testsuite/libgomp.c-c++-common/get-mapped-ptr-2.c: New test.
2071 * testsuite/libgomp.c-c++-common/get-mapped-ptr-3.c: New test.
2072 * testsuite/libgomp.c-c++-common/get-mapped-ptr-4.c: New test.
2073 * testsuite/libgomp.fortran/get-mapped-ptr-1.f90: New test.
2074 * testsuite/libgomp.fortran/get-mapped-ptr-2.f90: New test.
2075 * testsuite/libgomp.fortran/get-mapped-ptr-3.f90: New test.
2076 * testsuite/libgomp.fortran/get-mapped-ptr-4.f90: New test.
2078 2022-04-28 Thomas Schwinge <thomas@codesourcery.com>
2081 * testsuite/libgomp.oacc-fortran/print-1.f90: Add OpenACC
2082 privatization scanning. For GCN offloading compilation, raise
2083 '-mgang-private-size'.
2085 2022-04-26 Jakub Jelinek <jakub@redhat.com>
2088 * work.c (gomp_init_work_share): Don't mask of adjustment for
2089 dynamic long long realignment if struct gomp_work_share has smaller
2090 alignof than long long.
2091 * loop.c (GOMP_loop_start): Don't use inline_ordered_team_ids if
2092 struct gomp_work_share has smaller alignof than long long or if
2093 sizeof (struct gomp_work_share) is smaller than
2094 INLINE_ORDERED_TEAM_IDS_OFF.
2095 * loop_ull.c (GOMP_loop_ull_start): Likewise.
2096 * sections.c (GOMP_sections2_start): Likewise.
2098 2022-04-25 Jakub Jelinek <jakub@redhat.com>
2099 Thomas Schwinge <thomas@codesourcery.com>
2102 * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Adjust.
2104 2022-04-13 Jakub Jelinek <jakub@redhat.com>
2106 * libgomp.texi: Fix a typo - mutexinouset -> mutexinoutset.
2108 2022-04-06 Thomas Schwinge <thomas@codesourcery.com>
2110 * plugin/cuda/cuda.h: Remove file.
2111 * plugin/plugin-nvptx.c [PLUGIN_NVPTX_DYNAMIC]: Include
2112 "cuda/cuda.h" instead of <cuda.h>.
2113 * plugin/configfrag.ac <PLUGIN_NVPTX_DYNAMIC>: Don't set
2114 'PLUGIN_NVPTX_CPPFLAGS'.
2115 * configure: Regenerate.
2117 2022-04-05 Chung-Lin Tang <cltang@codesourcery.com>
2119 * testsuite/libgomp.fortran/use_device_ptr-4.f90: New testcase.
2121 2022-04-04 Tom de Vries <tdevries@suse.de>
2123 * testsuite/libgomp.fortran/examples-4/declare_target-1.f90: Use
2124 on_device_arch_nvptx instead of offload_target_nvptx.
2125 * testsuite/libgomp.fortran/examples-4/declare_target-2.f90: Same.
2127 2022-04-01 Tom de Vries <tdevries@suse.de>
2129 * testsuite/libgomp.fortran/examples-4/declare_target-1.f90: Define
2131 * testsuite/libgomp.fortran/examples-4/declare_target-2.f90: Same.
2133 2022-04-01 Tom de Vries <tdevries@suse.de>
2135 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-7.c: Fix
2138 2022-03-29 Chenghua Xu <xuchenghua@loongson.cn>
2139 Lulu Cheng <chenglulu@loongson.cn>
2141 * configure.tgt: Add LoongArch triplet.
2143 2022-03-28 Tom de Vries <tdevries@suse.de>
2145 * plugin/configfrag.ac: Use /$(libexecdir:\$(exec_prefix)/%=%)/
2146 instead of /libexec/.
2147 * configure: Regenerate.
2149 2022-03-25 Tom de Vries <tdevries@suse.de>
2152 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Reduce
2154 * testsuite/libgomp.oacc-c-c++-common/vred2d-128.c: Same.
2155 * testsuite/libgomp.oacc-fortran/parallel-dims.f90: Same.
2157 2022-03-23 Tobias Burnus <tobias@codesourcery.com>
2159 PR middle-end/104285
2160 * testsuite/libgomp.c++/target-same-name-2-a.C: New test.
2161 * testsuite/libgomp.c++/target-same-name-2-b.C: New test.
2162 * testsuite/libgomp.c++/target-same-name-2.C: New test.
2163 * testsuite/libgomp.c-c++-common/target-same-name-1-a.c: New test.
2164 * testsuite/libgomp.c-c++-common/target-same-name-1-b.c: New test.
2165 * testsuite/libgomp.c-c++-common/target-same-name-1.c: New test.
2167 2022-03-22 Tom de Vries <tdevries@suse.de>
2171 * testsuite/libgomp.c/pr104783-2.c: New test.
2173 2022-03-18 Tobias Burnus <tobias@codesourcery.com>
2176 * testsuite/libgomp.fortran/associate4.f90: New test.
2178 2022-03-18 Tom de Vries <tdevries@suse.de>
2181 * testsuite/libgomp.c/pr104952-1.c: New test.
2182 * testsuite/libgomp.c/pr104952-2.c: New test.
2184 2022-03-18 Jakub Jelinek <jakub@redhat.com>
2186 * config/linux/affinity.c (gomp_affinity_init_numa_domains): Move seen
2187 variable next to pl variable.
2189 2022-03-17 Thomas Schwinge <thomas@codesourcery.com>
2191 * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c:
2193 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-g.c: Likewise.
2194 * testsuite/libgomp.oacc-fortran/if-1.f90: Likewise.
2196 2022-03-17 Thomas Schwinge <thomas@codesourcery.com>
2199 * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c: Enhance.
2200 * testsuite/libgomp.oacc-fortran/if-1.f90: Likewise.
2202 2022-03-16 Marcel Vollweiler <marcel@codesourcery.com>
2204 * fortran.c (omp_set_num_teams_8_): Call omp_set_num_teams instead of
2205 omp_set_max_active_levels.
2206 * testsuite/libgomp.fortran/icv-8.f90: New test.
2208 2022-03-16 Thomas Schwinge <thomas@codesourcery.com>
2211 * testsuite/libgomp.oacc-c-c++-common/host_data-7.c: Adjust.
2213 2022-03-13 Tobias Burnus <tobias@codesourcery.com>
2215 * libgomp.texi: Fix typo.
2217 2022-03-12 Thomas Schwinge <thomas@codesourcery.com>
2219 PR middle-end/100280
2220 PR middle-end/104892
2221 * testsuite/libgomp.oacc-c-c++-common/declare-vla.c: Adjust.
2222 * testsuite/libgomp.oacc-c-c++-common/default-1.c: Likewise.
2223 * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c:
2225 * testsuite/libgomp.oacc-c-c++-common/kernels-reduction-1.c:
2227 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Likewise.
2228 * testsuite/libgomp.oacc-fortran/asyncwait-1.f90: Likewise.
2229 * testsuite/libgomp.oacc-fortran/kernels-reduction-1.f90:
2232 2022-03-12 Thomas Schwinge <thomas@codesourcery.com>
2234 PR middle-end/104892
2235 * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c: Point
2237 * testsuite/libgomp.oacc-c-c++-common/default-1.c: Likewise,
2238 enable '--param=openacc-kernels=decompose' and adjust.
2239 * testsuite/libgomp.oacc-c-c++-common/kernels-reduction-1.c:
2241 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Likewise.
2242 * testsuite/libgomp.oacc-fortran/kernels-reduction-1.f90:
2245 2022-03-12 Thomas Schwinge <thomas@codesourcery.com>
2248 * testsuite/libgomp.oacc-c-c++-common/default-1.c: Enhance.
2249 * testsuite/libgomp.oacc-c-c++-common/kernels-reduction-1.c: Likewise.
2250 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Likewise.
2251 * testsuite/libgomp.oacc-fortran/kernels-reduction-1.f90: Likewise.
2253 2022-03-12 Thomas Schwinge <thomas@codesourcery.com>
2255 PR middle-end/100280
2256 PR middle-end/104086
2257 * testsuite/libgomp.oacc-c-c++-common/declare-vla-kernels-decompose-ice-1.c:
2259 * testsuite/libgomp.oacc-c-c++-common/declare-vla-kernels-decompose.c:
2261 * testsuite/libgomp.oacc-c-c++-common/declare-vla.c: ... into
2263 * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c:
2266 2022-03-10 Hafiz Abid Qadeer <abidh@codesourcery.com>
2268 * testsuite/libgomp.fortran/allocate-1.f90: Remove pool_size
2269 trait. Test last index in w and v array. Remove redundant
2270 assignment to V(1). Move alignment checks at the end of
2273 2022-03-10 Tom de Vries <tdevries@suse.de>
2275 * testsuite/libgomp.c/pr104783.c: New test.
2277 2022-03-10 Thomas Schwinge <thomas@codesourcery.com>
2280 PR middle-end/102330
2281 PR middle-end/104774
2282 * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c:
2284 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-1.c:
2286 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-2.c:
2288 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-3.c:
2290 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-4.c:
2292 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-5.c:
2294 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-vector-1.c:
2296 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-vector-2.c:
2298 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-2.c:
2300 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-3.c:
2302 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-4.c:
2304 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-5.c:
2306 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-6.c:
2308 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-7.c:
2310 * testsuite/libgomp.oacc-fortran/optional-private.f90: Likewise.
2311 * testsuite/libgomp.oacc-fortran/privatized-ref-1.f95: Likewise.
2312 * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Likewise.
2314 2022-03-10 Thomas Schwinge <thomas@codesourcery.com>
2317 * testsuite/libgomp.oacc-fortran/routine-1.f90: Enhance.
2318 * testsuite/libgomp.oacc-fortran/routine-2.f90: Likewise.
2319 * testsuite/libgomp.oacc-fortran/routine-3.f90: Likewise.
2320 * testsuite/libgomp.oacc-fortran/routine-9.f90: Likewise.
2322 2022-03-04 Thomas Schwinge <thomas@codesourcery.com>
2325 * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c: Fix
2326 expected diagnostics.
2328 2022-03-04 Thomas Schwinge <thomas@codesourcery.com>
2330 PR middle-end/104784
2331 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-1.c:
2332 Test with '--param=openacc-kernels=decompose'.
2333 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-2.c:
2335 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-3.c:
2337 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-4.c:
2339 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-5.c:
2341 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-1.c:
2343 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-2.c:
2345 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-3.c:
2347 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-4.c:
2349 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-5.c:
2351 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-6.c:
2353 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-vector-1.c:
2355 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-vector-2.c:
2357 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-1.c:
2359 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-2.c:
2361 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-3.c:
2363 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-4.c:
2365 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-5.c:
2367 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-6.c:
2369 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-7.c:
2371 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-1.f90:
2373 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-2.f90:
2375 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-3.f90:
2377 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-6.f90:
2379 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-vector-1.f90:
2381 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-vector-2.f90:
2383 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-1.f90:
2385 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-2.f90:
2387 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-3.f90:
2389 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-4.f90:
2391 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-5.f90:
2393 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-6.f90:
2395 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-7.f90:
2398 2022-03-04 Thomas Schwinge <thomas@codesourcery.com>
2400 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-1.c:
2401 Test '-fopt-info-omp-all'.
2402 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-2.c:
2404 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-3.c:
2406 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-4.c:
2408 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-5.c:
2410 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-1.c:
2412 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-2.c:
2414 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-3.c:
2416 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-4.c:
2418 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-5.c:
2420 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-6.c:
2422 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-vector-1.c:
2424 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-vector-2.c:
2426 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-1.c:
2428 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-2.c:
2430 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-3.c:
2432 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-4.c:
2434 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-5.c:
2436 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-6.c:
2438 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-7.c:
2440 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-1.f90:
2442 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-2.f90:
2444 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-3.f90:
2446 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-6.f90:
2448 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-vector-1.f90:
2450 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-vector-2.f90:
2452 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-1.f90:
2454 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-2.f90:
2456 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-3.f90:
2458 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-4.f90:
2460 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-5.f90:
2462 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-6.f90:
2464 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-7.f90:
2467 2022-03-04 Thomas Schwinge <thomas@codesourcery.com>
2469 PR middle-end/100280
2470 PR middle-end/104132
2471 PR middle-end/104133
2472 * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c:
2475 2022-03-04 Thomas Schwinge <thomas@codesourcery.com>
2477 PR middle-end/100280
2478 * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-1.c: Adjust.
2479 * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c:
2482 2022-03-04 Thomas Schwinge <thomas@codesourcery.com>
2484 PR middle-end/100280
2485 * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-1.c: Adjust.
2486 * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c:
2489 2022-02-28 Tom de Vries <tdevries@suse.de>
2491 * testsuite/libgomp.c/declare-variant-3-sm30.c: Add -foffload=-mptx=_.
2492 * testsuite/libgomp.c/declare-variant-3-sm35.c: Same.
2493 * testsuite/libgomp.c/declare-variant-3-sm53.c: Same.
2494 * testsuite/libgomp.c/declare-variant-3-sm70.c: Same.
2495 * testsuite/libgomp.c/declare-variant-3-sm75.c: Same.
2496 * testsuite/libgomp.c/declare-variant-3-sm80.c: Same.
2498 2022-02-24 Tom de Vries <tdevries@suse.de>
2500 * testsuite/libgomp.c/declare-variant-3-sm30.c: New test.
2501 * testsuite/libgomp.c/declare-variant-3-sm35.c: New test.
2502 * testsuite/libgomp.c/declare-variant-3-sm53.c: New test.
2503 * testsuite/libgomp.c/declare-variant-3-sm70.c: New test.
2504 * testsuite/libgomp.c/declare-variant-3-sm75.c: New test.
2505 * testsuite/libgomp.c/declare-variant-3-sm80.c: New test.
2506 * testsuite/libgomp.c/declare-variant-3.h: New header file.
2508 2022-02-22 Thomas Schwinge <thomas@codesourcery.com>
2510 * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Fix OpenACC
2511 gang-redundant execution.
2513 2022-02-22 Tom de Vries <tdevries@suse.de>
2516 * config/nvptx/bar.c (generation_to_barrier): New function, copied
2517 from config/rtems/bar.c.
2518 (futex_wait, futex_wake): New function.
2519 (do_spin, do_wait): New function, copied from config/linux/wait.h.
2520 (gomp_barrier_wait_end, gomp_barrier_wait_last)
2521 (gomp_team_barrier_wake, gomp_team_barrier_wait_end):
2522 (gomp_team_barrier_wait_cancel_end, gomp_team_barrier_cancel): Remove
2523 and replace with include of config/linux/bar.c.
2524 * config/nvptx/bar.h (gomp_barrier_t): Add fields waiters and lock.
2525 (gomp_barrier_init): Init new fields.
2526 * testsuite/libgomp.c-c++-common/task-detach-6.c: Remove nvptx-specific
2528 * testsuite/libgomp.c/pr99555-1.c: Same.
2529 * testsuite/libgomp.fortran/task-detach-6.f90: Same.
2531 2022-02-22 Tom de Vries <tdevries@suse.de>
2534 * testsuite/libgomp.c++/pr96390.C: Add additional-option
2535 -foffload=-Wa,--verify for nvptx.
2536 * testsuite/libgomp.c-c++-common/pr96390.c: Same.
2538 2022-02-15 Tobias Burnus <tobias@codesourcery.com>
2540 * testsuite/libgomp.fortran/depend-4.f90: New test.
2542 2022-02-10 Tobias Burnus <tobias@codesourcery.com>
2545 * testsuite/libgomp.c++/target-virtual-1.C: New test.
2547 2022-02-10 Marcel Vollweiler <marcel@codesourcery.com>
2549 * libgomp.texi: Updated entry for HAS_DEVICE_ADDR.
2550 * target.c (copy_firstprivate_data): Copy only if host address is not
2552 * testsuite/libgomp.c++/target-has-device-addr-2.C: New test.
2553 * testsuite/libgomp.c++/target-has-device-addr-4.C: New test.
2554 * testsuite/libgomp.c++/target-has-device-addr-5.C: New test.
2555 * testsuite/libgomp.c++/target-has-device-addr-6.C: New test.
2556 * testsuite/libgomp.c-c++-common/target-has-device-addr-1.c: New test.
2557 * testsuite/libgomp.c/target-has-device-addr-3.c: New test.
2558 * testsuite/libgomp.fortran/target-has-device-addr-1.f90: New test.
2559 * testsuite/libgomp.fortran/target-has-device-addr-2.f90: New test.
2560 * testsuite/libgomp.fortran/target-has-device-addr-3.f90: New test.
2561 * testsuite/libgomp.fortran/target-has-device-addr-4.f90: New test.
2563 2022-02-08 Jakub Jelinek <jakub@redhat.com>
2566 * task.c (gomp_task_run_post_handle_dependers): If parent is NULL,
2568 * testsuite/libgomp.c/pr104385.c: New test.
2570 2022-02-04 Tobias Burnus <tobias@codesourcery.com>
2572 * testsuite/libgomp.fortran/allocate-1.f90: Remove spurious
2573 STOP of previous commit.
2575 2022-02-04 Tobias Burnus <tobias@codesourcery.com>
2577 * testsuite/libgomp.fortran/allocate-1.c (is_64bit_aligned): Renamed
2578 from is_64bit_aligned_.
2579 * testsuite/libgomp.fortran/allocate-1.f90: Fix interface decl
2580 and use it, more implicit none, remove unused argument.
2582 2022-02-03 David Seifert <soap@gentoo.org>
2583 Jakub Jelinek <jakub@redhat.com>
2585 * configure.ac: Support --disable-werror.
2586 * configure: Regenerate.
2588 2022-02-01 Tom de Vries <tdevries@suse.de>
2590 * testsuite/libgomp.oacc-c-c++-common/private-atomic-1.c: Remove
2592 * testsuite/libgomp.oacc-fortran/private-atomic-1-vector.f90: Same.
2593 * testsuite/libgomp.oacc-fortran/private-atomic-1-worker.f90: Same.
2595 2022-02-01 Tom de Vries <tdevries@suse.de>
2597 * testsuite/libgomp.oacc-c-c++-common/broadcast-many.c: Reduce
2598 num_workers for nvidia accelerator to fix libgomp error 'insufficient
2600 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-4.c:
2602 * testsuite/libgomp.oacc-c-c++-common/reduction-7.c: Same.
2604 2022-02-01 Tom de Vries <tdevries@suse.de>
2606 * testsuite/libgomp.fortran/examples-4/declare_target-1.f90: Reduce
2608 * testsuite/libgomp.fortran/examples-4/declare_target-2.f90: Same.
2610 2022-01-31 Martin Liska <mliska@suse.cz>
2612 * acinclude.m4: Detect *_ld_is_mold and use it.
2613 * configure: Regenerate.
2615 2022-01-27 Tobias Burnus <tobias@codesourcery.com>
2617 * libgomp.texi (OpenMP 5.0): Update implementation status.
2619 2022-01-21 Thomas Schwinge <thomas@codesourcery.com>
2621 * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c: Strengthen.
2622 * testsuite/libgomp.oacc-c-c++-common/loop-gwv-2.c: Likewise.
2623 * testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c: Likewise.
2624 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c: Likewise.
2625 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c: Likewise.
2626 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c: Likewise.
2627 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c: Likewise.
2628 * testsuite/libgomp.oacc-c-c++-common/loop-red-wv-1.c: Likewise.
2629 * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c: Likewise.
2630 * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c: Likewise.
2631 * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c: Likewise.
2632 * testsuite/libgomp.oacc-c-c++-common/routine-gwv-1.c: Likewise.
2633 * testsuite/libgomp.oacc-c-c++-common/routine-v-1.c: Likewise.
2634 * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c: Likewise.
2635 * testsuite/libgomp.oacc-c-c++-common/routine-wv-1.c: Likewise.
2637 2022-01-19 Marcel Vollweiler <marcel@codesourcery.com>
2639 * config/gcn/icv-device.c: Make GOMP_DEVICE_NUM_VAR public (remove
2640 "static") to make the device num available in the offload image.
2642 2022-01-19 Martin Liska <mliska@suse.cz>
2643 Thomas Schwinge <thomas@codesourcery.com>
2645 * testsuite/libgomp.oacc-c++/privatized-ref-2.C: Update scanning
2647 * testsuite/libgomp.oacc-c++/privatized-ref-3.C: Likewise.
2648 * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c:
2650 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-2.c: Likewise.
2651 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Likewise.
2652 * testsuite/libgomp.oacc-c-c++-common/pr85486.c: Likewise.
2653 * testsuite/libgomp.oacc-c-c++-common/pr95270-1.c: Likewise.
2654 * testsuite/libgomp.oacc-c-c++-common/routine-nohost-2.c:
2656 * testsuite/libgomp.oacc-c-c++-common/struct-copyout-1.c:
2658 * testsuite/libgomp.oacc-c-c++-common/struct-copyout-2.c:
2660 * testsuite/libgomp.oacc-c-c++-common/vector-length-64-1.c:
2662 * testsuite/libgomp.oacc-fortran/attach-descriptor-1.f90:
2664 * testsuite/libgomp.oacc-fortran/derivedtypes-arrays-1.f90:
2666 * testsuite/libgomp.oacc-fortran/kernels-loop-2.f95: Likewise.
2667 * testsuite/libgomp.oacc-fortran/parallel-dims.f90: Likewise.
2668 * testsuite/libgomp.oacc-fortran/privatized-ref-1.f95: Likewise.
2670 2022-01-18 Martin Liska <mliska@suse.cz>
2672 * testsuite/libgomp.oacc-c++/privatized-ref-2.C: Update keyword
2674 * testsuite/libgomp.oacc-c++/privatized-ref-3.C: Likewise.
2675 * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c: Likewise.
2676 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-2.c: Likewise.
2677 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Likewise.
2678 * testsuite/libgomp.oacc-c-c++-common/pr85486.c: Likewise.
2679 * testsuite/libgomp.oacc-c-c++-common/pr95270-1.c: Likewise.
2680 * testsuite/libgomp.oacc-c-c++-common/routine-nohost-2.c: Likewise.
2681 * testsuite/libgomp.oacc-c-c++-common/struct-copyout-1.c: Likewise.
2682 * testsuite/libgomp.oacc-c-c++-common/struct-copyout-2.c: Likewise.
2683 * testsuite/libgomp.oacc-c-c++-common/vector-length-64-1.c: Likewise.
2684 * testsuite/libgomp.oacc-fortran/attach-descriptor-1.f90: Likewise.
2685 * testsuite/libgomp.oacc-fortran/derivedtypes-arrays-1.f90: Likewise.
2686 * testsuite/libgomp.oacc-fortran/kernels-loop-2.f95: Likewise.
2687 * testsuite/libgomp.oacc-fortran/parallel-dims.f90: Likewise.
2688 * testsuite/libgomp.oacc-fortran/privatized-ref-1.f95: Likewise.
2690 2022-01-17 Thomas Schwinge <thomas@codesourcery.com>
2692 * testsuite/libgomp.oacc-c++/privatized-ref-2.C: Extend.
2693 * testsuite/libgomp.oacc-c++/privatized-ref-3.C: Likewise.
2694 * testsuite/libgomp.oacc-fortran/privatized-ref-1.f95: Likewise.
2696 2022-01-17 Julian Brown <julian@codesourcery.com>
2697 Thomas Schwinge <thomas@codesourcery.com>
2699 * testsuite/libgomp.oacc-fortran/privatized-ref-1.f95: New test.
2700 * testsuite/libgomp.oacc-c++/privatized-ref-2.C: New test.
2701 * testsuite/libgomp.oacc-c++/privatized-ref-3.C: New test.
2703 2022-01-16 Kwok Cheung Yeung <kcy@codesourcery.com>
2704 Andrew Stubbs <ams@codesourcery.com>
2706 * plugin/plugin-gcn.c (parse_target_attributes): Automatically set
2707 the number of teams and threads if necessary.
2708 (gcn_exec): Automatically set the number of gangs and workers if
2711 2022-01-13 Hafiz Abid Qadeer <abidh@codesourcery.com>
2713 * testsuite/libgomp.fortran/allocate-1.c: New test.
2714 * testsuite/libgomp.fortran/allocate-1.f90: New test.
2715 * libgomp.texi: Remove string that says that allocate clause
2716 support is for C/C++ only.
2718 2022-01-13 Thomas Schwinge <thomas@codesourcery.com>
2720 * testsuite/libgomp.c-c++-common/on_device_arch.h
2721 (any_device_arch, any_device_arch_intel_mic): New.
2722 * testsuite/lib/libgomp.exp
2723 (check_effective_target_offload_device_any_intel_mic): New.
2724 * testsuite/libgomp.c-c++-common/target-45.c: Use it.
2725 * testsuite/libgomp.fortran/target10.f90: Likewise.
2727 2022-01-13 Thomas Schwinge <thomas@codesourcery.com>
2729 PR tree-optimization/102192
2730 * testsuite/libgomp.oacc-fortran/routine-10.f90: Document current
2731 '-Wuninitialized' diagnostics.
2733 2022-01-13 Thomas Schwinge <thomas@codesourcery.com>
2735 * testsuite/libgomp.oacc-c-c++-common/vred2d-128.c: Document
2736 current '-Wuninitialized' diagnostics.
2737 * testsuite/libgomp.oacc-fortran/data-5.f90: Likewise.
2738 * testsuite/libgomp.oacc-fortran/gemm-2.f90: Likewise.
2739 * testsuite/libgomp.oacc-fortran/gemm.f90: Likewise.
2740 * testsuite/libgomp.oacc-fortran/optional-reduction.f90: Likewise.
2741 * testsuite/libgomp.oacc-fortran/parallel-reduction.f90: Likewise.
2742 * testsuite/libgomp.oacc-fortran/pr70643.f90: Likewise.
2743 * testsuite/libgomp.oacc-fortran/pr96628-part1.f90: Likewise.
2744 * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Likewise.
2745 * testsuite/libgomp.oacc-fortran/reduction-5.f90: Likewise.
2746 * testsuite/libgomp.oacc-fortran/reduction-7.f90: Likewise.
2747 * testsuite/libgomp.oacc-fortran/reference-reductions.f90:
2750 2022-01-13 Thomas Schwinge <thomas@codesourcery.com>
2752 * testsuite/libgomp.c/address-space-1.c: Remove 'dg-xfail-run-if'
2753 for 'offload_device_intel_mic'.
2755 2022-01-13 Julian Brown <julian@codesourcery.com>
2756 Thomas Schwinge <thomas@codesourcery.com>
2758 * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-1.c: Remove GCN
2759 offloading execution XFAIL.
2761 2022-01-13 Thomas Schwinge <thomas@codesourcery.com>
2763 PR middle-end/100280
2764 * testsuite/libgomp.oacc-c-c++-common/declare-vla-kernels-decompose-ice-1.c:
2766 * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-1.c: Likewise.
2767 * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c:
2770 2022-01-13 Thomas Schwinge <thomas@codesourcery.com>
2772 * testsuite/libgomp.oacc-c-c++-common/declare-vla-kernels-decompose-ice-1.c:
2774 * testsuite/libgomp.oacc-c-c++-common/declare-vla-kernels-decompose.c:
2776 * testsuite/libgomp.oacc-c-c++-common/declare-vla.c: Likewise.
2777 * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-1.c: Likewise.
2778 * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-2.c: Likewise.
2779 * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-3.c: Likewise.
2780 * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c:
2782 * testsuite/libgomp.oacc-fortran/asyncwait-1.f90: Likewise.
2783 * testsuite/libgomp.oacc-fortran/asyncwait-2.f90: Likewise.
2784 * testsuite/libgomp.oacc-fortran/asyncwait-3.f90: Likewise.
2785 * testsuite/libgomp.oacc-fortran/pr94358-1.f90: Likewise.
2787 2022-01-04 Tobias Burnus <tobias@codesourcery.com>
2789 * testsuite/libgomp.c-c++-common/target-45.c: Iterate over all devices.
2790 * testsuite/libgomp.fortran/target10.f90: Likewise.
2792 2022-01-04 Chung-Lin Tang <cltang@codesourcery.com>
2794 * plugin/plugin-gcn.c (GOMP_OFFLOAD_load_image): Change uses of STRINGX
2795 into XSTRING when looking for GOMP_DEVICE_NUM_VAR in offload image.
2796 * plugin/plugin-nvptx.c (GOMP_OFFLOAD_load_image): Likewise.
2798 2022-01-03 Jakub Jelinek <jakub@redhat.com>
2800 * libgomp.texi: Bump @copying's copyright year.
2802 2021-12-13 Tobias Burnus <tobias@codesourcery.com>
2804 * libgomp.texi (OpenMP 5.1): Set Fortran support for atomic to 'Y'.
2805 * testsuite/libgomp.fortran/atomic-19.f90: New test.
2807 2021-12-10 Andrew Stubbs <ams@codesourcery.com>
2809 * plugin/plugin-gcn.c (struct gcn_image_desc): Remove global_variables.
2810 (GOMP_OFFLOAD_load_image): Locate the offload variables via the
2811 table, not individual symbols.
2813 2021-12-09 Chung-Lin Tang <cltang@codesourcery.com>
2815 * testsuite/libgomp.c++/target-lambda-1.C: Only run under
2816 "target offload_device_nonshared_as"
2817 * testsuite/libgomp.c++/target-this-3.C: Likewise.
2818 * testsuite/libgomp.c++/target-this-4.C: Likewise.
2820 2021-12-08 Chung-Lin Tang <cltang@codesourcery.com>
2822 * target.c (gomp_map_vars_existing): Make sure attached pointer is
2823 not overwritten during cross-host/device copying.
2824 (gomp_update): Likewise.
2825 (gomp_exit_data): Likewise.
2826 * testsuite/libgomp.c++/target-11.C: Adjust testcase.
2827 * testsuite/libgomp.c++/target-12.C: Likewise.
2828 * testsuite/libgomp.c++/target-15.C: Likewise.
2829 * testsuite/libgomp.c++/target-16.C: Likewise.
2830 * testsuite/libgomp.c++/target-17.C: Likewise.
2831 * testsuite/libgomp.c++/target-21.C: Likewise.
2832 * testsuite/libgomp.c++/target-23.C: Likewise.
2833 * testsuite/libgomp.c/target-23.c: Likewise.
2834 * testsuite/libgomp.c/target-29.c: Likewise.
2835 * testsuite/libgomp.c-c++-common/target-implicit-map-2.c: New testcase.
2837 2021-12-08 Chung-Lin Tang <cltang@codesourcery.com>
2840 * libgomp.h (gomp_attach_pointer): Add bool parameter.
2841 * oacc-mem.c (acc_attach_async): Update call to gomp_attach_pointer.
2842 (goacc_enter_data_internal): Likewise.
2843 * target.c (gomp_map_vars_existing): Update assert condition to
2844 include GOMP_MAP_ATTACH_ZERO_LENGTH_ARRAY_SECTION.
2845 (gomp_map_pointer): Add 'bool allow_zero_length_array_sections'
2846 parameter, add support for mapping a pointer with NULL target.
2847 (gomp_attach_pointer): Add 'bool allow_zero_length_array_sections'
2848 parameter, add support for attaching a pointer with NULL target.
2849 (gomp_map_vars_internal): Update calls to gomp_map_pointer and
2850 gomp_attach_pointer, add handling for
2851 GOMP_MAP_ATTACH_ZERO_LENGTH_ARRAY_SECTION, and
2852 GOMP_MAP_POINTER_TO_ZERO_LENGTH_ARRAY_SECTION cases.
2853 * testsuite/libgomp.c++/target-23.C: New testcase.
2854 * testsuite/libgomp.c++/target-lambda-1.C: New testcase.
2855 * testsuite/libgomp.c++/target-lambda-2.C: New testcase.
2856 * testsuite/libgomp.c++/target-this-1.C: New testcase.
2857 * testsuite/libgomp.c++/target-this-2.C: New testcase.
2858 * testsuite/libgomp.c++/target-this-3.C: New testcase.
2859 * testsuite/libgomp.c++/target-this-4.C: New testcase.
2860 * testsuite/libgomp.c++/target-this-5.C: New testcase.
2862 2021-12-04 Tobias Burnus <tobias@codesourcery.com>
2864 * libgomp.texi (OpenMP 5.1): Update status.
2866 2021-12-04 Tobias Burnus <tobias@codesourcery.com>
2868 * libgomp.texi (OMP_PLACES): Extend description for OMP 5.1 changes.
2870 2021-12-02 Chung-Lin Tang <cltang@codesourcery.com>
2873 * testsuite/libgomp.oacc-fortran/pr90030.f90: New test.
2874 * testsuite/libgomp.fortran/pr90030.f90: New test.
2876 2021-11-30 Kwok Cheung Yeung <kcy@codesourcery.com>
2877 Thomas Schwinge <thomas@codesourcery.com>
2879 * testsuite/libgomp.oacc-fortran/parallel-dims.f90: Remove
2882 2021-11-30 Cesar Philippidis <cesar@codesourcery.com>
2883 Thomas Schwinge <thomas@codesourcery.com>
2885 * testsuite/libgomp.oacc-fortran/parallel-dims.f90: Temporarily
2888 2021-11-29 Richard Biener <rguenther@suse.de>
2890 * oacc-plugin.c (GOMP_PLUGIN_acc_default_dim): Remove unreachable
2893 2021-11-24 Jakub Jelinek <jakub@redhat.com>
2895 PR middle-end/103384
2896 * testsuite/libgomp.c/declare-variant-2.c: New test.
2898 2021-11-18 David Edelsohn <dje.gcc@gmail.com>
2900 * alloc.c (gomp_aligned_alloc): Fix typo.
2902 2021-11-18 Jakub Jelinek <jakub@redhat.com>
2905 * libgomp.h (GOMP_USE_ALIGNED_WORK_SHARES): Define if
2906 GOMP_HAVE_EFFICIENT_ALIGNED_ALLOC is defined and __AMDGCN__ is not.
2907 (struct gomp_work_share): Use GOMP_USE_ALIGNED_WORK_SHARES instead of
2908 GOMP_HAVE_EFFICIENT_ALIGNED_ALLOC.
2909 * work.c (alloc_work_share, gomp_work_share_start): Likewise.
2910 * team.c (gomp_new_team): If GOMP_USE_ALIGNED_WORK_SHARES, use
2911 gomp_aligned_alloc instead of team_malloc.
2913 2021-11-18 Jakub Jelinek <jakub@redhat.com>
2916 * alloc.c (gomp_aligned_alloc): Prefer _aligned_alloc over
2917 memalign over posix_memalign over aligned_alloc over fallback
2918 with malloc instead of aligned_alloc over _aligned_alloc over
2919 posix_memalign over memalign over fallback with malloc. For
2920 aligned_alloc, round up size up to multiple of al.
2922 2021-11-16 Jakub Jelinek <jakub@redhat.com>
2924 * libgomp.texi (OpenMP 5.1): Mark thread_limit clause to target
2925 construct as implemented.
2927 2021-11-15 Tobias Burnus <tobias@codesourcery.com>
2929 * testsuite/libgomp.fortran/thread-limit-1.f90: New test.
2931 2021-11-15 Jakub Jelinek <jakub@redhat.com>
2933 * task.c (gomp_create_target_task): Copy args array as well.
2934 * target.c (gomp_target_fallback): Add args argument.
2935 Set gomp_icv (true)->thread_limit_var if thread_limit is present.
2936 (GOMP_target): Adjust gomp_target_fallback caller.
2937 (GOMP_target_ext): Likewise.
2938 (gomp_target_task_fn): Likewise.
2939 * config/nvptx/team.c (gomp_nvptx_main): Set
2940 gomp_global_icv.thread_limit_var.
2941 * testsuite/libgomp.c-c++-common/thread-limit-1.c: New test.
2943 2021-11-15 Jakub Jelinek <jakub@redhat.com>
2945 * config/nvptx/team.c (__gomp_team_num): Define as
2946 __attribute__((shared)) var.
2947 (gomp_nvptx_main): Initialize __gomp_team_num to 0.
2948 * config/nvptx/target.c (__gomp_team_num): Declare as
2949 extern __attribute__((shared)) var.
2950 (GOMP_teams4): Use __gomp_team_num as the team number instead of
2951 %ctaid.x. If first, initialize it to %ctaid.x. If num_teams_lower
2952 is bigger than num_blocks, use num_teams_lower teams and arrange for
2953 bumping of __gomp_team_num if !first and returning false once we run
2955 * config/nvptx/teams.c (__gomp_team_num): Declare as
2956 extern __attribute__((shared)) var.
2957 (omp_get_team_num): Return __gomp_team_num value instead of %ctaid.x.
2959 2021-11-15 Jakub Jelinek <jakub@redhat.com>
2961 * testsuite/libgomp.c/teams-5.c: New test.
2963 2021-11-12 Jakub Jelinek <jakub@redhat.com>
2966 * config/gcn/icv-device.c (omp_get_num_teams, omp_get_team_num): Move
2968 * config/gcn/teams.c: ... here. New file.
2970 2021-11-12 Chung-Lin Tang <cltang@codesourcery.com>
2972 * target.c (gomp_map_vars_existing): Add 'bool implicit' parameter, add
2973 implicit map handling to allow a "superset" existing map as valid case.
2974 (get_kind): Adjust to filter out GOMP_MAP_IMPLICIT bits in return value.
2975 (get_implicit): New function to extract implicit status.
2976 (gomp_map_fields_existing): Adjust arguments in calls to
2977 gomp_map_vars_existing, and add uses of get_implicit.
2978 (gomp_map_vars_internal): Likewise.
2979 * testsuite/libgomp.c-c++-common/target-implicit-map-1.c: New test.
2981 2021-11-12 Jakub Jelinek <jakub@redhat.com>
2983 * libgomp_g.h (GOMP_teams4): Declare.
2984 * libgomp.map (GOMP_5.1): Export GOMP_teams4.
2985 * target.c (GOMP_teams4): New function.
2986 * config/nvptx/target.c (GOMP_teams): Remove.
2987 (GOMP_teams4): New function.
2988 * config/gcn/target.c (GOMP_teams): Remove.
2989 (GOMP_teams4): New function.
2990 * testsuite/libgomp.c/teams-4.c (main): Expect exactly 2
2991 teams instead of <= 2.
2992 * testsuite/libgomp.c-c++-common/teams-2.c: New test.
2994 2021-11-11 Tobias Burnus <tobias@codesourcery.com>
2996 * testsuite/libgomp.fortran/teams-1.f90: New test.
2998 2021-11-11 Jakub Jelinek <jakub@redhat.com>
3000 * libgomp.h (struct gomp_thread): Add num_teams and team_num members.
3001 * team.c (struct gomp_thread_start_data): Likewise.
3002 (gomp_thread_start): Initialize thr->num_teams and thr->team_num.
3003 (gomp_team_start): Initialize start_data->num_teams and
3004 start_data->team_num. Update nthr->num_teams and nthr->team_num.
3005 * teams.c (gomp_num_teams, gomp_team_num): Remove.
3006 (GOMP_teams_reg): Set and restore thr->num_teams and thr->team_num
3007 instead of gomp_num_teams and gomp_team_num.
3008 (omp_get_num_teams): Use thr->num_teams + 1 instead of gomp_num_teams.
3009 (omp_get_team_num): Use thr->team_num instead of gomp_team_num.
3010 * testsuite/libgomp.c/teams-4.c: New test.
3012 2021-11-11 Jakub Jelinek <jakub@redhat.com>
3014 * testsuite/libgomp.c-c++-common/teams-1.c: New test.
3016 2021-11-09 Thomas Schwinge <thomas@codesourcery.com>
3018 * env.c (parse_gomp_openacc_dim): Restore parsing.
3020 2021-10-30 Tobias Burnus <tobias@codesourcery.com>
3022 PR middle-end/102972
3023 * testsuite/libgomp.c-c++-common/icv-3.c: Nest API calls inside
3025 * testsuite/libgomp.c-c++-common/icv-4.c: Likewise.
3026 * testsuite/libgomp.c/target-3.c: Likewise.
3027 * testsuite/libgomp.c/target-5.c: Likewise.
3028 * testsuite/libgomp.c/target-6.c: Likewise.
3029 * testsuite/libgomp.c/target-teams-1.c: Likewise.
3030 * testsuite/libgomp.c/teams-1.c: Likewise.
3031 * testsuite/libgomp.c/thread-limit-2.c: Likewise.
3032 * testsuite/libgomp.c/thread-limit-3.c: Likewise.
3033 * testsuite/libgomp.c/thread-limit-4.c: Likewise.
3034 * testsuite/libgomp.c/thread-limit-5.c: Likewise.
3035 * testsuite/libgomp.fortran/icv-3.f90: Likewise.
3036 * testsuite/libgomp.fortran/icv-4.f90: Likewise.
3037 * testsuite/libgomp.fortran/teams1.f90: Likewise.
3039 2021-10-29 Aldy Hernandez <aldyh@redhat.com>
3041 * testsuite/libgomp.graphite/force-parallel-4.c: Adjust for threading changes.
3042 * testsuite/libgomp.graphite/force-parallel-8.c: Same.
3044 2021-10-27 Jakub Jelinek <jakub@redhat.com>
3046 * libgomp.texi (OpenMP 5.0): Mention that Non-rectangular loop nests
3047 aren't implemented for Fortran yet.
3049 2021-10-27 Jakub Jelinek <jakub@redhat.com>
3051 * testsuite/libgomp.c/loop-26.c: New test.
3052 * testsuite/libgomp.c/loop-27.c: New test.
3054 2021-10-25 Tobias Burnus <tobias@codesourcery.com>
3057 * testsuite/libgomp.oacc-c-c++-common/loop-gwv-2.c: Use __builtin_alloca
3058 instead of #include <alloca.h> + alloca.
3060 2021-10-21 Chung-Lin Tang <cltang@codesourcery.com>
3062 * libgomp.texi (Support of strictly structured blocks in Fortran):
3064 * testsuite/libgomp.fortran/task-reduction-16.f90: Adjust testcase.
3066 2021-10-20 Chung-Lin Tang <cltang@codesourcery.com>
3068 * testsuite/libgomp.fortran/target-in-reduction-1.f90: New test.
3069 * testsuite/libgomp.fortran/target-in-reduction-2.f90: New test.
3071 2021-10-20 Jakub Jelinek <jakub@redhat.com>
3074 * libgomp.h (struct gomp_work_share_1st_cacheline): New type.
3075 (struct gomp_work_share): Only use aligned(64) attribute if
3076 GOMP_HAVE_EFFICIENT_ALIGNED_ALLOC is defined, otherwise just
3077 add padding before lock to ensure lock is at offset 64 bytes
3079 (gomp_workshare_struct_check1, gomp_workshare_struct_check2):
3080 New poor man's static assertions.
3081 * work.c (gomp_work_share_start): Use gomp_aligned_alloc instead of
3082 gomp_malloc if GOMP_HAVE_EFFICIENT_ALIGNED_ALLOC.
3084 2021-10-20 Aldy Hernandez <aldyh@redhat.com>
3085 Richard Biener <rguenther@suse.de>
3087 * testsuite/libgomp.graphite/force-parallel-5.c: Remove xfail.
3089 2021-10-18 Jakub Jelinek <jakub@redhat.com>
3091 * config/linux/affinity.c (gomp_affinity_init_numa_domains): Add
3092 && gomp_places_list_len < count after nfirst <= nlast loop condition.
3094 2021-10-18 Tobias Burnus <tobias@codesourcery.com>
3103 * testsuite/libgomp.fortran/optional-bind-c.f90: New test.
3105 2021-10-15 Jakub Jelinek <jakub@redhat.com>
3107 * testsuite/libgomp.c/affinity-1.c (struct places): Change name field
3108 type from char [50] to const char *.
3109 (places_array): Add a testcase for simplified syntax place followed
3110 by length or length and stride.
3112 2021-10-15 Jakub Jelinek <jakub@redhat.com>
3114 * env.c (parse_one_place): Handle non-negative-number the same
3115 as { non-negative-number }. Reject even !number:1 and
3116 !number:1:stride or !place:1 or !place:1:stride instead of just
3117 length other than 1.
3118 * libgomp.texi (OpenMP 5.1): Document OMP_PLACES syntax extensions
3119 and OMP_NUM_TEAMS/OMP_TEAMS_THREAD_LIMIT and
3120 omp_{set_num,get_max}_teams/omp_{s,g}et_teams_thread_limit features
3122 * testsuite/libgomp.c/affinity-1.c: Add a test for the 5.1 place
3125 2021-10-15 Jakub Jelinek <jakub@redhat.com>
3127 * env.c (parse_schedule): For strtoul or strtoull calls which don't
3128 clearly reject return value 0 as invalid handle the case where end
3129 pointer is the same as first argument as invalid.
3130 (parse_unsigned_long_1): Likewise.
3131 (parse_one_place): Likewise.
3132 (parse_places_var): Likewise.
3133 (parse_stacksize): Likewise.
3134 (parse_spincount): Likewise.
3135 (parse_affinity): Likewise.
3136 (parse_gomp_openacc_dim): Likewise. Avoid strict aliasing violation.
3137 Make code valid C89.
3138 * config/linux/affinity.c (gomp_affinity_find_last_cache_level):
3139 For strtoul calls which don't clearly reject return value 0 as
3140 invalid handle the case where end pointer is the same as first
3141 argument as invalid.
3142 (gomp_affinity_init_level_1): Likewise.
3143 (gomp_affinity_init_numa_domains): Likewise.
3144 * config/rtems/proc.c (parse_thread_pools): Likewise.
3146 2021-10-15 Jakub Jelinek <jakub@redhat.com>
3148 * config/linux/affinity.c (gomp_affinity_init_level_1): For level 1
3149 after creating count places clean up and return immediately.
3150 * testsuite/libgomp.c/places-6.c: New test.
3151 * testsuite/libgomp.c/places-7.c: New test.
3152 * testsuite/libgomp.c/places-8.c: New test.
3153 * testsuite/libgomp.c/places-9.c: New test.
3154 * testsuite/libgomp.c/places-10.c: New test.
3156 2021-10-15 Jakub Jelinek <jakub@redhat.com>
3158 * env.c (parse_places_var): Handle numa_domains as level 5.
3159 * config/linux/affinity.c (gomp_affinity_init_numa_domains): New
3161 (gomp_affinity_init_level): Use it instead of
3162 gomp_affinity_init_level_1 for level == 5.
3163 * testsuite/libgomp.c/places-5.c: New test.
3165 2021-10-15 Jakub Jelinek <jakub@redhat.com>
3167 * env.c (parse_places_var): Handle ll_caches as level 4.
3168 * config/linux/affinity.c (gomp_affinity_find_last_cache_level): New
3170 (gomp_affinity_init_level_1): Handle level 4 as logical cpus sharing
3172 (gomp_affinity_init_level): Likewise.
3173 * testsuite/libgomp.c/places-1.c: New test.
3174 * testsuite/libgomp.c/places-2.c: New test.
3175 * testsuite/libgomp.c/places-3.c: New test.
3176 * testsuite/libgomp.c/places-4.c: New test.
3178 2021-10-14 Kwok Cheung Yeung <kcy@codesourcery.com>
3180 * libgomp.texi (OpenMP 5.0): Update entry for declare variant
3183 2021-10-14 Kwok Cheung Yeung <kcy@codesourcery.com>
3185 * testsuite/libgomp.fortran/declare-variant-1.f90: New test.
3187 2021-10-12 Julian Brown <julian@codesourcery.com>
3189 * target.c (gomp_copy_host2dev): Release device lock on cbuf
3192 2021-10-12 Tobias Burnus <tobias@codesourcery.com>
3194 * testsuite/libgomp.fortran/icv-3.f90: New.
3195 * testsuite/libgomp.fortran/icv-4.f90: New.
3197 2021-10-12 Jakub Jelinek <jakub@redhat.com>
3199 * libgomp.texi (omp_get_max_teams, omp_get_teams_thread_limit,
3200 omp_set_num_teams, omp_set_teams_thread_limit, OMP_NUM_TEAMS,
3201 OMP_TEAMS_THREAD_LIMIT): Document.
3203 2021-10-12 Jakub Jelinek <jakub@redhat.com>
3205 * libgomp.texi (omp_get_device_num): Move @node before omp_get_dynamic
3206 to avoid makeinfo warnings.
3208 2021-10-12 Jakub Jelinek <jakub@redhat.com>
3210 * testsuite/libgomp.c-c++-common/icv-3.c: New test.
3211 * testsuite/libgomp.c-c++-common/icv-4.c: New test.
3213 2021-10-12 Jakub Jelinek <jakub@redhat.com>
3217 * testsuite/libgomp.c-c++-common/alloc-9.c (main): Decrease
3218 allocation sizes from 420 to 320 and from 768 to 568.
3219 * testsuite/libgomp.fortran/alloc-11.f90: Likewise.
3220 * testsuite/libgomp.fortran/alloc-1.F90: Change expected alignment
3221 for cr from 16 to 4.
3223 2021-10-12 Jakub Jelinek <jakub@redhat.com>
3225 * testsuite/libgomp.c/scan-11.c: Remove option -fvect-cost-model=cheap.
3226 * testsuite/libgomp.c/scan-12.c: Likewise.
3227 * testsuite/libgomp.c/scan-13.c: Likewise.
3228 * testsuite/libgomp.c/scan-14.c: Likewise.
3229 * testsuite/libgomp.c/scan-15.c: Likewise.
3230 * testsuite/libgomp.c/scan-16.c: Likewise.
3231 * testsuite/libgomp.c/scan-17.c: Likewise.
3232 * testsuite/libgomp.c/scan-18.c: Likewise.
3233 * testsuite/libgomp.c/scan-19.c: Likewise.
3234 * testsuite/libgomp.c/scan-20.c: Likewise.
3235 * testsuite/libgomp.c/scan-21.c: Likewise.
3236 * testsuite/libgomp.c/scan-22.c: Likewise.
3237 * testsuite/libgomp.c++/scan-9.C: Likewise.
3238 * testsuite/libgomp.c++/scan-10.C: Likewise.
3239 * testsuite/libgomp.c++/scan-11.C: Likewise.
3240 * testsuite/libgomp.c++/scan-12.C: Likewise.
3241 * testsuite/libgomp.c++/scan-13.C: Likewise.
3242 * testsuite/libgomp.c++/scan-14.C: Likewise.
3243 * testsuite/libgomp.c++/scan-15.C: Likewise.
3244 * testsuite/libgomp.c++/scan-16.C: Likewise.
3246 2021-10-12 Kewen Lin <linkw@linux.ibm.com>
3248 * testsuite/libgomp.graphite/force-parallel-8.c: Add --param max-stores-to-sink=0.
3250 2021-10-11 Marcel Vollweiler <marcel@codesourcery.com>
3252 * allocator.c (omp_init_allocator): Replace omp_atv_sequential with
3254 * omp.h.in: Add deprecated flag for omp_atv_sequential.
3255 * omp_lib.f90.in: Add deprecated flag for omp_atv_sequential.
3256 * testsuite/libgomp.c-c++-common/alloc-10.c: New test.
3257 * testsuite/libgomp.fortran/alloc-12.f90: New test.
3259 2021-10-11 Jakub Jelinek <jakub@redhat.com>
3261 * omp.h.in (omp_set_num_teams, omp_get_max_teams,
3262 omp_set_teams_thread_limit, omp_get_teams_thread_limit): Declare.
3263 * omp_lib.f90.in (omp_set_num_teams, omp_get_max_teams,
3264 omp_set_teams_thread_limit, omp_get_teams_thread_limit): Declare.
3265 * omp_lib.h.in (omp_set_num_teams, omp_get_max_teams,
3266 omp_set_teams_thread_limit, omp_get_teams_thread_limit): Declare.
3267 * libgomp.h (gomp_nteams_var, gomp_teams_thread_limit_var): Declare.
3268 * libgomp.map (OMP_5.1): Export omp_get_max_teams{,_},
3269 omp_get_teams_thread_limit{,_}, omp_set_num_teams{,_,_8_} and
3270 omp_set_teams_thread_limit{,_,_8_}.
3271 * icv.c (omp_set_num_teams, omp_get_max_teams,
3272 omp_set_teams_thread_limit, omp_get_teams_thread_limit): New
3274 * env.c (gomp_nteams_var, gomp_teams_thread_limit_var): Define.
3275 (omp_display_env): Print OMP_NUM_TEAMS and OMP_TEAMS_THREAD_LIMIT.
3276 (initialize_env): Handle OMP_NUM_TEAMS and OMP_TEAMS_THREAD_LIMIT env
3278 * teams.c (GOMP_teams_reg): If thread_limit is not specified, use
3279 gomp_teams_thread_limit_var as fallback if not zero. If num_teams
3280 is not specified, use gomp_nteams_var.
3281 * fortran.c (omp_set_num_teams, omp_get_max_teams,
3282 omp_set_teams_thread_limit, omp_get_teams_thread_limit): Add
3284 (omp_set_num_teams_, omp_set_num_teams_8_, omp_get_max_teams_,
3285 omp_set_teams_thread_limit_, omp_set_teams_thread_limit_8_,
3286 omp_get_teams_thread_limit_): New functions.
3288 2021-10-09 liuhongt <hongtao.liu@intel.com>
3290 * testsuite/libgomp.c++/scan-10.C: Add option -fvect-cost-model=cheap.
3291 * testsuite/libgomp.c++/scan-11.C: Ditto.
3292 * testsuite/libgomp.c++/scan-12.C: Ditto.
3293 * testsuite/libgomp.c++/scan-13.C: Ditto.
3294 * testsuite/libgomp.c++/scan-14.C: Ditto.
3295 * testsuite/libgomp.c++/scan-15.C: Ditto.
3296 * testsuite/libgomp.c++/scan-16.C: Ditto.
3297 * testsuite/libgomp.c++/scan-9.C: Ditto.
3298 * testsuite/libgomp.c-c++-common/lastprivate-conditional-7.c: Ditto.
3299 * testsuite/libgomp.c-c++-common/lastprivate-conditional-8.c: Ditto.
3300 * testsuite/libgomp.c/scan-11.c: Ditto.
3301 * testsuite/libgomp.c/scan-12.c: Ditto.
3302 * testsuite/libgomp.c/scan-13.c: Ditto.
3303 * testsuite/libgomp.c/scan-14.c: Ditto.
3304 * testsuite/libgomp.c/scan-15.c: Ditto.
3305 * testsuite/libgomp.c/scan-16.c: Ditto.
3306 * testsuite/libgomp.c/scan-17.c: Ditto.
3307 * testsuite/libgomp.c/scan-18.c: Ditto.
3308 * testsuite/libgomp.c/scan-19.c: Ditto.
3309 * testsuite/libgomp.c/scan-20.c: Ditto.
3310 * testsuite/libgomp.c/scan-21.c: Ditto.
3311 * testsuite/libgomp.c/scan-22.c: Ditto.
3313 2021-10-09 Jakub Jelinek <jakub@redhat.com>
3315 * libgomp.texi (OpenMP 5.1): Mention implemented support for
3316 structured block sequences in C/C++. Mention support for
3317 unconstrained/reproducible modifiers on order clause.
3318 Mention partial (C/C++ only) support of extentensions to atomics
3319 construct. Mention partial (C/C++ on clause only) support of
3320 align/allocator modifiers on allocate clause.
3322 2021-10-02 Tobias Burnus <tobias@codesourcery.com>
3324 * testsuite/libgomp.fortran/order-reproducible-1.f90: New test
3325 based on libgomp.c-c++-common/order-reproducible-1.c.
3326 * testsuite/libgomp.fortran/order-reproducible-2.f90: Likewise.
3327 * testsuite/libgomp.fortran/my-usleep.c: New test.
3329 2021-10-01 Tobias Burnus <tobias@codesourcery.com>
3331 * testsuite/libgomp.fortran/alloc-10.f90: Fix alignment check.
3332 * testsuite/libgomp.fortran/alloc-7.f90: Fix array access.
3333 * testsuite/libgomp.fortran/alloc-8.f90: Likewise.
3334 * testsuite/libgomp.fortran/alloc-11.f90: New test for omp_realloc,
3335 based on libgomp.c-c++-common/alloc-9.c.
3337 2021-10-01 Jakub Jelinek <jakub@redhat.com>
3339 * testsuite/libgomp.c-c++-common/order-reproducible-1.c: New test.
3340 * testsuite/libgomp.c-c++-common/order-reproducible-2.c: New test.
3342 2021-10-01 Jakub Jelinek <jakub@redhat.com>
3344 * affinity-fmt.c (omp_get_team_num, omp_get_num_teams): Add
3346 * env.c (handle_omp_display_env): Use ialias_call.
3347 * icv-device.c: Move ialias right below each function.
3348 (omp_get_device_num): Use ialias_call.
3349 * fortran.c (omp_fulfill_event): Add ialias_redirect.
3350 * icv.c (omp_get_active_level): Add ialias_redirect.
3352 2021-10-01 Jakub Jelinek <jakub@redhat.com>
3354 * omp.h.in (omp_aligned_alloc, omp_aligned_calloc): Add
3355 __alloc_align__ (1) attribute.
3356 * testsuite/libgomp.c-c++-common/alloc-9.c: New test.
3358 2021-09-30 Tobias Burnus <tobias@codesourcery.com>
3360 * testsuite/libgomp.fortran/alloc-7.f90: Add dg-prune-output
3361 for -fintrinsic-modules-path= warning of the C compiler.
3362 * testsuite/libgomp.fortran/alloc-9.f90: Likewise.
3363 * testsuite/libgomp.fortran/alloc-10.f90: Likewise.
3365 2021-09-30 Tobias Burnus <tobias@codesourcery.com>
3367 * libgomp.texi (OpenMP 5.1): Set implementation status to Y for
3368 omp_aligned_{,c}alloc and omp_{c,re}alloc routines.
3369 * omp_lib.f90.in (omp_aligned_alloc, omp_aligned_calloc, omp_calloc,
3371 * omp_lib.h.in (omp_aligned_alloc, omp_aligned_calloc, omp_calloc,
3373 * testsuite/libgomp.fortran/alloc-10.f90: New test.
3374 * testsuite/libgomp.fortran/alloc-6.f90: New test.
3375 * testsuite/libgomp.fortran/alloc-7.c: New test.
3376 * testsuite/libgomp.fortran/alloc-7.f90: New test.
3377 * testsuite/libgomp.fortran/alloc-8.f90: New test.
3378 * testsuite/libgomp.fortran/alloc-9.f90: New test.
3380 2021-09-30 Jakub Jelinek <jakub@redhat.com>
3382 * omp.h.in (omp_aligned_alloc, omp_calloc, omp_aligned_calloc,
3383 omp_realloc): New prototypes.
3384 (omp_alloc): Move after omp_free prototype, add __malloc__ (omp_free)
3386 * allocator.c: Include string.h.
3387 (omp_aligned_alloc): No longer static, add ialias. Add new_alignment
3388 variable and use it instead of alignment so that when retrying the old
3389 alignment is used again. Don't retry if new alignment is the same
3390 as old alignment, unless allocator had pool size.
3391 (omp_alloc, GOMP_alloc, GOMP_free): Use ialias_call.
3392 (omp_aligned_calloc, omp_calloc, omp_realloc): New functions.
3393 * libgomp.map (OMP_5.0.2): Export omp_aligned_alloc, omp_calloc,
3394 omp_aligned_calloc and omp_realloc.
3395 * testsuite/libgomp.c-c++-common/alloc-4.c (main): Add
3396 omp_aligned_alloc, omp_calloc and omp_aligned_calloc tests.
3397 * testsuite/libgomp.c-c++-common/alloc-5.c: New test.
3398 * testsuite/libgomp.c-c++-common/alloc-6.c: New test.
3399 * testsuite/libgomp.c-c++-common/alloc-7.c: New test.
3400 * testsuite/libgomp.c-c++-common/alloc-8.c: New test.
3402 2021-09-28 Tobias Burnus <tobias@codesourcery.com>
3405 * configure.ac: Only check for int-type = 2*size_t support when
3406 building with Fortran support.
3407 * configure: Regenerate.
3409 2021-09-28 Thomas Schwinge <thomas@codesourcery.com>
3411 * testsuite/libgomp.oacc-fortran/if-1.f90: Adjust.
3412 * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Likewise.
3414 2021-09-27 Aldy Hernandez <aldyh@redhat.com>
3416 * team.c: Initialize start_data.
3417 * testsuite/libgomp.graphite/force-parallel-4.c: Adjust.
3418 * testsuite/libgomp.graphite/force-parallel-8.c: Adjust.
3420 2021-09-27 Tobias Burnus <tobias@codesourcery.com>
3422 * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Change
3423 dg-message back to dg-note.
3425 2021-09-27 Tobias Burnus <tobias@codesourcery.com>
3428 * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Update
3429 expected dg-note output.
3431 2021-09-22 Tobias Burnus <tobias@codesourcery.com>
3434 * testsuite/libgomp.fortran/fortran.exp (ALWAYS_CFLAGS): Revert
3435 r12-3722 by removing -Wno-missing-include-dirs.
3436 * testsuite/libgomp.oacc-fortran/fortran.exp (ALWAYS_CFLAGS): Likewise.
3438 2021-09-22 Jakub Jelinek <jakub@redhat.com>
3440 * testsuite/libgomp.c-c++-common/allocate-2.c: New test.
3441 * testsuite/libgomp.c-c++-common/allocate-3.c: New test.
3443 2021-09-21 Tobias Burnus <tobias@codesourcery.com>
3446 * testsuite/libgomp.fortran/fortran.exp: Add -Wno-missing-include-dirs
3448 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
3450 2021-09-18 Jakub Jelinek <jakub@redhat.com>
3452 * testsuite/libgomp.c++/default-1.C: New test.
3453 * testsuite/libgomp.c-c++-common/default-1.c: New test.
3454 * libgomp.texi (OpenMP 5.1): Mark "private and firstprivate argument
3455 to default clause in C and C++" as implemented.
3457 2021-09-17 Julian Brown <julian@codesourcery.com>
3459 * testsuite/libgomp.oacc-c-c++-common/broadcast-many.c: Update.
3461 2021-09-17 Julian Brown <julian@codesourcery.com>
3463 * testsuite/libgomp.oacc-c-c++-common/broadcast-many.c: New test.
3465 2021-09-17 Jakub Jelinek <jakub@redhat.com>
3467 * libgomp.texi (OpenMP 5.1): Spelling fix,
3468 declare variante -> declare variant.
3470 2021-09-17 Jakub Jelinek <jakub@redhat.com>
3472 * testsuite/libgomp.c-c++-common/atomic-19.c: Drop c effective target.
3473 Use /* */ comments instead of //.
3474 * testsuite/libgomp.c-c++-common/atomic-20.c: Likewise.
3475 * testsuite/libgomp.c-c++-common/atomic-21.c: Likewise.
3476 * testsuite/libgomp.c++/atomic-16.C: New test.
3477 * testsuite/libgomp.c++/atomic-17.C: New test.
3479 2021-09-10 Jakub Jelinek <jakub@redhat.com>
3481 * testsuite/libgomp.c-c++-common/atomic-19.c: New test.
3482 * testsuite/libgomp.c-c++-common/atomic-20.c: New test.
3483 * testsuite/libgomp.c-c++-common/atomic-21.c: New test.
3485 2021-09-07 Tobias Burnus <tobias@codesourcery.com>
3487 * libgomp.texi (OpenMP Implementation Status): Extend
3489 (OpenACC Profiling Interface): Fix typo.
3491 2021-09-07 Tobias Burnus <tobias@codesourcery.com>
3493 * libgomp.texi (Enabling OpenMP): Refer to OMP spec in general
3494 not to 4.5; link to new section.
3495 (OpenMP Implementation Status): New.
3497 2021-09-06 Thomas Schwinge <thomas@codesourcery.com>
3499 * testsuite/libgomp.c/target-43.c: '-latomic' for nvptx offloading.
3501 2021-09-03 Tobias Burnus <tobias@codesourcery.com>
3503 * testsuite/libgomp.c-c++-common/error-1.c: Use \r\n not \n\r in
3505 * testsuite/libgomp.fortran/error-1.f90: Likewise.
3507 2021-08-23 Thomas Schwinge <thomas@codesourcery.com>
3508 Jakub Jelinek <jakub@redhat.com>
3510 * testsuite/libgomp.c/address-space-1.c: New file.
3512 2021-08-23 Thomas Schwinge <thomas@codesourcery.com>
3514 * testsuite/lib/libgomp.exp
3515 (check_effective_target_offload_target_intelmic): Remove 'proc'.
3516 (check_effective_target_offload_device_intel_mic): New 'proc'.
3517 * testsuite/libgomp.c-c++-common/on_device_arch.h
3518 (device_arch_intel_mic, on_device_arch_intel_mic): New.
3519 * testsuite/libgomp.c-c++-common/target-45.c: Use that for
3521 * testsuite/libgomp.fortran/target10.f90: Likewise.
3523 2021-08-23 Tobias Burnus <tobias@codesourcery.com>
3525 * testsuite/libgomp.fortran/taskloop-4-a.f90: New test.
3526 * testsuite/libgomp.fortran/taskloop-4.f90: New test.
3527 * testsuite/libgomp.fortran/taskloop-5-a.f90: New test.
3528 * testsuite/libgomp.fortran/taskloop-5.f90: New test.
3530 2021-08-23 Jakub Jelinek <jakub@redhat.com>
3532 * taskloop.c (GOMP_taskloop): Handle GOMP_TASK_FLAG_STRICT.
3533 * testsuite/libgomp.c-c++-common/taskloop-4.c (main): Fix up comment.
3534 * testsuite/libgomp.c-c++-common/taskloop-5.c: New test.
3536 2021-08-22 Thomas Schwinge <thomas@codesourcery.com>
3538 * config/nvptx/error.c (fwrite, exit): Override, too.
3539 * testsuite/libgomp.c-c++-common/error-1.c: Add a minimum amount
3540 of offloading testing.
3541 * testsuite/libgomp.fortran/error-1.f90: Likewise.
3543 2021-08-20 Tobias Burnus <tobias@codesourcery.com>
3545 * testsuite/libgomp.fortran/error-1.f90: New test.
3547 2021-08-20 Jakub Jelinek <jakub@redhat.com>
3549 * libgomp.map (GOMP_5.1): Add GOMP_error and GOMP_warning.
3550 * libgomp_g.h (GOMP_warning, GOMP_error): Declare.
3551 * error.c (GOMP_warning, GOMP_error): New functions.
3552 * testsuite/libgomp.c-c++-common/error-1.c: New test.
3554 2021-08-18 Tobias Burnus <tobias@codesourcery.com>
3556 * omp_lib.f90.in (omp_alloc, omp_free, omp_target_alloc,
3557 omp_target_free. omp_target_is_present, omp_target_memcpy,
3558 omp_target_memcpy_rect, omp_target_associate_ptr,
3559 omp_target_disassociate_ptr): Add interface.
3560 * omp_lib.h.in (omp_alloc, omp_free, omp_target_alloc,
3561 omp_target_free. omp_target_is_present, omp_target_memcpy,
3562 omp_target_memcpy_rect, omp_target_associate_ptr,
3563 omp_target_disassociate_ptr): Add interface.
3564 * testsuite/libgomp.fortran/alloc-1.F90: Remove local
3565 interface block for omp_alloc + omp_free.
3566 * testsuite/libgomp.fortran/alloc-4.f90: Likewise.
3567 * testsuite/libgomp.fortran/refcount-1.f90: New test.
3568 * testsuite/libgomp.fortran/target-12.f90: New test.
3570 2021-08-18 Jakub Jelinek <jakub@redhat.com>
3572 * testsuite/libgomp.c-c++-common/nothing-1.c: New test.
3574 2021-08-17 Tobias Burnus <tobias@codesourcery.com>
3576 * testsuite/libgomp.fortran/scope-1.f90: New test.
3577 * testsuite/libgomp.fortran/task-reduction-16.f90: New test.
3579 2021-08-17 Jakub Jelinek <jakub@redhat.com>
3581 * Makefile.am (libgomp_la_SOURCES): Add scope.c
3582 * Makefile.in: Regenerated.
3583 * libgomp_g.h (GOMP_scope_start): Declare.
3584 * libgomp.map: Add GOMP_scope_start@@GOMP_5.1.
3585 * scope.c: New file.
3586 * testsuite/libgomp.c-c++-common/scope-1.c: New test.
3587 * testsuite/libgomp.c-c++-common/task-reduction-16.c: New test.
3589 2021-08-16 Thomas Schwinge <thomas@codesourcery.com>
3591 * testsuite/libgomp.oacc-c-c++-common/mode-transitions.c: Address
3594 2021-08-16 Tobias Burnus <tobias@codesourcery.com>
3596 * testsuite/libgomp.fortran/masked-1.f90: New test.
3598 2021-08-13 Thomas Schwinge <thomas@codesourcery.com>
3600 * testsuite/libgomp.oacc-c-c++-common/static-variable-1.c: Adjust.
3602 2021-08-12 Jakub Jelinek <jakub@redhat.com>
3604 * testsuite/libgomp.c-c++-common/masked-1.c: New test.
3606 2021-08-12 Tobias Burnus <tobias@codesourcery.com>
3608 * env.c (parse_bind_var): Accept 'primary' as alias for
3610 (omp_display_env): Add TODO comment to
3611 change 'master' to 'primary' in proc_bind for OpenMP 5.1.
3612 * libgomp.texi: Change 'master thread' to 'primary thread'
3613 in line with OpenMP 5.1.
3614 (omp_get_proc_bind): Add omp_proc_bind_primary and note that
3615 omp_proc_bind_master is an alias of it.
3616 (OMP_PROC_BIND): Mention 'PRIMARY'.
3617 * omp.h.in (__GOMP_DEPRECATED_5_1): Define.
3618 (omp_proc_bind_primary): Add.
3619 (omp_proc_bind_master): Deprecate for OpenMP 5.1.
3620 * omp_lib.f90.in (omp_proc_bind_primary): Add.
3621 (omp_proc_bind_master): Deprecate for OpenMP 5.1.
3622 * omp_lib.h.in (omp_proc_bind_primary): Add.
3623 * testsuite/libgomp.c/affinity-1.c: Check that
3624 'primary' works and is identical to 'master'.
3626 2021-08-09 Julian Brown <julian@codesourcery.com>
3627 Kwok Cheung Yeung <kcy@codesourcery.com>
3628 Thomas Schwinge <thomas@codesourcery.com>
3630 * plugin/plugin-gcn.c (gcn_exec): Change default number of workers to
3632 * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c
3633 [acc_device_radeon]: Update.
3634 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c
3635 [ACC_DEVICE_TYPE_radeon]: Likewise.
3636 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c
3637 [acc_device_radeon]: Likewise.
3638 * testsuite/libgomp.oacc-c-c++-common/routine-wv-2.c
3639 [ACC_DEVICE_TYPE_radeon]: Likewise.
3640 * testsuite/libgomp.oacc-fortran/optional-reduction.f90: XFAIL for
3641 'openacc_radeon_accel_selected' and '-O0'.
3642 * testsuite/libgomp.oacc-fortran/reduction-7.f90: Likewise.
3644 2021-08-05 Chung-Lin Tang <cltang@codesourcery.com>
3646 * icv-device.c (omp_get_device_num): New API function, host side.
3647 * fortran.c (omp_get_device_num_): New interface function.
3648 * libgomp-plugin.h (GOMP_DEVICE_NUM_VAR): Define macro symbol.
3649 * libgomp.map (OMP_5.0.2): New version space with omp_get_device_num,
3650 omp_get_device_num_.
3651 * libgomp.texi (omp_get_device_num): Add documentation for new API
3653 * omp.h.in (omp_get_device_num): Add declaration.
3654 * omp_lib.f90.in (omp_get_device_num): Likewise.
3655 * omp_lib.h.in (omp_get_device_num): Likewise.
3656 * target.c (gomp_load_image_to_device): If additional entry for device
3657 number exists at end of returned entries from 'load_image_func' hook,
3658 copy the assigned device number over to the device variable.
3659 * config/gcn/icv-device.c (GOMP_DEVICE_NUM_VAR): Define static global.
3660 (omp_get_device_num): New API function, device side.
3661 * plugin/plugin-gcn.c ("symcat.h"): Add include.
3662 (GOMP_OFFLOAD_load_image): Add addresses of device GOMP_DEVICE_NUM_VAR
3663 at end of returned 'target_table' entries.
3664 * config/nvptx/icv-device.c (GOMP_DEVICE_NUM_VAR): Define static global.
3665 (omp_get_device_num): New API function, device side.
3666 * plugin/plugin-nvptx.c ("symcat.h"): Add include.
3667 (GOMP_OFFLOAD_load_image): Add addresses of device GOMP_DEVICE_NUM_VAR
3668 at end of returned 'target_table' entries.
3669 * testsuite/lib/libgomp.exp
3670 (check_effective_target_offload_target_intelmic): New function for
3671 testing for intelmic offloading.
3672 * testsuite/libgomp.c-c++-common/target-45.c: New test.
3673 * testsuite/libgomp.fortran/target10.f90: New test.
3675 2021-07-30 Thomas Schwinge <thomas@codesourcery.com>
3676 Ulrich Drepper <drepper@redhat.com>
3678 * fortran.c (omp_display_env_, omp_display_env_8_): Only
3679 '#ifndef LIBGOMP_OFFLOADED_ONLY'.
3681 2021-07-29 Thomas Schwinge <thomas@codesourcery.com>
3682 Julian Brown <julian@codesourcery.com>
3683 Kwok Cheung Yeung <kcy@codesourcery.com>
3685 * testsuite/libgomp.oacc-c-c++-common/pr85486-2.c:
3686 's%oaccdevlow%oaccloops%g'.
3687 * testsuite/libgomp.oacc-c-c++-common/pr85486-3.c: Likewise.
3688 * testsuite/libgomp.oacc-c-c++-common/pr85486.c: Likewise.
3689 * testsuite/libgomp.oacc-c-c++-common/routine-nohost-1.c:
3691 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-1.c:
3693 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-2.c:
3695 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-3.c:
3697 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-4.c:
3699 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-5.c:
3701 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-6.c:
3703 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-7.c:
3705 * testsuite/libgomp.oacc-fortran/routine-nohost-1.f90: Likewise.
3707 2021-07-29 Aldy Hernandez <aldyh@redhat.com>
3709 * testsuite/libgomp.graphite/force-parallel-4.c: Adjust for
3711 * testsuite/libgomp.graphite/force-parallel-8.c: Same.
3713 2021-07-27 Ulrich Drepper <drepper@gmail.com>
3715 * env.c (wait_policy, stacksize): New static variables,
3716 move out of handle_omp_display_env.
3717 (omp_display_env): New function. The meat of the old
3718 handle_omp_display_env function.
3719 (handle_omp_display_env): Change to not take parameters
3720 and instead use the global variables. Only perform
3721 parsing, defer to omp_display_env for the implementation.
3722 (initialize_env): Remove local variables wait_policy and
3723 stacksize. Don't pass parameters to handle_omp_display_env.
3724 * fortran.c: Add ialias_redirect for omp_display_env.
3725 (omp_display_env_, omp_display_env_8_): New functions.
3726 * libgomp.map (OMP_5.1): New version. Add omp_display_env,
3727 omp_display_env_, and omp_display_env_8_.
3728 * omp.h.in: Declare omp_display_env.
3729 * omp_lib.f90.in: Likewise.
3730 * omp_lib.h.in: Likewise.
3732 2021-07-27 Thomas Schwinge <thomas@codesourcery.com>
3733 Julian Brown <julian@codesourcery.com>
3735 * target.c (gomp_coalesce_buf_add): Update comment.
3736 (gomp_copy_host2dev, gomp_map_vars_internal): Don't expect to see
3738 (gomp_map_vars_internal): Only 'if (!aq)', do
3739 'gomp_coalesce_buf_add'.
3740 * testsuite/libgomp.oacc-c-c++-common/async-data-1-2.c: Remove
3743 2021-07-27 Julian Brown <julian@codesourcery.com>
3744 Thomas Schwinge <thomas@codesourcery.com>
3746 * libgomp.h (gomp_copy_host2dev): Update prototype.
3747 * oacc-mem.c (memcpy_tofrom_device, update_dev_host): Add new
3748 argument to gomp_copy_host2dev (false).
3749 * plugin/plugin-gcn.c (struct copy_data): Remove free_src field.
3750 (copy_data): Don't free src.
3751 (queue_push_copy): Remove free_src handling.
3752 (GOMP_OFFLOAD_dev2dev): Update call to queue_push_copy.
3753 (GOMP_OFFLOAD_openacc_async_host2dev): Remove source-data
3755 (GOMP_OFFLOAD_openacc_async_dev2host): Update call to
3757 * target.c (goacc_device_copy_async): Add SRCADDR_ORIG parameter.
3758 (gomp_copy_host2dev): Add EPHEMERAL parameter. Snapshot source
3759 data when true, and set up deferred freeing of temporary buffer.
3760 (gomp_copy_dev2host): Update call to goacc_device_copy_async.
3761 (gomp_map_vars_existing, gomp_map_pointer, gomp_attach_pointer)
3762 (gomp_detach_pointer, gomp_map_vars_internal, gomp_update): Update
3763 calls to gomp_copy_host2dev with appropriate ephemeral argument.
3764 * testsuite/libgomp.oacc-c-c++-common/async-data-1-1.c: Remove
3767 2021-07-27 Thomas Schwinge <thomas@codesourcery.com>
3768 Tom de Vries <tom@codesourcery.com>
3770 * testsuite/libgomp.oacc-c-c++-common/async-data-1-1.c: New file.
3771 * testsuite/libgomp.oacc-c-c++-common/async-data-1-2.c: Likewise.
3773 2021-07-27 Thomas Schwinge <thomas@codesourcery.com>
3775 * testsuite/libgomp.oacc-c-c++-common/acc_prof-init-1.c: Clarify
3776 sequencing of 'async' data copying vs. profiling events.
3777 * testsuite/libgomp.oacc-c-c++-common/acc_prof-parallel-1.c:
3780 2021-07-27 Thomas Schwinge <thomas@codesourcery.com>
3781 Julian Brown <julian@codesourcery.com>
3783 * testsuite/libgomp.oacc-c-c++-common/lib-94.c: Fix OpenACC
3784 'async'/'wait' issue.
3785 * testsuite/libgomp.oacc-c-c++-common/lib-95.c: Likewise.
3786 * testsuite/libgomp.oacc-fortran/lib-16-2.f90: Likewise.
3787 * testsuite/libgomp.oacc-fortran/lib-16.f90: Likewise.
3789 2021-07-21 Thomas Schwinge <thomas@codesourcery.com>
3790 Joseph Myers <joseph@codesourcery.com>
3791 Cesar Philippidis <cesar@codesourcery.com>
3793 * testsuite/libgomp.oacc-c-c++-common/routine-nohost-1.c: New
3795 * testsuite/libgomp.oacc-c-c++-common/routine-nohost-2.c:
3797 * testsuite/libgomp.oacc-c-c++-common/routine-nohost-2_2.c:
3799 * testsuite/libgomp.oacc-fortran/routine-nohost-1.f90: Likewise.
3801 2021-07-20 Thomas Schwinge <thomas@codesourcery.com>
3804 * configure.tgt [amdgcn*-*-*] (XCFLAGS): Add
3805 '-Wno-error=array-bounds'.
3806 * config/gcn/team.c: Remove '-Werror=array-bounds' work-around.
3807 * libgomp.h [__AMDGCN__]: Likewise.
3809 2021-07-19 Thomas Schwinge <thomas@codesourcery.com>
3812 * config/gcn/team.c: Apply '-Werror=array-bounds' work-around.
3813 * libgomp.h [__AMDGCN__]: Likewise.
3815 2021-07-13 Jakub Jelinek <jakub@redhat.com>
3816 Florian Weimer <fweimer@redhat.com>
3818 * config/linux/sem.h: Don't include limits.h.
3819 (SEM_WAIT): Define to -__INT_MAX__ - 1 instead of INT_MIN.
3820 * config/linux/affinity.c: Include limits.h.
3822 2021-07-01 Jakub Jelinek <jakub@redhat.com>
3825 * testsuite/libgomp.c-c++-common/pr94366.c: New test.
3827 2021-06-29 Tobias Burnus <tobias@codesourcery.com>
3830 * testsuite/libgomp.c-c++-common/reduction-16.c: Replace
3831 -foffload=nvptx-none= by -foffload-options=nvptx-none= to
3832 avoid disabling other offload targets.
3833 * testsuite/libgomp.c-c++-common/reduction-5.c: Likewise.
3834 * testsuite/libgomp.c-c++-common/reduction-6.c: Likewise.
3835 * testsuite/libgomp.c/target-44.c: Likewise.
3837 2021-06-29 Tobias Burnus <tobias@codesourcery.com>
3839 * testsuite/libgomp.fortran/defaultmap-8.f90 (bar): Determine whether
3840 target has shared memory and disable some scalar pointer/allocatable
3841 checks if not as firstprivate does not work.
3843 2021-06-25 Chung-Lin Tang <cltang@codesourcery.com>
3846 * testsuite/libgomp.c-c++-common/struct-elem-5.c:
3847 Add "target offload_device_nonshared_as" condition for enabling test.
3849 2021-06-24 Jakub Jelinek <jakub@redhat.com>
3851 * testsuite/libgomp.c-c++-common/target-in-reduction-1.c: New test.
3852 * testsuite/libgomp.c-c++-common/target-in-reduction-2.c: New test.
3853 * testsuite/libgomp.c++/target-in-reduction-1.C: New test.
3854 * testsuite/libgomp.c++/target-in-reduction-2.C: New test.
3856 2021-06-23 Jakub Jelinek <jakub@redhat.com>
3858 PR middle-end/101167
3859 * testsuite/libgomp.c-c++-common/task-reduction-15.c: New test.
3861 2021-06-17 Chung-Lin Tang <cltang@codesourcery.com>
3863 * hashtab.h (htab_clear): New function with initialization code
3864 factored out from...
3865 (htab_create): ...here, adjust to use htab_clear function.
3866 * libgomp.h (REFCOUNT_SPECIAL): New symbol to denote range of
3867 special refcount values, add comments.
3868 (REFCOUNT_INFINITY): Adjust definition to use REFCOUNT_SPECIAL.
3869 (REFCOUNT_LINK): Likewise.
3870 (REFCOUNT_STRUCTELEM): New special refcount range for structure
3872 (REFCOUNT_STRUCTELEM_P): Macro for testing for structure element
3874 (REFCOUNT_STRUCTELEM_FLAG_FIRST): Flag to indicate first sibling.
3875 (REFCOUNT_STRUCTELEM_FLAG_LAST): Flag to indicate last sibling.
3876 (REFCOUNT_STRUCTELEM_FIRST_P): Macro to test _FIRST flag.
3877 (REFCOUNT_STRUCTELEM_LAST_P): Macro to test _LAST flag.
3878 (struct splay_tree_key_s): Add structelem_refcount and
3879 structelem_refcount_ptr fields into a union with dynamic_refcount.
3881 (gomp_map_vars): Delete declaration.
3882 (gomp_map_vars_async): Likewise.
3883 (gomp_unmap_vars): Likewise.
3884 (gomp_unmap_vars_async): Likewise.
3885 (goacc_map_vars): New declaration.
3886 (goacc_unmap_vars): Likewise.
3887 * oacc-mem.c (acc_map_data): Adjust to use goacc_map_vars.
3888 (goacc_enter_datum): Likewise.
3889 (goacc_enter_data_internal): Likewise.
3890 * oacc-parallel.c (GOACC_parallel_keyed): Adjust to use goacc_map_vars
3891 and goacc_unmap_vars.
3892 (GOACC_data_start): Adjust to use goacc_map_vars.
3893 (GOACC_data_end): Adjust to use goacc_unmap_vars.
3894 * target.c (hash_entry_type): New typedef.
3895 (htab_alloc): New function hook for hashtab.h.
3896 (htab_free): Likewise.
3897 (htab_hash): Likewise.
3898 (htab_eq): Likewise.
3899 (hashtab.h): Add file include.
3900 (gomp_increment_refcount): New function.
3901 (gomp_decrement_refcount): Likewise.
3902 (gomp_map_vars_existing): Add refcount_set parameter, adjust to use
3903 gomp_increment_refcount.
3904 (gomp_map_fields_existing): Add refcount_set parameter, adjust calls
3905 to gomp_map_vars_existing.
3906 (gomp_map_vars_internal): Add refcount_set parameter, add local openmp_p
3907 variable to guard OpenMP specific paths, adjust calls to
3908 gomp_map_vars_existing, add structure element sibling splay_tree_key
3909 sequence creation code, adjust Fortran map case to avoid increment
3911 (gomp_map_vars): Adjust to static, add refcount_set parameter, manage
3912 local refcount_set if caller passed in NULL, adjust call to
3913 gomp_map_vars_internal.
3914 (gomp_map_vars_async): Adjust and rename into...
3915 (goacc_map_vars): ...this new function, adjust call to
3916 gomp_map_vars_internal.
3917 (gomp_remove_splay_tree_key): New function with code factored out from
3918 gomp_remove_var_internal.
3919 (gomp_remove_var_internal): Add code to handle removing multiple
3920 splay_tree_key sequence for structure elements, adjust code to use
3921 gomp_remove_splay_tree_key for splay-tree key removal.
3922 (gomp_unmap_vars_internal): Add refcount_set parameter, adjust to use
3923 gomp_decrement_refcount.
3924 (gomp_unmap_vars): Adjust to static, add refcount_set parameter, manage
3925 local refcount_set if caller passed in NULL, adjust call to
3926 gomp_unmap_vars_internal.
3927 (gomp_unmap_vars_async): Adjust and rename into...
3928 (goacc_unmap_vars): ...this new function, adjust call to
3929 gomp_unmap_vars_internal.
3930 (GOMP_target): Manage refcount_set and adjust calls to gomp_map_vars and
3932 (GOMP_target_ext): Likewise.
3933 (gomp_target_data_fallback): Adjust call to gomp_map_vars.
3934 (GOMP_target_data): Likewise.
3935 (GOMP_target_data_ext): Likewise.
3936 (GOMP_target_end_data): Adjust call to gomp_unmap_vars.
3937 (gomp_exit_data): Add refcount_set parameter, adjust to use
3938 gomp_decrement_refcount, adjust to queue splay-tree keys for removal
3940 (GOMP_target_enter_exit_data): Manage refcount_set and adjust calls to
3941 gomp_map_vars and gomp_exit_data.
3942 (gomp_target_task_fn): Likewise.
3943 * testsuite/libgomp.c-c++-common/refcount-1.c: New testcase.
3944 * testsuite/libgomp.c-c++-common/struct-elem-1.c: New testcase.
3945 * testsuite/libgomp.c-c++-common/struct-elem-2.c: New testcase.
3946 * testsuite/libgomp.c-c++-common/struct-elem-3.c: New testcase.
3947 * testsuite/libgomp.c-c++-common/struct-elem-4.c: New testcase.
3948 * testsuite/libgomp.c-c++-common/struct-elem-5.c: New testcase.
3950 2021-06-15 Tobias Burnus <tobias@codesourcery.com>
3953 * testsuite/libgomp.fortran/defaultmap-8.f90: New test.
3955 2021-06-10 Andrew Stubbs <ams@codesourcery.com>
3956 Thomas Schwinge <thomas@codesourcery.com>
3958 * libgomp.map (GOACC_2.0.2): New symbol version.
3959 * libgomp_g.h (GOACC_enter_data, GOACC_exit_data) New prototypes.
3960 * oacc-mem.c (GOACC_enter_data, GOACC_exit_data) New functions.
3962 2021-06-10 Thomas Schwinge <thomas@codesourcery.com>
3963 Andrew Stubbs <ams@codesourcery.com>
3965 * oacc-mem.c (goacc_enter_exit_data_internal): New function,
3967 (GOACC_enter_exit_data): ... here.
3968 (GOACC_declare): Use it.
3970 2021-06-10 Thomas Schwinge <thomas@codesourcery.com>
3972 * oacc-parallel.c (GOACC_declare): Move...
3973 * oacc-mem.c: ... here.
3974 * libgomp_g.h: Adjust.
3976 2021-06-10 Andrew Stubbs <ams@codesourcery.com>
3977 Thomas Schwinge <thomas@codesourcery.com>
3979 * oacc-parallel.c (GOACC_declare): Clean up 'GOMP_MAP_POINTER'
3982 2021-06-10 Jakub Jelinek <jakub@redhat.com>
3984 PR tree-optimization/100981
3985 * testsuite/libgomp.fortran/pr100981-2.f90 (cdcdot): Initialize
3986 dsdotr and dsdoti to 0.
3988 2021-06-09 H.J. Lu <hjl.tools@gmail.com>
3990 * testsuite/lib/libgomp.exp (libgomp_init): Don't add -march=i486
3991 if atomic compare-and-swap is supported on 'int'.
3993 2021-06-09 Richard Biener <rguenther@suse.de>
3995 PR tree-optimization/100981
3996 * testsuite/libgomp.fortran/pr100981-2.f90: New testcase.
3998 2021-06-08 Thomas Schwinge <thomas@codesourcery.com>
4000 * plugin/plugin-gcn.c (gcn_exec): Force 'num_workers (1)'
4002 * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c:
4004 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Likewise.
4005 * testsuite/libgomp.oacc-c-c++-common/routine-wv-2.c: Likewise.
4007 2021-06-08 Thomas Schwinge <thomas@codesourcery.com>
4009 * testsuite/libgomp.oacc-c-c++-common/lib-11.c: Enable for all but
4010 '-DACC_MEM_SHARED=0'.
4011 * testsuite/libgomp.oacc-c-c++-common/lib-13.c: Likewise.
4012 * testsuite/libgomp.oacc-c-c++-common/lib-14.c: Likewise.
4013 * testsuite/libgomp.oacc-c-c++-common/lib-15.c: Likewise.
4014 * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
4015 * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
4016 * testsuite/libgomp.oacc-c-c++-common/lib-24.c: Likewise.
4017 * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
4018 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
4019 * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
4020 * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
4021 * testsuite/libgomp.oacc-c-c++-common/lib-88.c: Likewise.
4022 * testsuite/libgomp.oacc-c-c++-common/lib-89.c: Likewise.
4023 * testsuite/libgomp.oacc-c-c++-common/lib-92.c: Likewise.
4024 * testsuite/libgomp.oacc-fortran/lib-14.f90: Likewise.
4025 * testsuite/libgomp.oacc-c-c++-common/lib-5.c: Add
4026 'acc_device_radeon' testing.
4027 * testsuite/libgomp.oacc-c-c++-common/lib-6.c: Likewise.
4028 * testsuite/libgomp.oacc-fortran/lib-5.f90: Likewise.
4029 * testsuite/libgomp.oacc-fortran/lib-7.f90: Likewise.
4030 * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Enable for all.
4031 * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
4032 * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
4033 * testsuite/libgomp.oacc-c-c++-common/lib-86.c: Likewise.
4034 * testsuite/libgomp.oacc-c-c++-common/lib-87.c: Likewise.
4035 * testsuite/libgomp.oacc-fortran/lib-10.f90: Likewise.
4036 * testsuite/libgomp.oacc-fortran/lib-8.f90: Likewise.
4037 * testsuite/libgomp.oacc-c-c++-common/lib-57.c: Improve checking
4038 for non-'openacc_nvidia_accel_selected'.
4039 * testsuite/libgomp.oacc-c-c++-common/lib-58.c: Likewise.
4040 * testsuite/libgomp.oacc-c-c++-common/lib-62.c: Clarify that "Not
4041 all implement this checking".
4042 * testsuite/libgomp.oacc-c-c++-common/lib-63.c: Likewise.
4043 * testsuite/libgomp.oacc-c-c++-common/lib-64.c: Likewise.
4044 * testsuite/libgomp.oacc-c-c++-common/lib-65.c: Likewise.
4045 * testsuite/libgomp.oacc-c-c++-common/lib-67.c: Likewise.
4046 * testsuite/libgomp.oacc-c-c++-common/lib-68.c: Likewise.
4048 2021-06-08 Thomas Schwinge <thomas@codesourcery.com>
4050 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Simplify.
4051 * testsuite/libgomp.oacc-fortran/parallel-dims-aux.c: Update.
4053 2021-06-08 Thomas Schwinge <thomas@codesourcery.com>
4055 * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c: Fix
4056 for 'acc_device_radeon'.
4058 2021-06-08 Thomas Schwinge <thomas@codesourcery.com>
4060 * testsuite/libgomp.oacc-c-c++-common/firstprivate-1.c: Enhance
4061 for non-'acc_device_nvidia'.
4063 2021-06-08 Thomas Schwinge <thomas@codesourcery.com>
4065 * testsuite/libgomp.oacc-c-c++-common/acc_on_device-1.c: Add
4066 'acc_device_radeon' testing.
4067 * testsuite/libgomp.oacc-fortran/acc_on_device-1-1.f90: Likewise.
4068 * testsuite/libgomp.oacc-fortran/acc_on_device-1-2.f: Likewise.
4069 * testsuite/libgomp.oacc-fortran/acc_on_device-1-3.f: Likewise.
4071 2021-06-08 Thomas Schwinge <thomas@codesourcery.com>
4073 * testsuite/libgomp.oacc-c-c++-common/async_queue-1.c: Don't
4074 require 'openacc_nvidia_accel_selected'. Fix up for
4075 'ACC_DEVICE_TYPE_radeon'.
4077 2021-06-08 Thomas Schwinge <thomas@codesourcery.com>
4079 * testsuite/libgomp.oacc-c++/declare-1.C: Don't require
4080 'openacc_nvidia_accel_selected'.
4081 * testsuite/libgomp.oacc-c-c++-common/declare-3.c: Likewise.
4083 2021-06-08 Thomas Schwinge <thomas@codesourcery.com>
4085 * testsuite/lib/libgomp.exp
4086 (check_effective_target_openacc_radeon_accel_selected):
4089 2021-06-08 Thomas Schwinge <thomas@codesourcery.com>
4091 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Revert
4094 2021-06-08 Thomas Schwinge <thomas@codesourcery.com>
4096 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c
4097 <acc_device_nvidia>: Update comment.
4099 2021-05-28 Tobias Burnus <tobias@codesourcery.com>
4101 * testsuite/libgomp.fortran/depend-iterator-2.f90: New test.
4103 2021-05-27 Jakub Jelinek <jakub@redhat.com>
4105 * testsuite/lib/libgomp.exp (check_effective_target_openacc_cuda,
4106 check_effective_target_openacc_cublas,
4107 check_effective_target_openacc_cudart): New.
4108 * testsuite/libgomp.oacc-fortran/host_data-4.f90: Require effective
4109 target openacc_cublas.
4110 * testsuite/libgomp.oacc-fortran/host_data-2.f90: Likewise.
4111 * testsuite/libgomp.oacc-fortran/host_data-3.f: Likewise.
4112 * testsuite/libgomp.oacc-c-c++-common/lib-91.c: Require effective
4113 target openacc_cuda.
4114 * testsuite/libgomp.oacc-c-c++-common/lib-70.c: Likewise.
4115 * testsuite/libgomp.oacc-c-c++-common/lib-90.c: Likewise.
4116 * testsuite/libgomp.oacc-c-c++-common/lib-75.c: Likewise.
4117 * testsuite/libgomp.oacc-c-c++-common/lib-69.c: Likewise.
4118 * testsuite/libgomp.oacc-c-c++-common/lib-74.c: Likewise.
4119 * testsuite/libgomp.oacc-c-c++-common/lib-81.c: Likewise.
4120 * testsuite/libgomp.oacc-c-c++-common/lib-72.c: Likewise.
4121 * testsuite/libgomp.oacc-c-c++-common/lib-85.c: Likewise.
4122 * testsuite/libgomp.oacc-c-c++-common/pr87835.c: Likewise.
4123 * testsuite/libgomp.oacc-c-c++-common/lib-82.c: Likewise.
4124 * testsuite/libgomp.oacc-c-c++-common/lib-73.c: Likewise.
4125 * testsuite/libgomp.oacc-c-c++-common/lib-83.c: Likewise.
4126 * testsuite/libgomp.oacc-c-c++-common/lib-78.c: Likewise.
4127 * testsuite/libgomp.oacc-c-c++-common/lib-76.c: Likewise.
4128 * testsuite/libgomp.oacc-c-c++-common/lib-84.c: Likewise.
4129 * testsuite/libgomp.oacc-c-c++-common/lib-79.c: Likewise.
4130 * testsuite/libgomp.oacc-c-c++-common/host_data-1.c: Require effective
4131 targets openacc_cublas and openacc_cudart.
4132 * testsuite/libgomp.oacc-c-c++-common/context-1.c: Likewise.
4133 * testsuite/libgomp.oacc-c-c++-common/context-2.c: Likewise.
4134 * testsuite/libgomp.oacc-c-c++-common/context-3.c: Likewise.
4135 * testsuite/libgomp.oacc-c-c++-common/context-4.c: Likewise.
4136 * testsuite/libgomp.oacc-c-c++-common/acc_get_property-nvptx.c:
4137 Require effective target openacc_cudart.
4138 * testsuite/libgomp.oacc-c-c++-common/asyncwait-1.c: Add -DUSE_CUDA_H
4139 for effective target openacc_cuda and add && defined USE_CUDA_H to
4140 preprocessor conditionals. Guard -lcuda also on openacc_cuda
4143 2021-05-26 Jakub Jelinek <jakub@redhat.com>
4146 * config/nvptx/target.c (GOMP_target_ext, GOMP_target_data_ext,
4147 GOMP_target_end_data, GOMP_target_update_ext,
4148 GOMP_target_enter_exit_data): New dummy entrypoints.
4149 * config/gcn/target.c (GOMP_target_ext, GOMP_target_data_ext,
4150 GOMP_target_end_data, GOMP_target_update_ext,
4151 GOMP_target_enter_exit_data): Likewise.
4152 * testsuite/libgomp.c-c++-common/for-3.c (DO_PRAGMA, OMPTEAMS,
4153 OMPFROM, OMPTO): Define.
4154 (main): Remove #pragma omp target teams around all the tests.
4155 * testsuite/libgomp.c-c++-common/target-41.c: New test.
4156 * testsuite/libgomp.c-c++-common/target-42.c: New test.
4158 2021-05-25 Jakub Jelinek <jakub@redhat.com>
4161 * testsuite/libgomp.c-c++-common/reduction-17.c: New test.
4163 2021-05-24 Tobias Burnus <tobias@codesourcery.com>
4166 * testsuite/libgomp.fortran/class-firstprivate-1.f90: New test.
4167 * testsuite/libgomp.fortran/class-firstprivate-2.f90: New test.
4168 * testsuite/libgomp.fortran/class-firstprivate-3.f90: New test.
4170 2021-05-22 Thomas Schwinge <thomas@codesourcery.com>
4173 * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Prune
4174 uninteresting/varying diagnostics.
4176 2021-05-21 Thomas Schwinge <thomas@codesourcery.com>
4179 * testsuite/libgomp.oacc-c-c++-common/static-variable-1.c: Update.
4180 * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Likewise.
4182 2021-05-21 Thomas Schwinge <thomas@codesourcery.com>
4185 * testsuite/libgomp.oacc-fortran/private-atomic-1-vector.f90: New
4187 * testsuite/libgomp.oacc-c-c++-common/firstprivate-1.c: Update.
4188 * testsuite/libgomp.oacc-c-c++-common/host_data-7.c: Likewise.
4189 * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c:
4191 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-1.c:
4193 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-2.c:
4195 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-3.c:
4197 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-4.c:
4199 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-5.c:
4201 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-1.c:
4203 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-2.c:
4205 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-3.c:
4207 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-4.c:
4209 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-5.c:
4211 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-6.c:
4213 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-vector-1.c:
4215 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-vector-2.c:
4217 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-1.c:
4219 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-2.c:
4221 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-3.c:
4223 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-4.c:
4225 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-5.c:
4227 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-6.c:
4229 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-7.c:
4231 * testsuite/libgomp.oacc-c-c++-common/loop-g-1.c: Likewise.
4232 * testsuite/libgomp.oacc-c-c++-common/loop-g-2.c: Likewise.
4233 * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c: Likewise.
4234 * testsuite/libgomp.oacc-c-c++-common/loop-gwv-2.c: Likewise.
4235 * testsuite/libgomp.oacc-c-c++-common/loop-red-g-1.c: Likewise.
4236 * testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c: Likewise.
4237 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c: Likewise.
4238 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c: Likewise.
4239 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c: Likewise.
4240 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c: Likewise.
4241 * testsuite/libgomp.oacc-c-c++-common/loop-red-wv-1.c: Likewise.
4242 * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c: Likewise.
4243 * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c: Likewise.
4244 * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c: Likewise.
4245 * testsuite/libgomp.oacc-c-c++-common/parallel-reduction.c:
4247 * testsuite/libgomp.oacc-c-c++-common/private-atomic-1-gang.c:
4249 * testsuite/libgomp.oacc-c-c++-common/private-atomic-1.c:
4251 * testsuite/libgomp.oacc-c-c++-common/private-variables.c:
4253 * testsuite/libgomp.oacc-c-c++-common/routine-4.c: Likewise.
4254 * testsuite/libgomp.oacc-c-c++-common/static-variable-1.c:
4256 * testsuite/libgomp.oacc-fortran/acc_on_device-1-1.f90: Likewise.
4257 * testsuite/libgomp.oacc-fortran/acc_on_device-1-2.f: Likewise.
4258 * testsuite/libgomp.oacc-fortran/acc_on_device-1-3.f: Likewise.
4259 * testsuite/libgomp.oacc-fortran/declare-1.f90: Likewise.
4260 * testsuite/libgomp.oacc-fortran/host_data-5.F90: Likewise.
4261 * testsuite/libgomp.oacc-fortran/if-1.f90: Likewise.
4262 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-1.f90:
4264 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-2.f90:
4266 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-3.f90:
4268 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-6.f90:
4270 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-vector-1.f90:
4272 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-vector-2.f90:
4274 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-1.f90:
4276 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-2.f90:
4278 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-3.f90:
4280 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-4.f90:
4282 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-5.f90:
4284 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-6.f90:
4286 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-7.f90:
4288 * testsuite/libgomp.oacc-fortran/optional-private.f90: Likewise.
4289 * testsuite/libgomp.oacc-fortran/parallel-dims.f90: Likewise.
4290 * testsuite/libgomp.oacc-fortran/private-atomic-1-gang.f90:
4292 * testsuite/libgomp.oacc-fortran/private-atomic-1-worker.f90:
4294 * testsuite/libgomp.oacc-fortran/private-variables.f90: Likewise.
4295 * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Likewise.
4296 * testsuite/libgomp.oacc-fortran/routine-7.f90: Likewise.
4298 2021-05-21 Julian Brown <julian@codesourcery.com>
4299 Chung-Lin Tang <cltang@codesourcery.com>
4300 Thomas Schwinge <thomas@codesourcery.com>
4303 * testsuite/libgomp.oacc-c-c++-common/private-atomic-1-gang.c: New
4305 * testsuite/libgomp.oacc-fortran/private-atomic-1-gang.f90:
4307 * testsuite/libgomp.oacc-fortran/private-atomic-1-worker.f90:
4310 2021-05-21 Thomas Schwinge <thomas@codesourcery.com>
4312 * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Don't skip
4313 for nvptx offloading.
4315 2021-05-21 Tobias Burnus <tobias@codesourcery.com>
4317 * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: New.
4319 2021-05-19 Thomas Schwinge <thomas@codesourcery.com>
4322 * testsuite/libgomp.oacc-c-c++-common/private-atomic-1.c: New.
4324 2021-05-19 Julian Brown <julian@codesourcery.com>
4326 * testsuite/libgomp.oacc-c-c++-common/loop-gwv-2.c: New.
4328 2021-05-18 Thomas Schwinge <thomas@codesourcery.com>
4330 * testsuite/lib/libgomp.exp
4331 (check_effective_target_offload_target_nvptx): Don't shadow global
4332 'offload_targets' variable.
4334 2021-05-18 Thomas Schwinge <thomas@codesourcery.com>
4336 * testsuite/libgomp.c-c++-common/reduction-5.c: Restrict
4337 '-latomic' to nvptx offloading compilation.
4338 * testsuite/libgomp.c-c++-common/reduction-6.c: Likewise.
4340 2021-05-18 Thomas Schwinge <thomas@codesourcery.com>
4342 * testsuite/libgomp.c/target-44.c: Restrict '-latomic' to nvptx
4343 offloading compilation.
4345 2021-05-17 Kwok Cheung Yeung <kcy@codesourcery.com>
4347 * task.c (omp_fulfill_event): Call gomp_team_barrier_set_task_pending
4348 if new tasks generated.
4349 * testsuite/libgomp.c-c++-common/task-detach-13.c: New.
4351 2021-05-14 Tobias Burnus <tobias@codesourcery.com>
4353 * testsuite/libgomp.fortran/parallel-master.f90: New test.
4355 2021-05-13 Martin Liska <mliska@suse.cz>
4358 * testsuite/libgomp.c/omp-nested-3.c: Prune new LTO warning.
4359 * testsuite/libgomp.c/pr46032-2.c: Likewise.
4360 * testsuite/libgomp.oacc-c-c++-common/data-clauses-kernels-ipa-pta.c: Likewise.
4361 * testsuite/libgomp.oacc-c-c++-common/data-clauses-parallel-ipa-pta.c: Likewise.
4363 2021-05-12 Tobias Burnus <tobias@codesourcery.com>
4365 * testsuite/libgomp.c-c++-common/task-detach-12.c: New test.
4366 * testsuite/libgomp.fortran/task-detach-12.f90: New test.
4368 2021-05-11 Jakub Jelinek <jakub@redhat.com>
4370 PR middle-end/100471
4371 * taskloop.c (GOMP_taskloop): If GOMP_TASK_FLAG_REDUCTION and not
4372 GOMP_TASK_FLAG_NOGROUP, when doing early return clear the task
4374 * testsuite/libgomp.c/task-reduction-4.c: New test.
4376 2021-05-07 Tobias Burnus <tobias@codesourcery.com>
4377 Tom de Vries <tdevries@suse.de>
4379 * testsuite/libgomp.c-c++-common/reduction-5.c: New test, testing
4380 complex/floating-point || + && reduction with 'omp target'.
4381 * testsuite/libgomp.c-c++-common/reduction-6.c: Likewise.
4383 2021-05-04 Tobias Burnus <tobias@codesourcery.com>
4385 * testsuite/libgomp.c-c++-common/reduction-1.c: New test.
4386 * testsuite/libgomp.c-c++-common/reduction-2.c: New test.
4387 * testsuite/libgomp.c-c++-common/reduction-3.c: New test.
4388 * testsuite/libgomp.c-c++-common/reduction-4.c: New file.
4390 2021-05-04 Tobias Burnus <tobias@codesourcery.com>
4393 * testsuite/libgomp.fortran/depobj-1.f90 (dep2, dep3): Move var
4394 declaration to scope of non-'depend'-guarded assignment to avoid races.
4396 2021-05-03 Tom de Vries <tdevries@suse.de>
4399 * testsuite/libgomp.c/target-44.c: New test.
4401 2021-04-30 Roman Zhuykov <zhroma@ispras.ru>
4403 * testsuite/libgomp.oacc-c-c++-common/atomic_capture-3.c: New test.
4405 2021-04-29 Tom de Vries <tdevries@suse.de>
4407 * testsuite/libgomp.c/pr81778.c: New test.
4409 2021-04-29 Tom de Vries <tdevries@suse.de>
4412 * testsuite/libgomp.c/target-43.c: New file.
4414 2021-04-28 Jakub Jelinek <jakub@redhat.com>
4415 Tobias Burnus <tobias@codesourcery.com>
4417 * configure.ac (OFFLOAD_DEFAULTED): AC_DEFINE if offload-defaulted.
4418 * target.c (gomp_load_plugin_for_device): If set and if a plugin
4419 can't be dlopened, silently assume it has no devices.
4420 * Makefile.in: Regenerate.
4421 * config.h.in: Regenerate.
4422 * configure: Regenerate.
4424 2021-04-26 Tobias Burnus <tobias@codesourcery.com>
4426 * testsuite/libgomp.oacc-fortran/par-reduction-2-1.f:
4427 Use [Ww]arning in dg-bogus as FE diagnostic and default
4428 diagnostic differ and the result depends on ENABLE_OFFLOAD.
4429 * testsuite/libgomp.oacc-fortran/par-reduction-2-2.f: Likewise.
4430 * testsuite/libgomp.oacc-fortran/parallel-dims.f90: Likewise.
4431 * testsuite/libgomp.oacc-fortran/parallel-reduction.f90: Likewise.
4433 2021-04-26 Tobias Burnus <tobias@codesourcery.com>
4435 * testsuite/libgomp.oacc-fortran/par-reduction-2-1.f:
4436 Correct spelling in dg-bogus to match -Wopenacc-parallelism.
4437 * testsuite/libgomp.oacc-fortran/par-reduction-2-2.f: Likewise.
4438 * testsuite/libgomp.oacc-fortran/parallel-dims.f90: Likewise.
4439 * testsuite/libgomp.oacc-fortran/parallel-reduction.f90: Likewise.
4441 2021-04-26 Thomas Schwinge <thomas@codesourcery.com>
4442 Nathan Sidwell <nathan@codesourcery.com>
4443 Tom de Vries <vries@codesourcery.com>
4444 Julian Brown <julian@codesourcery.com>
4445 Kwok Cheung Yeung <kcy@codesourcery.com>
4447 * testsuite/libgomp.oacc-c-c++-common/firstprivate-1.c: Specify
4448 '-Wopenacc-parallelism', and match diagnostics, as appropriate.
4449 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Likewise.
4450 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c: Likewise.
4451 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c: Likewise.
4452 * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c: Likewise.
4453 * testsuite/libgomp.oacc-c-c++-common/mode-transitions.c:
4455 * testsuite/libgomp.oacc-c-c++-common/par-reduction-1.c: Likewise.
4456 * testsuite/libgomp.oacc-c-c++-common/par-reduction-2.c: Likewise.
4457 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Likewise.
4458 * testsuite/libgomp.oacc-c-c++-common/parallel-reduction.c:
4460 * testsuite/libgomp.oacc-c-c++-common/pr85381-3.c: Likewise.
4461 * testsuite/libgomp.oacc-c-c++-common/private-variables.c:
4463 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Likewise.
4464 * testsuite/libgomp.oacc-c-c++-common/reduction-7.c: Likewise.
4465 * testsuite/libgomp.oacc-c-c++-common/routine-g-1.c: Likewise.
4466 * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c: Likewise.
4467 * testsuite/libgomp.oacc-c-c++-common/routine-wv-2.c: Likewise.
4468 * testsuite/libgomp.oacc-c-c++-common/static-variable-1.c:
4470 * testsuite/libgomp.oacc-fortran/optional-private.f90: Likewise.
4471 * testsuite/libgomp.oacc-fortran/par-reduction-2-1.f: Likewise.
4472 * testsuite/libgomp.oacc-fortran/par-reduction-2-2.f: Likewise.
4473 * testsuite/libgomp.oacc-fortran/parallel-dims.f90: Likewise.
4474 * testsuite/libgomp.oacc-fortran/parallel-reduction.f90: Likewise.
4475 * testsuite/libgomp.oacc-fortran/pr84028.f90: Likewise.
4476 * testsuite/libgomp.oacc-fortran/private-variables.f90: Likewise.
4477 * testsuite/libgomp.oacc-fortran/reduction-1.f90: Likewise.
4478 * testsuite/libgomp.oacc-fortran/reduction-5.f90: Likewise.
4479 * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
4480 * testsuite/libgomp.oacc-fortran/routine-7.f90: Likewise.
4482 2021-04-26 Thomas Schwinge <thomas@codesourcery.com>
4484 * testsuite/libgomp.oacc-c-c++-common/par-reduction-1.c: Don't
4486 * testsuite/libgomp.oacc-c-c++-common/par-reduction-2.c: Likewise.
4487 * testsuite/libgomp.oacc-c-c++-common/parallel-reduction.c:
4489 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Likewise.
4490 * testsuite/libgomp.oacc-c-c++-common/reduction-6.c: Likewise.
4491 * testsuite/libgomp.oacc-fortran/parallel-reduction.f90: Likewise.
4492 * testsuite/libgomp.oacc-fortran/reduction-1.f90: Likewise.
4493 * testsuite/libgomp.oacc-fortran/reduction-5.f90: Likewise.
4494 * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
4495 * testsuite/libgomp.oacc-fortran/reduction-7.f90: Likewise.
4497 2021-04-22 Richard Biener <rguenther@suse.de>
4499 * testsuite/libgomp.c-c++-common/reduction-16.c: Use -latomic
4502 2021-04-21 Tobias Burnus <tobias@codesourcery.com>
4504 * testsuite/libgomp.fortran/depobj-1.f90: Use omp_lib's
4505 omp_depend_kind instead of defining it as 16.
4507 2021-04-21 Tobias Burnus <tobias@codesourcery.com>
4509 * testsuite/lib/libgomp.exp (offload_target_to_openacc_device_type):
4510 New, based on check_effective_target_offload_target_nvptx.
4511 (check_effective_target_offload_target_nvptx): Call it.
4512 (check_effective_target_offload_target_amdgcn): New.
4513 * testsuite/libgomp.c-c++-common/function-not-offloaded.c:
4514 Require target offload_target_nvptx || offload_target_amdgcn.
4515 * testsuite/libgomp.c-c++-common/variable-not-offloaded.c: Likewise.
4516 * testsuite/libgomp.c/pr86416-1.c: Likewise.
4517 * testsuite/libgomp.c/pr86416-2.c: Likewise.
4519 2021-04-21 Tobias Burnus <tobias@codesourcery.com>
4521 * testsuite/libgomp.fortran/depobj-1.f90: New test.
4523 2021-04-19 Thomas Schwinge <thomas@codesourcery.com>
4525 * testsuite/libgomp.oacc-c-c++-common/declare-vla-kernels-decompose-ice-1.c:
4526 '-fopenacc-kernels=[...]' -> '--param=openacc-kernels=[...]'.
4527 * testsuite/libgomp.oacc-c-c++-common/declare-vla-kernels-decompose.c:
4529 * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c:
4531 * testsuite/libgomp.oacc-fortran/pr94358-1.f90: Likewise.
4533 2021-04-15 Thomas Schwinge <thomas@codesourcery.com>
4536 * testsuite/lib/libgomp.exp
4537 (check_effective_target_offload_device_nvptx): New.
4538 * testsuite/libgomp.c/pr99555-1.c <nvptx offload device>: Until
4539 resolved, make sure that we exit quickly, with error status,
4541 * testsuite/libgomp.c-c++-common/task-detach-6.c: Likewise.
4542 * testsuite/libgomp.fortran/task-detach-6.f90: Likewise.
4544 2021-04-14 Jakub Jelinek <jakub@redhat.com>
4547 * testsuite/libgomp.fortran/alloc-1.F90: Call c_f_pointer after last
4548 cp = omp_alloc with cp, p arguments instead of cq, q and call
4549 c_f_pointer after last cq = omp_alloc with cq, q.
4551 2021-04-11 Hafiz Abid Qadeer <abidh@codesourcery.com>
4554 * testsuite/libgomp.oacc-c-c++-common/collapse-2.c: Add check
4555 for loop with GT/GE condition.
4556 * testsuite/libgomp.oacc-c-c++-common/collapse-3.c: Likewise.
4558 2021-04-09 Thomas Schwinge <thomas@codesourcery.com>
4563 * testsuite/libgomp.oacc-c-c++-common/static-variable-1.c: New.
4565 2021-04-09 Jakub Jelinek <jakub@redhat.com>
4568 * team.c (gomp_thread_start): Call pthread_setspecific for
4569 !(defined HAVE_TLS || defined USE_EMUTLS) only after local_thr
4570 has been initialized to avoid false positive warning.
4572 2021-03-29 Tobias Burnus <tobias@codesourcery.com>
4575 * testsuite/lib/on_device_arch.c: Move to ...
4576 * testsuite/libgomp.c-c++-common/on_device_arch.h: ... here.
4577 * testsuite/libgomp.fortran/on_device_arch.c: New file;
4578 #include on_device_arch.h.
4579 * testsuite/libgomp.c-c++-common/task-detach-6.c: #include
4580 on_device_arch.h instead of using dg-additional-source.
4581 * testsuite/libgomp.c/pr99555-1.c: Likewise.
4582 * testsuite/libgomp.fortran/task-detach-6.f90: Update to use
4583 on_device_arch.c without relative paths.
4585 2021-03-25 Thomas Schwinge <thomas@codesourcery.com>
4587 * plugin/plugin-gcn.c (init_environment_variables): Don't prepend
4588 the 'HSA_RUNTIME_LIB' path to 'libhsa-runtime64.so'.
4589 * plugin/configfrag.ac (HSA_RUNTIME_LIB): Clean up.
4590 * config.h.in: Regenerate.
4591 * configure: Likewise.
4593 2021-03-25 Thomas Schwinge <thomas@codesourcery.com>
4596 * testsuite/lib/on_device_arch.c: New file.
4597 * testsuite/libgomp.c/pr99555-1.c: Likewise.
4598 * testsuite/libgomp.c-c++-common/task-detach-6.c: Until resolved,
4599 skip for nvptx offloading, with error status.
4600 * testsuite/libgomp.fortran/task-detach-6.f90: Likewise.
4602 2021-03-25 Thomas Schwinge <thomas@codesourcery.com>
4604 * testsuite/libgomp.oacc-fortran/derivedtypes-arrays-1.f90:
4605 OpenACC 'serial' construct diagnostic for nvptx offloading.
4607 2021-03-15 Tobias Burnus <tobias@codesourcery.com>
4610 * testsuite/libgomp.c-c++-common/declare_target-1.c: New test.
4612 2021-03-12 Tobias Burnus <tobias@codesourcery.com>
4615 * testsuite/libgomp.fortran/use_device_ptr-3.f90: New test.
4617 2021-03-04 Jakub Jelinek <jakub@redhat.com>
4619 * configure.ac: Add AC_CHECK_SIZEOF([void *]).
4620 * plugin/configfrag.ac: Check $ac_cv_sizeof_void_p value instead of
4621 checking of -m32 or -mx32 options on the command line.
4622 * config.h.in: Regenerated.
4623 * configure: Regenerated.
4625 2021-02-27 Iain Sandoe <iain@sandoe.co.uk>
4627 * testsuite/libgomp.c-c++-common/pr96390.c: Require alias
4628 support from the target.
4630 2021-02-25 Kwok Cheung Yeung <kcy@codesourcery.com>
4631 Jakub Jelinek <jakub@redhat.com>
4634 * libgomp.h (enum gomp_task_kind): Add GOMP_TASK_DETACHED.
4635 (struct gomp_task): Replace detach and completion_sem fields with
4636 union containing completion_sem and detach_team. Add deferred_p
4638 (struct gomp_team): Remove task_detach_queue.
4639 * task.c: Include assert.h.
4640 (gomp_init_task): Initialize deferred_p and completion_sem fields.
4641 Rearrange initialization order of fields.
4642 (task_fulfilled_p): Delete.
4643 (GOMP_task): Use address of task as the event handle. Remove
4644 initialization of detach field. Initialize deferred_p field.
4645 Use automatic local for completion_sem. Initialize detach_team field
4647 (gomp_barrier_handle_tasks): Remove handling of task_detach_queue.
4648 Set kind of suspended detach task to GOMP_TASK_DETACHED and
4649 decrement task_running_count. Move finish_cancelled block out of
4650 else branch. Relocate call to gomp_team_barrier_done.
4651 (GOMP_taskwait): Handle tasks with completion events that have not
4653 (GOMP_taskgroup_end): Likewise.
4654 (omp_fulfill_event): Use address of task as event handle. Post to
4655 completion_sem for undeferred tasks. Clear detach_team if task
4656 has not finished. For finished tasks, handle post-execution tasks,
4657 call gomp_team_barrier_wake if necessary, and free task.
4658 * team.c (gomp_new_team): Remove initialization of task_detach_queue.
4659 (free_team): Remove free of task_detach_queue.
4660 * testsuite/libgomp.c-c++-common/task-detach-1.c: Fix formatting.
4661 * testsuite/libgomp.c-c++-common/task-detach-2.c: Fix formatting.
4662 * testsuite/libgomp.c-c++-common/task-detach-3.c: Fix formatting.
4663 * testsuite/libgomp.c-c++-common/task-detach-4.c: Fix formatting.
4664 * testsuite/libgomp.c-c++-common/task-detach-5.c: Fix formatting.
4665 Change data-sharing of detach events on enclosing parallel to private.
4666 * testsuite/libgomp.c-c++-common/task-detach-6.c: Likewise. Remove
4668 * testsuite/libgomp.c-c++-common/task-detach-7.c: New.
4669 * testsuite/libgomp.c-c++-common/task-detach-8.c: New.
4670 * testsuite/libgomp.c-c++-common/task-detach-9.c: New.
4671 * testsuite/libgomp.c-c++-common/task-detach-10.c: New.
4672 * testsuite/libgomp.c-c++-common/task-detach-11.c: New.
4673 * testsuite/libgomp.fortran/task-detach-1.f90: Fix formatting.
4674 * testsuite/libgomp.fortran/task-detach-2.f90: Fix formatting.
4675 * testsuite/libgomp.fortran/task-detach-3.f90: Fix formatting.
4676 * testsuite/libgomp.fortran/task-detach-4.f90: Fix formatting.
4677 * testsuite/libgomp.fortran/task-detach-5.f90: Fix formatting.
4678 Change data-sharing of detach events on enclosing parallel to private.
4679 * testsuite/libgomp.fortran/task-detach-6.f90: Likewise. Remove
4681 * testsuite/libgomp.fortran/task-detach-7.f90: New.
4682 * testsuite/libgomp.fortran/task-detach-8.f90: New.
4683 * testsuite/libgomp.fortran/task-detach-9.f90: New.
4684 * testsuite/libgomp.fortran/task-detach-10.f90: New.
4685 * testsuite/libgomp.fortran/task-detach-11.f90: New.
4687 2021-02-22 Tobias Burnus <tobias@codesourcery.com>
4690 * testsuite/libgomp.fortran/dummy-procs-1.f90: New test.
4692 2021-02-17 Julian Brown <julian@codesourcery.com>
4694 * testsuite/libgomp.oacc-fortran/array-stride-dt-1.f90: Remove
4697 2021-02-17 Julian Brown <julian@codesourcery.com>
4699 * testsuite/libgomp.oacc-fortran/derivedtypes-arrays-1.f90: New test.
4700 * testsuite/libgomp.oacc-fortran/update-dt-array.f90: Likewise.
4702 2021-02-11 Uroš Bizjak <ubizjak@gmail.com>
4704 * config/linux/x86/futex.h (__futex_wait):
4705 Revert output type back to long.
4706 (__futex_wake): Ditto.
4707 (futex_wait): Update for revert.
4708 (futex_wake): Ditto.
4710 2021-02-11 Uroš Bizjak <ubizjak@gmail.com>
4712 * config/linux/x86/futex.h (__futex_wait): New static inline
4713 wrapper function. Correct output type to int and
4714 timeout type to void *.
4715 (__futex_wake): New static inline wrapper function.
4716 Correct output type to int.
4717 (futex_wait): Use __futex_wait.
4718 (futex_wake): Use __futex_wake.
4720 2021-02-10 Julian Brown <julian@codesourcery.com>
4723 * testsuite/libgomp.oacc-fortran/array-stride-dt-1.f90: Add expected
4726 2021-02-04 Julian Brown <julian@codesourcery.com>
4728 * testsuite/libgomp.oacc-fortran/array-stride-dt-1.f90: New test.
4730 2021-02-03 Andrew Stubbs <ams@codesourcery.com>
4732 * plugin/plugin-gcn.c (EF_AMDGPU_MACH): Add
4733 EF_AMDGPU_MACH_AMDGCN_GFX908.
4734 (gcn_gfx908_s): New constant string.
4735 (isa_hsa_name): Add gfx908.
4736 (isa_code): Add gfx908.
4738 2021-01-25 Kwok Cheung Yeung <kcy@codesourcery.com>
4740 * libgomp.texi (omp_fulfill_event): New entry.
4742 2021-01-20 Jakub Jelinek <jakub@redhat.com>
4744 * task.c (GOMP_task): Rename priority argument to priority_arg,
4745 add priority automatic variable and modify that variable. Instead of
4746 clearing detach argument when GOMP_TASK_FLAG_DETACH bit is not set,
4747 check flags for that bit.
4749 2021-01-19 Tobias Burnus <tobias@codesourcery.com>
4752 * testsuite/libgomp.fortran/is_device_ptr-1.f90: New test.
4754 2021-01-18 Andreas Schwab <schwab@suse.de>
4756 * configure.tgt (riscv64*-*-linux*): Add linux to config_path.
4758 2021-01-18 Sebastian Huber <sebastian.huber@embedded-brains.de>
4760 * config/rtems/sem.h (gomp_sem_getcount): New function.
4762 2021-01-18 Jakub Jelinek <jakub@redhat.com>
4764 * config/linux/sem.h (gomp_sem_getcount): New function.
4765 * config/posix/sem.h (gomp_sem_getcount): New function.
4766 * config/posix/sem.c (gomp_sem_getcount): New function.
4767 * config/accel/sem.h (gomp_sem_getcount): New function.
4768 * task.c (task_fulfilled_p): Use gomp_sem_getcount.
4769 (omp_fulfill_event): Likewise.
4771 2021-01-16 Kwok Cheung Yeung <kcy@codesourcery.com>
4773 * fortran.c (omp_fulfill_event_): New.
4774 * libgomp.h (struct gomp_task): Add detach and completion_sem fields.
4775 (struct gomp_team): Add task_detach_queue and task_detach_count
4777 * libgomp.map (OMP_5.0.1): Add omp_fulfill_event and omp_fulfill_event_.
4778 * libgomp_g.h (GOMP_task): Add extra argument.
4779 * omp.h.in (enum omp_event_handle_t): New.
4780 (omp_fulfill_event): New.
4781 * omp_lib.f90.in (omp_event_handle_kind): New.
4782 (omp_fulfill_event): New.
4783 * omp_lib.h.in (omp_event_handle_kind): New.
4784 (omp_fulfill_event): Declare.
4785 * priority_queue.c (priority_tree_find): New.
4786 (priority_list_find): New.
4787 (priority_queue_find): New.
4788 * priority_queue.h (priority_queue_predicate): New.
4789 (priority_queue_find): New.
4790 * task.c (gomp_init_task): Initialize detach field.
4791 (task_fulfilled_p): New.
4792 (GOMP_task): Add detach argument. Ignore detach argument if
4793 GOMP_TASK_FLAG_DETACH not set in flags. Initialize completion_sem
4794 field. Copy address of completion_sem into detach argument and
4795 into the start of the data record. Wait for detach event if task
4797 (gomp_barrier_handle_tasks): Queue tasks with unfulfilled events.
4798 Remove completed tasks and requeue dependent tasks.
4799 (omp_fulfill_event): New.
4800 * team.c (gomp_new_team): Initialize task_detach_queue and
4801 task_detach_count fields.
4802 (free_team): Free task_detach_queue field.
4803 * testsuite/libgomp.c-c++-common/task-detach-1.c: New testcase.
4804 * testsuite/libgomp.c-c++-common/task-detach-2.c: New testcase.
4805 * testsuite/libgomp.c-c++-common/task-detach-3.c: New testcase.
4806 * testsuite/libgomp.c-c++-common/task-detach-4.c: New testcase.
4807 * testsuite/libgomp.c-c++-common/task-detach-5.c: New testcase.
4808 * testsuite/libgomp.c-c++-common/task-detach-6.c: New testcase.
4809 * testsuite/libgomp.fortran/task-detach-1.f90: New testcase.
4810 * testsuite/libgomp.fortran/task-detach-2.f90: New testcase.
4811 * testsuite/libgomp.fortran/task-detach-3.f90: New testcase.
4812 * testsuite/libgomp.fortran/task-detach-4.f90: New testcase.
4813 * testsuite/libgomp.fortran/task-detach-5.f90: New testcase.
4814 * testsuite/libgomp.fortran/task-detach-6.f90: New testcase.
4816 2021-01-15 Jakub Jelinek <jakub@redhat.com>
4819 * configure.tgt: For i?86 and x86_64 determine if -march=i486 needs to
4820 be added through preprocessor check on
4821 __GCC_HAVE_SYNC_COMPARE_AND_SWAP_4.
4823 2021-01-14 Thomas Schwinge <thomas@codesourcery.com>
4826 * plugin/configfrag.ac (PLUGIN_NVPTX): Restrict to supported
4828 * configure: Regenerate.
4829 * plugin/plugin-nvptx.c (nvptx_get_num_devices): Remove 64-bit
4832 2021-01-05 Samuel Thibault <samuel.thibault@ens-lyon.org>
4834 * configure: Re-generate.
4836 2021-01-05 Samuel Thibault <samuel.thibault@ens-lyon.org>
4838 * configure: Re-generate.
4840 2021-01-05 Julian Brown <julian@codesourcery.com>
4842 * plugin/plugin-nvptx.c (SOFTSTACK_CACHE_LIMIT): New define.
4843 (struct ptx_device): Add omp_stacks struct.
4844 (nvptx_open_device): Initialise cached-stacks housekeeping info.
4845 (nvptx_close_device): Free cached stacks block and mutex.
4846 (nvptx_stacks_free): New function.
4847 (nvptx_alloc): Add SUPPRESS_ERRORS parameter.
4848 (GOMP_OFFLOAD_alloc): Add strategies for freeing soft-stacks block.
4849 (nvptx_stacks_alloc): Rename to...
4850 (nvptx_stacks_acquire): This. Cache stacks block between runs if same
4851 size or smaller is required.
4852 (nvptx_stacks_free): Remove.
4853 (GOMP_OFFLOAD_run): Call nvptx_stacks_acquire and lock stacks block
4854 during kernel execution.
4856 2021-01-01 Jakub Jelinek <jakub@redhat.com>
4858 * libgomp.texi: Bump @copying's copyright year.
4860 2020-12-28 Gerald Pfeifer <gerald@pfeifer.com>
4862 * libgomp.texi (Top): Avoid bad "up" link.
4864 2020-12-18 Jakub Jelinek <jakub@redhat.com>
4866 * testsuite/libgomp.c/task-6.c: New test.
4868 2020-12-09 Andrew Stubbs <ams@codesourcery.com>
4870 * plugin/plugin-gcn.c: Include hsa_ext_amd.h.
4871 (HSA_AMD_AGENT_INFO_COMPUTE_UNIT_COUNT): Delete redundant definition.
4873 2020-12-08 Tobias Burnus <tobias@codesourcery.com>
4875 * testsuite/libgomp.fortran/scan-1.f90: New test.
4877 2020-12-05 Iain Sandoe <iain@sandoe.co.uk>
4880 * configure: Regenerate.
4882 2020-11-29 John David Anglin <danglin@gcc.gnu.org>
4884 * configure: Regenerate.
4886 2020-11-25 Thomas Schwinge <thomas@codesourcery.com>
4888 * testsuite/libgomp.oacc-c++/cache-1.C: New.
4889 * testsuite/libgomp.oacc-c-c++-common/cache-1.c: Update.
4891 2020-11-25 Andrew Stubbs <ams@codesourcery.com>
4893 * testsuite/libgomp.oacc-fortran/atomic_capture-1.f90 (main): Adjust
4896 2020-11-24 Andrew Stubbs <ams@codesourcery.com>
4898 * plugin/plugin-gcn.c: Don't redefine relocations if elf.h has them.
4899 (reserved): Delete unused define.
4901 2020-11-24 Thomas Schwinge <thomas@codesourcery.com>
4903 * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c: Avoid
4904 Tcl 8.5-specific behavior.
4905 * testsuite/libgomp.oacc-fortran/pr94358-1.f90: Likewise.
4907 2020-11-18 Kwok Cheung Yeung <kcy@codesourcery.com>
4909 * env.c (gomp_global_icv): Remove nest_var field. Add
4910 max_active_levels_var field.
4911 (gomp_max_active_levels_var): Remove.
4912 (parse_boolean): Return true on success.
4913 (handle_omp_display_env): Express OMP_NESTED in terms of
4914 max_active_levels_var. Change format specifier for
4915 max_active_levels_var.
4916 (initialize_env): Set max_active_levels_var from
4917 OMP_MAX_ACTIVE_LEVELS, OMP_NESTED, OMP_NUM_THREADS and
4919 * icv.c (omp_set_nested): Express in terms of
4920 max_active_levels_var.
4921 (omp_get_nested): Likewise.
4922 (omp_set_max_active_levels): Use max_active_levels_var field instead
4923 of gomp_max_active_levels_var.
4924 (omp_get_max_active_levels): Likewise.
4925 * libgomp.h (struct gomp_task_icv): Remove nest_var field. Add
4926 max_active_levels_var field.
4927 (gomp_supported_active_levels): Set to UCHAR_MAX.
4928 (gomp_max_active_levels_var): Delete.
4929 * libgomp.texi (omp_get_nested): Update documentation.
4930 (omp_set_nested): Likewise.
4931 (OMP_MAX_ACTIVE_LEVELS): Likewise.
4932 (OMP_NESTED): Likewise.
4933 (OMP_NUM_THREADS): Likewise.
4934 (OMP_PROC_BIND): Likewise.
4935 * parallel.c (gomp_resolve_num_threads): Replace reference
4936 to nest_var with max_active_levels_var. Use max_active_levels_var
4937 field instead of gomp_max_active_levels_var.
4939 2020-11-18 Tobias Burnus <tobias@codesourcery.com>
4941 * testsuite/libgomp.c/usleep.h (fallback_usleep): Renamed from
4942 nvptx_usleep; use also for device={arch(gcn)}.
4944 2020-11-14 Jakub Jelinek <jakub@redhat.com>
4946 * testsuite/libgomp.c-c++-common/allocate-1.c (struct S): New type.
4947 (foo): Add tests for non-VLA private and firstprivate clauses on
4949 (bar): Likewise. Remove taking of address from private/firstprivate
4951 * testsuite/libgomp.c++/allocate-1.C (struct S): New type.
4952 (foo): Add p, q, px and s arguments. Add tests for array reductions
4953 and for non-VLA private and firstprivate clauses on omp task.
4955 (main): Adjust foo caller. Don't call bar.
4957 2020-11-13 Gergö Barany <gergo@codesourcery.com>
4958 Thomas Schwinge <thomas@codesourcery.com>
4960 * testsuite/libgomp.oacc-c-c++-common/declare-vla-kernels-decompose-ice-1.c:
4962 * testsuite/libgomp.oacc-c-c++-common/declare-vla-kernels-decompose.c:
4964 * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c:
4966 * testsuite/libgomp.oacc-c-c++-common/declare-vla.c: Adjust.
4967 * testsuite/libgomp.oacc-fortran/pr94358-1.f90: Likewise.
4969 2020-11-13 Gergö Barany <gergo@codesourcery.com>
4970 Thomas Schwinge <thomas@codesourcery.com>
4973 * testsuite/libgomp.oacc-fortran/pr94358-1.f90: New.
4975 2020-11-13 Jakub Jelinek <jakub@redhat.com>
4977 * testsuite/libgomp.c-c++-common/allocate-1.c (foo): Add tests
4978 for array reductions.
4979 (main): Adjust foo callers.
4981 2020-11-12 Jakub Jelinek <jakub@redhat.com>
4983 * libgomp.map (GOMP_alloc, GOMP_free): Export at GOMP_5.0.1.
4984 * omp.h.in (omp_alloc): Add malloc and alloc_size attributes.
4985 * libgomp_g.h (GOMP_alloc, GOMP_free): Declare.
4986 * allocator.c (omp_aligned_alloc): New for now static function,
4987 add alignment argument and handle it.
4988 (omp_alloc): Reimplement using omp_aligned_alloc.
4989 (GOMP_alloc, GOMP_free): New functions.
4990 (omp_free): Add ialias.
4991 * testsuite/libgomp.c-c++-common/allocate-1.c: New test.
4992 * testsuite/libgomp.c++/allocate-1.C: New test.
4994 2020-11-12 Thomas Schwinge <thomas@codesourcery.com>
4997 * testsuite/libgomp.oacc-fortran/attach-descriptor-1.f90: Adjust.
4999 2020-11-10 Chung-Lin Tang <cltang@codesourcery.com>
5001 * libgomp.h (enum gomp_map_vars_kind): Adjust enum values to be bit-flag
5003 * oacc-mem.c (acc_map_data): Adjust gomp_map_vars argument flags to
5004 'GOMP_MAP_VARS_OPENACC | GOMP_MAP_VARS_ENTER_DATA'.
5005 (goacc_enter_datum): Likewise for call to gomp_map_vars_async.
5006 (goacc_enter_data_internal): Likewise.
5007 * target.c (gomp_map_vars_internal):
5008 Change checks of GOMP_MAP_VARS_ENTER_DATA to use bit-and (&). Adjust use
5009 of gomp_attach_pointer for OpenMP cases.
5010 (gomp_exit_data): Add handling of GOMP_MAP_DETACH.
5011 (GOMP_target_enter_exit_data): Add handling of GOMP_MAP_ATTACH.
5012 * testsuite/libgomp.c-c++-common/ptr-attach-1.c: New testcase.
5014 2020-11-05 Ulrich Drepper <drepper@redhat.com>
5015 Kwok Cheung Yeung <kcy@codesourcery.com>
5017 * Makefile.am (%.mod): Add -cpp and -fopenmp to compile flags.
5018 * Makefile.in: Regenerate.
5019 * fortran.c: Wrap uses of omp_set_nested and omp_get_nested with
5020 pragmas to ignore -Wdeprecated-declarations warnings.
5022 * omp.h.in (__GOMP_DEPRECATED_5_0): Define.
5023 Mark omp_lock_hint_* enum values, omp_lock_hint_t, omp_set_nested,
5024 and omp_get_nested with __GOMP_DEPRECATED_5_0.
5025 * omp_lib.f90.in: Mark omp_get_nested and omp_set_nested as
5027 * testsuite/libgomp.c++/affinity-1.C: Add -Wno-deprecated-declarations
5029 * testsuite/libgomp.c/affinity-1.c: Likewise.
5030 * testsuite/libgomp.c/affinity-2.c: Likewise.
5031 * testsuite/libgomp.c/appendix-a/a.15.1.c: Likewise.
5032 * testsuite/libgomp.c/lib-1.c: Likewise.
5033 * testsuite/libgomp.c/nested-1.c: Likewise.
5034 * testsuite/libgomp.c/nested-2.c: Likewise.
5035 * testsuite/libgomp.c/nested-3.c: Likewise.
5036 * testsuite/libgomp.c/pr32362-1.c: Likewise.
5037 * testsuite/libgomp.c/pr32362-2.c: Likewise.
5038 * testsuite/libgomp.c/pr32362-3.c: Likewise.
5039 * testsuite/libgomp.c/pr35549.c: Likewise.
5040 * testsuite/libgomp.c/pr42942.c: Likewise.
5041 * testsuite/libgomp.c/pr61200.c: Likewise.
5042 * testsuite/libgomp.c/sort-1.c: Likewise.
5043 * testsuite/libgomp.c/target-5.c: Likewise.
5044 * testsuite/libgomp.c/target-6.c: Likewise.
5045 * testsuite/libgomp.c/teams-1.c: Likewise.
5046 * testsuite/libgomp.c/thread-limit-1.c: Likewise.
5047 * testsuite/libgomp.c/thread-limit-2.c: Likewise.
5048 * testsuite/libgomp.c/thread-limit-4.c: Likewise.
5049 * testsuite/libgomp.fortran/affinity1.f90: Likewise.
5050 * testsuite/libgomp.fortran/lib1.f90: Likewise.
5051 * testsuite/libgomp.fortran/lib2.f: Likewise.
5052 * testsuite/libgomp.fortran/nested1.f90: Likewise.
5053 * testsuite/libgomp.fortran/teams1.f90: Likewise.
5055 2020-11-02 Thomas Schwinge <thomas@codesourcery.com>
5058 * testsuite/libgomp.oacc-c-c++-common/pr85486-2.c: Simplify and enhance.
5059 * testsuite/libgomp.oacc-c-c++-common/pr85486-3.c: Likewise.
5060 * testsuite/libgomp.oacc-c-c++-common/pr85486.c: Likewise.
5062 2020-11-02 Thomas Schwinge <thomas@codesourcery.com>
5066 * testsuite/lib/libgomp.exp (libgomp_init): Set
5067 'gcc_warning_prefix', 'gcc_error_prefix'.
5069 2020-10-30 Jakub Jelinek <jakub@redhat.com>
5071 * target.c (gomp_map_vars_internal): Use FIELD_TGT_EMPTY macro
5072 even in field_tgt_clear initializer.
5074 2020-10-28 Jakub Jelinek <jakub@redhat.com>
5076 * testsuite/libgomp.c/target-42.c: New test.
5078 2020-10-28 Jakub Jelinek <jakub@redhat.com>
5079 Tom de Vries <tdevries@suse.de>
5082 * testsuite/libgomp.c/usleep.h: New file.
5083 * testsuite/libgomp.c/target-32.c: Include usleep.h.
5084 (main): Use tgt_usleep instead of usleep.
5085 * testsuite/libgomp.c/thread-limit-2.c: Include usleep.h.
5086 (main): Use tgt_usleep instead of usleep.
5088 2020-10-28 Jakub Jelinek <jakub@redhat.com>
5091 * testsuite/libgomp.c/declare-variant-1.c: New test.
5093 2020-10-22 Jakub Jelinek <jakub@redhat.com>
5095 * testsuite/libgomp.c/target-41.c: New test.
5097 2020-10-22 Jakub Jelinek <jakub@redhat.com>
5099 * icv.c (omp_get_initial_device): Remove including corresponding
5101 * icv-device.c (omp_get_initial_device): New function. Return
5102 gomp_get_num_devices (). Add ialias.
5103 * target.c (resolve_device): Don't fail with
5104 OMP_TARGET_OFFLOAD=mandatory if device_id is equal to
5105 gomp_get_num_devices ().
5106 (omp_target_alloc, omp_target_free, omp_target_is_present,
5107 omp_target_memcpy, omp_target_memcpy_rect, omp_target_associate_ptr,
5108 omp_target_disassociate_ptr, omp_pause_resource): Use
5109 gomp_get_num_devices () instead of GOMP_DEVICE_HOST_FALLBACK on the
5110 first use in the functions, in uses dominated by the
5111 gomp_get_num_devices call use num_devices_openmp instead.
5112 * libgomp.texi (omp_get_initial_device): Document.
5113 * config/gcn/icv-device.c (omp_get_initial_device): New function.
5115 * config/nvptx/icv-device.c (omp_get_initial_device): Likewise.
5116 * testsuite/libgomp.c/target-40.c: New test.
5118 2020-10-21 Jakub Jelinek <jakub@redhat.com>
5120 * env.c (parse_target_offload): Change new_offload var type to int,
5121 preinitialize to -1, remove found var and test new_offload != -1
5124 2020-10-20 Jakub Jelinek <jakub@redhat.com>
5126 * target.c (gomp_target_init): Inside of the function, use automatic
5127 variables corresponding to num_devices, num_devices_openmp and devices
5128 global variables and update the globals only at the end of the
5131 2020-10-20 Kwok Cheung Yeung <kcy@codesourcery.com>
5133 * env.c (gomp_target_offload_var): New.
5134 (parse_target_offload): New.
5135 (handle_omp_display_env): Print value of OMP_TARGET_OFFLOAD.
5136 (initialize_env): Parse OMP_TARGET_OFFLOAD.
5137 * libgomp.h (gomp_target_offload_t): New.
5138 (gomp_target_offload_var): New.
5139 * libgomp.texi (OMP_TARGET_OFFLOAD): New section.
5140 * target.c (resolve_device): Generate error if device not found and
5141 offloading is mandatory.
5142 (gomp_target_fallback): Generate error if offloading is mandatory.
5143 (GOMP_target): Add argument in call to gomp_target_fallback.
5144 (GOMP_target_ext): Likewise.
5145 (gomp_target_data_fallback): Generate error if offloading is mandatory.
5146 (GOMP_target_data): Add argument in call to gomp_target_data_fallback.
5147 (GOMP_target_data_ext): Likewise.
5148 (gomp_target_task_fn): Add argument in call to gomp_target_fallback.
5149 (gomp_target_init): Return early if offloading is disabled.
5151 2020-10-15 Kwok Cheung Yeung <kcy@codesourcery.com>
5153 * libgomp.texi (omp_get_max_active_levels): Modify description.
5154 (omp_get_supported_active_levels): Make descriptions consistent.
5156 2020-10-14 Jakub Jelinek <jakub@redhat.com>
5158 * libgomp.texi (omp_get_supported_active_levels): Fix a typo.
5160 2020-10-13 Kwok Cheung Yeung <kcy@codesourcery.com>
5162 * env.c (gomp_max_active_levels_var): Initialize to
5163 gomp_supported_active_levels.
5164 (initialize_env): Limit gomp_max_active_levels_var to be at most
5165 equal to gomp_supported_active_levels.
5166 * fortran.c (omp_get_supported_active_levels): Add ialias_redirect.
5167 (omp_get_supported_active_levels_): New.
5168 * icv.c (omp_set_max_active_levels): Limit gomp_max_active_levels_var
5169 to at most equal to gomp_supported_active_levels.
5170 (omp_get_supported_active_levels): New.
5171 * libgomp.h (gomp_supported_active_levels): New.
5172 * libgomp.map (OMP_5.0.1): Add omp_get_supported_active_levels and
5173 omp_get_supported_active_levels_.
5174 * libgomp.texi (omp_get_supported_active_levels): New.
5175 (omp_set_max_active_levels): Update. Add reference to
5176 omp_get_supported_active_levels.
5177 * omp.h.in (omp_get_supported_active_levels): New.
5178 * omp_lib.f90.in (omp_get_supported_active_levels): New.
5179 * omp_lib.h.in (omp_get_supported_active_levels): New.
5180 * testsuite/libgomp.c/lib-2.c (main): Check omp_get_max_active_levels
5181 against omp_get_supported_active_levels.
5182 * testsuite/libgomp.fortran/lib4.f90 (lib4): Likewise.
5184 2020-10-11 Clement Chigot <clement.chigot@atos.net>
5186 * config/t-aix: Delete and recreate libgomp before creating
5189 2020-10-08 Tom de Vries <tdevries@suse.de>
5192 * plugin/plugin-nvptx.c (GOMP_OFFLOAD_run): Report launch
5195 2020-10-06 Tom de Vries <tdevries@suse.de>
5197 * testsuite/libgomp.oacc-fortran/declare-5.f90: Add xfail for PR92790.
5199 2020-10-06 Tom de Vries <tdevries@suse.de>
5202 * testsuite/libgomp.oacc-c-c++-common/declare-vla.c: Remove xfail.
5204 2020-10-05 Tom de Vries <tdevries@suse.de>
5207 * testsuite/libgomp.fortran/pr95654.f90: New test.
5209 2020-10-02 Tobias Burnus <tobias@codesourcery.com>
5211 * Makefile.in: Regenerate with automake 1.15.1.
5212 * aclocal.m4: Likewise.
5213 * configure: Likewise.
5214 * testsuite/Makefile.in: Likewise.
5216 2020-09-30 Andrew Stubbs <ams@codesourcery.com>
5218 * parallel.c (gomp_resolve_num_threads): Ignore nest_var on nvptx
5221 2020-09-30 Tobias Burnus <tobias@codesourcery.com>
5223 * testsuite/libgomp.fortran/declare-target-3.f90: New test.
5225 2020-09-29 Andrew Stubbs <ams@codesourcery.com>
5227 * config/gcn/bar.c (gomp_barrier_wait_end): Skip the barrier if the
5228 total number of threads is one.
5229 (gomp_team_barrier_wake): Likewise.
5230 (gomp_team_barrier_wait_end): Likewise.
5231 (gomp_team_barrier_wait_cancel_end): Likewise.
5232 * config/nvptx/bar.c (gomp_barrier_wait_end): Likewise.
5233 (gomp_team_barrier_wake): Likewise.
5234 (gomp_team_barrier_wait_end): Likewise.
5235 (gomp_team_barrier_wait_cancel_end): Likewise.
5236 * testsuite/libgomp.c-c++-common/nested-parallel-unbalanced.c: New test.
5238 2020-09-28 Tobias Burnus <tobias@codesourcery.com>
5241 * testsuite/libgomp.c++/pr96390.C: New test.
5242 * testsuite/libgomp.c-c++-common/pr96390.c: New test.
5244 2020-09-27 Clement Chigot <clement.chigot@atos.net>
5246 * config/t-aix: Use $(AR) without -X32_64.
5248 2020-09-25 Jakub Jelinek <jakub@redhat.com>
5250 * testsuite/libgomp.c/loop-25.c: New test.
5252 2020-09-22 Tobias Burnus <tobias@codesourcery.com>
5255 * testsuite/libgomp.fortran/pr66199-5.f90: Make stop codes unique.
5257 2020-09-22 Tom de Vries <tdevries@suse.de>
5259 * plugin/plugin-nvptx.c (link_ptx): Print elog if cuLinkComplete call
5262 2020-09-16 Nathan Sidwell <nathan@acm.org>
5264 * testsuite/libgomp.c++/udr-3.C: Add missing ctor.
5266 2020-09-15 Tobias Burnus <tobias@codesourcery.com>
5269 * target.c (gomp_map_vars_internal): Initialize has_nullptr.
5271 2020-09-15 Tobias Burnus <tobias@codesourcery.com>
5274 * libgomp.h (struct target_var_desc): Add has_null_ptr_assoc member.
5275 * target.c (gomp_map_vars_existing): Add always_to_flag flag.
5276 (gomp_map_vars_existing): Update call to it.
5277 (gomp_map_fields_existing): Likewise
5278 (gomp_map_vars_internal): Update PSET handling such that if a nullptr is
5279 now allocated or if GOMP_MAP_POINTER is used PSET is updated and pointer
5281 (GOMP_target_enter_exit_data): Hanlde GOMP_MAP_ALWAYS_POINTER like
5283 * testsuite/libgomp.fortran/map-alloc-ptr-1.f90: New test.
5284 * testsuite/libgomp.fortran/map-alloc-ptr-2.f90: New test.
5286 2020-09-14 Tom de Vries <tdevries@suse.de>
5288 * config/nvptx/atomic.c: New file. Add
5289 __sync_val_compare_and_swap_16.
5290 * testsuite/libgomp.c-c++-common/reduction-16.c: Add -latomic for
5291 target offload_target_nvptx.
5293 2020-09-08 Julian Brown <julian@codesourcery.com>
5295 * testsuite/libgomp.oacc-c-c++-common/atomic_capture-2.c: Remove
5296 iteration-ordering assumptions.
5298 2020-09-08 Julian Brown <julian@codesourcery.com>
5300 * testsuite/libgomp.oacc-fortran/collapse-1.f90: Fix race condition.
5301 * testsuite/libgomp.oacc-fortran/collapse-2.f90: Likewise.
5303 2020-08-20 Chung-Lin Tang <cltang@codesourcery.com>
5305 * plugin/plugin-nvptx.c (nvptx_free):
5306 Change "GOMP_PLUGIN_acc_thread () == NULL" test into check of
5307 CUDA_ERROR_NOT_PERMITTED status for cuMemGetAddressRange. Adjust
5310 2020-08-20 Tobias Burnus <tobias@codesourcery.com>
5312 * testsuite/libgomp.fortran/lastprivate-conditional-10.f90: New test.
5314 2020-08-13 Kwok Cheung Yeung <kcy@codesourcery.com>
5316 * testsuite/libgomp.c-c++-common/reduction-16.c: New.
5318 2020-08-13 Jakub Jelinek <jakub@redhat.com>
5320 * testsuite/libgomp.c/loop-22.c (main): Add some further tests.
5321 * testsuite/libgomp.c/loop-23.c (main): Likewise.
5322 * testsuite/libgomp.c/loop-24.c: New test.
5324 2020-08-08 Jakub Jelinek <jakub@redhat.com>
5325 Tobias Burnus <tobias@codesourcery.com>
5328 * testsuite/libgomp.fortran/pr93553.f90: New test.
5330 2020-08-05 Jakub Jelinek <jakub@redhat.com>
5332 * testsuite/libgomp.c/loop-22.c: New test.
5333 * testsuite/libgomp.c/loop-23.c: New test.
5335 2020-08-05 Jakub Jelinek <jakub@redhat.com>
5338 * testsuite/libgomp.c/teams-3.c: New test.
5339 * testsuite/libgomp.c-c++-common/for-2.h (OMPTEAMS): Define to nothing
5341 (N(test)): Use it before all N(f*) calls.
5342 * testsuite/libgomp.c-c++-common/for-14.c (DO_PRAGMA, OMPTEAMS): Define.
5343 (main): Don't call all test_* functions from within
5344 #pragma omp teams reduction(|:err), call them directly.
5346 2020-08-04 Tom de Vries <tdevries@suse.de>
5349 * testsuite/libgomp.oacc-fortran/pr96628-part1.f90: New test.
5350 * testsuite/libgomp.oacc-fortran/pr96628-part2.f90: New test.
5352 2020-08-03 Julian Brown <julian@codesourcery.com>
5353 Thomas Schwinge <thomas@codesourcery.com>
5355 * testsuite/libgomp.oacc-fortran/attach-descriptor-1.f90: Don't run for
5356 shared-memory devices. Extend with further checking.
5358 2020-08-03 Martin Jambor <mjambor@suse.cz>
5360 * plugin/Makefrag.am: Remove configuration of HSA plugin.
5361 * aclocal.m4: Regenerated.
5362 * Makefile.in: Regenerated.
5363 * config.h.in: Regenerated.
5364 * configure: Regenerated.
5365 * plugin/configfrag.ac: Likewise.
5366 * plugin/hsa_ext_finalize.h: Removed.
5367 * plugin/plugin-hsa.c: Likewise.
5368 * testsuite/Makefile.in: Regenerated.
5369 * testsuite/lib/libgomp.exp
5370 (offload_target_to_openacc_device_type): Remove hsa case.
5371 (check_effective_target_hsa_offloading_selected_nocache): Removed
5372 (check_effective_target_hsa_offloading_selected): Likewise.
5373 (libgomp_init): Do not add -Wno-hsa to additional_flags.
5374 * testsuite/libgomp.hsa.c/alloca-1.c: Removed test.
5375 * testsuite/libgomp.hsa.c/bitfield-1.c: Likewise.
5376 * testsuite/libgomp.hsa.c/bits-insns.c: Likewise.
5377 * testsuite/libgomp.hsa.c/builtins-1.c: Likewise.
5378 * testsuite/libgomp.hsa.c/c.exp: Likewise.
5379 * testsuite/libgomp.hsa.c/complex-1.c: Likewise.
5380 * testsuite/libgomp.hsa.c/complex-align-2.c: Likewise.
5381 * testsuite/libgomp.hsa.c/formal-actual-args-1.c: Likewise.
5382 * testsuite/libgomp.hsa.c/function-call-1.c: Likewise.
5383 * testsuite/libgomp.hsa.c/get-level-1.c: Likewise.
5384 * testsuite/libgomp.hsa.c/gridify-1.c: Likewise.
5385 * testsuite/libgomp.hsa.c/gridify-2.c: Likewise.
5386 * testsuite/libgomp.hsa.c/gridify-3.c: Likewise.
5387 * testsuite/libgomp.hsa.c/gridify-4.c: Likewise.
5388 * testsuite/libgomp.hsa.c/memory-operations-1.c: Likewise.
5389 * testsuite/libgomp.hsa.c/pr69568.c: Likewise.
5390 * testsuite/libgomp.hsa.c/pr82416.c: Likewise.
5391 * testsuite/libgomp.hsa.c/rotate-1.c: Likewise.
5392 * testsuite/libgomp.hsa.c/staticvar.c: Likewise.
5393 * testsuite/libgomp.hsa.c/switch-1.c: Likewise.
5394 * testsuite/libgomp.hsa.c/switch-branch-1.c: Likewise.
5395 * testsuite/libgomp.hsa.c/switch-sbr-2.c: Likewise.
5396 * testsuite/libgomp.hsa.c/tiling-1.c: Likewise.
5397 * testsuite/libgomp.hsa.c/tiling-2.c: Likewise.
5399 2020-07-27 Julian Brown <julian@codesourcery.com>
5400 Thomas Schwinge <thomas@codesourcery.com>
5402 * libgomp.h (struct target_var_desc): Rename do_detach field to
5404 * oacc-mem.c (goacc_exit_datum_1): Add assert. Don't set finalize for
5405 GOMP_MAP_FORCE_DETACH. Update checking to use is_attach field.
5406 (goacc_enter_data_internal): Don't affect reference counts
5407 for attach mappings.
5408 (goacc_exit_data_internal): Don't affect reference counts for detach
5410 * target.c (gomp_map_vars_existing): Don't affect reference counts for
5412 (gomp_map_vars_internal): Set renamed is_attach flag unconditionally to
5413 mark attach mappings.
5414 (gomp_unmap_vars_internal): Use is_attach flag to prevent affecting
5415 reference count for attach mappings.
5416 * testsuite/libgomp.oacc-c-c++-common/mdc-refcount-1.c: New test.
5417 * testsuite/libgomp.oacc-c-c++-common/mdc-refcount-2.c: New test.
5418 * testsuite/libgomp.oacc-c-c++-common/mdc-refcount-2.c: New test.
5419 * testsuite/libgomp.oacc-fortran/deep-copy-6-no_finalize.F90: Mark
5421 * testsuite/libgomp.oacc-fortran/deep-copy-6.f90: Adjust to fail
5422 gracefully in no-finalize mode.
5423 * testsuite/libgomp.oacc-c-c++-common/mdc-refcount-3.c: New file.
5425 2020-07-24 Thomas Schwinge <thomas@codesourcery.com>
5427 * testsuite/libgomp.oacc-c++/c++.exp: Unset 'offload_target' after
5429 * testsuite/libgomp.oacc-c/c.exp: Likewise.
5430 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
5432 2020-07-23 Julian Brown <julian@codesourcery.com>
5433 Thomas Schwinge <thomas@codesourcery.com>
5435 * target.c (gomp_unmap_vars_internal): Remove unnecessary forcing of
5436 finalization for detach operation.
5437 * testsuite/libgomp.oacc-c-c++-common/structured-detach-underflow.c:
5440 2020-07-23 Tobias Burnus <tobias@codesourcery.com>
5442 * configure.ac: Add OMP_DEPEND_KIND and OMP_INT128_SIZE.
5443 * libgomp_f.h.in (omp_check_defines): Check whether
5444 sizeof of determined Fortran kind and C typedef match.
5445 * omp_lib.f90.in: Add omp_depened_kind.
5446 * omp_lib.h.in: Likewise; fix omp_alloctrait_key_kind.
5447 * configure: Regenerate.
5448 * Makefile.in: Regenerate.
5449 * testsuite/Makefile.in: Regenerate.
5451 2020-07-22 Tobias Burnus <tobias@codesourcery.com>
5453 * testsuite/libgomp.c-c++-common/critical-hint-1.c: New; moved from
5454 gcc/testsuite/c-c++-common/gomp/.
5455 * testsuite/libgomp.c-c++-common/critical-hint-2.c: Likewise.
5456 * testsuite/libgomp.fortran/critical-hint-1.f90: New; moved
5457 from gcc/testsuite/gfortran.dg/gomp/.
5458 * testsuite/libgomp.fortran/critical-hint-2.f90: Likewise.
5460 2020-07-22 Tobias Burnus <tobias@codesourcery.com>
5462 * omp_lib.f90.in: Add omp_sync_hint_* and omp_sync_hint_kind.
5463 * omp_lib.h.in: Likewise.
5465 2020-07-18 H.J. Lu <hjl.tools@gmail.com>
5468 * testsuite/libgomp.c/pr95620.c: New test.
5470 2020-07-16 Julian Brown <julian@codesourcery.com>
5471 Thomas Schwinge <thomas@codesourcery.com>
5473 * testsuite/libgomp.oacc-fortran/attach-descriptor-1.f90: New test.
5474 * testsuite/libgomp.oacc-fortran/attach-descriptor-2.f90: New test.
5476 2020-07-15 Tobias Burnus <tobias@codesourcery.com>
5478 * testsuite/libgomp.fortran/alloc-1.F90: Use c_size_t to
5479 avoid conversion on 32bit systems from 32bit to 64bit due
5480 to -fdefault-integer-8.
5482 2020-07-15 Tobias Burnus <tobias@codesourcery.com>
5484 * testsuite/libgomp.fortran/struct-elem-map-1.f90: Remove unused
5485 variables; add character(kind=4) tests; update TODO comment.
5487 2020-07-15 Tobias Burnus <tobias@codesourcery.com>
5489 * allocator.c: Add ialias for omp_init_allocator and
5490 omp_destroy_allocator.
5491 * configure.ac: Set INTPTR_T_KIND.
5492 * configure: Regenerate.
5493 * Makefile.in: Regenerate.
5494 * testsuite/Makefile.in: Regenerate.
5495 * fortran.c (omp_init_allocator_, omp_destroy_allocator_,
5496 omp_set_default_allocator_, omp_get_default_allocator_): New
5497 functions and ialias_redirect.
5498 * icv.c: Add ialias for omp_set_default_allocator and
5499 omp_get_default_allocator.
5500 * libgomp.map (OMP_5.0.1): Add omp_init_allocator_,
5501 omp_destroy_allocator_, omp_set_default_allocator_ and
5502 omp_get_default_allocator_.
5503 * omp_lib.f90.in: Add allocator traits parameters, declare
5504 allocator routines and add related kind parameters.
5505 * omp_lib.h.in: Likewise.
5506 * testsuite/libgomp.c-c++-common/alloc-2.c: Fix sizeof.
5507 * testsuite/libgomp.fortran/alloc-1.F90: New test.
5508 * testsuite/libgomp.fortran/alloc-2.F90: New test.
5509 * testsuite/libgomp.fortran/alloc-3.F: New test.
5510 * testsuite/libgomp.fortran/alloc-4.f90: New test.
5511 * testsuite/libgomp.fortran/alloc-5.f90: New test.
5513 2020-07-14 Tom de Vries <tom@codesourcery.com>
5514 Cesar Philippidis <cesar@codesourcery.com>
5515 Thomas Schwinge <thomas@codesourcery.com>
5516 Kwok Cheung Yeung <kcy@codesourcery.com>
5518 * oacc-init.c (acc_init_state_lock, acc_init_state, acc_init_thread):
5520 (acc_init_1): Set acc_init_thread to pthread_self (). Set
5521 acc_init_state to initializing at the start, and to initialized at the
5523 (self_initializing_p): New function.
5524 (acc_get_device_type): Return acc_device_none if called by thread that
5525 is currently executing acc_init_1.
5526 * libgomp.texi (acc_get_device_type): Update documentation.
5527 (Implementation Status and Implementation-Defined Behavior): Likewise.
5528 * testsuite/libgomp.oacc-c-c++-common/acc_prof-init-2.c: New.
5530 2020-07-14 David Edelsohn <dje.gcc@gmail.com>
5532 * config/t-aix: Set BITS from compiler cpp macro.
5534 2020-07-14 Tobias Burnus <tobias@codesourcery.com>
5536 * testsuite/libgomp.fortran/struct-elem-map-1.f90: New test.
5538 2020-07-14 Tobias Burnus <tobias@codesourcery.com>
5541 * testsuite/libgomp.fortran/target-map-1.f90: New test.
5543 2020-07-14 Jakub Jelinek <jakub@redhat.com>
5545 * testsuite/libgomp.c/loop-21.c: New test.
5547 2020-07-13 Julian Brown <julian@codesourcery.com>
5548 Thomas Schwinge <thomas@codesourcery.com>
5550 * testsuite/libgomp.oacc-fortran/dynamic-pointer-1.f90: New test.
5552 2020-07-10 Julian Brown <julian@codesourcery.com>
5553 Thomas Schwinge <thomas@codesourcery.com>
5555 * libgomp.h (struct splay_tree_key_s): Change virtual_refcount to
5557 (struct gomp_device_descr): Remove GOMP_MAP_VARS_OPENACC_ENTER_DATA.
5558 * oacc-mem.c (acc_map_data): Substitute virtual_refcount for
5560 (acc_unmap_data): Update comment.
5561 (goacc_map_var_existing, goacc_enter_datum): Adjust for
5562 dynamic_refcount semantics.
5563 (goacc_exit_datum_1, goacc_exit_datum): Re-add some error checking.
5564 Adjust for dynamic_refcount semantics.
5565 (goacc_enter_data_internal): Implement "present" case of dynamic
5566 memory-map handling here. Update "non-present" case for
5567 dynamic_refcount semantics.
5568 (goacc_exit_data_internal): Use goacc_exit_datum_1.
5569 * target.c (gomp_map_vars_internal): Remove
5570 GOMP_MAP_VARS_OPENACC_ENTER_DATA handling. Update for dynamic_refcount
5572 (gomp_unmap_vars_internal): Remove virtual_refcount handling.
5573 (gomp_load_image_to_device): Substitute dynamic_refcount for
5575 * testsuite/libgomp.oacc-c-c++-common/pr92843-1.c: Remove XFAILs.
5576 * testsuite/libgomp.oacc-c-c++-common/refcounting-1.c: New test.
5577 * testsuite/libgomp.oacc-c-c++-common/refcounting-2.c: New test.
5578 * testsuite/libgomp.oacc-c-c++-common/struct-3-1-1.c: New test.
5579 * testsuite/libgomp.oacc-fortran/deep-copy-6.f90: Remove XFAILs and
5581 * testsuite/libgomp.oacc-fortran/deep-copy-6-no_finalize.F90: Remove
5583 * testsuite/libgomp.oacc-fortran/dynamic-incr-structural-1.f90: New
5585 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-4.c:
5586 Remove stale comment.
5587 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-1-1.f90: Remove XFAILs.
5588 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-1-2.F90: Likewise.
5589 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-2-1.f90: Likewise.
5590 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-2-2.f90: Likewise.
5591 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-3-1.f90: Likewise.
5592 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-4-1.f90: Adjust XFAIL.
5594 2020-07-10 Julian Brown <julian@codesourcery.com>
5595 Thomas Schwinge <thomas@codesourcery.com>
5597 * oacc-mem.c (goacc_map_var_existing): New function.
5598 (goacc_enter_datum): Use above function.
5599 (goacc_exit_datum_1): New function.
5600 (goacc_exit_datum): Use above function.
5602 2020-07-09 Julian Brown <julian@codesourcery.com>
5603 Thomas Schwinge <thomas@codesourcery.com>
5606 * testsuite/libgomp.oacc-c-c++-common/pr95270-1.c: New test.
5607 * testsuite/libgomp.oacc-c-c++-common/pr95270-2.c: New test.
5609 2020-07-09 Julian Brown <julian@codesourcery.com>
5611 * oacc-mem.c (find_group_last): Group data-movement clauses
5612 (GOMP_MAP_TO_PSET, GOMP_MAP_TO, etc.) together with a subsequent
5613 GOMP_MAP_ATTACH. Allow standalone GOMP_MAP_ATTACH also.
5615 2020-07-09 Jakub Jelinek <jakub@redhat.com>
5617 * testsuite/libgomp.c/loop-19.c: New test.
5618 * testsuite/libgomp.c/loop-20.c: New test.
5620 2020-07-09 Jakub Jelinek <jakub@redhat.com>
5622 * omp.h.in (omp_alloctrait_value_t): Change omp_atv_default from
5623 2 to -1. Add omp_atv_serialized and define omp_atv_sequential using
5624 it. Remove __omp_alloctrait_value_max__.
5625 * allocator.c (omp_init_allocator): Handle omp_atv_default for
5626 omp_atk_alignment and omp_atk_pool_size.
5628 2020-07-03 Thomas Schwinge <thomas@codesourcery.com>
5630 * oacc-mem.c (goacc_exit_data_internal): Revert always-copyfrom
5631 behavior for 'GOMP_MAP_FORCE_FROM'.
5632 * testsuite/libgomp.oacc-c-c++-common/pr92843-1.c: Adjust XFAIL.
5634 2020-07-03 Thomas Schwinge <thomas@codesourcery.com>
5636 * oacc-mem.c (goacc_exit_data_internal): Remove
5637 'GOMP_MAP_ALWAYS_FROM' handling.
5639 2020-06-30 Thomas Schwinge <thomas@codesourcery.com>
5641 * testsuite/libgomp.oacc-c-c++-common/pr85381-2.c: Replace fragile
5642 'scan-assembler' with 'scan-offload-rtl'.
5643 * testsuite/libgomp.oacc-c-c++-common/pr85381-3.c: Likewise.
5644 * testsuite/libgomp.oacc-c-c++-common/pr85381-4.c: Likewise.
5645 * testsuite/libgomp.oacc-c-c++-common/pr85381-5.c: Likewise.
5646 * testsuite/libgomp.oacc-c-c++-common/pr85381.c: Likewise.
5648 2020-06-30 Thomas Schwinge <thomas@codesourcery.com>
5650 * target.c (gomp_map_vars_existing): Assert 'kind !=
5652 (gomp_map_vars_internal): Clean up.
5654 2020-06-27 Jakub Jelinek <jakub@redhat.com>
5656 * testsuite/libgomp.c/loop-17.c: New test.
5657 * testsuite/libgomp.c/loop-18.c: New test.
5659 2020-06-26 Marek Polacek <polacek@redhat.com>
5661 * testsuite/libgomp.c++/atomic-3.C: Use -std=gnu++14.
5663 2020-06-23 Alexandre Oliva <oliva@adacore.com>
5665 * testsuite/lib/libgomp.exp: Load gcc lib scanoffload.exp.
5666 * testsuite/lib/libgomp-dg.exp: Drop now-obsolete -save-temps.
5668 2020-06-22 David Edelsohn <dje.gcc@gmail.com>
5670 * Makefile.am: Use -include.
5671 * Makefile.in: Regenerate.
5673 2020-06-21 David Edelsohn <dje.gcc@gmail.com>
5675 * Makefile.am (tmake_file): Build and install AIX-style FAT libraries.
5676 * Makefile.in: Regenerate
5677 * configure.ac (tmake_file): Substitute.
5678 * configure: Regenerate.
5679 * configure.tgt (powerpc-ibm-aix*): Define tmake_file.
5680 * config/t-aix: New file.
5682 2020-06-17 Thomas Schwinge <thomas@codesourcery.com>
5685 * testsuite/libgomp.fortran/use_device_ptr-optional-3.f90: Add
5688 2020-06-17 Andrew Stubbs <ams@codesourcery.com>
5690 * plugin/plugin-gcn.c (init_environment_variables): Use ".so.1"
5691 variant for HSA_RUNTIME_LIB name.
5692 (find_executable_symbol_1): Delete.
5693 (find_executable_symbol): Delete.
5694 (init_kernel_properties): Add ".kd" suffix to symbol names.
5695 (find_load_offset): Delete.
5696 (create_and_finalize_hsa_program): Remove relocation handling.
5698 2020-06-16 Tobias Burnus <tobias@codesourcery.com>
5700 * testsuite/libgomp.oacc-fortran/routine-10.f90: New test.
5702 2020-06-08 Tobias Burnus <tobias@codesourcery.com>
5706 * testsuite/libgomp.fortran/target-var.f90: New test.
5708 2020-06-05 Thomas Schwinge <thomas@codesourcery.com>
5709 Julian Brown <julian@codesourcery.com>
5711 * oacc-mem.c (goacc_exit_data_internal) <GOMP_MAP_STRUCT>: Explain
5714 2020-06-05 Thomas Schwinge <thomas@codesourcery.com>
5715 Julian Brown <julian@codesourcery.com>
5717 * oacc-mem.c (goacc_exit_data_internal) <GOMP_MAP_STRUCT>:
5720 2020-06-05 Julian Brown <julian@codesourcery.com>
5722 * testsuite/libgomp.oacc-c-c++-common/struct-copyout-1.c: New test.
5723 * testsuite/libgomp.oacc-c-c++-common/struct-copyout-2.c: New test.
5725 2020-06-04 Thomas Schwinge <thomas@codesourcery.com>
5727 * oacc-mem.c (goacc_exit_data_internal) <GOMP_MAP_STRUCT>:
5728 Evaluate 'copyfrom' individually for each entry.
5729 * testsuite/libgomp.oacc-c-c++-common/struct-1.c: Update.
5731 2020-06-04 Thomas Schwinge <thomas@codesourcery.com>
5733 * oacc-mem.c (goacc_exit_data_internal) <GOMP_MAP_STRUCT>:
5734 Evaluate 'finalize' individually for each entry.
5735 * testsuite/libgomp.oacc-c-c++-common/struct-1.c: New file.
5736 * testsuite/libgomp.oacc-c-c++-common/struct-refcount-1.c: Remove
5739 2020-06-04 Thomas Schwinge <thomas@codesourcery.com>
5741 * testsuite/libgomp.oacc-c-c++-common/deep-copy-7.c: Fix 'sizeof'
5743 * testsuite/libgomp.oacc-c-c++-common/deep-copy-8.c: Likewise.
5745 2020-06-04 Thomas Schwinge <thomas@codesourcery.com>
5746 Julian Brown <julian@codesourcery.com>
5748 * oacc-mem.c (goacc_exit_datum): Repair 'is_tgt_unmapped'
5750 (acc_unmap_data, goacc_exit_data_internal): Restore
5751 'is_tgt_unmapped' checking.
5752 * testsuite/libgomp.oacc-c-c++-common/struct-refcount-1.c: New
5754 * testsuite/libgomp.oacc-fortran/deep-copy-6.f90: Adjust.
5755 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-1-1.f90: Likewise.
5756 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-2-1.f90: Likewise.
5757 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-2-2.f90: Likewise.
5758 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-3-1.f90: Likewise.
5759 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-4-1.f90: Likewise.
5761 2020-06-04 Thomas Schwinge <thomas@codesourcery.com>
5762 Julian Brown <julian@codesourcery.com>
5764 * oacc-mem.c (acc_unmap_data): Don't open-code 'gomp_remove_var'.
5766 2020-06-04 Thomas Schwinge <thomas@codesourcery.com>
5769 * oacc-mem.c (acc_unmap_data): Remove 'tgt' reference counting.
5771 2020-06-04 Thomas Schwinge <thomas@codesourcery.com>
5774 * testsuite/libgomp.oacc-c-c++-common/pr92854-1.c: Extend some
5777 2020-06-04 Thomas Schwinge <thomas@codesourcery.com>
5778 Julian Brown <julian@codesourcery.com>
5780 * oacc-mem.c (goacc_enter_datum): Use 'tgt' returned from
5782 (acc_map_data): Clean up accordingly.
5784 2020-06-04 Thomas Schwinge <thomas@codesourcery.com>
5786 * testsuite/libgomp.oacc-fortran/deep-copy-6.f90: XFAIL behavior
5787 of over-eager 'finalize' clause.
5788 * testsuite/libgomp.oacc-fortran/deep-copy-6-no_finalize.F90: New
5790 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-1-1.f90: Likewise.
5791 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-1-2.F90: Likewise.
5792 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-2-1.f90: Likewise.
5793 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-2-2.f90: Likewise.
5794 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-3-1.f90: Likewise.
5795 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-3-2.f90: Likewise.
5796 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-4-1.f90: Likewise.
5797 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-4-2.f90: Likewise.
5799 2020-06-04 Thomas Schwinge <thomas@codesourcery.com>
5801 * oacc-mem.c (goacc_exit_data_internal): Unlock on error path.
5803 2020-06-04 Julian Brown <julian@codesourcery.com>
5805 * oacc-mem.c (acc_attach_async): Add missing gomp_mutex_unlock on
5807 (goacc_detach_internal): Likewise.
5809 2020-06-04 Thomas Schwinge <thomas@codesourcery.com>
5811 * testsuite/libgomp.oacc-fortran/error_stop-1.f: Initialize before
5813 * testsuite/libgomp.oacc-fortran/error_stop-2.f: Likewise.
5814 * testsuite/libgomp.oacc-fortran/error_stop-3.f: Likewise.
5815 * testsuite/libgomp.oacc-fortran/stop-1.f: Likewise.
5816 * testsuite/libgomp.oacc-fortran/stop-2.f: Likewise.
5817 * testsuite/libgomp.oacc-fortran/stop-3.f: Likewise.
5819 2020-06-02 Jakub Jelinek <jakub@redhat.com>
5821 * allocator.c (omp_free): Fix up build if HAVE_SYNC_BUILTINS is not
5824 2020-05-30 Jakub Jelinek <jakub@redhat.com>
5826 * testsuite/libgomp.c-c++-common/alloc-4.c: New test.
5828 2020-05-30 Jakub Jelinek <jakub@redhat.com>
5830 * allocator.c (omp_alloc): For size == 0, return NULL early.
5832 2020-05-29 H.J. Lu <hjl.tools@gmail.com>
5835 * configure: Regenerated.
5837 2020-05-23 Thomas Koenig <tkoenig@gcc.gnu.org>
5840 * testsuite/libgomp.fortran/async_io_9.f90: New test.
5842 2020-05-19 Jakub Jelinek <jakub@redhat.com>
5844 * omp.h.in (omp_uintptr_t): New typedef.
5845 (__GOMP_UINTPTR_T_ENUM): Define.
5846 (omp_memspace_handle_t, omp_allocator_handle_t, omp_alloctrait_key_t,
5847 omp_alloctrait_value_t, omp_alloctrait_t): New typedefs.
5848 (__GOMP_DEFAULT_NULL_ALLOCATOR): Define.
5849 (omp_init_allocator, omp_destroy_allocator, omp_set_default_allocator,
5850 omp_get_default_allocator, omp_alloc, omp_free): Declare.
5851 * libgomp.h (struct gomp_team_state): Add def_allocator field.
5852 (gomp_def_allocator): Declare.
5853 * libgomp.map (OMP_5.0.1): Export omp_set_default_allocator,
5854 omp_get_default_allocator, omp_init_allocator, omp_destroy_allocator,
5855 omp_alloc and omp_free.
5856 * team.c (gomp_team_start): Copy over ts.def_allocator.
5857 * env.c (gomp_def_allocator): New variable.
5858 (parse_wait_policy): Adjust function comment.
5859 (parse_allocator): New function.
5860 (handle_omp_display_env): Print OMP_ALLOCATOR.
5861 (initialize_env): Call parse_allocator.
5862 * Makefile.am (libgomp_la_SOURCES): Add allocator.c.
5863 * allocator.c: New file.
5864 * icv.c (omp_set_default_allocator, omp_get_default_allocator): New
5866 * testsuite/libgomp.c-c++-common/alloc-1.c: New test.
5867 * testsuite/libgomp.c-c++-common/alloc-2.c: New test.
5868 * testsuite/libgomp.c-c++-common/alloc-3.c: New test.
5869 * Makefile.in: Regenerated.
5871 2020-05-15 H.J. Lu <hongjiu.lu@intel.com>
5874 * configure: Regenerated.
5876 2020-05-14 Thomas Koenig <tkoenig@gcc.gnu.org>
5879 * testsuite/libgomp.fortran/close_errors_1.f90: New test.
5881 2020-05-14 H.J. Lu <hongjiu.lu@intel.com>
5883 * configure: Regenerated.
5885 2020-05-14 Jakub Jelinek <jakub@redhat.com>
5887 * testsuite/libgomp.c-c++-common/target-40.c: New test.
5889 2020-05-13 Tobias Burnus <tobias@codesourcery.com>
5892 * testsuite/libgomp.fortran/pr66199-3.f90: New.
5893 * testsuite/libgomp.fortran/pr66199-4.f90: New.
5894 * testsuite/libgomp.fortran/pr66199-5.f90: New.
5895 * testsuite/libgomp.fortran/pr66199-6.f90: New.
5896 * testsuite/libgomp.fortran/pr66199-7.f90: New.
5897 * testsuite/libgomp.fortran/pr66199-8.f90: New.
5898 * testsuite/libgomp.fortran/pr66199-9.f90: New.
5900 2020-05-12 Jakub Jelinek <jakub@redhat.com>
5902 * testsuite/libgomp.c/target-39.c: New test.
5904 2020-04-29 Thomas Schwinge <thomas@codesourcery.com>
5906 * config/accel/openacc.f90 (acc_device_current): Set to '-1'.
5907 * openacc.f90 (acc_device_current): Likewise.
5908 * openacc.h (acc_device_current): Likewise.
5909 * openacc_lib.h (acc_device_current): Likewise.
5912 * testsuite/libgomp.c-c++-common/function-not-offloaded.c: Remove
5913 'dg-allow-blank-lines-in-output'.
5915 * oacc-init.c (get_openacc_name): Handle 'gcn'.
5916 * testsuite/lib/libgomp.exp
5917 (offload_target_to_openacc_device_type) [amdgcn*]: Return
5918 'radeon'. Adjust all users.
5919 (check_effective_target_openacc_amdgcn_accel_present): Rename
5921 (check_effective_target_openacc_radeon_accel_present): ... this.
5923 (check_effective_target_openacc_amdgcn_accel_selected): Rename to...
5924 (check_effective_target_openacc_radeon_accel_selected): ... this.
5927 * testsuite/libgomp.fortran/use_device_ptr-optional-2.f90: Add
5930 2020-04-23 Andrew Stubbs <ams@codesourcery.com>
5934 * plugin/plugin-gcn.c (init_hsa_context): Check return value from
5936 (GOMP_OFFLOAD_init_device): Check return values from both calls to
5937 hsa_agent_iterate_regions.
5939 2020-04-20 Thomas Schwinge <thomas@codesourcery.com>
5942 * testsuite/libgomp.fortran/target-enter-data-2.F90: Add 'dg-do
5945 2020-04-20 Tobias Burnus <tobias@codesourcery.com>
5948 * testsuite/libgomp.oacc-c++/declare-pr94120.C: Fix 'declare copy(out)'
5951 2020-04-17 Tobias Burnus <tobias@codesourcery.com>
5954 * testsuite/libgomp.fortran/target-enter-data-2.F90: New.
5956 2020-04-13 Thomas Schwinge <thomas@codesourcery.com>
5959 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-1-lib.c:
5961 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-1-lib.c:
5963 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-1.c:
5965 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-1.c:
5967 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-2-lib.c:
5969 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-2-lib.c:
5971 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-2.c:
5973 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-2.c:
5975 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-3-lib.c:
5977 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-3-lib.c:
5979 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-3.c:
5981 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-3.c:
5983 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-4-lib.c:
5985 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-4-lib.c:
5987 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-4.c:
5989 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-4.c:
5991 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-5-lib.c:
5993 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-5-lib.c:
5995 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-5.c:
5997 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-5.c:
5999 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-6-lib.c:
6001 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-6-lib.c:
6003 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-6.c:
6005 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-6.c:
6007 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-7-lib.c:
6009 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-7-lib.c:
6011 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-7.c:
6013 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-7.c:
6015 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-8-lib.c:
6017 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-8-lib.c:
6019 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-8.c::
6021 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-8.c:
6024 2020-04-10 Julian Brown <julian@codesourcery.com>
6025 Thomas Schwinge <thomas@codesourcery.com>
6028 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-1-lib.c:
6030 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-1.c:
6032 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-2-lib.c:
6034 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-2.c:
6036 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-3-lib.c:
6038 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-3.c:
6040 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-4-lib.c:
6042 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-4.c:
6044 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-5-lib.c:
6046 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-5.c:
6048 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-6-lib.c:
6050 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-6.c:
6052 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-7-lib.c:
6054 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-7.c:
6056 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-8-lib.c:
6058 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-8.c:
6061 2020-04-10 Thomas Schwinge <thomas@codesourcery.com>
6063 * testsuite/libgomp.fortran/target-enter-data-1.f90: Add 'dg-do
6066 2020-04-08 Tobias Burnus <tobias@codesourcery.com>
6069 * libgomp.oacc-c++/declare-pr94120.C: New.
6071 2020-04-06 Maciej W. Rozycki <macro@wdc.com>
6073 * configure.ac: Add testsuite/libgomp-site-extra.exp to output
6075 * configure: Regenerate.
6076 * testsuite/libgomp-site-extra.exp.in: New file.
6077 * testsuite/libgomp-test-support.exp.in (GCC_UNDER_TEST): Remove
6079 * testsuite/Makefile.am (EXTRA_DEJAGNU_SITE_CONFIG): New
6081 * testsuite/Makefile.in: Regenerate.
6083 2020-04-03 Thomas Schwinge <thomas@codesourcery.com>
6085 PR tree-optimization/89713
6087 * testsuite/libgomp.oacc-c-c++-common/pr85381-2.c: Again expect
6089 * testsuite/libgomp.oacc-c-c++-common/pr85381-4.c: Likewise.
6091 2020-03-31 Tobias Burnus <tobias@codesourcery.com>
6093 * target.c (GOMP_target_enter_exit_data): Handle PSET/MAP_POINTER.
6094 * testsuite/libgomp.fortran/target-enter-data-1.f90: New.
6096 2020-03-24 Tobias Burnus <tobias@codesourcery.com>
6099 * testsuite/libgomp.c/target-link-1.c: Remove xfail.
6101 2020-03-20 Tobias Burnus <tobias@codesourcery.com>
6104 * target.c (gomp_load_image_to_device): Fix link
6107 2020-03-19 Jakub Jelinek <jakub@redhat.com>
6110 * testsuite/libgomp.c++/pr93931.C: New test.
6112 2020-03-19 Tobias Burnus <tobias@codesourcery.com>
6114 * testsuite/libgomp.c-c++-common/function-not-offloaded.c: Add
6115 dg-allow-blank-lines-in-output.
6117 2020-03-18 Julian Brown <julian@codesourcery.com>
6118 Tobias Burnus <tobias@codesourcery.com>
6120 * testsuite/libgomp.oacc-fortran/atomic_capture-1.f90: Really make
6121 it work concurrently.
6123 2020-03-18 Tobias Burnus <tobias@codesourcery.com>
6125 * testsuite/libgomp.oacc-c++/firstprivate-mappings-1.C: Add
6126 #define DO_LONG_DOUBLE; set to 1, except for nvidia + gcn.
6127 * libgomp.oacc-c-c++-common/firstprivate-mappings-1.c: Likewise.
6129 2020-03-14 Jakub Jelinek <jakub@redhat.com>
6132 * testsuite/libgomp.c/pr93566.c: New test.
6134 2020-02-21 Frederik Harwath <frederik@codesourcery.com>
6136 * testsuite/libgomp.oacc-fortran/acc_get_property.f90: Adapt to
6137 changes from 2020-02-19, i.e. use integer(c_size_t) instead of
6138 integer(acc_device_property) for the type of the return value of
6141 2020-02-19 Tobias Burnus <tobias@codesourcery.com>
6143 * .gitattributes: New; whitespace handling for Fortran's openacc_lib.h.
6144 * config/accel/openacc.f90 (openacc_kinds): Add acc_device_current.
6145 (openacc_internal, acc_on_device_h): Fix argument name; minor cleanup.
6146 * libgomp.texi (Enabling OpenACC): No longer mark as experimental.
6147 (acc_set_device_num): Fix Fortran argument name, use same name for C.
6148 (acc_get_property): Update Fortran interface to post-OpenACC 3.0
6149 corrections; add note about the previous interface and named constant.
6150 (OpenACC library and environment variables): Fix two typos.
6151 * openacc.f90: Use for all procedures the argument names from the spec
6152 as for …_h they are user visible.
6153 (openacc_kinds): Rename acc_device_property to
6154 acc_device_property_kinds and change value to int32 ; and update users.
6155 Re-add acc_device_property for for backward compatibility.
6156 (acc_get_property_string_h): Clean up as acc_device_property_kind
6158 (acc_get_property_h): Likewise and return c_size_t instead of
6159 acc_device_property.
6160 (openacc): Also export acc_device_property_kinds.
6161 (acc_async_test_h, acc_async_test_all_h, acc_on_device_h,
6162 acc_is_present_32_h, acc_is_present_64_h): Simplify logical-return-value
6163 handling; check against /= 0 instead of == 1 to match C.
6164 * openacc_lib.h: Use for all procedures the argument names from the spec
6165 as for …_h they are user visible. Place !GCC$ into the first column to
6166 be active also for fixed-form souce form.
6167 (acc_device_current, acc_device_property_kind, acc_device_property,
6168 acc_property_memory, acc_property_free_memory, acc_property_name,
6169 acc_property_vendor, acc_property_driver): New named constants.
6170 (acc_get_property, acc_get_property_string): New generic interface.
6172 2020-02-13 Frederik Harwath <frederik@codesourcery.com>
6175 * plugin/plugin-nvptx.c: Remove GOMP_OFFLOAD_async_run stub.
6176 * target.c (gomp_load_plugin_for_device): Make "async_run" loading
6178 (gomp_target_task_fn): Assert "devicep->async_run_func".
6179 (clear_unsupported_flags): New function to remove unsupported flags
6180 (right now only GOMP_TARGET_FLAG_NOWAIT) that can be be ignored.
6181 (GOMP_target_ext): Apply clear_unsupported_flags to flags.
6182 * testsuite/libgomp.c/target-33.c:
6183 Remove xfail for offload_target_nvptx.
6184 * testsuite/libgomp.c/target-34.c: Likewise.
6186 2020-02-10 Frederik Harwath <frederik@codesourcery.com>
6188 * testsuite/libgomp.c/target-33.c: Add xfail for execution on
6189 offload_target_nvptx, cf. https://gcc.gnu.org/PR81688.
6190 * testsuite/libgomp.c/target-34.c: Likewise.
6191 * testsuite/libgomp.c/target-link-1.c: Add xfail for
6192 offload_target_nvptx, cf. https://gcc.gnu.org/PR81689.
6194 2020-02-09 Jakub Jelinek <jakub@redhat.com>
6196 * testsuite/libgomp.c/target-38.c: New test.
6198 2020-02-06 Jakub Jelinek <jakub@redhat.com>
6201 * testsuite/libgomp.c-c++-common/pr93515.c: New test.
6203 2020-02-05 Tobias Burnus <tobias@codesourcery.com>
6205 * testsuite/lib/libgomp.exp
6206 (check_effective_target_offload_target_nvptx): Pass flags as 'options'
6207 and not as 'source' argument to libgomp_target_compile.
6209 2020-02-03 Andrew Stubbs <ams@codesourcery.com>
6211 * plugin/plugin-gcn.c (EF_AMDGPU_MACH_AMDGCN_GFX801): Remove.
6212 (gcn_gfx801_s): Remove.
6213 (isa_hsa_name): Remove gfx801.
6214 (isa_gcc_name): Remove gfx801/carizzo.
6215 (isa_code): Remove gfx801.
6217 2020-02-03 Julian Brown <julian@codesourcery.com>
6218 Tobias Burnus <tobias@codesourcery.com>
6220 * libgomp.texi (OpenACC Runtime Library Routines): Document *_async
6221 and *_finalize variants; document acc_attach and acc_detach; update
6222 references from OpenACC 2.0 to 2.6.
6223 * openacc.f90 (openacc_version): Update to 201711.
6224 * openacc_lib.h (openacc_version): Update to 201711.
6225 * testsuite/libgomp.oacc-fortran/openacc_version-1.f: Update expected
6226 openacc_version to 201711.
6227 * testsuite/libgomp.oacc-fortran/openacc_version-2.f90: Likewise.
6229 2020-01-31 Kwok Cheung Yeung <kcy@codesourcery.com>
6231 * plugin/plugin-gcn.c (struct hsa_kernel_description): Add sgpr_count
6232 and vgpr_count fields.
6233 (struct kernel_info): Add a field for a hsa_kernel_description.
6234 (run_kernel): Reduce the number of threads/workers if the requested
6235 number would require too many VGPRs.
6236 (init_basic_kernel_info): Initialize description field with
6237 the hsa_kernel_description entry for the kernel.
6239 2020-01-29 Tobias Burnus <tobias@codesourcery.com>
6242 * plugin/configfrag.ac (enable_offload_targets): Skip
6243 HSA and GCN plugin besides -m32 also for -mx32.
6244 * configure: Regenerate.
6246 2020-01-29 Frederik Harwath <frederik@codesourcery.com>
6248 * oacc-init.c (name_of_acc_device_t): Handle acc_device_radeon.
6250 2020-01-29 Frederik Harwath <frederik@codesourcery.com>
6252 * plugin-gcn.c (struct agent_info): Add fields "name" and
6254 (GOMP_OFFLOAD_init_device): ... and init from here.
6255 (struct hsa_context_info): Add field "driver_version_s" ...
6256 (init_hsa_contest): ... and init from here.
6257 (GOMP_OFFLOAD_openacc_get_property): Replace stub with a proper
6259 * testsuite/libgomp.oacc-c-c++-common/acc_get_property.c:
6260 Enable test execution for amdgcn and host offloading targets.
6261 * testsuite/libgomp.oacc-fortran/acc_get_property.f90: Likewise.
6262 * testsuite/libgomp.oacc-c-c++-common/acc_get_property-aux.c
6263 (expect_device_properties): Split function into ...
6264 (expect_device_string_properties): ... this new function ...
6265 (expect_device_memory): ... and this new function.
6266 * testsuite/libgomp.oacc-c-c++-common/acc_get_property-gcn.c:
6269 2020-01-28 Julian Brown <julian@codesourcery.com>
6271 * testsuite/libgomp.oacc-fortran/deep-copy-2.f90: Remove test from here.
6272 * testsuite/libgomp.oacc-fortran/deep-copy-3.f90: Don't use mixed
6273 component/non-component variable refs in a single directive.
6274 * testsuite/libgomp.oacc-fortran/classtypes-1.f95: Likewise.
6276 2020-01-24 Maciej W. Rozycki <macro@wdc.com>
6278 * configure.ac: Handle `--with-toolexeclibdir='.
6279 * Makefile.in: Regenerate.
6280 * aclocal.m4: Regenerate.
6281 * configure: Regenerate.
6282 * testsuite/Makefile.in: Regenerate.
6284 2020-01-24 Frederik Harwath <frederik@codesourcery.com>
6286 * testsuite/libgomp.oacc-c-c++-common/acc_get_property-aux.c
6287 (expect_device_properties): Remove "expected_free_mem" argument,
6288 change "expected_total_mem" argument type to size_t;
6289 change types of acc_get_property results to size_t,
6290 adapt format strings.
6291 * testsuite/libgomp.oacc-c-c++-common/acc_get_property.c:
6292 Use %zu instead of %zd to print size_t values.
6293 * testsuite/libgomp.oacc-c-c++-common/acc_get_property-2.c: Adapt and
6295 * testsuite/libgomp.oacc-c-c++-common/acc_get_property-nvptx.c: ... this.
6296 * testsuite/libgomp.oacc-c-c++-common/acc_get_property-3.c: Adapt and
6298 * testsuite/libgomp.oacc-c-c++-common/acc_get_property-host.c: ... this.
6300 2020-01-23 Andrew Stubbs <ams@codesourcery.com>
6302 * plugin/plugin-gcn.c (parse_target_attributes): Use correct mask for
6305 2020-01-20 Andrew Stubbs <ams@codesourcery.com>
6307 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Skip test on gcn.
6308 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c (main):
6309 Adjust test dimensions for amdgcn.
6310 * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c (main): Adjust
6311 gang/worker/vector expectations dynamically.
6312 * testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c
6314 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c (main): Likewise.
6315 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c (main): Likewise.
6316 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c (main): Likewise.
6317 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c (main): Likewise.
6318 * testsuite/libgomp.oacc-c-c++-common/loop-red-wv-1.c (main): Likewise.
6319 * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c (main): Likewise.
6320 * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c (main): Likewise.
6321 * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c (main): Likewise.
6322 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c
6323 (acc_gang): Recognise acc_device_radeon.
6324 (acc_worker): Likewise.
6325 (acc_vector): Likewise.
6326 (main): Set expectations for amdgcn.
6327 * testsuite/libgomp.oacc-c-c++-common/routine-gwv-1.c
6328 (main): Adjust gang/worker/vector expectations dynamically.
6329 * testsuite/libgomp.oacc-c-c++-common/routine-v-1.c (main): Likewise.
6330 * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c (main): Likewise.
6331 * testsuite/libgomp.oacc-c-c++-common/routine-wv-1.c (main): Likewise.
6332 * testsuite/libgomp.oacc-c-c++-common/routine-wv-2.c: Set expectations
6335 2020-01-17 Andrew Stubbs <ams@codesourcery.com>
6337 * config/accel/openacc.f90 (openacc_kinds): Rename acc_device_gcn to
6339 (openacc): Likewise.
6340 * openacc.f90 (openacc_kinds): Likewise.
6341 (openacc): Likewise.
6342 * openacc.h (acc_device_t): Likewise.
6343 * openacc_lib.h: Likewise.
6344 * testsuite/lib/libgomp.exp
6345 (check_effective_target_openacc_amdgcn_accel_present): Likewise.
6346 * testsuite/libgomp.oacc-c-c++-common/acc_prof-init-1.c
6347 (cb_compute_construct_end): Likewise.
6348 * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c
6349 (cb_enqueue_launch_start): Likewise.
6350 * testsuite/libgomp.oacc-c-c++-common/acc_prof-parallel-1.c
6351 (cb_enter_data_end): Likewise.
6352 (cb_exit_data_start): Likewise.
6353 (cb_exit_data_end): Likewise.
6354 (cb_compute_construct_end): Likewise.
6355 (cb_enqueue_launch_start): Likewise.
6356 (cb_enqueue_launch_end): Likewise.
6357 * testsuite/libgomp.oacc-c-c++-common/asyncwait-nop-1.c
6360 2020-01-10 Thomas Schwinge <thomas@codesourcery.com>
6362 * libgomp-plugin.h (enum goacc_property): New. Adjust all users
6363 to use this instead of 'enum gomp_device_property'.
6364 (GOMP_OFFLOAD_get_property): Rename to...
6365 (GOMP_OFFLOAD_openacc_get_property): ... this. Adjust all users.
6366 * libgomp.h (struct gomp_device_descr): Move
6367 'GOMP_OFFLOAD_openacc_get_property'...
6368 (struct acc_dispatch_t): ... here. Adjust all users.
6369 * plugin/plugin-hsa.c (GOMP_OFFLOAD_get_property): Remove.
6371 * target.c (gomp_map_vars_internal)
6372 <GOMP_MAP_USE_DEVICE_PTR_IF_PRESENT>: Clean up/elaborate code
6375 2020-01-10 Jakub Jelinek <jakub@redhat.com>
6378 * libgomp.h (gomp_print_string): Change return type from void to int.
6379 * affinity-fmt.c (gomp_print_string): Likewise. Return true if
6380 not all characters have been written.
6382 2020-01-08 Tobias Burnus <tobias@codesourcery.com>
6384 * libgomp.texi: Fix typos, use https.
6386 2020-01-03 Tobias Burnus <tobias@codesourcery.com>
6388 * testsuite/libgomp.fortran/optional-map.f90: Add test for
6389 unallocated/disassociated actual arguments to nonallocatable/nonpointer
6390 dummy arguments; those are/shall be regarded as absent arguments.
6391 * testsuite/libgomp.fortran/use_device_ptr-optional-2.f90: Ditto.
6392 * testsuite/libgomp.fortran/use_device_ptr-optional-3.f90: New.
6394 2020-01-01 Jakub Jelinek <jakub@redhat.com>
6396 Update copyright years.
6398 * libgomp.texi: Bump @copying's copyright year.
6400 2019-12-31 Ayush Mittal <ayush.m@samsung.com>
6403 * oacc-init.c (goacc_runtime_deinitialize): New function.
6405 2019-12-28 Jakub Jelinek <jakub@redhat.com>
6408 * plugin/cuda/cuda.h (cuDeviceGetName, cuDriverGetVersion): Declare.
6409 (cuDeviceTotalMem, cuMemGetInfo): Likewise. Define to *_v2.
6411 2019-12-22 Maciej W. Rozycki <macro@codesourcery.com>
6412 Frederik Harwath <frederik@codesourcery.com>
6413 Thomas Schwinge <tschwinge@codesourcery.com>
6415 * libgomp.h (gomp_device_descr): Add `get_property_func' member.
6416 * libgomp-plugin.h (gomp_device_property_value): New union.
6417 (gomp_device_property_value): New prototype.
6418 * openacc.h (acc_device_t): Add `acc_device_current' enumeration
6420 (acc_device_property_t): New enum.
6421 (acc_get_property, acc_get_property_string): New prototypes.
6422 * oacc-init.c (acc_get_device_type): Also assert that result
6423 is not `acc_device_current'.
6424 (get_property_any, acc_get_property, acc_get_property_string):
6426 * openacc.f90 (openacc_kinds): Add `acc_device_current' and
6427 `acc_property_memory', `acc_property_free_memory',
6428 `acc_property_name', `acc_property_vendor' and
6429 `acc_property_driver' constants. Add `acc_device_property' data
6431 (openacc_internal): Add `acc_get_property' and
6432 `acc_get_property_string' interfaces. Add `acc_get_property_h',
6433 `acc_get_property_string_h', `acc_get_property_l' and
6434 `acc_get_property_string_l'.
6435 * oacc-host.c (host_get_property): New function.
6436 (host_dispatch): Wire it.
6437 * target.c (gomp_load_plugin_for_device): Handle `get_property'.
6438 * libgomp.map (OACC_2.6): Add `acc_get_property', `acc_get_property_h_',
6439 `acc_get_property_string' and `acc_get_property_string_h_' symbols.
6440 * libgomp.texi (OpenACC Runtime Library Routines): Add
6442 (acc_get_property): New node.
6443 * plugin/plugin-gcn.c (GOMP_OFFLOAD_get_property): New
6445 * plugin/plugin-hsa.c (GOMP_OFFLOAD_get_property): New function.
6446 * plugin/plugin-nvptx.c (CUDA_CALLS): Add `cuDeviceGetName',
6447 `cuDeviceTotalMem', `cuDriverGetVersion' and `cuMemGetInfo'
6449 (GOMP_OFFLOAD_get_property): New function.
6450 (struct ptx_device): Add new field "name".
6451 (cuda_driver_version_s): Add new static variable ...
6452 (nvptx_init): ... and init from here.
6454 * testsuite/libgomp.oacc-c-c++-common/acc_get_property.c: New test.
6455 * testsuite/libgomp.oacc-c-c++-common/acc_get_property-2.c: New test.
6456 * testsuite/libgomp.oacc-c-c++-common/acc_get_property-3.c: New test.
6457 * testsuite/libgomp.oacc-c-c++-common/acc_get_property-aux.c: New file
6458 with test helper functions.
6460 * testsuite/libgomp.oacc-fortran/acc_get_property.f90: New test.
6462 2019-12-22 Maciej W. Rozycki <macro@wdc.com>
6464 * testsuite/libgomp-test-support.exp.in (GCC_UNDER_TEST): New
6467 2019-12-21 Thomas Schwinge <thomas@codesourcery.com>
6469 * target.c (gomp_map_vars_internal): Restore 'omp declare target
6472 2019-12-19 Julian Brown <julian@codesourcery.com>
6474 * testsuite/libgomp.oacc-fortran/class-ptr-param.f95: New test.
6475 * testsuite/libgomp.oacc-fortran/classtypes-1.f95: New test.
6476 * testsuite/libgomp.oacc-fortran/classtypes-2.f95: New test.
6478 2019-12-19 Julian Brown <julian@codesourcery.com>
6479 Cesar Philippidis <cesar@codesourcery.com>
6481 * testsuite/libgomp.oacc-fortran/deep-copy-1.f90: New test.
6482 * testsuite/libgomp.oacc-fortran/deep-copy-2.f90: New test.
6483 * testsuite/libgomp.oacc-fortran/deep-copy-3.f90: New test.
6484 * testsuite/libgomp.oacc-fortran/deep-copy-4.f90: New test.
6485 * testsuite/libgomp.oacc-fortran/deep-copy-5.f90: New test.
6486 * testsuite/libgomp.oacc-fortran/deep-copy-6.f90: New test.
6487 * testsuite/libgomp.oacc-fortran/deep-copy-7.f90: New test.
6488 * testsuite/libgomp.oacc-fortran/deep-copy-8.f90: New test.
6489 * testsuite/libgomp.oacc-fortran/derived-type-1.f90: New test.
6490 * testsuite/libgomp.oacc-fortran/derivedtype-1.f95: New test.
6491 * testsuite/libgomp.oacc-fortran/derivedtype-2.f95: New test.
6492 * testsuite/libgomp.oacc-fortran/multidim-slice.f95: New test.
6493 * testsuite/libgomp.oacc-fortran/update-2.f90: New test.
6495 2019-12-19 Julian Brown <julian@codesourcery.com>
6497 * testsuite/libgomp.oacc-c-c++-common/deep-copy-1.c: New test.
6498 * testsuite/libgomp.oacc-c-c++-common/deep-copy-2.c: New test.
6499 * testsuite/libgomp.oacc-c-c++-common/deep-copy-4.c: New test.
6500 * testsuite/libgomp.oacc-c-c++-common/deep-copy-6.c: New test.
6501 * testsuite/libgomp.oacc-c-c++-common/deep-copy-7.c: New test.
6502 * testsuite/libgomp.oacc-c-c++-common/deep-copy-8.c: New test.
6503 * testsuite/libgomp.oacc-c-c++-common/deep-copy-9.c: New test.
6504 * testsuite/libgomp.oacc-c-c++-common/deep-copy-10.c: New test.
6505 * testsuite/libgomp.oacc-c-c++-common/deep-copy-11.c: New test.
6506 * testsuite/libgomp.oacc-c-c++-common/deep-copy-14.c: New test.
6507 * testsuite/libgomp.oacc-c++/deep-copy-12.C: New test.
6508 * testsuite/libgomp.oacc-c++/deep-copy-13.C: New test.
6510 2019-12-19 Julian Brown <julian@codesourcery.com>
6512 * libgomp.h (struct target_var_desc): Add do_detach flag.
6513 * oacc-init.c (acc_shutdown_1): Free aux block if present.
6514 * oacc-mem.c (find_group_last): Add SIZES parameter. Support
6515 struct components. Tidy up and add some new checks.
6516 (goacc_enter_data_internal): Update call to find_group_last.
6517 (goacc_exit_data_internal): Support detach operations and
6519 (GOACC_enter_exit_data): Handle initial GOMP_MAP_STRUCT or
6520 GOMP_MAP_FORCE_PRESENT in finalization detection code. Handle
6521 attach/detach in enter/exit data detection code.
6522 * target.c (gomp_map_vars_existing): Initialise do_detach field of
6524 (gomp_map_vars_internal): Support attach.
6525 (gomp_unmap_vars_internal): Support detach.
6527 2019-12-19 Julian Brown <julian@codesourcery.com>
6528 Thomas Schwinge <thomas@codesourcery.com>
6530 * libgomp.h (struct splay_tree_aux): Add attach_count field.
6531 (gomp_attach_pointer, gomp_detach_pointer): Add prototypes.
6532 * libgomp.map (OACC_2.6): New section. Add acc_attach,
6533 acc_attach_async, acc_detach, acc_detach_async, acc_detach_finalize,
6534 acc_detach_finalize_async.
6535 * oacc-mem.c (acc_attach_async, acc_attach, goacc_detach_internal,
6536 acc_detach, acc_detach_async, acc_detach_finalize,
6537 acc_detach_finalize_async): New functions.
6538 * openacc.h (acc_attach, acc_attach_async, acc_detach,
6539 (acc_detach_async, acc_detach_finalize, acc_detach_finalize_async): Add
6541 * target.c (gomp_attach_pointer, gomp_detach_pointer): New functions.
6542 (gomp_remove_var_internal): Free attachment counts if present.
6543 * testsuite/libgomp.oacc-c-c++-common/deep-copy-3.c: New test.
6544 * testsuite/libgomp.oacc-c-c++-common/deep-copy-5.c: New test.
6546 2019-12-19 Julian Brown <julian@codesourcery.com>
6547 Cesar Philippidis <cesar@codesourcery.com>
6549 * libgomp.h (gomp_map_val): Add prototype.
6550 * oacc-parallel.c (GOACC_parallel_keyed): Use gomp_map_val instead of
6551 open-coding device-address calculation.
6552 * target.c (gomp_map_val): Make global. Use OFFSET_POINTER in
6555 2019-12-19 Julian Brown <julian@codesourcery.com>
6557 * libgomp.h (struct splay_tree_key_s): Substitute dynamic_refcount
6558 field for virtual_refcount.
6559 (enum gomp_map_vars_kind): Add GOMP_MAP_VARS_OPENACC_ENTER_DATA.
6560 (gomp_free_memmap): Remove prototype.
6561 * oacc-init.c (acc_shutdown_1): Iteratively call gomp_remove_var
6562 instead of calling gomp_free_memmap.
6563 * oacc-mem.c (acc_map_data): Use virtual_refcount instead of
6565 (acc_unmap_data): Open code instead of forcing target_mem_desc's
6566 to_free field to NULL then calling gomp_unmap_vars. Handle
6567 REFCOUNT_INFINITY on target blocks.
6568 (goacc_enter_data): Rename to...
6569 (goacc_enter_datum): ...this. Remove MAPNUM parameter and special
6570 handling for mapping groups. Use virtual_refcount instead of
6571 dynamic_refcount. Use GOMP_MAP_VARS_OPENACC_ENTER_DATA for
6572 map_map_vars_async call. Re-do lookup for target pointer return value.
6573 (acc_create, acc_create_async, acc_copyin, acc_copyin_async): Call
6574 renamed goacc_enter_datum function.
6575 (goacc_exit_data): Rename to...
6576 (goacc_exit_datum): ...this. Update for virtual_refcount semantics.
6577 (acc_delete, acc_delete_async, acc_delete_finalize,
6578 acc_delete_finalize_async, acc_copyout, acc_copyout_async,
6579 acc_copyout_finalize, acc_copyout_finalize_async): Call renamed
6580 goacc_exit_datum function.
6581 (gomp_acc_remove_pointer, find_pointer): Remove functions.
6582 (find_group_last, goacc_enter_data_internal, goacc_exit_data_internal):
6584 (GOACC_enter_exit_data): Use goacc_enter_data_internal and
6585 goacc_exit_data_internal helper functions.
6586 * target.c (gomp_map_vars_internal): Handle
6587 GOMP_MAP_VARS_OPENACC_ENTER_DATA. Update for virtual_refcount
6589 (gomp_unmap_vars_internal): Update for virtual_refcount semantics.
6590 (gomp_load_image_to_device, omp_target_associate_ptr): Zero-initialise
6591 virtual_refcount field instead of dynamic_refcount.
6592 (gomp_free_memmap): Remove function.
6593 * testsuite/libgomp.oacc-c-c++-common/unmap-infinity-1.c: New test.
6594 * testsuite/libgomp.c-c++-common/unmap-infinity-2.c: New test.
6595 * testsuite/libgomp.oacc-c-c++-common/pr92843-1.c: Add XFAIL.
6597 2019-12-19 Julian Brown <julian@codesourcery.com>
6598 Thomas Schwinge <thomas@codesourcery.com>
6600 * libgomp.h (struct splay_tree_aux): New.
6601 (struct splay_tree_key_s): Replace link_key field with aux pointer.
6602 * target.c (gomp_map_vars_internal): Adjust for link_key being moved
6604 (gomp_remove_var_internal): Free aux block if present.
6605 (gomp_load_image_to_device): Zero-initialise aux field instead of
6607 (omp_target_associate_pointer): Zero-initialise aux field.
6609 2019-12-18 Jakub Jelinek <jakub@redhat.com>
6612 * testsuite/libgomp.c/pr86416-1.c (main): Use L suffixes rather than
6614 * testsuite/libgomp.c/pr86416-2.c (main): Use Q suffixes rather than
6617 2019-12-19 Julian Brown <julian@codesourcery.com>
6618 Maciej W. Rozycki <macro@codesourcery.com>
6619 Tobias Burnus <tobias@codesourcery.com>
6620 Thomas Schwinge <thomas@codesourcery.com>
6622 * target.c (gomp_map_vars_async): Support GOMP_MAP_NO_ALLOC.
6623 * testsuite/libgomp.oacc-c-c++-common/no_create-1.c: New test.
6624 * testsuite/libgomp.oacc-c-c++-common/no_create-2.c: New test.
6625 * testsuite/libgomp.oacc-c-c++-common/no_create-3.c: New test.
6626 * testsuite/libgomp.oacc-c-c++-common/no_create-4.c: New test.
6627 * testsuite/libgomp.oacc-c-c++-common/no_create-5.c: New test.
6628 * testsuite/libgomp.oacc-fortran/no_create-1.f90: New test.
6629 * testsuite/libgomp.oacc-fortran/no_create-2.f90: New test.
6630 * testsuite/libgomp.oacc-fortran/no_create-3.F90: New test.
6632 2019-12-18 Thomas Schwinge <thomas@codesourcery.com>
6634 * oacc-mem.c (goacc_enter_data): Refactor, so that it can be
6636 (goacc_insert_pointer): ... from here, "present" case.
6637 (goacc_insert_pointer): Inline function into...
6638 (GOACC_enter_exit_data): ... here, and simplify.
6640 * oacc-mem.c (goacc_enter_data): Refactor, so that it can be
6642 (goacc_insert_pointer): ... from here, "not present" case.
6644 * oacc-mem.c (goacc_remove_pointer): Refactor interface. Adjust
6647 * oacc-mem.c (GOACC_enter_exit_data): Refactor code to call
6648 'goacc_enter_data', 'goacc_exit_data'.
6650 * oacc-mem.c (delete_copyout): Refactor into...
6651 (goacc_exit_data): ... this. Adjust all users.
6653 * oacc-mem.c (present_create_copy): Refactor into...
6654 (goacc_enter_data): ... this. Adjust all users.
6656 * target.c (gomp_unmap_vars_internal): Add a safeguard to
6659 * target.c (gomp_to_device_kind_p): Handle 'GOMP_MAP_FORCE_FROM'
6660 like 'GOMP_MAP_FROM'.
6665 * oacc-mem.c (delete_copyout): No-op behavior if 'lookup_host'
6667 (GOACC_enter_exit_data): Simplify accordingly.
6668 * testsuite/libgomp.oacc-c-c++-common/pr92970-1.c: New file,
6670 * testsuite/libgomp.oacc-c-c++-common/lib-17.c: ... this file...
6671 * testsuite/libgomp.oacc-c-c++-common/lib-18.c: ..., and this
6673 * testsuite/libgomp.oacc-c-c++-common/pr92984-1.c: New file,
6675 * testsuite/libgomp.oacc-c-c++-common/lib-21.c: ... this file...
6676 * testsuite/libgomp.oacc-c-c++-common/lib-29.c: ..., and this
6678 * testsuite/libgomp.oacc-c-c++-common/pr92726-1.c: New file,
6680 * testsuite/libgomp.oacc-c-c++-common/lib-28.c: ... this file.
6682 * oacc-mem.c (GOACC_enter_exit_data): Simplify 'exit data'
6683 'finalize' handling.
6686 * oacc-mem.c (acc_map_data, present_create_copy)
6687 (goacc_insert_pointer): Use 'GOMP_MAP_VARS_ENTER_DATA'.
6688 (acc_unmap_data, delete_copyout, goacc_remove_pointer): Adjust.
6689 * testsuite/libgomp.oacc-c-c++-common/lib-50.c: Remove.
6690 * testsuite/libgomp.oacc-c-c++-common/pr92848-1-d-a.c: New file
6691 * testsuite/libgomp.oacc-c-c++-common/pr92848-1-d-p.c: Likewise.
6692 * testsuite/libgomp.oacc-c-c++-common/pr92848-1-r-a.c: Likewise.
6693 * testsuite/libgomp.oacc-c-c++-common/pr92848-1-r-p.c: Likewise.
6694 * testsuite/libgomp.oacc-c-c++-common/subset-subarray-mappings-1-r-p.c:
6697 * target.c (gomp_unmap_tgt): Make it 'static'.
6698 * libgomp.h (gomp_unmap_tgt): Remove.
6700 2019-12-18 Tobias Burnus <tobias@codesourcery.com>
6703 * testsuite/libgomp.c/pr86416-1.c: New.
6704 * testsuite/libgomp.c/pr86416-2.c: New.
6706 2019-12-17 Tobias Burnus <tobias@codesourcery.com>
6708 * config/accel/openacc.f90 (module openacc_kinds): Use 'PUBLIC' to mark
6709 all symbols as public except for the 'use …, only' imported symbol,
6711 (module openacc): Default to 'PRIVATE' to exclude openacc_internal; mark
6712 all symbols from module openacc_kinds as PUBLIC
6713 * openacc.f90: Add comment with crossref to that file and openmp_lib.h;
6715 * openacc_lib.h (acc_device_gcn): Add this PARAMETER.
6717 2019-12-13 Julian Brown <julian@codesourcery.com>
6721 * libgomp.h (gomp_remove_var_async): Add prototype.
6722 * oacc-mem.c (delete_copyout): Call gomp_remove_var_async instead of
6724 * target.c (gomp_unref_tgt): Change return type to bool, indicating
6725 whether target_mem_desc was unmapped.
6726 (gomp_unref_tgt_void): New.
6727 (gomp_remove_var): Reimplement in terms of...
6728 (gomp_remove_var_internal): ...this new helper function.
6729 (gomp_remove_var_async): New, implemented using above helper function.
6730 (gomp_unmap_vars_internal): Use gomp_unref_tgt_void instead of
6733 2019-12-13 Andrew Stubbs <ams@codesourcery.com>
6735 * testsuite/libgomp.oacc-c-c++-common/acc_prof-init-1.c: Handle gcn.
6736 * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c: Likewise.
6737 * testsuite/libgomp.oacc-c-c++-common/acc_prof-parallel-1.c: Likewise.
6738 * testsuite/libgomp.oacc-c-c++-common/asyncwait-nop-1.c: Likewise.
6739 * testsuite/libgomp.oacc-c-c++-common/function-not-offloaded.c:
6741 * testsuite/libgomp.oacc-c-c++-common/async_queue-1.c: Disable on GCN.
6742 * testsuite/libgomp.oacc-c-c++-common/tile-1.c: Likewise.
6744 2019-12-13 Tobias Burnus <tobias@codesourcery.com>
6746 * openacc.f90 (module openacc_kinds): Use 'PUBLIC' to mark all symbols
6747 as public except for the 'use …, only' imported symbol, which is
6749 (module openacc): Default to 'PRIVATE' to exclude openacc_internal; mark
6750 all symbols from module openacc_kinds as PUBLIC; add missing PUBLIC
6751 attributes for acc_copyout_finalize and acc_delete_finalize.
6753 2019-12-11 Jakub Jelinek <jakub@redhat.com>
6756 * testsuite/libgomp.fortran/atomic1.f90: New test.
6758 2019-12-11 Thomas Schwinge <thomas@codesourcery.com>
6761 * oacc-mem.c (present_create_copy, delete_copyout): Fix dynamic
6762 reference counting for structured 'REFCOUNT_INFINITY'. Add some
6764 (goacc_insert_pointer, goacc_remove_pointer): Adjust accordingly.
6765 * testsuite/libgomp.oacc-c-c++-common/pr92843-1.c: New file.
6766 * testsuite/libgomp.oacc-c-c++-common/clauses-1.c: Fix OpenACC.
6767 * testsuite/libgomp.oacc-c-c++-common/lib-82.c: Likewise.
6768 * testsuite/libgomp.oacc-c-c++-common/nested-1.c: Likewise.
6770 * oacc-parallel.c (find_pointer, GOACC_enter_exit_data): Move...
6771 * oacc-mem.c: ... here.
6772 (gomp_acc_insert_pointer, gomp_acc_remove_pointer): Rename to
6773 'goacc_insert_pointer', 'goacc_remove_pointer', and make 'static'.
6774 * libgomp.h (gomp_acc_insert_pointer, gomp_acc_remove_pointer):
6776 * libgomp_g.h: Update.
6778 * oacc-parallel.c (GOACC_wait, goacc_wait): Move...
6779 * oacc-async.c: ... here.
6780 * oacc-int.h (goacc_wait): Declare.
6781 * libgomp_g.h: Update
6784 * testsuite/libgomp.oacc-c-c++-common/acc_map_data-device_already-1.c:
6786 * testsuite/libgomp.oacc-c-c++-common/acc_map_data-device_already-2.c:
6788 * testsuite/libgomp.oacc-c-c++-common/acc_map_data-device_already-3.c:
6790 * testsuite/libgomp.oacc-c-c++-common/acc_map_data-host_already-1.c:
6792 * testsuite/libgomp.oacc-c-c++-common/acc_map_data-host_already-2.c:
6794 * testsuite/libgomp.oacc-c-c++-common/acc_map_data-host_already-3.c:
6797 2019-12-11 Thomas Schwinge <thomas@codesourcery.com>
6798 Julian Brown <julian@codesourcery.com>
6800 * target.c (gomp_load_image_to_device, omp_target_associate_ptr):
6801 Initialize 'dynamic_refcount' whenever we initialize 'refcount'.
6803 2019-12-11 Tobias Burnus <tobias@codesourcery.com>
6805 * omp_lib.h.in: Fix spelling of function declaration
6806 omp_get_cancell(l)ation.
6807 * libgomp.texi (acc_is_present, acc_async_test, acc_async_test_all):
6809 * env.c: Fix comment typos.
6810 * oacc-host.c: Likewise.
6811 * ordered.c: Likewise.
6814 * config/gcn/task.c: Likewise.
6815 * config/gcn/team.c: Likewise.
6816 * config/nvptx/task.c: Likewise.
6817 * config/nvptx/team.c: Likewise.
6818 * plugin/plugin-gcn.c: Likewise.
6819 * testsuite/libgomp.fortran/jacobi.f: Likewise.
6820 * testsuite/libgomp.hsa.c/tiling-2.c: Likewise.
6821 * testsuite/libgomp.oacc-c-c++-common/enter_exit-lib.c: Likewise.
6823 2019-12-11 Tobias Burnus <tobias@codesourcery.com>
6825 * testsuite/libgomp.oacc-fortran/optional-cache.f95: Add 'dg-do run'.
6826 * testsuite/libgomp.oacc-fortran/optional-reduction.f90: Remove
6827 unnecessary 'dg-additional-options "-w"'.
6829 2019-12-09 Thomas Schwinge <thomas@codesourcery.com>
6830 Julian Brown <julian@codesourcery.com>
6835 * oacc-mem.c (lookup_dev): Reimplement. Adjust all users.
6836 * libgomp.h (struct acc_dispatch_t): Remove 'data_environ' member.
6838 * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-4-2.c:
6840 * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-4.c:
6842 * testsuite/libgomp.oacc-c-c++-common/pr92877-1.c: New file.
6844 2019-12-09 Thomas Schwinge <thomas@codesourcery.com>
6847 * oacc-mem.c (acc_free): Error out instead of 'acc_unmap_data'.
6848 * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-1.c: New
6850 * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-2.c:
6852 * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-3-2.c:
6854 * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-3.c:
6856 * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-4-2.c:
6858 * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-4.c:
6860 * testsuite/libgomp.oacc-c-c++-common/clauses-1.c: Adjust.
6861 * testsuite/libgomp.oacc-c-c++-common/context-1.c: Likewise.
6862 * testsuite/libgomp.oacc-c-c++-common/context-2.c: Likewise.
6863 * testsuite/libgomp.oacc-c-c++-common/context-3.c: Likewise.
6864 * testsuite/libgomp.oacc-c-c++-common/context-4.c: Likewise.
6865 * testsuite/libgomp.oacc-c-c++-common/lib-13.c: Likewise.
6866 * testsuite/libgomp.oacc-c-c++-common/lib-14.c: Likewise.
6867 * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
6868 * testsuite/libgomp.oacc-c-c++-common/lib-91.c: Likewise.
6869 * testsuite/libgomp.oacc-c-c++-common/nested-1.c: Likewise.
6872 * oacc-mem.c (acc_map_data): Clarify reference counting behavior.
6873 (acc_unmap_data): Add error case for 'REFCOUNT_INFINITY'.
6874 * testsuite/libgomp.oacc-c-c++-common/acc_unmap_data-pr92840-1.c:
6876 * testsuite/libgomp.oacc-c-c++-common/acc_unmap_data-pr92840-2.c:
6878 * testsuite/libgomp.oacc-c-c++-common/acc_unmap_data-pr92840-3.c:
6880 * testsuite/libgomp.oacc-c-c++-common/clauses-1.c: Adjust.
6881 * testsuite/libgomp.oacc-c-c++-common/nested-1.c: Adjust.
6884 * testsuite/libgomp.oacc-c-c++-common/copyin-devptr-1.c: Remove
6886 * testsuite/libgomp.oacc-c-c++-common/copyin-devptr-2.c: ..., and
6888 * testsuite/libgomp.oacc-c-c++-common/lib-22.c: ..., and this
6890 * testsuite/libgomp.oacc-c-c++-common/lib-30.c: ..., and this
6892 * testsuite/libgomp.oacc-c-c++-common/subset-subarray-mappings-1-r-p.c:
6893 ... with their content moved into, and extended in this new file.
6894 * testsuite/libgomp.oacc-c-c++-common/subset-subarray-mappings-1-d-a.c:
6896 * testsuite/libgomp.oacc-c-c++-common/subset-subarray-mappings-1-d-p.c:
6898 * testsuite/libgomp.oacc-c-c++-common/subset-subarray-mappings-1-r-a.c:
6900 * testsuite/libgomp.oacc-c-c++-common/subset-subarray-mappings-2.c:
6903 * testsuite/libgomp.oacc-c-c++-common/map-data-1.c: New file.
6906 * testsuite/libgomp.oacc-c-c++-common/pr92854-1.c: New file.
6908 * testsuite/libgomp.oacc-c-c++-common/host_data-6.c: New file.
6910 * target.c (gomp_exit_data): Use 'gomp_remove_var'.
6912 2019-12-09 Tobias Burnus <tobias@codesourcery.com>
6914 * testsuite/libgomp.fortran/use_device_addr-3.f90: Make 'stop' codes
6916 * testsuite/libgomp.fortran/use_device_addr-4.f90: Ditto.
6917 * testsuite/libgomp.fortran/use_device_ptr-optional-2.f90: Ditto.
6918 * testsuite/libgomp.oacc-fortran/declare-5.f90: Ditto.
6919 * testsuite/libgomp.oacc-fortran/optional-data-copyin-by-value.f90:
6921 * testsuite/libgomp.oacc-fortran/optional-firstprivate.f90: Ditto.
6922 * testsuite/libgomp.oacc-fortran/optional-update-host.f90: Ditto.
6924 2019-12-06 Kwok Cheung Yeung <kcy@codesourcery.com>
6926 * config/accel/proc.c (omp_get_num_procs): Apply ialias macro.
6928 2019-12-06 Tobias Burnus <tobias@codesourcery.com>
6929 Kwok Cheung Yeung <kcy@codesourcery.com>
6931 * oacc-mem.c (update_dev_host, gomp_acc_insert_pointer): Just return
6932 if input it a NULL pointer.
6933 * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Remove; dependent on
6934 diagnostic of NULL pointer.
6935 * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Ditto.
6936 * testsuite/libgomp.fortran/optional-map.f90: New.
6937 * testsuite/libgomp.fortran/use_device_addr-1.f90
6938 (test_dummy_opt_callee_1_absent): New.
6939 (test_dummy_opt_call_1): Call it.
6940 * testsuite/libgomp.fortran/use_device_addr-2.f90: Likewise.
6941 * testsuite/libgomp.fortran/use_device_addr-3.f90: Likewise.
6942 * testsuite/libgomp.fortran/use_device_addr-4.f90: Likewise.
6943 * testsuite/libgomp.oacc-fortran/optional-cache.f95: New.
6944 * testsuite/libgomp.oacc-fortran/optional-data-copyin-by-value.f90: New.
6945 * testsuite/libgomp.oacc-fortran/optional-data-copyin.f90: New.
6946 * testsuite/libgomp.oacc-fortran/optional-data-copyout.f90: New.
6947 * testsuite/libgomp.oacc-fortran/optional-data-enter-exit.f90: New.
6948 * testsuite/libgomp.oacc-fortran/optional-declare.f90: New.
6949 * testsuite/libgomp.oacc-fortran/optional-firstprivate.f90: New.
6950 * testsuite/libgomp.oacc-fortran/optional-host_data.f90: New.
6951 * testsuite/libgomp.oacc-fortran/optional-nested-calls.f90: New.
6952 * testsuite/libgomp.oacc-fortran/optional-private.f90: New.
6953 * testsuite/libgomp.oacc-fortran/optional-reduction.f90: New.
6954 * testsuite/libgomp.oacc-fortran/optional-update-device.f90: New.
6955 * testsuite/libgomp.oacc-fortran/optional-update-host.f90: New.
6957 2019-12-05 Tobias Burnus <tobias@codesourcery.com>
6959 * testsuite/libgomp.oacc-fortran/error_stop-1.f: Also don't
6960 expect dg-output of 'Error termination.' for GCN.
6961 * testsuite/libgomp.oacc-fortran/error_stop-2.f: Likewise.
6962 * testsuite/libgomp.oacc-fortran/error_stop-3.f: Likewise.
6964 2019-12-04 Jakub Jelinek <jakub@redhat.com>
6967 * testsuite/libgomp.fortran/teams1.f90: New test.
6968 * testsuite/libgomp.fortran/teams2.f90: New test.
6970 2019-12-03 Frederik Harwath <frederik@codesourcery.com>
6972 * oacc-init.c (acc_known_device_type): Add function.
6973 (unknown_device_type_error): Add function.
6974 (name_of_acc_device_t): Change to call unknown_device_type_error
6976 (resolve_device): Use acc_known_device_type.
6977 (acc_init): Fail if acc_device_t argument is not valid.
6978 (acc_shutdown): Likewise.
6979 (acc_get_num_devices): Likewise.
6980 (acc_set_device_type): Likewise.
6981 (acc_get_device_num): Likewise.
6982 (acc_set_device_num): Likewise.
6983 (acc_on_device): Add comment that argument validity is not checked.
6985 2019-12-03 Andrew Stubbs <ams@codesourcery.com>
6987 * testsuite/lib/libgomp.exp (offload_target_to_openacc_device_type):
6989 (check_effective_target_openacc_amdgcn_accel_present): New proc.
6990 (check_effective_target_openacc_amdgcn_accel_selected): New proc.
6991 * testsuite/libgomp.oacc-c++/c++.exp: Add support for amdgcn.
6992 * testsuite/libgomp.oacc-c/c.exp: Likewise.
6993 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
6995 2019-12-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
6998 * configure.tgt: Avoid IE tls on *-*-musl*.
7000 2019-11-29 Tobias Burnus <tobias@codesourcery.com>
7002 * testsuite/libgomp.oacc-fortran/declare-5.f90: Extend by
7003 adding a common-block test case.
7005 2019-11-29 Jakub Jelinek <jakub@redhat.com>
7008 * testsuite/libgomp.c++/udr-20.C: New test.
7009 * testsuite/libgomp.c++/udr-21.C: New test.
7011 2019-11-27 Thomas Schwinge <thomas@codesourcery.com>
7013 * testsuite/lib/libgomp.exp
7014 (check_effective_target_offload_target_nvptx): New proc.
7015 * testsuite/libgomp.fortran/target-print-1.f90: Use it with
7017 * testsuite/libgomp.oacc-fortran/print-1.f90: Likewise.
7018 * testsuite/libgomp.fortran/target-print-1-nvptx.f90: New file.
7019 * testsuite/libgomp.oacc-fortran/print-1-nvptx.f90: Likewise.
7021 2019-11-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7023 * testsuite/libgomp.c/pr39591-1.c: Rename err to e.
7024 * testsuite/libgomp.c/pr39591-2.c: Likewise.
7025 * testsuite/libgomp.c/pr39591-3.c: Likewise.
7026 * testsuite/libgomp.c/private-1.c: Likewise.
7027 * testsuite/libgomp.c/task-1.c: Likewise.
7028 * testsuite/libgomp.c/task-5.c: Renamed err to serr.
7030 2019-11-20 Julian Brown <julian@codesourcery.com>
7032 * plugin/plugin-gcn.c (wait_for_queue_nonfull): Don't lock/unlock
7034 (queue_push_launch): Lock aq->mutex before calling
7035 wait_for_queue_nonfull.
7036 (queue_push_callback): Likewise.
7037 (queue_push_asyncwait): Likewise.
7038 (queue_push_placeholder): Likewise.
7040 2019-11-20 Julian Brown <julian@codesourcery.com>
7042 * plugin/plugin-gcn.c (hsa_memory_copy_wrapper): New.
7043 (copy_data, GOMP_OFFLOAD_host2dev): Use above function.
7044 (GOMP_OFFLOAD_dev2host, GOMP_OFFLOAD_dev2dev): Check hsa_memory_copy
7047 2019-11-20 Julian Brown <julian@codesourcery.com>
7051 * oacc-mem.c (present_create_copy): Fix device pointer return value in
7052 case of "present" subarray. Use tgt->tgt_start instead of tgt->to_free
7053 in non-present/create case.
7054 (delete_copyout): Change error condition to fail only on copies outside
7055 of mapped block. Adjust error message accordingly.
7056 * testsuite/libgomp.oacc-c-c++-common/copyin-devptr-1.c: New test.
7057 * testsuite/libgomp.oacc-c-c++-common/copyin-devptr-2.c: New test.
7058 * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Adjust expected error
7060 * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
7061 * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Allow test to pass now.
7062 * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
7064 2019-11-20 Maciej W. Rozycki <macro@wdc.com>
7066 * testsuite/lib/libgomp.exp (libgomp_init): Add flags to find
7067 libatomic in build-tree testing.
7069 2019-11-18 Maciej W. Rozycki <macro@wdc.com>
7071 * testsuite/Makefile.in: Regenerate.
7073 2019-11-15 Andrew Stubbs <ams@codesourcery.com>
7075 * testsuite/libgomp.c/target-print-1.c: New file.
7076 * testsuite/libgomp.fortran/target-print-1.f90: New file.
7077 * testsuite/libgomp.oacc-c/print-1.c: New file.
7078 * testsuite/libgomp.oacc-fortran/print-1.f90: New file.
7080 2019-11-13 Andrew Stubbs <ams@codesourcery.com>
7081 Kwok Cheung Yeung <kcy@codesourcery.com>
7082 Julian Brown <julian@codesourcery.com>
7083 Tom de Vries <tom@codesourcery.com>
7085 * plugin/Makefrag.am: Add amdgcn plugin support.
7086 * plugin/configfrag.ac: Likewise.
7087 * plugin/plugin-gcn.c: New file.
7088 * configure: Regenerate.
7089 * Makefile.in: Regenerate.
7090 * testsuite/Makefile.in: Regenerate.
7092 2019-11-13 Andrew Stubbs <ams@codesourcery.com>
7094 * config/gcn/team.c (gomp_gcn_enter_kernel): Set up the team arena
7095 and use team_malloc variants.
7096 (gomp_gcn_exit_kernel): Use team_free.
7097 * libgomp.h (TEAM_ARENA_SIZE): Define.
7098 (TEAM_ARENA_START): Define.
7099 (TEAM_ARENA_FREE): Define.
7100 (TEAM_ARENA_END): Define.
7101 (team_malloc): New function.
7102 (team_malloc_cleared): New function.
7103 (team_free): New function.
7104 * team.c (gomp_new_team): Initialize and use team_malloc.
7105 (free_team): Use team_free.
7106 (gomp_free_thread): Use team_free.
7107 (gomp_pause_host): Use team_free.
7108 * work.c (gomp_init_work_share): Use team_malloc.
7109 (gomp_fini_work_share): Use team_free.
7111 2019-11-13 Andrew Stubbs <ams@codesourcery.com>
7112 Kwok Cheung Yeung <kcy@codesourcery.com>
7113 Julian Brown <julian@codesourcery.com>
7114 Tom de Vries <tom@codesourcery.com>
7116 * Makefile.am (libgomp_la_SOURCES): Add oacc-target.c.
7117 * Makefile.in: Regenerate.
7118 * config.h.in (PLUGIN_GCN): Add new undef.
7119 * config/accel/openacc.f90 (acc_device_gcn): New parameter.
7120 * config/gcn/affinity-fmt.c: New file.
7121 * config/gcn/bar.c: New file.
7122 * config/gcn/bar.h: New file.
7123 * config/gcn/doacross.h: New file.
7124 * config/gcn/icv-device.c: New file.
7125 * config/gcn/oacc-target.c: New file.
7126 * config/gcn/simple-bar.h: New file.
7127 * config/gcn/target.c: New file.
7128 * config/gcn/task.c: New file.
7129 * config/gcn/team.c: New file.
7130 * config/gcn/time.c: New file.
7131 * configure.ac: Add amdgcn*-*-*.
7132 * configure: Regenerate.
7133 * configure.tgt: Add amdgcn*-*-*.
7134 * libgomp-plugin.h (offload_target_type): Add OFFLOAD_TARGET_TYPE_GCN.
7135 * libgomp.h (gcn_thrs): Add amdgcn variant.
7136 (set_gcn_thrs): Likewise.
7137 (gomp_thread): Likewise.
7138 * oacc-int.h (goacc_thread): Likewise.
7139 * oacc-target.c: New file.
7140 * openacc.f90 (acc_device_gcn): New parameter.
7141 * openacc.h (acc_device_t): Add acc_device_gcn.
7142 * team.c (gomp_free_pool_helper): Add amdgcn support.
7144 2019-11-13 Andrew Stubbs <ams@codesourcery.com>
7145 Julian Brown <julian@codesourcery.com>
7147 * libgomp-plugin.h (GOMP_OFFLOAD_openacc_async_construct): Add int
7149 * oacc-async.c (lookup_goacc_asyncqueue): Pass device number to the
7151 * oacc-host.c (host_openacc_async_construct): Add device parameter.
7152 * plugin/plugin-nvptx.c (GOMP_OFFLOAD_openacc_async_construct): Add
7155 2019-11-13 Andrew Stubbs <ams@codesourcery.com>
7157 * configure.tgt (nvptx*-*-*): Add "accel" directory.
7158 * config/nvptx/libgomp-plugin.c: Move ...
7159 * config/accel/libgomp-plugin.c: ... to here.
7160 * config/nvptx/lock.c: Move ...
7161 * config/accel/lock.c: ... to here.
7162 * config/nvptx/mutex.c: Move ...
7163 * config/accel/mutex.c: ... to here.
7164 * config/nvptx/mutex.h: Move ...
7165 * config/accel/mutex.h: ... to here.
7166 * config/nvptx/oacc-async.c: Move ...
7167 * config/accel/oacc-async.c: ... to here.
7168 * config/nvptx/oacc-cuda.c: Move ...
7169 * config/accel/oacc-cuda.c: ... to here.
7170 * config/nvptx/oacc-host.c: Move ...
7171 * config/accel/oacc-host.c: ... to here.
7172 * config/nvptx/oacc-init.c: Move ...
7173 * config/accel/oacc-init.c: ... to here.
7174 * config/nvptx/oacc-mem.c: Move ...
7175 * config/accel/oacc-mem.c: ... to here.
7176 * config/nvptx/oacc-plugin.c: Move ...
7177 * config/accel/oacc-plugin.c: ... to here.
7178 * config/nvptx/omp-lock.h: Move ...
7179 * config/accel/omp-lock.h: ... to here.
7180 * config/nvptx/openacc.f90: Move ...
7181 * config/accel/openacc.f90: ... to here.
7182 * config/nvptx/pool.h: Move ...
7183 * config/accel/pool.h: ... to here.
7184 * config/nvptx/proc.c: Move ...
7185 * config/accel/proc.c: ... to here.
7186 * config/nvptx/ptrlock.c: Move ...
7187 * config/accel/ptrlock.c: ... to here.
7188 * config/nvptx/ptrlock.h: Move ...
7189 * config/accel/ptrlock.h: ... to here.
7190 * config/nvptx/sem.c: Move ...
7191 * config/accel/sem.c: ... to here.
7192 * config/nvptx/sem.h: Move ...
7193 * config/accel/sem.h: ... to here.
7194 * config/nvptx/thread-stacksize.h: Move ...
7195 * config/accel/thread-stacksize.h: ... to here.
7197 2019-11-12 Maciej W. Rozycki <macro@codesourcery.com>
7198 Tobias Burnus <tobias@codesourcery.com>
7199 Frederik Harwath <frederik@codesourcery.com>
7200 Thomas Schwinge <thomas@codesourcery.com>
7203 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: New test.
7204 * testsuite/libgomp.oacc-fortran/parallel-dims-aux.c: New test.
7205 * testsuite/libgomp.oacc-fortran/parallel-dims.f89: New test.
7207 2019-11-11 Tobias Burnus <tobias@codesourcery.com>
7208 Kwok Cheung Yeung <kcy@codesourcery.com>
7210 * testsuite/libgomp.fortran/use_device_ptr-optional-1.f90: Extend.
7211 * testsuite/libgomp.fortran/use_device_ptr-optional-2.f90: New.
7213 2019-11-11 Thomas Schwinge <thomas@codesourcery.com>
7215 * testsuite/libgomp.fortran/target9.f90: Specify 'dg-do run'.
7217 * testsuite/libgomp.fortran/use_device_addr-3.f90: Specify 'dg-do
7219 * testsuite/libgomp.fortran/use_device_addr-4.f90: Likewise.
7220 * testsuite/libgomp.fortran/use_device_ptr-1.f90: Likewise.
7222 2019-11-06 Thomas Schwinge <thomas@codesourcery.com>
7224 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-1.c:
7225 Add expected warnings about missing reduction clauses.
7226 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-2.c:
7228 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-3.c:
7230 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-4.c:
7233 2019-11-04 Tobias Burnus <tobias@codesourcery.com>
7235 * testsuite/libgomp.fortran/pr66199-1.f90: Remove
7236 'dg-do run' (implies torture test) as 'dg-options "O2"' is used.
7237 * testsuite/libgomp.fortran/pr66199-2.f90: Ditto.
7238 * testsuite/libgomp.fortran/taskloop2.f90: Ditto.
7239 * testsuite/libgomp.fortran/taskloop3.f90: Ditto.
7240 * testsuite/libgomp.fortran/taskloop4.f90: Ditto.
7242 2019-11-04 Tobias Burnus <tobias@codesourcery.com>
7245 * testsuite/libgomp.fortran/allocatable2.f90: Use
7246 unique numbers with 'stop'.
7247 * testsuite/libgomp.fortran/use_device_addr-1.f90: Ditto.
7248 * testsuite/libgomp.fortran/use_device_addr-2.f90: Ditto.
7249 * testsuite/libgomp.fortran/use_device_ptr-1.f90: Ditto.
7250 * testsuite/libgomp.oacc-fortran/lib-15.f90: Ditto.
7251 * testsuite/libgomp.oacc-fortran/pset-1.f90: Ditto.
7253 2019-11-01 Tobias Burnus <tobias@codesourcery.com>
7255 * testsuite/libgomp.fortran/use_device_addr-1.f90 (test_nullptr_1,
7256 test_dummy_opt_nullptr_callee_1): Add present but unallocated test.
7257 * testsuite/libgomp.fortran/use_device_addr-2.f90: Likewise.
7258 * testsuite/libgomp.fortran/use_device_addr-3.f90: New.
7259 * testsuite/libgomp.fortran/use_device_addr-4.f90: New.
7260 * testsuite/testsuite/libgomp.fortran/use_device_ptr-1.f90: New.
7262 2019-10-30 Tobias Burnus <tobias@codesourcery.com>
7264 * testsuite/libgomp.fortran/target9.f90: New.
7266 2019-10-30 Tobias Burnus <tobias@codesourcery.com>
7268 * testsuite/libgomp.fortran/aligned1.f03: Replace 'STOP' by 'stop'.
7269 * testsuite/libgomp.fortran/alloc-comp-1.f90: Ditto.
7270 * testsuite/libgomp.fortran/alloc-comp-2.f90: Ditto.
7271 * testsuite/libgomp.fortran/alloc-comp-3.f90: Ditto.
7272 * testsuite/libgomp.fortran/allocatable1.f90: Ditto.
7273 * testsuite/libgomp.fortran/allocatable10.f90: Ditto.
7274 * testsuite/libgomp.fortran/allocatable11.f90: Ditto.
7275 * testsuite/libgomp.fortran/allocatable12.f90: Ditto.
7276 * testsuite/libgomp.fortran/allocatable2.f90: Ditto.
7277 * testsuite/libgomp.fortran/allocatable3.f90: Ditto.
7278 * testsuite/libgomp.fortran/allocatable4.f90: Ditto.
7279 * testsuite/libgomp.fortran/allocatable5.f90: Ditto.
7280 * testsuite/libgomp.fortran/allocatable6.f90: Ditto.
7281 * testsuite/libgomp.fortran/allocatable7.f90: Ditto.
7282 * testsuite/libgomp.fortran/allocatable8.f90: Ditto.
7283 * testsuite/libgomp.fortran/allocatable9.f90: Ditto.
7284 * testsuite/libgomp.fortran/associate1.f90: Ditto.
7285 * testsuite/libgomp.fortran/associate2.f90: Ditto.
7286 * testsuite/libgomp.fortran/associate3.f90: Ditto.
7287 * testsuite/libgomp.fortran/async_io_4.f90: Ditto.
7288 * testsuite/libgomp.fortran/async_io_5.f90: Ditto.
7289 * testsuite/libgomp.fortran/async_io_6.f90: Ditto.
7290 * testsuite/libgomp.fortran/async_io_7.f90: Ditto.
7291 * testsuite/libgomp.fortran/cancel-do-1.f90: Ditto.
7292 * testsuite/libgomp.fortran/cancel-do-2.f90: Ditto.
7293 * testsuite/libgomp.fortran/cancel-parallel-1.f90: Ditto.
7294 * testsuite/libgomp.fortran/cancel-sections-1.f90: Ditto.
7295 * testsuite/libgomp.fortran/cancel-taskgroup-2.f90: Ditto.
7296 * testsuite/libgomp.fortran/character1.f90: Ditto.
7297 * testsuite/libgomp.fortran/character2.f90: Ditto.
7298 * testsuite/libgomp.fortran/collapse1.f90: Ditto.
7299 * testsuite/libgomp.fortran/collapse2.f90: Ditto.
7300 * testsuite/libgomp.fortran/collapse3.f90: Ditto.
7301 * testsuite/libgomp.fortran/collapse4.f90: Ditto.
7302 * testsuite/libgomp.fortran/crayptr1.f90: Ditto.
7303 * testsuite/libgomp.fortran/crayptr2.f90: Ditto.
7304 * testsuite/libgomp.fortran/crayptr3.f90: Ditto.
7305 * testsuite/libgomp.fortran/declare-simd-1.f90: Ditto.
7306 * testsuite/libgomp.fortran/declare-simd-3.f90: Ditto.
7307 * testsuite/libgomp.fortran/declare-target-2.f90: Ditto.
7308 * testsuite/libgomp.fortran/depend-1.f90: Ditto.
7309 * testsuite/libgomp.fortran/depend-2.f90: Ditto.
7310 * testsuite/libgomp.fortran/depend-3.f90: Ditto.
7311 * testsuite/libgomp.fortran/do1.f90: Ditto.
7312 * testsuite/libgomp.fortran/do2.f90: Ditto.
7313 * testsuite/libgomp.fortran/do_concurrent_5.f90: Ditto.
7314 * testsuite/libgomp.fortran/doacross1.f90: Ditto.
7315 * testsuite/libgomp.fortran/doacross2.f90: Ditto.
7316 * testsuite/libgomp.fortran/doacross3.f90: Ditto.
7317 * testsuite/libgomp.fortran/examples-4/array_sections-3.f90: Ditto.
7318 * testsuite/libgomp.fortran/examples-4/array_sections-4.f90: Ditto.
7319 * testsuite/libgomp.fortran/examples-4/async_target-1.f90: Ditto.
7320 * testsuite/libgomp.fortran/examples-4/async_target-2.f90: Ditto.
7321 * testsuite/libgomp.fortran/examples-4/declare_target-1.f90: Ditto.
7322 * testsuite/libgomp.fortran/examples-4/declare_target-2.f90: Ditto.
7323 * testsuite/libgomp.fortran/examples-4/declare_target-3.f90: Ditto.
7324 * testsuite/libgomp.fortran/examples-4/declare_target-4.f90: Ditto.
7325 * testsuite/libgomp.fortran/examples-4/declare_target-5.f90: Ditto.
7326 * testsuite/libgomp.fortran/examples-4/device-1.f90: Ditto.
7327 * testsuite/libgomp.fortran/examples-4/device-2.f90: Ditto.
7328 * testsuite/libgomp.fortran/examples-4/device-3.f90: Ditto.
7329 * testsuite/libgomp.fortran/examples-4/simd-1.f90: Ditto.
7330 * testsuite/libgomp.fortran/examples-4/simd-2.f90: Ditto.
7331 * testsuite/libgomp.fortran/examples-4/simd-3.f90: Ditto.
7332 * testsuite/libgomp.fortran/examples-4/simd-4.f90: Ditto.
7333 * testsuite/libgomp.fortran/examples-4/simd-5.f90: Ditto.
7334 * testsuite/libgomp.fortran/examples-4/simd-6.f90: Ditto.
7335 * testsuite/libgomp.fortran/examples-4/simd-7.f90: Ditto.
7336 * testsuite/libgomp.fortran/examples-4/simd-8.f90: Ditto.
7337 * testsuite/libgomp.fortran/examples-4/target-1.f90: Ditto.
7338 * testsuite/libgomp.fortran/examples-4/target-2.f90: Ditto.
7339 * testsuite/libgomp.fortran/examples-4/target-3.f90: Ditto.
7340 * testsuite/libgomp.fortran/examples-4/target-4.f90: Ditto.
7341 * testsuite/libgomp.fortran/examples-4/target-5.f90: Ditto.
7342 * testsuite/libgomp.fortran/examples-4/target_data-1.f90: Ditto.
7343 * testsuite/libgomp.fortran/examples-4/target_data-2.f90: Ditto.
7344 * testsuite/libgomp.fortran/examples-4/target_data-3.f90: Ditto.
7345 * testsuite/libgomp.fortran/examples-4/target_data-4.f90: Ditto.
7346 * testsuite/libgomp.fortran/examples-4/target_data-5.f90: Ditto.
7347 * testsuite/libgomp.fortran/examples-4/target_data-6.f90: Ditto.
7348 * testsuite/libgomp.fortran/examples-4/target_data-7.f90: Ditto.
7349 * testsuite/libgomp.fortran/examples-4/target_update-1.f90: Ditto.
7350 * testsuite/libgomp.fortran/examples-4/target_update-2.f90: Ditto.
7351 * testsuite/libgomp.fortran/examples-4/task_dep-1.f90: Ditto.
7352 * testsuite/libgomp.fortran/examples-4/task_dep-2.f90: Ditto.
7353 * testsuite/libgomp.fortran/examples-4/task_dep-3.f90: Ditto.
7354 * testsuite/libgomp.fortran/examples-4/task_dep-4.f90: Ditto.
7355 * testsuite/libgomp.fortran/examples-4/task_dep-5.f90: Ditto.
7356 * testsuite/libgomp.fortran/examples-4/teams-2.f90: Ditto.
7357 * testsuite/libgomp.fortran/examples-4/teams-3.f90: Ditto.
7358 * testsuite/libgomp.fortran/examples-4/teams-4.f90: Ditto.
7359 * testsuite/libgomp.fortran/examples-4/teams-5.f90: Ditto.
7360 * testsuite/libgomp.fortran/examples-4/teams-6.f90: Ditto.
7361 * testsuite/libgomp.fortran/lastprivate1.f90: Ditto.
7362 * testsuite/libgomp.fortran/lastprivate2.f90: Ditto.
7363 * testsuite/libgomp.fortran/lib1.f90: Ditto.
7364 * testsuite/libgomp.fortran/lib4.f90: Ditto.
7365 * testsuite/libgomp.fortran/lock-1.f90: Ditto.
7366 * testsuite/libgomp.fortran/lock-2.f90: Ditto.
7367 * testsuite/libgomp.fortran/nested1.f90: Ditto.
7368 * testsuite/libgomp.fortran/nestedfn1.f90: Ditto.
7369 * testsuite/libgomp.fortran/nestedfn2.f90: Ditto.
7370 * testsuite/libgomp.fortran/nestedfn3.f90: Ditto.
7371 * testsuite/libgomp.fortran/nestedfn4.f90: Ditto.
7372 * testsuite/libgomp.fortran/nestedfn5.f90: Ditto.
7373 * testsuite/libgomp.fortran/omp_atomic1.f90: Ditto.
7374 * testsuite/libgomp.fortran/omp_atomic2.f90: Ditto.
7375 * testsuite/libgomp.fortran/omp_atomic3.f90: Ditto.
7376 * testsuite/libgomp.fortran/omp_atomic4.f90: Ditto.
7377 * testsuite/libgomp.fortran/omp_atomic5.f90: Ditto.
7378 * testsuite/libgomp.fortran/omp_cond1.f: Ditto.
7379 * testsuite/libgomp.fortran/omp_cond2.f: Ditto.
7380 * testsuite/libgomp.fortran/omp_cond3.F90: Ditto.
7381 * testsuite/libgomp.fortran/omp_cond4.F90: Ditto.
7382 * testsuite/libgomp.fortran/omp_parse1.f90: Ditto.
7383 * testsuite/libgomp.fortran/omp_parse2.f90: Ditto.
7384 * testsuite/libgomp.fortran/omp_parse3.f90: Ditto.
7385 * testsuite/libgomp.fortran/omp_parse4.f90: Ditto.
7386 * testsuite/libgomp.fortran/openmp_version-1.f: Ditto.
7387 * testsuite/libgomp.fortran/openmp_version-2.f90: Ditto.
7388 * testsuite/libgomp.fortran/parloops-exit-first-loop-alt-2.f95: Ditto.
7389 * testsuite/libgomp.fortran/parloops-exit-first-loop-alt.f95: Ditto.
7390 * testsuite/libgomp.fortran/pointer1.f90: Ditto.
7391 * testsuite/libgomp.fortran/pointer2.f90: Ditto.
7392 * testsuite/libgomp.fortran/pr25219.f90: Ditto.
7393 * testsuite/libgomp.fortran/pr27395-1.f90: Ditto.
7394 * testsuite/libgomp.fortran/pr27395-2.f90: Ditto.
7395 * testsuite/libgomp.fortran/pr27416-1.f90: Ditto.
7396 * testsuite/libgomp.fortran/pr27916-1.f90: Ditto.
7397 * testsuite/libgomp.fortran/pr27916-2.f90: Ditto.
7398 * testsuite/libgomp.fortran/pr28390.f: Ditto.
7399 * testsuite/libgomp.fortran/pr29629.f90: Ditto.
7400 * testsuite/libgomp.fortran/pr32550.f90: Ditto.
7401 * testsuite/libgomp.fortran/pr33880.f90: Ditto.
7402 * testsuite/libgomp.fortran/pr34020.f90: Ditto.
7403 * testsuite/libgomp.fortran/pr35130.f90: Ditto.
7404 * testsuite/libgomp.fortran/pr42162.f90: Ditto.
7405 * testsuite/libgomp.fortran/pr46753.f90: Ditto.
7406 * testsuite/libgomp.fortran/pr48894.f90: Ditto.
7407 * testsuite/libgomp.fortran/pr49792-1.f90: Ditto.
7408 * testsuite/libgomp.fortran/pr49792-2.f90: Ditto.
7409 * testsuite/libgomp.fortran/pr63938-1.f90: Ditto.
7410 * testsuite/libgomp.fortran/pr63938-2.f90: Ditto.
7411 * testsuite/libgomp.fortran/pr65597.f90: Ditto.
7412 * testsuite/libgomp.fortran/pr66199-1.f90: Ditto.
7413 * testsuite/libgomp.fortran/pr71014.f90: Ditto.
7414 * testsuite/libgomp.fortran/pr81304.f90: Ditto.
7415 * testsuite/libgomp.fortran/pr81841.f90: Ditto.
7416 * testsuite/libgomp.fortran/pr84418-1.f90: Ditto.
7417 * testsuite/libgomp.fortran/pr84418-2.f90: Ditto.
7418 * testsuite/libgomp.fortran/procptr1.f90: Ditto.
7419 * testsuite/libgomp.fortran/recursion1.f90: Ditto.
7420 * testsuite/libgomp.fortran/reduction1.f90: Ditto.
7421 * testsuite/libgomp.fortran/reduction2.f90: Ditto.
7422 * testsuite/libgomp.fortran/reduction3.f90: Ditto.
7423 * testsuite/libgomp.fortran/reduction4.f90: Ditto.
7424 * testsuite/libgomp.fortran/reduction5.f90: Ditto.
7425 * testsuite/libgomp.fortran/reduction6.f90: Ditto.
7426 * testsuite/libgomp.fortran/reference1.f90: Ditto.
7427 * testsuite/libgomp.fortran/reference2.f90: Ditto.
7428 * testsuite/libgomp.fortran/retval1.f90: Ditto.
7429 * testsuite/libgomp.fortran/retval2.f90: Ditto.
7430 * testsuite/libgomp.fortran/sharing1.f90: Ditto.
7431 * testsuite/libgomp.fortran/sharing2.f90: Ditto.
7432 * testsuite/libgomp.fortran/simd1.f90: Ditto.
7433 * testsuite/libgomp.fortran/simd2.f90: Ditto.
7434 * testsuite/libgomp.fortran/simd3.f90: Ditto.
7435 * testsuite/libgomp.fortran/simd4.f90: Ditto.
7436 * testsuite/libgomp.fortran/simd5.f90: Ditto.
7437 * testsuite/libgomp.fortran/simd6.f90: Ditto.
7438 * testsuite/libgomp.fortran/simd7.f90: Ditto.
7439 * testsuite/libgomp.fortran/stack.f90: Ditto.
7440 * testsuite/libgomp.fortran/strassen.f90: Ditto.
7441 * testsuite/libgomp.fortran/tabs1.f90: Ditto.
7442 * testsuite/libgomp.fortran/tabs2.f: Ditto.
7443 * testsuite/libgomp.fortran/target1.f90: Ditto.
7444 * testsuite/libgomp.fortran/target2.f90: Ditto.
7445 * testsuite/libgomp.fortran/target3.f90: Ditto.
7446 * testsuite/libgomp.fortran/target4.f90: Ditto.
7447 * testsuite/libgomp.fortran/target5.f90: Ditto.
7448 * testsuite/libgomp.fortran/target6.f90: Ditto.
7449 * testsuite/libgomp.fortran/target7.f90: Ditto.
7450 * testsuite/libgomp.fortran/target8.f90: Ditto.
7451 * testsuite/libgomp.fortran/task1.f90: Ditto.
7452 * testsuite/libgomp.fortran/task2.f90: Ditto.
7453 * testsuite/libgomp.fortran/task3.f90: Ditto.
7454 * testsuite/libgomp.fortran/task4.f90: Ditto.
7455 * testsuite/libgomp.fortran/taskgroup1.f90: Ditto.
7456 * testsuite/libgomp.fortran/taskloop1.f90: Ditto.
7457 * testsuite/libgomp.fortran/taskloop2.f90: Ditto.
7458 * testsuite/libgomp.fortran/taskloop3.f90: Ditto.
7459 * testsuite/libgomp.fortran/taskloop4.f90: Ditto.
7460 * testsuite/libgomp.fortran/threadprivate1.f90: Ditto.
7461 * testsuite/libgomp.fortran/threadprivate2.f90: Ditto.
7462 * testsuite/libgomp.fortran/threadprivate3.f90: Ditto.
7463 * testsuite/libgomp.fortran/threadprivate4.f90: Ditto.
7464 * testsuite/libgomp.fortran/udr1.f90: Ditto.
7465 * testsuite/libgomp.fortran/udr10.f90: Ditto.
7466 * testsuite/libgomp.fortran/udr11.f90: Ditto.
7467 * testsuite/libgomp.fortran/udr12.f90: Ditto.
7468 * testsuite/libgomp.fortran/udr13.f90: Ditto.
7469 * testsuite/libgomp.fortran/udr14.f90: Ditto.
7470 * testsuite/libgomp.fortran/udr15.f90: Ditto.
7471 * testsuite/libgomp.fortran/udr2.f90: Ditto.
7472 * testsuite/libgomp.fortran/udr3.f90: Ditto.
7473 * testsuite/libgomp.fortran/udr4.f90: Ditto.
7474 * testsuite/libgomp.fortran/udr5.f90: Ditto.
7475 * testsuite/libgomp.fortran/udr6.f90: Ditto.
7476 * testsuite/libgomp.fortran/udr7.f90: Ditto.
7477 * testsuite/libgomp.fortran/udr8.f90: Ditto.
7478 * testsuite/libgomp.fortran/udr9.f90: Ditto.
7479 * testsuite/libgomp.fortran/vla1.f90: Ditto.
7480 * testsuite/libgomp.fortran/vla2.f90: Ditto.
7481 * testsuite/libgomp.fortran/vla3.f90: Ditto.
7482 * testsuite/libgomp.fortran/vla4.f90: Ditto.
7483 * testsuite/libgomp.fortran/vla5.f90: Ditto.
7484 * testsuite/libgomp.fortran/vla6.f90: Ditto.
7485 * testsuite/libgomp.fortran/vla7.f90: Ditto.
7486 * testsuite/libgomp.fortran/vla8.f90: Ditto.
7487 * testsuite/libgomp.fortran/workshare1.f90: Ditto.
7488 * testsuite/libgomp.fortran/workshare2.f90: Ditto.
7490 2019-10-30 Tobias Burnus <tobias@codesourcery.com>
7492 * testsuite/libgomp.fortran/target-simd.f90: Use stop not abort.
7493 * testsuite/libgomp.fortran/use_device_ptr-optional-1.f90:
7494 Ditto; add 'dg-do run' for torture testing.
7495 * testsuite/libgomp.fortran/lastprivate1.f90: Add 'dg-do run'.
7496 * testsuite/libgomp.fortran/lastprivate2.f90: Ditto.
7497 * testsuite/libgomp.fortran/nestedfn4.f90: Ditto.
7498 * testsuite/libgomp.fortran/pr25219.f90: Ditto.
7499 * testsuite/libgomp.fortran/pr28390.f: Ditto.
7500 * testsuite/libgomp.fortran/pr35130.f90: Ditto.
7501 * testsuite/libgomp.fortran/pr90779.f90: Ditto.
7502 * testsuite/libgomp.fortran/task2.f90: Ditto.
7503 * testsuite/libgomp.fortran/taskgroup1.f90: Ditto.
7504 * testsuite/libgomp.fortran/taskloop1.f90: Ditto.
7505 * testsuite/libgomp.fortran/use_device_addr-1.f90: Ditto.
7506 * testsuite/libgomp.fortran/use_device_addr-2.f90: Ditto.
7507 * testsuite/libgomp.fortran/workshare1.f90: Ditto.
7508 * testsuite/libgomp.fortran/workshare2.f90: Ditto.
7510 2019-10-28 Tobias Burnus <tobias@codesourcery.com>
7512 * testsuite/libgomp.oacc-fortran/abort-1.f90: Add 'dg-do run'.
7513 * testsuite/libgomp.oacc-fortran/abort-2.f90: Ditto.
7514 * testsuite/libgomp.oacc-fortran/acc_on_device-1-1.f90: Ditto.
7515 * testsuite/libgomp.oacc-fortran/acc_on_device-1-2.f90: Ditto.
7516 * testsuite/libgomp.oacc-fortran/acc_on_device-1-3.f90: Ditto.
7517 * testsuite/libgomp.oacc-fortran/lib-1.f90: Ditto.
7518 * testsuite/libgomp.oacc-fortran/common-block-1.f90:
7519 Use 'stop' not abort().
7520 * testsuite/libgomp.oacc-fortran/common-block-2.f90: Ditto.
7521 * testsuite/libgomp.oacc-fortran/common-block-3.f90: Ditto.
7522 * testsuite/libgomp.oacc-fortran/data-1.f90: Ditto.
7523 * testsuite/libgomp.oacc-fortran/data-2.f90: Ditto.
7524 * testsuite/libgomp.oacc-fortran/data-5.f90: Ditto.
7525 * testsuite/libgomp.oacc-fortran/dummy-array.f90: Ditto.
7526 * testsuite/libgomp.oacc-fortran/gemm-2.f90: Ditto.
7527 * testsuite/libgomp.oacc-fortran/gemm.f90: Ditto.
7528 * testsuite/libgomp.oacc-fortran/host_data-2.f90: Ditto.
7529 * testsuite/libgomp.oacc-fortran/host_data-3.f90: Ditto.
7530 * testsuite/libgomp.oacc-fortran/host_data-4.f90: Ditto.
7531 * testsuite/libgomp.oacc-fortran/kernels-collapse-3.f90: Ditto.
7532 * testsuite/libgomp.oacc-fortran/kernels-collapse-4.f90: Ditto.
7533 * testsuite/libgomp.oacc-fortran/kernels-independent.f90: Ditto.
7534 * testsuite/libgomp.oacc-fortran/kernels-loop-1.f90: Ditto.
7535 * testsuite/libgomp.oacc-fortran/kernels-map-1.f90: Ditto.
7536 * testsuite/libgomp.oacc-fortran/kernels-parallel-loop-data-enter-exit.f95:
7538 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-1.f90:
7540 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-2.f90:
7542 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-3.f90:
7544 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-6.f90:
7546 * testsuite/libgomp.oacc-fortran/kernels-private-vars-vector-1.f90:
7548 * testsuite/libgomp.oacc-fortran/kernels-private-vars-vector-2.f90:
7550 * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-1.f90:
7552 * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-2.f90:
7554 * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-3.f90:
7556 * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-4.f90:
7558 * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-5.f90:
7560 * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-6.f90:
7562 * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-7.f90:
7564 * testsuite/libgomp.oacc-fortran/kernels-reduction-1.f90: Ditto.
7565 * testsuite/libgomp.oacc-fortran/lib-12.f90: Ditto.
7566 * testsuite/libgomp.oacc-fortran/lib-13.f90: Ditto.
7567 * testsuite/libgomp.oacc-fortran/lib-14.f90: Ditto.
7568 * testsuite/libgomp.oacc-fortran/kernels-acc-loop-reduction-2.f90:
7569 Likewise and also add 'dg-do run'.
7570 * testsuite/libgomp.oacc-fortran/kernels-acc-loop-reduction.f90:
7573 2019-10-25 Cesar Philippidis <cesar@codesourcery.com>
7574 Tobias Burnus <tobias@codesourcery.com>
7576 * testsuite/libgomp.oacc-fortran/common-block-1.f90: New test.
7577 * testsuite/libgomp.oacc-fortran/common-block-2.f90: New test.
7578 * testsuite/libgomp.oacc-fortran/common-block-3.f90: New test.
7580 2019-10-14 Jakub Jelinek <jakub@redhat.com>
7583 * testsuite/libgomp.fortran/target-simd.f90: Iterate from 1 rather
7586 2019-10-11 Tobias Burnus <tobias@codesourcery.com>
7588 * testsuite/libgomp.fortran/use_device_addr-1.f90: New.
7589 * testsuite/libgomp.fortran/use_device_addr-2.f90: New.
7591 2019-10-09 Thomas Schwinge <thomas@codesourcery.com>
7594 * testsuite/libgomp.oacc-c-c++-common/data-firstprivate-1.c: New
7597 2019-10-09 Tobias Burnus <tobias@codesourcery.com>
7600 * testsuite/libgomp.fortran/fortran.exp: Conditionally
7602 * testsuite/libgomp.oacc-fortran/fortran.exp: Ditto.
7604 2019-10-09 Jakub Jelinek <jakub@redhat.com>
7607 * target.c (gomp_map_vars_internal): Readd the previous
7608 GOMP_MAP_USE_DEVICE_PTR handling code in the first loop,
7609 though do that just in the !not_found_cnt case.
7611 2019-10-08 Tobias Burnus <tobias@codesourcery.com>
7613 * gfortran.dg/gomp/target-simd.f90: New.
7615 2019-10-02 Julian Brown <julian@codesourcery.com>
7616 Cesar Philippidis <cesar@codesourcery.com>
7618 * libgomp.h (OFFSET_INLINED, OFFSET_POINTER, OFFSET_STRUCT): Define.
7619 * target.c (FIELD_TGT_EMPTY): Define.
7620 (gomp_map_val): Use OFFSET_* macros instead of magic constants. Write
7621 as switch instead of list of ifs.
7622 (gomp_map_vars_internal): Use OFFSET_* and FIELD_TGT_EMPTY macros.
7624 2019-10-02 Andreas Tobler <andreast@gcc.gnu.org>
7626 * testsuite/libgomp.oacc-c-c++-common/loop-default.h: Remove alloca.h
7627 include. Replace alloca () with __builtin_alloca ().
7628 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: Likewise.
7630 2019-10-01 Jakub Jelinek <jakub@redhat.com>
7632 * configure.ac: Remove GCC_HEADER_STDINT(gstdint.h).
7633 * libgomp.h: Include <stdint.h> instead of "gstdint.h".
7634 * oacc-parallel.c: Don't include "libgomp_g.h".
7635 * plugin/plugin-hsa.c: Include <stdint.h> instead of "gstdint.h".
7636 * plugin/plugin-nvptx.c: Don't include "gstdint.h".
7637 * aclocal.m4: Regenerated.
7638 * config.h.in: Regenerated.
7639 * configure: Regenerated.
7640 * Makefile.in: Regenerated.
7642 2019-09-30 Kwok Cheung Yeung <kcy@codesourcery.com>
7644 * libgomp_g.h: Include stdint.h instead of gstdint.h.
7646 2019-09-27 Maciej W. Rozycki <macro@wdc.com>
7648 * configure: Regenerate.
7650 2019-09-13 Tobias Burnus <tobias@codesourcery.com>
7652 * plugin/plugin-hsa.c (hsa_warn, hsa_fatal, hsa_error): Ensure
7653 string is initialized.
7655 2019-09-06 Florian Weimer <fweimer@redhat.com>
7657 * configure: Regenerate.
7659 2019-09-03 Chung-Lin Tang <cltang@codesourcery.com>
7662 * acinclude.m4 (LIBGOMP_CHECK_LINKER_FEATURES): Fix GNU ld --version
7663 scanning to conform to the GNU Coding Standards.
7664 * configure: Regenerate.
7666 2019-08-28 Jakub Jelinek <jakub@redhat.com>
7669 * testsuite/libgomp.c/scan-21.c: New test.
7670 * testsuite/libgomp.c/scan-22.c: New test.
7672 2019-08-27 Jakub Jelinek <jakub@redhat.com>
7675 * testsuite/libgomp.c/scan-11.c: Add -msse2 option for sse2_runtime
7677 * testsuite/libgomp.c/scan-12.c: Likewise.
7678 * testsuite/libgomp.c/scan-13.c: Likewise.
7679 * testsuite/libgomp.c/scan-14.c: Likewise.
7680 * testsuite/libgomp.c/scan-15.c: Likewise.
7681 * testsuite/libgomp.c/scan-16.c: Likewise.
7682 * testsuite/libgomp.c/scan-17.c: Likewise.
7683 * testsuite/libgomp.c/scan-18.c: Likewise.
7684 * testsuite/libgomp.c/scan-19.c: Likewise.
7685 * testsuite/libgomp.c/scan-20.c: Likewise.
7686 * testsuite/libgomp.c++/scan-9.C: Likewise.
7687 * testsuite/libgomp.c++/scan-10.C: Likewise.
7688 * testsuite/libgomp.c++/scan-11.C: Likewise.
7689 * testsuite/libgomp.c++/scan-12.C: Likewise.
7690 * testsuite/libgomp.c++/scan-14.C: Likewise.
7691 * testsuite/libgomp.c++/scan-15.C: Likewise.
7692 * testsuite/libgomp.c++/scan-13.C: Likewise. Use sse2_runtime
7693 instead of i?86-*-* x86_64-*-* as target for scan-tree-dump-times.
7694 * testsuite/libgomp.c++/scan-16.C: Likewise.
7696 2019-08-17 Thomas Koenig <tkoenig@gcc.gnu.org>
7699 * testsuite/libgomp.fortran/appendix-a/a.28.5.f90: Add
7700 -std=legacy so invalid code in the test case is accepted.
7702 2019-08-12 Thomas Koenig <tkoenig@gcc.gnu.org>
7705 * testsuite/libgomp.oacc-fortran/routine-7.f90: Correct array
7708 2019-08-08 Jakub Jelinek <jakub@redhat.com>
7710 * target.c (gomp_map_vars_internal): For GOMP_MAP_USE_DEVICE_PTR
7711 perform the lookup in the first loop only if !not_found_cnt, otherwise
7712 perform lookups for it in the second loop guarded with
7713 if (not_found_cnt || has_firstprivate).
7714 * testsuite/libgomp.c/target-37.c: New test.
7715 * testsuite/libgomp.c++/target-22.C: New test.
7717 2019-08-07 Jakub Jelinek <jakub@redhat.com>
7719 * testsuite/libgomp.c/target-18.c (struct S): New type.
7720 (foo): Use use_device_addr clause instead of use_device_ptr clause
7721 where required by OpenMP 5.0, add further tests for both use_device_ptr
7722 and use_device_addr clauses.
7723 * testsuite/libgomp.c++/target-9.C (struct S): New type.
7724 (foo): Use use_device_addr clause instead of use_device_ptr clause
7725 where required by OpenMP 5.0, add further tests for both use_device_ptr
7726 and use_device_addr clauses. Add t and u arguments.
7727 (main): Adjust caller.
7729 2019-08-06 Jakub Jelinek <jakub@redhat.com>
7731 * testsuite/libgomp.c++/loop-13.C: New test.
7732 * testsuite/libgomp.c++/loop-14.C: New test.
7733 * testsuite/libgomp.c++/loop-15.C: New test.
7735 2019-07-31 Jakub Jelinek <jakub@redhat.com>
7738 * testsuite/libgomp.c++/for-27.C: New test.
7740 2019-07-23 Steven G. Kargl <kargl@gcc.gnu.org>
7742 * testsuite/libgomp.fortran/reduction4.f90: Update BOZ usage.
7743 * testsuite/libgomp.fortran/reduction5.f90: Ditto.
7745 2019-07-20 Jakub Jelinek <jakub@redhat.com>
7747 * testsuite/libgomp.c-c++-common/loop-1.c: New test.
7749 2019-07-08 Jakub Jelinek <jakub@redhat.com>
7751 * testsuite/libgomp.c++/scan-13.C: Replace xfail with target x86.
7752 * testsuite/libgomp.c++/scan-16.C: Likewise.
7754 2019-07-06 Jakub Jelinek <jakub@redhat.com>
7756 * testsuite/libgomp.c/scan-19.c: New test.
7757 * testsuite/libgomp.c/scan-20.c: New test.
7759 * testsuite/libgomp.c/scan-11.c: New test.
7760 * testsuite/libgomp.c/scan-12.c: New test.
7761 * testsuite/libgomp.c/scan-13.c: New test.
7762 * testsuite/libgomp.c/scan-14.c: New test.
7763 * testsuite/libgomp.c/scan-15.c: New test.
7764 * testsuite/libgomp.c/scan-16.c: New test.
7765 * testsuite/libgomp.c/scan-17.c: New test.
7766 * testsuite/libgomp.c/scan-18.c: New test.
7767 * testsuite/libgomp.c++/scan-9.C: New test.
7768 * testsuite/libgomp.c++/scan-10.C: New test.
7769 * testsuite/libgomp.c++/scan-11.C: New test.
7770 * testsuite/libgomp.c++/scan-12.C: New test.
7771 * testsuite/libgomp.c++/scan-13.C: New test.
7772 * testsuite/libgomp.c++/scan-14.C: New test.
7773 * testsuite/libgomp.c++/scan-15.C: New test.
7774 * testsuite/libgomp.c++/scan-16.C: New test.
7776 2019-07-04 Jakub Jelinek <jakub@redhat.com>
7778 * testsuite/libgomp.c/scan-9.c: New test.
7779 * testsuite/libgomp.c/scan-10.c: New test.
7781 2019-07-03 Jakub Jelinek <jakub@redhat.com>
7783 * testsuite/libgomp.c++/scan-1.C: New test.
7784 * testsuite/libgomp.c++/scan-2.C: New test.
7785 * testsuite/libgomp.c++/scan-3.C: New test.
7786 * testsuite/libgomp.c++/scan-4.C: New test.
7787 * testsuite/libgomp.c++/scan-5.C: New test.
7788 * testsuite/libgomp.c++/scan-6.C: New test.
7789 * testsuite/libgomp.c++/scan-7.C: New test.
7790 * testsuite/libgomp.c++/scan-8.C: New test.
7791 * testsuite/libgomp.c/scan-1.c: New test.
7792 * testsuite/libgomp.c/scan-2.c: New test.
7793 * testsuite/libgomp.c/scan-3.c: New test.
7794 * testsuite/libgomp.c/scan-4.c: New test.
7795 * testsuite/libgomp.c/scan-5.c: New test.
7796 * testsuite/libgomp.c/scan-6.c: New test.
7797 * testsuite/libgomp.c/scan-7.c: New test.
7798 * testsuite/libgomp.c/scan-8.c: New test.
7800 2019-06-18 Thomas Schwinge <thomas@codesourcery.com>
7802 * testsuite/libgomp.oacc-c++/firstprivate-mappings-1.C: New file.
7803 * testsuite/libgomp.oacc-c-c++-common/firstprivate-mappings-1.c:
7806 * testsuite/libgomp.fortran/allocatable3.f90: Add missing results
7809 2019-06-18 Cesar Philippidis <cesar@codesourcery.com>
7811 * testsuite/libgomp.oacc-fortran/allocatable-array-1.f90: New
7814 2019-06-18 Thomas Schwinge <thomas@codesourcery.com>
7817 * oacc-parallel.c (GOACC_parallel_keyed): Handle NULL mapping
7819 * testsuite/libgomp.fortran/target-allocatable-1-1.f90: New file.
7820 * testsuite/libgomp.fortran/target-allocatable-1-2.f90: Likewise.
7821 * testsuite/libgomp.oacc-fortran/allocatable-1-1.f90: Likewise.
7822 * testsuite/libgomp.oacc-fortran/allocatable-1-2.f90: Likewise.
7825 * testsuite/libgomp.oacc-c-c++-common/declare-vla.c: Update.
7828 * testsuite/libgomp.oacc-c-c++-common/declare-1.c: Update.
7830 2019-06-16 Tom de Vries <tdevries@suse.de>
7832 PR tree-optimization/89376
7833 * testsuite/libgomp.oacc-c-c++-common/pr89376.c: New test.
7835 2019-06-15 Tom de Vries <tdevries@suse.de>
7837 PR tree-optimization/89713
7838 * testsuite/libgomp.oacc-c-c++-common/pr85381-2.c: Expect no bar.sync.
7839 * testsuite/libgomp.oacc-c-c++-common/pr85381-4.c: Same.
7841 2019-06-15 Jakub Jelinek <jakub@redhat.com>
7844 * testsuite/libgomp.c/pr90779.c: New test.
7845 * testsuite/libgomp.fortran/pr90779.f90: New test.
7847 2019-06-15 Tom de Vries <tdevries@suse.de>
7849 PR tree-optimization/90009
7850 * testsuite/libgomp.oacc-c-c++-common/pr90009.c: New test.
7852 2019-06-13 Feng Xue <fxue@os.amperecomputing.com>
7854 PR tree-optimization/89713
7855 * testsuite/libgomp.oacc-c-c++-common/pr84955-1.c: New test.
7857 2019-06-11 Jakub Jelinek <jakub@redhat.com>
7860 * testsuite/libgomp.c/pr90811.c: New test.
7862 2019-06-05 Jakub Jelinek <jakub@redhat.com>
7864 * testsuite/libgomp.c++/lastprivate-conditional-1.C: New test.
7865 * testsuite/libgomp.c++/lastprivate-conditional-2.C: New test.
7867 2019-06-04 Jakub Jelinek <jakub@redhat.com>
7869 * testsuite/libgomp.c-c++-common/lastprivate-conditional-7.c: New test.
7870 * testsuite/libgomp.c-c++-common/lastprivate-conditional-8.c: New test.
7871 * testsuite/libgomp.c-c++-common/lastprivate-conditional-9.c: New test.
7872 * testsuite/libgomp.c-c++-common/lastprivate-conditional-10.c: New test.
7874 2019-05-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7876 * configure.ac: Call AX_COUNT_CPUS.
7877 Substitute CPU_COUNT.
7878 * testsuite/Makefile.am (check-am): Use CPU_COUNT as processor
7880 * aclocal.m4: Regenerate.
7881 * configure: Regenerate.
7882 * Makefile.in, testsuite/Makefile.in: Regenerate.
7884 2019-05-29 Jakub Jelinek <jakub@redhat.com>
7886 * testsuite/libgomp.c-c++-common/lastprivate_conditional_4.c: Rename
7888 * testsuite/libgomp.c-c++-common/lastprivate-conditional-4.c: ... this.
7889 * testsuite/libgomp.c-c++-common/lastprivate-conditional-5.c: New test.
7890 * testsuite/libgomp.c-c++-common/lastprivate-conditional-6.c: New test.
7892 2019-05-27 Jakub Jelinek <jakub@redhat.com>
7894 * testsuite/libgomp.c-c++-common/lastprivate_conditional_4.c: New test.
7896 * testsuite/libgomp.c-c++-common/lastprivate-conditional-3.c: New test.
7899 * work.c (gomp_init_work_share): Instead of aligning final ordered
7900 value to multiples of long long alignment, align to that the
7901 first part (ordered team ids) and if inline_ordered_team_ids
7902 is not on a long long alignment boundary within the structure,
7903 use __alignof__ (long long) - 1 pad size always.
7904 * loop.c (GOMP_loop_start): Fix *mem computation if
7905 inline_ordered_team_ids is not aligned on long long alignment boundary
7906 within the structure.
7907 * loop-ull.c (GOMP_loop_ull_start): Likewise.
7908 * sections.c (GOMP_sections2_start): Likewise.
7910 2019-05-24 Jakub Jelinek <jakub@redhat.com>
7912 * testsuite/libgomp.c-c++-common/lastprivate-conditional-1.c: New test.
7913 * testsuite/libgomp.c-c++-common/lastprivate-conditional-2.c: New test.
7916 * plugin/plugin-hsa.c: Include gstdint.h. Include inttypes.h only if
7917 HAVE_INTTYPES_H is defined.
7918 (print_uint64_t): New typedef.
7919 (PRIu64): Define if HAVE_INTTYPES_H is not defined.
7920 (print_kernel_dispatch, run_kernel): Use PRIu64 macro instead of
7921 "lu", cast uint64_t HSA_DEBUG and fprintf arguments to print_uint64_t.
7922 (release_kernel_dispatch): Likewise. Cast shadow->debug to uintptr_t
7923 before casting to void *.
7924 * plugin/plugin-nvptx.c: Include gstdint.h instead of stdint.h.
7925 * oacc-mem.c: Don't include config.h nor stdint.h.
7926 * target.c: Don't include config.h.
7927 * oacc-cuda.c: Likewise.
7928 * oacc-host.c: Don't include stdint.h.
7930 2019-05-20 Jakub Jelinek <jakub@redhat.com>
7933 * alloc.c (_GNU_SOURCE): Define.
7935 2019-05-17 Thomas Schwinge <thomas@codesourcery.com>
7937 * acc_prof.h: New file.
7938 * oacc-profiling.c: Likewise.
7939 * Makefile.am (nodist_libsubinclude_HEADERS, libgomp_la_SOURCES):
7940 Add these, respectively.
7941 * Makefile.in: Regenerate.
7942 * env.c (initialize_env): Call goacc_profiling_initialize.
7943 * oacc-plugin.c (GOMP_PLUGIN_goacc_thread)
7944 (GOMP_PLUGIN_goacc_profiling_dispatch): New functions.
7945 * oacc-plugin.h (GOMP_PLUGIN_goacc_thread)
7946 (GOMP_PLUGIN_goacc_profiling_dispatch): Declare.
7947 * libgomp.map (OACC_2.5.1): Add acc_prof_lookup,
7948 acc_prof_register, acc_prof_unregister, and acc_register_library.
7949 (GOMP_PLUGIN_1.3): Add GOMP_PLUGIN_goacc_profiling_dispatch, and
7950 GOMP_PLUGIN_goacc_thread.
7951 * oacc-int.h (struct goacc_thread): Add prof_info, api_info,
7952 prof_callbacks_enabled members.
7953 (goacc_prof_enabled, goacc_profiling_initialize)
7954 (_goacc_profiling_dispatch_p, _goacc_profiling_setup_p)
7955 (goacc_profiling_dispatch): Declare.
7956 (GOACC_PROF_ENABLED, GOACC_PROFILING_DISPATCH_P)
7957 (GOACC_PROFILING_SETUP_P): Define.
7958 * oacc-async.c (acc_async_test, acc_async_test_all, acc_wait)
7959 (acc_wait_async, acc_wait_all, acc_wait_all_async): Update for
7960 OpenACC Profiling Interface.
7961 * oacc-cuda.c (acc_get_current_cuda_device)
7962 (acc_get_current_cuda_context, acc_get_cuda_stream)
7963 (acc_set_cuda_stream): Likewise.
7964 * oacc-init.c (acc_init_1, goacc_attach_host_thread_to_device)
7965 (acc_init, acc_set_device_type, acc_get_device_type)
7966 (acc_get_device_num, goacc_lazy_initialize): Likewise.
7967 * oacc-mem.c (acc_malloc, acc_free, memcpy_tofrom_device)
7968 (acc_deviceptr, acc_hostptr, acc_is_present, acc_map_data)
7969 (acc_unmap_data, present_create_copy, delete_copyout)
7970 (update_dev_host): Likewise.
7971 * oacc-parallel.c (GOACC_parallel_keyed, GOACC_data_start)
7972 (GOACC_data_end, GOACC_enter_exit_data, GOACC_update, GOACC_wait):
7974 * plugin/plugin-nvptx.c (nvptx_exec, nvptx_alloc, nvptx_free)
7975 (GOMP_OFFLOAD_openacc_exec, GOMP_OFFLOAD_openacc_async_exec):
7977 * libgomp.texi: Update.
7978 * testsuite/libgomp.oacc-c-c++-common/acc_prof-dispatch-1.c: New
7980 * testsuite/libgomp.oacc-c-c++-common/acc_prof-init-1.c: Likewise.
7981 * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c:
7983 * testsuite/libgomp.oacc-c-c++-common/acc_prof-parallel-1.c:
7985 * testsuite/libgomp.oacc-c-c++-common/acc_prof-valid_bytes-1.c:
7987 * testsuite/libgomp.oacc-c-c++-common/acc_prof-version-1.c:
7990 2019-05-13 Chung-Lin Tang <cltang@codesourcery.com>
7992 * libgomp-plugin.h (struct goacc_asyncqueue): Declare.
7993 (struct goacc_asyncqueue_list): Likewise.
7994 (goacc_aq): Likewise.
7995 (goacc_aq_list): Likewise.
7996 (GOMP_OFFLOAD_openacc_register_async_cleanup): Remove.
7997 (GOMP_OFFLOAD_openacc_async_test): Remove.
7998 (GOMP_OFFLOAD_openacc_async_test_all): Remove.
7999 (GOMP_OFFLOAD_openacc_async_wait): Remove.
8000 (GOMP_OFFLOAD_openacc_async_wait_async): Remove.
8001 (GOMP_OFFLOAD_openacc_async_wait_all): Remove.
8002 (GOMP_OFFLOAD_openacc_async_wait_all_async): Remove.
8003 (GOMP_OFFLOAD_openacc_async_set_async): Remove.
8004 (GOMP_OFFLOAD_openacc_exec): Adjust declaration.
8005 (GOMP_OFFLOAD_openacc_cuda_get_stream): Likewise.
8006 (GOMP_OFFLOAD_openacc_cuda_set_stream): Likewise.
8007 (GOMP_OFFLOAD_openacc_async_exec): Declare.
8008 (GOMP_OFFLOAD_openacc_async_construct): Declare.
8009 (GOMP_OFFLOAD_openacc_async_destruct): Declare.
8010 (GOMP_OFFLOAD_openacc_async_test): Declare.
8011 (GOMP_OFFLOAD_openacc_async_synchronize): Declare.
8012 (GOMP_OFFLOAD_openacc_async_serialize): Declare.
8013 (GOMP_OFFLOAD_openacc_async_queue_callback): Declare.
8014 (GOMP_OFFLOAD_openacc_async_host2dev): Declare.
8015 (GOMP_OFFLOAD_openacc_async_dev2host): Declare.
8017 * libgomp.h (struct acc_dispatch_t): Define 'async' sub-struct.
8018 (gomp_acc_insert_pointer): Adjust declaration.
8019 (gomp_copy_host2dev): New declaration.
8020 (gomp_copy_dev2host): Likewise.
8021 (gomp_map_vars_async): Likewise.
8022 (gomp_unmap_tgt): Likewise.
8023 (gomp_unmap_vars_async): Likewise.
8024 (gomp_fini_device): Likewise.
8026 * oacc-async.c (get_goacc_thread): New function.
8027 (get_goacc_thread_device): New function.
8028 (lookup_goacc_asyncqueue): New function.
8029 (get_goacc_asyncqueue): New function.
8030 (acc_async_test): Adjust code to use new async design.
8031 (acc_async_test_all): Likewise.
8032 (acc_wait): Likewise.
8033 (acc_wait_async): Likewise.
8034 (acc_wait_all): Likewise.
8035 (acc_wait_all_async): Likewise.
8036 (goacc_async_free): New function.
8037 (goacc_init_asyncqueues): Likewise.
8038 (goacc_fini_asyncqueues): Likewise.
8039 * oacc-cuda.c (acc_get_cuda_stream): Adjust code to use new async
8041 (acc_set_cuda_stream): Likewise.
8042 * oacc-host.c (host_openacc_exec): Adjust parameters, remove 'async'.
8043 (host_openacc_register_async_cleanup): Remove.
8044 (host_openacc_async_exec): New function.
8045 (host_openacc_async_test): Adjust parameters.
8046 (host_openacc_async_test_all): Remove.
8047 (host_openacc_async_wait): Remove.
8048 (host_openacc_async_wait_async): Remove.
8049 (host_openacc_async_wait_all): Remove.
8050 (host_openacc_async_wait_all_async): Remove.
8051 (host_openacc_async_set_async): Remove.
8052 (host_openacc_async_synchronize): New function.
8053 (host_openacc_async_serialize): New function.
8054 (host_openacc_async_host2dev): New function.
8055 (host_openacc_async_dev2host): New function.
8056 (host_openacc_async_queue_callback): New function.
8057 (host_openacc_async_construct): New function.
8058 (host_openacc_async_destruct): New function.
8059 (struct gomp_device_descr host_dispatch): Remove initialization of old
8060 interface, add initialization of new async sub-struct.
8061 * oacc-init.c (acc_shutdown_1): Adjust to use gomp_fini_device.
8062 (goacc_attach_host_thread_to_device): Remove old async code usage.
8063 * oacc-int.h (goacc_init_asyncqueues): New declaration.
8064 (goacc_fini_asyncqueues): Likewise.
8065 (goacc_async_copyout_unmap_vars): Likewise.
8066 (goacc_async_free): Likewise.
8067 (get_goacc_asyncqueue): Likewise.
8068 (lookup_goacc_asyncqueue): Likewise.
8069 * oacc-mem.c (memcpy_tofrom_device): Adjust code to use new async
8071 (present_create_copy): Adjust code to use new async design.
8072 (delete_copyout): Likewise.
8073 (update_dev_host): Likewise.
8074 (gomp_acc_insert_pointer): Add async parameter, adjust code to use new
8076 (gomp_acc_remove_pointer): Adjust code to use new async design.
8077 * oacc-parallel.c (GOACC_parallel_keyed): Adjust code to use new async
8079 (GOACC_enter_exit_data): Likewise.
8080 (goacc_wait): Likewise.
8081 (GOACC_update): Likewise.
8082 * oacc-plugin.c (GOMP_PLUGIN_async_unmap_vars): Change to assert fail
8083 when called, warn as obsolete in comment.
8084 * target.c (goacc_device_copy_async): New function.
8085 (gomp_copy_host2dev): Remove 'static', add goacc_asyncqueue parameter,
8086 add goacc_device_copy_async case.
8087 (gomp_copy_dev2host): Likewise.
8088 (gomp_map_vars_existing): Add goacc_asyncqueue parameter, adjust code.
8089 (gomp_map_pointer): Likewise.
8090 (gomp_map_fields_existing): Likewise.
8091 (gomp_map_vars_internal): New always_inline function, renamed from
8093 (gomp_map_vars): Implement by calling gomp_map_vars_internal.
8094 (gomp_map_vars_async): Implement by calling gomp_map_vars_internal,
8095 passing goacc_asyncqueue argument.
8096 (gomp_unmap_tgt): Remove static, add attribute_hidden.
8097 (gomp_unref_tgt): New function.
8098 (gomp_unmap_vars_internal): New always_inline function, renamed from
8100 (gomp_unmap_vars): Implement by calling gomp_unmap_vars_internal.
8101 (gomp_unmap_vars_async): Implement by calling
8102 gomp_unmap_vars_internal, passing goacc_asyncqueue argument.
8103 (gomp_fini_device): New function.
8104 (gomp_exit_data): Adjust gomp_copy_dev2host call.
8105 (gomp_load_plugin_for_device): Remove old interface, adjust to load
8106 new async interface.
8107 (gomp_target_fini): Adjust code to call gomp_fini_device.
8109 * plugin/plugin-nvptx.c (struct cuda_map): Remove.
8110 (struct ptx_stream): Remove.
8111 (struct nvptx_thread): Remove current_stream field.
8112 (cuda_map_create): Remove.
8113 (cuda_map_destroy): Remove.
8118 (struct goacc_asyncqueue): Define.
8119 (struct nvptx_callback): Define.
8120 (struct ptx_free_block): Define.
8121 (struct ptx_device): Remove null_stream, active_streams, async_streams,
8122 stream_lock, and next fields.
8123 (enum ptx_event_type): Remove.
8124 (struct ptx_event): Remove.
8125 (ptx_event_lock): Remove.
8126 (ptx_events): Remove.
8127 (init_streams_for_device): Remove.
8128 (fini_streams_for_device): Remove.
8129 (select_stream_for_async): Remove.
8130 (nvptx_init): Remove ptx_events and ptx_event_lock references.
8131 (nvptx_attach_host_thread_to_device): Remove CUDA_ERROR_NOT_PERMITTED
8133 (nvptx_open_device): Add free_blocks initialization, remove
8134 init_streams_for_device call.
8135 (nvptx_close_device): Remove fini_streams_for_device call, add
8136 free_blocks destruct code.
8138 (event_add): Remove.
8139 (nvptx_exec): Adjust parameters and code.
8140 (nvptx_free): Likewise.
8141 (nvptx_host2dev): Remove.
8142 (nvptx_dev2host): Remove.
8143 (nvptx_set_async): Remove.
8144 (nvptx_async_test): Remove.
8145 (nvptx_async_test_all): Remove.
8146 (nvptx_wait): Remove.
8147 (nvptx_wait_async): Remove.
8148 (nvptx_wait_all): Remove.
8149 (nvptx_wait_all_async): Remove.
8150 (nvptx_get_cuda_stream): Remove.
8151 (nvptx_set_cuda_stream): Remove.
8152 (GOMP_OFFLOAD_alloc): Adjust code.
8153 (GOMP_OFFLOAD_free): Likewise.
8154 (GOMP_OFFLOAD_openacc_register_async_cleanup): Remove.
8155 (GOMP_OFFLOAD_openacc_exec): Adjust parameters and code.
8156 (GOMP_OFFLOAD_openacc_async_test_all): Remove.
8157 (GOMP_OFFLOAD_openacc_async_wait): Remove.
8158 (GOMP_OFFLOAD_openacc_async_wait_async): Remove.
8159 (GOMP_OFFLOAD_openacc_async_wait_all): Remove.
8160 (GOMP_OFFLOAD_openacc_async_wait_all_async): Remove.
8161 (GOMP_OFFLOAD_openacc_async_set_async): Remove.
8162 (cuda_free_argmem): New function.
8163 (GOMP_OFFLOAD_openacc_async_exec): New plugin hook function.
8164 (GOMP_OFFLOAD_openacc_create_thread_data): Adjust code.
8165 (GOMP_OFFLOAD_openacc_cuda_get_stream): Adjust code.
8166 (GOMP_OFFLOAD_openacc_cuda_set_stream): Adjust code.
8167 (GOMP_OFFLOAD_openacc_async_construct): New plugin hook function.
8168 (GOMP_OFFLOAD_openacc_async_destruct): New plugin hook function.
8169 (GOMP_OFFLOAD_openacc_async_test): Remove and re-implement.
8170 (GOMP_OFFLOAD_openacc_async_synchronize): New plugin hook function.
8171 (GOMP_OFFLOAD_openacc_async_serialize): New plugin hook function.
8172 (GOMP_OFFLOAD_openacc_async_queue_callback): New plugin hook function.
8173 (cuda_callback_wrapper): New function.
8174 (cuda_memcpy_sanity_check): New function.
8175 (GOMP_OFFLOAD_host2dev): Remove and re-implement.
8176 (GOMP_OFFLOAD_dev2host): Remove and re-implement.
8177 (GOMP_OFFLOAD_openacc_async_host2dev): New plugin hook function.
8178 (GOMP_OFFLOAD_openacc_async_dev2host): New plugin hook function.
8180 2019-05-07 Thomas Schwinge <thomas@codesourcery.com>
8183 * testsuite/libgomp.oacc-c-c++-common/pr87835.c: Update.
8185 2019-05-06 Thomas Schwinge <thomas@codesourcery.com>
8187 * oacc-parallel.c: Add comments to legacy entry points (GCC 5).
8189 2019-03-27 Kevin Buettner <kevinb@redhat.com>
8191 * team.c (gomp_team_start): Initialize pool->threads[0].
8193 2019-02-22 Thomas Schwinge <thomas@codesourcery.com>
8195 * testsuite/libgomp.oacc-c++/c++.exp: Specify
8196 "-foffload=$offload_target".
8197 * testsuite/libgomp.oacc-c/c.exp: Likewise.
8198 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
8199 * testsuite/lib/libgomp.exp
8200 (check_effective_target_openacc_nvidia_accel_configured): Remove,
8201 as (conceptually) merged into
8202 check_effective_target_openacc_nvidia_accel_selected. Adjust all
8205 * plugin/configfrag.ac: Populate and AC_SUBST offload_targets.
8206 * testsuite/libgomp-test-support.exp.in: Adjust.
8207 * testsuite/lib/libgomp.exp: Likewise. Don't populate
8208 openacc_device_types_s.
8209 (offload_target_to_openacc_device_type): New proc.
8210 * testsuite/libgomp.oacc-c++/c++.exp: Adjust.
8211 * testsuite/libgomp.oacc-c/c.exp: Likewise.
8212 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
8213 * Makefile.in: Regenerate.
8214 * configure: Likewise.
8215 * testsuite/Makefile.in: Likewise.
8217 * plugin/configfrag.ac: Populate and AC_SUBST offload_plugins
8218 instead of offload_targets, and AC_DEFINE_UNQUOTED OFFLOAD_PLUGINS
8219 instead of OFFLOAD_TARGETS.
8220 * target.c (gomp_target_init): Adjust.
8221 * testsuite/libgomp-test-support.exp.in: Likewise.
8222 * testsuite/lib/libgomp.exp: Likewise. Populate
8223 openacc_device_types_s instead of offload_targets_s_openacc.
8224 (check_effective_target_openacc_nvidia_accel_selected)
8225 (check_effective_target_openacc_host_selected): Adjust.
8226 * testsuite/libgomp.oacc-c++/c++.exp: Likewise.
8227 * testsuite/libgomp.oacc-c/c.exp: Likewise.
8228 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
8229 * Makefile.in: Regenerate.
8230 * config.h.in: Likewise.
8231 * configure: Likewise.
8232 * testsuite/Makefile.in: Likewise.
8234 * testsuite/lib/libgomp.exp: Error out for unknown offload target.
8235 * testsuite/libgomp.oacc-c++/c++.exp: Likewise. Report if
8236 "offloading: supported, but hardware not accessible".
8237 * testsuite/libgomp.oacc-c/c.exp: Likewise.
8238 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
8240 2019-02-19 Chung-Lin Tang <cltang@codesourcery.com>
8243 * oacc-parallel.c (GOACC_parallel_keyed): Remove condition on call to
8245 (goacc_wait): Handle ACC_ASYNC_NOVAL case, remove goacc_thread() call
8246 and related adjustment.
8248 2019-01-30 Jakub Jelinek <jakub@redhat.com>
8251 * testsuite/libgomp.c++/pr88988.C: New test.
8253 2019-01-28 Jakub Jelinek <jakub@redhat.com>
8256 * testsuite/libgomp.c/pr89002.c: New test.
8258 2019-01-28 Richard Biener <rguenther@suse.de>
8261 PR tree-optimization/86865
8262 * testsuite/libgomp.graphite/force-parallel-5.c: XFAIL.
8264 2019-01-24 Tom de Vries <tdevries@suse.de>
8266 * plugin/plugin-nvptx.c (GOMP_OFFLOAD_fini_device): Free ptx_devices
8267 once instantiated_devices drops to 0.
8269 2019-01-23 Tom de Vries <tdevries@suse.de>
8272 * plugin/plugin-nvptx.c (cuda_map_destroy): Use CUDA_CALL_NOCHECK for
8274 (nvptx_exec): Don't call map_push if mapnum == 0.
8275 * testsuite/libgomp.oacc-c-c++-common/pr88946.c: New test.
8277 2019-01-23 Tom de Vries <tdevries@suse.de>
8281 * plugin/plugin-nvptx.c (cuda_map_destroy): Handle map->active case.
8282 (map_fini): Remove "assert (!s->map->active)".
8283 * testsuite/libgomp.oacc-c-c++-common/pr88941.c: New test.
8285 2019-01-23 Tom de Vries <tdevries@suse.de>
8288 * plugin/plugin-nvptx.c (map_push): Fix adding of allocated element.
8289 * testsuite/libgomp.oacc-c-c++-common/pr87835.c: New test.
8291 2019-01-15 Tom de Vries <tdevries@suse.de>
8294 * testsuite/libgomp.oacc-c-c++-common/gang-reduction-var-assignment.c:
8297 2019-01-12 Tom de Vries <tdevries@suse.de>
8299 * testsuite/libgomp.oacc-c-c++-common/pr85486-2.c: New test.
8300 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-2.c: New test.
8301 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-5.c: New test.
8302 * testsuite/libgomp.oacc-fortran/gemm-2.f90: New test.
8304 2019-01-12 Tom de Vries <tdevries@suse.de>
8306 * plugin/plugin-nvptx.c (nvptx_exec): Update error message.
8308 2019-01-12 Tom de Vries <tdevries@suse.de>
8310 * testsuite/libgomp.oacc-c-c++-common/vector-length-64-1.c: New test.
8311 * testsuite/libgomp.oacc-c-c++-common/vector-length-64-2.c: New test.
8312 * testsuite/libgomp.oacc-c-c++-common/vector-length-64-3.c: New test.
8314 2019-01-12 Tom de Vries <tdevries@suse.de>
8317 * testsuite/libgomp.oacc-c-c++-common/pr85486-3.c: New test.
8318 * testsuite/libgomp.oacc-c-c++-common/pr85486.c: New test.
8320 2019-01-12 Tom de Vries <tdevries@suse.de>
8323 * testsuite/libgomp.oacc-c-c++-common/pr85381-5.c: New test.
8324 * testsuite/libgomp.oacc-c-c++-common/pr85381.c: New test.
8326 2019-01-12 Tom de Vries <tdevries@suse.de>
8328 * testsuite/libgomp.oacc-c-c++-common/vred2d-128.c: New test.
8329 * testsuite/libgomp.oacc-fortran/gemm.f90: New test.
8330 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-10.c: New test.
8332 2019-01-12 Tom de Vries <tdevries@suse.de>
8334 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-7.c: New test.
8335 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-4.c: New test.
8336 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-6.c: New test.
8338 2019-01-12 Tom de Vries <tdevries@suse.de>
8340 * plugin/plugin-nvptx.c (nvptx_exec): Update insufficient hardware
8341 resources diagnostic.
8343 2019-01-12 Tom de Vries <tdevries@suse.de>
8345 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-1.c: Expect
8346 vector length to be 128.
8347 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Expect vector
8348 length 2097152 to be reduced to 1024 instead of 32.
8350 2019-01-11 Thomas Schwinge <thomas@codesourcery.com>
8351 James Norris <jnorris@codesourcery.com>
8353 * libgomp.texi: Better distinguish OpenACC and OpenMP "Runtime
8354 Library Routines", and "Environment Variables".
8356 2019-01-11 Tom de Vries <tdevries@suse.de>
8358 * plugin/plugin-nvptx.c (nvptx_exec): Prevent vector_length 64 and
8361 2019-01-11 Tom de Vries <tdevries@suse.de>
8363 * testsuite/libgomp.oacc-c-c++-common/reduction-1.c: Remove
8365 * testsuite/libgomp.oacc-c-c++-common/reduction-2.c: Same.
8366 * testsuite/libgomp.oacc-c-c++-common/reduction-3.c: Same.
8367 * testsuite/libgomp.oacc-c-c++-common/reduction-4.c: Same.
8368 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Same.
8370 2019-01-11 Tom de Vries <tdevries@suse.de>
8372 * testsuite/libgomp.oacc-c-c++-common/insufficient-resources.c: New
8375 2019-01-10 Nathan Sidwell <nathan@acm.org>
8376 Julian Brown <julian@codesourcery.com>
8379 * testsuite/libgomp.oacc-c++/pr71959-aux.cc: New.
8380 * testsuite/libgomp.oacc-c++/pr71959.C: New.
8382 2019-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
8384 * config/rtems/bar.c: Include "../linux/bar.c" and delete copy
8387 2019-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
8389 * config/rtems/affinity-fmt.c: New file. Include affinity-fmt.c,
8390 undefining HAVE_GETPID and HAVE_GETHOSTNAME, and mapping fwrite to
8393 2019-01-09 Tom de Vries <tdevries@suse.de>
8396 * testsuite/libgomp.oacc-c-c++-common/reduction-1.c (ng, nw, vl): Use
8397 #define instead of "const int".
8398 * testsuite/libgomp.oacc-c-c++-common/reduction-2.c (ng, nw, vl): Same.
8399 * testsuite/libgomp.oacc-c-c++-common/reduction-3.c (ng, nw, vl): Same.
8400 * testsuite/libgomp.oacc-c-c++-common/reduction-4.c (ng, nw, vl): Same.
8401 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c (ng, nw, vl): Same.
8403 2019-01-09 Tom de Vries <tdevries@suse.de>
8405 * plugin/plugin-nvptx.c (nvptx_exec): Make sure to launch with at least
8408 2019-01-07 Tom de Vries <tdevries@suse.de>
8410 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-3.c: Fix
8411 GOMP_OPENACC_DIM argument.
8413 2019-01-03 Tom de Vries <tdevries@suse.de>
8415 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-1.c: New test.
8416 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-3.c: New test.
8418 2019-01-01 Jakub Jelinek <jakub@redhat.com>
8420 Update copyright years.
8422 2019-01-01 Jakub Jelinek <jakub@redhat.com>
8424 * libgomp.texi: Bump @copying's copyright year.
8426 2018-12-28 Thomas Schwinge <thomas@codesourcery.com>
8428 * oacc-parallel.c (GOACC_parallel_keyed, GOACC_parallel)
8429 (GOACC_data_start, GOACC_enter_exit_data, GOACC_update)
8430 (GOACC_declare): Redefine the "device" argument to "flags".
8432 2018-12-28 Thomas Schwinge <thomas@codesourcery.com>
8433 Cesar Philippidis <cesar@codesourcery.com>
8435 * target.c (struct gomp_coalesce_chunk): New structure.
8436 (struct gomp_coalesce_buf): Update the chunks member to use that
8437 type. Adjust all users.
8439 2018-12-19 Tom de Vries <tdevries@suse.de>
8441 * testsuite/libgomp.oacc-c-c++-common/pr85381-2.c: New test.
8442 * testsuite/libgomp.oacc-c-c++-common/pr85381-3.c: New test.
8443 * testsuite/libgomp.oacc-c-c++-common/pr85381-4.c: New test.
8445 2018-12-19 Tom de Vries <tdevries@suse.de>
8447 * testsuite/lib/libgomp.exp: Add load_lib of scanoffloadrtl.exp.
8448 * testsuite/libgomp.oacc-c-c++-common/nvptx-merged-loop.c: Move from
8449 gcc/testsuite/gcc.dg/goacc.
8450 * testsuite/libgomp.oacc-c-c++-common/nvptx-sese-1.c: Same.
8452 2018-12-14 Thomas Schwinge <thomas@codesourcery.com>
8453 Chung-Lin Tang <cltang@codesourcery.com>
8455 * oacc-mem.c (acc_present_or_create): Remove definition and change
8456 to alias of acc_create.
8457 (acc_present_or_copyin): Remove definition and change to alias of
8459 * oacc-parallel.c (GOACC_enter_exit_data): Call acc_create instead
8460 of acc_present_or_create.
8461 * testsuite/libgomp.oacc-c-c++-common/data-already-1.c: Remove.
8462 * testsuite/libgomp.oacc-c-c++-common/data-already-2.c: Likewise.
8463 * testsuite/libgomp.oacc-c-c++-common/data-already-3.c: Likewise.
8464 * testsuite/libgomp.oacc-c-c++-common/data-already-4.c: Likewise.
8465 * testsuite/libgomp.oacc-c-c++-common/data-already-5.c: Likewise.
8466 * testsuite/libgomp.oacc-c-c++-common/data-already-6.c: Likewise.
8467 * testsuite/libgomp.oacc-c-c++-common/data-already-7.c: Likewise.
8468 * testsuite/libgomp.oacc-c-c++-common/data-already-8.c: Likewise.
8469 * testsuite/libgomp.oacc-fortran/data-already-1.f: Likewise.
8470 * testsuite/libgomp.oacc-fortran/data-already-2.f: Likewise.
8471 * testsuite/libgomp.oacc-fortran/data-already-3.f: Likewise.
8472 * testsuite/libgomp.oacc-fortran/data-already-4.f: Likewise.
8473 * testsuite/libgomp.oacc-fortran/data-already-5.f: Likewise.
8474 * testsuite/libgomp.oacc-fortran/data-already-6.f: Likewise.
8475 * testsuite/libgomp.oacc-fortran/data-already-7.f: Likewise.
8476 * testsuite/libgomp.oacc-fortran/data-already-8.f: Likewise.
8478 2018-12-14 Thomas Schwinge <thomas@codesourcery.com>
8481 * plugin/plugin-nvptx.c (nvptx_wait_async): Don't refuse
8482 "identical parameters".
8483 * testsuite/libgomp.oacc-c-c++-common/asyncwait-nop-1.c: Update.
8484 * testsuite/libgomp.oacc-c-c++-common/lib-80.c: Remove.
8487 * oacc-parallel.c (GOACC_wait): Correct handling for "async >= 0".
8488 * testsuite/libgomp.oacc-c-c++-common/asyncwait-nop-1.c: New file.
8491 * plugin/plugin-nvptx.c (nvptx_async_test, nvptx_wait)
8492 (nvptx_wait_async): Unseen async-argument is a no-op.
8493 * testsuite/libgomp.oacc-c-c++-common/async_queue-1.c: Update.
8494 * testsuite/libgomp.oacc-c-c++-common/data-2-lib.c: Likewise.
8495 * testsuite/libgomp.oacc-c-c++-common/data-2.c: Likewise.
8496 * testsuite/libgomp.oacc-c-c++-common/lib-79.c: Likewise.
8497 * testsuite/libgomp.oacc-fortran/lib-12.f90: Likewise.
8498 * testsuite/libgomp.oacc-c-c++-common/lib-71.c: Merge into...
8499 * testsuite/libgomp.oacc-c-c++-common/lib-69.c: ... this. Update.
8500 * testsuite/libgomp.oacc-c-c++-common/lib-77.c: Merge into...
8501 * testsuite/libgomp.oacc-c-c++-common/lib-74.c: ... this. Update
8503 * testsuite/libgomp.oacc-c-c++-common/data-2-lib.c: Revise.
8504 * testsuite/libgomp.oacc-c-c++-common/data-2.c: Likewise.
8506 2018-12-14 Chung-Lin Tang <cltang@codesourcery.com>
8508 * testsuite/libgomp.oacc-c-c++-common/data-2-lib.c: Adjust.
8509 * testsuite/libgomp.oacc-c-c++-common/data-2.c: Likewise.
8510 * testsuite/libgomp.oacc-c-c++-common/data-3.c: Likewise.
8512 2018-12-14 Thomas Schwinge <thomas@codesourcery.com>
8515 * libgomp.texi (acc_get_current_cuda_context, acc_get_cuda_stream)
8516 (acc_set_cuda_stream): Clarify.
8517 * oacc-cuda.c (acc_get_cuda_stream, acc_set_cuda_stream): Use
8519 * plugin/plugin-nvptx.c (nvptx_set_cuda_stream): Refuse "async ==
8521 * testsuite/libgomp.oacc-c-c++-common/acc_set_cuda_stream-1.c: New file.
8522 * testsuite/libgomp.oacc-c-c++-common/async_queue-1.c: Likewise.
8523 * testsuite/libgomp.oacc-c-c++-common/lib-84.c: Update.
8524 * testsuite/libgomp.oacc-c-c++-common/lib-85.c: Likewise.
8526 2018-12-14 Tom de Vries <tdevries@suse.de>
8528 * testsuite/libgomp.c-c++-common/function-not-offloaded-aux.c: New test.
8529 * testsuite/libgomp.c-c++-common/function-not-offloaded.c: New test.
8530 * testsuite/libgomp.c-c++-common/variable-not-offloaded.c: New test.
8531 * testsuite/libgomp.oacc-c-c++-common/function-not-offloaded.c: New test.
8532 * testsuite/libgomp.oacc-c-c++-common/variable-not-offloaded.c: New test.
8534 2018-12-13 Tom de Vries <tdevries@suse.de>
8536 * affinity-fmt.c (gomp_print_string): New function, factored out of ...
8537 (omp_display_affinity, gomp_display_affinity_thread): ... here, and ...
8538 * fortran.c (omp_display_affinity_): ... here.
8539 * libgomp.h (gomp_print_string): Declare.
8540 * config/nvptx/affinity-fmt.c: New file. Include affinity-fmt.c,
8541 undefining HAVE_GETPID and HAVE_GETHOSTNAME, and mapping fwrite to
8544 2018-12-13 Jakub Jelinek <jakub@redhat.com>
8547 * testsuite/libgomp.c++/for-24.C (results): Include it in
8548 omp declare target region.
8549 (main): Use map (always, tofrom: results) instead of
8550 map (tofrom: results).
8552 2018-12-12 Jakub Jelinek <jakub@redhat.com>
8555 * testsuite/libgomp.fortran/pr88463-1.f90: New test.
8556 * testsuite/libgomp.fortran/pr88463-2.f90: New test.
8558 * testsuite/libgomp.c-c++-common/for-16.c: New test.
8560 2018-12-12 Andreas Schwab <schwab@suse.de>
8562 * config/linux/ia64/futex.h (sys_futex0): Don't mark r12 as
8565 2018-12-09 Thomas Koenig <tkoenig@gcc.gnu.org>
8568 * testsuite/libgomp.fortran/async_io_8.f90: New test.
8570 2018-12-09 Thomas Schwinge <thomas@codesourcery.com>
8571 Jakub Jelinek <jakub@redhat.com>
8573 * target.c (gomp_map_vars): Call gomp_copy_host2dev instead of
8574 devicep->host2dev_func.
8576 2018-12-08 Jakub Jelinek <jakub@redhat.com>
8579 * testsuite/libgomp.c-c++-common/cancel-taskgroup-3.c: Require
8580 tls_runtime effective target.
8581 (t): New threadprivate variable.
8582 (main): Set t in threads which execute iterations of the worksharing
8583 loop. Propagate that to the task after the loop and don't abort
8584 if the current taskgroup hasn't been cancelled.
8586 2018-12-02 Jakub Jelinek <jakub@redhat.com>
8588 * testsuite/libgomp.c/task-reduction-3.c: New test.
8590 * testsuite/libgomp.c-c++-common/cancel-taskgroup-4.c: New test.
8592 2018-11-30 Cesar Philippidis <cesar@codesourcery.com>
8595 * oacc-parallel.c (GOACC_parallel_keyed): Add offset to devaddrs.
8596 * testsuite/libgomp.oacc-c-c++-common/pr88288.c: New test.
8598 2018-11-30 Thomas Schwinge <thomas@codesourcery.com>
8600 * testsuite/libgomp.oacc-fortran/lib-16-2.f90: New file.
8602 2018-10-19 Richard Biener <rguenther@suse.de>
8604 PR tree-optimization/88182
8605 * testsuite/libgomp.c++/pr88182.C: Move to g++.dg/gomp.
8607 2018-11-26 Jakub Jelinek <jakub@redhat.com>
8609 * testsuite/Makefile.am (AUTOMAKE_OPTIONS): Drop dejagnu.
8610 (RUNTEST): Don't define.
8611 (RUNTESTDEFAULTFLAGS): Add.
8612 (check-DEJAGNU, site.exp, distclean-DEJAGNU): New goals.
8613 (distclean-am): Depend on distclean-DEJAGNU.
8614 (check-am): If -j% option is present in MFLAGS and if
8615 `getconf _NPROCESSORS_ONLN` is more than 8, export OMP_NUM_THREADS=8.
8616 (.PHONY): Add check-DEJAGNU and distclean-DEJAGNU.
8617 * testsuite/Makefile.in: Regenerated.
8619 2018-11-26 Richard Biener <rguenther@suse.de>
8621 PR tree-optimization/88182
8622 * testsuite/libgomp.c++/pr88182.C: New testcase.
8624 2018-11-20 Jakub Jelinek <jakub@redhat.com>
8627 * config/mingw32/affinity-fmt.c: New file.
8629 2018-11-09 Jakub Jelinek <jakub@redhat.com>
8631 * affinity-fmt.c: Include inttypes.h if HAVE_INTTYPES_H.
8632 (gomp_display_affinity): Use __builtin_choose_expr to handle
8633 properly handle argument having integral, or pointer or some other
8634 type. If inttypes.h is available and PRIx64 is defined, use PRIx64
8635 with uint64_t type instead of %llx and unsigned long long.
8637 * testsuite/libgomp.c-c++-common/task-reduction-13.c: New test.
8638 * testsuite/libgomp.c-c++-common/task-reduction-14.c: New test.
8640 2018-11-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8642 * affinity.c: Include <string.h>, <stdio.h>.
8643 (gomp_display_affinity_place): Remove cpusetp.
8644 * teams.c: Include <limits.h>.
8646 2018-11-08 Jakub Jelinek <jakub@redhat.com>
8648 * testsuite/libgomp.c-c++-common/task-reduction-8.c (bar): Add
8649 in_reduction clause for s[0].
8651 * affinity.c (gomp_display_affinity_place): New function.
8652 * affinity-fmt.c: New file.
8653 * alloc.c (gomp_aligned_alloc, gomp_aligned_free): New functions.
8654 * config/linux/affinity.c (gomp_display_affinity_place): New function.
8655 * config/nvptx/icv-device.c (omp_get_num_teams, omp_get_team_num):
8656 Move these functions to ...
8657 * config/nvptx/teams.c: ... here. New file.
8658 * config/nvptx/target.c (omp_pause_resource, omp_pause_resource_all):
8660 * config/nvptx/team.c (gomp_team_start, gomp_pause_host): New
8662 * configure.ac: Check for aligned_alloc, posix_memalign, memalign
8663 and _aligned_malloc.
8664 (HAVE_UNAME, HAVE_GETHOSTNAME, HAVE_GETPID): Add new tests.
8665 * configure.tgt: Add -DUSING_INITIAL_EXEC_TLS to XCFLAGS for Linux.
8666 * env.c (gomp_display_affinity_var, gomp_affinity_format_var,
8667 gomp_affinity_format_len): New variables.
8668 (parse_schedule): Parse monotonic and nonmonotonic modifiers in
8669 OMP_SCHEDULE variable. Set GFS_MONOTONIC for monotonic schedules.
8670 (handle_omp_display_env): Display monotonic/nonmonotonic schedule
8671 modifiers. Display (non-default) chunk sizes. Print
8672 OMP_DISPLAY_AFFINITY and OMP_AFFINITY_FORMAT.
8673 (initialize_env): Don't call pthread_attr_setdetachstate. Handle
8674 OMP_DISPLAY_AFFINITY and OMP_AFFINITY_FORMAT env vars.
8675 * fortran.c: Include stdio.h and string.h.
8676 (omp_pause_resource, omp_pause_resource_all): Add ialias_redirect.
8677 (omp_get_schedule_, omp_get_schedule_8_): Mask off GFS_MONOTONIC bit.
8678 (omp_set_affinity_format_, omp_get_affinity_format_,
8679 omp_display_affinity_, omp_capture_affinity_, omp_pause_resource_,
8680 omp_pause_resource_all_): New functions.
8681 * icv.c (omp_set_schedule): Mask off omp_sched_monotonic bit in
8683 * icv-device.c (omp_get_num_teams, omp_get_team_num): Move these
8685 * teams.c: ... here. New file.
8686 * libgomp_g.h: Include gstdint.h.
8687 (GOMP_loop_nonmonotonic_runtime_start,
8688 GOMP_loop_maybe_nonmonotonic_runtime_start, GOMP_loop_start,
8689 GOMP_loop_ordered_start, GOMP_loop_nonmonotonic_runtime_next,
8690 GOMP_loop_maybe_nonmonotonic_runtime_next, GOMP_loop_doacross_start,
8691 GOMP_parallel_loop_nonmonotonic_runtime,
8692 GOMP_parallel_loop_maybe_nonmonotonic_runtime,
8693 GOMP_loop_ull_nonmonotonic_runtime_start,
8694 GOMP_loop_ull_maybe_nonmonotonic_runtime_start, GOMP_loop_ull_start,
8695 GOMP_loop_ull_ordered_start, GOMP_loop_ull_nonmonotonic_runtime_next,
8696 GOMP_loop_ull_maybe_nonmonotonic_runtime_next,
8697 GOMP_loop_ull_doacross_start, GOMP_parallel_reductions,
8698 GOMP_taskwait_depend, GOMP_taskgroup_reduction_register,
8699 GOMP_taskgroup_reduction_unregister, GOMP_task_reduction_remap,
8700 GOMP_workshare_task_reduction_unregister, GOMP_sections2_start,
8701 GOMP_teams_reg): Declare.
8702 * libgomp.h (GOMP_HAVE_EFFICIENT_ALIGNED_ALLOC): Define unless
8703 gomp_aligned_alloc uses fallback implementation.
8704 (gomp_aligned_alloc, gomp_aligned_free): Declare.
8705 (enum gomp_schedule_type): Add GFS_MONOTONIC.
8706 (struct gomp_doacross_work_share): Add extra field.
8707 (struct gomp_work_share): Add task_reductions field.
8708 (struct gomp_taskgroup): Add workshare and reductions fields.
8709 (GOMP_NEEDS_THREAD_HANDLE): Define if needed.
8710 (gomp_thread_handle): New typedef.
8711 (gomp_display_affinity_place, gomp_set_affinity_format,
8712 gomp_display_string, gomp_display_affinity,
8713 gomp_display_affinity_thread): Declare.
8714 (gomp_doacross_init, gomp_doacross_ull_init): Add size_t argument.
8715 (gomp_parallel_reduction_register, gomp_workshare_taskgroup_start,
8716 gomp_workshare_task_reduction_register): Declare.
8717 (gomp_team_start): Add taskgroup argument.
8718 (gomp_pause_host): Declare.
8719 (gomp_init_work_share, gomp_work_share_start): Change bool argument
8721 (gomp_thread_self, gomp_thread_to_pthread_t): New inline functions.
8722 * libgomp.map (GOMP_5.0): Export GOMP_loop_start,
8723 GOMP_loop_ordered_start, GOMP_loop_doacross_start,
8724 GOMP_loop_ull_start, GOMP_loop_ull_ordered_start,
8725 GOMP_loop_ull_doacross_start,
8726 GOMP_workshare_task_reduction_unregister, GOMP_sections2_start,
8727 GOMP_loop_maybe_nonmonotonic_runtime_next,
8728 GOMP_loop_maybe_nonmonotonic_runtime_start,
8729 GOMP_loop_nonmonotonic_runtime_next,
8730 GOMP_loop_nonmonotonic_runtime_start,
8731 GOMP_loop_ull_maybe_nonmonotonic_runtime_next,
8732 GOMP_loop_ull_maybe_nonmonotonic_runtime_start,
8733 GOMP_loop_ull_nonmonotonic_runtime_next,
8734 GOMP_loop_ull_nonmonotonic_runtime_start,
8735 GOMP_parallel_loop_maybe_nonmonotonic_runtime,
8736 GOMP_parallel_loop_nonmonotonic_runtime, GOMP_parallel_reductions,
8737 GOMP_taskgroup_reduction_register,
8738 GOMP_taskgroup_reduction_unregister, GOMP_task_reduction_remap,
8739 GOMP_teams_reg and GOMP_taskwait_depend.
8740 (OMP_5.0): Export omp_pause_resource{,_all}{,_},
8741 omp_{capture,display}_affinity{,_}, and
8742 omp_[gs]et_affinity_format{,_}.
8743 * loop.c: Include string.h.
8744 (GOMP_loop_runtime_next): Add ialias.
8745 (GOMP_taskgroup_reduction_register): Add ialias_redirect.
8746 (gomp_loop_static_start, gomp_loop_dynamic_start,
8747 gomp_loop_guided_start, gomp_loop_ordered_static_start,
8748 gomp_loop_ordered_dynamic_start, gomp_loop_ordered_guided_start,
8749 gomp_loop_doacross_static_start, gomp_loop_doacross_dynamic_start,
8750 gomp_loop_doacross_guided_start): Adjust gomp_work_share_start
8751 or gomp_doacross_init callers.
8752 (gomp_adjust_sched, GOMP_loop_start, GOMP_loop_ordered_start,
8753 GOMP_loop_doacross_start): New functions.
8754 (GOMP_loop_runtime_start, GOMP_loop_ordered_runtime_start,
8755 GOMP_loop_doacross_runtime_start, GOMP_parallel_loop_runtime_start):
8756 Mask off GFS_MONOTONIC bit.
8757 (GOMP_loop_maybe_nonmonotonic_runtime_next,
8758 GOMP_loop_maybe_nonmonotonic_runtime_start,
8759 GOMP_loop_nonmonotonic_runtime_next,
8760 GOMP_loop_nonmonotonic_runtime_start,
8761 GOMP_parallel_loop_maybe_nonmonotonic_runtime,
8762 GOMP_parallel_loop_nonmonotonic_runtime): New aliases or wrapper
8764 (gomp_parallel_loop_start): Pass NULL as taskgroup to
8766 * loop_ull.c: Include string.h.
8767 (GOMP_loop_ull_runtime_next): Add ialias.
8768 (GOMP_taskgroup_reduction_register): Add ialias_redirect.
8769 (gomp_loop_ull_static_start, gomp_loop_ull_dynamic_start,
8770 gomp_loop_ull_guided_start, gomp_loop_ull_ordered_static_start,
8771 gomp_loop_ull_ordered_dynamic_start,
8772 gomp_loop_ull_ordered_guided_start,
8773 gomp_loop_ull_doacross_static_start,
8774 gomp_loop_ull_doacross_dynamic_start,
8775 gomp_loop_ull_doacross_guided_start): Adjust gomp_work_share_start
8776 and gomp_doacross_ull_init callers.
8777 (gomp_adjust_sched, GOMP_loop_ull_start, GOMP_loop_ull_ordered_start,
8778 GOMP_loop_ull_doacross_start): New functions.
8779 (GOMP_loop_ull_runtime_start,
8780 GOMP_loop_ull_ordered_runtime_start,
8781 GOMP_loop_ull_doacross_runtime_start): Mask off GFS_MONOTONIC bit.
8782 (GOMP_loop_ull_maybe_nonmonotonic_runtime_next,
8783 GOMP_loop_ull_maybe_nonmonotonic_runtime_start,
8784 GOMP_loop_ull_nonmonotonic_runtime_next,
8785 GOMP_loop_ull_nonmonotonic_runtime_start): Likewise.
8786 * Makefile.am (libgomp_la_SOURCES): Add teams.c and affinity-fmt.c.
8787 * omp.h.in (enum omp_sched_t): Add omp_sched_monotonic.
8788 (omp_pause_resource_t, omp_depend_t): New typedefs.
8789 (enum omp_lock_hint_t): Renamed to ...
8790 (enum omp_sync_hint_t): ... this. Define omp_sync_hint_*
8791 enumerators using numbers and omp_lock_hint_* as their aliases.
8792 (omp_lock_hint_t): New typedef. Rename to ...
8793 (omp_sync_hint_t): ... this.
8794 (omp_init_lock_with_hint, omp_init_nest_lock_with_hint): Use
8795 omp_sync_hint_t instead of omp_lock_hint_t.
8796 (omp_pause_resource, omp_pause_resource_all, omp_set_affinity_format,
8797 omp_get_affinity_format, omp_display_affinity, omp_capture_affinity):
8799 (omp_target_is_present, omp_target_disassociate_ptr):
8800 Change first argument from void * to const void *.
8801 (omp_target_memcpy, omp_target_memcpy_rect): Change second argument
8802 from void * to const void *.
8803 (omp_target_associate_ptr): Change first and second arguments from
8804 void * to const void *.
8805 * omp_lib.f90.in (omp_pause_resource_kind, omp_pause_soft,
8806 omp_pause_hard): New parameters.
8807 (omp_pause_resource, omp_pause_resource_all, omp_set_affinity_format,
8808 omp_get_affinity_format, omp_display_affinity, omp_capture_affinity):
8810 * omp_lib.h.in (omp_pause_resource_kind, omp_pause_soft,
8811 omp_pause_hard): New parameters.
8812 (omp_pause_resource, omp_pause_resource_all, omp_set_affinity_format,
8813 omp_get_affinity_format, omp_display_affinity, omp_capture_affinity):
8815 * ordered.c (gomp_doacross_init, gomp_doacross_ull_init): Add
8816 EXTRA argument. If not needed to prepare array, if extra is 0,
8817 clear ws->doacross, otherwise allocate just doacross structure and
8818 extra payload. If array is needed, allocate also extra payload.
8819 (GOMP_doacross_post, GOMP_doacross_wait, GOMP_doacross_ull_post,
8820 GOMP_doacross_ull_wait): Handle doacross->array == NULL like
8822 * parallel.c (GOMP_parallel_start): Pass NULL as taskgroup to
8824 (GOMP_parallel): Likewise. Formatting fix.
8825 (GOMP_parallel_reductions): New function.
8826 (GOMP_cancellation_point): If taskgroup has workshare
8827 flag set, check cancelled of prev taskgroup if any.
8828 (GOMP_cancel): If taskgroup has workshare flag set, set cancelled
8829 on prev taskgroup if any.
8830 * sections.c: Include string.h.
8831 (GOMP_taskgroup_reduction_register): Add ialias_redirect.
8832 (GOMP_sections_start): Adjust gomp_work_share_start caller.
8833 (GOMP_sections2_start): New function.
8834 (GOMP_parallel_sections_start, GOMP_parallel_sections):
8835 Pass NULL as taskgroup to gomp_team_start.
8836 * single.c (GOMP_single_start, GOMP_single_copy_start): Adjust
8837 gomp_work_share_start callers.
8838 * target.c (GOMP_target_update_ext, GOMP_target_enter_exit_data):
8839 If taskgroup has workshare flag set, check cancelled on prev
8840 taskgroup if any. Guard all cancellation tests with
8841 gomp_cancel_var test.
8842 (omp_target_is_present, omp_target_disassociate_ptr):
8843 Change ptr argument from void * to const void *.
8844 (omp_target_memcpy): Change src argument from void * to const void *.
8845 (omp_target_memcpy_rect): Likewise.
8846 (omp_target_memcpy_rect_worker): Likewise. Use const char * casts
8847 instead of char * where needed.
8848 (omp_target_associate_ptr): Change host_ptr and device_ptr arguments
8849 from void * to const void *.
8850 (omp_pause_resource, omp_pause_resource_all): New functions.
8851 * task.c (gomp_task_handle_depend): Handle new depend array format
8852 in addition to the old. Handle mutexinoutset kinds the same as
8853 inout for now, handle unspecified kinds.
8854 (gomp_create_target_task): If taskgroup has workshare flag set, check
8855 cancelled on prev taskgroup if any. Guard all cancellation tests with
8856 gomp_cancel_var test. Handle new depend array format count in
8857 addition to the old.
8858 (GOMP_task): Likewise. Adjust function comment.
8859 (gomp_task_run_pre): If taskgroup has workshare flag set, check
8860 cancelled on prev taskgroup if any. Guard all cancellation tests with
8861 gomp_cancel_var test.
8862 (GOMP_taskwait_depend): New function.
8863 (gomp_task_maybe_wait_for_dependencies): Handle new depend array
8864 format in addition to the old. Handle mutexinoutset kinds the same as
8865 inout for now, handle unspecified kinds. Fix a function comment typo.
8866 (gomp_taskgroup_init): New function.
8867 (GOMP_taskgroup_start): Use it.
8868 (gomp_reduction_register, gomp_create_artificial_team,
8869 GOMP_taskgroup_reduction_register,
8870 GOMP_taskgroup_reduction_unregister, GOMP_task_reduction_remap,
8871 gomp_parallel_reduction_register,
8872 gomp_workshare_task_reduction_register,
8873 gomp_workshare_taskgroup_start,
8874 GOMP_workshare_task_reduction_unregister): New functions.
8875 * taskloop.c (GOMP_taskloop): If taskgroup has workshare flag set,
8876 check cancelled on prev taskgroup if any. Guard all cancellation
8877 tests with gomp_cancel_var test. Handle GOMP_TASK_FLAG_REDUCTION flag
8878 by calling GOMP_taskgroup_reduction_register.
8879 * team.c (gomp_thread_attr): Remove comment.
8880 (struct gomp_thread_start_data): Add handle field.
8881 (gomp_thread_start): Call pthread_detach.
8882 (gomp_new_team): Adjust gomp_init_work_share caller.
8883 (gomp_free_pool_helper): Call pthread_detach.
8884 (gomp_team_start): Add taskgroup argument, initialize implicit
8885 tasks' taskgroup field to that. Don't call
8886 pthread_attr_setdetachstate. Handle OMP_DISPLAY_AFFINITY env var.
8887 (gomp_team_end): Determine nesting by thr->ts.level != 0
8888 rather than thr->ts.team != NULL.
8889 (gomp_pause_pool_helper, gomp_pause_host): New functions.
8890 * work.c (alloc_work_share): Use gomp_aligned_alloc instead of
8891 gomp_malloc if GOMP_HAVE_EFFICIENT_ALIGNED_ALLOC is defined.
8892 (gomp_init_work_share): Change ORDERED argument from bool to size_t,
8893 if more than 1 allocate also extra payload at the end of array. Never
8894 keep ordered_team_ids NULL, set it to inline_ordered_team_ids instead.
8895 (gomp_work_share_start): Change ORDERED argument from bool to size_t,
8896 return true instead of ws.
8897 * Makefile.in: Regenerated.
8898 * configure: Regenerated.
8899 * config.h.in: Regenerated.
8900 * testsuite/libgomp.c/cancel-for-2.c (foo): Use cancel modifier
8902 * testsuite/libgomp.c-c++-common/cancel-parallel-1.c: New test.
8903 * testsuite/libgomp.c-c++-common/cancel-taskgroup-3.c: New test.
8904 * testsuite/libgomp.c-c++-common/depend-iterator-1.c: New test.
8905 * testsuite/libgomp.c-c++-common/depend-iterator-2.c: New test.
8906 * testsuite/libgomp.c-c++-common/depend-mutexinout-1.c: New test.
8907 * testsuite/libgomp.c-c++-common/depend-mutexinout-2.c: New test.
8908 * testsuite/libgomp.c-c++-common/depobj-1.c: New test.
8909 * testsuite/libgomp.c-c++-common/display-affinity-1.c: New test.
8910 * testsuite/libgomp.c-c++-common/for-10.c: New test.
8911 * testsuite/libgomp.c-c++-common/for-11.c: New test.
8912 * testsuite/libgomp.c-c++-common/for-12.c: New test.
8913 * testsuite/libgomp.c-c++-common/for-13.c: New test.
8914 * testsuite/libgomp.c-c++-common/for-14.c: New test.
8915 * testsuite/libgomp.c-c++-common/for-15.c: New test.
8916 * testsuite/libgomp.c-c++-common/for-2.h: If CONDNE macro is defined,
8917 define a different N(test), don't define N(f0) to N(f14), but instead
8918 define N(f20) to N(f34) using != comparisons.
8919 * testsuite/libgomp.c-c++-common/for-7.c: New test.
8920 * testsuite/libgomp.c-c++-common/for-8.c: New test.
8921 * testsuite/libgomp.c-c++-common/for-9.c: New test.
8922 * testsuite/libgomp.c-c++-common/master-combined-1.c: New test.
8923 * testsuite/libgomp.c-c++-common/pause-1.c: New test.
8924 * testsuite/libgomp.c-c++-common/pause-2.c: New test.
8925 * testsuite/libgomp.c-c++-common/pr66199-10.c: New test.
8926 * testsuite/libgomp.c-c++-common/pr66199-11.c: New test.
8927 * testsuite/libgomp.c-c++-common/pr66199-12.c: New test.
8928 * testsuite/libgomp.c-c++-common/pr66199-13.c: New test.
8929 * testsuite/libgomp.c-c++-common/pr66199-14.c: New test.
8930 * testsuite/libgomp.c-c++-common/simd-1.c: New test.
8931 * testsuite/libgomp.c-c++-common/taskloop-reduction-1.c: New test.
8932 * testsuite/libgomp.c-c++-common/taskloop-reduction-2.c: New test.
8933 * testsuite/libgomp.c-c++-common/taskloop-reduction-3.c: New test.
8934 * testsuite/libgomp.c-c++-common/taskloop-reduction-4.c: New test.
8935 * testsuite/libgomp.c-c++-common/task-reduction-11.c: New test.
8936 * testsuite/libgomp.c-c++-common/task-reduction-12.c: New test.
8937 * testsuite/libgomp.c-c++-common/task-reduction-1.c: New test.
8938 * testsuite/libgomp.c-c++-common/task-reduction-2.c: New test.
8939 * testsuite/libgomp.c-c++-common/task-reduction-3.c: New test.
8940 * testsuite/libgomp.c-c++-common/task-reduction-4.c: New test.
8941 * testsuite/libgomp.c-c++-common/task-reduction-5.c: New test.
8942 * testsuite/libgomp.c-c++-common/task-reduction-6.c: New test.
8943 * testsuite/libgomp.c-c++-common/task-reduction-7.c: New test.
8944 * testsuite/libgomp.c-c++-common/task-reduction-8.c: New test.
8945 * testsuite/libgomp.c-c++-common/task-reduction-9.c: New test.
8946 * testsuite/libgomp.c-c++-common/taskwait-depend-1.c: New test.
8947 * testsuite/libgomp.c++/depend-1.C: New test.
8948 * testsuite/libgomp.c++/depend-iterator-1.C: New test.
8949 * testsuite/libgomp.c++/depobj-1.C: New test.
8950 * testsuite/libgomp.c++/for-16.C: New test.
8951 * testsuite/libgomp.c++/for-21.C: New test.
8952 * testsuite/libgomp.c++/for-22.C: New test.
8953 * testsuite/libgomp.c++/for-23.C: New test.
8954 * testsuite/libgomp.c++/for-24.C: New test.
8955 * testsuite/libgomp.c++/for-25.C: New test.
8956 * testsuite/libgomp.c++/for-26.C: New test.
8957 * testsuite/libgomp.c++/taskloop-reduction-1.C: New test.
8958 * testsuite/libgomp.c++/taskloop-reduction-2.C: New test.
8959 * testsuite/libgomp.c++/taskloop-reduction-3.C: New test.
8960 * testsuite/libgomp.c++/taskloop-reduction-4.C: New test.
8961 * testsuite/libgomp.c++/task-reduction-10.C: New test.
8962 * testsuite/libgomp.c++/task-reduction-11.C: New test.
8963 * testsuite/libgomp.c++/task-reduction-12.C: New test.
8964 * testsuite/libgomp.c++/task-reduction-13.C: New test.
8965 * testsuite/libgomp.c++/task-reduction-14.C: New test.
8966 * testsuite/libgomp.c++/task-reduction-15.C: New test.
8967 * testsuite/libgomp.c++/task-reduction-16.C: New test.
8968 * testsuite/libgomp.c++/task-reduction-17.C: New test.
8969 * testsuite/libgomp.c++/task-reduction-18.C: New test.
8970 * testsuite/libgomp.c++/task-reduction-19.C: New test.
8971 * testsuite/libgomp.c/task-reduction-1.c: New test.
8972 * testsuite/libgomp.c++/task-reduction-1.C: New test.
8973 * testsuite/libgomp.c/task-reduction-2.c: New test.
8974 * testsuite/libgomp.c++/task-reduction-2.C: New test.
8975 * testsuite/libgomp.c++/task-reduction-3.C: New test.
8976 * testsuite/libgomp.c++/task-reduction-4.C: New test.
8977 * testsuite/libgomp.c++/task-reduction-5.C: New test.
8978 * testsuite/libgomp.c++/task-reduction-6.C: New test.
8979 * testsuite/libgomp.c++/task-reduction-7.C: New test.
8980 * testsuite/libgomp.c++/task-reduction-8.C: New test.
8981 * testsuite/libgomp.c++/task-reduction-9.C: New test.
8982 * testsuite/libgomp.c/teams-1.c: New test.
8983 * testsuite/libgomp.c/teams-2.c: New test.
8984 * testsuite/libgomp.c/thread-limit-4.c: New test.
8985 * testsuite/libgomp.c/thread-limit-5.c: New test.
8986 * testsuite/libgomp.fortran/display-affinity-1.f90: New test.
8988 2018-11-06 Chung-Lin Tang <cltang@codesourcery.com>
8990 * oacc-mem.c (memcpy_tofrom_device): New function, combined from
8991 acc_memcpy_to/from_device functions, now with async parameter.
8992 (acc_memcpy_to_device): Modify to use memcpy_tofrom_device.
8993 (acc_memcpy_from_device): Likewise.
8994 (acc_memcpy_to_device_async): New API function.
8995 (acc_memcpy_from_device_async): Likewise.
8996 (present_create_copy): Add async parameter and async setting/unsetting.
8997 (acc_create): Adjust present_create_copy call.
8998 (acc_copyin): Likewise.
8999 (acc_present_or_create): Likewise.
9000 (acc_present_or_copyin): Likewise.
9001 (acc_create_async): New API function.
9002 (acc_copyin_async): New API function.
9003 (delete_copyout): Add async parameter and async setting/unsetting.
9004 (acc_delete): Adjust delete_copyout call.
9005 (acc_copyout): Likewise.
9006 (acc_delete_async): New API function.
9007 (acc_copyout_async): Likewise.
9008 (update_dev_host): Add async parameter and async setting/unsetting.
9009 (acc_update_device): Adjust update_dev_host call.
9010 (acc_update_self): Likewise.
9011 (acc_update_device_async): New API function.
9012 (acc_update_self_async): Likewise.
9013 * openacc.h (acc_copyin_async): Declare new API function.
9014 (acc_create_async): Likewise.
9015 (acc_copyout_async): Likewise.
9016 (acc_delete_async): Likewise.
9017 (acc_update_device_async): Likewise.
9018 (acc_update_self_async): Likewise.
9019 (acc_memcpy_to_device_async): Likewise.
9020 (acc_memcpy_from_device_async): Likewise.
9021 * openacc_lib.h (acc_copyin_async_32_h): New subroutine.
9022 (acc_copyin_async_64_h): New subroutine.
9023 (acc_copyin_async_array_h): New subroutine.
9024 (acc_create_async_32_h): New subroutine.
9025 (acc_create_async_64_h): New subroutine.
9026 (acc_create_async_array_h): New subroutine.
9027 (acc_copyout_async_32_h): New subroutine.
9028 (acc_copyout_async_64_h): New subroutine.
9029 (acc_copyout_async_array_h): New subroutine.
9030 (acc_delete_async_32_h): New subroutine.
9031 (acc_delete_async_64_h): New subroutine.
9032 (acc_delete_async_array_h): New subroutine.
9033 (acc_update_device_async_32_h): New subroutine.
9034 (acc_update_device_async_64_h): New subroutine.
9035 (acc_update_device_async_array_h): New subroutine.
9036 (acc_update_self_async_32_h): New subroutine.
9037 (acc_update_self_async_64_h): New subroutine.
9038 (acc_update_self_async_array_h): New subroutine.
9039 * openacc.f90 (acc_copyin_async_32_h): New subroutine.
9040 (acc_copyin_async_64_h): New subroutine.
9041 (acc_copyin_async_array_h): New subroutine.
9042 (acc_create_async_32_h): New subroutine.
9043 (acc_create_async_64_h): New subroutine.
9044 (acc_create_async_array_h): New subroutine.
9045 (acc_copyout_async_32_h): New subroutine.
9046 (acc_copyout_async_64_h): New subroutine.
9047 (acc_copyout_async_array_h): New subroutine.
9048 (acc_delete_async_32_h): New subroutine.
9049 (acc_delete_async_64_h): New subroutine.
9050 (acc_delete_async_array_h): New subroutine.
9051 (acc_update_device_async_32_h): New subroutine.
9052 (acc_update_device_async_64_h): New subroutine.
9053 (acc_update_device_async_array_h): New subroutine.
9054 (acc_update_self_async_32_h): New subroutine.
9055 (acc_update_self_async_64_h): New subroutine.
9056 (acc_update_self_async_array_h): New subroutine.
9057 * libgomp.map (OACC_2.5): Add acc_copyin_async*, acc_copyout_async*,
9058 acc_copyout_finalize_async*, acc_create_async*, acc_delete_async*,
9059 acc_delete_finalize_async*, acc_memcpy_from_device_async*,
9060 acc_memcpy_to_device_async*, acc_update_device_async*, and
9061 acc_update_self_async* entries.
9062 * testsuite/libgomp.oacc-c-c++-common/lib-94.c: New test.
9063 * testsuite/libgomp.oacc-c-c++-common/lib-95.c: New test.
9064 * testsuite/libgomp.oacc-fortran/lib-16.f90: New test.
9066 2018-10-31 Joseph Myers <joseph@codesourcery.com>
9069 * Makefile.am: Include multilib.am
9070 (AUTOMAKE_OPTIONS): Add info-in-builddir.
9071 (CLEANFILES): Remove libgomp.info.
9072 * configure.ac: Remove AC_PREREQ.
9073 * testsuite/Makefile.am (RUNTEST): Remove quotes.
9074 * Makefile.in, aclocal.m4, configure, testsuite/Makefile.in:
9077 2018-10-29 Joseph Myers <joseph@codesourcery.com>
9078 Julian Brown <julian@codesourcery.com>
9080 * testsuite/libgomp.oacc-c++/this.C: New.
9082 2018-09-18 Cesar Philippidis <cesar@codesourcery.com>
9084 * plugin/plugin-nvptx.c (struct cuda_map): New.
9085 (struct ptx_stream): Replace d, h, h_begin, h_end, h_next, h_prev,
9086 h_tail with (cuda_map *) map.
9087 (cuda_map_create): New function.
9088 (cuda_map_destroy): New function.
9089 (map_init): Update to use a linked list of cuda_map objects.
9090 (map_fini): Likewise.
9091 (map_pop): Likewise.
9092 (map_push): Likewise. Return CUdeviceptr instead of void.
9093 (init_streams_for_device): Remove stales references to ptx_stream
9095 (select_stream_for_async): Likewise.
9096 (nvptx_exec): Update call to map_init.
9098 2018-09-09 Cesar Philippidis <cesar@codesourcery.com>
9099 Julian Brown <julian@codesourcery.com>
9102 * testsuite/libgomp.oacc-c++/non-scalar-data.C: Remove XFAIL.
9104 2018-08-21 Nicolas Koenig <koenigni@gcc.gnu.org>
9105 Thomas Koenig <tkoenig@gcc.gnu.org>
9108 * testsuite/libgomp.fortran/async_io_1.f90: New test.
9109 * testsuite/libgomp.fortran/async_io_2.f90: New test.
9110 * testsuite/libgomp.fortran/async_io_3.f90: New test.
9111 * testsuite/libgomp.fortran/async_io_4.f90: New test.
9112 * testsuite/libgomp.fortran/async_io_5.f90: New test.
9113 * testsuite/libgomp.fortran/async_io_6.f90: New test.
9114 * testsuite/libgomp.fortran/async_io_7.f90: New test.
9116 2018-08-13 Cesar Philippidis <cesar@codesourcery.com>
9117 Tom de Vries <tdevries@suse.de>
9120 * plugin/cuda/cuda.h (CUoccupancyB2DSize): New typedef.
9121 (cuOccupancyMaxPotentialBlockSize): Declare.
9122 * plugin/cuda-lib.def (cuOccupancyMaxPotentialBlockSize): New
9123 CUDA_ONE_CALL_MAYBE_NULL.
9124 * plugin/plugin-nvptx.c (CUDA_VERSION < 6050): Define
9125 CUoccupancyB2DSize and declare
9126 cuOccupancyMaxPotentialBlockSize.
9127 (nvptx_exec): Use cuOccupancyMaxPotentialBlockSize to set the
9128 default num_gangs and num_workers when the driver supports it.
9130 2018-08-08 Tom de Vries <tdevries@suse.de>
9132 * plugin/cuda-lib.def (cuLinkAddData_v2, cuLinkCreate_v2): Declare using
9133 CUDA_ONE_CALL_MAYBE_NULL.
9134 * plugin/plugin-nvptx.c (cuLinkAddData, cuLinkCreate): Undef and declare.
9135 (cuLinkAddData_v2, cuLinkCreate_v2): Declare.
9136 (link_ptx): Fall back to cuLinkAddData/cuLinkCreate if the _v2 versions
9139 2018-08-08 Tom de Vries <tdevries@suse.de>
9141 * plugin/cuda-lib.def (cuGetErrorString): Use CUDA_ONE_CALL_MAYBE_NULL.
9142 * plugin/plugin-nvptx.c (cuda_error): Handle if cuGetErrorString is not
9145 2018-08-08 Tom de Vries <tdevries@suse.de>
9147 * plugin/plugin-nvptx.c
9148 (CU_DEVICE_ATTRIBUTE_MAX_REGISTERS_PER_MULTIPROCESSOR): Define.
9149 (nvptx_open_device): Use
9150 CU_DEVICE_ATTRIBUTE_MAX_REGISTERS_PER_MULTIPROCESSOR.
9152 2018-08-08 Tom de Vries <tdevries@suse.de>
9154 * plugin/plugin-nvptx.c (cuda_error): Move declaration of cuGetErrorString ...
9155 (cuGetErrorString): ... here. Guard with CUDA_VERSION < 6000.
9157 2018-08-07 Tom de Vries <tdevries@suse.de>
9159 * plugin/plugin-nvptx.c (DO_PRAGMA): Define.
9160 (struct cuda_lib_s): Add def/undef of CUDA_ONE_CALL_MAYBE_NULL.
9161 (init_cuda_lib): Add new param to CUDA_ONE_CALL_1. Add arg to
9162 corresponding call in CUDA_ONE_CALL. Add def/undef of
9163 CUDA_ONE_CALL_MAYBE_NULL.
9164 (CUDA_CALL_EXISTS): Define.
9166 2018-08-07 Tom de Vries <tdevries@suse.de>
9168 * plugin/plugin-nvptx.c (struct cuda_lib_s, init_cuda_lib): Put
9169 CUDA_ONE_CALL defines right before the cuda-lib.def include, and the
9170 corresponding undefs right after.
9172 2018-08-04 Tom de Vries <tdevries@suse.de>
9174 * plugin/configfrag.ac: For --without-cuda-driver, set
9175 CUDA_DRIVER_INCLUDE and CUDA_DRIVER_LIB to no. Handle
9176 CUDA_DRIVER_INCLUDE == no and CUDA_DRIVER_LIB == no.
9177 * configure: Regenerate.
9179 2018-08-02 Tom de Vries <tdevries@suse.de>
9182 * testsuite/libgomp.oacc-c++/routine-1-auto.C: Remove -fno-exceptions.
9183 * testsuite/libgomp.oacc-c++/routine-1-template-auto.C: Same.
9184 * testsuite/libgomp.oacc-c++/routine-1-template-trailing-return-type.C:
9186 * testsuite/libgomp.oacc-c++/routine-1-template.C: Same.
9187 * testsuite/libgomp.oacc-c++/routine-1-trailing-return-type.C: Same.
9188 * testsuite/libgomp.oacc-c-c++-common/routine-1.c: Same.
9190 2018-08-01 Cesar Philippidis <cesar@codesourcery.com>
9191 Thomas Schwinge <thomas@codesourcery.com>
9193 * config/nvptx/oacc-parallel.c: Truncate.
9195 2018-08-01 Cesar Philippidis <cesar@codesourcery.com>
9196 James Norris <jnorris@codesourcery.com>
9198 * plugin/plugin-nvptx.c (struct map): Removed.
9199 (map_init, map_pop): Remove use of struct map.
9200 (map_push): Likewise and change argument list.
9201 * testsuite/libgomp.oacc-c-c++-common/mapping-1.c: New
9203 2018-08-01 Tom de Vries <tdevries@suse.de>
9205 * plugin/cuda-lib.def: New file. Factor out of ...
9206 * plugin/plugin-nvptx.c (CUDA_CALLS): ... here.
9207 (struct cuda_lib_s, init_cuda_lib): Include cuda-lib.def instead of
9210 2018-07-31 Andre Vieira <andre.simoesdiasvieira@arm.com>
9212 Revert 'AsyncI/O patch committed'.
9213 2018-07-25 Nicolas Koenig <koenigni@gcc.gnu.org>
9214 Thomas Koenig <tkoenig@gcc.gnu.org>
9217 * testsuite/libgomp.fortran/async_io_1.f90: New test.
9218 * testsuite/libgomp.fortran/async_io_2.f90: New test.
9219 * testsuite/libgomp.fortran/async_io_3.f90: New test.
9220 * testsuite/libgomp.fortran/async_io_4.f90: New test.
9221 * testsuite/libgomp.fortran/async_io_5.f90: New test.
9222 * testsuite/libgomp.fortran/async_io_6.f90: New test.
9223 * testsuite/libgomp.fortran/async_io_7.f90: New test.
9225 2018-07-30 Tom de Vries <tdevries@suse.de>
9227 * plugin/plugin-nvptx.c (MIN, MAX): Redefine.
9228 (nvptx_exec): Ensure worker and vector default dims don't exceed
9229 targ_fn->max_threads_per_block.
9231 2018-07-30 Tom de Vries <tdevries@suse.de>
9233 * plugin/plugin-nvptx.c (struct ptx_device): Add default_dims field.
9234 (nvptx_open_device): Init default_dims for device.
9235 (nvptx_exec): Use default_dims from device.
9237 2018-07-26 Jakub Jelinek <jakub@redhat.com>
9240 * testsuite/libgomp.c++/for-15.C (results): Include it in
9241 omp declare target region.
9242 (main): Use map (always, tofrom: results) instead of
9243 map (tofrom: results).
9246 * testsuite/libgomp.c/pr86660.c: New test.
9248 2018-07-26 Cesar Philippidis <cesar@codesourcery.com>
9249 Tom de Vries <tdevries@suse.de>
9251 * plugin/plugin-nvptx.c (nvptx_exec): Error if the hardware doesn't have
9252 sufficient resources to launch a kernel, and give a hint on how to fix
9255 2018-07-26 Cesar Philippidis <cesar@codesourcery.com>
9256 Tom de Vries <tdevries@suse.de>
9258 * plugin/plugin-nvptx.c (struct ptx_device): Add warp_size,
9259 max_threads_per_block and max_threads_per_multiprocessor fields.
9260 (nvptx_open_device): Initialize new fields.
9261 (nvptx_exec): Use num_sms, and new fields.
9263 2018-07-26 Tom de Vries <tdevries@suse.de>
9265 * testsuite/libgomp.oacc-fortran/lib-12.f90: Move acc_async_test calls
9266 to correct locations. Remove xfail.
9268 2018-07-26 Tom de Vries <tdevries@suse.de>
9270 * testsuite/libgomp.oacc-fortran/lib-13.f90: Replace acc_wait_all with
9271 acc_wait. Move acc_async_test calls to correct locations. Remove
9274 2018-07-25 Nicolas Koenig <koenigni@gcc.gnu.org>
9275 Thomas Koenig <tkoenig@gcc.gnu.org>
9278 * testsuite/libgomp.fortran/async_io_1.f90: New test.
9279 * testsuite/libgomp.fortran/async_io_2.f90: New test.
9280 * testsuite/libgomp.fortran/async_io_3.f90: New test.
9281 * testsuite/libgomp.fortran/async_io_4.f90: New test.
9282 * testsuite/libgomp.fortran/async_io_5.f90: New test.
9283 * testsuite/libgomp.fortran/async_io_6.f90: New test.
9284 * testsuite/libgomp.fortran/async_io_7.f90: New test.
9286 2018-07-17 Jakub Jelinek <jakub@redhat.com>
9289 * testsuite/libgomp.c++/pr86542.C: New test.
9292 * testsuite/libgomp.c++/pr86539.C: New test.
9294 2018-07-11 Jakub Jelinek <jakub@redhat.com>
9297 * testsuite/libgomp.c++/for-15.C (a): Remove unused variable.
9298 (results): Make sure the variable is not inside declare target region.
9299 (qux): Remove unused function.
9301 2018-07-10 Jakub Jelinek <jakub@redhat.com>
9304 * testsuite/libgomp.c++/for-15.C: New test.
9306 2018-06-26 Jakub Jelinek <jakub@redhat.com>
9309 * testsuite/libgomp.c++/pr86291.C: New test.
9311 2018-06-24 Gerald Pfeifer <gerald@pfeifer.com>
9313 * libgomp.texi (Top): Move www.openmp.org to https.
9314 (Enabling OpenMP): Ditto.
9315 (omp_get_active_level): Ditto.
9316 (omp_get_ancestor_thread_num): Ditto.
9317 (omp_get_cancellation): Ditto.
9318 (omp_get_default_device): Ditto.
9319 (omp_get_dynamic): Ditto.
9320 (omp_get_level): Ditto.
9321 (omp_get_max_active_levels): Ditto.
9322 (omp_get_max_task_priority): Ditto.
9323 (omp_get_max_threads): Ditto.
9324 (omp_get_nested): Ditto.
9325 (omp_get_num_devices): Ditto.
9326 (omp_get_num_procs): Ditto.
9327 (omp_get_num_teams): Ditto.
9328 (omp_get_num_threads): Ditto.
9329 (omp_get_proc_bind): Ditto.
9330 (omp_get_schedule): Ditto.
9331 (omp_get_team_num): Ditto.
9332 (omp_get_team_size): Ditto.
9333 (omp_get_thread_limit): Ditto.
9334 (omp_get_thread_num): Ditto.
9335 (omp_in_parallel): Ditto.
9336 (omp_in_final): Ditto.
9337 (omp_is_initial_device): Ditto.
9338 (omp_set_default_device): Ditto.
9339 (omp_set_dynamic): Ditto.
9340 (omp_set_max_active_levels): Ditto.
9341 (omp_set_nested): Ditto.
9342 (omp_set_num_threads): Ditto.
9343 (omp_set_schedule): Ditto.
9344 (omp_init_lock): Ditto.
9345 (omp_set_lock): Ditto.
9346 (omp_test_lock): Ditto.
9347 (omp_unset_lock): Ditto.
9348 (omp_destroy_lock): Ditto.
9349 (omp_init_nest_lock): Ditto.
9350 (omp_set_nest_lock): Ditto.
9351 (omp_test_nest_lock): Ditto.
9352 (omp_unset_nest_lock): Ditto.
9353 (omp_destroy_nest_lock): Ditto.
9354 (omp_get_wtick): Ditto.
9355 (omp_get_wtime): Ditto.
9356 (OMP_CANCELLATION): Ditto.
9357 (OMP_DISPLAY_ENV): Ditto.
9358 (OMP_DEFAULT_DEVICE): Ditto.
9359 (OMP_DYNAMIC): Ditto.
9360 (OMP_MAX_ACTIVE_LEVELS): Ditto.
9361 (OMP_MAX_TASK_PRIORITY): Ditto.
9362 (OMP_NESTED): Ditto.
9363 (OMP_NUM_THREADS): Ditto.
9364 (OMP_PROC_BIND): Ditto.
9365 (OMP_PLACES): Ditto.
9366 (OMP_STACKSIZE): Ditto.
9367 (OMP_SCHEDULE): Ditto.
9368 (OMP_THREAD_LIMIT): Ditto.
9369 (OMP_WAIT_POLICY): Ditto.
9371 2018-06-22 Cesar Philippidis <cesar@codesourcery.com>
9372 James Norris <jnorris@codesourcery.com>
9373 Julian Brown <julian@codesourcery.com>
9374 Thomas Schwinge <thomas@codesourcery.com>
9375 Tom de Vries <tom@codesourcery.com>
9377 * testsuite/libgomp.oacc-c-c++-common/loop-red-wv-1.c: Don't force "-O2".
9378 * testsuite/libgomp.oacc-c-c++-common/data-2.c: Update.
9379 * testsuite/libgomp.oacc-c-c++-common/host_data-1.c: Likewise.
9380 * testsuite/libgomp.oacc-c-c++-common/mode-transitions.c: Likewise.
9381 * testsuite/libgomp.oacc-fortran/data-1.f90: Likewise.
9382 * testsuite/libgomp.oacc-fortran/data-2.f90: Likewise.
9383 * testsuite/libgomp.oacc-c++/non-scalar-data.C: New file.
9384 * testsuite/libgomp.oacc-c-c++-common/declare-3.c: Likewise.
9385 * testsuite/libgomp.oacc-c-c++-common/enter-data.c: Likewise.
9386 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-2.c:
9388 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-enter-exit-2.c:
9390 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-enter-exit.c:
9392 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-update.c:
9394 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data.c:
9396 * testsuite/libgomp.oacc-c-c++-common/kernels-parallel-loop-data-enter-exit.c:
9398 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-1.c:
9400 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-2.c:
9402 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-3.c:
9404 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-4.c:
9406 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-5.c:
9408 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-1.c:
9410 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-2.c:
9412 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-3.c:
9414 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-4.c:
9416 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-5.c:
9418 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-6.c:
9420 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-vector-1.c:
9422 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-vector-2.c:
9424 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-1.c:
9426 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-2.c:
9428 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-3.c:
9430 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-4.c:
9432 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-5.c:
9434 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-6.c:
9436 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-7.c:
9438 * testsuite/libgomp.oacc-c-c++-common/kernels-reduction-1.c:
9440 * testsuite/libgomp.oacc-c-c++-common/parallel-loop-1.c: Likewise.
9441 * testsuite/libgomp.oacc-c-c++-common/parallel-loop-1.h: Likewise.
9442 * testsuite/libgomp.oacc-c-c++-common/parallel-loop-2.h: Likewise.
9443 * testsuite/libgomp.oacc-fortran/cublas-fixed.h: Likewise.
9444 * testsuite/libgomp.oacc-fortran/dummy-array.f90: Likewise.
9445 * testsuite/libgomp.oacc-fortran/host_data-2.f90: Likewise.
9446 * testsuite/libgomp.oacc-fortran/host_data-3.f: Likewise.
9447 * testsuite/libgomp.oacc-fortran/host_data-4.f90: Likewise.
9448 * testsuite/libgomp.oacc-fortran/kernels-acc-loop-reduction-2.f90:
9450 * testsuite/libgomp.oacc-fortran/kernels-acc-loop-reduction.f90:
9452 * testsuite/libgomp.oacc-fortran/kernels-collapse-3.f90: Likewise.
9453 * testsuite/libgomp.oacc-fortran/kernels-collapse-4.f90: Likewise.
9454 * testsuite/libgomp.oacc-fortran/kernels-independent.f90:
9456 * testsuite/libgomp.oacc-fortran/kernels-loop-1.f90: Likewise.
9457 * testsuite/libgomp.oacc-fortran/kernels-map-1.f90: Likewise.
9458 * testsuite/libgomp.oacc-fortran/kernels-parallel-loop-data-enter-exit.f95:
9460 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-1.f90:
9462 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-2.f90:
9464 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-3.f90:
9466 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-6.f90:
9468 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-vector-1.f90:
9470 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-vector-2.f90:
9472 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-1.f90:
9474 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-2.f90:
9476 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-3.f90:
9478 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-4.f90:
9480 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-5.f90:
9482 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-6.f90:
9484 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-7.f90:
9486 * testsuite/libgomp.oacc-fortran/kernels-reduction-1.f90:
9488 * testsuite/libgomp.oacc-fortran/lib-12.f90: Likewise.
9489 * testsuite/libgomp.oacc-fortran/lib-13.f90: Likewise.
9490 * testsuite/libgomp.oacc-fortran/lib-14.f90: Likewise.
9491 * testsuite/libgomp.oacc-fortran/lib-15.f90: Likewise.
9492 * testsuite/libgomp.oacc-fortran/parallel-loop-1.f90: Likewise.
9493 * testsuite/libgomp.oacc-fortran/reference-reductions.f90: Likewise.
9494 * testsuite/libgomp.oacc-fortran/vector-routine.f90: Likewise.
9496 2018-06-20 Chung-Lin Tang <cltang@codesourcery.com>
9497 Thomas Schwinge <thomas@codesourcery.com>
9498 Cesar Philippidis <cesar@codesourcery.com>
9500 * libgomp.h (struct splay_tree_key_s): Add dynamic_refcount member.
9501 (gomp_acc_remove_pointer): Update declaration.
9502 (gomp_acc_declare_allocate): Declare.
9503 (gomp_remove_var): Declare.
9504 * libgomp.map (OACC_2.5): Define.
9505 * oacc-mem.c (acc_map_data): Update refcount.
9506 (acc_unmap_data): Likewise.
9507 (present_create_copy): Likewise.
9508 (acc_create): Add FLAG_PRESENT when calling present_create_copy.
9509 (acc_copyin): Likewise.
9510 (FLAG_FINALIZE): Define.
9511 (delete_copyout): Update dynamic refcounts, add support for FINALIZE.
9512 (acc_delete_finalize): New function.
9513 (acc_delete_finalize_async): New function.
9514 (acc_copyout_finalize): New function.
9515 (acc_copyout_finalize_async): New function.
9516 (gomp_acc_insert_pointer): Update refcounts.
9517 (gomp_acc_remove_pointer): Return if data is not present on the
9519 * oacc-parallel.c (find_pset): Rename to find_pointer.
9520 (find_pointer): Add support for GOMP_MAP_POINTER.
9521 (handle_ftn_pointers): New function.
9522 (GOACC_parallel_keyed): Update refcounts of variables.
9523 (GOACC_enter_exit_data): Add support for finalized data mappings.
9524 Add support for GOMP_MAP_{TO,ALLOC,RELESE,FROM}. Update handling
9526 (GOACC_update): Add support for GOMP_MAP_{ALWAYS_POINTER,TO,FROM}.
9527 (GOACC_declare): Add support for GOMP_MAP_RELEASE, remove support
9528 for GOMP_MAP_FORCE_FROM.
9529 * openacc.f90 (module openacc_internal): Add
9530 acc_copyout_finalize_{32_h,64_h,array_h,_l}, and
9531 acc_delete_finalize_{32_h,64_h,array_h,_l}. Add interfaces for
9532 acc_copyout_finalize and acc_delete_finalize.
9533 (acc_copyout_finalize_32_h): New subroutine.
9534 (acc_copyout_finalize_64_h): New subroutine.
9535 (acc_copyout_finalize_array_h): New subroutine.
9536 (acc_delete_finalize_32_h): New subroutine.
9537 (acc_delete_finalize_64_h): New subroutine.
9538 (acc_delete_finalize_array_h): New subroutine.
9539 * openacc.h (acc_copyout_finalize): Declare.
9540 (acc_copyout_finalize_async): Declare.
9541 (acc_delete_finalize): Declare.
9542 (acc_delete_finalize_async): Declare.
9543 * openacc_lib.h (acc_copyout_finalize): New interface.
9544 (acc_delete_finalize): New interface.
9545 * target.c (gomp_map_vars): Update dynamic_refcount.
9546 (gomp_remove_var): New function.
9547 (gomp_unmap_vars): Use it.
9548 (gomp_unload_image_from_device): Likewise.
9549 * testsuite/libgomp.oacc-c-c++-common/data-already-1.c: Update test
9550 case to utilize OpenACC 2.5 data clause semantics.
9551 * testsuite/libgomp.oacc-c-c++-common/data-already-2.c: Likewise.
9552 * testsuite/libgomp.oacc-c-c++-common/data-already-3.c: Likewise.
9553 * testsuite/libgomp.oacc-c-c++-common/data-already-4.c: Likewise.
9554 * testsuite/libgomp.oacc-c-c++-common/data-already-5.c: Likewise.
9555 * testsuite/libgomp.oacc-c-c++-common/data-already-6.c: Likewise.
9556 * testsuite/libgomp.oacc-c-c++-common/data-already-7.c: Likewise.
9557 * testsuite/libgomp.oacc-c-c++-common/data-already-8.c: Likewise.
9558 * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
9559 * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
9560 * testsuite/libgomp.oacc-c-c++-common/lib-32.c: Likewise.
9561 * testsuite/libgomp.oacc-c-c++-common/lib-83.c: Likewise.
9562 * testsuite/libgomp.oacc-fortran/data-5.f90: New test.
9563 * testsuite/libgomp.oacc-fortran/data-already-1.f: Update test case to
9564 utilize OpenACC 2.5 data clause semantics.
9565 * testsuite/libgomp.oacc-fortran/data-already-2.f: Likewise.
9566 * testsuite/libgomp.oacc-fortran/data-already-3.f: Likewise.
9567 * testsuite/libgomp.oacc-fortran/data-already-4.f: Likewise.
9568 * testsuite/libgomp.oacc-fortran/data-already-5.f: Likewise.
9569 * testsuite/libgomp.oacc-fortran/data-already-6.f: Likewise.
9570 * testsuite/libgomp.oacc-fortran/data-already-7.f: Likewise.
9571 * testsuite/libgomp.oacc-fortran/data-already-8.f: Likewise.
9572 * testsuite/libgomp.oacc-fortran/lib-32-1.f: Likewise.
9573 * testsuite/libgomp.oacc-fortran/lib-32-2.f: Likewise.
9575 2018-05-21 Janus Weil <janus@gcc.gnu.org>
9579 * testsuite/libgomp.fortran/collapse2.f90: Add option "-std=legacy".
9580 * testsuite/libgomp.fortran/omp_atomic2.f90: Ditto.
9581 * testsuite/libgomp.fortran/omp_parse1.f90: Ditto.
9582 * testsuite/libgomp.fortran/omp_parse3.f90: Ditto.
9583 * testsuite/libgomp.fortran/task2.f90: Ditto.
9584 * testsuite/libgomp.fortran/vla1.f90: Ditto.
9585 * testsuite/libgomp.fortran/vla2.f90: Ditto.
9586 * testsuite/libgomp.fortran/vla3.f90: Ditto.
9587 * testsuite/libgomp.fortran/vla4.f90: Ditto.
9588 * testsuite/libgomp.fortran/vla5.f90: Ditto.
9589 * testsuite/libgomp.fortran/vla6.f90: Ditto.
9590 * testsuite/libgomp.fortran/vla8.f90: Ditto.
9591 * testsuite/libgomp.oacc-fortran/collapse-2.f90: Ditto.
9592 * testsuite/libgomp.oacc-fortran/nested-function-1.f90: Ditto.
9594 2018-05-18 Cesar Philippidis <cesar@codesourcery.com>
9597 * testsuite/libgomp.oacc-c-c++-common/pr85782.c: New test.
9599 2018-05-09 Tom de Vries <tom@codesourcery.com>
9602 * oacc-parallel.c (GOACC_declare): Use GOMP_ASYNC_SYNC as async argument
9603 to GOACC_enter_exit_data.
9605 2018-05-09 Tom de Vries <tom@codesourcery.com>
9608 * oacc-int.h (async_valid_stream_id_p, async_valid_p)
9609 (async_synchronous_p): New function.
9610 * oacc-async.c (acc_async_test, acc_wait, acc_wait_all_async): Use
9612 * oacc-cuda.c (acc_get_cuda_stream, acc_set_cuda_stream): Use
9613 async_valid_stream_id_p.
9614 * oacc-mem.c (gomp_acc_remove_pointer): Use async_synchronous_p.
9615 * oacc-parallel.c (GOACC_parallel_keyed): Same.
9617 2018-05-07 Tom de Vries <tom@codesourcery.com>
9620 * testsuite/lib/libgomp.exp (libgomp_init): Move inclusion of top-level
9621 include directory in ALWAYS_CFLAGS out of $blddir != "" condition.
9623 2018-05-03 Tom de Vries <tom@codesourcery.com>
9626 * testsuite/lib/libgomp-dg.exp (libgomp-dg-test): Add save-temps to
9627 extra_tool_flags if it contains an -foffload=-fdump-* flag.
9628 * testsuite/lib/libgomp.exp: Include scanoffloadtree.exp.
9629 * testsuite/libgomp.oacc-c/vec.c: Use scan-offload-tree-dump.
9631 2018-05-02 Tom de Vries <tom@codesourcery.com>
9634 * plugin/plugin-nvptx.c (nvptx_exec): Move parsing of
9635 GOMP_OPENACC_DIM ...
9636 * env.c (parse_gomp_openacc_dim): ... here. New function.
9637 (initialize_env): Call parse_gomp_openacc_dim.
9638 (goacc_default_dims): Define.
9639 * libgomp.h (goacc_default_dims): Declare.
9640 * oacc-plugin.c (GOMP_PLUGIN_acc_default_dim): New function.
9641 * oacc-plugin.h (GOMP_PLUGIN_acc_default_dim): Declare.
9642 * libgomp.map: New version "GOMP_PLUGIN_1.2". Add
9643 GOMP_PLUGIN_acc_default_dim.
9644 * testsuite/libgomp.oacc-c-c++-common/loop-default-runtime.c: New test.
9645 * testsuite/libgomp.oacc-c-c++-common/loop-default.h: New test.
9647 2018-05-02 Tom de Vries <tom@codesourcery.com>
9650 * testsuite/libgomp.c++/udr-9.C: Update.
9651 * testsuite/libgomp.c++/atomic-16.C: Remove.
9652 * testsuite/libgomp.c++/cancel-taskgroup-2.C: Remove.
9653 * testsuite/libgomp.c++/loop-13.C: Remove.
9654 * testsuite/libgomp.c++/loop-14.C: Remove.
9655 * testsuite/libgomp.c++/loop-15.C: Remove.
9656 * testsuite/libgomp.c++/monotonic-1.C: Remove.
9657 * testsuite/libgomp.c++/monotonic-2.C: Remove.
9658 * testsuite/libgomp.c++/nonmonotonic-1.C: Remove.
9659 * testsuite/libgomp.c++/nonmonotonic-2.C: Remove.
9660 * testsuite/libgomp.c++/ordered-1.C: Remove.
9661 * testsuite/libgomp.c++/pr45784.C: Remove.
9662 * testsuite/libgomp.c++/pr64824.C: Remove.
9663 * testsuite/libgomp.c++/pr64868.C: Remove.
9664 * testsuite/libgomp.c++/pr66199-1.C: Remove.
9665 * testsuite/libgomp.c++/pr66199-2.C: Remove.
9666 * testsuite/libgomp.c++/pr66199-3.C: Remove.
9667 * testsuite/libgomp.c++/pr66199-4.C: Remove.
9668 * testsuite/libgomp.c++/pr66199-5.C: Remove.
9669 * testsuite/libgomp.c++/pr66199-6.C: Remove.
9670 * testsuite/libgomp.c++/pr66199-7.C: Remove.
9671 * testsuite/libgomp.c++/pr66199-8.C: Remove.
9672 * testsuite/libgomp.c++/pr66199-9.C: Remove.
9673 * testsuite/libgomp.c++/pr69389.C: Remove.
9674 * testsuite/libgomp.c++/simd10.C: Remove.
9675 * testsuite/libgomp.c++/simd11.C: Remove.
9676 * testsuite/libgomp.c++/simd12.C: Remove.
9677 * testsuite/libgomp.c++/simd13.C: Remove.
9678 * testsuite/libgomp.c++/target-1.C: Remove.
9679 * testsuite/libgomp.c++/target-3.C: Remove.
9680 * testsuite/libgomp.c++/target-4.C: Remove.
9681 * testsuite/libgomp.c++/target-5.C: Remove.
9682 * testsuite/libgomp.c++/taskgroup-1.C: Remove.
9683 * testsuite/libgomp.c++/taskloop-1.C: Remove.
9684 * testsuite/libgomp.c++/taskloop-2.C: Remove.
9685 * testsuite/libgomp.c++/taskloop-3.C: Remove.
9686 * testsuite/libgomp.c++/taskloop-4.C: Remove.
9687 * testsuite/libgomp.c++/udr-9.C: Remove.
9688 * testsuite/libgomp.c++/for-10.C: Remove.
9689 * testsuite/libgomp.c++/for-11.C: Remove.
9690 * testsuite/libgomp.c++/for-12.C: Remove.
9691 * testsuite/libgomp.c++/for-13.C: Remove.
9692 * testsuite/libgomp.c++/for-14.C: Remove.
9693 * testsuite/libgomp.c++/for-9.C: Remove.
9694 * testsuite/libgomp.c/atomic-18.c: Move ...
9695 * testsuite/libgomp.c-c++-common/atomic-18.c: ... here.
9696 * testsuite/libgomp.c/cancel-taskgroup-2.c: Move ...
9697 * testsuite/libgomp.c-c++-common/cancel-taskgroup-2.c: here.
9698 * testsuite/libgomp.c/loop-13.c: Move ...
9699 * testsuite/libgomp.c-c++-common/loop-13.c: ... here.
9700 * testsuite/libgomp.c/loop-14.c: Move ...
9701 * testsuite/libgomp.c-c++-common/loop-14.c: ... here.
9702 * testsuite/libgomp.c/loop-15.c: Remove.
9703 * testsuite/libgomp.c-c++-common/loop-15.c: New test.
9704 * testsuite/libgomp.c/monotonic-1.c: Move ...
9705 * testsuite/libgomp.c-c++-common/monotonic-1.c: ... here.
9706 * testsuite/libgomp.c/monotonic-2.c: Move ...
9707 * testsuite/libgomp.c-c++-common/monotonic-2.c: ... here.
9708 * testsuite/libgomp.c/nonmonotonic-1.c: Move ...
9709 * testsuite/libgomp.c-c++-common/nonmonotonic-1.c: ... here.
9710 * testsuite/libgomp.c/nonmonotonic-2.c: Move ...
9711 * testsuite/libgomp.c-c++-common/nonmonotonic-2.c: ... here.
9712 * testsuite/libgomp.c/ordered-4.c: Move ...
9713 * testsuite/libgomp.c-c++-common/ordered-4.c: ... here.
9714 * testsuite/libgomp.c/pr45784.c: Move ...
9715 * testsuite/libgomp.c-c++-common/pr45784.c: ... here.
9716 * testsuite/libgomp.c/pr64824.c: Move ...
9717 * testsuite/libgomp.c-c++-common/pr64824.c: ... here.
9718 * testsuite/libgomp.c/pr64868.c: Move ...
9719 * testsuite/libgomp.c-c++-common/pr64868.c: ... here.
9720 * testsuite/libgomp.c/pr66199-1.c: Move ...
9721 * testsuite/libgomp.c-c++-common/pr66199-1.c: ... here.
9722 * testsuite/libgomp.c/pr66199-2.c: Move ...
9723 * testsuite/libgomp.c-c++-common/pr66199-2.c: ... here.
9724 * testsuite/libgomp.c/pr66199-3.c: Move ...
9725 * testsuite/libgomp.c-c++-common/pr66199-3.c: ... here.
9726 * testsuite/libgomp.c/pr66199-4.c: Move ...
9727 * testsuite/libgomp.c-c++-common/pr66199-4.c: ... here.
9728 * testsuite/libgomp.c/pr66199-5.c: Move ...
9729 * testsuite/libgomp.c-c++-common/pr66199-5.c: ... here.
9730 * testsuite/libgomp.c/pr66199-6.c: Move ...
9731 * testsuite/libgomp.c-c++-common/pr66199-6.c: ... here.
9732 * testsuite/libgomp.c/pr66199-7.c: Move ...
9733 * testsuite/libgomp.c-c++-common/pr66199-7.c: ... here.
9734 * testsuite/libgomp.c/pr66199-8.c: Move ...
9735 * testsuite/libgomp.c-c++-common/pr66199-8.c: ... here.
9736 * testsuite/libgomp.c/pr66199-9.c: Move ...
9737 * testsuite/libgomp.c-c++-common/pr66199-9.c: ... here.
9738 * testsuite/libgomp.c/pr69389.c: Move ...
9739 * testsuite/libgomp.c-c++-common/pr69389.c: ... here.
9740 * testsuite/libgomp.c/simd-14.c: Move ...
9741 * testsuite/libgomp.c-c++-common/simd-14.c: ... here.
9742 * testsuite/libgomp.c/simd-15.c: Move ...
9743 * testsuite/libgomp.c-c++-common/simd-15.c: ... here.
9744 * testsuite/libgomp.c/simd-16.c: Move ...
9745 * testsuite/libgomp.c-c++-common/simd-16.c: ... here.
9746 * testsuite/libgomp.c/simd-17.c: Move ...
9747 * testsuite/libgomp.c-c++-common/simd-17.c: ... here.
9748 * testsuite/libgomp.c/target-1.c: Move ...
9749 * testsuite/libgomp.c-c++-common/target-1.c: ... here.
9750 * testsuite/libgomp.c/target-10.c: Move ...
9751 * testsuite/libgomp.c-c++-common/target-10.c: ... here.
9752 * testsuite/libgomp.c/target-13.c: Move ...
9753 * testsuite/libgomp.c-c++-common/target-13.c: ... here.
9754 * testsuite/libgomp.c/target-2.c: Move ...
9755 * testsuite/libgomp.c-c++-common/target-2.c: ... here.
9756 * testsuite/libgomp.c/taskgroup-1.c: Move ...
9757 * testsuite/libgomp.c-c++-common/taskgroup-1.c: ... here.
9758 * testsuite/libgomp.c/taskloop-1.c: Move ...
9759 * testsuite/libgomp.c-c++-common/taskloop-1.c: ... here.
9760 * testsuite/libgomp.c/taskloop-2.c: Move ...
9761 * testsuite/libgomp.c-c++-common/taskloop-2.c: ... here.
9762 * testsuite/libgomp.c/taskloop-3.c: Move ...
9763 * testsuite/libgomp.c-c++-common/taskloop-3.c: ... here.
9764 * testsuite/libgomp.c/taskloop-4.c: Move ...
9765 * testsuite/libgomp.c-c++-common/taskloop-4.c: ... here.
9766 * testsuite/libgomp.c/udr-1.c: Move ...
9767 * testsuite/libgomp.c-c++-common/udr-1.c: ... here.
9768 * testsuite/libgomp.c/for-1.c: Move ...
9769 * testsuite/libgomp.c-c++-common/for-1.c: ... here.
9770 * testsuite/libgomp.c/for-1.h: Move ...
9771 * testsuite/libgomp.c-c++-common/for-1.h: ... here.
9772 * testsuite/libgomp.c/for-2.c: Move ...
9773 * testsuite/libgomp.c-c++-common/for-2.c: ... here.
9774 * testsuite/libgomp.c/for-2.h: Move ...
9775 * testsuite/libgomp.c-c++-common/for-2.h: ... here.
9776 * testsuite/libgomp.c/for-3.c: Move ...
9777 * testsuite/libgomp.c-c++-common/for-3.c: ... here.
9778 * testsuite/libgomp.c/for-4.c: Move ...
9779 * testsuite/libgomp.c-c++-common/for-4.c: ... here.
9780 * testsuite/libgomp.c/for-5.c: Move ...
9781 * testsuite/libgomp.c-c++-common/for-5.c: ... here.
9782 * testsuite/libgomp.c/for-6.c: Move ...
9783 * testsuite/libgomp.c-c++-common/for-6.c: ... here.
9785 2018-05-02 Tom de Vries <tom@codesourcery.com>
9788 * testsuite/libgomp.oacc-c-c++-common/gang-static-2.c: Use
9789 __builtin_goacc_parlevel_{id,size}.
9790 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Same.
9791 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: Same.
9792 * testsuite/libgomp.oacc-c-c++-common/loop-g-1.c: Same.
9793 * testsuite/libgomp.oacc-c-c++-common/loop-g-2.c: Same.
9794 * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c: Same.
9795 * testsuite/libgomp.oacc-c-c++-common/loop-red-g-1.c: Same.
9796 * testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c: Same.
9797 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c: Same.
9798 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c: Same.
9799 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c: Same.
9800 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c: Same.
9801 * testsuite/libgomp.oacc-c-c++-common/loop-red-wv-1.c: Same.
9802 * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c: Same.
9803 * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c: Same.
9804 * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c: Same.
9805 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Same.
9806 * testsuite/libgomp.oacc-c-c++-common/routine-g-1.c: Same.
9807 * testsuite/libgomp.oacc-c-c++-common/routine-gwv-1.c: Same.
9808 * testsuite/libgomp.oacc-c-c++-common/routine-v-1.c: Same.
9809 * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c: Same.
9810 * testsuite/libgomp.oacc-c-c++-common/routine-wv-1.c: Same.
9811 * testsuite/libgomp.oacc-c-c++-common/routine-wv-2.c: Same.
9812 * testsuite/libgomp.oacc-c-c++-common/tile-1.c: Same.
9814 2018-05-02 Tom de Vries <tom@codesourcery.com>
9817 * testsuite/lib/libgomp.exp: Include scanltranstree.exp.
9819 2018-05-02 Tom de Vries <tom@codesourcery.com>
9822 * testsuite/lib/libgomp.exp: Include scanwpaipa.exp.
9824 2018-04-29 Julian Brown <julian@codesourcery.com>
9825 Tom de Vries <tom@codesourcery.com>
9828 * testsuite/libgomp.oacc-c-c++-common/atomic_capture-1.c: Allow
9829 arbitrary order for iterations of atomic subtract check.
9831 2018-04-28 Tom de Vries <tom@codesourcery.com>
9834 * testsuite/libgomp.oacc-fortran/atomic_capture-1.f90 (main): Store
9835 atomic capture results obtained in parallel loop to an array, instead of
9838 2018-04-26 Tom de Vries <tom@codesourcery.com>
9841 * plugin/cuda/cuda.h (CUjit_option): Add CU_JIT_OPTIMIZATION_LEVEL.
9842 * plugin/plugin-nvptx.c (_GNU_SOURCE): Define.
9843 (process_GOMP_NVPTX_JIT): New function.
9844 (link_ptx): Use process_GOMP_NVPTX_JIT.
9846 2018-04-26 Richard Biener <rguenther@suse.de>
9847 Tom de Vries <tom@codesourcery.com>
9850 * testsuite/libgomp.oacc-c-c++-common/pr85422.c: New test.
9852 2018-04-26 Tom de Vries <tom@codesourcery.com>
9855 * testsuite/libgomp.fortran/examples-4/declare_target-1.f90: Reduce
9856 recursion depth from 25 to 23.
9857 * testsuite/libgomp.fortran/examples-4/declare_target-2.f90: Same.
9859 2018-04-24 H.J. Lu <hongjiu.lu@intel.com>
9861 * configure: Regenerated.
9863 2018-04-20 Nathan Sidwell <nathan@codesourcery.com>
9864 Tom de Vries <tom@codesourcery.com>
9867 * testsuite/libgomp.oacc-c++/ref-1.C: New.
9869 2018-04-19 Thomas Schwinge <thomas@codesourcery.com>
9872 * testsuite/libgomp.oacc-fortran/error_stop-1.f: New file.
9873 * testsuite/libgomp.oacc-fortran/error_stop-2.f: Likewise.
9874 * testsuite/libgomp.oacc-fortran/error_stop-3.f: Likewise.
9875 * testsuite/libgomp.oacc-fortran/stop-1.f: Likewise.
9876 * testsuite/libgomp.oacc-fortran/stop-2.f: Likewise.
9877 * testsuite/libgomp.oacc-fortran/stop-3.f: Likewise.
9880 * testsuite/libgomp.oacc-fortran/abort-1.f90: Switch back to "call
9882 * testsuite/libgomp.oacc-fortran/abort-2.f90: Likewise.
9884 2018-04-19 Jakub Jelinek <jakub@redhat.com>
9886 * configure: Regenerated.
9888 2018-04-18 David Malcolm <dmalcolm@redhat.com>
9891 * configure: Regenerate.
9893 2018-04-16 Cesar Philippidis <cesar@codesourcery.com>
9894 Tom de Vries <tom@codesourcery.com>
9897 * testsuite/libgomp.oacc-c-c++-common/pr84955.c: New test.
9898 * testsuite/libgomp.oacc-fortran/pr84955.f90: New test.
9900 2018-04-12 Thomas Koenig <tkoenig@gcc.gnu.org>
9904 * testsuite/libgomp.fortran/do_concurrent_5.f90: Move modified
9905 test from gfortran.dg to here.
9907 2018-04-12 Cesar Philippidis <cesar@codesourcery.com>
9909 * testsuite/libgomp.oacc-c-c++-common/pr84955.c: Revert 259346.
9910 * testsuite/libgomp.oacc-fortran/pr84955.f90: Likewise.
9912 2018-04-12 Cesar Philippidis <cesar@codesourcery.com>
9915 * testsuite/libgomp.oacc-c-c++-common/pr84955.c: New test.
9916 * testsuite/libgomp.oacc-fortran/pr84955.f90: New test.
9918 2018-04-05 Tom de Vries <tom@codesourcery.com>
9921 * testsuite/libgomp.oacc-c-c++-common/broadcast-1.c: New test.
9923 2018-03-26 Tom de Vries <tom@codesourcery.com>
9925 PR tree-optimization/85063
9926 * testsuite/libgomp.c/switch-conversion-2.c: New test.
9927 * testsuite/libgomp.c/switch-conversion.c: New test.
9928 * testsuite/libgomp.oacc-c-c++-common/switch-conversion-2.c: New test.
9929 * testsuite/libgomp.oacc-c-c++-common/switch-conversion.c: New test.
9931 2018-03-25 Thomas Koenig <tkoenig@gcc.gnu.org>
9934 * testsuite/libgomp.fortran/aligned1.f03: Replace non-standard
9935 call abort by STOP n.
9936 * testsuite/libgomp.fortran/alloc-comp-1.f90: Likewise.
9937 * testsuite/libgomp.fortran/alloc-comp-2.f90: Likewise.
9938 * testsuite/libgomp.fortran/alloc-comp-3.f90: Likewise.
9939 * testsuite/libgomp.fortran/allocatable1.f90: Likewise.
9940 * testsuite/libgomp.fortran/allocatable10.f90: Likewise.
9941 * testsuite/libgomp.fortran/allocatable11.f90: Likewise.
9942 * testsuite/libgomp.fortran/allocatable12.f90: Likewise.
9943 * testsuite/libgomp.fortran/allocatable2.f90: Likewise.
9944 * testsuite/libgomp.fortran/allocatable3.f90: Likewise.
9945 * testsuite/libgomp.fortran/allocatable4.f90: Likewise.
9946 * testsuite/libgomp.fortran/allocatable5.f90: Likewise.
9947 * testsuite/libgomp.fortran/allocatable6.f90: Likewise.
9948 * testsuite/libgomp.fortran/allocatable7.f90: Likewise.
9949 * testsuite/libgomp.fortran/allocatable8.f90: Likewise.
9950 * testsuite/libgomp.fortran/allocatable9.f90: Likewise.
9951 * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: Likewise.
9952 * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: Likewise.
9953 * testsuite/libgomp.fortran/associate1.f90: Likewise.
9954 * testsuite/libgomp.fortran/associate2.f90: Likewise.
9955 * testsuite/libgomp.fortran/associate3.f90: Likewise.
9956 * testsuite/libgomp.fortran/cancel-do-1.f90: Likewise.
9957 * testsuite/libgomp.fortran/cancel-do-2.f90: Likewise.
9958 * testsuite/libgomp.fortran/cancel-parallel-1.f90: Likewise.
9959 * testsuite/libgomp.fortran/cancel-sections-1.f90: Likewise.
9960 * testsuite/libgomp.fortran/cancel-taskgroup-2.f90: Likewise.
9961 * testsuite/libgomp.fortran/character1.f90: Likewise.
9962 * testsuite/libgomp.fortran/character2.f90: Likewise.
9963 * testsuite/libgomp.fortran/collapse1.f90: Likewise.
9964 * testsuite/libgomp.fortran/collapse2.f90: Likewise.
9965 * testsuite/libgomp.fortran/collapse3.f90: Likewise.
9966 * testsuite/libgomp.fortran/collapse4.f90: Likewise.
9967 * testsuite/libgomp.fortran/crayptr1.f90: Likewise.
9968 * testsuite/libgomp.fortran/crayptr2.f90: Likewise.
9969 * testsuite/libgomp.fortran/crayptr3.f90: Likewise.
9970 * testsuite/libgomp.fortran/declare-simd-1.f90: Likewise.
9971 * testsuite/libgomp.fortran/declare-simd-3.f90: Likewise.
9972 * testsuite/libgomp.fortran/declare-target-2.f90: Likewise.
9973 * testsuite/libgomp.fortran/depend-1.f90: Likewise.
9974 * testsuite/libgomp.fortran/depend-2.f90: Likewise.
9975 * testsuite/libgomp.fortran/depend-3.f90: Likewise.
9976 * testsuite/libgomp.fortran/do1.f90: Likewise.
9977 * testsuite/libgomp.fortran/do2.f90: Likewise.
9978 * testsuite/libgomp.fortran/doacross1.f90: Likewise.
9979 * testsuite/libgomp.fortran/doacross2.f90: Likewise.
9980 * testsuite/libgomp.fortran/doacross3.f90: Likewise.
9981 * testsuite/libgomp.fortran/examples-4/array_sections-3.f90: Likewise.
9982 * testsuite/libgomp.fortran/examples-4/array_sections-4.f90: Likewise.
9983 * testsuite/libgomp.fortran/examples-4/async_target-1.f90: Likewise.
9984 * testsuite/libgomp.fortran/examples-4/async_target-2.f90: Likewise.
9985 * testsuite/libgomp.fortran/examples-4/declare_target-1.f90: Likewise.
9986 * testsuite/libgomp.fortran/examples-4/declare_target-2.f90: Likewise.
9987 * testsuite/libgomp.fortran/examples-4/declare_target-3.f90: Likewise.
9988 * testsuite/libgomp.fortran/examples-4/declare_target-4.f90: Likewise.
9989 * testsuite/libgomp.fortran/examples-4/declare_target-5.f90: Likewise.
9990 * testsuite/libgomp.fortran/examples-4/device-1.f90: Likewise.
9991 * testsuite/libgomp.fortran/examples-4/device-2.f90: Likewise.
9992 * testsuite/libgomp.fortran/examples-4/device-3.f90: Likewise.
9993 * testsuite/libgomp.fortran/examples-4/simd-1.f90: Likewise.
9994 * testsuite/libgomp.fortran/examples-4/simd-2.f90: Likewise.
9995 * testsuite/libgomp.fortran/examples-4/simd-3.f90: Likewise.
9996 * testsuite/libgomp.fortran/examples-4/simd-4.f90: Likewise.
9997 * testsuite/libgomp.fortran/examples-4/simd-5.f90: Likewise.
9998 * testsuite/libgomp.fortran/examples-4/simd-6.f90: Likewise.
9999 * testsuite/libgomp.fortran/examples-4/simd-7.f90: Likewise.
10000 * testsuite/libgomp.fortran/examples-4/simd-8.f90: Likewise.
10001 * testsuite/libgomp.fortran/examples-4/target-1.f90: Likewise.
10002 * testsuite/libgomp.fortran/examples-4/target-2.f90: Likewise.
10003 * testsuite/libgomp.fortran/examples-4/target-3.f90: Likewise.
10004 * testsuite/libgomp.fortran/examples-4/target-4.f90: Likewise.
10005 * testsuite/libgomp.fortran/examples-4/target-5.f90: Likewise.
10006 * testsuite/libgomp.fortran/examples-4/target_data-1.f90: Likewise.
10007 * testsuite/libgomp.fortran/examples-4/target_data-2.f90: Likewise.
10008 * testsuite/libgomp.fortran/examples-4/target_data-3.f90: Likewise.
10009 * testsuite/libgomp.fortran/examples-4/target_data-4.f90: Likewise.
10010 * testsuite/libgomp.fortran/examples-4/target_data-5.f90: Likewise.
10011 * testsuite/libgomp.fortran/examples-4/target_data-6.f90: Likewise.
10012 * testsuite/libgomp.fortran/examples-4/target_data-7.f90: Likewise.
10013 * testsuite/libgomp.fortran/examples-4/target_update-1.f90: Likewise.
10014 * testsuite/libgomp.fortran/examples-4/target_update-2.f90: Likewise.
10015 * testsuite/libgomp.fortran/examples-4/task_dep-1.f90: Likewise.
10016 * testsuite/libgomp.fortran/examples-4/task_dep-2.f90: Likewise.
10017 * testsuite/libgomp.fortran/examples-4/task_dep-3.f90: Likewise.
10018 * testsuite/libgomp.fortran/examples-4/task_dep-4.f90: Likewise.
10019 * testsuite/libgomp.fortran/examples-4/task_dep-5.f90: Likewise.
10020 * testsuite/libgomp.fortran/examples-4/teams-2.f90: Likewise.
10021 * testsuite/libgomp.fortran/examples-4/teams-3.f90: Likewise.
10022 * testsuite/libgomp.fortran/examples-4/teams-4.f90: Likewise.
10023 * testsuite/libgomp.fortran/examples-4/teams-5.f90: Likewise.
10024 * testsuite/libgomp.fortran/examples-4/teams-6.f90: Likewise.
10025 * testsuite/libgomp.fortran/lastprivate1.f90: Likewise.
10026 * testsuite/libgomp.fortran/lastprivate2.f90: Likewise.
10027 * testsuite/libgomp.fortran/lib1.f90: Likewise.
10028 * testsuite/libgomp.fortran/lib2.f: Likewise.
10029 * testsuite/libgomp.fortran/lib3.f: Likewise.
10030 * testsuite/libgomp.fortran/lib4.f90: Likewise.
10031 * testsuite/libgomp.fortran/lock-1.f90: Likewise.
10032 * testsuite/libgomp.fortran/lock-2.f90: Likewise.
10033 * testsuite/libgomp.fortran/nested1.f90: Likewise.
10034 * testsuite/libgomp.fortran/nestedfn1.f90: Likewise.
10035 * testsuite/libgomp.fortran/nestedfn2.f90: Likewise.
10036 * testsuite/libgomp.fortran/nestedfn3.f90: Likewise.
10037 * testsuite/libgomp.fortran/nestedfn4.f90: Likewise.
10038 * testsuite/libgomp.fortran/nestedfn5.f90: Likewise.
10039 * testsuite/libgomp.fortran/omp_atomic1.f90: Likewise.
10040 * testsuite/libgomp.fortran/omp_atomic2.f90: Likewise.
10041 * testsuite/libgomp.fortran/omp_atomic3.f90: Likewise.
10042 * testsuite/libgomp.fortran/omp_atomic4.f90: Likewise.
10043 * testsuite/libgomp.fortran/omp_atomic5.f90: Likewise.
10044 * testsuite/libgomp.fortran/omp_cond1.f: Likewise.
10045 * testsuite/libgomp.fortran/omp_cond2.f: Likewise.
10046 * testsuite/libgomp.fortran/omp_cond3.F90: Likewise.
10047 * testsuite/libgomp.fortran/omp_cond4.F90: Likewise.
10048 * testsuite/libgomp.fortran/omp_parse1.f90: Likewise.
10049 * testsuite/libgomp.fortran/omp_parse2.f90: Likewise.
10050 * testsuite/libgomp.fortran/omp_parse3.f90: Likewise.
10051 * testsuite/libgomp.fortran/omp_parse4.f90: Likewise.
10052 * testsuite/libgomp.fortran/openmp_version-1.f: Likewise.
10053 * testsuite/libgomp.fortran/openmp_version-2.f90: Likewise.
10054 * testsuite/libgomp.fortran/parloops-exit-first-loop-alt-2.f95: Likewise.
10055 * testsuite/libgomp.fortran/parloops-exit-first-loop-alt.f95: Likewise.
10056 * testsuite/libgomp.fortran/pointer1.f90: Likewise.
10057 * testsuite/libgomp.fortran/pointer2.f90: Likewise.
10058 * testsuite/libgomp.fortran/pr25162.f: Likewise.
10059 * testsuite/libgomp.fortran/pr25219.f90: Likewise.
10060 * testsuite/libgomp.fortran/pr27395-1.f90: Likewise.
10061 * testsuite/libgomp.fortran/pr27395-2.f90: Likewise.
10062 * testsuite/libgomp.fortran/pr27416-1.f90: Likewise.
10063 * testsuite/libgomp.fortran/pr27916-1.f90: Likewise.
10064 * testsuite/libgomp.fortran/pr27916-2.f90: Likewise.
10065 * testsuite/libgomp.fortran/pr28390.f: Likewise.
10066 * testsuite/libgomp.fortran/pr29629.f90: Likewise.
10067 * testsuite/libgomp.fortran/pr32550.f90: Likewise.
10068 * testsuite/libgomp.fortran/pr33880.f90: Likewise.
10069 * testsuite/libgomp.fortran/pr34020.f90: Likewise.
10070 * testsuite/libgomp.fortran/pr35130.f90: Likewise.
10071 * testsuite/libgomp.fortran/pr42162.f90: Likewise.
10072 * testsuite/libgomp.fortran/pr46753.f90: Likewise.
10073 * testsuite/libgomp.fortran/pr48894.f90: Likewise.
10074 * testsuite/libgomp.fortran/pr49792-1.f90: Likewise.
10075 * testsuite/libgomp.fortran/pr49792-2.f90: Likewise.
10076 * testsuite/libgomp.fortran/pr63938-1.f90: Likewise.
10077 * testsuite/libgomp.fortran/pr63938-2.f90: Likewise.
10078 * testsuite/libgomp.fortran/pr65597.f90: Likewise.
10079 * testsuite/libgomp.fortran/pr66199-1.f90: Likewise.
10080 * testsuite/libgomp.fortran/pr71014.f90: Likewise.
10081 * testsuite/libgomp.fortran/pr81304.f90: Likewise.
10082 * testsuite/libgomp.fortran/pr81841.f90: Likewise.
10083 * testsuite/libgomp.fortran/pr84418-1.f90: Likewise.
10084 * testsuite/libgomp.fortran/pr84418-2.f90: Likewise.
10085 * testsuite/libgomp.fortran/procptr1.f90: Likewise.
10086 * testsuite/libgomp.fortran/recursion1.f90: Likewise.
10087 * testsuite/libgomp.fortran/reduction1.f90: Likewise.
10088 * testsuite/libgomp.fortran/reduction2.f90: Likewise.
10089 * testsuite/libgomp.fortran/reduction3.f90: Likewise.
10090 * testsuite/libgomp.fortran/reduction4.f90: Likewise.
10091 * testsuite/libgomp.fortran/reduction5.f90: Likewise.
10092 * testsuite/libgomp.fortran/reduction6.f90: Likewise.
10093 * testsuite/libgomp.fortran/reference1.f90: Likewise.
10094 * testsuite/libgomp.fortran/reference2.f90: Likewise.
10095 * testsuite/libgomp.fortran/retval1.f90: Likewise.
10096 * testsuite/libgomp.fortran/retval2.f90: Likewise.
10097 * testsuite/libgomp.fortran/sharing1.f90: Likewise.
10098 * testsuite/libgomp.fortran/sharing2.f90: Likewise.
10099 * testsuite/libgomp.fortran/simd1.f90: Likewise.
10100 * testsuite/libgomp.fortran/simd2.f90: Likewise.
10101 * testsuite/libgomp.fortran/simd3.f90: Likewise.
10102 * testsuite/libgomp.fortran/simd4.f90: Likewise.
10103 * testsuite/libgomp.fortran/simd5.f90: Likewise.
10104 * testsuite/libgomp.fortran/simd6.f90: Likewise.
10105 * testsuite/libgomp.fortran/simd7.f90: Likewise.
10106 * testsuite/libgomp.fortran/stack.f90: Likewise.
10107 * testsuite/libgomp.fortran/strassen.f90: Likewise.
10108 * testsuite/libgomp.fortran/tabs1.f90: Likewise.
10109 * testsuite/libgomp.fortran/tabs2.f: Likewise.
10110 * testsuite/libgomp.fortran/target1.f90: Likewise.
10111 * testsuite/libgomp.fortran/target2.f90: Likewise.
10112 * testsuite/libgomp.fortran/target3.f90: Likewise.
10113 * testsuite/libgomp.fortran/target4.f90: Likewise.
10114 * testsuite/libgomp.fortran/target5.f90: Likewise.
10115 * testsuite/libgomp.fortran/target6.f90: Likewise.
10116 * testsuite/libgomp.fortran/target7.f90: Likewise.
10117 * testsuite/libgomp.fortran/target8.f90: Likewise.
10118 * testsuite/libgomp.fortran/task1.f90: Likewise.
10119 * testsuite/libgomp.fortran/task2.f90: Likewise.
10120 * testsuite/libgomp.fortran/task3.f90: Likewise.
10121 * testsuite/libgomp.fortran/task4.f90: Likewise.
10122 * testsuite/libgomp.fortran/taskgroup1.f90: Likewise.
10123 * testsuite/libgomp.fortran/taskloop1.f90: Likewise.
10124 * testsuite/libgomp.fortran/taskloop2.f90: Likewise.
10125 * testsuite/libgomp.fortran/taskloop3.f90: Likewise.
10126 * testsuite/libgomp.fortran/taskloop4.f90: Likewise.
10127 * testsuite/libgomp.fortran/threadprivate1.f90: Likewise.
10128 * testsuite/libgomp.fortran/threadprivate2.f90: Likewise.
10129 * testsuite/libgomp.fortran/threadprivate3.f90: Likewise.
10130 * testsuite/libgomp.fortran/threadprivate4.f90: Likewise.
10131 * testsuite/libgomp.fortran/udr1.f90: Likewise.
10132 * testsuite/libgomp.fortran/udr10.f90: Likewise.
10133 * testsuite/libgomp.fortran/udr11.f90: Likewise.
10134 * testsuite/libgomp.fortran/udr12.f90: Likewise.
10135 * testsuite/libgomp.fortran/udr13.f90: Likewise.
10136 * testsuite/libgomp.fortran/udr14.f90: Likewise.
10137 * testsuite/libgomp.fortran/udr15.f90: Likewise.
10138 * testsuite/libgomp.fortran/udr2.f90: Likewise.
10139 * testsuite/libgomp.fortran/udr3.f90: Likewise.
10140 * testsuite/libgomp.fortran/udr4.f90: Likewise.
10141 * testsuite/libgomp.fortran/udr5.f90: Likewise.
10142 * testsuite/libgomp.fortran/udr6.f90: Likewise.
10143 * testsuite/libgomp.fortran/udr7.f90: Likewise.
10144 * testsuite/libgomp.fortran/udr8.f90: Likewise.
10145 * testsuite/libgomp.fortran/udr9.f90: Likewise.
10146 * testsuite/libgomp.fortran/vla1.f90: Likewise.
10147 * testsuite/libgomp.fortran/vla2.f90: Likewise.
10148 * testsuite/libgomp.fortran/vla3.f90: Likewise.
10149 * testsuite/libgomp.fortran/vla4.f90: Likewise.
10150 * testsuite/libgomp.fortran/vla5.f90: Likewise.
10151 * testsuite/libgomp.fortran/vla6.f90: Likewise.
10152 * testsuite/libgomp.fortran/vla7.f90: Likewise.
10153 * testsuite/libgomp.fortran/vla8.f90: Likewise.
10154 * testsuite/libgomp.fortran/workshare1.f90: Likewise.
10155 * testsuite/libgomp.fortran/workshare2.f90: Likewise.
10156 * testsuite/libgomp.oacc-fortran/abort-1.f90: Likewise.
10157 * testsuite/libgomp.oacc-fortran/abort-2.f90: Likewise.
10158 * testsuite/libgomp.oacc-fortran/acc_on_device-1-1.f90: Likewise.
10159 * testsuite/libgomp.oacc-fortran/acc_on_device-1-2.f: Likewise.
10160 * testsuite/libgomp.oacc-fortran/acc_on_device-1-3.f: Likewise.
10161 * testsuite/libgomp.oacc-fortran/asyncwait-1.f90: Likewise.
10162 * testsuite/libgomp.oacc-fortran/asyncwait-2.f90: Likewise.
10163 * testsuite/libgomp.oacc-fortran/asyncwait-3.f90: Likewise.
10164 * testsuite/libgomp.oacc-fortran/atomic_capture-1.f90: Likewise.
10165 * testsuite/libgomp.oacc-fortran/atomic_rw-1.f90: Likewise.
10166 * testsuite/libgomp.oacc-fortran/atomic_update-1.f90: Likewise.
10167 * testsuite/libgomp.oacc-fortran/c2.pl: Likewise.
10168 * testsuite/libgomp.oacc-fortran/clauses-1.f90: Likewise.
10169 * testsuite/libgomp.oacc-fortran/collapse-1.f90: Likewise.
10170 * testsuite/libgomp.oacc-fortran/collapse-2.f90: Likewise.
10171 * testsuite/libgomp.oacc-fortran/collapse-3.f90: Likewise.
10172 * testsuite/libgomp.oacc-fortran/collapse-4.f90: Likewise.
10173 * testsuite/libgomp.oacc-fortran/collapse-5.f90: Likewise.
10174 * testsuite/libgomp.oacc-fortran/collapse-6.f90: Likewise.
10175 * testsuite/libgomp.oacc-fortran/collapse-7.f90: Likewise.
10176 * testsuite/libgomp.oacc-fortran/collapse-8.f90: Likewise.
10177 * testsuite/libgomp.oacc-fortran/combined-directives-1.f90: Likewise.
10178 * testsuite/libgomp.oacc-fortran/combined-reduction.f90: Likewise.
10179 * testsuite/libgomp.oacc-fortran/data-1.f90: Likewise.
10180 * testsuite/libgomp.oacc-fortran/data-2.f90: Likewise.
10181 * testsuite/libgomp.oacc-fortran/data-3.f90: Likewise.
10182 * testsuite/libgomp.oacc-fortran/data-4-2.f90: Likewise.
10183 * testsuite/libgomp.oacc-fortran/data-4.f90: Likewise.
10184 * testsuite/libgomp.oacc-fortran/declare-1.f90: Likewise.
10185 * testsuite/libgomp.oacc-fortran/declare-2.f90: Likewise.
10186 * testsuite/libgomp.oacc-fortran/declare-3.f90: Likewise.
10187 * testsuite/libgomp.oacc-fortran/declare-4.f90: Likewise.
10188 * testsuite/libgomp.oacc-fortran/declare-5.f90: Likewise.
10189 * testsuite/libgomp.oacc-fortran/default-1.f90: Likewise.
10190 * testsuite/libgomp.oacc-fortran/firstprivate-1.f90: Likewise.
10191 * testsuite/libgomp.oacc-fortran/gang-static-1.f90: Likewise.
10192 * testsuite/libgomp.oacc-fortran/host_data-1.f90: Likewise.
10193 * testsuite/libgomp.oacc-fortran/if-1.f90: Likewise.
10194 * testsuite/libgomp.oacc-fortran/implicit-firstprivate-ref.f90: Likewise.
10195 * testsuite/libgomp.oacc-fortran/kernels-loop-2.f95: Likewise.
10196 * testsuite/libgomp.oacc-fortran/kernels-loop-data-2.f95: Likewise.
10197 * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit-2.f95: Likewise.
10198 * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit.f95: Likewise.
10199 * testsuite/libgomp.oacc-fortran/kernels-loop-data-update.f95: Likewise.
10200 * testsuite/libgomp.oacc-fortran/kernels-loop-data.f95: Likewise.
10201 * testsuite/libgomp.oacc-fortran/kernels-loop.f95: Likewise.
10202 * testsuite/libgomp.oacc-fortran/lib-1.f90: Likewise.
10203 * testsuite/libgomp.oacc-fortran/lib-10.f90: Likewise.
10204 * testsuite/libgomp.oacc-fortran/lib-2.f: Likewise.
10205 * testsuite/libgomp.oacc-fortran/lib-3.f: Likewise.
10206 * testsuite/libgomp.oacc-fortran/lib-32-1.f: Likewise.
10207 * testsuite/libgomp.oacc-fortran/lib-32-2.f: Likewise.
10208 * testsuite/libgomp.oacc-fortran/lib-4.f90: Likewise.
10209 * testsuite/libgomp.oacc-fortran/lib-5.f90: Likewise.
10210 * testsuite/libgomp.oacc-fortran/lib-6.f90: Likewise.
10211 * testsuite/libgomp.oacc-fortran/lib-7.f90: Likewise.
10212 * testsuite/libgomp.oacc-fortran/lib-8.f90: Likewise.
10213 * testsuite/libgomp.oacc-fortran/map-1.f90: Likewise.
10214 * testsuite/libgomp.oacc-fortran/nested-function-1.f90: Likewise.
10215 * testsuite/libgomp.oacc-fortran/nested-function-2.f90: Likewise.
10216 * testsuite/libgomp.oacc-fortran/nested-function-3.f90: Likewise.
10217 * testsuite/libgomp.oacc-fortran/non-scalar-data.f90: Likewise.
10218 * testsuite/libgomp.oacc-fortran/openacc_version-1.f: Likewise.
10219 * testsuite/libgomp.oacc-fortran/openacc_version-2.f90: Likewise.
10220 * testsuite/libgomp.oacc-fortran/par-reduction-2-1.f: Likewise.
10221 * testsuite/libgomp.oacc-fortran/par-reduction-2-2.f: Likewise.
10222 * testsuite/libgomp.oacc-fortran/parallel-reduction.f90: Likewise.
10223 * testsuite/libgomp.oacc-fortran/pointer-align-1.f90: Likewise.
10224 * testsuite/libgomp.oacc-fortran/pr70643.f90: Likewise.
10225 * testsuite/libgomp.oacc-fortran/pr81352.f90: Likewise.
10226 * testsuite/libgomp.oacc-fortran/pr83920.f90: Likewise.
10227 * testsuite/libgomp.oacc-fortran/pr84028.f90: Likewise.
10228 * testsuite/libgomp.oacc-fortran/private-variables.f90: Likewise.
10229 * testsuite/libgomp.oacc-fortran/pset-1.f90: Likewise.
10230 * testsuite/libgomp.oacc-fortran/reduction-1.f90: Likewise.
10231 * testsuite/libgomp.oacc-fortran/reduction-2.f90: Likewise.
10232 * testsuite/libgomp.oacc-fortran/reduction-3.f90: Likewise.
10233 * testsuite/libgomp.oacc-fortran/reduction-4.f90: Likewise.
10234 * testsuite/libgomp.oacc-fortran/reduction-5.f90: Likewise.
10235 * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
10236 * testsuite/libgomp.oacc-fortran/reduction-7.f90: Likewise.
10237 * testsuite/libgomp.oacc-fortran/reduction-8.f90: Likewise.
10238 * testsuite/libgomp.oacc-fortran/routine-1.f90: Likewise.
10239 * testsuite/libgomp.oacc-fortran/routine-2.f90: Likewise.
10240 * testsuite/libgomp.oacc-fortran/routine-3.f90: Likewise.
10241 * testsuite/libgomp.oacc-fortran/routine-4.f90: Likewise.
10242 * testsuite/libgomp.oacc-fortran/routine-5.f90: Likewise.
10243 * testsuite/libgomp.oacc-fortran/routine-7.f90: Likewise.
10244 * testsuite/libgomp.oacc-fortran/routine-9.f90: Likewise.
10245 * testsuite/libgomp.oacc-fortran/subarrays-1.f90: Likewise.
10246 * testsuite/libgomp.oacc-fortran/subarrays-2.f90: Likewise.
10247 * testsuite/libgomp.oacc-fortran/update-1.f90: Likewise.
10249 2018-03-20 Richard Biener <rguenther@suse.de>
10251 * testsuite/libgomp.graphite/force-parallel-4.c: XFAIL one
10252 parallelizable loop.
10254 2018-02-19 Igor Tsimbalist <igor.v.tsimbalist@intel.com>
10257 * configure: Regenerate.
10259 2018-02-16 Jakub Jelinek <jakub@redhat.com>
10262 * libgomp.fortran/pr84418-1.f90: New test.
10263 * libgomp.fortran/pr84418-2.f90: New test.
10265 2018-02-14 Jakub Jelinek <jakub@redhat.com>
10268 * testsuite/libgomp.fortran/threadprivate4.f90: Add
10269 -std=f2003 -fall-intrinsics into dg-additional-options.
10271 2018-02-08 Martin Jambor <mjambor@suse.cz>
10273 * testsuite/libgomp.hsa.c/pr82416.c: Make the function with target
10276 2018-02-08 Martin Jambor <mjambor@suse.cz>
10278 * testsuite/libgomp.hsa.c/staticvar.c: New test.
10280 2018-02-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10282 * testsuite/libgomp.oacc-c-c++-common/pr84217.c (abort)
10283 [__cplusplus]: Declare extern "C".
10285 2018-02-07 Tom de Vries <tom@codesourcery.com>
10288 * testsuite/libgomp.oacc-c-c++-common/pr84217.c: New test.
10290 2018-01-29 Christoph Spiel <cspiel@freenet.de>
10291 Jakub Jelinek <jakub@redhat.com>
10294 * omp.h.in (omp_init_nest_lock_with_hint): Use omp_nest_lock_t
10295 instead of omp_lock_t.
10297 2018-01-25 Tom de Vries <tom@codesourcery.com>
10300 * testsuite/libgomp.oacc-fortran/pr84028.f90: New test.
10302 2018-01-24 Tom de Vries <tom@codesourcery.com>
10305 * testsuite/libgomp.oacc-c-c++-common/pr83589.c: New test.
10307 2018-01-24 Tom de Vries <tom@codesourcery.com>
10310 * testsuite/libgomp.oacc-fortran/pr81352.f90: New test.
10312 2018-01-19 Tom de Vries <tom@codesourcery.com>
10313 Cesar Philippidis <cesar@codesourcery.com>
10316 * testsuite/libgomp.oacc-c-c++-common/pr83920.c: New test.
10317 * testsuite/libgomp.oacc-fortran/pr83920.f90: New test.
10319 2018-01-03 Jakub Jelinek <jakub@redhat.com>
10321 Update copyright years.
10323 * libgomp.texi: Bump @copying's copyright year.
10325 2017-12-30 Tom de Vries <tom@codesourcery.com>
10328 * testsuite/libgomp.oacc-c-c++-common/pr83046.c: New test.
10329 * testsuite/libgomp.c-c++-common/pr83046.c: New test.
10331 2017-12-27 Tom de Vries <tom@codesourcery.com>
10334 * testsuite/libgomp.oacc-c-c++-common/gang-static-2.c (test_static)
10335 (test_nonstatic): Fix return type to workaround PR83046.
10337 2017-12-05 Jakub Jelinek <jakub@redhat.com>
10340 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-flt.c (main): Use
10341 j suffix instead of i.
10342 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-dbl.c (main):
10345 2017-12-01 Cesar Philippidis <cesar@codesourcery.com>
10347 * testsuite/libgomp.oacc-c-c++-common/data-2-lib.c: Add missing
10348 call to acc_wait (1).
10350 2017-11-24 Jakub Jelinek <jakub@redhat.com>
10353 * testsuite/libgomp.fortran/pr81304.f90: New test.
10355 2017-11-23 Jakub Jelinek <jakub@redhat.com>
10358 * libgomp.fortran/pr81841.f90: New test.
10360 2017-11-22 Jakub Jelinek <jakub@redhat.com>
10363 * target.c (gomp_target_init): Compute lengths just once and
10364 use them in both malloc size and subsequent copying.
10366 2017-11-17 Igor Tsimbalist <igor.v.tsimbalist@intel.com>
10368 * configure.ac: Set CET_FLAGS, update XCFLAGS and FCFLAGS.
10369 * acinclude.m4: Add cet.m4.
10370 * configure: Regenerate.
10371 * Makefile.in: Likewise.
10372 * testsuite/Makefile.in: Likewise.
10374 2017-11-15 Tom de Vries <tom@codesourcery.com>
10376 * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-1.c: New test, copied
10377 from asyncwait-1.f90. Rewrite into C. Rewrite from float to int.
10378 * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-2.c: New test, copied
10379 from asyncwait-2.f90. Rewrite into C. Rewrite from float to int.
10380 * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-3.c: New test, copied
10381 from asyncwait-3.f90. Rewrite into C. Rewrite from float to int.
10383 2017-11-14 Tom de Vries <tom@codesourcery.com>
10385 * testsuite/libgomp.oacc-c-c++-common/asyncwait-1.c: Allow to run for
10386 non-nvidia devices.
10388 2017-11-07 Jakub Jelinek <jakub@redhat.com>
10391 * testsuite/libgomp.c++/pr82835.C: New test.
10393 2017-11-06 Martin Liska <mliska@suse.cz>
10395 * testsuite/libgomp.c++/loop-2.C: Return a value
10396 for functions with non-void return type, or change type to void,
10397 or add -Wno-return-type for test.
10398 * testsuite/libgomp.c++/loop-4.C: Likewise.
10399 * testsuite/libgomp.c++/parallel-1.C: Likewise.
10400 * testsuite/libgomp.c++/shared-1.C: Likewise.
10401 * testsuite/libgomp.c++/single-1.C: Likewise.
10402 * testsuite/libgomp.c++/single-2.C: Likewise.
10404 2017-10-31 Tom de Vries <tom@codesourcery.com>
10406 * plugin/plugin-hsa.c (HSA_LOG): Remove semicolon after
10407 "do {} while (false)".
10408 (init_single_kernel, GOMP_OFFLOAD_async_run): Add missing semicolon
10409 after HSA_DEBUG call.
10411 2017-10-28 Jakub Jelinek <jakub@redhat.com>
10413 * target.c (struct gomp_coalesce_buf): New type.
10414 (MAX_COALESCE_BUF_SIZE, MAX_COALESCE_BUF_GAP): Define.
10415 (gomp_coalesce_buf_add, gomp_to_device_kind_p): New functions.
10416 (gomp_copy_host2dev): Add CBUF argument, if copying into
10417 the cached ranges, memcpy into buffer instead of copying
10419 (gomp_map_vars_existing, gomp_map_pointer, gomp_map_fields_existing):
10420 Add CBUF argument, pass it through to other calls.
10421 (gomp_map_vars): Aggregate copies from host to device if small enough
10422 and with small enough gaps in between into memcpy into a buffer and
10423 fewer host to device copies from the buffer.
10424 (gomp_update): Adjust gomp_copy_host2dev caller.
10426 2017-10-17 Thomas Schwinge <thomas@codesourcery.com>
10428 * testsuite/libgomp.oacc-fortran/declare-1.f90: Restore "dg-do
10430 * testsuite/libgomp.oacc-fortran/declare-2.f90: Likewise.
10431 * testsuite/libgomp.oacc-fortran/declare-3.f90: Likewise.
10432 * testsuite/libgomp.oacc-fortran/declare-4.f90: Likewise.
10433 * testsuite/libgomp.oacc-fortran/declare-5.f90: Likewise.
10435 2017-10-16 Tom de Vries <tom@codesourcery.com>
10437 * testsuite/libgomp.oacc-c-c++-common/declare-1.c: Don't require
10438 openacc_nvidia_accel_selected.
10439 * testsuite/libgomp.oacc-c-c++-common/declare-2.c: Same.
10440 * testsuite/libgomp.oacc-c-c++-common/declare-4.c: Same.
10441 * testsuite/libgomp.oacc-fortran/declare-2.f90: Same.
10442 * testsuite/libgomp.oacc-fortran/declare-4.f90: Same
10443 * testsuite/libgomp.oacc-fortran/declare-5.f90: Same.
10444 * testsuite/libgomp.oacc-c-c++-common/declare-5.c: Don't require
10445 openacc_nvidia_accel_selected. Skip for shared memory device.
10446 * testsuite/libgomp.oacc-fortran/declare-1.f90: Same.
10447 * testsuite/libgomp.oacc-fortran/declare-3.f90: Same.
10449 2017-10-09 Martin Jambor <mjambor@suse.cz>
10452 * testsuite/libgomp.hsa.c/pr82416.c: New test.
10454 2017-10-07 Tom de Vries <tom@codesourcery.com>
10456 * testsuite/libgomp.oacc-fortran/firstprivate-1.f90 (firstprivate):
10457 Remove acc_device_nvidia references.
10458 * testsuite/libgomp.oacc-fortran/parallel-reduction.f90 (reduction):
10461 2017-10-05 Tom de Vries <tom@codesourcery.com>
10463 * testsuite/libgomp.oacc-c-c++-common/loop-red-g-1.c (main): Remove
10464 vector_length(32) clause from acc parallel directive.
10465 * testsuite/libgomp.oacc-c-c++-common/routine-g-1.c (main): Same.
10467 2017-10-04 Tom de Vries <tom@codesourcery.com>
10469 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-3.c
10470 (main): Reduce sum of arr elements. Assert that hres is exactly
10471 representable in 32-bit floating point.
10472 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-4.c
10473 (main): Reduce sum of arr elements. Assert that hres and hmres are
10474 exactly representable in 32-bit floating point.
10475 * testsuite/libgomp.oacc-c-c++-common/reduction-7.c (gwv_np_4): Same.
10477 2017-09-28 Tom de Vries <tom@codesourcery.com>
10479 * testsuite/libgomp.c++/for-12.C: Remove superfluous -fopenmp option
10481 * testsuite/libgomp.c++/pr69393.C: Same.
10482 * testsuite/libgomp.c++/taskloop-1.C: Same.
10483 * testsuite/libgomp.c++/taskloop-3.C: Same.
10484 * testsuite/libgomp.c++/taskloop-4.C: Same.
10485 * testsuite/libgomp.c/for-4.c: Same.
10486 * testsuite/libgomp.c/pr66199-3.c: Same.
10487 * testsuite/libgomp.c/pr66199-4.c: Same.
10488 * testsuite/libgomp.c/pr66199-6.c: Same.
10489 * testsuite/libgomp.c/taskloop-1.c: Same.
10490 * testsuite/libgomp.c/taskloop-3.c: Same.
10491 * testsuite/libgomp.c/taskloop-4.c: Same.
10492 * testsuite/libgomp.fortran/aligned1.f03: Same.
10493 * testsuite/libgomp.fortran/condinc1.f: Same.
10494 * testsuite/libgomp.fortran/condinc3.f90: Same.
10495 * testsuite/libgomp.fortran/crayptr1.f90: Same.
10496 * testsuite/libgomp.fortran/crayptr2.f90: Same.
10497 * testsuite/libgomp.fortran/crayptr3.f90: Same.
10498 * testsuite/libgomp.fortran/omp_cond1.f: Same.
10499 * testsuite/libgomp.fortran/omp_cond3.F90: Same.
10500 * testsuite/libgomp.fortran/pr66199-1.f90: Same.
10501 * testsuite/libgomp.fortran/pr66199-2.f90: Same.
10502 * testsuite/libgomp.fortran/recursion1.f90: Same.
10503 * testsuite/libgomp.fortran/target2.f90: Same.
10504 * testsuite/libgomp.fortran/target5.f90: Same.
10505 * testsuite/libgomp.fortran/task3.f90: Same.
10507 2017-09-28 Tom de Vries <tom@codesourcery.com>
10509 * testsuite/libgomp.oacc-c-c++-common/loop-g-1.c (main): Remove
10510 vector_length(32) clause from acc parallel directive.
10511 * testsuite/libgomp.oacc-c-c++-common/loop-g-2.c (main): Same.
10513 2017-09-27 Tom de Vries <tom@codesourcery.com>
10515 * testsuite/libgomp.oacc-c-c++-common/parallel-reduction.c (main):
10516 Remove acc_device_nvidia references.
10518 2017-09-16 Tom de Vries <tom@codesourcery.com>
10521 * testsuite/libgomp.c-c++-common/pr81875.c: New test.
10523 2017-09-14 Tom de Vries <tom@codesourcery.com>
10525 * testsuite/libgomp.c++/cancel-taskgroup-1.C: Remove.
10526 * testsuite/libgomp.c/cancel-taskgroup-1.c: Move to ...
10527 * testsuite/libgomp.c-c++-common/cancel-taskgroup-1.c: ... here.
10528 * testsuite/libgomp.c/c.exp: Include test-cases from
10529 libgomp.c-c++-common.
10530 * testsuite/libgomp.c++/c++.exp: Same. Force c++-mode compilation of .c
10533 2017-09-14 Jakub Jelinek <jakub@redhat.com>
10536 * testsuite/libgomp.c++/pr81314.C: New test.
10538 2017-09-03 Gerald Pfeifer <gerald@pfeifer.com>
10540 * libgomp.texi (Top): www.openacc.org now uses https.
10541 (Enabling OpenACC): Ditto.
10542 (acc_get_num_devices): Ditto.
10543 (acc_set_device_type): Ditto.
10544 (acc_get_device_type): Ditto.
10545 (acc_set_device_num): Ditto.
10546 (acc_get_device_num): Ditto.
10547 (acc_async_test): Ditto.
10548 (acc_async_test_all): Ditto.
10550 (acc_wait_all): Ditto.
10551 (acc_wait_all_async): Ditto.
10552 (acc_wait_async): Ditto.
10554 (acc_shutdown): Ditto.
10555 (acc_on_device): Ditto.
10556 (acc_malloc): Ditto.
10558 (acc_copyin): Ditto.
10559 (acc_present_or_copyin): Ditto.
10560 (acc_create): Ditto.
10561 (acc_present_or_create): Ditto.
10562 (acc_copyout): Ditto.
10563 (acc_delete): Ditto.
10564 (acc_update_device): Ditto.
10565 (acc_update_self): Ditto.
10566 (acc_map_data): Ditto.
10567 (acc_unmap_data): Ditto.
10568 (acc_deviceptr): Ditto.
10569 (acc_hostptr): Ditto.
10570 (acc_is_present): Ditto.
10571 (acc_memcpy_to_device): Ditto.
10572 (acc_memcpy_from_device): Ditto.
10573 (acc_get_current_cuda_device): Ditto.
10574 (acc_get_current_cuda_context): Ditto.
10575 (acc_get_cuda_stream): Ditto.
10576 (acc_set_cuda_stream): Ditto.
10577 (ACC_DEVICE_TYPE): Ditto.
10578 (ACC_DEVICE_NUM): Ditto.
10579 (OpenACC Library Interoperability): Ditto.
10581 2017-08-09 Jakub Jelinek <jakub@redhat.com>
10584 * testsuite/libgomp.c/pr81687-1.c: New test.
10585 * testsuite/libgomp.c/pr81687-2.c: New test.
10587 2017-08-07 Jakub Jelinek <jakub@redhat.com>
10590 * testsuite/libgomp.c/pr69389.c: New test.
10591 * testsuite/libgomp.c++/pr69389.C: New test.
10593 2017-08-07 Tom de Vries <tom@codesourcery.com>
10595 PR middle-end/78266
10596 * testsuite/libgomp.oacc-c-c++-common/vprop-2.c: New test.
10597 * testsuite/libgomp.oacc-c-c++-common/vprop.c: Remove xfail.
10599 2017-07-27 Jakub Jelinek <jakub@redhat.com>
10602 * testsuite/libgomp.c/pr45784.c: New test.
10603 * testsuite/libgomp.c++/pr45784.C: New test.
10605 2017-07-19 Tom de Vries <tom@codesourcery.com>
10607 * testsuite/libgomp.oacc-c/vec.c: New test.
10609 2017-07-03 Tom de Vries <tom@codesourcery.com>
10611 * plugin/plugin-hsa.c: Fix secure_getenv.h include.
10613 2017-06-27 Tom de Vries <tom@codesourcery.com>
10615 * plugin/plugin-nvptx.c (notify_var): New function.
10616 (nvptx_exec): Use notify_var for GOMP_OPENACC_DIM.
10618 2017-06-27 Tom de Vries <tom@codesourcery.com>
10620 * env.c (parse_unsigned_long_1): Factor out of ...
10621 (parse_unsigned_long): ... here.
10622 (parse_int_1): Factor out of ...
10623 (parse_int): ... here.
10624 (parse_int_secure): New function.
10625 (initialize_env): Use parse_int_secure for GOMP_DEBUG.
10626 * secure_getenv.h: Factor out of ...
10627 * plugin/plugin-hsa.c: ... here.
10628 * testsuite/libgomp.oacc-c-c++-common/gomp-debug-env.c: New test.
10630 2017-06-21 Jakub Jelinek <jakub@redhat.com>
10633 * testsuite/libgomp.c++/pr81130.C: New test.
10635 2017-06-17 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10637 * testsuite/libgomp.fortran/strassen.f90: Remove dg-skip-if
10639 * testsuite/libgomp.oacc-c-c++-common/vprop.c: Remove
10640 dg-xfail-run-if default args.
10642 2017-06-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
10644 * testsuite/libgomp.c/pr39591-2.c: Fix test case.
10645 * testsuite/libgomp.c/pr39591-3.c: Likewise.
10647 2017-05-30 Jakub Jelinek <jakub@redhat.com>
10650 * config/linux/affinity.c (gomp_affinity_init_level_1): New function.
10651 (gomp_affinity_init_level): Use it. Always analyze the core and thread
10652 sibling lists, depending on level just pick up what CPUs to put
10653 together into a place vs. whether add multiple ordered places.
10655 2017-05-24 Thomas Schwinge <thomas@codesourcery.com>
10657 * openacc.h (acc_async_wait, acc_async_wait_all): New prototypes.
10658 * libgomp.map (OACC_2.0.1): Add these.
10659 * oacc-async.c (acc_async_wait, acc_async_wait_all): New aliases
10660 for "acc_wait", and "acc_wait_all", respectively.
10661 * openacc.f90 (acc_async_wait, acc_async_wait_all): New interfaces
10662 for "acc_wait", and "acc_wait_all", respectively.
10663 * openacc_lib.h (acc_async_wait, acc_async_wait_all): Likewise.
10664 * libgomp.texi (acc_wait, acc_wait_all): Update.
10665 * testsuite/libgomp.oacc-c-c++-common/par-reduction-2.c: Update.
10666 * testsuite/libgomp.oacc-fortran/par-reduction-2-1.f: New file.
10667 * testsuite/libgomp.oacc-fortran/par-reduction-2-2.f: Likewise.
10669 * openacc_lib.h (acc_pcopyin, acc_pcreate): Route to
10670 acc_present_or_copyin and acc_present_or_create procedures,
10672 * testsuite/libgomp.oacc-fortran/lib-32-1.f: Exercise these, and
10673 generally different variants of OpenACC Runtime Library functions.
10674 * testsuite/libgomp.oacc-fortran/lib-32-2.f: Likewise.
10676 * testsuite/libgomp.oacc-fortran/lib-32-1.f: New file.
10677 * testsuite/libgomp.oacc-fortran/lib-32-2.f: Likewise.
10679 * openacc.h (acc_pcopyin, acc_pcreate): Provide prototypes instead
10680 of preprocessor definitions.
10681 * libgomp.h (strong_alias): Guard by "#ifdef
10682 HAVE_ATTRIBUTE_ALIAS".
10683 * oacc-mem.c: Provide "acc_pcreate" as alias for
10684 "acc_present_or_create", and "acc_pcopyin" as alias for
10685 "acc_present_or_copyin".
10686 * libgomp.map: New version "OACC_2.0.1".
10687 (OACC_2.0.1): Add "acc_pcopyin", and "acc_pcreate".
10688 * testsuite/libgomp.oacc-c-c++-common/lib-38.c: Remove, merging
10689 its content into...
10690 * testsuite/libgomp.oacc-c-c++-common/lib-32.c: ... this file.
10693 * plugin/plugin-nvptx.c (nvptx_get_num_devices): Debugging output
10694 when disabling nvptx offloading.
10696 2017-05-23 Thomas Schwinge <thomas@codesourcery.com>
10698 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-2.c: Update.
10699 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Likewise.
10700 * testsuite/libgomp.oacc-fortran/kernels-loop-2.f95: Likewise.
10702 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Rewrite.
10703 * testsuite/lib/libgomp.exp
10704 (check_effective_target_openacc_nvidia_accel_configured): New
10706 * testsuite/libgomp.oacc-c++/c++.exp (check_effective_target_c)
10707 (check_effective_target_c++): New procs.
10708 * testsuite/libgomp.oacc-c/c.exp (check_effective_target_c)
10709 (check_effective_target_c++): Likewise.
10711 2017-05-22 Jakub Jelinek <jakub@redhat.com>
10713 PR middle-end/80809
10714 * testsuite/libgomp.c/pr80809-2.c: New test.
10715 * testsuite/libgomp.c/pr80809-3.c: New test.
10717 PR middle-end/80809
10718 * testsuite/libgomp.c/pr80809-1.c: New test.
10720 PR middle-end/80853
10721 * testsuite/libgomp.c/pr80853.c: New test.
10723 2017-05-19 Thomas Schwinge <thomas@codesourcery.com>
10725 * testsuite/libgomp.oacc-c++/template-reduction.C: Update.
10726 * testsuite/libgomp.oacc-c-c++-common/nested-2.c: Update.
10727 * testsuite/libgomp.oacc-fortran/data-4-2.f90: Likewise.
10728 * testsuite/libgomp.oacc-fortran/default-1.f90: Likewise.
10729 * testsuite/libgomp.oacc-fortran/non-scalar-data.f90: Likewise.
10731 * plugin/plugin-hsa.c (DLSYM_FN, init_hsa_runtime_functions):
10732 Debug output for failure.
10734 2017-05-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10736 * testsuite/lib/libgomp.exp: Load scanlang.exp.
10738 2017-04-27 Jakub Jelinek <jakub@redhat.com>
10741 * configure.tgt (*-*-aix*): Add -frandom-seed=$@ to XCFLAGS to avoid
10742 bootstrap compare failures.
10744 2017-04-20 Alexander Monakov <amonakov@ispras.ru>
10746 * testsuite/libgomp.c/target-36.c: New testcase.
10748 2017-04-13 Jakub Jelinek <jakub@redhat.com>
10750 * plugin/plugin-nvptx.c (cuda_lib_inited): Use signed char type
10753 2017-04-11 Jakub Jelinek <jakub@redhat.com>
10756 * testsuite/libgomp.c/pr80394.c: New test.
10758 2017-04-04 Jakub Jelinek <jakub@redhat.com>
10761 * config/posix/thread-stacksize.h: New file.
10762 * config/darwin/thread-stacksize.h: New file.
10763 * config/nvptx/thread-stacksize.h: New file.
10764 * env.c: Include thread-stacksize.h.
10765 (initialize_env): Initialize stacksize to GOMP_DEFAULT_STACKSIZE
10766 instead of 0. Call pthread_attr_setstacksize even if
10767 GOMP_DEFAULT_STACKSIZE is non-zero.
10769 2017-03-30 Jakub Jelinek <jakub@redhat.com>
10771 * env.c (initialize_env): Initialize stacksize to 0.
10773 2017-03-22 Cesar Philippidis <cesar@codesourcery.com>
10776 * testsuite/libgomp.oacc-c-c++-common/declare-vla.c: New test.
10778 2017-03-08 Jakub Jelinek <jakub@redhat.com>
10781 * testsuite/libgomp.c/pr79940.c: New test.
10783 2017-02-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10785 * testsuite/libgomp.c/pr48591.c: Enable on all __float128
10787 Add __float128 options.
10789 2017-02-11 John David Anglin <danglin@gcc.gnu.org>
10791 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: Remove
10792 hppa*-*-* dg-skip-if directive.
10794 2017-02-09 Jakub Jelinek <jakub@redhat.com>
10796 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: Move
10797 dg-skip-if directive into a comment.
10799 2017-02-09 Nathan Sidwell <nathan@codesourcery.com>
10800 Chung-Lin Tang <cltang@codesourcery.com>
10802 * testsuite/libgomp.oacc-c-c++-common/tile-1.c: New.
10803 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Adjust and
10804 add additional case.
10805 * testsuite/libgomp.oacc-c-c++-common/vprop.c: XFAIL under
10806 "openacc_nvidia_accel_selected".
10807 * libgomp.oacc-fortran/nested-function-1.f90 (test2):
10808 Add num_workers(8) clause.
10810 2017-02-08 John David Anglin <danglin@gcc.gnu.org>
10812 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: Skip on
10814 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-dbl.c: Don't
10815 include complex.h on hppa*-*-hpux*.
10816 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-flt.c: Likewise.
10818 2017-02-02 Thomas Schwinge <thomas@codesourcery.com>
10820 * plugin/plugin-nvptx.c (nvptx_exec): Make it static.
10822 * libgomp-plugin.h (GOMP_OFFLOAD_openacc_parallel): Rename to
10823 GOMP_OFFLOAD_openacc_exec. Adjust all users.
10824 (GOMP_OFFLOAD_openacc_get_current_cuda_device): Rename to
10825 GOMP_OFFLOAD_openacc_cuda_get_current_device. Adjust all users.
10826 (GOMP_OFFLOAD_openacc_get_current_cuda_context): Rename to
10827 GOMP_OFFLOAD_openacc_cuda_get_current_context. Adjust all users.
10828 (GOMP_OFFLOAD_openacc_get_cuda_stream): Rename to
10829 GOMP_OFFLOAD_openacc_cuda_get_stream. Adjust all users.
10830 (GOMP_OFFLOAD_openacc_set_cuda_stream): Rename to
10831 GOMP_OFFLOAD_openacc_cuda_set_stream. Adjust all users.
10833 2017-01-31 Thomas Schwinge <thomas@codesourcery.com>
10835 * libgomp-plugin.h: #include <stdbool.h>.
10836 (GOMP_OFFLOAD_get_name, GOMP_OFFLOAD_get_caps)
10837 (GOMP_OFFLOAD_get_type, GOMP_OFFLOAD_get_num_devices)
10838 (GOMP_OFFLOAD_init_device, GOMP_OFFLOAD_fini_device)
10839 (GOMP_OFFLOAD_version, GOMP_OFFLOAD_load_image)
10840 (GOMP_OFFLOAD_unload_image, GOMP_OFFLOAD_alloc, GOMP_OFFLOAD_free)
10841 (GOMP_OFFLOAD_dev2host, GOMP_OFFLOAD_host2dev)
10842 (GOMP_OFFLOAD_dev2dev, GOMP_OFFLOAD_can_run, GOMP_OFFLOAD_run)
10843 (GOMP_OFFLOAD_async_run, GOMP_OFFLOAD_openacc_parallel)
10844 (GOMP_OFFLOAD_openacc_register_async_cleanup)
10845 (GOMP_OFFLOAD_openacc_async_test)
10846 (GOMP_OFFLOAD_openacc_async_test_all)
10847 (GOMP_OFFLOAD_openacc_async_wait)
10848 (GOMP_OFFLOAD_openacc_async_wait_async)
10849 (GOMP_OFFLOAD_openacc_async_wait_all)
10850 (GOMP_OFFLOAD_openacc_async_wait_all_async)
10851 (GOMP_OFFLOAD_openacc_async_set_async)
10852 (GOMP_OFFLOAD_openacc_create_thread_data)
10853 (GOMP_OFFLOAD_openacc_destroy_thread_data)
10854 (GOMP_OFFLOAD_openacc_get_current_cuda_device)
10855 (GOMP_OFFLOAD_openacc_get_current_cuda_context)
10856 (GOMP_OFFLOAD_openacc_get_cuda_stream)
10857 (GOMP_OFFLOAD_openacc_set_cuda_stream): New prototypes.
10858 * libgomp.h (struct acc_dispatch_t, struct gomp_device_descr): Use
10860 * plugin/plugin-hsa.c (GOMP_OFFLOAD_load_image)
10861 (GOMP_OFFLOAD_unload_image): Fix argument types.
10863 2017-01-26 Jakub Jelinek <jakub@redhat.com>
10865 * testsuite/lib/libgomp.exp
10866 (check_effective_target_hsa_offloading_selected_nocache): Fix up
10867 check_compile invocation. Fix up removal of executable. Drop
10868 bogus "2>&1" argument.
10870 * testsuite/libgomp.fortran/declare-simd-4.f90: Add cleanup-modules
10873 2017-01-24 Pekka Jääskeläinen <pekka@parmance.com>
10874 Martin Jambor <mjambor@suse.cz>
10876 * plugin/hsa.h: Moved to top level include.
10877 * plugin/plugin-hsa.c: Chanfgd include of hsa.h accordingly.
10879 2017-01-21 Jakub Jelinek <jakub@redhat.com>
10882 * testsuite/Makefile.am (gcc_version): Use @get_gcc_base_ver@ instead
10883 of cat to get version from BASE-VER file.
10884 * testsuite/Makefile.in: Regenerated.
10886 2017-01-19 Jakub Jelinek <jakub@redhat.com>
10888 * plugin/cuda/cuda.h (CUdeviceptr): Typedef to unsigned long long even
10891 2017-01-17 Jakub Jelinek <jakub@redhat.com>
10893 * plugin/hsa.h: Add GCC runtime library exception.
10894 * plugin/hsa_ext_finalize.h: Likewise.
10896 * plugin/configfrag.ac: For --without-cuda-driver don't initialize
10897 CUDA_DRIVER_INCLUDE nor CUDA_DRIVER_LIB. If both
10898 CUDA_DRIVER_INCLUDE and CUDA_DRIVER_LIB are empty and linking small
10899 cuda program fails, define PLUGIN_NVPTX_DYNAMIC to 1 and use
10900 plugin/include/cuda as include dir and -ldl instead of -lcuda as
10901 library to link ptx plugin against.
10902 * plugin/plugin-nvptx.c: Include dlfcn.h if PLUGIN_NVPTX_DYNAMIC.
10903 (CUDA_CALLS): Define.
10904 (cuda_lib, cuda_lib_inited): New variables.
10905 (init_cuda_lib): New function.
10906 (CUDA_CALL_PREFIX): Define.
10907 (CUDA_CALL_ERET, CUDA_CALL_ASSERT): Use CUDA_CALL_PREFIX.
10908 (CUDA_CALL): Use FN instead of (FN).
10909 (CUDA_CALL_NOCHECK): Define.
10910 (cuda_error, fini_streams_for_device, select_stream_for_async,
10911 nvptx_attach_host_thread_to_device, nvptx_open_device, link_ptx,
10912 event_gc, nvptx_exec, nvptx_async_test, nvptx_async_test_all,
10913 nvptx_wait_all, nvptx_set_clocktick, GOMP_OFFLOAD_unload_image,
10914 nvptx_stacks_alloc, nvptx_stacks_free, GOMP_OFFLOAD_run): Use
10916 (nvptx_init): Call init_cuda_lib, if it fails, return false. Use
10918 (nvptx_get_num_devices): Call init_cuda_lib, if it fails, return 0.
10919 Use CUDA_CALL_NOCHECK.
10920 * plugin/cuda/cuda.h: New file.
10921 * config.h.in: Regenerated.
10922 * configure: Regenerated.
10925 * configure.ac: Add GCC_BASE_VER.
10926 * Makefile.am (gcc_version): Use @get_gcc_base_ver@ instead of cat to
10927 get version from BASE-VER file.
10928 * testsuite/Makefile.in: Regenerated.
10929 * configure: Regenerated.
10930 * Makefile.in: Regenerated.
10932 2017-01-09 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
10935 * Makefile.am: Make fincludedir multilib-aware.
10936 * Makefile.in: Regenerate.
10938 2017-01-01 Jakub Jelinek <jakub@redhat.com>
10940 Update copyright years.
10942 * libgomp.texi: Bump @copying's copyright year.
10944 2016-12-02 Sebastian Huber <sebastian.huber@embedded-brains.de>
10946 * libgomp/config/rtems/pool.h (gomp_thread_pool_reservoir): Use
10947 pthread_spinlock_t instead of gomp_mutex_t lock.
10948 (gomp_get_thread_pool): Likewise.
10949 (gomp_release_thread_pool): Likewise.
10950 * libgomp/config/rtems/proc.c (allocate_thread_pool_reservoir):
10953 2016-12-02 Sebastian Huber <sebastian.huber@embedded-brains.de>
10955 * config/rtems/pool.h (gomp_get_thread_pool): Return proper
10956 thread pool in case nthreads == 1.
10958 2016-11-30 Alexander Monakov <amonakov@ispras.ru>
10960 * config/nvptx/env.c: Delete.
10961 * icv.c: Move definitions of ICV variables back ...
10962 * env.c: ...here. Do not compile environment-related functionality if
10963 LIBGOMP_OFFLOADED_ONLY is set.
10965 2016-11-30 Alexander Monakov <amonakov@ispras.ru>
10967 * configure.ac [nvptx*-*-*] (libgomp_offloaded_only): Set and use it...
10968 (LIBGOMP_OFFLOADED_ONLY): ...here; new define.
10969 * configure: Regenerate.
10970 * config.h.in: Likewise.
10972 2016-11-30 Alexander Monakov <amonakov@ispras.ru>
10974 * Makefile.in: Regenerate with automake-1.11.6.
10975 * aclocal.m4: Likewise.
10976 * configure: Likewise.
10977 * testsuite/Makefile.in: Likewise.
10979 2016-11-28 Alexander Monakov <amonakov@ispras.ru>
10981 * config/nvptx/critical.c: Delete to use generic implementation.
10983 2016-11-28 Jonas Hahnfeld <Hahnfeld@itc.rwth-aachen.de>
10985 * config/linux/affinity.c [!HAVE_PTHREAD_AFFINITY_NP]: Include
10986 ../../affinity.c as fallback.
10987 * config/nvptx/affinity.c: Delete to use fallback implementation.
10989 2016-11-23 Alexander Monakov <amonakov@ispras.ru>
10990 Jakub Jelinek <jakub@redhat.com>
10991 Dmitry Melnik <dm@ispras.ru>
10993 * Makefile.am (libgomp_la_SOURCES): Add atomic.c, icv.c, icv-device.c.
10994 * Makefile.in. Regenerate.
10995 * configure.ac [nvptx*-*-*] (libgomp_use_pthreads): Set and use it...
10996 (LIBGOMP_USE_PTHREADS): ...here; new define.
10997 * configure: Regenerate.
10998 * config.h.in: Likewise.
10999 * config/posix/affinity.c: Move to...
11000 * affinity.c: ...here (new file). Guard use of Pthreads-specific
11001 interface by LIBGOMP_USE_PTHREADS.
11002 * critical.c: Split out GOMP_atomic_{start,end} into...
11003 * atomic.c: ...here (new file).
11004 * env.c: Split out ICV definitions into...
11005 * icv.c: ...here (new file) and...
11006 * icv-device.c: ...here. New file.
11007 * config/linux/lock.c (gomp_init_lock_30): Move to generic lock.c.
11008 (gomp_destroy_lock_30): Ditto.
11009 (gomp_set_lock_30): Ditto.
11010 (gomp_unset_lock_30): Ditto.
11011 (gomp_test_lock_30): Ditto.
11012 (gomp_init_nest_lock_30): Ditto.
11013 (gomp_destroy_nest_lock_30): Ditto.
11014 (gomp_set_nest_lock_30): Ditto.
11015 (gomp_unset_nest_lock_30): Ditto.
11016 (gomp_test_nest_lock_30): Ditto.
11018 * config/nvptx/lock.c: New.
11019 * config/nvptx/bar.c: New.
11020 * config/nvptx/bar.h: New.
11021 * config/nvptx/doacross.h: New.
11022 * config/nvptx/error.c: New.
11023 * config/nvptx/icv-device.c: New.
11024 * config/nvptx/mutex.h: New.
11025 * config/nvptx/pool.h: New.
11026 * config/nvptx/proc.c: New.
11027 * config/nvptx/ptrlock.h: New.
11028 * config/nvptx/sem.h: New.
11029 * config/nvptx/simple-bar.h: New.
11030 * config/nvptx/target.c: New.
11031 * config/nvptx/task.c: New.
11032 * config/nvptx/team.c: New.
11033 * config/nvptx/time.c: New.
11034 * config/posix/simple-bar.h: New.
11035 * libgomp.h: Guard pthread.h inclusion. Include simple-bar.h.
11036 (gomp_num_teams_var): Declare.
11037 (struct gomp_thread_pool): Change threads_dock member to
11038 gomp_simple_barrier_t.
11039 [__nvptx__] (gomp_thread): New implementation.
11040 (gomp_thread_attr): Guard by LIBGOMP_USE_PTHREADS.
11041 (gomp_thread_destructor): Ditto.
11042 (gomp_init_thread_affinity): Ditto.
11043 * team.c: Guard uses of Pthreads-specific interfaces by
11044 LIBGOMP_USE_PTHREADS. Adjust all uses of threads_dock.
11045 (gomp_free_thread) [__nvptx__]: Do not call 'free'.
11046 * config/nvptx/alloc.c: Delete.
11047 * config/nvptx/barrier.c: Ditto.
11048 * config/nvptx/fortran.c: Ditto.
11049 * config/nvptx/iter.c: Ditto.
11050 * config/nvptx/iter_ull.c: Ditto.
11051 * config/nvptx/loop.c: Ditto.
11052 * config/nvptx/loop_ull.c: Ditto.
11053 * config/nvptx/ordered.c: Ditto.
11054 * config/nvptx/parallel.c: Ditto.
11055 * config/nvptx/priority_queue.c: Ditto.
11056 * config/nvptx/sections.c: Ditto.
11057 * config/nvptx/single.c: Ditto.
11058 * config/nvptx/splay-tree.c: Ditto.
11059 * config/nvptx/work.c: Ditto.
11060 * testsuite/libgomp.fortran/fortran.exp (lang_link_flags): Pass
11061 -foffload=-lgfortran in addition to -lgfortran.
11062 * testsuite/libgomp.oacc-fortran/fortran.exp (lang_link_flags): Ditto.
11063 * plugin/plugin-nvptx.c: Include <limits.h>.
11064 (struct targ_fn_descriptor): Add new fields.
11065 (struct ptx_device): Ditto. Set them...
11066 (nvptx_open_device): ...here.
11067 (nvptx_adjust_launch_bounds): New.
11068 (nvptx_host2dev): Allow NULL 'nvthd'.
11069 (nvptx_dev2host): Ditto.
11070 (GOMP_OFFLOAD_get_caps): Add GOMP_OFFLOAD_CAP_OPENMP_400.
11071 (link_ptx): Adjust log sizes.
11072 (nvptx_host2dev): Allow NULL 'nvthd'.
11073 (nvptx_dev2host): Ditto.
11074 (nvptx_set_clocktick): New. Use it...
11075 (GOMP_OFFLOAD_load_image): ...here. Set new targ_fn_descriptor
11077 (GOMP_OFFLOAD_dev2dev): New.
11078 (nvptx_adjust_launch_bounds): New.
11079 (nvptx_stacks_size): New.
11080 (nvptx_stacks_alloc): New.
11081 (nvptx_stacks_free): New.
11082 (GOMP_OFFLOAD_run): New.
11083 (GOMP_OFFLOAD_async_run): New (stub).
11085 2016-11-23 Martin Jambor <mjambor@suse.cz>
11087 * testsuite/libgomp.hsa.c/bits-insns.c: New test.
11088 * testsuite/libgomp.hsa.c/tiling-1.c: Likewise.
11089 * testsuite/libgomp.hsa.c/tiling-2.c: Likewise.
11091 2016-11-23 Martin Liska <mliska@suse.cz>
11092 Martin Jambor <mjambor@suse.cz>
11094 * plugin/hsa.h: New file.
11095 * plugin/hsa_ext_finalize.h: New file.
11096 * plugin/configfrag.ac: Remove hsa-kmt-lib test. Added checks for
11097 header file unistd.h, and functions secure_getenv, __secure_getenv,
11098 getuid, geteuid, getgid and getegid.
11099 * plugin/Makefrag.am (libgomp_plugin_hsa_la_CPPFLAGS): Added
11101 * plugin/plugin-hsa.c: Include config.h, inttypes.h and stdbool.h.
11102 Handle various cases of secure_getenv presence, add an implementation
11103 when we can test effective UID and GID.
11104 (struct hsa_runtime_fn_info): New structure.
11105 (hsa_runtime_fn_info hsa_fns): New variable.
11106 (hsa_runtime_lib): Likewise.
11107 (support_cpu_devices): Likewise.
11108 (init_enviroment_variables): Load newly introduced ENV
11110 (hsa_warn): Call hsa run-time functions via hsa_fns structure.
11111 (hsa_fatal): Likewise.
11112 (DLSYM_FN): New macro.
11113 (init_hsa_runtime_functions): New function.
11114 (suitable_hsa_agent_p): Call hsa run-time functions via hsa_fns
11115 structure. Depending on environment, also allow CPU devices.
11116 (init_hsa_context): Call hsa run-time functions via hsa_fns structure.
11117 (get_kernarg_memory_region): Likewise.
11118 (GOMP_OFFLOAD_init_device): Likewise.
11119 (destroy_hsa_program): Likewise.
11120 (init_basic_kernel_info): New function.
11121 (GOMP_OFFLOAD_load_image): Use it.
11122 (create_and_finalize_hsa_program): Call hsa run-time functions via
11124 (create_single_kernel_dispatch): Likewise.
11125 (release_kernel_dispatch): Likewise.
11126 (init_single_kernel): Likewise.
11127 (parse_target_attributes): Allow up multiple HSA grid dimensions.
11128 (get_group_size): New function.
11129 (run_kernel): Likewise.
11130 (GOMP_OFFLOAD_run): Outline most functionality to run_kernel.
11131 (GOMP_OFFLOAD_fini_device): Call hsa run-time functions via hsa_fns
11133 * testsuite/lib/libgomp.exp: Remove hsa_kmt_lib support.
11134 * testsuite/libgomp-test-support.exp.in: Likewise.
11135 * Makefile.in: Regenerated.
11136 * aclocal.m4: Likewise.
11137 * config.h.in: Likewise.
11138 * configure: Likewise.
11139 * testsuite/Makefile.in: Likewise.
11141 2016-11-15 Martin Jambor <mjambor@suse.cz>
11142 Alexander Monakov <amonakov@ispras.ru>
11144 * testsuite/libgomp.fortran/examples-4/device-1.f90 (e_57_1): Add
11145 mapping clauses to target constructs.
11146 * testsuite/libgomp.fortran/examples-4/device-3.f90 (e_57_3): Ditto.
11148 2016-11-15 Matthias Klose <doko@ubuntu.com>
11150 * configure: Regenerate.
11152 2016-11-10 Jakub Jelinek <jakub@redhat.com>
11154 * omp_lib.f90.in (openmp_version): Change to 201511 from 201307.
11155 * omp_lib.h.in (openmp_version): Likewise.
11156 * testsuite/libgomp.fortran/openmp_version-1.f: Expect 201511 instead
11158 * testsuite/libgomp.fortran/openmp_version-2.f90: Likewise.
11160 * testsuite/libgomp.fortran/examples-4/declare_target-1.f90
11161 (fib_wrapper): Add map(from: x) clause.
11162 * testsuite/libgomp.fortran/examples-4/declare_target-2.f90
11163 (e_53_2): Likewise.
11164 * testsuite/libgomp.fortran/examples-4/declare_target-4.f90
11165 (accum): Add map(tmp) clause.
11166 * testsuite/libgomp.fortran/examples-4/declare_target-5.f90
11167 (accum): Add map(tofrom: tmp) clause.
11168 * testsuite/libgomp.fortran/examples-4/target_data-3.f90
11169 (gramSchmidt): Likewise.
11170 * testsuite/libgomp.fortran/examples-4/teams-2.f90 (dotprod): Add
11171 map(tofrom: sum) clause.
11172 * testsuite/libgomp.fortran/nestedfn5.f90 (foo): Add twice
11173 map (alloc: a, l) clause. Add defaultmap(tofrom: scalar) clause.
11174 * testsuite/libgomp.fortran/pr66199-2.f90: Adjust for linear clause
11175 only allowed on the loop iterator.
11176 * testsuite/libgomp.fortran/target4.f90 (foo): Add map(t) clause.
11177 * testsuite/libgomp.fortran/taskloop2.f90: New test.
11178 * testsuite/libgomp.fortran/taskloop4.f90: New test.
11179 * testsuite/libgomp.fortran/doacross1.f90: New test.
11180 * testsuite/libgomp.fortran/doacross3.f90: New test.
11181 * testsuite/libgomp.fortran/taskloop1.f90: New test.
11182 * testsuite/libgomp.fortran/taskloop3.f90: New test.
11183 * testsuite/libgomp.fortran/doacross2.f90: New test.
11184 * testsuite/libgomp.c/doacross-1.c (main): Add missing
11185 #pragma omp atomic read.
11186 * testsuite/libgomp.c/doacross-2.c (main): Likewise.
11187 * testsuite/libgomp.c/doacross-3.c (main): Likewise.
11189 2016-11-02 Cesar Philippidis <cesar@codesourcery.com>
11190 Nathan Sidwell <nathan@acm.org>
11192 * plugin/plugin-nvptx.c (nvptx_exec): Interrogate board attributes
11193 to determine default geometry.
11194 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Set gang
11197 2016-11-01 Jakub Jelinek <jakub@redhat.com>
11199 * hashtab.h: Use standard GPLv3 with runtime exception
11202 2016-10-27 Aldy Hernandez <aldyh@redhat.com>
11204 * oacc-init.c (goacc_new_thread): Use sizeof of the appropriate
11205 size when allocating new thread.
11207 2016-09-14 Marek Polacek <polacek@redhat.com>
11209 * testsuite/libgomp.c++/atomic-3.C: Use -Wno-deprecated.
11211 2016-08-19 Jakub Jelinek <jakub@redhat.com>
11214 * testsuite/libgomp.fortran/pr71014.f90: New test.
11216 2016-08-18 Chung-Lin Tang <cltang@codesourcery.com>
11218 PR middle-end/70895
11219 * testsuite/libgomp.oacc-fortran/reduction-7.f90: Add explicit
11220 firstprivate clauses.
11221 * testsuite/libgomp.oacc-fortran/reduction-6.f90: Remove explicit
11223 * testsuite/libgomp.oacc-c-c++-common/reduction-7.c: Likewise.
11224 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-flt.c: Likewise.
11225 * testsuite/libgomp.oacc-c-c++-common/reduction-flt.c: Likewise.
11226 * testsuite/libgomp.oacc-c-c++-common/collapse-2.c: Likewise.
11227 * testsuite/libgomp.oacc-c-c++-common/loop-red-wv-1.c: Likewise.
11228 * testsuite/libgomp.oacc-c-c++-common/collapse-4.c: Likewise.
11229 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c: Likewise.
11230 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-dbl.c: Likewise.
11231 * testsuite/libgomp.oacc-c-c++-common/loop-red-g-1.c: Likewise.
11232 * testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c: Likewise.
11233 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c: Likewise.
11234 * testsuite/libgomp.oacc-c-c++-common/reduction-dbl.c: Likewise.
11236 2016-08-14 Chung-Lin Tang <cltang@codesourcery.com>
11239 * testsuite/libgomp.oacc-fortran/host_data-1.f90: New test.
11241 2016-08-08 Jakub Jelinek <jakub@redhat.com>
11244 * testsuite/libgomp.c++/pr58706.C: New test.
11246 2016-08-04 Thomas Schwinge <thomas@codesourcery.com>
11248 * testsuite/libgomp.oacc-c++/routine-1-auto.C: New file.
11249 * testsuite/libgomp.oacc-c++/routine-1-template-auto.C: Likewise.
11250 * testsuite/libgomp.oacc-c++/routine-1-template-trailing-return-type.C:
11252 * testsuite/libgomp.oacc-c++/routine-1-template.C: Likewise.
11253 * testsuite/libgomp.oacc-c++/routine-1-trailing-return-type.C:
11255 * testsuite/libgomp.oacc-c-c++-common/routine-1.c: Adjust.
11257 * testsuite/libgomp.oacc-c-c++-common/crash-1.c: Make it a "link"
11258 test, and don't hardcode -O0.
11260 2016-08-03 Nathan Sidwell <nathan@codesourcery.com>
11262 * testsuite/libgomp.oacc-c-c++-common/crash-1.c: New.
11264 2016-07-15 Cesar Philippidis <cesar@codesourcery.com>
11266 * testsuite/libgomp.oacc-c-c++-common/zero_length_subarrays.c: New
11269 2016-07-03 H.J. Lu <hongjiu.lu@intel.com>
11271 PR middle-end/71734
11272 * testsuite/libgomp.fortran/pr71734-1.f90: New test.
11273 * testsuite/libgomp.fortran/pr71734-2.f90: Likewise.
11275 2016-07-01 Jakub Jelinek <jakub@redhat.com>
11278 * testsuite/libgomp.fortran/associate3.f90: New test.
11280 2016-06-17 Jakub Jelinek <jakub@redhat.com>
11282 * testsuite/libgomp.c++/target-21.C: New test.
11284 2016-06-16 Jakub Jelinek <jakub@redhat.com>
11286 * testsuite/libgomp.c++/target-20.C: New test.
11288 2016-06-10 Thomas Schwinge <thomas@codesourcery.com>
11289 Cesar Philippidis <cesar@codesourcery.com>
11291 PR middle-end/71373
11292 * libgomp.oacc-c/nested-function-1.c: New file.
11293 * libgomp.oacc-c/nested-function-2.c: Likewise.
11294 * libgomp.oacc-fortran/nested-function-1.f90: Likewise.
11295 * libgomp.oacc-fortran/nested-function-2.f90: Likewise.
11296 * libgomp.oacc-fortran/nested-function-3.f90: Likewise.
11298 2016-06-10 Thomas Schwinge <thomas@codesourcery.com>
11301 * testsuite/libgomp.oacc-c-c++-common/cache-1.c: #include
11302 "../../../gcc/testsuite/c-c++-common/goacc/cache-1.c".
11303 * testsuite/libgomp.oacc-fortran/cache-1.f95: New file.
11305 2016-06-03 Chung-Lin Tang <cltang@codesourcery.com>
11307 * testsuite/libgomp.oacc-fortran/reduction-8.f90: New testcase.
11308 * testsuite/libgomp.oacc-c-c++-common/reduction-8.c: New testcase.
11310 2016-06-01 Cesar Philippidis <cesar@codesourcery.com>
11313 * testsuite/libgomp.oacc-c-c++-common/pr70688.c: New file.
11315 2016-05-26 Jakub Jelinek <jakub@redhat.com>
11317 * testsuite/libgomp.c/doacross-1.c (main): Use schedule(static)
11318 instead of invalid schedule(static, 0).
11319 * testsuite/libgomp.c/doacross-2.c (main): Likewise.
11321 2016-05-26 Chung-Lin Tang <cltang@codesourcery.com>
11323 * oacc-plugin.h (GOMP_PLUGIN_async_unmap_vars): Add int parameter.
11324 * oacc-plugin.c (GOMP_PLUGIN_async_unmap_vars): Add 'int async'
11325 parameter, use to set async stream around call to gomp_unmap_vars,
11326 call gomp_unmap_vars() with 'do_copyfrom' set to true.
11327 * plugin/plugin-nvptx.c (struct ptx_event): Add 'int val' field.
11328 (event_gc): Adjust event handling loop, collect PTX_EVT_ASYNC_CLEANUP
11329 events and call GOMP_PLUGIN_async_unmap_vars() for each of them.
11330 (event_add): Add int parameter, initialize 'val' field when
11331 adding new ptx_event struct.
11332 (nvptx_evec): Adjust event_add() call arguments.
11333 (nvptx_host2dev): Likewise.
11334 (nvptx_dev2host): Likewise.
11335 (nvptx_wait_async): Likewise.
11336 (nvptx_wait_all_async): Likewise.
11337 (GOMP_OFFLOAD_openacc_register_async_cleanup): Add async parameter,
11338 pass to event_add() call.
11339 * oacc-host.c (host_openacc_register_async_cleanup): Add 'int async'
11341 * oacc-mem.c (gomp_acc_remove_pointer): Adjust async case to
11342 call openacc.register_async_cleanup_func() hook.
11343 * oacc-parallel.c (GOACC_parallel_keyed): Likewise.
11344 * target.c (gomp_copy_from_async): Delete function.
11345 (gomp_map_vars): Remove async_refcount.
11346 (gomp_unmap_vars): Likewise.
11347 (gomp_load_image_to_device): Likewise.
11348 (omp_target_associate_ptr): Likewise.
11349 * libgomp.h (struct splay_tree_key_s): Remove async_refcount.
11350 (acc_dispatch_t.register_async_cleanup_func): Add int parameter.
11351 (gomp_copy_from_async): Remove.
11353 2016-05-26 Chung-Lin Tang <cltang@codesourcery.com>
11355 * target.c (gomp_device_copy): New function.
11356 (gomp_copy_host2dev): Likewise.
11357 (gomp_copy_dev2host): Likewise.
11358 (gomp_free_device_memory): Likewise.
11359 (gomp_map_vars_existing): Adjust to call gomp_copy_host2dev.
11360 (gomp_map_pointer): Likewise.
11361 (gomp_map_vars): Adjust to call gomp_copy_host2dev, handle
11362 NULL value from alloc_func plugin hook.
11363 (gomp_unmap_tgt): Adjust to call gomp_free_device_memory.
11364 (gomp_copy_from_async): Adjust to call gomp_copy_dev2host.
11365 (gomp_unmap_vars): Likewise.
11366 (gomp_update): Adjust to call gomp_copy_dev2host and
11367 gomp_copy_host2dev functions.
11368 (gomp_unload_image_from_device): Handle false value from
11369 unload_image_func plugin hook.
11370 (gomp_init_device): Handle false value from init_device_func
11372 (gomp_exit_data): Adjust to call gomp_copy_dev2host.
11373 (omp_target_free): Adjust to call gomp_free_device_memory.
11374 (omp_target_memcpy): Handle return values from host2dev_func,
11375 dev2host_func, and dev2dev_func plugin hooks.
11376 (omp_target_memcpy_rect_worker): Likewise.
11377 (gomp_target_fini): Handle false value from fini_device_func
11379 * libgomp.h (struct gomp_device_descr): Adjust return type of
11380 init_device_func, fini_device_func, unload_image_func, free_func,
11381 dev2host_func,host2dev_func, and dev2dev_func plugin hooks to 'bool'.
11382 * oacc-init.c (acc_shutdown_1): Handle false value from
11383 fini_device_func plugin hook.
11384 * oacc-host.c (host_init_device): Change return type to bool.
11385 (host_fini_device): Likewise.
11386 (host_unload_image): Likewise.
11387 (host_free): Likewise.
11388 (host_dev2host): Likewise.
11389 (host_host2dev): Likewise.
11390 * oacc-mem.c (acc_free): Handle plugin hook fatal error case.
11391 (acc_memcpy_to_device): Likewise.
11392 (acc_memcpy_from_device): Likewise.
11393 (delete_copyout): Add libfnname parameter, handle free_func
11394 hook fatal error case.
11395 (acc_delete): Adjust delete_copyout call.
11396 (acc_copyout): Likewise.
11397 (update_dev_host): Move gomp_mutex_unlock to after
11398 host2dev/dev2host hook calls.
11400 * plugin/plugin-hsa.c (hsa_warn): Adjust 'hsa_error' local variable
11401 to 'hsa_error_msg', for clarity.
11402 (hsa_fatal): Likewise.
11403 (hsa_error): New function.
11404 (init_hsa_context): Change return type to bool, adjust to return
11406 (GOMP_OFFLOAD_get_num_devices): Adjust to handle init_hsa_context
11408 (GOMP_OFFLOAD_init_device): Change return type to bool, adjust to
11409 return false on error.
11410 (get_agent_info): Adjust to return NULL on error.
11411 (destroy_hsa_program): Change return type to bool, adjust to
11412 return false on error.
11413 (GOMP_OFFLOAD_load_image): Adjust to return -1 on error.
11414 (destroy_module): Change return type to bool, adjust to
11415 return false on error.
11416 (GOMP_OFFLOAD_unload_image): Likewise.
11417 (GOMP_OFFLOAD_fini_device): Likewise.
11418 (GOMP_OFFLOAD_alloc): Change to return NULL when called.
11419 (GOMP_OFFLOAD_free): Change to return false when called.
11420 (GOMP_OFFLOAD_dev2host): Likewise.
11421 (GOMP_OFFLOAD_host2dev): Likewise.
11422 (GOMP_OFFLOAD_dev2dev): Likewise.
11424 * plugin/plugin-nvptx.c (CUDA_CALL_ERET): New convenience macro.
11425 (CUDA_CALL): Likewise.
11426 (CUDA_CALL_ASSERT): Likewise.
11427 (map_init): Change return type to bool, use CUDA_CALL* macros.
11428 (map_fini): Likewise.
11429 (init_streams_for_device): Change return type to bool, adjust
11431 (fini_streams_for_device): Change return type to bool, adjust
11433 (select_stream_for_async): Release stream_lock before calls to
11434 GOMP_PLUGIN_fatal, adjust call to map_init.
11435 (nvptx_init): Use CUDA_CALL* macros.
11436 (nvptx_attach_host_thread_to_device): Change return type to bool,
11437 use CUDA_CALL* macros.
11438 (nvptx_open_device): Use CUDA_CALL* macros.
11439 (nvptx_close_device): Change return type to bool, use CUDA_CALL*
11441 (nvptx_get_num_devices): Use CUDA_CALL* macros.
11442 (link_ptx): Change return type to bool, use CUDA_CALL* macros.
11443 (nvptx_exec): Use CUDA_CALL* macros.
11444 (nvptx_alloc): Use CUDA_CALL* macros.
11445 (nvptx_free): Change return type to bool, use CUDA_CALL* macros.
11446 (nvptx_host2dev): Likewise.
11447 (nvptx_dev2host): Likewise.
11448 (nvptx_wait): Use CUDA_CALL* macros.
11449 (nvptx_wait_async): Likewise.
11450 (nvptx_wait_all): Likewise.
11451 (nvptx_wait_all_async): Likewise.
11452 (nvptx_set_cuda_stream): Adjust order of stream_lock acquire,
11453 use CUDA_CALL* macros, adjust call to map_fini.
11454 (GOMP_OFFLOAD_init_device): Change return type to bool,
11455 adjust code accordingly.
11456 (GOMP_OFFLOAD_fini_device): Likewise.
11457 (GOMP_OFFLOAD_load_image): Adjust calls to
11458 nvptx_attach_host_thread_to_device/link_ptx to handle errors,
11459 use CUDA_CALL* macros.
11460 (GOMP_OFFLOAD_unload_image): Change return type to bool, adjust
11462 (GOMP_OFFLOAD_alloc): Adjust calls to code to handle error return.
11463 (GOMP_OFFLOAD_free): Change return type to bool, adjust calls to
11464 handle error return.
11465 (GOMP_OFFLOAD_dev2host): Likewise.
11466 (GOMP_OFFLOAD_host2dev): Likewise.
11467 (GOMP_OFFLOAD_openacc_register_async_cleanup): Use CUDA_CALL* macros.
11468 (GOMP_OFFLOAD_openacc_create_thread_data): Likewise.
11470 2016-05-24 Cesar Philippidis <cesar@codesourcery.com>
11472 * oacc-mem.c (acc_malloc): Update handling of shared-memory targets.
11473 (acc_free): Likewise.
11474 (acc_memcpy_to_device): Likewise.
11475 (acc_memcpy_from_device): Likewise.
11476 (acc_deviceptr): Likewise.
11477 (acc_hostptr): Likewise.
11478 (acc_is_present): Likewise.
11479 (acc_map_data): Likewise.
11480 (acc_unmap_data): Likewise.
11481 (present_create_copy): Likewise.
11482 (delete_copyout): Likewise.
11483 (update_dev_host): Likewise.
11484 * testsuite/libgomp.oacc-c-c++-common/asyncwait-1.c: Remove xfail.
11485 * testsuite/libgomp.oacc-c-c++-common/data-2-lib.c: New test.
11486 * testsuite/libgomp.oacc-c-c++-common/data-2.c: Adjust test.
11487 * testsuite/libgomp.oacc-c-c++-common/data-3.c: Likewise.
11488 * testsuite/libgomp.oacc-c-c++-common/enter_exit-lib.c: New test.
11489 * testsuite/libgomp.oacc-c-c++-common/lib-13.c: Adjust test so that
11490 it only runs on nvptx targets.
11491 * testsuite/libgomp.oacc-c-c++-common/lib-14.c: Likewise.
11492 * testsuite/libgomp.oacc-c-c++-common/lib-15.c: Likewise.
11493 * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
11494 * testsuite/libgomp.oacc-c-c++-common/lib-17.c: Likewise.
11495 * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
11496 * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
11497 * testsuite/libgomp.oacc-c-c++-common/lib-21.c: Likewise.
11498 * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Likewise.
11499 * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
11500 * testsuite/libgomp.oacc-c-c++-common/lib-24.c: Likewise.
11501 * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
11502 * testsuite/libgomp.oacc-c-c++-common/lib-28.c: Likewise.
11503 * testsuite/libgomp.oacc-c-c++-common/lib-29.c: Likewise.
11504 * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
11505 * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
11506 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
11507 * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Likewise.
11508 * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
11509 * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Likewise.
11510 * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
11511 * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Likewise.
11512 * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
11513 * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
11515 2016-05-23 Martin Jambor <mjambor@suse.cz>
11517 * testsuite/libgomp.hsa.c/switch-sbr-2.c: New test.
11519 2016-05-17 Chung-Lin Tang <cltang@codesourcery.com>
11521 * oacc-init.c (acc_init): Remove !cached_base_dev condition on call
11522 to gomp_init_targets_once.
11523 (acc_set_device_type): Remove !cached_base_dev condition on call to
11524 gomp_init_targets_once, move call to before acc_device_lock acquire,
11526 (acc_get_device_num): Remove !cached_base_dev condition on call to
11527 gomp_init_targets_once.
11528 (acc_set_device_num): Likewise.
11530 2016-05-16 Martin Jambor <mjambor@suse.cz>
11532 * testsuite/libgomp.hsa.c/complex-align-2.c: New test.
11534 2016-05-02 Nathan Sidwell <nathan@codesourcery.com>
11536 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Adjust
11537 expected partitioning.
11539 2016-04-29 Cesar Philippidis <cesar@codesourcery.com>
11541 PR middle-end/70626
11542 * testsuite/libgomp.oacc-c++/template-reduction.C: Adjust test.
11543 * testsuite/libgomp.oacc-c-c++-common/combined-reduction.c: New test.
11544 * testsuite/libgomp.oacc-fortran/combined-reduction.f90: New test.
11546 2016-04-21 Alexander Monakov <amonakov@ispras.ru>
11548 * plugin/plugin-nvptx.c (map_fini): Make cuMemFreeHost error
11551 2016-04-19 Jakub Jelinek <jakub@redhat.com>
11553 PR middle-end/70680
11554 * testsuite/libgomp.c/pr70680-1.c: New test.
11555 * testsuite/libgomp.c/pr70680-2.c: New test.
11557 2016-04-14 Cesar Philippidis <cesar@codesourcery.com>
11559 * testsuite/libgomp.oacc-fortran/non-scalar-data.f90: Don't
11560 pass parameter variables to subroutines.
11562 2016-04-14 Cesar Philippidis <cesar@codesourcery.com>
11564 PR middle-end/70643
11565 * testsuite/libgomp.oacc-fortran/pr70643.f90: New test.
11567 2016-04-13 Cesar Philippidis <cesar@codesourcery.com>
11570 * testsuite/libgomp.oacc-c-c++-common/reduction-1.c: Adjust test.
11571 * testsuite/libgomp.oacc-c-c++-common/reduction-2.c: Likewise.
11573 2016-04-12 Thomas Schwinge <thomas@codesourcery.com>
11575 * libgomp_g.h: Rename GOACC_parallel_keyd prototype to
11576 GOACC_parallel_keyed, restore GOACC_parallel prototype, new
11577 GOACC_declare prototype.
11579 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gang-np-1.c:
11580 Merge this file, and...
11581 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gv-np-1.c:
11582 ... this file, and...
11583 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gw-np-1.c:
11584 ... this file, and...
11585 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-1.c:
11586 ... this file, and...
11587 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-2.c:
11588 ... this file, and...
11589 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-3.c:
11590 ... this file, and...
11591 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-4.c:
11592 ... this file, and...
11593 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-vector-p-1.c:
11594 ... this file, and...
11595 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-vector-p-2.c:
11596 ... this file, and...
11597 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-worker-p-1.c:
11598 ... this file, and...
11599 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-1.c:
11600 ... this file, and...
11601 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-2.c:
11602 ... this file, and...
11603 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-3.c:
11604 ... this file into...
11605 * testsuite/libgomp.oacc-c-c++-common/reduction-7.c: ... this
11608 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-2.c:
11609 Make failure observable.
11611 2016-04-12 Jakub Jelinek <jakub@redhat.com>
11613 * libgomp.h (struct gomp_target_task): Remove firstprivate_copies
11615 * target.c (gomp_target_fallback_firstprivate,
11616 gomp_target_unshare_firstprivate): Removed.
11617 (GOMP_target_ext): Copy firstprivate vars into gomp_allocaed memory
11618 before waiting for dependencies.
11619 (gomp_target_task_fn): Don't copy firstprivate vars here.
11620 * task.c (GOMP_PLUGIN_target_task_completion): Don't free
11621 firstprivate_copies here.
11622 (gomp_create_target_task): Don't initialize firstprivate_copies field.
11623 * testsuite/libgomp.c/target-25.c (main): Use map (to:) instead of
11624 explicit/implicit firstprivate.
11626 2016-04-08 Cesar Philippidis <cesar@codesourcery.com>
11630 PR tree-optimization/70373
11631 PR middle-end/70533
11632 PR middle-end/70534
11633 PR middle-end/70535
11634 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gang-np-1.c: New
11636 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gw-np-1.c: New
11638 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-1.c: New
11640 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-2.c: New
11642 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-3.c: New
11644 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-4.c: New
11646 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-vector-p-1.c: New
11648 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-vector-p-2.c: New
11650 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-worker-p-1.c: New
11652 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-1.c: New test.
11653 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-2.c: New test.
11654 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-3.c: New test.
11655 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-1.c: New
11657 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-2.c: New
11659 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-3.c: New
11661 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-4.c: New
11663 * testsuite/libgomp.oacc-c-c++-common/par-reduction-1.c: Add test
11665 * testsuite/libgomp.oacc-c-c++-common/par-reduction-2.c: Likewise.
11666 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Likewise.
11667 * testsuite/libgomp.oacc-c-c++-common/parallel-reduction.c: New test.
11668 * testsuite/libgomp.oacc-c-c++-common/pr70289.c: New test.
11669 * testsuite/libgomp.oacc-c-c++-common/pr70373.c: New test.
11670 * testsuite/libgomp.oacc-c-c++-common/reduction-1.c: Add test
11672 * testsuite/libgomp.oacc-c-c++-common/reduction-2.c: Likewise.
11673 * testsuite/libgomp.oacc-c-c++-common/reduction-3.c: Likewise.
11674 * testsuite/libgomp.oacc-c-c++-common/reduction-4.c: Likewise.
11675 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Likewise.
11676 * testsuite/libgomp.oacc-c-c++-common/reduction-6.c: New test.
11677 * testsuite/libgomp.oacc-c-c++-common/reduction.h: New test.
11678 * testsuite/libgomp.oacc-fortran/parallel-reduction.f90: New test.
11679 * testsuite/libgomp.oacc-fortran/pr70289.f90: New test.
11680 * testsuite/libgomp.oacc-fortran/reduction-1.f90: Add test coverage.
11681 * testsuite/libgomp.oacc-fortran/reduction-2.f90: Likewise.
11682 * testsuite/libgomp.oacc-fortran/reduction-3.f90: Likewise.
11683 * testsuite/libgomp.oacc-fortran/reduction-4.f90: Likewise.
11684 * testsuite/libgomp.oacc-fortran/reduction-5.f90: Likewise.
11685 * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
11686 * testsuite/libgomp.oacc-fortran/reduction-7.f90: New test.
11688 2016-03-30 Thomas Schwinge <thomas@codesourcery.com>
11689 James Norris <jnorris@codesourcery.com>
11690 Nathan Sidwell <nathan@codesourcery.com>
11691 Julian Brown <julian@codesourcery.com>
11692 Cesar Philippidis <cesar@codesourcery.com>
11693 Chung-Lin Tang <cltang@codesourcery.com>
11694 Tom de Vries <tom@codesourcery.com>
11696 * testsuite/libgomp.oacc-c-c++-common/clauses-1.c: Update.
11697 * testsuite/libgomp.oacc-c-c++-common/deviceptr-1.c: Likewise.
11698 * testsuite/libgomp.oacc-c-c++-common/if-1.c: Likewise.
11699 * testsuite/libgomp.oacc-c-c++-common/vector-loop.c: Likewise.
11700 * testsuite/libgomp.oacc-fortran/asyncwait-1.f90: Likewise.
11701 * testsuite/libgomp.oacc-fortran/asyncwait-2.f90: Likewise.
11702 * testsuite/libgomp.oacc-fortran/asyncwait-3.f90: Likewise.
11703 * testsuite/libgomp.oacc-fortran/declare-1.f90: Likewise.
11704 * testsuite/libgomp.oacc-c-c++-common/asyncwait-1.c: Likewise.
11706 * testsuite/libgomp.oacc-c-c++-common/firstprivate-1.c: Update.
11708 * testsuite/libgomp.oacc-c-c++-common/firstprivate-2.c: ... this
11710 * testsuite/libgomp.oacc-c++/template-reduction.C: New file.
11711 * testsuite/libgomp.oacc-c-c++-common/gang-static-1.c: Likewise.
11712 * testsuite/libgomp.oacc-c-c++-common/gang-static-2.c: Likewise.
11713 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-clauses.c:
11715 * testsuite/libgomp.oacc-c-c++-common/private-variables.c:
11717 * testsuite/libgomp.oacc-c-c++-common/reduction-7.c: Likewise.
11718 * testsuite/libgomp.oacc-c-c++-common/routine-1.c: Likewise.
11719 * testsuite/libgomp.oacc-c-c++-common/routine-4.c: Likewise.
11720 * testsuite/libgomp.oacc-c-c++-common/routine-wv-2.c: Likewise.
11721 * testsuite/libgomp.oacc-fortran/clauses-1.f90: Likewise.
11722 * testsuite/libgomp.oacc-fortran/default-1.f90: Likewise.
11723 * testsuite/libgomp.oacc-fortran/firstprivate-1.f90: Likewise.
11724 * testsuite/libgomp.oacc-fortran/gang-static-1.f90: Likewise.
11725 * testsuite/libgomp.oacc-fortran/if-1.f90: Likewise.
11726 * testsuite/libgomp.oacc-fortran/implicit-firstprivate-ref.f90:
11728 * testsuite/libgomp.oacc-fortran/pr68813.f90: Likewise.
11729 * testsuite/libgomp.oacc-fortran/private-variables.f90: Likewise.
11730 * testsuite/libgomp.oacc-c-c++-common/kernels-1.c: Merge this
11732 * testsuite/libgomp.oacc-c-c++-common/parallel-1.c: ..., and this
11734 * testsuite/libgomp.oacc-c-c++-common/data-clauses.h: ... this new
11736 * testsuite/libgomp.oacc-c-c++-common/data-clauses-kernels.c: New
11738 * testsuite/libgomp.oacc-c-c++-common/data-clauses-parallel.c:
11740 * testsuite/libgomp.oacc-c-c++-common/kernels-2.c: Rename to...
11741 * testsuite/libgomp.oacc-c-c++-common/data-clauses-kernels-ipa-pta.c:
11742 ... this new file. Update.
11743 * testsuite/libgomp.oacc-c-c++-common/parallel-2.c: Rename to...
11744 * testsuite/libgomp.oacc-c-c++-common/data-clauses-parallel-ipa-pta.c:
11745 ... this new file. Update.
11746 * testsuite/libgomp.oacc-c-c++-common/mode-transitions.c: New
11747 file. Incorporate...
11748 * testsuite/libgomp.oacc-c-c++-common/worker-single-1a.c: ... this
11750 * testsuite/libgomp.oacc-c-c++-common/worker-single-4.c: ... this
11752 * testsuite/libgomp.oacc-c-c++-common/worker-single-6.c: ... this
11754 * testsuite/libgomp.oacc-c-c++-common/update-1-2.c: Remove file.
11756 2016-03-29 Thomas Schwinge <thomas@codesourcery.com>
11758 * testsuite/libgomp.oacc-c++/c++.exp [!lang_test_file_found]: Call
11759 set-torture-options.
11761 2016-03-24 Thomas Schwinge <thomas@codesourcery.com>
11763 * testsuite/libgomp.oacc-c++/c++.exp: Set up torture testing, use
11765 * testsuite/libgomp.oacc-c/c.exp: Likewise.
11766 * testsuite/libgomp.oacc-c-c++-common/acc-on-device-2.c: Specify
11767 -fno-builtin-acc_on_device instead of -O0.
11768 * testsuite/libgomp.oacc-c-c++-common/acc-on-device.c: Skip for
11770 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Likewise.
11771 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c:
11773 * testsuite/libgomp.oacc-c-c++-common/loop-g-1.c: Likewise.
11774 * testsuite/libgomp.oacc-c-c++-common/loop-g-2.c: Likewise.
11775 * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c: Likewise.
11776 * testsuite/libgomp.oacc-c-c++-common/loop-red-g-1.c: Likewise.
11777 * testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c: Likewise.
11778 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c: Likewise.
11779 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c: Likewise.
11780 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c: Likewise.
11781 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c: Likewise.
11782 * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c: Likewise.
11783 * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c: Likewise.
11784 * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c: Likewise.
11785 * testsuite/libgomp.oacc-c-c++-common/routine-g-1.c: Likewise.
11786 * testsuite/libgomp.oacc-c-c++-common/routine-gwv-1.c: Likewise.
11787 * testsuite/libgomp.oacc-c-c++-common/routine-v-1.c: Likewise.
11788 * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c: Likewise.
11789 * testsuite/libgomp.oacc-c-c++-common/routine-wv-1.c: Likewise.
11790 * testsuite/libgomp.oacc-c-c++-common/kernels-alias-ipa-pta-2.c:
11792 * testsuite/libgomp.oacc-c-c++-common/kernels-alias-ipa-pta-3.c:
11794 * testsuite/libgomp.oacc-c-c++-common/kernels-alias-ipa-pta.c:
11797 2016-03-24 Martin Liska <mliska@suse.cz>
11799 * plugin/plugin-hsa.c (packet_store_release): New function
11800 that is taken from the HSA runtime manual.
11801 (GOMP_OFFLOAD_run): Use the function.
11803 2016-03-23 Jakub Jelinek <jakub@redhat.com>
11806 * testsuite/libgomp.c++/pr70376.C: New test.
11808 2016-03-23 Tom de Vries <tom@codesourcery.com>
11810 * testsuite/libgomp.oacc-fortran/reduction-2.f90: Add missing
11811 initialization of lresult and lvresult.
11812 * testsuite/libgomp.oacc-fortran/reduction-3.f90: Same.
11814 2016-03-23 James Norris <jnorris@codesourcery.com>
11815 Daichi Fukuoka <dc-fukuoka@sgi.com>
11818 * oacc-mem.c (delete_copyout, update_dev_host): Fix device address.
11819 * testsuite/libgomp.oacc-c-c++-common/update-1.c: Additional tests.
11820 * testsuite/libgomp.oacc-c-c++-common/update-1-2.c: Likewise.
11821 * testsuite/libgomp.oacc-fortran/update-1.f90: New file.
11823 2016-03-23 Martin Liska <mliska@suse.cz>
11826 * plugin/plugin-hsa.c (GOMP_OFFLOAD_run): Copy shadow
11827 argument just in case a dispatched kernel uses that argument.
11829 2016-03-16 Thomas Schwinge <thomas@codesourcery.com>
11831 * testsuite/libgomp.oacc-fortran/kernels-loop-2.f95: Adjust to
11832 -ftree-parallelize-loops/-fopenacc changes.
11833 * testsuite/libgomp.oacc-fortran/kernels-loop-data-2.f95:
11835 * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit-2.f95:
11837 * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit.f95:
11839 * testsuite/libgomp.oacc-fortran/kernels-loop-data-update.f95:
11841 * testsuite/libgomp.oacc-fortran/kernels-loop-data.f95: Likewise.
11842 * testsuite/libgomp.oacc-fortran/kernels-loop.f95: Likewise.
11844 2016-03-13 Thomas Schwinge <thomas@codesourcery.com>
11846 * testsuite/lib/libgomp.exp (libgomp_init): Potentially append to
11847 always_ld_library_path the path to libgcc_s.
11849 2016-03-10 Cesar Philippidis <cesar@codesourcery.com>
11852 * testsuite/libgomp.oacc-c-c++-common/vprop.c: Make test data signed.
11854 2016-03-09 Tom de Vries <tom@codesourcery.com>
11856 * testsuite/libgomp.oacc-fortran/kernels-loop-2.f95: New test.
11857 * testsuite/libgomp.oacc-fortran/kernels-loop-data-2.f95: Same.
11858 * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit-2.f95:
11860 * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit.f95: Same.
11861 * testsuite/libgomp.oacc-fortran/kernels-loop-data-update.f95: Same.
11862 * testsuite/libgomp.oacc-fortran/kernels-loop-data.f95: Same.
11863 * testsuite/libgomp.oacc-fortran/kernels-loop.f95: Same.
11865 2016-03-07 Martin Jambor <mjambor@suse.cz>
11867 * testsuite/lib/libgomp.exp
11868 (check_effective_target_hsa_offloading_selected_nocache): New.
11869 (check_effective_target_hsa_offloading_selected): Likewise.
11870 * testsuite/libgomp.hsa.c/c.exp: Likewise.
11871 * testsuite/libgomp.hsa.c/alloca-1.c: Likewise.
11872 * testsuite/libgomp.hsa.c/bitfield-1.c: Likewise.
11873 * testsuite/libgomp.hsa.c/builtins-1.c: Likewise.
11874 * testsuite/libgomp.hsa.c/complex-1.c: Likewise.
11875 * testsuite/libgomp.hsa.c/formal-actual-args-1.c: Likewise.
11876 * testsuite/libgomp.hsa.c/function-call-1.c: Likewise.
11877 * testsuite/libgomp.hsa.c/get-level-1.c: Likewise.
11878 * testsuite/libgomp.hsa.c/gridify-1.c: Likewise.
11879 * testsuite/libgomp.hsa.c/gridify-2.c: Likewise.
11880 * testsuite/libgomp.hsa.c/gridify-3.c: Likewise.
11881 * testsuite/libgomp.hsa.c/gridify-4.c: Likewise.
11882 * testsuite/libgomp.hsa.c/memory-operations-1.c: Likewise.
11883 * testsuite/libgomp.hsa.c/pr69568.c: Likewise.
11884 * testsuite/libgomp.hsa.c/rotate-1.c: Likewise.
11885 * testsuite/libgomp.hsa.c/switch-1.c: Likewise.
11886 * testsuite/libgomp.hsa.c/switch-branch-1.c: Likewise.
11888 2016-03-07 Martin Jambor <mjambor@suse.cz>
11890 * testsuite/libgomp.c/examples-4/async_target-2.c: Only run on
11891 non-shared memory accelerators.
11892 * testsuite/libgomp.c/examples-4/device-1.c: Likewise.
11893 * testsuite/libgomp.c/examples-4/target-5.c: Likewise.
11894 * testsuite/libgomp.c/examples-4/target_data-6.c: Likewise.
11895 * testsuite/libgomp.c/examples-4/target_data-7.c: Likewise.
11896 * testsuite/libgomp.fortran/examples-4/async_target-2.f90: Likewise.
11897 * testsuite/libgomp.fortran/examples-4/device-1.f90: Likewise.
11898 * testsuite/libgomp.fortran/examples-4/target-5.f90: Likewise.
11899 * testsuite/libgomp.fortran/examples-4/target_data-6.f90: Likewise.
11900 * testsuite/libgomp.fortran/examples-4/target_data-7.f90: Likewise.
11902 2016-03-07 Martin Jambor <mjambor@suse.cz>
11904 * testsuite/lib/libgomp.exp (libgomp_init): Append -Wno-hsa to
11907 2016-03-02 Jakub Jelinek <jakub@redhat.com>
11910 * testsuite/libgomp.c++/pr69555-1.C: New test.
11911 * testsuite/libgomp.c++/pr69555-2.C: New test.
11913 2016-02-26 Keith McDaniel <k.allen.mcdaniel@gmail.com>
11914 Martin Jambor <mjambor@suse.cz>
11916 * testsuite/lib/libgomp.exp
11917 (check_effective_target_offload_device_shared_as): New proc.
11918 * testsuite/libgomp.c++/declare_target-1.C: New test.
11920 2016-02-25 Ilya Verbin <ilya.verbin@intel.com>
11923 * testsuite/libgomp.oacc-c-c++-common/parallel-dims-2.c: Remove.
11925 2016-02-23 Thomas Schwinge <thomas@codesourcery.com>
11927 * oacc-parallel.c (GOACC_parallel_keyed): Initialize dims.
11928 * plugin/plugin-nvptx.c (nvptx_exec): Provide default values for
11930 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-2.c: Adjust to
11931 -ftree-parallelize-loops/-fopenacc changes.
11932 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-3.c: Likewise.
11933 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-2.c:
11935 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-3.c:
11937 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-4.c:
11939 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-5.c:
11941 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-6.c:
11943 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq.c:
11945 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-collapse.c:
11947 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-g.c: Likewise.
11948 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-mod-not-zero.c:
11950 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-n.c: Likewise.
11951 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-nest.c:
11953 * testsuite/libgomp.oacc-c-c++-common/kernels-loop.c: Likewise.
11954 * testsuite/libgomp.oacc-c-c++-common/kernels-reduction.c:
11957 2016-02-22 Cesar Philippidis <cesar@codesourcery.com>
11959 * testsuite/libgomp.oacc-c-c++-common/vprop.c: New test.
11961 2016-02-19 Jakub Jelinek <jakub@redhat.com>
11964 * testsuite/libgomp.c/pr69805.c: New test.
11966 2016-02-16 Tom de Vries <tom@codesourcery.com>
11969 * testsuite/libgomp.fortran/declare-simd-4.f90: New test.
11971 2016-02-09 Tom de Vries <tom@codesourcery.com>
11973 PR tree-optimization/69599
11974 * testsuite/libgomp.c/omp-nested-3.c: New test.
11975 * testsuite/libgomp.c/pr46032-2.c: New test.
11976 * testsuite/libgomp.oacc-c-c++-common/kernels-2.c: New test.
11977 * testsuite/libgomp.oacc-c-c++-common/parallel-2.c: New test.
11979 2016-02-09 Tom de Vries <tom@codesourcery.com>
11982 * testsuite/libgomp.oacc-c-c++-common/parallel-dims-2.c: New test.
11984 2016-02-02 Alexander Monakov <amonakov@ispras.ru>
11986 * testsuite/libgomp.c/target-31.c: Fix testcase.
11988 2016-02-02 Alexander Monakov <amonakov@ispras.ru>
11990 * testsuite/libgomp.c/examples-4/teams-3.c: Add missing reduction
11992 * testsuite/libgomp.c/examples-4/teams-4.c: Likewise.
11993 * testsuite/libgomp.fortran/examples-4/teams-3.f90: Add missing
11994 reduction and map clauses.
11995 * testsuite/libgomp.fortran/examples-4/teams-4.f90: Likewise.
11997 2016-02-02 James Norris <jnorris@codesourcery.com>
11999 * testsuite/libgomp.oacc-c-c++-common/declare-4.c: Fix clause.
12001 2016-02-02 Thomas Schwinge <thomas@codesourcery.com>
12003 * libgomp.map (GOACC_2.0): Remove GOACC_host_data.
12004 * oacc-parallel.c (GOACC_host_data): Remove function definition.
12006 * testsuite/lib/libgomp.exp: Skip hsa offloading for OpenACC test
12009 * plugin/configfrag.ac (HSA_KMT_LIB, HSA_KMT_LDFLAGS): New
12011 * testsuite/libgomp-test-support.exp.in (hsa_runtime_lib)
12012 (hsa_kmt_lib): Set variables.
12013 * testsuite/lib/libgomp.exp (libgomp_init): Use them to amend
12014 always_ld_library_path.
12015 * Makefile.in: Regenerate.
12016 * configure: Likewise.
12017 * testsuite/Makefile.in: Likewise.
12019 * plugin/configfrag.ac (offload_additional_options)
12020 (offload_additional_lib_paths): Don't amend for hsa offloading.
12021 * configure: Regenerate.
12023 * plugin/configfrag.ac: Don't configure for offloading target if
12024 we don't build the corresponding plugin.
12025 * configure: Regenerate.
12027 2016-02-01 Nathan Sidwell <nathan@codesourcery.com>
12029 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: New.
12030 * testsuite/libgomp.oacc-fortran/routine-7.f90: Serialize loop.
12032 2016-01-26 Tom de Vries <tom@codesourcery.com>
12034 PR tree-optimization/69110
12035 * testsuite/libgomp.c/pr69110.c: New test.
12037 2016-01-25 Richard Biener <rguenther@suse.de>
12040 * testsuite/libgomp.c++/pr69393.C: New testcase.
12042 2016-01-22 Ilya Verbin <ilya.verbin@intel.com>
12044 * target.c (gomp_get_target_fn_addr): Allow host fallback if target
12045 function wasn't mapped to the device with non-shared memory.
12047 2016-01-20 Ilya Verbin <ilya.verbin@intel.com>
12049 * task.c (gomp_create_target_task): Set firstprivate_copies to NULL.
12051 2016-01-19 Martin Jambor <mjambor@suse.cz>
12052 Martin Liska <mliska@suse.cz>
12054 * plugin/Makefrag.am: Add HSA plugin requirements.
12055 * plugin/configfrag.ac (HSA_RUNTIME_INCLUDE): New variable.
12056 (HSA_RUNTIME_LIB): Likewise.
12057 (HSA_RUNTIME_CPPFLAGS): Likewise.
12058 (HSA_RUNTIME_INCLUDE): New substitution.
12059 (HSA_RUNTIME_LIB): Likewise.
12060 (HSA_RUNTIME_LDFLAGS): Likewise.
12061 (hsa-runtime): New configure option.
12062 (hsa-runtime-include): Likewise.
12063 (hsa-runtime-lib): Likewise.
12064 (PLUGIN_HSA): New substitution variable.
12065 Fill HSA_RUNTIME_INCLUDE and HSA_RUNTIME_LIB according to the new
12067 (PLUGIN_HSA_CPPFLAGS): Likewise.
12068 (PLUGIN_HSA_LDFLAGS): Likewise.
12069 (PLUGIN_HSA_LIBS): Likewise.
12070 Check that we have access to HSA run-time.
12071 * libgomp-plugin.h (offload_target_type): New element
12072 OFFLOAD_TARGET_TYPE_HSA.
12073 * libgomp.h (gomp_target_task): New fields firstprivate_copies and
12075 (bool gomp_create_target_task): Updated.
12076 (gomp_device_descr): Extra parameter of run_func and async_run_func,
12077 new field can_run_func.
12078 * libgomp_g.h (GOMP_target_ext): Update prototype.
12079 * oacc-host.c (host_run): Added a new parameter args.
12080 * target.c (calculate_firstprivate_requirements): New function.
12081 (copy_firstprivate_data): Likewise.
12082 (gomp_target_fallback_firstprivate): Use them.
12083 (gomp_target_unshare_firstprivate): New function.
12084 (gomp_get_target_fn_addr): Allow returning NULL for shared memory
12086 (GOMP_target): Do host fallback for all shared memory devices. Do not
12087 pass any args to plugins.
12088 (GOMP_target_ext): Introduce device-specific argument parameter args.
12089 Allow host fallback if device shares memory. Do not remap data if
12090 device has shared memory.
12091 (gomp_target_task_fn): Likewise. Also treat shared memory devices
12092 like host fallback for mappings.
12093 (GOMP_target_data): Treat shared memory devices like host fallback.
12094 (GOMP_target_data_ext): Likewise.
12095 (GOMP_target_update): Likewise.
12096 (GOMP_target_update_ext): Likewise. Also pass NULL as args to
12097 gomp_create_target_task.
12098 (GOMP_target_enter_exit_data): Likewise.
12099 (omp_target_alloc): Treat shared memory devices like host fallback.
12100 (omp_target_free): Likewise.
12101 (omp_target_is_present): Likewise.
12102 (omp_target_memcpy): Likewise.
12103 (omp_target_memcpy_rect): Likewise.
12104 (omp_target_associate_ptr): Likewise.
12105 (gomp_load_plugin_for_device): Also load can_run.
12106 * task.c (GOMP_PLUGIN_target_task_completion): Free
12107 firstprivate_copies.
12108 (gomp_create_target_task): Accept new argument args and store it to
12110 * plugin/plugin-hsa.c: New file.
12112 2016-01-18 Tom de Vries <tom@codesourcery.com>
12114 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-2.c: New test.
12115 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-3.c: Same.
12116 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-2.c: Same.
12117 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-3.c: Same.
12118 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-4.c: Same.
12119 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-5.c: Same.
12120 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-6.c: Same.
12121 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq.c: Same.
12122 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-collapse.c: Same.
12123 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-2.c: Same.
12124 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-enter-exit-2.c:
12126 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-enter-exit.c:
12128 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-update.c: Same.
12129 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data.c: Same.
12130 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-g.c: Same.
12131 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-mod-not-zero.c: Same.
12132 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-n.c: Same.
12133 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-nest.c: Same.
12134 * testsuite/libgomp.oacc-c-c++-common/kernels-loop.c: Same.
12135 * testsuite/libgomp.oacc-c-c++-common/kernels-parallel-loop-data-enter-exit.c:
12137 * testsuite/libgomp.oacc-c-c++-common/kernels-reduction.c: Same.
12139 2016-01-15 Jakub Jelinek <jakub@redhat.com>
12141 * task.c (GOMP_PLUGIN_target_task_completion): Add missing return.
12143 2016-01-15 Cesar Philippidis <cesar@codesourcery.com>
12145 * testsuite/libgomp.oacc-fortran/kernels-data.f90: New test.
12147 2016-01-12 James Norris <jnorris@codesourcery.com>
12149 * libgomp.texi: Updates for OpenACC.
12151 2016-01-11 Alexander Monakov <amonakov@ispras.ru>
12153 * plugin/plugin-nvptx.c (link_ptx): Do not set CU_JIT_TARGET.
12155 2016-01-07 H.J. Lu <hongjiu.lu@intel.com>
12158 * testsuite/libgomp.fortran/pr66680.f90: New test.
12160 2016-01-07 Jakub Jelinek <jakub@redhat.com>
12162 PR middle-end/68960
12163 * testsuite/libgomp.c/pr68960.c: New test.
12165 2016-01-06 Nathan Sidwell <nathan@acm.org>
12167 * openacc.h (acc_on_device): Add routine pragma for C++ wrapper.
12168 * testsuite/libgomp.oacc-c-c++-common/acc-on-device-2.c: New.
12170 2016-01-04 Jakub Jelinek <jakub@redhat.com>
12172 Update copyright years.
12174 * libgomp.texi: Bump @copying's copyright year.
12176 2015-12-31 Nathan Sidwell <nathan@acm.org>
12178 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c: Correct
12179 dg-additional-options syntax.
12180 * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c: Likewise.
12181 * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c: Likewise.
12182 * testsuite/libgomp.oacc-c-c++-common/routine-v-1.c: Likewise.
12183 * testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c: Likewise.
12184 * testsuite/libgomp.oacc-c-c++-common/routine-gwv-1.c: Likewise.
12185 * testsuite/libgomp.oacc-c-c++-common/routine-g-1.c: Likewise.
12186 * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c: Likewise.
12187 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Likewise.
12188 * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c: Likewise.
12189 * testsuite/libgomp.oacc-c-c++-common/routine-wv-1.c: Likewise.
12190 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c: Likewise.
12191 * testsuite/libgomp.oacc-c-c++-common/loop-g-1.c: Likewise.
12192 * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c: Likewise.
12193 * testsuite/libgomp.oacc-c-c++-common/loop-red-wv-1.c: Likewise.
12194 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c: Likewise.
12195 * testsuite/libgomp.oacc-c-c++-common/loop-g-2.c: Likewise.
12196 * testsuite/libgomp.oacc-c-c++-common/loop-red-g-1.c: Likewise.
12197 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c: Likewise.
12199 2015-12-15 Ilya Verbin <ilya.verbin@intel.com>
12201 * libgomp.h (REFCOUNT_LINK): Define.
12202 (struct splay_tree_key_s): Add link_key.
12203 * target.c (gomp_map_vars): Treat REFCOUNT_LINK objects as not mapped.
12204 Replace target address of the pointer with target address of newly
12205 mapped object in the splay tree. Set link pointer on target to the
12206 device address of the mapped object.
12207 (gomp_unmap_vars): Restore target address of the pointer in the splay
12208 tree for REFCOUNT_LINK objects after unmapping.
12209 (gomp_load_image_to_device): Set refcount to REFCOUNT_LINK for "omp
12210 declare target link" objects.
12211 (gomp_unload_image_from_device): Replace j with i. Force unmap of all
12212 "omp declare target link" objects, which were mapped for the image.
12213 (gomp_exit_data): Restore target address of the pointer in the splay
12214 tree for REFCOUNT_LINK objects after unmapping.
12215 * testsuite/libgomp.c/target-link-1.c: New file.
12217 2015-12-14 Ilya Verbin <ilya.verbin@intel.com>
12219 * libgomp.h (gomp_device_state): New enum.
12220 (struct gomp_device_descr): Replace is_initialized with state.
12221 (gomp_fini_device): Remove declaration.
12222 * oacc-host.c (host_dispatch): Use state instead of is_initialized.
12223 * oacc-init.c (acc_init_1): Use state instead of is_initialized.
12224 (acc_shutdown_1): Likewise. Inline gomp_fini_device.
12225 (acc_set_device_type): Use state instead of is_initialized.
12226 (acc_set_device_num): Likewise.
12227 * target.c (resolve_device): Use state instead of is_initialized.
12228 Do not initialize finalized device.
12229 (gomp_map_vars): Do nothing if device is finalized.
12230 (gomp_unmap_vars): Likewise.
12231 (gomp_update): Likewise.
12232 (GOMP_offload_register_ver): Use state instead of is_initialized.
12233 (GOMP_offload_unregister_ver): Likewise.
12234 (gomp_init_device): Likewise.
12235 (gomp_unload_device): Likewise.
12236 (gomp_fini_device): Remove.
12237 (gomp_get_target_fn_addr): Do nothing if device is finalized.
12238 (GOMP_target): Go to host fallback if device is finalized.
12239 (GOMP_target_ext): Likewise.
12240 (gomp_exit_data): Do nothing if device is finalized.
12241 (gomp_target_task_fn): Go to host fallback if device is finalized.
12242 (gomp_target_fini): New static function.
12243 (gomp_target_init): Use state instead of is_initialized.
12244 Call gomp_target_fini at exit.
12246 2015-12-09 Tom de Vries <tom@codesourcery.com>
12248 PR tree-optimization/68716
12249 * testsuite/libgomp.c/omp-nested-2.c: New test.
12251 2015-12-02 Thomas Schwinge <thomas@codesourcery.com>
12253 * testsuite/libgomp.oacc-c-c++-common/host_data-2.c: Restrict to
12254 target openacc_nvidia_accel_selected.
12255 * testsuite/libgomp.oacc-c-c++-common/host_data-4.c: Likewise.
12256 * testsuite/libgomp.oacc-c-c++-common/host_data-5.c: Likewise.
12257 * testsuite/libgomp.oacc-c-c++-common/host_data-3.c: Remove file.
12258 * testsuite/libgomp.oacc-c-c++-common/host_data-6.c: Remove file.
12260 2015-12-01 Julian Brown <julian@codesourcery.com>
12261 James Norris <James_Norris@mentor.com>
12263 * oacc-parallel.c (GOACC_host_data): New function.
12264 * libgomp.map (GOACC_host_data): Add to GOACC_2.0.1.
12265 * testsuite/libgomp.oacc-c-c++-common/host_data-1.c: New test.
12266 * testsuite/libgomp.oacc-c-c++-common/host_data-2.c: New test.
12267 * testsuite/libgomp.oacc-c-c++-common/host_data-3.c: New test.
12268 * testsuite/libgomp.oacc-c-c++-common/host_data-4.c: New test.
12269 * testsuite/libgomp.oacc-c-c++-common/host_data-5.c: New test.
12270 * testsuite/libgomp.oacc-c-c++-common/host_data-6.c: New test.
12272 2015-11-30 James Norris <jnorris@codesourcery.com>
12273 Cesar Philippidis <cesar@codesourcery.com>
12276 * libgomp.oacc-fortran/routine-5.f90: New test.
12277 * libgomp.oacc-fortran/routine-7.f90: New test.
12278 * libgomp.oacc-fortran/routine-9.f90: New test.
12280 2015-11-30 Tom de Vries <tom@codesourcery.com>
12282 PR tree-optimization/46032
12283 * testsuite/libgomp.c/pr46032.c: New test.
12285 2015-11-27 Jakub Jelinek <jakub@redhat.com>
12288 * task.c (gomp_task_run_post_handle_depend_hash): New forward decl.
12289 (gomp_create_target_task): Call it before freeing
12290 GOMP_TARGET_TASK_DATA tasks.
12293 * testsuite/libgomp.c/cancel-parallel-2.c (foo): Add semicolon
12294 in between case label and OpenMP standalone directives.
12295 * testsuite/libgomp.c++/cancel-parallel-2.C (foo): Likewise.
12297 2015-11-26 David Edelsohn <dje.gcc@gmail.com>
12299 * configure: Regenerate.
12301 2015-11-26 Jakub Jelinek <jakub@redhat.com>
12303 * testsuite/libgomp.c/target-35.c: New test.
12305 2015-11-22 James Norris <jnorris@codesourcery.com>
12306 Cesar Philippidis <cesar@codesourcery.com>
12308 * testsuite/libgomp.oacc-fortran/declare-1.f90: New test.
12309 * testsuite/libgomp.oacc-fortran/declare-2.f90: Likewise.
12310 * testsuite/libgomp.oacc-fortran/declare-3.f90: Likewise.
12311 * testsuite/libgomp.oacc-fortran/declare-4.f90: Likewise.
12312 * testsuite/libgomp.oacc-fortran/declare-5.f90: Likewise.
12314 2015-11-20 Jakub Jelinek <jakub@redhat.com>
12316 PR middle-end/68221
12317 * testsuite/libgomp.c/reduction-11.c: Remove xfail.
12318 * testsuite/libgomp.c/reduction-12.c: Likewise.
12319 * testsuite/libgomp.c++/reduction-11.C: Likewise.
12320 * testsuite/libgomp.c++/reduction-12.C: Likewise.
12322 2015-11-19 Nathan Sidwell <nathan@codesourcery.com>
12324 * libgomp.oacc-c-c++-common/reduction-dbl.c: New.
12325 * libgomp.oacc-c-c++-common/reduction-flt.c: New.
12326 * libgomp.oacc-c-c++-common/reduction-cplx-dbl.c: Use typedef.
12327 * libgomp.oacc-c-c++-common/reduction-cplx-flt.c: Use typedef.
12328 * libgomp.oacc-c-c++-common/reduction-2.c: Uncomment broken tests
12330 * libgomp.oacc-c-c++-common/reduction-3.c: Likewise.
12331 * libgomp.oacc-c-c++-common/reduction-4.c: Likewise.
12333 2015-11-18 Nathan Sidwell <nathan@codesourcery.com>
12335 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-flt.c: Add
12336 worker & gang cases.
12337 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-dbl.c: Likewise.
12339 2015-11-17 Cesar Philippidis <cesar@codesourcery.com>
12341 * config/nvptx/priority_queue.c: New file.
12343 2015-11-14 Jakub Jelinek <jakub@redhat.com>
12345 * libgomp.texi: Update references from OpenMP 4.0 to OpenMP 4.5
12348 2015-11-14 Jakub Jelinek <jakub@redhat.com>
12349 Aldy Hernandez <aldyh@redhat.com>
12350 Ilya Verbin <ilya.verbin@intel.com>
12352 * ordered.c (gomp_doacross_init, GOMP_doacross_post,
12353 GOMP_doacross_wait, gomp_doacross_ull_init, GOMP_doacross_ull_post,
12354 GOMP_doacross_ull_wait): For GFS_GUIDED don't divide number of
12355 iterators or IV by chunk size.
12356 * parallel.c (gomp_resolve_num_threads): Don't assume that
12357 if thr->ts.team is non-NULL, then pool must be non-NULL.
12358 * libgomp-plugin.h (GOMP_PLUGIN_target_task_completion): Declare.
12359 * libgomp.map (GOMP_PLUGIN_1.1): New symbol version, export
12360 GOMP_PLUGIN_target_task_completion.
12361 * Makefile.am (libgomp_la_SOURCES): Add priority_queue.c.
12362 * Makefile.in: Regenerate.
12363 * libgomp.h: Shuffle prototypes and forward definitions around so
12364 priority queues can be defined.
12365 (enum gomp_task_kind): Add GOMP_TASK_ASYNC_RUNNING.
12366 (enum gomp_target_task_state): New enum.
12367 (struct gomp_target_task): Add state, tgt, task and team fields.
12368 (gomp_create_target_task): Change return type to bool, add
12370 (gomp_target_task_fn): Change return type to bool.
12371 (struct gomp_device_descr): Add async_run_func.
12372 (struct gomp_task): Remove children, next_child, prev_child,
12373 next_queue, prev_queue, next_taskgroup, prev_taskgroup.
12375 (struct gomp_taskgroup): Remove children.
12376 Add taskgroup_queue.
12377 (struct gomp_team): Change task_queue type to a priority queue.
12378 (splay_compare): Define inline.
12379 (priority_queue_offset): New.
12380 (priority_node_to_task): New.
12381 (task_to_priority_node): New.
12382 * oacc-mem.c: Do not include splay-tree.h.
12383 * priority_queue.c: New file.
12384 * priority_queue.h: New file.
12385 * splay-tree.c: Do not include splay-tree.h.
12386 (splay_tree_foreach_internal): New.
12387 (splay_tree_foreach): New.
12388 * splay-tree.h: Become re-entrant if splay_tree_prefix is defined.
12389 (splay_tree_callback): Define typedef.
12390 * target.c (splay_compare): Move to libgomp.h.
12391 (GOMP_target): Don't adjust *thr in any way around running offloaded
12393 (GOMP_target_ext): Likewise. Handle target nowait.
12394 (GOMP_target_update_ext, GOMP_target_enter_exit_data): Check
12395 return value from gomp_create_target_task, if false, fallthrough
12396 as if no dependencies exist.
12397 (gomp_target_task_fn): Change return type to bool, return true
12398 if the task should have another part scheduled later. Handle
12400 (gomp_load_plugin_for_device): Initialize async_run.
12401 * task.c (gomp_init_task): Initialize children_queue.
12402 (gomp_clear_parent_in_list): New.
12403 (gomp_clear_parent_in_tree): New.
12404 (gomp_clear_parent): Handle priorities.
12405 (GOMP_task): Likewise.
12406 (priority_queue_move_task_first,
12407 gomp_target_task_completion, GOMP_PLUGIN_target_task_completion):
12409 (gomp_create_target_task): Use priority queues. Change return type
12410 to bool, add state argument, return false if for async
12411 {{enter,exit} data,update} constructs no dependencies need to be
12412 waited for, handle target nowait. Set task->fn to NULL instead of
12413 gomp_target_task_fn.
12414 (verify_children_queue): Remove.
12415 (priority_list_upgrade_task): New.
12416 (priority_queue_upgrade_task): New.
12417 (verify_task_queue): Remove.
12418 (priority_list_downgrade_task): New.
12419 (priority_queue_downgrade_task): New.
12420 (gomp_task_run_pre): Use priority queues.
12421 Abstract code out to priority_queue_downgrade_task.
12422 (gomp_task_run_post_handle_dependers): Use priority queues.
12423 (gomp_task_run_post_remove_parent): Likewise.
12424 (gomp_task_run_post_remove_taskgroup): Likewise.
12425 (gomp_barrier_handle_tasks): Likewise. Handle target nowait target
12427 (GOMP_taskwait): Likewise.
12428 (gomp_task_maybe_wait_for_dependencies): Likewise. Abstract code to
12429 priority-queue_upgrade_task.
12430 (GOMP_taskgroup_start): Use priority queues.
12431 (GOMP_taskgroup_end): Likewise. Handle target nowait target tasks
12432 specially. If taskgroup is NULL, and thr->ts.level is 0, act as a
12434 * taskloop.c (GOMP_taskloop): Handle priorities.
12435 * team.c (gomp_new_team): Call priority_queue_init.
12436 (free_team): Call priority_queue_free.
12437 (gomp_free_thread): Call gomp_team_end if thr->ts.team is artificial
12438 team created for target nowait in implicit parallel region.
12439 (gomp_team_start): For nested check, test thr->ts.level instead of
12440 thr->ts.team != NULL.
12441 * testsuite/libgomp.c/doacross-3.c: New test.
12442 * testsuite/libgomp.c/ordered-5.c: New test.
12443 * testsuite/libgomp.c/priority.c: New test.
12444 * testsuite/libgomp.c/target-31.c: New test.
12445 * testsuite/libgomp.c/target-32.c: New test.
12446 * testsuite/libgomp.c/target-33.c: New test.
12447 * testsuite/libgomp.c/target-34.c: New test.
12449 2015-11-13 Nathan Sidwell <nathan@codesourcery.com>
12451 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: New.
12453 * testsuite/libgomp.oacc-c-c++-common/collapse-2.c: Sequential
12454 loop is sequential.
12456 2015-11-13 Nathan Sidwell <nathan@codesourcery.com>
12458 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-dbl.c: New.
12459 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-flt.c: New.
12461 2015-11-12 James Norris <jnorris@codesourcery.com>
12462 Joseph Myers <joseph@codesourcery.com>
12464 * libgomp.map (GOACC_2.0.1): Export GOACC_declare.
12465 * oacc-parallel.c (GOACC_declare): New function.
12466 * testsuite/libgomp.oacc-c-c++-common/declare-1.c: New test.
12467 * testsuite/libgomp.oacc-c-c++-common/declare-2.c: Likewise.
12468 * testsuite/libgomp.oacc-c-c++-common/declare-4.c: Likewise.
12469 * testsuite/libgomp.oacc-c-c++-common/declare-5.c: Likewise.
12470 * testsuite/libgomp.oacc-c++/declare-1.C: Likewise.
12472 2015-11-12 Nathan Sidwell <nathan@codesourcery.com>
12474 * testsuite/libgomp.oacc-c-c++-common/default-1.c: New.
12476 2015-11-1 Nathan Sidwell <nathan@codesourcery.com>
12478 * testsuite/libgomp.oacc-c-c++-common/firstprivate-1.c: New.
12479 * testsuite/libgomp.oacc-c-c++-common/firstprivate-2.c: New.
12481 2015-11-09 Nathan Sidwell <nathan@codesourcery.com>
12483 * testsuite/libgomp.oacc-c-c++-common/firstprivate-1.c: Remove
12484 inadvertent commit.
12486 2015-11-09 Nathan Sidwell <nathan@codesourcery.com>
12488 * testsuite/libgomp.oacc-c-c++-common/routine-g-1.c: New.
12489 * testsuite/libgomp.oacc-c-c++-common/routine-gwv-1.c: New.
12490 * testsuite/libgomp.oacc-c-c++-common/routine-v-1.c: New.
12491 * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c: New.
12492 * testsuite/libgomp.oacc-c-c++-common/routine-wv-1.c: New.
12494 2015-11-06 Thomas Schwinge <thomas@codesourcery.com>
12496 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c: XFAIL.
12497 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c: Likewise.
12499 2015-11-05 Jakub Jelinek <jakub@redhat.com>
12500 Ilya Verbin <ilya.verbin@intel.com>
12502 * libgomp_g.h (GOMP_loop_nonmonotonic_dynamic_next,
12503 GOMP_loop_nonmonotonic_dynamic_start,
12504 GOMP_loop_nonmonotonic_guided_next,
12505 GOMP_loop_nonmonotonic_guided_start,
12506 GOMP_loop_ull_nonmonotonic_dynamic_next,
12507 GOMP_loop_ull_nonmonotonic_dynamic_start,
12508 GOMP_loop_ull_nonmonotonic_guided_next,
12509 GOMP_loop_ull_nonmonotonic_guided_start,
12510 GOMP_parallel_loop_nonmonotonic_dynamic,
12511 GOMP_parallel_loop_nonmonotonic_guided): New prototypes.
12512 (GOMP_target_41): Renamed to ...
12513 (GOMP_target_ext): ... this. Add num_teams and thread_limit
12515 (GOMP_target_data_41): Renamed to ...
12516 (GOMP_target_data_ext): ... this.
12517 (GOMP_target_update_41): Renamed to ...
12518 (GOMP_target_update_ext): ... this.
12519 * libgomp.map (GOMP_4.5): Export GOMP_target_ext,
12520 GOMP_target_data_ext and GOMP_target_update_ext instead of
12521 GOMP_target_41, GOMP_target_data_41 and GOMP_target_update_41.
12522 Export GOMP_loop_nonmonotonic_dynamic_next,
12523 GOMP_loop_nonmonotonic_dynamic_start,
12524 GOMP_loop_nonmonotonic_guided_next,
12525 GOMP_loop_nonmonotonic_guided_start,
12526 GOMP_loop_ull_nonmonotonic_dynamic_next,
12527 GOMP_loop_ull_nonmonotonic_dynamic_start,
12528 GOMP_loop_ull_nonmonotonic_guided_next,
12529 GOMP_loop_ull_nonmonotonic_guided_start,
12530 GOMP_parallel_loop_nonmonotonic_dynamic and
12531 GOMP_parallel_loop_nonmonotonic_guided.
12532 * loop.c (GOMP_parallel_loop_nonmonotonic_dynamic,
12533 GOMP_parallel_loop_nonmonotonic_guided,
12534 GOMP_loop_nonmonotonic_dynamic_start,
12535 GOMP_loop_nonmonotonic_guided_start,
12536 GOMP_loop_nonmonotonic_dynamic_next,
12537 GOMP_loop_nonmonotonic_guided_next): New aliases or functions.
12538 * loop_ull.c (GOMP_loop_ull_nonmonotonic_dynamic_start,
12539 GOMP_loop_ull_nonmonotonic_guided_start,
12540 GOMP_loop_ull_nonmonotonic_dynamic_next,
12541 GOMP_loop_ull_nonmonotonic_guided_next): Likewise.
12542 * target.c (gomp_map_0len_lookup, gomp_map_val): New inline
12544 (gomp_map_vars): Handle GOMP_MAP_ALWAYS_POINTER. For
12545 GOMP_MAP_ZERO_LEN_ARRAY_SECTION use gomp_map_0len_lookup.
12546 Use gomp_map_val function.
12547 (gomp_target_fallback_firstprivate): New static function.
12548 (GOMP_target_41): Renamed to ...
12549 (GOMP_target_ext): ... this. Add num_teams and thread_limit
12550 arguments. Move firstprivate fallback handling into a new
12552 (GOMP_target_data_41): Renamed to ...
12553 (GOMP_target_data_ext): ... this.
12554 (GOMP_target_update_41): Renamed to ...
12555 (GOMP_target_update_ext): ... this.
12556 (gomp_exit_data): For GOMP_MAP_*ZERO_LEN* use
12557 gomp_map_0len_lookup instead of gomp_map_lookup.
12558 (omp_target_is_present): Use gomp_map_0len_lookup instead of
12560 * testsuite/libgomp.c/target-28.c: Likewise.
12561 * testsuite/libgomp.c/monotonic-1.c: New test.
12562 * testsuite/libgomp.c/monotonic-2.c: New test.
12563 * testsuite/libgomp.c/nonmonotonic-1.c: New test.
12564 * testsuite/libgomp.c/nonmonotonic-2.c: New test.
12565 * testsuite/libgomp.c/pr66199-5.c: New test.
12566 * testsuite/libgomp.c/pr66199-6.c: New test.
12567 * testsuite/libgomp.c/pr66199-7.c: New test.
12568 * testsuite/libgomp.c/pr66199-8.c: New test.
12569 * testsuite/libgomp.c/pr66199-9.c: New test.
12570 * testsuite/libgomp.c/reduction-11.c: New test.
12571 * testsuite/libgomp.c/reduction-12.c: New test.
12572 * testsuite/libgomp.c/reduction-13.c: New test.
12573 * testsuite/libgomp.c/reduction-14.c: New test.
12574 * testsuite/libgomp.c/reduction-15.c: New test.
12575 * testsuite/libgomp.c/target-12.c (main): Adjust for
12576 omp_target_is_present change for one-past-last element.
12577 * testsuite/libgomp.c/target-17.c (foo): Drop tests where
12578 the same var is both mapped and privatized.
12579 * testsuite/libgomp.c/target-19.c (foo): Adjust for different
12580 handling of zero-length array sections.
12581 * testsuite/libgomp.c/target-28.c: New test.
12582 * testsuite/libgomp.c/target-29.c: New test.
12583 * testsuite/libgomp.c/target-30.c: New test.
12584 * testsuite/libgomp.c/target-teams-1.c: New test.
12585 * testsuite/libgomp.c++/member-6.C: New test.
12586 * testsuite/libgomp.c++/member-7.C: New test.
12587 * testsuite/libgomp.c++/monotonic-1.C: New test.
12588 * testsuite/libgomp.c++/monotonic-2.C: New test.
12589 * testsuite/libgomp.c++/nonmonotonic-1.C: New test.
12590 * testsuite/libgomp.c++/nonmonotonic-2.C: New test.
12591 * testsuite/libgomp.c++/pr66199-3.C: New test.
12592 * testsuite/libgomp.c++/pr66199-4.C: New test.
12593 * testsuite/libgomp.c++/pr66199-5.C: New test.
12594 * testsuite/libgomp.c++/pr66199-6.C: New test.
12595 * testsuite/libgomp.c++/pr66199-7.C: New test.
12596 * testsuite/libgomp.c++/pr66199-8.C: New test.
12597 * testsuite/libgomp.c++/pr66199-9.C: New test.
12598 * testsuite/libgomp.c++/reduction-11.C: New test.
12599 * testsuite/libgomp.c++/reduction-12.C: New test.
12600 * testsuite/libgomp.c++/target-13.C: New test.
12601 * testsuite/libgomp.c++/target-14.C: New test.
12602 * testsuite/libgomp.c++/target-15.C: New test.
12603 * testsuite/libgomp.c++/target-16.C: New test.
12604 * testsuite/libgomp.c++/target-17.C: New test.
12605 * testsuite/libgomp.c++/target-18.C: New test.
12606 * testsuite/libgomp.c++/target-19.C: New test.
12608 2015-11-04 Nathan Sidwell <nathan@codesourcery.com>
12610 * testsuite/libgomp.oacc-fortran/reduction-1.f90: Fix dimensions
12611 and reduction copy.
12612 * testsuite/libgomp.oacc-fortran/reduction-2.f90: Likewise.
12613 * testsuite/libgomp.oacc-fortran/reduction-3.f90: Likewise.
12614 * testsuite/libgomp.oacc-fortran/reduction-4.f90: Likewise.
12615 * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
12616 * testsuite/libgomp.oacc-c-c++-common/par-reduction-1.c: Likewise.
12617 * testsuite/libgomp.oacc-c-c++-common/reduction-3.c: Likewise.
12618 * testsuite/libgomp.oacc-c-c++-common/collapse-2.c: Likewise.
12619 * testsuite/libgomp.oacc-c-c++-common/par-reduction-2.c: Likewise.
12620 * testsuite/libgomp.oacc-c-c++-common/reduction-4.c: Likewise.
12621 * testsuite/libgomp.oacc-c-c++-common/reduction-initial-1.c: Likewise.
12622 * testsuite/libgomp.oacc-c-c++-common/reduction-1.c: Likewise.
12623 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Likewise.
12624 * testsuite/libgomp.oacc-c-c++-common/reduction-2.c: Likewise.
12625 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: New.
12627 2015-11-04 Nathan Sidwell <nathan@codesourcery.com>
12629 * libgomp.oacc-c-c++-common/loop-red-g-1.c: New.
12630 * libgomp.oacc-c-c++-common/loop-red-gwv-1.c: New.
12631 * libgomp.oacc-c-c++-common/loop-red-v-1.c: New.
12632 * libgomp.oacc-c-c++-common/loop-red-v-2.c: New.
12633 * libgomp.oacc-c-c++-common/loop-red-w-1.c: New.
12634 * libgomp.oacc-c-c++-common/loop-red-w-2.c: New.
12635 * libgomp.oacc-c-c++-common/loop-red-wv-1.c: New.
12636 * libgomp.oacc-fortran/reduction-5.f90: Avoid reference var.
12638 2015-11-03 Nathan Sidwell <nathan@codesourcery.com>
12640 * libgomp.h (struct acc_dispatch_t): Remove args from exec_func.
12641 * plugin/plugin-nvptx.c (nvptx_exec): Remove sizes & kinds arg.
12642 (GOMP_OFFLOAD_openacc_parallel): Likewise.
12643 * oacc-host.c (host_openacc_exec): Likewise.
12644 * oacc-parallel.c (GOACC_parallel_keyed): Adjust exec_func call.
12646 2015-11-03 Julian Brown <julian@codesourcery.com>
12647 Thomas Schwinge <thomas@codesourcery.com>
12649 * testsuite/libgomp.oacc-c-c++-common/par-reduction-1.c: New file.
12650 * testsuite/libgomp.oacc-c-c++-common/par-reduction-2.c: Likewise.
12651 * testsuite/libgomp.oacc-c-c++-common/worker-single-1a.c:
12653 * testsuite/libgomp.oacc-c-c++-common/worker-single-4.c: Likewise.
12654 * testsuite/libgomp.oacc-c-c++-common/worker-single-6.c: Likewise.
12656 2015-11-03 James Norris <jnorris@codesourcery.com>
12658 * testsuite/libgomp.oacc-c-c++-common/atomic_capture-1.c: New
12660 * testsuite/libgomp.oacc-c-c++-common/atomic_capture-2.c:
12662 * testsuite/libgomp.oacc-c-c++-common/atomic_rw-1.c: Likewise.
12663 * testsuite/libgomp.oacc-c-c++-common/atomic_update-1.c: Likewise.
12664 * testsuite/libgomp.oacc-fortran/atomic_capture-1.f90: Likewise.
12665 * testsuite/libgomp.oacc-fortran/atomic_rw-1.f90: New file.
12666 * testsuite/libgomp.oacc-fortran/atomic_update-1.f90: Likewise.
12668 2015-10-29 Nathan Sidwell <nathan@codesourcery.com>
12670 * openacc.h (enum acc_device_t): Reformat. Ensure layout
12672 (enum acc_async_t): Reformat.
12673 (acc_on_device): Declare compatible with builtin and provide C++
12675 * testsuite/libgomp.oacc-c-c++-common/acc-on-device.c: New.
12677 2015-10-29 Thomas Schwinge <thomas@codesourcery.com>
12678 Cesar Philippidis <cesar@codesourcery.com>
12680 * testsuite/libgomp.oacc-c-c++-common/combdir-1.c: Rename to...
12681 * testsuite/libgomp.oacc-c-c++-common/combined-directives-1.c:
12682 ... this. Add a description of the test at the top of the file.
12683 * testsuite/libgomp.oacc-fortran/combdir-1.f90: Rename file to...
12684 * testsuite/libgomp.oacc-fortran/combined-directives-1.f90:
12685 ... this. Add a description of the test at the top of the file.
12687 2015-10-28 Nathan Sidwell <nathan@codesourcery.com>
12689 * testsuite/libgomp.oacc-c-c++-common/loop-g-1.c: New.
12690 * testsuite/libgomp.oacc-c-c++-common/loop-g-2.c: New.
12691 * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c: New.
12692 * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c: New.
12693 * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c: New.
12694 * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c: New.
12696 2015-10-27 Nathan Sidwell <nathan@codesourcery.com>
12698 * plugin/plugin-nvptx.c (nvptx_exec): Remove check on compute
12701 2015-10-27 Thomas Schwinge <thomas@codesourcery.com>
12704 * testsuite/libgomp.c++/member-1.C (A::m1): Add missing private clause.
12706 2015-10-27 James Norris <jnorris@codesourcery.com>
12708 * testsuite/libgomp.oacc-c-c++-common/combdir-1.c: New file.
12709 * testsuite/libgomp.oacc-fortran/combdir-1.f90: Likewise.
12711 2015-10-26 Thomas Schwinge <thomas@codesourcery.com>
12713 * testsuite/libgomp.oacc-c-c++-common/abort-1.c: Print to stderr.
12714 * testsuite/libgomp.oacc-c-c++-common/abort-3.c: Likewise.
12716 * testsuite/libgomp.oacc-c-c++-common/lib-1.c: Remove explicit
12717 acc_device_nvidia usage.
12718 * testsuite/libgomp.oacc-c-c++-common/lib-10.c: Likewise.
12719 * testsuite/libgomp.oacc-c-c++-common/lib-2.c: Likewise.
12720 * testsuite/libgomp.oacc-c-c++-common/lib-9.c: Likewise.
12722 * oacc-init.c (acc_shutdown): Call gomp_init_targets_once.
12723 * testsuite/libgomp.oacc-c-c++-common/lib-8.c: New file.
12726 * testsuite/libgomp.oacc-c-c++-common/lib-3.c: Resolve XFAIL.
12730 * oacc-mem.c (update_dev_host): Call goacc_lazy_initialize.
12731 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Remove XFAIL.
12733 2015-10-23 Tom de Vries <tom@codesourcery.com>
12736 * testsuite/libgomp.c++/member-2.C (A::m1): Add missing private clause.
12738 2015-10-20 Nathan Sidwell <nathan@codesourcery.com>
12740 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Set sane
12742 * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
12744 2015-10-14 Ilya Verbin <ilya.verbin@intel.com>
12745 Aleksander Ivanushenko <aleksander.ivanushenko@intel.com>
12747 * target.c (gomp_map_vars): Initialize tgt->tgt_start and tgt->tgt_end
12748 to 0 when mapnum is 0.
12750 2015-10-14 Sebastian Huber <sebastian.huber@embedded-brains.de>
12752 * fortran.c (omp_get_place_proc_ids_, omp_get_partition_place_nums_):
12753 Cast to int from int32_t.
12755 2015-10-13 Jakub Jelinek <jakub@redhat.com>
12756 Aldy Hernandez <aldyh@redhat.com>
12757 Ilya Verbin <ilya.verbin@intel.com>
12759 * config/linux/affinity.c (omp_get_place_num_procs,
12760 omp_get_place_proc_ids, gomp_get_place_proc_ids_8): New functions.
12761 * config/linux/doacross.h: New file.
12762 * config/posix/affinity.c (omp_get_place_num_procs,
12763 omp_get_place_proc_ids, gomp_get_place_proc_ids_8): New functions.
12764 * config/posix/doacross.h: New file.
12765 * env.c: Include gomp-constants.h.
12766 (struct gomp_task_icv): Rename run_sched_modifier to
12767 run_sched_chunk_size.
12768 (gomp_max_task_priority_var): New variable.
12769 (parse_schedule): Rename run_sched_modifier to run_sched_chunk_size.
12770 (handle_omp_display_env): Change _OPENMP value from 201307 to
12771 201511. Print OMP_MAX_TASK_PRIORITY.
12772 (initialize_env): Parse OMP_MAX_TASK_PRIORITY.
12773 (omp_set_schedule, omp_get_schedule): Rename modifier argument to
12774 chunk_size and run_sched_modifier to run_sched_chunk_size.
12775 (omp_get_max_task_priority, omp_get_initial_device,
12776 omp_get_num_places, omp_get_place_num, omp_get_partition_num_places,
12777 omp_get_partition_place_nums): New functions.
12778 * fortran.c (omp_set_schedule_, omp_set_schedule_8_,
12779 omp_get_schedule_, omp_get_schedule_8_): Rename modifier argument
12781 (omp_get_num_places_, omp_get_place_num_procs_,
12782 omp_get_place_num_procs_8_, omp_get_place_proc_ids_,
12783 omp_get_place_proc_ids_8_, omp_get_place_num_,
12784 omp_get_partition_num_places_, omp_get_partition_place_nums_,
12785 omp_get_partition_place_nums_8_, omp_get_initial_device_,
12786 omp_get_max_task_priority_): New functions.
12787 * libgomp_g.h (GOMP_loop_doacross_static_start,
12788 GOMP_loop_doacross_dynamic_start, GOMP_loop_doacross_guided_start,
12789 GOMP_loop_doacross_runtime_start, GOMP_loop_ull_doacross_static_start,
12790 GOMP_loop_ull_doacross_dynamic_start,
12791 GOMP_loop_ull_doacross_guided_start,
12792 GOMP_loop_ull_doacross_runtime_start, GOMP_doacross_post,
12793 GOMP_doacross_wait, GOMP_doacross_ull_post, GOMP_doacross_wait,
12794 GOMP_taskloop, GOMP_taskloop_ull, GOMP_target_41,
12795 GOMP_target_data_41, GOMP_target_update_41,
12796 GOMP_target_enter_exit_data): New prototypes.
12797 (GOMP_task): Add prototype argument.
12798 * libgomp.h (_LIBGOMP_CHECKING_): Define to 0 if not yet defined.
12799 (struct gomp_doacross_work_share): New type.
12800 (struct gomp_work_share): Add doacross field.
12801 (struct gomp_task_icv): Rename run_sched_modifier to
12802 run_sched_chunk_size.
12803 (enum gomp_task_kind): Rename GOMP_TASK_IFFALSE to
12804 GOMP_TASK_UNDEFERRED. Add comments.
12805 (struct gomp_task_depend_entry): Add comments.
12806 (struct gomp_task): Likewise.
12807 (struct gomp_taskgroup): Likewise.
12808 (struct gomp_target_task): New type.
12809 (struct gomp_team): Add comment.
12810 (gomp_get_place_proc_ids_8, gomp_doacross_init,
12811 gomp_doacross_ull_init, gomp_task_maybe_wait_for_dependencies,
12812 gomp_create_target_task, gomp_target_task_fn): New prototypes.
12813 (struct target_var_desc): New type.
12814 (struct target_mem_desc): Adjust comment. Use struct
12815 target_var_desc instead of splay_tree_key for list.
12816 (REFCOUNT_INFINITY): Define.
12817 (struct splay_tree_key_s): Remove copy_from field.
12818 (struct gomp_device_descr): Add dev2dev_func field.
12819 (enum gomp_map_vars_kind): New enum.
12820 (gomp_map_vars): Add one argument.
12821 * libgomp.map (OMP_4.5): Export omp_get_max_task_priority,
12822 omp_get_max_task_priority_, omp_get_num_places, omp_get_num_places_,
12823 omp_get_place_num_procs, omp_get_place_num_procs_,
12824 omp_get_place_num_procs_8_, omp_get_place_proc_ids,
12825 omp_get_place_proc_ids_, omp_get_place_proc_ids_8_, omp_get_place_num,
12826 omp_get_place_num_, omp_get_partition_num_places,
12827 omp_get_partition_num_places_, omp_get_partition_place_nums,
12828 omp_get_partition_place_nums_, omp_get_partition_place_nums_8_,
12829 omp_get_initial_device, omp_get_initial_device_, omp_target_alloc,
12830 omp_target_free, omp_target_is_present, omp_target_memcpy,
12831 omp_target_memcpy_rect, omp_target_associate_ptr and
12832 omp_target_disassociate_ptr.
12833 (GOMP_4.0.2): Renamed to ...
12834 (GOMP_4.5): ... this. Export GOMP_target_41, GOMP_target_data_41,
12835 GOMP_target_update_41, GOMP_target_enter_exit_data, GOMP_taskloop,
12836 GOMP_taskloop_ull, GOMP_loop_doacross_dynamic_start,
12837 GOMP_loop_doacross_guided_start, GOMP_loop_doacross_runtime_start,
12838 GOMP_loop_doacross_static_start, GOMP_doacross_post,
12839 GOMP_doacross_wait, GOMP_loop_ull_doacross_dynamic_start,
12840 GOMP_loop_ull_doacross_guided_start,
12841 GOMP_loop_ull_doacross_runtime_start,
12842 GOMP_loop_ull_doacross_static_start, GOMP_doacross_ull_post and
12843 GOMP_doacross_ull_wait.
12844 * libgomp.texi: Document omp_get_max_task_priority.
12845 Rename modifier argument to chunk_size for omp_set_schedule and
12846 omp_get_schedule. Document OMP_MAX_TASK_PRIORITY env var.
12847 * loop.c (GOMP_loop_runtime_start): Adjust for run_sched_modifier
12848 to run_sched_chunk_size renaming.
12849 (GOMP_loop_ordered_runtime_start): Likewise.
12850 (gomp_loop_doacross_static_start, gomp_loop_doacross_dynamic_start,
12851 gomp_loop_doacross_guided_start, GOMP_loop_doacross_runtime_start,
12852 GOMP_parallel_loop_runtime_start): New functions.
12853 (GOMP_parallel_loop_runtime): Adjust for run_sched_modifier
12854 to run_sched_chunk_size renaming.
12855 (GOMP_loop_doacross_static_start, GOMP_loop_doacross_dynamic_start,
12856 GOMP_loop_doacross_guided_start): New functions or aliases.
12857 * loop_ull.c (GOMP_loop_ull_runtime_start): Adjust for
12858 run_sched_modifier to run_sched_chunk_size renaming.
12859 (GOMP_loop_ull_ordered_runtime_start): Likewise.
12860 (gomp_loop_ull_doacross_static_start,
12861 gomp_loop_ull_doacross_dynamic_start,
12862 gomp_loop_ull_doacross_guided_start,
12863 GOMP_loop_ull_doacross_runtime_start): New functions.
12864 (GOMP_loop_ull_doacross_static_start,
12865 GOMP_loop_ull_doacross_dynamic_start,
12866 GOMP_loop_ull_doacross_guided_start): New functions or aliases.
12867 * oacc-mem.c (acc_map_data, present_create_copy,
12868 gomp_acc_insert_pointer): Pass GOMP_MAP_VARS_OPENACC instead of false
12870 (gomp_acc_remove_pointer): Use copy_from from target_var_desc.
12871 * oacc-parallel.c (GOACC_data_start): Pass GOMP_MAP_VARS_OPENACC
12872 instead of false to gomp_map_vars.
12873 (GOACC_parallel_keyed): Likewise. Use copy_from from target_var_desc.
12874 * omp.h.in (omp_lock_hint_t): New type.
12875 (omp_init_lock_with_hint, omp_init_nest_lock_with_hint,
12876 omp_get_num_places, omp_get_place_num_procs, omp_get_place_proc_ids,
12877 omp_get_place_num, omp_get_partition_num_places,
12878 omp_get_partition_place_nums, omp_get_initial_device,
12879 omp_get_max_task_priority, omp_target_alloc, omp_target_free,
12880 omp_target_is_present, omp_target_memcpy, omp_target_memcpy_rect,
12881 omp_target_associate_ptr, omp_target_disassociate_ptr): New
12883 * omp_lib.f90.in (omp_lock_hint_kind): New parameter.
12884 (omp_lock_hint_none, omp_lock_hint_uncontended,
12885 omp_lock_hint_contended, omp_lock_hint_nonspeculative,
12886 omp_lock_hint_speculative): New parameters.
12887 (omp_init_lock_with_hint, omp_init_nest_lock_with_hint,
12888 omp_get_num_places, omp_get_place_num_procs, omp_get_place_proc_ids,
12889 omp_get_place_num, omp_get_partition_num_places,
12890 omp_get_partition_place_nums, omp_get_initial_device,
12891 omp_get_max_task_priority): New interfaces.
12892 (omp_set_schedule, omp_get_schedule): Rename modifier argument
12894 * omp_lib.h.in (omp_lock_hint_kind): New parameter.
12895 (omp_lock_hint_none, omp_lock_hint_uncontended,
12896 omp_lock_hint_contended, omp_lock_hint_nonspeculative,
12897 omp_lock_hint_speculative): New parameters.
12898 (omp_init_lock_with_hint, omp_init_nest_lock_with_hint,
12899 omp_get_num_places, omp_get_place_num_procs, omp_get_place_proc_ids,
12900 omp_get_place_num, omp_get_partition_num_places,
12901 omp_get_partition_place_nums, omp_get_initial_device,
12902 omp_get_max_task_priority): New functions and subroutines.
12903 * ordered.c: Include stdarg.h and string.h.
12904 (MAX_COLLAPSED_BITS): Define.
12905 (gomp_doacross_init, GOMP_doacross_post, GOMP_doacross_wait,
12906 gomp_doacross_ull_init, GOMP_doacross_ull_post,
12907 GOMP_doacross_ull_wait): New functions.
12908 * target.c: Include errno.h.
12909 (resolve_device): If device is not initialized, call
12910 gomp_init_device on it.
12911 (gomp_map_lookup): New function.
12912 (gomp_map_vars_existing): Add tgt_var argument, fill it in.
12913 Don't bump refcount if REFCOUNT_INFINITY. Handle
12914 GOMP_MAP_ALWAYS_TO_P.
12915 (get_kind): Rename is_openacc argument to short_mapkind.
12916 (gomp_map_pointer): Use gomp_map_lookup.
12917 (gomp_map_fields_existing): New function.
12918 (gomp_map_vars): Rename is_openacc argument to short_mapkind
12919 and is_target to pragma_kind. Handle GOMP_MAP_VARS_ENTER_DATA,
12920 handle GOMP_MAP_FIRSTPRIVATE_INT, GOMP_MAP_STRUCT,
12921 GOMP_MAP_USE_DEVICE_PTR, GOMP_MAP_ZERO_LEN_ARRAY_SECTION.
12922 Adjust for tgt->list changed type and copy_from living in there.
12923 (gomp_copy_from_async): Adjust for tgt->list changed type and
12924 copy_from living in there.
12925 (gomp_unmap_vars): Likewise.
12926 (gomp_update): Likewise. Rename is_openacc argument to
12927 short_mapkind. Don't fail if object is not mapped.
12928 (gomp_load_image_to_device): Initialize refcount to
12930 (gomp_target_fallback): New function.
12931 (gomp_get_target_fn_addr): Likewise.
12932 (GOMP_target): Adjust gomp_map_vars caller, use
12933 gomp_get_target_fn_addr and gomp_target_fallback.
12934 (GOMP_target_41): New function.
12935 (gomp_target_data_fallback): New function.
12936 (GOMP_target_data): Use it, adjust gomp_map_vars caller.
12937 (GOMP_target_data_41): New function.
12938 (GOMP_target_update): Adjust gomp_update caller.
12939 (GOMP_target_update_41): New function.
12940 (gomp_exit_data, GOMP_target_enter_exit_data,
12941 gomp_target_task_fn, omp_target_alloc, omp_target_free,
12942 omp_target_is_present, omp_target_memcpy,
12943 omp_target_memcpy_rect_worker, omp_target_memcpy_rect,
12944 omp_target_associate_ptr, omp_target_disassociate_ptr,
12945 gomp_load_plugin_for_device): New functions.
12946 * task.c: Include gomp-constants.h. Include taskloop.c
12947 twice to get GOMP_taskloop and GOMP_taskloop_ull definitions.
12948 (gomp_task_handle_depend): New function.
12949 (GOMP_task): Use it. Add priority argument. Use
12950 gomp-constant.h constants instead of hardcoded numbers.
12951 Rename GOMP_TASK_IFFALSE to GOMP_TASK_UNDEFERRED.
12952 (gomp_create_target_task): New function.
12953 (verify_children_queue, verify_taskgroup_queue,
12954 verify_task_queue): New functions.
12955 (gomp_task_run_pre): Call verify_*_queue functions.
12956 If an upcoming tied task is about to leave the sibling or
12957 taskgroup queues in an invalid state, adjust appropriately.
12958 Remove taskgroup argument. Add comments.
12959 (gomp_task_run_post_handle_dependers): Add comments.
12960 (gomp_task_run_post_remove_parent): Likewise.
12961 (gomp_barrier_handle_tasks): Adjust gomp_task_run_pre caller.
12962 (GOMP_taskwait): Likewise. Add comments.
12963 (gomp_task_maybe_wait_for_dependencies): Fix scheduling
12964 problem such that the first non parent_depends_on task does not
12965 end up at the end of the children queue.
12966 (GOMP_taskgroup_start): Rename GOMP_TASK_IFFALSE to
12967 GOMP_TASK_UNDEFERRED.
12968 (GOMP_taskgroup_end): Adjust gomp_task_run_pre caller.
12969 * taskloop.c: New file.
12970 * testsuite/lib/libgomp.exp
12971 (check_effective_target_offload_device_nonshared_as): New proc.
12972 * testsuite/libgomp.c/affinity-2.c: New test.
12973 * testsuite/libgomp.c/doacross-1.c: New test.
12974 * testsuite/libgomp.c/doacross-2.c: New test.
12975 * testsuite/libgomp.c/examples-4/declare_target-1.c (fib_wrapper):
12976 Add map clause to target.
12977 * testsuite/libgomp.c/examples-4/declare_target-4.c (accum): Likewise.
12978 * testsuite/libgomp.c/examples-4/declare_target-5.c (accum): Likewise.
12979 * testsuite/libgomp.c/examples-4/device-1.c (main): Likewise.
12980 * testsuite/libgomp.c/examples-4/device-3.c (main): Likewise.
12981 * testsuite/libgomp.c/examples-4/target_data-3.c (gramSchmidt):
12983 * testsuite/libgomp.c/examples-4/teams-2.c (dotprod): Likewise.
12984 * testsuite/libgomp.c/examples-4/teams-3.c (dotprod): Likewise.
12985 * testsuite/libgomp.c/examples-4/teams-4.c (dotprod): Likewise.
12986 * testsuite/libgomp.c/for-2.h (OMPTGT, OMPTO, OMPFROM): Define if
12987 not defined. Use those where needed.
12988 * testsuite/libgomp.c/for-4.c: New test.
12989 * testsuite/libgomp.c/for-5.c: New test.
12990 * testsuite/libgomp.c/for-6.c: New test.
12991 * testsuite/libgomp.c/linear-1.c: New test.
12992 * testsuite/libgomp.c/ordered-4.c: New test.
12993 * testsuite/libgomp.c/pr66199-2.c (f2): Adjust for linear clause
12994 only allowed on the loop iterator.
12995 * testsuite/libgomp.c/pr66199-3.c: New test.
12996 * testsuite/libgomp.c/pr66199-4.c: New test.
12997 * testsuite/libgomp.c/reduction-7.c: New test.
12998 * testsuite/libgomp.c/reduction-8.c: New test.
12999 * testsuite/libgomp.c/reduction-9.c: New test.
13000 * testsuite/libgomp.c/reduction-10.c: New test.
13001 * testsuite/libgomp.c/target-1.c (fn2, fn3, fn4): Add
13003 * testsuite/libgomp.c/target-2.c (fn2, fn3, fn4): Likewise.
13004 * testsuite/libgomp.c/target-7.c (foo): Add map(h) where needed.
13005 * testsuite/libgomp.c/target-11.c: New test.
13006 * testsuite/libgomp.c/target-12.c: New test.
13007 * testsuite/libgomp.c/target-13.c: New test.
13008 * testsuite/libgomp.c/target-14.c: New test.
13009 * testsuite/libgomp.c/target-15.c: New test.
13010 * testsuite/libgomp.c/target-16.c: New test.
13011 * testsuite/libgomp.c/target-17.c: New test.
13012 * testsuite/libgomp.c/target-18.c: New test.
13013 * testsuite/libgomp.c/target-19.c: New test.
13014 * testsuite/libgomp.c/target-20.c: New test.
13015 * testsuite/libgomp.c/target-21.c: New test.
13016 * testsuite/libgomp.c/target-22.c: New test.
13017 * testsuite/libgomp.c/target-23.c: New test.
13018 * testsuite/libgomp.c/target-24.c: New test.
13019 * testsuite/libgomp.c/target-25.c: New test.
13020 * testsuite/libgomp.c/target-26.c: New test.
13021 * testsuite/libgomp.c/target-27.c: New test.
13022 * testsuite/libgomp.c/taskloop-1.c: New test.
13023 * testsuite/libgomp.c/taskloop-2.c: New test.
13024 * testsuite/libgomp.c/taskloop-3.c: New test.
13025 * testsuite/libgomp.c/taskloop-4.c: New test.
13026 * testsuite/libgomp.c++/ctor-13.C: New test.
13027 * testsuite/libgomp.c++/doacross-1.C: New test.
13028 * testsuite/libgomp.c++/examples-4/declare_target-2.C:
13029 Replace offload_device with offload_device_nonshared_as.
13030 * testsuite/libgomp.c++/for-12.C: New test.
13031 * testsuite/libgomp.c++/for-13.C: New test.
13032 * testsuite/libgomp.c++/for-14.C: New test.
13033 * testsuite/libgomp.c++/linear-1.C: New test.
13034 * testsuite/libgomp.c++/member-1.C: New test.
13035 * testsuite/libgomp.c++/member-2.C: New test.
13036 * testsuite/libgomp.c++/member-3.C: New test.
13037 * testsuite/libgomp.c++/member-4.C: New test.
13038 * testsuite/libgomp.c++/member-5.C: New test.
13039 * testsuite/libgomp.c++/ordered-1.C: New test.
13040 * testsuite/libgomp.c++/reduction-5.C: New test.
13041 * testsuite/libgomp.c++/reduction-6.C: New test.
13042 * testsuite/libgomp.c++/reduction-7.C: New test.
13043 * testsuite/libgomp.c++/reduction-8.C: New test.
13044 * testsuite/libgomp.c++/reduction-9.C: New test.
13045 * testsuite/libgomp.c++/reduction-10.C: New test.
13046 * testsuite/libgomp.c++/reference-1.C: New test.
13047 * testsuite/libgomp.c++/simd14.C: New test.
13048 * testsuite/libgomp.c++/target-2.C (fn2): Add map(tofrom: s) clause.
13049 * testsuite/libgomp.c++/target-5.C: New test.
13050 * testsuite/libgomp.c++/target-6.C: New test.
13051 * testsuite/libgomp.c++/target-7.C: New test.
13052 * testsuite/libgomp.c++/target-8.C: New test.
13053 * testsuite/libgomp.c++/target-9.C: New test.
13054 * testsuite/libgomp.c++/target-10.C: New test.
13055 * testsuite/libgomp.c++/target-11.C: New test.
13056 * testsuite/libgomp.c++/target-12.C: New test.
13057 * testsuite/libgomp.c++/taskloop-1.C: New test.
13058 * testsuite/libgomp.c++/taskloop-2.C: New test.
13059 * testsuite/libgomp.c++/taskloop-3.C: New test.
13060 * testsuite/libgomp.c++/taskloop-4.C: New test.
13061 * testsuite/libgomp.c++/taskloop-5.C: New test.
13062 * testsuite/libgomp.c++/taskloop-6.C: New test.
13063 * testsuite/libgomp.c++/taskloop-7.C: New test.
13064 * testsuite/libgomp.c++/taskloop-8.C: New test.
13065 * testsuite/libgomp.c++/taskloop-9.C: New test.
13066 * testsuite/libgomp.fortran/affinity1.f90: New test.
13067 * testsuite/libgomp.fortran/affinity2.f90: New test.
13069 2015-10-13 Tom de Vries <tom@codesourcery.com>
13071 PR tree-optimization/67476
13072 * testsuite/libgomp.c/autopar-3.c: New test.
13073 * testsuite/libgomp.c/autopar-4.c: New test.
13074 * testsuite/libgomp.c/autopar-5.c: New test.
13075 * testsuite/libgomp.c/autopar-6.c: New test.
13076 * testsuite/libgomp.c/autopar-7.c: New test.
13077 * testsuite/libgomp.c/autopar-8.c: New test.
13079 2015-10-12 James Norris <jnorris@codesourcery.com>
13081 * testsuite/libgomp.oacc-c-c++-common/vector-loop.c: Fix loop
13084 2015-10-09 David Malcolm <dmalcolm@redhat.com>
13086 * testsuite/lib/libgomp.exp: Load multiline.exp before prune.exp,
13087 using load_gcc_lib.
13089 2015-10-02 Thomas Schwinge <thomas@codesourcery.com>
13091 * oacc-ptx.h: Remove file, moving its content into...
13092 * config/nvptx/fortran.c: ... here...
13093 * config/nvptx/oacc-init.c: ..., here...
13094 * config/nvptx/oacc-parallel.c: ..., and here.
13095 * config/nvptx/openacc.f90: New file.
13096 * plugin/plugin-nvptx.c: Don't include "oacc-ptx.h".
13097 (link_ptx): Don't link in predefined bits of PTX code.
13099 2015-09-30 Nathan Sidwell <nathan@codesourcery.com>
13100 Bernd Schmidt <bernds@codesourcery.com>
13102 * plugin/plugin-nvptx.c (targ_fn_launch): Use GOMP_DIM_MAX.
13103 (struct targ_ptx_obj): New.
13104 (nvptx_tdata): Move earlier, change data format.
13105 (link_ptx): Take targ_ptx_obj ptr and count. Allow multiple
13107 (GOMP_OFFLOAD_load_image): Adjust.
13109 2015-09-30 Thomas Schwinge <thomas@codesourcery.com>
13111 * testsuite/libgomp.oacc-c-c++-common/abort-1.c: Add checkpoint.
13112 * testsuite/libgomp.oacc-c-c++-common/abort-3.c: Likewise.
13113 * testsuite/libgomp.oacc-c-c++-common/clauses-2.c: Likewise.
13114 * testsuite/libgomp.oacc-c-c++-common/data-already-1.c: Likewise.
13115 * testsuite/libgomp.oacc-c-c++-common/data-already-2.c: Likewise.
13116 * testsuite/libgomp.oacc-c-c++-common/data-already-3.c: Likewise.
13117 * testsuite/libgomp.oacc-c-c++-common/data-already-4.c: Likewise.
13118 * testsuite/libgomp.oacc-c-c++-common/data-already-5.c: Likewise.
13119 * testsuite/libgomp.oacc-c-c++-common/data-already-6.c: Likewise.
13120 * testsuite/libgomp.oacc-c-c++-common/data-already-7.c: Likewise.
13121 * testsuite/libgomp.oacc-c-c++-common/data-already-8.c: Likewise.
13122 * testsuite/libgomp.oacc-c-c++-common/lib-1.c: Likewise.
13123 * testsuite/libgomp.oacc-c-c++-common/lib-11.c: Likewise.
13124 * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
13125 * testsuite/libgomp.oacc-c-c++-common/lib-17.c: Likewise.
13126 * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
13127 * testsuite/libgomp.oacc-c-c++-common/lib-2.c: Likewise.
13128 * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
13129 * testsuite/libgomp.oacc-c-c++-common/lib-21.c: Likewise.
13130 * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Likewise.
13131 * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
13132 * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
13133 * testsuite/libgomp.oacc-c-c++-common/lib-26.c: Likewise.
13134 * testsuite/libgomp.oacc-c-c++-common/lib-27.c: Likewise.
13135 * testsuite/libgomp.oacc-c-c++-common/lib-28.c: Likewise.
13136 * testsuite/libgomp.oacc-c-c++-common/lib-29.c: Likewise.
13137 * testsuite/libgomp.oacc-c-c++-common/lib-3.c: Likewise.
13138 * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
13139 * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
13140 * testsuite/libgomp.oacc-c-c++-common/lib-35.c: Likewise.
13141 * testsuite/libgomp.oacc-c-c++-common/lib-36.c: Likewise.
13142 * testsuite/libgomp.oacc-c-c++-common/lib-39.c: Likewise.
13143 * testsuite/libgomp.oacc-c-c++-common/lib-4.c: Likewise.
13144 * testsuite/libgomp.oacc-c-c++-common/lib-40.c: Likewise.
13145 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
13146 * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Likewise.
13147 * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
13148 * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Likewise.
13149 * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
13150 * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Likewise.
13151 * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
13152 * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
13153 * testsuite/libgomp.oacc-c-c++-common/lib-57.c: Likewise.
13154 * testsuite/libgomp.oacc-c-c++-common/lib-58.c: Likewise.
13155 * testsuite/libgomp.oacc-c-c++-common/lib-62.c: Likewise.
13156 * testsuite/libgomp.oacc-c-c++-common/lib-63.c: Likewise.
13157 * testsuite/libgomp.oacc-c-c++-common/lib-64.c: Likewise.
13158 * testsuite/libgomp.oacc-c-c++-common/lib-65.c: Likewise.
13159 * testsuite/libgomp.oacc-c-c++-common/lib-67.c: Likewise.
13160 * testsuite/libgomp.oacc-c-c++-common/lib-68.c: Likewise.
13161 * testsuite/libgomp.oacc-c-c++-common/lib-71.c: Likewise.
13162 * testsuite/libgomp.oacc-c-c++-common/lib-77.c: Likewise.
13163 * testsuite/libgomp.oacc-c-c++-common/lib-80.c: Likewise.
13164 * testsuite/libgomp.oacc-c-c++-common/present-1.c: Likewise.
13165 * testsuite/libgomp.oacc-fortran/abort-1.f90: Likewise.
13166 * testsuite/libgomp.oacc-fortran/data-already-1.f: Likewise.
13167 * testsuite/libgomp.oacc-fortran/data-already-2.f: Likewise.
13168 * testsuite/libgomp.oacc-fortran/data-already-3.f: Likewise.
13169 * testsuite/libgomp.oacc-fortran/data-already-4.f: Likewise.
13170 * testsuite/libgomp.oacc-fortran/data-already-5.f: Likewise.
13171 * testsuite/libgomp.oacc-fortran/data-already-6.f: Likewise.
13172 * testsuite/libgomp.oacc-fortran/data-already-7.f: Likewise.
13173 * testsuite/libgomp.oacc-fortran/data-already-8.f: Likewise.
13175 2015-09-29 Nathan Sidwell <nathan@codesourcery.com>
13177 * oacc-init.c (acc_on_device): Force optimization level.
13179 2015-09-29 Nathan Sidwell <nathan@codesourcery.com>
13181 * plugin/plugin-nvptx.c (ARRAYSIZE): Delete.
13182 (cuda_errlist): Delete.
13183 (cuda_error): Reimplement.
13185 2015-09-28 Nathan Sidwell <nathan@codesourcery.com>
13187 * libgomp.h (acc_dispatch_t): Replace separate geometry args with
13189 * libgomp.map (GOACC_parallel_keyed): New.
13190 * oacc-parallel.c (goacc_wait): Take pointer to va_list. Adjust
13192 (GOACC_parallel_keyed): New interface. Lose geometry arguments
13193 and take keyed varargs list. Adjust call to exec_func.
13194 (GOACC_parallel): Force host fallback.
13195 * libgomp_g.h (GOACC_parallel): Remove.
13196 (GOACC_parallel_keyed): Declare.
13197 * plugin/plugin-nvptx.c (struct targ_fn_launch): New struct.
13198 (struct targ_gn_descriptor): Replace name field with launch field.
13199 (nvptx_exec): Lose separate geometry args, take array. Process
13200 dynamic dimensions and adjust.
13201 (struct nvptx_tdata): Replace fn_names field with fn_descs.
13202 (GOMP_OFFLOAD_load_image): Adjust for change in function table
13204 (GOMP_OFFLOAD_openacc_parallel): Adjust for change in dimension
13206 * oacc-host.c (host_openacc_exec): Adjust for change in dimension
13209 2015-09-22 Chung-Lin Tang <cltang@codesourcery.com>
13212 * oacc-int.h (goacc_host_init): Add declaration.
13213 * oacc-host.c (goacc_host_init): Remove static and constructor attribute.
13214 * oacc-init.c (goacc_runtime_initialize): Call goacc_host_init() at end.
13216 2015-09-08 Aditya Kumar <hiraditya@msn.com>
13217 Sebastian Pop <s.pop@samsung.com>
13219 * testsuite/libgomp.graphite/bounds.c (int foo): Modified test case to
13221 * testsuite/libgomp.graphite/force-parallel-1.c (void parloop): Same.
13222 * testsuite/libgomp.graphite/force-parallel-4.c: Same.
13223 * testsuite/libgomp.graphite/force-parallel-5.c: Same.
13224 * testsuite/libgomp.graphite/force-parallel-7.c: Same.
13225 * testsuite/libgomp.graphite/force-parallel-8.c: Same.
13227 2015-09-03 Jakub Jelinek <jakub@redhat.com>
13229 * configure.tgt: Add missing ;; in between nvptx and rtems
13232 2015-09-03 Sebastian Huber <sebastian.huber@embedded-brains.de>
13234 * config/posix/pool.h (gomp_adjust_thread_attr): New.
13235 * config/rtems/pool.h (gomp_adjust_thread_attr): Likewise.
13236 (gomp_thread_pool_reservoir): Add priority member.
13237 * confi/rtems/proc.c (allocate_thread_pool_reservoir): Add
13239 (parse_thread_pools): Likewise.
13240 * team.c (gomp_team_start): Call configuration provided
13241 gomp_adjust_thread_attr(). Destroy thread attributes if
13243 * libgomp.texi: Document GOMP_RTEMS_THREAD_POOLS.
13245 2015-09-03 Sebastian Huber <sebastian.huber@embedded-brains.de>
13247 * config/posix/pool.h: New.
13248 * config/rtems/pool.h: Likewise.
13249 * config/rtems/proc.c: Likewise.
13250 * libgomp.h (gomp_thread_destructor): Declare.
13251 * team.c: Include configuration provided "pool.h".
13252 (gomp_get_thread_pool): Define in configuration.
13253 (gomp_team_end): Call configuration defined
13254 gomp_release_thread_pool().
13256 2015-09-03 Sebastian Huber <sebastian.huber@embedded-brains.de>
13258 * config/rtems/bar.c: New.
13259 * config/rtems/bar.h: Likewise.
13260 * config/rtems/mutex.c: Likewise.
13261 * config/rtems/mutex.h: Likewise.
13262 * config/rtems/sem.c: Likewise.
13263 * config/rtems/sem.h: Likewise.
13264 * configure.ac (*-*-rtems*): Check that Newlib provides a proper
13265 <sys/lock.h> header file.
13266 * configure.tgt (*-*-rtems*): Enable RTEMS configuration if
13267 supported by Newlib.
13268 * configure: Regenerate.
13270 2015-09-03 Sebastian Huber <sebastian.huber@embedded-brains.de>
13272 * team.c (gomp_new_thread_pool): Delete and move content to ...
13273 (gomp_get_thread_pool): ... new function. Allocate and
13274 initialize thread pool on demand.
13275 (get_last_team): Use gomp_get_thread_pool().
13276 (gomp_team_start): Delete thread pool initialization.
13278 2015-09-03 Tom de Vries <tom@codesourcery.com>
13280 PR tree-optimization/65637
13281 * testsuite/libgomp.c/autopar-2.c: New test.
13283 2015-08-29 Tom de Vries <tom@codesourcery.com>
13285 PR tree-optimization/46193
13286 * testsuite/libgomp.c/pr46193.c: New test.
13288 2015-08-24 Nathan Sidwell <nathan@codesourcery.com>
13291 * libgomp.map: Add 4.0.2 version.
13292 * target.c (offload_image_descr): Add version field.
13293 (gomp_load_image_to_device): Add version argument. Adjust plugin
13294 call. Improve load mismatch diagnostic.
13295 (gomp_unload_image_from_device): Add version argument. Adjust plugin
13297 (GOMP_offload_regster): Make stub function, move bulk to ...
13298 (GOMP_offload_register_ver): ... here. Process version argument.
13299 (GOMP_offload_unregister): Make stub function, move bulk to ...
13300 (GOMP_offload_unregister_ver): ... here. Process version argument.
13301 (gomp_init_device): Process version field.
13302 (gomp_unload_device): Process version field.
13303 (gomp_load_plugin_for_device): Reimplement DLSYM & DLSYM_OPT
13304 macros. Check plugin version.
13305 * libgomp.h (gomp_device_descr): Add version function field. Adjust
13306 loader and unloader types.
13307 * oacc-host.c: Include gomp-constants.h.
13308 (host_version): New.
13309 (host_load_image, host_unload_image): Adjust.
13310 (host_dispatch): Add host_version.
13311 * plugin/plugin-nvptx.c: Include gomp-constants.h.
13312 (GOMP_OFFLOAD_version): New.
13313 (GOMP_OFFLOAD_load_image): Add version arg and check it.
13314 (GOMP_OFFLOAD_unload_image): Likewise.
13315 * plugin/plugin-host.c: Include gomp-constants.h.
13316 (GOMP_OFFLOAD_version): New.
13317 (GOMP_OFFLOAD_load_image): Add version arg.
13318 (GOMP_OFFLOAD_unload_image): Likewise.
13320 2015-08-24 Tom de Vries <tom@codesourcery.com>
13322 PR tree-optimization/65468
13323 * testsuite/libgomp.oacc-c-c++-common/vector-loop.c: New test.
13325 2015-08-24 Tom de Vries <tom@codesourcery.com>
13327 PR tree-optimization/65468
13328 * testsuite/libgomp.c/static-chunk-size-one.c: New test.
13330 2015-08-24 Joost VandeVondele <vondele@gnu.gcc.org>
13334 * iter.c (gomp_iter_dynamic_next): Employ an atomic load.
13335 (gomp_iter_guided_next): Idem.
13336 * iter_ull.c (gomp_iter_ull_dynamic_next): Idem.
13337 (gomp_iter_ull_guided_next): Idem.
13338 * config/linux/wait.h (do_spin): Idem.
13340 2015-08-10 Thomas Schwinge <thomas@codesourcery.com>
13342 * libgomp-plugin.h (enum offload_target_type): Remove
13343 OFFLOAD_TARGET_TYPE_HOST_NONSHM.
13344 * openacc.f90 (openacc_kinds): Remove acc_device_host_nonshm.
13345 * openacc.h (enum acc_device_t): Likewise.
13346 * openacc_lib.h: Likewise.
13347 * oacc-init.c (name_of_acc_device_t): Don't handle it.
13348 (acc_on_device): Just use __builtin_acc_on_device.
13349 * testsuite/libgomp.oacc-c-c++-common/if-1.c: Don't forbid usage
13350 of acc_on_device builtin.
13351 * plugin/plugin-host.h: Remove file.
13352 * plugin/plugin-host.c: Likewise, but salvage some content into...
13353 * oacc-host.c: ... this file.
13354 * plugin/Makefrag.am: Don't build libgomp-plugin-host_nonshm.la.
13355 * plugin/configfrag.ac (offload_targets): Don't add host_nonshm.
13356 * Makefile.in: Regenerate.
13357 * configure: Likewise.
13358 * testsuite/lib/libgomp.exp
13359 (check_effective_target_openacc_host_nonshm_selected): Remove.
13360 * testsuite/libgomp.oacc-c++/c++.exp: Don't handle
13361 ACC_DEVICE_TYPE=host_nonshm.
13362 * testsuite/libgomp.oacc-c/c.exp: Likewise.
13363 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
13364 * testsuite/libgomp.oacc-c-c++-common/acc_on_device-1.c: Likewise.
13365 * testsuite/libgomp.oacc-fortran/acc_on_device-1-1.f90: Likewise.
13366 * testsuite/libgomp.oacc-fortran/acc_on_device-1-2.f: Likewise.
13367 * testsuite/libgomp.oacc-fortran/acc_on_device-1-3.f: Likewise.
13369 2015-08-10 Thomas Schwinge <thomas@codesourcery.com>
13370 Jakub Jelinek <jakub@redhat.com>
13372 * config/nvptx/affinity.c: New file.
13373 * config/nvptx/alloc.c: Likewise.
13374 * config/nvptx/bar.c: Likewise.
13375 * config/nvptx/barrier.c: Likewise.
13376 * config/nvptx/critical.c: Likewise.
13377 * config/nvptx/env.c: Likewise.
13378 * config/nvptx/error.c: Likewise.
13379 * config/nvptx/fortran.c: Likewise.
13380 * config/nvptx/iter.c: Likewise.
13381 * config/nvptx/iter_ull.c: Likewise.
13382 * config/nvptx/libgomp-plugin.c: Likewise.
13383 * config/nvptx/lock.c: Likewise.
13384 * config/nvptx/loop.c: Likewise.
13385 * config/nvptx/loop_ull.c: Likewise.
13386 * config/nvptx/mutex.c: Likewise.
13387 * config/nvptx/oacc-async.c: Likewise.
13388 * config/nvptx/oacc-cuda.c: Likewise.
13389 * config/nvptx/oacc-host.c: Likewise.
13390 * config/nvptx/oacc-init.c: Likewise.
13391 * config/nvptx/oacc-mem.c: Likewise.
13392 * config/nvptx/oacc-parallel.c: Likewise.
13393 * config/nvptx/oacc-plugin.c: Likewise.
13394 * config/nvptx/omp-lock.h: Likewise.
13395 * config/nvptx/ordered.c: Likewise.
13396 * config/nvptx/parallel.c: Likewise.
13397 * config/nvptx/proc.c: Likewise.
13398 * config/nvptx/ptrlock.c: Likewise.
13399 * config/nvptx/sections.c: Likewise.
13400 * config/nvptx/sem.c: Likewise.
13401 * config/nvptx/single.c: Likewise.
13402 * config/nvptx/splay-tree.c: Likewise.
13403 * config/nvptx/target.c: Likewise.
13404 * config/nvptx/task.c: Likewise.
13405 * config/nvptx/team.c: Likewise.
13406 * config/nvptx/time.c: Likewise.
13407 * config/nvptx/work.c: Likewise.
13408 * configure.ac: Don't probe pthreads support for host nvptx*-*-*.
13409 * configure: Regenerate.
13410 * configure.tgt (config_path): Set to "nvptx" for target
13413 2015-08-10 Thomas Schwinge <thomas@codesourcery.com>
13415 * testsuite/libgomp.oacc-c-c++-common/vector-type-1.c: New file.
13417 2015-08-03 Nathan Sidwell <nathan@codesourcery.com>
13419 * plugin/plugin-nvptx.c: Don't include dlfcn.h.
13420 (cuda_errlist): Constify.
13421 (errmsg): Move into ...
13422 (cuda_error): ... here. Make smaller.
13423 (_XSTR, _STR): Delete.
13424 (cuda_synames): Delete.
13425 (verify_device_library): Delete.
13426 (nvptx_init): Don't call it.
13428 2015-07-28 Tom de Vries <tom@codesourcery.com>
13430 * testsuite/libgomp.c/uns-outer-4.c: New test.
13432 2015-07-24 Cesar Philippidis <cesar@codesourcery.com>
13434 * testsuite/libgomp.c/pr66714.c: New test.
13436 2015-07-22 Maxim Blumenthal <maxim.blumenthal@intel.com>
13439 * testsuite/libgomp.c/examples-4/simd-7.c (N): Change to 30 from 45.
13440 (fib_ref): New function.
13441 (fib): Correct corner cases in the recursion.
13442 (main): Replace the non-simd loop with fib_ref call.
13443 * testsuite/libgomp.fortran/examples-4/simd-7.f90: (fib_ref): New
13445 (fibonacci): Lower the parameter N to 30. Correct accordingly check
13446 for the last array element value. Replace the non-simd loop with
13447 fib_ref call. Remove redundant b_ref array. Remove the comparison
13448 of the last array element with according Fibonacci sequence element.
13449 (fib): Correct corner cases in the recursion.
13451 2015-07-21 Nathan Sidwell <nathan@codesourcery.com>
13453 * target.c (gomp_offload_image_to_device): Rename to ...
13454 (gomp_load_image_to_device): ... here.
13455 (GOMP_offload_register): Adjust call.
13456 (gomp_init_device): Likewise.
13457 (gomp_unload_image_from_device): New. Broken out of ...
13458 (GOMP_offload_unregister): ... here. Call it.
13459 (gomp_unload_device): New.
13460 * libgomp.h (gomp_unload_device): Declare.
13461 * oacc-init.c (acc_shutdown_1): Unload from device before deleting
13464 2015-07-20 Nathan Sidwell <nathan@codesourcery.com>
13466 * oacc-parallel.c (GOACC_parallel): Move variadic handling into
13468 (GOACC_enter_exit_data, GOACC_update): Use consistent num_waits
13470 (goacc_waits): Move !num_waits handling to ...
13471 (GOACC_wait): ... here, the only caller that might have zero waits.
13473 * plugin/plugin-nvptx.c (struct targ_fn_descriptor): Move later.
13474 (struct ptx_image_data): Move earlier, add fns field.
13475 (struct ptx_device): Add images and image_lock fields.
13476 (ptx_images, ptx_image_lock): Delete.
13477 (nvptx_open_device): Initialize images and image_lock fields.
13478 (nvptx_close_device): Destroy image_lock.
13479 (GOMP_OFFLOAD_load_image): Register image to device-specific fields.
13480 (GOMP_OFFLOAD_unload_image): Unregister image from device-specific
13483 2015-07-17 Nathan Sidwell <nathan@codesourcery.com>
13485 * target.c (GOMP_offload_register): Use int for device type arg.
13486 (GOMP_offload_unregister): Likewise.
13488 * target.c (struct_offload_image_descr): Constify host_table.
13489 (gomp_offload_image_to_device): Likewise.
13490 (GOMP_offload_register, GOMP_offload_unregister): Likewise.
13492 * libgomp.h (gomp_device_descr): Constify target data arguments.
13493 * target.c (struct offload_image_descr): Constify target_data.
13494 (gomp_offload_image_to_device): Likewise.
13495 (GOMP_offload_register): Likewise.
13496 (GOMP_offload_unregister): Likewise.
13497 * plugin/plugin-host.c (GOMP_OFFLOAD_load_image,
13498 GOMP_OFFLOAD_unload_image): Constify target data.
13499 * plugin/plugin-nvptx.c (struct ptx_image_data): Constify target data.
13500 (GOMP_OFFLOAD_load_image, GOMP_OFFLOAD_unload_image): Likewise.
13502 2015-07-16 Nathan Sidwell <nathan@codesourcery.com>
13504 * plugin/plugin-nvptx.c (link_ptx): Constify string argument.
13505 Workaround driver library const error.
13506 (struct nvptx_tdata, nvptx_tdata_t): New.
13507 (GOMP_OFFLOAD_load_image): Use struct for target_data's real
13510 2015-07-15 Maxim Blumenthal <maxim.blumenthal@intel.com>
13512 * testsuite/libgomp.fortran/examples-4/simd-8.f90: (main): Change type
13513 of EPS parameter from integer to real.
13514 * testsuite/libgomp.fortran/examples-4/task_dep-5.f90: (check): Change
13515 type of EPS parameter from integer to real.
13517 2015-07-15 Sebastian Huber <sebastian.huber@embedded-brains.de>
13519 * team.c (get_last_team): New.
13520 (gomp_new_team): Recycle last non-nested team if possible.
13521 (gomp_team_end): Move team work share list free lock destruction
13523 (free_team): ... here.
13525 2015-07-14 Maxim Blumenthal <maxim.blumenthal@intel.com>
13527 * testsuite/libgomp.c/examples-4/simd-3.c: (main): Change type of res
13528 and ref from int to double. Replaced their comparison with
13529 an inequality of their difference and EPS.
13530 * testsuite/libgomp.c/examples-4/simd-8.c: (main): Replace the
13531 comparison of pri and a reference number with an inequality of their
13532 difference and EPS.
13533 * testsuite/libgomp.fortran/examples-4/simd-3.f90: (main): Replaced
13534 the comparison of sum and sum_ref with an inequality of their
13535 difference and EPS.
13536 * testsuite/libgomp.fortran/examples-4/simd-8.f90: (main): Replace
13537 the comparison of pri and a reference number with an inequality of
13538 their difference and EPS.
13540 2015-07-13 Maxim Blumenthal <maxim.blumenthal@intel.com>
13542 * testsuite/libgomp.c++/examples-4/e.53.2.C: Renamed to...
13543 * testsuite/libgomp.c++/examples-4/declare_target-2.C: ...this.
13544 * testsuite/libgomp.c++/examples-4/e.51.5.C: Renamed to...
13545 * testsuite/libgomp.c++/examples-4/target_data-5.C: ...this.
13546 * testsuite/libgomp.c/examples-4/e.56.3.c: Renamed to...
13547 * testsuite/libgomp.c/examples-4/array_sections-3.c: ...this.
13548 * testsuite/libgomp.c/examples-4/e.56.4.c: Renamed to...
13549 * testsuite/libgomp.c/examples-4/array_sections-4.c: ...this.
13550 * testsuite/libgomp.c/examples-4/e.55.1.c: Renamed to...
13551 * testsuite/libgomp.c/examples-4/async_target-1.c: ...this.
13552 * testsuite/libgomp.c/examples-4/e.55.2.c: Renamed to...
13553 * testsuite/libgomp.c/examples-4/async_target-2.c: ...this.
13554 (vec_mult_ref): Remove v1 and v2 arguments, turn them into local
13556 (vec_mult): Likewise. Add #pragma omp taskwait.
13557 (main): Adjust caller.
13558 * testsuite/libgomp.c/examples-4/e.53.1.c: Renamed to...
13559 * testsuite/libgomp.c/examples-4/declare_target-1.c: ...this.
13560 * testsuite/libgomp.c/examples-4/e.53.3.c: Renamed to...
13561 * testsuite/libgomp.c/examples-4/declare_target-3.c: ...this.
13562 * testsuite/libgomp.c/examples-4/e.53.4.c: Renamed to...
13563 * testsuite/libgomp.c/examples-4/declare_target-4.c: ...this.
13564 * testsuite/libgomp.c/examples-4/e.53.5.c: Renamed to...
13565 * testsuite/libgomp.c/examples-4/declare_target-5.c: ...this.
13566 * testsuite/libgomp.c/examples-4/e.57.1.c: Renamed to...
13567 * testsuite/libgomp.c/examples-4/device-1.c: ...this.
13568 * testsuite/libgomp.c/examples-4/e.57.2.c: Renamed to...
13569 * testsuite/libgomp.c/examples-4/device-2.c: ...this.
13570 * testsuite/libgomp.c/examples-4/e.57.3.c: Renamed to...
13571 * testsuite/libgomp.c/examples-4/device-3.c: ...this.
13572 * testsuite/libgomp.c/examples-4/simd-1.c: New file.
13573 * testsuite/libgomp.c/examples-4/simd-2.c: New file.
13574 * testsuite/libgomp.c/examples-4/simd-3.c: New file.
13575 * testsuite/libgomp.c/examples-4/simd-4.c: New file.
13576 * testsuite/libgomp.c/examples-4/simd-5.c: New file.
13577 * testsuite/libgomp.c/examples-4/simd-6.c: New file.
13578 * testsuite/libgomp.c/examples-4/simd-7.c: New file.
13579 * testsuite/libgomp.c/examples-4/simd-8.c: New file.
13580 * testsuite/libgomp.c/examples-4/e.50.1.c: Renamed to...
13581 * testsuite/libgomp.c/examples-4/target-1.c: ...this.
13582 * testsuite/libgomp.c/examples-4/e.50.2.c: Renamed to...
13583 * testsuite/libgomp.c/examples-4/target-2.c: ...this.
13584 * testsuite/libgomp.c/examples-4/e.50.3.c: Renamed to...
13585 * testsuite/libgomp.c/examples-4/target-3.c: ...this.
13586 * testsuite/libgomp.c/examples-4/e.50.4.c: Renamed to...
13587 * testsuite/libgomp.c/examples-4/target-4.c: ...this.
13588 * testsuite/libgomp.c/examples-4/e.50.5.c: Renamed to...
13589 * testsuite/libgomp.c/examples-4/target-5.c: ...this.
13590 * testsuite/libgomp.c/examples-4/e.51.1.c: Renamed to...
13591 * testsuite/libgomp.c/examples-4/target_data-1.c: ...this.
13592 * testsuite/libgomp.c/examples-4/e.51.2.c: Renamed to...
13593 * testsuite/libgomp.c/examples-4/target_data-2.c: ...this.
13594 * testsuite/libgomp.c/examples-4/e.51.3.c: Renamed to...
13595 * testsuite/libgomp.c/examples-4/target_data-3.c: ...this.
13596 * testsuite/libgomp.c/examples-4/e.51.4.c: Renamed to...
13597 * testsuite/libgomp.c/examples-4/target_data-4.c: ...this.
13598 * testsuite/libgomp.c/examples-4/e.51.6.c: Renamed to...
13599 * testsuite/libgomp.c/examples-4/target_data-6.c: ...this.
13600 * testsuite/libgomp.c/examples-4/e.51.7.c: Renamed to...
13601 * testsuite/libgomp.c/examples-4/target_data-7.c: ...this.
13602 * testsuite/libgomp.c/examples-4/e.52.1.c: Renamed to...
13603 * testsuite/libgomp.c/examples-4/target_update-1.c: ...this.
13604 * testsuite/libgomp.c/examples-4/e.52.2.c: Renamed to...
13605 * testsuite/libgomp.c/examples-4/target_update-2.c: ...this.
13606 * testsuite/libgomp.c/examples-4/task_dep-1.c: New file.
13607 * testsuite/libgomp.c/examples-4/task_dep-2.c: New file.
13608 * testsuite/libgomp.c/examples-4/task_dep-3.c: New file.
13609 * testsuite/libgomp.c/examples-4/task_dep-4.c: New file.
13610 * testsuite/libgomp.c/examples-4/task_dep-5.c: New file.
13611 * testsuite/libgomp.c/examples-4/e.54.2.c: Renamed to...
13612 * testsuite/libgomp.c/examples-4/teams-2.c: ...this.
13613 * testsuite/libgomp.c/examples-4/e.54.3.c: Renamed to...
13614 * testsuite/libgomp.c/examples-4/teams-3.c: ...this.
13615 * testsuite/libgomp.c/examples-4/e.54.4.c: Renamed to...
13616 * testsuite/libgomp.c/examples-4/teams-4.c: ...this.
13617 * testsuite/libgomp.c/examples-4/e.54.5.c: Renamed to...
13618 * testsuite/libgomp.c/examples-4/teams-5.c: ...this.
13619 * testsuite/libgomp.c/examples-4/e.54.6.c: Renamed to...
13620 * testsuite/libgomp.c/examples-4/teams-6.c: ...this.
13621 * testsuite/libgomp.fortran/examples-4/e.56.3.f90: Renamed to...
13622 * testsuite/libgomp.fortran/examples-4/array_sections-3.f90: ...this.
13623 * testsuite/libgomp.fortran/examples-4/e.56.4.f90: Renamed to...
13624 * testsuite/libgomp.fortran/examples-4/array_sections-4.f90: ...this.
13625 * testsuite/libgomp.fortran/examples-4/e.55.1.f90: Renamed to...
13626 * testsuite/libgomp.fortran/examples-4/async_target-1.f90: ...this.
13627 * testsuite/libgomp.fortran/examples-4/e.55.2.f90: Renamed to...
13628 * testsuite/libgomp.fortran/examples-4/async_target-2.f90: ...this.
13629 (vec_mult): Add !$omp taskwait.
13630 * testsuite/libgomp.fortran/examples-4/e.53.1.f90: Renamed to...
13631 * testsuite/libgomp.fortran/examples-4/declare_target-1.f90: ...this.
13632 * testsuite/libgomp.fortran/examples-4/e.53.2.f90: Renamed to...
13633 * testsuite/libgomp.fortran/examples-4/declare_target-2.f90: ...this.
13634 * testsuite/libgomp.fortran/examples-4/e.53.3.f90: Renamed to...
13635 * testsuite/libgomp.fortran/examples-4/declare_target-3.f90: ...this.
13636 * testsuite/libgomp.fortran/examples-4/e.53.4.f90: Renamed to...
13637 * testsuite/libgomp.fortran/examples-4/declare_target-4.f90: ...this.
13638 * testsuite/libgomp.fortran/examples-4/e.53.5.f90: Renamed to...
13639 * testsuite/libgomp.fortran/examples-4/declare_target-5.f90: ...this.
13640 * testsuite/libgomp.fortran/examples-4/e.57.1.f90: Renamed to...
13641 * testsuite/libgomp.fortran/examples-4/device-1.f90: ...this.
13642 * testsuite/libgomp.fortran/examples-4/e.57.2.f90: Renamed to...
13643 * testsuite/libgomp.fortran/examples-4/device-2.f90: ...this.
13644 * testsuite/libgomp.fortran/examples-4/e.57.3.f90: Renamed to...
13645 * testsuite/libgomp.fortran/examples-4/device-3.f90: ...this.
13646 * testsuite/libgomp.fortran/examples-4/simd-1.f90: New file.
13647 * testsuite/libgomp.fortran/examples-4/simd-2.f90: New file.
13648 * testsuite/libgomp.fortran/examples-4/simd-3.f90: New file.
13649 * testsuite/libgomp.fortran/examples-4/simd-4.f90: New file.
13650 * testsuite/libgomp.fortran/examples-4/simd-5.f90: New file.
13651 * testsuite/libgomp.fortran/examples-4/simd-6.f90: New file.
13652 * testsuite/libgomp.fortran/examples-4/simd-7.f90: New file.
13653 * testsuite/libgomp.fortran/examples-4/simd-8.f90: New file.
13654 * testsuite/libgomp.fortran/examples-4/e.50.1.f90: Renamed to...
13655 * testsuite/libgomp.fortran/examples-4/target-1.f90: ...this.
13656 * testsuite/libgomp.fortran/examples-4/e.50.2.f90: Renamed to...
13657 * testsuite/libgomp.fortran/examples-4/target-2.f90: ...this.
13658 * testsuite/libgomp.fortran/examples-4/e.50.3.f90: Renamed to...
13659 * testsuite/libgomp.fortran/examples-4/target-3.f90: ...this.
13660 * testsuite/libgomp.fortran/examples-4/e.50.4.f90: Renamed to...
13661 * testsuite/libgomp.fortran/examples-4/target-4.f90: ...this.
13662 * testsuite/libgomp.fortran/examples-4/e.50.5.f90: Renamed to...
13663 * testsuite/libgomp.fortran/examples-4/target-5.f90: ...this.
13664 * testsuite/libgomp.fortran/examples-4/e.51.1.f90: Renamed to...
13665 * testsuite/libgomp.fortran/examples-4/target_data-1.f90: ...this.
13666 * testsuite/libgomp.fortran/examples-4/e.51.2.f90: Renamed to...
13667 * testsuite/libgomp.fortran/examples-4/target_data-2.f90: ...this.
13668 * testsuite/libgomp.fortran/examples-4/e.51.3.f90: Renamed to...
13669 * testsuite/libgomp.fortran/examples-4/target_data-3.f90: ...this.
13670 * testsuite/libgomp.fortran/examples-4/e.51.4.f90: Renamed to...
13671 * testsuite/libgomp.fortran/examples-4/target_data-4.f90: ...this.
13672 * testsuite/libgomp.fortran/examples-4/e.51.5.f90: Renamed to...
13673 * testsuite/libgomp.fortran/examples-4/target_data-5.f90: ...this.
13674 * testsuite/libgomp.fortran/examples-4/e.51.6.f90: Renamed to...
13675 * testsuite/libgomp.fortran/examples-4/target_data-6.f90: ...this.
13676 * testsuite/libgomp.fortran/examples-4/e.51.7.f90: Renamed to...
13677 * testsuite/libgomp.fortran/examples-4/target_data-7.f90: ...this.
13678 * testsuite/libgomp.fortran/examples-4/e.52.1.f90: Renamed to...
13679 * testsuite/libgomp.fortran/examples-4/target_update-1.f90: ...this.
13680 * testsuite/libgomp.fortran/examples-4/e.52.2.f90: Renamed to...
13681 * testsuite/libgomp.fortran/examples-4/target_update-2.f90: ...this.
13682 * testsuite/libgomp.fortran/examples-4/task_dep-1.f90: New file.
13683 * testsuite/libgomp.fortran/examples-4/task_dep-2.f90: New file.
13684 * testsuite/libgomp.fortran/examples-4/task_dep-3.f90: New file.
13685 * testsuite/libgomp.fortran/examples-4/task_dep-4.f90: New file.
13686 * testsuite/libgomp.fortran/examples-4/task_dep-5.f90: New file.
13687 * testsuite/libgomp.fortran/examples-4/e.54.2.f90: Renamed to...
13688 * testsuite/libgomp.fortran/examples-4/teams-2.f90: ...this.
13689 * testsuite/libgomp.fortran/examples-4/e.54.3.f90: Renamed to...
13690 * testsuite/libgomp.fortran/examples-4/teams-3.f90: ...this.
13691 * testsuite/libgomp.fortran/examples-4/e.54.4.f90: Renamed to...
13692 * testsuite/libgomp.fortran/examples-4/teams-4.f90: ...this.
13693 * testsuite/libgomp.fortran/examples-4/e.54.5.f90: Renamed to...
13694 * testsuite/libgomp.fortran/examples-4/teams-5.f90: ...this.
13695 * testsuite/libgomp.fortran/examples-4/e.54.6.f90: Renamed to...
13696 * testsuite/libgomp.fortran/examples-4/teams-6.f90: ...this.
13698 2015-07-10 Tom de Vries <tom@codesourcery.com>
13700 * testsuite/libgomp.fortran/parloops-exit-first-loop-alt-2.f95: New test.
13701 * testsuite/libgomp.fortran/parloops-exit-first-loop-alt.f95: New test.
13703 2015-07-08 Thomas Schwinge <thomas@codesourcery.com>
13706 * plugin/plugin-nvptx.c (nvptx_get_num_devices): Return 0 if not
13707 in a 64-bit configuration.
13708 * testsuite/libgomp.oacc-c++/c++.exp: Don't attempt nvidia
13709 offloading testing if no such device is available.
13710 * testsuite/libgomp.oacc-c/c.exp: Likewise.
13711 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
13713 2015-07-08 Tom de Vries <tom@codesourcery.com>
13715 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c (main): Fix
13717 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: Same.
13719 2015-07-07 Tom de Vries <tom@codesourcery.com>
13721 PR tree-optimization/66642
13722 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c (main): Test low
13723 iteration count case.
13724 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c (init): New
13725 function, factor out of ...
13726 (main): ... here. Test low iteration count case.
13728 2015-07-06 Sebastian Huber <sebastian.huber@embedded-brains.de>
13730 * libgomp.h (gomp_thread_pool): Comment last_team field.
13732 2015-07-02 Uros Bizjak <ubizjak@gmail.com>
13734 * testsuite/libgomp.c++/pr66702-1.C: Require
13735 vect_simd_clones effective target.
13736 * testsuite/libgomp.c++/pr66702-2.C: Ditto.
13738 2015-06-30 Tom de Vries <tom@codesourcery.com>
13740 * testsuite/libgomp.oacc-c++/c++.exp: Set DEFAULT_CFLAGS to -O2 if not
13741 already set. Use DEFAULT_CFLAGS in dg-runtest.
13742 * testsuite/libgomp.oacc-c-c++-common/collapse-3.c: Remove dg-options
13745 2015-06-30 Tom de Vries <tom@codesourcery.com>
13747 * testsuite/libgomp.c++/c++.exp: Set DEFAULT_CFLAGS to -O2 if not
13748 already set. Use DEFAULT_CFLAGS in dg-runtest.
13749 * testsuite/libgomp.c++/atomic-16.C: Remove dg-options "-O2 -fopenmp".
13750 * testsuite/libgomp.c++/pr64824.C: Same.
13751 * testsuite/libgomp.c++/pr64868.C: Same.
13752 * testsuite/libgomp.c++/pr66199-1.C: Same.
13753 * testsuite/libgomp.c++/pr66199-2.C: Same.
13754 * testsuite/libgomp.c++/target-2.C: Same.
13755 * testsuite/libgomp.c++/for-7.C: Use dg-additional-options for
13756 -std=<standard> option.
13757 * testsuite/libgomp.c++/udr-11.C: Same.
13758 * testsuite/libgomp.c++/udr-12.C: Same.
13759 * testsuite/libgomp.c++/udr-13.C: Same.
13760 * testsuite/libgomp.c++/udr-14.C: Same.
13761 * testsuite/libgomp.c++/udr-15.C: Same.
13762 * testsuite/libgomp.c++/udr-16.C: Same.
13763 * testsuite/libgomp.c++/udr-17.C: Same.
13764 * testsuite/libgomp.c++/udr-18.C: Same.
13765 * testsuite/libgomp.c++/udr-19.C: Same.
13766 * testsuite/libgomp.c++/atomic-1.C: Remove dg-options "-O2".
13767 * testsuite/libgomp.c++/simd-1.C: Same.
13768 * testsuite/libgomp.c++/simd-2.C: Same.
13769 * testsuite/libgomp.c++/simd-3.C: Same.
13770 * testsuite/libgomp.c++/simd-4.C: Same.
13771 * testsuite/libgomp.c++/simd-5.C: Same.
13772 * testsuite/libgomp.c++/simd-6.C: Same.
13773 * testsuite/libgomp.c++/simd-7.C: Same.
13774 * testsuite/libgomp.c++/simd-8.C: Same.
13775 * testsuite/libgomp.c++/simd-9.C: Same.
13776 * testsuite/libgomp.c++/simd10.C: Same.
13777 * testsuite/libgomp.c++/simd11.C: Same.
13778 * testsuite/libgomp.c++/simd12.C: Same.
13779 * testsuite/libgomp.c++/simd13.C: Same.
13781 2015-06-30 Jakub Jelinek <jakub@redhat.com>
13783 PR middle-end/66702
13784 * testsuite/libgomp.c++/pr66702-1.C: New test.
13785 * testsuite/libgomp.c++/pr66702-2.C: New test.
13787 2015-06-30 Tom de Vries <tom@codesourcery.com>
13789 * testsuite/libgomp.c/parloops-exit-first-loop-alt-5.c: New test.
13790 * testsuite/libgomp.c/parloops-exit-first-loop-alt-6.c: New test.
13791 * testsuite/libgomp.c/parloops-exit-first-loop-alt-7.c: New test.
13792 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: Update comment.
13794 2015-06-30 Tom de Vries <tom@codesourcery.com>
13796 PR tree-optimization/66652
13797 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c (f): Rewrite
13798 using restrict pointers.
13799 (main): Add arguments to calls to f.
13800 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: Same.
13802 2015-06-23 Andreas Tobler <andreast@gcc.gnu.org>
13804 * configure.ac: Fix check for header <sys/sysctl.h>.
13805 * configure: Regenerate.
13806 * config.h.in: Likewise.
13808 2015-06-23 Tom de Vries <tom@codesourcery.com>
13810 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c (main): Use
13812 * testsuite/libgomp.c/parloops-exit-first-loop-alt-4.c (main): Same.
13814 2015-06-19 Thomas Schwinge <thomas@codesourcery.com>
13816 * testsuite/libgomp.oacc-c-c++-common/lib-62.c: Only consider for
13820 * testsuite/libgomp.oacc-c-c++-common/lib-3.c: XFAIL.
13821 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
13823 2015-06-15 Tom de Vries <tom@codesourcery.com>
13825 * testsuite/libgomp.c/atomic-1.c: Remove dg-options "-O2". Use
13826 dg-additional-options for any remaining options.
13827 * testsuite/libgomp.c/atomic-2.c: Same.
13828 * testsuite/libgomp.c/atomic-4.c: Same.
13829 * testsuite/libgomp.c/atomic-5.c: Same.
13830 * testsuite/libgomp.c/atomic-6.c: Same.
13831 * testsuite/libgomp.c/autopar-1.c: Same.
13832 * testsuite/libgomp.c/copyin-1.c: Same.
13833 * testsuite/libgomp.c/copyin-2.c: Same.
13834 * testsuite/libgomp.c/copyin-3.c: Same.
13835 * testsuite/libgomp.c/examples-4/e.53.5.c: Same.
13836 * testsuite/libgomp.c/nestedfn-5.c: Same.
13837 * testsuite/libgomp.c/parloops-exit-first-loop-alt-2.c: Same.
13838 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c: Same.
13839 * testsuite/libgomp.c/parloops-exit-first-loop-alt-4.c: Same.
13840 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: Same.
13841 * testsuite/libgomp.c/pr32362-1.c: Same.
13842 * testsuite/libgomp.c/pr32362-2.c: Same.
13843 * testsuite/libgomp.c/pr32362-3.c: Same.
13844 * testsuite/libgomp.c/pr39591-1.c: Same.
13845 * testsuite/libgomp.c/pr39591-2.c: Same.
13846 * testsuite/libgomp.c/pr39591-3.c: Same.
13847 * testsuite/libgomp.c/pr58392.c: Same.
13848 * testsuite/libgomp.c/pr58756.c: Same.
13849 * testsuite/libgomp.c/simd-1.c: Same.
13850 * testsuite/libgomp.c/simd-10.c: Same.
13851 * testsuite/libgomp.c/simd-11.c: Same.
13852 * testsuite/libgomp.c/simd-12.c: Same.
13853 * testsuite/libgomp.c/simd-13.c: Same.
13854 * testsuite/libgomp.c/simd-14.c: Same.
13855 * testsuite/libgomp.c/simd-15.c: Same.
13856 * testsuite/libgomp.c/simd-2.c: Same.
13857 * testsuite/libgomp.c/simd-3.c: Same.
13858 * testsuite/libgomp.c/simd-4.c: Same.
13859 * testsuite/libgomp.c/simd-5.c: Same.
13860 * testsuite/libgomp.c/simd-6.c: Same.
13861 * testsuite/libgomp.c/simd-7.c: Same.
13862 * testsuite/libgomp.c/simd-8.c: Same.
13863 * testsuite/libgomp.c/simd-9.c: Same.
13865 2015-06-15 Tom de Vries <tom@codesourcery.com>
13867 * testsuite/libgomp.c/pr35625.c: Fix typo.
13869 2015-06-15 Tom de Vries <tom@codesourcery.com>
13871 * testsuite/libgomp.c/atomic-18.c: Remove superfluous -fopenmp setting
13873 * testsuite/libgomp.c/atomic-3.c: Same.
13874 * testsuite/libgomp.c/debug-1.c: Same.
13875 * testsuite/libgomp.c/nqueens-1.c: Same.
13876 * testsuite/libgomp.c/pr26171.c: Same.
13877 * testsuite/libgomp.c/pr48591.c: Same.
13878 * testsuite/libgomp.c/pr64824.c: Same.
13879 * testsuite/libgomp.c/pr64868.c: Same.
13880 * testsuite/libgomp.c/pr66133.c: Same.
13881 * testsuite/libgomp.c/pr66199-1.c: Same.
13882 * testsuite/libgomp.c/pr66199-2.c: Same.
13883 * testsuite/libgomp.c/target-8.c: Same.
13885 2015-06-15 Tom de Vries <tom@codesourcery.com>
13887 * testsuite/libgomp.c/collapse-3.c: Use dg-additional-options for
13889 * testsuite/libgomp.c/for-1.c: Same.
13890 * testsuite/libgomp.c/for-2.c: Same.
13891 * testsuite/libgomp.c/for-3.c: Same.
13892 * testsuite/libgomp.c/pr35625.c: Same.
13893 * testsuite/libgomp.c/pr39154.c: Same.
13894 * testsuite/libgomp.c/simd-16.c: Same.
13895 * testsuite/libgomp.c/simd-17.c: Same.
13897 2015-06-13 Tom de Vries <tom@codesourcery.com>
13899 * testsuite/libgomp.c/parloops-exit-first-loop-alt-4.c: New test.
13901 2015-06-13 Tom de Vries <tom@codesourcery.com>
13903 * testsuite/libgomp.c/parloops-exit-first-loop-alt-2.c: Add comment.
13904 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: Same.
13905 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c: Add comment.
13907 (main): Use N instead of hardcoded constants.
13909 2015-06-05 Tom de Vries <tom@codesourcery.com>
13911 merge from gomp4 branch:
13912 2015-05-28 Tom de Vries <tom@codesourcery.com>
13914 PR tree-optimization/65443
13915 * testsuite/libgomp.c/parloops-exit-first-loop-alt-2.c: New test.
13916 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c: New test.
13917 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: New test.
13919 2015-05-29 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
13921 * testsuite/libgomp.graphite/bounds.c: Adjust for
13922 cleanup-tree-dump removal.
13923 * testsuite/libgomp.graphite/force-parallel-1.c: Likewise.
13924 * testsuite/libgomp.graphite/force-parallel-2.c: Likewise.
13925 * testsuite/libgomp.graphite/force-parallel-3.c: Likewise.
13926 * testsuite/libgomp.graphite/force-parallel-4.c: Likewise.
13927 * testsuite/libgomp.graphite/force-parallel-5.c: Likewise.
13928 * testsuite/libgomp.graphite/force-parallel-6.c: Likewise.
13929 * testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
13930 * testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
13931 * testsuite/libgomp.graphite/force-parallel-9.c: Likewise.
13932 * testsuite/libgomp.graphite/pr41118.c: Likewise.
13934 2015-05-28 Uros Bizjak <ubizjak@gmail.com>
13936 * config/linux/x86/futex.h (sys_futex0) [!__x86_64__]: Remove function.
13937 (futex_wait) [!__x86_64__]: Use __asm operand instead of sys_futex0.
13938 (futex_wake) [!__x86_64__]: Ditto.
13940 2015-05-28 Julian Brown <julian@codesourcery.com>
13942 * oacc-init.c (resolve_device): Add FAIL_IS_ERROR argument. Update
13943 function comment. Only call gomp_fatal if new argument is true.
13944 (acc_dev_num_out_of_range): New function.
13945 (acc_init_1, acc_shutdown_1): Update call to resolve_device. Call
13946 acc_dev_num_out_of_range as appropriate.
13947 (acc_get_num_devices, acc_set_device_type, acc_get_device_type)
13948 (acc_get_device_num, acc_set_device_num): Update calls to
13950 * testsuite/libgomp.oacc-c-c++-common/lib-4.c: Update expected test
13953 2015-05-28 Julian Brown <julian@codesourcery.com>
13956 * oacc-init.c (plugin/plugin-host.h): Include.
13957 (acc_on_device): Check whether we're in an offloaded region for
13959 plugin. Don't use __builtin_acc_on_device.
13960 * plugin/plugin-host.c (GOMP_OFFLOAD_openacc_parallel): Set
13961 nonshm_exec flag in thread-local data.
13962 (GOMP_OFFLOAD_openacc_create_thread_data): Allocate thread-local
13963 data for host_nonshm plugin.
13964 (GOMP_OFFLOAD_openacc_destroy_thread_data): Free thread-local data
13965 for host_nonshm plugin.
13966 * plugin/plugin-host.h: New.
13968 2015-05-27 Uros Bizjak <ubizjak@gmail.com>
13970 * config/linux/ia64/futex.h (sys_futex0) Change operand "op" to int.
13972 2015-05-27 Uros Bizjak <ubizjak@gmail.com>
13974 * config/linux/wait.h (gomp_futex_wait, gomp_futex_wake):
13976 (FUTEX_PRIVATE_FLAG): Remove L suffix.
13977 * config/linux/mutex.c (gomp_futex_wait, gomp_futex_wake):
13980 2015-05-27 Uros Bizjak <ubizjak@gmail.com>
13982 * config/linux/x86/futex.h (sys_futex0) [__PIC__]: Remove function.
13984 2015-05-27 Chung-Lin Tang <cltang@codesourcery.com>
13986 * target.c (gomp_map_pointer): New function abstracting out
13987 GOMP_MAP_POINTER handling.
13988 (gomp_map_vars): Remove GOMP_MAP_POINTER handling code and use
13989 gomp_map_pointer().
13991 2015-05-19 Jakub Jelinek <jakub@redhat.com>
13993 PR middle-end/66199
13994 * testsuite/libgomp.c/pr66199-1.c: New test.
13995 * testsuite/libgomp.c/pr66199-2.c: New test.
13996 * testsuite/libgomp.c++/pr66199-1.C: New test.
13997 * testsuite/libgomp.c++/pr66199-2.C: New test.
13998 * testsuite/libgomp.fortran/pr66199-1.f90: New test.
13999 * testsuite/libgomp.fortran/pr66199-2.f90: New test.
14001 2015-05-19 Julian Brown <julian@codesourcery.com>
14003 * plugin/plugin-nvptx.c (nvptx_get_num_devices): Return zero
14006 2015-05-13 Jakub Jelinek <jakub@redhat.com>
14008 PR middle-end/66133
14009 * testsuite/libgomp.c/pr66133.c: New test.
14011 2015-05-13 Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
14013 * Makefile.in: Regenerated with automake-1.11.6.
14014 * aclocal.m4: Likewise.
14015 * config.h.in: Likewise.
14016 * configure: Likewise.
14017 * testsuite/Makefile.in: Likewise.
14019 2015-05-08 Jason Merrill <jason@redhat.com>
14021 * testsuite/libgomp.oacc-c-c++-common/reduction-4.c (main): Use
14024 * openacc.h (__GOACC_NOTHROW): Fix noexcept syntax.
14026 2015-05-06 Julian Brown <julian@codesourcery.com>
14028 * oacc-init.c (acc_device_lock): Add explanatory comment.
14029 (resolve_device): Add comment about locking requirement.
14030 (acc_init_1, acc_shutdown_1): Likewise. Add locking around
14031 gomp_init_device and gomp_fini_device calls.
14032 (acc_get_num_devices, acc_set_device_type, acc_get_device_type)
14033 (acc_get_device_num, acc_set_device_num): Add locking around
14034 resolve_device and gomp_init_device calls.
14036 2015-05-06 Julian Brown <julian@codesourcery.com>
14038 * oacc-init.c (acc_shutdown_1): Call gomp_mutex_unlock for
14039 goacc_thread_lock on error paths.
14040 * oacc-mem.c (lookup_host): Remove locking from function. Note
14041 locking requirement for caller in function comment.
14042 (lookup_dev): Likewise.
14043 (acc_free, acc_deviceptr, acc_hostptr, acc_is_present)
14044 (acc_map_data, acc_unmap_data, present_create_copy, delete_copyout)
14045 (update_dev_host, gomp_acc_insert_pointer, gomp_acc_remove_pointer):
14048 2015-05-05 Thomas Schwinge <thomas@codesourcery.com>
14052 * testsuite/libgomp.oacc-c-c++-common/clauses-2.c: In dg-output,
14053 don't expect "0x" prefix for "%p" format specifier, don't expect
14054 "(nil)" for NULL pointer.
14055 * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
14056 * testsuite/libgomp.oacc-c-c++-common/lib-17.c: Likewise.
14057 * testsuite/libgomp.oacc-c-c++-common/lib-18.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-25.c: Likewise.
14063 * testsuite/libgomp.oacc-c-c++-common/lib-26.c: Likewise.
14064 * testsuite/libgomp.oacc-c-c++-common/lib-27.c: Likewise.
14065 * testsuite/libgomp.oacc-c-c++-common/lib-28.c: Likewise.
14066 * testsuite/libgomp.oacc-c-c++-common/lib-29.c: Likewise.
14067 * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
14068 * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
14069 * testsuite/libgomp.oacc-c-c++-common/lib-35.c: Likewise.
14070 * testsuite/libgomp.oacc-c-c++-common/lib-36.c: Likewise.
14071 * testsuite/libgomp.oacc-c-c++-common/lib-39.c: Likewise.
14072 * testsuite/libgomp.oacc-c-c++-common/lib-40.c: Likewise.
14073 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
14074 * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Likewise.
14075 * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
14076 * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Likewise.
14077 * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
14078 * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Likewise.
14079 * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
14080 * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
14081 * testsuite/libgomp.oacc-c-c++-common/lib-57.c: Likewise.
14082 * testsuite/libgomp.oacc-c-c++-common/lib-58.c: Likewise.
14083 * testsuite/libgomp.oacc-c-c++-common/data-already-1.c: More
14084 accurately specify what we're looking for.
14085 * testsuite/libgomp.oacc-c-c++-common/data-already-2.c: Likewise.
14086 * testsuite/libgomp.oacc-c-c++-common/data-already-8.c: Likewise.
14087 * testsuite/libgomp.oacc-fortran/data-already-1.f: Likewise.
14088 * testsuite/libgomp.oacc-fortran/data-already-2.f: Likewise.
14089 * testsuite/libgomp.oacc-fortran/data-already-8.f: Likewise.
14091 2015-04-30 James Norris <jnorris@codesourcery.com>
14094 * testsuite/lib/libgomp.exp
14095 (check_effective_target_openacc_host_selected)
14096 (check_effective_target_openacc_host_nonshm_selected): New
14098 * testsuite/libgomp.oacc-c-c++-common/clauses-2.c: Fix misuse of
14100 * testsuite/libgomp.oacc-c-c++-common/lib-1.c: Likewise.
14101 * testsuite/libgomp.oacc-c-c++-common/lib-11.c: Likewise.
14102 * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
14103 * testsuite/libgomp.oacc-c-c++-common/lib-17.c: Likewise.
14104 * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
14105 * testsuite/libgomp.oacc-c-c++-common/lib-2.c: Likewise.
14106 * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
14107 * testsuite/libgomp.oacc-c-c++-common/lib-21.c: Likewise.
14108 * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Likewise.
14109 * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
14110 * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
14111 * testsuite/libgomp.oacc-c-c++-common/lib-26.c: Likewise.
14112 * testsuite/libgomp.oacc-c-c++-common/lib-27.c: Likewise.
14113 * testsuite/libgomp.oacc-c-c++-common/lib-28.c: Likewise.
14114 * testsuite/libgomp.oacc-c-c++-common/lib-29.c: Likewise.
14115 * testsuite/libgomp.oacc-c-c++-common/lib-3.c: Likewise.
14116 * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
14117 * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
14118 * testsuite/libgomp.oacc-c-c++-common/lib-35.c: Likewise.
14119 * testsuite/libgomp.oacc-c-c++-common/lib-36.c: Likewise.
14120 * testsuite/libgomp.oacc-c-c++-common/lib-39.c: Likewise.
14121 * testsuite/libgomp.oacc-c-c++-common/lib-4.c: Likewise.
14122 * testsuite/libgomp.oacc-c-c++-common/lib-40.c: Likewise.
14123 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
14124 * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Likewise.
14125 * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
14126 * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Likewise.
14127 * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
14128 * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Likewise.
14129 * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
14130 * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
14131 * testsuite/libgomp.oacc-c-c++-common/lib-57.c: Likewise.
14132 * testsuite/libgomp.oacc-c-c++-common/lib-58.c: Likewise.
14133 * testsuite/libgomp.oacc-c-c++-common/lib-62.c: Likewise.
14134 * testsuite/libgomp.oacc-c-c++-common/lib-63.c: Likewise.
14135 * testsuite/libgomp.oacc-c-c++-common/lib-64.c: Likewise.
14136 * testsuite/libgomp.oacc-c-c++-common/lib-65.c: Likewise.
14137 * testsuite/libgomp.oacc-c-c++-common/lib-67.c: Likewise.
14138 * testsuite/libgomp.oacc-c-c++-common/lib-68.c: Likewise.
14139 * testsuite/libgomp.oacc-c-c++-common/lib-71.c: Likewise.
14140 * testsuite/libgomp.oacc-c-c++-common/lib-77.c: Likewise.
14141 * testsuite/libgomp.oacc-c-c++-common/lib-80.c: Likewise.
14142 * testsuite/libgomp.oacc-c-c++-common/present-1.c: Likewise.
14144 2015-04-08 Julian Brown <julian@codesourcery.com>
14146 * libgomp.h (target_mem_desc: Remove mem_map field.
14147 (acc_dispatch_t): Remove open_device_func, close_device_func,
14148 get_device_num_func, set_device_num_func, target_data members.
14149 Change create_thread_data_func argument to device number instead of
14151 * oacc-async.c (assert.h): Include.
14152 (acc_async_test, acc_async_test_all, acc_wait, acc_wait_async)
14153 (acc_wait_all, acc_wait_all_async): Use current host thread's
14154 active device, not base_dev.
14155 * oacc-cuda.c (acc_get_current_cuda_device)
14156 (acc_get_current_cuda_context, acc_get_cuda_stream)
14157 (acc_set_cuda_stream): Likewise.
14158 * oacc-host.c (host_dispatch): Don't set open_device_func,
14159 close_device_func, get_device_num_func or set_device_num_func.
14160 * oacc-init.c (base_dev, init_key): Remove.
14161 (cached_base_dev): New.
14162 (name_of_acc_device_t): New.
14163 (acc_init_1): Initialise default-numbered device, not zeroth.
14164 (acc_shutdown_1): Close all devices of a given type.
14165 (goacc_destroy_thread): Don't use base_dev.
14166 (lazy_open, lazy_init, lazy_init_and_open): Remove.
14167 (goacc_attach_host_thread_to_device): New.
14168 (acc_init): Reimplement with goacc_attach_host_thread_to_device.
14169 (acc_get_num_devices): Don't use base_dev.
14170 (acc_set_device_type): Reimplement.
14171 (acc_get_device_type): Don't use base_dev.
14172 (acc_get_device_num): Tweak logic.
14173 (acc_set_device_num): Likewise.
14174 (acc_on_device): Use acc_get_device_type.
14175 (goacc_runtime_initialize): Initialize cached_base_dev not base_dev.
14176 (goacc_lazy_initialize): Reimplement with acc_init and
14177 goacc_attach_host_thread_to_device.
14178 * oacc-int.h (goacc_thread): Add base_dev field.
14179 (base_dev): Remove extern declaration.
14180 (goacc_attach_host_thread_to_device): Add prototype.
14181 * oacc-mem.c (acc_malloc): Use current thread's device instead of
14183 (acc_free): Likewise.
14184 (acc_memcpy_to_device): Likewise.
14185 (acc_memcpy_from_device): Likewise.
14186 * oacc-parallel.c (select_acc_device): Remove. Replace calls with
14187 goacc_lazy_initialize (throughout).
14188 (GOACC_parallel): Use tgt_offset to locate target functions.
14189 * target.c (gomp_map_vars): Don't set tgt->mem_map.
14190 (gomp_unmap_vars): Use devicep->mem_map pointer not tgt->mem_map.
14191 (gomp_load_plugin_for_device): Remove open_device, close_device,
14192 get_device_num, set_device_num openacc hook initialisation. Don't set
14193 openacc.target_data.
14194 * plugin/plugin-host.c (GOMP_OFFLOAD_openacc_open_device)
14195 (GOMP_OFFLOAD_openacc_close_device)
14196 (GOMP_OFFLOAD_openacc_get_device_num)
14197 (GOMP_OFFLOAD_openacc_set_device_num): Remove.
14198 (GOMP_OFFLOAD_openacc_create_thread_data): Change (unused) argument
14200 * plugin/plugin-nvptx.c (ptx_inited): Remove.
14201 (instantiated_devices, ptx_dev_lock): New.
14202 (struct ptx_image_data): New.
14203 (ptx_devices, ptx_images, ptx_image_lock): New.
14204 (fini_streams_for_device): Reorder cuStreamDestroy call.
14205 (nvptx_get_num_devices): Remove forward declaration.
14206 (nvptx_init): Change return type to bool.
14207 (nvptx_fini): Remove.
14208 (nvptx_attach_host_thread_to_device): New.
14209 (nvptx_open_device): Return struct ptx_device* instead of void*.
14210 (nvptx_close_device): Change argument type to struct ptx_device*,
14211 return type to void.
14212 (nvptx_get_num_devices): Use instantiated_devices not ptx_inited.
14213 (kernel_target_data, kernel_host_table): Remove static globals.
14214 (GOMP_OFFLOAD_register_image, GOMP_OFFLOAD_get_table): Remove.
14215 (GOMP_OFFLOAD_init_device): Reimplement.
14216 (GOMP_OFFLOAD_fini_device): Likewise.
14217 (GOMP_OFFLOAD_load_image, GOMP_OFFLOAD_unload_image): New.
14218 (GOMP_OFFLOAD_alloc, GOMP_OFFLOAD_free, GOMP_OFFLOAD_dev2host)
14219 (GOMP_OFFLOAD_host2dev): Use ORD argument.
14220 (GOMP_OFFLOAD_openacc_open_device)
14221 (GOMP_OFFLOAD_openacc_close_device)
14222 (GOMP_OFFLOAD_openacc_set_device_num)
14223 (GOMP_OFFLOAD_openacc_get_device_num): Remove.
14224 (GOMP_OFFLOAD_openacc_create_thread_data): Change argument to int
14228 * libgomp.oacc-c-c++-common/lib-9.c: Fix devnum check in test.
14230 2015-04-06 Ilya Verbin <ilya.verbin@intel.com>
14232 * libgomp-plugin.h (struct mapping_table): Replace with addr_pair.
14233 * libgomp.h (struct gomp_memory_mapping): Remove.
14234 (struct target_mem_desc): Change type of mem_map from
14235 gomp_memory_mapping * to splay_tree_s *.
14236 (struct gomp_device_descr): Remove register_image_func, get_table_func.
14237 Add load_image_func, unload_image_func.
14238 Change type of mem_map from gomp_memory_mapping to splay_tree_s.
14239 Remove offload_regions_registered.
14240 (gomp_init_tables): Remove.
14241 (gomp_free_memmap): Change type of argument from gomp_memory_mapping *
14243 * libgomp.map (GOMP_4.0.1): Add GOMP_offload_unregister.
14244 * oacc-host.c (host_dispatch): Do not initialize register_image_func,
14245 get_table_func, mem_map.is_initialized, mem_map.splay_tree.root,
14246 offload_regions_registered.
14247 Initialize load_image_func, unload_image_func, mem_map.root.
14248 (goacc_host_init): Do not initialize host_dispatch.mem_map.lock.
14249 * oacc-init.c (lazy_open): Don't call gomp_init_tables.
14250 (acc_shutdown_1): Use dev's lock and splay_tree instead of mem_map's.
14251 * oacc-mem.c (lookup_host): Get gomp_device_descr *dev instead of
14252 gomp_memory_mapping *. Use dev's lock and splay_tree.
14253 (lookup_dev): Use dev's lock.
14254 (acc_deviceptr): Pass dev to lookup_host instead of mem_map.
14255 (acc_is_present): Likewise.
14256 (acc_map_data): Likewise.
14257 (acc_unmap_data): Likewise. Use dev's lock.
14258 (present_create_copy): Likewise.
14259 (delete_copyout): Pass dev to lookup_host instead of mem_map.
14260 (update_dev_host): Likewise.
14261 (gomp_acc_remove_pointer): Likewise. Use dev's lock.
14262 * oacc-parallel.c (GOACC_parallel): Use dev's lock and splay_tree.
14263 * plugin/plugin-host.c (GOMP_OFFLOAD_register_image): Remove.
14264 (GOMP_OFFLOAD_get_table): Remove
14265 (GOMP_OFFLOAD_load_image): New function.
14266 (GOMP_OFFLOAD_unload_image): New function.
14267 * target.c (register_lock): New mutex for offload image registration.
14268 (num_devices): Do not guard with PLUGIN_SUPPORT.
14269 (gomp_realloc_unlock): New static function.
14270 (gomp_map_vars_existing): Add device descriptor argument. Unlock mutex
14272 (gomp_map_vars): Use dev's lock and splay_tree instead of mem_map's.
14273 Pass devicep to gomp_map_vars_existing. Unlock mutex before gomp_fatal.
14274 (gomp_copy_from_async): Use dev's lock and splay_tree instead of
14276 (gomp_unmap_vars): Likewise.
14277 (gomp_update): Remove gomp_memory_mapping argument. Use dev's lock and
14278 splay_tree instead of mm's. Unlock mutex before gomp_fatal.
14279 (gomp_offload_image_to_device): New static function.
14280 (GOMP_offload_register): Add mutex lock.
14281 Call gomp_offload_image_to_device for all initialized devices.
14282 Replace gomp_realloc with gomp_realloc_unlock.
14283 (GOMP_offload_unregister): New function.
14284 (gomp_init_tables): Replace with gomp_init_device. Replace a call to
14285 get_table_func from the plugin with calls to init_device_func and
14286 gomp_offload_image_to_device.
14287 (gomp_free_memmap): Change type of argument from gomp_memory_mapping *
14289 (GOMP_target): Do not call gomp_init_tables. Use dev's lock and
14290 splay_tree instead of mem_map's. Unlock mutex before gomp_fatal.
14291 (GOMP_target_data): Do not call gomp_init_tables.
14292 (GOMP_target_update): Likewise. Remove argument from gomp_update.
14293 (gomp_load_plugin_for_device): Replace register_image and get_table
14294 with load_image and unload_image in DLSYM ().
14295 (gomp_register_images_for_device): Remove function.
14296 (gomp_target_init): Do not initialize current_device.mem_map.*,
14297 current_device.offload_regions_registered.
14298 Remove call to gomp_register_images_for_device.
14299 Do not free offload_images and num_offload_images.
14301 2015-03-30 Jakub Jelinek <jakub@redhat.com>
14304 * testsuite/libgomp.fortran/pr65597.f90: New test.
14306 2015-03-27 Tom de Vries <tom@codesourcery.com>
14309 * testsuite/libgomp.graphite/force-parallel-6.c (abort): Declare.
14310 (init, check): New function.
14311 (foo): Change return type to void.
14312 (main): Call init and check.
14314 2015-03-27 Tom de Vries <tom@codesourcery.com>
14317 * testsuite/libgomp.graphite/force-parallel-6.c (M): Define.
14318 (foo): Use M for non-inner loops to scale down test-case.
14320 2015-03-25 Kai Tietz <ktietz@redhat.com>
14323 * oacc-parallel.c (GOACC_parallel): Use PRIu64 if available.
14324 (GOACC_data_start): Likewise.
14325 * target.c (gomp_map_vars): Likewise.
14327 2015-03-21 John David Anglin <danglin@gcc.gnu.org>
14329 * testsuite/libgomp.oacc-c-c++-common/reduction-4.c: Don't run on
14332 2015-03-19 Jakub Jelinek <jakub@redhat.com>
14334 * testsuite/libgomp.c/target-10.c: New test.
14335 * testsuite/libgomp.c++/target-4.C: New test.
14337 2015-03-13 Ilya Verbin <ilya.verbin@intel.com>
14339 * testsuite/libgomp.fortran/declare-target-1.f90: New test.
14340 * testsuite/libgomp.fortran/declare-target-2.f90: New file.
14342 2015-03-13 Sebastian Huber <sebastian.huber@embedded-brains.de>
14344 * configure.tgt (*-*-rtems*): Use local-exec TLS model.
14345 * configure.ac (*-*-rtems*): Assume Pthread is supported.
14346 (pthread.h): Check for this header file.
14347 * configure: Regenerate.
14349 2015-02-25 Tom de Vries <tom@codesourcery.com>
14351 * testsuite/libgomp.oacc-c-c++-common/reduction-1.c (DO_PRAGMA)
14352 (check_reduction_op, check_reduction_macro, max, min):
14354 (test_reductions_int, test_reductions_minmax, test_reductions_bool): New
14356 (main): Use new functions.
14358 2015-02-18 Ilya Tocar <ilya.tocar@intel.com>
14360 * target.c (gomp_load_plugin_for_device): Use const char * instead of
14361 char * for variables holding dlerror return values.
14362 (DLSYM_OPT): Ditto.
14364 2015-02-17 Thomas Schwinge <thomas@codesourcery.com>
14366 * libgomp-plugin.c (GOMP_PLUGIN_debug): Fix typo.
14368 2015-02-17 Thomas Schwinge <thomas@codesourcery.com>
14369 Cesar Philippidis <cesar@codesourcery.com>
14371 * oacc-ptx.h (GOACC_INTERNAL_PTX): Add GOACC_tid, GOACC_ntid,
14372 GOACC_ctaid, and GOACC_nctaid routines.
14374 2015-02-11 Jakub Jelinek <jakub@redhat.com>
14377 * testsuite/libgomp.c/atomic-18.c: New test.
14378 * testsuite/libgomp.c++/atomic-16.C: New test.
14380 2015-02-04 Jakub Jelinek <jakub@redhat.com>
14384 * testsuite/libgomp.c/pr64824.c: New test.
14385 * testsuite/libgomp.c/pr64868.c: New test.
14386 * testsuite/libgomp.c++/pr64824.C: New test.
14387 * testsuite/libgomp.c++/pr64868.C: New test.
14389 2015-02-01 David Edelsohn <dje.gcc@gmail.com>
14392 * configure.tgt (*-*-aix*): Use standard posix plugin-suffix.h.
14393 Link with -lpthread.
14394 * config/aix/plugin-suffix.h: Delete.
14396 2015-01-28 Jack Howarth <howarth.at.gcc@gmail.com>
14399 * configure.tgt (*-*-aix*): Use config_path "aix posix".
14400 (*-*-darwin*): Use config_path "bsd darwin posix".
14401 (*-*-hpux*): Use config_path "hpux posix".
14402 * target.c: Add include of plugin-suffix.h and use
14403 SONAME_SUFFIX macro.
14404 * config/aix/plugin-suffix.h: New file.
14405 * config/darwin/plugin-suffix.h: New file.
14406 * config/hpux/plugin-suffix.h: New file.
14407 * config/posix/plugin-suffix.h: New file.
14409 2015-01-23 Jakub Jelinek <jakub@redhat.com>
14411 PR middle-end/64734
14412 * libgomp.c/pr64734.c: New test.
14414 2015-01-23 Tom de Vries <tom@codesourcery.com>
14417 * testsuite/libgomp.oacc-c-c++-common/abort-5.c: New test.
14419 2015-01-23 Tom de Vries <tom@codesourcery.com>
14422 * testsuite/libgomp.c/target-9.c: Add -ftree-parallelize-loops=0 to
14425 2015-01-19 Thomas Schwinge <thomas@codesourcery.com>
14428 * libgomp_g.h (GOACC_data_start, GOACC_enter_exit_data)
14429 (GOACC_parallel, GOACC_update): Remove const_void *offload_table
14430 formal parameter. Update all users.
14431 * target.c (GOMP_target, GOMP_target_data, GOMP_target_update):
14432 Document unused formal parameter.
14434 2015-01-16 Thomas Schwinge <thomas@codesourcery.com>
14436 * oacc-parallel.c: Don't include <alloca.h>.
14437 (GOACC_parallel): Use gomp_alloca instead of alloca.
14439 2015-01-16 Gerald Pfeifer <gerald@pfeifer.com>
14441 * target.c (num_devices): Guard with PLUGIN_SUPPORT.
14443 2015-01-15 Thomas Schwinge <thomas@codesourcery.com>
14444 James Norris <jnorris@codesourcery.com>
14445 Tom de Vries <tom@codesourcery.com>
14446 Julian Brown <julian@codesourcery.com>
14447 Cesar Philippidis <cesar@codesourcery.com>
14448 Nathan Sidwell <nathan@codesourcery.com>
14449 Tobias Burnus <burnus@net-b.de>
14451 * Makefile.am (search_path): Add $(top_srcdir)/../include.
14452 (libgomp_la_SOURCES): Add splay-tree.c, libgomp-plugin.c,
14453 oacc-parallel.c, oacc-host.c, oacc-init.c, oacc-mem.c,
14454 oacc-async.c, oacc-plugin.c, oacc-cuda.c.
14455 [USE_FORTRAN] (libgomp_la_SOURCES): Add openacc.f90.
14456 Include $(top_srcdir)/plugin/Makefrag.am.
14457 (nodist_libsubinclude_HEADERS): Add openacc.h.
14458 [USE_FORTRAN] (nodist_finclude_HEADERS): Add openacc_lib.h,
14459 openacc.f90, openacc.mod, openacc_kinds.mod.
14460 (omp_lib.mod): Generalize into...
14461 (%.mod): ... this new rule.
14462 (openacc_kinds.mod, openacc.mod): New rules.
14463 * plugin/configfrag.ac: New file.
14464 * configure.ac: Move plugin/offloading support into it. Include
14465 it. Instantiate testsuite/libgomp-test-support.pt.exp.
14466 * plugin/Makefrag.am: New file.
14467 * testsuite/Makefile.am (OFFLOAD_TARGETS)
14468 (OFFLOAD_ADDITIONAL_OPTIONS, OFFLOAD_ADDITIONAL_LIB_PATHS): Don't
14470 (libgomp-test-support.exp): New rule.
14471 (all-local): Depend on it.
14472 * Makefile.in: Regenerate.
14473 * testsuite/Makefile.in: Regenerate.
14474 * config.h.in: Likewise.
14475 * configure: Likewise.
14476 * configure.tgt: Harden shell syntax.
14477 * env.c: Include "oacc-int.h".
14478 (parse_acc_device_type): New function.
14479 (gomp_debug_var, goacc_device_type, goacc_device_num): New
14481 (initialize_env): Initialize those. Call
14482 goacc_runtime_initialize.
14483 * error.c (gomp_vdebug, gomp_debug, gomp_vfatal): New functions.
14484 (gomp_fatal): Call gomp_vfatal.
14485 * libgomp.h: Include "libgomp-plugin.h" and <stdarg.h>.
14486 (gomp_debug_var, goacc_device_type, goacc_device_num, gomp_vdebug)
14487 (gomp_debug, gomp_verror, gomp_vfatal, gomp_init_targets_once)
14488 (splay_tree_node, splay_tree, splay_tree_key)
14489 (struct target_mem_desc, struct splay_tree_key_s)
14490 (struct gomp_memory_mapping, struct acc_dispatch_t)
14491 (struct gomp_device_descr, gomp_acc_insert_pointer)
14492 (gomp_acc_remove_pointer, target_mem_desc, gomp_copy_from_async)
14493 (gomp_unmap_vars, gomp_init_device, gomp_init_tables)
14494 (gomp_free_memmap, gomp_fini_device): New declarations.
14495 (gomp_vdebug, gomp_debug): New macros.
14496 Include "splay-tree.h".
14497 * libgomp.map (OACC_2.0): New symbol version. Use for
14498 acc_get_num_devices, acc_get_num_devices_h_, acc_set_device_type,
14499 acc_set_device_type_h_, acc_get_device_type,
14500 acc_get_device_type_h_, acc_set_device_num, acc_set_device_num_h_,
14501 acc_get_device_num, acc_get_device_num_h_, acc_async_test,
14502 acc_async_test_h_, acc_async_test_all, acc_async_test_all_h_,
14503 acc_wait, acc_wait_h_, acc_wait_async, acc_wait_async_h_,
14504 acc_wait_all, acc_wait_all_h_, acc_wait_all_async,
14505 acc_wait_all_async_h_, acc_init, acc_init_h_, acc_shutdown,
14506 acc_shutdown_h_, acc_on_device, acc_on_device_h_, acc_malloc,
14507 acc_free, acc_copyin, acc_copyin_32_h_, acc_copyin_64_h_,
14508 acc_copyin_array_h_, acc_present_or_copyin,
14509 acc_present_or_copyin_32_h_, acc_present_or_copyin_64_h_,
14510 acc_present_or_copyin_array_h_, acc_create, acc_create_32_h_,
14511 acc_create_64_h_, acc_create_array_h_, acc_present_or_create,
14512 acc_present_or_create_32_h_, acc_present_or_create_64_h_,
14513 acc_present_or_create_array_h_, acc_copyout, acc_copyout_32_h_,
14514 acc_copyout_64_h_, acc_copyout_array_h_, acc_delete,
14515 acc_delete_32_h_, acc_delete_64_h_, acc_delete_array_h_,
14516 acc_update_device, acc_update_device_32_h_,
14517 acc_update_device_64_h_, acc_update_device_array_h_,
14518 acc_update_self, acc_update_self_32_h_, acc_update_self_64_h_,
14519 acc_update_self_array_h_, acc_map_data, acc_unmap_data,
14520 acc_deviceptr, acc_hostptr, acc_is_present, acc_is_present_32_h_,
14521 acc_is_present_64_h_, acc_is_present_array_h_,
14522 acc_memcpy_to_device, acc_memcpy_from_device,
14523 acc_get_current_cuda_device, acc_get_current_cuda_context,
14524 acc_get_cuda_stream, acc_set_cuda_stream.
14525 (GOACC_2.0): New symbol version. Use for GOACC_data_end,
14526 GOACC_data_start, GOACC_enter_exit_data, GOACC_parallel,
14527 GOACC_update, GOACC_wait, GOACC_get_thread_num,
14528 GOACC_get_num_threads.
14529 (GOMP_PLUGIN_1.0): New symbol version. Use for
14530 GOMP_PLUGIN_malloc, GOMP_PLUGIN_malloc_cleared,
14531 GOMP_PLUGIN_realloc, GOMP_PLUGIN_debug, GOMP_PLUGIN_error,
14532 GOMP_PLUGIN_fatal, GOMP_PLUGIN_async_unmap_vars,
14533 GOMP_PLUGIN_acc_thread.
14534 * libgomp.texi: Update for OpenACC changes, and GOMP_DEBUG
14535 environment variable.
14536 * libgomp_g.h (GOACC_data_start, GOACC_data_end)
14537 (GOACC_enter_exit_data, GOACC_parallel, GOACC_update, GOACC_wait)
14538 (GOACC_get_num_threads, GOACC_get_thread_num): New declarations.
14539 * splay-tree.h (splay_tree_lookup, splay_tree_insert)
14540 (splay_tree_remove): New declarations.
14541 (rotate_left, rotate_right, splay_tree_splay, splay_tree_insert)
14542 (splay_tree_remove, splay_tree_lookup): Move into...
14543 * splay-tree.c: ... this new file.
14544 * target.c: Include "oacc-plugin.h", "oacc-int.h", <assert.h>.
14545 (splay_tree_node, splay_tree, splay_tree_key)
14546 (struct target_mem_desc, struct splay_tree_key_s)
14547 (struct gomp_device_descr): Don't declare.
14548 (num_devices_openmp): New variable.
14549 (gomp_get_num_devices ): Use it.
14550 (gomp_init_targets_once): New function.
14551 (gomp_get_num_devices ): Use it.
14552 (get_kind, gomp_copy_from_async, gomp_free_memmap)
14553 (gomp_fini_device, gomp_register_image_for_device): New functions.
14554 (gomp_map_vars): Add devaddrs parameter.
14555 (gomp_update): Add mm parameter.
14556 (gomp_init_device): Move most of it into...
14557 (gomp_init_tables): ... this new function.
14558 (gomp_register_images_for_device): Remove function.
14559 (splay_compare, gomp_map_vars, gomp_unmap_vars, gomp_init_device):
14560 Make them hidden instead of static.
14561 (gomp_map_vars_existing, gomp_map_vars, gomp_unmap_vars)
14562 (gomp_update, gomp_init_device, GOMP_target, GOMP_target_data)
14563 (GOMP_target_end_data, GOMP_target_update)
14564 (gomp_load_plugin_for_device, gomp_target_init): Update for
14566 * oacc-async.c: New file.
14567 * oacc-cuda.c: Likewise.
14568 * oacc-host.c: Likewise.
14569 * oacc-init.c: Likewise.
14570 * oacc-int.h: Likewise.
14571 * oacc-mem.c: Likewise.
14572 * oacc-parallel.c: Likewise.
14573 * oacc-plugin.c: Likewise.
14574 * oacc-plugin.h: Likewise.
14575 * oacc-ptx.h: Likewise.
14576 * openacc.f90: Likewise.
14577 * openacc.h: Likewise.
14578 * openacc_lib.h: Likewise.
14579 * plugin/plugin-host.c: Likewise.
14580 * plugin/plugin-nvptx.c: Likewise.
14581 * libgomp-plugin.c: Likewise.
14582 * libgomp-plugin.h: Likewise.
14583 * libgomp_target.h: Remove file after merging content into the
14584 former file. Update all users.
14585 * testsuite/lib/libgomp.exp: Load libgomp-test-support.exp.
14586 (offload_targets_s, offload_targets_s_openacc): New variables.
14587 (check_effective_target_openacc_nvidia_accel_present)
14588 (check_effective_target_openacc_nvidia_accel_selected): New
14590 (libgomp_init): Update for OpenACC changes.
14591 * testsuite/libgomp-test-support.exp.in: New file.
14592 * testsuite/libgomp.oacc-c++/c++.exp: Likewise.
14593 * testsuite/libgomp.oacc-c/c.exp: Likewise.
14594 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
14595 * testsuite/libgomp.oacc-c-c++-common/abort-1.c: Likewise.
14596 * testsuite/libgomp.oacc-c-c++-common/abort-2.c: Likewise.
14597 * testsuite/libgomp.oacc-c-c++-common/abort-3.c: Likewise.
14598 * testsuite/libgomp.oacc-c-c++-common/abort-4.c: Likewise.
14599 * testsuite/libgomp.oacc-c-c++-common/acc_on_device-1.c: Likewise.
14600 * testsuite/libgomp.oacc-c-c++-common/asyncwait-1.c: Likewise.
14601 * testsuite/libgomp.oacc-c-c++-common/cache-1.c: Likewise.
14602 * testsuite/libgomp.oacc-c-c++-common/clauses-1.c: Likewise.
14603 * testsuite/libgomp.oacc-c-c++-common/clauses-2.c: Likewise.
14604 * testsuite/libgomp.oacc-c-c++-common/collapse-1.c: Likewise.
14605 * testsuite/libgomp.oacc-c-c++-common/collapse-2.c: Likewise.
14606 * testsuite/libgomp.oacc-c-c++-common/collapse-3.c: Likewise.
14607 * testsuite/libgomp.oacc-c-c++-common/collapse-4.c: Likewise.
14608 * testsuite/libgomp.oacc-c-c++-common/context-1.c: Likewise.
14609 * testsuite/libgomp.oacc-c-c++-common/context-2.c: Likewise.
14610 * testsuite/libgomp.oacc-c-c++-common/context-3.c: Likewise.
14611 * testsuite/libgomp.oacc-c-c++-common/context-4.c: Likewise.
14612 * testsuite/libgomp.oacc-c-c++-common/data-1.c: Likewise.
14613 * testsuite/libgomp.oacc-c-c++-common/data-2.c: Likewise.
14614 * testsuite/libgomp.oacc-c-c++-common/data-3.c: Likewise.
14615 * testsuite/libgomp.oacc-c-c++-common/data-already-1.c: Likewise.
14616 * testsuite/libgomp.oacc-c-c++-common/data-already-2.c: Likewise.
14617 * testsuite/libgomp.oacc-c-c++-common/data-already-3.c: Likewise.
14618 * testsuite/libgomp.oacc-c-c++-common/data-already-4.c: Likewise.
14619 * testsuite/libgomp.oacc-c-c++-common/data-already-5.c: Likewise.
14620 * testsuite/libgomp.oacc-c-c++-common/data-already-6.c: Likewise.
14621 * testsuite/libgomp.oacc-c-c++-common/data-already-7.c: Likewise.
14622 * testsuite/libgomp.oacc-c-c++-common/data-already-8.c: Likewise.
14623 * testsuite/libgomp.oacc-c-c++-common/deviceptr-1.c: Likewise.
14624 * testsuite/libgomp.oacc-c-c++-common/if-1.c: Likewise.
14625 * testsuite/libgomp.oacc-c-c++-common/kernels-1.c: Likewise.
14626 * testsuite/libgomp.oacc-c-c++-common/kernels-empty.c: Likewise.
14627 * testsuite/libgomp.oacc-c-c++-common/lib-1.c: Likewise.
14628 * testsuite/libgomp.oacc-c-c++-common/lib-10.c: Likewise.
14629 * testsuite/libgomp.oacc-c-c++-common/lib-11.c: Likewise.
14630 * testsuite/libgomp.oacc-c-c++-common/lib-12.c: Likewise.
14631 * testsuite/libgomp.oacc-c-c++-common/lib-13.c: Likewise.
14632 * testsuite/libgomp.oacc-c-c++-common/lib-14.c: Likewise.
14633 * testsuite/libgomp.oacc-c-c++-common/lib-15.c: Likewise.
14634 * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
14635 * testsuite/libgomp.oacc-c-c++-common/lib-17.c: Likewise.
14636 * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
14637 * testsuite/libgomp.oacc-c-c++-common/lib-19.c: Likewise.
14638 * testsuite/libgomp.oacc-c-c++-common/lib-2.c: Likewise.
14639 * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
14640 * testsuite/libgomp.oacc-c-c++-common/lib-21.c: Likewise.
14641 * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Likewise.
14642 * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
14643 * testsuite/libgomp.oacc-c-c++-common/lib-24.c: Likewise.
14644 * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
14645 * testsuite/libgomp.oacc-c-c++-common/lib-26.c: Likewise.
14646 * testsuite/libgomp.oacc-c-c++-common/lib-27.c: Likewise.
14647 * testsuite/libgomp.oacc-c-c++-common/lib-28.c: Likewise.
14648 * testsuite/libgomp.oacc-c-c++-common/lib-29.c: Likewise.
14649 * testsuite/libgomp.oacc-c-c++-common/lib-3.c: Likewise.
14650 * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
14651 * testsuite/libgomp.oacc-c-c++-common/lib-31.c: Likewise.
14652 * testsuite/libgomp.oacc-c-c++-common/lib-32.c: Likewise.
14653 * testsuite/libgomp.oacc-c-c++-common/lib-33.c: Likewise.
14654 * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
14655 * testsuite/libgomp.oacc-c-c++-common/lib-35.c: Likewise.
14656 * testsuite/libgomp.oacc-c-c++-common/lib-36.c: Likewise.
14657 * testsuite/libgomp.oacc-c-c++-common/lib-37.c: Likewise.
14658 * testsuite/libgomp.oacc-c-c++-common/lib-38.c: Likewise.
14659 * testsuite/libgomp.oacc-c-c++-common/lib-39.c: Likewise.
14660 * testsuite/libgomp.oacc-c-c++-common/lib-4.c: Likewise.
14661 * testsuite/libgomp.oacc-c-c++-common/lib-40.c: Likewise.
14662 * testsuite/libgomp.oacc-c-c++-common/lib-41.c: Likewise.
14663 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
14664 * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Likewise.
14665 * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
14666 * testsuite/libgomp.oacc-c-c++-common/lib-45.c: Likewise.
14667 * testsuite/libgomp.oacc-c-c++-common/lib-46.c: Likewise.
14668 * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Likewise.
14669 * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
14670 * testsuite/libgomp.oacc-c-c++-common/lib-49.c: Likewise.
14671 * testsuite/libgomp.oacc-c-c++-common/lib-5.c: Likewise.
14672 * testsuite/libgomp.oacc-c-c++-common/lib-50.c: Likewise.
14673 * testsuite/libgomp.oacc-c-c++-common/lib-51.c: Likewise.
14674 * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Likewise.
14675 * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
14676 * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
14677 * testsuite/libgomp.oacc-c-c++-common/lib-55.c: Likewise.
14678 * testsuite/libgomp.oacc-c-c++-common/lib-56.c: Likewise.
14679 * testsuite/libgomp.oacc-c-c++-common/lib-57.c: Likewise.
14680 * testsuite/libgomp.oacc-c-c++-common/lib-58.c: Likewise.
14681 * testsuite/libgomp.oacc-c-c++-common/lib-59.c: Likewise.
14682 * testsuite/libgomp.oacc-c-c++-common/lib-6.c: Likewise.
14683 * testsuite/libgomp.oacc-c-c++-common/lib-60.c: Likewise.
14684 * testsuite/libgomp.oacc-c-c++-common/lib-61.c: Likewise.
14685 * testsuite/libgomp.oacc-c-c++-common/lib-62.c: Likewise.
14686 * testsuite/libgomp.oacc-c-c++-common/lib-63.c: Likewise.
14687 * testsuite/libgomp.oacc-c-c++-common/lib-64.c: Likewise.
14688 * testsuite/libgomp.oacc-c-c++-common/lib-65.c: Likewise.
14689 * testsuite/libgomp.oacc-c-c++-common/lib-66.c: Likewise.
14690 * testsuite/libgomp.oacc-c-c++-common/lib-67.c: Likewise.
14691 * testsuite/libgomp.oacc-c-c++-common/lib-68.c: Likewise.
14692 * testsuite/libgomp.oacc-c-c++-common/lib-69.c: Likewise.
14693 * testsuite/libgomp.oacc-c-c++-common/lib-7.c: Likewise.
14694 * testsuite/libgomp.oacc-c-c++-common/lib-70.c: Likewise.
14695 * testsuite/libgomp.oacc-c-c++-common/lib-71.c: Likewise.
14696 * testsuite/libgomp.oacc-c-c++-common/lib-72.c: Likewise.
14697 * testsuite/libgomp.oacc-c-c++-common/lib-73.c: Likewise.
14698 * testsuite/libgomp.oacc-c-c++-common/lib-74.c: Likewise.
14699 * testsuite/libgomp.oacc-c-c++-common/lib-75.c: Likewise.
14700 * testsuite/libgomp.oacc-c-c++-common/lib-76.c: Likewise.
14701 * testsuite/libgomp.oacc-c-c++-common/lib-77.c: Likewise.
14702 * testsuite/libgomp.oacc-c-c++-common/lib-78.c: Likewise.
14703 * testsuite/libgomp.oacc-c-c++-common/lib-79.c: Likewise.
14704 * testsuite/libgomp.oacc-c-c++-common/lib-80.c: Likewise.
14705 * testsuite/libgomp.oacc-c-c++-common/lib-81.c: Likewise.
14706 * testsuite/libgomp.oacc-c-c++-common/lib-82.c: Likewise.
14707 * testsuite/libgomp.oacc-c-c++-common/lib-83.c: Likewise.
14708 * testsuite/libgomp.oacc-c-c++-common/lib-84.c: Likewise.
14709 * testsuite/libgomp.oacc-c-c++-common/lib-85.c: Likewise.
14710 * testsuite/libgomp.oacc-c-c++-common/lib-86.c: Likewise.
14711 * testsuite/libgomp.oacc-c-c++-common/lib-87.c: Likewise.
14712 * testsuite/libgomp.oacc-c-c++-common/lib-88.c: Likewise.
14713 * testsuite/libgomp.oacc-c-c++-common/lib-89.c: Likewise.
14714 * testsuite/libgomp.oacc-c-c++-common/lib-9.c: Likewise.
14715 * testsuite/libgomp.oacc-c-c++-common/lib-90.c: Likewise.
14716 * testsuite/libgomp.oacc-c-c++-common/lib-91.c: Likewise.
14717 * testsuite/libgomp.oacc-c-c++-common/lib-92.c: Likewise.
14718 * testsuite/libgomp.oacc-c-c++-common/nested-1.c: Likewise.
14719 * testsuite/libgomp.oacc-c-c++-common/nested-2.c: Likewise.
14720 * testsuite/libgomp.oacc-c-c++-common/offset-1.c: Likewise.
14721 * testsuite/libgomp.oacc-c-c++-common/parallel-1.c: Likewise.
14722 * testsuite/libgomp.oacc-c-c++-common/parallel-empty.c: Likewise.
14723 * testsuite/libgomp.oacc-c-c++-common/pointer-align-1.c: Likewise.
14724 * testsuite/libgomp.oacc-c-c++-common/present-1.c: Likewise.
14725 * testsuite/libgomp.oacc-c-c++-common/present-2.c: Likewise.
14726 * testsuite/libgomp.oacc-c-c++-common/reduction-1.c: Likewise.
14727 * testsuite/libgomp.oacc-c-c++-common/reduction-2.c: Likewise.
14728 * testsuite/libgomp.oacc-c-c++-common/reduction-3.c: Likewise.
14729 * testsuite/libgomp.oacc-c-c++-common/reduction-4.c: Likewise.
14730 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Likewise.
14731 * testsuite/libgomp.oacc-c-c++-common/reduction-initial-1.c:
14733 * testsuite/libgomp.oacc-c-c++-common/subr.h: Likewise.
14734 * testsuite/libgomp.oacc-c-c++-common/subr.ptx: Likewise.
14735 * testsuite/libgomp.oacc-c-c++-common/timer.h: Likewise.
14736 * testsuite/libgomp.oacc-c-c++-common/update-1-2.c: Likewise.
14737 * testsuite/libgomp.oacc-c-c++-common/update-1.c: Likewise.
14738 * testsuite/libgomp.oacc-fortran/abort-1.f90: Likewise.
14739 * testsuite/libgomp.oacc-fortran/abort-2.f90: Likewise.
14740 * testsuite/libgomp.oacc-fortran/acc_on_device-1-1.f90: Likewise.
14741 * testsuite/libgomp.oacc-fortran/acc_on_device-1-2.f: Likewise.
14742 * testsuite/libgomp.oacc-fortran/acc_on_device-1-3.f: Likewise.
14743 * testsuite/libgomp.oacc-fortran/asyncwait-1.f90: Likewise.
14744 * testsuite/libgomp.oacc-fortran/asyncwait-2.f90: Likewise.
14745 * testsuite/libgomp.oacc-fortran/asyncwait-3.f90: Likewise.
14746 * testsuite/libgomp.oacc-fortran/collapse-1.f90: Likewise.
14747 * testsuite/libgomp.oacc-fortran/collapse-2.f90: Likewise.
14748 * testsuite/libgomp.oacc-fortran/collapse-3.f90: Likewise.
14749 * testsuite/libgomp.oacc-fortran/collapse-4.f90: Likewise.
14750 * testsuite/libgomp.oacc-fortran/collapse-5.f90: Likewise.
14751 * testsuite/libgomp.oacc-fortran/collapse-6.f90: Likewise.
14752 * testsuite/libgomp.oacc-fortran/collapse-7.f90: Likewise.
14753 * testsuite/libgomp.oacc-fortran/collapse-8.f90: Likewise.
14754 * testsuite/libgomp.oacc-fortran/data-1.f90: Likewise.
14755 * testsuite/libgomp.oacc-fortran/data-2.f90: Likewise.
14756 * testsuite/libgomp.oacc-fortran/data-3.f90: Likewise.
14757 * testsuite/libgomp.oacc-fortran/data-4-2.f90: Likewise.
14758 * testsuite/libgomp.oacc-fortran/data-4.f90: Likewise.
14759 * testsuite/libgomp.oacc-fortran/data-already-1.f: Likewise.
14760 * testsuite/libgomp.oacc-fortran/data-already-2.f: Likewise.
14761 * testsuite/libgomp.oacc-fortran/data-already-3.f: Likewise.
14762 * testsuite/libgomp.oacc-fortran/data-already-4.f: Likewise.
14763 * testsuite/libgomp.oacc-fortran/data-already-5.f: Likewise.
14764 * testsuite/libgomp.oacc-fortran/data-already-6.f: Likewise.
14765 * testsuite/libgomp.oacc-fortran/data-already-7.f: Likewise.
14766 * testsuite/libgomp.oacc-fortran/data-already-8.f: Likewise.
14767 * testsuite/libgomp.oacc-fortran/lib-1.f90: Likewise.
14768 * testsuite/libgomp.oacc-fortran/lib-10.f90: Likewise.
14769 * testsuite/libgomp.oacc-fortran/lib-2.f: Likewise.
14770 * testsuite/libgomp.oacc-fortran/lib-3.f: Likewise.
14771 * testsuite/libgomp.oacc-fortran/lib-4.f90: Likewise.
14772 * testsuite/libgomp.oacc-fortran/lib-5.f90: Likewise.
14773 * testsuite/libgomp.oacc-fortran/lib-6.f90: Likewise.
14774 * testsuite/libgomp.oacc-fortran/lib-7.f90: Likewise.
14775 * testsuite/libgomp.oacc-fortran/lib-8.f90: Likewise.
14776 * testsuite/libgomp.oacc-fortran/map-1.f90: Likewise.
14777 * testsuite/libgomp.oacc-fortran/openacc_version-1.f: Likewise.
14778 * testsuite/libgomp.oacc-fortran/openacc_version-2.f90: Likewise.
14779 * testsuite/libgomp.oacc-fortran/pointer-align-1.f90: Likewise.
14780 * testsuite/libgomp.oacc-fortran/pset-1.f90: Likewise.
14781 * testsuite/libgomp.oacc-fortran/reduction-1.f90: Likewise.
14782 * testsuite/libgomp.oacc-fortran/reduction-2.f90: Likewise.
14783 * testsuite/libgomp.oacc-fortran/reduction-3.f90: Likewise.
14784 * testsuite/libgomp.oacc-fortran/reduction-4.f90: Likewise.
14785 * testsuite/libgomp.oacc-fortran/reduction-5.f90: Likewise.
14786 * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
14787 * testsuite/libgomp.oacc-fortran/routine-1.f90: Likewise.
14788 * testsuite/libgomp.oacc-fortran/routine-2.f90: Likewise.
14789 * testsuite/libgomp.oacc-fortran/routine-3.f90: Likewise.
14790 * testsuite/libgomp.oacc-fortran/routine-4.f90: Likewise.
14791 * testsuite/libgomp.oacc-fortran/subarrays-1.f90: Likewise.
14792 * testsuite/libgomp.oacc-fortran/subarrays-2.f90: Likewise.
14794 2015-01-10 Thomas Schwinge <thomas@codesourcery.com>
14795 Julian Brown <julian@codesourcery.com>
14796 David Malcolm <dmalcolm@redhat.com>
14798 * configure.ac: Rename libgomp from "GNU OpenMP Runtime Library"
14799 to "GNU Offloading and Multi Processing Runtime Library". Change
14801 * configure: Regenerate.
14802 * libgomp.texi: Update.
14804 2015-01-08 Thomas Schwinge <thomas@codesourcery.com>
14806 * configure.ac [tgt_dir] (offload_additional_lib_paths): Also add
14808 * configure: Regenerate.
14810 * testsuite/lib/libgomp.exp (libgomp_init): Correctly match
14811 "intelmic" in $offload_targets.
14813 2015-01-05 Jakub Jelinek <jakub@redhat.com>
14815 Update copyright years.
14817 * libgomp.texi: Bump @copying's copyright year.
14819 2014-12-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14821 * testsuite/lib/libgomp.exp: Load target-utils.exp.
14822 Move load of target-supports.exp earlier.
14824 2014-12-10 Ilya Verbin <ilya.verbin@intel.com>
14826 * testsuite/libgomp.c/target-9.c: New test.
14828 2014-12-09 Varvara Rainchik <varvara.rainchik@intel.com>
14830 * config.h.in: Regenerate.
14831 * configure: Regenerate.
14832 * configure.ac: Add GCC_CHECK_EMUTLS.
14833 * libgomp.h: Add check for USE_EMUTLS: this case
14834 is equal to HAVE_TLS.
14835 * team.c: Likewise.
14837 2014-12-03 Uros Bizjak <ubizjak@gmail.com>
14839 * configure.tgt (x86_64-*-linux*): Tune -m32 multilib to generic.
14841 2014-11-28 Andrey Turetskiy <andrey.turetskiy@intel.com>
14842 Ilya Verbin <ilya.verbin@intel.com>
14844 * testsuite/libgomp.c/target-critical-1.c: New test.
14846 2014-11-26 Jakub Jelinek <jakub@redhat.com>
14848 * testsuite/libgomp.c/examples-4/e.53.4.c: Add -DITESTITERS=20
14849 to dg-options unless expensive testing is on.
14850 (TESTITERS): Define to N if not defined.
14851 (main): Use TESTITERS instead of N.
14852 * testsuite/libgomp.c/examples-4/e.55.1.c: Define CHUNKSZ from
14853 dg-additional-options depending on whether expensive testing is on.
14854 * testsuite/libgomp.fortran/examples-4/e.55.1.f90 (e_55_1_mod):
14855 Decrease N to 100000 and CHUNKSZ to 10000.
14857 2014-11-24 Jakub Jelinek <jakub@redhat.com>
14860 * testsuite/libgomp.fortran/pr63938-1.f90: New test.
14861 * testsuite/libgomp.fortran/pr63938-2.f90: New test.
14863 2014-11-21 Steve Ellcey <sellcey@imgtec.com>
14865 * config/linux/mips/futex.h (SYS_futex): Define if not already done.
14867 2014-11-21 H.J. Lu <hongjiu.lu@intel.com>
14870 * configure: Regenerated.
14872 2014-11-19 Uros Bizjak <ubizjak@gmail.com>
14874 * testsuite/libgomp.c/examples-4/e.53.5.c: Require
14875 vect_simd_clones effective target.
14876 * testsuite/libgomp.fortran/examples-4/e.53.5.f90: Ditto.
14878 2014-11-14 Jakub Jelinek <jakub@redhat.com>
14880 * libgomp.c/examples-4/e.54.2.c (main): Use N / 8 instead
14881 of 32 as block_size.
14882 * libgomp.fortran/examples-4/e.54.2.f90 (e_54_1): Use n / 8
14883 instead of 32 as block_size.
14885 2014-11-13 Andrey Turetskiy <andrey.turetskiy@intel.com>
14886 Ilya Verbin <ilya.verbin@intel.com>
14888 * Makefile.in: Regenerate.
14889 * configure: Regenerate.
14890 * configure.ac: Set up offload_additional_options,
14891 offload_additional_lib_paths and offload_targets.
14892 * testsuite/Makefile.am: Export environment variables: OFFLOAD_TARGETS,
14893 OFFLOAD_ADDITIONAL_OPTIONS, OFFLOAD_ADDITIONAL_LIB_PATHS.
14894 * testsuite/Makefile.in: Regenerate.
14895 * testsuite/lib/libgomp.exp (libgomp_init): Append
14896 offload_additional_lib_paths to LD_LIBRARY_PATH. Append
14897 offload_additional_options to ALWAYS_CFLAGS. Append liboffloadmic
14898 build directory to LD_LIBRARY_PATH for intelmic offload targets.
14900 2014-11-13 Andrey Turetskiy <andrey.turetskiy@intel.com>
14901 Ilya Verbin <ilya.verbin@intel.com>
14902 Kirill Yukhin <kirill.yukhin@intel.com>
14903 Ilya Tocar <ilya.tocar@intel.com>
14905 * testsuite/lib/libgomp.exp
14906 (check_effective_target_offload_device): New.
14907 * testsuite/libgomp.c++/c++.exp: Include tests from subdirectories.
14908 * testsuite/libgomp.c++/examples-4/e.51.5.C: New test.
14909 * testsuite/libgomp.c++/examples-4/e.53.2.C: Ditto.
14910 * testsuite/libgomp.c/examples-4/e.50.1.c: Ditto.
14911 * testsuite/libgomp.c/examples-4/e.50.2.c: Ditto.
14912 * testsuite/libgomp.c/examples-4/e.50.3.c: Ditto.
14913 * testsuite/libgomp.c/examples-4/e.50.4.c: Ditto.
14914 * testsuite/libgomp.c/examples-4/e.50.5.c: Ditto.
14915 * testsuite/libgomp.c/examples-4/e.51.1.c: Ditto.
14916 * testsuite/libgomp.c/examples-4/e.51.2.c: Ditto.
14917 * testsuite/libgomp.c/examples-4/e.51.3.c: Ditto.
14918 * testsuite/libgomp.c/examples-4/e.51.4.c: Ditto.
14919 * testsuite/libgomp.c/examples-4/e.51.6.c: Ditto.
14920 * testsuite/libgomp.c/examples-4/e.51.7.c: Ditto.
14921 * testsuite/libgomp.c/examples-4/e.52.1.c: Ditto.
14922 * testsuite/libgomp.c/examples-4/e.52.2.c: Ditto.
14923 * testsuite/libgomp.c/examples-4/e.53.1.c: Ditto.
14924 * testsuite/libgomp.c/examples-4/e.53.3.c: Ditto.
14925 * testsuite/libgomp.c/examples-4/e.53.4.c: Ditto.
14926 * testsuite/libgomp.c/examples-4/e.53.5.c: Ditto.
14927 * testsuite/libgomp.c/examples-4/e.54.2.c: Ditto.
14928 * testsuite/libgomp.c/examples-4/e.54.3.c: Ditto.
14929 * testsuite/libgomp.c/examples-4/e.54.4.c: Ditto.
14930 * testsuite/libgomp.c/examples-4/e.54.5.c: Ditto.
14931 * testsuite/libgomp.c/examples-4/e.54.6.c: Ditto.
14932 * testsuite/libgomp.c/examples-4/e.55.1.c: Ditto.
14933 * testsuite/libgomp.c/examples-4/e.55.2.c: Ditto.
14934 * testsuite/libgomp.c/examples-4/e.56.3.c: Ditto.
14935 * testsuite/libgomp.c/examples-4/e.56.4.c: Ditto.
14936 * testsuite/libgomp.c/examples-4/e.57.1.c: Ditto.
14937 * testsuite/libgomp.c/examples-4/e.57.2.c: Ditto.
14938 * testsuite/libgomp.c/examples-4/e.57.3.c: Ditto.
14939 * testsuite/libgomp.c/target-7.c: Fix test.
14940 * testsuite/libgomp.fortran/examples-4/e.50.1.f90: New test.
14941 * testsuite/libgomp.fortran/examples-4/e.50.2.f90: Ditto.
14942 * testsuite/libgomp.fortran/examples-4/e.50.3.f90: Ditto.
14943 * testsuite/libgomp.fortran/examples-4/e.50.4.f90: Ditto.
14944 * testsuite/libgomp.fortran/examples-4/e.50.5.f90: Ditto.
14945 * testsuite/libgomp.fortran/examples-4/e.51.1.f90: Ditto.
14946 * testsuite/libgomp.fortran/examples-4/e.51.2.f90: Ditto.
14947 * testsuite/libgomp.fortran/examples-4/e.51.3.f90: Ditto.
14948 * testsuite/libgomp.fortran/examples-4/e.51.4.f90: Ditto.
14949 * testsuite/libgomp.fortran/examples-4/e.51.5.f90: Ditto.
14950 * testsuite/libgomp.fortran/examples-4/e.51.6.f90: Ditto.
14951 * testsuite/libgomp.fortran/examples-4/e.51.7.f90: Ditto.
14952 * testsuite/libgomp.fortran/examples-4/e.52.1.f90: Ditto.
14953 * testsuite/libgomp.fortran/examples-4/e.52.2.f90: Ditto.
14954 * testsuite/libgomp.fortran/examples-4/e.53.1.f90: Ditto.
14955 * testsuite/libgomp.fortran/examples-4/e.53.2.f90: Ditto.
14956 * testsuite/libgomp.fortran/examples-4/e.53.3.f90: Ditto.
14957 * testsuite/libgomp.fortran/examples-4/e.53.4.f90: Ditto.
14958 * testsuite/libgomp.fortran/examples-4/e.53.5.f90: Ditto.
14959 * testsuite/libgomp.fortran/examples-4/e.54.2.f90: Ditto.
14960 * testsuite/libgomp.fortran/examples-4/e.54.3.f90: Ditto.
14961 * testsuite/libgomp.fortran/examples-4/e.54.4.f90: Ditto.
14962 * testsuite/libgomp.fortran/examples-4/e.54.5.f90: Ditto.
14963 * testsuite/libgomp.fortran/examples-4/e.54.6.f90: Ditto.
14964 * testsuite/libgomp.fortran/examples-4/e.55.1.f90: Ditto.
14965 * testsuite/libgomp.fortran/examples-4/e.55.2.f90: Ditto.
14966 * testsuite/libgomp.fortran/examples-4/e.56.3.f90: Ditto.
14967 * testsuite/libgomp.fortran/examples-4/e.56.4.f90: Ditto.
14968 * testsuite/libgomp.fortran/examples-4/e.57.1.f90: Ditto.
14969 * testsuite/libgomp.fortran/examples-4/e.57.2.f90: Ditto.
14970 * testsuite/libgomp.fortran/examples-4/e.57.3.f90: Ditto.
14972 2014-11-13 Jakub Jelinek <jakub@redhat.com>
14973 Ilya Verbin <ilya.verbin@intel.com>
14974 Thomas Schwinge <thomas@codesourcery.com>
14975 Andrey Turetskiy <andrey.turetskiy@intel.com>
14977 * libgomp.map (GOMP_4.0.1): New symbol version.
14978 Add GOMP_offload_register.
14979 * libgomp_target.h: New file.
14980 * splay-tree.h: New file.
14981 * target.c: Include config.h, libgomp_target.h, dlfcn.h, splay-tree.h.
14982 (gomp_target_init): New forward declaration.
14983 (gomp_is_initialized): New static variable.
14984 (splay_tree_node, splay_tree, splay_tree_key): New typedefs.
14985 (struct target_mem_desc, struct splay_tree_key_s, offload_image_descr):
14987 (offload_images, num_offload_images, devices, num_devices): New static
14989 (splay_compare): New static function.
14990 (struct gomp_device_descr): New structure.
14991 (gomp_get_num_devices): Call gomp_target_init.
14992 (resolve_device, gomp_map_vars_existing, gomp_map_vars, gomp_unmap_tgt)
14993 (gomp_unmap_vars, gomp_update, gomp_init_device): New static functions.
14994 (GOMP_offload_register): New function.
14995 (GOMP_target): Arrange for host callback to be performed in a separate
14996 initial thread and contention group, inheriting ICVs from
14997 gomp_global_icv etc. Call gomp_map_vars and gomp_unmap_vars.
14998 Add device initialization and lookup for target function in splay tree.
14999 (GOMP_target_data): Add device initialization and call gomp_map_vars.
15000 (GOMP_target_end_data): Call gomp_unmap_vars.
15001 (GOMP_target_update): Add device initialization and call gomp_update.
15002 (gomp_load_plugin_for_device, gomp_register_images_for_device)
15003 (gomp_target_init): New static functions.
15005 2014-11-13 Bernd Schmidt <bernds@codesourcery.com>
15006 Thomas Schwinge <thomas@codesourcery.com>
15007 Ilya Verbin <ilya.verbin@intel.com>
15008 Andrey Turetskiy <andrey.turetskiy@intel.com>
15010 * config.h.in: Regenerate.
15011 * configure: Regenerate.
15012 * configure.ac: Check for libdl, required for plugin support.
15013 (PLUGIN_SUPPORT): Define if plugins are supported.
15014 (enable_offload_targets): Support Intel MIC targets.
15015 (OFFLOAD_TARGETS): List of target names suitable for offloading.
15017 2014-11-11 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
15020 * configure: Regenerate.
15022 2014-11-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15024 * config/posix/lock.c (_XOPEN_SOURCE) Define as 600.
15026 2014-10-06 Marek Polacek <polacek@redhat.com>
15028 * testsuite/libgomp.c/affinity-1.c: Include <sys/wait.h>.
15029 * testsuite/libgomp.c/nqueens-1.c: Include <stdlib.h>.
15030 * testsuite/libgomp.c/thread-limit-1.c: Include <omp.h>
15031 * testsuite/libgomp.c/thread-limit-2.c: Likewise.
15033 2014-10-06 Marek Polacek <polacek@redhat.com>
15035 * testsuite/libgomp.c/affinity-1.c: Fix implicit declarations.
15036 * testsuite/libgomp.c/nqueens-1.c: Likewise.
15037 * testsuite/libgomp.c/pr26943-3.c: Likewise.
15038 * testsuite/libgomp.c/pr26943-4.c: Likewise.
15039 * testsuite/libgomp.c/pr36802-2.c: Likewise.
15040 * testsuite/libgomp.c/pr36802-3.c: Likewise.
15041 * testsuite/libgomp.c/thread-limit-1.c: Likewise.
15042 * testsuite/libgomp.c/thread-limit-2.c: Likewise.
15043 * testsuite/libgomp.c/appendix-a/a.15.1.c: Include <omp.h>.
15044 * testsuite/libgomp.c/omp-loop02.c: Fix defaulting to int.
15045 * testsuite/libgomp.c/omp-parallel-for.c: Likewise.
15046 * testsuite/libgomp.c/omp-parallel-if.c: Likewise.
15047 * testsuite/libgomp.c/omp-single-1.c: Likewise.
15048 * testsuite/libgomp.c/omp-single-2.c: Likewise.
15049 * testsuite/libgomp.c/omp_matvec.c: Likewise.
15050 * testsuite/libgomp.c/omp_workshare3.c: Likewise.
15051 * testsuite/libgomp.c/omp_workshare4.c: Likewise.
15052 * testsuite/libgomp.c/shared-1.c: Fix defaulting to int. Fix implicit
15055 2014-10-03 Jakub Jelinek <jakub@redhat.com>
15058 * testsuite/libgomp.c/pr61200.c: New test.
15060 2014-09-18 Jakub Jelinek <jakub@redhat.com>
15063 * testsuite/libgomp.c++/pr63248.C: New test.
15065 2014-08-04 Jakub Jelinek <jakub@redhat.com>
15067 * task.c (GOMP_taskgroup_end): If taskgroup->num_children
15068 is not zero, but taskgroup->children is NULL and there are
15069 any task->children, schedule those instead of waiting.
15070 * testsuite/libgomp.c/depend-6.c: New test.
15071 * testsuite/libgomp.c/depend-7.c: New test.
15072 * testsuite/libgomp.c/depend-8.c: New test.
15073 * testsuite/libgomp.c/depend-9.c: New test.
15074 * testsuite/libgomp.c/depend-10.c: New test.
15076 2014-08-01 Jakub Jelinek <jakub@redhat.com>
15078 * libgomp.h (struct gomp_task_depend_entry): Add redundant_out field.
15079 (struct gomp_taskwait): New type.
15080 (struct gomp_task): Add taskwait and parent_depends_on, remove
15081 in_taskwait and taskwait_sem fields.
15082 (gomp_finish_task): Don't destroy taskwait_sem.
15083 * task.c (gomp_init_task): Don't init in_taskwait, instead init
15084 taskwait and parent_depends_on.
15085 (GOMP_task): For if (0) tasks with depend clause that depend on
15086 earlier tasks don't defer them, instead call
15087 gomp_task_maybe_wait_for_dependencies to wait for the dependencies.
15088 Initialize redundant_out field, for redundant out entries just
15089 move them at the end of linked list instead of removing them
15090 completely, and set redundant_out flag instead of redundant.
15091 (gomp_task_run_pre): Update last_parent_depends_on if scheduling
15093 (gomp_task_run_post_handle_dependers): If parent is in
15094 gomp_task_maybe_wait_for_dependencies and newly runnable task
15095 is not parent_depends_on, queue it in parent->children linked
15096 list after all runnable tasks with parent_depends_on set.
15097 Adjust for addition of taskwait indirection.
15098 (gomp_task_run_post_remove_parent): If parent is in
15099 gomp_task_maybe_wait_for_dependencies and task to be removed
15100 is parent_depends_on, decrement n_depend and if needed awake
15101 parent. Adjust for addition of taskwait indirection.
15102 (GOMP_taskwait): Adjust for addition of taskwait indirection.
15103 (gomp_task_maybe_wait_for_dependencies): New function.
15104 * testsuite/libgomp.c/depend-5.c: New test.
15106 2014-07-13 Tobias Burnus <burnus@net-b.de>
15108 * testsuite/libgomp.fortran/pr34020.f90: Make compile
15109 with TS 18508/Fortran 2015.
15111 2014-07-06 Marek Polacek <polacek@redhat.com>
15114 * testsuite/libgomp.c/appendix-a/a.29.1.c (f): Add dg-warnings.
15116 2014-07-03 Jakub Jelinek <jakub@redhat.com>
15118 * testsuite/lib/libgomp.exp (libgomp_target_compile): If $source
15119 matches regex $lang_source_re, add $lang_include_flags to options.
15120 * testsuite/libgomp.c/c.exp: Unset lang_include_flags.
15121 * testsuite/libgomp.c++/c++.exp: Likewise.
15122 * testsuite/libgomp.fortran/fortran.exp: Likewise. Set lang_source_re
15123 and lang_include_flags instead of adding -fintrinsic-modules-path= to
15125 * testsuite/libgomp.graphite/graphite.exp: Unset lang_include_flags.
15127 2014-07-03 Thomas Schwinge <thomas@codesourcery.com>
15129 * testsuite/libgomp.fortran/fortran.exp: Explain
15130 gfortran-dg-runtest usage.
15132 2014-06-25 Jakub Jelinek <jakub@redhat.com>
15134 * testsuite/libgomp.fortran/simd5.f90: New test.
15135 * testsuite/libgomp.fortran/simd6.f90: New test.
15136 * testsuite/libgomp.fortran/simd7.f90: New test.
15138 2014-06-24 Jakub Jelinek <jakub@redhat.com>
15140 * testsuite/libgomp.c/for-2.c: Define SC to static for
15141 #pragma omp for simd testing.
15142 * testsuite/libgomp.c/for-2.h (SC): Define if not defined.
15143 (N(f5), N(f6), N(f7), N(f8), N(f10), N(f12), N(f14)): Use
15145 * testsuite/libgomp.c/simd-14.c: New test.
15146 * testsuite/libgomp.c/simd-15.c: New test.
15147 * testsuite/libgomp.c/simd-16.c: New test.
15148 * testsuite/libgomp.c/simd-17.c: New test.
15149 * testsuite/libgomp.c++/for-10.C: Define SC to static for
15150 #pragma omp for simd testing.
15151 * testsuite/libgomp.c++/simd10.C: New test.
15152 * testsuite/libgomp.c++/simd11.C: New test.
15153 * testsuite/libgomp.c++/simd12.C: New test.
15154 * testsuite/libgomp.c++/simd13.C: New test.
15156 * testsuite/libgomp.fortran/aligned1.f03: New test.
15157 * testsuite/libgomp.fortran/nestedfn5.f90: New test.
15158 * testsuite/libgomp.fortran/target7.f90: Surround loop spawning
15159 tasks with !$omp parallel !$omp single.
15160 * testsuite/libgomp.fortran/target8.f90: New test.
15161 * testsuite/libgomp.fortran/udr4.f90 (foo UDR, bar UDR): Adjust
15162 not to use trim in the combiner, instead call elemental function.
15163 (fn): New elemental function.
15164 * testsuite/libgomp.fortran/udr6.f90 (do_add, dp_add, dp_init):
15166 * testsuite/libgomp.fortran/udr7.f90 (omp_priv, omp_orig, omp_out,
15168 * testsuite/libgomp.fortran/udr12.f90: New test.
15169 * testsuite/libgomp.fortran/udr13.f90: New test.
15170 * testsuite/libgomp.fortran/udr14.f90: New test.
15171 * testsuite/libgomp.fortran/udr15.f90: New test.
15173 2014-06-18 Jakub Jelinek <jakub@redhat.com>
15175 * omp_lib.f90.in (openmp_version): Set to 201307.
15176 * omp_lib.h.in (openmp_version): Likewise.
15177 * testsuite/libgomp.c/target-8.c: New test.
15178 * testsuite/libgomp.fortran/declare-simd-1.f90: Add notinbranch
15179 and inbranch clauses.
15180 * testsuite/libgomp.fortran/depend-3.f90: New test.
15181 * testsuite/libgomp.fortran/openmp_version-1.f: Adjust for new
15183 * testsuite/libgomp.fortran/openmp_version-2.f90: Likewise.
15184 * testsuite/libgomp.fortran/target1.f90: New test.
15185 * testsuite/libgomp.fortran/target2.f90: New test.
15186 * testsuite/libgomp.fortran/target3.f90: New test.
15187 * testsuite/libgomp.fortran/target4.f90: New test.
15188 * testsuite/libgomp.fortran/target5.f90: New test.
15189 * testsuite/libgomp.fortran/target6.f90: New test.
15190 * testsuite/libgomp.fortran/target7.f90: New test.
15192 2014-06-10 Jakub Jelinek <jakub@redhat.com>
15195 * testsuite/libgomp.fortran/allocatable9.f90: New test.
15196 * testsuite/libgomp.fortran/allocatable10.f90: New test.
15197 * testsuite/libgomp.fortran/allocatable11.f90: New test.
15198 * testsuite/libgomp.fortran/allocatable12.f90: New test.
15199 * testsuite/libgomp.fortran/alloc-comp-1.f90: New test.
15200 * testsuite/libgomp.fortran/alloc-comp-2.f90: New test.
15201 * testsuite/libgomp.fortran/alloc-comp-3.f90: New test.
15202 * testsuite/libgomp.fortran/associate1.f90: New test.
15203 * testsuite/libgomp.fortran/associate2.f90: New test.
15204 * testsuite/libgomp.fortran/procptr1.f90: New test.
15206 2014-06-06 Jakub Jelinek <jakub@redhat.com>
15208 * testsuite/libgomp.fortran/simd1.f90: New test.
15209 * testsuite/libgomp.fortran/udr1.f90: New test.
15210 * testsuite/libgomp.fortran/udr2.f90: New test.
15211 * testsuite/libgomp.fortran/udr3.f90: New test.
15212 * testsuite/libgomp.fortran/udr4.f90: New test.
15213 * testsuite/libgomp.fortran/udr5.f90: New test.
15214 * testsuite/libgomp.fortran/udr6.f90: New test.
15215 * testsuite/libgomp.fortran/udr7.f90: New test.
15216 * testsuite/libgomp.fortran/udr8.f90: New test.
15217 * testsuite/libgomp.fortran/udr9.f90: New test.
15218 * testsuite/libgomp.fortran/udr10.f90: New test.
15219 * testsuite/libgomp.fortran/udr11.f90: New test.
15221 2014-05-27 Uros Bizjak <ubizjak@gmail.com>
15223 * testsuite/libgomp.fortran/declare-simd-1.f90: Require
15224 vect_simd_clones effective target.
15225 * testsuite/libgomp.fortran/declare-simd-2.f90: Ditto.
15227 2014-05-21 Jakub Jelinek <jakub@redhat.com>
15229 PR middle-end/61252
15230 * testsuite/libgomp.c++/simd-9.C: New test.
15232 2014-05-18 Uros Bizjak <ubizjak@gmail.com>
15234 * libgomp.texi (Runitme Library Routines): Remove multiple @menu.
15235 (Environment Variables) Move OMP_PROC_BIND and OMP_STACKSIZE node
15236 texts according to their @menu entry positions.
15238 2014-05-11 Jakub Jelinek <jakub@redhat.com>
15240 * testsuite/libgomp.fortran/cancel-do-1.f90: New test.
15241 * testsuite/libgomp.fortran/cancel-do-2.f90: New test.
15242 * testsuite/libgomp.fortran/cancel-parallel-1.f90: New test.
15243 * testsuite/libgomp.fortran/cancel-parallel-3.f90: New test.
15244 * testsuite/libgomp.fortran/cancel-sections-1.f90: New test.
15245 * testsuite/libgomp.fortran/cancel-taskgroup-2.f90: New test.
15246 * testsuite/libgomp.fortran/declare-simd-1.f90: New test.
15247 * testsuite/libgomp.fortran/declare-simd-2.f90: New test.
15248 * testsuite/libgomp.fortran/declare-simd-3.f90: New test.
15249 * testsuite/libgomp.fortran/depend-1.f90: New test.
15250 * testsuite/libgomp.fortran/depend-2.f90: New test.
15251 * testsuite/libgomp.fortran/omp_atomic5.f90: New test.
15252 * testsuite/libgomp.fortran/simd1.f90: New test.
15253 * testsuite/libgomp.fortran/simd2.f90: New test.
15254 * testsuite/libgomp.fortran/simd3.f90: New test.
15255 * testsuite/libgomp.fortran/simd4.f90: New test.
15256 * testsuite/libgomp.fortran/taskgroup1.f90: New test.
15258 2014-05-02 Jakub Jelinek <jakub@redhat.com>
15260 * testsuite/libgomp.c/simd-10.c: New test.
15261 * testsuite/libgomp.c/simd-11.c: New test.
15262 * testsuite/libgomp.c/simd-12.c: New test.
15263 * testsuite/libgomp.c/simd-13.c: New test.
15265 2014-04-24 Jakub Jelinek <jakub@redhat.com>
15267 * testsuite/libgomp.c++/atomic-14.C: Allow seq_cst and
15268 atomic type clauses in any order and optional comma in between.
15269 * testsuite/libgomp.c++/atomic-15.C: Likewise.
15270 * testsuite/libgomp.c/atomic-17.c: Likewise.
15272 * testsuite/libgomp.c/simd-7.c: New test.
15273 * testsuite/libgomp.c/simd-8.c: New test.
15274 * testsuite/libgomp.c/simd-9.c: New test.
15275 * testsuite/libgomp.c/loop-16.c: New test.
15277 2014-04-02 Richard Henderson <rth@redhat.com>
15279 * config/linux/futex.h (futex_wait): Get error value from errno.
15280 (futex_wake): Likewise.
15282 2014-03-25 Jakub Jelinek <jakub@redhat.com>
15285 * testsuite/libgomp.c++/udr-11.C: New test.
15286 * testsuite/libgomp.c++/udr-12.C: New test.
15287 * testsuite/libgomp.c++/udr-13.C: New test.
15288 * testsuite/libgomp.c++/udr-14.C: New test.
15289 * testsuite/libgomp.c++/udr-15.C: New test.
15290 * testsuite/libgomp.c++/udr-16.C: New test.
15291 * testsuite/libgomp.c++/udr-17.C: New test.
15292 * testsuite/libgomp.c++/udr-18.C: New test.
15293 * testsuite/libgomp.c++/udr-19.C: New test.
15295 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
15297 Update copyright years
15299 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
15301 * hashtab.h: Use the standard form for the copyright notice.
15303 2014-01-02 Tobias Burnus <burnus@net-b.de>
15305 * libgomp.texi: Bump @copying's copyright year.
15307 2013-12-17 Andreas Tobler <andreast@gcc.gnu.org>
15309 * testsuite/libgomp.c/affinity-1.c: Remove alloca.h include. Replace
15310 alloca () with __builtin_alloca ().
15311 * testsuite/libgomp.c/icv-2.c: Add FreeBSD coverage.
15312 * testsuite/libgomp.c/lock-3.c: Likewise.
15313 * testsuite/libgomp.c/pr48591.c: Likewise.
15315 2013-12-17 Jakub Jelinek <jakub@redhat.com>
15318 * testsuite/libgomp.fortran/retval1.f90 (e5): Avoid non-shortcircuited
15321 2013-12-16 Jakub Jelinek <jakub@redhat.com>
15324 * testsuite/libgomp.c/pr58756.c: New test.
15326 2013-12-12 Jakub Jelinek <jakub@redhat.com>
15329 * testsuite/libgomp.fortran/crayptr2.f90: Add private (d) clause to
15332 2013-11-07 Thomas Schwinge <thomas@codesourcery.com>
15334 * testsuite/lib/libgomp.exp (libgomp_init): Don't add -fopenmp to
15336 * testsuite/libgomp.c++/c++.exp (ALWAYS_CFLAGS): Add -fopenmp.
15337 * testsuite/libgomp.c/c.exp (ALWAYS_CFLAGS): Likewise.
15338 * testsuite/libgomp.fortran/fortran.exp (ALWAYS_CFLAGS): Likewise.
15339 * testsuite/libgomp.graphite/graphite.exp (ALWAYS_CFLAGS):
15342 * libgomp_g.h: Include <stddef.h> for size_t.
15344 * libgomp.spec.in: Update comment about libgomp's dependencies.
15345 * configure.ac: Likewise.
15346 * configure: Regenerate.
15348 2013-10-16 Tobias Burnus <burnus@net-b.de>
15350 * libgomp.texi: (Runtime Library Routines): Update references for
15351 OpenMP 4.0. Add omp_get_cancellation, omp_get_default_device,
15352 omp_get_num_devices, omp_get_num_teams, omp_get_proc_bind,
15353 omp_get_team_num, omp_is_initial_device, omp_set_default_device.
15354 (Environment Variables): Update references for OpenMP 4.0. Add
15355 OMP_CANCELLATION, OMP_DEFAULT_DEVICE, OMP_PLACES.
15356 Move OMP_DISPLAY_ENV and OMP_PROC_BIND up to be in alphabetical
15359 2013-10-14 Jakub Jelinek <jakub@redhat.com>
15361 * env.c (parse_bind_var): Initialize value to avoid
15362 (false positive) warning.
15364 2013-10-12 Jakub Jelinek <jakub@redhat.com>
15367 * config/linux/proc.c (gomp_cpuset_popcount): Add unused attribute
15369 (gomp_init_num_threads): Move i variable declaration into
15370 #ifdef CPU_ALLOC_SIZE block.
15371 * config/linux/affinity.c (gomp_affinity_init_level): Test
15372 gomp_places_list_len == 0 rather than gomp_places_list == 0
15373 when checking for topology reading error.
15374 * team.c (gomp_team_start): Don't handle bind == omp_proc_bind_false.
15375 * env.c (parse_affinity): Add ignore argument, if true, don't populate
15376 gomp_places_list, only parse env var and always return false.
15377 (parse_places_var): Likewise. Don't check gomp_global_icv.bind_var.
15378 (initialize_env): Always parse OMP_PLACES and GOMP_CPU_AFFINITY env
15379 vars, default to OMP_PROC_BIND=true if OMP_PROC_BIND wasn't specified
15380 and either of these variables were parsed correctly into a places
15383 2013-10-11 Thomas Schwinge <thomas@codesourcery.com>
15384 Jakub Jelinek <jakub@redhat.com>
15386 * testsuite/libgomp.graphite/force-parallel-1.c: Expect 4 instead
15387 of 5 loopfn matches.
15388 * testsuite/libgomp.graphite/force-parallel-2.c: Likewise.
15389 * testsuite/libgomp.graphite/force-parallel-3.c: Likewise.
15390 * testsuite/libgomp.graphite/force-parallel-4.c: Likewise.
15391 * testsuite/libgomp.graphite/force-parallel-5.c: Likewise.
15392 * testsuite/libgomp.graphite/force-parallel-6.c: Likewise.
15393 * testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
15394 * testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
15395 * testsuite/libgomp.graphite/force-parallel-9.c: Likewise.
15397 2013-10-11 Thomas Schwinge <thomas@codesourcery.com>
15399 * Makefile.am (omp_lib.mod): Streamline rule.
15400 * Makefile.in: Regenerate.
15402 * libgomp.texi (Runtime Library Routines): C linkage, don't throw
15405 * testsuite/libgomp.c/lib-1.c (main): Add missing error check.
15406 * testsuite/libgomp.fortran/lib1.f90: Likewise.
15407 * testsuite/libgomp.fortran/lib2.f: Likewise.
15408 * testsuite/libgomp.fortran/lib3.f: Likewise.
15410 * configure.ac: Typo fix.
15411 * configure: Regenerate.
15413 * testsuite/libgomp.fortran/openmp_version-1.f: New file.
15414 * testsuite/libgomp.fortran/openmp_version-2.f90: Likewise.
15416 * omp.h.in: Don't touch the user's namespace.
15418 2013-10-11 Jakub Jelinek <jakub@redhat.com>
15419 Tobias Burnus <burnus@net-b.de>
15420 Richard Henderson <rth@redhat.com>
15422 * target.c: New file.
15423 * Makefile.am (libgomp_la_SOURCES): Add target.c.
15424 * Makefile.in: Regenerated.
15425 * libgomp_g.h (GOMP_task): Add depend argument.
15426 (GOMP_barrier_cancel, GOMP_loop_end_cancel,
15427 GOMP_sections_end_cancel, GOMP_target, GOMP_target_data,
15428 GOMP_target_end_data, GOMP_target_update, GOMP_teams,
15429 GOMP_parallel_loop_static, GOMP_parallel_loop_dynamic,
15430 GOMP_parallel_loop_guided, GOMP_parallel_loop_runtime,
15431 GOMP_parallel, GOMP_cancel, GOMP_cancellation_point,
15432 GOMP_taskgroup_start, GOMP_taskgroup_end,
15433 GOMP_parallel_sections): New prototypes.
15434 * fortran.c (omp_is_initial_device): Add ialias_redirect.
15435 (omp_is_initial_device_): New function.
15436 (ULP, STR1, STR2, ialias_redirect): Removed.
15437 (omp_get_cancellation_, omp_get_proc_bind_, omp_set_default_device_,
15438 omp_set_default_device_8_, omp_get_default_device_,
15439 omp_get_num_devices_, omp_get_num_teams_, omp_get_team_num_): New
15441 * libgomp.map (GOMP_barrier_cancel, GOMP_loop_end_cancel,
15442 GOMP_sections_end_cancel, GOMP_target, GOMP_target_data,
15443 GOMP_target_end_data, GOMP_target_update, GOMP_teams): Export
15445 (omp_is_initial_device, omp_is_initial_device_, omp_get_cancellation,
15446 omp_get_cancellation_, omp_get_proc_bind, omp_get_proc_bind_,
15447 omp_set_default_device, omp_set_default_device_,
15448 omp_set_default_device_8_, omp_get_default_device,
15449 omp_get_default_device_, omp_get_num_devices, omp_get_num_devices_,
15450 omp_get_num_teams, omp_get_num_teams_, omp_get_team_num,
15451 omp_get_team_num_): Export @@OMP_4.0.
15452 * team.c (struct gomp_thread_start_data): Add place field.
15453 (gomp_thread_start): Clear thr->thread_pool and
15454 thr->task before returning. Use gomp_team_barrier_wait_final
15455 instead of gomp_team_barrier_wait. Initialize thr->place.
15456 (gomp_new_team): Initialize work_shares_to_free, work_share_cancelled,
15457 team_cancelled and task_queued_count fields.
15458 (gomp_free_pool_helper): Clear thr->thread_pool and thr->task
15459 before calling pthread_exit.
15460 (gomp_free_thread): No longer static. Use
15461 gomp_managed_threads_lock instead of gomp_remaining_threads_lock.
15462 (gomp_team_start): Add flags argument. Set
15463 thr->thread_pool->threads_busy to nthreads immediately after creating
15464 new pool. Use gomp_managed_threads_lock instead of
15465 gomp_remaining_threads_lock. Handle OpenMP 4.0 affinity.
15466 (gomp_team_end): Use gomp_managed_threads_lock instead of
15467 gomp_remaining_threads_lock. Use gomp_team_barrier_wait_final instead
15468 of gomp_team_barrier_wait. If team->team_cancelled, call
15469 gomp_fini_workshare on ws chain starting at team->work_shares_to_free
15470 rather than thr->ts.work_share.
15471 (initialize_team): Don't call gomp_sem_init here.
15472 * sections.c (GOMP_parallel_sections_start): Adjust gomp_team_start
15474 (GOMP_parallel_sections, GOMP_sections_end_cancel): New functions.
15475 * env.c (gomp_global_icv): Add default_device_var, target_data and
15476 bind_var initializers.
15477 (gomp_cpu_affinity, gomp_cpu_affinity_len): Remove.
15478 (gomp_bind_var_list, gomp_bind_var_list_len, gomp_places_list,
15479 gomp_places_list_len): New variables.
15480 (parse_bind_var, parse_one_place, parse_places_var): New functions.
15481 (parse_affinity): Rewritten to construct OMP_PLACES list with unit
15483 (gomp_cancel_var): New global variable.
15484 (parse_int): New function.
15485 (handle_omp_display_env): New function.
15486 (initialize_env): Use it. Initialize default_device_var.
15487 Parse OMP_CANCELLATION env var. Use parse_bind_var to parse
15488 OMP_PROC_BIND instead of parse_boolean. Use parse_places_var for
15489 OMP_PLACES parsing. Don't call parse_affinity if OMP_PLACES has
15490 been successfully parsed (and call gomp_init_affinity in that case).
15491 (omp_get_cancellation, omp_get_proc_bind, omp_set_default_device,
15492 omp_get_default_device, omp_get_num_devices, omp_get_num_teams,
15493 omp_get_team_num, omp_is_initial_device): New functions.
15494 * libgomp.h: Include stdlib.h.
15495 (ialias_ulp, ialias_str1, ialias_str2, ialias_redirect, ialias_call):
15497 (struct target_mem_desc): Forward declare.
15498 (struct gomp_task_icv): Add default_device_var, target_data, bind_var
15499 and thread_limit_var fields.
15500 (gomp_get_num_devices): New prototype.
15501 (gomp_cancel_var): New extern decl.
15502 (struct gomp_team): Add work_shares_to_free, work_share_cancelled,
15503 team_cancelled and task_queued_count fields. Add comments about
15504 task_{,queued_,running_}count.
15505 (gomp_cancel_kind): New enum.
15506 (gomp_work_share_end_cancel): New prototype.
15507 (struct gomp_task): Add next_taskgroup, prev_taskgroup, taskgroup,
15508 copy_ctors_done, dependers, depend_hash, depend_count, num_dependees
15510 (struct gomp_taskgroup): New type.
15511 (struct gomp_task_depend_entry,
15512 struct gomp_dependers_vec): New types.
15513 (gomp_finish_task): Free depend_hash if non-NULL.
15514 (struct gomp_team_state): Add place_partition_off
15515 and place_partition_len fields.
15516 (gomp_bind_var_list, gomp_bind_var_list_len, gomp_places_list,
15517 gomp_places_list_len): New extern decls.
15518 (struct gomp_thread): Add place field.
15519 (gomp_cpu_affinity, gomp_cpu_affinity_len): Remove.
15520 (gomp_init_thread_affinity): Add place argument.
15521 (gomp_affinity_alloc, gomp_affinity_init_place, gomp_affinity_add_cpus,
15522 gomp_affinity_remove_cpu, gomp_affinity_copy_place,
15523 gomp_affinity_same_place, gomp_affinity_finalize_place_list,
15524 gomp_affinity_init_level, gomp_affinity_print_place): New
15526 (gomp_team_start): Add flags argument.
15527 (gomp_thread_limit_var, gomp_remaining_threads_count,
15528 gomp_remaining_threads_lock): Remove.
15529 (gomp_managed_threads_lock): New variable.
15530 (struct gomp_thread_pool): Add threads_busy field.
15531 (gomp_free_thread): New prototype.
15532 * task.c: Include hashtab.h.
15533 (hash_entry_type): New typedef.
15534 (htab_alloc, htab_free, htab_hash, htab_eq): New inlines.
15535 (gomp_init_task): Clear dependers, depend_hash, depend_count,
15536 copy_ctors_done and taskgroup fields.
15537 (GOMP_task): Add depend argument, handle depend clauses. If
15538 gomp_team_barrier_cancelled or if it's taskgroup has been
15539 cancelled, don't queue or start new tasks. Set copy_ctors_done
15540 field if needed. Initialize taskgroup field. If copy_ctors_done
15541 and already cancelled, don't discard the task. If taskgroup is
15542 non-NULL, enqueue the task into taskgroup queue. Increment
15543 num_children field in taskgroup. Increment task_queued_count.
15544 (gomp_task_run_pre, gomp_task_run_post_remove_parent,
15545 gomp_task_run_post_remove_taskgroup): New inline functions.
15546 (gomp_task_run_post_handle_depend_hash,
15547 gomp_task_run_post_handle_dependers,
15548 gomp_task_run_post_handle_depend): New functions.
15549 (GOMP_taskwait): Use them. If more than one new tasks
15550 have been queued, wake other threads if needed.
15551 (gomp_barrier_handle_tasks): Likewise. If
15552 gomp_team_barrier_cancelled, don't start any new tasks, just free
15554 (GOMP_taskgroup_start, GOMP_taskgroup_end): New functions.
15556 (omp_proc_bind_kind, omp_proc_bind_false,
15557 omp_proc_bind_true, omp_proc_bind_master, omp_proc_bind_close,
15558 omp_proc_bind_spread): New params.
15559 (omp_get_cancellation, omp_get_proc_bind, omp_set_default_device,
15560 omp_get_default_device, omp_get_num_devices, omp_get_num_teams,
15561 omp_get_team_num, omp_is_initial_device): New interfaces.
15562 (omp_get_dynamic, omp_get_nested, omp_in_parallel,
15563 omp_get_max_threads, omp_get_num_procs, omp_get_num_threads,
15564 omp_get_thread_num, omp_get_thread_limit, omp_set_max_active_levels,
15565 omp_get_max_active_levels, omp_get_level, omp_get_ancestor_thread_num,
15566 omp_get_team_size, omp_get_active_level, omp_in_final): Remove
15567 useless use omp_lib_kinds.
15568 * omp.h.in (omp_proc_bind_t): New typedef.
15569 (omp_get_cancellation, omp_get_proc_bind, omp_set_default_device,
15570 omp_get_default_device, omp_get_num_devices, omp_get_num_teams,
15571 omp_get_team_num, omp_is_initial_device): New prototypes.
15572 * loop.c (gomp_parallel_loop_start): Add flags argument, pass it
15573 through to gomp_team_start.
15574 (GOMP_parallel_loop_static_start, GOMP_parallel_loop_dynamic_start,
15575 GOMP_parallel_loop_guided_start, GOMP_parallel_loop_runtime_start):
15576 Adjust gomp_parallel_loop_start callers.
15577 (GOMP_parallel_loop_static, GOMP_parallel_loop_dynamic,
15578 GOMP_parallel_loop_guided, GOMP_parallel_loop_runtime,
15579 GOMP_loop_end_cancel): New functions.
15580 (GOMP_parallel_end): Add ialias_redirect.
15581 * hashtab.h: New file.
15582 * libgomp.texi (Environment Variables): Minor cleanup,
15583 update section refs to OpenMP 4.0rc2.
15584 (OMP_DISPLAY_ENV, GOMP_SPINCOUNT): Document these
15585 environment variables.
15586 * work.c (gomp_work_share_end, gomp_work_share_end_nowait): Set
15587 team->work_shares_to_free to thr->ts.work_share before calling
15589 (gomp_work_share_end_cancel): New function.
15590 * config/linux/proc.c: Include errno.h.
15591 (gomp_get_cpuset_size, gomp_cpuset_size, gomp_cpusetp): New variables.
15592 (gomp_cpuset_popcount): Add cpusetsize argument, use it instead of
15593 sizeof (cpu_set_t) to determine number of iterations. Fix up check
15594 extern decl. Use CPU_COUNT_S if available, or CPU_COUNT if
15595 gomp_cpuset_size is sizeof (cpu_set_t).
15596 (gomp_init_num_threads): Initialize gomp_cpuset_size,
15597 gomp_get_cpuset_size and gomp_cpusetp here, use gomp_cpusetp instead
15598 of &cpuset and pass gomp_cpuset_size instead of sizeof (cpu_set_t)
15599 to pthread_getaffinity_np. Free and clear gomp_cpusetp if it didn't
15600 contain any logical CPUs.
15601 (get_num_procs): Don't call pthread_getaffinity_np if gomp_cpusetp
15602 is NULL. Use gomp_cpusetp instead of &cpuset and pass
15603 gomp_get_cpuset_size instead of sizeof (cpu_set_t) to
15604 pthread_getaffinity_np. Check gomp_places_list instead of
15605 gomp_cpu_affinity. Adjust gomp_cpuset_popcount caller.
15606 * config/linux/bar.c (gomp_barrier_wait_end,
15607 gomp_barrier_wait_last): Use BAR_* defines.
15608 (gomp_team_barrier_wait_end): Likewise. Clear BAR_CANCELLED
15609 from state where needed. Set work_share_cancelled to 0 on last
15611 (gomp_team_barrier_wait_final, gomp_team_barrier_wait_cancel_end,
15612 gomp_team_barrier_wait_cancel, gomp_team_barrier_cancel): New
15614 * config/linux/proc.h (gomp_cpuset_popcount): Add attribute_hidden.
15615 Add cpusetsize argument.
15616 (gomp_cpuset_size, gomp_cpusetp): Declare.
15617 * config/linux/affinity.c: Include errno.h, stdio.h and string.h.
15618 (affinity_counter): Remove.
15619 (CPU_ISSET_S, CPU_ZERO_S, CPU_SET_S, CPU_CLR_S): Define
15620 if CPU_ALLOC_SIZE isn't defined.
15621 (gomp_init_affinity): Rewritten, if gomp_places_list is NULL, try
15622 silently create OMP_PLACES=threads, if it is non-NULL afterwards,
15623 bind current thread to the first place.
15624 (gomp_init_thread_affinity): Rewritten. Add place argument, just
15625 pthread_setaffinity_np to gomp_places_list[place].
15626 (gomp_affinity_alloc, gomp_affinity_init_place, gomp_affinity_add_cpus,
15627 gomp_affinity_remove_cpu, gomp_affinity_copy_place,
15628 gomp_affinity_same_place, gomp_affinity_finalize_place_list,
15629 gomp_affinity_init_level, gomp_affinity_print_place): New functions.
15630 * config/linux/bar.h (BAR_TASK_PENDING, BAR_WAS_LAST,
15631 BAR_WAITING_FOR_TASK, BAR_INCR, BAR_CANCELLED): Define.
15632 (gomp_barrier_t): Add awaited_final field.
15633 (gomp_barrier_init): Initialize awaited_final field.
15634 (gomp_team_barrier_wait_final, gomp_team_barrier_wait_cancel,
15635 gomp_team_barrier_wait_cancel_end, gomp_team_barrier_cancel): New
15637 (gomp_barrier_wait_start): Preserve BAR_CANCELLED bit. Use BAR_*
15639 (gomp_barrier_wait_cancel_start, gomp_team_barrier_wait_final_start,
15640 gomp_team_barrier_cancelled): New inline functions.
15641 (gomp_barrier_last_thread,
15642 gomp_team_barrier_set_task_pending,
15643 gomp_team_barrier_clear_task_pending,
15644 gomp_team_barrier_set_waiting_for_tasks,
15645 gomp_team_barrier_waiting_for_tasks,
15646 gomp_team_barrier_done): Use BAR_* defines.
15647 * config/posix/bar.c (gomp_barrier_init): Clear cancellable field.
15648 (gomp_barrier_wait_end): Use BAR_* defines.
15649 (gomp_team_barrier_wait_end): Clear BAR_CANCELLED from state.
15650 Set work_share_cancelled to 0 on last thread, use __atomic_load_n.
15652 (gomp_team_barrier_wait_cancel_end, gomp_team_barrier_wait_cancel,
15653 gomp_team_barrier_cancel): New functions.
15654 * config/posix/affinity.c (gomp_init_thread_affinity): Add place
15656 (gomp_affinity_alloc, gomp_affinity_init_place, gomp_affinity_add_cpus,
15657 gomp_affinity_remove_cpu, gomp_affinity_copy_place,
15658 gomp_affinity_same_place, gomp_affinity_finalize_place_list,
15659 gomp_affinity_init_level, gomp_affinity_print_place): New stubs.
15660 * config/posix/bar.h (BAR_TASK_PENDING, BAR_WAS_LAST,
15661 BAR_WAITING_FOR_TASK, BAR_INCR, BAR_CANCELLED): Define.
15662 (gomp_barrier_t): Add cancellable field.
15663 (gomp_team_barrier_wait_cancel, gomp_team_barrier_wait_cancel_end,
15664 gomp_team_barrier_cancel): New prototypes.
15665 (gomp_barrier_wait_start): Preserve BAR_CANCELLED bit.
15666 (gomp_barrier_wait_cancel_start, gomp_team_barrier_wait_final,
15667 gomp_team_barrier_cancelled): New inline functions.
15668 (gomp_barrier_wait_start, gomp_barrier_last_thread,
15669 gomp_team_barrier_set_task_pending,
15670 gomp_team_barrier_clear_task_pending,
15671 gomp_team_barrier_set_waiting_for_tasks,
15672 gomp_team_barrier_waiting_for_tasks,
15673 gomp_team_barrier_done): Use BAR_* defines.
15674 * barrier.c (GOMP_barrier_cancel): New function.
15675 * omp_lib.h.in (omp_proc_bind_kind, omp_proc_bind_false,
15676 omp_proc_bind_true, omp_proc_bind_master, omp_proc_bind_close,
15677 omp_proc_bind_spread): New params.
15678 (omp_get_cancellation, omp_get_proc_bind, omp_set_default_device,
15679 omp_get_default_device, omp_get_num_devices, omp_get_num_teams,
15680 omp_get_team_num, omp_is_initial_device): New externals.
15681 * parallel.c (GOMP_parallel, GOMP_cancel, GOMP_cancellation_point):
15683 (gomp_resolve_num_threads): Adjust for thread_limit now being in
15684 icv->thread_limit_var. Use UINT_MAX instead of ULONG_MAX as
15685 infinity. If not nested, just return minimum of max_num_threads
15686 and icv->thread_limit_var and if thr->thread_pool, set threads_busy
15687 to the returned value. Otherwise, don't update atomically
15688 gomp_remaining_threads_count, but instead thr->thread_pool->threads_busy.
15689 (GOMP_parallel_end): Adjust for thread_limit now being in
15690 icv->thread_limit_var. Use UINT_MAX instead of ULONG_MAX as
15691 infinity. Adjust threads_busy in the pool rather than
15692 gomp_remaining_threads_count. Remember team->nthreads and call
15693 gomp_team_end before adjusting threads_busy, if not nested
15694 afterwards, just set it to 1 non-atomically. Add ialias.
15695 (GOMP_parallel_start): Adjust gomp_team_start caller.
15696 * testsuite/libgomp.c/atomic-14.c: Add parens to make it valid.
15697 * testsuite/libgomp.c/affinity-1.c: New test.
15698 * testsuite/libgomp.c/atomic-15.c: New test.
15699 * testsuite/libgomp.c/atomic-16.c: New test.
15700 * testsuite/libgomp.c/atomic-17.c: New test.
15701 * testsuite/libgomp.c/cancel-for-1.c: New test.
15702 * testsuite/libgomp.c/cancel-for-2.c: New test.
15703 * testsuite/libgomp.c/cancel-parallel-1.c: New test.
15704 * testsuite/libgomp.c/cancel-parallel-2.c: New test.
15705 * testsuite/libgomp.c/cancel-parallel-3.c: New test.
15706 * testsuite/libgomp.c/cancel-sections-1.c: New test.
15707 * testsuite/libgomp.c/cancel-taskgroup-1.c: New test.
15708 * testsuite/libgomp.c/cancel-taskgroup-2.c: New test.
15709 * testsuite/libgomp.c/depend-1.c: New test.
15710 * testsuite/libgomp.c/depend-2.c: New test.
15711 * testsuite/libgomp.c/depend-3.c: New test.
15712 * testsuite/libgomp.c/depend-4.c: New test.
15713 * testsuite/libgomp.c/for-1.c: New test.
15714 * testsuite/libgomp.c/for-1.h: New file.
15715 * testsuite/libgomp.c/for-2.c: New test.
15716 * testsuite/libgomp.c/for-2.h: New file.
15717 * testsuite/libgomp.c/for-3.c: New test.
15718 * testsuite/libgomp.c/pr58392.c: New test.
15719 * testsuite/libgomp.c/simd-1.c: New test.
15720 * testsuite/libgomp.c/simd-2.c: New test.
15721 * testsuite/libgomp.c/simd-3.c: New test.
15722 * testsuite/libgomp.c/simd-4.c: New test.
15723 * testsuite/libgomp.c/simd-5.c: New test.
15724 * testsuite/libgomp.c/simd-6.c: New test.
15725 * testsuite/libgomp.c/target-1.c: New test.
15726 * testsuite/libgomp.c/target-2.c: New test.
15727 * testsuite/libgomp.c/target-3.c: New test.
15728 * testsuite/libgomp.c/target-4.c: New test.
15729 * testsuite/libgomp.c/target-5.c: New test.
15730 * testsuite/libgomp.c/target-6.c: New test.
15731 * testsuite/libgomp.c/target-7.c: New test.
15732 * testsuite/libgomp.c/taskgroup-1.c: New test.
15733 * testsuite/libgomp.c/thread-limit-1.c: New test.
15734 * testsuite/libgomp.c/thread-limit-2.c: New test.
15735 * testsuite/libgomp.c/thread-limit-3.c: New test.
15736 * testsuite/libgomp.c/udr-1.c: New test.
15737 * testsuite/libgomp.c/udr-2.c: New test.
15738 * testsuite/libgomp.c/udr-3.c: New test.
15739 * testsuite/libgomp.c++/affinity-1.C: New test.
15740 * testsuite/libgomp.c++/atomic-10.C: New test.
15741 * testsuite/libgomp.c++/atomic-11.C: New test.
15742 * testsuite/libgomp.c++/atomic-12.C: New test.
15743 * testsuite/libgomp.c++/atomic-13.C: New test.
15744 * testsuite/libgomp.c++/atomic-14.C: New test.
15745 * testsuite/libgomp.c++/atomic-15.C: New test.
15746 * testsuite/libgomp.c++/cancel-for-1.C: New test.
15747 * testsuite/libgomp.c++/cancel-for-2.C: New test.
15748 * testsuite/libgomp.c++/cancel-parallel-1.C: New test.
15749 * testsuite/libgomp.c++/cancel-parallel-2.C: New test.
15750 * testsuite/libgomp.c++/cancel-parallel-3.C: New test.
15751 * testsuite/libgomp.c++/cancel-sections-1.C: New test.
15752 * testsuite/libgomp.c++/cancel-taskgroup-1.C: New test.
15753 * testsuite/libgomp.c++/cancel-taskgroup-2.C: New test.
15754 * testsuite/libgomp.c++/cancel-taskgroup-3.C: New test.
15755 * testsuite/libgomp.c++/cancel-test.h: New file.
15756 * testsuite/libgomp.c++/for-9.C: New test.
15757 * testsuite/libgomp.c++/for-10.C: New test.
15758 * testsuite/libgomp.c++/for-11.C: New test.
15759 * testsuite/libgomp.c++/simd-1.C: New test.
15760 * testsuite/libgomp.c++/simd-2.C: New test.
15761 * testsuite/libgomp.c++/simd-3.C: New test.
15762 * testsuite/libgomp.c++/simd-4.C: New test.
15763 * testsuite/libgomp.c++/simd-5.C: New test.
15764 * testsuite/libgomp.c++/simd-6.C: New test.
15765 * testsuite/libgomp.c++/simd-7.C: New test.
15766 * testsuite/libgomp.c++/simd-8.C: New test.
15767 * testsuite/libgomp.c++/target-1.C: New test.
15768 * testsuite/libgomp.c++/target-2.C: New test.
15769 * testsuite/libgomp.c++/target-2-aux.cc: New file.
15770 * testsuite/libgomp.c++/target-3.C: New test.
15771 * testsuite/libgomp.c++/taskgroup-1.C: New test.
15772 * testsuite/libgomp.c++/udr-1.C: New test.
15773 * testsuite/libgomp.c++/udr-2.C: New test.
15774 * testsuite/libgomp.c++/udr-3.C: New test.
15775 * testsuite/libgomp.c++/udr-4.C: New test.
15776 * testsuite/libgomp.c++/udr-5.C: New test.
15777 * testsuite/libgomp.c++/udr-6.C: New test.
15778 * testsuite/libgomp.c++/udr-7.C: New test.
15779 * testsuite/libgomp.c++/udr-8.C: New test.
15780 * testsuite/libgomp.c++/udr-9.C: New test.
15782 2013-09-20 Jakub Jelinek <jakub@redhat.com>
15785 * testsuite/lib/libgomp.exp: Add -fdiagnostics-color=never to
15788 2013-09-20 Alan Modra <amodra@gmail.com>
15790 * configure: Regenerate.
15792 2013-09-19 Jakub Jelinek <jakub@redhat.com>
15794 * testsuite/libgomp.c/sections-2.c: New test.
15796 2013-06-28 Marcus Shawcroft <marcus.shawcroft@arm.com>
15798 * testsuite/libgomp.fortran/strassen.f90:
15799 Add dg-skip-if aarch64_tiny.
15801 2013-06-20 Iain Sandoe <iain@codesourcery.com>
15802 Cesar Philippidis <cesar@codesourcery.com>
15804 * testsuite/lib/libgomp.exp: Reorder lib loads into dependency order.
15805 Do not load_gcc_lib gcc-dg.exp and add a comment as to why.
15806 * testsuite/libgomp.c/c.exp: load_gcc_lib gcc-dg.exp.
15807 * testsuite/libgomp.fortran/fortran.exp: Likewise.
15808 * testsuite/libgomp.graphite/graphite.exp: Likewise.
15809 * testsuite/libgomp.c++/c++.exp: load_gcc_lib gcc-dg.exp.
15810 Use dg-runtest rather than gfortran-dg-runtest.
15812 2013-06-10 Thomas Schwinge <thomas@codesourcery.com>
15814 * testsuite/libgomp.c/icv-2.c: Extend current handling of
15815 Linux-based x86 systems to cover all GNU systems.
15816 * testsuite/libgomp.c/lock-3.c: Likewise.
15817 * testsuite/libgomp.c/pr48591.c: Likewise.
15819 2013-06-06 Thomas Schwinge <thomas@codesourcery.com>
15821 * configure.tgt (XCFLAGS): Add -ftls-model=initial-exec for
15822 GNU/Hurd, as done for Linux-based systems.
15824 * config/posix/ptrlock.h: Fix comment.
15826 2013-05-27 Tobias Burnus <burnus@net-b.de>
15829 * libgomp.texi (omp_set_dynamic, omp_set_nested, omp_set_nested,
15830 omp_set_num_threads, omp_init_lock, omp_set_lock, omp_test_lock,
15831 omp_unset_lock, omp_destroy_lock, omp_init_nest_lock,
15832 omp_set_nest_lock, omp_test_nest_lock, omp_unset_nest_lock,
15833 omp_destroy_nest_lock): Correct arguments to match the one in
15835 * omp_lib.f90.in (omp_init_lock, omp_init_nest_lock, omp_destroy_lock
15836 omp_destroy_nest_lock, omp_set_lock, omp_set_nest_lock, omp_unset_lock,
15837 omp_unset_nest_lock, omp_set_dynamic, omp_set_nested,
15838 omp_set_num_threads, omp_test_lock, omp_test_nest_lock): Ditto.
15840 2013-05-16 Jakub Jelinek <jakub@redhat.com>
15842 * testsuite/libgomp.c/loop-13.c: New test.
15843 * testsuite/libgomp.c/loop-14.c: New test.
15844 * testsuite/libgomp.c/loop-15.c: New test.
15845 * testsuite/libgomp.c++/loop-13.C: New test.
15846 * testsuite/libgomp.c++/loop-14.C: New test.
15847 * testsuite/libgomp.c++/loop-15.C: New test.
15849 2013-02-06 Jakub Jelinek <jakub@redhat.com>
15851 PR middle-end/56217
15852 * testsuite/libgomp.c++/pr56217.C: New test.
15854 2013-02-01 Alan Modra <amodra@gmail.com>
15856 * task.c (GOMP_task, GOMP_taskwait): Comment.
15858 2013-01-31 Dmitry Vyukov <dvyukov@gcc.gnu.org>
15859 Joost VandeVondele <Joost.VandeVondele@mat.ethz.ch>
15862 * config/linux/wait.h (do_spin): Use atomic load for addr.
15863 * config/linux/ptrlock.c (gomp_ptrlock_get_slow): Use atomic
15864 for intptr and ptrlock.
15865 * config/linux/ptrlock.h (gomp_ptrlock_get): Use atomic load
15868 2013-01-22 Alan Modra <amodra@gmail.com>
15872 * task.c (GOMP_task): Revert 2011-12-09 change.
15873 (GOMP_taskwait): Likewise. Instead use atomic load with acquire
15874 barrier to read task->children..
15875 (gomp_barrier_handle_tasks): ..and matching atomic store with
15876 release barrier here when setting parent->children to NULL.
15878 2013-01-16 Jakub Jelinek <jakub@redhat.com>
15879 Tobias Burnus <burnus@net-b.de>
15882 * testsuite/libgomp.fortran/fortran.exp: Use
15883 -fintrinsic-modules-path= instead of
15884 -fintrinsic-modules-path.
15886 2013-01-14 Richard Sandiford <rdsandiford@googlemail.com>
15888 Update copyright years.
15890 2012-12-19 Tobias Burnus <burnus@net-b.de>
15892 * testsuite/libgomp.fortran/fortran.exp: Set
15893 -fintrinsic-modules-path.
15895 2012-12-19 Tobias Burnus <burnus@net-b.de>
15897 * testsuite/libgomp.fortran/use_intrinsic_1.f90: New; moved
15898 from gcc/testsuite/gfortran.dg/gomp/use_intrinsic_1.f90.
15900 2012-11-21 Jakub Jelinek <jakub@redhat.com>
15903 * team.c (gomp_free_thread): Decrease gomp_managed_threads
15904 if pool had any threads_used.
15906 2012-11-07 Jack Howarth <howarth@bromo.med.uc.edu>
15908 * testsuite/libgomp.c++/pr24455.C: Use
15909 -Wl,-undefined,dynamic_lookup on darwin.
15911 2012-11-07 David Edelsohn <dje.gcc@gmail.com>
15913 * testsuite/libgomp.c++/pr24455.C: Use -Wl,-G on AIX.
15915 2012-10-24 Dominique d'Humieres <dominiq@lps.ens.fr>
15917 * testsuite/libgomp.graphite/force-parallel-6.c: Adjust the loops.
15919 2012-10-23 Ian Bolton <ian.bolton@arm.com>
15920 Jim MacArthur <jim.macarthur@arm.com>
15921 Marcus Shawcroft <marcus.shawcroft@arm.com>
15922 Nigel Stephens <nigel.stephens@arm.com>
15923 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
15924 Richard Earnshaw <rearnsha@arm.com>
15925 Sofiane Naci <sofiane.naci@arm.com>
15926 Stephen Thomas <stephen.thomas@arm.com>
15927 Tejas Belagod <tejas.belagod@arm.com>
15928 Yufeng Zhang <yufeng.zhang@arm.com>
15930 * configure.tgt: Add AArch64.
15932 2012-10-04 Jason Merrill <jason@redhat.com>
15934 * testsuite/libgomp.c++/tls-init1.C: New.
15936 2012-09-14 David Edelsohn <dje.gcc@gmail.com>
15938 * configure: Regenerated.
15940 2012-08-29 Chung-Lin Tang <cltang@codesourcery.com>
15942 * config/linux/mips/futex.h (sys_futex0): Change to static
15943 function with noinline, nomips16 attributes under MIPS16. Adjust
15944 asm statement to place 'li v0,SYS_futex' immediately before
15947 2012-07-04 Sandra Loosemore <sandra@codesourcery.com>
15949 * libgomp.texi (Library Index): Renamed from "Index" to prevent
15950 conflict with index.html on case-insensitive file systems.
15952 2012-07-03 Uros Bizjak <ubizjak@gmail.com>
15954 * config/linux/x86/futex.h (cpu_relax): Use __builtin_ia32_pause.
15955 * testsuite/libgomp.c/sort-1.c (busy_wait): Ditto.
15957 2012-07-02 Richard Guenther <rguenther@suse.de>
15958 Michael Matz <matz@suse.de>
15959 Tobias Grosser <tobias@grosser.es>
15960 Sebastian Pop <sebpop@gmail.com>
15962 * testsuite/libgomp.graphite/force-parallel-4.c: Adjust.
15963 * testsuite/libgomp.graphite/force-parallel-5.c: Likewise.
15964 * testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
15965 * testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
15967 2012-06-28 Andreas Schwab <schwab@linux-m68k.org>
15969 * libgomp.texi: Include gpl_v3.texi instead of gpl.texi.
15971 2012-06-22 Richard Guenther <rguenther@suse.de>
15973 Merge from graphite branch
15974 2012-01-13 Tobias Grosser <tobias@grosser.es>
15976 * testsuite/libgomp.graphite/force-parallel-1.c: Adjust.
15977 * testsuite/libgomp.graphite/force-parallel-2.c: Likewise.
15979 2012-06-07 Jakub Jelinek <jakub@redhat.com>
15981 PR middle-end/53580
15982 * testsuite/libgomp.c/pr26943-2.c: Remove #pragma omp barrier,
15983 use GOMP_barrier () call instead.
15984 * testsuite/libgomp.c/pr26943-3.c: Likewise.
15985 * testsuite/libgomp.c/pr26943-4.c: Likewise.
15986 * testsuite/libgomp.fortran/vla4.f90: Remove !$omp barrier,
15987 call GOMP_barrier instead.
15988 * testsuite/libgomp.fortran/vla5.f90: Likewise.
15990 2012-06-06 Jakub Jelinek <jakub@redhat.com>
15993 * config/linux/lock.c (gomp_init_nest_lock_25): Fix up last
15994 argument to memset call.
15996 2012-05-16 H.J. Lu <hongjiu.lu@intel.com>
15998 * configure: Regenerated.
16000 2012-04-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
16002 * testsuite/lib/libgomp.exp: Add -fno-diagnostics-show-caret.
16004 2012-03-31 H.J. Lu <hongjiu.lu@intel.com>
16007 * configure.tgt (i[456]86-*-linux*): Handle -mx32 like -m64.
16009 2012-03-22 Jakub Jelinek <jakub@redhat.com>
16011 PR middle-end/52547
16012 * testsuite/libgomp.c/pr52547.c: New test.
16014 2012-03-16 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
16016 * testsuite/lib/libgomp.exp: load fortran-modules.exp
16018 2012-03-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16020 * configure.tgt (mips-sgi-irix6*): Remove.
16022 2012-03-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16024 * configure.tgt (alpha*-dec-osf*): Remove.
16026 * config/osf/sem.h: Remove.
16027 * config/posix/lock.c (_XOPEN_SOURCE): Define unconditionally.
16029 2012-02-29 Eric Botcazou <ebotcazou@adacore.com>
16031 * config/linux/sparc/futex.h (cpu_relax): Read from CC register.
16033 2012-02-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16036 * acinclude.m4 (LIBGOMP_ENABLE_SYMVERS): Remove symvers_renaming.
16037 Remove ENABLE_SYMVERS_SOL2.
16038 * configure: Regenerate.
16039 * Makefile.am [LIBGOMP_BUILD_VERSIONED_SHLIB] (comma): New variable.
16040 (PREPROCESS): New variable.
16041 (libgomp.ver): New target.
16042 [LIBGOMP_BUILD_VERSIONED_SHLIB &&
16043 LIBGOMP_BUILD_VERSIONED_SHLIB_GNU]: Remove
16044 LIBGOMP_BUILD_VERSIONED_SHLIB_SOL2 handling.
16046 [LIBGOMP_BUILD_VERSIONED_SHLIB_SUN]: Use libgomp.ver, libgomp.ver-sun.
16047 * Makefile.in: Regenerate.
16049 2012-02-14 Walter Lee <walt@tilera.com>
16051 * configure.tgt: Handle tilegx and tilepro.
16052 * config/linux/tile/futex.h: New file.
16054 2012-02-08 Richard Guenther <rguenther@suse.de>
16056 PR tree-optimization/46886
16057 * testsuite/libgomp.c/pr46886.c: New testcase.
16059 2012-01-25 Matthias Klose <doko@ubuntu.com>
16061 * config/linux/arm: Remove empty directory.
16062 * configure.tgt (config_path): Remove linux-arm for arm*-*-linux*.
16064 2011-12-09 Alan Modra <amodra@gmail.com>
16067 * task.c (GOMP_taskwait): Don't access task->children outside of
16068 task_lock mutex region.
16069 (GOMP_task): Likewise.
16071 2011-12-06 Jakub Jelinek <jakub@redhat.com>
16074 * testsuite/libgomp.graphite/force-parallel-1.c: Move large arrays
16076 * testsuite/libgomp.graphite/force-parallel-3.c: Likewise.
16077 * testsuite/libgomp.graphite/force-parallel-6.c: Likewise.
16078 * testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
16079 * testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
16080 * testsuite/libgomp.graphite/force-parallel-9.c: Likewise.
16082 2011-12-02 Alan Modra <amodra@gmail.com>
16084 * config/linux/affinity.c: Use atomic rather than sync builtin.
16085 * config/linux/lock.c: Likewise.
16086 * config/linux/ptrlock.h: Likewise.
16087 * config/linux/ptrlock.c: Likewise.
16088 * config/linux/ptrlock.h (gomp_ptrlock_set): Always write here..
16089 * config/linux/ptrlock.c (gomp_ptrlock_set_slow): ..not here.
16090 * config/linux/futex.h (atomic_write_barrier): Delete unused function.
16091 * config/linux/alpha/futex.h (atomic_write_barrier): Likewise.
16092 * config/linux/ia64/futex.h (atomic_write_barrier): Likewise.
16093 * config/linux/mips/futex.h (atomic_write_barrier): Likewise.
16094 * config/linux/powerpc/futex.h (atomic_write_barrier): Likewise.
16095 * config/linux/s390/futex.h (atomic_write_barrier): Likewise.
16096 * config/linux/sparc/futex.h (atomic_write_barrier): Likewise.
16097 * config/linux/x86/futex.h (atomic_write_barrier): Likewise.
16099 2011-11-30 Alan Modra <amodra@gmail.com>
16102 * config/linux/bar.h: Use atomic rather than sync builtins.
16103 * config/linux/bar.c: Likewise. Add missing acquire
16104 synchronisation on generation field.
16105 * task.c (gomp_barrier_handle_tasks): Regain lock so as to not
16108 2011-11-30 Alan Modra <amodra@gmail.com>
16110 * ordered.c (gomp_ordered_sync): Add MEMMODEL_ACQ_REL fence.
16111 * critical.c (GOMP_critical_start): Add MEMMODEL_RELEASE fence.
16112 * config/linux/mutex.h: Use atomic rather than sync builtins.
16113 * config/linux/mutex.c: Likewise. Comment. Use -1 for waiting state.
16114 * config/linux/omp-lock.h: Comment fix.
16115 * config/linux/arm/mutex.h: Delete.
16116 * config/linux/powerpc/mutex.h: Delete.
16117 * config/linux/ia64/mutex.h: Delete.
16118 * config/linux/mips/mutex.h: Delete.
16120 2011-11-30 Alan Modra <amodra@gmail.com>
16123 * config/linux/sem.h: Rewrite.
16124 * config/linux/sem.c: Rewrite.
16126 2011-11-28 Richard Henderson <rth@redhat.com>
16128 * libgomp.h (enum memmodel): New.
16130 2011-11-21 Andreas Tobler <andreast@fgznet.ch>
16132 * configure: Regenerate.
16134 2011-10-10 Matthias Klose <doko@ubuntu.com>
16136 * config/posix95: Remove empty directory.
16138 2011-08-26 Jakub Jelinek <jakub@redhat.com>
16140 * testsuite/libgomp.fortran/threadprivate4.f90: New test.
16142 2011-08-19 Jakub Jelinek <jakub@redhat.com>
16145 * testsuite/libgomp.fortran/pr49792-1.f90: New test.
16146 * testsuite/libgomp.fortran/pr49792-2.f90: New test.
16148 2011-08-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16150 * config/posix95/lock.c, posix95/omp-lock.h: Remove.
16152 2011-08-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16155 * testsuite/libgomp.c++/task-8.C: Replaced err by errval.
16157 2011-08-03 Uros Bizjak <ubizjak@gmail.com>
16159 * config/linux/proc.h: New.
16160 * config/linux/proc.c: Include "proc.h". Do not include <sched.h>.
16161 (gomp_cpuset_popcount): Rename from cpuset_popcount. No more static.
16162 (gomp_init_num_threads): Update call to cpuset_popcount.
16163 (get_num_procs): Ditto.
16164 * config/linux/affinity.c (gomp_init_affinity): Call
16165 gomp_cpuset_popcount.
16167 2011-08-02 Jakub Jelinek <jakub@redhat.com>
16171 * omp.h.in (omp_in_final): New prototype.
16172 * omp_lib.f90.in (omp_in_final): New interface.
16173 (omp_integer_kind, omp_logical_kind): Remove
16174 and replace all its uses in the module with 4.
16175 (openmp_version): Change to 201107.
16176 * omp_lib.h.in (omp_sched_static, omp_sched_dynamic,
16177 omp_sched_guided, omp_sched_auto): Use omp_sched_kind
16178 kind for the parameters.
16179 (omp_in_final): New external.
16180 (openmp_version): Change to 201107.
16181 * task.c (omp_in_final): New function.
16182 (gomp_init_task): Initialize final_task.
16183 (GOMP_task): Remove unused attribute from flags. Handle final
16185 (GOMP_taskyield): New function.
16186 (omp_in_final): Return true if if (false) or final (true) task
16187 or descendant of final (true).
16188 * fortran.c (omp_in_final_): New function.
16189 * libgomp.map (OMP_3.1): Export omp_in_final and omp_in_final_.
16190 (GOMP_3.0): Export GOMP_taskyield.
16191 * env.c (gomp_nthreads_var_list, gomp_nthreads_var_list_len): New
16193 (parse_unsigned_long_list): New function.
16194 (initialize_env): Use it for OMP_NUM_THREADS. Call parse_boolean
16195 with "OMP_PROC_BIND". If OMP_PROC_BIND=true, call gomp_init_affinity
16196 even if parse_affinity returned false.
16197 * config/linux/affinity.c (gomp_init_affinity): Handle
16198 gomp_cpu_affinity_len == 0.
16199 * libgomp_g.h (GOMP_taskyield): New prototype.
16200 * libgomp.h (struct gomp_task): Add final_task field.
16201 (gomp_nthreads_var_list, gomp_nthreads_var_list_len): New externs.
16202 * team.c (gomp_team_start): Override new task's nthreads_var icv
16203 if list form OMP_NUM_THREADS has been used and it has value for
16204 the new nesting level.
16206 * testsuite/libgomp.c/atomic-11.c: New test.
16207 * testsuite/libgomp.c/atomic-12.c: New test.
16208 * testsuite/libgomp.c/atomic-13.c: New test.
16209 * testsuite/libgomp.c/atomic-14.c: New test.
16210 * testsuite/libgomp.c/reduction-6.c: New test.
16211 * testsuite/libgomp.c/task-5.c: New test.
16212 * testsuite/libgomp.c++/atomic-2.C: New test.
16213 * testsuite/libgomp.c++/atomic-3.C: New test.
16214 * testsuite/libgomp.c++/atomic-4.C: New test.
16215 * testsuite/libgomp.c++/atomic-5.C: New test.
16216 * testsuite/libgomp.c++/atomic-6.C: New test.
16217 * testsuite/libgomp.c++/atomic-7.C: New test.
16218 * testsuite/libgomp.c++/atomic-8.C: New test.
16219 * testsuite/libgomp.c++/atomic-9.C: New test.
16220 * testsuite/libgomp.c++/task-8.C: New test.
16221 * testsuite/libgomp.c++/reduction-4.C: New test.
16222 * testsuite/libgomp.fortran/allocatable7.f90: New test.
16223 * testsuite/libgomp.fortran/allocatable8.f90: New test.
16224 * testsuite/libgomp.fortran/crayptr3.f90: New test.
16225 * testsuite/libgomp.fortran/omp_atomic3.f90: New test.
16226 * testsuite/libgomp.fortran/omp_atomic4.f90: New test.
16227 * testsuite/libgomp.fortran/pointer1.f90: New test.
16228 * testsuite/libgomp.fortran/pointer2.f90: New test.
16229 * testsuite/libgomp.fortran/task4.f90: New test.
16231 2011-08-02 Tobias Burnus <burnus@net-b.de>
16233 * libgomp.texi: Update OpenMP spec references to 3.1.
16234 (omp_in_final,OMP_PROC_BIND): New sections.
16235 (OMP_NUM_THREADS): Document that the value can be now a list.
16236 (GOMP_STACKSIZE,GOMP_CPU_AFFINITY): Update @ref.
16238 2011-08-02 H.J. Lu <hongjiu.lu@intel.com>
16240 * config/linux/x86/futex.h: Check __x86_64__ instead of
16243 2011-07-29 Jakub Jelinek <jakub@redhat.com>
16245 PR middle-end/49897
16246 PR middle-end/49898
16247 * testsuite/libgomp.c/pr49897-1.c: New test.
16248 * testsuite/libgomp.c/pr49897-2.c: New test.
16249 * testsuite/libgomp.c/pr49898-1.c: New test.
16250 * testsuite/libgomp.c/pr49898-2.c: New test.
16252 2011-07-28 H.J. Lu <hongjiu.lu@intel.com>
16254 * testsuite/lib/libgomp.exp (libgomp_init): Add -march=i486
16255 for ia32 instead of ilp32.
16257 * testsuite/libgomp.c/atomic-1.c: Require ia32 instead of ilp32.
16258 * testsuite/libgomp.c/atomic-6.c: Likewise.
16260 2011-07-23 Sebastian Pop <sebastian.pop@amd.com>
16262 * testsuite/libgomp.graphite/force-parallel-1.c: Un-xfail.
16263 * testsuite/libgomp.graphite/force-parallel-2.c: Adjust pattern.
16265 2011-07-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16268 * config/osf/sem.h: New file.
16269 * configure.tgt (alpha*-dec-osf*): Prepend osf to config_path.
16271 2011-07-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16274 * testsuite/lib/libgomp.exp (libgomp_init): Don't add -lgomp to
16277 2011-07-15 Jakub Jelinek <jakub@redhat.com>
16279 * config/linux/wait.h (do_spin): New inline, largely copied
16280 from do_wait, just don't do futex_wait here, instead return true if
16282 (do_wait): Implement using do_spin.
16283 * config/linux/mutex.h (gomp_mutex_lock_slow): Add an int argument
16285 (gomp_mutex_lock): Use __sync_val_compare_and_swap instead of
16286 __sync_bool_compare_and_swap, pass the oldval to
16287 gomp_mutex_lock_slow.
16288 * config/linux/mutex.c (gomp_mutex_lock_slow): Add oldval argument.
16289 If all mutex contenders are just spinning and not sleeping, don't
16290 change state to 2 unnecessarily. Optimize the loop when state has
16291 already become 2 to use just one atomic operation per loop instead
16293 * config/linux/ia64/mutex.h (gomp_mutex_lock_slow): Add an int argument
16295 (gomp_mutex_lock): Use __sync_val_compare_and_swap instead of
16296 __sync_bool_compare_and_swap, pass the oldval to
16297 gomp_mutex_lock_slow.
16299 2011-06-22 Jakub Jelinek <jakub@redhat.com>
16302 * iter.c (gomp_iter_static_next): For chunk size 0
16303 only use n ceil/ nthreads size for the first
16304 n % nthreads threads in the team instead of
16305 all threads except for the last few ones which
16306 get less work or none at all.
16307 * iter_ull.c (gomp_iter_ull_static_next): Likewise.
16308 * env.c (parse_schedule): If OMP_SCHEDULE doesn't have
16309 chunk argument, set run_sched_modifier to 0 for static
16310 resp. 1 for other kinds. If chunk argument is 0
16311 and not static, set value to 1.
16313 2011-05-19 Jakub Jelinek <jakub@redhat.com>
16316 * testsuite/libgomp.c++/pr49043.C: New test.
16319 * testsuite/libgomp.c++/pr48869.C: New test.
16321 2011-05-06 Jakub Jelinek <jakub@redhat.com>
16324 * fortran.c: Include limits.h.
16326 (omp_set_dynamic_8_, omp_set_num_threads_8_): Use !!*set instead of
16328 (omp_set_num_threads_8_, omp_set_schedule_8_,
16329 omp_set_max_active_levels_8_, omp_get_ancestor_thread_num_8_,
16330 omp_get_team_size_8_): Use TO_INT macro.
16331 * testsuite/libgomp.fortran/pr48894.f90: New test.
16333 2011-04-13 Jakub Jelinek <jakub@redhat.com>
16335 PR middle-end/48591
16336 * testsuite/libgomp.c/pr48591.c: New test.
16338 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16341 * acinclude.m4 (enable_symvers): Handle --disable-symvers.
16342 * configure: Regenerate.
16344 2011-02-27 Jakub Jelinek <jakub@redhat.com>
16347 * testsuite/libgomp.fortran/task3.f90: New test.
16349 2011-02-24 Tobias Burnus <burnus@net-b.de>
16351 * libgomp.texi (GOMP_STACKSIZE): Fix @ref to OMP_STACKSIZE.
16353 2011-02-23 Jakub Jelinek <jakub@redhat.com>
16356 * libgomp.texi (omp_get_wtime): Don't say time in the past
16357 must be Unix Epoch.
16359 2011-02-18 Jakub Jelinek <jakub@redhat.com>
16362 * testsuite/libgomp.fortran/fortran.exp: Check for both
16363 libquadmath.a and libquadmath.${shlib_ext}. If neither exists,
16364 but $blddir != "", still append ${blddir}/${lang_library_path}
16365 to ld_library_path.
16367 2011-02-16 Tobias Burnus <burnus@net-b.de>
16370 * testsuite/libgomp.fortran/fortran.exp: Check for the existence
16371 of libquadmath.a before adding its libpath to ldflags.
16373 2011-02-14 Jakub Jelinek <jakub@redhat.com>
16376 * config/linux/futex.h (futex_wait): Pass NULL as timeout argument
16377 to FUTEX_WAIT futex syscall.
16378 * config/linux/wait.h: Include <futex.h> instead of "futex.h".
16380 2011-02-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
16382 * configure: Regenerate.
16384 2011-01-20 Benjamin Kosnik <bkoz@redhat.com>
16387 * acinclude.m4 (LIBGOMP_ENABLE_SYMVERS): Accept gnu variants.
16389 2011-01-16 Gerald Pfeifer
16391 * configure.tgt (*-*-freebsd*): Add -lpthread to XLDFLAGS.
16393 2010-12-14 Jakub Jelinek <jakub@redhat.com>
16396 * libgomp.fortran/allocatable6.f90: New test.
16398 2010-12-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16400 * acinclude.m4 (symvers_renaming): Also set if enable_symvers = no.
16401 * configure: Regenerate.
16403 2010-12-06 Dave Korn <dave.korn.cygwin@gmail.com>
16407 * configure.ac: Invoke ACX_LT_HOST_FLAGS.
16408 * Makefile.am (libgomp_la_LDFLAGS): Use lt_host_flags.
16409 * aclocal.m4: Regenerate.
16410 * configure: Regenerate.
16411 * Makefile.in: Regenerate.
16412 * testsuite/Makefile.in: Regenerate.
16414 2010-12-02 Jakub Jelinek <jakub@redhat.com>
16417 * libgomp.fortran/pr46753.f90: New test.
16420 * env.c (initialize_env): Default to spin count 300000
16421 instead of 20000000 if neither OMP_WAIT_POLICY nor GOMP_SPINCOUNT
16425 * parallel.c (GOMP_parallel_end): Unlock gomp_remaining_threads_lock
16426 at the end if sync builtins aren't supported.
16428 2010-12-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16430 * configure.tgt (mips-sgi-irix6*): Add -lpthread to XLDFLAGS.
16432 2010-12-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16434 * testsuite/libgomp.fortran/vla8.f90: Use dg-timeout-factor 2.0.
16436 2010-11-24 Iain Sandoe <iains@gcc.gnu.org>
16438 * testsuite/libgomp.fortran/fortran.exp: Add paths for libquadmath.
16440 2010-11-16 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
16441 Tobias Burnus <burnus@net-b.de>
16445 * configure: Regenerate.
16447 2010-10-06 Marcus Shawcroft <marcus.shawcroft@arm.com>
16449 * config/linux/futex.h: New.
16450 * config/linux/arm/mutex.h: New.
16451 * configure.tgt (arm*-*-linux*): Add config path.
16453 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
16455 * testsuite/libgomp.graphite/force-parallel-1.c: Adjust.
16457 2010-09-23 Tobias Burnus <burnus@net-b.de>
16459 * libgomp.texi (omp_get_nested, omp_set_nested, omp_set_dynamic):
16460 Change Fortran datatype to LOGICAL.
16461 (omp_set_lock, omp_test_lock, omp_unset_lock, omp_set_nested_lock,
16462 omp_unset_nested_lock): Use intent(inout) instead of intent(out).
16464 2010-08-21 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
16466 * configure: Regenerate.
16468 2010-07-26 Jakub Jelinek <jakub@redhat.com>
16470 * libgomp.texi: Add function keyword to a couple of Fortran
16471 interfaces, use integer instead of int for Fortran.
16473 2010-07-26 Aldy Hernandez <aldyh@redhat.com>
16475 * libgomp.texi: Fix spelling and pasto problems throughout.
16476 Adjust prototypes to match code.
16478 2010-07-24 Tobias Burnus <burnus@net-b.de>
16480 * testsuite/libgomp.fortran/appendix-a/a.28.5.f90: Add -w to
16481 silence -fwhole-file warning.
16483 2010-07-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16485 * configure.tgt (*-*-solaris2.[56]*): Removed.
16487 2010-07-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16489 * acinclude.m4 (LIBGOMP_ENABLE_SYMVERS): Handle sun style.
16490 Define LIBGOMP_BUILD_VERSIONED_SHLIB_GNU,
16491 LIBGOMP_BUILD_VERSIONED_SHLIB_SUN automake conditionals.
16492 (HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT): Define unless
16493 targetting solaris2*.
16494 * configure: Regenerate.
16495 * config.h.in: Regenerate.
16497 * Makefile.am [LIBGOMP_BUILD_VERSIONED_SHLIB]: Protect
16498 libgomp_version_script with LIBGOMP_BUILD_VERSIONED_SHLIB_GNU.
16499 Add libgomp_version_dep.
16500 [LIBGOMP_BUILD_VERSIONED_SHLIB_SUN]: Handle Sun symbol
16502 [!LIBGOMP_BUILD_VERSIONED_SHLIB]: Add libgomp_version_dep.
16503 (libgomp_la_DEPENDENCIES): Set to $(libgomp_version_dep).
16504 * Makefile.in: Regenerate.
16506 * libgomp.h (LIBGOMP_GNU_SYMBOL_VERSIONING): Undef unless
16507 HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT.
16508 * libgomp.map (OMP_1.0): Move symbols both in OMP_1.0 and OMP_3.0
16509 to common block, protected by
16510 HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT.
16512 2010-06-10 Gerald Pfeifer <gerald@pfeifer.com>
16514 * libgomp.texi: Move to GFDL version 1.3. Update copyright years.
16516 2010-06-09 Iain Sandoe <iains@gcc.gnu.org>
16519 * configure: Regenerate.
16521 2010-05-04 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
16524 * configure.ac (AM_INIT_AUTOMAKE): Add no-dist.
16525 * configure: Regenerate.
16526 * Makefile.in: Regenerate.
16527 * testsuite/Makefile.in: Regenerate.
16529 2010-04-26 Jakub Jelinek <jakub@redhat.com>
16532 * testsuite/libgomp.c/pr43893.c: New test.
16533 * testsuite/libgomp.c++/pr43893.C: New test.
16535 2010-04-21 Jakub Jelinek <jakub@redhat.com>
16537 PR middle-end/43570
16538 * testsuite/libgomp.fortran/vla8.f90: New test.
16540 2010-04-20 Jakub Jelinek <jakub@redhat.com>
16543 * config/linux/affinity.c (gomp_init_affinity): Decrease
16544 gomp_available_cpus if affinity mask confines the process to fewer
16546 * config/linux/proc.c (get_num_procs): If gomp_cpu_affinity is
16547 non-NULL, just return gomp_available_cpus.
16550 * sections.c (gomp_sections_init): Initialize ws->mode.
16552 2010-04-14 Uros Bizjak <ubizjak@gmail.com>
16554 * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS): Remove set but
16555 not unused bar variable.
16556 * configure: Regenerate.
16558 2010-04-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
16560 * Makefile.in: Regenerate.
16561 * aclocal.m4: Regenerate.
16562 * testsuite/Makefile.in: Regenerate.
16564 2010-03-22 Jakub Jelinek <jakub@redhat.com>
16567 * env.c (parse_unsigned_long): Add ALLOW_ZERO argument.
16568 (initialize_env): Adjust callers.
16569 (omp_set_max_active_levels): Set gomp_max_active_levels_var even
16570 when the argument is 0.
16572 * testsuite/libgomp.c/pr42942.c: New test.
16574 2010-03-08 Tobias Grosser <grosser@fim.uni-passau.de>
16576 PR middle-end/42644
16577 PR middle-end/42130
16578 * testsuite/libgomp.graphite/force-parallel-1.c: Adjust.
16579 * testsuite/libgomp.graphite/force-parallel-2.c: Adjust.
16581 2010-01-29 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16583 * testsuite/libgomp.c++/task-1.C: Renamed err to e.
16584 * testsuite/libgomp.c++/task-6.C: Likewise.
16586 2010-01-28 Steve Ellcey <sje@cup.hp.com>
16588 * configure.tgt (*-*-hpux*): Add -frandom-seed flag.
16590 2010-01-26 Paolo Bonzini <bonzini@gnu.org>
16592 * configure.ac: Test for executability of _the first word_ of GFORTRAN.
16593 * configure: Regenerate.
16595 2010-01-26 Jakub Jelinek <jakub@redhat.com>
16598 * testsuite/libgomp.fortran/allocatable5.f90: New test.
16600 2010-01-20 Paolo Bonzini <bonzini@gnu.org>
16602 * configure.ac: Test for executability of GFORTRAN.
16603 * configure: Regenerate.
16605 2010-01-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16607 * configure: Regenerate.
16609 2010-01-04 H.J. Lu <hongjiu.lu@intel.com>
16612 * libgomp.fortran/recursion1.f90 (sub): Make 's' atomic.
16614 2010-01-03 Richard Guenther <rguenther@suse.de>
16616 * testsuite/libgomp.fortran/recursion1.f90: New testcase.
16618 2009-12-23 Sebastian Pop <sebpop@gmail.com>
16620 * testsuite/libgomp.graphite/pr4118.c: New.
16622 2009-12-22 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
16624 * testsuite/libgomp.fortran/crayptr2.f90: Remove forced static linkage
16625 for darwin, protect the test with require-effective-target tls_runtime.
16626 * testsuite/libgomp.fortran/pr32550.f90: Ditto.
16628 2009-12-22 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
16631 * testsuite/lib/libgomp.exp: Provide -B options to allow for
16632 link spec %s substitutions for static libraries.
16634 2009-12-18 Jack Howarth <howarth@bromo.med.uc.edu>
16637 * libgomp.graphite/force-parallel-2.c: Reduce array size.
16639 2009-12-05 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
16641 * Makefile.in: Regenerate.
16642 * configure: Regenerate.
16643 * testsuite/Makefile.in: Regenerate.
16645 2009-11-30 Dave Korn <dave.korn.cygwin@gmail.com>
16647 * testsuite/lib/libgomp.exp (libgomp_init): Add host-dependent
16648 settings for LC_ALL and LANG.
16650 2009-11-25 Jakub Jelinek <jakub@redhat.com>
16653 * testsuite/libgomp.fortran/pr42162.f90: New test.
16655 2009-11-13 Jakub Jelinek <jakub@redhat.com>
16657 PR middle-end/42029
16658 * testsuite/libgomp.c/pr42029.c: New test.
16660 2009-10-26 Jakub Jelinek <jakub@redhat.com>
16662 * acinclude.m4 (LIBGOMP_CHECK_LINKER_FEATURES): Avoid using too many
16663 *s. Accept ld version without text in ()s.
16664 * configure: Regenerated.
16666 2009-10-22 Razya Ladelsky <razya@il.ibm.com>
16668 * testsuite/libgomp.graphite/force-parallel-2.c: Adjust scan.
16670 2009-10-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
16673 * configure.ac: Set FC to "no" if $GFORTRAN starts with "no"
16674 or a hyphen (happens with fortran language disabled).
16675 * configure: Regenerate.
16677 2009-09-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
16679 * acinclude.m4 (LIBGOMP_CHECK_LINKER_FEATURES): Avoid 'head',
16680 use sed script portable to Solaris /bin/sed for extracting ld
16682 * configure: Regenerate.
16684 2009-09-17 Alexander Monakov <amonakov@ispras.ru>
16686 * testsuite/libgomp.graphite/bounds.c: New test.
16688 2009-09-11 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
16690 * Makefile.am (libgomp_la_LINK): New.
16691 * Makefile.in: Regenerate.
16693 2009-08-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
16695 * configure.ac (AC_PREREQ): Bump to 2.64.
16697 2009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
16699 * Makefile.am (install-html, install-pdf): Remove.
16700 * Makefile.in: Regenerate.
16702 * Makefile.in: Regenerate.
16703 * aclocal.m4: Regenerate.
16704 * config.h.in: Regenerate.
16705 * configure: Regenerate.
16706 * testsuite/Makefile.in: Regenerate.
16708 2009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
16710 * Makefile.am (LINK): Add $(AM_LIBTOOLFLAGS) and $(LIBTOOLFLAGS).
16711 * Makefile.in: Regenerate.
16713 2009-08-20 Dave Korn <dave.korn.cygwin@gmail.com>
16715 * Makefile.am (libgomp_la_LDFLAGS): Add -bindir flag.
16716 * Makefile.in: Regenerate.
16718 2009-08-19 Tobias Burnus <burnus@net-b.de>
16721 omp_lib.h.in: Fix -std=f95 errors.
16723 2009-08-14 David Edelsohn <edelsohn@gnu.org>
16725 * testsuite/libgomp.graphite: Move from gcc.dg/graphite.
16726 * testsuite/libgomp.graphite/graphite_autopar.exp: Delete.
16727 * testsuite/libgomp.graphite/graphite.exp: New.
16729 2009-08-05 Andreas Tobler <a.tobler@schweiz.org>
16731 * testsuite/libgomp.fortran/fortran.exp: Add flags in case of shared
16734 2009-08-04 David Daney <ddaney@caviumnetworks.com>
16736 * config/linux/mutex.h (gomp_mutex_unlock): Add comment about
16737 needed memory barrier semantics.
16738 * config/linux/mips/mutex.h: New file.
16740 2009-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
16742 * configure.ac (_AC_ARG_VAR_PRECIOUS): Use m4_rename_force.
16744 2009-07-16 Joseph Myers <joseph@codesourcery.com>
16746 * configure: Regenerate.
16748 2009-07-11 Richard Sandiford <rdsandiford@googlemail.com>
16753 * testsuite/lib/libgomp.exp: Revert 2009-07-02 and 2009-06-30 commits.
16754 * testsuite/libgomp.c/c.exp, testsuite/libgomp.c++/c++.exp,
16755 testsuite/libgomp.fortran/fortran.exp: Revert 2009-06-30 commits.
16757 2009-07-02 Richard Sandiford <r.sandiford@uk.ibm.com>
16759 * testsuite/lib/libgomp.exp (libgomp_init): Use the ALWAYS_CFLAGS
16760 options when choosing a multilib.
16762 2009-06-30 Richard Sandiford <r.sandiford@uk.ibm.com>
16764 * testsuite/lib/libgomp.exp (libgomp_init): Don't add "." to
16765 ld_library_path. Use add_path. Add just find_libgcc_s to
16766 ld_library_path, not every libgcc multilib directory.
16767 * testsuite/libgomp.c/c.exp (ld_library_path): Don't call
16768 gcc-set-multilib-library-path; rely on $always_ld_library_path instead.
16769 * testsuite/libgomp.c++/c++.exp (ld_library_path): Likewise.
16771 * testsuite/libgomp.fortran/fortran.exp (ld_library_path): Likewise.
16773 2009-06-09 Nathan Froyd <froydnj@codesourcery.com>
16775 * Makefile.am (LTLDFLAGS): Define.
16777 * Makefile.in: Regenerate.
16779 2009-05-27 Janne Blomqvist <jb@gcc.gnu.org>
16782 * testsuite/libgomp.fortran/fortran.exp: Don't link with
16783 libgfortranbegin, check existence of libgfortran.a instead of
16784 libgfortranbegin.a.
16786 2009-05-20 Jakub Jelinek <jakub@redhat.com>
16789 * team.c (gomp_thread_start): Destroy thr->release semaphore.
16790 (gomp_free_pool_helper): Likewise.
16792 2009-04-20 Vasilis Liaskovitis <vliaskov@gmail.com>
16793 Jakub Jelinek <jakub@redhat.com>
16796 * testsuite/libgomp.fortran/workshare2.f90: New test.
16798 2009-04-09 Nick Clifton <nickc@redhat.com>
16800 * iter.c: Change copyright header to refer to version 3 of the
16801 GNU General Public License with version 3.1 of the GCC Runtime
16802 Library Exception and to point readers at the COPYING3 and
16803 COPYING3.RUNTIME files and the FSF's license web page.
16804 * alloc.c: Likewise.
16805 * barrier.c: Likewise.
16806 * config/bsd/proc.c: Likewise.
16807 * config/linux/affinity.c: Likewise.
16808 * config/linux/alpha/futex.h: Likewise.
16809 * config/linux/bar.c: Likewise.
16810 * config/linux/bar.h: Likewise.
16811 * config/linux/ia64/futex.h: Likewise.
16812 * config/linux/ia64/mutex.h: Likewise.
16813 * config/linux/lock.c: Likewise.
16814 * config/linux/mips/futex.h: Likewise.
16815 * config/linux/mutex.c: Likewise.
16816 * config/linux/mutex.h: Likewise.
16817 * config/linux/powerpc/futex.h: Likewise.
16818 * config/linux/proc.c: Likewise.
16819 * config/linux/ptrlock.c: Likewise.
16820 * config/linux/ptrlock.h: Likewise.
16821 * config/linux/s390/futex.h: Likewise.
16822 * config/linux/sem.c: Likewise.
16823 * config/linux/sem.h: Likewise.
16824 * config/linux/sparc/futex.h: Likewise.
16825 * config/linux/wait.h: Likewise.
16826 * config/linux/x86/futex.h: Likewise.
16827 * config/mingw32/proc.c: Likewise.
16828 * config/mingw32/time.c: Likewise.
16829 * config/posix/affinity.c: Likewise.
16830 * config/posix/bar.c: Likewise.
16831 * config/posix/bar.h: Likewise.
16832 * config/posix/lock.c: Likewise.
16833 * config/posix/mutex.h: Likewise.
16834 * config/posix/proc.c: Likewise.
16835 * config/posix/ptrlock.h: Likewise.
16836 * config/posix/sem.c: Likewise.
16837 * config/posix/sem.h: Likewise.
16838 * config/posix/time.c: Likewise.
16839 * config/posix95/lock.c: Likewise.
16840 * critical.c: Likewise.
16842 * error.c: Likewise.
16843 * fortran.c: Likewise.
16844 * iter_ull.c: Likewise.
16845 * libgomp.h: Likewise.
16846 * libgomp_f.h.in: Likewise.
16847 * libgomp_g.h: Likewise.
16848 * loop.c: Likewise.
16849 * loop_ull.c: Likewise.
16850 * omp.h.in: Likewise.
16851 * omp_lib.f90.in: Likewise.
16852 * omp_lib.h.in: Likewise.
16853 * ordered.c: Likewise.
16854 * parallel.c: Likewise.
16855 * sections.c: Likewise.
16856 * single.c: Likewise.
16857 * task.c: Likewise.
16858 * team.c: Likewise.
16859 * work.c: Likewise.
16861 2009-04-09 Jakub Jelinek <jakub@redhat.com>
16863 * testsuite/config/default.exp: Change copyright header to refer to
16864 version 3 of the GNU General Public License and to point readers
16865 at the COPYING3 file and the FSF's license web page.
16867 2009-04-08 Jakub Jelinek <jakub@redhat.com>
16869 PR middle-end/39573
16870 * libgomp.c++/pr39573.C: New test.
16872 2009-04-01 Jakub Jelinek <jakub@redhat.com>
16875 * testsuite/libgomp.c/pr39591-1.c: New test.
16876 * testsuite/libgomp.c/pr39591-2.c: New test.
16877 * testsuite/libgomp.c/pr39591-3.c: New test.
16879 2009-03-25 Uros Bizjak <ubizjak@gmail.com>
16881 * testsuite/libgomp.c/atomic-5.c: Cleanup cpuid usage.
16882 * testsuite/libgomp.c/atomic-6.c: Ditto.
16884 2009-03-23 Jakub Jelinek <jakub@redhat.com>
16887 * testsuite/libgomp.c/loop-12.c: New test.
16888 * testsuite/libgomp.c/loop-11.c: New test.
16889 * testsuite/libgomp.c++/loop-11.C: New test.
16890 * testsuite/libgomp.c++/loop-12.C: New test.
16891 * testsuite/libgomp.c++/for-8.C: New test.
16893 2009-03-01 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
16895 * configure: Regenerate.
16897 2009-02-11 Jakub Jelinek <jakub@redhat.com>
16899 PR middle-end/39154
16900 * testsuite/libgomp.c/pr39154.c: New test.
16902 2009-01-30 Ian Lance Taylor <iant@google.com>
16904 * acinclude.m4 (LIBCOMP_CHECK_LINKER_FEATURES): Set
16905 libgomp_ld_is_gold. Get gold version number.
16906 (LIBGOMP_ENABLE_SYMVERS): Gold always support symbol versioning.
16907 * configure: Rebuild.
16909 2009-01-19 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
16911 * testsuite/lib/libgomp.exp: Add -B option for targets that
16912 use libgfortran.a%s in their specs.
16914 2009-01-07 Jakub Jelinek <jakub@redhat.com>
16917 * acinclude.m4 (HAVE_AS_SYMVER_DIRECTIVE): New check.
16918 * libgomp.h (LIBGOMP_GNU_SYMBOL_VERSIONING): Undefine if
16919 HAVE_AS_SYMVER_DIRECTIVE is not defined.
16920 * configure: Regenerated.
16921 * config.h.in: Likewise.
16923 2008-12-28 Jakub Jelinek <jakub@redhat.com>
16926 * testsuite/libgomp.c/pr38650.c: New test.
16927 * testsuite/libgomp.c++/pr38650.C: New test.
16929 2008-12-27 Jakub Jelinek <jakub@redhat.com>
16931 * testsuite/libgomp.c/collapse-1.c (main): Add private(k) clause.
16933 2008-12-26 Uros Bizjak <ubizjak@gmail.com>
16935 * testsuite/libgomp.c/atomic-6.c: Add -mieee for alpha*-*-* targets.
16937 2008-12-18 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
16939 * configure: Regenerate.
16941 2008-12-08 Jakub Jelinek <jakub@redhat.com>
16943 PR middle-end/36802
16944 * testsuite/libgomp.c/pr36802-1.c: New test.
16945 * testsuite/libgomp.c/pr36802-2.c: New test.
16946 * testsuite/libgomp.c/pr36802-3.c: New test.
16948 2008-12-01 Janis Johnson <janis187@us.ibm.com>
16951 * config/linux/powerpc/mutex.h: New.
16953 2008-12-01 Jakub Jelinek <jakub@redhat.com>
16956 * testsuite/libgomp.c++/for-7.C: New test.
16959 * testsuite/libgomp.c++/for-6.C: New test.
16961 2008-11-26 Janis Johnson <janis187@us.ibm.com>
16964 * testsuite/lib/libgomp.exp: Include new timeout library files.
16965 (libgomp_target_compile): Set timeout value from new proc.
16967 2008-11-13 Steve Ellcey <sje@cup.hp.com>
16970 * config/linux/ia64/mutex.h: New.
16972 2008-11-04 Tobias Burnus <burnus@net-b.de>
16975 * libgomp.texi (Runtime library routines, environment variables):
16976 Update for OpenMP version 3.0.
16978 2008-09-26 Peter O'Gorman <pogma@thewrittenword.com>
16979 Steve Ellcey <sje@cup.hp.com>
16981 * configure: Regenerate for new libtool.
16982 * Makefile.in: Ditto.
16983 * testsuite/Makefile.in: Ditto.
16985 2008-09-19 Jakub Jelinek <jakub@redhat.com>
16986 Andreas Tobler <a.tobler@schweiz.org>
16988 * config/bsd/proc.c: New file.
16989 * configure.tgt (*-*-darwin*): Use config_path "bsd posix".
16990 * configure.ac: Check for header <sys/sysctl.h>
16991 * configure: Regenerate.
16992 * config.h.in: Likewise.
16994 2008-09-05 Janis Johnson <janis187@us.ibm.com>
16996 * testsuite/ligbomp.c/c.exp: Unset lang_test_file only if it exists.
16998 2008-08-31 Aaron W. LaFramboise <aaronavay62@aaronwl.com>
17000 * Makefile.am (libgomp_la_LDFLAGS): Add -no-undefined.
17001 * Makefile.in: Regenerated.
17002 * testsuite/Makefile.in: Regenerated.
17004 2008-08-21 Nathan Froyd <froydnj@codesourcery.com>
17006 * testsuite/lib/libgomp.exp (libgomp_init): Only set things that
17007 depend on blddir if blddir exists.
17008 (libgomp_target_compile): Likewise.
17009 * testsuite/libgomp.c++/c++.exp: Likewise.
17010 * testsuite/libgomp.fortran/fortran.exp: Likewise.
17012 2008-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
17014 * libgomp.texi: Update to GFDL 1.2. Update copyright years.
17015 Do not list GPL as Invariant Section.
17017 2008-07-28 Ilie Garbacea <ilie@mips.com>
17018 Chao-ying Fu <fu@mips.com>
17020 * configure.tgt: Enable futex for MIPS.
17021 * config/linux/mips/futex.h: New file.
17023 2008-07-16 Jakub Jelinek <jakub@redhat.com>
17025 * team.c (gomp_team_end): Free team immediately if it has
17028 2008-07-08 David Edelsohn <edelsohn@gnu.org>
17030 * testsuite/libgomp.c++/c++.exp: Append multilib library path.
17031 * testsuite/libgomp.fortran/fortran.exp: Same.
17032 * testsuite/libgomp.c/c.exp: Same.
17033 * testsuite/lib/libgomp.exp: Append AIX libgcc pthread multilib
17034 directory to library path first.
17036 2008-06-29 Krister Walfridsson <krister.walfridsson@gmail.com>
17038 * env.c (parse_stacksize): Add cast to avoid warning.
17039 (parse_spincount): Likewise.
17041 2008-06-27 Jakub Jelinek <jakub@redhat.com>
17043 * testsuite/libgomp.c/loop-10.c: New test.
17044 * libgomp.c/loop-3.c (main): Add lastprivate clause.
17045 * libgomp.c++/loop-6.C (main): Likewise.
17048 * testsuite/libgomp.c/debug-1.c: New test.
17050 2008-06-19 Jakub Jelinek <jakub@redhat.com>
17052 * testsuite/libgomp.c/nqueens-1.c: New test.
17055 * testsuite/libgomp.c++/task-7.C: New function.
17057 2008-06-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
17059 * configure: Regenerate.
17061 2008-06-15 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
17063 * env.c (initialize_env): Always initialize gomp_remaining_threads_lock
17064 mutex when HAVE_SYNC_BUILTINS isn't defined.
17066 2008-06-15 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
17068 * libgomp.texi (omp_test_lock): Fix typo.
17070 2008-06-12 Tobias Burnus <burnus@net-b.de>
17072 * omp_lib.f90.in: Add "implicit none".
17074 2008-06-12 Jakub Jelinek <jakub@redhat.com>
17076 PR middle-end/36506
17077 * testsuite/libgomp.c/reduction-5.c: New test.
17079 2008-06-11 Jakub Jelinek <jakub@redhat.com>
17081 * libgomp.h (struct gomp_task): Add in_tied_task field.
17082 * task.c (gomp_init_task): Initialize it.
17083 (GOMP_task): Likewise. Call gomp_team_barrier_set_task_pending
17084 unconditionally. Don't call gomp_team_barrier_wake if
17085 current task is implicit or if(0) from implicit and number of
17086 running tasks is equal to nthreads - 1.
17089 * omp_lib.f90.in (omp_get_ancestor_thread_num_8,
17090 omp_get_team_size_8): Fix pastos.
17093 * configure.ac: Add AC_CHECK_FUNCS (strtoull).
17094 * configure: Regenerated.
17095 * config.h.in: Regenerated.
17096 * env.c (strtoull): Define to strtoul if HAVE_STRTOULL is not
17099 2008-06-06 Andreas Tobler <a.tobler@schweiz.org>
17102 * loop_ull.c (GOMP_loop_ull_static_start): Adjust API.
17103 (GOMP_loop_ull_dynamic_start): Likewise.
17104 (GOMP_loop_ull_guided_start): Likewise.
17105 (GOMP_loop_ull_ordered_static_start): Likewise.
17106 (GOMP_loop_ull_ordered_dynamic_start): Likewise.
17107 (GOMP_loop_ull_ordered_guided_start): Likewise.
17109 2008-06-06 Jakub Jelinek <jakub@redhat.com>
17110 Richard Henderson <rth@redhat.com>
17111 Ulrich Drepper <drepper@redhat.com>
17112 Jakob Blomer <jakob.blomer@ira.uka.de>
17114 * configure.ac (LIBGOMP_GNU_SYMBOL_VERSIONING): New AC_DEFINE.
17115 Substitute also OMP_*LOCK_25*.
17116 * configure: Regenerated.
17117 * config.h.in: Regenerated.
17118 * Makefile.am (libgomp_la_SOURCES): Add loop_ull.c, iter_ull.c,
17119 ptrlock.c and task.c.
17120 * Makefile.in: Regenerated.
17121 * testsuite/Makefile.in: Regenerated.
17122 * task.c: New file.
17123 * loop_ull.c: New file.
17124 * iter_ull.c: New file.
17125 * libgomp.h: Include ptrlock.h.
17126 (enum gomp_task_kind): New type.
17127 (struct gomp_team): Add task_lock, task_queue, task_count,
17128 task_running_count, single_count fields. Add
17129 work_share_list_free_lock ifndef HAVE_SYNC_BUILTINS.
17130 Remove work_share_lock, generation_mask,
17131 oldest_live_gen, num_live_gen and init_work_shares fields, add
17132 work work_share_list_alloc, work_share_list_free and work_share_chunk
17133 fields. Change work_shares from pointer to pointers into an array.
17134 Change ordered_release field into gomp_sem_t ** from flexible array
17135 member. Add implicit_task and initial_work_shares fields.
17136 Move close to the end of the struct.
17137 (struct gomp_team_state): Add single_count, last_work_share,
17138 active_level and level fields, remove work_share_generation.
17139 (gomp_barrier_handle_tasks): New prototype.
17140 (gomp_finish_task): New inline function.
17141 (struct gomp_work_share): Move chunk_size, end, incr into
17142 transparent union/struct, add chunk_size_ull, end_ll, incr_ll and
17143 next_ll fields. Reshuffle fields. Add next_alloc,
17144 next_ws, next_free and inline_ordered_team_ids fields, change
17145 ordered_team_ids into pointer from flexible array member.
17146 Add mode field. Put lock and next into a different cache line
17147 from most of the write-once fields.
17148 (gomp_iter_ull_static_next, gomp_iter_ull_dynamic_next_locked,
17149 gomp_iter_ull_guided_next_locked, gomp_iter_ull_dynamic_next,
17150 gomp_iter_ull_guided_next): New prototypes.
17151 (gomp_new_icv): New prototype.
17152 (struct gomp_thread): Add thread_pool and task fields.
17153 (struct gomp_thread_pool): New type.
17154 (gomp_new_team): New prototype.
17155 (gomp_team_start): Change type of last argument.
17156 (gomp_new_work_share): Removed.
17157 (gomp_init_work_share, gomp_fini_work_share): New prototypes.
17158 (gomp_work_share_init_done): New static inline.
17159 (gomp_throttled_spin_count_var, gomp_available_cpus,
17160 gomp_managed_threads): New extern decls.
17161 (gomp_init_task): New prototype.
17162 (gomp_spin_count_var): New extern var decl.
17163 (LIBGOMP_GNU_SYMBOL_VERSIONING): Undef if no visibility
17164 or no alias support, or if not PIC.
17165 (gomp_init_lock_30, gomp_destroy_lock_30, gomp_set_lock_30,
17166 gomp_unset_lock_30, gomp_test_lock_30, gomp_init_nest_lock_30,
17167 gomp_destroy_nest_lock_30, gomp_set_nest_lock_30,
17168 gomp_unset_nest_lock_30, gomp_test_nest_lock_30, gomp_init_lock_25,
17169 gomp_destroy_lock_25, gomp_set_lock_25, gomp_unset_lock_25,
17170 gomp_test_lock_25, gomp_init_nest_lock_25, gomp_destroy_nest_lock_25,
17171 gomp_set_nest_lock_25, gomp_unset_nest_lock_25,
17172 gomp_test_nest_lock_25): New prototypes.
17173 (omp_lock_symver, strong_alias): Define.
17174 (gomp_remaining_threads_count, gomp_remaining_threads_lock): New
17176 (gomp_end_task): New.
17177 (struct gomp_task_icv, gomp_global_icv): New.
17178 (gomp_thread_limit_var, gomp_max_active_levels_var): New.
17179 (struct gomp_task): New.
17180 (gomp_nthreads_var, gomp_dyn_var, gomp_nest_var,
17181 gomp_run_sched_var, gomp_run_sched_chunk): Remove.
17183 (gomp_schedule_type): Reorder enum to match
17185 * team.c (struct gomp_thread_start_data): Add thread_pool and task
17187 (gomp_thread_start): Add gomp_team_barrier_wait call.
17188 For non-nested case remove clearing of docked thread thr fields.
17189 Use pool fields instead of global gomp_* variables. Use
17190 gomp_barrier_wait_last when needed. Initialize ts.active_level.
17191 Create tasks for each member thread.
17192 (free_team): Only destroy team barrier, task_lock here and free it.
17193 (gomp_free_thread): Free last_team if non-NULL.
17194 (gomp_team_end): Call gomp_team_barrier_wait instead of
17195 gomp_barrier_wait. For nested case call one extra
17196 gomp_barrier_wait. Move here some destruction from free_team.
17197 Call free_team on pool->last_team if any, rather than freeing
17198 current team. Destroy work_share_list_free_lock ifndef
17199 HAVE_SYNC_BUILTINS.
17200 (gomp_new_icv): New function.
17201 (gomp_threads, gomp_threads_size, gomp_threads_used,
17202 gomp_threads_dock): Removed.
17203 (gomp_thread_destructor): New variable.
17204 (gomp_new_thread_pool, gomp_free_pool_helper, gomp_free_thread): New
17206 (gomp_team_start): Create new pool if current thread doesn't have
17207 one. Use pool fields instead of global gomp_* variables.
17208 Initialize thread_pool field for new threads. Clear single_count.
17209 Change last argument from ws to team, don't create
17210 new team, set ts.work_share to &team->work_shares[0] and clear
17211 ts.last_work_share. Don't clear ts.work_share_generation.
17212 If number of threads changed, adjust atomically gomp_managed_threads.
17213 Use gomp_init_task instead of gomp_new_task,
17214 set thr->task to the corresponding implicit_task array entry.
17215 Create tasks for each member thread. Initialize ts.level.
17216 (initialize_team): Call pthread_key_create on
17217 gomp_thread_destructor.
17218 (team_destructor): New function.
17219 (new_team): Removed.
17220 (gomp_new_team): New function.
17221 (free_team): Free gomp_work_share blocks chained through next_alloc,
17222 instead of freeing work_shares and destroying work_share_lock.
17223 (gomp_team_end): Call gomp_fini_work_share. If number of threads
17224 changed, adjust atomically gomp_managed_threads. Use gomp_end_task.
17225 * barrier.c (GOMP_barrier): Call gomp_team_barrier_wait instead
17226 of gomp_barrier_wait.
17227 * single.c (GOMP_single_copy_start): Call gomp_team_barrier_wait
17228 instead of gomp_barrier_wait. Call gomp_work_share_init_done
17229 if gomp_work_share_start returned true. Don't unlock ws->lock.
17230 (GOMP_single_copy_end): Call gomp_team_barrier_wait instead
17231 of gomp_barrier_wait.
17232 (GOMP_single_start): Rewritten if HAVE_SYNC_BUILTINS. Call
17233 gomp_work_share_init_done if gomp_work_share_start returned true.
17234 Don't unlock ws->lock.
17235 * work.c: Include stddef.h.
17236 (free_work_share): Use work_share_list_free_lock instead
17237 of atomic chaining ifndef HAVE_SYNC_BUILTINS. Add team argument.
17238 Call gomp_fini_work_share and then either free ws if orphaned, or
17239 put it into work_share_list_free list of the current team.
17240 (alloc_work_share, gomp_init_work_share, gomp_fini_work_share): New
17242 (gomp_work_share_start, gomp_work_share_end,
17243 gomp_work_share_end_nowait): Rewritten.
17244 * omp_lib.f90.in Change some tabs to spaces to prevent warnings.
17245 (openmp_version): Set to 200805.
17246 (omp_sched_kind, omp_sched_static, omp_sched_dynamic,
17247 omp_sched_guided, omp_sched_auto): New parameters.
17248 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
17249 omp_set_max_active_levels, omp_get_max_active_levels,
17250 omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
17251 omp_get_active_level): New interfaces.
17252 * omp_lib.h.in (openmp_version): Set to 200805.
17253 (omp_sched_kind, omp_sched_static, omp_sched_dynamic,
17254 omp_sched_guided, omp_sched_auto): New parameters.
17255 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
17256 omp_set_max_active_levels, omp_get_max_active_levels,
17257 omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
17258 omp_get_active_level): New externals.
17259 * loop.c: Include limits.h.
17260 (GOMP_loop_runtime_next, GOMP_loop_ordered_runtime_next): Handle
17262 (GOMP_loop_runtime_start, GOMP_loop_ordered_runtime_start):
17263 Likewise. Use gomp_icv.
17264 (gomp_loop_static_start, gomp_loop_dynamic_start): Clear
17265 ts.static_trip here.
17266 (gomp_loop_static_start, gomp_loop_ordered_static_start): Call
17267 gomp_work_share_init_done after gomp_loop_init. Don't unlock ws->lock.
17268 (gomp_loop_dynamic_start, gomp_loop_guided_start): Call
17269 gomp_work_share_init_done after gomp_loop_init. If HAVE_SYNC_BUILTINS,
17270 don't unlock ws->lock, otherwise lock it.
17271 (gomp_loop_ordered_dynamic_start, gomp_loop_ordered_guided_start): Call
17272 gomp_work_share_init_done after gomp_loop_init. Lock ws->lock.
17273 (gomp_parallel_loop_start): Call gomp_new_team instead of
17274 gomp_new_work_share. Call gomp_loop_init on &team->work_shares[0].
17275 Adjust gomp_team_start caller. Pass 0 as second argument to
17276 gomp_resolve_num_threads.
17277 (gomp_loop_init): For GFS_DYNAMIC, multiply ws->chunk_size by incr.
17278 If adding ws->chunk_size nthreads + 1 times after end won't
17279 overflow, set ws->mode to 1.
17280 * libgomp_g.h (GOMP_loop_ull_static_start, GOMP_loop_ull_dynamic_start,
17281 GOMP_loop_ull_guided_start, GOMP_loop_ull_runtime_start,
17282 GOMP_loop_ull_ordered_static_start,
17283 GOMP_loop_ull_ordered_dynamic_start,
17284 GOMP_loop_ull_ordered_guided_start,
17285 GOMP_loop_ull_ordered_runtime_start, GOMP_loop_ull_static_next,
17286 GOMP_loop_ull_dynamic_next, GOMP_loop_ull_guided_next,
17287 GOMP_loop_ull_runtime_next, GOMP_loop_ull_ordered_static_next,
17288 GOMP_loop_ull_ordered_dynamic_next, GOMP_loop_ull_ordered_guided_next,
17289 GOMP_loop_ull_ordered_runtime_next, GOMP_task, GOMP_taskwait): New
17291 * libgomp.map: Export lock routines also @@OMP_2.0.
17292 (GOMP_loop_ordered_dynamic_first,
17293 GOMP_loop_ordered_guided_first, GOMP_loop_ordered_runtime_first,
17294 GOMP_loop_ordered_static_first): Remove.
17295 (GOMP_loop_ull_dynamic_next, GOMP_loop_ull_dynamic_start,
17296 GOMP_loop_ull_guided_next, GOMP_loop_ull_guided_start,
17297 GOMP_loop_ull_ordered_dynamic_next,
17298 GOMP_loop_ull_ordered_dynamic_start,
17299 GOMP_loop_ull_ordered_guided_next,
17300 GOMP_loop_ull_ordered_guided_start,
17301 GOMP_loop_ull_ordered_runtime_next,
17302 GOMP_loop_ull_ordered_runtime_start,
17303 GOMP_loop_ull_ordered_static_next,
17304 GOMP_loop_ull_ordered_static_start,
17305 GOMP_loop_ull_runtime_next, GOMP_loop_ull_runtime_start,
17306 GOMP_loop_ull_static_next, GOMP_loop_ull_static_start,
17307 GOMP_task, GOMP_taskwait): Export @@GOMP_2.0.
17308 (omp_set_schedule, omp_get_schedule,
17309 omp_get_thread_limit, omp_set_max_active_levels,
17310 omp_get_max_active_levels, omp_get_level,
17311 omp_get_ancestor_thread_num, omp_get_team_size, omp_get_active_level,
17312 omp_set_schedule_, omp_set_schedule_8_,
17313 omp_get_schedule_, omp_get_schedule_8_, omp_get_thread_limit_,
17314 omp_set_max_active_levels_, omp_set_max_active_levels_8_,
17315 omp_get_max_active_levels_, omp_get_level_,
17316 omp_get_ancestor_thread_num_, omp_get_ancestor_thread_num_8_,
17317 omp_get_team_size_, omp_get_team_size_8_, omp_get_active_level_):
17318 New exports @@OMP_3.0.
17319 * omp.h.in (omp_sched_t): New type.
17320 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
17321 omp_set_max_active_levels, omp_get_max_active_levels,
17322 omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
17323 omp_get_active_level): New prototypes.
17324 * env.c (gomp_spin_count_var, gomp_throttled_spin_count_var,
17325 gomp_available_cpus, gomp_managed_threads, gomp_max_active_levels_var,
17326 gomp_thread_limit_var, gomp_remaining_threads_count,
17327 gomp_remaining_threads_lock): New variables.
17328 (parse_spincount): New function.
17329 (initialize_env): Call gomp_init_num_threads unconditionally.
17330 Initialize gomp_available_cpus. Call parse_spincount,
17331 initialize gomp_{,throttled_}spin_count_var
17332 depending on presence and value of OMP_WAIT_POLICY and
17333 GOMP_SPINCOUNT env vars. Handle GOMP_BLOCKTIME env var.
17334 Handle OMP_WAIT_POLICY, OMP_MAX_ACTIVE_LEVELS,
17335 OMP_THREAD_LIMIT, OMP_STACKSIZE env vars. Handle unit specification
17336 for GOMP_STACKSIZE. Initialize gomp_remaining_threads_count and
17337 gomp_remaining_threads_lock if needed. Use gomp_global_icv.
17338 (gomp_nthreads_var, gomp_dyn_var, gomp_nest_var,
17339 gomp_run_sched_var, gomp_run_sched_chunk): Remove.
17340 (gomp_global_icv): New.
17341 (parse_schedule): Use it. Parse "auto".
17342 (omp_set_num_threads): Use gomp_icv.
17343 (omp_set_dynamic, omp_get_dynamic, omp_set_nested, omp_get_nested):
17345 (omp_get_max_threads): Move from parallel.c.
17346 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
17347 omp_set_max_active_levels, omp_get_max_active_levels): New functions,
17349 (parse_stacksize, parse_wait_policy): New functions.
17350 * fortran.c: Rewrite lock wrappers, if symbol versioning provide
17351 both wrappers for compatibility and new locks.
17352 (omp_set_schedule, omp_get_schedule,
17353 omp_get_thread_limit, omp_set_max_active_levels,
17354 omp_get_max_active_levels, omp_get_level,
17355 omp_get_ancestor_thread_num, omp_get_team_size,
17356 omp_get_active_level): New ialias_redirect.
17357 (omp_set_schedule_, omp_set_schedule_8_,
17358 omp_get_schedule_, omp_get_schedule_8_, omp_get_thread_limit_,
17359 omp_set_max_active_levels_, omp_set_max_active_levels_8_,
17360 omp_get_max_active_levels_, omp_get_level_,
17361 omp_get_ancestor_thread_num_, omp_get_ancestor_thread_num_8_,
17362 omp_get_team_size_, omp_get_team_size_8_, omp_get_active_level_):
17364 * parallel.c: Include limits.h.
17365 (gomp_resolve_num_threads): Add count argument. Rewritten.
17366 (GOMP_parallel_start): Call gomp_new_team and pass that as last
17367 argument to gomp_team_start. Pass 0 as second argument to
17368 gomp_resolve_num_threads.
17369 (GOMP_parallel_end): Decrease gomp_remaining_threads_count
17370 if gomp_thread_limit_var != ULONG_MAX.
17371 (omp_in_parallel): Implement using ts.active_level.
17372 (omp_get_max_threads): Move to env.c.
17373 (omp_get_level, omp_get_ancestor_thread_num,
17374 omp_get_team_size, omp_get_active_level): New functions,
17376 * sections.c (GOMP_sections_start): Call gomp_work_share_init_done
17377 after gomp_sections_init. If HAVE_SYNC_BUILTINS, call
17378 gomp_iter_dynamic_next instead of the _locked variant and don't take
17379 lock around it, otherwise acquire it before calling
17380 gomp_iter_dynamic_next_locked.
17381 (GOMP_sections_next): If HAVE_SYNC_BUILTINS, call
17382 gomp_iter_dynamic_next instead of the _locked variant and don't take
17384 (GOMP_parallel_sections_start): Call gomp_new_team instead of
17385 gomp_new_work_share. Call gomp_sections_init on &team->work_shares[0].
17386 Adjust gomp_team_start caller. Pass count as second argument to
17387 gomp_resolve_num_threads, don't adjust num_threads after the call.
17389 * iter.c (gomp_iter_dynamic_next_locked): Don't multiply
17390 ws->chunk_size by incr.
17391 (gomp_iter_dynamic_next): Likewise. If ws->mode, use more efficient
17393 * libgomp_f.h.in (omp_lock_25_arg_t, omp_nest_lock_25_arg_t): New
17395 (omp_lock_25_arg, omp_nest_lock_25_arg): New macros.
17396 (omp_check_defines): Check even the compat defines.
17397 * config/linux/ptrlock.c: New file.
17398 * config/linux/ptrlock.h: New file.
17399 * config/linux/wait.h: New file.
17400 * config/posix/ptrlock.c: New file.
17401 * config/posix/ptrlock.h: New file.
17402 * config/linux/bar.h (gomp_team_barrier_wait,
17403 gomp_team_barrier_wait_end, gomp_team_barrier_wake): New prototypes.
17404 (gomp_team_barrier_set_task_pending,
17405 gomp_team_barrier_clear_task_pending,
17406 gomp_team_barrier_set_waiting_for_tasks,
17407 gomp_team_barrier_waiting_for_tasks,
17408 gomp_team_barrier_done): New inlines.
17409 (gomp_barrier_t): Rewritten.
17410 (gomp_barrier_state_t): New typedef.
17411 (gomp_barrier_init, gomp_barrier_reinit, gomp_barrier_destroy,
17412 gomp_barrier_wait_start): Rewritten.
17413 (gomp_barrier_wait_end): Change second argument to
17414 gomp_barrier_state_t.
17415 (gomp_barrier_last_thread, gomp_barrier_wait_last): New static
17417 * config/linux/bar.c: Include wait.h instead of libgomp.h and
17419 (gomp_barrier_wait_end): Rewritten.
17420 (gomp_team_barrier_wait, gomp_team_barrier_wait_end,
17421 gomp_team_barrier_wake, gomp_barrier_wait_last): New functions.
17422 * config/posix/bar.h (gomp_barrier_t): Add generation field.
17423 (gomp_barrier_state_t): New typedef.
17424 (gomp_team_barrier_wait,
17425 gomp_team_barrier_wait_end, gomp_team_barrier_wake): New prototypes.
17426 (gomp_barrier_wait_start): Or all but low 2 bits from generation
17427 into the return value. Return gomp_barrier_state_t.
17428 (gomp_team_barrier_set_task_pending,
17429 gomp_team_barrier_clear_task_pending,
17430 gomp_team_barrier_set_waiting_for_tasks,
17431 gomp_team_barrier_waiting_for_tasks,
17432 gomp_team_barrier_done): New inlines.
17433 (gomp_barrier_wait_end): Change second argument to
17434 gomp_barrier_state_t.
17435 (gomp_barrier_last_thread, gomp_barrier_wait_last): New static
17437 * config/posix/bar.c (gomp_barrier_init): Clear generation field.
17438 (gomp_barrier_wait_end): Change second argument to
17439 gomp_barrier_state_t.
17440 (gomp_team_barrier_wait, gomp_team_barrier_wait_end,
17441 gomp_team_barrier_wake): New functions.
17442 * config/linux/mutex.c: Include wait.h instead of libgomp.h and
17444 (gomp_futex_wake, gomp_futex_wait): New variables.
17445 (gomp_mutex_lock_slow): Call do_wait instead of futex_wait.
17446 * config/linux/lock.c: Rewrite to make locks task owned,
17447 for backwards compatibility provide the old entrypoints
17448 if symbol versioning. Include wait.h instead of libgomp.h and
17450 (gomp_set_nest_lock_25): Call do_wait instead of futex_wait.
17451 * config/posix95/lock.c: Rewrite to make locks task owned,
17452 for backwards compatibility provide the old entrypoints
17453 if symbol versioning.
17454 * config/posix/lock.c: Rewrite to make locks task owned,
17455 for backwards compatibility provide the old entrypoints
17456 if symbol versioning.
17457 * config/linux/proc.c (gomp_init_num_threads): Use gomp_global_icv.
17458 (get_num_procs, gomp_dynamic_max_threads): Use gomp_icv.
17459 * config/posix/proc.c, config/mingw32/proc.c: Similarly.
17460 * config/linux/powerpc/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
17461 (sys_futex0): Return error code.
17462 (futex_wake, futex_wait): If ENOSYS was returned, clear
17463 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
17464 (cpu_relax, atomic_write_barrier): New static inlines.
17465 * config/linux/alpha/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
17466 (futex_wake, futex_wait): If ENOSYS was returned, clear
17467 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
17468 (cpu_relax, atomic_write_barrier): New static inlines.
17469 * config/linux/x86/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
17470 (sys_futex0): Return error code.
17471 (futex_wake, futex_wait): If ENOSYS was returned, clear
17472 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
17473 (cpu_relax, atomic_write_barrier): New static inlines.
17474 * config/linux/s390/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
17475 (sys_futex0): Return error code.
17476 (futex_wake, futex_wait): If ENOSYS was returned, clear
17477 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
17478 (cpu_relax, atomic_write_barrier): New static inlines.
17479 * config/linux/ia64/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
17480 (sys_futex0): Return error code.
17481 (futex_wake, futex_wait): If ENOSYS was returned, clear
17482 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
17483 (cpu_relax, atomic_write_barrier): New static inlines.
17484 * config/linux/sparc/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
17485 (sys_futex0): Return error code.
17486 (futex_wake, futex_wait): If ENOSYS was returned, clear
17487 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
17488 (cpu_relax, atomic_write_barrier): New static inlines.
17489 * config/linux/sem.c: Include wait.h instead of libgomp.h and
17491 (gomp_sem_wait_slow): Call do_wait instead of futex_wait.
17492 * config/linux/affinity.c: Assume HAVE_SYNC_BUILTINS.
17493 * config/linux/omp-lock.h (omp_lock_25_t, omp_nest_lock_25_t): New
17495 (omp_nest_lock_t): Change owner into void *, add lock field.
17496 * config/posix95/omp-lock.h: Include semaphore.h.
17497 (omp_lock_25_t, omp_nest_lock_25_t): New types.
17498 (omp_lock_t): Use sem_t instead of mutex if semaphores
17500 (omp_nest_lock_t): Likewise. Change owner to void *.
17501 * config/posix/omp-lock.h: Include semaphore.h.
17502 (omp_lock_25_t, omp_nest_lock_25_t): New types.
17503 (omp_lock_t): Use sem_t instead of mutex if semaphores
17505 (omp_nest_lock_t): Likewise. Add owner field.
17507 2008-06-06 Jakub Jelinek <jakub@redhat.com>
17509 * testsuite/libgomp.c/collapse-1.c: New test.
17510 * testsuite/libgomp.c/collapse-2.c: New test.
17511 * testsuite/libgomp.c/collapse-3.c: New test.
17512 * testsuite/libgomp.c/icv-1.c: New test.
17513 * testsuite/libgomp.c/icv-2.c: New test.
17514 * testsuite/libgomp.c/lib-2.c: New test.
17515 * testsuite/libgomp.c/lock-1.c: New test.
17516 * testsuite/libgomp.c/lock-2.c: New test.
17517 * testsuite/libgomp.c/lock-3.c: New test.
17518 * testsuite/libgomp.c/loop-4.c: New test.
17519 * testsuite/libgomp.c/loop-5.c: New test.
17520 * testsuite/libgomp.c/loop-6.c: New test.
17521 * testsuite/libgomp.c/loop-7.c: New test.
17522 * testsuite/libgomp.c/loop-8.c: New test.
17523 * testsuite/libgomp.c/loop-9.c: New test.
17524 * testsuite/libgomp.c/nested-3.c: New test.
17525 * testsuite/libgomp.c/nestedfn-6.c: New test.
17526 * testsuite/libgomp.c/sort-1.c: New test.
17527 * testsuite/libgomp.c/task-1.c: New test.
17528 * testsuite/libgomp.c/task-2.c: New test.
17529 * testsuite/libgomp.c/task-3.c: New test.
17530 * testsuite/libgomp.c/task-4.c: New test.
17531 * testsuite/libgomp.c++/c++.exp: Add libstdc++-v3 build includes
17532 to C++ testsuite default compiler options.
17533 * testsuite/libgomp.c++/collapse-1.C: New test.
17534 * testsuite/libgomp.c++/collapse-2.C: New test.
17535 * testsuite/libgomp.c++/ctor-10.C: New test.
17536 * testsuite/libgomp.c++/for-1.C: New test.
17537 * testsuite/libgomp.c++/for-2.C: New test.
17538 * testsuite/libgomp.c++/for-3.C: New test.
17539 * testsuite/libgomp.c++/for-4.C: New test.
17540 * testsuite/libgomp.c++/for-5.C: New test.
17541 * testsuite/libgomp.c++/loop-8.C: New test.
17542 * testsuite/libgomp.c++/loop-9.C: New test.
17543 * testsuite/libgomp.c++/loop-10.C: New test.
17544 * testsuite/libgomp.c++/task-1.C: New test.
17545 * testsuite/libgomp.c++/task-2.C: New test.
17546 * testsuite/libgomp.c++/task-3.C: New test.
17547 * testsuite/libgomp.c++/task-4.C: New test.
17548 * testsuite/libgomp.c++/task-5.C: New test.
17549 * testsuite/libgomp.c++/task-6.C: New test.
17550 * testsuite/libgomp.fortran/allocatable1.f90: New test.
17551 * testsuite/libgomp.fortran/allocatable2.f90: New test.
17552 * testsuite/libgomp.fortran/allocatable3.f90: New test.
17553 * testsuite/libgomp.fortran/allocatable4.f90: New test.
17554 * testsuite/libgomp.fortran/collapse1.f90: New test.
17555 * testsuite/libgomp.fortran/collapse2.f90: New test.
17556 * testsuite/libgomp.fortran/collapse3.f90: New test.
17557 * testsuite/libgomp.fortran/collapse4.f90: New test.
17558 * testsuite/libgomp.fortran/lastprivate1.f90: New test.
17559 * testsuite/libgomp.fortran/lastprivate2.f90: New test.
17560 * testsuite/libgomp.fortran/lib4.f90: New test.
17561 * testsuite/libgomp.fortran/lock-1.f90: New test.
17562 * testsuite/libgomp.fortran/lock-2.f90: New test.
17563 * testsuite/libgomp.fortran/nested1.f90: New test.
17564 * testsuite/libgomp.fortran/nestedfn4.f90: New test.
17565 * testsuite/libgomp.fortran/strassen.f90: New test.
17566 * testsuite/libgomp.fortran/tabs1.f90: New test.
17567 * testsuite/libgomp.fortran/tabs2.f: New test.
17568 * testsuite/libgomp.fortran/task1.f90: New test.
17569 * testsuite/libgomp.fortran/task2.f90: New test.
17570 * testsuite/libgomp.fortran/vla4.f90: Add dg-warning.
17571 * testsuite/libgomp.fortran/vla5.f90: Likewise.
17572 * testsuite/libgomp.c/pr26943-2.c: Likewise.
17573 * testsuite/libgomp.c/pr26943-3.c: Likewise.
17574 * testsuite/libgomp.c/pr26943-4.c: Likewise.
17576 2008-05-23 Jakub Jelinek <jakub@redhat.com>
17579 * testsuite/libgomp.c++/ctor-11.C: New test.
17580 * testsuite/libgomp.c++/ctor-12.C: New test.
17582 2008-05-15 Janis Johnson <janis187@us.ibm.com>
17584 * testsuite/lib/libgomp.exp: Load torture-options.exp from gcc lib.
17586 2008-05-07 Jakub Jelinek <jakub@redhat.com>
17588 PR middle-end/36106
17589 * testsuite/libgomp.c/atomic-5.c: New test.
17590 * testsuite/libgomp.c/atomic-6.c: New test.
17591 * testsuite/libgomp.c/autopar-1.c: New test.
17593 2008-04-21 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
17595 * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS)
17596 (LIBGOMP_CHECK_ATTRIBUTE_VISIBILITY)
17597 (LIBGOMP_CHECK_ATTRIBUTE_DLLEXPORT)
17598 (LIBGOMP_CHECK_ATTRIBUTE_ALIAS): Fix cache variable names.
17599 * configure: Regenerate.
17600 * Makefile.in, testsuite/Makefile.in: Likewise.
17602 2008-04-18 Paolo Bonzini <bonzini@gnu.org>
17605 * aclocal.m4: Regenerate.
17606 * configure: Regenerate.
17608 2008-03-18 Jakub Jelinek <jakub@redhat.com>
17610 PR middle-end/35611
17611 * testsuite/libgomp.c/atomic-4.c: New test.
17614 * iter.c (gomp_iter_guided_next_locked): If q > n, set end to ws->end.
17615 (gomp_iter_guided_next): Likewise.
17616 * testsuite/libgomp.c/pr35625.c: New test.
17618 2008-03-16 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
17620 * aclocal.m4: Regenerate.
17621 * configure: Likewise.
17622 * Makefile.in: Likewise.
17623 * testsuite/Makefile.in: Likewise.
17625 2008-03-13 Jakub Jelinek <jakub@redhat.com>
17627 PR middle-end/35185
17628 * testsuite/libgomp.c++/pr35185.C: New test.
17630 2008-03-12 Jakub Jelinek <jakub@redhat.com>
17632 PR middle-end/35549
17633 * testsuite/libgomp.c/pr35549.c: New test.
17635 2008-03-06 Jakub Jelinek <jakub@redhat.com>
17637 * testsuite/libgomp.c/atomic-3.c: New test.
17639 2008-03-03 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
17642 * testsuite/libgomp.fortran/fortran.exp: Add .f08 and
17643 .F08 file suffixes.
17645 2008-03-03 Peter O'Gorman <pogma@thewrittenword.com>
17648 * configure.ac: Add ACX_HEADER_STRING.
17649 * env.c: Include strings.h.
17650 * aclocal.m4: Regenerate.
17651 * config.h.in: Regenerate.
17652 * configure: Regenerate.
17653 * Makefile.in: Regenerate.
17654 * testsuite/Makefile.in: Regenerate.
17656 2008-02-15 Jakub Jelinek <jakub@redhat.com>
17658 PR middle-end/35196
17659 * testsuite/libgomp.c/pr35196.c: New test.
17661 PR middle-end/35130
17662 * testsuite/libgomp.fortran/pr35130.f90: New test.
17663 * testsuite/libgomp.c/pr35130.c: New test.
17665 2008-01-25 Jakub Jelinek <jakub@redhat.com>
17667 PR middle-end/33880
17668 * testsuite/libgomp.c/pr33880.c: New test.
17669 * testsuite/libgomp.fortran/pr33880.f90: New test.
17671 2008-01-24 David Edelsohn <edelsohn@gnu.org>
17673 * configure: Regenerate.
17675 2008-01-08 Jakub Jelinek <jakub@redhat.com>
17677 * configure.ac: Move futex checking into ../config/futex.m4.
17678 * configure: Rebuilt.
17679 * aclocal.m4: Rebuilt.
17680 * Makefile.in: Rebuilt.
17682 * configure.tgt: Rename have_tls to gcc_cv_have_tls to match
17683 2007-10-15 ../config/tls.m4 change.
17685 2007-12-19 Jakub Jelinek <jakub@redhat.com>
17688 * testsuite/libgomp.c/pr34513.c: New test.
17689 * testsuite/libgomp.c++/pr34513.C: New test.
17691 2007-12-17 Jack Howarth <howarth@bromo.med.uc.edu>
17694 * testsuite/libgomp.fortran/crayptr2.f90: Move dg-options for darwin.
17696 2007-12-04 Jakub Jelinek <jakub@redhat.com>
17698 * omp.h.in (__GOMP_NOTHROW): Define. Use it on omp_* prototypes.
17700 2007-12-03 Jakub Jelinek <jakub@redhat.com>
17702 * testsuite/libgomp.c/private-1.c: New test.
17704 2007-11-29 Andris Pavenis <andris.pavenis@iki.fi>
17705 Paolo Bonzini <bonzini@gnu.org>
17707 * Makefile.am: Use space as vpath separator. Use 'vpath %'
17708 instead of 'VPATH ='.
17709 * Makefile.in: Regenerate.
17711 2007-11-23 Matthias Klose <doko@ubuntu.com>
17713 * configure.ac: Adjust makeinfo version check.
17714 * configure: Regenerate.
17716 2007-11-10 Jakub Jelinek <jakub@redhat.com>
17719 * testsuite/libgomp.fortran/pr34020.f90: New test.
17721 2007-11-06 Jakub Jelinek <jakub@redhat.com>
17724 * testsuite/libgomp.c++/atomic-1.C: New test.
17726 2007-10-25 Jakub Jelinek <jakub@redhat.com>
17729 * testsuite/libgomp.fortran/omp_parse3.f90 (test_threadprivate):
17730 Make x and y integers rather than (implicit) reals. Add private (j)
17731 clause to the last omp parallel.
17733 2007-10-15 Maciej W. Rozycki <macro@linux-mips.org>
17735 * configure: Regenerate following changes to ../config/tls.m4.
17737 2007-09-28 Jakub Jelinek <jakub@redhat.com>
17739 * testsuite/libgomp.fortran/stack.f90: New test.
17741 2007-09-10 Danny Smith <dannysmith@users.sourceforge.net>
17743 * config/mingw32/proc.c: New file.
17745 2007-09-05 Uros Bizjak <ubizjak@gmail.com>
17747 * testsuite/libgomp.c/atomic-1.c: Include cpuid.h for i386 targets.
17748 (main): Use __get_cpuid to get i386 target fetaures.
17749 * testsuite/libgomp.c/atomic-2.c: Include cpuid.h for x86_64 targets.
17750 (main): Use __get_cpuid to get x86_64 target fetaures.
17752 2007-08-15 Jack Howarth <howarth@bromo.med.uc.edu>
17755 * testsuite/libgomp.fortran/pr32550.f90: Use -static-libgcc on Darwin.
17756 * testsuite/libgomp.fortran/crayptr2.f90: Likwise.
17758 2007-07-12 Jakub Jelinek <jakub@redhat.com>
17761 * testsuite/libgomp.fortran/pr32550.f90: New test.
17762 * testsuite/libgomp.fortran/crayptr2.f90: New test.
17764 2007-07-05 H.J. Lu <hongjiu.lu@intel.com>
17766 * aclocal.m4: Regenerated.
17768 2007-07-05 Tobias Burnus <burnus@net-b.de>
17771 * testsuite/libgomp.fortran/pr32359.f90: New.
17773 2007-07-02 Jakub Jelinek <jakub@redhat.com>
17776 * sections.c (GOMP_parallel_sections_start): Only decrease
17777 number of threads to COUNT if dyn_var is true.
17778 * testsuite/libgomp.c/pr32468.c: New test.
17780 2007-07-02 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
17783 * config/posix/lock.c (_XOPEN_SOURCE): Don't define on Tru64 UNIX.
17785 2007-06-21 Jakub Jelinek <jakub@redhat.com>
17787 PR middle-end/32362
17788 * testsuite/libgomp.c/pr32362-1.c: New test.
17789 * testsuite/libgomp.c/pr32362-2.c: New test.
17790 * testsuite/libgomp.c/pr32362-3.c: New test.
17792 2007-06-07 Jakub Jelinek <jakub@redhat.com>
17794 * team.c (gomp_team_start): Fix setting up thread_attr
17797 2007-06-02 Paolo Bonzini <bonzini@gnu.org>
17799 * configure: Regenerate.
17801 2007-05-23 Steve Ellcey <sje@cup.hp.com>
17803 * Makefile.in: Regenerate.
17804 * configure: Regenerate.
17805 * aclocal.m4: Regenerate.
17806 * testsuite/Makefile.in: Regenerate.
17808 2007-05-04 Jakub Jelinek <jakub@redhat.com>
17810 * config/linux/proc.c: New file.
17813 * configure.tgt: Don't link with -Wl,-z,nodlopen even on Linux.
17815 2007-04-19 Daniel Franke <franke.daniel@gmail.com>
17817 * libgomp.texi (GOMP_CPU_AFFINITY): Updated.
17819 2007-04-16 Matthias Klose <doko@debian.org>
17821 * configure.tgt (i[456]86-*-linux*): Only add ia32 specific
17822 flags if not building with -m64.
17823 * testsuite/lib/libgomp-dg.exp (libgomp_init): Don't add -march
17824 flag for i?86-*-* targets, if current target matches -m64.
17826 2007-04-14 Steve Ellcey <sje@cup.hp.com>
17828 * Makefile.am: Add -I .. to ACLOCAL_AMFLAGS.
17829 * Makefile.in: Regenerate.
17831 2007-04-07 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
17834 * testsuite/libgomp.c++/c++.exp: Don't use concat when setting
17836 * testsuite/libgomp.fortran/fortran.exp: Likewise.
17838 2007-04-04 Jakub Jelinek <jakub@redhat.com>
17840 * libgomp.h (gomp_cpu_affinity, gomp_cpu_affinity_len): New extern
17842 (gomp_init_affinity, gomp_init_thread_affinity): New prototypes.
17843 * env.c (gomp_cpu_affinity, gomp_cpu_affinity_len): New variables.
17844 (parse_affinity): New function.
17845 (initialize_env): Call it and gomp_init_affinity.
17846 * team.c (gomp_team_start): If gomp_cpu_affinity != NULL,
17847 create new pthread_attr_t and call gomp_init_thread_affinity
17848 on it for each thread before passing the attribute to pthread_create.
17849 * config/linux/affinity.c: New file.
17850 * config/posix/affinity.c: New file.
17851 * configure.ac (HAVE_PTHREAD_AFFINITY_NP): New test.
17852 * configure: Rebuilt.
17853 * config.h.in: Rebuilt.
17854 * Makefile.am (libgomp_la_SOURCES): Add affinity.c.
17855 * Makefile.in: Rebuilt.
17857 2007-03-23 Andreas Tobler <a.tobler@schweiz.org>
17859 * testsuite/lib/libgomp.exp (libgomp_init): Add -shared-libgcc for
17861 * testsuite/libgomp.c++/c++.exp: Look for shared libstdc++ library
17862 and use it if found.
17864 2007-03-18 Uros Bizjak <ubizjak@gmail.com>
17866 * testsuite/config/default.exp: New file.
17867 * testsuite/lib/libgomp.exp: New file.
17868 * testsuite/lib/libgomp.dg (load_gcc_lib, libgomp_init,
17869 libgomp_target_compile, libgomp_option_help, libgomp_option_proc,
17870 load_lib *, load_gcc_lib *): Move to libgomp.exp.
17871 (libgomp_load): Remove.
17872 * testsuite/lib/libgomp.exp (libgomp_init): Compute
17873 always_ld_library_path, not ld_library_path. Set additional_flags
17874 to -march=i486 for ilp32 x86_64-*-* and i386-*-* targets.
17875 (target_compile): Do not call libgomp_init. Append lang_library_path
17876 and lang_link_flags to options.
17877 * testsuite/libgomp.c/c.exp: Set DEFAULT_FLAGS to -O2. Set
17878 ld_library_path from always_ld_library_path. Set LD_LIBRARY_PATH
17880 * testsuite/libgomp.c++/c++.exp: Set ld_library_path from
17881 always_ld_library_path. Set LD_LIBRARY_PATH here.
17882 * testsuite/libgomp.fortran/fortran.exp: Ditto.
17883 * testsuite/libgomp.c/atomic-1.c: Set dg-options to
17884 "-O2 -march=pentium" for ilp32 x86 targets. Simplify check for
17886 * testsuite/libgomp.c/atomic-2.c: Set dg-options to "-O2 -mcx16" for
17887 lp64 x86 targets. Do not check for SSE3 bit. Do not define bit_SSE3.
17888 * testsuite/libgomp.c/pr29947-1.c: Remove default dg-options.
17889 * testsuite/libgomp.c/pr29947-1.c: Ditto.
17890 * testsuite/libgomp.c/atomic-10.c: Ditto.
17892 2007-03-21 Jakub Jelinek <jakub@redhat.com>
17894 * testsuite/libgomp.fortran/appendix-a/a.22.8.f90: Add
17895 dg-final cleanup-modules line.
17896 * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: Likewise.
17897 * testsuite/libgomp.fortran/appendix-a/a.31.5.f90: Likewise.
17898 * testsuite/libgomp.fortran/appendix-a/a.31.4.f90: Likewise.
17899 * testsuite/libgomp.fortran/threadprivate2.f90: Likewise.
17900 * testsuite/libgomp.fortran/reduction5.f90: Likewise.
17901 * testsuite/libgomp.fortran/threadprivate3.f90: Likewise.
17902 * testsuite/libgomp.fortran/threadprivate1.f90: Likewise.
17904 2007-03-18 Andreas Schwab <schwab@suse.de>
17906 * acinclude.m4: Adjust regular expression for ld version
17908 * configure: Regenerate.
17910 2007-03-01 Brooks Moses <brooks.moses@codesourcery.com>
17912 * Makefile.am: Add install-pdf target as copied from
17913 automake v1.10 rules.
17914 * Makefile.in: Regenerate
17916 2007-02-07 Jakub Jelinek <jakub@redhat.com>
17919 * configure: Regenerate.
17922 * testsuite/libgomp.c++/pr30703.C: New test.
17924 2007-02-02 Jakub Jelinek <jakub@redhat.com>
17927 2006-07-05 Eric Christopher <echristo@apple.com>
17928 * configure.ac: Depend addition of -pthread on host OS.
17929 * configure: Regenerate.
17931 2007-01-31 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
17933 * libgomp.texi: Fix spacing after abbreviations.
17935 2007-01-31 Daniel Franke <franke.daniel@gmail.com>
17938 * configure.ac: Add check for makeinfo
17939 * Makefile.am: Redefined target libgomp.info, build libgomp.info only
17940 if an appropriate version of makeinfo is found.
17941 * aclocal.m4: Regenerated.
17942 * configure: Regenerated.
17943 * Makefile.in: Regenerated.
17944 * testsuite/Makefile.in: Regenerated.
17946 2007-01-29 Daniel Franke <franke.daniel@gmail.com>
17949 * libgomp.texi: More about implementation-dependent settings.
17951 2007-01-26 Tobias Burnus <burnus@net-b.de>
17953 * testsuite/libgomp.fortran/fortran.exp: Support .f03 extension.
17955 2007-01-24 Jakub Jelinek <jakub@redhat.com>
17957 PR middle-end/30494
17958 * testsuite/libgomp.c/pr30494.c: New test.
17960 2007-01-15 Tom Tromey <tromey@redhat.com>
17962 * configure: Rebuilt.
17963 * configure.ac: Fixed comment.
17965 2007-01-14 Daniel Franke <franke.daniel@gmail.com>
17967 * libgomp.texi: Document implementation specific default values of
17968 environment variables.
17970 2006-12-21 Daniel Franke <franke.daniel@gmail.com>
17973 * libgomp.texi: New file.
17974 * configure.ac: Add --enable-generated-files-in-srcdir option.
17975 * Makefile.am: Add info, dvi, pdf, html targets. On request, copy
17977 * Makefile.in: Regenerated.
17978 * config.h.in: Regenerated.
17979 * testsuite/Makefile.in: Regenerated.
17982 2006-12-04 Daniel Franke <franke.daniel@gmail.com>
17985 * env.c (omp_set_num_threads): Set illegal thread count to 1.
17987 2006-12-04 Eric Botcazou <ebotcazou@libertysurf.fr>
17989 * configure: Regenerate.
17991 2006-12-04 Jakub Jelinek <jakub@redhat.com>
17994 * loop.c (gomp_loop_init): Make parameters signed. Set ws->end to
17995 start if there shouldn't be any loop iterations.
17996 (gomp_loop_ordered_static_start): Remove start == end test.
17997 * testsuite/libgomp.c/pr29947-1.c: New test.
17998 * testsuite/libgomp.c/pr29947-2.c: New test.
18000 2006-12-02 Eric Botcazou <ebotcazou@libertysurf.fr>
18002 * configure.tgt: Force initial-exec TLS model on Linux only.
18004 2006-11-13 Daniel Jacobowitz <dan@codesourcery.com>
18006 * configure: Regenerated.
18008 2006-11-09 Uros Bizjak <ubizjak@gmail.com>
18010 * env.c (parse_schedule): Reject out of range values.
18011 (parse_unsigned_long): Reject out of range, negative or zero values.
18013 2006-10-29 Jakub Jelinek <jakub@redhat.com>
18016 * testsuite/libgomp.fortran/pr29629.f90: New test.
18018 2006-10-24 Eric Botcazou <ebotcazou@libertysurf.fr>
18021 * configure.tgt: Use posix95 configuration for Solaris 2.5.1 and 2.6.
18022 * config/posix95: New directory.
18023 * config/posix95/omp-lock.h: New file.
18024 * config/posix95/lock.c: Likewise.
18026 2006-10-14 Geoffrey Keating <geoffk@apple.com>
18028 * aclocal.m4: Regenerate.
18029 * configure: Regenerate.
18031 2006-10-05 Danny Smith <dannysmith@users.sourceforge.net>
18033 * testsuite/libgomp.c/barrier-1.c: Change timestamp tests from
18036 2006-10-05 Danny Smith <dannysmith@users.sourceforge.net>
18038 * acinclude.m4 (HAVE_ATTRIBUTE_ALIAS): Remove __USER_LABEL_PREFIX__ from
18040 * configure: Regenerate.
18041 * fortran.c (ialias_redirect): Add __USER_LABEL_PREFIX__ to alias.
18043 2006-09-26 Jakub Jelinek <jakub@redhat.com>
18045 PR middle-end/25261
18046 PR middle-end/28790
18047 * testsuite/libgomp.c/nestedfn-4.c: New test.
18048 * testsuite/libgomp.c/nestedfn-5.c: New test.
18049 * testsuite/libgomp.fortran/nestedfn3.f90: New test.
18052 * testsuite/libgomp.fortran/condinc1.f: New test.
18053 * testsuite/libgomp.fortran/condinc2.f: New test.
18054 * testsuite/libgomp.fortran/condinc3.f90: New test.
18055 * testsuite/libgomp.fortran/condinc4.f90: New test.
18056 * testsuite/libgomp.fortran/condinc1.inc: New file.
18058 2006-09-18 Tom Tromey <tromey@redhat.com>
18060 * configure: Rebuilt.
18062 2006-09-13 Joseph S. Myers <joseph@codesourcery.com>
18065 PR preprocessor/14634
18066 * configure.ac (HAVE_CLOCK_GETTIME): Add missing second argument
18068 * configure: Regenerate.
18070 2006-09-08 Steven G. Kargl <kargl@gcc.gnu.org>
18072 * testsuite/libgomp.fortran/reduction3.f90: Change
18073 -2147483648 to -huge(i)-1 to avoid overflow.
18074 * testsuite/libgomp.fortran/reduction4.f90: Change
18075 Z'ffffffff' to not(0) to avoid overflow.
18077 2006-08-26 Joseph S. Myers <joseph@codesourcery.com>
18080 * Makefile.am (libsubincludedir): New.
18081 (nodist_include_HEADERS): Rename to nodist_libsubinclude_HEADERS.
18082 * Makefile.in: Regenerate.
18084 2006-08-17 Jakub Jelinek <jakub@redhat.com>
18087 * env.c: Include ctype.h.
18088 (parse_schedule, parse_unsigned_long, parse_boolean): Allow
18089 leading and/or trailing whitespace and compare strings case
18092 2006-07-16 Jakub Jelinek <jakub@redhat.com>
18095 * testsuite/libgomp.fortran/pr28390.f: New test.
18097 2006-07-05 Eric Christopher <echristo@apple.com>
18099 * configure.ac: Depend addition of -pthread on host OS.
18100 * configure: Regenerate.
18102 2006-06-21 Jakub Jelinek <jakub@redhat.com>
18104 * critical.c (GOMP_critical_name_start): Fix *pptr initialization
18105 when gomp_mutex_t is larger than pointer and HAVE_SYNC_BUILTINS is
18108 2006-06-20 Jakub Jelinek <jakub@redhat.com>
18112 * configure.ac: If neither --enable-linux-futex nor
18113 --disable-linux-futex is passed, determine the default by checking
18114 for compiling and/or running against NPTL. With --enable-linux-futex,
18115 check if SYS_gettid and SYS_futex are defined.
18116 * configure: Rebuilt.
18118 2006-06-14 Richard Henderson <rth@redhat.com>
18121 * env.c (initialize_env): Avoid using PTHREAD_STACK_MIN when
18122 undefined. Use GOMP_STACKSIZE not OMP_STACKSIZE for environment.
18124 2006-06-09 Richard Henderson <rth@redhat.com>
18126 * env.c (gomp_nthreads_var): Change to unsigned long.
18127 (gomp_run_sched_chunk): Likewise.
18128 (parse_unsigned_long): Rename from parse_num_threads and generalize.
18129 (initialize_env): Initialize gomp_thread_attr.
18130 * libgomp.h (gomp_nthreads_var): Update decl.
18131 (gomp_run_sched_chunk): Likewise.
18132 (gomp_thread_attr): Declare.
18133 * team.c (gomp_thread_attr): Export.
18134 (initialize_team): Don't initialize it.
18136 2006-06-09 Jakub Jelinek <jakub@redhat.com>
18139 * testsuite/libgomp.fortran/pr27916-1.f90: New test.
18140 * testsuite/libgomp.fortran/pr27916-2.f90: New test.
18142 2006-06-06 Francois-Xavier Coudert <coudert@clipper.ens.fr>
18144 * config/mingw32/time.c: New file.
18145 * configure.tgt: Use it.
18147 2006-05-23 Carlos O'Donell <carlos@codesourcery.com>
18149 * Makefile.am: Add install-html target. Add install-html to .PHONY
18150 * Makefile.in: Regenerate.
18152 2006-05-22 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
18155 * testsuite/libgomp.c/sections-1.c: Require sync_int_long.
18156 * testsuite/libgomp.c/critical-1.c: Likewise.
18157 * testsuite/libgomp.c/loop-1.c: Likewise.
18158 * testsuite/libgomp.c/loop-2.c: Likewise.
18159 * testsuite/libgomp.c/single-1.c: Likewise.
18160 * testsuite/libgomp.c/ordered-1.c: Likewise.
18161 * testsuite/libgomp.c/ordered-2.c: Likewise.
18163 2006-05-15 Jakub Jelinek <jakub@redhat.com>
18165 PR middle-end/27416
18166 * libgomp.fortran/pr27416-1.f90: New test.
18168 2006-05-03 Jakub Jelinek <jakub@redhat.com>
18171 * testsuite/libgomp.fortran/pr27395-1.f90: New test.
18172 * testsuite/libgomp.fortran/pr27395-2.f90: New test.
18174 2006-05-02 Jakub Jelinek <jakub@redhat.com>
18177 * testsuite/libgomp.c/pr26943-1.c: New test.
18178 * testsuite/libgomp.c/pr26943-2.c: New test.
18179 * testsuite/libgomp.c/pr26943-3.c: New test.
18180 * testsuite/libgomp.c/pr26943-4.c: New test.
18181 * testsuite/libgomp.c++/pr27337.C: Remove barrier.
18182 * testsuite/libgomp.c++/pr26943.C: New test.
18184 2006-05-02 Jakub Jelinek <jakub@redhat.com>
18186 PR middle-end/27337
18187 * testsuite/libgomp.c++/pr27337.C: New test.
18189 2006-04-26 Jakub Jelinek <jakub@redhat.com>
18192 * testsuite/libgomp.c/pr26171.c: New test.
18194 2006-04-25 Richard Henderson <rth@redhat.com>
18197 * configure.ac: Use GCC_CHECK_TLS.
18198 * acinclude.m4 (LIBGOMP_CHECK_TLS): Remove.
18199 * Makefile.in, aclocal.m4, configure: Regenerate.
18201 2006-04-10 Matthias Klose <doko@debian.org>
18203 * testsuite/lib/libgomp.exp (libgomp_init): Recognize multilib
18204 directory names containing underscores.
18206 2006-03-21 Jakub Jelinek <jakub@redhat.com>
18209 * testsuite/libgomp.c++/pr26691.C: New test.
18211 2006-03-13 Jakub Jelinek <jakub@redhat.com>
18213 * testsuite/libgomp.fortran/retval2.f90: New test.
18215 2006-03-09 Diego Novillo <dnovillo@redhat.com>
18217 * testsuite/libgomp.c++: New directory.
18219 2006-02-25 Shantonu Sen <ssen@opendarwin.org>
18221 * config/posix/sem.h: Define BROKEN_POSIX_SEMAPHORES functions.
18222 * config/posix/sem.c: Implement the above.
18224 2006-02-25 Andreas Tobler <a.tobler@schweiz.ch>
18226 * configure.ac (HAVE_BROKEN_POSIX_SEMAPHORES): Check for darwin and
18227 define HAVE_BROKEN_POSIX_SEMAPHORES.
18228 * configure: Rebuilt.
18229 * config.h.in: Rebuilt.
18231 2006-02-17 Francois-Xavier Coudert <coudert@clipper.ens.fr>
18234 * configure.ac: Remove AC_CHECK_HEADER for pthread.h. Add comment
18235 for the other pthread check.
18236 * configure: Regenerate.
18237 * config.h.in: Regenerate.
18239 2006-02-15 Jakub Jelinek <jakub@redhat.com>
18243 * Makefile.am (fincludedir): New variable.
18244 (nodist_include_HEADERS): Remove Fortran files.
18245 (nodist_finclude_HEADERS): New variable.
18246 * Makefile.in: Regenerated.
18248 2006-02-13 Jakub Jelinek <jakub@redhat.com>
18250 * testsuite/libgomp.fortran/vla7.f90: Add -w to options.
18251 Remove tests for returning assumed character length arrays.
18253 2006-02-12 Roger Sayle <roger@eyesopen.com>
18254 John David Anglin <dave@hiauly1.hia.nrc.ca>
18257 * configure.tgt: Link against -lrt for sem_init on HPUX v11 systems.
18259 2006-02-08 Ulrich Weigand <uweigand@de.ibm.com>
18261 * testsuite/lib/libgomp-dg.exp: Load scanrtl.exp library.
18263 2006-02-07 Eric Botcazou <ebotcazou@libertysurf.fr>
18265 * testsuite/lib/libgomp-dg.exp (libgomp_init): Compute multilib related
18266 part of LD_LIBRARY_PATH manually.
18268 2006-02-03 H.J. Lu <hongjiu.lu@intel.com>
18271 * testsuite/lib/libgomp-dg.exp (blddir): Set it in
18274 2005-01-25 Paolo Bonzini <bonzini@gnu.org>
18277 * Makefile.am (omp.h, omp_lib.h, omp_lib.f90, libgomp_f.h): Remove.
18278 * configure.ac (PERL): Don't set.
18279 (gstdint.h, omp.h, omp_lib.h, omp_lib.f90, libgomp_f.h): Create here.
18280 (OMP_LOCK_SIZE, OMP_LOCK_ALIGN, OMP_LOCK_KIND, OMP_NEST_LOCK_SIZE,
18281 OMP_NEST_LOCK_ALIGN, OMP_NEST_LOCK_KIND): New substitutions.
18282 * omp.h.in: Wrap the new configure substitutions with @ characters.
18283 * omp_lib.h.in, omp_lib.f90.in, libgomp_f.h.in: Likewise.
18284 * aclocal.m4, configure, Makefile.in: Regenerate.
18285 * mkomp_h.pl: Delete.
18287 2005-01-24 Paolo Bonzini <bonzini@gnu.org>
18290 * configure.ac: Use GCC_HEADER_STDINT.
18291 * libgomp.h: Include gstdint.h.
18292 * libgomp_f.h.in: Don't include stdint.h or inttypes.h.
18293 * configure, Makefile.in, testsuite/Makefile.in, aclocal.m4: Rebuild.
18295 2006-01-24 Richard Henderson <rth@redhat.com>
18298 * configure.ac: Add AM_MAINTAINER_MODE.
18299 * Makefile.in, aclocal.m4, configure, testsuite/Makefile.in: Rebuild.
18301 2006-01-24 Diego Novillo <dnovillo@redhat.com>
18303 * Makefile.in: Regenerate.
18304 * testsuite/Makefile.in: Regenerate.
18305 * aclocal.m4: Regenerate.
18307 2006-01-23 Andreas Tobler <a.tobler@schweiz.ch>
18309 * config/posix/proc.c: Conditional include of sys/loadavg.h for
18311 * configure.ac: Add check for loadavg.h.
18312 (link_gomp): Adjust comment.
18313 * configure: Regenerate.
18314 * config.h.in: Regenerate.
18316 2006-01-21 Steve Ellcey <sje@cup.hp.com>
18319 * configure.ac: Remove check for alloca.h.
18320 * configure: Regenerate.
18321 * config.h.in: Regenerate.
18322 * libgomp.h: define gomp_alloca to be __builtin_alloca.
18323 * team.c: Remove use of alloca.h.
18324 Call gomp_alloca instead of alloca.
18326 2006-01-20 Steve Ellcey <sje@cup.hp.com>
18329 * team.c: Add include of alloca.h.
18330 * configure.ac: Add check for alloca.h.
18331 * configure: Regenerate.
18332 * config.h.in: Regenerate.
18334 2006-01-17 Jakub Jelinek <jakub@redhat.com>
18337 * testsuite/libgomp.fortran/pr25219.f90: New test.
18339 2005-12-05 Uros Bizjak <uros@kss-loka.si>
18341 * testsuite/libgomp.c/pr24455.c, testsuite/libgomp.c/copyin-1.c,
18342 testsuite/libgomp.c/copyin-2.c, testsuite/libgomp.c/copyin-3.c,
18343 testsuite/libgomp.c++/copyin-1.C, testsuite/libgomp.c++/copyin-2.C,
18344 testsuite/libgomp.c++/ctor-5.C, testsuite/libgomp.c++/ctor-8.C,
18345 testsuite/libgomp.c++/ctor-9.C, testsuite/libgomp.c++/pr24455.C,
18346 testsuite/libgomp.fortran/threadprivate1.f90,
18347 testsuite/libgomp.fortran/threadprivate2.f90,
18348 testsuite/libgomp.fortran/threadprivate3.f90,
18349 testsuite/libgomp.fortran/appendix-a/a.22.7.f9,
18350 testsuite/libgomp.fortran/appendix-a/a.22.8.f9,
18351 testsuite/libgomp.fortran/omp_parse3.f90: Change required
18352 effective-target to TLS runtime.
18354 * testsuite/libgomp.fortran/pr25162.f: Require
18355 effective-target TLS runtime.
18357 2005-12-01 Jakub Jelinek <jakub@redhat.com>
18359 * testsuite/libgomp.fortran/nestedfn2.f90: New test.
18360 * testsuite/libgomp.c/nestedfn-3.c: New test.
18362 2005-11-30 Jakub Jelinek <jakub@redhat.com>
18365 * testsuite/libgomp.fortran/pr25162.f: New test.
18367 2005-11-28 Jakub Jelinek <jakub@redhat.com>
18369 * config/posix/time.c (omp_get_wtime, omp_get_wtick): Fall back to
18370 CLOCK_REALTIME if clock_* (CLOCK_MONOTONIC, &ts) call failed.
18372 2005-11-25 Jakub Jelinek <jakub@redhat.com>
18374 * alloc.c, barrier.c, critical.c, env.c, error.c, fortran.c, iter.c,
18375 libgomp.h, libgomp_f.h.in, libgomp_g.h, loop.c, mkomp_h.pl, omp.h.in,
18376 omp_lib.f90.in, omp_lib.h.in, ordered.c, parallel.c, sections.c,
18377 single.c, team.c, work.c, config/linux/alpha/futex.h,
18378 config/linux/bar.c, config/linux/bar.h, config/linux/ia64/futex.h,
18379 config/linux/lock.c, config/linux/mutex.c, config/linux/mutex.h,
18380 config/linux/powerpc/futex.h, config/linux/s390/futex.h,
18381 config/linux/sem.c, config/linux/sem.h, config/linux/sparc/futex.h,
18382 config/linux/x86/futex.h, config/posix/bar.c, config/posix/bar.h,
18383 config/posix/lock.c, config/posix/mutex.h, config/posix/proc.c,
18384 config/posix/sem.c, config/posix/sem.h, config/posix/time.c: Update
18387 2005-11-18 Jakub Jelinek <jakub@redhat.com>
18389 * Makefile.am: Move libgomp_f.h from nodist_include_HEADERS
18390 to nodist_noinst_HEADERS.
18391 * Makefile.in: Rebuilt.
18393 * config/posix/omp-lock.h (omp_nest_lock_t): Change into struct,
18394 add integer count field.
18395 * config/posix/lock.c (omp_destroy_nest_lock): Adjust for
18396 omp_nest_lock_t type change.
18397 (omp_init_nest_lock): Likewise. Initialize count to 0.
18398 (omp_set_nest_lock): Adjust for omp_nest_lock_t type change.
18400 (omp_unset_nest_lock): Adjust for omp_nest_lock_t type change.
18402 (omp_test_nest_lock): Adjust for omp_nest_lock_t type change.
18403 Increment count if successful and return the new nesting level.
18404 * config/linux/lock.c (omp_test_nest_lock): Return new nesting level.
18405 * omp_lib.f90.in (omp_test_lock): Fix LOCK argument type.
18406 * testsuite/libgomp.c/lib-1.c: New test.
18407 * testsuite/libgomp.fortran/lib1.f90: New test.
18408 * testsuite/libgomp.fortran/lib2.f: New test.
18409 * testsuite/libgomp.fortran/lib3.f: New test.
18411 2005-11-17 Richard Henderson <rth@redhat.com>
18414 * Makefile.am (nodist_toolexeclib_HEADERS): New.
18415 * configure.ac (link_gomp): New. Substitute it.
18416 (AC_CONFIG_FILES): Add libgomp.spec.
18417 * libgomp.spec.in: New file.
18418 * Makefile.in, testsuite/Makefile.in, configure: Rebuild.
18419 * testsuite/lib/libgomp-dg.exp: Add -B${blddir}/ to flags.
18421 2005-11-18 Jakub Jelinek <jakub@redhat.com>
18423 * testsuite/libgomp.fortran/reduction1.f90: Adjust for
18424 reduction(-:var) behaving the same as reduction(+:var).
18425 * testsuite/libgomp.c/reduction-4.c: New test.
18427 2005-11-15 Uros Bizjak <uros@kss-loka.si>
18429 * testsuite/libgomp.c/pr24455-1.c, testsuite/libgomp.c/pr24455.c,
18430 testsuite/libgomp.c/copyin-1.c, testsuite/libgomp.c/copyin-2.c,
18431 testsuite/libgomp.c/copyin-3.c,
18432 testsuite/libgomp.c++/copyin-1.C, testsuite/libgomp.c++/copyin-2.C,
18433 testsuite/libgomp.c++/ctor-5.C, testsuite/libgomp.c++/ctor-8.C,
18434 testsuite/libgomp.c++/ctor-9.C, testsuite/libgomp.c++/pr24455-1.C,
18435 testsuite/libgomp.c++/pr24455.C,
18436 testsuite/libgomp.fortran/threadprivate1.f90,
18437 testsuite/libgomp.fortran/threadprivate2.f90,
18438 testsuite/libgomp.fortran/threadprivate3.f90,
18439 testsuite/libgomp.fortran/appendix-a/a.22.7.f9,
18440 testsuite/libgomp.fortran/appendix-a/a.22.8.f9,
18441 testsuite/libgomp.fortran/omp_parse3.f90: Require
18442 effective-target TLS.
18444 2005-11-14 Diego Novillo <dnovillo@redhat.com>
18448 2005-11-13 Jakub Jelinek <jakub@redhat.com>
18451 * team.c (initialize_team): Pass NULL rather than free as
18452 pthread_key_create destructor. Initialize thread specific data
18453 pointer in initial thread to a static local variable rather than
18456 2005-11-11 Uros Bizjak <uros@kss-loka.si>
18458 * testsuite/lib/libgomp-dg.exp: Locate libgcc.a and append
18459 its location to ld_library_path.
18461 2005-11-10 Diego Novillo <dnovillo@redhat.com>
18463 * testsuite/libgomp.c/c.exp: Rename from dg.exp.
18465 2005-11-10 Diego Novillo <dnovillo@redhat.com>
18467 * testsuite/libgomp.c: Rename from libgomp.dg.
18469 2005-11-09 Diego Novillo <dnovillo@redhat.com>
18471 * testsuite/libgomp.c++/pr24455.C: Add copyin clause for
18472 threadprivate variable 'i'.
18474 2005-11-09 Jakub Jelinek <jakub@redhat.com>
18476 * config/linux/s390/futex.h: New file.
18477 * configure.tgt: Use it.
18479 * testsuite/libgomp.fortran/omp_parse4.f90: Move n initialization
18480 before the parallel.
18482 2005-11-08 Jakub Jelinek <jakub@redhat.com>
18485 * testsuite/libgomp.c++/master-1.C: New test.
18487 2005-11-07 Jakub Jelinek <jakub@redhat.com>
18489 * testsuite/libgomp.dg/copyin-3.c: New test.
18491 2005-11-07 Jakub Jelinek <jakub@redhat.com>
18493 * testsuite/libgomp.fortran/retval1.f90: New test.
18494 * testsuite/libgomp.fortran/vla7.f90: New test.
18496 2005-11-06 Jakub Jelinek <jakub@redhat.com>
18498 * testsuite/libgomp.fortran/vla2.f90: New test.
18499 * testsuite/libgomp.fortran/vla3.f90: New test.
18500 * testsuite/libgomp.fortran/vla4.f90: New test.
18501 * testsuite/libgomp.fortran/vla5.f90: New test.
18502 * testsuite/libgomp.fortran/vla6.f90: New test.
18504 2005-11-01 Jakub Jelinek <jakub@redhat.com>
18506 * config/linux/sparc/futex.h: New file.
18507 * configure.tgt: Use it.
18508 * testsuite/lib/libgomp-dg.exp: Use -mcpu=v9 for sparc testing.
18510 * critical.c: Include stdlib.h.
18511 * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS): Avoid warnings about
18512 ignoring return value.
18513 * configure.ac: Don't put -Wc,-pthread into XCFLAGS until after
18514 LIBGOMP_CHECK_SYNC_BUILTINS check.
18515 * configure: Rebuilt.
18517 2005-10-31 Jakub Jelinek <jakub@redhat.com>
18519 * testsuite/libgomp.fortran/vla1.f90: New test.
18521 2005-10-31 Richard Henderson <rth@redhat.com>
18523 * testsuite/libgomp.fortran/character2.f90: Fix race condition
18524 setting 's' in different threads.
18526 2005-10-31 Jakub Jelinek <jakub@redhat.com>
18528 * libgomp.h (attribute_hidden, ialias): Define.
18529 * config/posix/proc.c (omp_get_num_procs): Add ialias.
18530 * config/posix/time.c (omp_get_wtime, omp_get_wtick): Likewise.
18531 * config/posix/lock.c (omp_init_lock, omp_init_nest_lock,
18532 omp_destroy_lock, omp_destroy_nest_lock, omp_set_lock,
18533 omp_set_nest_lock, omp_unset_lock, omp_unset_nest_lock,
18534 omp_test_lock, omp_test_nest_lock): Likewise.
18535 * config/linux/lock.c (omp_init_lock, omp_init_nest_lock,
18536 omp_destroy_lock, omp_destroy_nest_lock, omp_set_lock,
18537 omp_set_nest_lock, omp_unset_lock, omp_unset_nest_lock,
18538 omp_test_lock, omp_test_nest_lock): Likewise.
18539 * env.c (omp_set_dynamic, omp_set_nested, omp_set_num_threads,
18540 omp_get_dynamic, omp_get_nested): Likewise.
18541 * parallel.c (omp_get_num_threads, omp_get_max_threads,
18542 omp_get_thread_num, omp_in_parallel): Likewise.
18543 * fortran.c (ialias_redirect): Define.
18544 (omp_init_lock, omp_init_nest_lock, omp_destroy_lock,
18545 omp_destroy_nest_lock, omp_set_lock, omp_set_nest_lock,
18546 omp_unset_lock, omp_unset_nest_lock, omp_test_lock,
18547 omp_test_nest_lock, omp_set_dynamic, omp_set_nested,
18548 omp_set_num_threads, omp_get_dynamic, omp_get_nested,
18549 omp_in_parallel, omp_get_max_threads, omp_get_num_procs,
18550 omp_get_num_threads, omp_get_thread_num, omp_get_wtick,
18551 omp_get_wtime): Add ialias_redirect.
18553 2005-10-30 Jakub Jelinek <jakub@redhat.com>
18555 * fortran.c: Include stdlib.h.
18557 2005-10-29 Jakub Jelinek <jakub@redhat.com>
18559 * Makefile.am (env.o, env.lo): Depend on libgomp_f.h.
18560 * Makefile.in: Regenerated.
18562 2005-10-28 Jakub Jelinek <jakub@redhat.com>
18564 * mkomp_h.pl: Remove all -Wc, option prefixes in $COMPILE.
18565 * libgomp_f.h.in (omp_check_defines): New function.
18566 * env.c: Include libgomp_f.h.
18567 (initialize_env): Call omp_check_defines.
18569 * testsuite/libgomp.dg/copyin-2.c: New test.
18570 * testsuite/libgomp.c++/copyin-2.C: New test.
18571 * testsuite/libgomp.fortran/threadprivate3.f90: New test.
18573 * testsuite/libgomp.fortran/threadprivate2.f90: New test.
18574 * testsuite/libgomp.fortran/sharing2.f90: New test.
18576 * testsuite/libgomp.dg/copyin-1.c: New test.
18577 * testsuite/libgomp.c++/copyin-1.C: New test.
18579 2005-10-26 Jakub Jelinek <jakub@redhat.com>
18581 * testsuite/libgomp.fortran/crayptr1.f90: New test.
18583 * testsuite/libgomp.fortran/workshare1.f90: New test.
18585 * libgomp.fortran/appendix-a/a.28.5.f90: Change into compile
18587 * libgomp.fortran/sharing1.f90: New test.
18589 2005-10-24 Jakub Jelinek <jakub@redhat.com>
18592 * testsuite/libgomp.c++/loop-7.C: New test.
18594 * testsuite/libgomp.dg/nestedfn-2.c: New test.
18596 * testsuite/libgomp.dg/nestedfn-1.c: New test.
18597 * testsuite/libgomp.fortran/reduction6.f90: New test.
18598 * testsuite/libgomp.fortran/nestedfn1.f90: New test.
18600 2005-10-23 Richard Henderson <rth@redhat.com>
18602 * testsuite/libgomp.c++/ctor-1.C: New.
18603 * testsuite/libgomp.c++/ctor-2.C: New.
18604 * testsuite/libgomp.c++/ctor-3.C: New.
18605 * testsuite/libgomp.c++/ctor-4.C: New.
18606 * testsuite/libgomp.c++/ctor-5.C: New.
18607 * testsuite/libgomp.c++/ctor-6.C: New.
18608 * testsuite/libgomp.c++/ctor-7.C: New.
18609 * testsuite/libgomp.c++/ctor-8.C: New.
18610 * testsuite/libgomp.c++/ctor-9.C: New.
18612 2005-10-21 Diego Novillo <dnovillo@redhat.com>
18615 * testsuite/libgomp.c++/pr24455-1.C: New test.
18616 * testsuite/libgomp.c++/pr24455.C: New test.
18617 * testsuite/libgomp.dg/pr24455-1.c: New test.
18618 * testsuite/libgomp.dg/pr24455.c: New test.
18620 2005-10-20 Richard Henderson <rth@redhat.com>
18622 * testsuite/libgomp.c++/loop-6.C: New.
18623 * testsuite/libgomp.dg/loop-3.c: New.
18625 2005-10-20 Jakub Jelinek <jakub@redhat.com>
18627 * testsuite/libgomp.fortran/jacobi.f: Don't make i and j
18628 explicitly private.
18629 * testsuite/libgomp.fortran/omp_parse1.f90 (test_do): Make i
18632 2005-10-19 Diego Novillo <dnovillo@redhat.com>
18634 * testsuite/libgomp.fortran/jacobi.f: New test.
18636 2005-10-19 Richard Henderson <rth@redhat.com>
18638 * configure.tgt (i?86-linux): Default to with_arch instead of
18639 CFLAGS. Add -mtune to match target_cpu.
18640 (x86_64-linux): Tune to i686.
18642 * fortran.c (omp_test_nest_lock_): Fix typo.
18644 2005-10-19 Jakub Jelinek <jakub@redhat.com>
18646 * ordered.c (gomp_ordered_first, gomp_ordered_last, gomp_ordered_next,
18647 gomp_ordered_sync): Do nothing if team->nthreads == 1.
18648 * testsuite/libgomp.dg/ordered-3.c: New test.
18650 * testsuite/libgomp.dg/appendix-a/a.18.1.c: Remove unconditional abort.
18651 Remove volatile keyword.
18653 * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: Reorder variables
18654 in COMMON block to avoid warnings on 64-bit targets.
18656 2005-10-18 Diego Novillo <dnovillo@redhat.com>
18658 * testsuite/libgomp.dg/shared-3.c: New test.
18660 2005-10-18 Jakub Jelinek <jakub@redhat.com>
18662 * testsuite/libgomp.fortran/appendix-a/a.31.3.f90: Removed.
18663 * testsuite/libgomp.fortran/reduction5.f90: New test.
18665 2005-10-18 Jakub Jelinek <jakub@redhat.com>
18667 * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: Add -ffixed-form to
18669 * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: Likewise. Enable
18670 flush loop now that __sync_synchronize has proper memory barrier.
18671 * testsuite/libgomp.fortran/appendix-a/a.3.1.f90: Fix a typo.
18672 Add -ffixed-form to dg-options.
18674 2005-10-17 Diego Novillo <dnovillo@redhat.com>
18676 * testsuite/libgomp.fortran/fortran.exp: Also gather tests
18677 from subdirectories.
18678 * testsuite/libgomp.fortran/appendix-a/a.15.1.f90: New test.
18679 * testsuite/libgomp.fortran/appendix-a/a.16.1.f90: New test.
18680 * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: New test.
18681 * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: New test.
18682 * testsuite/libgomp.fortran/appendix-a/a.2.1.f90: New test.
18683 * testsuite/libgomp.fortran/appendix-a/a.21.1.f90: New test.
18684 * testsuite/libgomp.fortran/appendix-a/a.22.7.f90: New test.
18685 * testsuite/libgomp.fortran/appendix-a/a.22.8.f90: New test.
18686 * testsuite/libgomp.fortran/appendix-a/a.26.1.f90: New test.
18687 * testsuite/libgomp.fortran/appendix-a/a.28.1.f90: New test.
18688 * testsuite/libgomp.fortran/appendix-a/a.28.2.f90: New test.
18689 * testsuite/libgomp.fortran/appendix-a/a.28.3.f90: New test.
18690 * testsuite/libgomp.fortran/appendix-a/a.28.4.f90: New test.
18691 * testsuite/libgomp.fortran/appendix-a/a.28.5.f90: New test.
18692 * testsuite/libgomp.fortran/appendix-a/a.3.1.f90: New test.
18693 * testsuite/libgomp.fortran/appendix-a/a.31.3.f90: New test.
18694 * testsuite/libgomp.fortran/appendix-a/a.31.4.f90: New test.
18695 * testsuite/libgomp.fortran/appendix-a/a.31.5.f90: New test.
18696 * testsuite/libgomp.fortran/appendix-a/a.33.3.f90: New test.
18697 * testsuite/libgomp.fortran/appendix-a/a.38.1.f90: New test.
18698 * testsuite/libgomp.fortran/appendix-a/a.39.1.f90: New test.
18699 * testsuite/libgomp.fortran/appendix-a/a.4.1.f90: New test.
18700 * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: New test.
18701 * testsuite/libgomp.fortran/appendix-a/a.5.1.f90: New test.
18702 * testsuite/libgomp.fortran/appendix-a/a10.1.f90: New test.
18704 2005-10-17 Jakub Jelinek <jakub@redhat.com>
18706 * testsuite/libgomp.dg/dg.exp: Only unset lang_* if
18707 lang_library_path exists. Use find instead of glob to gather tests.
18708 * testsuite/libgomp.dg/appendix-a/appendix-a.exp: Removed.
18710 2005-10-17 Diego Novillo <dnovillo@redhat.com>
18712 * testsuite/libgomp.dg/appendix-a/a.15.1.c: New test.
18713 * testsuite/libgomp.dg/appendix-a/a.16.1.c: New test.
18714 * testsuite/libgomp.dg/appendix-a/a.18.1.c: New test.
18715 * testsuite/libgomp.dg/appendix-a/a.19.1.c: New test.
18716 * testsuite/libgomp.dg/appendix-a/a.2.1.c: New test.
18717 * testsuite/libgomp.dg/appendix-a/a.21.1.c: New test.
18718 * testsuite/libgomp.dg/appendix-a/a.26.1.c: New test.
18719 * testsuite/libgomp.dg/appendix-a/a.29.1.c: New test.
18720 * testsuite/libgomp.dg/appendix-a/a.3.1.c: New test.
18721 * testsuite/libgomp.dg/appendix-a/a.39.1.c: New test.
18722 * testsuite/libgomp.dg/appendix-a/a.4.1.c: New test.
18723 * testsuite/libgomp.dg/appendix-a/a.5.1.c: New test.
18724 * testsuite/libgomp.dg/appendix-a/appendix-a.exp: New file.
18726 2005-10-15 Jakub Jelinek <jakub@redhat.com>
18728 * testsuite/libgomp.dg/vla-1.c: New test.
18730 * testsuite/libgomp.fortran/reference2.f90: New test.
18732 * testsuite/libgomp.fortran/character2.f90: Remove explicit
18733 declaration of omp_get_thread_num.
18734 * testsuite/libgomp.fortran/threadprivate1.f90: Likewise. Add
18737 * testsuite/libgomp.fortran/reduction1.f90: New test.
18738 * testsuite/libgomp.fortran/reduction2.f90: New test.
18739 * testsuite/libgomp.fortran/reduction3.f90: New test.
18740 * testsuite/libgomp.fortran/reduction4.f90: New test.
18742 2005-10-13 Richard Henderson <rth@redhat.com>
18744 * Makefile.am (libgomp_la_SOURCES): Add bar.c.
18745 * Makefile.in: Regenerate.
18746 * barrier.c (GOMP_barrier): Use gomp_barrier_wait.
18747 * libgomp.h: Include bar.h.
18748 (struct gomp_barrier): Remove.
18749 (struct gomp_team): Add barrier. Replace master_barrier with
18750 master_release. Replace threads with ordered_release.
18751 (struct gomp_thread): Replace barrier with release.
18752 * ordered.c (gomp_ordered_first): Update for ordered_release change.
18753 (gomp_ordered_last, gomp_ordered_next, gomp_ordered_static_init,
18754 gomp_ordered_static_next, gomp_ordered_sync): Likewise.
18755 * single.c (GOMP_single_copy_start): Use gomp_barrier_wait.
18756 (GOMP_single_copy_end): Likewise.
18757 * team.c (gomp_threads_dock): New.
18758 (gomp_barrier_init, gomp_barrier_destroy): Remove.
18759 (gomp_thread_start): Use gomp_barrier_wait.
18760 (new_team, free_team): Update for gomp_team changes.
18761 (gomp_team_start): Use gomp_barrier_wait and gomp_barrier_reinit.
18762 (gomp_team_end): Use gomp_barrier_wait.
18763 (initialize_team): Update for gomp_thread changes.
18764 * work.c (gomp_work_share_end): Use gomp_barrier_wait_start.
18765 (gomp_work_share_end_nowait): Use atomic ops when available.
18766 * config/linux/bar.c, config/linux/bar.h: New files.
18767 * config/posix/bar.c, config/posix/bar.h: New files.
18769 2005-10-13 Jakub Jelinek <jakub@redhat.com>
18771 * single.c (GOMP_single_copy_end): Don't segfault if team is NULL.
18772 * testsuite/libgomp.dg/single-2.c: New test.
18774 * testsuite/libgomp.dg/dg.exp (lang_library_path, lang_test_file,
18775 lang_link_flags): Unset, so that they aren't inherited from previously
18778 * testsuite/libgomp.fortran/threadprivate1.f90: New test.
18780 2005-10-12 Richard Henderson <rth@redhat.com>
18782 * testsuite/lib/libgomp-dg.exp: Set blddir at toplevel.
18783 (libgomp_init): Use lang_test_file, lang_library_path, and
18784 lang_link_flags, set by the subdirectory files. Add -fopenmp here.
18786 * testsuite/libgomp.fortran/fortran.exp (lang_library_path): New.
18787 (lang_test_file, lang_link_flags): New.
18788 (DEFAULT_FFLAGS, ALWAYS_CFLAGS, multilibs, blddir): Remove.
18790 * testsuite/libgomp.c++/c++.exp, testsuite/libgomp.c++/loop-1.C,
18791 testsuite/libgomp.c++/loop-2.C, testsuite/libgomp.c++/loop-3.C,
18792 testsuite/libgomp.c++/loop-4.C, testsuite/libgomp.c++/nested-1.C,
18793 testsuite/libgomp.c++/parallel-1.C,
18794 testsuite/libgomp.c++/reduction-1.C,
18795 testsuite/libgomp.c++/reduction-2.C,
18796 testsuite/libgomp.c++/reduction-3.C,
18797 testsuite/libgomp.c++/sections-1.C, testsuite/libgomp.c++/shared-1.C,
18798 testsuite/libgomp.c++/shared-2.C, testsuite/libgomp.c++/single-1.C,
18799 testsuite/libgomp.c++/single-2.C, testsuite/libgomp.c++/single-3.C:
18800 New files, largely cribbed from the C testsuite.
18802 2005-10-12 Jakub Jelinek <jakub@redhat.com>
18804 * testsuite/libgomp.fortran/character1.f90: New test.
18805 * testsuite/libgomp.fortran/character2.f90: New test.
18807 * testsuite/libgomp.dg/nested-1.c: New test.
18808 * testsuite/libgomp.dg/nested-2.c: New test.
18809 * testsuite/libgomp.fortran/do1.f90: New test.
18810 * testsuite/libgomp.fortran/do2.f90: New test.
18812 * testsuite/libgomp.fortran/reference1.f90: New test.
18814 2005-10-11 Jakub Jelinek <jakub@redhat.com>
18816 * testsuite/libgomp.dg/reduction-1.c: New test.
18817 * testsuite/libgomp.dg/reduction-2.c: New test.
18818 * testsuite/libgomp.dg/reduction-3.c: New test.
18820 2005-10-10 Jakub Jelinek <jakub@redhat.com>
18822 * testsuite/libgomp.dg/atomic-1.c: New test.
18823 * testsuite/libgomp.dg/atomic-2.c: New test.
18825 2005-10-09 Richard Henderson <rth@redhat.com>
18827 * critical.c (atomic_lock): New.
18828 (initialize_critical): Initialize it.
18829 (GOMP_atomic_start, GOMP_atomic_end): New.
18830 * libgomp.map: Export them.
18831 * libgomp_g.h: Declare them.
18833 * testsuite/libgomp.dg/atomic-10.c: Move from gcc testsuite.
18835 2005-10-02 Richard Henderson <rth@redhat.com>
18837 * configure.ac: Move save_CFLAGS hack earlier. Append -Wall/-Werror
18838 to XCFLAGS instead of CFLAGS.
18840 2005-09-30 Richard Henderson <rth@redhat.com>
18842 * configure.ac: Determine whether -pthread or -lpthread is needed.
18843 * Makefile.am (libgomp_la_LDFLAGS): Remove explicit -lpthread.
18844 * Makefile.in, configure: Rebuild.
18846 2005-09-28 Richard Henderson <rth@redhat.com>
18848 * testsuite/libgomp.dg/omp-loop03.c: Fix return code.
18849 * testsuite/libgomp.dg/omp-single-3.c: New test.
18851 2005-09-28 Diego Novillo <dnovillo@redhat.com>
18853 * testsuite/libgomp.dg/omp-single-2.c: New test.
18854 * testsuite/libgomp.dg/shared-2.c: Fix return code.
18856 2005-09-27 Richard Henderson <rth@redhat.com>
18858 * testsuite/libgomp.dg/omp-loop03.c: Add initial barrier.
18859 * testsuite/libgomp.dg/omp-parallel-for.c: Specify static schedule.
18861 2005-09-27 Jakub Jelinek <jakub@redhat.com>
18863 * testsuite/libgomp.dg/omp-loop03.c: New test.
18865 2005-09-27 Diego Novillo <dnovillo@redhat.com>
18867 * testsuite/libgomp.dg/omp-parallel-for.c: New test.
18869 2005-09-27 Diego Novillo <dnovillo@redhat.com>
18871 * testsuite/libgomp.dg/omp-single-1.c: New test.
18872 * testsuite/libgomp.dg/shared-1.c: Return 0.
18873 Add prototype for abort.
18874 * testsuite/libgomp.dg/shared-2.c: Likewise.
18876 2005-09-26 Jakub Jelinek <jakub@redhat.com>
18878 * testsuite/libgomp.fortran/omp_parse3.f90: Fix non-conforming
18881 2005-09-26 Diego Novillo <dnovillo@redhat.com>
18883 * testsuite/libgomp.dg/shared-1.c: New test.
18884 * testsuite/libgomp.dg/shared-2.c: New test.
18886 2005-09-24 Richard Henderson <rth@redhat.com>
18888 * testsuite/libgomp.dg/omp_workshare3.c: Mark dg-error.
18890 2005-09-24 Richard Henderson <rth@redhat.com>
18892 * iter.c (gomp_iter_static_next): Round up when computing number
18893 of iterations. Don't bother distributing a remainder equally.
18895 * testsuite/libgomp.dg/omp-loop01.c (main1): Rename from main.
18896 Don't call srand. Zero b before testing.
18899 2005-09-24 Jakub Jelinek <jakub@redhat.com>
18901 * testsuite/libgomp.fortran/omp_atomic1.f90: New test.
18902 * testsuite/libgomp.fortran/omp_atomic2.f90: New test.
18904 2005-09-23 Jakub Jelinek <jakub@redhat.com>
18906 * testsuite/libgomp.fortran/omp_parse1.f90: Add a test for !$omp do
18907 without !$omp end do, followed immediately by subroutine end.
18909 2005-09-23 Diego Novillo <dnovillo@redhat.com>
18911 * testsuite/libgomp.dg/omp-parallel-if.c: New test.
18913 2005-09-22 Richard Henderson <rth@redhat.com>
18915 * critical.c (GOMP_critical_name_start): Change argument to void**.
18916 Reuse the pointer space if the mutex fits.
18917 (GOMP_critical_name_end): Likewise.
18918 (initialize_critical): Don't define if GOMP_MUTEX_INIT_0.
18919 * libgomp_g.h (GOMP_critical_name_start): Update decl.
18920 (GOMP_critical_name_end): Likewise.
18921 * config/linux/mutex.h (GOMP_MUTEX_INIT_0): New.
18922 * config/posix/mutex.h (GOMP_MUTEX_INIT_0): New.
18924 2005-09-20 Richard Henderson <rth@redhat.com>
18926 * critical.c (GOMP_critical_name_start, GOMP_critical_name_end): New.
18927 (create_lock_lock): New.
18928 (initialize_critical): Initialize it.
18929 * libgomp.map (GOMP_critical_name_start, GOMP_critical_name_end): New.
18930 * libgomp_g.h (GOMP_ordered_start, GOMP_ordered_end): Declare.
18932 2005-09-20 Diego Novillo <dnovillo@redhat.com>
18934 * testsuite/libgom.dg/omp-loop01.c: Include stdio.h.
18936 2005-09-20 Diego Novillo <dnovillo@redhat.com>
18938 * testsuite/libgomp.dg/omp-loop01.c: New test.
18939 * testsuite/libgomp.dg/omp-loop02.c: New test.
18941 2005-09-20 Jakub Jelinek <jakub@redhat.com>
18943 * configure.ac (AC_PROG_FC): Add.
18944 (USE_FORTRAN): New automake conditional.
18945 * configure: Rebuilt.
18946 * Makefile.am (libgomp_la_SOURCES): Add fortran.c.
18947 (nodist_include_HEADERS): Add omp_lib.h, omp_lib.f90 and libgomp_f.h.
18948 If USE_FORTRAN, add also omp_lib.mod and omp_lib_kinds.mod.
18949 Add rules to build them.
18950 * Makefile.in: Rebuilt.
18951 * mkomp_h.pl: Compute and replace also OMP_LOCK_KIND and
18952 OMP_NEST_LOCK_KIND.
18953 * libgomp.map: Add Fortran wrappers.
18954 * libgomp_f.h.in: New file.
18955 * omp_lib.h.in: New file.
18956 * omp_lib.f90.in: New file.
18957 * fortran.c: New file.
18958 * testsuite/lib/libgomp-dg.exp: Load a few more .exp files.
18959 Append libgfortran directory to LD_LIBRARY_PATH if it exists.
18960 Add -Lpath_to_libgfortran and -lgfortran -lgfortranbegin if
18961 libgfortran has been built.
18962 * testsuite/libgomp.fortran/fortran.exp: New file.
18963 * testsuite/libgomp.fortran/omp_cond1.f: New test.
18964 * testsuite/libgomp.fortran/omp_cond2.f: New test.
18965 * testsuite/libgomp.fortran/omp_cond3.F90: New test.
18966 * testsuite/libgomp.fortran/omp_cond4.F90: New test.
18967 * testsuite/libgomp.fortran/omp_hello.f: New test.
18968 * testsuite/libgomp.fortran/omp_orphan.f: New test.
18969 * testsuite/libgomp.fortran/omp_parse1.f90: New test.
18970 * testsuite/libgomp.fortran/omp_parse2.f90: New test.
18971 * testsuite/libgomp.fortran/omp_parse3.f90: New test.
18972 * testsuite/libgomp.fortran/omp_parse4.f90: New test.
18973 * testsuite/libgomp.fortran/omp_reduction.f: New test.
18974 * testsuite/libgomp.fortran/omp_workshare1.f: New test.
18975 * testsuite/libgomp.fortran/omp_workshare2.f: New test.
18977 2005-08-30 Richard Henderson <rth@redhat.com>
18979 * loop.c (GOMP_loop_static_start): Provide fallback wrapper
18980 function for when aliases are not usable.
18981 (GOMP_loop_dynamic_start, GOMP_loop_guided_start,
18982 GOMP_loop_ordered_static_start, GOMP_loop_ordered_dynamic_start,
18983 GOMP_loop_ordered_guided_start, GOMP_loop_static_next,
18984 GOMP_loop_dynamic_next, GOMP_loop_guided_next,
18985 GOMP_loop_ordered_static_next, GOMP_loop_ordered_dynamic_next,
18986 GOMP_loop_ordered_guided_next): Likewise.
18987 * ordered.c (GOMP_ordered_start): Likewise.
18989 2005-08-01 Diego Novillo <dnovillo@redhat.com>
18991 * testsuite/libgomp.dg/dg.exp: Use -O2 for now.
18992 * testsuite/libgomp.dg/omp_hello.c: Fix return code
18993 * testsuite/libgomp.dg/omp_matvec.c: Likewise.
18994 * testsuite/libgomp.dg/omp_orphan.c: Likewise
18995 * testsuite/libgomp.dg/omp_reduction.c: Likewise
18996 * testsuite/libgomp.dg/omp_workshare1.c: Likewise
18997 * testsuite/libgomp.dg/omp_workshare2.c: Likewise
18998 * testsuite/libgomp.dg/omp_workshare3.c: Likewise
18999 * testsuite/libgomp.dg/omp_workshare4.c: Likewise
19001 2005-07-07 Eric Christopher <echristo@redhat.com>
19002 Diego Novillo <dnovillo@redhat.com>
19004 * testsuite/libgomp.dg/dg.exp: Add -fopenmp to DEFAULT_CFLAGS.
19005 * testsuite/libgomp.dg/omp_hello.c: Add standard includes, fix
19007 * testsuite/libgomp.dg/omp_matvec.c: Ditto.
19008 * testsuite/libgomp.dg/omp_orphan.c: Ditto.
19009 * testsuite/libgomp.dg/omp_reduction.c: Ditto.
19010 * testsuite/libgomp.dg/omp_workshare1.c: Ditto.
19011 * testsuite/libgomp.dg/omp_workshare2.c: Ditto.
19012 * testsuite/libgomp.dg/omp_workshare3.c: Ditto.
19013 * testsuite/libgomp.dg/omp_workshare4.c: Ditto.
19015 2005-06-13 Diego Novillo <dnovillo@redhat.com>
19017 * TOPLEVEL.patch: Remove.
19019 2005-05-16 Richard Henderson <rth@redhat.com>
19021 * configure.ac: Test for clock_gettime.
19022 * config.h.in, configure: Rebuild.
19023 * config/posix/time.c: Use recommended TIME_WITH_SYS_TIME pattern.
19024 (omp_get_wtime): Use clock_gettime if available.
19025 (omp_get_wtick): Use clock_getres if available.
19027 2005-05-11 Richard Henderson <rth@redhat.com>
19029 * config/linux/ia64/futex.h: New file.
19030 * configure.tgt: Use it.
19032 * team.c (gomp_barrier_init, gomp_barrier_destroy): Mark inline.
19034 2005-05-07 Richard Henderson <rth@redhat.com>
19036 * config/linux/powerpc/futex.h: New file.
19037 * configure.tgt: Use it.
19039 * config/linux/i486/futex.h: Merge ...
19040 * config/linux/x86_64/futex.h: ... into ...
19041 * config/linux/x86/futex.h: ... here.
19042 * configure.tgt: Update to match.
19044 2005-05-06 Richard Henderson <rth@redhat.com>
19046 * config/linux/alpha/futex.h: Conditionally define SYS_futex.
19047 * config/linux/i486/futex.h: Likewise.
19048 * config/linux/x86_64/futex.h: Likewise.
19050 * config/linux/lock.c: New file.
19051 * config/linux/omp-lock.h: New file.
19053 * critical.c, env.h: Don't include omp.h
19054 * config/posix/lock.c: Include libgomp.h instead of omp.h.
19055 * config/posix/time.c: Likewise.
19056 * config/posix/omp-lock.h: New file.
19057 * libgomp.h: Include omp-lock.h and omp.h.
19058 * Makefile.am (nodist_include_HEADERS): New.
19060 * configure.ac (PERL): New.
19061 * mkomp_h.pl: New file.
19062 * omp.h.in: Rename from omp.h; replace omp_lock_t and omp_nest_lock_t
19064 * Makefile.in, configure, testsuite/Makefile.in: Rebuild.
19066 * testsuite/lib/libgomp-dg.exp (libgomp_init): Add include into
19067 build directory. Re-add -march=i486 hack.
19069 * testsuite/lib/libgomp-dg.exp (libgomp_compile_flags): Remove.
19070 (libgomp_link_flags): Remove.
19071 (libgomp_initialized): Remove.
19072 (libgomp_init): Don't protect from reinitialization. Copy code
19073 from libstdc++ for getting the multilib set correctly.
19075 2005-05-05 Richard Henderson <rth@redhat.com>
19077 * config/linux/alpha/futex.h: New file.
19078 * configure.tgt (alpha*-*-linux*): Use it.
19080 * config/posix/mutex.c: New file.
19081 * config/posix/sem.c: Use libgomp.h.
19083 * configure.tgt (x86_64-linux): Also test CC for -m32.
19084 * config/linux/x86_64/futex.h (futex_wait): Fix r10 usage.
19086 * testsuite/lib/libgomp-dg.exp (libgomp_link_flags): Add /
19089 * Makefile.am (SUBDIRS): New.
19090 (libgomp_la_LDFLAGS): Add -lpthread.
19091 * configure.ac (AM_INIT_AUTOMAKE): Enable dependencies.
19092 * Makefile.in, aclocal.m4, config.h.in, configure: Rebuild.
19094 * libgomp_g.h: New file.
19095 * libgomp.h: Split out all public declarations to libgomp_g.h.
19096 Use pragma GCC visibility instead of ATTRIBUTE_HIDDEN.
19097 * config/linux/mutex.h: Remove ATTRIBUTE_HIDDEN.
19098 * config/linux/sem.h: Likewise.
19099 * config/posix/sem.h: Likewise.
19101 * Makefile.am (AM_LDFLAGS): New.
19102 (libgomp_version_script): Split out from ...
19103 (libgomp_la_LDFLAGS): ... here.
19104 (libgomp_version_info): New.
19105 * acinclude.m4 (LIBGOMP_CHECK_TLS): Use LIBGOMP_ENABLE.
19106 (LIBGOMP_ENABLE): New.
19107 (LIBGOMP_CHECK_LINKER_FEATURES): New.
19108 (LIBGOMP_ENABLE_SYMVERS): New.
19109 * configure.ac (AC_INIT): Version 1.0.
19110 (enable-version-specific-runtime-libs): Use LIBGOMP_ENABLE.
19111 (enable-linux-futex): Likewise. Rename from enable-futex.
19112 (libtool_VERSION): New.
19113 (LIBGOMP_ENABLE_SYMVERS): Use it.
19114 * configure.tgt: Check with_gnu_ld wrt have_tls optimizations.
19115 * Makefile.in, aclocal.m4, configure: Rebuild.
19117 * config/linux/mutex.c: Include libgomp.h instead of mutex.h.
19118 (gomp_mutex_unlock_slow): Fix typo.
19119 * config/linux/sem.c: Similarly.
19120 (gomp_sem_post_slow): Fix typo.
19121 * config/linux/sem.h (gomp_sem_post_slow): Fix typo.
19122 * config/linux/i486/futex.h: Remove USE_LINUX_SYSENTER code.
19123 [__PIC__] (sys_futex0): Don't use tmp output in asm.
19125 * Makefile.am (AM_CFLAGS): Expand with XCFLAGS.
19126 (libgomp_la_LDFLAGS): Add top_srcdir to path.
19127 * acinclude.m4: Copy libtool.m4 stuff from libgfortran.
19128 * configure.ac: Check for getloadavg. Substitute XCFLAGS and
19129 XLDFLAGS. Add XCFLAGS to CFLAGS around LIBGOMP_CHECK_SYNC_BUILTINS.
19130 * configure.tgt: Set XCFLAGS and XLDFLAGS instead of CFLAGS and
19131 LDFLAGS. Pull enable_futex check to top-level.
19132 * libgomp.h: Fix sem.h and mutex.h includes. Define ATTRIBUTE_HIDDEN.
19133 * Makefile.in, aclocal.m4, config.h.in, configure: Regenerate.
19135 First attempt at real configury.
19136 * Makefile, config.h: Remove file.
19137 * Makefile.am, Makefile.in: New file.
19138 * acinclude.m4 aclocal.m4: New file.
19139 * configure.ac, configure.tgt, configure: New file.
19141 * config/posix/lock.c: Rename from sys-lock.c.
19142 * config/posix/mutex.h: Rename from sys-mutex.h.
19143 * config/posix/sem.c: Rename from sys-sem.c.
19144 * config/posix/sem.h: Rename from sys-sem.h.
19145 * config/posix/proc.c: Rename from sys-proc.c.
19146 * config/posix/time.c: Rename from sys-proc.c.
19148 * config/linux/mutex.c: New file.
19149 * config/linux/mutex.h: New file.
19150 * config/linux/sem.c: New file.
19151 * config/linux/sem.h: New file.
19152 * config/linux/i486/futex.h: New file.
19153 * config/linux/x86_64/futex.h: New file.
19155 2005-05-04 Richard Henderson <rth@redhat.com>
19157 * iter.c (gomp_iter_dynamic_next, gomp_iter_guided_next): New.
19158 * libgomp.h: Declare them.
19159 * loop.c (gomp_loop_dynamic_start, gomp_loop_guided_start,
19160 gomp_loop_dynamic_next, gomp_loop_guided_next): Use them.
19162 2005-05-04 Richard Henderson <rth@redhat.com>
19164 * libgomp-1 code drop
19166 2005-05-04 Richard Henderson <rth@redhat.com>
19168 * iter.c (gomp_iter_static_next): Return tri-state on 0.
19169 * ordered.c (gomp_ordered_static_next): Remove not_last argument.
19170 * libgomp.h (struct gomp_team_state): Make static_trip unsigned.
19171 (gomp_iter_static_next): Update.
19172 (gomp_ordered_static_next): Update.
19173 * loop.c (gomp_loop_static_start): Update for gomp_iter_static_next.
19174 (gomp_loop_ordered_static_start): Likewise. Exit early for a
19175 totally empty range.
19176 (gomp_loop_ordered_static_next): Refine test for calling
19177 gomp_ordered_static_next.
19178 * testsuite/ordered-1.c: Add case for more threads than iterations.
19180 * iter.c (gomp_iter_runtime_next_locked): Remove.
19181 * loop.c (gomp_loop_static_start, gomp_loop_dynamic_start,
19182 gomp_loop_guided_start, gomp_loop_ordered_static_start,
19183 gomp_loop_ordered_dynamic_start, gomp_loop_ordered_guided_start,
19184 gomp_loop_static_next, gomp_loop_dynamic_next, gomp_loop_guided_next,
19185 gomp_loop_ordered_static_next, gomp_loop_ordered_dynamic_next,
19186 gomp_loop_ordered_guided_next): Downcase name, make static, add
19187 an external alias with the old name.
19188 (GOMP_loop_runtime_start, GOMP_loop_ordered_runtime_start,
19189 GOMP_loop_runtime_next, GOMP_loop_ordered_runtime_next): Use a
19190 switch and call one of the above static functions.
19191 * libgomp.h: Update.
19193 * work.c (gomp_work_share_start): Lock the mutex for !first too.
19194 * loop.c (GOMP_loop_static_start, GOMP_loop_dynamic_start,
19195 GOMP_loop_guided_start, GOMP_loop_runtime_start,
19196 GOMP_loop_ordered_static_start, GOMP_loop_ordered_dynamic_start,
19197 GOMP_loop_ordered_guided_start): Update to match.
19198 * sections.c (GOMP_sections_start): Likewise.
19199 * single.c (GOMP_single_start, GOMP_single_copy_start): Likewise.
19201 * ordered.c (gomp_ordered_first, gomp_ordered_last, gomp_ordered_next,
19202 gomp_ordered_static_init, gomp_ordered_static_next): Rename s/_loop//.
19203 Use bounds check instead of modulus.
19204 (gomp_ordered_sync): Split out of GOMP_ordered_start.
19205 (gomp_ordered_last): Don't sync with ordered_owner here.
19206 (gomp_ordered_next): Likewise.
19207 (gomp_ordered_static_loop_next): Likewise.
19208 * loop.c, libgomp.h: Update to match.
19210 * libgomp.h (GOMP_barrier): Declare.
19212 * testsuite/barrier-1.c: New file.
19213 * testsuite/critical-1.c: New file.
19214 * testsuite/ordered-2.c: New file.
19215 * testsuite/ordered-1.c: New file.
19216 * testsuite/sections-1.c: New file.
19217 * testsuite/single-1.c: New file.
19218 * testsuite/Makefile (TESTS): Add them.
19220 2005-05-04 Richard Henderson <rth@redhat.com>
19222 * libgomp.h (struct gomp_work_share): Add ordered_owner.
19223 * loop.c (GOMP_loop_static_start): If not the startup thread,
19224 acquire the mutex to wait for initialization complete.
19225 (GOMP_loop_ordered_static_start): Likewise.
19226 (GOMP_loop_ordered_runtime_start): Likewise.
19227 (GOMP_loop_ordered_static_first): Remove.
19228 (GOMP_loop_ordered_dynamic_first): Remove.
19229 (GOMP_loop_ordered_guided_first): Remove.
19230 (GOMP_loop_ordered_runtime_first): Remove.
19231 * ordered.c (gomp_ordered_loop_first): Post to own release when
19232 we're the first thread.
19233 (gomp_ordered_loop_last): Wait on release if not owner.
19234 (gomp_ordered_loop_next): Likewise.
19235 (gomp_ordered_static_loop_init): New.
19236 (gomp_ordered_static_loop_next): Use ordered_owner.
19237 (GOMP_ordered_start): Likewise.
19238 * work.c (gomp_new_work_share): Initialize ordered_owner.
19240 2005-05-03 Richard Henderson <rth@redhat.com>
19242 * Makefile (OPT): New.
19245 * loop.c (GOMP_loop_end, GOMP_loop_end_nowait): New.
19246 * sections.c (GOMP_sections_end, GOMP_sections_end_nowait): New.
19247 * libgomp.h, libgomp.map, NOTES: Update to match.
19249 * team.c (struct gomp_thread_start_data): Remove ts, fn, data.
19250 Add initialized and thr members.
19251 (gomp_thread_start): Pause when initially spawned to wait for
19252 the whole team to be created.
19253 (gomp_team_start): Release team members at the end.
19255 * testsuite/loop-1.c (N): New. Use it instead of hardcoded 100.
19256 (f_foo_1): Use GOMP_loop_end.
19257 (f_foo_2): Use GOMP_loop_end_nowait.
19259 * testsuite/loop-2.c: New file.
19260 * testsuite/Makefile (TESTS): Add it.
19262 2005-05-03 Richard Henderson <rth@redhat.com>
19264 * iter.c (gomp_iter_static_next): Fix overflow check typo.
19265 (gomp_iter_dynamic_next_locked): Fix overflow check thinko.
19266 * team.c (new_team): Initialize oldest_live_gen to 1 if no
19267 initial work_share.
19269 * testsuite/Makefile: New file.
19270 * testsuite/loop-1.c: New file.
19272 2005-05-03 Richard Henderson <rth@redhat.com>
19274 Initial implementation and checkin.
19276 Copyright (C) 2005-2022 Free Software Foundation, Inc.
19278 Copying and distribution of this file, with or without modification,
19279 are permitted in any medium without royalty provided the copyright
19280 notice and this notice are preserved.