1 2022-11-09 Martin Liska <mliska@suse.cz>
3 * Makefile.in: Add missing HAS_SPHINX_BUILD.
5 2022-11-09 Martin Liska <mliska@suse.cz>
7 * doc/amd-radeon-gcn.rst:
11 * doc/cuda-streams-usage.rst:
13 * doc/enabling-openacc.rst:
15 * doc/enabling-openmp.rst:
17 * doc/first-invocation-nvidia-cublas-library-api.rst:
19 * doc/first-invocation-openacc-library-api.rst:
23 * doc/general-public-license-3.rst:
25 * doc/gnu-free-documentation-license.rst:
27 * doc/implementation-status-and-implementation-defined-behavior.rst:
31 * doc/indices-and-tables.rst:
33 * doc/introduction.rst:
35 * doc/memory-allocation-with-libmemkind.rst:
39 * doc/offload-target-specifics.rst:
41 * doc/openacc-environment-variables.rst:
43 * doc/openacc-environment-variables/accdevicenum.rst:
45 * doc/openacc-environment-variables/accdevicetype.rst:
47 * doc/openacc-environment-variables/accproflib.rst:
49 * doc/openacc-environment-variables/gccaccnotify.rst:
51 * doc/openacc-introduction.rst:
53 * doc/openacc-library-and-environment-variables.rst:
55 * doc/openacc-library-interoperability.rst:
57 * doc/openacc-profiling-interface.rst:
59 * doc/openacc-runtime-library-routines.rst:
61 * doc/openacc-runtime-library-routines/accasynctest.rst:
63 * doc/openacc-runtime-library-routines/accasynctestall.rst:
65 * doc/openacc-runtime-library-routines/accattach.rst:
67 * doc/openacc-runtime-library-routines/acccopyin.rst:
69 * doc/openacc-runtime-library-routines/acccopyout.rst:
71 * doc/openacc-runtime-library-routines/acccreate.rst:
73 * doc/openacc-runtime-library-routines/accdelete.rst:
75 * doc/openacc-runtime-library-routines/accdetach.rst:
77 * doc/openacc-runtime-library-routines/accdeviceptr.rst:
79 * doc/openacc-runtime-library-routines/accfree.rst:
81 * doc/openacc-runtime-library-routines/accgetcudastream.rst:
83 * doc/openacc-runtime-library-routines/accgetcurrentcudacontext.rst:
85 * doc/openacc-runtime-library-routines/accgetcurrentcudadevice.rst:
87 * doc/openacc-runtime-library-routines/accgetdevicenum.rst:
89 * doc/openacc-runtime-library-routines/accgetdevicetype.rst:
91 * doc/openacc-runtime-library-routines/accgetnumdevices.rst:
93 * doc/openacc-runtime-library-routines/accgetproperty.rst:
95 * doc/openacc-runtime-library-routines/acchostptr.rst:
97 * doc/openacc-runtime-library-routines/accinit.rst:
99 * doc/openacc-runtime-library-routines/accispresent.rst:
100 Add trailing newline.
101 * doc/openacc-runtime-library-routines/accmalloc.rst:
102 Add trailing newline.
103 * doc/openacc-runtime-library-routines/accmapdata.rst:
104 Add trailing newline.
105 * doc/openacc-runtime-library-routines/accmemcpyfromdevice.rst:
106 Add trailing newline.
107 * doc/openacc-runtime-library-routines/accmemcpytodevice.rst:
108 Add trailing newline.
109 * doc/openacc-runtime-library-routines/accondevice.rst:
110 Add trailing newline.
111 * doc/openacc-runtime-library-routines/accpresentorcopyin.rst:
112 Add trailing newline.
113 * doc/openacc-runtime-library-routines/accpresentorcreate.rst:
114 Add trailing newline.
115 * doc/openacc-runtime-library-routines/accproflookup.rst:
116 Add trailing newline.
117 * doc/openacc-runtime-library-routines/accprofregister.rst:
118 Add trailing newline.
119 * doc/openacc-runtime-library-routines/accprofunregister.rst:
120 Add trailing newline.
121 * doc/openacc-runtime-library-routines/accregisterlibrary.rst:
122 Add trailing newline.
123 * doc/openacc-runtime-library-routines/accsetcudastream.rst:
124 Add trailing newline.
125 * doc/openacc-runtime-library-routines/accsetdevicenum.rst:
126 Add trailing newline.
127 * doc/openacc-runtime-library-routines/accsetdevicetype.rst:
128 Add trailing newline.
129 * doc/openacc-runtime-library-routines/accshutdown.rst:
130 Add trailing newline.
131 * doc/openacc-runtime-library-routines/accunmapdata.rst:
132 Add trailing newline.
133 * doc/openacc-runtime-library-routines/accupdatedevice.rst:
134 Add trailing newline.
135 * doc/openacc-runtime-library-routines/accupdateself.rst:
136 Add trailing newline.
137 * doc/openacc-runtime-library-routines/accwait.rst:
138 Add trailing newline.
139 * doc/openacc-runtime-library-routines/accwaitall.rst:
140 Add trailing newline.
141 * doc/openacc-runtime-library-routines/accwaitallasync.rst:
142 Add trailing newline.
143 * doc/openacc-runtime-library-routines/accwaitasync.rst:
144 Add trailing newline.
145 * doc/openmp-context-selectors.rst:
146 Add trailing newline.
147 * doc/openmp-environment-variables.rst:
148 Add trailing newline.
149 * doc/openmp-environment-variables/gompcpuaffinity.rst:
150 Add trailing newline.
151 * doc/openmp-environment-variables/gompdebug.rst:
152 Add trailing newline.
153 * doc/openmp-environment-variables/gomprtemsthreadpools.rst:
154 Add trailing newline.
155 * doc/openmp-environment-variables/gompspincount.rst:
156 Add trailing newline.
157 * doc/openmp-environment-variables/gompstacksize.rst:
158 Add trailing newline.
159 * doc/openmp-environment-variables/ompcancellation.rst:
160 Add trailing newline.
161 * doc/openmp-environment-variables/ompdefaultdevice.rst:
162 Add trailing newline.
163 * doc/openmp-environment-variables/ompdisplayenv.rst:
164 Add trailing newline.
165 * doc/openmp-environment-variables/ompdynamic.rst:
166 Add trailing newline.
167 * doc/openmp-environment-variables/ompmaxactivelevels.rst:
168 Add trailing newline.
169 * doc/openmp-environment-variables/ompmaxtaskpriority.rst:
170 Add trailing newline.
171 * doc/openmp-environment-variables/ompnested.rst:
172 Add trailing newline.
173 * doc/openmp-environment-variables/ompnumteams.rst:
174 Add trailing newline.
175 * doc/openmp-environment-variables/ompnumthreads.rst:
176 Add trailing newline.
177 * doc/openmp-environment-variables/ompplaces.rst:
178 Add trailing newline.
179 * doc/openmp-environment-variables/ompprocbind.rst:
180 Add trailing newline.
181 * doc/openmp-environment-variables/ompschedule.rst:
182 Add trailing newline.
183 * doc/openmp-environment-variables/ompstacksize.rst:
184 Add trailing newline.
185 * doc/openmp-environment-variables/omptargetoffload.rst:
186 Add trailing newline.
187 * doc/openmp-environment-variables/ompteamsthreadlimit.rst:
188 Add trailing newline.
189 * doc/openmp-environment-variables/ompthreadlimit.rst:
190 Add trailing newline.
191 * doc/openmp-environment-variables/ompwaitpolicy.rst:
192 Add trailing newline.
193 * doc/openmp-implementation-specifics.rst:
194 Add trailing newline.
195 * doc/openmp-implementation-status.rst:
196 Add trailing newline.
197 * doc/openmp-implementation-status/openmp-45.rst:
198 Add trailing newline.
199 * doc/openmp-implementation-status/openmp-50.rst:
200 Add trailing newline.
201 * doc/openmp-implementation-status/openmp-51.rst:
202 Add trailing newline.
203 * doc/openmp-implementation-status/openmp-52.rst:
204 Add trailing newline.
205 * doc/openmp-runtime-library-routines.rst:
206 Add trailing newline.
207 * doc/openmp-runtime-library-routines/ompdestroylock.rst:
208 Add trailing newline.
209 * doc/openmp-runtime-library-routines/ompdestroynestlock.rst:
210 Add trailing newline.
211 * doc/openmp-runtime-library-routines/ompfulfillevent.rst:
212 Add trailing newline.
213 * doc/openmp-runtime-library-routines/ompgetactivelevel.rst:
214 Add trailing newline.
215 * doc/openmp-runtime-library-routines/ompgetancestorthreadnum.rst:
216 Add trailing newline.
217 * doc/openmp-runtime-library-routines/ompgetcancellation.rst:
218 Add trailing newline.
219 * doc/openmp-runtime-library-routines/ompgetdefaultdevice.rst:
220 Add trailing newline.
221 * doc/openmp-runtime-library-routines/ompgetdevicenum.rst:
222 Add trailing newline.
223 * doc/openmp-runtime-library-routines/ompgetdynamic.rst:
224 Add trailing newline.
225 * doc/openmp-runtime-library-routines/ompgetinitialdevice.rst:
226 Add trailing newline.
227 * doc/openmp-runtime-library-routines/ompgetlevel.rst:
228 Add trailing newline.
229 * doc/openmp-runtime-library-routines/ompgetmaxactivelevels.rst:
230 Add trailing newline.
231 * doc/openmp-runtime-library-routines/ompgetmaxtaskpriority.rst:
232 Add trailing newline.
233 * doc/openmp-runtime-library-routines/ompgetmaxteams.rst:
234 Add trailing newline.
235 * doc/openmp-runtime-library-routines/ompgetmaxthreads.rst:
236 Add trailing newline.
237 * doc/openmp-runtime-library-routines/ompgetnested.rst:
238 Add trailing newline.
239 * doc/openmp-runtime-library-routines/ompgetnumdevices.rst:
240 Add trailing newline.
241 * doc/openmp-runtime-library-routines/ompgetnumprocs.rst:
242 Add trailing newline.
243 * doc/openmp-runtime-library-routines/ompgetnumteams.rst:
244 Add trailing newline.
245 * doc/openmp-runtime-library-routines/ompgetnumthreads.rst:
246 Add trailing newline.
247 * doc/openmp-runtime-library-routines/ompgetprocbind.rst:
248 Add trailing newline.
249 * doc/openmp-runtime-library-routines/ompgetschedule.rst:
250 Add trailing newline.
251 * doc/openmp-runtime-library-routines/ompgetsupportedactivelevels.rst:
252 Add trailing newline.
253 * doc/openmp-runtime-library-routines/ompgetteamnum.rst:
254 Add trailing newline.
255 * doc/openmp-runtime-library-routines/ompgetteamsize.rst:
256 Add trailing newline.
257 * doc/openmp-runtime-library-routines/ompgetteamsthreadlimit.rst:
258 Add trailing newline.
259 * doc/openmp-runtime-library-routines/ompgetthreadlimit.rst:
260 Add trailing newline.
261 * doc/openmp-runtime-library-routines/ompgetthreadnum.rst:
262 Add trailing newline.
263 * doc/openmp-runtime-library-routines/ompgetwtick.rst:
264 Add trailing newline.
265 * doc/openmp-runtime-library-routines/ompgetwtime.rst:
266 Add trailing newline.
267 * doc/openmp-runtime-library-routines/ompinfinal.rst:
268 Add trailing newline.
269 * doc/openmp-runtime-library-routines/ompinitlock.rst:
270 Add trailing newline.
271 * doc/openmp-runtime-library-routines/ompinitnestlock.rst:
272 Add trailing newline.
273 * doc/openmp-runtime-library-routines/ompinparallel.rst:
274 Add trailing newline.
275 * doc/openmp-runtime-library-routines/ompisinitialdevice.rst:
276 Add trailing newline.
277 * doc/openmp-runtime-library-routines/ompsetdefaultdevice.rst:
278 Add trailing newline.
279 * doc/openmp-runtime-library-routines/ompsetdynamic.rst:
280 Add trailing newline.
281 * doc/openmp-runtime-library-routines/ompsetlock.rst:
282 Add trailing newline.
283 * doc/openmp-runtime-library-routines/ompsetmaxactivelevels.rst:
284 Add trailing newline.
285 * doc/openmp-runtime-library-routines/ompsetnested.rst:
286 Add trailing newline.
287 * doc/openmp-runtime-library-routines/ompsetnestlock.rst:
288 Add trailing newline.
289 * doc/openmp-runtime-library-routines/ompsetnumteams.rst:
290 Add trailing newline.
291 * doc/openmp-runtime-library-routines/ompsetnumthreads.rst:
292 Add trailing newline.
293 * doc/openmp-runtime-library-routines/ompsetschedule.rst:
294 Add trailing newline.
295 * doc/openmp-runtime-library-routines/ompsetteamsthreadlimit.rst:
296 Add trailing newline.
297 * doc/openmp-runtime-library-routines/omptestlock.rst:
298 Add trailing newline.
299 * doc/openmp-runtime-library-routines/omptestnestlock.rst:
300 Add trailing newline.
301 * doc/openmp-runtime-library-routines/ompunsetlock.rst:
302 Add trailing newline.
303 * doc/openmp-runtime-library-routines/ompunsetnestlock.rst:
304 Add trailing newline.
305 * doc/reporting-bugs.rst:
306 Add trailing newline.
307 * doc/the-libgomp-abi.rst:
308 Add trailing newline.
309 * doc/the-libgomp-abi/implementing-atomic-construct.rst:
310 Add trailing newline.
311 * doc/the-libgomp-abi/implementing-barrier-construct.rst:
312 Add trailing newline.
313 * doc/the-libgomp-abi/implementing-critical-construct.rst:
314 Add trailing newline.
315 * doc/the-libgomp-abi/implementing-firstprivate-lastprivate-copyin-and-copyprivate-clauses.rst:
316 Add trailing newline.
317 * doc/the-libgomp-abi/implementing-flush-construct.rst:
318 Add trailing newline.
319 * doc/the-libgomp-abi/implementing-for-construct.rst:
320 Add trailing newline.
321 * doc/the-libgomp-abi/implementing-master-construct.rst:
322 Add trailing newline.
323 * doc/the-libgomp-abi/implementing-openaccs-parallel-construct.rst:
324 Add trailing newline.
325 * doc/the-libgomp-abi/implementing-ordered-construct.rst:
326 Add trailing newline.
327 * doc/the-libgomp-abi/implementing-parallel-construct.rst:
328 Add trailing newline.
329 * doc/the-libgomp-abi/implementing-private-clause.rst:
330 Add trailing newline.
331 * doc/the-libgomp-abi/implementing-reduction-clause.rst:
332 Add trailing newline.
333 * doc/the-libgomp-abi/implementing-sections-construct.rst:
334 Add trailing newline.
335 * doc/the-libgomp-abi/implementing-single-construct.rst:
336 Add trailing newline.
337 * doc/the-libgomp-abi/implementing-threadprivate-construct.rst:
338 Add trailing newline.
340 2022-11-09 Martin Liska <mliska@suse.cz>
342 * Makefile.in: Build info pages conditionally.
344 2022-11-09 Martin Liska <mliska@suse.cz>
346 * Makefile.in: Support --with-sphinx-build.
347 * configure.ac: Likewise..
348 * configure: Regenerate.
350 2022-11-09 Martin Liska <mliska@suse.cz>
352 * libgomp.texi: Removed.
354 2022-11-09 Martin Liska <mliska@suse.cz>
356 * Makefile.in: Support Sphinx based documentation.
358 2022-11-09 Martin Liska <mliska@suse.cz>
360 * doc/amd-radeon-gcn.rst: New file.
361 * doc/conf.py: New file.
362 * doc/copyright.rst: New file.
363 * doc/cuda-streams-usage.rst: New file.
364 * doc/enabling-openacc.rst: New file.
365 * doc/enabling-openmp.rst: New file.
366 * doc/first-invocation-nvidia-cublas-library-api.rst: New file.
367 * doc/first-invocation-openacc-library-api.rst: New file.
368 * doc/funding.rst: New file.
369 * doc/general-public-license-3.rst: New file.
370 * doc/gnu-free-documentation-license.rst: New file.
371 * doc/implementation-status-and-implementation-defined-behavior.rst: New file.
372 * doc/index.rst: New file.
373 * doc/indices-and-tables.rst: New file.
374 * doc/introduction.rst: New file.
375 * doc/memory-allocation-with-libmemkind.rst: New file.
376 * doc/nvptx.rst: New file.
377 * doc/offload-target-specifics.rst: New file.
378 * doc/openacc-environment-variables.rst: New file.
379 * doc/openacc-environment-variables/accdevicenum.rst: New file.
380 * doc/openacc-environment-variables/accdevicetype.rst: New file.
381 * doc/openacc-environment-variables/accproflib.rst: New file.
382 * doc/openacc-environment-variables/gccaccnotify.rst: New file.
383 * doc/openacc-introduction.rst: New file.
384 * doc/openacc-library-and-environment-variables.rst: New file.
385 * doc/openacc-library-interoperability.rst: New file.
386 * doc/openacc-profiling-interface.rst: New file.
387 * doc/openacc-runtime-library-routines.rst: New file.
388 * doc/openacc-runtime-library-routines/accasynctest.rst: New file.
389 * doc/openacc-runtime-library-routines/accasynctestall.rst: New file.
390 * doc/openacc-runtime-library-routines/accattach.rst: New file.
391 * doc/openacc-runtime-library-routines/acccopyin.rst: New file.
392 * doc/openacc-runtime-library-routines/acccopyout.rst: New file.
393 * doc/openacc-runtime-library-routines/acccreate.rst: New file.
394 * doc/openacc-runtime-library-routines/accdelete.rst: New file.
395 * doc/openacc-runtime-library-routines/accdetach.rst: New file.
396 * doc/openacc-runtime-library-routines/accdeviceptr.rst: New file.
397 * doc/openacc-runtime-library-routines/accfree.rst: New file.
398 * doc/openacc-runtime-library-routines/accgetcudastream.rst: New file.
399 * doc/openacc-runtime-library-routines/accgetcurrentcudacontext.rst: New file.
400 * doc/openacc-runtime-library-routines/accgetcurrentcudadevice.rst: New file.
401 * doc/openacc-runtime-library-routines/accgetdevicenum.rst: New file.
402 * doc/openacc-runtime-library-routines/accgetdevicetype.rst: New file.
403 * doc/openacc-runtime-library-routines/accgetnumdevices.rst: New file.
404 * doc/openacc-runtime-library-routines/accgetproperty.rst: New file.
405 * doc/openacc-runtime-library-routines/acchostptr.rst: New file.
406 * doc/openacc-runtime-library-routines/accinit.rst: New file.
407 * doc/openacc-runtime-library-routines/accispresent.rst: New file.
408 * doc/openacc-runtime-library-routines/accmalloc.rst: New file.
409 * doc/openacc-runtime-library-routines/accmapdata.rst: New file.
410 * doc/openacc-runtime-library-routines/accmemcpyfromdevice.rst: New file.
411 * doc/openacc-runtime-library-routines/accmemcpytodevice.rst: New file.
412 * doc/openacc-runtime-library-routines/accondevice.rst: New file.
413 * doc/openacc-runtime-library-routines/accpresentorcopyin.rst: New file.
414 * doc/openacc-runtime-library-routines/accpresentorcreate.rst: New file.
415 * doc/openacc-runtime-library-routines/accproflookup.rst: New file.
416 * doc/openacc-runtime-library-routines/accprofregister.rst: New file.
417 * doc/openacc-runtime-library-routines/accprofunregister.rst: New file.
418 * doc/openacc-runtime-library-routines/accregisterlibrary.rst: New file.
419 * doc/openacc-runtime-library-routines/accsetcudastream.rst: New file.
420 * doc/openacc-runtime-library-routines/accsetdevicenum.rst: New file.
421 * doc/openacc-runtime-library-routines/accsetdevicetype.rst: New file.
422 * doc/openacc-runtime-library-routines/accshutdown.rst: New file.
423 * doc/openacc-runtime-library-routines/accunmapdata.rst: New file.
424 * doc/openacc-runtime-library-routines/accupdatedevice.rst: New file.
425 * doc/openacc-runtime-library-routines/accupdateself.rst: New file.
426 * doc/openacc-runtime-library-routines/accwait.rst: New file.
427 * doc/openacc-runtime-library-routines/accwaitall.rst: New file.
428 * doc/openacc-runtime-library-routines/accwaitallasync.rst: New file.
429 * doc/openacc-runtime-library-routines/accwaitasync.rst: New file.
430 * doc/openmp-context-selectors.rst: New file.
431 * doc/openmp-environment-variables.rst: New file.
432 * doc/openmp-environment-variables/gompcpuaffinity.rst: New file.
433 * doc/openmp-environment-variables/gompdebug.rst: New file.
434 * doc/openmp-environment-variables/gomprtemsthreadpools.rst: New file.
435 * doc/openmp-environment-variables/gompspincount.rst: New file.
436 * doc/openmp-environment-variables/gompstacksize.rst: New file.
437 * doc/openmp-environment-variables/ompcancellation.rst: New file.
438 * doc/openmp-environment-variables/ompdefaultdevice.rst: New file.
439 * doc/openmp-environment-variables/ompdisplayenv.rst: New file.
440 * doc/openmp-environment-variables/ompdynamic.rst: New file.
441 * doc/openmp-environment-variables/ompmaxactivelevels.rst: New file.
442 * doc/openmp-environment-variables/ompmaxtaskpriority.rst: New file.
443 * doc/openmp-environment-variables/ompnested.rst: New file.
444 * doc/openmp-environment-variables/ompnumteams.rst: New file.
445 * doc/openmp-environment-variables/ompnumthreads.rst: New file.
446 * doc/openmp-environment-variables/ompplaces.rst: New file.
447 * doc/openmp-environment-variables/ompprocbind.rst: New file.
448 * doc/openmp-environment-variables/ompschedule.rst: New file.
449 * doc/openmp-environment-variables/ompstacksize.rst: New file.
450 * doc/openmp-environment-variables/omptargetoffload.rst: New file.
451 * doc/openmp-environment-variables/ompteamsthreadlimit.rst: New file.
452 * doc/openmp-environment-variables/ompthreadlimit.rst: New file.
453 * doc/openmp-environment-variables/ompwaitpolicy.rst: New file.
454 * doc/openmp-implementation-specifics.rst: New file.
455 * doc/openmp-implementation-status.rst: New file.
456 * doc/openmp-implementation-status/openmp-45.rst: New file.
457 * doc/openmp-implementation-status/openmp-50.rst: New file.
458 * doc/openmp-implementation-status/openmp-51.rst: New file.
459 * doc/openmp-implementation-status/openmp-52.rst: New file.
460 * doc/openmp-runtime-library-routines.rst: New file.
461 * doc/openmp-runtime-library-routines/ompdestroylock.rst: New file.
462 * doc/openmp-runtime-library-routines/ompdestroynestlock.rst: New file.
463 * doc/openmp-runtime-library-routines/ompfulfillevent.rst: New file.
464 * doc/openmp-runtime-library-routines/ompgetactivelevel.rst: New file.
465 * doc/openmp-runtime-library-routines/ompgetancestorthreadnum.rst: New file.
466 * doc/openmp-runtime-library-routines/ompgetcancellation.rst: New file.
467 * doc/openmp-runtime-library-routines/ompgetdefaultdevice.rst: New file.
468 * doc/openmp-runtime-library-routines/ompgetdevicenum.rst: New file.
469 * doc/openmp-runtime-library-routines/ompgetdynamic.rst: New file.
470 * doc/openmp-runtime-library-routines/ompgetinitialdevice.rst: New file.
471 * doc/openmp-runtime-library-routines/ompgetlevel.rst: New file.
472 * doc/openmp-runtime-library-routines/ompgetmaxactivelevels.rst: New file.
473 * doc/openmp-runtime-library-routines/ompgetmaxtaskpriority.rst: New file.
474 * doc/openmp-runtime-library-routines/ompgetmaxteams.rst: New file.
475 * doc/openmp-runtime-library-routines/ompgetmaxthreads.rst: New file.
476 * doc/openmp-runtime-library-routines/ompgetnested.rst: New file.
477 * doc/openmp-runtime-library-routines/ompgetnumdevices.rst: New file.
478 * doc/openmp-runtime-library-routines/ompgetnumprocs.rst: New file.
479 * doc/openmp-runtime-library-routines/ompgetnumteams.rst: New file.
480 * doc/openmp-runtime-library-routines/ompgetnumthreads.rst: New file.
481 * doc/openmp-runtime-library-routines/ompgetprocbind.rst: New file.
482 * doc/openmp-runtime-library-routines/ompgetschedule.rst: New file.
483 * doc/openmp-runtime-library-routines/ompgetsupportedactivelevels.rst: New file.
484 * doc/openmp-runtime-library-routines/ompgetteamnum.rst: New file.
485 * doc/openmp-runtime-library-routines/ompgetteamsize.rst: New file.
486 * doc/openmp-runtime-library-routines/ompgetteamsthreadlimit.rst: New file.
487 * doc/openmp-runtime-library-routines/ompgetthreadlimit.rst: New file.
488 * doc/openmp-runtime-library-routines/ompgetthreadnum.rst: New file.
489 * doc/openmp-runtime-library-routines/ompgetwtick.rst: New file.
490 * doc/openmp-runtime-library-routines/ompgetwtime.rst: New file.
491 * doc/openmp-runtime-library-routines/ompinfinal.rst: New file.
492 * doc/openmp-runtime-library-routines/ompinitlock.rst: New file.
493 * doc/openmp-runtime-library-routines/ompinitnestlock.rst: New file.
494 * doc/openmp-runtime-library-routines/ompinparallel.rst: New file.
495 * doc/openmp-runtime-library-routines/ompisinitialdevice.rst: New file.
496 * doc/openmp-runtime-library-routines/ompsetdefaultdevice.rst: New file.
497 * doc/openmp-runtime-library-routines/ompsetdynamic.rst: New file.
498 * doc/openmp-runtime-library-routines/ompsetlock.rst: New file.
499 * doc/openmp-runtime-library-routines/ompsetmaxactivelevels.rst: New file.
500 * doc/openmp-runtime-library-routines/ompsetnested.rst: New file.
501 * doc/openmp-runtime-library-routines/ompsetnestlock.rst: New file.
502 * doc/openmp-runtime-library-routines/ompsetnumteams.rst: New file.
503 * doc/openmp-runtime-library-routines/ompsetnumthreads.rst: New file.
504 * doc/openmp-runtime-library-routines/ompsetschedule.rst: New file.
505 * doc/openmp-runtime-library-routines/ompsetteamsthreadlimit.rst: New file.
506 * doc/openmp-runtime-library-routines/omptestlock.rst: New file.
507 * doc/openmp-runtime-library-routines/omptestnestlock.rst: New file.
508 * doc/openmp-runtime-library-routines/ompunsetlock.rst: New file.
509 * doc/openmp-runtime-library-routines/ompunsetnestlock.rst: New file.
510 * doc/reporting-bugs.rst: New file.
511 * doc/the-libgomp-abi.rst: New file.
512 * doc/the-libgomp-abi/implementing-atomic-construct.rst: New file.
513 * doc/the-libgomp-abi/implementing-barrier-construct.rst: New file.
514 * doc/the-libgomp-abi/implementing-critical-construct.rst: New file.
515 * doc/the-libgomp-abi/implementing-firstprivate-lastprivate-copyin-and-copyprivate-clauses.rst:
517 * doc/the-libgomp-abi/implementing-flush-construct.rst: New file.
518 * doc/the-libgomp-abi/implementing-for-construct.rst: New file.
519 * doc/the-libgomp-abi/implementing-master-construct.rst: New file.
520 * doc/the-libgomp-abi/implementing-openaccs-parallel-construct.rst: New file.
521 * doc/the-libgomp-abi/implementing-ordered-construct.rst: New file.
522 * doc/the-libgomp-abi/implementing-parallel-construct.rst: New file.
523 * doc/the-libgomp-abi/implementing-private-clause.rst: New file.
524 * doc/the-libgomp-abi/implementing-reduction-clause.rst: New file.
525 * doc/the-libgomp-abi/implementing-sections-construct.rst: New file.
526 * doc/the-libgomp-abi/implementing-single-construct.rst: New file.
527 * doc/the-libgomp-abi/implementing-threadprivate-construct.rst: New file.
529 2022-11-04 Thomas Schwinge <thomas@codesourcery.com>
531 * libgomp-plugin.h (OFFLOAD_TARGET_TYPE_INTEL_MIC): Remove.
532 * libgomp.texi (OpenMP Context Selectors): Remove Intel MIC
534 * plugin/configfrag.ac <enable_offload_targets>
535 [*-intelmic-* | *-intelmicemul-*]: Remove.
536 * configure: Regenerate.
537 * testsuite/lib/libgomp.exp (libgomp_init): Remove 'liboffloadmic'
539 (offload_target_to_openacc_device_type)
540 [$offload_target = *-intelmic*]: Remove.
541 (check_effective_target_offload_device_intel_mic)
542 (check_effective_target_offload_device_any_intel_mic): Remove.
543 * testsuite/libgomp.c-c++-common/on_device_arch.h
544 (device_arch_intel_mic, on_device_arch_intel_mic, any_device_arch)
545 (any_device_arch_intel_mic): Remove.
546 * testsuite/libgomp.c-c++-common/target-45.c: Remove
547 'offload_device_any_intel_mic' XFAIL.
548 * testsuite/libgomp.fortran/target10.f90: Likewise.
550 2022-11-03 Tobias Burnus <tobias@codesourcery.com>
552 * testsuite/libgomp.fortran/target-11.f90: New test.
553 * testsuite/libgomp.fortran/target-13.f90: New test.
555 2022-11-02 Thomas Schwinge <thomas@codesourcery.com>
559 * oacc-mem.c (goacc_enter_data_internal): Support
560 OpenACC 'declare create' with Fortran allocatable arrays, part II.
561 * testsuite/libgomp.oacc-fortran/declare-allocatable-array_descriptor-1-directive.f90:
563 * testsuite/libgomp.oacc-fortran/pr106643-1.f90: New.
565 2022-11-02 Thomas Schwinge <thomas@codesourcery.com>
568 * oacc-mem.c (goacc_enter_data_internal): Support
569 OpenACC 'declare create' with Fortran allocatable arrays, part I.
570 * testsuite/libgomp.oacc-fortran/declare-allocatable-1-directive.f90:
572 * testsuite/libgomp.oacc-fortran/declare-allocatable-array_descriptor-1-directive.f90:
575 2022-11-02 Thomas Schwinge <thomas@codesourcery.com>
577 * testsuite/libgomp.oacc-fortran/declare-allocatable-array_descriptor-1-runtime.f90:
580 2022-11-02 Thomas Schwinge <thomas@codesourcery.com>
582 * testsuite/libgomp.oacc-fortran/declare-allocatable-1-runtime.f90:
585 2022-11-02 Cesar Philippidis <cesar@codesourcery.com>
586 Thomas Schwinge <thomas@codesourcery.com>
588 * testsuite/libgomp.oacc-fortran/declare-allocatable-1.f90: New.
590 2022-10-28 Julian Brown <julian@codesourcery.com>
591 Thomas Schwinge <thomas@codesourcery.com>
594 * testsuite/libgomp.oacc-fortran/declare-1.f90: Adjust scan output.
595 * testsuite/libgomp.oacc-fortran/host_data-5.F90: Likewise.
596 * testsuite/libgomp.oacc-fortran/if-1.f90: Likewise.
597 * testsuite/libgomp.oacc-fortran/print-1.f90: Likewise.
598 * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Likewise.
600 2022-10-24 Thomas Schwinge <thomas@codesourcery.com>
602 * plugin/plugin-nvptx.c (nvptx_open_device): Initialize
605 2022-10-24 Tobias Burnus <tobias@codesourcery.com>
607 * config/nvptx/icv-device.c (GOMP_DEVICE_NUM_VAR): Remove
608 'static' for this variable.
609 * config/nvptx/libgomp-nvptx.h: New file.
610 * config/nvptx/target.c: Include it.
611 (GOMP_ADDITIONAL_ICVS): Declare extern var.
612 (GOMP_REV_OFFLOAD_VAR): Declare var.
613 (GOMP_target_ext): Handle reverse offload.
614 * libgomp-plugin.h (GOMP_PLUGIN_target_rev): New prototype.
615 * libgomp-plugin.c (GOMP_PLUGIN_target_rev): New, call ...
616 * target.c (gomp_target_rev): ... this new stub function.
617 * libgomp.h (gomp_target_rev): Declare.
618 * libgomp.map (GOMP_PLUGIN_1.4): New; add GOMP_PLUGIN_target_rev.
619 * plugin/cuda-lib.def (cuMemHostAlloc): Add.
620 * plugin/plugin-nvptx.c: Include libgomp-nvptx.h.
621 (struct ptx_device): Add rev_data member.
622 (nvptx_open_device): Remove async_engines query, last used in
623 r10-304-g1f4c5b9b; add unified-address assert check.
624 (GOMP_OFFLOAD_get_num_devices): Claim unified address
626 (GOMP_OFFLOAD_load_image): Free rev_fn_table if no
627 offload functions exist. Make offload var available
629 (rev_off_dev_to_host_cpy, rev_off_host_to_dev_cpy): New.
630 (GOMP_OFFLOAD_run): Handle reverse offload.
632 2022-10-21 Thomas Schwinge <thomas@codesourcery.com>
634 PR tree-optimization/107195
636 * testsuite/libgomp.oacc-c-c++-common/nvptx-sese-1.c: Restore SESE
639 2022-10-20 Tobias Burnus <tobias@codesourcery.com>
641 * testsuite/lib/libgomp.exp (check_effective_target_offload_device_gcn):
643 * testsuite/libgomp.c-c++-common/on_device_arch.h (device_arch_gcn,
644 on_device_arch_gcn): New.
645 * testsuite/libgomp.c-c++-common/requires-4a.c: New test; copied from
646 requires-4.c but using heap-allocated memory.
648 2022-10-20 Thomas Schwinge <thomas@codesourcery.com>
651 * testsuite/libgomp.oacc-c-c++-common/private-big-1.c: New.
653 2022-10-17 Thomas Schwinge <thomas@codesourcery.com>
655 * testsuite/libgomp.c/reverse-offload-sm30.c: Fix nvptx-specific
656 '-foffload-options' syntax.
658 2022-10-13 Tobias Burnus <tobias@codesourcery.com>
660 * testsuite/libgomp.fortran/task-7.f90: New test.
661 * testsuite/libgomp.fortran/task-8.f90: New test.
662 * testsuite/libgomp.fortran/task-in-explicit-1.f90: New test.
663 * testsuite/libgomp.fortran/task-in-explicit-2.f90: New test.
664 * testsuite/libgomp.fortran/task-in-explicit-3.f90: New test.
665 * testsuite/libgomp.fortran/task-reduction-17.f90: New test.
666 * testsuite/libgomp.fortran/task-reduction-18.f90: New test.
668 2022-10-12 Jakub Jelinek <jakub@redhat.com>
670 * libgomp.texi (OpenMP 5.2): Fix up allocator -> allocate directive
671 in deprecation bullet.
673 2022-10-12 Jakub Jelinek <jakub@redhat.com>
675 * omp.h.in (omp_in_explicit_task): Declare.
676 * omp_lib.h.in (omp_in_explicit_task): Likewise.
677 * omp_lib.f90.in (omp_in_explicit_task): New interface.
678 * libgomp.map (OMP_5.2): New symbol version, export
679 omp_in_explicit_task and omp_in_explicit_task_.
680 * task.c (omp_in_explicit_task): New function.
681 * fortran.c (omp_in_explicit_task): Add ialias_redirect.
682 (omp_in_explicit_task_): New function.
683 * libgomp.texi (OpenMP 5.2): Mark omp_in_explicit_task as implemented.
684 * testsuite/libgomp.c-c++-common/task-in-explicit-1.c: New test.
685 * testsuite/libgomp.c-c++-common/task-in-explicit-2.c: New test.
686 * testsuite/libgomp.c-c++-common/task-in-explicit-3.c: New test.
688 2022-10-12 Jakub Jelinek <jakub@redhat.com>
690 * task.c (gomp_create_artificial_team): Fix up handling of invocations
691 from within explicit task.
692 * target.c (GOMP_target_ext): Likewise.
693 * testsuite/libgomp.c/task-7.c: New test.
694 * testsuite/libgomp.c/task-8.c: New test.
695 * testsuite/libgomp.c-c++-common/task-reduction-17.c: New test.
696 * testsuite/libgomp.c-c++-common/task-reduction-18.c: New test.
698 2022-10-12 Martin Liska <mliska@suse.cz>
700 * configure: Regenerate.
702 2022-10-11 Olivier Hainque <hainque@adacore.com>
703 Olivier Hainque <hainque@adacore.com>
705 * configure: Regenerate.
707 2022-10-05 Tobias Burnus <tobias@codesourcery.com>
709 * libgomp.texi (OpenMP 5.1 Impl. Status): Mark 'assume' as 'Y'.
711 2022-10-04 Jakub Jelinek <jakub@redhat.com>
713 * libgomp.texi (Support begin/end declare target syntax in C/C++):
716 2022-09-30 Tobias Burnus <tobias@codesourcery.com>
719 * testsuite/libgomp.fortran/is_device_ptr-2.f90: New test.
721 2022-09-28 Tobias Burnus <tobias@codesourcery.com>
723 * libgomp.texi (OpenMP 5.1): Mark 'assume' as implemented
724 for C/C++. Remove duplicated 'begin declare target' entry.
726 2022-09-24 Jakub Jelinek <jakub@redhat.com>
729 * testsuite/libgomp.c-c++-common/pr106981.c: New test.
731 2022-09-14 Julian Brown <julian@codesourcery.com>
733 * testsuite/libgomp.oacc-c-c++-common/deep-copy-15.c: New test.
734 * testsuite/libgomp.oacc-c-c++-common/deep-copy-16.c: New test.
735 * testsuite/libgomp.oacc-c++/deep-copy-17.C: New test.
736 * testsuite/libgomp.oacc-c-c++-common/deep-copy-arrayofstruct.c: Move
737 test to here, make "run" test.
739 2022-09-13 Jakub Jelinek <jakub@redhat.com>
742 * env.c (get_icv_member_addr): Cast false to void * before assigning
743 it to icv_addr[1], and comment the whole assignment out.
745 2022-09-13 Tobias Burnus <tobias@codesourcery.com>
747 * libgomp.texi (gcn): Move misplaced -march=sm_30 remark to ...
750 2022-09-12 Tobias Burnus <tobias@codesourcery.com>
752 * libgomp.texi (Offload-Target Specifics: nvptx): Document
753 that reverse offload requires >= -march=sm_35.
754 * testsuite/libgomp.c-c++-common/requires-4.c: Build for nvptx
756 * testsuite/libgomp.c-c++-common/requires-5.c: Likewise.
757 * testsuite/libgomp.c-c++-common/requires-6.c: Likewise.
758 * testsuite/libgomp.c-c++-common/reverse-offload-1.c: Likewise.
759 * testsuite/libgomp.fortran/reverse-offload-1.f90: Likewise.
760 * testsuite/libgomp.c/reverse-offload-sm30.c: New test.
762 2022-09-12 Tobias Burnus <tobias@codesourcery.com>
764 * libgomp.texi (OpenMP 5.1 Impl. Status): Add two new minor items.
765 (OpenMP 5.2 Impl. Status): Improve omp/omx/ompx wording.
767 2022-09-12 Jakub Jelinek <jakub@redhat.com>
770 * testsuite/libgomp.c-c++-common/icv-6.c: Include string.h.
771 (main): Avoid tests for which corresponding non-_ALL suffixed variable
772 is in the environment, or for OMP_NUM_TEAMS on the device
775 2022-09-10 Iain Sandoe <iain@sandoe.co.uk>
777 * env.c (initialize_env): Include libiberty environ.h.
779 2022-09-09 Tobias Burnus <tobias@codesourcery.com>
781 * plugin/plugin-nvptx.c (GOMP_OFFLOAD_load_image): Read offload
782 function address table '$offload_func_table' if rev_fn_table
785 2022-09-09 Tobias Burnus <tobias@codesourcery.com>
787 * plugin/plugin-gcn.c (GOMP_OFFLOAD_load_image): Read
788 .offload_func_table to populate rev_fn_table when requested.
790 2022-09-09 Tobias Burnus <tobias@codesourcery.com>
792 * libgomp-plugin.h (GOMP_OFFLOAD_load_image): Add
793 'uint64_t **rev_fn_table' argument.
794 * oacc-host.c (host_load_image): Likewise.
795 * plugin/plugin-gcn.c (GOMP_OFFLOAD_load_image): Likewise;
797 * plugin/plugin-nvptx.c (GOMP_OFFLOAD_load_image): Likewise.
798 * target.c (gomp_load_image_to_device): Update call but pass
801 2022-09-09 Jakub Jelinek <jakub@redhat.com>
804 * env.c (initialize_env) <case PARSE_BIND>: Use char ** instead of
805 char * for dest[1] initialization from params[1]. Formatting fixes.
807 2022-09-08 Tobias Burnus <tobias@codesourcery.com>
810 * libgomp.texi (OpenMP 5.2): Add comment to ompx/omx entry.
812 2022-09-08 Tobias Burnus <tobias@codesourcery.com>
814 * libgomp.texi (OpenMP-Implementation Specifics): New; add libmemkind
815 section; move OpenMP Context Selectors from ...
816 (Offload-Target Specifics): ... here; add 'AMD Radeo (GCN)' and
819 2022-09-08 Marcel Vollweiler <marcel@codesourcery.com>
821 * config/gcn/icv-device.c (omp_get_default_device): Return device-
823 (omp_get_max_teams): Added for GCN devices.
824 (omp_set_num_teams): Likewise.
826 * config/nvptx/icv-device.c (omp_get_default_device): Return device-
828 (omp_get_max_teams): Added for NVPTX devices.
829 (omp_set_num_teams): Likewise.
831 * env.c (struct gomp_icv_list): New struct to store entries of initial
833 (struct gomp_offload_icv_list): New struct to store entries of device-
834 specific ICV values that are copied to the device and back.
835 (struct gomp_default_icv_values): New struct to store default values of
836 ICVs according to the OpenMP standard.
837 (parse_schedule): Generalized for different variants of OMP_SCHEDULE.
838 (print_env_var_error): Function that prints an error for invalid values
840 (parse_unsigned_long_1): Removed getenv. Generalized.
841 (parse_unsigned_long): Likewise.
842 (parse_int_1): Likewise.
843 (parse_int): Likewise.
844 (parse_int_secure): Likewise.
845 (parse_unsigned_long_list): Likewise.
846 (parse_target_offload): Likewise.
847 (parse_bind_var): Likewise.
848 (parse_stacksize): Likewise.
849 (parse_boolean): Likewise.
850 (parse_wait_policy): Likewise.
851 (parse_allocator): Likewise.
852 (omp_display_env): Extended to output different variants of environment
854 (print_schedule): New helper function for omp_display_env which prints
855 the values of run_sched_var.
856 (print_proc_bind): New helper function for omp_display_env which prints
857 the values of proc_bind_var.
858 (enum gomp_parse_type): Collection of types used for parsing environment
860 (ENTRY): Preprocess string lengths of environment variables.
861 (OMP_VAR_CNT): Preprocess table size.
862 (OMP_HOST_VAR_CNT): Likewise.
863 (INT_MAX_STR_LEN): Constant for the maximal number of digits of a device
865 (gomp_get_icv_flag): Returns if a flag for a particular ICV is set.
866 (gomp_set_icv_flag): Sets a flag for a particular ICV.
867 (print_device_specific_icvs): New helper function for omp_display_env to
868 print device specific ICV values.
869 (get_device_num): New helper function for parse_device_specific.
870 Extracts the device number from an environment variable name.
871 (get_icv_member_addr): Gets the memory address for a particular member
873 (gomp_get_initial_icv_item): Get a list item of gomp_initial_icv_list.
874 (initialize_icvs): New function to initialize a gomp_initial_icvs
876 (add_initial_icv_to_list): Adds an ICV struct to gomp_initial_icv_list.
877 (startswith): Checks if a string starts with a given prefix.
878 (initialize_env): Extended to parse the new syntax of environment
880 * icv-device.c (omp_get_max_teams): Added.
882 (omp_set_num_teams): Likewise.
883 * icv.c (omp_set_num_teams): Moved to icv-device.c.
884 (omp_get_max_teams): Likewise.
886 * libgomp-plugin.h (GOMP_DEVICE_NUM_VAR): Removed.
887 (GOMP_ADDITIONAL_ICVS): New target-side struct that
888 holds the designated ICVs of the target device.
889 * libgomp.h (enum gomp_icvs): Collection of ICVs.
890 (enum gomp_device_num): Definition of device numbers for _ALL, _DEV, and
892 (enum gomp_env_suffix): Collection of possible suffixes of environment
894 (struct gomp_initial_icvs): Contains all ICVs for which we need to store
896 (struct gomp_default_icv):New struct to hold ICVs for which we need
897 to store initial values.
898 (struct gomp_icv_list): Definition of a linked list that is used for
899 storing ICVs for the devices and also for _DEV, _ALL, and without
901 (struct gomp_offload_icvs): New struct to hold ICVs that are copied to
903 (struct gomp_offload_icv_list): Definition of a linked list that holds
904 device-specific ICVs that are copied to devices.
905 (gomp_get_initial_icv_item): Get a list item of gomp_initial_icv_list.
906 (gomp_get_icv_flag): Returns if a flag for a particular ICV is set.
907 * libgomp.texi: Updated.
908 * plugin/plugin-gcn.c (GOMP_OFFLOAD_load_image): Extended to read
909 further ICVs from the offload image.
910 * plugin/plugin-nvptx.c (GOMP_OFFLOAD_load_image): Likewise.
911 * target.c (gomp_get_offload_icv_item): Get a list item of
912 gomp_offload_icv_list.
913 (get_gomp_offload_icvs): New. Returns the ICV values
914 depending on the device num and the variable hierarchy.
915 (gomp_load_image_to_device): Extended to copy further ICVs to a device.
916 * testsuite/libgomp.c-c++-common/icv-5.c: New test.
917 * testsuite/libgomp.c-c++-common/icv-6.c: New test.
918 * testsuite/libgomp.c-c++-common/icv-7.c: New test.
919 * testsuite/libgomp.c-c++-common/icv-8.c: New test.
920 * testsuite/libgomp.c-c++-common/omp-display-env-1.c: New test.
921 * testsuite/libgomp.c-c++-common/omp-display-env-2.c: New test.
923 2022-09-08 Jakub Jelinek <jakub@redhat.com>
925 * libgomp.texi (OpenMP 5.2): Mention that omp_cur_iteration is now
927 * testsuite/libgomp.c/doacross-4.c: New test.
928 * testsuite/libgomp.c/doacross-5.c: New test.
929 * testsuite/libgomp.c/doacross-6.c: New test.
930 * testsuite/libgomp.c/doacross-7.c: New test.
932 2022-09-05 Tobias Burnus <tobias@codesourcery.com>
934 * libgomp.texi (OpenMP 5.2): Update doacross/omp_cur_iteration status.
936 2022-08-26 Tobias Burnus <tobias@codesourcery.com>
938 * libgomp.texi (OpenMP 5.0): Mark 'ancestor' as implemented but
940 * testsuite/libgomp.c-c++-common/reverse-offload-1-aux.c: New test.
941 * testsuite/libgomp.c-c++-common/reverse-offload-1.c: New test.
942 * testsuite/libgomp.fortran/reverse-offload-1-aux.f90: New test.
943 * testsuite/libgomp.fortran/reverse-offload-1.f90: New test.
945 2022-08-17 Tobias Burnus <tobias@codesourcery.com>
948 * testsuite/libgomp.c/linear-2.c: New test.
950 2022-08-17 Tobias Burnus <tobias@codesourcery.com>
952 * splay-tree.h: Fix splay_* macro unsetting if
953 splay_tree_prefix is defined.
955 2022-07-29 Tobias Burnus <tobias@codesourcery.com>
957 * testsuite/libgomp.c-c++-common/pr106449-2.c: New test.
959 2022-07-29 Jakub Jelinek <jakub@redhat.com>
962 * testsuite/libgomp.c-c++-common/pr106449.c: New test.
964 2022-07-12 Tobias Burnus <tobias@codesourcery.com>
966 * target.c (gomp_target_init): Added tailing '\n' to gomp_debug.
968 2022-07-12 Thomas Schwinge <thomas@codesourcery.com>
971 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: XFAIL
972 'offloading_enabled' diagnostics issue.
974 2022-07-11 Thomas Schwinge <thomas@codesourcery.com>
976 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Enhance
977 '_Pragma' diagnostics verification.
979 2022-07-10 Lewis Hyatt <lhyatt@gmail.com>
981 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Adapt for
982 improved warning locations.
983 * testsuite/libgomp.oacc-c-c++-common/vred2d-128.c: Likewise.
985 2022-07-08 Thomas Schwinge <thomas@codesourcery.com>
987 * testsuite/libgomp.c-c++-common/requires-1.c: Add 'dg-note's.
988 * testsuite/libgomp.c-c++-common/requires-2.c: Likewise.
989 * testsuite/libgomp.c-c++-common/requires-3.c: Likewise.
990 * testsuite/libgomp.c-c++-common/requires-7.c: Likewise.
991 * testsuite/libgomp.fortran/requires-1.f90: Likewise.
993 2022-07-07 Thomas Schwinge <thomas@codesourcery.com>
995 * target.c (GOMP_offload_register, GOMP_offload_unregister):
996 Denote as legacy entry points.
997 * testsuite/lib/libgomp.exp
998 (check_effective_target_offload_target_any): New proc.
999 * testsuite/libgomp.c-c++-common/requires-1.c: Enable for
1000 'offload_target_any'.
1001 * testsuite/libgomp.c-c++-common/requires-3.c: Likewise.
1002 * testsuite/libgomp.c-c++-common/requires-7.c: Likewise.
1003 * testsuite/libgomp.fortran/requires-1.f90: Likewise.
1005 2022-07-07 Thomas Schwinge <thomas@codesourcery.com>
1007 * testsuite/libgomp.c-c++-common/requires-4.c: Enhance testing.
1008 * testsuite/libgomp.c-c++-common/requires-5.c: Likewise.
1010 2022-07-07 Thomas Schwinge <thomas@codesourcery.com>
1012 * testsuite/libgomp.c-c++-common/requires-3.c: Adjust.
1014 2022-07-06 Thomas Schwinge <thomas@codesourcery.com>
1016 * target.c (GOMP_offload_register_ver): Clarify 'target_data' ->
1018 (GOMP_offload_unregister_ver): Likewise. Fix up 'target_data'.
1020 2022-07-04 Tobias Burnus <tobias@codesourcery.com>
1021 Jakub Jelinek <jakub@redhat.com>
1023 * libgomp.texi (OpenMP 5.2): Mark linear-clause change as 'Y'.
1025 2022-07-04 Tobias Burnus <tobias@codesourcery.com>
1026 Chung-Lin Tang <cltang@codesourcery.com>
1027 Thomas Schwinge <thomas@codesourcery.com>
1029 * libgomp-plugin.h (GOMP_OFFLOAD_get_num_devices): Add
1030 omp_requires_mask arg.
1031 * plugin/plugin-gcn.c (GOMP_OFFLOAD_get_num_devices): Likewise;
1032 return -1 when device available but omp_requires_mask != 0.
1033 * plugin/plugin-nvptx.c (GOMP_OFFLOAD_get_num_devices): Likewise.
1034 * oacc-host.c (host_get_num_devices, host_openacc_get_property):
1036 * oacc-init.c (resolve_device, acc_init_1, acc_shutdown_1,
1037 goacc_attach_host_thread_to_device, acc_get_num_devices,
1038 acc_set_device_num, get_property_any): Likewise.
1039 * target.c (omp_requires_mask): New global var.
1040 (gomp_requires_to_name): New.
1041 (GOMP_offload_register_ver): Handle passed omp_requires_mask.
1042 (gomp_target_init): Handle omp_requires_mask.
1043 * libgomp.texi (OpenMP 5.0): Update requires impl. status.
1044 (OpenMP 5.1): Add a missed item.
1045 (OpenMP 5.2): Mark linear-clause change as supported in C/C++.
1046 * testsuite/libgomp.c-c++-common/requires-1-aux.c: New test.
1047 * testsuite/libgomp.c-c++-common/requires-1.c: New test.
1048 * testsuite/libgomp.c-c++-common/requires-2-aux.c: New test.
1049 * testsuite/libgomp.c-c++-common/requires-2.c: New test.
1050 * testsuite/libgomp.c-c++-common/requires-3-aux.c: New test.
1051 * testsuite/libgomp.c-c++-common/requires-3.c: New test.
1052 * testsuite/libgomp.c-c++-common/requires-4-aux.c: New test.
1053 * testsuite/libgomp.c-c++-common/requires-4.c: New test.
1054 * testsuite/libgomp.c-c++-common/requires-5-aux.c: New test.
1055 * testsuite/libgomp.c-c++-common/requires-5.c: New test.
1056 * testsuite/libgomp.c-c++-common/requires-6.c: New test.
1057 * testsuite/libgomp.c-c++-common/requires-7-aux.c: New test.
1058 * testsuite/libgomp.c-c++-common/requires-7.c: New test.
1059 * testsuite/libgomp.fortran/requires-1-aux.f90: New test.
1060 * testsuite/libgomp.fortran/requires-1.f90: New test.
1062 2022-07-01 Tobias Burnus <tobias@codesourcery.com>
1064 * libgomp.texi (OpenMP 5.2): Mark target enter/exit data
1065 with fromto as implemented.
1067 2022-06-28 Martin Liska <mliska@suse.cz>
1069 * acinclude.m4: Fix typo in mold linker detection.
1070 * Makefile.in: Regenerate.
1071 * configure: Regenerate.
1073 2022-06-21 Jakub Jelinek <jakub@redhat.com>
1074 Paul Iannetta <piannetta@kalrayinc.com>
1077 * testsuite/libgomp.c/target-31.c: Add private (i) clause.
1079 2022-06-17 Martin Liska <mliska@suse.cz>
1081 * libgomp.texi: Add table header for new features of
1084 2022-06-15 Jakub Jelinek <jakub@redhat.com>
1086 * testsuite/libgomp.c-c++-common/get-mapped-ptr-1.c (main): Initialize
1087 q to ddress of an automatic variable. Use -5 instead of -1 in
1088 omp_get_mapped_ptr call. Add test with omp_initial_device.
1089 * testsuite/libgomp.fortran/get-mapped-ptr-1.f90 (main): Use -5 instead
1090 of -1 in omp_get_mapped_ptr call. Add test with omp_initial_device.
1091 Renumber stop arguments afterwards.
1093 2022-06-13 Jakub Jelinek <jakub@redhat.com>
1095 * omp.h.in (omp_initial_device, omp_invalid_device): New enumerators.
1096 * omp_lib.f90.in (omp_initial_device, omp_invalid_device): New
1098 * omp_lib.h.in (omp_initial_device, omp_invalid_device): Likewise.
1099 * target.c (resolve_device): Add remapped argument, handle
1100 GOMP_DEVICE_ICV only if remapped is true (and clear remapped),
1101 for negative values, treat GOMP_DEVICE_FALLBACK as fallback only
1102 if remapped, otherwise treat omp_initial_device that way. For
1103 omp_invalid_device, always emit gomp_fatal, even when
1104 OMP_TARGET_OFFLOAD isn't mandatory.
1105 (GOMP_target, GOMP_target_ext, GOMP_target_data, GOMP_target_data_ext,
1106 GOMP_target_update, GOMP_target_update_ext,
1107 GOMP_target_enter_exit_data): Pass true as remapped argument to
1109 (omp_target_alloc, omp_target_free, omp_target_is_present,
1110 omp_target_memcpy_check, omp_target_associate_ptr,
1111 omp_target_disassociate_ptr, omp_get_mapped_ptr,
1112 omp_target_is_accessible): Pass false as remapped argument to
1113 resolve_device. Treat omp_initial_device the same as
1114 gomp_get_num_devices (). Don't bypass resolve_device calls if
1115 device_num is negative.
1116 (omp_pause_resource): Treat omp_initial_device the same as
1117 gomp_get_num_devices (). Call resolve_device.
1118 * icv-device.c (omp_set_default_device): Always set to device_num
1119 even when it is negative.
1120 * libgomp.texi: Document that Conforming device numbers,
1121 omp_initial_device and omp_invalid_device is implemented.
1122 * testsuite/libgomp.c/target-41.c (main): Add test with
1124 * testsuite/libgomp.c/target-45.c: New test.
1125 * testsuite/libgomp.c/target-46.c: New test.
1126 * testsuite/libgomp.c/target-47.c: New test.
1127 * testsuite/libgomp.c-c++-common/target-is-accessible-1.c (main): Add
1128 test with omp_initial_device. Use -5 instead of -1 for negative value
1130 * testsuite/libgomp.fortran/target-is-accessible-1.f90 (main):
1131 Likewise. Reorder stop numbers.
1133 2022-06-10 Jakub Jelinek <jakub@redhat.com>
1135 * allocator.c (gomp_init_memkind): Call dlopen with "libmemkind.so.0"
1136 rather than "libmemkind.so".
1138 2022-06-10 Thomas Schwinge <thomas@codesourcery.com>
1140 * plugin/Makefrag.am: Evaluate 'if PLUGIN_NVPTX_DYNAMIC' to true.
1141 * plugin/configfrag.ac (--with-cuda-driver)
1142 (--with-cuda-driver-include, --with-cuda-driver-lib)
1143 (CUDA_DRIVER_INCLUDE, CUDA_DRIVER_LIB, PLUGIN_NVPTX_CPPFLAGS)
1144 (PLUGIN_NVPTX_LDFLAGS, PLUGIN_NVPTX_LIBS, PLUGIN_NVPTX_DYNAMIC):
1146 * testsuite/libgomp-test-support.exp.in (cuda_driver_include)
1147 (cuda_driver_lib): Remove.
1148 * testsuite/lib/libgomp.exp (libgomp_init): Don't consider these.
1149 * Makefile.in: Regenerate.
1150 * configure: Likewise.
1151 * testsuite/Makefile.in: Likewise.
1153 2022-06-09 Jakub Jelinek <jakub@redhat.com>
1155 * config/linux/allocator.c: Fix up #include directive.
1157 2022-06-09 Jakub Jelinek <jakub@redhat.com>
1159 * allocator.c: Include dlfcn.h if LIBGOMP_USE_MEMKIND is defined.
1160 (enum gomp_memkind_kind): New type.
1161 (struct omp_allocator_data): Add memkind field if LIBGOMP_USE_MEMKIND
1163 (struct gomp_memkind_data): New type.
1164 (memkind_data, memkind_data_once): New variables.
1165 (gomp_init_memkind, gomp_get_memkind): New functions.
1166 (omp_init_allocator): Initialize data.memkind, don't fail for
1167 omp_high_bw_mem_space if libmemkind supports it.
1168 (omp_aligned_alloc, omp_free, omp_aligned_calloc, omp_realloc): Add
1169 memkind support of LIBGOMP_USE_MEMKIND is defined.
1170 * config/linux/allocator.c: New file.
1172 2022-06-03 Tobias Burnus <tobias@codesourcery.com>
1174 * libgomp.texi (OpenMP 5.2): Mark scope w/ firstprivate/allocate as Y.
1175 * testsuite/libgomp.fortran/scope-2.f90: New test.
1177 2022-06-02 David Malcolm <dmalcolm@redhat.com>
1179 * testsuite/lib/libgomp.exp: Add load_gcc_lib of scansarif.exp.
1181 2022-05-31 Jakub Jelinek <jakub@redhat.com>
1183 * testsuite/libgomp.c-c++-common/allocate-1.c (foo): Add testcase for
1184 scope construct with allocate clause.
1185 * testsuite/libgomp.c-c++-common/allocate-3.c (foo): Likewise.
1186 * testsuite/libgomp.c-c++-common/scope-2.c: New test.
1188 2022-05-28 Tobias Burnus <tobias@codesourcery.com>
1190 * libgomp.texi (OpenMP 5.2): Mark 'enter' clause as supported.
1191 * testsuite/libgomp.fortran/declare-target-1.f90: Extend to test
1192 explicit 'to' and 'enter' clause.
1193 * testsuite/libgomp.fortran/declare-target-2.f90: Update accordingly.
1195 2022-05-28 Jakub Jelinek <jakub@redhat.com>
1198 * libgomp.h (GOMP_HAVE_EFFICIENT_ALIGNED_ALLOC): Don't define for
1199 defined(HAVE__ALIGNED_MALLOC) case.
1200 * alloc.c (gomp_aligned_alloc): Move defined(HAVE__ALIGNED_MALLOC)
1201 handling as last option before fallback instead of first.
1202 (gomp_aligned_free): For defined(HAVE__ALIGNED_MALLOC) call
1205 2022-05-27 Jakub Jelinek <jakub@redhat.com>
1207 * testsuite/libgomp.c-c++-common/target-40.c: Modify some existing to
1209 * testsuite/libgomp.c/target-41.c: Likewise.
1211 2022-05-27 Tobias Burnus <tobias@codesourcery.com>
1213 * libgomp.texi (Other new OpenMP 5.1 features): Add
1214 'begin declare target'.
1215 (Other new OpenMP 5.2 features): New.
1217 2022-05-25 Jakub Jelinek <jakub@redhat.com>
1219 * task.c (gomp_task_run_post_handle_dependers): If empty_task
1220 is the last task taskwait depend depends on, wake it up.
1221 Similarly if it is the last child of a taskgroup, use atomic
1222 store instead of decrement and awak taskgroup wait if any.
1223 * testsuite/libgomp.c-c++-common/taskwait-depend-nowait-2.c: New test.
1225 2022-05-24 Andrew Stubbs <ams@codesourcery.com>
1227 * plugin/plugin-gcn.c (EF_AMDGPU_MACH): Add
1228 EF_AMDGPU_MACH_AMDGCN_GFX90a.
1229 (gcn_gfx90a_s): New.
1230 (isa_hsa_name): Support gfx90a.
1231 (isa_code): Likewise.
1233 2022-05-24 Tobias Burnus <tobias@codesourcery.com>
1236 * libgomp.texi (OpenMP 5.1): Set 'taskwait nowait' to 'Y'.
1237 * testsuite/libgomp.fortran/taskwait-depend-nowait-1.f90: New.
1239 2022-05-24 Jakub Jelinek <jakub@redhat.com>
1242 * libgomp_g.h (GOMP_taskwait_depend_nowait): Declare.
1243 * libgomp.map (GOMP_taskwait_depend_nowait): Export at GOMP_5.1.1.
1244 * task.c (empty_task): New function.
1245 (gomp_task_run_post_handle_depend_hash): Declare earlier.
1246 (gomp_task_run_post_handle_depend): Declare.
1247 (GOMP_task): Optimize fn == empty_task if there is nothing to wait
1249 (gomp_task_run_post_handle_dependers): Optimize task->fn == empty_task.
1250 (GOMP_taskwait_depend_nowait): New function.
1251 * testsuite/libgomp.c-c++-common/taskwait-depend-nowait-1.c: New test.
1253 2022-05-23 Tobias Burnus <tobias@codesourcery.com>
1256 * target.c (gomp_map_vars_internal, copy_firstprivate_data):
1257 Support attach for GOMP_MAP_FIRSTPRIVATE.
1258 * testsuite/libgomp.fortran/target-firstprivate-1.f90: New test.
1259 * testsuite/libgomp.fortran/target-firstprivate-2.f90: New test.
1260 * testsuite/libgomp.fortran/target-firstprivate-3.f90: New test.
1262 2022-05-20 Marcel Vollweiler <marcel@codesourcery.com>
1264 * libgomp.map: Added omp_target_memcpy_async and
1265 omp_target_memcpy_rect_async.
1266 * libgomp.texi: Both functions are now supported.
1267 * omp.h.in: Added omp_target_memcpy_async and
1268 omp_target_memcpy_rect_async.
1269 * omp_lib.f90.in: Added interfaces for both new functions.
1270 * omp_lib.h.in: Likewise.
1271 * target.c (ialias_redirect): Added for GOMP_task.
1272 (omp_target_memcpy): Restructured into check and copy part.
1273 (omp_target_memcpy_check): New helper function for omp_target_memcpy and
1274 omp_target_memcpy_async that checks requirements.
1275 (omp_target_memcpy_copy): New helper function for omp_target_memcpy and
1276 omp_target_memcpy_async that performs the memcpy.
1277 (omp_target_memcpy_async_helper): New helper function that is used in
1278 omp_target_memcpy_async for the asynchronous task.
1279 (omp_target_memcpy_async): Added.
1280 (omp_target_memcpy_rect): Restructured into check and copy part.
1281 (omp_target_memcpy_rect_check): New helper function for
1282 omp_target_memcpy_rect and omp_target_memcpy_rect_async that checks
1284 (omp_target_memcpy_rect_copy): New helper function for
1285 omp_target_memcpy_rect and omp_target_memcpy_rect_async that performs
1287 (omp_target_memcpy_rect_async_helper): New helper function that is used
1288 in omp_target_memcpy_rect_async for the asynchronous task.
1289 (omp_target_memcpy_rect_async): Added.
1290 * task.c (ialias): Added for GOMP_task.
1291 * testsuite/libgomp.c-c++-common/target-memcpy-async-1.c: New test.
1292 * testsuite/libgomp.c-c++-common/target-memcpy-async-2.c: New test.
1293 * testsuite/libgomp.c-c++-common/target-memcpy-rect-async-1.c: New test.
1294 * testsuite/libgomp.c-c++-common/target-memcpy-rect-async-2.c: New test.
1295 * testsuite/libgomp.fortran/target-memcpy-async-1.f90: New test.
1296 * testsuite/libgomp.fortran/target-memcpy-async-2.f90: New test.
1297 * testsuite/libgomp.fortran/target-memcpy-rect-async-1.f90: New test.
1298 * testsuite/libgomp.fortran/target-memcpy-rect-async-2.f90: New test.
1300 2022-05-18 Tobias Burnus <tobias@codesourcery.com>
1302 * libgomp.texi (OpenMP 5.1): Set 'inoutset' to Y.
1303 (OpenMP Context Selectors): Add missing comma.
1304 * testsuite/libgomp.fortran/depend-5.f90: Add inoutset test.
1305 * testsuite/libgomp.fortran/depend-6.f90: Likewise.
1306 * testsuite/libgomp.fortran/depend-7.f90: Likewise.
1307 * testsuite/libgomp.fortran/depend-inoutset-1.f90: New test.
1309 2022-05-17 Jakub Jelinek <jakub@redhat.com>
1311 * libgomp.texi (OpenMP 5.1): Remove "Not inside target regions"
1312 comment for omp_display_env feature.
1314 2022-05-17 Tobias Burnus <tobias@codesourcery.com>
1316 * libgomp.texi (Offload-Target Specifics): New chapter; add section
1317 to document OpenMP context selectors.
1319 2022-05-17 Jakub Jelinek <jakub@redhat.com>
1321 * libgomp.h (struct gomp_task_depend_entry): Change is_in type
1322 from bool to unsigned char.
1323 * task.c (gomp_task_handle_depend): Handle GOMP_DEPEND_INOUTSET.
1324 Ignore dependencies where
1325 task->depend[i].is_in && task->depend[i].is_in == ent->is_in
1326 rather than just task->depend[i].is_in && ent->is_in. Remember
1327 whether GOMP_DEPEND_IN loop is needed and guard the loop with that
1329 (gomp_task_maybe_wait_for_dependencies): Handle GOMP_DEPEND_INOUTSET.
1330 Ignore dependencies where elem.is_in && elem.is_in == ent->is_in
1331 rather than just elem.is_in && ent->is_in.
1332 * testsuite/libgomp.c-c++-common/depend-1.c (test): Add task with
1333 inoutset depend-kind.
1334 * testsuite/libgomp.c-c++-common/depend-2.c (test): Likewise.
1335 * testsuite/libgomp.c-c++-common/depend-3.c (test): Likewise.
1336 * testsuite/libgomp.c-c++-common/depend-inoutset-1.c: New test.
1338 2022-05-17 Tobias Burnus <tobias@codesourcery.com>
1340 * libgomp.texi (OpenMP Implementation Status): Add 5.2 table.
1342 2022-05-17 Tobias Burnus <tobias@codesourcery.com>
1344 * libgomp.texi (OpenMP 5.1): Set omp_all_memory to 'Y'.
1345 * testsuite/libgomp.fortran/depend-5.f90: New test.
1346 * testsuite/libgomp.fortran/depend-6.f90: New test.
1347 * testsuite/libgomp.fortran/depend-7.f90: New test.
1349 2022-05-16 Marcel Vollweiler <marcel@codesourcery.com>
1351 * testsuite/libgomp.c++/target-has-device-addr-7.C: New test.
1352 * testsuite/libgomp.c++/target-has-device-addr-8.C: New test.
1353 * testsuite/libgomp.c++/target-has-device-addr-9.C: New test.
1355 2022-05-13 Tobias Burnus <tobias@codesourcery.com>
1357 * testsuite/libgomp.fortran/target-nowait-array-section.f90: New test.
1359 2022-05-13 Tobias Burnus <tobias@codesourcery.com>
1361 * testsuite/libgomp.fortran/target-nowait-array-section.f90: New test.
1363 2022-05-13 Thomas Schwinge <thomas@codesourcery.com>
1365 * plugin/Makefrag.am (libgomp_plugin_nvptx_la_CPPFLAGS)
1366 [PLUGIN_NVPTX_DYNAMIC]: Don't append '$(PLUGIN_NVPTX_CPPFLAGS)'.
1367 (libgomp_plugin_nvptx_la_LDFLAGS) [PLUGIN_NVPTX_DYNAMIC]: Don't
1368 append '$(PLUGIN_NVPTX_LDFLAGS)'.
1369 * Makefile.in: Regenerate.
1371 2022-05-12 Thomas Schwinge <thomas@codesourcery.com>
1373 * Makefile.am (libgomp_la_LIBADD): Initialize.
1374 * plugin/configfrag.ac (DL_LIBS): New.
1375 (PLUGIN_GCN_LIBS): Remove.
1376 (PLUGIN_NVPTX_LIBS): Don't set in the 'PLUGIN_NVPTX_DYNAMIC' case.
1377 * plugin/Makefrag.am (libgomp_la_LIBADD)
1378 (libgomp_plugin_gcn_la_LIBADD): Consider '$(DL_LIBS)'.
1379 (libgomp_plugin_nvptx_la_LIBADD) <PLUGIN_NVPTX_DYNAMIC>: Likewise.
1380 * Makefile.in: Regenerate.
1381 * config.h.in: Likewise.
1382 * configure: Likewise.
1383 * testsuite/Makefile.in: Likewise.
1385 2022-05-12 Thomas Schwinge <thomas@codesourcery.com>
1387 * plugin/Makefrag.am: Handle 'PLUGIN_NVPTX_DYNAMIC'.
1388 * plugin/configfrag.ac (PLUGIN_NVPTX_DYNAMIC): Change
1389 'AC_DEFINE_UNQUOTED' into 'AM_CONDITIONAL'.
1390 * plugin/plugin-nvptx.c: Split 'PLUGIN_NVPTX_DYNAMIC' into
1391 'PLUGIN_NVPTX_INCLUDE_SYSTEM_CUDA_H' and
1392 'PLUGIN_NVPTX_LINK_LIBCUDA'.
1393 * Makefile.in: Regenerate.
1394 * config.h.in: Likewise.
1395 * configure: Likewise.
1397 2022-05-12 Thomas Schwinge <thomas@codesourcery.com>
1399 * plugin/configfrag.ac: Don't 'AC_SUBST' and 'AC_DEFINE_UNQUOTED'
1400 for 'PLUGIN_GCN', 'PLUGIN_NVPTX'.
1401 * Makefile.in: Regenerate.
1402 * config.h.in: Likewise.
1403 * configure: Likewise.
1404 * testsuite/Makefile.in: Likewise.
1406 2022-05-12 Jakub Jelinek <jakub@redhat.com>
1408 * libgomp.h (struct gomp_task): Add depend_all_memory member.
1409 * task.c (gomp_init_task): Initialize depend_all_memory.
1410 (gomp_task_handle_depend): Handle omp_all_memory.
1411 (gomp_task_run_post_handle_depend_hash): Clear
1412 parent->depend_all_memory if equal to current task.
1413 (gomp_task_maybe_wait_for_dependencies): Handle omp_all_memory.
1414 * testsuite/libgomp.c-c++-common/depend-1.c: New test.
1415 * testsuite/libgomp.c-c++-common/depend-2.c: New test.
1416 * testsuite/libgomp.c-c++-common/depend-3.c: New test.
1418 2022-05-11 Thomas Schwinge <thomas@codesourcery.com>
1420 * plugin/configfrag.ac: Remove '--with-hsa-runtime',
1421 '--with-hsa-runtime-include', '--with-hsa-runtime-lib' processing.
1422 * Makefile.in: Regenerate.
1423 * configure: Likewise.
1424 * testsuite/Makefile.in: Likewise.
1426 2022-05-11 Thomas Schwinge <thomas@codesourcery.com>
1428 * plugin/Makefrag.am (libgomp_plugin_gcn_la_CPPFLAGS): Don't
1429 consider 'PLUGIN_GCN_CPPFLAGS'.
1430 (libgomp_plugin_gcn_la_LDFLAGS): Don't consider
1431 'PLUGIN_GCN_LDFLAGS'.
1432 * plugin/configfrag.ac (PLUGIN_GCN_CPPFLAGS, PLUGIN_GCN_LDFLAGS):
1434 * Makefile.in: Regenerate.
1435 * configure: Likewise.
1436 * testsuite/Makefile.in: Likewise.
1438 2022-05-11 Thomas Schwinge <thomas@codesourcery.com>
1440 * plugin/configfrag.ac (HSA_RUNTIME_CPPFLAGS)
1441 (HSA_RUNTIME_LDFLAGS): Remove.
1442 * configure: Regenerate.
1444 2022-05-11 Thomas Schwinge <thomas@codesourcery.com>
1446 * testsuite/lib/libgomp.exp (libgomp_init): Don't
1447 'append always_ld_library_path ":$hsa_runtime_lib"'.
1448 * testsuite/libgomp-test-support.exp.in (hsa_runtime_lib): Don't set.
1450 2022-05-10 Thomas Schwinge <thomas@codesourcery.com>
1452 * testsuite/libgomp.fortran/use_device_addr-5.f90: Fix up
1453 multi-device testing.
1455 2022-05-06 Marcel Vollweiler <marcel@codesourcery.com>
1457 * libgomp.map: Added omp_target_is_accessible.
1458 * libgomp.texi: Tagged omp_target_is_accessible as supported.
1459 * omp.h.in: Added omp_target_is_accessible.
1460 * omp_lib.f90.in: Added interface for omp_target_is_accessible.
1461 * omp_lib.h.in: Likewise.
1462 * target.c (omp_target_is_accessible): Added implementation of
1463 omp_target_is_accessible.
1464 * testsuite/libgomp.c-c++-common/target-is-accessible-1.c: New test.
1465 * testsuite/libgomp.fortran/target-is-accessible-1.f90: New test.
1467 2022-05-05 Sandra Loosemore <sandra@codesourcery.com>
1469 * libgomp.texi (OpenMP 5.0): Feature is now fully supported.
1471 2022-05-04 Tobias Burnus <tobias@codesourcery.com>
1473 * plugin/plugin-gcn.c (isa_matches_agent): Suggest -foffload-options.
1475 2022-05-04 Tobias Burnus <tobias@codesourcery.com>
1477 * testsuite/libgomp.fortran/use_device_addr-5.f90: New test.
1479 2022-05-03 Marcel Vollweiler <marcel@codesourcery.com>
1481 * libgomp.map: Added omp_get_mapped_ptr.
1482 * libgomp.texi: Tagged omp_get_mapped_ptr as supported.
1483 * omp.h.in: Added omp_get_mapped_ptr.
1484 * omp_lib.f90.in: Added interface for omp_get_mapped_ptr.
1485 * omp_lib.h.in: Likewise.
1486 * target.c (omp_get_mapped_ptr): Added implementation of
1488 * testsuite/libgomp.c-c++-common/get-mapped-ptr-1.c: New test.
1489 * testsuite/libgomp.c-c++-common/get-mapped-ptr-2.c: New test.
1490 * testsuite/libgomp.c-c++-common/get-mapped-ptr-3.c: New test.
1491 * testsuite/libgomp.c-c++-common/get-mapped-ptr-4.c: New test.
1492 * testsuite/libgomp.fortran/get-mapped-ptr-1.f90: New test.
1493 * testsuite/libgomp.fortran/get-mapped-ptr-2.f90: New test.
1494 * testsuite/libgomp.fortran/get-mapped-ptr-3.f90: New test.
1495 * testsuite/libgomp.fortran/get-mapped-ptr-4.f90: New test.
1497 2022-04-28 Thomas Schwinge <thomas@codesourcery.com>
1500 * testsuite/libgomp.oacc-fortran/print-1.f90: Add OpenACC
1501 privatization scanning. For GCN offloading compilation, raise
1502 '-mgang-private-size'.
1504 2022-04-26 Jakub Jelinek <jakub@redhat.com>
1507 * work.c (gomp_init_work_share): Don't mask of adjustment for
1508 dynamic long long realignment if struct gomp_work_share has smaller
1509 alignof than long long.
1510 * loop.c (GOMP_loop_start): Don't use inline_ordered_team_ids if
1511 struct gomp_work_share has smaller alignof than long long or if
1512 sizeof (struct gomp_work_share) is smaller than
1513 INLINE_ORDERED_TEAM_IDS_OFF.
1514 * loop_ull.c (GOMP_loop_ull_start): Likewise.
1515 * sections.c (GOMP_sections2_start): Likewise.
1517 2022-04-25 Jakub Jelinek <jakub@redhat.com>
1518 Thomas Schwinge <thomas@codesourcery.com>
1521 * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Adjust.
1523 2022-04-13 Jakub Jelinek <jakub@redhat.com>
1525 * libgomp.texi: Fix a typo - mutexinouset -> mutexinoutset.
1527 2022-04-06 Thomas Schwinge <thomas@codesourcery.com>
1529 * plugin/cuda/cuda.h: Remove file.
1530 * plugin/plugin-nvptx.c [PLUGIN_NVPTX_DYNAMIC]: Include
1531 "cuda/cuda.h" instead of <cuda.h>.
1532 * plugin/configfrag.ac <PLUGIN_NVPTX_DYNAMIC>: Don't set
1533 'PLUGIN_NVPTX_CPPFLAGS'.
1534 * configure: Regenerate.
1536 2022-04-05 Chung-Lin Tang <cltang@codesourcery.com>
1538 * testsuite/libgomp.fortran/use_device_ptr-4.f90: New testcase.
1540 2022-04-04 Tom de Vries <tdevries@suse.de>
1542 * testsuite/libgomp.fortran/examples-4/declare_target-1.f90: Use
1543 on_device_arch_nvptx instead of offload_target_nvptx.
1544 * testsuite/libgomp.fortran/examples-4/declare_target-2.f90: Same.
1546 2022-04-01 Tom de Vries <tdevries@suse.de>
1548 * testsuite/libgomp.fortran/examples-4/declare_target-1.f90: Define
1550 * testsuite/libgomp.fortran/examples-4/declare_target-2.f90: Same.
1552 2022-04-01 Tom de Vries <tdevries@suse.de>
1554 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-7.c: Fix
1557 2022-03-29 Chenghua Xu <xuchenghua@loongson.cn>
1558 Lulu Cheng <chenglulu@loongson.cn>
1560 * configure.tgt: Add LoongArch triplet.
1562 2022-03-28 Tom de Vries <tdevries@suse.de>
1564 * plugin/configfrag.ac: Use /$(libexecdir:\$(exec_prefix)/%=%)/
1565 instead of /libexec/.
1566 * configure: Regenerate.
1568 2022-03-25 Tom de Vries <tdevries@suse.de>
1571 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Reduce
1573 * testsuite/libgomp.oacc-c-c++-common/vred2d-128.c: Same.
1574 * testsuite/libgomp.oacc-fortran/parallel-dims.f90: Same.
1576 2022-03-23 Tobias Burnus <tobias@codesourcery.com>
1578 PR middle-end/104285
1579 * testsuite/libgomp.c++/target-same-name-2-a.C: New test.
1580 * testsuite/libgomp.c++/target-same-name-2-b.C: New test.
1581 * testsuite/libgomp.c++/target-same-name-2.C: New test.
1582 * testsuite/libgomp.c-c++-common/target-same-name-1-a.c: New test.
1583 * testsuite/libgomp.c-c++-common/target-same-name-1-b.c: New test.
1584 * testsuite/libgomp.c-c++-common/target-same-name-1.c: New test.
1586 2022-03-22 Tom de Vries <tdevries@suse.de>
1590 * testsuite/libgomp.c/pr104783-2.c: New test.
1592 2022-03-18 Tobias Burnus <tobias@codesourcery.com>
1595 * testsuite/libgomp.fortran/associate4.f90: New test.
1597 2022-03-18 Tom de Vries <tdevries@suse.de>
1600 * testsuite/libgomp.c/pr104952-1.c: New test.
1601 * testsuite/libgomp.c/pr104952-2.c: New test.
1603 2022-03-18 Jakub Jelinek <jakub@redhat.com>
1605 * config/linux/affinity.c (gomp_affinity_init_numa_domains): Move seen
1606 variable next to pl variable.
1608 2022-03-17 Thomas Schwinge <thomas@codesourcery.com>
1610 * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c:
1612 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-g.c: Likewise.
1613 * testsuite/libgomp.oacc-fortran/if-1.f90: Likewise.
1615 2022-03-17 Thomas Schwinge <thomas@codesourcery.com>
1618 * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c: Enhance.
1619 * testsuite/libgomp.oacc-fortran/if-1.f90: Likewise.
1621 2022-03-16 Marcel Vollweiler <marcel@codesourcery.com>
1623 * fortran.c (omp_set_num_teams_8_): Call omp_set_num_teams instead of
1624 omp_set_max_active_levels.
1625 * testsuite/libgomp.fortran/icv-8.f90: New test.
1627 2022-03-16 Thomas Schwinge <thomas@codesourcery.com>
1630 * testsuite/libgomp.oacc-c-c++-common/host_data-7.c: Adjust.
1632 2022-03-13 Tobias Burnus <tobias@codesourcery.com>
1634 * libgomp.texi: Fix typo.
1636 2022-03-12 Thomas Schwinge <thomas@codesourcery.com>
1638 PR middle-end/100280
1639 PR middle-end/104892
1640 * testsuite/libgomp.oacc-c-c++-common/declare-vla.c: Adjust.
1641 * testsuite/libgomp.oacc-c-c++-common/default-1.c: Likewise.
1642 * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c:
1644 * testsuite/libgomp.oacc-c-c++-common/kernels-reduction-1.c:
1646 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Likewise.
1647 * testsuite/libgomp.oacc-fortran/asyncwait-1.f90: Likewise.
1648 * testsuite/libgomp.oacc-fortran/kernels-reduction-1.f90:
1651 2022-03-12 Thomas Schwinge <thomas@codesourcery.com>
1653 PR middle-end/104892
1654 * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c: Point
1656 * testsuite/libgomp.oacc-c-c++-common/default-1.c: Likewise,
1657 enable '--param=openacc-kernels=decompose' and adjust.
1658 * testsuite/libgomp.oacc-c-c++-common/kernels-reduction-1.c:
1660 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Likewise.
1661 * testsuite/libgomp.oacc-fortran/kernels-reduction-1.f90:
1664 2022-03-12 Thomas Schwinge <thomas@codesourcery.com>
1667 * testsuite/libgomp.oacc-c-c++-common/default-1.c: Enhance.
1668 * testsuite/libgomp.oacc-c-c++-common/kernels-reduction-1.c: Likewise.
1669 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Likewise.
1670 * testsuite/libgomp.oacc-fortran/kernels-reduction-1.f90: Likewise.
1672 2022-03-12 Thomas Schwinge <thomas@codesourcery.com>
1674 PR middle-end/100280
1675 PR middle-end/104086
1676 * testsuite/libgomp.oacc-c-c++-common/declare-vla-kernels-decompose-ice-1.c:
1678 * testsuite/libgomp.oacc-c-c++-common/declare-vla-kernels-decompose.c:
1680 * testsuite/libgomp.oacc-c-c++-common/declare-vla.c: ... into
1682 * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c:
1685 2022-03-10 Hafiz Abid Qadeer <abidh@codesourcery.com>
1687 * testsuite/libgomp.fortran/allocate-1.f90: Remove pool_size
1688 trait. Test last index in w and v array. Remove redundant
1689 assignment to V(1). Move alignment checks at the end of
1692 2022-03-10 Tom de Vries <tdevries@suse.de>
1694 * testsuite/libgomp.c/pr104783.c: New test.
1696 2022-03-10 Thomas Schwinge <thomas@codesourcery.com>
1699 PR middle-end/102330
1700 PR middle-end/104774
1701 * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c:
1703 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-1.c:
1705 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-2.c:
1707 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-3.c:
1709 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-4.c:
1711 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-5.c:
1713 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-vector-1.c:
1715 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-vector-2.c:
1717 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-2.c:
1719 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-3.c:
1721 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-4.c:
1723 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-5.c:
1725 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-6.c:
1727 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-7.c:
1729 * testsuite/libgomp.oacc-fortran/optional-private.f90: Likewise.
1730 * testsuite/libgomp.oacc-fortran/privatized-ref-1.f95: Likewise.
1731 * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Likewise.
1733 2022-03-10 Thomas Schwinge <thomas@codesourcery.com>
1736 * testsuite/libgomp.oacc-fortran/routine-1.f90: Enhance.
1737 * testsuite/libgomp.oacc-fortran/routine-2.f90: Likewise.
1738 * testsuite/libgomp.oacc-fortran/routine-3.f90: Likewise.
1739 * testsuite/libgomp.oacc-fortran/routine-9.f90: Likewise.
1741 2022-03-04 Thomas Schwinge <thomas@codesourcery.com>
1744 * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c: Fix
1745 expected diagnostics.
1747 2022-03-04 Thomas Schwinge <thomas@codesourcery.com>
1749 PR middle-end/104784
1750 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-1.c:
1751 Test with '--param=openacc-kernels=decompose'.
1752 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-2.c:
1754 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-3.c:
1756 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-4.c:
1758 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-5.c:
1760 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-1.c:
1762 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-2.c:
1764 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-3.c:
1766 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-4.c:
1768 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-5.c:
1770 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-6.c:
1772 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-vector-1.c:
1774 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-vector-2.c:
1776 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-1.c:
1778 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-2.c:
1780 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-3.c:
1782 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-4.c:
1784 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-5.c:
1786 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-6.c:
1788 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-7.c:
1790 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-1.f90:
1792 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-2.f90:
1794 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-3.f90:
1796 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-6.f90:
1798 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-vector-1.f90:
1800 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-vector-2.f90:
1802 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-1.f90:
1804 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-2.f90:
1806 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-3.f90:
1808 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-4.f90:
1810 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-5.f90:
1812 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-6.f90:
1814 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-7.f90:
1817 2022-03-04 Thomas Schwinge <thomas@codesourcery.com>
1819 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-1.c:
1820 Test '-fopt-info-omp-all'.
1821 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-2.c:
1823 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-3.c:
1825 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-4.c:
1827 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-5.c:
1829 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-1.c:
1831 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-2.c:
1833 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-3.c:
1835 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-4.c:
1837 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-5.c:
1839 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-6.c:
1841 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-vector-1.c:
1843 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-vector-2.c:
1845 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-1.c:
1847 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-2.c:
1849 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-3.c:
1851 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-4.c:
1853 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-5.c:
1855 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-6.c:
1857 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-7.c:
1859 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-1.f90:
1861 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-2.f90:
1863 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-3.f90:
1865 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-6.f90:
1867 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-vector-1.f90:
1869 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-vector-2.f90:
1871 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-1.f90:
1873 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-2.f90:
1875 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-3.f90:
1877 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-4.f90:
1879 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-5.f90:
1881 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-6.f90:
1883 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-7.f90:
1886 2022-03-04 Thomas Schwinge <thomas@codesourcery.com>
1888 PR middle-end/100280
1889 PR middle-end/104132
1890 PR middle-end/104133
1891 * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c:
1894 2022-03-04 Thomas Schwinge <thomas@codesourcery.com>
1896 PR middle-end/100280
1897 * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-1.c: Adjust.
1898 * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c:
1901 2022-03-04 Thomas Schwinge <thomas@codesourcery.com>
1903 PR middle-end/100280
1904 * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-1.c: Adjust.
1905 * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c:
1908 2022-02-28 Tom de Vries <tdevries@suse.de>
1910 * testsuite/libgomp.c/declare-variant-3-sm30.c: Add -foffload=-mptx=_.
1911 * testsuite/libgomp.c/declare-variant-3-sm35.c: Same.
1912 * testsuite/libgomp.c/declare-variant-3-sm53.c: Same.
1913 * testsuite/libgomp.c/declare-variant-3-sm70.c: Same.
1914 * testsuite/libgomp.c/declare-variant-3-sm75.c: Same.
1915 * testsuite/libgomp.c/declare-variant-3-sm80.c: Same.
1917 2022-02-24 Tom de Vries <tdevries@suse.de>
1919 * testsuite/libgomp.c/declare-variant-3-sm30.c: New test.
1920 * testsuite/libgomp.c/declare-variant-3-sm35.c: New test.
1921 * testsuite/libgomp.c/declare-variant-3-sm53.c: New test.
1922 * testsuite/libgomp.c/declare-variant-3-sm70.c: New test.
1923 * testsuite/libgomp.c/declare-variant-3-sm75.c: New test.
1924 * testsuite/libgomp.c/declare-variant-3-sm80.c: New test.
1925 * testsuite/libgomp.c/declare-variant-3.h: New header file.
1927 2022-02-22 Thomas Schwinge <thomas@codesourcery.com>
1929 * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Fix OpenACC
1930 gang-redundant execution.
1932 2022-02-22 Tom de Vries <tdevries@suse.de>
1935 * config/nvptx/bar.c (generation_to_barrier): New function, copied
1936 from config/rtems/bar.c.
1937 (futex_wait, futex_wake): New function.
1938 (do_spin, do_wait): New function, copied from config/linux/wait.h.
1939 (gomp_barrier_wait_end, gomp_barrier_wait_last)
1940 (gomp_team_barrier_wake, gomp_team_barrier_wait_end):
1941 (gomp_team_barrier_wait_cancel_end, gomp_team_barrier_cancel): Remove
1942 and replace with include of config/linux/bar.c.
1943 * config/nvptx/bar.h (gomp_barrier_t): Add fields waiters and lock.
1944 (gomp_barrier_init): Init new fields.
1945 * testsuite/libgomp.c-c++-common/task-detach-6.c: Remove nvptx-specific
1947 * testsuite/libgomp.c/pr99555-1.c: Same.
1948 * testsuite/libgomp.fortran/task-detach-6.f90: Same.
1950 2022-02-22 Tom de Vries <tdevries@suse.de>
1953 * testsuite/libgomp.c++/pr96390.C: Add additional-option
1954 -foffload=-Wa,--verify for nvptx.
1955 * testsuite/libgomp.c-c++-common/pr96390.c: Same.
1957 2022-02-15 Tobias Burnus <tobias@codesourcery.com>
1959 * testsuite/libgomp.fortran/depend-4.f90: New test.
1961 2022-02-10 Tobias Burnus <tobias@codesourcery.com>
1964 * testsuite/libgomp.c++/target-virtual-1.C: New test.
1966 2022-02-10 Marcel Vollweiler <marcel@codesourcery.com>
1968 * libgomp.texi: Updated entry for HAS_DEVICE_ADDR.
1969 * target.c (copy_firstprivate_data): Copy only if host address is not
1971 * testsuite/libgomp.c++/target-has-device-addr-2.C: New test.
1972 * testsuite/libgomp.c++/target-has-device-addr-4.C: New test.
1973 * testsuite/libgomp.c++/target-has-device-addr-5.C: New test.
1974 * testsuite/libgomp.c++/target-has-device-addr-6.C: New test.
1975 * testsuite/libgomp.c-c++-common/target-has-device-addr-1.c: New test.
1976 * testsuite/libgomp.c/target-has-device-addr-3.c: New test.
1977 * testsuite/libgomp.fortran/target-has-device-addr-1.f90: New test.
1978 * testsuite/libgomp.fortran/target-has-device-addr-2.f90: New test.
1979 * testsuite/libgomp.fortran/target-has-device-addr-3.f90: New test.
1980 * testsuite/libgomp.fortran/target-has-device-addr-4.f90: New test.
1982 2022-02-08 Jakub Jelinek <jakub@redhat.com>
1985 * task.c (gomp_task_run_post_handle_dependers): If parent is NULL,
1987 * testsuite/libgomp.c/pr104385.c: New test.
1989 2022-02-04 Tobias Burnus <tobias@codesourcery.com>
1991 * testsuite/libgomp.fortran/allocate-1.f90: Remove spurious
1992 STOP of previous commit.
1994 2022-02-04 Tobias Burnus <tobias@codesourcery.com>
1996 * testsuite/libgomp.fortran/allocate-1.c (is_64bit_aligned): Renamed
1997 from is_64bit_aligned_.
1998 * testsuite/libgomp.fortran/allocate-1.f90: Fix interface decl
1999 and use it, more implicit none, remove unused argument.
2001 2022-02-03 David Seifert <soap@gentoo.org>
2002 Jakub Jelinek <jakub@redhat.com>
2004 * configure.ac: Support --disable-werror.
2005 * configure: Regenerate.
2007 2022-02-01 Tom de Vries <tdevries@suse.de>
2009 * testsuite/libgomp.oacc-c-c++-common/private-atomic-1.c: Remove
2011 * testsuite/libgomp.oacc-fortran/private-atomic-1-vector.f90: Same.
2012 * testsuite/libgomp.oacc-fortran/private-atomic-1-worker.f90: Same.
2014 2022-02-01 Tom de Vries <tdevries@suse.de>
2016 * testsuite/libgomp.oacc-c-c++-common/broadcast-many.c: Reduce
2017 num_workers for nvidia accelerator to fix libgomp error 'insufficient
2019 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-4.c:
2021 * testsuite/libgomp.oacc-c-c++-common/reduction-7.c: Same.
2023 2022-02-01 Tom de Vries <tdevries@suse.de>
2025 * testsuite/libgomp.fortran/examples-4/declare_target-1.f90: Reduce
2027 * testsuite/libgomp.fortran/examples-4/declare_target-2.f90: Same.
2029 2022-01-31 Martin Liska <mliska@suse.cz>
2031 * acinclude.m4: Detect *_ld_is_mold and use it.
2032 * configure: Regenerate.
2034 2022-01-27 Tobias Burnus <tobias@codesourcery.com>
2036 * libgomp.texi (OpenMP 5.0): Update implementation status.
2038 2022-01-21 Thomas Schwinge <thomas@codesourcery.com>
2040 * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c: Strengthen.
2041 * testsuite/libgomp.oacc-c-c++-common/loop-gwv-2.c: Likewise.
2042 * testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c: Likewise.
2043 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c: Likewise.
2044 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c: Likewise.
2045 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c: Likewise.
2046 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c: Likewise.
2047 * testsuite/libgomp.oacc-c-c++-common/loop-red-wv-1.c: Likewise.
2048 * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c: Likewise.
2049 * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c: Likewise.
2050 * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c: Likewise.
2051 * testsuite/libgomp.oacc-c-c++-common/routine-gwv-1.c: Likewise.
2052 * testsuite/libgomp.oacc-c-c++-common/routine-v-1.c: Likewise.
2053 * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c: Likewise.
2054 * testsuite/libgomp.oacc-c-c++-common/routine-wv-1.c: Likewise.
2056 2022-01-19 Marcel Vollweiler <marcel@codesourcery.com>
2058 * config/gcn/icv-device.c: Make GOMP_DEVICE_NUM_VAR public (remove
2059 "static") to make the device num available in the offload image.
2061 2022-01-19 Martin Liska <mliska@suse.cz>
2062 Thomas Schwinge <thomas@codesourcery.com>
2064 * testsuite/libgomp.oacc-c++/privatized-ref-2.C: Update scanning
2066 * testsuite/libgomp.oacc-c++/privatized-ref-3.C: Likewise.
2067 * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c:
2069 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-2.c: Likewise.
2070 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Likewise.
2071 * testsuite/libgomp.oacc-c-c++-common/pr85486.c: Likewise.
2072 * testsuite/libgomp.oacc-c-c++-common/pr95270-1.c: Likewise.
2073 * testsuite/libgomp.oacc-c-c++-common/routine-nohost-2.c:
2075 * testsuite/libgomp.oacc-c-c++-common/struct-copyout-1.c:
2077 * testsuite/libgomp.oacc-c-c++-common/struct-copyout-2.c:
2079 * testsuite/libgomp.oacc-c-c++-common/vector-length-64-1.c:
2081 * testsuite/libgomp.oacc-fortran/attach-descriptor-1.f90:
2083 * testsuite/libgomp.oacc-fortran/derivedtypes-arrays-1.f90:
2085 * testsuite/libgomp.oacc-fortran/kernels-loop-2.f95: Likewise.
2086 * testsuite/libgomp.oacc-fortran/parallel-dims.f90: Likewise.
2087 * testsuite/libgomp.oacc-fortran/privatized-ref-1.f95: Likewise.
2089 2022-01-18 Martin Liska <mliska@suse.cz>
2091 * testsuite/libgomp.oacc-c++/privatized-ref-2.C: Update keyword
2093 * testsuite/libgomp.oacc-c++/privatized-ref-3.C: Likewise.
2094 * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c: Likewise.
2095 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-2.c: Likewise.
2096 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Likewise.
2097 * testsuite/libgomp.oacc-c-c++-common/pr85486.c: Likewise.
2098 * testsuite/libgomp.oacc-c-c++-common/pr95270-1.c: Likewise.
2099 * testsuite/libgomp.oacc-c-c++-common/routine-nohost-2.c: Likewise.
2100 * testsuite/libgomp.oacc-c-c++-common/struct-copyout-1.c: Likewise.
2101 * testsuite/libgomp.oacc-c-c++-common/struct-copyout-2.c: Likewise.
2102 * testsuite/libgomp.oacc-c-c++-common/vector-length-64-1.c: Likewise.
2103 * testsuite/libgomp.oacc-fortran/attach-descriptor-1.f90: Likewise.
2104 * testsuite/libgomp.oacc-fortran/derivedtypes-arrays-1.f90: Likewise.
2105 * testsuite/libgomp.oacc-fortran/kernels-loop-2.f95: Likewise.
2106 * testsuite/libgomp.oacc-fortran/parallel-dims.f90: Likewise.
2107 * testsuite/libgomp.oacc-fortran/privatized-ref-1.f95: Likewise.
2109 2022-01-17 Thomas Schwinge <thomas@codesourcery.com>
2111 * testsuite/libgomp.oacc-c++/privatized-ref-2.C: Extend.
2112 * testsuite/libgomp.oacc-c++/privatized-ref-3.C: Likewise.
2113 * testsuite/libgomp.oacc-fortran/privatized-ref-1.f95: Likewise.
2115 2022-01-17 Julian Brown <julian@codesourcery.com>
2116 Thomas Schwinge <thomas@codesourcery.com>
2118 * testsuite/libgomp.oacc-fortran/privatized-ref-1.f95: New test.
2119 * testsuite/libgomp.oacc-c++/privatized-ref-2.C: New test.
2120 * testsuite/libgomp.oacc-c++/privatized-ref-3.C: New test.
2122 2022-01-16 Kwok Cheung Yeung <kcy@codesourcery.com>
2123 Andrew Stubbs <ams@codesourcery.com>
2125 * plugin/plugin-gcn.c (parse_target_attributes): Automatically set
2126 the number of teams and threads if necessary.
2127 (gcn_exec): Automatically set the number of gangs and workers if
2130 2022-01-13 Hafiz Abid Qadeer <abidh@codesourcery.com>
2132 * testsuite/libgomp.fortran/allocate-1.c: New test.
2133 * testsuite/libgomp.fortran/allocate-1.f90: New test.
2134 * libgomp.texi: Remove string that says that allocate clause
2135 support is for C/C++ only.
2137 2022-01-13 Thomas Schwinge <thomas@codesourcery.com>
2139 * testsuite/libgomp.c-c++-common/on_device_arch.h
2140 (any_device_arch, any_device_arch_intel_mic): New.
2141 * testsuite/lib/libgomp.exp
2142 (check_effective_target_offload_device_any_intel_mic): New.
2143 * testsuite/libgomp.c-c++-common/target-45.c: Use it.
2144 * testsuite/libgomp.fortran/target10.f90: Likewise.
2146 2022-01-13 Thomas Schwinge <thomas@codesourcery.com>
2148 PR tree-optimization/102192
2149 * testsuite/libgomp.oacc-fortran/routine-10.f90: Document current
2150 '-Wuninitialized' diagnostics.
2152 2022-01-13 Thomas Schwinge <thomas@codesourcery.com>
2154 * testsuite/libgomp.oacc-c-c++-common/vred2d-128.c: Document
2155 current '-Wuninitialized' diagnostics.
2156 * testsuite/libgomp.oacc-fortran/data-5.f90: Likewise.
2157 * testsuite/libgomp.oacc-fortran/gemm-2.f90: Likewise.
2158 * testsuite/libgomp.oacc-fortran/gemm.f90: Likewise.
2159 * testsuite/libgomp.oacc-fortran/optional-reduction.f90: Likewise.
2160 * testsuite/libgomp.oacc-fortran/parallel-reduction.f90: Likewise.
2161 * testsuite/libgomp.oacc-fortran/pr70643.f90: Likewise.
2162 * testsuite/libgomp.oacc-fortran/pr96628-part1.f90: Likewise.
2163 * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Likewise.
2164 * testsuite/libgomp.oacc-fortran/reduction-5.f90: Likewise.
2165 * testsuite/libgomp.oacc-fortran/reduction-7.f90: Likewise.
2166 * testsuite/libgomp.oacc-fortran/reference-reductions.f90:
2169 2022-01-13 Thomas Schwinge <thomas@codesourcery.com>
2171 * testsuite/libgomp.c/address-space-1.c: Remove 'dg-xfail-run-if'
2172 for 'offload_device_intel_mic'.
2174 2022-01-13 Julian Brown <julian@codesourcery.com>
2175 Thomas Schwinge <thomas@codesourcery.com>
2177 * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-1.c: Remove GCN
2178 offloading execution XFAIL.
2180 2022-01-13 Thomas Schwinge <thomas@codesourcery.com>
2182 PR middle-end/100280
2183 * testsuite/libgomp.oacc-c-c++-common/declare-vla-kernels-decompose-ice-1.c:
2185 * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-1.c: Likewise.
2186 * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c:
2189 2022-01-13 Thomas Schwinge <thomas@codesourcery.com>
2191 * testsuite/libgomp.oacc-c-c++-common/declare-vla-kernels-decompose-ice-1.c:
2193 * testsuite/libgomp.oacc-c-c++-common/declare-vla-kernels-decompose.c:
2195 * testsuite/libgomp.oacc-c-c++-common/declare-vla.c: Likewise.
2196 * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-1.c: Likewise.
2197 * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-2.c: Likewise.
2198 * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-3.c: Likewise.
2199 * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c:
2201 * testsuite/libgomp.oacc-fortran/asyncwait-1.f90: Likewise.
2202 * testsuite/libgomp.oacc-fortran/asyncwait-2.f90: Likewise.
2203 * testsuite/libgomp.oacc-fortran/asyncwait-3.f90: Likewise.
2204 * testsuite/libgomp.oacc-fortran/pr94358-1.f90: Likewise.
2206 2022-01-04 Tobias Burnus <tobias@codesourcery.com>
2208 * testsuite/libgomp.c-c++-common/target-45.c: Iterate over all devices.
2209 * testsuite/libgomp.fortran/target10.f90: Likewise.
2211 2022-01-04 Chung-Lin Tang <cltang@codesourcery.com>
2213 * plugin/plugin-gcn.c (GOMP_OFFLOAD_load_image): Change uses of STRINGX
2214 into XSTRING when looking for GOMP_DEVICE_NUM_VAR in offload image.
2215 * plugin/plugin-nvptx.c (GOMP_OFFLOAD_load_image): Likewise.
2217 2022-01-03 Jakub Jelinek <jakub@redhat.com>
2219 * libgomp.texi: Bump @copying's copyright year.
2221 2021-12-13 Tobias Burnus <tobias@codesourcery.com>
2223 * libgomp.texi (OpenMP 5.1): Set Fortran support for atomic to 'Y'.
2224 * testsuite/libgomp.fortran/atomic-19.f90: New test.
2226 2021-12-10 Andrew Stubbs <ams@codesourcery.com>
2228 * plugin/plugin-gcn.c (struct gcn_image_desc): Remove global_variables.
2229 (GOMP_OFFLOAD_load_image): Locate the offload variables via the
2230 table, not individual symbols.
2232 2021-12-09 Chung-Lin Tang <cltang@codesourcery.com>
2234 * testsuite/libgomp.c++/target-lambda-1.C: Only run under
2235 "target offload_device_nonshared_as"
2236 * testsuite/libgomp.c++/target-this-3.C: Likewise.
2237 * testsuite/libgomp.c++/target-this-4.C: Likewise.
2239 2021-12-08 Chung-Lin Tang <cltang@codesourcery.com>
2241 * target.c (gomp_map_vars_existing): Make sure attached pointer is
2242 not overwritten during cross-host/device copying.
2243 (gomp_update): Likewise.
2244 (gomp_exit_data): Likewise.
2245 * testsuite/libgomp.c++/target-11.C: Adjust testcase.
2246 * testsuite/libgomp.c++/target-12.C: Likewise.
2247 * testsuite/libgomp.c++/target-15.C: Likewise.
2248 * testsuite/libgomp.c++/target-16.C: Likewise.
2249 * testsuite/libgomp.c++/target-17.C: Likewise.
2250 * testsuite/libgomp.c++/target-21.C: Likewise.
2251 * testsuite/libgomp.c++/target-23.C: Likewise.
2252 * testsuite/libgomp.c/target-23.c: Likewise.
2253 * testsuite/libgomp.c/target-29.c: Likewise.
2254 * testsuite/libgomp.c-c++-common/target-implicit-map-2.c: New testcase.
2256 2021-12-08 Chung-Lin Tang <cltang@codesourcery.com>
2259 * libgomp.h (gomp_attach_pointer): Add bool parameter.
2260 * oacc-mem.c (acc_attach_async): Update call to gomp_attach_pointer.
2261 (goacc_enter_data_internal): Likewise.
2262 * target.c (gomp_map_vars_existing): Update assert condition to
2263 include GOMP_MAP_ATTACH_ZERO_LENGTH_ARRAY_SECTION.
2264 (gomp_map_pointer): Add 'bool allow_zero_length_array_sections'
2265 parameter, add support for mapping a pointer with NULL target.
2266 (gomp_attach_pointer): Add 'bool allow_zero_length_array_sections'
2267 parameter, add support for attaching a pointer with NULL target.
2268 (gomp_map_vars_internal): Update calls to gomp_map_pointer and
2269 gomp_attach_pointer, add handling for
2270 GOMP_MAP_ATTACH_ZERO_LENGTH_ARRAY_SECTION, and
2271 GOMP_MAP_POINTER_TO_ZERO_LENGTH_ARRAY_SECTION cases.
2272 * testsuite/libgomp.c++/target-23.C: New testcase.
2273 * testsuite/libgomp.c++/target-lambda-1.C: New testcase.
2274 * testsuite/libgomp.c++/target-lambda-2.C: New testcase.
2275 * testsuite/libgomp.c++/target-this-1.C: New testcase.
2276 * testsuite/libgomp.c++/target-this-2.C: New testcase.
2277 * testsuite/libgomp.c++/target-this-3.C: New testcase.
2278 * testsuite/libgomp.c++/target-this-4.C: New testcase.
2279 * testsuite/libgomp.c++/target-this-5.C: New testcase.
2281 2021-12-04 Tobias Burnus <tobias@codesourcery.com>
2283 * libgomp.texi (OpenMP 5.1): Update status.
2285 2021-12-04 Tobias Burnus <tobias@codesourcery.com>
2287 * libgomp.texi (OMP_PLACES): Extend description for OMP 5.1 changes.
2289 2021-12-02 Chung-Lin Tang <cltang@codesourcery.com>
2292 * testsuite/libgomp.oacc-fortran/pr90030.f90: New test.
2293 * testsuite/libgomp.fortran/pr90030.f90: New test.
2295 2021-11-30 Kwok Cheung Yeung <kcy@codesourcery.com>
2296 Thomas Schwinge <thomas@codesourcery.com>
2298 * testsuite/libgomp.oacc-fortran/parallel-dims.f90: Remove
2301 2021-11-30 Cesar Philippidis <cesar@codesourcery.com>
2302 Thomas Schwinge <thomas@codesourcery.com>
2304 * testsuite/libgomp.oacc-fortran/parallel-dims.f90: Temporarily
2307 2021-11-29 Richard Biener <rguenther@suse.de>
2309 * oacc-plugin.c (GOMP_PLUGIN_acc_default_dim): Remove unreachable
2312 2021-11-24 Jakub Jelinek <jakub@redhat.com>
2314 PR middle-end/103384
2315 * testsuite/libgomp.c/declare-variant-2.c: New test.
2317 2021-11-18 David Edelsohn <dje.gcc@gmail.com>
2319 * alloc.c (gomp_aligned_alloc): Fix typo.
2321 2021-11-18 Jakub Jelinek <jakub@redhat.com>
2324 * libgomp.h (GOMP_USE_ALIGNED_WORK_SHARES): Define if
2325 GOMP_HAVE_EFFICIENT_ALIGNED_ALLOC is defined and __AMDGCN__ is not.
2326 (struct gomp_work_share): Use GOMP_USE_ALIGNED_WORK_SHARES instead of
2327 GOMP_HAVE_EFFICIENT_ALIGNED_ALLOC.
2328 * work.c (alloc_work_share, gomp_work_share_start): Likewise.
2329 * team.c (gomp_new_team): If GOMP_USE_ALIGNED_WORK_SHARES, use
2330 gomp_aligned_alloc instead of team_malloc.
2332 2021-11-18 Jakub Jelinek <jakub@redhat.com>
2335 * alloc.c (gomp_aligned_alloc): Prefer _aligned_alloc over
2336 memalign over posix_memalign over aligned_alloc over fallback
2337 with malloc instead of aligned_alloc over _aligned_alloc over
2338 posix_memalign over memalign over fallback with malloc. For
2339 aligned_alloc, round up size up to multiple of al.
2341 2021-11-16 Jakub Jelinek <jakub@redhat.com>
2343 * libgomp.texi (OpenMP 5.1): Mark thread_limit clause to target
2344 construct as implemented.
2346 2021-11-15 Tobias Burnus <tobias@codesourcery.com>
2348 * testsuite/libgomp.fortran/thread-limit-1.f90: New test.
2350 2021-11-15 Jakub Jelinek <jakub@redhat.com>
2352 * task.c (gomp_create_target_task): Copy args array as well.
2353 * target.c (gomp_target_fallback): Add args argument.
2354 Set gomp_icv (true)->thread_limit_var if thread_limit is present.
2355 (GOMP_target): Adjust gomp_target_fallback caller.
2356 (GOMP_target_ext): Likewise.
2357 (gomp_target_task_fn): Likewise.
2358 * config/nvptx/team.c (gomp_nvptx_main): Set
2359 gomp_global_icv.thread_limit_var.
2360 * testsuite/libgomp.c-c++-common/thread-limit-1.c: New test.
2362 2021-11-15 Jakub Jelinek <jakub@redhat.com>
2364 * config/nvptx/team.c (__gomp_team_num): Define as
2365 __attribute__((shared)) var.
2366 (gomp_nvptx_main): Initialize __gomp_team_num to 0.
2367 * config/nvptx/target.c (__gomp_team_num): Declare as
2368 extern __attribute__((shared)) var.
2369 (GOMP_teams4): Use __gomp_team_num as the team number instead of
2370 %ctaid.x. If first, initialize it to %ctaid.x. If num_teams_lower
2371 is bigger than num_blocks, use num_teams_lower teams and arrange for
2372 bumping of __gomp_team_num if !first and returning false once we run
2374 * config/nvptx/teams.c (__gomp_team_num): Declare as
2375 extern __attribute__((shared)) var.
2376 (omp_get_team_num): Return __gomp_team_num value instead of %ctaid.x.
2378 2021-11-15 Jakub Jelinek <jakub@redhat.com>
2380 * testsuite/libgomp.c/teams-5.c: New test.
2382 2021-11-12 Jakub Jelinek <jakub@redhat.com>
2385 * config/gcn/icv-device.c (omp_get_num_teams, omp_get_team_num): Move
2387 * config/gcn/teams.c: ... here. New file.
2389 2021-11-12 Chung-Lin Tang <cltang@codesourcery.com>
2391 * target.c (gomp_map_vars_existing): Add 'bool implicit' parameter, add
2392 implicit map handling to allow a "superset" existing map as valid case.
2393 (get_kind): Adjust to filter out GOMP_MAP_IMPLICIT bits in return value.
2394 (get_implicit): New function to extract implicit status.
2395 (gomp_map_fields_existing): Adjust arguments in calls to
2396 gomp_map_vars_existing, and add uses of get_implicit.
2397 (gomp_map_vars_internal): Likewise.
2398 * testsuite/libgomp.c-c++-common/target-implicit-map-1.c: New test.
2400 2021-11-12 Jakub Jelinek <jakub@redhat.com>
2402 * libgomp_g.h (GOMP_teams4): Declare.
2403 * libgomp.map (GOMP_5.1): Export GOMP_teams4.
2404 * target.c (GOMP_teams4): New function.
2405 * config/nvptx/target.c (GOMP_teams): Remove.
2406 (GOMP_teams4): New function.
2407 * config/gcn/target.c (GOMP_teams): Remove.
2408 (GOMP_teams4): New function.
2409 * testsuite/libgomp.c/teams-4.c (main): Expect exactly 2
2410 teams instead of <= 2.
2411 * testsuite/libgomp.c-c++-common/teams-2.c: New test.
2413 2021-11-11 Tobias Burnus <tobias@codesourcery.com>
2415 * testsuite/libgomp.fortran/teams-1.f90: New test.
2417 2021-11-11 Jakub Jelinek <jakub@redhat.com>
2419 * libgomp.h (struct gomp_thread): Add num_teams and team_num members.
2420 * team.c (struct gomp_thread_start_data): Likewise.
2421 (gomp_thread_start): Initialize thr->num_teams and thr->team_num.
2422 (gomp_team_start): Initialize start_data->num_teams and
2423 start_data->team_num. Update nthr->num_teams and nthr->team_num.
2424 * teams.c (gomp_num_teams, gomp_team_num): Remove.
2425 (GOMP_teams_reg): Set and restore thr->num_teams and thr->team_num
2426 instead of gomp_num_teams and gomp_team_num.
2427 (omp_get_num_teams): Use thr->num_teams + 1 instead of gomp_num_teams.
2428 (omp_get_team_num): Use thr->team_num instead of gomp_team_num.
2429 * testsuite/libgomp.c/teams-4.c: New test.
2431 2021-11-11 Jakub Jelinek <jakub@redhat.com>
2433 * testsuite/libgomp.c-c++-common/teams-1.c: New test.
2435 2021-11-09 Thomas Schwinge <thomas@codesourcery.com>
2437 * env.c (parse_gomp_openacc_dim): Restore parsing.
2439 2021-10-30 Tobias Burnus <tobias@codesourcery.com>
2441 PR middle-end/102972
2442 * testsuite/libgomp.c-c++-common/icv-3.c: Nest API calls inside
2444 * testsuite/libgomp.c-c++-common/icv-4.c: Likewise.
2445 * testsuite/libgomp.c/target-3.c: Likewise.
2446 * testsuite/libgomp.c/target-5.c: Likewise.
2447 * testsuite/libgomp.c/target-6.c: Likewise.
2448 * testsuite/libgomp.c/target-teams-1.c: Likewise.
2449 * testsuite/libgomp.c/teams-1.c: Likewise.
2450 * testsuite/libgomp.c/thread-limit-2.c: Likewise.
2451 * testsuite/libgomp.c/thread-limit-3.c: Likewise.
2452 * testsuite/libgomp.c/thread-limit-4.c: Likewise.
2453 * testsuite/libgomp.c/thread-limit-5.c: Likewise.
2454 * testsuite/libgomp.fortran/icv-3.f90: Likewise.
2455 * testsuite/libgomp.fortran/icv-4.f90: Likewise.
2456 * testsuite/libgomp.fortran/teams1.f90: Likewise.
2458 2021-10-29 Aldy Hernandez <aldyh@redhat.com>
2460 * testsuite/libgomp.graphite/force-parallel-4.c: Adjust for threading changes.
2461 * testsuite/libgomp.graphite/force-parallel-8.c: Same.
2463 2021-10-27 Jakub Jelinek <jakub@redhat.com>
2465 * libgomp.texi (OpenMP 5.0): Mention that Non-rectangular loop nests
2466 aren't implemented for Fortran yet.
2468 2021-10-27 Jakub Jelinek <jakub@redhat.com>
2470 * testsuite/libgomp.c/loop-26.c: New test.
2471 * testsuite/libgomp.c/loop-27.c: New test.
2473 2021-10-25 Tobias Burnus <tobias@codesourcery.com>
2476 * testsuite/libgomp.oacc-c-c++-common/loop-gwv-2.c: Use __builtin_alloca
2477 instead of #include <alloca.h> + alloca.
2479 2021-10-21 Chung-Lin Tang <cltang@codesourcery.com>
2481 * libgomp.texi (Support of strictly structured blocks in Fortran):
2483 * testsuite/libgomp.fortran/task-reduction-16.f90: Adjust testcase.
2485 2021-10-20 Chung-Lin Tang <cltang@codesourcery.com>
2487 * testsuite/libgomp.fortran/target-in-reduction-1.f90: New test.
2488 * testsuite/libgomp.fortran/target-in-reduction-2.f90: New test.
2490 2021-10-20 Jakub Jelinek <jakub@redhat.com>
2493 * libgomp.h (struct gomp_work_share_1st_cacheline): New type.
2494 (struct gomp_work_share): Only use aligned(64) attribute if
2495 GOMP_HAVE_EFFICIENT_ALIGNED_ALLOC is defined, otherwise just
2496 add padding before lock to ensure lock is at offset 64 bytes
2498 (gomp_workshare_struct_check1, gomp_workshare_struct_check2):
2499 New poor man's static assertions.
2500 * work.c (gomp_work_share_start): Use gomp_aligned_alloc instead of
2501 gomp_malloc if GOMP_HAVE_EFFICIENT_ALIGNED_ALLOC.
2503 2021-10-20 Aldy Hernandez <aldyh@redhat.com>
2504 Richard Biener <rguenther@suse.de>
2506 * testsuite/libgomp.graphite/force-parallel-5.c: Remove xfail.
2508 2021-10-18 Jakub Jelinek <jakub@redhat.com>
2510 * config/linux/affinity.c (gomp_affinity_init_numa_domains): Add
2511 && gomp_places_list_len < count after nfirst <= nlast loop condition.
2513 2021-10-18 Tobias Burnus <tobias@codesourcery.com>
2522 * testsuite/libgomp.fortran/optional-bind-c.f90: New test.
2524 2021-10-15 Jakub Jelinek <jakub@redhat.com>
2526 * testsuite/libgomp.c/affinity-1.c (struct places): Change name field
2527 type from char [50] to const char *.
2528 (places_array): Add a testcase for simplified syntax place followed
2529 by length or length and stride.
2531 2021-10-15 Jakub Jelinek <jakub@redhat.com>
2533 * env.c (parse_one_place): Handle non-negative-number the same
2534 as { non-negative-number }. Reject even !number:1 and
2535 !number:1:stride or !place:1 or !place:1:stride instead of just
2536 length other than 1.
2537 * libgomp.texi (OpenMP 5.1): Document OMP_PLACES syntax extensions
2538 and OMP_NUM_TEAMS/OMP_TEAMS_THREAD_LIMIT and
2539 omp_{set_num,get_max}_teams/omp_{s,g}et_teams_thread_limit features
2541 * testsuite/libgomp.c/affinity-1.c: Add a test for the 5.1 place
2544 2021-10-15 Jakub Jelinek <jakub@redhat.com>
2546 * env.c (parse_schedule): For strtoul or strtoull calls which don't
2547 clearly reject return value 0 as invalid handle the case where end
2548 pointer is the same as first argument as invalid.
2549 (parse_unsigned_long_1): Likewise.
2550 (parse_one_place): Likewise.
2551 (parse_places_var): Likewise.
2552 (parse_stacksize): Likewise.
2553 (parse_spincount): Likewise.
2554 (parse_affinity): Likewise.
2555 (parse_gomp_openacc_dim): Likewise. Avoid strict aliasing violation.
2556 Make code valid C89.
2557 * config/linux/affinity.c (gomp_affinity_find_last_cache_level):
2558 For strtoul calls which don't clearly reject return value 0 as
2559 invalid handle the case where end pointer is the same as first
2560 argument as invalid.
2561 (gomp_affinity_init_level_1): Likewise.
2562 (gomp_affinity_init_numa_domains): Likewise.
2563 * config/rtems/proc.c (parse_thread_pools): Likewise.
2565 2021-10-15 Jakub Jelinek <jakub@redhat.com>
2567 * config/linux/affinity.c (gomp_affinity_init_level_1): For level 1
2568 after creating count places clean up and return immediately.
2569 * testsuite/libgomp.c/places-6.c: New test.
2570 * testsuite/libgomp.c/places-7.c: New test.
2571 * testsuite/libgomp.c/places-8.c: New test.
2572 * testsuite/libgomp.c/places-9.c: New test.
2573 * testsuite/libgomp.c/places-10.c: New test.
2575 2021-10-15 Jakub Jelinek <jakub@redhat.com>
2577 * env.c (parse_places_var): Handle numa_domains as level 5.
2578 * config/linux/affinity.c (gomp_affinity_init_numa_domains): New
2580 (gomp_affinity_init_level): Use it instead of
2581 gomp_affinity_init_level_1 for level == 5.
2582 * testsuite/libgomp.c/places-5.c: New test.
2584 2021-10-15 Jakub Jelinek <jakub@redhat.com>
2586 * env.c (parse_places_var): Handle ll_caches as level 4.
2587 * config/linux/affinity.c (gomp_affinity_find_last_cache_level): New
2589 (gomp_affinity_init_level_1): Handle level 4 as logical cpus sharing
2591 (gomp_affinity_init_level): Likewise.
2592 * testsuite/libgomp.c/places-1.c: New test.
2593 * testsuite/libgomp.c/places-2.c: New test.
2594 * testsuite/libgomp.c/places-3.c: New test.
2595 * testsuite/libgomp.c/places-4.c: New test.
2597 2021-10-14 Kwok Cheung Yeung <kcy@codesourcery.com>
2599 * libgomp.texi (OpenMP 5.0): Update entry for declare variant
2602 2021-10-14 Kwok Cheung Yeung <kcy@codesourcery.com>
2604 * testsuite/libgomp.fortran/declare-variant-1.f90: New test.
2606 2021-10-12 Julian Brown <julian@codesourcery.com>
2608 * target.c (gomp_copy_host2dev): Release device lock on cbuf
2611 2021-10-12 Tobias Burnus <tobias@codesourcery.com>
2613 * testsuite/libgomp.fortran/icv-3.f90: New.
2614 * testsuite/libgomp.fortran/icv-4.f90: New.
2616 2021-10-12 Jakub Jelinek <jakub@redhat.com>
2618 * libgomp.texi (omp_get_max_teams, omp_get_teams_thread_limit,
2619 omp_set_num_teams, omp_set_teams_thread_limit, OMP_NUM_TEAMS,
2620 OMP_TEAMS_THREAD_LIMIT): Document.
2622 2021-10-12 Jakub Jelinek <jakub@redhat.com>
2624 * libgomp.texi (omp_get_device_num): Move @node before omp_get_dynamic
2625 to avoid makeinfo warnings.
2627 2021-10-12 Jakub Jelinek <jakub@redhat.com>
2629 * testsuite/libgomp.c-c++-common/icv-3.c: New test.
2630 * testsuite/libgomp.c-c++-common/icv-4.c: New test.
2632 2021-10-12 Jakub Jelinek <jakub@redhat.com>
2636 * testsuite/libgomp.c-c++-common/alloc-9.c (main): Decrease
2637 allocation sizes from 420 to 320 and from 768 to 568.
2638 * testsuite/libgomp.fortran/alloc-11.f90: Likewise.
2639 * testsuite/libgomp.fortran/alloc-1.F90: Change expected alignment
2640 for cr from 16 to 4.
2642 2021-10-12 Jakub Jelinek <jakub@redhat.com>
2644 * testsuite/libgomp.c/scan-11.c: Remove option -fvect-cost-model=cheap.
2645 * testsuite/libgomp.c/scan-12.c: Likewise.
2646 * testsuite/libgomp.c/scan-13.c: Likewise.
2647 * testsuite/libgomp.c/scan-14.c: Likewise.
2648 * testsuite/libgomp.c/scan-15.c: Likewise.
2649 * testsuite/libgomp.c/scan-16.c: Likewise.
2650 * testsuite/libgomp.c/scan-17.c: Likewise.
2651 * testsuite/libgomp.c/scan-18.c: Likewise.
2652 * testsuite/libgomp.c/scan-19.c: Likewise.
2653 * testsuite/libgomp.c/scan-20.c: Likewise.
2654 * testsuite/libgomp.c/scan-21.c: Likewise.
2655 * testsuite/libgomp.c/scan-22.c: Likewise.
2656 * testsuite/libgomp.c++/scan-9.C: Likewise.
2657 * testsuite/libgomp.c++/scan-10.C: Likewise.
2658 * testsuite/libgomp.c++/scan-11.C: Likewise.
2659 * testsuite/libgomp.c++/scan-12.C: Likewise.
2660 * testsuite/libgomp.c++/scan-13.C: Likewise.
2661 * testsuite/libgomp.c++/scan-14.C: Likewise.
2662 * testsuite/libgomp.c++/scan-15.C: Likewise.
2663 * testsuite/libgomp.c++/scan-16.C: Likewise.
2665 2021-10-12 Kewen Lin <linkw@linux.ibm.com>
2667 * testsuite/libgomp.graphite/force-parallel-8.c: Add --param max-stores-to-sink=0.
2669 2021-10-11 Marcel Vollweiler <marcel@codesourcery.com>
2671 * allocator.c (omp_init_allocator): Replace omp_atv_sequential with
2673 * omp.h.in: Add deprecated flag for omp_atv_sequential.
2674 * omp_lib.f90.in: Add deprecated flag for omp_atv_sequential.
2675 * testsuite/libgomp.c-c++-common/alloc-10.c: New test.
2676 * testsuite/libgomp.fortran/alloc-12.f90: New test.
2678 2021-10-11 Jakub Jelinek <jakub@redhat.com>
2680 * omp.h.in (omp_set_num_teams, omp_get_max_teams,
2681 omp_set_teams_thread_limit, omp_get_teams_thread_limit): Declare.
2682 * omp_lib.f90.in (omp_set_num_teams, omp_get_max_teams,
2683 omp_set_teams_thread_limit, omp_get_teams_thread_limit): Declare.
2684 * omp_lib.h.in (omp_set_num_teams, omp_get_max_teams,
2685 omp_set_teams_thread_limit, omp_get_teams_thread_limit): Declare.
2686 * libgomp.h (gomp_nteams_var, gomp_teams_thread_limit_var): Declare.
2687 * libgomp.map (OMP_5.1): Export omp_get_max_teams{,_},
2688 omp_get_teams_thread_limit{,_}, omp_set_num_teams{,_,_8_} and
2689 omp_set_teams_thread_limit{,_,_8_}.
2690 * icv.c (omp_set_num_teams, omp_get_max_teams,
2691 omp_set_teams_thread_limit, omp_get_teams_thread_limit): New
2693 * env.c (gomp_nteams_var, gomp_teams_thread_limit_var): Define.
2694 (omp_display_env): Print OMP_NUM_TEAMS and OMP_TEAMS_THREAD_LIMIT.
2695 (initialize_env): Handle OMP_NUM_TEAMS and OMP_TEAMS_THREAD_LIMIT env
2697 * teams.c (GOMP_teams_reg): If thread_limit is not specified, use
2698 gomp_teams_thread_limit_var as fallback if not zero. If num_teams
2699 is not specified, use gomp_nteams_var.
2700 * fortran.c (omp_set_num_teams, omp_get_max_teams,
2701 omp_set_teams_thread_limit, omp_get_teams_thread_limit): Add
2703 (omp_set_num_teams_, omp_set_num_teams_8_, omp_get_max_teams_,
2704 omp_set_teams_thread_limit_, omp_set_teams_thread_limit_8_,
2705 omp_get_teams_thread_limit_): New functions.
2707 2021-10-09 liuhongt <hongtao.liu@intel.com>
2709 * testsuite/libgomp.c++/scan-10.C: Add option -fvect-cost-model=cheap.
2710 * testsuite/libgomp.c++/scan-11.C: Ditto.
2711 * testsuite/libgomp.c++/scan-12.C: Ditto.
2712 * testsuite/libgomp.c++/scan-13.C: Ditto.
2713 * testsuite/libgomp.c++/scan-14.C: Ditto.
2714 * testsuite/libgomp.c++/scan-15.C: Ditto.
2715 * testsuite/libgomp.c++/scan-16.C: Ditto.
2716 * testsuite/libgomp.c++/scan-9.C: Ditto.
2717 * testsuite/libgomp.c-c++-common/lastprivate-conditional-7.c: Ditto.
2718 * testsuite/libgomp.c-c++-common/lastprivate-conditional-8.c: Ditto.
2719 * testsuite/libgomp.c/scan-11.c: Ditto.
2720 * testsuite/libgomp.c/scan-12.c: Ditto.
2721 * testsuite/libgomp.c/scan-13.c: Ditto.
2722 * testsuite/libgomp.c/scan-14.c: Ditto.
2723 * testsuite/libgomp.c/scan-15.c: Ditto.
2724 * testsuite/libgomp.c/scan-16.c: Ditto.
2725 * testsuite/libgomp.c/scan-17.c: Ditto.
2726 * testsuite/libgomp.c/scan-18.c: Ditto.
2727 * testsuite/libgomp.c/scan-19.c: Ditto.
2728 * testsuite/libgomp.c/scan-20.c: Ditto.
2729 * testsuite/libgomp.c/scan-21.c: Ditto.
2730 * testsuite/libgomp.c/scan-22.c: Ditto.
2732 2021-10-09 Jakub Jelinek <jakub@redhat.com>
2734 * libgomp.texi (OpenMP 5.1): Mention implemented support for
2735 structured block sequences in C/C++. Mention support for
2736 unconstrained/reproducible modifiers on order clause.
2737 Mention partial (C/C++ only) support of extentensions to atomics
2738 construct. Mention partial (C/C++ on clause only) support of
2739 align/allocator modifiers on allocate clause.
2741 2021-10-02 Tobias Burnus <tobias@codesourcery.com>
2743 * testsuite/libgomp.fortran/order-reproducible-1.f90: New test
2744 based on libgomp.c-c++-common/order-reproducible-1.c.
2745 * testsuite/libgomp.fortran/order-reproducible-2.f90: Likewise.
2746 * testsuite/libgomp.fortran/my-usleep.c: New test.
2748 2021-10-01 Tobias Burnus <tobias@codesourcery.com>
2750 * testsuite/libgomp.fortran/alloc-10.f90: Fix alignment check.
2751 * testsuite/libgomp.fortran/alloc-7.f90: Fix array access.
2752 * testsuite/libgomp.fortran/alloc-8.f90: Likewise.
2753 * testsuite/libgomp.fortran/alloc-11.f90: New test for omp_realloc,
2754 based on libgomp.c-c++-common/alloc-9.c.
2756 2021-10-01 Jakub Jelinek <jakub@redhat.com>
2758 * testsuite/libgomp.c-c++-common/order-reproducible-1.c: New test.
2759 * testsuite/libgomp.c-c++-common/order-reproducible-2.c: New test.
2761 2021-10-01 Jakub Jelinek <jakub@redhat.com>
2763 * affinity-fmt.c (omp_get_team_num, omp_get_num_teams): Add
2765 * env.c (handle_omp_display_env): Use ialias_call.
2766 * icv-device.c: Move ialias right below each function.
2767 (omp_get_device_num): Use ialias_call.
2768 * fortran.c (omp_fulfill_event): Add ialias_redirect.
2769 * icv.c (omp_get_active_level): Add ialias_redirect.
2771 2021-10-01 Jakub Jelinek <jakub@redhat.com>
2773 * omp.h.in (omp_aligned_alloc, omp_aligned_calloc): Add
2774 __alloc_align__ (1) attribute.
2775 * testsuite/libgomp.c-c++-common/alloc-9.c: New test.
2777 2021-09-30 Tobias Burnus <tobias@codesourcery.com>
2779 * testsuite/libgomp.fortran/alloc-7.f90: Add dg-prune-output
2780 for -fintrinsic-modules-path= warning of the C compiler.
2781 * testsuite/libgomp.fortran/alloc-9.f90: Likewise.
2782 * testsuite/libgomp.fortran/alloc-10.f90: Likewise.
2784 2021-09-30 Tobias Burnus <tobias@codesourcery.com>
2786 * libgomp.texi (OpenMP 5.1): Set implementation status to Y for
2787 omp_aligned_{,c}alloc and omp_{c,re}alloc routines.
2788 * omp_lib.f90.in (omp_aligned_alloc, omp_aligned_calloc, omp_calloc,
2790 * omp_lib.h.in (omp_aligned_alloc, omp_aligned_calloc, omp_calloc,
2792 * testsuite/libgomp.fortran/alloc-10.f90: New test.
2793 * testsuite/libgomp.fortran/alloc-6.f90: New test.
2794 * testsuite/libgomp.fortran/alloc-7.c: New test.
2795 * testsuite/libgomp.fortran/alloc-7.f90: New test.
2796 * testsuite/libgomp.fortran/alloc-8.f90: New test.
2797 * testsuite/libgomp.fortran/alloc-9.f90: New test.
2799 2021-09-30 Jakub Jelinek <jakub@redhat.com>
2801 * omp.h.in (omp_aligned_alloc, omp_calloc, omp_aligned_calloc,
2802 omp_realloc): New prototypes.
2803 (omp_alloc): Move after omp_free prototype, add __malloc__ (omp_free)
2805 * allocator.c: Include string.h.
2806 (omp_aligned_alloc): No longer static, add ialias. Add new_alignment
2807 variable and use it instead of alignment so that when retrying the old
2808 alignment is used again. Don't retry if new alignment is the same
2809 as old alignment, unless allocator had pool size.
2810 (omp_alloc, GOMP_alloc, GOMP_free): Use ialias_call.
2811 (omp_aligned_calloc, omp_calloc, omp_realloc): New functions.
2812 * libgomp.map (OMP_5.0.2): Export omp_aligned_alloc, omp_calloc,
2813 omp_aligned_calloc and omp_realloc.
2814 * testsuite/libgomp.c-c++-common/alloc-4.c (main): Add
2815 omp_aligned_alloc, omp_calloc and omp_aligned_calloc tests.
2816 * testsuite/libgomp.c-c++-common/alloc-5.c: New test.
2817 * testsuite/libgomp.c-c++-common/alloc-6.c: New test.
2818 * testsuite/libgomp.c-c++-common/alloc-7.c: New test.
2819 * testsuite/libgomp.c-c++-common/alloc-8.c: New test.
2821 2021-09-28 Tobias Burnus <tobias@codesourcery.com>
2824 * configure.ac: Only check for int-type = 2*size_t support when
2825 building with Fortran support.
2826 * configure: Regenerate.
2828 2021-09-28 Thomas Schwinge <thomas@codesourcery.com>
2830 * testsuite/libgomp.oacc-fortran/if-1.f90: Adjust.
2831 * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Likewise.
2833 2021-09-27 Aldy Hernandez <aldyh@redhat.com>
2835 * team.c: Initialize start_data.
2836 * testsuite/libgomp.graphite/force-parallel-4.c: Adjust.
2837 * testsuite/libgomp.graphite/force-parallel-8.c: Adjust.
2839 2021-09-27 Tobias Burnus <tobias@codesourcery.com>
2841 * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Change
2842 dg-message back to dg-note.
2844 2021-09-27 Tobias Burnus <tobias@codesourcery.com>
2847 * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Update
2848 expected dg-note output.
2850 2021-09-22 Tobias Burnus <tobias@codesourcery.com>
2853 * testsuite/libgomp.fortran/fortran.exp (ALWAYS_CFLAGS): Revert
2854 r12-3722 by removing -Wno-missing-include-dirs.
2855 * testsuite/libgomp.oacc-fortran/fortran.exp (ALWAYS_CFLAGS): Likewise.
2857 2021-09-22 Jakub Jelinek <jakub@redhat.com>
2859 * testsuite/libgomp.c-c++-common/allocate-2.c: New test.
2860 * testsuite/libgomp.c-c++-common/allocate-3.c: New test.
2862 2021-09-21 Tobias Burnus <tobias@codesourcery.com>
2865 * testsuite/libgomp.fortran/fortran.exp: Add -Wno-missing-include-dirs
2867 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
2869 2021-09-18 Jakub Jelinek <jakub@redhat.com>
2871 * testsuite/libgomp.c++/default-1.C: New test.
2872 * testsuite/libgomp.c-c++-common/default-1.c: New test.
2873 * libgomp.texi (OpenMP 5.1): Mark "private and firstprivate argument
2874 to default clause in C and C++" as implemented.
2876 2021-09-17 Julian Brown <julian@codesourcery.com>
2878 * testsuite/libgomp.oacc-c-c++-common/broadcast-many.c: Update.
2880 2021-09-17 Julian Brown <julian@codesourcery.com>
2882 * testsuite/libgomp.oacc-c-c++-common/broadcast-many.c: New test.
2884 2021-09-17 Jakub Jelinek <jakub@redhat.com>
2886 * libgomp.texi (OpenMP 5.1): Spelling fix,
2887 declare variante -> declare variant.
2889 2021-09-17 Jakub Jelinek <jakub@redhat.com>
2891 * testsuite/libgomp.c-c++-common/atomic-19.c: Drop c effective target.
2892 Use /* */ comments instead of //.
2893 * testsuite/libgomp.c-c++-common/atomic-20.c: Likewise.
2894 * testsuite/libgomp.c-c++-common/atomic-21.c: Likewise.
2895 * testsuite/libgomp.c++/atomic-16.C: New test.
2896 * testsuite/libgomp.c++/atomic-17.C: New test.
2898 2021-09-10 Jakub Jelinek <jakub@redhat.com>
2900 * testsuite/libgomp.c-c++-common/atomic-19.c: New test.
2901 * testsuite/libgomp.c-c++-common/atomic-20.c: New test.
2902 * testsuite/libgomp.c-c++-common/atomic-21.c: New test.
2904 2021-09-07 Tobias Burnus <tobias@codesourcery.com>
2906 * libgomp.texi (OpenMP Implementation Status): Extend
2908 (OpenACC Profiling Interface): Fix typo.
2910 2021-09-07 Tobias Burnus <tobias@codesourcery.com>
2912 * libgomp.texi (Enabling OpenMP): Refer to OMP spec in general
2913 not to 4.5; link to new section.
2914 (OpenMP Implementation Status): New.
2916 2021-09-06 Thomas Schwinge <thomas@codesourcery.com>
2918 * testsuite/libgomp.c/target-43.c: '-latomic' for nvptx offloading.
2920 2021-09-03 Tobias Burnus <tobias@codesourcery.com>
2922 * testsuite/libgomp.c-c++-common/error-1.c: Use \r\n not \n\r in
2924 * testsuite/libgomp.fortran/error-1.f90: Likewise.
2926 2021-08-23 Thomas Schwinge <thomas@codesourcery.com>
2927 Jakub Jelinek <jakub@redhat.com>
2929 * testsuite/libgomp.c/address-space-1.c: New file.
2931 2021-08-23 Thomas Schwinge <thomas@codesourcery.com>
2933 * testsuite/lib/libgomp.exp
2934 (check_effective_target_offload_target_intelmic): Remove 'proc'.
2935 (check_effective_target_offload_device_intel_mic): New 'proc'.
2936 * testsuite/libgomp.c-c++-common/on_device_arch.h
2937 (device_arch_intel_mic, on_device_arch_intel_mic): New.
2938 * testsuite/libgomp.c-c++-common/target-45.c: Use that for
2940 * testsuite/libgomp.fortran/target10.f90: Likewise.
2942 2021-08-23 Tobias Burnus <tobias@codesourcery.com>
2944 * testsuite/libgomp.fortran/taskloop-4-a.f90: New test.
2945 * testsuite/libgomp.fortran/taskloop-4.f90: New test.
2946 * testsuite/libgomp.fortran/taskloop-5-a.f90: New test.
2947 * testsuite/libgomp.fortran/taskloop-5.f90: New test.
2949 2021-08-23 Jakub Jelinek <jakub@redhat.com>
2951 * taskloop.c (GOMP_taskloop): Handle GOMP_TASK_FLAG_STRICT.
2952 * testsuite/libgomp.c-c++-common/taskloop-4.c (main): Fix up comment.
2953 * testsuite/libgomp.c-c++-common/taskloop-5.c: New test.
2955 2021-08-22 Thomas Schwinge <thomas@codesourcery.com>
2957 * config/nvptx/error.c (fwrite, exit): Override, too.
2958 * testsuite/libgomp.c-c++-common/error-1.c: Add a minimum amount
2959 of offloading testing.
2960 * testsuite/libgomp.fortran/error-1.f90: Likewise.
2962 2021-08-20 Tobias Burnus <tobias@codesourcery.com>
2964 * testsuite/libgomp.fortran/error-1.f90: New test.
2966 2021-08-20 Jakub Jelinek <jakub@redhat.com>
2968 * libgomp.map (GOMP_5.1): Add GOMP_error and GOMP_warning.
2969 * libgomp_g.h (GOMP_warning, GOMP_error): Declare.
2970 * error.c (GOMP_warning, GOMP_error): New functions.
2971 * testsuite/libgomp.c-c++-common/error-1.c: New test.
2973 2021-08-18 Tobias Burnus <tobias@codesourcery.com>
2975 * omp_lib.f90.in (omp_alloc, omp_free, omp_target_alloc,
2976 omp_target_free. omp_target_is_present, omp_target_memcpy,
2977 omp_target_memcpy_rect, omp_target_associate_ptr,
2978 omp_target_disassociate_ptr): Add interface.
2979 * omp_lib.h.in (omp_alloc, omp_free, omp_target_alloc,
2980 omp_target_free. omp_target_is_present, omp_target_memcpy,
2981 omp_target_memcpy_rect, omp_target_associate_ptr,
2982 omp_target_disassociate_ptr): Add interface.
2983 * testsuite/libgomp.fortran/alloc-1.F90: Remove local
2984 interface block for omp_alloc + omp_free.
2985 * testsuite/libgomp.fortran/alloc-4.f90: Likewise.
2986 * testsuite/libgomp.fortran/refcount-1.f90: New test.
2987 * testsuite/libgomp.fortran/target-12.f90: New test.
2989 2021-08-18 Jakub Jelinek <jakub@redhat.com>
2991 * testsuite/libgomp.c-c++-common/nothing-1.c: New test.
2993 2021-08-17 Tobias Burnus <tobias@codesourcery.com>
2995 * testsuite/libgomp.fortran/scope-1.f90: New test.
2996 * testsuite/libgomp.fortran/task-reduction-16.f90: New test.
2998 2021-08-17 Jakub Jelinek <jakub@redhat.com>
3000 * Makefile.am (libgomp_la_SOURCES): Add scope.c
3001 * Makefile.in: Regenerated.
3002 * libgomp_g.h (GOMP_scope_start): Declare.
3003 * libgomp.map: Add GOMP_scope_start@@GOMP_5.1.
3004 * scope.c: New file.
3005 * testsuite/libgomp.c-c++-common/scope-1.c: New test.
3006 * testsuite/libgomp.c-c++-common/task-reduction-16.c: New test.
3008 2021-08-16 Thomas Schwinge <thomas@codesourcery.com>
3010 * testsuite/libgomp.oacc-c-c++-common/mode-transitions.c: Address
3013 2021-08-16 Tobias Burnus <tobias@codesourcery.com>
3015 * testsuite/libgomp.fortran/masked-1.f90: New test.
3017 2021-08-13 Thomas Schwinge <thomas@codesourcery.com>
3019 * testsuite/libgomp.oacc-c-c++-common/static-variable-1.c: Adjust.
3021 2021-08-12 Jakub Jelinek <jakub@redhat.com>
3023 * testsuite/libgomp.c-c++-common/masked-1.c: New test.
3025 2021-08-12 Tobias Burnus <tobias@codesourcery.com>
3027 * env.c (parse_bind_var): Accept 'primary' as alias for
3029 (omp_display_env): Add TODO comment to
3030 change 'master' to 'primary' in proc_bind for OpenMP 5.1.
3031 * libgomp.texi: Change 'master thread' to 'primary thread'
3032 in line with OpenMP 5.1.
3033 (omp_get_proc_bind): Add omp_proc_bind_primary and note that
3034 omp_proc_bind_master is an alias of it.
3035 (OMP_PROC_BIND): Mention 'PRIMARY'.
3036 * omp.h.in (__GOMP_DEPRECATED_5_1): Define.
3037 (omp_proc_bind_primary): Add.
3038 (omp_proc_bind_master): Deprecate for OpenMP 5.1.
3039 * omp_lib.f90.in (omp_proc_bind_primary): Add.
3040 (omp_proc_bind_master): Deprecate for OpenMP 5.1.
3041 * omp_lib.h.in (omp_proc_bind_primary): Add.
3042 * testsuite/libgomp.c/affinity-1.c: Check that
3043 'primary' works and is identical to 'master'.
3045 2021-08-09 Julian Brown <julian@codesourcery.com>
3046 Kwok Cheung Yeung <kcy@codesourcery.com>
3047 Thomas Schwinge <thomas@codesourcery.com>
3049 * plugin/plugin-gcn.c (gcn_exec): Change default number of workers to
3051 * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c
3052 [acc_device_radeon]: Update.
3053 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c
3054 [ACC_DEVICE_TYPE_radeon]: Likewise.
3055 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c
3056 [acc_device_radeon]: Likewise.
3057 * testsuite/libgomp.oacc-c-c++-common/routine-wv-2.c
3058 [ACC_DEVICE_TYPE_radeon]: Likewise.
3059 * testsuite/libgomp.oacc-fortran/optional-reduction.f90: XFAIL for
3060 'openacc_radeon_accel_selected' and '-O0'.
3061 * testsuite/libgomp.oacc-fortran/reduction-7.f90: Likewise.
3063 2021-08-05 Chung-Lin Tang <cltang@codesourcery.com>
3065 * icv-device.c (omp_get_device_num): New API function, host side.
3066 * fortran.c (omp_get_device_num_): New interface function.
3067 * libgomp-plugin.h (GOMP_DEVICE_NUM_VAR): Define macro symbol.
3068 * libgomp.map (OMP_5.0.2): New version space with omp_get_device_num,
3069 omp_get_device_num_.
3070 * libgomp.texi (omp_get_device_num): Add documentation for new API
3072 * omp.h.in (omp_get_device_num): Add declaration.
3073 * omp_lib.f90.in (omp_get_device_num): Likewise.
3074 * omp_lib.h.in (omp_get_device_num): Likewise.
3075 * target.c (gomp_load_image_to_device): If additional entry for device
3076 number exists at end of returned entries from 'load_image_func' hook,
3077 copy the assigned device number over to the device variable.
3078 * config/gcn/icv-device.c (GOMP_DEVICE_NUM_VAR): Define static global.
3079 (omp_get_device_num): New API function, device side.
3080 * plugin/plugin-gcn.c ("symcat.h"): Add include.
3081 (GOMP_OFFLOAD_load_image): Add addresses of device GOMP_DEVICE_NUM_VAR
3082 at end of returned 'target_table' entries.
3083 * config/nvptx/icv-device.c (GOMP_DEVICE_NUM_VAR): Define static global.
3084 (omp_get_device_num): New API function, device side.
3085 * plugin/plugin-nvptx.c ("symcat.h"): Add include.
3086 (GOMP_OFFLOAD_load_image): Add addresses of device GOMP_DEVICE_NUM_VAR
3087 at end of returned 'target_table' entries.
3088 * testsuite/lib/libgomp.exp
3089 (check_effective_target_offload_target_intelmic): New function for
3090 testing for intelmic offloading.
3091 * testsuite/libgomp.c-c++-common/target-45.c: New test.
3092 * testsuite/libgomp.fortran/target10.f90: New test.
3094 2021-07-30 Thomas Schwinge <thomas@codesourcery.com>
3095 Ulrich Drepper <drepper@redhat.com>
3097 * fortran.c (omp_display_env_, omp_display_env_8_): Only
3098 '#ifndef LIBGOMP_OFFLOADED_ONLY'.
3100 2021-07-29 Thomas Schwinge <thomas@codesourcery.com>
3101 Julian Brown <julian@codesourcery.com>
3102 Kwok Cheung Yeung <kcy@codesourcery.com>
3104 * testsuite/libgomp.oacc-c-c++-common/pr85486-2.c:
3105 's%oaccdevlow%oaccloops%g'.
3106 * testsuite/libgomp.oacc-c-c++-common/pr85486-3.c: Likewise.
3107 * testsuite/libgomp.oacc-c-c++-common/pr85486.c: Likewise.
3108 * testsuite/libgomp.oacc-c-c++-common/routine-nohost-1.c:
3110 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-1.c:
3112 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-2.c:
3114 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-3.c:
3116 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-4.c:
3118 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-5.c:
3120 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-6.c:
3122 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-7.c:
3124 * testsuite/libgomp.oacc-fortran/routine-nohost-1.f90: Likewise.
3126 2021-07-29 Aldy Hernandez <aldyh@redhat.com>
3128 * testsuite/libgomp.graphite/force-parallel-4.c: Adjust for
3130 * testsuite/libgomp.graphite/force-parallel-8.c: Same.
3132 2021-07-27 Ulrich Drepper <drepper@gmail.com>
3134 * env.c (wait_policy, stacksize): New static variables,
3135 move out of handle_omp_display_env.
3136 (omp_display_env): New function. The meat of the old
3137 handle_omp_display_env function.
3138 (handle_omp_display_env): Change to not take parameters
3139 and instead use the global variables. Only perform
3140 parsing, defer to omp_display_env for the implementation.
3141 (initialize_env): Remove local variables wait_policy and
3142 stacksize. Don't pass parameters to handle_omp_display_env.
3143 * fortran.c: Add ialias_redirect for omp_display_env.
3144 (omp_display_env_, omp_display_env_8_): New functions.
3145 * libgomp.map (OMP_5.1): New version. Add omp_display_env,
3146 omp_display_env_, and omp_display_env_8_.
3147 * omp.h.in: Declare omp_display_env.
3148 * omp_lib.f90.in: Likewise.
3149 * omp_lib.h.in: Likewise.
3151 2021-07-27 Thomas Schwinge <thomas@codesourcery.com>
3152 Julian Brown <julian@codesourcery.com>
3154 * target.c (gomp_coalesce_buf_add): Update comment.
3155 (gomp_copy_host2dev, gomp_map_vars_internal): Don't expect to see
3157 (gomp_map_vars_internal): Only 'if (!aq)', do
3158 'gomp_coalesce_buf_add'.
3159 * testsuite/libgomp.oacc-c-c++-common/async-data-1-2.c: Remove
3162 2021-07-27 Julian Brown <julian@codesourcery.com>
3163 Thomas Schwinge <thomas@codesourcery.com>
3165 * libgomp.h (gomp_copy_host2dev): Update prototype.
3166 * oacc-mem.c (memcpy_tofrom_device, update_dev_host): Add new
3167 argument to gomp_copy_host2dev (false).
3168 * plugin/plugin-gcn.c (struct copy_data): Remove free_src field.
3169 (copy_data): Don't free src.
3170 (queue_push_copy): Remove free_src handling.
3171 (GOMP_OFFLOAD_dev2dev): Update call to queue_push_copy.
3172 (GOMP_OFFLOAD_openacc_async_host2dev): Remove source-data
3174 (GOMP_OFFLOAD_openacc_async_dev2host): Update call to
3176 * target.c (goacc_device_copy_async): Add SRCADDR_ORIG parameter.
3177 (gomp_copy_host2dev): Add EPHEMERAL parameter. Snapshot source
3178 data when true, and set up deferred freeing of temporary buffer.
3179 (gomp_copy_dev2host): Update call to goacc_device_copy_async.
3180 (gomp_map_vars_existing, gomp_map_pointer, gomp_attach_pointer)
3181 (gomp_detach_pointer, gomp_map_vars_internal, gomp_update): Update
3182 calls to gomp_copy_host2dev with appropriate ephemeral argument.
3183 * testsuite/libgomp.oacc-c-c++-common/async-data-1-1.c: Remove
3186 2021-07-27 Thomas Schwinge <thomas@codesourcery.com>
3187 Tom de Vries <tom@codesourcery.com>
3189 * testsuite/libgomp.oacc-c-c++-common/async-data-1-1.c: New file.
3190 * testsuite/libgomp.oacc-c-c++-common/async-data-1-2.c: Likewise.
3192 2021-07-27 Thomas Schwinge <thomas@codesourcery.com>
3194 * testsuite/libgomp.oacc-c-c++-common/acc_prof-init-1.c: Clarify
3195 sequencing of 'async' data copying vs. profiling events.
3196 * testsuite/libgomp.oacc-c-c++-common/acc_prof-parallel-1.c:
3199 2021-07-27 Thomas Schwinge <thomas@codesourcery.com>
3200 Julian Brown <julian@codesourcery.com>
3202 * testsuite/libgomp.oacc-c-c++-common/lib-94.c: Fix OpenACC
3203 'async'/'wait' issue.
3204 * testsuite/libgomp.oacc-c-c++-common/lib-95.c: Likewise.
3205 * testsuite/libgomp.oacc-fortran/lib-16-2.f90: Likewise.
3206 * testsuite/libgomp.oacc-fortran/lib-16.f90: Likewise.
3208 2021-07-21 Thomas Schwinge <thomas@codesourcery.com>
3209 Joseph Myers <joseph@codesourcery.com>
3210 Cesar Philippidis <cesar@codesourcery.com>
3212 * testsuite/libgomp.oacc-c-c++-common/routine-nohost-1.c: New
3214 * testsuite/libgomp.oacc-c-c++-common/routine-nohost-2.c:
3216 * testsuite/libgomp.oacc-c-c++-common/routine-nohost-2_2.c:
3218 * testsuite/libgomp.oacc-fortran/routine-nohost-1.f90: Likewise.
3220 2021-07-20 Thomas Schwinge <thomas@codesourcery.com>
3223 * configure.tgt [amdgcn*-*-*] (XCFLAGS): Add
3224 '-Wno-error=array-bounds'.
3225 * config/gcn/team.c: Remove '-Werror=array-bounds' work-around.
3226 * libgomp.h [__AMDGCN__]: Likewise.
3228 2021-07-19 Thomas Schwinge <thomas@codesourcery.com>
3231 * config/gcn/team.c: Apply '-Werror=array-bounds' work-around.
3232 * libgomp.h [__AMDGCN__]: Likewise.
3234 2021-07-13 Jakub Jelinek <jakub@redhat.com>
3235 Florian Weimer <fweimer@redhat.com>
3237 * config/linux/sem.h: Don't include limits.h.
3238 (SEM_WAIT): Define to -__INT_MAX__ - 1 instead of INT_MIN.
3239 * config/linux/affinity.c: Include limits.h.
3241 2021-07-01 Jakub Jelinek <jakub@redhat.com>
3244 * testsuite/libgomp.c-c++-common/pr94366.c: New test.
3246 2021-06-29 Tobias Burnus <tobias@codesourcery.com>
3249 * testsuite/libgomp.c-c++-common/reduction-16.c: Replace
3250 -foffload=nvptx-none= by -foffload-options=nvptx-none= to
3251 avoid disabling other offload targets.
3252 * testsuite/libgomp.c-c++-common/reduction-5.c: Likewise.
3253 * testsuite/libgomp.c-c++-common/reduction-6.c: Likewise.
3254 * testsuite/libgomp.c/target-44.c: Likewise.
3256 2021-06-29 Tobias Burnus <tobias@codesourcery.com>
3258 * testsuite/libgomp.fortran/defaultmap-8.f90 (bar): Determine whether
3259 target has shared memory and disable some scalar pointer/allocatable
3260 checks if not as firstprivate does not work.
3262 2021-06-25 Chung-Lin Tang <cltang@codesourcery.com>
3265 * testsuite/libgomp.c-c++-common/struct-elem-5.c:
3266 Add "target offload_device_nonshared_as" condition for enabling test.
3268 2021-06-24 Jakub Jelinek <jakub@redhat.com>
3270 * testsuite/libgomp.c-c++-common/target-in-reduction-1.c: New test.
3271 * testsuite/libgomp.c-c++-common/target-in-reduction-2.c: New test.
3272 * testsuite/libgomp.c++/target-in-reduction-1.C: New test.
3273 * testsuite/libgomp.c++/target-in-reduction-2.C: New test.
3275 2021-06-23 Jakub Jelinek <jakub@redhat.com>
3277 PR middle-end/101167
3278 * testsuite/libgomp.c-c++-common/task-reduction-15.c: New test.
3280 2021-06-17 Chung-Lin Tang <cltang@codesourcery.com>
3282 * hashtab.h (htab_clear): New function with initialization code
3283 factored out from...
3284 (htab_create): ...here, adjust to use htab_clear function.
3285 * libgomp.h (REFCOUNT_SPECIAL): New symbol to denote range of
3286 special refcount values, add comments.
3287 (REFCOUNT_INFINITY): Adjust definition to use REFCOUNT_SPECIAL.
3288 (REFCOUNT_LINK): Likewise.
3289 (REFCOUNT_STRUCTELEM): New special refcount range for structure
3291 (REFCOUNT_STRUCTELEM_P): Macro for testing for structure element
3293 (REFCOUNT_STRUCTELEM_FLAG_FIRST): Flag to indicate first sibling.
3294 (REFCOUNT_STRUCTELEM_FLAG_LAST): Flag to indicate last sibling.
3295 (REFCOUNT_STRUCTELEM_FIRST_P): Macro to test _FIRST flag.
3296 (REFCOUNT_STRUCTELEM_LAST_P): Macro to test _LAST flag.
3297 (struct splay_tree_key_s): Add structelem_refcount and
3298 structelem_refcount_ptr fields into a union with dynamic_refcount.
3300 (gomp_map_vars): Delete declaration.
3301 (gomp_map_vars_async): Likewise.
3302 (gomp_unmap_vars): Likewise.
3303 (gomp_unmap_vars_async): Likewise.
3304 (goacc_map_vars): New declaration.
3305 (goacc_unmap_vars): Likewise.
3306 * oacc-mem.c (acc_map_data): Adjust to use goacc_map_vars.
3307 (goacc_enter_datum): Likewise.
3308 (goacc_enter_data_internal): Likewise.
3309 * oacc-parallel.c (GOACC_parallel_keyed): Adjust to use goacc_map_vars
3310 and goacc_unmap_vars.
3311 (GOACC_data_start): Adjust to use goacc_map_vars.
3312 (GOACC_data_end): Adjust to use goacc_unmap_vars.
3313 * target.c (hash_entry_type): New typedef.
3314 (htab_alloc): New function hook for hashtab.h.
3315 (htab_free): Likewise.
3316 (htab_hash): Likewise.
3317 (htab_eq): Likewise.
3318 (hashtab.h): Add file include.
3319 (gomp_increment_refcount): New function.
3320 (gomp_decrement_refcount): Likewise.
3321 (gomp_map_vars_existing): Add refcount_set parameter, adjust to use
3322 gomp_increment_refcount.
3323 (gomp_map_fields_existing): Add refcount_set parameter, adjust calls
3324 to gomp_map_vars_existing.
3325 (gomp_map_vars_internal): Add refcount_set parameter, add local openmp_p
3326 variable to guard OpenMP specific paths, adjust calls to
3327 gomp_map_vars_existing, add structure element sibling splay_tree_key
3328 sequence creation code, adjust Fortran map case to avoid increment
3330 (gomp_map_vars): Adjust to static, add refcount_set parameter, manage
3331 local refcount_set if caller passed in NULL, adjust call to
3332 gomp_map_vars_internal.
3333 (gomp_map_vars_async): Adjust and rename into...
3334 (goacc_map_vars): ...this new function, adjust call to
3335 gomp_map_vars_internal.
3336 (gomp_remove_splay_tree_key): New function with code factored out from
3337 gomp_remove_var_internal.
3338 (gomp_remove_var_internal): Add code to handle removing multiple
3339 splay_tree_key sequence for structure elements, adjust code to use
3340 gomp_remove_splay_tree_key for splay-tree key removal.
3341 (gomp_unmap_vars_internal): Add refcount_set parameter, adjust to use
3342 gomp_decrement_refcount.
3343 (gomp_unmap_vars): Adjust to static, add refcount_set parameter, manage
3344 local refcount_set if caller passed in NULL, adjust call to
3345 gomp_unmap_vars_internal.
3346 (gomp_unmap_vars_async): Adjust and rename into...
3347 (goacc_unmap_vars): ...this new function, adjust call to
3348 gomp_unmap_vars_internal.
3349 (GOMP_target): Manage refcount_set and adjust calls to gomp_map_vars and
3351 (GOMP_target_ext): Likewise.
3352 (gomp_target_data_fallback): Adjust call to gomp_map_vars.
3353 (GOMP_target_data): Likewise.
3354 (GOMP_target_data_ext): Likewise.
3355 (GOMP_target_end_data): Adjust call to gomp_unmap_vars.
3356 (gomp_exit_data): Add refcount_set parameter, adjust to use
3357 gomp_decrement_refcount, adjust to queue splay-tree keys for removal
3359 (GOMP_target_enter_exit_data): Manage refcount_set and adjust calls to
3360 gomp_map_vars and gomp_exit_data.
3361 (gomp_target_task_fn): Likewise.
3362 * testsuite/libgomp.c-c++-common/refcount-1.c: New testcase.
3363 * testsuite/libgomp.c-c++-common/struct-elem-1.c: New testcase.
3364 * testsuite/libgomp.c-c++-common/struct-elem-2.c: New testcase.
3365 * testsuite/libgomp.c-c++-common/struct-elem-3.c: New testcase.
3366 * testsuite/libgomp.c-c++-common/struct-elem-4.c: New testcase.
3367 * testsuite/libgomp.c-c++-common/struct-elem-5.c: New testcase.
3369 2021-06-15 Tobias Burnus <tobias@codesourcery.com>
3372 * testsuite/libgomp.fortran/defaultmap-8.f90: New test.
3374 2021-06-10 Andrew Stubbs <ams@codesourcery.com>
3375 Thomas Schwinge <thomas@codesourcery.com>
3377 * libgomp.map (GOACC_2.0.2): New symbol version.
3378 * libgomp_g.h (GOACC_enter_data, GOACC_exit_data) New prototypes.
3379 * oacc-mem.c (GOACC_enter_data, GOACC_exit_data) New functions.
3381 2021-06-10 Thomas Schwinge <thomas@codesourcery.com>
3382 Andrew Stubbs <ams@codesourcery.com>
3384 * oacc-mem.c (goacc_enter_exit_data_internal): New function,
3386 (GOACC_enter_exit_data): ... here.
3387 (GOACC_declare): Use it.
3389 2021-06-10 Thomas Schwinge <thomas@codesourcery.com>
3391 * oacc-parallel.c (GOACC_declare): Move...
3392 * oacc-mem.c: ... here.
3393 * libgomp_g.h: Adjust.
3395 2021-06-10 Andrew Stubbs <ams@codesourcery.com>
3396 Thomas Schwinge <thomas@codesourcery.com>
3398 * oacc-parallel.c (GOACC_declare): Clean up 'GOMP_MAP_POINTER'
3401 2021-06-10 Jakub Jelinek <jakub@redhat.com>
3403 PR tree-optimization/100981
3404 * testsuite/libgomp.fortran/pr100981-2.f90 (cdcdot): Initialize
3405 dsdotr and dsdoti to 0.
3407 2021-06-09 H.J. Lu <hjl.tools@gmail.com>
3409 * testsuite/lib/libgomp.exp (libgomp_init): Don't add -march=i486
3410 if atomic compare-and-swap is supported on 'int'.
3412 2021-06-09 Richard Biener <rguenther@suse.de>
3414 PR tree-optimization/100981
3415 * testsuite/libgomp.fortran/pr100981-2.f90: New testcase.
3417 2021-06-08 Thomas Schwinge <thomas@codesourcery.com>
3419 * plugin/plugin-gcn.c (gcn_exec): Force 'num_workers (1)'
3421 * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c:
3423 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Likewise.
3424 * testsuite/libgomp.oacc-c-c++-common/routine-wv-2.c: Likewise.
3426 2021-06-08 Thomas Schwinge <thomas@codesourcery.com>
3428 * testsuite/libgomp.oacc-c-c++-common/lib-11.c: Enable for all but
3429 '-DACC_MEM_SHARED=0'.
3430 * testsuite/libgomp.oacc-c-c++-common/lib-13.c: Likewise.
3431 * testsuite/libgomp.oacc-c-c++-common/lib-14.c: Likewise.
3432 * testsuite/libgomp.oacc-c-c++-common/lib-15.c: Likewise.
3433 * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
3434 * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
3435 * testsuite/libgomp.oacc-c-c++-common/lib-24.c: Likewise.
3436 * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
3437 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
3438 * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
3439 * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
3440 * testsuite/libgomp.oacc-c-c++-common/lib-88.c: Likewise.
3441 * testsuite/libgomp.oacc-c-c++-common/lib-89.c: Likewise.
3442 * testsuite/libgomp.oacc-c-c++-common/lib-92.c: Likewise.
3443 * testsuite/libgomp.oacc-fortran/lib-14.f90: Likewise.
3444 * testsuite/libgomp.oacc-c-c++-common/lib-5.c: Add
3445 'acc_device_radeon' testing.
3446 * testsuite/libgomp.oacc-c-c++-common/lib-6.c: Likewise.
3447 * testsuite/libgomp.oacc-fortran/lib-5.f90: Likewise.
3448 * testsuite/libgomp.oacc-fortran/lib-7.f90: Likewise.
3449 * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Enable for all.
3450 * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
3451 * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
3452 * testsuite/libgomp.oacc-c-c++-common/lib-86.c: Likewise.
3453 * testsuite/libgomp.oacc-c-c++-common/lib-87.c: Likewise.
3454 * testsuite/libgomp.oacc-fortran/lib-10.f90: Likewise.
3455 * testsuite/libgomp.oacc-fortran/lib-8.f90: Likewise.
3456 * testsuite/libgomp.oacc-c-c++-common/lib-57.c: Improve checking
3457 for non-'openacc_nvidia_accel_selected'.
3458 * testsuite/libgomp.oacc-c-c++-common/lib-58.c: Likewise.
3459 * testsuite/libgomp.oacc-c-c++-common/lib-62.c: Clarify that "Not
3460 all implement this checking".
3461 * testsuite/libgomp.oacc-c-c++-common/lib-63.c: Likewise.
3462 * testsuite/libgomp.oacc-c-c++-common/lib-64.c: Likewise.
3463 * testsuite/libgomp.oacc-c-c++-common/lib-65.c: Likewise.
3464 * testsuite/libgomp.oacc-c-c++-common/lib-67.c: Likewise.
3465 * testsuite/libgomp.oacc-c-c++-common/lib-68.c: Likewise.
3467 2021-06-08 Thomas Schwinge <thomas@codesourcery.com>
3469 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Simplify.
3470 * testsuite/libgomp.oacc-fortran/parallel-dims-aux.c: Update.
3472 2021-06-08 Thomas Schwinge <thomas@codesourcery.com>
3474 * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c: Fix
3475 for 'acc_device_radeon'.
3477 2021-06-08 Thomas Schwinge <thomas@codesourcery.com>
3479 * testsuite/libgomp.oacc-c-c++-common/firstprivate-1.c: Enhance
3480 for non-'acc_device_nvidia'.
3482 2021-06-08 Thomas Schwinge <thomas@codesourcery.com>
3484 * testsuite/libgomp.oacc-c-c++-common/acc_on_device-1.c: Add
3485 'acc_device_radeon' testing.
3486 * testsuite/libgomp.oacc-fortran/acc_on_device-1-1.f90: Likewise.
3487 * testsuite/libgomp.oacc-fortran/acc_on_device-1-2.f: Likewise.
3488 * testsuite/libgomp.oacc-fortran/acc_on_device-1-3.f: Likewise.
3490 2021-06-08 Thomas Schwinge <thomas@codesourcery.com>
3492 * testsuite/libgomp.oacc-c-c++-common/async_queue-1.c: Don't
3493 require 'openacc_nvidia_accel_selected'. Fix up for
3494 'ACC_DEVICE_TYPE_radeon'.
3496 2021-06-08 Thomas Schwinge <thomas@codesourcery.com>
3498 * testsuite/libgomp.oacc-c++/declare-1.C: Don't require
3499 'openacc_nvidia_accel_selected'.
3500 * testsuite/libgomp.oacc-c-c++-common/declare-3.c: Likewise.
3502 2021-06-08 Thomas Schwinge <thomas@codesourcery.com>
3504 * testsuite/lib/libgomp.exp
3505 (check_effective_target_openacc_radeon_accel_selected):
3508 2021-06-08 Thomas Schwinge <thomas@codesourcery.com>
3510 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Revert
3513 2021-06-08 Thomas Schwinge <thomas@codesourcery.com>
3515 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c
3516 <acc_device_nvidia>: Update comment.
3518 2021-05-28 Tobias Burnus <tobias@codesourcery.com>
3520 * testsuite/libgomp.fortran/depend-iterator-2.f90: New test.
3522 2021-05-27 Jakub Jelinek <jakub@redhat.com>
3524 * testsuite/lib/libgomp.exp (check_effective_target_openacc_cuda,
3525 check_effective_target_openacc_cublas,
3526 check_effective_target_openacc_cudart): New.
3527 * testsuite/libgomp.oacc-fortran/host_data-4.f90: Require effective
3528 target openacc_cublas.
3529 * testsuite/libgomp.oacc-fortran/host_data-2.f90: Likewise.
3530 * testsuite/libgomp.oacc-fortran/host_data-3.f: Likewise.
3531 * testsuite/libgomp.oacc-c-c++-common/lib-91.c: Require effective
3532 target openacc_cuda.
3533 * testsuite/libgomp.oacc-c-c++-common/lib-70.c: Likewise.
3534 * testsuite/libgomp.oacc-c-c++-common/lib-90.c: Likewise.
3535 * testsuite/libgomp.oacc-c-c++-common/lib-75.c: Likewise.
3536 * testsuite/libgomp.oacc-c-c++-common/lib-69.c: Likewise.
3537 * testsuite/libgomp.oacc-c-c++-common/lib-74.c: Likewise.
3538 * testsuite/libgomp.oacc-c-c++-common/lib-81.c: Likewise.
3539 * testsuite/libgomp.oacc-c-c++-common/lib-72.c: Likewise.
3540 * testsuite/libgomp.oacc-c-c++-common/lib-85.c: Likewise.
3541 * testsuite/libgomp.oacc-c-c++-common/pr87835.c: Likewise.
3542 * testsuite/libgomp.oacc-c-c++-common/lib-82.c: Likewise.
3543 * testsuite/libgomp.oacc-c-c++-common/lib-73.c: Likewise.
3544 * testsuite/libgomp.oacc-c-c++-common/lib-83.c: Likewise.
3545 * testsuite/libgomp.oacc-c-c++-common/lib-78.c: Likewise.
3546 * testsuite/libgomp.oacc-c-c++-common/lib-76.c: Likewise.
3547 * testsuite/libgomp.oacc-c-c++-common/lib-84.c: Likewise.
3548 * testsuite/libgomp.oacc-c-c++-common/lib-79.c: Likewise.
3549 * testsuite/libgomp.oacc-c-c++-common/host_data-1.c: Require effective
3550 targets openacc_cublas and openacc_cudart.
3551 * testsuite/libgomp.oacc-c-c++-common/context-1.c: Likewise.
3552 * testsuite/libgomp.oacc-c-c++-common/context-2.c: Likewise.
3553 * testsuite/libgomp.oacc-c-c++-common/context-3.c: Likewise.
3554 * testsuite/libgomp.oacc-c-c++-common/context-4.c: Likewise.
3555 * testsuite/libgomp.oacc-c-c++-common/acc_get_property-nvptx.c:
3556 Require effective target openacc_cudart.
3557 * testsuite/libgomp.oacc-c-c++-common/asyncwait-1.c: Add -DUSE_CUDA_H
3558 for effective target openacc_cuda and add && defined USE_CUDA_H to
3559 preprocessor conditionals. Guard -lcuda also on openacc_cuda
3562 2021-05-26 Jakub Jelinek <jakub@redhat.com>
3565 * config/nvptx/target.c (GOMP_target_ext, GOMP_target_data_ext,
3566 GOMP_target_end_data, GOMP_target_update_ext,
3567 GOMP_target_enter_exit_data): New dummy entrypoints.
3568 * config/gcn/target.c (GOMP_target_ext, GOMP_target_data_ext,
3569 GOMP_target_end_data, GOMP_target_update_ext,
3570 GOMP_target_enter_exit_data): Likewise.
3571 * testsuite/libgomp.c-c++-common/for-3.c (DO_PRAGMA, OMPTEAMS,
3572 OMPFROM, OMPTO): Define.
3573 (main): Remove #pragma omp target teams around all the tests.
3574 * testsuite/libgomp.c-c++-common/target-41.c: New test.
3575 * testsuite/libgomp.c-c++-common/target-42.c: New test.
3577 2021-05-25 Jakub Jelinek <jakub@redhat.com>
3580 * testsuite/libgomp.c-c++-common/reduction-17.c: New test.
3582 2021-05-24 Tobias Burnus <tobias@codesourcery.com>
3585 * testsuite/libgomp.fortran/class-firstprivate-1.f90: New test.
3586 * testsuite/libgomp.fortran/class-firstprivate-2.f90: New test.
3587 * testsuite/libgomp.fortran/class-firstprivate-3.f90: New test.
3589 2021-05-22 Thomas Schwinge <thomas@codesourcery.com>
3592 * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Prune
3593 uninteresting/varying diagnostics.
3595 2021-05-21 Thomas Schwinge <thomas@codesourcery.com>
3598 * testsuite/libgomp.oacc-c-c++-common/static-variable-1.c: Update.
3599 * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Likewise.
3601 2021-05-21 Thomas Schwinge <thomas@codesourcery.com>
3604 * testsuite/libgomp.oacc-fortran/private-atomic-1-vector.f90: New
3606 * testsuite/libgomp.oacc-c-c++-common/firstprivate-1.c: Update.
3607 * testsuite/libgomp.oacc-c-c++-common/host_data-7.c: Likewise.
3608 * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c:
3610 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-1.c:
3612 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-2.c:
3614 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-3.c:
3616 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-4.c:
3618 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-5.c:
3620 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-1.c:
3622 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-2.c:
3624 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-3.c:
3626 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-4.c:
3628 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-5.c:
3630 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-6.c:
3632 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-vector-1.c:
3634 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-vector-2.c:
3636 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-1.c:
3638 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-2.c:
3640 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-3.c:
3642 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-4.c:
3644 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-5.c:
3646 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-6.c:
3648 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-7.c:
3650 * testsuite/libgomp.oacc-c-c++-common/loop-g-1.c: Likewise.
3651 * testsuite/libgomp.oacc-c-c++-common/loop-g-2.c: Likewise.
3652 * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c: Likewise.
3653 * testsuite/libgomp.oacc-c-c++-common/loop-gwv-2.c: Likewise.
3654 * testsuite/libgomp.oacc-c-c++-common/loop-red-g-1.c: Likewise.
3655 * testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c: Likewise.
3656 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c: Likewise.
3657 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c: Likewise.
3658 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c: Likewise.
3659 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c: Likewise.
3660 * testsuite/libgomp.oacc-c-c++-common/loop-red-wv-1.c: Likewise.
3661 * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c: Likewise.
3662 * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c: Likewise.
3663 * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c: Likewise.
3664 * testsuite/libgomp.oacc-c-c++-common/parallel-reduction.c:
3666 * testsuite/libgomp.oacc-c-c++-common/private-atomic-1-gang.c:
3668 * testsuite/libgomp.oacc-c-c++-common/private-atomic-1.c:
3670 * testsuite/libgomp.oacc-c-c++-common/private-variables.c:
3672 * testsuite/libgomp.oacc-c-c++-common/routine-4.c: Likewise.
3673 * testsuite/libgomp.oacc-c-c++-common/static-variable-1.c:
3675 * testsuite/libgomp.oacc-fortran/acc_on_device-1-1.f90: Likewise.
3676 * testsuite/libgomp.oacc-fortran/acc_on_device-1-2.f: Likewise.
3677 * testsuite/libgomp.oacc-fortran/acc_on_device-1-3.f: Likewise.
3678 * testsuite/libgomp.oacc-fortran/declare-1.f90: Likewise.
3679 * testsuite/libgomp.oacc-fortran/host_data-5.F90: Likewise.
3680 * testsuite/libgomp.oacc-fortran/if-1.f90: Likewise.
3681 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-1.f90:
3683 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-2.f90:
3685 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-3.f90:
3687 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-6.f90:
3689 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-vector-1.f90:
3691 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-vector-2.f90:
3693 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-1.f90:
3695 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-2.f90:
3697 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-3.f90:
3699 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-4.f90:
3701 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-5.f90:
3703 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-6.f90:
3705 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-7.f90:
3707 * testsuite/libgomp.oacc-fortran/optional-private.f90: Likewise.
3708 * testsuite/libgomp.oacc-fortran/parallel-dims.f90: Likewise.
3709 * testsuite/libgomp.oacc-fortran/private-atomic-1-gang.f90:
3711 * testsuite/libgomp.oacc-fortran/private-atomic-1-worker.f90:
3713 * testsuite/libgomp.oacc-fortran/private-variables.f90: Likewise.
3714 * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Likewise.
3715 * testsuite/libgomp.oacc-fortran/routine-7.f90: Likewise.
3717 2021-05-21 Julian Brown <julian@codesourcery.com>
3718 Chung-Lin Tang <cltang@codesourcery.com>
3719 Thomas Schwinge <thomas@codesourcery.com>
3722 * testsuite/libgomp.oacc-c-c++-common/private-atomic-1-gang.c: New
3724 * testsuite/libgomp.oacc-fortran/private-atomic-1-gang.f90:
3726 * testsuite/libgomp.oacc-fortran/private-atomic-1-worker.f90:
3729 2021-05-21 Thomas Schwinge <thomas@codesourcery.com>
3731 * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Don't skip
3732 for nvptx offloading.
3734 2021-05-21 Tobias Burnus <tobias@codesourcery.com>
3736 * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: New.
3738 2021-05-19 Thomas Schwinge <thomas@codesourcery.com>
3741 * testsuite/libgomp.oacc-c-c++-common/private-atomic-1.c: New.
3743 2021-05-19 Julian Brown <julian@codesourcery.com>
3745 * testsuite/libgomp.oacc-c-c++-common/loop-gwv-2.c: New.
3747 2021-05-18 Thomas Schwinge <thomas@codesourcery.com>
3749 * testsuite/lib/libgomp.exp
3750 (check_effective_target_offload_target_nvptx): Don't shadow global
3751 'offload_targets' variable.
3753 2021-05-18 Thomas Schwinge <thomas@codesourcery.com>
3755 * testsuite/libgomp.c-c++-common/reduction-5.c: Restrict
3756 '-latomic' to nvptx offloading compilation.
3757 * testsuite/libgomp.c-c++-common/reduction-6.c: Likewise.
3759 2021-05-18 Thomas Schwinge <thomas@codesourcery.com>
3761 * testsuite/libgomp.c/target-44.c: Restrict '-latomic' to nvptx
3762 offloading compilation.
3764 2021-05-17 Kwok Cheung Yeung <kcy@codesourcery.com>
3766 * task.c (omp_fulfill_event): Call gomp_team_barrier_set_task_pending
3767 if new tasks generated.
3768 * testsuite/libgomp.c-c++-common/task-detach-13.c: New.
3770 2021-05-14 Tobias Burnus <tobias@codesourcery.com>
3772 * testsuite/libgomp.fortran/parallel-master.f90: New test.
3774 2021-05-13 Martin Liska <mliska@suse.cz>
3777 * testsuite/libgomp.c/omp-nested-3.c: Prune new LTO warning.
3778 * testsuite/libgomp.c/pr46032-2.c: Likewise.
3779 * testsuite/libgomp.oacc-c-c++-common/data-clauses-kernels-ipa-pta.c: Likewise.
3780 * testsuite/libgomp.oacc-c-c++-common/data-clauses-parallel-ipa-pta.c: Likewise.
3782 2021-05-12 Tobias Burnus <tobias@codesourcery.com>
3784 * testsuite/libgomp.c-c++-common/task-detach-12.c: New test.
3785 * testsuite/libgomp.fortran/task-detach-12.f90: New test.
3787 2021-05-11 Jakub Jelinek <jakub@redhat.com>
3789 PR middle-end/100471
3790 * taskloop.c (GOMP_taskloop): If GOMP_TASK_FLAG_REDUCTION and not
3791 GOMP_TASK_FLAG_NOGROUP, when doing early return clear the task
3793 * testsuite/libgomp.c/task-reduction-4.c: New test.
3795 2021-05-07 Tobias Burnus <tobias@codesourcery.com>
3796 Tom de Vries <tdevries@suse.de>
3798 * testsuite/libgomp.c-c++-common/reduction-5.c: New test, testing
3799 complex/floating-point || + && reduction with 'omp target'.
3800 * testsuite/libgomp.c-c++-common/reduction-6.c: Likewise.
3802 2021-05-04 Tobias Burnus <tobias@codesourcery.com>
3804 * testsuite/libgomp.c-c++-common/reduction-1.c: New test.
3805 * testsuite/libgomp.c-c++-common/reduction-2.c: New test.
3806 * testsuite/libgomp.c-c++-common/reduction-3.c: New test.
3807 * testsuite/libgomp.c-c++-common/reduction-4.c: New file.
3809 2021-05-04 Tobias Burnus <tobias@codesourcery.com>
3812 * testsuite/libgomp.fortran/depobj-1.f90 (dep2, dep3): Move var
3813 declaration to scope of non-'depend'-guarded assignment to avoid races.
3815 2021-05-03 Tom de Vries <tdevries@suse.de>
3818 * testsuite/libgomp.c/target-44.c: New test.
3820 2021-04-30 Roman Zhuykov <zhroma@ispras.ru>
3822 * testsuite/libgomp.oacc-c-c++-common/atomic_capture-3.c: New test.
3824 2021-04-29 Tom de Vries <tdevries@suse.de>
3826 * testsuite/libgomp.c/pr81778.c: New test.
3828 2021-04-29 Tom de Vries <tdevries@suse.de>
3831 * testsuite/libgomp.c/target-43.c: New file.
3833 2021-04-28 Jakub Jelinek <jakub@redhat.com>
3834 Tobias Burnus <tobias@codesourcery.com>
3836 * configure.ac (OFFLOAD_DEFAULTED): AC_DEFINE if offload-defaulted.
3837 * target.c (gomp_load_plugin_for_device): If set and if a plugin
3838 can't be dlopened, silently assume it has no devices.
3839 * Makefile.in: Regenerate.
3840 * config.h.in: Regenerate.
3841 * configure: Regenerate.
3843 2021-04-26 Tobias Burnus <tobias@codesourcery.com>
3845 * testsuite/libgomp.oacc-fortran/par-reduction-2-1.f:
3846 Use [Ww]arning in dg-bogus as FE diagnostic and default
3847 diagnostic differ and the result depends on ENABLE_OFFLOAD.
3848 * testsuite/libgomp.oacc-fortran/par-reduction-2-2.f: Likewise.
3849 * testsuite/libgomp.oacc-fortran/parallel-dims.f90: Likewise.
3850 * testsuite/libgomp.oacc-fortran/parallel-reduction.f90: Likewise.
3852 2021-04-26 Tobias Burnus <tobias@codesourcery.com>
3854 * testsuite/libgomp.oacc-fortran/par-reduction-2-1.f:
3855 Correct spelling in dg-bogus to match -Wopenacc-parallelism.
3856 * testsuite/libgomp.oacc-fortran/par-reduction-2-2.f: Likewise.
3857 * testsuite/libgomp.oacc-fortran/parallel-dims.f90: Likewise.
3858 * testsuite/libgomp.oacc-fortran/parallel-reduction.f90: Likewise.
3860 2021-04-26 Thomas Schwinge <thomas@codesourcery.com>
3861 Nathan Sidwell <nathan@codesourcery.com>
3862 Tom de Vries <vries@codesourcery.com>
3863 Julian Brown <julian@codesourcery.com>
3864 Kwok Cheung Yeung <kcy@codesourcery.com>
3866 * testsuite/libgomp.oacc-c-c++-common/firstprivate-1.c: Specify
3867 '-Wopenacc-parallelism', and match diagnostics, as appropriate.
3868 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Likewise.
3869 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c: Likewise.
3870 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c: Likewise.
3871 * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c: Likewise.
3872 * testsuite/libgomp.oacc-c-c++-common/mode-transitions.c:
3874 * testsuite/libgomp.oacc-c-c++-common/par-reduction-1.c: Likewise.
3875 * testsuite/libgomp.oacc-c-c++-common/par-reduction-2.c: Likewise.
3876 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Likewise.
3877 * testsuite/libgomp.oacc-c-c++-common/parallel-reduction.c:
3879 * testsuite/libgomp.oacc-c-c++-common/pr85381-3.c: Likewise.
3880 * testsuite/libgomp.oacc-c-c++-common/private-variables.c:
3882 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Likewise.
3883 * testsuite/libgomp.oacc-c-c++-common/reduction-7.c: Likewise.
3884 * testsuite/libgomp.oacc-c-c++-common/routine-g-1.c: Likewise.
3885 * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c: Likewise.
3886 * testsuite/libgomp.oacc-c-c++-common/routine-wv-2.c: Likewise.
3887 * testsuite/libgomp.oacc-c-c++-common/static-variable-1.c:
3889 * testsuite/libgomp.oacc-fortran/optional-private.f90: Likewise.
3890 * testsuite/libgomp.oacc-fortran/par-reduction-2-1.f: Likewise.
3891 * testsuite/libgomp.oacc-fortran/par-reduction-2-2.f: Likewise.
3892 * testsuite/libgomp.oacc-fortran/parallel-dims.f90: Likewise.
3893 * testsuite/libgomp.oacc-fortran/parallel-reduction.f90: Likewise.
3894 * testsuite/libgomp.oacc-fortran/pr84028.f90: Likewise.
3895 * testsuite/libgomp.oacc-fortran/private-variables.f90: Likewise.
3896 * testsuite/libgomp.oacc-fortran/reduction-1.f90: Likewise.
3897 * testsuite/libgomp.oacc-fortran/reduction-5.f90: Likewise.
3898 * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
3899 * testsuite/libgomp.oacc-fortran/routine-7.f90: Likewise.
3901 2021-04-26 Thomas Schwinge <thomas@codesourcery.com>
3903 * testsuite/libgomp.oacc-c-c++-common/par-reduction-1.c: Don't
3905 * testsuite/libgomp.oacc-c-c++-common/par-reduction-2.c: Likewise.
3906 * testsuite/libgomp.oacc-c-c++-common/parallel-reduction.c:
3908 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Likewise.
3909 * testsuite/libgomp.oacc-c-c++-common/reduction-6.c: Likewise.
3910 * testsuite/libgomp.oacc-fortran/parallel-reduction.f90: Likewise.
3911 * testsuite/libgomp.oacc-fortran/reduction-1.f90: Likewise.
3912 * testsuite/libgomp.oacc-fortran/reduction-5.f90: Likewise.
3913 * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
3914 * testsuite/libgomp.oacc-fortran/reduction-7.f90: Likewise.
3916 2021-04-22 Richard Biener <rguenther@suse.de>
3918 * testsuite/libgomp.c-c++-common/reduction-16.c: Use -latomic
3921 2021-04-21 Tobias Burnus <tobias@codesourcery.com>
3923 * testsuite/libgomp.fortran/depobj-1.f90: Use omp_lib's
3924 omp_depend_kind instead of defining it as 16.
3926 2021-04-21 Tobias Burnus <tobias@codesourcery.com>
3928 * testsuite/lib/libgomp.exp (offload_target_to_openacc_device_type):
3929 New, based on check_effective_target_offload_target_nvptx.
3930 (check_effective_target_offload_target_nvptx): Call it.
3931 (check_effective_target_offload_target_amdgcn): New.
3932 * testsuite/libgomp.c-c++-common/function-not-offloaded.c:
3933 Require target offload_target_nvptx || offload_target_amdgcn.
3934 * testsuite/libgomp.c-c++-common/variable-not-offloaded.c: Likewise.
3935 * testsuite/libgomp.c/pr86416-1.c: Likewise.
3936 * testsuite/libgomp.c/pr86416-2.c: Likewise.
3938 2021-04-21 Tobias Burnus <tobias@codesourcery.com>
3940 * testsuite/libgomp.fortran/depobj-1.f90: New test.
3942 2021-04-19 Thomas Schwinge <thomas@codesourcery.com>
3944 * testsuite/libgomp.oacc-c-c++-common/declare-vla-kernels-decompose-ice-1.c:
3945 '-fopenacc-kernels=[...]' -> '--param=openacc-kernels=[...]'.
3946 * testsuite/libgomp.oacc-c-c++-common/declare-vla-kernels-decompose.c:
3948 * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c:
3950 * testsuite/libgomp.oacc-fortran/pr94358-1.f90: Likewise.
3952 2021-04-15 Thomas Schwinge <thomas@codesourcery.com>
3955 * testsuite/lib/libgomp.exp
3956 (check_effective_target_offload_device_nvptx): New.
3957 * testsuite/libgomp.c/pr99555-1.c <nvptx offload device>: Until
3958 resolved, make sure that we exit quickly, with error status,
3960 * testsuite/libgomp.c-c++-common/task-detach-6.c: Likewise.
3961 * testsuite/libgomp.fortran/task-detach-6.f90: Likewise.
3963 2021-04-14 Jakub Jelinek <jakub@redhat.com>
3966 * testsuite/libgomp.fortran/alloc-1.F90: Call c_f_pointer after last
3967 cp = omp_alloc with cp, p arguments instead of cq, q and call
3968 c_f_pointer after last cq = omp_alloc with cq, q.
3970 2021-04-11 Hafiz Abid Qadeer <abidh@codesourcery.com>
3973 * testsuite/libgomp.oacc-c-c++-common/collapse-2.c: Add check
3974 for loop with GT/GE condition.
3975 * testsuite/libgomp.oacc-c-c++-common/collapse-3.c: Likewise.
3977 2021-04-09 Thomas Schwinge <thomas@codesourcery.com>
3982 * testsuite/libgomp.oacc-c-c++-common/static-variable-1.c: New.
3984 2021-04-09 Jakub Jelinek <jakub@redhat.com>
3987 * team.c (gomp_thread_start): Call pthread_setspecific for
3988 !(defined HAVE_TLS || defined USE_EMUTLS) only after local_thr
3989 has been initialized to avoid false positive warning.
3991 2021-03-29 Tobias Burnus <tobias@codesourcery.com>
3994 * testsuite/lib/on_device_arch.c: Move to ...
3995 * testsuite/libgomp.c-c++-common/on_device_arch.h: ... here.
3996 * testsuite/libgomp.fortran/on_device_arch.c: New file;
3997 #include on_device_arch.h.
3998 * testsuite/libgomp.c-c++-common/task-detach-6.c: #include
3999 on_device_arch.h instead of using dg-additional-source.
4000 * testsuite/libgomp.c/pr99555-1.c: Likewise.
4001 * testsuite/libgomp.fortran/task-detach-6.f90: Update to use
4002 on_device_arch.c without relative paths.
4004 2021-03-25 Thomas Schwinge <thomas@codesourcery.com>
4006 * plugin/plugin-gcn.c (init_environment_variables): Don't prepend
4007 the 'HSA_RUNTIME_LIB' path to 'libhsa-runtime64.so'.
4008 * plugin/configfrag.ac (HSA_RUNTIME_LIB): Clean up.
4009 * config.h.in: Regenerate.
4010 * configure: Likewise.
4012 2021-03-25 Thomas Schwinge <thomas@codesourcery.com>
4015 * testsuite/lib/on_device_arch.c: New file.
4016 * testsuite/libgomp.c/pr99555-1.c: Likewise.
4017 * testsuite/libgomp.c-c++-common/task-detach-6.c: Until resolved,
4018 skip for nvptx offloading, with error status.
4019 * testsuite/libgomp.fortran/task-detach-6.f90: Likewise.
4021 2021-03-25 Thomas Schwinge <thomas@codesourcery.com>
4023 * testsuite/libgomp.oacc-fortran/derivedtypes-arrays-1.f90:
4024 OpenACC 'serial' construct diagnostic for nvptx offloading.
4026 2021-03-15 Tobias Burnus <tobias@codesourcery.com>
4029 * testsuite/libgomp.c-c++-common/declare_target-1.c: New test.
4031 2021-03-12 Tobias Burnus <tobias@codesourcery.com>
4034 * testsuite/libgomp.fortran/use_device_ptr-3.f90: New test.
4036 2021-03-04 Jakub Jelinek <jakub@redhat.com>
4038 * configure.ac: Add AC_CHECK_SIZEOF([void *]).
4039 * plugin/configfrag.ac: Check $ac_cv_sizeof_void_p value instead of
4040 checking of -m32 or -mx32 options on the command line.
4041 * config.h.in: Regenerated.
4042 * configure: Regenerated.
4044 2021-02-27 Iain Sandoe <iain@sandoe.co.uk>
4046 * testsuite/libgomp.c-c++-common/pr96390.c: Require alias
4047 support from the target.
4049 2021-02-25 Kwok Cheung Yeung <kcy@codesourcery.com>
4050 Jakub Jelinek <jakub@redhat.com>
4053 * libgomp.h (enum gomp_task_kind): Add GOMP_TASK_DETACHED.
4054 (struct gomp_task): Replace detach and completion_sem fields with
4055 union containing completion_sem and detach_team. Add deferred_p
4057 (struct gomp_team): Remove task_detach_queue.
4058 * task.c: Include assert.h.
4059 (gomp_init_task): Initialize deferred_p and completion_sem fields.
4060 Rearrange initialization order of fields.
4061 (task_fulfilled_p): Delete.
4062 (GOMP_task): Use address of task as the event handle. Remove
4063 initialization of detach field. Initialize deferred_p field.
4064 Use automatic local for completion_sem. Initialize detach_team field
4066 (gomp_barrier_handle_tasks): Remove handling of task_detach_queue.
4067 Set kind of suspended detach task to GOMP_TASK_DETACHED and
4068 decrement task_running_count. Move finish_cancelled block out of
4069 else branch. Relocate call to gomp_team_barrier_done.
4070 (GOMP_taskwait): Handle tasks with completion events that have not
4072 (GOMP_taskgroup_end): Likewise.
4073 (omp_fulfill_event): Use address of task as event handle. Post to
4074 completion_sem for undeferred tasks. Clear detach_team if task
4075 has not finished. For finished tasks, handle post-execution tasks,
4076 call gomp_team_barrier_wake if necessary, and free task.
4077 * team.c (gomp_new_team): Remove initialization of task_detach_queue.
4078 (free_team): Remove free of task_detach_queue.
4079 * testsuite/libgomp.c-c++-common/task-detach-1.c: Fix formatting.
4080 * testsuite/libgomp.c-c++-common/task-detach-2.c: Fix formatting.
4081 * testsuite/libgomp.c-c++-common/task-detach-3.c: Fix formatting.
4082 * testsuite/libgomp.c-c++-common/task-detach-4.c: Fix formatting.
4083 * testsuite/libgomp.c-c++-common/task-detach-5.c: Fix formatting.
4084 Change data-sharing of detach events on enclosing parallel to private.
4085 * testsuite/libgomp.c-c++-common/task-detach-6.c: Likewise. Remove
4087 * testsuite/libgomp.c-c++-common/task-detach-7.c: New.
4088 * testsuite/libgomp.c-c++-common/task-detach-8.c: New.
4089 * testsuite/libgomp.c-c++-common/task-detach-9.c: New.
4090 * testsuite/libgomp.c-c++-common/task-detach-10.c: New.
4091 * testsuite/libgomp.c-c++-common/task-detach-11.c: New.
4092 * testsuite/libgomp.fortran/task-detach-1.f90: Fix formatting.
4093 * testsuite/libgomp.fortran/task-detach-2.f90: Fix formatting.
4094 * testsuite/libgomp.fortran/task-detach-3.f90: Fix formatting.
4095 * testsuite/libgomp.fortran/task-detach-4.f90: Fix formatting.
4096 * testsuite/libgomp.fortran/task-detach-5.f90: Fix formatting.
4097 Change data-sharing of detach events on enclosing parallel to private.
4098 * testsuite/libgomp.fortran/task-detach-6.f90: Likewise. Remove
4100 * testsuite/libgomp.fortran/task-detach-7.f90: New.
4101 * testsuite/libgomp.fortran/task-detach-8.f90: New.
4102 * testsuite/libgomp.fortran/task-detach-9.f90: New.
4103 * testsuite/libgomp.fortran/task-detach-10.f90: New.
4104 * testsuite/libgomp.fortran/task-detach-11.f90: New.
4106 2021-02-22 Tobias Burnus <tobias@codesourcery.com>
4109 * testsuite/libgomp.fortran/dummy-procs-1.f90: New test.
4111 2021-02-17 Julian Brown <julian@codesourcery.com>
4113 * testsuite/libgomp.oacc-fortran/array-stride-dt-1.f90: Remove
4116 2021-02-17 Julian Brown <julian@codesourcery.com>
4118 * testsuite/libgomp.oacc-fortran/derivedtypes-arrays-1.f90: New test.
4119 * testsuite/libgomp.oacc-fortran/update-dt-array.f90: Likewise.
4121 2021-02-11 Uroš Bizjak <ubizjak@gmail.com>
4123 * config/linux/x86/futex.h (__futex_wait):
4124 Revert output type back to long.
4125 (__futex_wake): Ditto.
4126 (futex_wait): Update for revert.
4127 (futex_wake): Ditto.
4129 2021-02-11 Uroš Bizjak <ubizjak@gmail.com>
4131 * config/linux/x86/futex.h (__futex_wait): New static inline
4132 wrapper function. Correct output type to int and
4133 timeout type to void *.
4134 (__futex_wake): New static inline wrapper function.
4135 Correct output type to int.
4136 (futex_wait): Use __futex_wait.
4137 (futex_wake): Use __futex_wake.
4139 2021-02-10 Julian Brown <julian@codesourcery.com>
4142 * testsuite/libgomp.oacc-fortran/array-stride-dt-1.f90: Add expected
4145 2021-02-04 Julian Brown <julian@codesourcery.com>
4147 * testsuite/libgomp.oacc-fortran/array-stride-dt-1.f90: New test.
4149 2021-02-03 Andrew Stubbs <ams@codesourcery.com>
4151 * plugin/plugin-gcn.c (EF_AMDGPU_MACH): Add
4152 EF_AMDGPU_MACH_AMDGCN_GFX908.
4153 (gcn_gfx908_s): New constant string.
4154 (isa_hsa_name): Add gfx908.
4155 (isa_code): Add gfx908.
4157 2021-01-25 Kwok Cheung Yeung <kcy@codesourcery.com>
4159 * libgomp.texi (omp_fulfill_event): New entry.
4161 2021-01-20 Jakub Jelinek <jakub@redhat.com>
4163 * task.c (GOMP_task): Rename priority argument to priority_arg,
4164 add priority automatic variable and modify that variable. Instead of
4165 clearing detach argument when GOMP_TASK_FLAG_DETACH bit is not set,
4166 check flags for that bit.
4168 2021-01-19 Tobias Burnus <tobias@codesourcery.com>
4171 * testsuite/libgomp.fortran/is_device_ptr-1.f90: New test.
4173 2021-01-18 Andreas Schwab <schwab@suse.de>
4175 * configure.tgt (riscv64*-*-linux*): Add linux to config_path.
4177 2021-01-18 Sebastian Huber <sebastian.huber@embedded-brains.de>
4179 * config/rtems/sem.h (gomp_sem_getcount): New function.
4181 2021-01-18 Jakub Jelinek <jakub@redhat.com>
4183 * config/linux/sem.h (gomp_sem_getcount): New function.
4184 * config/posix/sem.h (gomp_sem_getcount): New function.
4185 * config/posix/sem.c (gomp_sem_getcount): New function.
4186 * config/accel/sem.h (gomp_sem_getcount): New function.
4187 * task.c (task_fulfilled_p): Use gomp_sem_getcount.
4188 (omp_fulfill_event): Likewise.
4190 2021-01-16 Kwok Cheung Yeung <kcy@codesourcery.com>
4192 * fortran.c (omp_fulfill_event_): New.
4193 * libgomp.h (struct gomp_task): Add detach and completion_sem fields.
4194 (struct gomp_team): Add task_detach_queue and task_detach_count
4196 * libgomp.map (OMP_5.0.1): Add omp_fulfill_event and omp_fulfill_event_.
4197 * libgomp_g.h (GOMP_task): Add extra argument.
4198 * omp.h.in (enum omp_event_handle_t): New.
4199 (omp_fulfill_event): New.
4200 * omp_lib.f90.in (omp_event_handle_kind): New.
4201 (omp_fulfill_event): New.
4202 * omp_lib.h.in (omp_event_handle_kind): New.
4203 (omp_fulfill_event): Declare.
4204 * priority_queue.c (priority_tree_find): New.
4205 (priority_list_find): New.
4206 (priority_queue_find): New.
4207 * priority_queue.h (priority_queue_predicate): New.
4208 (priority_queue_find): New.
4209 * task.c (gomp_init_task): Initialize detach field.
4210 (task_fulfilled_p): New.
4211 (GOMP_task): Add detach argument. Ignore detach argument if
4212 GOMP_TASK_FLAG_DETACH not set in flags. Initialize completion_sem
4213 field. Copy address of completion_sem into detach argument and
4214 into the start of the data record. Wait for detach event if task
4216 (gomp_barrier_handle_tasks): Queue tasks with unfulfilled events.
4217 Remove completed tasks and requeue dependent tasks.
4218 (omp_fulfill_event): New.
4219 * team.c (gomp_new_team): Initialize task_detach_queue and
4220 task_detach_count fields.
4221 (free_team): Free task_detach_queue field.
4222 * testsuite/libgomp.c-c++-common/task-detach-1.c: New testcase.
4223 * testsuite/libgomp.c-c++-common/task-detach-2.c: New testcase.
4224 * testsuite/libgomp.c-c++-common/task-detach-3.c: New testcase.
4225 * testsuite/libgomp.c-c++-common/task-detach-4.c: New testcase.
4226 * testsuite/libgomp.c-c++-common/task-detach-5.c: New testcase.
4227 * testsuite/libgomp.c-c++-common/task-detach-6.c: New testcase.
4228 * testsuite/libgomp.fortran/task-detach-1.f90: New testcase.
4229 * testsuite/libgomp.fortran/task-detach-2.f90: New testcase.
4230 * testsuite/libgomp.fortran/task-detach-3.f90: New testcase.
4231 * testsuite/libgomp.fortran/task-detach-4.f90: New testcase.
4232 * testsuite/libgomp.fortran/task-detach-5.f90: New testcase.
4233 * testsuite/libgomp.fortran/task-detach-6.f90: New testcase.
4235 2021-01-15 Jakub Jelinek <jakub@redhat.com>
4238 * configure.tgt: For i?86 and x86_64 determine if -march=i486 needs to
4239 be added through preprocessor check on
4240 __GCC_HAVE_SYNC_COMPARE_AND_SWAP_4.
4242 2021-01-14 Thomas Schwinge <thomas@codesourcery.com>
4245 * plugin/configfrag.ac (PLUGIN_NVPTX): Restrict to supported
4247 * configure: Regenerate.
4248 * plugin/plugin-nvptx.c (nvptx_get_num_devices): Remove 64-bit
4251 2021-01-05 Samuel Thibault <samuel.thibault@ens-lyon.org>
4253 * configure: Re-generate.
4255 2021-01-05 Samuel Thibault <samuel.thibault@ens-lyon.org>
4257 * configure: Re-generate.
4259 2021-01-05 Julian Brown <julian@codesourcery.com>
4261 * plugin/plugin-nvptx.c (SOFTSTACK_CACHE_LIMIT): New define.
4262 (struct ptx_device): Add omp_stacks struct.
4263 (nvptx_open_device): Initialise cached-stacks housekeeping info.
4264 (nvptx_close_device): Free cached stacks block and mutex.
4265 (nvptx_stacks_free): New function.
4266 (nvptx_alloc): Add SUPPRESS_ERRORS parameter.
4267 (GOMP_OFFLOAD_alloc): Add strategies for freeing soft-stacks block.
4268 (nvptx_stacks_alloc): Rename to...
4269 (nvptx_stacks_acquire): This. Cache stacks block between runs if same
4270 size or smaller is required.
4271 (nvptx_stacks_free): Remove.
4272 (GOMP_OFFLOAD_run): Call nvptx_stacks_acquire and lock stacks block
4273 during kernel execution.
4275 2021-01-01 Jakub Jelinek <jakub@redhat.com>
4277 * libgomp.texi: Bump @copying's copyright year.
4279 2020-12-28 Gerald Pfeifer <gerald@pfeifer.com>
4281 * libgomp.texi (Top): Avoid bad "up" link.
4283 2020-12-18 Jakub Jelinek <jakub@redhat.com>
4285 * testsuite/libgomp.c/task-6.c: New test.
4287 2020-12-09 Andrew Stubbs <ams@codesourcery.com>
4289 * plugin/plugin-gcn.c: Include hsa_ext_amd.h.
4290 (HSA_AMD_AGENT_INFO_COMPUTE_UNIT_COUNT): Delete redundant definition.
4292 2020-12-08 Tobias Burnus <tobias@codesourcery.com>
4294 * testsuite/libgomp.fortran/scan-1.f90: New test.
4296 2020-12-05 Iain Sandoe <iain@sandoe.co.uk>
4299 * configure: Regenerate.
4301 2020-11-29 John David Anglin <danglin@gcc.gnu.org>
4303 * configure: Regenerate.
4305 2020-11-25 Thomas Schwinge <thomas@codesourcery.com>
4307 * testsuite/libgomp.oacc-c++/cache-1.C: New.
4308 * testsuite/libgomp.oacc-c-c++-common/cache-1.c: Update.
4310 2020-11-25 Andrew Stubbs <ams@codesourcery.com>
4312 * testsuite/libgomp.oacc-fortran/atomic_capture-1.f90 (main): Adjust
4315 2020-11-24 Andrew Stubbs <ams@codesourcery.com>
4317 * plugin/plugin-gcn.c: Don't redefine relocations if elf.h has them.
4318 (reserved): Delete unused define.
4320 2020-11-24 Thomas Schwinge <thomas@codesourcery.com>
4322 * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c: Avoid
4323 Tcl 8.5-specific behavior.
4324 * testsuite/libgomp.oacc-fortran/pr94358-1.f90: Likewise.
4326 2020-11-18 Kwok Cheung Yeung <kcy@codesourcery.com>
4328 * env.c (gomp_global_icv): Remove nest_var field. Add
4329 max_active_levels_var field.
4330 (gomp_max_active_levels_var): Remove.
4331 (parse_boolean): Return true on success.
4332 (handle_omp_display_env): Express OMP_NESTED in terms of
4333 max_active_levels_var. Change format specifier for
4334 max_active_levels_var.
4335 (initialize_env): Set max_active_levels_var from
4336 OMP_MAX_ACTIVE_LEVELS, OMP_NESTED, OMP_NUM_THREADS and
4338 * icv.c (omp_set_nested): Express in terms of
4339 max_active_levels_var.
4340 (omp_get_nested): Likewise.
4341 (omp_set_max_active_levels): Use max_active_levels_var field instead
4342 of gomp_max_active_levels_var.
4343 (omp_get_max_active_levels): Likewise.
4344 * libgomp.h (struct gomp_task_icv): Remove nest_var field. Add
4345 max_active_levels_var field.
4346 (gomp_supported_active_levels): Set to UCHAR_MAX.
4347 (gomp_max_active_levels_var): Delete.
4348 * libgomp.texi (omp_get_nested): Update documentation.
4349 (omp_set_nested): Likewise.
4350 (OMP_MAX_ACTIVE_LEVELS): Likewise.
4351 (OMP_NESTED): Likewise.
4352 (OMP_NUM_THREADS): Likewise.
4353 (OMP_PROC_BIND): Likewise.
4354 * parallel.c (gomp_resolve_num_threads): Replace reference
4355 to nest_var with max_active_levels_var. Use max_active_levels_var
4356 field instead of gomp_max_active_levels_var.
4358 2020-11-18 Tobias Burnus <tobias@codesourcery.com>
4360 * testsuite/libgomp.c/usleep.h (fallback_usleep): Renamed from
4361 nvptx_usleep; use also for device={arch(gcn)}.
4363 2020-11-14 Jakub Jelinek <jakub@redhat.com>
4365 * testsuite/libgomp.c-c++-common/allocate-1.c (struct S): New type.
4366 (foo): Add tests for non-VLA private and firstprivate clauses on
4368 (bar): Likewise. Remove taking of address from private/firstprivate
4370 * testsuite/libgomp.c++/allocate-1.C (struct S): New type.
4371 (foo): Add p, q, px and s arguments. Add tests for array reductions
4372 and for non-VLA private and firstprivate clauses on omp task.
4374 (main): Adjust foo caller. Don't call bar.
4376 2020-11-13 Gergö Barany <gergo@codesourcery.com>
4377 Thomas Schwinge <thomas@codesourcery.com>
4379 * testsuite/libgomp.oacc-c-c++-common/declare-vla-kernels-decompose-ice-1.c:
4381 * testsuite/libgomp.oacc-c-c++-common/declare-vla-kernels-decompose.c:
4383 * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c:
4385 * testsuite/libgomp.oacc-c-c++-common/declare-vla.c: Adjust.
4386 * testsuite/libgomp.oacc-fortran/pr94358-1.f90: Likewise.
4388 2020-11-13 Gergö Barany <gergo@codesourcery.com>
4389 Thomas Schwinge <thomas@codesourcery.com>
4392 * testsuite/libgomp.oacc-fortran/pr94358-1.f90: New.
4394 2020-11-13 Jakub Jelinek <jakub@redhat.com>
4396 * testsuite/libgomp.c-c++-common/allocate-1.c (foo): Add tests
4397 for array reductions.
4398 (main): Adjust foo callers.
4400 2020-11-12 Jakub Jelinek <jakub@redhat.com>
4402 * libgomp.map (GOMP_alloc, GOMP_free): Export at GOMP_5.0.1.
4403 * omp.h.in (omp_alloc): Add malloc and alloc_size attributes.
4404 * libgomp_g.h (GOMP_alloc, GOMP_free): Declare.
4405 * allocator.c (omp_aligned_alloc): New for now static function,
4406 add alignment argument and handle it.
4407 (omp_alloc): Reimplement using omp_aligned_alloc.
4408 (GOMP_alloc, GOMP_free): New functions.
4409 (omp_free): Add ialias.
4410 * testsuite/libgomp.c-c++-common/allocate-1.c: New test.
4411 * testsuite/libgomp.c++/allocate-1.C: New test.
4413 2020-11-12 Thomas Schwinge <thomas@codesourcery.com>
4416 * testsuite/libgomp.oacc-fortran/attach-descriptor-1.f90: Adjust.
4418 2020-11-10 Chung-Lin Tang <cltang@codesourcery.com>
4420 * libgomp.h (enum gomp_map_vars_kind): Adjust enum values to be bit-flag
4422 * oacc-mem.c (acc_map_data): Adjust gomp_map_vars argument flags to
4423 'GOMP_MAP_VARS_OPENACC | GOMP_MAP_VARS_ENTER_DATA'.
4424 (goacc_enter_datum): Likewise for call to gomp_map_vars_async.
4425 (goacc_enter_data_internal): Likewise.
4426 * target.c (gomp_map_vars_internal):
4427 Change checks of GOMP_MAP_VARS_ENTER_DATA to use bit-and (&). Adjust use
4428 of gomp_attach_pointer for OpenMP cases.
4429 (gomp_exit_data): Add handling of GOMP_MAP_DETACH.
4430 (GOMP_target_enter_exit_data): Add handling of GOMP_MAP_ATTACH.
4431 * testsuite/libgomp.c-c++-common/ptr-attach-1.c: New testcase.
4433 2020-11-05 Ulrich Drepper <drepper@redhat.com>
4434 Kwok Cheung Yeung <kcy@codesourcery.com>
4436 * Makefile.am (%.mod): Add -cpp and -fopenmp to compile flags.
4437 * Makefile.in: Regenerate.
4438 * fortran.c: Wrap uses of omp_set_nested and omp_get_nested with
4439 pragmas to ignore -Wdeprecated-declarations warnings.
4441 * omp.h.in (__GOMP_DEPRECATED_5_0): Define.
4442 Mark omp_lock_hint_* enum values, omp_lock_hint_t, omp_set_nested,
4443 and omp_get_nested with __GOMP_DEPRECATED_5_0.
4444 * omp_lib.f90.in: Mark omp_get_nested and omp_set_nested as
4446 * testsuite/libgomp.c++/affinity-1.C: Add -Wno-deprecated-declarations
4448 * testsuite/libgomp.c/affinity-1.c: Likewise.
4449 * testsuite/libgomp.c/affinity-2.c: Likewise.
4450 * testsuite/libgomp.c/appendix-a/a.15.1.c: Likewise.
4451 * testsuite/libgomp.c/lib-1.c: Likewise.
4452 * testsuite/libgomp.c/nested-1.c: Likewise.
4453 * testsuite/libgomp.c/nested-2.c: Likewise.
4454 * testsuite/libgomp.c/nested-3.c: Likewise.
4455 * testsuite/libgomp.c/pr32362-1.c: Likewise.
4456 * testsuite/libgomp.c/pr32362-2.c: Likewise.
4457 * testsuite/libgomp.c/pr32362-3.c: Likewise.
4458 * testsuite/libgomp.c/pr35549.c: Likewise.
4459 * testsuite/libgomp.c/pr42942.c: Likewise.
4460 * testsuite/libgomp.c/pr61200.c: Likewise.
4461 * testsuite/libgomp.c/sort-1.c: Likewise.
4462 * testsuite/libgomp.c/target-5.c: Likewise.
4463 * testsuite/libgomp.c/target-6.c: Likewise.
4464 * testsuite/libgomp.c/teams-1.c: Likewise.
4465 * testsuite/libgomp.c/thread-limit-1.c: Likewise.
4466 * testsuite/libgomp.c/thread-limit-2.c: Likewise.
4467 * testsuite/libgomp.c/thread-limit-4.c: Likewise.
4468 * testsuite/libgomp.fortran/affinity1.f90: Likewise.
4469 * testsuite/libgomp.fortran/lib1.f90: Likewise.
4470 * testsuite/libgomp.fortran/lib2.f: Likewise.
4471 * testsuite/libgomp.fortran/nested1.f90: Likewise.
4472 * testsuite/libgomp.fortran/teams1.f90: Likewise.
4474 2020-11-02 Thomas Schwinge <thomas@codesourcery.com>
4477 * testsuite/libgomp.oacc-c-c++-common/pr85486-2.c: Simplify and enhance.
4478 * testsuite/libgomp.oacc-c-c++-common/pr85486-3.c: Likewise.
4479 * testsuite/libgomp.oacc-c-c++-common/pr85486.c: Likewise.
4481 2020-11-02 Thomas Schwinge <thomas@codesourcery.com>
4485 * testsuite/lib/libgomp.exp (libgomp_init): Set
4486 'gcc_warning_prefix', 'gcc_error_prefix'.
4488 2020-10-30 Jakub Jelinek <jakub@redhat.com>
4490 * target.c (gomp_map_vars_internal): Use FIELD_TGT_EMPTY macro
4491 even in field_tgt_clear initializer.
4493 2020-10-28 Jakub Jelinek <jakub@redhat.com>
4495 * testsuite/libgomp.c/target-42.c: New test.
4497 2020-10-28 Jakub Jelinek <jakub@redhat.com>
4498 Tom de Vries <tdevries@suse.de>
4501 * testsuite/libgomp.c/usleep.h: New file.
4502 * testsuite/libgomp.c/target-32.c: Include usleep.h.
4503 (main): Use tgt_usleep instead of usleep.
4504 * testsuite/libgomp.c/thread-limit-2.c: Include usleep.h.
4505 (main): Use tgt_usleep instead of usleep.
4507 2020-10-28 Jakub Jelinek <jakub@redhat.com>
4510 * testsuite/libgomp.c/declare-variant-1.c: New test.
4512 2020-10-22 Jakub Jelinek <jakub@redhat.com>
4514 * testsuite/libgomp.c/target-41.c: New test.
4516 2020-10-22 Jakub Jelinek <jakub@redhat.com>
4518 * icv.c (omp_get_initial_device): Remove including corresponding
4520 * icv-device.c (omp_get_initial_device): New function. Return
4521 gomp_get_num_devices (). Add ialias.
4522 * target.c (resolve_device): Don't fail with
4523 OMP_TARGET_OFFLOAD=mandatory if device_id is equal to
4524 gomp_get_num_devices ().
4525 (omp_target_alloc, omp_target_free, omp_target_is_present,
4526 omp_target_memcpy, omp_target_memcpy_rect, omp_target_associate_ptr,
4527 omp_target_disassociate_ptr, omp_pause_resource): Use
4528 gomp_get_num_devices () instead of GOMP_DEVICE_HOST_FALLBACK on the
4529 first use in the functions, in uses dominated by the
4530 gomp_get_num_devices call use num_devices_openmp instead.
4531 * libgomp.texi (omp_get_initial_device): Document.
4532 * config/gcn/icv-device.c (omp_get_initial_device): New function.
4534 * config/nvptx/icv-device.c (omp_get_initial_device): Likewise.
4535 * testsuite/libgomp.c/target-40.c: New test.
4537 2020-10-21 Jakub Jelinek <jakub@redhat.com>
4539 * env.c (parse_target_offload): Change new_offload var type to int,
4540 preinitialize to -1, remove found var and test new_offload != -1
4543 2020-10-20 Jakub Jelinek <jakub@redhat.com>
4545 * target.c (gomp_target_init): Inside of the function, use automatic
4546 variables corresponding to num_devices, num_devices_openmp and devices
4547 global variables and update the globals only at the end of the
4550 2020-10-20 Kwok Cheung Yeung <kcy@codesourcery.com>
4552 * env.c (gomp_target_offload_var): New.
4553 (parse_target_offload): New.
4554 (handle_omp_display_env): Print value of OMP_TARGET_OFFLOAD.
4555 (initialize_env): Parse OMP_TARGET_OFFLOAD.
4556 * libgomp.h (gomp_target_offload_t): New.
4557 (gomp_target_offload_var): New.
4558 * libgomp.texi (OMP_TARGET_OFFLOAD): New section.
4559 * target.c (resolve_device): Generate error if device not found and
4560 offloading is mandatory.
4561 (gomp_target_fallback): Generate error if offloading is mandatory.
4562 (GOMP_target): Add argument in call to gomp_target_fallback.
4563 (GOMP_target_ext): Likewise.
4564 (gomp_target_data_fallback): Generate error if offloading is mandatory.
4565 (GOMP_target_data): Add argument in call to gomp_target_data_fallback.
4566 (GOMP_target_data_ext): Likewise.
4567 (gomp_target_task_fn): Add argument in call to gomp_target_fallback.
4568 (gomp_target_init): Return early if offloading is disabled.
4570 2020-10-15 Kwok Cheung Yeung <kcy@codesourcery.com>
4572 * libgomp.texi (omp_get_max_active_levels): Modify description.
4573 (omp_get_supported_active_levels): Make descriptions consistent.
4575 2020-10-14 Jakub Jelinek <jakub@redhat.com>
4577 * libgomp.texi (omp_get_supported_active_levels): Fix a typo.
4579 2020-10-13 Kwok Cheung Yeung <kcy@codesourcery.com>
4581 * env.c (gomp_max_active_levels_var): Initialize to
4582 gomp_supported_active_levels.
4583 (initialize_env): Limit gomp_max_active_levels_var to be at most
4584 equal to gomp_supported_active_levels.
4585 * fortran.c (omp_get_supported_active_levels): Add ialias_redirect.
4586 (omp_get_supported_active_levels_): New.
4587 * icv.c (omp_set_max_active_levels): Limit gomp_max_active_levels_var
4588 to at most equal to gomp_supported_active_levels.
4589 (omp_get_supported_active_levels): New.
4590 * libgomp.h (gomp_supported_active_levels): New.
4591 * libgomp.map (OMP_5.0.1): Add omp_get_supported_active_levels and
4592 omp_get_supported_active_levels_.
4593 * libgomp.texi (omp_get_supported_active_levels): New.
4594 (omp_set_max_active_levels): Update. Add reference to
4595 omp_get_supported_active_levels.
4596 * omp.h.in (omp_get_supported_active_levels): New.
4597 * omp_lib.f90.in (omp_get_supported_active_levels): New.
4598 * omp_lib.h.in (omp_get_supported_active_levels): New.
4599 * testsuite/libgomp.c/lib-2.c (main): Check omp_get_max_active_levels
4600 against omp_get_supported_active_levels.
4601 * testsuite/libgomp.fortran/lib4.f90 (lib4): Likewise.
4603 2020-10-11 Clement Chigot <clement.chigot@atos.net>
4605 * config/t-aix: Delete and recreate libgomp before creating
4608 2020-10-08 Tom de Vries <tdevries@suse.de>
4611 * plugin/plugin-nvptx.c (GOMP_OFFLOAD_run): Report launch
4614 2020-10-06 Tom de Vries <tdevries@suse.de>
4616 * testsuite/libgomp.oacc-fortran/declare-5.f90: Add xfail for PR92790.
4618 2020-10-06 Tom de Vries <tdevries@suse.de>
4621 * testsuite/libgomp.oacc-c-c++-common/declare-vla.c: Remove xfail.
4623 2020-10-05 Tom de Vries <tdevries@suse.de>
4626 * testsuite/libgomp.fortran/pr95654.f90: New test.
4628 2020-10-02 Tobias Burnus <tobias@codesourcery.com>
4630 * Makefile.in: Regenerate with automake 1.15.1.
4631 * aclocal.m4: Likewise.
4632 * configure: Likewise.
4633 * testsuite/Makefile.in: Likewise.
4635 2020-09-30 Andrew Stubbs <ams@codesourcery.com>
4637 * parallel.c (gomp_resolve_num_threads): Ignore nest_var on nvptx
4640 2020-09-30 Tobias Burnus <tobias@codesourcery.com>
4642 * testsuite/libgomp.fortran/declare-target-3.f90: New test.
4644 2020-09-29 Andrew Stubbs <ams@codesourcery.com>
4646 * config/gcn/bar.c (gomp_barrier_wait_end): Skip the barrier if the
4647 total number of threads is one.
4648 (gomp_team_barrier_wake): Likewise.
4649 (gomp_team_barrier_wait_end): Likewise.
4650 (gomp_team_barrier_wait_cancel_end): Likewise.
4651 * config/nvptx/bar.c (gomp_barrier_wait_end): Likewise.
4652 (gomp_team_barrier_wake): Likewise.
4653 (gomp_team_barrier_wait_end): Likewise.
4654 (gomp_team_barrier_wait_cancel_end): Likewise.
4655 * testsuite/libgomp.c-c++-common/nested-parallel-unbalanced.c: New test.
4657 2020-09-28 Tobias Burnus <tobias@codesourcery.com>
4660 * testsuite/libgomp.c++/pr96390.C: New test.
4661 * testsuite/libgomp.c-c++-common/pr96390.c: New test.
4663 2020-09-27 Clement Chigot <clement.chigot@atos.net>
4665 * config/t-aix: Use $(AR) without -X32_64.
4667 2020-09-25 Jakub Jelinek <jakub@redhat.com>
4669 * testsuite/libgomp.c/loop-25.c: New test.
4671 2020-09-22 Tobias Burnus <tobias@codesourcery.com>
4674 * testsuite/libgomp.fortran/pr66199-5.f90: Make stop codes unique.
4676 2020-09-22 Tom de Vries <tdevries@suse.de>
4678 * plugin/plugin-nvptx.c (link_ptx): Print elog if cuLinkComplete call
4681 2020-09-16 Nathan Sidwell <nathan@acm.org>
4683 * testsuite/libgomp.c++/udr-3.C: Add missing ctor.
4685 2020-09-15 Tobias Burnus <tobias@codesourcery.com>
4688 * target.c (gomp_map_vars_internal): Initialize has_nullptr.
4690 2020-09-15 Tobias Burnus <tobias@codesourcery.com>
4693 * libgomp.h (struct target_var_desc): Add has_null_ptr_assoc member.
4694 * target.c (gomp_map_vars_existing): Add always_to_flag flag.
4695 (gomp_map_vars_existing): Update call to it.
4696 (gomp_map_fields_existing): Likewise
4697 (gomp_map_vars_internal): Update PSET handling such that if a nullptr is
4698 now allocated or if GOMP_MAP_POINTER is used PSET is updated and pointer
4700 (GOMP_target_enter_exit_data): Hanlde GOMP_MAP_ALWAYS_POINTER like
4702 * testsuite/libgomp.fortran/map-alloc-ptr-1.f90: New test.
4703 * testsuite/libgomp.fortran/map-alloc-ptr-2.f90: New test.
4705 2020-09-14 Tom de Vries <tdevries@suse.de>
4707 * config/nvptx/atomic.c: New file. Add
4708 __sync_val_compare_and_swap_16.
4709 * testsuite/libgomp.c-c++-common/reduction-16.c: Add -latomic for
4710 target offload_target_nvptx.
4712 2020-09-08 Julian Brown <julian@codesourcery.com>
4714 * testsuite/libgomp.oacc-c-c++-common/atomic_capture-2.c: Remove
4715 iteration-ordering assumptions.
4717 2020-09-08 Julian Brown <julian@codesourcery.com>
4719 * testsuite/libgomp.oacc-fortran/collapse-1.f90: Fix race condition.
4720 * testsuite/libgomp.oacc-fortran/collapse-2.f90: Likewise.
4722 2020-08-20 Chung-Lin Tang <cltang@codesourcery.com>
4724 * plugin/plugin-nvptx.c (nvptx_free):
4725 Change "GOMP_PLUGIN_acc_thread () == NULL" test into check of
4726 CUDA_ERROR_NOT_PERMITTED status for cuMemGetAddressRange. Adjust
4729 2020-08-20 Tobias Burnus <tobias@codesourcery.com>
4731 * testsuite/libgomp.fortran/lastprivate-conditional-10.f90: New test.
4733 2020-08-13 Kwok Cheung Yeung <kcy@codesourcery.com>
4735 * testsuite/libgomp.c-c++-common/reduction-16.c: New.
4737 2020-08-13 Jakub Jelinek <jakub@redhat.com>
4739 * testsuite/libgomp.c/loop-22.c (main): Add some further tests.
4740 * testsuite/libgomp.c/loop-23.c (main): Likewise.
4741 * testsuite/libgomp.c/loop-24.c: New test.
4743 2020-08-08 Jakub Jelinek <jakub@redhat.com>
4744 Tobias Burnus <tobias@codesourcery.com>
4747 * testsuite/libgomp.fortran/pr93553.f90: New test.
4749 2020-08-05 Jakub Jelinek <jakub@redhat.com>
4751 * testsuite/libgomp.c/loop-22.c: New test.
4752 * testsuite/libgomp.c/loop-23.c: New test.
4754 2020-08-05 Jakub Jelinek <jakub@redhat.com>
4757 * testsuite/libgomp.c/teams-3.c: New test.
4758 * testsuite/libgomp.c-c++-common/for-2.h (OMPTEAMS): Define to nothing
4760 (N(test)): Use it before all N(f*) calls.
4761 * testsuite/libgomp.c-c++-common/for-14.c (DO_PRAGMA, OMPTEAMS): Define.
4762 (main): Don't call all test_* functions from within
4763 #pragma omp teams reduction(|:err), call them directly.
4765 2020-08-04 Tom de Vries <tdevries@suse.de>
4768 * testsuite/libgomp.oacc-fortran/pr96628-part1.f90: New test.
4769 * testsuite/libgomp.oacc-fortran/pr96628-part2.f90: New test.
4771 2020-08-03 Julian Brown <julian@codesourcery.com>
4772 Thomas Schwinge <thomas@codesourcery.com>
4774 * testsuite/libgomp.oacc-fortran/attach-descriptor-1.f90: Don't run for
4775 shared-memory devices. Extend with further checking.
4777 2020-08-03 Martin Jambor <mjambor@suse.cz>
4779 * plugin/Makefrag.am: Remove configuration of HSA plugin.
4780 * aclocal.m4: Regenerated.
4781 * Makefile.in: Regenerated.
4782 * config.h.in: Regenerated.
4783 * configure: Regenerated.
4784 * plugin/configfrag.ac: Likewise.
4785 * plugin/hsa_ext_finalize.h: Removed.
4786 * plugin/plugin-hsa.c: Likewise.
4787 * testsuite/Makefile.in: Regenerated.
4788 * testsuite/lib/libgomp.exp
4789 (offload_target_to_openacc_device_type): Remove hsa case.
4790 (check_effective_target_hsa_offloading_selected_nocache): Removed
4791 (check_effective_target_hsa_offloading_selected): Likewise.
4792 (libgomp_init): Do not add -Wno-hsa to additional_flags.
4793 * testsuite/libgomp.hsa.c/alloca-1.c: Removed test.
4794 * testsuite/libgomp.hsa.c/bitfield-1.c: Likewise.
4795 * testsuite/libgomp.hsa.c/bits-insns.c: Likewise.
4796 * testsuite/libgomp.hsa.c/builtins-1.c: Likewise.
4797 * testsuite/libgomp.hsa.c/c.exp: Likewise.
4798 * testsuite/libgomp.hsa.c/complex-1.c: Likewise.
4799 * testsuite/libgomp.hsa.c/complex-align-2.c: Likewise.
4800 * testsuite/libgomp.hsa.c/formal-actual-args-1.c: Likewise.
4801 * testsuite/libgomp.hsa.c/function-call-1.c: Likewise.
4802 * testsuite/libgomp.hsa.c/get-level-1.c: Likewise.
4803 * testsuite/libgomp.hsa.c/gridify-1.c: Likewise.
4804 * testsuite/libgomp.hsa.c/gridify-2.c: Likewise.
4805 * testsuite/libgomp.hsa.c/gridify-3.c: Likewise.
4806 * testsuite/libgomp.hsa.c/gridify-4.c: Likewise.
4807 * testsuite/libgomp.hsa.c/memory-operations-1.c: Likewise.
4808 * testsuite/libgomp.hsa.c/pr69568.c: Likewise.
4809 * testsuite/libgomp.hsa.c/pr82416.c: Likewise.
4810 * testsuite/libgomp.hsa.c/rotate-1.c: Likewise.
4811 * testsuite/libgomp.hsa.c/staticvar.c: Likewise.
4812 * testsuite/libgomp.hsa.c/switch-1.c: Likewise.
4813 * testsuite/libgomp.hsa.c/switch-branch-1.c: Likewise.
4814 * testsuite/libgomp.hsa.c/switch-sbr-2.c: Likewise.
4815 * testsuite/libgomp.hsa.c/tiling-1.c: Likewise.
4816 * testsuite/libgomp.hsa.c/tiling-2.c: Likewise.
4818 2020-07-27 Julian Brown <julian@codesourcery.com>
4819 Thomas Schwinge <thomas@codesourcery.com>
4821 * libgomp.h (struct target_var_desc): Rename do_detach field to
4823 * oacc-mem.c (goacc_exit_datum_1): Add assert. Don't set finalize for
4824 GOMP_MAP_FORCE_DETACH. Update checking to use is_attach field.
4825 (goacc_enter_data_internal): Don't affect reference counts
4826 for attach mappings.
4827 (goacc_exit_data_internal): Don't affect reference counts for detach
4829 * target.c (gomp_map_vars_existing): Don't affect reference counts for
4831 (gomp_map_vars_internal): Set renamed is_attach flag unconditionally to
4832 mark attach mappings.
4833 (gomp_unmap_vars_internal): Use is_attach flag to prevent affecting
4834 reference count for attach mappings.
4835 * testsuite/libgomp.oacc-c-c++-common/mdc-refcount-1.c: New test.
4836 * testsuite/libgomp.oacc-c-c++-common/mdc-refcount-2.c: New test.
4837 * testsuite/libgomp.oacc-c-c++-common/mdc-refcount-2.c: New test.
4838 * testsuite/libgomp.oacc-fortran/deep-copy-6-no_finalize.F90: Mark
4840 * testsuite/libgomp.oacc-fortran/deep-copy-6.f90: Adjust to fail
4841 gracefully in no-finalize mode.
4842 * testsuite/libgomp.oacc-c-c++-common/mdc-refcount-3.c: New file.
4844 2020-07-24 Thomas Schwinge <thomas@codesourcery.com>
4846 * testsuite/libgomp.oacc-c++/c++.exp: Unset 'offload_target' after
4848 * testsuite/libgomp.oacc-c/c.exp: Likewise.
4849 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
4851 2020-07-23 Julian Brown <julian@codesourcery.com>
4852 Thomas Schwinge <thomas@codesourcery.com>
4854 * target.c (gomp_unmap_vars_internal): Remove unnecessary forcing of
4855 finalization for detach operation.
4856 * testsuite/libgomp.oacc-c-c++-common/structured-detach-underflow.c:
4859 2020-07-23 Tobias Burnus <tobias@codesourcery.com>
4861 * configure.ac: Add OMP_DEPEND_KIND and OMP_INT128_SIZE.
4862 * libgomp_f.h.in (omp_check_defines): Check whether
4863 sizeof of determined Fortran kind and C typedef match.
4864 * omp_lib.f90.in: Add omp_depened_kind.
4865 * omp_lib.h.in: Likewise; fix omp_alloctrait_key_kind.
4866 * configure: Regenerate.
4867 * Makefile.in: Regenerate.
4868 * testsuite/Makefile.in: Regenerate.
4870 2020-07-22 Tobias Burnus <tobias@codesourcery.com>
4872 * testsuite/libgomp.c-c++-common/critical-hint-1.c: New; moved from
4873 gcc/testsuite/c-c++-common/gomp/.
4874 * testsuite/libgomp.c-c++-common/critical-hint-2.c: Likewise.
4875 * testsuite/libgomp.fortran/critical-hint-1.f90: New; moved
4876 from gcc/testsuite/gfortran.dg/gomp/.
4877 * testsuite/libgomp.fortran/critical-hint-2.f90: Likewise.
4879 2020-07-22 Tobias Burnus <tobias@codesourcery.com>
4881 * omp_lib.f90.in: Add omp_sync_hint_* and omp_sync_hint_kind.
4882 * omp_lib.h.in: Likewise.
4884 2020-07-18 H.J. Lu <hjl.tools@gmail.com>
4887 * testsuite/libgomp.c/pr95620.c: New test.
4889 2020-07-16 Julian Brown <julian@codesourcery.com>
4890 Thomas Schwinge <thomas@codesourcery.com>
4892 * testsuite/libgomp.oacc-fortran/attach-descriptor-1.f90: New test.
4893 * testsuite/libgomp.oacc-fortran/attach-descriptor-2.f90: New test.
4895 2020-07-15 Tobias Burnus <tobias@codesourcery.com>
4897 * testsuite/libgomp.fortran/alloc-1.F90: Use c_size_t to
4898 avoid conversion on 32bit systems from 32bit to 64bit due
4899 to -fdefault-integer-8.
4901 2020-07-15 Tobias Burnus <tobias@codesourcery.com>
4903 * testsuite/libgomp.fortran/struct-elem-map-1.f90: Remove unused
4904 variables; add character(kind=4) tests; update TODO comment.
4906 2020-07-15 Tobias Burnus <tobias@codesourcery.com>
4908 * allocator.c: Add ialias for omp_init_allocator and
4909 omp_destroy_allocator.
4910 * configure.ac: Set INTPTR_T_KIND.
4911 * configure: Regenerate.
4912 * Makefile.in: Regenerate.
4913 * testsuite/Makefile.in: Regenerate.
4914 * fortran.c (omp_init_allocator_, omp_destroy_allocator_,
4915 omp_set_default_allocator_, omp_get_default_allocator_): New
4916 functions and ialias_redirect.
4917 * icv.c: Add ialias for omp_set_default_allocator and
4918 omp_get_default_allocator.
4919 * libgomp.map (OMP_5.0.1): Add omp_init_allocator_,
4920 omp_destroy_allocator_, omp_set_default_allocator_ and
4921 omp_get_default_allocator_.
4922 * omp_lib.f90.in: Add allocator traits parameters, declare
4923 allocator routines and add related kind parameters.
4924 * omp_lib.h.in: Likewise.
4925 * testsuite/libgomp.c-c++-common/alloc-2.c: Fix sizeof.
4926 * testsuite/libgomp.fortran/alloc-1.F90: New test.
4927 * testsuite/libgomp.fortran/alloc-2.F90: New test.
4928 * testsuite/libgomp.fortran/alloc-3.F: New test.
4929 * testsuite/libgomp.fortran/alloc-4.f90: New test.
4930 * testsuite/libgomp.fortran/alloc-5.f90: New test.
4932 2020-07-14 Tom de Vries <tom@codesourcery.com>
4933 Cesar Philippidis <cesar@codesourcery.com>
4934 Thomas Schwinge <thomas@codesourcery.com>
4935 Kwok Cheung Yeung <kcy@codesourcery.com>
4937 * oacc-init.c (acc_init_state_lock, acc_init_state, acc_init_thread):
4939 (acc_init_1): Set acc_init_thread to pthread_self (). Set
4940 acc_init_state to initializing at the start, and to initialized at the
4942 (self_initializing_p): New function.
4943 (acc_get_device_type): Return acc_device_none if called by thread that
4944 is currently executing acc_init_1.
4945 * libgomp.texi (acc_get_device_type): Update documentation.
4946 (Implementation Status and Implementation-Defined Behavior): Likewise.
4947 * testsuite/libgomp.oacc-c-c++-common/acc_prof-init-2.c: New.
4949 2020-07-14 David Edelsohn <dje.gcc@gmail.com>
4951 * config/t-aix: Set BITS from compiler cpp macro.
4953 2020-07-14 Tobias Burnus <tobias@codesourcery.com>
4955 * testsuite/libgomp.fortran/struct-elem-map-1.f90: New test.
4957 2020-07-14 Tobias Burnus <tobias@codesourcery.com>
4960 * testsuite/libgomp.fortran/target-map-1.f90: New test.
4962 2020-07-14 Jakub Jelinek <jakub@redhat.com>
4964 * testsuite/libgomp.c/loop-21.c: New test.
4966 2020-07-13 Julian Brown <julian@codesourcery.com>
4967 Thomas Schwinge <thomas@codesourcery.com>
4969 * testsuite/libgomp.oacc-fortran/dynamic-pointer-1.f90: New test.
4971 2020-07-10 Julian Brown <julian@codesourcery.com>
4972 Thomas Schwinge <thomas@codesourcery.com>
4974 * libgomp.h (struct splay_tree_key_s): Change virtual_refcount to
4976 (struct gomp_device_descr): Remove GOMP_MAP_VARS_OPENACC_ENTER_DATA.
4977 * oacc-mem.c (acc_map_data): Substitute virtual_refcount for
4979 (acc_unmap_data): Update comment.
4980 (goacc_map_var_existing, goacc_enter_datum): Adjust for
4981 dynamic_refcount semantics.
4982 (goacc_exit_datum_1, goacc_exit_datum): Re-add some error checking.
4983 Adjust for dynamic_refcount semantics.
4984 (goacc_enter_data_internal): Implement "present" case of dynamic
4985 memory-map handling here. Update "non-present" case for
4986 dynamic_refcount semantics.
4987 (goacc_exit_data_internal): Use goacc_exit_datum_1.
4988 * target.c (gomp_map_vars_internal): Remove
4989 GOMP_MAP_VARS_OPENACC_ENTER_DATA handling. Update for dynamic_refcount
4991 (gomp_unmap_vars_internal): Remove virtual_refcount handling.
4992 (gomp_load_image_to_device): Substitute dynamic_refcount for
4994 * testsuite/libgomp.oacc-c-c++-common/pr92843-1.c: Remove XFAILs.
4995 * testsuite/libgomp.oacc-c-c++-common/refcounting-1.c: New test.
4996 * testsuite/libgomp.oacc-c-c++-common/refcounting-2.c: New test.
4997 * testsuite/libgomp.oacc-c-c++-common/struct-3-1-1.c: New test.
4998 * testsuite/libgomp.oacc-fortran/deep-copy-6.f90: Remove XFAILs and
5000 * testsuite/libgomp.oacc-fortran/deep-copy-6-no_finalize.F90: Remove
5002 * testsuite/libgomp.oacc-fortran/dynamic-incr-structural-1.f90: New
5004 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-4.c:
5005 Remove stale comment.
5006 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-1-1.f90: Remove XFAILs.
5007 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-1-2.F90: Likewise.
5008 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-2-1.f90: Likewise.
5009 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-2-2.f90: Likewise.
5010 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-3-1.f90: Likewise.
5011 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-4-1.f90: Adjust XFAIL.
5013 2020-07-10 Julian Brown <julian@codesourcery.com>
5014 Thomas Schwinge <thomas@codesourcery.com>
5016 * oacc-mem.c (goacc_map_var_existing): New function.
5017 (goacc_enter_datum): Use above function.
5018 (goacc_exit_datum_1): New function.
5019 (goacc_exit_datum): Use above function.
5021 2020-07-09 Julian Brown <julian@codesourcery.com>
5022 Thomas Schwinge <thomas@codesourcery.com>
5025 * testsuite/libgomp.oacc-c-c++-common/pr95270-1.c: New test.
5026 * testsuite/libgomp.oacc-c-c++-common/pr95270-2.c: New test.
5028 2020-07-09 Julian Brown <julian@codesourcery.com>
5030 * oacc-mem.c (find_group_last): Group data-movement clauses
5031 (GOMP_MAP_TO_PSET, GOMP_MAP_TO, etc.) together with a subsequent
5032 GOMP_MAP_ATTACH. Allow standalone GOMP_MAP_ATTACH also.
5034 2020-07-09 Jakub Jelinek <jakub@redhat.com>
5036 * testsuite/libgomp.c/loop-19.c: New test.
5037 * testsuite/libgomp.c/loop-20.c: New test.
5039 2020-07-09 Jakub Jelinek <jakub@redhat.com>
5041 * omp.h.in (omp_alloctrait_value_t): Change omp_atv_default from
5042 2 to -1. Add omp_atv_serialized and define omp_atv_sequential using
5043 it. Remove __omp_alloctrait_value_max__.
5044 * allocator.c (omp_init_allocator): Handle omp_atv_default for
5045 omp_atk_alignment and omp_atk_pool_size.
5047 2020-07-03 Thomas Schwinge <thomas@codesourcery.com>
5049 * oacc-mem.c (goacc_exit_data_internal): Revert always-copyfrom
5050 behavior for 'GOMP_MAP_FORCE_FROM'.
5051 * testsuite/libgomp.oacc-c-c++-common/pr92843-1.c: Adjust XFAIL.
5053 2020-07-03 Thomas Schwinge <thomas@codesourcery.com>
5055 * oacc-mem.c (goacc_exit_data_internal): Remove
5056 'GOMP_MAP_ALWAYS_FROM' handling.
5058 2020-06-30 Thomas Schwinge <thomas@codesourcery.com>
5060 * testsuite/libgomp.oacc-c-c++-common/pr85381-2.c: Replace fragile
5061 'scan-assembler' with 'scan-offload-rtl'.
5062 * testsuite/libgomp.oacc-c-c++-common/pr85381-3.c: Likewise.
5063 * testsuite/libgomp.oacc-c-c++-common/pr85381-4.c: Likewise.
5064 * testsuite/libgomp.oacc-c-c++-common/pr85381-5.c: Likewise.
5065 * testsuite/libgomp.oacc-c-c++-common/pr85381.c: Likewise.
5067 2020-06-30 Thomas Schwinge <thomas@codesourcery.com>
5069 * target.c (gomp_map_vars_existing): Assert 'kind !=
5071 (gomp_map_vars_internal): Clean up.
5073 2020-06-27 Jakub Jelinek <jakub@redhat.com>
5075 * testsuite/libgomp.c/loop-17.c: New test.
5076 * testsuite/libgomp.c/loop-18.c: New test.
5078 2020-06-26 Marek Polacek <polacek@redhat.com>
5080 * testsuite/libgomp.c++/atomic-3.C: Use -std=gnu++14.
5082 2020-06-23 Alexandre Oliva <oliva@adacore.com>
5084 * testsuite/lib/libgomp.exp: Load gcc lib scanoffload.exp.
5085 * testsuite/lib/libgomp-dg.exp: Drop now-obsolete -save-temps.
5087 2020-06-22 David Edelsohn <dje.gcc@gmail.com>
5089 * Makefile.am: Use -include.
5090 * Makefile.in: Regenerate.
5092 2020-06-21 David Edelsohn <dje.gcc@gmail.com>
5094 * Makefile.am (tmake_file): Build and install AIX-style FAT libraries.
5095 * Makefile.in: Regenerate
5096 * configure.ac (tmake_file): Substitute.
5097 * configure: Regenerate.
5098 * configure.tgt (powerpc-ibm-aix*): Define tmake_file.
5099 * config/t-aix: New file.
5101 2020-06-17 Thomas Schwinge <thomas@codesourcery.com>
5104 * testsuite/libgomp.fortran/use_device_ptr-optional-3.f90: Add
5107 2020-06-17 Andrew Stubbs <ams@codesourcery.com>
5109 * plugin/plugin-gcn.c (init_environment_variables): Use ".so.1"
5110 variant for HSA_RUNTIME_LIB name.
5111 (find_executable_symbol_1): Delete.
5112 (find_executable_symbol): Delete.
5113 (init_kernel_properties): Add ".kd" suffix to symbol names.
5114 (find_load_offset): Delete.
5115 (create_and_finalize_hsa_program): Remove relocation handling.
5117 2020-06-16 Tobias Burnus <tobias@codesourcery.com>
5119 * testsuite/libgomp.oacc-fortran/routine-10.f90: New test.
5121 2020-06-08 Tobias Burnus <tobias@codesourcery.com>
5125 * testsuite/libgomp.fortran/target-var.f90: New test.
5127 2020-06-05 Thomas Schwinge <thomas@codesourcery.com>
5128 Julian Brown <julian@codesourcery.com>
5130 * oacc-mem.c (goacc_exit_data_internal) <GOMP_MAP_STRUCT>: Explain
5133 2020-06-05 Thomas Schwinge <thomas@codesourcery.com>
5134 Julian Brown <julian@codesourcery.com>
5136 * oacc-mem.c (goacc_exit_data_internal) <GOMP_MAP_STRUCT>:
5139 2020-06-05 Julian Brown <julian@codesourcery.com>
5141 * testsuite/libgomp.oacc-c-c++-common/struct-copyout-1.c: New test.
5142 * testsuite/libgomp.oacc-c-c++-common/struct-copyout-2.c: New test.
5144 2020-06-04 Thomas Schwinge <thomas@codesourcery.com>
5146 * oacc-mem.c (goacc_exit_data_internal) <GOMP_MAP_STRUCT>:
5147 Evaluate 'copyfrom' individually for each entry.
5148 * testsuite/libgomp.oacc-c-c++-common/struct-1.c: Update.
5150 2020-06-04 Thomas Schwinge <thomas@codesourcery.com>
5152 * oacc-mem.c (goacc_exit_data_internal) <GOMP_MAP_STRUCT>:
5153 Evaluate 'finalize' individually for each entry.
5154 * testsuite/libgomp.oacc-c-c++-common/struct-1.c: New file.
5155 * testsuite/libgomp.oacc-c-c++-common/struct-refcount-1.c: Remove
5158 2020-06-04 Thomas Schwinge <thomas@codesourcery.com>
5160 * testsuite/libgomp.oacc-c-c++-common/deep-copy-7.c: Fix 'sizeof'
5162 * testsuite/libgomp.oacc-c-c++-common/deep-copy-8.c: Likewise.
5164 2020-06-04 Thomas Schwinge <thomas@codesourcery.com>
5165 Julian Brown <julian@codesourcery.com>
5167 * oacc-mem.c (goacc_exit_datum): Repair 'is_tgt_unmapped'
5169 (acc_unmap_data, goacc_exit_data_internal): Restore
5170 'is_tgt_unmapped' checking.
5171 * testsuite/libgomp.oacc-c-c++-common/struct-refcount-1.c: New
5173 * testsuite/libgomp.oacc-fortran/deep-copy-6.f90: Adjust.
5174 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-1-1.f90: Likewise.
5175 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-2-1.f90: Likewise.
5176 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-2-2.f90: Likewise.
5177 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-3-1.f90: Likewise.
5178 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-4-1.f90: Likewise.
5180 2020-06-04 Thomas Schwinge <thomas@codesourcery.com>
5181 Julian Brown <julian@codesourcery.com>
5183 * oacc-mem.c (acc_unmap_data): Don't open-code 'gomp_remove_var'.
5185 2020-06-04 Thomas Schwinge <thomas@codesourcery.com>
5188 * oacc-mem.c (acc_unmap_data): Remove 'tgt' reference counting.
5190 2020-06-04 Thomas Schwinge <thomas@codesourcery.com>
5193 * testsuite/libgomp.oacc-c-c++-common/pr92854-1.c: Extend some
5196 2020-06-04 Thomas Schwinge <thomas@codesourcery.com>
5197 Julian Brown <julian@codesourcery.com>
5199 * oacc-mem.c (goacc_enter_datum): Use 'tgt' returned from
5201 (acc_map_data): Clean up accordingly.
5203 2020-06-04 Thomas Schwinge <thomas@codesourcery.com>
5205 * testsuite/libgomp.oacc-fortran/deep-copy-6.f90: XFAIL behavior
5206 of over-eager 'finalize' clause.
5207 * testsuite/libgomp.oacc-fortran/deep-copy-6-no_finalize.F90: New
5209 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-1-1.f90: Likewise.
5210 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-1-2.F90: Likewise.
5211 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-2-1.f90: Likewise.
5212 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-2-2.f90: Likewise.
5213 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-3-1.f90: Likewise.
5214 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-3-2.f90: Likewise.
5215 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-4-1.f90: Likewise.
5216 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-4-2.f90: Likewise.
5218 2020-06-04 Thomas Schwinge <thomas@codesourcery.com>
5220 * oacc-mem.c (goacc_exit_data_internal): Unlock on error path.
5222 2020-06-04 Julian Brown <julian@codesourcery.com>
5224 * oacc-mem.c (acc_attach_async): Add missing gomp_mutex_unlock on
5226 (goacc_detach_internal): Likewise.
5228 2020-06-04 Thomas Schwinge <thomas@codesourcery.com>
5230 * testsuite/libgomp.oacc-fortran/error_stop-1.f: Initialize before
5232 * testsuite/libgomp.oacc-fortran/error_stop-2.f: Likewise.
5233 * testsuite/libgomp.oacc-fortran/error_stop-3.f: Likewise.
5234 * testsuite/libgomp.oacc-fortran/stop-1.f: Likewise.
5235 * testsuite/libgomp.oacc-fortran/stop-2.f: Likewise.
5236 * testsuite/libgomp.oacc-fortran/stop-3.f: Likewise.
5238 2020-06-02 Jakub Jelinek <jakub@redhat.com>
5240 * allocator.c (omp_free): Fix up build if HAVE_SYNC_BUILTINS is not
5243 2020-05-30 Jakub Jelinek <jakub@redhat.com>
5245 * testsuite/libgomp.c-c++-common/alloc-4.c: New test.
5247 2020-05-30 Jakub Jelinek <jakub@redhat.com>
5249 * allocator.c (omp_alloc): For size == 0, return NULL early.
5251 2020-05-29 H.J. Lu <hjl.tools@gmail.com>
5254 * configure: Regenerated.
5256 2020-05-23 Thomas Koenig <tkoenig@gcc.gnu.org>
5259 * testsuite/libgomp.fortran/async_io_9.f90: New test.
5261 2020-05-19 Jakub Jelinek <jakub@redhat.com>
5263 * omp.h.in (omp_uintptr_t): New typedef.
5264 (__GOMP_UINTPTR_T_ENUM): Define.
5265 (omp_memspace_handle_t, omp_allocator_handle_t, omp_alloctrait_key_t,
5266 omp_alloctrait_value_t, omp_alloctrait_t): New typedefs.
5267 (__GOMP_DEFAULT_NULL_ALLOCATOR): Define.
5268 (omp_init_allocator, omp_destroy_allocator, omp_set_default_allocator,
5269 omp_get_default_allocator, omp_alloc, omp_free): Declare.
5270 * libgomp.h (struct gomp_team_state): Add def_allocator field.
5271 (gomp_def_allocator): Declare.
5272 * libgomp.map (OMP_5.0.1): Export omp_set_default_allocator,
5273 omp_get_default_allocator, omp_init_allocator, omp_destroy_allocator,
5274 omp_alloc and omp_free.
5275 * team.c (gomp_team_start): Copy over ts.def_allocator.
5276 * env.c (gomp_def_allocator): New variable.
5277 (parse_wait_policy): Adjust function comment.
5278 (parse_allocator): New function.
5279 (handle_omp_display_env): Print OMP_ALLOCATOR.
5280 (initialize_env): Call parse_allocator.
5281 * Makefile.am (libgomp_la_SOURCES): Add allocator.c.
5282 * allocator.c: New file.
5283 * icv.c (omp_set_default_allocator, omp_get_default_allocator): New
5285 * testsuite/libgomp.c-c++-common/alloc-1.c: New test.
5286 * testsuite/libgomp.c-c++-common/alloc-2.c: New test.
5287 * testsuite/libgomp.c-c++-common/alloc-3.c: New test.
5288 * Makefile.in: Regenerated.
5290 2020-05-15 H.J. Lu <hongjiu.lu@intel.com>
5293 * configure: Regenerated.
5295 2020-05-14 Thomas Koenig <tkoenig@gcc.gnu.org>
5298 * testsuite/libgomp.fortran/close_errors_1.f90: New test.
5300 2020-05-14 H.J. Lu <hongjiu.lu@intel.com>
5302 * configure: Regenerated.
5304 2020-05-14 Jakub Jelinek <jakub@redhat.com>
5306 * testsuite/libgomp.c-c++-common/target-40.c: New test.
5308 2020-05-13 Tobias Burnus <tobias@codesourcery.com>
5311 * testsuite/libgomp.fortran/pr66199-3.f90: New.
5312 * testsuite/libgomp.fortran/pr66199-4.f90: New.
5313 * testsuite/libgomp.fortran/pr66199-5.f90: New.
5314 * testsuite/libgomp.fortran/pr66199-6.f90: New.
5315 * testsuite/libgomp.fortran/pr66199-7.f90: New.
5316 * testsuite/libgomp.fortran/pr66199-8.f90: New.
5317 * testsuite/libgomp.fortran/pr66199-9.f90: New.
5319 2020-05-12 Jakub Jelinek <jakub@redhat.com>
5321 * testsuite/libgomp.c/target-39.c: New test.
5323 2020-04-29 Thomas Schwinge <thomas@codesourcery.com>
5325 * config/accel/openacc.f90 (acc_device_current): Set to '-1'.
5326 * openacc.f90 (acc_device_current): Likewise.
5327 * openacc.h (acc_device_current): Likewise.
5328 * openacc_lib.h (acc_device_current): Likewise.
5331 * testsuite/libgomp.c-c++-common/function-not-offloaded.c: Remove
5332 'dg-allow-blank-lines-in-output'.
5334 * oacc-init.c (get_openacc_name): Handle 'gcn'.
5335 * testsuite/lib/libgomp.exp
5336 (offload_target_to_openacc_device_type) [amdgcn*]: Return
5337 'radeon'. Adjust all users.
5338 (check_effective_target_openacc_amdgcn_accel_present): Rename
5340 (check_effective_target_openacc_radeon_accel_present): ... this.
5342 (check_effective_target_openacc_amdgcn_accel_selected): Rename to...
5343 (check_effective_target_openacc_radeon_accel_selected): ... this.
5346 * testsuite/libgomp.fortran/use_device_ptr-optional-2.f90: Add
5349 2020-04-23 Andrew Stubbs <ams@codesourcery.com>
5353 * plugin/plugin-gcn.c (init_hsa_context): Check return value from
5355 (GOMP_OFFLOAD_init_device): Check return values from both calls to
5356 hsa_agent_iterate_regions.
5358 2020-04-20 Thomas Schwinge <thomas@codesourcery.com>
5361 * testsuite/libgomp.fortran/target-enter-data-2.F90: Add 'dg-do
5364 2020-04-20 Tobias Burnus <tobias@codesourcery.com>
5367 * testsuite/libgomp.oacc-c++/declare-pr94120.C: Fix 'declare copy(out)'
5370 2020-04-17 Tobias Burnus <tobias@codesourcery.com>
5373 * testsuite/libgomp.fortran/target-enter-data-2.F90: New.
5375 2020-04-13 Thomas Schwinge <thomas@codesourcery.com>
5378 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-1-lib.c:
5380 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-1-lib.c:
5382 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-1.c:
5384 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-1.c:
5386 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-2-lib.c:
5388 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-2-lib.c:
5390 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-2.c:
5392 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-2.c:
5394 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-3-lib.c:
5396 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-3-lib.c:
5398 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-3.c:
5400 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-3.c:
5402 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-4-lib.c:
5404 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-4-lib.c:
5406 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-4.c:
5408 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-4.c:
5410 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-5-lib.c:
5412 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-5-lib.c:
5414 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-5.c:
5416 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-5.c:
5418 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-6-lib.c:
5420 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-6-lib.c:
5422 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-6.c:
5424 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-6.c:
5426 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-7-lib.c:
5428 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-7-lib.c:
5430 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-7.c:
5432 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-7.c:
5434 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-8-lib.c:
5436 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-8-lib.c:
5438 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-8.c::
5440 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-8.c:
5443 2020-04-10 Julian Brown <julian@codesourcery.com>
5444 Thomas Schwinge <thomas@codesourcery.com>
5447 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-1-lib.c:
5449 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-1.c:
5451 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-2-lib.c:
5453 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-2.c:
5455 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-3-lib.c:
5457 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-3.c:
5459 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-4-lib.c:
5461 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-4.c:
5463 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-5-lib.c:
5465 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-5.c:
5467 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-6-lib.c:
5469 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-6.c:
5471 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-7-lib.c:
5473 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-7.c:
5475 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-8-lib.c:
5477 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-8.c:
5480 2020-04-10 Thomas Schwinge <thomas@codesourcery.com>
5482 * testsuite/libgomp.fortran/target-enter-data-1.f90: Add 'dg-do
5485 2020-04-08 Tobias Burnus <tobias@codesourcery.com>
5488 * libgomp.oacc-c++/declare-pr94120.C: New.
5490 2020-04-06 Maciej W. Rozycki <macro@wdc.com>
5492 * configure.ac: Add testsuite/libgomp-site-extra.exp to output
5494 * configure: Regenerate.
5495 * testsuite/libgomp-site-extra.exp.in: New file.
5496 * testsuite/libgomp-test-support.exp.in (GCC_UNDER_TEST): Remove
5498 * testsuite/Makefile.am (EXTRA_DEJAGNU_SITE_CONFIG): New
5500 * testsuite/Makefile.in: Regenerate.
5502 2020-04-03 Thomas Schwinge <thomas@codesourcery.com>
5504 PR tree-optimization/89713
5506 * testsuite/libgomp.oacc-c-c++-common/pr85381-2.c: Again expect
5508 * testsuite/libgomp.oacc-c-c++-common/pr85381-4.c: Likewise.
5510 2020-03-31 Tobias Burnus <tobias@codesourcery.com>
5512 * target.c (GOMP_target_enter_exit_data): Handle PSET/MAP_POINTER.
5513 * testsuite/libgomp.fortran/target-enter-data-1.f90: New.
5515 2020-03-24 Tobias Burnus <tobias@codesourcery.com>
5518 * testsuite/libgomp.c/target-link-1.c: Remove xfail.
5520 2020-03-20 Tobias Burnus <tobias@codesourcery.com>
5523 * target.c (gomp_load_image_to_device): Fix link
5526 2020-03-19 Jakub Jelinek <jakub@redhat.com>
5529 * testsuite/libgomp.c++/pr93931.C: New test.
5531 2020-03-19 Tobias Burnus <tobias@codesourcery.com>
5533 * testsuite/libgomp.c-c++-common/function-not-offloaded.c: Add
5534 dg-allow-blank-lines-in-output.
5536 2020-03-18 Julian Brown <julian@codesourcery.com>
5537 Tobias Burnus <tobias@codesourcery.com>
5539 * testsuite/libgomp.oacc-fortran/atomic_capture-1.f90: Really make
5540 it work concurrently.
5542 2020-03-18 Tobias Burnus <tobias@codesourcery.com>
5544 * testsuite/libgomp.oacc-c++/firstprivate-mappings-1.C: Add
5545 #define DO_LONG_DOUBLE; set to 1, except for nvidia + gcn.
5546 * libgomp.oacc-c-c++-common/firstprivate-mappings-1.c: Likewise.
5548 2020-03-14 Jakub Jelinek <jakub@redhat.com>
5551 * testsuite/libgomp.c/pr93566.c: New test.
5553 2020-02-21 Frederik Harwath <frederik@codesourcery.com>
5555 * testsuite/libgomp.oacc-fortran/acc_get_property.f90: Adapt to
5556 changes from 2020-02-19, i.e. use integer(c_size_t) instead of
5557 integer(acc_device_property) for the type of the return value of
5560 2020-02-19 Tobias Burnus <tobias@codesourcery.com>
5562 * .gitattributes: New; whitespace handling for Fortran's openacc_lib.h.
5563 * config/accel/openacc.f90 (openacc_kinds): Add acc_device_current.
5564 (openacc_internal, acc_on_device_h): Fix argument name; minor cleanup.
5565 * libgomp.texi (Enabling OpenACC): No longer mark as experimental.
5566 (acc_set_device_num): Fix Fortran argument name, use same name for C.
5567 (acc_get_property): Update Fortran interface to post-OpenACC 3.0
5568 corrections; add note about the previous interface and named constant.
5569 (OpenACC library and environment variables): Fix two typos.
5570 * openacc.f90: Use for all procedures the argument names from the spec
5571 as for …_h they are user visible.
5572 (openacc_kinds): Rename acc_device_property to
5573 acc_device_property_kinds and change value to int32 ; and update users.
5574 Re-add acc_device_property for for backward compatibility.
5575 (acc_get_property_string_h): Clean up as acc_device_property_kind
5577 (acc_get_property_h): Likewise and return c_size_t instead of
5578 acc_device_property.
5579 (openacc): Also export acc_device_property_kinds.
5580 (acc_async_test_h, acc_async_test_all_h, acc_on_device_h,
5581 acc_is_present_32_h, acc_is_present_64_h): Simplify logical-return-value
5582 handling; check against /= 0 instead of == 1 to match C.
5583 * openacc_lib.h: Use for all procedures the argument names from the spec
5584 as for …_h they are user visible. Place !GCC$ into the first column to
5585 be active also for fixed-form souce form.
5586 (acc_device_current, acc_device_property_kind, acc_device_property,
5587 acc_property_memory, acc_property_free_memory, acc_property_name,
5588 acc_property_vendor, acc_property_driver): New named constants.
5589 (acc_get_property, acc_get_property_string): New generic interface.
5591 2020-02-13 Frederik Harwath <frederik@codesourcery.com>
5594 * plugin/plugin-nvptx.c: Remove GOMP_OFFLOAD_async_run stub.
5595 * target.c (gomp_load_plugin_for_device): Make "async_run" loading
5597 (gomp_target_task_fn): Assert "devicep->async_run_func".
5598 (clear_unsupported_flags): New function to remove unsupported flags
5599 (right now only GOMP_TARGET_FLAG_NOWAIT) that can be be ignored.
5600 (GOMP_target_ext): Apply clear_unsupported_flags to flags.
5601 * testsuite/libgomp.c/target-33.c:
5602 Remove xfail for offload_target_nvptx.
5603 * testsuite/libgomp.c/target-34.c: Likewise.
5605 2020-02-10 Frederik Harwath <frederik@codesourcery.com>
5607 * testsuite/libgomp.c/target-33.c: Add xfail for execution on
5608 offload_target_nvptx, cf. https://gcc.gnu.org/PR81688.
5609 * testsuite/libgomp.c/target-34.c: Likewise.
5610 * testsuite/libgomp.c/target-link-1.c: Add xfail for
5611 offload_target_nvptx, cf. https://gcc.gnu.org/PR81689.
5613 2020-02-09 Jakub Jelinek <jakub@redhat.com>
5615 * testsuite/libgomp.c/target-38.c: New test.
5617 2020-02-06 Jakub Jelinek <jakub@redhat.com>
5620 * testsuite/libgomp.c-c++-common/pr93515.c: New test.
5622 2020-02-05 Tobias Burnus <tobias@codesourcery.com>
5624 * testsuite/lib/libgomp.exp
5625 (check_effective_target_offload_target_nvptx): Pass flags as 'options'
5626 and not as 'source' argument to libgomp_target_compile.
5628 2020-02-03 Andrew Stubbs <ams@codesourcery.com>
5630 * plugin/plugin-gcn.c (EF_AMDGPU_MACH_AMDGCN_GFX801): Remove.
5631 (gcn_gfx801_s): Remove.
5632 (isa_hsa_name): Remove gfx801.
5633 (isa_gcc_name): Remove gfx801/carizzo.
5634 (isa_code): Remove gfx801.
5636 2020-02-03 Julian Brown <julian@codesourcery.com>
5637 Tobias Burnus <tobias@codesourcery.com>
5639 * libgomp.texi (OpenACC Runtime Library Routines): Document *_async
5640 and *_finalize variants; document acc_attach and acc_detach; update
5641 references from OpenACC 2.0 to 2.6.
5642 * openacc.f90 (openacc_version): Update to 201711.
5643 * openacc_lib.h (openacc_version): Update to 201711.
5644 * testsuite/libgomp.oacc-fortran/openacc_version-1.f: Update expected
5645 openacc_version to 201711.
5646 * testsuite/libgomp.oacc-fortran/openacc_version-2.f90: Likewise.
5648 2020-01-31 Kwok Cheung Yeung <kcy@codesourcery.com>
5650 * plugin/plugin-gcn.c (struct hsa_kernel_description): Add sgpr_count
5651 and vgpr_count fields.
5652 (struct kernel_info): Add a field for a hsa_kernel_description.
5653 (run_kernel): Reduce the number of threads/workers if the requested
5654 number would require too many VGPRs.
5655 (init_basic_kernel_info): Initialize description field with
5656 the hsa_kernel_description entry for the kernel.
5658 2020-01-29 Tobias Burnus <tobias@codesourcery.com>
5661 * plugin/configfrag.ac (enable_offload_targets): Skip
5662 HSA and GCN plugin besides -m32 also for -mx32.
5663 * configure: Regenerate.
5665 2020-01-29 Frederik Harwath <frederik@codesourcery.com>
5667 * oacc-init.c (name_of_acc_device_t): Handle acc_device_radeon.
5669 2020-01-29 Frederik Harwath <frederik@codesourcery.com>
5671 * plugin-gcn.c (struct agent_info): Add fields "name" and
5673 (GOMP_OFFLOAD_init_device): ... and init from here.
5674 (struct hsa_context_info): Add field "driver_version_s" ...
5675 (init_hsa_contest): ... and init from here.
5676 (GOMP_OFFLOAD_openacc_get_property): Replace stub with a proper
5678 * testsuite/libgomp.oacc-c-c++-common/acc_get_property.c:
5679 Enable test execution for amdgcn and host offloading targets.
5680 * testsuite/libgomp.oacc-fortran/acc_get_property.f90: Likewise.
5681 * testsuite/libgomp.oacc-c-c++-common/acc_get_property-aux.c
5682 (expect_device_properties): Split function into ...
5683 (expect_device_string_properties): ... this new function ...
5684 (expect_device_memory): ... and this new function.
5685 * testsuite/libgomp.oacc-c-c++-common/acc_get_property-gcn.c:
5688 2020-01-28 Julian Brown <julian@codesourcery.com>
5690 * testsuite/libgomp.oacc-fortran/deep-copy-2.f90: Remove test from here.
5691 * testsuite/libgomp.oacc-fortran/deep-copy-3.f90: Don't use mixed
5692 component/non-component variable refs in a single directive.
5693 * testsuite/libgomp.oacc-fortran/classtypes-1.f95: Likewise.
5695 2020-01-24 Maciej W. Rozycki <macro@wdc.com>
5697 * configure.ac: Handle `--with-toolexeclibdir='.
5698 * Makefile.in: Regenerate.
5699 * aclocal.m4: Regenerate.
5700 * configure: Regenerate.
5701 * testsuite/Makefile.in: Regenerate.
5703 2020-01-24 Frederik Harwath <frederik@codesourcery.com>
5705 * testsuite/libgomp.oacc-c-c++-common/acc_get_property-aux.c
5706 (expect_device_properties): Remove "expected_free_mem" argument,
5707 change "expected_total_mem" argument type to size_t;
5708 change types of acc_get_property results to size_t,
5709 adapt format strings.
5710 * testsuite/libgomp.oacc-c-c++-common/acc_get_property.c:
5711 Use %zu instead of %zd to print size_t values.
5712 * testsuite/libgomp.oacc-c-c++-common/acc_get_property-2.c: Adapt and
5714 * testsuite/libgomp.oacc-c-c++-common/acc_get_property-nvptx.c: ... this.
5715 * testsuite/libgomp.oacc-c-c++-common/acc_get_property-3.c: Adapt and
5717 * testsuite/libgomp.oacc-c-c++-common/acc_get_property-host.c: ... this.
5719 2020-01-23 Andrew Stubbs <ams@codesourcery.com>
5721 * plugin/plugin-gcn.c (parse_target_attributes): Use correct mask for
5724 2020-01-20 Andrew Stubbs <ams@codesourcery.com>
5726 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Skip test on gcn.
5727 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c (main):
5728 Adjust test dimensions for amdgcn.
5729 * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c (main): Adjust
5730 gang/worker/vector expectations dynamically.
5731 * testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c
5733 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c (main): Likewise.
5734 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c (main): Likewise.
5735 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c (main): Likewise.
5736 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c (main): Likewise.
5737 * testsuite/libgomp.oacc-c-c++-common/loop-red-wv-1.c (main): Likewise.
5738 * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c (main): Likewise.
5739 * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c (main): Likewise.
5740 * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c (main): Likewise.
5741 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c
5742 (acc_gang): Recognise acc_device_radeon.
5743 (acc_worker): Likewise.
5744 (acc_vector): Likewise.
5745 (main): Set expectations for amdgcn.
5746 * testsuite/libgomp.oacc-c-c++-common/routine-gwv-1.c
5747 (main): Adjust gang/worker/vector expectations dynamically.
5748 * testsuite/libgomp.oacc-c-c++-common/routine-v-1.c (main): Likewise.
5749 * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c (main): Likewise.
5750 * testsuite/libgomp.oacc-c-c++-common/routine-wv-1.c (main): Likewise.
5751 * testsuite/libgomp.oacc-c-c++-common/routine-wv-2.c: Set expectations
5754 2020-01-17 Andrew Stubbs <ams@codesourcery.com>
5756 * config/accel/openacc.f90 (openacc_kinds): Rename acc_device_gcn to
5758 (openacc): Likewise.
5759 * openacc.f90 (openacc_kinds): Likewise.
5760 (openacc): Likewise.
5761 * openacc.h (acc_device_t): Likewise.
5762 * openacc_lib.h: Likewise.
5763 * testsuite/lib/libgomp.exp
5764 (check_effective_target_openacc_amdgcn_accel_present): Likewise.
5765 * testsuite/libgomp.oacc-c-c++-common/acc_prof-init-1.c
5766 (cb_compute_construct_end): Likewise.
5767 * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c
5768 (cb_enqueue_launch_start): Likewise.
5769 * testsuite/libgomp.oacc-c-c++-common/acc_prof-parallel-1.c
5770 (cb_enter_data_end): Likewise.
5771 (cb_exit_data_start): Likewise.
5772 (cb_exit_data_end): Likewise.
5773 (cb_compute_construct_end): Likewise.
5774 (cb_enqueue_launch_start): Likewise.
5775 (cb_enqueue_launch_end): Likewise.
5776 * testsuite/libgomp.oacc-c-c++-common/asyncwait-nop-1.c
5779 2020-01-10 Thomas Schwinge <thomas@codesourcery.com>
5781 * libgomp-plugin.h (enum goacc_property): New. Adjust all users
5782 to use this instead of 'enum gomp_device_property'.
5783 (GOMP_OFFLOAD_get_property): Rename to...
5784 (GOMP_OFFLOAD_openacc_get_property): ... this. Adjust all users.
5785 * libgomp.h (struct gomp_device_descr): Move
5786 'GOMP_OFFLOAD_openacc_get_property'...
5787 (struct acc_dispatch_t): ... here. Adjust all users.
5788 * plugin/plugin-hsa.c (GOMP_OFFLOAD_get_property): Remove.
5790 * target.c (gomp_map_vars_internal)
5791 <GOMP_MAP_USE_DEVICE_PTR_IF_PRESENT>: Clean up/elaborate code
5794 2020-01-10 Jakub Jelinek <jakub@redhat.com>
5797 * libgomp.h (gomp_print_string): Change return type from void to int.
5798 * affinity-fmt.c (gomp_print_string): Likewise. Return true if
5799 not all characters have been written.
5801 2020-01-08 Tobias Burnus <tobias@codesourcery.com>
5803 * libgomp.texi: Fix typos, use https.
5805 2020-01-03 Tobias Burnus <tobias@codesourcery.com>
5807 * testsuite/libgomp.fortran/optional-map.f90: Add test for
5808 unallocated/disassociated actual arguments to nonallocatable/nonpointer
5809 dummy arguments; those are/shall be regarded as absent arguments.
5810 * testsuite/libgomp.fortran/use_device_ptr-optional-2.f90: Ditto.
5811 * testsuite/libgomp.fortran/use_device_ptr-optional-3.f90: New.
5813 2020-01-01 Jakub Jelinek <jakub@redhat.com>
5815 Update copyright years.
5817 * libgomp.texi: Bump @copying's copyright year.
5819 2019-12-31 Ayush Mittal <ayush.m@samsung.com>
5822 * oacc-init.c (goacc_runtime_deinitialize): New function.
5824 2019-12-28 Jakub Jelinek <jakub@redhat.com>
5827 * plugin/cuda/cuda.h (cuDeviceGetName, cuDriverGetVersion): Declare.
5828 (cuDeviceTotalMem, cuMemGetInfo): Likewise. Define to *_v2.
5830 2019-12-22 Maciej W. Rozycki <macro@codesourcery.com>
5831 Frederik Harwath <frederik@codesourcery.com>
5832 Thomas Schwinge <tschwinge@codesourcery.com>
5834 * libgomp.h (gomp_device_descr): Add `get_property_func' member.
5835 * libgomp-plugin.h (gomp_device_property_value): New union.
5836 (gomp_device_property_value): New prototype.
5837 * openacc.h (acc_device_t): Add `acc_device_current' enumeration
5839 (acc_device_property_t): New enum.
5840 (acc_get_property, acc_get_property_string): New prototypes.
5841 * oacc-init.c (acc_get_device_type): Also assert that result
5842 is not `acc_device_current'.
5843 (get_property_any, acc_get_property, acc_get_property_string):
5845 * openacc.f90 (openacc_kinds): Add `acc_device_current' and
5846 `acc_property_memory', `acc_property_free_memory',
5847 `acc_property_name', `acc_property_vendor' and
5848 `acc_property_driver' constants. Add `acc_device_property' data
5850 (openacc_internal): Add `acc_get_property' and
5851 `acc_get_property_string' interfaces. Add `acc_get_property_h',
5852 `acc_get_property_string_h', `acc_get_property_l' and
5853 `acc_get_property_string_l'.
5854 * oacc-host.c (host_get_property): New function.
5855 (host_dispatch): Wire it.
5856 * target.c (gomp_load_plugin_for_device): Handle `get_property'.
5857 * libgomp.map (OACC_2.6): Add `acc_get_property', `acc_get_property_h_',
5858 `acc_get_property_string' and `acc_get_property_string_h_' symbols.
5859 * libgomp.texi (OpenACC Runtime Library Routines): Add
5861 (acc_get_property): New node.
5862 * plugin/plugin-gcn.c (GOMP_OFFLOAD_get_property): New
5864 * plugin/plugin-hsa.c (GOMP_OFFLOAD_get_property): New function.
5865 * plugin/plugin-nvptx.c (CUDA_CALLS): Add `cuDeviceGetName',
5866 `cuDeviceTotalMem', `cuDriverGetVersion' and `cuMemGetInfo'
5868 (GOMP_OFFLOAD_get_property): New function.
5869 (struct ptx_device): Add new field "name".
5870 (cuda_driver_version_s): Add new static variable ...
5871 (nvptx_init): ... and init from here.
5873 * testsuite/libgomp.oacc-c-c++-common/acc_get_property.c: New test.
5874 * testsuite/libgomp.oacc-c-c++-common/acc_get_property-2.c: New test.
5875 * testsuite/libgomp.oacc-c-c++-common/acc_get_property-3.c: New test.
5876 * testsuite/libgomp.oacc-c-c++-common/acc_get_property-aux.c: New file
5877 with test helper functions.
5879 * testsuite/libgomp.oacc-fortran/acc_get_property.f90: New test.
5881 2019-12-22 Maciej W. Rozycki <macro@wdc.com>
5883 * testsuite/libgomp-test-support.exp.in (GCC_UNDER_TEST): New
5886 2019-12-21 Thomas Schwinge <thomas@codesourcery.com>
5888 * target.c (gomp_map_vars_internal): Restore 'omp declare target
5891 2019-12-19 Julian Brown <julian@codesourcery.com>
5893 * testsuite/libgomp.oacc-fortran/class-ptr-param.f95: New test.
5894 * testsuite/libgomp.oacc-fortran/classtypes-1.f95: New test.
5895 * testsuite/libgomp.oacc-fortran/classtypes-2.f95: New test.
5897 2019-12-19 Julian Brown <julian@codesourcery.com>
5898 Cesar Philippidis <cesar@codesourcery.com>
5900 * testsuite/libgomp.oacc-fortran/deep-copy-1.f90: New test.
5901 * testsuite/libgomp.oacc-fortran/deep-copy-2.f90: New test.
5902 * testsuite/libgomp.oacc-fortran/deep-copy-3.f90: New test.
5903 * testsuite/libgomp.oacc-fortran/deep-copy-4.f90: New test.
5904 * testsuite/libgomp.oacc-fortran/deep-copy-5.f90: New test.
5905 * testsuite/libgomp.oacc-fortran/deep-copy-6.f90: New test.
5906 * testsuite/libgomp.oacc-fortran/deep-copy-7.f90: New test.
5907 * testsuite/libgomp.oacc-fortran/deep-copy-8.f90: New test.
5908 * testsuite/libgomp.oacc-fortran/derived-type-1.f90: New test.
5909 * testsuite/libgomp.oacc-fortran/derivedtype-1.f95: New test.
5910 * testsuite/libgomp.oacc-fortran/derivedtype-2.f95: New test.
5911 * testsuite/libgomp.oacc-fortran/multidim-slice.f95: New test.
5912 * testsuite/libgomp.oacc-fortran/update-2.f90: New test.
5914 2019-12-19 Julian Brown <julian@codesourcery.com>
5916 * testsuite/libgomp.oacc-c-c++-common/deep-copy-1.c: New test.
5917 * testsuite/libgomp.oacc-c-c++-common/deep-copy-2.c: New test.
5918 * testsuite/libgomp.oacc-c-c++-common/deep-copy-4.c: New test.
5919 * testsuite/libgomp.oacc-c-c++-common/deep-copy-6.c: New test.
5920 * testsuite/libgomp.oacc-c-c++-common/deep-copy-7.c: New test.
5921 * testsuite/libgomp.oacc-c-c++-common/deep-copy-8.c: New test.
5922 * testsuite/libgomp.oacc-c-c++-common/deep-copy-9.c: New test.
5923 * testsuite/libgomp.oacc-c-c++-common/deep-copy-10.c: New test.
5924 * testsuite/libgomp.oacc-c-c++-common/deep-copy-11.c: New test.
5925 * testsuite/libgomp.oacc-c-c++-common/deep-copy-14.c: New test.
5926 * testsuite/libgomp.oacc-c++/deep-copy-12.C: New test.
5927 * testsuite/libgomp.oacc-c++/deep-copy-13.C: New test.
5929 2019-12-19 Julian Brown <julian@codesourcery.com>
5931 * libgomp.h (struct target_var_desc): Add do_detach flag.
5932 * oacc-init.c (acc_shutdown_1): Free aux block if present.
5933 * oacc-mem.c (find_group_last): Add SIZES parameter. Support
5934 struct components. Tidy up and add some new checks.
5935 (goacc_enter_data_internal): Update call to find_group_last.
5936 (goacc_exit_data_internal): Support detach operations and
5938 (GOACC_enter_exit_data): Handle initial GOMP_MAP_STRUCT or
5939 GOMP_MAP_FORCE_PRESENT in finalization detection code. Handle
5940 attach/detach in enter/exit data detection code.
5941 * target.c (gomp_map_vars_existing): Initialise do_detach field of
5943 (gomp_map_vars_internal): Support attach.
5944 (gomp_unmap_vars_internal): Support detach.
5946 2019-12-19 Julian Brown <julian@codesourcery.com>
5947 Thomas Schwinge <thomas@codesourcery.com>
5949 * libgomp.h (struct splay_tree_aux): Add attach_count field.
5950 (gomp_attach_pointer, gomp_detach_pointer): Add prototypes.
5951 * libgomp.map (OACC_2.6): New section. Add acc_attach,
5952 acc_attach_async, acc_detach, acc_detach_async, acc_detach_finalize,
5953 acc_detach_finalize_async.
5954 * oacc-mem.c (acc_attach_async, acc_attach, goacc_detach_internal,
5955 acc_detach, acc_detach_async, acc_detach_finalize,
5956 acc_detach_finalize_async): New functions.
5957 * openacc.h (acc_attach, acc_attach_async, acc_detach,
5958 (acc_detach_async, acc_detach_finalize, acc_detach_finalize_async): Add
5960 * target.c (gomp_attach_pointer, gomp_detach_pointer): New functions.
5961 (gomp_remove_var_internal): Free attachment counts if present.
5962 * testsuite/libgomp.oacc-c-c++-common/deep-copy-3.c: New test.
5963 * testsuite/libgomp.oacc-c-c++-common/deep-copy-5.c: New test.
5965 2019-12-19 Julian Brown <julian@codesourcery.com>
5966 Cesar Philippidis <cesar@codesourcery.com>
5968 * libgomp.h (gomp_map_val): Add prototype.
5969 * oacc-parallel.c (GOACC_parallel_keyed): Use gomp_map_val instead of
5970 open-coding device-address calculation.
5971 * target.c (gomp_map_val): Make global. Use OFFSET_POINTER in
5974 2019-12-19 Julian Brown <julian@codesourcery.com>
5976 * libgomp.h (struct splay_tree_key_s): Substitute dynamic_refcount
5977 field for virtual_refcount.
5978 (enum gomp_map_vars_kind): Add GOMP_MAP_VARS_OPENACC_ENTER_DATA.
5979 (gomp_free_memmap): Remove prototype.
5980 * oacc-init.c (acc_shutdown_1): Iteratively call gomp_remove_var
5981 instead of calling gomp_free_memmap.
5982 * oacc-mem.c (acc_map_data): Use virtual_refcount instead of
5984 (acc_unmap_data): Open code instead of forcing target_mem_desc's
5985 to_free field to NULL then calling gomp_unmap_vars. Handle
5986 REFCOUNT_INFINITY on target blocks.
5987 (goacc_enter_data): Rename to...
5988 (goacc_enter_datum): ...this. Remove MAPNUM parameter and special
5989 handling for mapping groups. Use virtual_refcount instead of
5990 dynamic_refcount. Use GOMP_MAP_VARS_OPENACC_ENTER_DATA for
5991 map_map_vars_async call. Re-do lookup for target pointer return value.
5992 (acc_create, acc_create_async, acc_copyin, acc_copyin_async): Call
5993 renamed goacc_enter_datum function.
5994 (goacc_exit_data): Rename to...
5995 (goacc_exit_datum): ...this. Update for virtual_refcount semantics.
5996 (acc_delete, acc_delete_async, acc_delete_finalize,
5997 acc_delete_finalize_async, acc_copyout, acc_copyout_async,
5998 acc_copyout_finalize, acc_copyout_finalize_async): Call renamed
5999 goacc_exit_datum function.
6000 (gomp_acc_remove_pointer, find_pointer): Remove functions.
6001 (find_group_last, goacc_enter_data_internal, goacc_exit_data_internal):
6003 (GOACC_enter_exit_data): Use goacc_enter_data_internal and
6004 goacc_exit_data_internal helper functions.
6005 * target.c (gomp_map_vars_internal): Handle
6006 GOMP_MAP_VARS_OPENACC_ENTER_DATA. Update for virtual_refcount
6008 (gomp_unmap_vars_internal): Update for virtual_refcount semantics.
6009 (gomp_load_image_to_device, omp_target_associate_ptr): Zero-initialise
6010 virtual_refcount field instead of dynamic_refcount.
6011 (gomp_free_memmap): Remove function.
6012 * testsuite/libgomp.oacc-c-c++-common/unmap-infinity-1.c: New test.
6013 * testsuite/libgomp.c-c++-common/unmap-infinity-2.c: New test.
6014 * testsuite/libgomp.oacc-c-c++-common/pr92843-1.c: Add XFAIL.
6016 2019-12-19 Julian Brown <julian@codesourcery.com>
6017 Thomas Schwinge <thomas@codesourcery.com>
6019 * libgomp.h (struct splay_tree_aux): New.
6020 (struct splay_tree_key_s): Replace link_key field with aux pointer.
6021 * target.c (gomp_map_vars_internal): Adjust for link_key being moved
6023 (gomp_remove_var_internal): Free aux block if present.
6024 (gomp_load_image_to_device): Zero-initialise aux field instead of
6026 (omp_target_associate_pointer): Zero-initialise aux field.
6028 2019-12-18 Jakub Jelinek <jakub@redhat.com>
6031 * testsuite/libgomp.c/pr86416-1.c (main): Use L suffixes rather than
6033 * testsuite/libgomp.c/pr86416-2.c (main): Use Q suffixes rather than
6036 2019-12-19 Julian Brown <julian@codesourcery.com>
6037 Maciej W. Rozycki <macro@codesourcery.com>
6038 Tobias Burnus <tobias@codesourcery.com>
6039 Thomas Schwinge <thomas@codesourcery.com>
6041 * target.c (gomp_map_vars_async): Support GOMP_MAP_NO_ALLOC.
6042 * testsuite/libgomp.oacc-c-c++-common/no_create-1.c: New test.
6043 * testsuite/libgomp.oacc-c-c++-common/no_create-2.c: New test.
6044 * testsuite/libgomp.oacc-c-c++-common/no_create-3.c: New test.
6045 * testsuite/libgomp.oacc-c-c++-common/no_create-4.c: New test.
6046 * testsuite/libgomp.oacc-c-c++-common/no_create-5.c: New test.
6047 * testsuite/libgomp.oacc-fortran/no_create-1.f90: New test.
6048 * testsuite/libgomp.oacc-fortran/no_create-2.f90: New test.
6049 * testsuite/libgomp.oacc-fortran/no_create-3.F90: New test.
6051 2019-12-18 Thomas Schwinge <thomas@codesourcery.com>
6053 * oacc-mem.c (goacc_enter_data): Refactor, so that it can be
6055 (goacc_insert_pointer): ... from here, "present" case.
6056 (goacc_insert_pointer): Inline function into...
6057 (GOACC_enter_exit_data): ... here, and simplify.
6059 * oacc-mem.c (goacc_enter_data): Refactor, so that it can be
6061 (goacc_insert_pointer): ... from here, "not present" case.
6063 * oacc-mem.c (goacc_remove_pointer): Refactor interface. Adjust
6066 * oacc-mem.c (GOACC_enter_exit_data): Refactor code to call
6067 'goacc_enter_data', 'goacc_exit_data'.
6069 * oacc-mem.c (delete_copyout): Refactor into...
6070 (goacc_exit_data): ... this. Adjust all users.
6072 * oacc-mem.c (present_create_copy): Refactor into...
6073 (goacc_enter_data): ... this. Adjust all users.
6075 * target.c (gomp_unmap_vars_internal): Add a safeguard to
6078 * target.c (gomp_to_device_kind_p): Handle 'GOMP_MAP_FORCE_FROM'
6079 like 'GOMP_MAP_FROM'.
6084 * oacc-mem.c (delete_copyout): No-op behavior if 'lookup_host'
6086 (GOACC_enter_exit_data): Simplify accordingly.
6087 * testsuite/libgomp.oacc-c-c++-common/pr92970-1.c: New file,
6089 * testsuite/libgomp.oacc-c-c++-common/lib-17.c: ... this file...
6090 * testsuite/libgomp.oacc-c-c++-common/lib-18.c: ..., and this
6092 * testsuite/libgomp.oacc-c-c++-common/pr92984-1.c: New file,
6094 * testsuite/libgomp.oacc-c-c++-common/lib-21.c: ... this file...
6095 * testsuite/libgomp.oacc-c-c++-common/lib-29.c: ..., and this
6097 * testsuite/libgomp.oacc-c-c++-common/pr92726-1.c: New file,
6099 * testsuite/libgomp.oacc-c-c++-common/lib-28.c: ... this file.
6101 * oacc-mem.c (GOACC_enter_exit_data): Simplify 'exit data'
6102 'finalize' handling.
6105 * oacc-mem.c (acc_map_data, present_create_copy)
6106 (goacc_insert_pointer): Use 'GOMP_MAP_VARS_ENTER_DATA'.
6107 (acc_unmap_data, delete_copyout, goacc_remove_pointer): Adjust.
6108 * testsuite/libgomp.oacc-c-c++-common/lib-50.c: Remove.
6109 * testsuite/libgomp.oacc-c-c++-common/pr92848-1-d-a.c: New file
6110 * testsuite/libgomp.oacc-c-c++-common/pr92848-1-d-p.c: Likewise.
6111 * testsuite/libgomp.oacc-c-c++-common/pr92848-1-r-a.c: Likewise.
6112 * testsuite/libgomp.oacc-c-c++-common/pr92848-1-r-p.c: Likewise.
6113 * testsuite/libgomp.oacc-c-c++-common/subset-subarray-mappings-1-r-p.c:
6116 * target.c (gomp_unmap_tgt): Make it 'static'.
6117 * libgomp.h (gomp_unmap_tgt): Remove.
6119 2019-12-18 Tobias Burnus <tobias@codesourcery.com>
6122 * testsuite/libgomp.c/pr86416-1.c: New.
6123 * testsuite/libgomp.c/pr86416-2.c: New.
6125 2019-12-17 Tobias Burnus <tobias@codesourcery.com>
6127 * config/accel/openacc.f90 (module openacc_kinds): Use 'PUBLIC' to mark
6128 all symbols as public except for the 'use …, only' imported symbol,
6130 (module openacc): Default to 'PRIVATE' to exclude openacc_internal; mark
6131 all symbols from module openacc_kinds as PUBLIC
6132 * openacc.f90: Add comment with crossref to that file and openmp_lib.h;
6134 * openacc_lib.h (acc_device_gcn): Add this PARAMETER.
6136 2019-12-13 Julian Brown <julian@codesourcery.com>
6140 * libgomp.h (gomp_remove_var_async): Add prototype.
6141 * oacc-mem.c (delete_copyout): Call gomp_remove_var_async instead of
6143 * target.c (gomp_unref_tgt): Change return type to bool, indicating
6144 whether target_mem_desc was unmapped.
6145 (gomp_unref_tgt_void): New.
6146 (gomp_remove_var): Reimplement in terms of...
6147 (gomp_remove_var_internal): ...this new helper function.
6148 (gomp_remove_var_async): New, implemented using above helper function.
6149 (gomp_unmap_vars_internal): Use gomp_unref_tgt_void instead of
6152 2019-12-13 Andrew Stubbs <ams@codesourcery.com>
6154 * testsuite/libgomp.oacc-c-c++-common/acc_prof-init-1.c: Handle gcn.
6155 * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c: Likewise.
6156 * testsuite/libgomp.oacc-c-c++-common/acc_prof-parallel-1.c: Likewise.
6157 * testsuite/libgomp.oacc-c-c++-common/asyncwait-nop-1.c: Likewise.
6158 * testsuite/libgomp.oacc-c-c++-common/function-not-offloaded.c:
6160 * testsuite/libgomp.oacc-c-c++-common/async_queue-1.c: Disable on GCN.
6161 * testsuite/libgomp.oacc-c-c++-common/tile-1.c: Likewise.
6163 2019-12-13 Tobias Burnus <tobias@codesourcery.com>
6165 * openacc.f90 (module openacc_kinds): Use 'PUBLIC' to mark all symbols
6166 as public except for the 'use …, only' imported symbol, which is
6168 (module openacc): Default to 'PRIVATE' to exclude openacc_internal; mark
6169 all symbols from module openacc_kinds as PUBLIC; add missing PUBLIC
6170 attributes for acc_copyout_finalize and acc_delete_finalize.
6172 2019-12-11 Jakub Jelinek <jakub@redhat.com>
6175 * testsuite/libgomp.fortran/atomic1.f90: New test.
6177 2019-12-11 Thomas Schwinge <thomas@codesourcery.com>
6180 * oacc-mem.c (present_create_copy, delete_copyout): Fix dynamic
6181 reference counting for structured 'REFCOUNT_INFINITY'. Add some
6183 (goacc_insert_pointer, goacc_remove_pointer): Adjust accordingly.
6184 * testsuite/libgomp.oacc-c-c++-common/pr92843-1.c: New file.
6185 * testsuite/libgomp.oacc-c-c++-common/clauses-1.c: Fix OpenACC.
6186 * testsuite/libgomp.oacc-c-c++-common/lib-82.c: Likewise.
6187 * testsuite/libgomp.oacc-c-c++-common/nested-1.c: Likewise.
6189 * oacc-parallel.c (find_pointer, GOACC_enter_exit_data): Move...
6190 * oacc-mem.c: ... here.
6191 (gomp_acc_insert_pointer, gomp_acc_remove_pointer): Rename to
6192 'goacc_insert_pointer', 'goacc_remove_pointer', and make 'static'.
6193 * libgomp.h (gomp_acc_insert_pointer, gomp_acc_remove_pointer):
6195 * libgomp_g.h: Update.
6197 * oacc-parallel.c (GOACC_wait, goacc_wait): Move...
6198 * oacc-async.c: ... here.
6199 * oacc-int.h (goacc_wait): Declare.
6200 * libgomp_g.h: Update
6203 * testsuite/libgomp.oacc-c-c++-common/acc_map_data-device_already-1.c:
6205 * testsuite/libgomp.oacc-c-c++-common/acc_map_data-device_already-2.c:
6207 * testsuite/libgomp.oacc-c-c++-common/acc_map_data-device_already-3.c:
6209 * testsuite/libgomp.oacc-c-c++-common/acc_map_data-host_already-1.c:
6211 * testsuite/libgomp.oacc-c-c++-common/acc_map_data-host_already-2.c:
6213 * testsuite/libgomp.oacc-c-c++-common/acc_map_data-host_already-3.c:
6216 2019-12-11 Thomas Schwinge <thomas@codesourcery.com>
6217 Julian Brown <julian@codesourcery.com>
6219 * target.c (gomp_load_image_to_device, omp_target_associate_ptr):
6220 Initialize 'dynamic_refcount' whenever we initialize 'refcount'.
6222 2019-12-11 Tobias Burnus <tobias@codesourcery.com>
6224 * omp_lib.h.in: Fix spelling of function declaration
6225 omp_get_cancell(l)ation.
6226 * libgomp.texi (acc_is_present, acc_async_test, acc_async_test_all):
6228 * env.c: Fix comment typos.
6229 * oacc-host.c: Likewise.
6230 * ordered.c: Likewise.
6233 * config/gcn/task.c: Likewise.
6234 * config/gcn/team.c: Likewise.
6235 * config/nvptx/task.c: Likewise.
6236 * config/nvptx/team.c: Likewise.
6237 * plugin/plugin-gcn.c: Likewise.
6238 * testsuite/libgomp.fortran/jacobi.f: Likewise.
6239 * testsuite/libgomp.hsa.c/tiling-2.c: Likewise.
6240 * testsuite/libgomp.oacc-c-c++-common/enter_exit-lib.c: Likewise.
6242 2019-12-11 Tobias Burnus <tobias@codesourcery.com>
6244 * testsuite/libgomp.oacc-fortran/optional-cache.f95: Add 'dg-do run'.
6245 * testsuite/libgomp.oacc-fortran/optional-reduction.f90: Remove
6246 unnecessary 'dg-additional-options "-w"'.
6248 2019-12-09 Thomas Schwinge <thomas@codesourcery.com>
6249 Julian Brown <julian@codesourcery.com>
6254 * oacc-mem.c (lookup_dev): Reimplement. Adjust all users.
6255 * libgomp.h (struct acc_dispatch_t): Remove 'data_environ' member.
6257 * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-4-2.c:
6259 * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-4.c:
6261 * testsuite/libgomp.oacc-c-c++-common/pr92877-1.c: New file.
6263 2019-12-09 Thomas Schwinge <thomas@codesourcery.com>
6266 * oacc-mem.c (acc_free): Error out instead of 'acc_unmap_data'.
6267 * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-1.c: New
6269 * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-2.c:
6271 * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-3-2.c:
6273 * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-3.c:
6275 * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-4-2.c:
6277 * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-4.c:
6279 * testsuite/libgomp.oacc-c-c++-common/clauses-1.c: Adjust.
6280 * testsuite/libgomp.oacc-c-c++-common/context-1.c: Likewise.
6281 * testsuite/libgomp.oacc-c-c++-common/context-2.c: Likewise.
6282 * testsuite/libgomp.oacc-c-c++-common/context-3.c: Likewise.
6283 * testsuite/libgomp.oacc-c-c++-common/context-4.c: Likewise.
6284 * testsuite/libgomp.oacc-c-c++-common/lib-13.c: Likewise.
6285 * testsuite/libgomp.oacc-c-c++-common/lib-14.c: Likewise.
6286 * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
6287 * testsuite/libgomp.oacc-c-c++-common/lib-91.c: Likewise.
6288 * testsuite/libgomp.oacc-c-c++-common/nested-1.c: Likewise.
6291 * oacc-mem.c (acc_map_data): Clarify reference counting behavior.
6292 (acc_unmap_data): Add error case for 'REFCOUNT_INFINITY'.
6293 * testsuite/libgomp.oacc-c-c++-common/acc_unmap_data-pr92840-1.c:
6295 * testsuite/libgomp.oacc-c-c++-common/acc_unmap_data-pr92840-2.c:
6297 * testsuite/libgomp.oacc-c-c++-common/acc_unmap_data-pr92840-3.c:
6299 * testsuite/libgomp.oacc-c-c++-common/clauses-1.c: Adjust.
6300 * testsuite/libgomp.oacc-c-c++-common/nested-1.c: Adjust.
6303 * testsuite/libgomp.oacc-c-c++-common/copyin-devptr-1.c: Remove
6305 * testsuite/libgomp.oacc-c-c++-common/copyin-devptr-2.c: ..., and
6307 * testsuite/libgomp.oacc-c-c++-common/lib-22.c: ..., and this
6309 * testsuite/libgomp.oacc-c-c++-common/lib-30.c: ..., and this
6311 * testsuite/libgomp.oacc-c-c++-common/subset-subarray-mappings-1-r-p.c:
6312 ... with their content moved into, and extended in this new file.
6313 * testsuite/libgomp.oacc-c-c++-common/subset-subarray-mappings-1-d-a.c:
6315 * testsuite/libgomp.oacc-c-c++-common/subset-subarray-mappings-1-d-p.c:
6317 * testsuite/libgomp.oacc-c-c++-common/subset-subarray-mappings-1-r-a.c:
6319 * testsuite/libgomp.oacc-c-c++-common/subset-subarray-mappings-2.c:
6322 * testsuite/libgomp.oacc-c-c++-common/map-data-1.c: New file.
6325 * testsuite/libgomp.oacc-c-c++-common/pr92854-1.c: New file.
6327 * testsuite/libgomp.oacc-c-c++-common/host_data-6.c: New file.
6329 * target.c (gomp_exit_data): Use 'gomp_remove_var'.
6331 2019-12-09 Tobias Burnus <tobias@codesourcery.com>
6333 * testsuite/libgomp.fortran/use_device_addr-3.f90: Make 'stop' codes
6335 * testsuite/libgomp.fortran/use_device_addr-4.f90: Ditto.
6336 * testsuite/libgomp.fortran/use_device_ptr-optional-2.f90: Ditto.
6337 * testsuite/libgomp.oacc-fortran/declare-5.f90: Ditto.
6338 * testsuite/libgomp.oacc-fortran/optional-data-copyin-by-value.f90:
6340 * testsuite/libgomp.oacc-fortran/optional-firstprivate.f90: Ditto.
6341 * testsuite/libgomp.oacc-fortran/optional-update-host.f90: Ditto.
6343 2019-12-06 Kwok Cheung Yeung <kcy@codesourcery.com>
6345 * config/accel/proc.c (omp_get_num_procs): Apply ialias macro.
6347 2019-12-06 Tobias Burnus <tobias@codesourcery.com>
6348 Kwok Cheung Yeung <kcy@codesourcery.com>
6350 * oacc-mem.c (update_dev_host, gomp_acc_insert_pointer): Just return
6351 if input it a NULL pointer.
6352 * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Remove; dependent on
6353 diagnostic of NULL pointer.
6354 * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Ditto.
6355 * testsuite/libgomp.fortran/optional-map.f90: New.
6356 * testsuite/libgomp.fortran/use_device_addr-1.f90
6357 (test_dummy_opt_callee_1_absent): New.
6358 (test_dummy_opt_call_1): Call it.
6359 * testsuite/libgomp.fortran/use_device_addr-2.f90: Likewise.
6360 * testsuite/libgomp.fortran/use_device_addr-3.f90: Likewise.
6361 * testsuite/libgomp.fortran/use_device_addr-4.f90: Likewise.
6362 * testsuite/libgomp.oacc-fortran/optional-cache.f95: New.
6363 * testsuite/libgomp.oacc-fortran/optional-data-copyin-by-value.f90: New.
6364 * testsuite/libgomp.oacc-fortran/optional-data-copyin.f90: New.
6365 * testsuite/libgomp.oacc-fortran/optional-data-copyout.f90: New.
6366 * testsuite/libgomp.oacc-fortran/optional-data-enter-exit.f90: New.
6367 * testsuite/libgomp.oacc-fortran/optional-declare.f90: New.
6368 * testsuite/libgomp.oacc-fortran/optional-firstprivate.f90: New.
6369 * testsuite/libgomp.oacc-fortran/optional-host_data.f90: New.
6370 * testsuite/libgomp.oacc-fortran/optional-nested-calls.f90: New.
6371 * testsuite/libgomp.oacc-fortran/optional-private.f90: New.
6372 * testsuite/libgomp.oacc-fortran/optional-reduction.f90: New.
6373 * testsuite/libgomp.oacc-fortran/optional-update-device.f90: New.
6374 * testsuite/libgomp.oacc-fortran/optional-update-host.f90: New.
6376 2019-12-05 Tobias Burnus <tobias@codesourcery.com>
6378 * testsuite/libgomp.oacc-fortran/error_stop-1.f: Also don't
6379 expect dg-output of 'Error termination.' for GCN.
6380 * testsuite/libgomp.oacc-fortran/error_stop-2.f: Likewise.
6381 * testsuite/libgomp.oacc-fortran/error_stop-3.f: Likewise.
6383 2019-12-04 Jakub Jelinek <jakub@redhat.com>
6386 * testsuite/libgomp.fortran/teams1.f90: New test.
6387 * testsuite/libgomp.fortran/teams2.f90: New test.
6389 2019-12-03 Frederik Harwath <frederik@codesourcery.com>
6391 * oacc-init.c (acc_known_device_type): Add function.
6392 (unknown_device_type_error): Add function.
6393 (name_of_acc_device_t): Change to call unknown_device_type_error
6395 (resolve_device): Use acc_known_device_type.
6396 (acc_init): Fail if acc_device_t argument is not valid.
6397 (acc_shutdown): Likewise.
6398 (acc_get_num_devices): Likewise.
6399 (acc_set_device_type): Likewise.
6400 (acc_get_device_num): Likewise.
6401 (acc_set_device_num): Likewise.
6402 (acc_on_device): Add comment that argument validity is not checked.
6404 2019-12-03 Andrew Stubbs <ams@codesourcery.com>
6406 * testsuite/lib/libgomp.exp (offload_target_to_openacc_device_type):
6408 (check_effective_target_openacc_amdgcn_accel_present): New proc.
6409 (check_effective_target_openacc_amdgcn_accel_selected): New proc.
6410 * testsuite/libgomp.oacc-c++/c++.exp: Add support for amdgcn.
6411 * testsuite/libgomp.oacc-c/c.exp: Likewise.
6412 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
6414 2019-12-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
6417 * configure.tgt: Avoid IE tls on *-*-musl*.
6419 2019-11-29 Tobias Burnus <tobias@codesourcery.com>
6421 * testsuite/libgomp.oacc-fortran/declare-5.f90: Extend by
6422 adding a common-block test case.
6424 2019-11-29 Jakub Jelinek <jakub@redhat.com>
6427 * testsuite/libgomp.c++/udr-20.C: New test.
6428 * testsuite/libgomp.c++/udr-21.C: New test.
6430 2019-11-27 Thomas Schwinge <thomas@codesourcery.com>
6432 * testsuite/lib/libgomp.exp
6433 (check_effective_target_offload_target_nvptx): New proc.
6434 * testsuite/libgomp.fortran/target-print-1.f90: Use it with
6436 * testsuite/libgomp.oacc-fortran/print-1.f90: Likewise.
6437 * testsuite/libgomp.fortran/target-print-1-nvptx.f90: New file.
6438 * testsuite/libgomp.oacc-fortran/print-1-nvptx.f90: Likewise.
6440 2019-11-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6442 * testsuite/libgomp.c/pr39591-1.c: Rename err to e.
6443 * testsuite/libgomp.c/pr39591-2.c: Likewise.
6444 * testsuite/libgomp.c/pr39591-3.c: Likewise.
6445 * testsuite/libgomp.c/private-1.c: Likewise.
6446 * testsuite/libgomp.c/task-1.c: Likewise.
6447 * testsuite/libgomp.c/task-5.c: Renamed err to serr.
6449 2019-11-20 Julian Brown <julian@codesourcery.com>
6451 * plugin/plugin-gcn.c (wait_for_queue_nonfull): Don't lock/unlock
6453 (queue_push_launch): Lock aq->mutex before calling
6454 wait_for_queue_nonfull.
6455 (queue_push_callback): Likewise.
6456 (queue_push_asyncwait): Likewise.
6457 (queue_push_placeholder): Likewise.
6459 2019-11-20 Julian Brown <julian@codesourcery.com>
6461 * plugin/plugin-gcn.c (hsa_memory_copy_wrapper): New.
6462 (copy_data, GOMP_OFFLOAD_host2dev): Use above function.
6463 (GOMP_OFFLOAD_dev2host, GOMP_OFFLOAD_dev2dev): Check hsa_memory_copy
6466 2019-11-20 Julian Brown <julian@codesourcery.com>
6470 * oacc-mem.c (present_create_copy): Fix device pointer return value in
6471 case of "present" subarray. Use tgt->tgt_start instead of tgt->to_free
6472 in non-present/create case.
6473 (delete_copyout): Change error condition to fail only on copies outside
6474 of mapped block. Adjust error message accordingly.
6475 * testsuite/libgomp.oacc-c-c++-common/copyin-devptr-1.c: New test.
6476 * testsuite/libgomp.oacc-c-c++-common/copyin-devptr-2.c: New test.
6477 * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Adjust expected error
6479 * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
6480 * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Allow test to pass now.
6481 * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
6483 2019-11-20 Maciej W. Rozycki <macro@wdc.com>
6485 * testsuite/lib/libgomp.exp (libgomp_init): Add flags to find
6486 libatomic in build-tree testing.
6488 2019-11-18 Maciej W. Rozycki <macro@wdc.com>
6490 * testsuite/Makefile.in: Regenerate.
6492 2019-11-15 Andrew Stubbs <ams@codesourcery.com>
6494 * testsuite/libgomp.c/target-print-1.c: New file.
6495 * testsuite/libgomp.fortran/target-print-1.f90: New file.
6496 * testsuite/libgomp.oacc-c/print-1.c: New file.
6497 * testsuite/libgomp.oacc-fortran/print-1.f90: New file.
6499 2019-11-13 Andrew Stubbs <ams@codesourcery.com>
6500 Kwok Cheung Yeung <kcy@codesourcery.com>
6501 Julian Brown <julian@codesourcery.com>
6502 Tom de Vries <tom@codesourcery.com>
6504 * plugin/Makefrag.am: Add amdgcn plugin support.
6505 * plugin/configfrag.ac: Likewise.
6506 * plugin/plugin-gcn.c: New file.
6507 * configure: Regenerate.
6508 * Makefile.in: Regenerate.
6509 * testsuite/Makefile.in: Regenerate.
6511 2019-11-13 Andrew Stubbs <ams@codesourcery.com>
6513 * config/gcn/team.c (gomp_gcn_enter_kernel): Set up the team arena
6514 and use team_malloc variants.
6515 (gomp_gcn_exit_kernel): Use team_free.
6516 * libgomp.h (TEAM_ARENA_SIZE): Define.
6517 (TEAM_ARENA_START): Define.
6518 (TEAM_ARENA_FREE): Define.
6519 (TEAM_ARENA_END): Define.
6520 (team_malloc): New function.
6521 (team_malloc_cleared): New function.
6522 (team_free): New function.
6523 * team.c (gomp_new_team): Initialize and use team_malloc.
6524 (free_team): Use team_free.
6525 (gomp_free_thread): Use team_free.
6526 (gomp_pause_host): Use team_free.
6527 * work.c (gomp_init_work_share): Use team_malloc.
6528 (gomp_fini_work_share): Use team_free.
6530 2019-11-13 Andrew Stubbs <ams@codesourcery.com>
6531 Kwok Cheung Yeung <kcy@codesourcery.com>
6532 Julian Brown <julian@codesourcery.com>
6533 Tom de Vries <tom@codesourcery.com>
6535 * Makefile.am (libgomp_la_SOURCES): Add oacc-target.c.
6536 * Makefile.in: Regenerate.
6537 * config.h.in (PLUGIN_GCN): Add new undef.
6538 * config/accel/openacc.f90 (acc_device_gcn): New parameter.
6539 * config/gcn/affinity-fmt.c: New file.
6540 * config/gcn/bar.c: New file.
6541 * config/gcn/bar.h: New file.
6542 * config/gcn/doacross.h: New file.
6543 * config/gcn/icv-device.c: New file.
6544 * config/gcn/oacc-target.c: New file.
6545 * config/gcn/simple-bar.h: New file.
6546 * config/gcn/target.c: New file.
6547 * config/gcn/task.c: New file.
6548 * config/gcn/team.c: New file.
6549 * config/gcn/time.c: New file.
6550 * configure.ac: Add amdgcn*-*-*.
6551 * configure: Regenerate.
6552 * configure.tgt: Add amdgcn*-*-*.
6553 * libgomp-plugin.h (offload_target_type): Add OFFLOAD_TARGET_TYPE_GCN.
6554 * libgomp.h (gcn_thrs): Add amdgcn variant.
6555 (set_gcn_thrs): Likewise.
6556 (gomp_thread): Likewise.
6557 * oacc-int.h (goacc_thread): Likewise.
6558 * oacc-target.c: New file.
6559 * openacc.f90 (acc_device_gcn): New parameter.
6560 * openacc.h (acc_device_t): Add acc_device_gcn.
6561 * team.c (gomp_free_pool_helper): Add amdgcn support.
6563 2019-11-13 Andrew Stubbs <ams@codesourcery.com>
6564 Julian Brown <julian@codesourcery.com>
6566 * libgomp-plugin.h (GOMP_OFFLOAD_openacc_async_construct): Add int
6568 * oacc-async.c (lookup_goacc_asyncqueue): Pass device number to the
6570 * oacc-host.c (host_openacc_async_construct): Add device parameter.
6571 * plugin/plugin-nvptx.c (GOMP_OFFLOAD_openacc_async_construct): Add
6574 2019-11-13 Andrew Stubbs <ams@codesourcery.com>
6576 * configure.tgt (nvptx*-*-*): Add "accel" directory.
6577 * config/nvptx/libgomp-plugin.c: Move ...
6578 * config/accel/libgomp-plugin.c: ... to here.
6579 * config/nvptx/lock.c: Move ...
6580 * config/accel/lock.c: ... to here.
6581 * config/nvptx/mutex.c: Move ...
6582 * config/accel/mutex.c: ... to here.
6583 * config/nvptx/mutex.h: Move ...
6584 * config/accel/mutex.h: ... to here.
6585 * config/nvptx/oacc-async.c: Move ...
6586 * config/accel/oacc-async.c: ... to here.
6587 * config/nvptx/oacc-cuda.c: Move ...
6588 * config/accel/oacc-cuda.c: ... to here.
6589 * config/nvptx/oacc-host.c: Move ...
6590 * config/accel/oacc-host.c: ... to here.
6591 * config/nvptx/oacc-init.c: Move ...
6592 * config/accel/oacc-init.c: ... to here.
6593 * config/nvptx/oacc-mem.c: Move ...
6594 * config/accel/oacc-mem.c: ... to here.
6595 * config/nvptx/oacc-plugin.c: Move ...
6596 * config/accel/oacc-plugin.c: ... to here.
6597 * config/nvptx/omp-lock.h: Move ...
6598 * config/accel/omp-lock.h: ... to here.
6599 * config/nvptx/openacc.f90: Move ...
6600 * config/accel/openacc.f90: ... to here.
6601 * config/nvptx/pool.h: Move ...
6602 * config/accel/pool.h: ... to here.
6603 * config/nvptx/proc.c: Move ...
6604 * config/accel/proc.c: ... to here.
6605 * config/nvptx/ptrlock.c: Move ...
6606 * config/accel/ptrlock.c: ... to here.
6607 * config/nvptx/ptrlock.h: Move ...
6608 * config/accel/ptrlock.h: ... to here.
6609 * config/nvptx/sem.c: Move ...
6610 * config/accel/sem.c: ... to here.
6611 * config/nvptx/sem.h: Move ...
6612 * config/accel/sem.h: ... to here.
6613 * config/nvptx/thread-stacksize.h: Move ...
6614 * config/accel/thread-stacksize.h: ... to here.
6616 2019-11-12 Maciej W. Rozycki <macro@codesourcery.com>
6617 Tobias Burnus <tobias@codesourcery.com>
6618 Frederik Harwath <frederik@codesourcery.com>
6619 Thomas Schwinge <thomas@codesourcery.com>
6622 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: New test.
6623 * testsuite/libgomp.oacc-fortran/parallel-dims-aux.c: New test.
6624 * testsuite/libgomp.oacc-fortran/parallel-dims.f89: New test.
6626 2019-11-11 Tobias Burnus <tobias@codesourcery.com>
6627 Kwok Cheung Yeung <kcy@codesourcery.com>
6629 * testsuite/libgomp.fortran/use_device_ptr-optional-1.f90: Extend.
6630 * testsuite/libgomp.fortran/use_device_ptr-optional-2.f90: New.
6632 2019-11-11 Thomas Schwinge <thomas@codesourcery.com>
6634 * testsuite/libgomp.fortran/target9.f90: Specify 'dg-do run'.
6636 * testsuite/libgomp.fortran/use_device_addr-3.f90: Specify 'dg-do
6638 * testsuite/libgomp.fortran/use_device_addr-4.f90: Likewise.
6639 * testsuite/libgomp.fortran/use_device_ptr-1.f90: Likewise.
6641 2019-11-06 Thomas Schwinge <thomas@codesourcery.com>
6643 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-1.c:
6644 Add expected warnings about missing reduction clauses.
6645 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-2.c:
6647 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-3.c:
6649 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-4.c:
6652 2019-11-04 Tobias Burnus <tobias@codesourcery.com>
6654 * testsuite/libgomp.fortran/pr66199-1.f90: Remove
6655 'dg-do run' (implies torture test) as 'dg-options "O2"' is used.
6656 * testsuite/libgomp.fortran/pr66199-2.f90: Ditto.
6657 * testsuite/libgomp.fortran/taskloop2.f90: Ditto.
6658 * testsuite/libgomp.fortran/taskloop3.f90: Ditto.
6659 * testsuite/libgomp.fortran/taskloop4.f90: Ditto.
6661 2019-11-04 Tobias Burnus <tobias@codesourcery.com>
6664 * testsuite/libgomp.fortran/allocatable2.f90: Use
6665 unique numbers with 'stop'.
6666 * testsuite/libgomp.fortran/use_device_addr-1.f90: Ditto.
6667 * testsuite/libgomp.fortran/use_device_addr-2.f90: Ditto.
6668 * testsuite/libgomp.fortran/use_device_ptr-1.f90: Ditto.
6669 * testsuite/libgomp.oacc-fortran/lib-15.f90: Ditto.
6670 * testsuite/libgomp.oacc-fortran/pset-1.f90: Ditto.
6672 2019-11-01 Tobias Burnus <tobias@codesourcery.com>
6674 * testsuite/libgomp.fortran/use_device_addr-1.f90 (test_nullptr_1,
6675 test_dummy_opt_nullptr_callee_1): Add present but unallocated test.
6676 * testsuite/libgomp.fortran/use_device_addr-2.f90: Likewise.
6677 * testsuite/libgomp.fortran/use_device_addr-3.f90: New.
6678 * testsuite/libgomp.fortran/use_device_addr-4.f90: New.
6679 * testsuite/testsuite/libgomp.fortran/use_device_ptr-1.f90: New.
6681 2019-10-30 Tobias Burnus <tobias@codesourcery.com>
6683 * testsuite/libgomp.fortran/target9.f90: New.
6685 2019-10-30 Tobias Burnus <tobias@codesourcery.com>
6687 * testsuite/libgomp.fortran/aligned1.f03: Replace 'STOP' by 'stop'.
6688 * testsuite/libgomp.fortran/alloc-comp-1.f90: Ditto.
6689 * testsuite/libgomp.fortran/alloc-comp-2.f90: Ditto.
6690 * testsuite/libgomp.fortran/alloc-comp-3.f90: Ditto.
6691 * testsuite/libgomp.fortran/allocatable1.f90: Ditto.
6692 * testsuite/libgomp.fortran/allocatable10.f90: Ditto.
6693 * testsuite/libgomp.fortran/allocatable11.f90: Ditto.
6694 * testsuite/libgomp.fortran/allocatable12.f90: Ditto.
6695 * testsuite/libgomp.fortran/allocatable2.f90: Ditto.
6696 * testsuite/libgomp.fortran/allocatable3.f90: Ditto.
6697 * testsuite/libgomp.fortran/allocatable4.f90: Ditto.
6698 * testsuite/libgomp.fortran/allocatable5.f90: Ditto.
6699 * testsuite/libgomp.fortran/allocatable6.f90: Ditto.
6700 * testsuite/libgomp.fortran/allocatable7.f90: Ditto.
6701 * testsuite/libgomp.fortran/allocatable8.f90: Ditto.
6702 * testsuite/libgomp.fortran/allocatable9.f90: Ditto.
6703 * testsuite/libgomp.fortran/associate1.f90: Ditto.
6704 * testsuite/libgomp.fortran/associate2.f90: Ditto.
6705 * testsuite/libgomp.fortran/associate3.f90: Ditto.
6706 * testsuite/libgomp.fortran/async_io_4.f90: Ditto.
6707 * testsuite/libgomp.fortran/async_io_5.f90: Ditto.
6708 * testsuite/libgomp.fortran/async_io_6.f90: Ditto.
6709 * testsuite/libgomp.fortran/async_io_7.f90: Ditto.
6710 * testsuite/libgomp.fortran/cancel-do-1.f90: Ditto.
6711 * testsuite/libgomp.fortran/cancel-do-2.f90: Ditto.
6712 * testsuite/libgomp.fortran/cancel-parallel-1.f90: Ditto.
6713 * testsuite/libgomp.fortran/cancel-sections-1.f90: Ditto.
6714 * testsuite/libgomp.fortran/cancel-taskgroup-2.f90: Ditto.
6715 * testsuite/libgomp.fortran/character1.f90: Ditto.
6716 * testsuite/libgomp.fortran/character2.f90: Ditto.
6717 * testsuite/libgomp.fortran/collapse1.f90: Ditto.
6718 * testsuite/libgomp.fortran/collapse2.f90: Ditto.
6719 * testsuite/libgomp.fortran/collapse3.f90: Ditto.
6720 * testsuite/libgomp.fortran/collapse4.f90: Ditto.
6721 * testsuite/libgomp.fortran/crayptr1.f90: Ditto.
6722 * testsuite/libgomp.fortran/crayptr2.f90: Ditto.
6723 * testsuite/libgomp.fortran/crayptr3.f90: Ditto.
6724 * testsuite/libgomp.fortran/declare-simd-1.f90: Ditto.
6725 * testsuite/libgomp.fortran/declare-simd-3.f90: Ditto.
6726 * testsuite/libgomp.fortran/declare-target-2.f90: Ditto.
6727 * testsuite/libgomp.fortran/depend-1.f90: Ditto.
6728 * testsuite/libgomp.fortran/depend-2.f90: Ditto.
6729 * testsuite/libgomp.fortran/depend-3.f90: Ditto.
6730 * testsuite/libgomp.fortran/do1.f90: Ditto.
6731 * testsuite/libgomp.fortran/do2.f90: Ditto.
6732 * testsuite/libgomp.fortran/do_concurrent_5.f90: Ditto.
6733 * testsuite/libgomp.fortran/doacross1.f90: Ditto.
6734 * testsuite/libgomp.fortran/doacross2.f90: Ditto.
6735 * testsuite/libgomp.fortran/doacross3.f90: Ditto.
6736 * testsuite/libgomp.fortran/examples-4/array_sections-3.f90: Ditto.
6737 * testsuite/libgomp.fortran/examples-4/array_sections-4.f90: Ditto.
6738 * testsuite/libgomp.fortran/examples-4/async_target-1.f90: Ditto.
6739 * testsuite/libgomp.fortran/examples-4/async_target-2.f90: Ditto.
6740 * testsuite/libgomp.fortran/examples-4/declare_target-1.f90: Ditto.
6741 * testsuite/libgomp.fortran/examples-4/declare_target-2.f90: Ditto.
6742 * testsuite/libgomp.fortran/examples-4/declare_target-3.f90: Ditto.
6743 * testsuite/libgomp.fortran/examples-4/declare_target-4.f90: Ditto.
6744 * testsuite/libgomp.fortran/examples-4/declare_target-5.f90: Ditto.
6745 * testsuite/libgomp.fortran/examples-4/device-1.f90: Ditto.
6746 * testsuite/libgomp.fortran/examples-4/device-2.f90: Ditto.
6747 * testsuite/libgomp.fortran/examples-4/device-3.f90: Ditto.
6748 * testsuite/libgomp.fortran/examples-4/simd-1.f90: Ditto.
6749 * testsuite/libgomp.fortran/examples-4/simd-2.f90: Ditto.
6750 * testsuite/libgomp.fortran/examples-4/simd-3.f90: Ditto.
6751 * testsuite/libgomp.fortran/examples-4/simd-4.f90: Ditto.
6752 * testsuite/libgomp.fortran/examples-4/simd-5.f90: Ditto.
6753 * testsuite/libgomp.fortran/examples-4/simd-6.f90: Ditto.
6754 * testsuite/libgomp.fortran/examples-4/simd-7.f90: Ditto.
6755 * testsuite/libgomp.fortran/examples-4/simd-8.f90: Ditto.
6756 * testsuite/libgomp.fortran/examples-4/target-1.f90: Ditto.
6757 * testsuite/libgomp.fortran/examples-4/target-2.f90: Ditto.
6758 * testsuite/libgomp.fortran/examples-4/target-3.f90: Ditto.
6759 * testsuite/libgomp.fortran/examples-4/target-4.f90: Ditto.
6760 * testsuite/libgomp.fortran/examples-4/target-5.f90: Ditto.
6761 * testsuite/libgomp.fortran/examples-4/target_data-1.f90: Ditto.
6762 * testsuite/libgomp.fortran/examples-4/target_data-2.f90: Ditto.
6763 * testsuite/libgomp.fortran/examples-4/target_data-3.f90: Ditto.
6764 * testsuite/libgomp.fortran/examples-4/target_data-4.f90: Ditto.
6765 * testsuite/libgomp.fortran/examples-4/target_data-5.f90: Ditto.
6766 * testsuite/libgomp.fortran/examples-4/target_data-6.f90: Ditto.
6767 * testsuite/libgomp.fortran/examples-4/target_data-7.f90: Ditto.
6768 * testsuite/libgomp.fortran/examples-4/target_update-1.f90: Ditto.
6769 * testsuite/libgomp.fortran/examples-4/target_update-2.f90: Ditto.
6770 * testsuite/libgomp.fortran/examples-4/task_dep-1.f90: Ditto.
6771 * testsuite/libgomp.fortran/examples-4/task_dep-2.f90: Ditto.
6772 * testsuite/libgomp.fortran/examples-4/task_dep-3.f90: Ditto.
6773 * testsuite/libgomp.fortran/examples-4/task_dep-4.f90: Ditto.
6774 * testsuite/libgomp.fortran/examples-4/task_dep-5.f90: Ditto.
6775 * testsuite/libgomp.fortran/examples-4/teams-2.f90: Ditto.
6776 * testsuite/libgomp.fortran/examples-4/teams-3.f90: Ditto.
6777 * testsuite/libgomp.fortran/examples-4/teams-4.f90: Ditto.
6778 * testsuite/libgomp.fortran/examples-4/teams-5.f90: Ditto.
6779 * testsuite/libgomp.fortran/examples-4/teams-6.f90: Ditto.
6780 * testsuite/libgomp.fortran/lastprivate1.f90: Ditto.
6781 * testsuite/libgomp.fortran/lastprivate2.f90: Ditto.
6782 * testsuite/libgomp.fortran/lib1.f90: Ditto.
6783 * testsuite/libgomp.fortran/lib4.f90: Ditto.
6784 * testsuite/libgomp.fortran/lock-1.f90: Ditto.
6785 * testsuite/libgomp.fortran/lock-2.f90: Ditto.
6786 * testsuite/libgomp.fortran/nested1.f90: Ditto.
6787 * testsuite/libgomp.fortran/nestedfn1.f90: Ditto.
6788 * testsuite/libgomp.fortran/nestedfn2.f90: Ditto.
6789 * testsuite/libgomp.fortran/nestedfn3.f90: Ditto.
6790 * testsuite/libgomp.fortran/nestedfn4.f90: Ditto.
6791 * testsuite/libgomp.fortran/nestedfn5.f90: Ditto.
6792 * testsuite/libgomp.fortran/omp_atomic1.f90: Ditto.
6793 * testsuite/libgomp.fortran/omp_atomic2.f90: Ditto.
6794 * testsuite/libgomp.fortran/omp_atomic3.f90: Ditto.
6795 * testsuite/libgomp.fortran/omp_atomic4.f90: Ditto.
6796 * testsuite/libgomp.fortran/omp_atomic5.f90: Ditto.
6797 * testsuite/libgomp.fortran/omp_cond1.f: Ditto.
6798 * testsuite/libgomp.fortran/omp_cond2.f: Ditto.
6799 * testsuite/libgomp.fortran/omp_cond3.F90: Ditto.
6800 * testsuite/libgomp.fortran/omp_cond4.F90: Ditto.
6801 * testsuite/libgomp.fortran/omp_parse1.f90: Ditto.
6802 * testsuite/libgomp.fortran/omp_parse2.f90: Ditto.
6803 * testsuite/libgomp.fortran/omp_parse3.f90: Ditto.
6804 * testsuite/libgomp.fortran/omp_parse4.f90: Ditto.
6805 * testsuite/libgomp.fortran/openmp_version-1.f: Ditto.
6806 * testsuite/libgomp.fortran/openmp_version-2.f90: Ditto.
6807 * testsuite/libgomp.fortran/parloops-exit-first-loop-alt-2.f95: Ditto.
6808 * testsuite/libgomp.fortran/parloops-exit-first-loop-alt.f95: Ditto.
6809 * testsuite/libgomp.fortran/pointer1.f90: Ditto.
6810 * testsuite/libgomp.fortran/pointer2.f90: Ditto.
6811 * testsuite/libgomp.fortran/pr25219.f90: Ditto.
6812 * testsuite/libgomp.fortran/pr27395-1.f90: Ditto.
6813 * testsuite/libgomp.fortran/pr27395-2.f90: Ditto.
6814 * testsuite/libgomp.fortran/pr27416-1.f90: Ditto.
6815 * testsuite/libgomp.fortran/pr27916-1.f90: Ditto.
6816 * testsuite/libgomp.fortran/pr27916-2.f90: Ditto.
6817 * testsuite/libgomp.fortran/pr28390.f: Ditto.
6818 * testsuite/libgomp.fortran/pr29629.f90: Ditto.
6819 * testsuite/libgomp.fortran/pr32550.f90: Ditto.
6820 * testsuite/libgomp.fortran/pr33880.f90: Ditto.
6821 * testsuite/libgomp.fortran/pr34020.f90: Ditto.
6822 * testsuite/libgomp.fortran/pr35130.f90: Ditto.
6823 * testsuite/libgomp.fortran/pr42162.f90: Ditto.
6824 * testsuite/libgomp.fortran/pr46753.f90: Ditto.
6825 * testsuite/libgomp.fortran/pr48894.f90: Ditto.
6826 * testsuite/libgomp.fortran/pr49792-1.f90: Ditto.
6827 * testsuite/libgomp.fortran/pr49792-2.f90: Ditto.
6828 * testsuite/libgomp.fortran/pr63938-1.f90: Ditto.
6829 * testsuite/libgomp.fortran/pr63938-2.f90: Ditto.
6830 * testsuite/libgomp.fortran/pr65597.f90: Ditto.
6831 * testsuite/libgomp.fortran/pr66199-1.f90: Ditto.
6832 * testsuite/libgomp.fortran/pr71014.f90: Ditto.
6833 * testsuite/libgomp.fortran/pr81304.f90: Ditto.
6834 * testsuite/libgomp.fortran/pr81841.f90: Ditto.
6835 * testsuite/libgomp.fortran/pr84418-1.f90: Ditto.
6836 * testsuite/libgomp.fortran/pr84418-2.f90: Ditto.
6837 * testsuite/libgomp.fortran/procptr1.f90: Ditto.
6838 * testsuite/libgomp.fortran/recursion1.f90: Ditto.
6839 * testsuite/libgomp.fortran/reduction1.f90: Ditto.
6840 * testsuite/libgomp.fortran/reduction2.f90: Ditto.
6841 * testsuite/libgomp.fortran/reduction3.f90: Ditto.
6842 * testsuite/libgomp.fortran/reduction4.f90: Ditto.
6843 * testsuite/libgomp.fortran/reduction5.f90: Ditto.
6844 * testsuite/libgomp.fortran/reduction6.f90: Ditto.
6845 * testsuite/libgomp.fortran/reference1.f90: Ditto.
6846 * testsuite/libgomp.fortran/reference2.f90: Ditto.
6847 * testsuite/libgomp.fortran/retval1.f90: Ditto.
6848 * testsuite/libgomp.fortran/retval2.f90: Ditto.
6849 * testsuite/libgomp.fortran/sharing1.f90: Ditto.
6850 * testsuite/libgomp.fortran/sharing2.f90: Ditto.
6851 * testsuite/libgomp.fortran/simd1.f90: Ditto.
6852 * testsuite/libgomp.fortran/simd2.f90: Ditto.
6853 * testsuite/libgomp.fortran/simd3.f90: Ditto.
6854 * testsuite/libgomp.fortran/simd4.f90: Ditto.
6855 * testsuite/libgomp.fortran/simd5.f90: Ditto.
6856 * testsuite/libgomp.fortran/simd6.f90: Ditto.
6857 * testsuite/libgomp.fortran/simd7.f90: Ditto.
6858 * testsuite/libgomp.fortran/stack.f90: Ditto.
6859 * testsuite/libgomp.fortran/strassen.f90: Ditto.
6860 * testsuite/libgomp.fortran/tabs1.f90: Ditto.
6861 * testsuite/libgomp.fortran/tabs2.f: Ditto.
6862 * testsuite/libgomp.fortran/target1.f90: Ditto.
6863 * testsuite/libgomp.fortran/target2.f90: Ditto.
6864 * testsuite/libgomp.fortran/target3.f90: Ditto.
6865 * testsuite/libgomp.fortran/target4.f90: Ditto.
6866 * testsuite/libgomp.fortran/target5.f90: Ditto.
6867 * testsuite/libgomp.fortran/target6.f90: Ditto.
6868 * testsuite/libgomp.fortran/target7.f90: Ditto.
6869 * testsuite/libgomp.fortran/target8.f90: Ditto.
6870 * testsuite/libgomp.fortran/task1.f90: Ditto.
6871 * testsuite/libgomp.fortran/task2.f90: Ditto.
6872 * testsuite/libgomp.fortran/task3.f90: Ditto.
6873 * testsuite/libgomp.fortran/task4.f90: Ditto.
6874 * testsuite/libgomp.fortran/taskgroup1.f90: Ditto.
6875 * testsuite/libgomp.fortran/taskloop1.f90: Ditto.
6876 * testsuite/libgomp.fortran/taskloop2.f90: Ditto.
6877 * testsuite/libgomp.fortran/taskloop3.f90: Ditto.
6878 * testsuite/libgomp.fortran/taskloop4.f90: Ditto.
6879 * testsuite/libgomp.fortran/threadprivate1.f90: Ditto.
6880 * testsuite/libgomp.fortran/threadprivate2.f90: Ditto.
6881 * testsuite/libgomp.fortran/threadprivate3.f90: Ditto.
6882 * testsuite/libgomp.fortran/threadprivate4.f90: Ditto.
6883 * testsuite/libgomp.fortran/udr1.f90: Ditto.
6884 * testsuite/libgomp.fortran/udr10.f90: Ditto.
6885 * testsuite/libgomp.fortran/udr11.f90: Ditto.
6886 * testsuite/libgomp.fortran/udr12.f90: Ditto.
6887 * testsuite/libgomp.fortran/udr13.f90: Ditto.
6888 * testsuite/libgomp.fortran/udr14.f90: Ditto.
6889 * testsuite/libgomp.fortran/udr15.f90: Ditto.
6890 * testsuite/libgomp.fortran/udr2.f90: Ditto.
6891 * testsuite/libgomp.fortran/udr3.f90: Ditto.
6892 * testsuite/libgomp.fortran/udr4.f90: Ditto.
6893 * testsuite/libgomp.fortran/udr5.f90: Ditto.
6894 * testsuite/libgomp.fortran/udr6.f90: Ditto.
6895 * testsuite/libgomp.fortran/udr7.f90: Ditto.
6896 * testsuite/libgomp.fortran/udr8.f90: Ditto.
6897 * testsuite/libgomp.fortran/udr9.f90: Ditto.
6898 * testsuite/libgomp.fortran/vla1.f90: Ditto.
6899 * testsuite/libgomp.fortran/vla2.f90: Ditto.
6900 * testsuite/libgomp.fortran/vla3.f90: Ditto.
6901 * testsuite/libgomp.fortran/vla4.f90: Ditto.
6902 * testsuite/libgomp.fortran/vla5.f90: Ditto.
6903 * testsuite/libgomp.fortran/vla6.f90: Ditto.
6904 * testsuite/libgomp.fortran/vla7.f90: Ditto.
6905 * testsuite/libgomp.fortran/vla8.f90: Ditto.
6906 * testsuite/libgomp.fortran/workshare1.f90: Ditto.
6907 * testsuite/libgomp.fortran/workshare2.f90: Ditto.
6909 2019-10-30 Tobias Burnus <tobias@codesourcery.com>
6911 * testsuite/libgomp.fortran/target-simd.f90: Use stop not abort.
6912 * testsuite/libgomp.fortran/use_device_ptr-optional-1.f90:
6913 Ditto; add 'dg-do run' for torture testing.
6914 * testsuite/libgomp.fortran/lastprivate1.f90: Add 'dg-do run'.
6915 * testsuite/libgomp.fortran/lastprivate2.f90: Ditto.
6916 * testsuite/libgomp.fortran/nestedfn4.f90: Ditto.
6917 * testsuite/libgomp.fortran/pr25219.f90: Ditto.
6918 * testsuite/libgomp.fortran/pr28390.f: Ditto.
6919 * testsuite/libgomp.fortran/pr35130.f90: Ditto.
6920 * testsuite/libgomp.fortran/pr90779.f90: Ditto.
6921 * testsuite/libgomp.fortran/task2.f90: Ditto.
6922 * testsuite/libgomp.fortran/taskgroup1.f90: Ditto.
6923 * testsuite/libgomp.fortran/taskloop1.f90: Ditto.
6924 * testsuite/libgomp.fortran/use_device_addr-1.f90: Ditto.
6925 * testsuite/libgomp.fortran/use_device_addr-2.f90: Ditto.
6926 * testsuite/libgomp.fortran/workshare1.f90: Ditto.
6927 * testsuite/libgomp.fortran/workshare2.f90: Ditto.
6929 2019-10-28 Tobias Burnus <tobias@codesourcery.com>
6931 * testsuite/libgomp.oacc-fortran/abort-1.f90: Add 'dg-do run'.
6932 * testsuite/libgomp.oacc-fortran/abort-2.f90: Ditto.
6933 * testsuite/libgomp.oacc-fortran/acc_on_device-1-1.f90: Ditto.
6934 * testsuite/libgomp.oacc-fortran/acc_on_device-1-2.f90: Ditto.
6935 * testsuite/libgomp.oacc-fortran/acc_on_device-1-3.f90: Ditto.
6936 * testsuite/libgomp.oacc-fortran/lib-1.f90: Ditto.
6937 * testsuite/libgomp.oacc-fortran/common-block-1.f90:
6938 Use 'stop' not abort().
6939 * testsuite/libgomp.oacc-fortran/common-block-2.f90: Ditto.
6940 * testsuite/libgomp.oacc-fortran/common-block-3.f90: Ditto.
6941 * testsuite/libgomp.oacc-fortran/data-1.f90: Ditto.
6942 * testsuite/libgomp.oacc-fortran/data-2.f90: Ditto.
6943 * testsuite/libgomp.oacc-fortran/data-5.f90: Ditto.
6944 * testsuite/libgomp.oacc-fortran/dummy-array.f90: Ditto.
6945 * testsuite/libgomp.oacc-fortran/gemm-2.f90: Ditto.
6946 * testsuite/libgomp.oacc-fortran/gemm.f90: Ditto.
6947 * testsuite/libgomp.oacc-fortran/host_data-2.f90: Ditto.
6948 * testsuite/libgomp.oacc-fortran/host_data-3.f90: Ditto.
6949 * testsuite/libgomp.oacc-fortran/host_data-4.f90: Ditto.
6950 * testsuite/libgomp.oacc-fortran/kernels-collapse-3.f90: Ditto.
6951 * testsuite/libgomp.oacc-fortran/kernels-collapse-4.f90: Ditto.
6952 * testsuite/libgomp.oacc-fortran/kernels-independent.f90: Ditto.
6953 * testsuite/libgomp.oacc-fortran/kernels-loop-1.f90: Ditto.
6954 * testsuite/libgomp.oacc-fortran/kernels-map-1.f90: Ditto.
6955 * testsuite/libgomp.oacc-fortran/kernels-parallel-loop-data-enter-exit.f95:
6957 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-1.f90:
6959 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-2.f90:
6961 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-3.f90:
6963 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-6.f90:
6965 * testsuite/libgomp.oacc-fortran/kernels-private-vars-vector-1.f90:
6967 * testsuite/libgomp.oacc-fortran/kernels-private-vars-vector-2.f90:
6969 * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-1.f90:
6971 * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-2.f90:
6973 * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-3.f90:
6975 * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-4.f90:
6977 * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-5.f90:
6979 * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-6.f90:
6981 * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-7.f90:
6983 * testsuite/libgomp.oacc-fortran/kernels-reduction-1.f90: Ditto.
6984 * testsuite/libgomp.oacc-fortran/lib-12.f90: Ditto.
6985 * testsuite/libgomp.oacc-fortran/lib-13.f90: Ditto.
6986 * testsuite/libgomp.oacc-fortran/lib-14.f90: Ditto.
6987 * testsuite/libgomp.oacc-fortran/kernels-acc-loop-reduction-2.f90:
6988 Likewise and also add 'dg-do run'.
6989 * testsuite/libgomp.oacc-fortran/kernels-acc-loop-reduction.f90:
6992 2019-10-25 Cesar Philippidis <cesar@codesourcery.com>
6993 Tobias Burnus <tobias@codesourcery.com>
6995 * testsuite/libgomp.oacc-fortran/common-block-1.f90: New test.
6996 * testsuite/libgomp.oacc-fortran/common-block-2.f90: New test.
6997 * testsuite/libgomp.oacc-fortran/common-block-3.f90: New test.
6999 2019-10-14 Jakub Jelinek <jakub@redhat.com>
7002 * testsuite/libgomp.fortran/target-simd.f90: Iterate from 1 rather
7005 2019-10-11 Tobias Burnus <tobias@codesourcery.com>
7007 * testsuite/libgomp.fortran/use_device_addr-1.f90: New.
7008 * testsuite/libgomp.fortran/use_device_addr-2.f90: New.
7010 2019-10-09 Thomas Schwinge <thomas@codesourcery.com>
7013 * testsuite/libgomp.oacc-c-c++-common/data-firstprivate-1.c: New
7016 2019-10-09 Tobias Burnus <tobias@codesourcery.com>
7019 * testsuite/libgomp.fortran/fortran.exp: Conditionally
7021 * testsuite/libgomp.oacc-fortran/fortran.exp: Ditto.
7023 2019-10-09 Jakub Jelinek <jakub@redhat.com>
7026 * target.c (gomp_map_vars_internal): Readd the previous
7027 GOMP_MAP_USE_DEVICE_PTR handling code in the first loop,
7028 though do that just in the !not_found_cnt case.
7030 2019-10-08 Tobias Burnus <tobias@codesourcery.com>
7032 * gfortran.dg/gomp/target-simd.f90: New.
7034 2019-10-02 Julian Brown <julian@codesourcery.com>
7035 Cesar Philippidis <cesar@codesourcery.com>
7037 * libgomp.h (OFFSET_INLINED, OFFSET_POINTER, OFFSET_STRUCT): Define.
7038 * target.c (FIELD_TGT_EMPTY): Define.
7039 (gomp_map_val): Use OFFSET_* macros instead of magic constants. Write
7040 as switch instead of list of ifs.
7041 (gomp_map_vars_internal): Use OFFSET_* and FIELD_TGT_EMPTY macros.
7043 2019-10-02 Andreas Tobler <andreast@gcc.gnu.org>
7045 * testsuite/libgomp.oacc-c-c++-common/loop-default.h: Remove alloca.h
7046 include. Replace alloca () with __builtin_alloca ().
7047 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: Likewise.
7049 2019-10-01 Jakub Jelinek <jakub@redhat.com>
7051 * configure.ac: Remove GCC_HEADER_STDINT(gstdint.h).
7052 * libgomp.h: Include <stdint.h> instead of "gstdint.h".
7053 * oacc-parallel.c: Don't include "libgomp_g.h".
7054 * plugin/plugin-hsa.c: Include <stdint.h> instead of "gstdint.h".
7055 * plugin/plugin-nvptx.c: Don't include "gstdint.h".
7056 * aclocal.m4: Regenerated.
7057 * config.h.in: Regenerated.
7058 * configure: Regenerated.
7059 * Makefile.in: Regenerated.
7061 2019-09-30 Kwok Cheung Yeung <kcy@codesourcery.com>
7063 * libgomp_g.h: Include stdint.h instead of gstdint.h.
7065 2019-09-27 Maciej W. Rozycki <macro@wdc.com>
7067 * configure: Regenerate.
7069 2019-09-13 Tobias Burnus <tobias@codesourcery.com>
7071 * plugin/plugin-hsa.c (hsa_warn, hsa_fatal, hsa_error): Ensure
7072 string is initialized.
7074 2019-09-06 Florian Weimer <fweimer@redhat.com>
7076 * configure: Regenerate.
7078 2019-09-03 Chung-Lin Tang <cltang@codesourcery.com>
7081 * acinclude.m4 (LIBGOMP_CHECK_LINKER_FEATURES): Fix GNU ld --version
7082 scanning to conform to the GNU Coding Standards.
7083 * configure: Regenerate.
7085 2019-08-28 Jakub Jelinek <jakub@redhat.com>
7088 * testsuite/libgomp.c/scan-21.c: New test.
7089 * testsuite/libgomp.c/scan-22.c: New test.
7091 2019-08-27 Jakub Jelinek <jakub@redhat.com>
7094 * testsuite/libgomp.c/scan-11.c: Add -msse2 option for sse2_runtime
7096 * testsuite/libgomp.c/scan-12.c: Likewise.
7097 * testsuite/libgomp.c/scan-13.c: Likewise.
7098 * testsuite/libgomp.c/scan-14.c: Likewise.
7099 * testsuite/libgomp.c/scan-15.c: Likewise.
7100 * testsuite/libgomp.c/scan-16.c: Likewise.
7101 * testsuite/libgomp.c/scan-17.c: Likewise.
7102 * testsuite/libgomp.c/scan-18.c: Likewise.
7103 * testsuite/libgomp.c/scan-19.c: Likewise.
7104 * testsuite/libgomp.c/scan-20.c: Likewise.
7105 * testsuite/libgomp.c++/scan-9.C: Likewise.
7106 * testsuite/libgomp.c++/scan-10.C: Likewise.
7107 * testsuite/libgomp.c++/scan-11.C: Likewise.
7108 * testsuite/libgomp.c++/scan-12.C: Likewise.
7109 * testsuite/libgomp.c++/scan-14.C: Likewise.
7110 * testsuite/libgomp.c++/scan-15.C: Likewise.
7111 * testsuite/libgomp.c++/scan-13.C: Likewise. Use sse2_runtime
7112 instead of i?86-*-* x86_64-*-* as target for scan-tree-dump-times.
7113 * testsuite/libgomp.c++/scan-16.C: Likewise.
7115 2019-08-17 Thomas Koenig <tkoenig@gcc.gnu.org>
7118 * testsuite/libgomp.fortran/appendix-a/a.28.5.f90: Add
7119 -std=legacy so invalid code in the test case is accepted.
7121 2019-08-12 Thomas Koenig <tkoenig@gcc.gnu.org>
7124 * testsuite/libgomp.oacc-fortran/routine-7.f90: Correct array
7127 2019-08-08 Jakub Jelinek <jakub@redhat.com>
7129 * target.c (gomp_map_vars_internal): For GOMP_MAP_USE_DEVICE_PTR
7130 perform the lookup in the first loop only if !not_found_cnt, otherwise
7131 perform lookups for it in the second loop guarded with
7132 if (not_found_cnt || has_firstprivate).
7133 * testsuite/libgomp.c/target-37.c: New test.
7134 * testsuite/libgomp.c++/target-22.C: New test.
7136 2019-08-07 Jakub Jelinek <jakub@redhat.com>
7138 * testsuite/libgomp.c/target-18.c (struct S): New type.
7139 (foo): Use use_device_addr clause instead of use_device_ptr clause
7140 where required by OpenMP 5.0, add further tests for both use_device_ptr
7141 and use_device_addr clauses.
7142 * testsuite/libgomp.c++/target-9.C (struct S): New type.
7143 (foo): Use use_device_addr clause instead of use_device_ptr clause
7144 where required by OpenMP 5.0, add further tests for both use_device_ptr
7145 and use_device_addr clauses. Add t and u arguments.
7146 (main): Adjust caller.
7148 2019-08-06 Jakub Jelinek <jakub@redhat.com>
7150 * testsuite/libgomp.c++/loop-13.C: New test.
7151 * testsuite/libgomp.c++/loop-14.C: New test.
7152 * testsuite/libgomp.c++/loop-15.C: New test.
7154 2019-07-31 Jakub Jelinek <jakub@redhat.com>
7157 * testsuite/libgomp.c++/for-27.C: New test.
7159 2019-07-23 Steven G. Kargl <kargl@gcc.gnu.org>
7161 * testsuite/libgomp.fortran/reduction4.f90: Update BOZ usage.
7162 * testsuite/libgomp.fortran/reduction5.f90: Ditto.
7164 2019-07-20 Jakub Jelinek <jakub@redhat.com>
7166 * testsuite/libgomp.c-c++-common/loop-1.c: New test.
7168 2019-07-08 Jakub Jelinek <jakub@redhat.com>
7170 * testsuite/libgomp.c++/scan-13.C: Replace xfail with target x86.
7171 * testsuite/libgomp.c++/scan-16.C: Likewise.
7173 2019-07-06 Jakub Jelinek <jakub@redhat.com>
7175 * testsuite/libgomp.c/scan-19.c: New test.
7176 * testsuite/libgomp.c/scan-20.c: New test.
7178 * testsuite/libgomp.c/scan-11.c: New test.
7179 * testsuite/libgomp.c/scan-12.c: New test.
7180 * testsuite/libgomp.c/scan-13.c: New test.
7181 * testsuite/libgomp.c/scan-14.c: New test.
7182 * testsuite/libgomp.c/scan-15.c: New test.
7183 * testsuite/libgomp.c/scan-16.c: New test.
7184 * testsuite/libgomp.c/scan-17.c: New test.
7185 * testsuite/libgomp.c/scan-18.c: New test.
7186 * testsuite/libgomp.c++/scan-9.C: New test.
7187 * testsuite/libgomp.c++/scan-10.C: New test.
7188 * testsuite/libgomp.c++/scan-11.C: New test.
7189 * testsuite/libgomp.c++/scan-12.C: New test.
7190 * testsuite/libgomp.c++/scan-13.C: New test.
7191 * testsuite/libgomp.c++/scan-14.C: New test.
7192 * testsuite/libgomp.c++/scan-15.C: New test.
7193 * testsuite/libgomp.c++/scan-16.C: New test.
7195 2019-07-04 Jakub Jelinek <jakub@redhat.com>
7197 * testsuite/libgomp.c/scan-9.c: New test.
7198 * testsuite/libgomp.c/scan-10.c: New test.
7200 2019-07-03 Jakub Jelinek <jakub@redhat.com>
7202 * testsuite/libgomp.c++/scan-1.C: New test.
7203 * testsuite/libgomp.c++/scan-2.C: New test.
7204 * testsuite/libgomp.c++/scan-3.C: New test.
7205 * testsuite/libgomp.c++/scan-4.C: New test.
7206 * testsuite/libgomp.c++/scan-5.C: New test.
7207 * testsuite/libgomp.c++/scan-6.C: New test.
7208 * testsuite/libgomp.c++/scan-7.C: New test.
7209 * testsuite/libgomp.c++/scan-8.C: New test.
7210 * testsuite/libgomp.c/scan-1.c: New test.
7211 * testsuite/libgomp.c/scan-2.c: New test.
7212 * testsuite/libgomp.c/scan-3.c: New test.
7213 * testsuite/libgomp.c/scan-4.c: New test.
7214 * testsuite/libgomp.c/scan-5.c: New test.
7215 * testsuite/libgomp.c/scan-6.c: New test.
7216 * testsuite/libgomp.c/scan-7.c: New test.
7217 * testsuite/libgomp.c/scan-8.c: New test.
7219 2019-06-18 Thomas Schwinge <thomas@codesourcery.com>
7221 * testsuite/libgomp.oacc-c++/firstprivate-mappings-1.C: New file.
7222 * testsuite/libgomp.oacc-c-c++-common/firstprivate-mappings-1.c:
7225 * testsuite/libgomp.fortran/allocatable3.f90: Add missing results
7228 2019-06-18 Cesar Philippidis <cesar@codesourcery.com>
7230 * testsuite/libgomp.oacc-fortran/allocatable-array-1.f90: New
7233 2019-06-18 Thomas Schwinge <thomas@codesourcery.com>
7236 * oacc-parallel.c (GOACC_parallel_keyed): Handle NULL mapping
7238 * testsuite/libgomp.fortran/target-allocatable-1-1.f90: New file.
7239 * testsuite/libgomp.fortran/target-allocatable-1-2.f90: Likewise.
7240 * testsuite/libgomp.oacc-fortran/allocatable-1-1.f90: Likewise.
7241 * testsuite/libgomp.oacc-fortran/allocatable-1-2.f90: Likewise.
7244 * testsuite/libgomp.oacc-c-c++-common/declare-vla.c: Update.
7247 * testsuite/libgomp.oacc-c-c++-common/declare-1.c: Update.
7249 2019-06-16 Tom de Vries <tdevries@suse.de>
7251 PR tree-optimization/89376
7252 * testsuite/libgomp.oacc-c-c++-common/pr89376.c: New test.
7254 2019-06-15 Tom de Vries <tdevries@suse.de>
7256 PR tree-optimization/89713
7257 * testsuite/libgomp.oacc-c-c++-common/pr85381-2.c: Expect no bar.sync.
7258 * testsuite/libgomp.oacc-c-c++-common/pr85381-4.c: Same.
7260 2019-06-15 Jakub Jelinek <jakub@redhat.com>
7263 * testsuite/libgomp.c/pr90779.c: New test.
7264 * testsuite/libgomp.fortran/pr90779.f90: New test.
7266 2019-06-15 Tom de Vries <tdevries@suse.de>
7268 PR tree-optimization/90009
7269 * testsuite/libgomp.oacc-c-c++-common/pr90009.c: New test.
7271 2019-06-13 Feng Xue <fxue@os.amperecomputing.com>
7273 PR tree-optimization/89713
7274 * testsuite/libgomp.oacc-c-c++-common/pr84955-1.c: New test.
7276 2019-06-11 Jakub Jelinek <jakub@redhat.com>
7279 * testsuite/libgomp.c/pr90811.c: New test.
7281 2019-06-05 Jakub Jelinek <jakub@redhat.com>
7283 * testsuite/libgomp.c++/lastprivate-conditional-1.C: New test.
7284 * testsuite/libgomp.c++/lastprivate-conditional-2.C: New test.
7286 2019-06-04 Jakub Jelinek <jakub@redhat.com>
7288 * testsuite/libgomp.c-c++-common/lastprivate-conditional-7.c: New test.
7289 * testsuite/libgomp.c-c++-common/lastprivate-conditional-8.c: New test.
7290 * testsuite/libgomp.c-c++-common/lastprivate-conditional-9.c: New test.
7291 * testsuite/libgomp.c-c++-common/lastprivate-conditional-10.c: New test.
7293 2019-05-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7295 * configure.ac: Call AX_COUNT_CPUS.
7296 Substitute CPU_COUNT.
7297 * testsuite/Makefile.am (check-am): Use CPU_COUNT as processor
7299 * aclocal.m4: Regenerate.
7300 * configure: Regenerate.
7301 * Makefile.in, testsuite/Makefile.in: Regenerate.
7303 2019-05-29 Jakub Jelinek <jakub@redhat.com>
7305 * testsuite/libgomp.c-c++-common/lastprivate_conditional_4.c: Rename
7307 * testsuite/libgomp.c-c++-common/lastprivate-conditional-4.c: ... this.
7308 * testsuite/libgomp.c-c++-common/lastprivate-conditional-5.c: New test.
7309 * testsuite/libgomp.c-c++-common/lastprivate-conditional-6.c: New test.
7311 2019-05-27 Jakub Jelinek <jakub@redhat.com>
7313 * testsuite/libgomp.c-c++-common/lastprivate_conditional_4.c: New test.
7315 * testsuite/libgomp.c-c++-common/lastprivate-conditional-3.c: New test.
7318 * work.c (gomp_init_work_share): Instead of aligning final ordered
7319 value to multiples of long long alignment, align to that the
7320 first part (ordered team ids) and if inline_ordered_team_ids
7321 is not on a long long alignment boundary within the structure,
7322 use __alignof__ (long long) - 1 pad size always.
7323 * loop.c (GOMP_loop_start): Fix *mem computation if
7324 inline_ordered_team_ids is not aligned on long long alignment boundary
7325 within the structure.
7326 * loop-ull.c (GOMP_loop_ull_start): Likewise.
7327 * sections.c (GOMP_sections2_start): Likewise.
7329 2019-05-24 Jakub Jelinek <jakub@redhat.com>
7331 * testsuite/libgomp.c-c++-common/lastprivate-conditional-1.c: New test.
7332 * testsuite/libgomp.c-c++-common/lastprivate-conditional-2.c: New test.
7335 * plugin/plugin-hsa.c: Include gstdint.h. Include inttypes.h only if
7336 HAVE_INTTYPES_H is defined.
7337 (print_uint64_t): New typedef.
7338 (PRIu64): Define if HAVE_INTTYPES_H is not defined.
7339 (print_kernel_dispatch, run_kernel): Use PRIu64 macro instead of
7340 "lu", cast uint64_t HSA_DEBUG and fprintf arguments to print_uint64_t.
7341 (release_kernel_dispatch): Likewise. Cast shadow->debug to uintptr_t
7342 before casting to void *.
7343 * plugin/plugin-nvptx.c: Include gstdint.h instead of stdint.h.
7344 * oacc-mem.c: Don't include config.h nor stdint.h.
7345 * target.c: Don't include config.h.
7346 * oacc-cuda.c: Likewise.
7347 * oacc-host.c: Don't include stdint.h.
7349 2019-05-20 Jakub Jelinek <jakub@redhat.com>
7352 * alloc.c (_GNU_SOURCE): Define.
7354 2019-05-17 Thomas Schwinge <thomas@codesourcery.com>
7356 * acc_prof.h: New file.
7357 * oacc-profiling.c: Likewise.
7358 * Makefile.am (nodist_libsubinclude_HEADERS, libgomp_la_SOURCES):
7359 Add these, respectively.
7360 * Makefile.in: Regenerate.
7361 * env.c (initialize_env): Call goacc_profiling_initialize.
7362 * oacc-plugin.c (GOMP_PLUGIN_goacc_thread)
7363 (GOMP_PLUGIN_goacc_profiling_dispatch): New functions.
7364 * oacc-plugin.h (GOMP_PLUGIN_goacc_thread)
7365 (GOMP_PLUGIN_goacc_profiling_dispatch): Declare.
7366 * libgomp.map (OACC_2.5.1): Add acc_prof_lookup,
7367 acc_prof_register, acc_prof_unregister, and acc_register_library.
7368 (GOMP_PLUGIN_1.3): Add GOMP_PLUGIN_goacc_profiling_dispatch, and
7369 GOMP_PLUGIN_goacc_thread.
7370 * oacc-int.h (struct goacc_thread): Add prof_info, api_info,
7371 prof_callbacks_enabled members.
7372 (goacc_prof_enabled, goacc_profiling_initialize)
7373 (_goacc_profiling_dispatch_p, _goacc_profiling_setup_p)
7374 (goacc_profiling_dispatch): Declare.
7375 (GOACC_PROF_ENABLED, GOACC_PROFILING_DISPATCH_P)
7376 (GOACC_PROFILING_SETUP_P): Define.
7377 * oacc-async.c (acc_async_test, acc_async_test_all, acc_wait)
7378 (acc_wait_async, acc_wait_all, acc_wait_all_async): Update for
7379 OpenACC Profiling Interface.
7380 * oacc-cuda.c (acc_get_current_cuda_device)
7381 (acc_get_current_cuda_context, acc_get_cuda_stream)
7382 (acc_set_cuda_stream): Likewise.
7383 * oacc-init.c (acc_init_1, goacc_attach_host_thread_to_device)
7384 (acc_init, acc_set_device_type, acc_get_device_type)
7385 (acc_get_device_num, goacc_lazy_initialize): Likewise.
7386 * oacc-mem.c (acc_malloc, acc_free, memcpy_tofrom_device)
7387 (acc_deviceptr, acc_hostptr, acc_is_present, acc_map_data)
7388 (acc_unmap_data, present_create_copy, delete_copyout)
7389 (update_dev_host): Likewise.
7390 * oacc-parallel.c (GOACC_parallel_keyed, GOACC_data_start)
7391 (GOACC_data_end, GOACC_enter_exit_data, GOACC_update, GOACC_wait):
7393 * plugin/plugin-nvptx.c (nvptx_exec, nvptx_alloc, nvptx_free)
7394 (GOMP_OFFLOAD_openacc_exec, GOMP_OFFLOAD_openacc_async_exec):
7396 * libgomp.texi: Update.
7397 * testsuite/libgomp.oacc-c-c++-common/acc_prof-dispatch-1.c: New
7399 * testsuite/libgomp.oacc-c-c++-common/acc_prof-init-1.c: Likewise.
7400 * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c:
7402 * testsuite/libgomp.oacc-c-c++-common/acc_prof-parallel-1.c:
7404 * testsuite/libgomp.oacc-c-c++-common/acc_prof-valid_bytes-1.c:
7406 * testsuite/libgomp.oacc-c-c++-common/acc_prof-version-1.c:
7409 2019-05-13 Chung-Lin Tang <cltang@codesourcery.com>
7411 * libgomp-plugin.h (struct goacc_asyncqueue): Declare.
7412 (struct goacc_asyncqueue_list): Likewise.
7413 (goacc_aq): Likewise.
7414 (goacc_aq_list): Likewise.
7415 (GOMP_OFFLOAD_openacc_register_async_cleanup): Remove.
7416 (GOMP_OFFLOAD_openacc_async_test): Remove.
7417 (GOMP_OFFLOAD_openacc_async_test_all): Remove.
7418 (GOMP_OFFLOAD_openacc_async_wait): Remove.
7419 (GOMP_OFFLOAD_openacc_async_wait_async): Remove.
7420 (GOMP_OFFLOAD_openacc_async_wait_all): Remove.
7421 (GOMP_OFFLOAD_openacc_async_wait_all_async): Remove.
7422 (GOMP_OFFLOAD_openacc_async_set_async): Remove.
7423 (GOMP_OFFLOAD_openacc_exec): Adjust declaration.
7424 (GOMP_OFFLOAD_openacc_cuda_get_stream): Likewise.
7425 (GOMP_OFFLOAD_openacc_cuda_set_stream): Likewise.
7426 (GOMP_OFFLOAD_openacc_async_exec): Declare.
7427 (GOMP_OFFLOAD_openacc_async_construct): Declare.
7428 (GOMP_OFFLOAD_openacc_async_destruct): Declare.
7429 (GOMP_OFFLOAD_openacc_async_test): Declare.
7430 (GOMP_OFFLOAD_openacc_async_synchronize): Declare.
7431 (GOMP_OFFLOAD_openacc_async_serialize): Declare.
7432 (GOMP_OFFLOAD_openacc_async_queue_callback): Declare.
7433 (GOMP_OFFLOAD_openacc_async_host2dev): Declare.
7434 (GOMP_OFFLOAD_openacc_async_dev2host): Declare.
7436 * libgomp.h (struct acc_dispatch_t): Define 'async' sub-struct.
7437 (gomp_acc_insert_pointer): Adjust declaration.
7438 (gomp_copy_host2dev): New declaration.
7439 (gomp_copy_dev2host): Likewise.
7440 (gomp_map_vars_async): Likewise.
7441 (gomp_unmap_tgt): Likewise.
7442 (gomp_unmap_vars_async): Likewise.
7443 (gomp_fini_device): Likewise.
7445 * oacc-async.c (get_goacc_thread): New function.
7446 (get_goacc_thread_device): New function.
7447 (lookup_goacc_asyncqueue): New function.
7448 (get_goacc_asyncqueue): New function.
7449 (acc_async_test): Adjust code to use new async design.
7450 (acc_async_test_all): Likewise.
7451 (acc_wait): Likewise.
7452 (acc_wait_async): Likewise.
7453 (acc_wait_all): Likewise.
7454 (acc_wait_all_async): Likewise.
7455 (goacc_async_free): New function.
7456 (goacc_init_asyncqueues): Likewise.
7457 (goacc_fini_asyncqueues): Likewise.
7458 * oacc-cuda.c (acc_get_cuda_stream): Adjust code to use new async
7460 (acc_set_cuda_stream): Likewise.
7461 * oacc-host.c (host_openacc_exec): Adjust parameters, remove 'async'.
7462 (host_openacc_register_async_cleanup): Remove.
7463 (host_openacc_async_exec): New function.
7464 (host_openacc_async_test): Adjust parameters.
7465 (host_openacc_async_test_all): Remove.
7466 (host_openacc_async_wait): Remove.
7467 (host_openacc_async_wait_async): Remove.
7468 (host_openacc_async_wait_all): Remove.
7469 (host_openacc_async_wait_all_async): Remove.
7470 (host_openacc_async_set_async): Remove.
7471 (host_openacc_async_synchronize): New function.
7472 (host_openacc_async_serialize): New function.
7473 (host_openacc_async_host2dev): New function.
7474 (host_openacc_async_dev2host): New function.
7475 (host_openacc_async_queue_callback): New function.
7476 (host_openacc_async_construct): New function.
7477 (host_openacc_async_destruct): New function.
7478 (struct gomp_device_descr host_dispatch): Remove initialization of old
7479 interface, add initialization of new async sub-struct.
7480 * oacc-init.c (acc_shutdown_1): Adjust to use gomp_fini_device.
7481 (goacc_attach_host_thread_to_device): Remove old async code usage.
7482 * oacc-int.h (goacc_init_asyncqueues): New declaration.
7483 (goacc_fini_asyncqueues): Likewise.
7484 (goacc_async_copyout_unmap_vars): Likewise.
7485 (goacc_async_free): Likewise.
7486 (get_goacc_asyncqueue): Likewise.
7487 (lookup_goacc_asyncqueue): Likewise.
7488 * oacc-mem.c (memcpy_tofrom_device): Adjust code to use new async
7490 (present_create_copy): Adjust code to use new async design.
7491 (delete_copyout): Likewise.
7492 (update_dev_host): Likewise.
7493 (gomp_acc_insert_pointer): Add async parameter, adjust code to use new
7495 (gomp_acc_remove_pointer): Adjust code to use new async design.
7496 * oacc-parallel.c (GOACC_parallel_keyed): Adjust code to use new async
7498 (GOACC_enter_exit_data): Likewise.
7499 (goacc_wait): Likewise.
7500 (GOACC_update): Likewise.
7501 * oacc-plugin.c (GOMP_PLUGIN_async_unmap_vars): Change to assert fail
7502 when called, warn as obsolete in comment.
7503 * target.c (goacc_device_copy_async): New function.
7504 (gomp_copy_host2dev): Remove 'static', add goacc_asyncqueue parameter,
7505 add goacc_device_copy_async case.
7506 (gomp_copy_dev2host): Likewise.
7507 (gomp_map_vars_existing): Add goacc_asyncqueue parameter, adjust code.
7508 (gomp_map_pointer): Likewise.
7509 (gomp_map_fields_existing): Likewise.
7510 (gomp_map_vars_internal): New always_inline function, renamed from
7512 (gomp_map_vars): Implement by calling gomp_map_vars_internal.
7513 (gomp_map_vars_async): Implement by calling gomp_map_vars_internal,
7514 passing goacc_asyncqueue argument.
7515 (gomp_unmap_tgt): Remove static, add attribute_hidden.
7516 (gomp_unref_tgt): New function.
7517 (gomp_unmap_vars_internal): New always_inline function, renamed from
7519 (gomp_unmap_vars): Implement by calling gomp_unmap_vars_internal.
7520 (gomp_unmap_vars_async): Implement by calling
7521 gomp_unmap_vars_internal, passing goacc_asyncqueue argument.
7522 (gomp_fini_device): New function.
7523 (gomp_exit_data): Adjust gomp_copy_dev2host call.
7524 (gomp_load_plugin_for_device): Remove old interface, adjust to load
7525 new async interface.
7526 (gomp_target_fini): Adjust code to call gomp_fini_device.
7528 * plugin/plugin-nvptx.c (struct cuda_map): Remove.
7529 (struct ptx_stream): Remove.
7530 (struct nvptx_thread): Remove current_stream field.
7531 (cuda_map_create): Remove.
7532 (cuda_map_destroy): Remove.
7537 (struct goacc_asyncqueue): Define.
7538 (struct nvptx_callback): Define.
7539 (struct ptx_free_block): Define.
7540 (struct ptx_device): Remove null_stream, active_streams, async_streams,
7541 stream_lock, and next fields.
7542 (enum ptx_event_type): Remove.
7543 (struct ptx_event): Remove.
7544 (ptx_event_lock): Remove.
7545 (ptx_events): Remove.
7546 (init_streams_for_device): Remove.
7547 (fini_streams_for_device): Remove.
7548 (select_stream_for_async): Remove.
7549 (nvptx_init): Remove ptx_events and ptx_event_lock references.
7550 (nvptx_attach_host_thread_to_device): Remove CUDA_ERROR_NOT_PERMITTED
7552 (nvptx_open_device): Add free_blocks initialization, remove
7553 init_streams_for_device call.
7554 (nvptx_close_device): Remove fini_streams_for_device call, add
7555 free_blocks destruct code.
7557 (event_add): Remove.
7558 (nvptx_exec): Adjust parameters and code.
7559 (nvptx_free): Likewise.
7560 (nvptx_host2dev): Remove.
7561 (nvptx_dev2host): Remove.
7562 (nvptx_set_async): Remove.
7563 (nvptx_async_test): Remove.
7564 (nvptx_async_test_all): Remove.
7565 (nvptx_wait): Remove.
7566 (nvptx_wait_async): Remove.
7567 (nvptx_wait_all): Remove.
7568 (nvptx_wait_all_async): Remove.
7569 (nvptx_get_cuda_stream): Remove.
7570 (nvptx_set_cuda_stream): Remove.
7571 (GOMP_OFFLOAD_alloc): Adjust code.
7572 (GOMP_OFFLOAD_free): Likewise.
7573 (GOMP_OFFLOAD_openacc_register_async_cleanup): Remove.
7574 (GOMP_OFFLOAD_openacc_exec): Adjust parameters and code.
7575 (GOMP_OFFLOAD_openacc_async_test_all): Remove.
7576 (GOMP_OFFLOAD_openacc_async_wait): Remove.
7577 (GOMP_OFFLOAD_openacc_async_wait_async): Remove.
7578 (GOMP_OFFLOAD_openacc_async_wait_all): Remove.
7579 (GOMP_OFFLOAD_openacc_async_wait_all_async): Remove.
7580 (GOMP_OFFLOAD_openacc_async_set_async): Remove.
7581 (cuda_free_argmem): New function.
7582 (GOMP_OFFLOAD_openacc_async_exec): New plugin hook function.
7583 (GOMP_OFFLOAD_openacc_create_thread_data): Adjust code.
7584 (GOMP_OFFLOAD_openacc_cuda_get_stream): Adjust code.
7585 (GOMP_OFFLOAD_openacc_cuda_set_stream): Adjust code.
7586 (GOMP_OFFLOAD_openacc_async_construct): New plugin hook function.
7587 (GOMP_OFFLOAD_openacc_async_destruct): New plugin hook function.
7588 (GOMP_OFFLOAD_openacc_async_test): Remove and re-implement.
7589 (GOMP_OFFLOAD_openacc_async_synchronize): New plugin hook function.
7590 (GOMP_OFFLOAD_openacc_async_serialize): New plugin hook function.
7591 (GOMP_OFFLOAD_openacc_async_queue_callback): New plugin hook function.
7592 (cuda_callback_wrapper): New function.
7593 (cuda_memcpy_sanity_check): New function.
7594 (GOMP_OFFLOAD_host2dev): Remove and re-implement.
7595 (GOMP_OFFLOAD_dev2host): Remove and re-implement.
7596 (GOMP_OFFLOAD_openacc_async_host2dev): New plugin hook function.
7597 (GOMP_OFFLOAD_openacc_async_dev2host): New plugin hook function.
7599 2019-05-07 Thomas Schwinge <thomas@codesourcery.com>
7602 * testsuite/libgomp.oacc-c-c++-common/pr87835.c: Update.
7604 2019-05-06 Thomas Schwinge <thomas@codesourcery.com>
7606 * oacc-parallel.c: Add comments to legacy entry points (GCC 5).
7608 2019-03-27 Kevin Buettner <kevinb@redhat.com>
7610 * team.c (gomp_team_start): Initialize pool->threads[0].
7612 2019-02-22 Thomas Schwinge <thomas@codesourcery.com>
7614 * testsuite/libgomp.oacc-c++/c++.exp: Specify
7615 "-foffload=$offload_target".
7616 * testsuite/libgomp.oacc-c/c.exp: Likewise.
7617 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
7618 * testsuite/lib/libgomp.exp
7619 (check_effective_target_openacc_nvidia_accel_configured): Remove,
7620 as (conceptually) merged into
7621 check_effective_target_openacc_nvidia_accel_selected. Adjust all
7624 * plugin/configfrag.ac: Populate and AC_SUBST offload_targets.
7625 * testsuite/libgomp-test-support.exp.in: Adjust.
7626 * testsuite/lib/libgomp.exp: Likewise. Don't populate
7627 openacc_device_types_s.
7628 (offload_target_to_openacc_device_type): New proc.
7629 * testsuite/libgomp.oacc-c++/c++.exp: Adjust.
7630 * testsuite/libgomp.oacc-c/c.exp: Likewise.
7631 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
7632 * Makefile.in: Regenerate.
7633 * configure: Likewise.
7634 * testsuite/Makefile.in: Likewise.
7636 * plugin/configfrag.ac: Populate and AC_SUBST offload_plugins
7637 instead of offload_targets, and AC_DEFINE_UNQUOTED OFFLOAD_PLUGINS
7638 instead of OFFLOAD_TARGETS.
7639 * target.c (gomp_target_init): Adjust.
7640 * testsuite/libgomp-test-support.exp.in: Likewise.
7641 * testsuite/lib/libgomp.exp: Likewise. Populate
7642 openacc_device_types_s instead of offload_targets_s_openacc.
7643 (check_effective_target_openacc_nvidia_accel_selected)
7644 (check_effective_target_openacc_host_selected): Adjust.
7645 * testsuite/libgomp.oacc-c++/c++.exp: Likewise.
7646 * testsuite/libgomp.oacc-c/c.exp: Likewise.
7647 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
7648 * Makefile.in: Regenerate.
7649 * config.h.in: Likewise.
7650 * configure: Likewise.
7651 * testsuite/Makefile.in: Likewise.
7653 * testsuite/lib/libgomp.exp: Error out for unknown offload target.
7654 * testsuite/libgomp.oacc-c++/c++.exp: Likewise. Report if
7655 "offloading: supported, but hardware not accessible".
7656 * testsuite/libgomp.oacc-c/c.exp: Likewise.
7657 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
7659 2019-02-19 Chung-Lin Tang <cltang@codesourcery.com>
7662 * oacc-parallel.c (GOACC_parallel_keyed): Remove condition on call to
7664 (goacc_wait): Handle ACC_ASYNC_NOVAL case, remove goacc_thread() call
7665 and related adjustment.
7667 2019-01-30 Jakub Jelinek <jakub@redhat.com>
7670 * testsuite/libgomp.c++/pr88988.C: New test.
7672 2019-01-28 Jakub Jelinek <jakub@redhat.com>
7675 * testsuite/libgomp.c/pr89002.c: New test.
7677 2019-01-28 Richard Biener <rguenther@suse.de>
7680 PR tree-optimization/86865
7681 * testsuite/libgomp.graphite/force-parallel-5.c: XFAIL.
7683 2019-01-24 Tom de Vries <tdevries@suse.de>
7685 * plugin/plugin-nvptx.c (GOMP_OFFLOAD_fini_device): Free ptx_devices
7686 once instantiated_devices drops to 0.
7688 2019-01-23 Tom de Vries <tdevries@suse.de>
7691 * plugin/plugin-nvptx.c (cuda_map_destroy): Use CUDA_CALL_NOCHECK for
7693 (nvptx_exec): Don't call map_push if mapnum == 0.
7694 * testsuite/libgomp.oacc-c-c++-common/pr88946.c: New test.
7696 2019-01-23 Tom de Vries <tdevries@suse.de>
7700 * plugin/plugin-nvptx.c (cuda_map_destroy): Handle map->active case.
7701 (map_fini): Remove "assert (!s->map->active)".
7702 * testsuite/libgomp.oacc-c-c++-common/pr88941.c: New test.
7704 2019-01-23 Tom de Vries <tdevries@suse.de>
7707 * plugin/plugin-nvptx.c (map_push): Fix adding of allocated element.
7708 * testsuite/libgomp.oacc-c-c++-common/pr87835.c: New test.
7710 2019-01-15 Tom de Vries <tdevries@suse.de>
7713 * testsuite/libgomp.oacc-c-c++-common/gang-reduction-var-assignment.c:
7716 2019-01-12 Tom de Vries <tdevries@suse.de>
7718 * testsuite/libgomp.oacc-c-c++-common/pr85486-2.c: New test.
7719 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-2.c: New test.
7720 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-5.c: New test.
7721 * testsuite/libgomp.oacc-fortran/gemm-2.f90: New test.
7723 2019-01-12 Tom de Vries <tdevries@suse.de>
7725 * plugin/plugin-nvptx.c (nvptx_exec): Update error message.
7727 2019-01-12 Tom de Vries <tdevries@suse.de>
7729 * testsuite/libgomp.oacc-c-c++-common/vector-length-64-1.c: New test.
7730 * testsuite/libgomp.oacc-c-c++-common/vector-length-64-2.c: New test.
7731 * testsuite/libgomp.oacc-c-c++-common/vector-length-64-3.c: New test.
7733 2019-01-12 Tom de Vries <tdevries@suse.de>
7736 * testsuite/libgomp.oacc-c-c++-common/pr85486-3.c: New test.
7737 * testsuite/libgomp.oacc-c-c++-common/pr85486.c: New test.
7739 2019-01-12 Tom de Vries <tdevries@suse.de>
7742 * testsuite/libgomp.oacc-c-c++-common/pr85381-5.c: New test.
7743 * testsuite/libgomp.oacc-c-c++-common/pr85381.c: New test.
7745 2019-01-12 Tom de Vries <tdevries@suse.de>
7747 * testsuite/libgomp.oacc-c-c++-common/vred2d-128.c: New test.
7748 * testsuite/libgomp.oacc-fortran/gemm.f90: New test.
7749 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-10.c: New test.
7751 2019-01-12 Tom de Vries <tdevries@suse.de>
7753 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-7.c: New test.
7754 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-4.c: New test.
7755 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-6.c: New test.
7757 2019-01-12 Tom de Vries <tdevries@suse.de>
7759 * plugin/plugin-nvptx.c (nvptx_exec): Update insufficient hardware
7760 resources diagnostic.
7762 2019-01-12 Tom de Vries <tdevries@suse.de>
7764 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-1.c: Expect
7765 vector length to be 128.
7766 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Expect vector
7767 length 2097152 to be reduced to 1024 instead of 32.
7769 2019-01-11 Thomas Schwinge <thomas@codesourcery.com>
7770 James Norris <jnorris@codesourcery.com>
7772 * libgomp.texi: Better distinguish OpenACC and OpenMP "Runtime
7773 Library Routines", and "Environment Variables".
7775 2019-01-11 Tom de Vries <tdevries@suse.de>
7777 * plugin/plugin-nvptx.c (nvptx_exec): Prevent vector_length 64 and
7780 2019-01-11 Tom de Vries <tdevries@suse.de>
7782 * testsuite/libgomp.oacc-c-c++-common/reduction-1.c: Remove
7784 * testsuite/libgomp.oacc-c-c++-common/reduction-2.c: Same.
7785 * testsuite/libgomp.oacc-c-c++-common/reduction-3.c: Same.
7786 * testsuite/libgomp.oacc-c-c++-common/reduction-4.c: Same.
7787 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Same.
7789 2019-01-11 Tom de Vries <tdevries@suse.de>
7791 * testsuite/libgomp.oacc-c-c++-common/insufficient-resources.c: New
7794 2019-01-10 Nathan Sidwell <nathan@acm.org>
7795 Julian Brown <julian@codesourcery.com>
7798 * testsuite/libgomp.oacc-c++/pr71959-aux.cc: New.
7799 * testsuite/libgomp.oacc-c++/pr71959.C: New.
7801 2019-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
7803 * config/rtems/bar.c: Include "../linux/bar.c" and delete copy
7806 2019-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
7808 * config/rtems/affinity-fmt.c: New file. Include affinity-fmt.c,
7809 undefining HAVE_GETPID and HAVE_GETHOSTNAME, and mapping fwrite to
7812 2019-01-09 Tom de Vries <tdevries@suse.de>
7815 * testsuite/libgomp.oacc-c-c++-common/reduction-1.c (ng, nw, vl): Use
7816 #define instead of "const int".
7817 * testsuite/libgomp.oacc-c-c++-common/reduction-2.c (ng, nw, vl): Same.
7818 * testsuite/libgomp.oacc-c-c++-common/reduction-3.c (ng, nw, vl): Same.
7819 * testsuite/libgomp.oacc-c-c++-common/reduction-4.c (ng, nw, vl): Same.
7820 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c (ng, nw, vl): Same.
7822 2019-01-09 Tom de Vries <tdevries@suse.de>
7824 * plugin/plugin-nvptx.c (nvptx_exec): Make sure to launch with at least
7827 2019-01-07 Tom de Vries <tdevries@suse.de>
7829 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-3.c: Fix
7830 GOMP_OPENACC_DIM argument.
7832 2019-01-03 Tom de Vries <tdevries@suse.de>
7834 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-1.c: New test.
7835 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-3.c: New test.
7837 2019-01-01 Jakub Jelinek <jakub@redhat.com>
7839 Update copyright years.
7841 2019-01-01 Jakub Jelinek <jakub@redhat.com>
7843 * libgomp.texi: Bump @copying's copyright year.
7845 2018-12-28 Thomas Schwinge <thomas@codesourcery.com>
7847 * oacc-parallel.c (GOACC_parallel_keyed, GOACC_parallel)
7848 (GOACC_data_start, GOACC_enter_exit_data, GOACC_update)
7849 (GOACC_declare): Redefine the "device" argument to "flags".
7851 2018-12-28 Thomas Schwinge <thomas@codesourcery.com>
7852 Cesar Philippidis <cesar@codesourcery.com>
7854 * target.c (struct gomp_coalesce_chunk): New structure.
7855 (struct gomp_coalesce_buf): Update the chunks member to use that
7856 type. Adjust all users.
7858 2018-12-19 Tom de Vries <tdevries@suse.de>
7860 * testsuite/libgomp.oacc-c-c++-common/pr85381-2.c: New test.
7861 * testsuite/libgomp.oacc-c-c++-common/pr85381-3.c: New test.
7862 * testsuite/libgomp.oacc-c-c++-common/pr85381-4.c: New test.
7864 2018-12-19 Tom de Vries <tdevries@suse.de>
7866 * testsuite/lib/libgomp.exp: Add load_lib of scanoffloadrtl.exp.
7867 * testsuite/libgomp.oacc-c-c++-common/nvptx-merged-loop.c: Move from
7868 gcc/testsuite/gcc.dg/goacc.
7869 * testsuite/libgomp.oacc-c-c++-common/nvptx-sese-1.c: Same.
7871 2018-12-14 Thomas Schwinge <thomas@codesourcery.com>
7872 Chung-Lin Tang <cltang@codesourcery.com>
7874 * oacc-mem.c (acc_present_or_create): Remove definition and change
7875 to alias of acc_create.
7876 (acc_present_or_copyin): Remove definition and change to alias of
7878 * oacc-parallel.c (GOACC_enter_exit_data): Call acc_create instead
7879 of acc_present_or_create.
7880 * testsuite/libgomp.oacc-c-c++-common/data-already-1.c: Remove.
7881 * testsuite/libgomp.oacc-c-c++-common/data-already-2.c: Likewise.
7882 * testsuite/libgomp.oacc-c-c++-common/data-already-3.c: Likewise.
7883 * testsuite/libgomp.oacc-c-c++-common/data-already-4.c: Likewise.
7884 * testsuite/libgomp.oacc-c-c++-common/data-already-5.c: Likewise.
7885 * testsuite/libgomp.oacc-c-c++-common/data-already-6.c: Likewise.
7886 * testsuite/libgomp.oacc-c-c++-common/data-already-7.c: Likewise.
7887 * testsuite/libgomp.oacc-c-c++-common/data-already-8.c: Likewise.
7888 * testsuite/libgomp.oacc-fortran/data-already-1.f: Likewise.
7889 * testsuite/libgomp.oacc-fortran/data-already-2.f: Likewise.
7890 * testsuite/libgomp.oacc-fortran/data-already-3.f: Likewise.
7891 * testsuite/libgomp.oacc-fortran/data-already-4.f: Likewise.
7892 * testsuite/libgomp.oacc-fortran/data-already-5.f: Likewise.
7893 * testsuite/libgomp.oacc-fortran/data-already-6.f: Likewise.
7894 * testsuite/libgomp.oacc-fortran/data-already-7.f: Likewise.
7895 * testsuite/libgomp.oacc-fortran/data-already-8.f: Likewise.
7897 2018-12-14 Thomas Schwinge <thomas@codesourcery.com>
7900 * plugin/plugin-nvptx.c (nvptx_wait_async): Don't refuse
7901 "identical parameters".
7902 * testsuite/libgomp.oacc-c-c++-common/asyncwait-nop-1.c: Update.
7903 * testsuite/libgomp.oacc-c-c++-common/lib-80.c: Remove.
7906 * oacc-parallel.c (GOACC_wait): Correct handling for "async >= 0".
7907 * testsuite/libgomp.oacc-c-c++-common/asyncwait-nop-1.c: New file.
7910 * plugin/plugin-nvptx.c (nvptx_async_test, nvptx_wait)
7911 (nvptx_wait_async): Unseen async-argument is a no-op.
7912 * testsuite/libgomp.oacc-c-c++-common/async_queue-1.c: Update.
7913 * testsuite/libgomp.oacc-c-c++-common/data-2-lib.c: Likewise.
7914 * testsuite/libgomp.oacc-c-c++-common/data-2.c: Likewise.
7915 * testsuite/libgomp.oacc-c-c++-common/lib-79.c: Likewise.
7916 * testsuite/libgomp.oacc-fortran/lib-12.f90: Likewise.
7917 * testsuite/libgomp.oacc-c-c++-common/lib-71.c: Merge into...
7918 * testsuite/libgomp.oacc-c-c++-common/lib-69.c: ... this. Update.
7919 * testsuite/libgomp.oacc-c-c++-common/lib-77.c: Merge into...
7920 * testsuite/libgomp.oacc-c-c++-common/lib-74.c: ... this. Update
7922 * testsuite/libgomp.oacc-c-c++-common/data-2-lib.c: Revise.
7923 * testsuite/libgomp.oacc-c-c++-common/data-2.c: Likewise.
7925 2018-12-14 Chung-Lin Tang <cltang@codesourcery.com>
7927 * testsuite/libgomp.oacc-c-c++-common/data-2-lib.c: Adjust.
7928 * testsuite/libgomp.oacc-c-c++-common/data-2.c: Likewise.
7929 * testsuite/libgomp.oacc-c-c++-common/data-3.c: Likewise.
7931 2018-12-14 Thomas Schwinge <thomas@codesourcery.com>
7934 * libgomp.texi (acc_get_current_cuda_context, acc_get_cuda_stream)
7935 (acc_set_cuda_stream): Clarify.
7936 * oacc-cuda.c (acc_get_cuda_stream, acc_set_cuda_stream): Use
7938 * plugin/plugin-nvptx.c (nvptx_set_cuda_stream): Refuse "async ==
7940 * testsuite/libgomp.oacc-c-c++-common/acc_set_cuda_stream-1.c: New file.
7941 * testsuite/libgomp.oacc-c-c++-common/async_queue-1.c: Likewise.
7942 * testsuite/libgomp.oacc-c-c++-common/lib-84.c: Update.
7943 * testsuite/libgomp.oacc-c-c++-common/lib-85.c: Likewise.
7945 2018-12-14 Tom de Vries <tdevries@suse.de>
7947 * testsuite/libgomp.c-c++-common/function-not-offloaded-aux.c: New test.
7948 * testsuite/libgomp.c-c++-common/function-not-offloaded.c: New test.
7949 * testsuite/libgomp.c-c++-common/variable-not-offloaded.c: New test.
7950 * testsuite/libgomp.oacc-c-c++-common/function-not-offloaded.c: New test.
7951 * testsuite/libgomp.oacc-c-c++-common/variable-not-offloaded.c: New test.
7953 2018-12-13 Tom de Vries <tdevries@suse.de>
7955 * affinity-fmt.c (gomp_print_string): New function, factored out of ...
7956 (omp_display_affinity, gomp_display_affinity_thread): ... here, and ...
7957 * fortran.c (omp_display_affinity_): ... here.
7958 * libgomp.h (gomp_print_string): Declare.
7959 * config/nvptx/affinity-fmt.c: New file. Include affinity-fmt.c,
7960 undefining HAVE_GETPID and HAVE_GETHOSTNAME, and mapping fwrite to
7963 2018-12-13 Jakub Jelinek <jakub@redhat.com>
7966 * testsuite/libgomp.c++/for-24.C (results): Include it in
7967 omp declare target region.
7968 (main): Use map (always, tofrom: results) instead of
7969 map (tofrom: results).
7971 2018-12-12 Jakub Jelinek <jakub@redhat.com>
7974 * testsuite/libgomp.fortran/pr88463-1.f90: New test.
7975 * testsuite/libgomp.fortran/pr88463-2.f90: New test.
7977 * testsuite/libgomp.c-c++-common/for-16.c: New test.
7979 2018-12-12 Andreas Schwab <schwab@suse.de>
7981 * config/linux/ia64/futex.h (sys_futex0): Don't mark r12 as
7984 2018-12-09 Thomas Koenig <tkoenig@gcc.gnu.org>
7987 * testsuite/libgomp.fortran/async_io_8.f90: New test.
7989 2018-12-09 Thomas Schwinge <thomas@codesourcery.com>
7990 Jakub Jelinek <jakub@redhat.com>
7992 * target.c (gomp_map_vars): Call gomp_copy_host2dev instead of
7993 devicep->host2dev_func.
7995 2018-12-08 Jakub Jelinek <jakub@redhat.com>
7998 * testsuite/libgomp.c-c++-common/cancel-taskgroup-3.c: Require
7999 tls_runtime effective target.
8000 (t): New threadprivate variable.
8001 (main): Set t in threads which execute iterations of the worksharing
8002 loop. Propagate that to the task after the loop and don't abort
8003 if the current taskgroup hasn't been cancelled.
8005 2018-12-02 Jakub Jelinek <jakub@redhat.com>
8007 * testsuite/libgomp.c/task-reduction-3.c: New test.
8009 * testsuite/libgomp.c-c++-common/cancel-taskgroup-4.c: New test.
8011 2018-11-30 Cesar Philippidis <cesar@codesourcery.com>
8014 * oacc-parallel.c (GOACC_parallel_keyed): Add offset to devaddrs.
8015 * testsuite/libgomp.oacc-c-c++-common/pr88288.c: New test.
8017 2018-11-30 Thomas Schwinge <thomas@codesourcery.com>
8019 * testsuite/libgomp.oacc-fortran/lib-16-2.f90: New file.
8021 2018-10-19 Richard Biener <rguenther@suse.de>
8023 PR tree-optimization/88182
8024 * testsuite/libgomp.c++/pr88182.C: Move to g++.dg/gomp.
8026 2018-11-26 Jakub Jelinek <jakub@redhat.com>
8028 * testsuite/Makefile.am (AUTOMAKE_OPTIONS): Drop dejagnu.
8029 (RUNTEST): Don't define.
8030 (RUNTESTDEFAULTFLAGS): Add.
8031 (check-DEJAGNU, site.exp, distclean-DEJAGNU): New goals.
8032 (distclean-am): Depend on distclean-DEJAGNU.
8033 (check-am): If -j% option is present in MFLAGS and if
8034 `getconf _NPROCESSORS_ONLN` is more than 8, export OMP_NUM_THREADS=8.
8035 (.PHONY): Add check-DEJAGNU and distclean-DEJAGNU.
8036 * testsuite/Makefile.in: Regenerated.
8038 2018-11-26 Richard Biener <rguenther@suse.de>
8040 PR tree-optimization/88182
8041 * testsuite/libgomp.c++/pr88182.C: New testcase.
8043 2018-11-20 Jakub Jelinek <jakub@redhat.com>
8046 * config/mingw32/affinity-fmt.c: New file.
8048 2018-11-09 Jakub Jelinek <jakub@redhat.com>
8050 * affinity-fmt.c: Include inttypes.h if HAVE_INTTYPES_H.
8051 (gomp_display_affinity): Use __builtin_choose_expr to handle
8052 properly handle argument having integral, or pointer or some other
8053 type. If inttypes.h is available and PRIx64 is defined, use PRIx64
8054 with uint64_t type instead of %llx and unsigned long long.
8056 * testsuite/libgomp.c-c++-common/task-reduction-13.c: New test.
8057 * testsuite/libgomp.c-c++-common/task-reduction-14.c: New test.
8059 2018-11-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8061 * affinity.c: Include <string.h>, <stdio.h>.
8062 (gomp_display_affinity_place): Remove cpusetp.
8063 * teams.c: Include <limits.h>.
8065 2018-11-08 Jakub Jelinek <jakub@redhat.com>
8067 * testsuite/libgomp.c-c++-common/task-reduction-8.c (bar): Add
8068 in_reduction clause for s[0].
8070 * affinity.c (gomp_display_affinity_place): New function.
8071 * affinity-fmt.c: New file.
8072 * alloc.c (gomp_aligned_alloc, gomp_aligned_free): New functions.
8073 * config/linux/affinity.c (gomp_display_affinity_place): New function.
8074 * config/nvptx/icv-device.c (omp_get_num_teams, omp_get_team_num):
8075 Move these functions to ...
8076 * config/nvptx/teams.c: ... here. New file.
8077 * config/nvptx/target.c (omp_pause_resource, omp_pause_resource_all):
8079 * config/nvptx/team.c (gomp_team_start, gomp_pause_host): New
8081 * configure.ac: Check for aligned_alloc, posix_memalign, memalign
8082 and _aligned_malloc.
8083 (HAVE_UNAME, HAVE_GETHOSTNAME, HAVE_GETPID): Add new tests.
8084 * configure.tgt: Add -DUSING_INITIAL_EXEC_TLS to XCFLAGS for Linux.
8085 * env.c (gomp_display_affinity_var, gomp_affinity_format_var,
8086 gomp_affinity_format_len): New variables.
8087 (parse_schedule): Parse monotonic and nonmonotonic modifiers in
8088 OMP_SCHEDULE variable. Set GFS_MONOTONIC for monotonic schedules.
8089 (handle_omp_display_env): Display monotonic/nonmonotonic schedule
8090 modifiers. Display (non-default) chunk sizes. Print
8091 OMP_DISPLAY_AFFINITY and OMP_AFFINITY_FORMAT.
8092 (initialize_env): Don't call pthread_attr_setdetachstate. Handle
8093 OMP_DISPLAY_AFFINITY and OMP_AFFINITY_FORMAT env vars.
8094 * fortran.c: Include stdio.h and string.h.
8095 (omp_pause_resource, omp_pause_resource_all): Add ialias_redirect.
8096 (omp_get_schedule_, omp_get_schedule_8_): Mask off GFS_MONOTONIC bit.
8097 (omp_set_affinity_format_, omp_get_affinity_format_,
8098 omp_display_affinity_, omp_capture_affinity_, omp_pause_resource_,
8099 omp_pause_resource_all_): New functions.
8100 * icv.c (omp_set_schedule): Mask off omp_sched_monotonic bit in
8102 * icv-device.c (omp_get_num_teams, omp_get_team_num): Move these
8104 * teams.c: ... here. New file.
8105 * libgomp_g.h: Include gstdint.h.
8106 (GOMP_loop_nonmonotonic_runtime_start,
8107 GOMP_loop_maybe_nonmonotonic_runtime_start, GOMP_loop_start,
8108 GOMP_loop_ordered_start, GOMP_loop_nonmonotonic_runtime_next,
8109 GOMP_loop_maybe_nonmonotonic_runtime_next, GOMP_loop_doacross_start,
8110 GOMP_parallel_loop_nonmonotonic_runtime,
8111 GOMP_parallel_loop_maybe_nonmonotonic_runtime,
8112 GOMP_loop_ull_nonmonotonic_runtime_start,
8113 GOMP_loop_ull_maybe_nonmonotonic_runtime_start, GOMP_loop_ull_start,
8114 GOMP_loop_ull_ordered_start, GOMP_loop_ull_nonmonotonic_runtime_next,
8115 GOMP_loop_ull_maybe_nonmonotonic_runtime_next,
8116 GOMP_loop_ull_doacross_start, GOMP_parallel_reductions,
8117 GOMP_taskwait_depend, GOMP_taskgroup_reduction_register,
8118 GOMP_taskgroup_reduction_unregister, GOMP_task_reduction_remap,
8119 GOMP_workshare_task_reduction_unregister, GOMP_sections2_start,
8120 GOMP_teams_reg): Declare.
8121 * libgomp.h (GOMP_HAVE_EFFICIENT_ALIGNED_ALLOC): Define unless
8122 gomp_aligned_alloc uses fallback implementation.
8123 (gomp_aligned_alloc, gomp_aligned_free): Declare.
8124 (enum gomp_schedule_type): Add GFS_MONOTONIC.
8125 (struct gomp_doacross_work_share): Add extra field.
8126 (struct gomp_work_share): Add task_reductions field.
8127 (struct gomp_taskgroup): Add workshare and reductions fields.
8128 (GOMP_NEEDS_THREAD_HANDLE): Define if needed.
8129 (gomp_thread_handle): New typedef.
8130 (gomp_display_affinity_place, gomp_set_affinity_format,
8131 gomp_display_string, gomp_display_affinity,
8132 gomp_display_affinity_thread): Declare.
8133 (gomp_doacross_init, gomp_doacross_ull_init): Add size_t argument.
8134 (gomp_parallel_reduction_register, gomp_workshare_taskgroup_start,
8135 gomp_workshare_task_reduction_register): Declare.
8136 (gomp_team_start): Add taskgroup argument.
8137 (gomp_pause_host): Declare.
8138 (gomp_init_work_share, gomp_work_share_start): Change bool argument
8140 (gomp_thread_self, gomp_thread_to_pthread_t): New inline functions.
8141 * libgomp.map (GOMP_5.0): Export GOMP_loop_start,
8142 GOMP_loop_ordered_start, GOMP_loop_doacross_start,
8143 GOMP_loop_ull_start, GOMP_loop_ull_ordered_start,
8144 GOMP_loop_ull_doacross_start,
8145 GOMP_workshare_task_reduction_unregister, GOMP_sections2_start,
8146 GOMP_loop_maybe_nonmonotonic_runtime_next,
8147 GOMP_loop_maybe_nonmonotonic_runtime_start,
8148 GOMP_loop_nonmonotonic_runtime_next,
8149 GOMP_loop_nonmonotonic_runtime_start,
8150 GOMP_loop_ull_maybe_nonmonotonic_runtime_next,
8151 GOMP_loop_ull_maybe_nonmonotonic_runtime_start,
8152 GOMP_loop_ull_nonmonotonic_runtime_next,
8153 GOMP_loop_ull_nonmonotonic_runtime_start,
8154 GOMP_parallel_loop_maybe_nonmonotonic_runtime,
8155 GOMP_parallel_loop_nonmonotonic_runtime, GOMP_parallel_reductions,
8156 GOMP_taskgroup_reduction_register,
8157 GOMP_taskgroup_reduction_unregister, GOMP_task_reduction_remap,
8158 GOMP_teams_reg and GOMP_taskwait_depend.
8159 (OMP_5.0): Export omp_pause_resource{,_all}{,_},
8160 omp_{capture,display}_affinity{,_}, and
8161 omp_[gs]et_affinity_format{,_}.
8162 * loop.c: Include string.h.
8163 (GOMP_loop_runtime_next): Add ialias.
8164 (GOMP_taskgroup_reduction_register): Add ialias_redirect.
8165 (gomp_loop_static_start, gomp_loop_dynamic_start,
8166 gomp_loop_guided_start, gomp_loop_ordered_static_start,
8167 gomp_loop_ordered_dynamic_start, gomp_loop_ordered_guided_start,
8168 gomp_loop_doacross_static_start, gomp_loop_doacross_dynamic_start,
8169 gomp_loop_doacross_guided_start): Adjust gomp_work_share_start
8170 or gomp_doacross_init callers.
8171 (gomp_adjust_sched, GOMP_loop_start, GOMP_loop_ordered_start,
8172 GOMP_loop_doacross_start): New functions.
8173 (GOMP_loop_runtime_start, GOMP_loop_ordered_runtime_start,
8174 GOMP_loop_doacross_runtime_start, GOMP_parallel_loop_runtime_start):
8175 Mask off GFS_MONOTONIC bit.
8176 (GOMP_loop_maybe_nonmonotonic_runtime_next,
8177 GOMP_loop_maybe_nonmonotonic_runtime_start,
8178 GOMP_loop_nonmonotonic_runtime_next,
8179 GOMP_loop_nonmonotonic_runtime_start,
8180 GOMP_parallel_loop_maybe_nonmonotonic_runtime,
8181 GOMP_parallel_loop_nonmonotonic_runtime): New aliases or wrapper
8183 (gomp_parallel_loop_start): Pass NULL as taskgroup to
8185 * loop_ull.c: Include string.h.
8186 (GOMP_loop_ull_runtime_next): Add ialias.
8187 (GOMP_taskgroup_reduction_register): Add ialias_redirect.
8188 (gomp_loop_ull_static_start, gomp_loop_ull_dynamic_start,
8189 gomp_loop_ull_guided_start, gomp_loop_ull_ordered_static_start,
8190 gomp_loop_ull_ordered_dynamic_start,
8191 gomp_loop_ull_ordered_guided_start,
8192 gomp_loop_ull_doacross_static_start,
8193 gomp_loop_ull_doacross_dynamic_start,
8194 gomp_loop_ull_doacross_guided_start): Adjust gomp_work_share_start
8195 and gomp_doacross_ull_init callers.
8196 (gomp_adjust_sched, GOMP_loop_ull_start, GOMP_loop_ull_ordered_start,
8197 GOMP_loop_ull_doacross_start): New functions.
8198 (GOMP_loop_ull_runtime_start,
8199 GOMP_loop_ull_ordered_runtime_start,
8200 GOMP_loop_ull_doacross_runtime_start): Mask off GFS_MONOTONIC bit.
8201 (GOMP_loop_ull_maybe_nonmonotonic_runtime_next,
8202 GOMP_loop_ull_maybe_nonmonotonic_runtime_start,
8203 GOMP_loop_ull_nonmonotonic_runtime_next,
8204 GOMP_loop_ull_nonmonotonic_runtime_start): Likewise.
8205 * Makefile.am (libgomp_la_SOURCES): Add teams.c and affinity-fmt.c.
8206 * omp.h.in (enum omp_sched_t): Add omp_sched_monotonic.
8207 (omp_pause_resource_t, omp_depend_t): New typedefs.
8208 (enum omp_lock_hint_t): Renamed to ...
8209 (enum omp_sync_hint_t): ... this. Define omp_sync_hint_*
8210 enumerators using numbers and omp_lock_hint_* as their aliases.
8211 (omp_lock_hint_t): New typedef. Rename to ...
8212 (omp_sync_hint_t): ... this.
8213 (omp_init_lock_with_hint, omp_init_nest_lock_with_hint): Use
8214 omp_sync_hint_t instead of omp_lock_hint_t.
8215 (omp_pause_resource, omp_pause_resource_all, omp_set_affinity_format,
8216 omp_get_affinity_format, omp_display_affinity, omp_capture_affinity):
8218 (omp_target_is_present, omp_target_disassociate_ptr):
8219 Change first argument from void * to const void *.
8220 (omp_target_memcpy, omp_target_memcpy_rect): Change second argument
8221 from void * to const void *.
8222 (omp_target_associate_ptr): Change first and second arguments from
8223 void * to const void *.
8224 * omp_lib.f90.in (omp_pause_resource_kind, omp_pause_soft,
8225 omp_pause_hard): New parameters.
8226 (omp_pause_resource, omp_pause_resource_all, omp_set_affinity_format,
8227 omp_get_affinity_format, omp_display_affinity, omp_capture_affinity):
8229 * omp_lib.h.in (omp_pause_resource_kind, omp_pause_soft,
8230 omp_pause_hard): New parameters.
8231 (omp_pause_resource, omp_pause_resource_all, omp_set_affinity_format,
8232 omp_get_affinity_format, omp_display_affinity, omp_capture_affinity):
8234 * ordered.c (gomp_doacross_init, gomp_doacross_ull_init): Add
8235 EXTRA argument. If not needed to prepare array, if extra is 0,
8236 clear ws->doacross, otherwise allocate just doacross structure and
8237 extra payload. If array is needed, allocate also extra payload.
8238 (GOMP_doacross_post, GOMP_doacross_wait, GOMP_doacross_ull_post,
8239 GOMP_doacross_ull_wait): Handle doacross->array == NULL like
8241 * parallel.c (GOMP_parallel_start): Pass NULL as taskgroup to
8243 (GOMP_parallel): Likewise. Formatting fix.
8244 (GOMP_parallel_reductions): New function.
8245 (GOMP_cancellation_point): If taskgroup has workshare
8246 flag set, check cancelled of prev taskgroup if any.
8247 (GOMP_cancel): If taskgroup has workshare flag set, set cancelled
8248 on prev taskgroup if any.
8249 * sections.c: Include string.h.
8250 (GOMP_taskgroup_reduction_register): Add ialias_redirect.
8251 (GOMP_sections_start): Adjust gomp_work_share_start caller.
8252 (GOMP_sections2_start): New function.
8253 (GOMP_parallel_sections_start, GOMP_parallel_sections):
8254 Pass NULL as taskgroup to gomp_team_start.
8255 * single.c (GOMP_single_start, GOMP_single_copy_start): Adjust
8256 gomp_work_share_start callers.
8257 * target.c (GOMP_target_update_ext, GOMP_target_enter_exit_data):
8258 If taskgroup has workshare flag set, check cancelled on prev
8259 taskgroup if any. Guard all cancellation tests with
8260 gomp_cancel_var test.
8261 (omp_target_is_present, omp_target_disassociate_ptr):
8262 Change ptr argument from void * to const void *.
8263 (omp_target_memcpy): Change src argument from void * to const void *.
8264 (omp_target_memcpy_rect): Likewise.
8265 (omp_target_memcpy_rect_worker): Likewise. Use const char * casts
8266 instead of char * where needed.
8267 (omp_target_associate_ptr): Change host_ptr and device_ptr arguments
8268 from void * to const void *.
8269 (omp_pause_resource, omp_pause_resource_all): New functions.
8270 * task.c (gomp_task_handle_depend): Handle new depend array format
8271 in addition to the old. Handle mutexinoutset kinds the same as
8272 inout for now, handle unspecified kinds.
8273 (gomp_create_target_task): If taskgroup has workshare flag set, check
8274 cancelled on prev taskgroup if any. Guard all cancellation tests with
8275 gomp_cancel_var test. Handle new depend array format count in
8276 addition to the old.
8277 (GOMP_task): Likewise. Adjust function comment.
8278 (gomp_task_run_pre): If taskgroup has workshare flag set, check
8279 cancelled on prev taskgroup if any. Guard all cancellation tests with
8280 gomp_cancel_var test.
8281 (GOMP_taskwait_depend): New function.
8282 (gomp_task_maybe_wait_for_dependencies): Handle new depend array
8283 format in addition to the old. Handle mutexinoutset kinds the same as
8284 inout for now, handle unspecified kinds. Fix a function comment typo.
8285 (gomp_taskgroup_init): New function.
8286 (GOMP_taskgroup_start): Use it.
8287 (gomp_reduction_register, gomp_create_artificial_team,
8288 GOMP_taskgroup_reduction_register,
8289 GOMP_taskgroup_reduction_unregister, GOMP_task_reduction_remap,
8290 gomp_parallel_reduction_register,
8291 gomp_workshare_task_reduction_register,
8292 gomp_workshare_taskgroup_start,
8293 GOMP_workshare_task_reduction_unregister): New functions.
8294 * taskloop.c (GOMP_taskloop): If taskgroup has workshare flag set,
8295 check cancelled on prev taskgroup if any. Guard all cancellation
8296 tests with gomp_cancel_var test. Handle GOMP_TASK_FLAG_REDUCTION flag
8297 by calling GOMP_taskgroup_reduction_register.
8298 * team.c (gomp_thread_attr): Remove comment.
8299 (struct gomp_thread_start_data): Add handle field.
8300 (gomp_thread_start): Call pthread_detach.
8301 (gomp_new_team): Adjust gomp_init_work_share caller.
8302 (gomp_free_pool_helper): Call pthread_detach.
8303 (gomp_team_start): Add taskgroup argument, initialize implicit
8304 tasks' taskgroup field to that. Don't call
8305 pthread_attr_setdetachstate. Handle OMP_DISPLAY_AFFINITY env var.
8306 (gomp_team_end): Determine nesting by thr->ts.level != 0
8307 rather than thr->ts.team != NULL.
8308 (gomp_pause_pool_helper, gomp_pause_host): New functions.
8309 * work.c (alloc_work_share): Use gomp_aligned_alloc instead of
8310 gomp_malloc if GOMP_HAVE_EFFICIENT_ALIGNED_ALLOC is defined.
8311 (gomp_init_work_share): Change ORDERED argument from bool to size_t,
8312 if more than 1 allocate also extra payload at the end of array. Never
8313 keep ordered_team_ids NULL, set it to inline_ordered_team_ids instead.
8314 (gomp_work_share_start): Change ORDERED argument from bool to size_t,
8315 return true instead of ws.
8316 * Makefile.in: Regenerated.
8317 * configure: Regenerated.
8318 * config.h.in: Regenerated.
8319 * testsuite/libgomp.c/cancel-for-2.c (foo): Use cancel modifier
8321 * testsuite/libgomp.c-c++-common/cancel-parallel-1.c: New test.
8322 * testsuite/libgomp.c-c++-common/cancel-taskgroup-3.c: New test.
8323 * testsuite/libgomp.c-c++-common/depend-iterator-1.c: New test.
8324 * testsuite/libgomp.c-c++-common/depend-iterator-2.c: New test.
8325 * testsuite/libgomp.c-c++-common/depend-mutexinout-1.c: New test.
8326 * testsuite/libgomp.c-c++-common/depend-mutexinout-2.c: New test.
8327 * testsuite/libgomp.c-c++-common/depobj-1.c: New test.
8328 * testsuite/libgomp.c-c++-common/display-affinity-1.c: New test.
8329 * testsuite/libgomp.c-c++-common/for-10.c: New test.
8330 * testsuite/libgomp.c-c++-common/for-11.c: New test.
8331 * testsuite/libgomp.c-c++-common/for-12.c: New test.
8332 * testsuite/libgomp.c-c++-common/for-13.c: New test.
8333 * testsuite/libgomp.c-c++-common/for-14.c: New test.
8334 * testsuite/libgomp.c-c++-common/for-15.c: New test.
8335 * testsuite/libgomp.c-c++-common/for-2.h: If CONDNE macro is defined,
8336 define a different N(test), don't define N(f0) to N(f14), but instead
8337 define N(f20) to N(f34) using != comparisons.
8338 * testsuite/libgomp.c-c++-common/for-7.c: New test.
8339 * testsuite/libgomp.c-c++-common/for-8.c: New test.
8340 * testsuite/libgomp.c-c++-common/for-9.c: New test.
8341 * testsuite/libgomp.c-c++-common/master-combined-1.c: New test.
8342 * testsuite/libgomp.c-c++-common/pause-1.c: New test.
8343 * testsuite/libgomp.c-c++-common/pause-2.c: New test.
8344 * testsuite/libgomp.c-c++-common/pr66199-10.c: New test.
8345 * testsuite/libgomp.c-c++-common/pr66199-11.c: New test.
8346 * testsuite/libgomp.c-c++-common/pr66199-12.c: New test.
8347 * testsuite/libgomp.c-c++-common/pr66199-13.c: New test.
8348 * testsuite/libgomp.c-c++-common/pr66199-14.c: New test.
8349 * testsuite/libgomp.c-c++-common/simd-1.c: New test.
8350 * testsuite/libgomp.c-c++-common/taskloop-reduction-1.c: New test.
8351 * testsuite/libgomp.c-c++-common/taskloop-reduction-2.c: New test.
8352 * testsuite/libgomp.c-c++-common/taskloop-reduction-3.c: New test.
8353 * testsuite/libgomp.c-c++-common/taskloop-reduction-4.c: New test.
8354 * testsuite/libgomp.c-c++-common/task-reduction-11.c: New test.
8355 * testsuite/libgomp.c-c++-common/task-reduction-12.c: New test.
8356 * testsuite/libgomp.c-c++-common/task-reduction-1.c: New test.
8357 * testsuite/libgomp.c-c++-common/task-reduction-2.c: New test.
8358 * testsuite/libgomp.c-c++-common/task-reduction-3.c: New test.
8359 * testsuite/libgomp.c-c++-common/task-reduction-4.c: New test.
8360 * testsuite/libgomp.c-c++-common/task-reduction-5.c: New test.
8361 * testsuite/libgomp.c-c++-common/task-reduction-6.c: New test.
8362 * testsuite/libgomp.c-c++-common/task-reduction-7.c: New test.
8363 * testsuite/libgomp.c-c++-common/task-reduction-8.c: New test.
8364 * testsuite/libgomp.c-c++-common/task-reduction-9.c: New test.
8365 * testsuite/libgomp.c-c++-common/taskwait-depend-1.c: New test.
8366 * testsuite/libgomp.c++/depend-1.C: New test.
8367 * testsuite/libgomp.c++/depend-iterator-1.C: New test.
8368 * testsuite/libgomp.c++/depobj-1.C: New test.
8369 * testsuite/libgomp.c++/for-16.C: New test.
8370 * testsuite/libgomp.c++/for-21.C: New test.
8371 * testsuite/libgomp.c++/for-22.C: New test.
8372 * testsuite/libgomp.c++/for-23.C: New test.
8373 * testsuite/libgomp.c++/for-24.C: New test.
8374 * testsuite/libgomp.c++/for-25.C: New test.
8375 * testsuite/libgomp.c++/for-26.C: New test.
8376 * testsuite/libgomp.c++/taskloop-reduction-1.C: New test.
8377 * testsuite/libgomp.c++/taskloop-reduction-2.C: New test.
8378 * testsuite/libgomp.c++/taskloop-reduction-3.C: New test.
8379 * testsuite/libgomp.c++/taskloop-reduction-4.C: New test.
8380 * testsuite/libgomp.c++/task-reduction-10.C: New test.
8381 * testsuite/libgomp.c++/task-reduction-11.C: New test.
8382 * testsuite/libgomp.c++/task-reduction-12.C: New test.
8383 * testsuite/libgomp.c++/task-reduction-13.C: New test.
8384 * testsuite/libgomp.c++/task-reduction-14.C: New test.
8385 * testsuite/libgomp.c++/task-reduction-15.C: New test.
8386 * testsuite/libgomp.c++/task-reduction-16.C: New test.
8387 * testsuite/libgomp.c++/task-reduction-17.C: New test.
8388 * testsuite/libgomp.c++/task-reduction-18.C: New test.
8389 * testsuite/libgomp.c++/task-reduction-19.C: New test.
8390 * testsuite/libgomp.c/task-reduction-1.c: New test.
8391 * testsuite/libgomp.c++/task-reduction-1.C: New test.
8392 * testsuite/libgomp.c/task-reduction-2.c: New test.
8393 * testsuite/libgomp.c++/task-reduction-2.C: New test.
8394 * testsuite/libgomp.c++/task-reduction-3.C: New test.
8395 * testsuite/libgomp.c++/task-reduction-4.C: New test.
8396 * testsuite/libgomp.c++/task-reduction-5.C: New test.
8397 * testsuite/libgomp.c++/task-reduction-6.C: New test.
8398 * testsuite/libgomp.c++/task-reduction-7.C: New test.
8399 * testsuite/libgomp.c++/task-reduction-8.C: New test.
8400 * testsuite/libgomp.c++/task-reduction-9.C: New test.
8401 * testsuite/libgomp.c/teams-1.c: New test.
8402 * testsuite/libgomp.c/teams-2.c: New test.
8403 * testsuite/libgomp.c/thread-limit-4.c: New test.
8404 * testsuite/libgomp.c/thread-limit-5.c: New test.
8405 * testsuite/libgomp.fortran/display-affinity-1.f90: New test.
8407 2018-11-06 Chung-Lin Tang <cltang@codesourcery.com>
8409 * oacc-mem.c (memcpy_tofrom_device): New function, combined from
8410 acc_memcpy_to/from_device functions, now with async parameter.
8411 (acc_memcpy_to_device): Modify to use memcpy_tofrom_device.
8412 (acc_memcpy_from_device): Likewise.
8413 (acc_memcpy_to_device_async): New API function.
8414 (acc_memcpy_from_device_async): Likewise.
8415 (present_create_copy): Add async parameter and async setting/unsetting.
8416 (acc_create): Adjust present_create_copy call.
8417 (acc_copyin): Likewise.
8418 (acc_present_or_create): Likewise.
8419 (acc_present_or_copyin): Likewise.
8420 (acc_create_async): New API function.
8421 (acc_copyin_async): New API function.
8422 (delete_copyout): Add async parameter and async setting/unsetting.
8423 (acc_delete): Adjust delete_copyout call.
8424 (acc_copyout): Likewise.
8425 (acc_delete_async): New API function.
8426 (acc_copyout_async): Likewise.
8427 (update_dev_host): Add async parameter and async setting/unsetting.
8428 (acc_update_device): Adjust update_dev_host call.
8429 (acc_update_self): Likewise.
8430 (acc_update_device_async): New API function.
8431 (acc_update_self_async): Likewise.
8432 * openacc.h (acc_copyin_async): Declare new API function.
8433 (acc_create_async): Likewise.
8434 (acc_copyout_async): Likewise.
8435 (acc_delete_async): Likewise.
8436 (acc_update_device_async): Likewise.
8437 (acc_update_self_async): Likewise.
8438 (acc_memcpy_to_device_async): Likewise.
8439 (acc_memcpy_from_device_async): Likewise.
8440 * openacc_lib.h (acc_copyin_async_32_h): New subroutine.
8441 (acc_copyin_async_64_h): New subroutine.
8442 (acc_copyin_async_array_h): New subroutine.
8443 (acc_create_async_32_h): New subroutine.
8444 (acc_create_async_64_h): New subroutine.
8445 (acc_create_async_array_h): New subroutine.
8446 (acc_copyout_async_32_h): New subroutine.
8447 (acc_copyout_async_64_h): New subroutine.
8448 (acc_copyout_async_array_h): New subroutine.
8449 (acc_delete_async_32_h): New subroutine.
8450 (acc_delete_async_64_h): New subroutine.
8451 (acc_delete_async_array_h): New subroutine.
8452 (acc_update_device_async_32_h): New subroutine.
8453 (acc_update_device_async_64_h): New subroutine.
8454 (acc_update_device_async_array_h): New subroutine.
8455 (acc_update_self_async_32_h): New subroutine.
8456 (acc_update_self_async_64_h): New subroutine.
8457 (acc_update_self_async_array_h): New subroutine.
8458 * openacc.f90 (acc_copyin_async_32_h): New subroutine.
8459 (acc_copyin_async_64_h): New subroutine.
8460 (acc_copyin_async_array_h): New subroutine.
8461 (acc_create_async_32_h): New subroutine.
8462 (acc_create_async_64_h): New subroutine.
8463 (acc_create_async_array_h): New subroutine.
8464 (acc_copyout_async_32_h): New subroutine.
8465 (acc_copyout_async_64_h): New subroutine.
8466 (acc_copyout_async_array_h): New subroutine.
8467 (acc_delete_async_32_h): New subroutine.
8468 (acc_delete_async_64_h): New subroutine.
8469 (acc_delete_async_array_h): New subroutine.
8470 (acc_update_device_async_32_h): New subroutine.
8471 (acc_update_device_async_64_h): New subroutine.
8472 (acc_update_device_async_array_h): New subroutine.
8473 (acc_update_self_async_32_h): New subroutine.
8474 (acc_update_self_async_64_h): New subroutine.
8475 (acc_update_self_async_array_h): New subroutine.
8476 * libgomp.map (OACC_2.5): Add acc_copyin_async*, acc_copyout_async*,
8477 acc_copyout_finalize_async*, acc_create_async*, acc_delete_async*,
8478 acc_delete_finalize_async*, acc_memcpy_from_device_async*,
8479 acc_memcpy_to_device_async*, acc_update_device_async*, and
8480 acc_update_self_async* entries.
8481 * testsuite/libgomp.oacc-c-c++-common/lib-94.c: New test.
8482 * testsuite/libgomp.oacc-c-c++-common/lib-95.c: New test.
8483 * testsuite/libgomp.oacc-fortran/lib-16.f90: New test.
8485 2018-10-31 Joseph Myers <joseph@codesourcery.com>
8488 * Makefile.am: Include multilib.am
8489 (AUTOMAKE_OPTIONS): Add info-in-builddir.
8490 (CLEANFILES): Remove libgomp.info.
8491 * configure.ac: Remove AC_PREREQ.
8492 * testsuite/Makefile.am (RUNTEST): Remove quotes.
8493 * Makefile.in, aclocal.m4, configure, testsuite/Makefile.in:
8496 2018-10-29 Joseph Myers <joseph@codesourcery.com>
8497 Julian Brown <julian@codesourcery.com>
8499 * testsuite/libgomp.oacc-c++/this.C: New.
8501 2018-09-18 Cesar Philippidis <cesar@codesourcery.com>
8503 * plugin/plugin-nvptx.c (struct cuda_map): New.
8504 (struct ptx_stream): Replace d, h, h_begin, h_end, h_next, h_prev,
8505 h_tail with (cuda_map *) map.
8506 (cuda_map_create): New function.
8507 (cuda_map_destroy): New function.
8508 (map_init): Update to use a linked list of cuda_map objects.
8509 (map_fini): Likewise.
8510 (map_pop): Likewise.
8511 (map_push): Likewise. Return CUdeviceptr instead of void.
8512 (init_streams_for_device): Remove stales references to ptx_stream
8514 (select_stream_for_async): Likewise.
8515 (nvptx_exec): Update call to map_init.
8517 2018-09-09 Cesar Philippidis <cesar@codesourcery.com>
8518 Julian Brown <julian@codesourcery.com>
8521 * testsuite/libgomp.oacc-c++/non-scalar-data.C: Remove XFAIL.
8523 2018-08-21 Nicolas Koenig <koenigni@gcc.gnu.org>
8524 Thomas Koenig <tkoenig@gcc.gnu.org>
8527 * testsuite/libgomp.fortran/async_io_1.f90: New test.
8528 * testsuite/libgomp.fortran/async_io_2.f90: New test.
8529 * testsuite/libgomp.fortran/async_io_3.f90: New test.
8530 * testsuite/libgomp.fortran/async_io_4.f90: New test.
8531 * testsuite/libgomp.fortran/async_io_5.f90: New test.
8532 * testsuite/libgomp.fortran/async_io_6.f90: New test.
8533 * testsuite/libgomp.fortran/async_io_7.f90: New test.
8535 2018-08-13 Cesar Philippidis <cesar@codesourcery.com>
8536 Tom de Vries <tdevries@suse.de>
8539 * plugin/cuda/cuda.h (CUoccupancyB2DSize): New typedef.
8540 (cuOccupancyMaxPotentialBlockSize): Declare.
8541 * plugin/cuda-lib.def (cuOccupancyMaxPotentialBlockSize): New
8542 CUDA_ONE_CALL_MAYBE_NULL.
8543 * plugin/plugin-nvptx.c (CUDA_VERSION < 6050): Define
8544 CUoccupancyB2DSize and declare
8545 cuOccupancyMaxPotentialBlockSize.
8546 (nvptx_exec): Use cuOccupancyMaxPotentialBlockSize to set the
8547 default num_gangs and num_workers when the driver supports it.
8549 2018-08-08 Tom de Vries <tdevries@suse.de>
8551 * plugin/cuda-lib.def (cuLinkAddData_v2, cuLinkCreate_v2): Declare using
8552 CUDA_ONE_CALL_MAYBE_NULL.
8553 * plugin/plugin-nvptx.c (cuLinkAddData, cuLinkCreate): Undef and declare.
8554 (cuLinkAddData_v2, cuLinkCreate_v2): Declare.
8555 (link_ptx): Fall back to cuLinkAddData/cuLinkCreate if the _v2 versions
8558 2018-08-08 Tom de Vries <tdevries@suse.de>
8560 * plugin/cuda-lib.def (cuGetErrorString): Use CUDA_ONE_CALL_MAYBE_NULL.
8561 * plugin/plugin-nvptx.c (cuda_error): Handle if cuGetErrorString is not
8564 2018-08-08 Tom de Vries <tdevries@suse.de>
8566 * plugin/plugin-nvptx.c
8567 (CU_DEVICE_ATTRIBUTE_MAX_REGISTERS_PER_MULTIPROCESSOR): Define.
8568 (nvptx_open_device): Use
8569 CU_DEVICE_ATTRIBUTE_MAX_REGISTERS_PER_MULTIPROCESSOR.
8571 2018-08-08 Tom de Vries <tdevries@suse.de>
8573 * plugin/plugin-nvptx.c (cuda_error): Move declaration of cuGetErrorString ...
8574 (cuGetErrorString): ... here. Guard with CUDA_VERSION < 6000.
8576 2018-08-07 Tom de Vries <tdevries@suse.de>
8578 * plugin/plugin-nvptx.c (DO_PRAGMA): Define.
8579 (struct cuda_lib_s): Add def/undef of CUDA_ONE_CALL_MAYBE_NULL.
8580 (init_cuda_lib): Add new param to CUDA_ONE_CALL_1. Add arg to
8581 corresponding call in CUDA_ONE_CALL. Add def/undef of
8582 CUDA_ONE_CALL_MAYBE_NULL.
8583 (CUDA_CALL_EXISTS): Define.
8585 2018-08-07 Tom de Vries <tdevries@suse.de>
8587 * plugin/plugin-nvptx.c (struct cuda_lib_s, init_cuda_lib): Put
8588 CUDA_ONE_CALL defines right before the cuda-lib.def include, and the
8589 corresponding undefs right after.
8591 2018-08-04 Tom de Vries <tdevries@suse.de>
8593 * plugin/configfrag.ac: For --without-cuda-driver, set
8594 CUDA_DRIVER_INCLUDE and CUDA_DRIVER_LIB to no. Handle
8595 CUDA_DRIVER_INCLUDE == no and CUDA_DRIVER_LIB == no.
8596 * configure: Regenerate.
8598 2018-08-02 Tom de Vries <tdevries@suse.de>
8601 * testsuite/libgomp.oacc-c++/routine-1-auto.C: Remove -fno-exceptions.
8602 * testsuite/libgomp.oacc-c++/routine-1-template-auto.C: Same.
8603 * testsuite/libgomp.oacc-c++/routine-1-template-trailing-return-type.C:
8605 * testsuite/libgomp.oacc-c++/routine-1-template.C: Same.
8606 * testsuite/libgomp.oacc-c++/routine-1-trailing-return-type.C: Same.
8607 * testsuite/libgomp.oacc-c-c++-common/routine-1.c: Same.
8609 2018-08-01 Cesar Philippidis <cesar@codesourcery.com>
8610 Thomas Schwinge <thomas@codesourcery.com>
8612 * config/nvptx/oacc-parallel.c: Truncate.
8614 2018-08-01 Cesar Philippidis <cesar@codesourcery.com>
8615 James Norris <jnorris@codesourcery.com>
8617 * plugin/plugin-nvptx.c (struct map): Removed.
8618 (map_init, map_pop): Remove use of struct map.
8619 (map_push): Likewise and change argument list.
8620 * testsuite/libgomp.oacc-c-c++-common/mapping-1.c: New
8622 2018-08-01 Tom de Vries <tdevries@suse.de>
8624 * plugin/cuda-lib.def: New file. Factor out of ...
8625 * plugin/plugin-nvptx.c (CUDA_CALLS): ... here.
8626 (struct cuda_lib_s, init_cuda_lib): Include cuda-lib.def instead of
8629 2018-07-31 Andre Vieira <andre.simoesdiasvieira@arm.com>
8631 Revert 'AsyncI/O patch committed'.
8632 2018-07-25 Nicolas Koenig <koenigni@gcc.gnu.org>
8633 Thomas Koenig <tkoenig@gcc.gnu.org>
8636 * testsuite/libgomp.fortran/async_io_1.f90: New test.
8637 * testsuite/libgomp.fortran/async_io_2.f90: New test.
8638 * testsuite/libgomp.fortran/async_io_3.f90: New test.
8639 * testsuite/libgomp.fortran/async_io_4.f90: New test.
8640 * testsuite/libgomp.fortran/async_io_5.f90: New test.
8641 * testsuite/libgomp.fortran/async_io_6.f90: New test.
8642 * testsuite/libgomp.fortran/async_io_7.f90: New test.
8644 2018-07-30 Tom de Vries <tdevries@suse.de>
8646 * plugin/plugin-nvptx.c (MIN, MAX): Redefine.
8647 (nvptx_exec): Ensure worker and vector default dims don't exceed
8648 targ_fn->max_threads_per_block.
8650 2018-07-30 Tom de Vries <tdevries@suse.de>
8652 * plugin/plugin-nvptx.c (struct ptx_device): Add default_dims field.
8653 (nvptx_open_device): Init default_dims for device.
8654 (nvptx_exec): Use default_dims from device.
8656 2018-07-26 Jakub Jelinek <jakub@redhat.com>
8659 * testsuite/libgomp.c++/for-15.C (results): Include it in
8660 omp declare target region.
8661 (main): Use map (always, tofrom: results) instead of
8662 map (tofrom: results).
8665 * testsuite/libgomp.c/pr86660.c: New test.
8667 2018-07-26 Cesar Philippidis <cesar@codesourcery.com>
8668 Tom de Vries <tdevries@suse.de>
8670 * plugin/plugin-nvptx.c (nvptx_exec): Error if the hardware doesn't have
8671 sufficient resources to launch a kernel, and give a hint on how to fix
8674 2018-07-26 Cesar Philippidis <cesar@codesourcery.com>
8675 Tom de Vries <tdevries@suse.de>
8677 * plugin/plugin-nvptx.c (struct ptx_device): Add warp_size,
8678 max_threads_per_block and max_threads_per_multiprocessor fields.
8679 (nvptx_open_device): Initialize new fields.
8680 (nvptx_exec): Use num_sms, and new fields.
8682 2018-07-26 Tom de Vries <tdevries@suse.de>
8684 * testsuite/libgomp.oacc-fortran/lib-12.f90: Move acc_async_test calls
8685 to correct locations. Remove xfail.
8687 2018-07-26 Tom de Vries <tdevries@suse.de>
8689 * testsuite/libgomp.oacc-fortran/lib-13.f90: Replace acc_wait_all with
8690 acc_wait. Move acc_async_test calls to correct locations. Remove
8693 2018-07-25 Nicolas Koenig <koenigni@gcc.gnu.org>
8694 Thomas Koenig <tkoenig@gcc.gnu.org>
8697 * testsuite/libgomp.fortran/async_io_1.f90: New test.
8698 * testsuite/libgomp.fortran/async_io_2.f90: New test.
8699 * testsuite/libgomp.fortran/async_io_3.f90: New test.
8700 * testsuite/libgomp.fortran/async_io_4.f90: New test.
8701 * testsuite/libgomp.fortran/async_io_5.f90: New test.
8702 * testsuite/libgomp.fortran/async_io_6.f90: New test.
8703 * testsuite/libgomp.fortran/async_io_7.f90: New test.
8705 2018-07-17 Jakub Jelinek <jakub@redhat.com>
8708 * testsuite/libgomp.c++/pr86542.C: New test.
8711 * testsuite/libgomp.c++/pr86539.C: New test.
8713 2018-07-11 Jakub Jelinek <jakub@redhat.com>
8716 * testsuite/libgomp.c++/for-15.C (a): Remove unused variable.
8717 (results): Make sure the variable is not inside declare target region.
8718 (qux): Remove unused function.
8720 2018-07-10 Jakub Jelinek <jakub@redhat.com>
8723 * testsuite/libgomp.c++/for-15.C: New test.
8725 2018-06-26 Jakub Jelinek <jakub@redhat.com>
8728 * testsuite/libgomp.c++/pr86291.C: New test.
8730 2018-06-24 Gerald Pfeifer <gerald@pfeifer.com>
8732 * libgomp.texi (Top): Move www.openmp.org to https.
8733 (Enabling OpenMP): Ditto.
8734 (omp_get_active_level): Ditto.
8735 (omp_get_ancestor_thread_num): Ditto.
8736 (omp_get_cancellation): Ditto.
8737 (omp_get_default_device): Ditto.
8738 (omp_get_dynamic): Ditto.
8739 (omp_get_level): Ditto.
8740 (omp_get_max_active_levels): Ditto.
8741 (omp_get_max_task_priority): Ditto.
8742 (omp_get_max_threads): Ditto.
8743 (omp_get_nested): Ditto.
8744 (omp_get_num_devices): Ditto.
8745 (omp_get_num_procs): Ditto.
8746 (omp_get_num_teams): Ditto.
8747 (omp_get_num_threads): Ditto.
8748 (omp_get_proc_bind): Ditto.
8749 (omp_get_schedule): Ditto.
8750 (omp_get_team_num): Ditto.
8751 (omp_get_team_size): Ditto.
8752 (omp_get_thread_limit): Ditto.
8753 (omp_get_thread_num): Ditto.
8754 (omp_in_parallel): Ditto.
8755 (omp_in_final): Ditto.
8756 (omp_is_initial_device): Ditto.
8757 (omp_set_default_device): Ditto.
8758 (omp_set_dynamic): Ditto.
8759 (omp_set_max_active_levels): Ditto.
8760 (omp_set_nested): Ditto.
8761 (omp_set_num_threads): Ditto.
8762 (omp_set_schedule): Ditto.
8763 (omp_init_lock): Ditto.
8764 (omp_set_lock): Ditto.
8765 (omp_test_lock): Ditto.
8766 (omp_unset_lock): Ditto.
8767 (omp_destroy_lock): Ditto.
8768 (omp_init_nest_lock): Ditto.
8769 (omp_set_nest_lock): Ditto.
8770 (omp_test_nest_lock): Ditto.
8771 (omp_unset_nest_lock): Ditto.
8772 (omp_destroy_nest_lock): Ditto.
8773 (omp_get_wtick): Ditto.
8774 (omp_get_wtime): Ditto.
8775 (OMP_CANCELLATION): Ditto.
8776 (OMP_DISPLAY_ENV): Ditto.
8777 (OMP_DEFAULT_DEVICE): Ditto.
8778 (OMP_DYNAMIC): Ditto.
8779 (OMP_MAX_ACTIVE_LEVELS): Ditto.
8780 (OMP_MAX_TASK_PRIORITY): Ditto.
8781 (OMP_NESTED): Ditto.
8782 (OMP_NUM_THREADS): Ditto.
8783 (OMP_PROC_BIND): Ditto.
8784 (OMP_PLACES): Ditto.
8785 (OMP_STACKSIZE): Ditto.
8786 (OMP_SCHEDULE): Ditto.
8787 (OMP_THREAD_LIMIT): Ditto.
8788 (OMP_WAIT_POLICY): Ditto.
8790 2018-06-22 Cesar Philippidis <cesar@codesourcery.com>
8791 James Norris <jnorris@codesourcery.com>
8792 Julian Brown <julian@codesourcery.com>
8793 Thomas Schwinge <thomas@codesourcery.com>
8794 Tom de Vries <tom@codesourcery.com>
8796 * testsuite/libgomp.oacc-c-c++-common/loop-red-wv-1.c: Don't force "-O2".
8797 * testsuite/libgomp.oacc-c-c++-common/data-2.c: Update.
8798 * testsuite/libgomp.oacc-c-c++-common/host_data-1.c: Likewise.
8799 * testsuite/libgomp.oacc-c-c++-common/mode-transitions.c: Likewise.
8800 * testsuite/libgomp.oacc-fortran/data-1.f90: Likewise.
8801 * testsuite/libgomp.oacc-fortran/data-2.f90: Likewise.
8802 * testsuite/libgomp.oacc-c++/non-scalar-data.C: New file.
8803 * testsuite/libgomp.oacc-c-c++-common/declare-3.c: Likewise.
8804 * testsuite/libgomp.oacc-c-c++-common/enter-data.c: Likewise.
8805 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-2.c:
8807 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-enter-exit-2.c:
8809 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-enter-exit.c:
8811 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-update.c:
8813 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data.c:
8815 * testsuite/libgomp.oacc-c-c++-common/kernels-parallel-loop-data-enter-exit.c:
8817 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-1.c:
8819 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-2.c:
8821 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-3.c:
8823 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-4.c:
8825 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-5.c:
8827 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-1.c:
8829 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-2.c:
8831 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-3.c:
8833 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-4.c:
8835 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-5.c:
8837 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-6.c:
8839 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-vector-1.c:
8841 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-vector-2.c:
8843 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-1.c:
8845 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-2.c:
8847 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-3.c:
8849 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-4.c:
8851 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-5.c:
8853 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-6.c:
8855 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-7.c:
8857 * testsuite/libgomp.oacc-c-c++-common/kernels-reduction-1.c:
8859 * testsuite/libgomp.oacc-c-c++-common/parallel-loop-1.c: Likewise.
8860 * testsuite/libgomp.oacc-c-c++-common/parallel-loop-1.h: Likewise.
8861 * testsuite/libgomp.oacc-c-c++-common/parallel-loop-2.h: Likewise.
8862 * testsuite/libgomp.oacc-fortran/cublas-fixed.h: Likewise.
8863 * testsuite/libgomp.oacc-fortran/dummy-array.f90: Likewise.
8864 * testsuite/libgomp.oacc-fortran/host_data-2.f90: Likewise.
8865 * testsuite/libgomp.oacc-fortran/host_data-3.f: Likewise.
8866 * testsuite/libgomp.oacc-fortran/host_data-4.f90: Likewise.
8867 * testsuite/libgomp.oacc-fortran/kernels-acc-loop-reduction-2.f90:
8869 * testsuite/libgomp.oacc-fortran/kernels-acc-loop-reduction.f90:
8871 * testsuite/libgomp.oacc-fortran/kernels-collapse-3.f90: Likewise.
8872 * testsuite/libgomp.oacc-fortran/kernels-collapse-4.f90: Likewise.
8873 * testsuite/libgomp.oacc-fortran/kernels-independent.f90:
8875 * testsuite/libgomp.oacc-fortran/kernels-loop-1.f90: Likewise.
8876 * testsuite/libgomp.oacc-fortran/kernels-map-1.f90: Likewise.
8877 * testsuite/libgomp.oacc-fortran/kernels-parallel-loop-data-enter-exit.f95:
8879 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-1.f90:
8881 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-2.f90:
8883 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-3.f90:
8885 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-6.f90:
8887 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-vector-1.f90:
8889 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-vector-2.f90:
8891 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-1.f90:
8893 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-2.f90:
8895 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-3.f90:
8897 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-4.f90:
8899 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-5.f90:
8901 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-6.f90:
8903 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-7.f90:
8905 * testsuite/libgomp.oacc-fortran/kernels-reduction-1.f90:
8907 * testsuite/libgomp.oacc-fortran/lib-12.f90: Likewise.
8908 * testsuite/libgomp.oacc-fortran/lib-13.f90: Likewise.
8909 * testsuite/libgomp.oacc-fortran/lib-14.f90: Likewise.
8910 * testsuite/libgomp.oacc-fortran/lib-15.f90: Likewise.
8911 * testsuite/libgomp.oacc-fortran/parallel-loop-1.f90: Likewise.
8912 * testsuite/libgomp.oacc-fortran/reference-reductions.f90: Likewise.
8913 * testsuite/libgomp.oacc-fortran/vector-routine.f90: Likewise.
8915 2018-06-20 Chung-Lin Tang <cltang@codesourcery.com>
8916 Thomas Schwinge <thomas@codesourcery.com>
8917 Cesar Philippidis <cesar@codesourcery.com>
8919 * libgomp.h (struct splay_tree_key_s): Add dynamic_refcount member.
8920 (gomp_acc_remove_pointer): Update declaration.
8921 (gomp_acc_declare_allocate): Declare.
8922 (gomp_remove_var): Declare.
8923 * libgomp.map (OACC_2.5): Define.
8924 * oacc-mem.c (acc_map_data): Update refcount.
8925 (acc_unmap_data): Likewise.
8926 (present_create_copy): Likewise.
8927 (acc_create): Add FLAG_PRESENT when calling present_create_copy.
8928 (acc_copyin): Likewise.
8929 (FLAG_FINALIZE): Define.
8930 (delete_copyout): Update dynamic refcounts, add support for FINALIZE.
8931 (acc_delete_finalize): New function.
8932 (acc_delete_finalize_async): New function.
8933 (acc_copyout_finalize): New function.
8934 (acc_copyout_finalize_async): New function.
8935 (gomp_acc_insert_pointer): Update refcounts.
8936 (gomp_acc_remove_pointer): Return if data is not present on the
8938 * oacc-parallel.c (find_pset): Rename to find_pointer.
8939 (find_pointer): Add support for GOMP_MAP_POINTER.
8940 (handle_ftn_pointers): New function.
8941 (GOACC_parallel_keyed): Update refcounts of variables.
8942 (GOACC_enter_exit_data): Add support for finalized data mappings.
8943 Add support for GOMP_MAP_{TO,ALLOC,RELESE,FROM}. Update handling
8945 (GOACC_update): Add support for GOMP_MAP_{ALWAYS_POINTER,TO,FROM}.
8946 (GOACC_declare): Add support for GOMP_MAP_RELEASE, remove support
8947 for GOMP_MAP_FORCE_FROM.
8948 * openacc.f90 (module openacc_internal): Add
8949 acc_copyout_finalize_{32_h,64_h,array_h,_l}, and
8950 acc_delete_finalize_{32_h,64_h,array_h,_l}. Add interfaces for
8951 acc_copyout_finalize and acc_delete_finalize.
8952 (acc_copyout_finalize_32_h): New subroutine.
8953 (acc_copyout_finalize_64_h): New subroutine.
8954 (acc_copyout_finalize_array_h): New subroutine.
8955 (acc_delete_finalize_32_h): New subroutine.
8956 (acc_delete_finalize_64_h): New subroutine.
8957 (acc_delete_finalize_array_h): New subroutine.
8958 * openacc.h (acc_copyout_finalize): Declare.
8959 (acc_copyout_finalize_async): Declare.
8960 (acc_delete_finalize): Declare.
8961 (acc_delete_finalize_async): Declare.
8962 * openacc_lib.h (acc_copyout_finalize): New interface.
8963 (acc_delete_finalize): New interface.
8964 * target.c (gomp_map_vars): Update dynamic_refcount.
8965 (gomp_remove_var): New function.
8966 (gomp_unmap_vars): Use it.
8967 (gomp_unload_image_from_device): Likewise.
8968 * testsuite/libgomp.oacc-c-c++-common/data-already-1.c: Update test
8969 case to utilize OpenACC 2.5 data clause semantics.
8970 * testsuite/libgomp.oacc-c-c++-common/data-already-2.c: Likewise.
8971 * testsuite/libgomp.oacc-c-c++-common/data-already-3.c: Likewise.
8972 * testsuite/libgomp.oacc-c-c++-common/data-already-4.c: Likewise.
8973 * testsuite/libgomp.oacc-c-c++-common/data-already-5.c: Likewise.
8974 * testsuite/libgomp.oacc-c-c++-common/data-already-6.c: Likewise.
8975 * testsuite/libgomp.oacc-c-c++-common/data-already-7.c: Likewise.
8976 * testsuite/libgomp.oacc-c-c++-common/data-already-8.c: Likewise.
8977 * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
8978 * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
8979 * testsuite/libgomp.oacc-c-c++-common/lib-32.c: Likewise.
8980 * testsuite/libgomp.oacc-c-c++-common/lib-83.c: Likewise.
8981 * testsuite/libgomp.oacc-fortran/data-5.f90: New test.
8982 * testsuite/libgomp.oacc-fortran/data-already-1.f: Update test case to
8983 utilize OpenACC 2.5 data clause semantics.
8984 * testsuite/libgomp.oacc-fortran/data-already-2.f: Likewise.
8985 * testsuite/libgomp.oacc-fortran/data-already-3.f: Likewise.
8986 * testsuite/libgomp.oacc-fortran/data-already-4.f: Likewise.
8987 * testsuite/libgomp.oacc-fortran/data-already-5.f: Likewise.
8988 * testsuite/libgomp.oacc-fortran/data-already-6.f: Likewise.
8989 * testsuite/libgomp.oacc-fortran/data-already-7.f: Likewise.
8990 * testsuite/libgomp.oacc-fortran/data-already-8.f: Likewise.
8991 * testsuite/libgomp.oacc-fortran/lib-32-1.f: Likewise.
8992 * testsuite/libgomp.oacc-fortran/lib-32-2.f: Likewise.
8994 2018-05-21 Janus Weil <janus@gcc.gnu.org>
8998 * testsuite/libgomp.fortran/collapse2.f90: Add option "-std=legacy".
8999 * testsuite/libgomp.fortran/omp_atomic2.f90: Ditto.
9000 * testsuite/libgomp.fortran/omp_parse1.f90: Ditto.
9001 * testsuite/libgomp.fortran/omp_parse3.f90: Ditto.
9002 * testsuite/libgomp.fortran/task2.f90: Ditto.
9003 * testsuite/libgomp.fortran/vla1.f90: Ditto.
9004 * testsuite/libgomp.fortran/vla2.f90: Ditto.
9005 * testsuite/libgomp.fortran/vla3.f90: Ditto.
9006 * testsuite/libgomp.fortran/vla4.f90: Ditto.
9007 * testsuite/libgomp.fortran/vla5.f90: Ditto.
9008 * testsuite/libgomp.fortran/vla6.f90: Ditto.
9009 * testsuite/libgomp.fortran/vla8.f90: Ditto.
9010 * testsuite/libgomp.oacc-fortran/collapse-2.f90: Ditto.
9011 * testsuite/libgomp.oacc-fortran/nested-function-1.f90: Ditto.
9013 2018-05-18 Cesar Philippidis <cesar@codesourcery.com>
9016 * testsuite/libgomp.oacc-c-c++-common/pr85782.c: New test.
9018 2018-05-09 Tom de Vries <tom@codesourcery.com>
9021 * oacc-parallel.c (GOACC_declare): Use GOMP_ASYNC_SYNC as async argument
9022 to GOACC_enter_exit_data.
9024 2018-05-09 Tom de Vries <tom@codesourcery.com>
9027 * oacc-int.h (async_valid_stream_id_p, async_valid_p)
9028 (async_synchronous_p): New function.
9029 * oacc-async.c (acc_async_test, acc_wait, acc_wait_all_async): Use
9031 * oacc-cuda.c (acc_get_cuda_stream, acc_set_cuda_stream): Use
9032 async_valid_stream_id_p.
9033 * oacc-mem.c (gomp_acc_remove_pointer): Use async_synchronous_p.
9034 * oacc-parallel.c (GOACC_parallel_keyed): Same.
9036 2018-05-07 Tom de Vries <tom@codesourcery.com>
9039 * testsuite/lib/libgomp.exp (libgomp_init): Move inclusion of top-level
9040 include directory in ALWAYS_CFLAGS out of $blddir != "" condition.
9042 2018-05-03 Tom de Vries <tom@codesourcery.com>
9045 * testsuite/lib/libgomp-dg.exp (libgomp-dg-test): Add save-temps to
9046 extra_tool_flags if it contains an -foffload=-fdump-* flag.
9047 * testsuite/lib/libgomp.exp: Include scanoffloadtree.exp.
9048 * testsuite/libgomp.oacc-c/vec.c: Use scan-offload-tree-dump.
9050 2018-05-02 Tom de Vries <tom@codesourcery.com>
9053 * plugin/plugin-nvptx.c (nvptx_exec): Move parsing of
9054 GOMP_OPENACC_DIM ...
9055 * env.c (parse_gomp_openacc_dim): ... here. New function.
9056 (initialize_env): Call parse_gomp_openacc_dim.
9057 (goacc_default_dims): Define.
9058 * libgomp.h (goacc_default_dims): Declare.
9059 * oacc-plugin.c (GOMP_PLUGIN_acc_default_dim): New function.
9060 * oacc-plugin.h (GOMP_PLUGIN_acc_default_dim): Declare.
9061 * libgomp.map: New version "GOMP_PLUGIN_1.2". Add
9062 GOMP_PLUGIN_acc_default_dim.
9063 * testsuite/libgomp.oacc-c-c++-common/loop-default-runtime.c: New test.
9064 * testsuite/libgomp.oacc-c-c++-common/loop-default.h: New test.
9066 2018-05-02 Tom de Vries <tom@codesourcery.com>
9069 * testsuite/libgomp.c++/udr-9.C: Update.
9070 * testsuite/libgomp.c++/atomic-16.C: Remove.
9071 * testsuite/libgomp.c++/cancel-taskgroup-2.C: Remove.
9072 * testsuite/libgomp.c++/loop-13.C: Remove.
9073 * testsuite/libgomp.c++/loop-14.C: Remove.
9074 * testsuite/libgomp.c++/loop-15.C: Remove.
9075 * testsuite/libgomp.c++/monotonic-1.C: Remove.
9076 * testsuite/libgomp.c++/monotonic-2.C: Remove.
9077 * testsuite/libgomp.c++/nonmonotonic-1.C: Remove.
9078 * testsuite/libgomp.c++/nonmonotonic-2.C: Remove.
9079 * testsuite/libgomp.c++/ordered-1.C: Remove.
9080 * testsuite/libgomp.c++/pr45784.C: Remove.
9081 * testsuite/libgomp.c++/pr64824.C: Remove.
9082 * testsuite/libgomp.c++/pr64868.C: Remove.
9083 * testsuite/libgomp.c++/pr66199-1.C: Remove.
9084 * testsuite/libgomp.c++/pr66199-2.C: Remove.
9085 * testsuite/libgomp.c++/pr66199-3.C: Remove.
9086 * testsuite/libgomp.c++/pr66199-4.C: Remove.
9087 * testsuite/libgomp.c++/pr66199-5.C: Remove.
9088 * testsuite/libgomp.c++/pr66199-6.C: Remove.
9089 * testsuite/libgomp.c++/pr66199-7.C: Remove.
9090 * testsuite/libgomp.c++/pr66199-8.C: Remove.
9091 * testsuite/libgomp.c++/pr66199-9.C: Remove.
9092 * testsuite/libgomp.c++/pr69389.C: Remove.
9093 * testsuite/libgomp.c++/simd10.C: Remove.
9094 * testsuite/libgomp.c++/simd11.C: Remove.
9095 * testsuite/libgomp.c++/simd12.C: Remove.
9096 * testsuite/libgomp.c++/simd13.C: Remove.
9097 * testsuite/libgomp.c++/target-1.C: Remove.
9098 * testsuite/libgomp.c++/target-3.C: Remove.
9099 * testsuite/libgomp.c++/target-4.C: Remove.
9100 * testsuite/libgomp.c++/target-5.C: Remove.
9101 * testsuite/libgomp.c++/taskgroup-1.C: Remove.
9102 * testsuite/libgomp.c++/taskloop-1.C: Remove.
9103 * testsuite/libgomp.c++/taskloop-2.C: Remove.
9104 * testsuite/libgomp.c++/taskloop-3.C: Remove.
9105 * testsuite/libgomp.c++/taskloop-4.C: Remove.
9106 * testsuite/libgomp.c++/udr-9.C: Remove.
9107 * testsuite/libgomp.c++/for-10.C: Remove.
9108 * testsuite/libgomp.c++/for-11.C: Remove.
9109 * testsuite/libgomp.c++/for-12.C: Remove.
9110 * testsuite/libgomp.c++/for-13.C: Remove.
9111 * testsuite/libgomp.c++/for-14.C: Remove.
9112 * testsuite/libgomp.c++/for-9.C: Remove.
9113 * testsuite/libgomp.c/atomic-18.c: Move ...
9114 * testsuite/libgomp.c-c++-common/atomic-18.c: ... here.
9115 * testsuite/libgomp.c/cancel-taskgroup-2.c: Move ...
9116 * testsuite/libgomp.c-c++-common/cancel-taskgroup-2.c: here.
9117 * testsuite/libgomp.c/loop-13.c: Move ...
9118 * testsuite/libgomp.c-c++-common/loop-13.c: ... here.
9119 * testsuite/libgomp.c/loop-14.c: Move ...
9120 * testsuite/libgomp.c-c++-common/loop-14.c: ... here.
9121 * testsuite/libgomp.c/loop-15.c: Remove.
9122 * testsuite/libgomp.c-c++-common/loop-15.c: New test.
9123 * testsuite/libgomp.c/monotonic-1.c: Move ...
9124 * testsuite/libgomp.c-c++-common/monotonic-1.c: ... here.
9125 * testsuite/libgomp.c/monotonic-2.c: Move ...
9126 * testsuite/libgomp.c-c++-common/monotonic-2.c: ... here.
9127 * testsuite/libgomp.c/nonmonotonic-1.c: Move ...
9128 * testsuite/libgomp.c-c++-common/nonmonotonic-1.c: ... here.
9129 * testsuite/libgomp.c/nonmonotonic-2.c: Move ...
9130 * testsuite/libgomp.c-c++-common/nonmonotonic-2.c: ... here.
9131 * testsuite/libgomp.c/ordered-4.c: Move ...
9132 * testsuite/libgomp.c-c++-common/ordered-4.c: ... here.
9133 * testsuite/libgomp.c/pr45784.c: Move ...
9134 * testsuite/libgomp.c-c++-common/pr45784.c: ... here.
9135 * testsuite/libgomp.c/pr64824.c: Move ...
9136 * testsuite/libgomp.c-c++-common/pr64824.c: ... here.
9137 * testsuite/libgomp.c/pr64868.c: Move ...
9138 * testsuite/libgomp.c-c++-common/pr64868.c: ... here.
9139 * testsuite/libgomp.c/pr66199-1.c: Move ...
9140 * testsuite/libgomp.c-c++-common/pr66199-1.c: ... here.
9141 * testsuite/libgomp.c/pr66199-2.c: Move ...
9142 * testsuite/libgomp.c-c++-common/pr66199-2.c: ... here.
9143 * testsuite/libgomp.c/pr66199-3.c: Move ...
9144 * testsuite/libgomp.c-c++-common/pr66199-3.c: ... here.
9145 * testsuite/libgomp.c/pr66199-4.c: Move ...
9146 * testsuite/libgomp.c-c++-common/pr66199-4.c: ... here.
9147 * testsuite/libgomp.c/pr66199-5.c: Move ...
9148 * testsuite/libgomp.c-c++-common/pr66199-5.c: ... here.
9149 * testsuite/libgomp.c/pr66199-6.c: Move ...
9150 * testsuite/libgomp.c-c++-common/pr66199-6.c: ... here.
9151 * testsuite/libgomp.c/pr66199-7.c: Move ...
9152 * testsuite/libgomp.c-c++-common/pr66199-7.c: ... here.
9153 * testsuite/libgomp.c/pr66199-8.c: Move ...
9154 * testsuite/libgomp.c-c++-common/pr66199-8.c: ... here.
9155 * testsuite/libgomp.c/pr66199-9.c: Move ...
9156 * testsuite/libgomp.c-c++-common/pr66199-9.c: ... here.
9157 * testsuite/libgomp.c/pr69389.c: Move ...
9158 * testsuite/libgomp.c-c++-common/pr69389.c: ... here.
9159 * testsuite/libgomp.c/simd-14.c: Move ...
9160 * testsuite/libgomp.c-c++-common/simd-14.c: ... here.
9161 * testsuite/libgomp.c/simd-15.c: Move ...
9162 * testsuite/libgomp.c-c++-common/simd-15.c: ... here.
9163 * testsuite/libgomp.c/simd-16.c: Move ...
9164 * testsuite/libgomp.c-c++-common/simd-16.c: ... here.
9165 * testsuite/libgomp.c/simd-17.c: Move ...
9166 * testsuite/libgomp.c-c++-common/simd-17.c: ... here.
9167 * testsuite/libgomp.c/target-1.c: Move ...
9168 * testsuite/libgomp.c-c++-common/target-1.c: ... here.
9169 * testsuite/libgomp.c/target-10.c: Move ...
9170 * testsuite/libgomp.c-c++-common/target-10.c: ... here.
9171 * testsuite/libgomp.c/target-13.c: Move ...
9172 * testsuite/libgomp.c-c++-common/target-13.c: ... here.
9173 * testsuite/libgomp.c/target-2.c: Move ...
9174 * testsuite/libgomp.c-c++-common/target-2.c: ... here.
9175 * testsuite/libgomp.c/taskgroup-1.c: Move ...
9176 * testsuite/libgomp.c-c++-common/taskgroup-1.c: ... here.
9177 * testsuite/libgomp.c/taskloop-1.c: Move ...
9178 * testsuite/libgomp.c-c++-common/taskloop-1.c: ... here.
9179 * testsuite/libgomp.c/taskloop-2.c: Move ...
9180 * testsuite/libgomp.c-c++-common/taskloop-2.c: ... here.
9181 * testsuite/libgomp.c/taskloop-3.c: Move ...
9182 * testsuite/libgomp.c-c++-common/taskloop-3.c: ... here.
9183 * testsuite/libgomp.c/taskloop-4.c: Move ...
9184 * testsuite/libgomp.c-c++-common/taskloop-4.c: ... here.
9185 * testsuite/libgomp.c/udr-1.c: Move ...
9186 * testsuite/libgomp.c-c++-common/udr-1.c: ... here.
9187 * testsuite/libgomp.c/for-1.c: Move ...
9188 * testsuite/libgomp.c-c++-common/for-1.c: ... here.
9189 * testsuite/libgomp.c/for-1.h: Move ...
9190 * testsuite/libgomp.c-c++-common/for-1.h: ... here.
9191 * testsuite/libgomp.c/for-2.c: Move ...
9192 * testsuite/libgomp.c-c++-common/for-2.c: ... here.
9193 * testsuite/libgomp.c/for-2.h: Move ...
9194 * testsuite/libgomp.c-c++-common/for-2.h: ... here.
9195 * testsuite/libgomp.c/for-3.c: Move ...
9196 * testsuite/libgomp.c-c++-common/for-3.c: ... here.
9197 * testsuite/libgomp.c/for-4.c: Move ...
9198 * testsuite/libgomp.c-c++-common/for-4.c: ... here.
9199 * testsuite/libgomp.c/for-5.c: Move ...
9200 * testsuite/libgomp.c-c++-common/for-5.c: ... here.
9201 * testsuite/libgomp.c/for-6.c: Move ...
9202 * testsuite/libgomp.c-c++-common/for-6.c: ... here.
9204 2018-05-02 Tom de Vries <tom@codesourcery.com>
9207 * testsuite/libgomp.oacc-c-c++-common/gang-static-2.c: Use
9208 __builtin_goacc_parlevel_{id,size}.
9209 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Same.
9210 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: Same.
9211 * testsuite/libgomp.oacc-c-c++-common/loop-g-1.c: Same.
9212 * testsuite/libgomp.oacc-c-c++-common/loop-g-2.c: Same.
9213 * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c: Same.
9214 * testsuite/libgomp.oacc-c-c++-common/loop-red-g-1.c: Same.
9215 * testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c: Same.
9216 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c: Same.
9217 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c: Same.
9218 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c: Same.
9219 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c: Same.
9220 * testsuite/libgomp.oacc-c-c++-common/loop-red-wv-1.c: Same.
9221 * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c: Same.
9222 * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c: Same.
9223 * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c: Same.
9224 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Same.
9225 * testsuite/libgomp.oacc-c-c++-common/routine-g-1.c: Same.
9226 * testsuite/libgomp.oacc-c-c++-common/routine-gwv-1.c: Same.
9227 * testsuite/libgomp.oacc-c-c++-common/routine-v-1.c: Same.
9228 * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c: Same.
9229 * testsuite/libgomp.oacc-c-c++-common/routine-wv-1.c: Same.
9230 * testsuite/libgomp.oacc-c-c++-common/routine-wv-2.c: Same.
9231 * testsuite/libgomp.oacc-c-c++-common/tile-1.c: Same.
9233 2018-05-02 Tom de Vries <tom@codesourcery.com>
9236 * testsuite/lib/libgomp.exp: Include scanltranstree.exp.
9238 2018-05-02 Tom de Vries <tom@codesourcery.com>
9241 * testsuite/lib/libgomp.exp: Include scanwpaipa.exp.
9243 2018-04-29 Julian Brown <julian@codesourcery.com>
9244 Tom de Vries <tom@codesourcery.com>
9247 * testsuite/libgomp.oacc-c-c++-common/atomic_capture-1.c: Allow
9248 arbitrary order for iterations of atomic subtract check.
9250 2018-04-28 Tom de Vries <tom@codesourcery.com>
9253 * testsuite/libgomp.oacc-fortran/atomic_capture-1.f90 (main): Store
9254 atomic capture results obtained in parallel loop to an array, instead of
9257 2018-04-26 Tom de Vries <tom@codesourcery.com>
9260 * plugin/cuda/cuda.h (CUjit_option): Add CU_JIT_OPTIMIZATION_LEVEL.
9261 * plugin/plugin-nvptx.c (_GNU_SOURCE): Define.
9262 (process_GOMP_NVPTX_JIT): New function.
9263 (link_ptx): Use process_GOMP_NVPTX_JIT.
9265 2018-04-26 Richard Biener <rguenther@suse.de>
9266 Tom de Vries <tom@codesourcery.com>
9269 * testsuite/libgomp.oacc-c-c++-common/pr85422.c: New test.
9271 2018-04-26 Tom de Vries <tom@codesourcery.com>
9274 * testsuite/libgomp.fortran/examples-4/declare_target-1.f90: Reduce
9275 recursion depth from 25 to 23.
9276 * testsuite/libgomp.fortran/examples-4/declare_target-2.f90: Same.
9278 2018-04-24 H.J. Lu <hongjiu.lu@intel.com>
9280 * configure: Regenerated.
9282 2018-04-20 Nathan Sidwell <nathan@codesourcery.com>
9283 Tom de Vries <tom@codesourcery.com>
9286 * testsuite/libgomp.oacc-c++/ref-1.C: New.
9288 2018-04-19 Thomas Schwinge <thomas@codesourcery.com>
9291 * testsuite/libgomp.oacc-fortran/error_stop-1.f: New file.
9292 * testsuite/libgomp.oacc-fortran/error_stop-2.f: Likewise.
9293 * testsuite/libgomp.oacc-fortran/error_stop-3.f: Likewise.
9294 * testsuite/libgomp.oacc-fortran/stop-1.f: Likewise.
9295 * testsuite/libgomp.oacc-fortran/stop-2.f: Likewise.
9296 * testsuite/libgomp.oacc-fortran/stop-3.f: Likewise.
9299 * testsuite/libgomp.oacc-fortran/abort-1.f90: Switch back to "call
9301 * testsuite/libgomp.oacc-fortran/abort-2.f90: Likewise.
9303 2018-04-19 Jakub Jelinek <jakub@redhat.com>
9305 * configure: Regenerated.
9307 2018-04-18 David Malcolm <dmalcolm@redhat.com>
9310 * configure: Regenerate.
9312 2018-04-16 Cesar Philippidis <cesar@codesourcery.com>
9313 Tom de Vries <tom@codesourcery.com>
9316 * testsuite/libgomp.oacc-c-c++-common/pr84955.c: New test.
9317 * testsuite/libgomp.oacc-fortran/pr84955.f90: New test.
9319 2018-04-12 Thomas Koenig <tkoenig@gcc.gnu.org>
9323 * testsuite/libgomp.fortran/do_concurrent_5.f90: Move modified
9324 test from gfortran.dg to here.
9326 2018-04-12 Cesar Philippidis <cesar@codesourcery.com>
9328 * testsuite/libgomp.oacc-c-c++-common/pr84955.c: Revert 259346.
9329 * testsuite/libgomp.oacc-fortran/pr84955.f90: Likewise.
9331 2018-04-12 Cesar Philippidis <cesar@codesourcery.com>
9334 * testsuite/libgomp.oacc-c-c++-common/pr84955.c: New test.
9335 * testsuite/libgomp.oacc-fortran/pr84955.f90: New test.
9337 2018-04-05 Tom de Vries <tom@codesourcery.com>
9340 * testsuite/libgomp.oacc-c-c++-common/broadcast-1.c: New test.
9342 2018-03-26 Tom de Vries <tom@codesourcery.com>
9344 PR tree-optimization/85063
9345 * testsuite/libgomp.c/switch-conversion-2.c: New test.
9346 * testsuite/libgomp.c/switch-conversion.c: New test.
9347 * testsuite/libgomp.oacc-c-c++-common/switch-conversion-2.c: New test.
9348 * testsuite/libgomp.oacc-c-c++-common/switch-conversion.c: New test.
9350 2018-03-25 Thomas Koenig <tkoenig@gcc.gnu.org>
9353 * testsuite/libgomp.fortran/aligned1.f03: Replace non-standard
9354 call abort by STOP n.
9355 * testsuite/libgomp.fortran/alloc-comp-1.f90: Likewise.
9356 * testsuite/libgomp.fortran/alloc-comp-2.f90: Likewise.
9357 * testsuite/libgomp.fortran/alloc-comp-3.f90: Likewise.
9358 * testsuite/libgomp.fortran/allocatable1.f90: Likewise.
9359 * testsuite/libgomp.fortran/allocatable10.f90: Likewise.
9360 * testsuite/libgomp.fortran/allocatable11.f90: Likewise.
9361 * testsuite/libgomp.fortran/allocatable12.f90: Likewise.
9362 * testsuite/libgomp.fortran/allocatable2.f90: Likewise.
9363 * testsuite/libgomp.fortran/allocatable3.f90: Likewise.
9364 * testsuite/libgomp.fortran/allocatable4.f90: Likewise.
9365 * testsuite/libgomp.fortran/allocatable5.f90: Likewise.
9366 * testsuite/libgomp.fortran/allocatable6.f90: Likewise.
9367 * testsuite/libgomp.fortran/allocatable7.f90: Likewise.
9368 * testsuite/libgomp.fortran/allocatable8.f90: Likewise.
9369 * testsuite/libgomp.fortran/allocatable9.f90: Likewise.
9370 * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: Likewise.
9371 * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: Likewise.
9372 * testsuite/libgomp.fortran/associate1.f90: Likewise.
9373 * testsuite/libgomp.fortran/associate2.f90: Likewise.
9374 * testsuite/libgomp.fortran/associate3.f90: Likewise.
9375 * testsuite/libgomp.fortran/cancel-do-1.f90: Likewise.
9376 * testsuite/libgomp.fortran/cancel-do-2.f90: Likewise.
9377 * testsuite/libgomp.fortran/cancel-parallel-1.f90: Likewise.
9378 * testsuite/libgomp.fortran/cancel-sections-1.f90: Likewise.
9379 * testsuite/libgomp.fortran/cancel-taskgroup-2.f90: Likewise.
9380 * testsuite/libgomp.fortran/character1.f90: Likewise.
9381 * testsuite/libgomp.fortran/character2.f90: Likewise.
9382 * testsuite/libgomp.fortran/collapse1.f90: Likewise.
9383 * testsuite/libgomp.fortran/collapse2.f90: Likewise.
9384 * testsuite/libgomp.fortran/collapse3.f90: Likewise.
9385 * testsuite/libgomp.fortran/collapse4.f90: Likewise.
9386 * testsuite/libgomp.fortran/crayptr1.f90: Likewise.
9387 * testsuite/libgomp.fortran/crayptr2.f90: Likewise.
9388 * testsuite/libgomp.fortran/crayptr3.f90: Likewise.
9389 * testsuite/libgomp.fortran/declare-simd-1.f90: Likewise.
9390 * testsuite/libgomp.fortran/declare-simd-3.f90: Likewise.
9391 * testsuite/libgomp.fortran/declare-target-2.f90: Likewise.
9392 * testsuite/libgomp.fortran/depend-1.f90: Likewise.
9393 * testsuite/libgomp.fortran/depend-2.f90: Likewise.
9394 * testsuite/libgomp.fortran/depend-3.f90: Likewise.
9395 * testsuite/libgomp.fortran/do1.f90: Likewise.
9396 * testsuite/libgomp.fortran/do2.f90: Likewise.
9397 * testsuite/libgomp.fortran/doacross1.f90: Likewise.
9398 * testsuite/libgomp.fortran/doacross2.f90: Likewise.
9399 * testsuite/libgomp.fortran/doacross3.f90: Likewise.
9400 * testsuite/libgomp.fortran/examples-4/array_sections-3.f90: Likewise.
9401 * testsuite/libgomp.fortran/examples-4/array_sections-4.f90: Likewise.
9402 * testsuite/libgomp.fortran/examples-4/async_target-1.f90: Likewise.
9403 * testsuite/libgomp.fortran/examples-4/async_target-2.f90: Likewise.
9404 * testsuite/libgomp.fortran/examples-4/declare_target-1.f90: Likewise.
9405 * testsuite/libgomp.fortran/examples-4/declare_target-2.f90: Likewise.
9406 * testsuite/libgomp.fortran/examples-4/declare_target-3.f90: Likewise.
9407 * testsuite/libgomp.fortran/examples-4/declare_target-4.f90: Likewise.
9408 * testsuite/libgomp.fortran/examples-4/declare_target-5.f90: Likewise.
9409 * testsuite/libgomp.fortran/examples-4/device-1.f90: Likewise.
9410 * testsuite/libgomp.fortran/examples-4/device-2.f90: Likewise.
9411 * testsuite/libgomp.fortran/examples-4/device-3.f90: Likewise.
9412 * testsuite/libgomp.fortran/examples-4/simd-1.f90: Likewise.
9413 * testsuite/libgomp.fortran/examples-4/simd-2.f90: Likewise.
9414 * testsuite/libgomp.fortran/examples-4/simd-3.f90: Likewise.
9415 * testsuite/libgomp.fortran/examples-4/simd-4.f90: Likewise.
9416 * testsuite/libgomp.fortran/examples-4/simd-5.f90: Likewise.
9417 * testsuite/libgomp.fortran/examples-4/simd-6.f90: Likewise.
9418 * testsuite/libgomp.fortran/examples-4/simd-7.f90: Likewise.
9419 * testsuite/libgomp.fortran/examples-4/simd-8.f90: Likewise.
9420 * testsuite/libgomp.fortran/examples-4/target-1.f90: Likewise.
9421 * testsuite/libgomp.fortran/examples-4/target-2.f90: Likewise.
9422 * testsuite/libgomp.fortran/examples-4/target-3.f90: Likewise.
9423 * testsuite/libgomp.fortran/examples-4/target-4.f90: Likewise.
9424 * testsuite/libgomp.fortran/examples-4/target-5.f90: Likewise.
9425 * testsuite/libgomp.fortran/examples-4/target_data-1.f90: Likewise.
9426 * testsuite/libgomp.fortran/examples-4/target_data-2.f90: Likewise.
9427 * testsuite/libgomp.fortran/examples-4/target_data-3.f90: Likewise.
9428 * testsuite/libgomp.fortran/examples-4/target_data-4.f90: Likewise.
9429 * testsuite/libgomp.fortran/examples-4/target_data-5.f90: Likewise.
9430 * testsuite/libgomp.fortran/examples-4/target_data-6.f90: Likewise.
9431 * testsuite/libgomp.fortran/examples-4/target_data-7.f90: Likewise.
9432 * testsuite/libgomp.fortran/examples-4/target_update-1.f90: Likewise.
9433 * testsuite/libgomp.fortran/examples-4/target_update-2.f90: Likewise.
9434 * testsuite/libgomp.fortran/examples-4/task_dep-1.f90: Likewise.
9435 * testsuite/libgomp.fortran/examples-4/task_dep-2.f90: Likewise.
9436 * testsuite/libgomp.fortran/examples-4/task_dep-3.f90: Likewise.
9437 * testsuite/libgomp.fortran/examples-4/task_dep-4.f90: Likewise.
9438 * testsuite/libgomp.fortran/examples-4/task_dep-5.f90: Likewise.
9439 * testsuite/libgomp.fortran/examples-4/teams-2.f90: Likewise.
9440 * testsuite/libgomp.fortran/examples-4/teams-3.f90: Likewise.
9441 * testsuite/libgomp.fortran/examples-4/teams-4.f90: Likewise.
9442 * testsuite/libgomp.fortran/examples-4/teams-5.f90: Likewise.
9443 * testsuite/libgomp.fortran/examples-4/teams-6.f90: Likewise.
9444 * testsuite/libgomp.fortran/lastprivate1.f90: Likewise.
9445 * testsuite/libgomp.fortran/lastprivate2.f90: Likewise.
9446 * testsuite/libgomp.fortran/lib1.f90: Likewise.
9447 * testsuite/libgomp.fortran/lib2.f: Likewise.
9448 * testsuite/libgomp.fortran/lib3.f: Likewise.
9449 * testsuite/libgomp.fortran/lib4.f90: Likewise.
9450 * testsuite/libgomp.fortran/lock-1.f90: Likewise.
9451 * testsuite/libgomp.fortran/lock-2.f90: Likewise.
9452 * testsuite/libgomp.fortran/nested1.f90: Likewise.
9453 * testsuite/libgomp.fortran/nestedfn1.f90: Likewise.
9454 * testsuite/libgomp.fortran/nestedfn2.f90: Likewise.
9455 * testsuite/libgomp.fortran/nestedfn3.f90: Likewise.
9456 * testsuite/libgomp.fortran/nestedfn4.f90: Likewise.
9457 * testsuite/libgomp.fortran/nestedfn5.f90: Likewise.
9458 * testsuite/libgomp.fortran/omp_atomic1.f90: Likewise.
9459 * testsuite/libgomp.fortran/omp_atomic2.f90: Likewise.
9460 * testsuite/libgomp.fortran/omp_atomic3.f90: Likewise.
9461 * testsuite/libgomp.fortran/omp_atomic4.f90: Likewise.
9462 * testsuite/libgomp.fortran/omp_atomic5.f90: Likewise.
9463 * testsuite/libgomp.fortran/omp_cond1.f: Likewise.
9464 * testsuite/libgomp.fortran/omp_cond2.f: Likewise.
9465 * testsuite/libgomp.fortran/omp_cond3.F90: Likewise.
9466 * testsuite/libgomp.fortran/omp_cond4.F90: Likewise.
9467 * testsuite/libgomp.fortran/omp_parse1.f90: Likewise.
9468 * testsuite/libgomp.fortran/omp_parse2.f90: Likewise.
9469 * testsuite/libgomp.fortran/omp_parse3.f90: Likewise.
9470 * testsuite/libgomp.fortran/omp_parse4.f90: Likewise.
9471 * testsuite/libgomp.fortran/openmp_version-1.f: Likewise.
9472 * testsuite/libgomp.fortran/openmp_version-2.f90: Likewise.
9473 * testsuite/libgomp.fortran/parloops-exit-first-loop-alt-2.f95: Likewise.
9474 * testsuite/libgomp.fortran/parloops-exit-first-loop-alt.f95: Likewise.
9475 * testsuite/libgomp.fortran/pointer1.f90: Likewise.
9476 * testsuite/libgomp.fortran/pointer2.f90: Likewise.
9477 * testsuite/libgomp.fortran/pr25162.f: Likewise.
9478 * testsuite/libgomp.fortran/pr25219.f90: Likewise.
9479 * testsuite/libgomp.fortran/pr27395-1.f90: Likewise.
9480 * testsuite/libgomp.fortran/pr27395-2.f90: Likewise.
9481 * testsuite/libgomp.fortran/pr27416-1.f90: Likewise.
9482 * testsuite/libgomp.fortran/pr27916-1.f90: Likewise.
9483 * testsuite/libgomp.fortran/pr27916-2.f90: Likewise.
9484 * testsuite/libgomp.fortran/pr28390.f: Likewise.
9485 * testsuite/libgomp.fortran/pr29629.f90: Likewise.
9486 * testsuite/libgomp.fortran/pr32550.f90: Likewise.
9487 * testsuite/libgomp.fortran/pr33880.f90: Likewise.
9488 * testsuite/libgomp.fortran/pr34020.f90: Likewise.
9489 * testsuite/libgomp.fortran/pr35130.f90: Likewise.
9490 * testsuite/libgomp.fortran/pr42162.f90: Likewise.
9491 * testsuite/libgomp.fortran/pr46753.f90: Likewise.
9492 * testsuite/libgomp.fortran/pr48894.f90: Likewise.
9493 * testsuite/libgomp.fortran/pr49792-1.f90: Likewise.
9494 * testsuite/libgomp.fortran/pr49792-2.f90: Likewise.
9495 * testsuite/libgomp.fortran/pr63938-1.f90: Likewise.
9496 * testsuite/libgomp.fortran/pr63938-2.f90: Likewise.
9497 * testsuite/libgomp.fortran/pr65597.f90: Likewise.
9498 * testsuite/libgomp.fortran/pr66199-1.f90: Likewise.
9499 * testsuite/libgomp.fortran/pr71014.f90: Likewise.
9500 * testsuite/libgomp.fortran/pr81304.f90: Likewise.
9501 * testsuite/libgomp.fortran/pr81841.f90: Likewise.
9502 * testsuite/libgomp.fortran/pr84418-1.f90: Likewise.
9503 * testsuite/libgomp.fortran/pr84418-2.f90: Likewise.
9504 * testsuite/libgomp.fortran/procptr1.f90: Likewise.
9505 * testsuite/libgomp.fortran/recursion1.f90: Likewise.
9506 * testsuite/libgomp.fortran/reduction1.f90: Likewise.
9507 * testsuite/libgomp.fortran/reduction2.f90: Likewise.
9508 * testsuite/libgomp.fortran/reduction3.f90: Likewise.
9509 * testsuite/libgomp.fortran/reduction4.f90: Likewise.
9510 * testsuite/libgomp.fortran/reduction5.f90: Likewise.
9511 * testsuite/libgomp.fortran/reduction6.f90: Likewise.
9512 * testsuite/libgomp.fortran/reference1.f90: Likewise.
9513 * testsuite/libgomp.fortran/reference2.f90: Likewise.
9514 * testsuite/libgomp.fortran/retval1.f90: Likewise.
9515 * testsuite/libgomp.fortran/retval2.f90: Likewise.
9516 * testsuite/libgomp.fortran/sharing1.f90: Likewise.
9517 * testsuite/libgomp.fortran/sharing2.f90: Likewise.
9518 * testsuite/libgomp.fortran/simd1.f90: Likewise.
9519 * testsuite/libgomp.fortran/simd2.f90: Likewise.
9520 * testsuite/libgomp.fortran/simd3.f90: Likewise.
9521 * testsuite/libgomp.fortran/simd4.f90: Likewise.
9522 * testsuite/libgomp.fortran/simd5.f90: Likewise.
9523 * testsuite/libgomp.fortran/simd6.f90: Likewise.
9524 * testsuite/libgomp.fortran/simd7.f90: Likewise.
9525 * testsuite/libgomp.fortran/stack.f90: Likewise.
9526 * testsuite/libgomp.fortran/strassen.f90: Likewise.
9527 * testsuite/libgomp.fortran/tabs1.f90: Likewise.
9528 * testsuite/libgomp.fortran/tabs2.f: Likewise.
9529 * testsuite/libgomp.fortran/target1.f90: Likewise.
9530 * testsuite/libgomp.fortran/target2.f90: Likewise.
9531 * testsuite/libgomp.fortran/target3.f90: Likewise.
9532 * testsuite/libgomp.fortran/target4.f90: Likewise.
9533 * testsuite/libgomp.fortran/target5.f90: Likewise.
9534 * testsuite/libgomp.fortran/target6.f90: Likewise.
9535 * testsuite/libgomp.fortran/target7.f90: Likewise.
9536 * testsuite/libgomp.fortran/target8.f90: Likewise.
9537 * testsuite/libgomp.fortran/task1.f90: Likewise.
9538 * testsuite/libgomp.fortran/task2.f90: Likewise.
9539 * testsuite/libgomp.fortran/task3.f90: Likewise.
9540 * testsuite/libgomp.fortran/task4.f90: Likewise.
9541 * testsuite/libgomp.fortran/taskgroup1.f90: Likewise.
9542 * testsuite/libgomp.fortran/taskloop1.f90: Likewise.
9543 * testsuite/libgomp.fortran/taskloop2.f90: Likewise.
9544 * testsuite/libgomp.fortran/taskloop3.f90: Likewise.
9545 * testsuite/libgomp.fortran/taskloop4.f90: Likewise.
9546 * testsuite/libgomp.fortran/threadprivate1.f90: Likewise.
9547 * testsuite/libgomp.fortran/threadprivate2.f90: Likewise.
9548 * testsuite/libgomp.fortran/threadprivate3.f90: Likewise.
9549 * testsuite/libgomp.fortran/threadprivate4.f90: Likewise.
9550 * testsuite/libgomp.fortran/udr1.f90: Likewise.
9551 * testsuite/libgomp.fortran/udr10.f90: Likewise.
9552 * testsuite/libgomp.fortran/udr11.f90: Likewise.
9553 * testsuite/libgomp.fortran/udr12.f90: Likewise.
9554 * testsuite/libgomp.fortran/udr13.f90: Likewise.
9555 * testsuite/libgomp.fortran/udr14.f90: Likewise.
9556 * testsuite/libgomp.fortran/udr15.f90: Likewise.
9557 * testsuite/libgomp.fortran/udr2.f90: Likewise.
9558 * testsuite/libgomp.fortran/udr3.f90: Likewise.
9559 * testsuite/libgomp.fortran/udr4.f90: Likewise.
9560 * testsuite/libgomp.fortran/udr5.f90: Likewise.
9561 * testsuite/libgomp.fortran/udr6.f90: Likewise.
9562 * testsuite/libgomp.fortran/udr7.f90: Likewise.
9563 * testsuite/libgomp.fortran/udr8.f90: Likewise.
9564 * testsuite/libgomp.fortran/udr9.f90: Likewise.
9565 * testsuite/libgomp.fortran/vla1.f90: Likewise.
9566 * testsuite/libgomp.fortran/vla2.f90: Likewise.
9567 * testsuite/libgomp.fortran/vla3.f90: Likewise.
9568 * testsuite/libgomp.fortran/vla4.f90: Likewise.
9569 * testsuite/libgomp.fortran/vla5.f90: Likewise.
9570 * testsuite/libgomp.fortran/vla6.f90: Likewise.
9571 * testsuite/libgomp.fortran/vla7.f90: Likewise.
9572 * testsuite/libgomp.fortran/vla8.f90: Likewise.
9573 * testsuite/libgomp.fortran/workshare1.f90: Likewise.
9574 * testsuite/libgomp.fortran/workshare2.f90: Likewise.
9575 * testsuite/libgomp.oacc-fortran/abort-1.f90: Likewise.
9576 * testsuite/libgomp.oacc-fortran/abort-2.f90: Likewise.
9577 * testsuite/libgomp.oacc-fortran/acc_on_device-1-1.f90: Likewise.
9578 * testsuite/libgomp.oacc-fortran/acc_on_device-1-2.f: Likewise.
9579 * testsuite/libgomp.oacc-fortran/acc_on_device-1-3.f: Likewise.
9580 * testsuite/libgomp.oacc-fortran/asyncwait-1.f90: Likewise.
9581 * testsuite/libgomp.oacc-fortran/asyncwait-2.f90: Likewise.
9582 * testsuite/libgomp.oacc-fortran/asyncwait-3.f90: Likewise.
9583 * testsuite/libgomp.oacc-fortran/atomic_capture-1.f90: Likewise.
9584 * testsuite/libgomp.oacc-fortran/atomic_rw-1.f90: Likewise.
9585 * testsuite/libgomp.oacc-fortran/atomic_update-1.f90: Likewise.
9586 * testsuite/libgomp.oacc-fortran/c2.pl: Likewise.
9587 * testsuite/libgomp.oacc-fortran/clauses-1.f90: Likewise.
9588 * testsuite/libgomp.oacc-fortran/collapse-1.f90: Likewise.
9589 * testsuite/libgomp.oacc-fortran/collapse-2.f90: Likewise.
9590 * testsuite/libgomp.oacc-fortran/collapse-3.f90: Likewise.
9591 * testsuite/libgomp.oacc-fortran/collapse-4.f90: Likewise.
9592 * testsuite/libgomp.oacc-fortran/collapse-5.f90: Likewise.
9593 * testsuite/libgomp.oacc-fortran/collapse-6.f90: Likewise.
9594 * testsuite/libgomp.oacc-fortran/collapse-7.f90: Likewise.
9595 * testsuite/libgomp.oacc-fortran/collapse-8.f90: Likewise.
9596 * testsuite/libgomp.oacc-fortran/combined-directives-1.f90: Likewise.
9597 * testsuite/libgomp.oacc-fortran/combined-reduction.f90: Likewise.
9598 * testsuite/libgomp.oacc-fortran/data-1.f90: Likewise.
9599 * testsuite/libgomp.oacc-fortran/data-2.f90: Likewise.
9600 * testsuite/libgomp.oacc-fortran/data-3.f90: Likewise.
9601 * testsuite/libgomp.oacc-fortran/data-4-2.f90: Likewise.
9602 * testsuite/libgomp.oacc-fortran/data-4.f90: Likewise.
9603 * testsuite/libgomp.oacc-fortran/declare-1.f90: Likewise.
9604 * testsuite/libgomp.oacc-fortran/declare-2.f90: Likewise.
9605 * testsuite/libgomp.oacc-fortran/declare-3.f90: Likewise.
9606 * testsuite/libgomp.oacc-fortran/declare-4.f90: Likewise.
9607 * testsuite/libgomp.oacc-fortran/declare-5.f90: Likewise.
9608 * testsuite/libgomp.oacc-fortran/default-1.f90: Likewise.
9609 * testsuite/libgomp.oacc-fortran/firstprivate-1.f90: Likewise.
9610 * testsuite/libgomp.oacc-fortran/gang-static-1.f90: Likewise.
9611 * testsuite/libgomp.oacc-fortran/host_data-1.f90: Likewise.
9612 * testsuite/libgomp.oacc-fortran/if-1.f90: Likewise.
9613 * testsuite/libgomp.oacc-fortran/implicit-firstprivate-ref.f90: Likewise.
9614 * testsuite/libgomp.oacc-fortran/kernels-loop-2.f95: Likewise.
9615 * testsuite/libgomp.oacc-fortran/kernels-loop-data-2.f95: Likewise.
9616 * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit-2.f95: Likewise.
9617 * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit.f95: Likewise.
9618 * testsuite/libgomp.oacc-fortran/kernels-loop-data-update.f95: Likewise.
9619 * testsuite/libgomp.oacc-fortran/kernels-loop-data.f95: Likewise.
9620 * testsuite/libgomp.oacc-fortran/kernels-loop.f95: Likewise.
9621 * testsuite/libgomp.oacc-fortran/lib-1.f90: Likewise.
9622 * testsuite/libgomp.oacc-fortran/lib-10.f90: Likewise.
9623 * testsuite/libgomp.oacc-fortran/lib-2.f: Likewise.
9624 * testsuite/libgomp.oacc-fortran/lib-3.f: Likewise.
9625 * testsuite/libgomp.oacc-fortran/lib-32-1.f: Likewise.
9626 * testsuite/libgomp.oacc-fortran/lib-32-2.f: Likewise.
9627 * testsuite/libgomp.oacc-fortran/lib-4.f90: Likewise.
9628 * testsuite/libgomp.oacc-fortran/lib-5.f90: Likewise.
9629 * testsuite/libgomp.oacc-fortran/lib-6.f90: Likewise.
9630 * testsuite/libgomp.oacc-fortran/lib-7.f90: Likewise.
9631 * testsuite/libgomp.oacc-fortran/lib-8.f90: Likewise.
9632 * testsuite/libgomp.oacc-fortran/map-1.f90: Likewise.
9633 * testsuite/libgomp.oacc-fortran/nested-function-1.f90: Likewise.
9634 * testsuite/libgomp.oacc-fortran/nested-function-2.f90: Likewise.
9635 * testsuite/libgomp.oacc-fortran/nested-function-3.f90: Likewise.
9636 * testsuite/libgomp.oacc-fortran/non-scalar-data.f90: Likewise.
9637 * testsuite/libgomp.oacc-fortran/openacc_version-1.f: Likewise.
9638 * testsuite/libgomp.oacc-fortran/openacc_version-2.f90: Likewise.
9639 * testsuite/libgomp.oacc-fortran/par-reduction-2-1.f: Likewise.
9640 * testsuite/libgomp.oacc-fortran/par-reduction-2-2.f: Likewise.
9641 * testsuite/libgomp.oacc-fortran/parallel-reduction.f90: Likewise.
9642 * testsuite/libgomp.oacc-fortran/pointer-align-1.f90: Likewise.
9643 * testsuite/libgomp.oacc-fortran/pr70643.f90: Likewise.
9644 * testsuite/libgomp.oacc-fortran/pr81352.f90: Likewise.
9645 * testsuite/libgomp.oacc-fortran/pr83920.f90: Likewise.
9646 * testsuite/libgomp.oacc-fortran/pr84028.f90: Likewise.
9647 * testsuite/libgomp.oacc-fortran/private-variables.f90: Likewise.
9648 * testsuite/libgomp.oacc-fortran/pset-1.f90: Likewise.
9649 * testsuite/libgomp.oacc-fortran/reduction-1.f90: Likewise.
9650 * testsuite/libgomp.oacc-fortran/reduction-2.f90: Likewise.
9651 * testsuite/libgomp.oacc-fortran/reduction-3.f90: Likewise.
9652 * testsuite/libgomp.oacc-fortran/reduction-4.f90: Likewise.
9653 * testsuite/libgomp.oacc-fortran/reduction-5.f90: Likewise.
9654 * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
9655 * testsuite/libgomp.oacc-fortran/reduction-7.f90: Likewise.
9656 * testsuite/libgomp.oacc-fortran/reduction-8.f90: Likewise.
9657 * testsuite/libgomp.oacc-fortran/routine-1.f90: Likewise.
9658 * testsuite/libgomp.oacc-fortran/routine-2.f90: Likewise.
9659 * testsuite/libgomp.oacc-fortran/routine-3.f90: Likewise.
9660 * testsuite/libgomp.oacc-fortran/routine-4.f90: Likewise.
9661 * testsuite/libgomp.oacc-fortran/routine-5.f90: Likewise.
9662 * testsuite/libgomp.oacc-fortran/routine-7.f90: Likewise.
9663 * testsuite/libgomp.oacc-fortran/routine-9.f90: Likewise.
9664 * testsuite/libgomp.oacc-fortran/subarrays-1.f90: Likewise.
9665 * testsuite/libgomp.oacc-fortran/subarrays-2.f90: Likewise.
9666 * testsuite/libgomp.oacc-fortran/update-1.f90: Likewise.
9668 2018-03-20 Richard Biener <rguenther@suse.de>
9670 * testsuite/libgomp.graphite/force-parallel-4.c: XFAIL one
9671 parallelizable loop.
9673 2018-02-19 Igor Tsimbalist <igor.v.tsimbalist@intel.com>
9676 * configure: Regenerate.
9678 2018-02-16 Jakub Jelinek <jakub@redhat.com>
9681 * libgomp.fortran/pr84418-1.f90: New test.
9682 * libgomp.fortran/pr84418-2.f90: New test.
9684 2018-02-14 Jakub Jelinek <jakub@redhat.com>
9687 * testsuite/libgomp.fortran/threadprivate4.f90: Add
9688 -std=f2003 -fall-intrinsics into dg-additional-options.
9690 2018-02-08 Martin Jambor <mjambor@suse.cz>
9692 * testsuite/libgomp.hsa.c/pr82416.c: Make the function with target
9695 2018-02-08 Martin Jambor <mjambor@suse.cz>
9697 * testsuite/libgomp.hsa.c/staticvar.c: New test.
9699 2018-02-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9701 * testsuite/libgomp.oacc-c-c++-common/pr84217.c (abort)
9702 [__cplusplus]: Declare extern "C".
9704 2018-02-07 Tom de Vries <tom@codesourcery.com>
9707 * testsuite/libgomp.oacc-c-c++-common/pr84217.c: New test.
9709 2018-01-29 Christoph Spiel <cspiel@freenet.de>
9710 Jakub Jelinek <jakub@redhat.com>
9713 * omp.h.in (omp_init_nest_lock_with_hint): Use omp_nest_lock_t
9714 instead of omp_lock_t.
9716 2018-01-25 Tom de Vries <tom@codesourcery.com>
9719 * testsuite/libgomp.oacc-fortran/pr84028.f90: New test.
9721 2018-01-24 Tom de Vries <tom@codesourcery.com>
9724 * testsuite/libgomp.oacc-c-c++-common/pr83589.c: New test.
9726 2018-01-24 Tom de Vries <tom@codesourcery.com>
9729 * testsuite/libgomp.oacc-fortran/pr81352.f90: New test.
9731 2018-01-19 Tom de Vries <tom@codesourcery.com>
9732 Cesar Philippidis <cesar@codesourcery.com>
9735 * testsuite/libgomp.oacc-c-c++-common/pr83920.c: New test.
9736 * testsuite/libgomp.oacc-fortran/pr83920.f90: New test.
9738 2018-01-03 Jakub Jelinek <jakub@redhat.com>
9740 Update copyright years.
9742 * libgomp.texi: Bump @copying's copyright year.
9744 2017-12-30 Tom de Vries <tom@codesourcery.com>
9747 * testsuite/libgomp.oacc-c-c++-common/pr83046.c: New test.
9748 * testsuite/libgomp.c-c++-common/pr83046.c: New test.
9750 2017-12-27 Tom de Vries <tom@codesourcery.com>
9753 * testsuite/libgomp.oacc-c-c++-common/gang-static-2.c (test_static)
9754 (test_nonstatic): Fix return type to workaround PR83046.
9756 2017-12-05 Jakub Jelinek <jakub@redhat.com>
9759 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-flt.c (main): Use
9760 j suffix instead of i.
9761 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-dbl.c (main):
9764 2017-12-01 Cesar Philippidis <cesar@codesourcery.com>
9766 * testsuite/libgomp.oacc-c-c++-common/data-2-lib.c: Add missing
9767 call to acc_wait (1).
9769 2017-11-24 Jakub Jelinek <jakub@redhat.com>
9772 * testsuite/libgomp.fortran/pr81304.f90: New test.
9774 2017-11-23 Jakub Jelinek <jakub@redhat.com>
9777 * libgomp.fortran/pr81841.f90: New test.
9779 2017-11-22 Jakub Jelinek <jakub@redhat.com>
9782 * target.c (gomp_target_init): Compute lengths just once and
9783 use them in both malloc size and subsequent copying.
9785 2017-11-17 Igor Tsimbalist <igor.v.tsimbalist@intel.com>
9787 * configure.ac: Set CET_FLAGS, update XCFLAGS and FCFLAGS.
9788 * acinclude.m4: Add cet.m4.
9789 * configure: Regenerate.
9790 * Makefile.in: Likewise.
9791 * testsuite/Makefile.in: Likewise.
9793 2017-11-15 Tom de Vries <tom@codesourcery.com>
9795 * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-1.c: New test, copied
9796 from asyncwait-1.f90. Rewrite into C. Rewrite from float to int.
9797 * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-2.c: New test, copied
9798 from asyncwait-2.f90. Rewrite into C. Rewrite from float to int.
9799 * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-3.c: New test, copied
9800 from asyncwait-3.f90. Rewrite into C. Rewrite from float to int.
9802 2017-11-14 Tom de Vries <tom@codesourcery.com>
9804 * testsuite/libgomp.oacc-c-c++-common/asyncwait-1.c: Allow to run for
9807 2017-11-07 Jakub Jelinek <jakub@redhat.com>
9810 * testsuite/libgomp.c++/pr82835.C: New test.
9812 2017-11-06 Martin Liska <mliska@suse.cz>
9814 * testsuite/libgomp.c++/loop-2.C: Return a value
9815 for functions with non-void return type, or change type to void,
9816 or add -Wno-return-type for test.
9817 * testsuite/libgomp.c++/loop-4.C: Likewise.
9818 * testsuite/libgomp.c++/parallel-1.C: Likewise.
9819 * testsuite/libgomp.c++/shared-1.C: Likewise.
9820 * testsuite/libgomp.c++/single-1.C: Likewise.
9821 * testsuite/libgomp.c++/single-2.C: Likewise.
9823 2017-10-31 Tom de Vries <tom@codesourcery.com>
9825 * plugin/plugin-hsa.c (HSA_LOG): Remove semicolon after
9826 "do {} while (false)".
9827 (init_single_kernel, GOMP_OFFLOAD_async_run): Add missing semicolon
9828 after HSA_DEBUG call.
9830 2017-10-28 Jakub Jelinek <jakub@redhat.com>
9832 * target.c (struct gomp_coalesce_buf): New type.
9833 (MAX_COALESCE_BUF_SIZE, MAX_COALESCE_BUF_GAP): Define.
9834 (gomp_coalesce_buf_add, gomp_to_device_kind_p): New functions.
9835 (gomp_copy_host2dev): Add CBUF argument, if copying into
9836 the cached ranges, memcpy into buffer instead of copying
9838 (gomp_map_vars_existing, gomp_map_pointer, gomp_map_fields_existing):
9839 Add CBUF argument, pass it through to other calls.
9840 (gomp_map_vars): Aggregate copies from host to device if small enough
9841 and with small enough gaps in between into memcpy into a buffer and
9842 fewer host to device copies from the buffer.
9843 (gomp_update): Adjust gomp_copy_host2dev caller.
9845 2017-10-17 Thomas Schwinge <thomas@codesourcery.com>
9847 * testsuite/libgomp.oacc-fortran/declare-1.f90: Restore "dg-do
9849 * testsuite/libgomp.oacc-fortran/declare-2.f90: Likewise.
9850 * testsuite/libgomp.oacc-fortran/declare-3.f90: Likewise.
9851 * testsuite/libgomp.oacc-fortran/declare-4.f90: Likewise.
9852 * testsuite/libgomp.oacc-fortran/declare-5.f90: Likewise.
9854 2017-10-16 Tom de Vries <tom@codesourcery.com>
9856 * testsuite/libgomp.oacc-c-c++-common/declare-1.c: Don't require
9857 openacc_nvidia_accel_selected.
9858 * testsuite/libgomp.oacc-c-c++-common/declare-2.c: Same.
9859 * testsuite/libgomp.oacc-c-c++-common/declare-4.c: Same.
9860 * testsuite/libgomp.oacc-fortran/declare-2.f90: Same.
9861 * testsuite/libgomp.oacc-fortran/declare-4.f90: Same
9862 * testsuite/libgomp.oacc-fortran/declare-5.f90: Same.
9863 * testsuite/libgomp.oacc-c-c++-common/declare-5.c: Don't require
9864 openacc_nvidia_accel_selected. Skip for shared memory device.
9865 * testsuite/libgomp.oacc-fortran/declare-1.f90: Same.
9866 * testsuite/libgomp.oacc-fortran/declare-3.f90: Same.
9868 2017-10-09 Martin Jambor <mjambor@suse.cz>
9871 * testsuite/libgomp.hsa.c/pr82416.c: New test.
9873 2017-10-07 Tom de Vries <tom@codesourcery.com>
9875 * testsuite/libgomp.oacc-fortran/firstprivate-1.f90 (firstprivate):
9876 Remove acc_device_nvidia references.
9877 * testsuite/libgomp.oacc-fortran/parallel-reduction.f90 (reduction):
9880 2017-10-05 Tom de Vries <tom@codesourcery.com>
9882 * testsuite/libgomp.oacc-c-c++-common/loop-red-g-1.c (main): Remove
9883 vector_length(32) clause from acc parallel directive.
9884 * testsuite/libgomp.oacc-c-c++-common/routine-g-1.c (main): Same.
9886 2017-10-04 Tom de Vries <tom@codesourcery.com>
9888 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-3.c
9889 (main): Reduce sum of arr elements. Assert that hres is exactly
9890 representable in 32-bit floating point.
9891 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-4.c
9892 (main): Reduce sum of arr elements. Assert that hres and hmres are
9893 exactly representable in 32-bit floating point.
9894 * testsuite/libgomp.oacc-c-c++-common/reduction-7.c (gwv_np_4): Same.
9896 2017-09-28 Tom de Vries <tom@codesourcery.com>
9898 * testsuite/libgomp.c++/for-12.C: Remove superfluous -fopenmp option
9900 * testsuite/libgomp.c++/pr69393.C: Same.
9901 * testsuite/libgomp.c++/taskloop-1.C: Same.
9902 * testsuite/libgomp.c++/taskloop-3.C: Same.
9903 * testsuite/libgomp.c++/taskloop-4.C: Same.
9904 * testsuite/libgomp.c/for-4.c: Same.
9905 * testsuite/libgomp.c/pr66199-3.c: Same.
9906 * testsuite/libgomp.c/pr66199-4.c: Same.
9907 * testsuite/libgomp.c/pr66199-6.c: Same.
9908 * testsuite/libgomp.c/taskloop-1.c: Same.
9909 * testsuite/libgomp.c/taskloop-3.c: Same.
9910 * testsuite/libgomp.c/taskloop-4.c: Same.
9911 * testsuite/libgomp.fortran/aligned1.f03: Same.
9912 * testsuite/libgomp.fortran/condinc1.f: Same.
9913 * testsuite/libgomp.fortran/condinc3.f90: Same.
9914 * testsuite/libgomp.fortran/crayptr1.f90: Same.
9915 * testsuite/libgomp.fortran/crayptr2.f90: Same.
9916 * testsuite/libgomp.fortran/crayptr3.f90: Same.
9917 * testsuite/libgomp.fortran/omp_cond1.f: Same.
9918 * testsuite/libgomp.fortran/omp_cond3.F90: Same.
9919 * testsuite/libgomp.fortran/pr66199-1.f90: Same.
9920 * testsuite/libgomp.fortran/pr66199-2.f90: Same.
9921 * testsuite/libgomp.fortran/recursion1.f90: Same.
9922 * testsuite/libgomp.fortran/target2.f90: Same.
9923 * testsuite/libgomp.fortran/target5.f90: Same.
9924 * testsuite/libgomp.fortran/task3.f90: Same.
9926 2017-09-28 Tom de Vries <tom@codesourcery.com>
9928 * testsuite/libgomp.oacc-c-c++-common/loop-g-1.c (main): Remove
9929 vector_length(32) clause from acc parallel directive.
9930 * testsuite/libgomp.oacc-c-c++-common/loop-g-2.c (main): Same.
9932 2017-09-27 Tom de Vries <tom@codesourcery.com>
9934 * testsuite/libgomp.oacc-c-c++-common/parallel-reduction.c (main):
9935 Remove acc_device_nvidia references.
9937 2017-09-16 Tom de Vries <tom@codesourcery.com>
9940 * testsuite/libgomp.c-c++-common/pr81875.c: New test.
9942 2017-09-14 Tom de Vries <tom@codesourcery.com>
9944 * testsuite/libgomp.c++/cancel-taskgroup-1.C: Remove.
9945 * testsuite/libgomp.c/cancel-taskgroup-1.c: Move to ...
9946 * testsuite/libgomp.c-c++-common/cancel-taskgroup-1.c: ... here.
9947 * testsuite/libgomp.c/c.exp: Include test-cases from
9948 libgomp.c-c++-common.
9949 * testsuite/libgomp.c++/c++.exp: Same. Force c++-mode compilation of .c
9952 2017-09-14 Jakub Jelinek <jakub@redhat.com>
9955 * testsuite/libgomp.c++/pr81314.C: New test.
9957 2017-09-03 Gerald Pfeifer <gerald@pfeifer.com>
9959 * libgomp.texi (Top): www.openacc.org now uses https.
9960 (Enabling OpenACC): Ditto.
9961 (acc_get_num_devices): Ditto.
9962 (acc_set_device_type): Ditto.
9963 (acc_get_device_type): Ditto.
9964 (acc_set_device_num): Ditto.
9965 (acc_get_device_num): Ditto.
9966 (acc_async_test): Ditto.
9967 (acc_async_test_all): Ditto.
9969 (acc_wait_all): Ditto.
9970 (acc_wait_all_async): Ditto.
9971 (acc_wait_async): Ditto.
9973 (acc_shutdown): Ditto.
9974 (acc_on_device): Ditto.
9975 (acc_malloc): Ditto.
9977 (acc_copyin): Ditto.
9978 (acc_present_or_copyin): Ditto.
9979 (acc_create): Ditto.
9980 (acc_present_or_create): Ditto.
9981 (acc_copyout): Ditto.
9982 (acc_delete): Ditto.
9983 (acc_update_device): Ditto.
9984 (acc_update_self): Ditto.
9985 (acc_map_data): Ditto.
9986 (acc_unmap_data): Ditto.
9987 (acc_deviceptr): Ditto.
9988 (acc_hostptr): Ditto.
9989 (acc_is_present): Ditto.
9990 (acc_memcpy_to_device): Ditto.
9991 (acc_memcpy_from_device): Ditto.
9992 (acc_get_current_cuda_device): Ditto.
9993 (acc_get_current_cuda_context): Ditto.
9994 (acc_get_cuda_stream): Ditto.
9995 (acc_set_cuda_stream): Ditto.
9996 (ACC_DEVICE_TYPE): Ditto.
9997 (ACC_DEVICE_NUM): Ditto.
9998 (OpenACC Library Interoperability): Ditto.
10000 2017-08-09 Jakub Jelinek <jakub@redhat.com>
10003 * testsuite/libgomp.c/pr81687-1.c: New test.
10004 * testsuite/libgomp.c/pr81687-2.c: New test.
10006 2017-08-07 Jakub Jelinek <jakub@redhat.com>
10009 * testsuite/libgomp.c/pr69389.c: New test.
10010 * testsuite/libgomp.c++/pr69389.C: New test.
10012 2017-08-07 Tom de Vries <tom@codesourcery.com>
10014 PR middle-end/78266
10015 * testsuite/libgomp.oacc-c-c++-common/vprop-2.c: New test.
10016 * testsuite/libgomp.oacc-c-c++-common/vprop.c: Remove xfail.
10018 2017-07-27 Jakub Jelinek <jakub@redhat.com>
10021 * testsuite/libgomp.c/pr45784.c: New test.
10022 * testsuite/libgomp.c++/pr45784.C: New test.
10024 2017-07-19 Tom de Vries <tom@codesourcery.com>
10026 * testsuite/libgomp.oacc-c/vec.c: New test.
10028 2017-07-03 Tom de Vries <tom@codesourcery.com>
10030 * plugin/plugin-hsa.c: Fix secure_getenv.h include.
10032 2017-06-27 Tom de Vries <tom@codesourcery.com>
10034 * plugin/plugin-nvptx.c (notify_var): New function.
10035 (nvptx_exec): Use notify_var for GOMP_OPENACC_DIM.
10037 2017-06-27 Tom de Vries <tom@codesourcery.com>
10039 * env.c (parse_unsigned_long_1): Factor out of ...
10040 (parse_unsigned_long): ... here.
10041 (parse_int_1): Factor out of ...
10042 (parse_int): ... here.
10043 (parse_int_secure): New function.
10044 (initialize_env): Use parse_int_secure for GOMP_DEBUG.
10045 * secure_getenv.h: Factor out of ...
10046 * plugin/plugin-hsa.c: ... here.
10047 * testsuite/libgomp.oacc-c-c++-common/gomp-debug-env.c: New test.
10049 2017-06-21 Jakub Jelinek <jakub@redhat.com>
10052 * testsuite/libgomp.c++/pr81130.C: New test.
10054 2017-06-17 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10056 * testsuite/libgomp.fortran/strassen.f90: Remove dg-skip-if
10058 * testsuite/libgomp.oacc-c-c++-common/vprop.c: Remove
10059 dg-xfail-run-if default args.
10061 2017-06-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
10063 * testsuite/libgomp.c/pr39591-2.c: Fix test case.
10064 * testsuite/libgomp.c/pr39591-3.c: Likewise.
10066 2017-05-30 Jakub Jelinek <jakub@redhat.com>
10069 * config/linux/affinity.c (gomp_affinity_init_level_1): New function.
10070 (gomp_affinity_init_level): Use it. Always analyze the core and thread
10071 sibling lists, depending on level just pick up what CPUs to put
10072 together into a place vs. whether add multiple ordered places.
10074 2017-05-24 Thomas Schwinge <thomas@codesourcery.com>
10076 * openacc.h (acc_async_wait, acc_async_wait_all): New prototypes.
10077 * libgomp.map (OACC_2.0.1): Add these.
10078 * oacc-async.c (acc_async_wait, acc_async_wait_all): New aliases
10079 for "acc_wait", and "acc_wait_all", respectively.
10080 * openacc.f90 (acc_async_wait, acc_async_wait_all): New interfaces
10081 for "acc_wait", and "acc_wait_all", respectively.
10082 * openacc_lib.h (acc_async_wait, acc_async_wait_all): Likewise.
10083 * libgomp.texi (acc_wait, acc_wait_all): Update.
10084 * testsuite/libgomp.oacc-c-c++-common/par-reduction-2.c: Update.
10085 * testsuite/libgomp.oacc-fortran/par-reduction-2-1.f: New file.
10086 * testsuite/libgomp.oacc-fortran/par-reduction-2-2.f: Likewise.
10088 * openacc_lib.h (acc_pcopyin, acc_pcreate): Route to
10089 acc_present_or_copyin and acc_present_or_create procedures,
10091 * testsuite/libgomp.oacc-fortran/lib-32-1.f: Exercise these, and
10092 generally different variants of OpenACC Runtime Library functions.
10093 * testsuite/libgomp.oacc-fortran/lib-32-2.f: Likewise.
10095 * testsuite/libgomp.oacc-fortran/lib-32-1.f: New file.
10096 * testsuite/libgomp.oacc-fortran/lib-32-2.f: Likewise.
10098 * openacc.h (acc_pcopyin, acc_pcreate): Provide prototypes instead
10099 of preprocessor definitions.
10100 * libgomp.h (strong_alias): Guard by "#ifdef
10101 HAVE_ATTRIBUTE_ALIAS".
10102 * oacc-mem.c: Provide "acc_pcreate" as alias for
10103 "acc_present_or_create", and "acc_pcopyin" as alias for
10104 "acc_present_or_copyin".
10105 * libgomp.map: New version "OACC_2.0.1".
10106 (OACC_2.0.1): Add "acc_pcopyin", and "acc_pcreate".
10107 * testsuite/libgomp.oacc-c-c++-common/lib-38.c: Remove, merging
10108 its content into...
10109 * testsuite/libgomp.oacc-c-c++-common/lib-32.c: ... this file.
10112 * plugin/plugin-nvptx.c (nvptx_get_num_devices): Debugging output
10113 when disabling nvptx offloading.
10115 2017-05-23 Thomas Schwinge <thomas@codesourcery.com>
10117 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-2.c: Update.
10118 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Likewise.
10119 * testsuite/libgomp.oacc-fortran/kernels-loop-2.f95: Likewise.
10121 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Rewrite.
10122 * testsuite/lib/libgomp.exp
10123 (check_effective_target_openacc_nvidia_accel_configured): New
10125 * testsuite/libgomp.oacc-c++/c++.exp (check_effective_target_c)
10126 (check_effective_target_c++): New procs.
10127 * testsuite/libgomp.oacc-c/c.exp (check_effective_target_c)
10128 (check_effective_target_c++): Likewise.
10130 2017-05-22 Jakub Jelinek <jakub@redhat.com>
10132 PR middle-end/80809
10133 * testsuite/libgomp.c/pr80809-2.c: New test.
10134 * testsuite/libgomp.c/pr80809-3.c: New test.
10136 PR middle-end/80809
10137 * testsuite/libgomp.c/pr80809-1.c: New test.
10139 PR middle-end/80853
10140 * testsuite/libgomp.c/pr80853.c: New test.
10142 2017-05-19 Thomas Schwinge <thomas@codesourcery.com>
10144 * testsuite/libgomp.oacc-c++/template-reduction.C: Update.
10145 * testsuite/libgomp.oacc-c-c++-common/nested-2.c: Update.
10146 * testsuite/libgomp.oacc-fortran/data-4-2.f90: Likewise.
10147 * testsuite/libgomp.oacc-fortran/default-1.f90: Likewise.
10148 * testsuite/libgomp.oacc-fortran/non-scalar-data.f90: Likewise.
10150 * plugin/plugin-hsa.c (DLSYM_FN, init_hsa_runtime_functions):
10151 Debug output for failure.
10153 2017-05-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10155 * testsuite/lib/libgomp.exp: Load scanlang.exp.
10157 2017-04-27 Jakub Jelinek <jakub@redhat.com>
10160 * configure.tgt (*-*-aix*): Add -frandom-seed=$@ to XCFLAGS to avoid
10161 bootstrap compare failures.
10163 2017-04-20 Alexander Monakov <amonakov@ispras.ru>
10165 * testsuite/libgomp.c/target-36.c: New testcase.
10167 2017-04-13 Jakub Jelinek <jakub@redhat.com>
10169 * plugin/plugin-nvptx.c (cuda_lib_inited): Use signed char type
10172 2017-04-11 Jakub Jelinek <jakub@redhat.com>
10175 * testsuite/libgomp.c/pr80394.c: New test.
10177 2017-04-04 Jakub Jelinek <jakub@redhat.com>
10180 * config/posix/thread-stacksize.h: New file.
10181 * config/darwin/thread-stacksize.h: New file.
10182 * config/nvptx/thread-stacksize.h: New file.
10183 * env.c: Include thread-stacksize.h.
10184 (initialize_env): Initialize stacksize to GOMP_DEFAULT_STACKSIZE
10185 instead of 0. Call pthread_attr_setstacksize even if
10186 GOMP_DEFAULT_STACKSIZE is non-zero.
10188 2017-03-30 Jakub Jelinek <jakub@redhat.com>
10190 * env.c (initialize_env): Initialize stacksize to 0.
10192 2017-03-22 Cesar Philippidis <cesar@codesourcery.com>
10195 * testsuite/libgomp.oacc-c-c++-common/declare-vla.c: New test.
10197 2017-03-08 Jakub Jelinek <jakub@redhat.com>
10200 * testsuite/libgomp.c/pr79940.c: New test.
10202 2017-02-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10204 * testsuite/libgomp.c/pr48591.c: Enable on all __float128
10206 Add __float128 options.
10208 2017-02-11 John David Anglin <danglin@gcc.gnu.org>
10210 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: Remove
10211 hppa*-*-* dg-skip-if directive.
10213 2017-02-09 Jakub Jelinek <jakub@redhat.com>
10215 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: Move
10216 dg-skip-if directive into a comment.
10218 2017-02-09 Nathan Sidwell <nathan@codesourcery.com>
10219 Chung-Lin Tang <cltang@codesourcery.com>
10221 * testsuite/libgomp.oacc-c-c++-common/tile-1.c: New.
10222 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Adjust and
10223 add additional case.
10224 * testsuite/libgomp.oacc-c-c++-common/vprop.c: XFAIL under
10225 "openacc_nvidia_accel_selected".
10226 * libgomp.oacc-fortran/nested-function-1.f90 (test2):
10227 Add num_workers(8) clause.
10229 2017-02-08 John David Anglin <danglin@gcc.gnu.org>
10231 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: Skip on
10233 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-dbl.c: Don't
10234 include complex.h on hppa*-*-hpux*.
10235 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-flt.c: Likewise.
10237 2017-02-02 Thomas Schwinge <thomas@codesourcery.com>
10239 * plugin/plugin-nvptx.c (nvptx_exec): Make it static.
10241 * libgomp-plugin.h (GOMP_OFFLOAD_openacc_parallel): Rename to
10242 GOMP_OFFLOAD_openacc_exec. Adjust all users.
10243 (GOMP_OFFLOAD_openacc_get_current_cuda_device): Rename to
10244 GOMP_OFFLOAD_openacc_cuda_get_current_device. Adjust all users.
10245 (GOMP_OFFLOAD_openacc_get_current_cuda_context): Rename to
10246 GOMP_OFFLOAD_openacc_cuda_get_current_context. Adjust all users.
10247 (GOMP_OFFLOAD_openacc_get_cuda_stream): Rename to
10248 GOMP_OFFLOAD_openacc_cuda_get_stream. Adjust all users.
10249 (GOMP_OFFLOAD_openacc_set_cuda_stream): Rename to
10250 GOMP_OFFLOAD_openacc_cuda_set_stream. Adjust all users.
10252 2017-01-31 Thomas Schwinge <thomas@codesourcery.com>
10254 * libgomp-plugin.h: #include <stdbool.h>.
10255 (GOMP_OFFLOAD_get_name, GOMP_OFFLOAD_get_caps)
10256 (GOMP_OFFLOAD_get_type, GOMP_OFFLOAD_get_num_devices)
10257 (GOMP_OFFLOAD_init_device, GOMP_OFFLOAD_fini_device)
10258 (GOMP_OFFLOAD_version, GOMP_OFFLOAD_load_image)
10259 (GOMP_OFFLOAD_unload_image, GOMP_OFFLOAD_alloc, GOMP_OFFLOAD_free)
10260 (GOMP_OFFLOAD_dev2host, GOMP_OFFLOAD_host2dev)
10261 (GOMP_OFFLOAD_dev2dev, GOMP_OFFLOAD_can_run, GOMP_OFFLOAD_run)
10262 (GOMP_OFFLOAD_async_run, GOMP_OFFLOAD_openacc_parallel)
10263 (GOMP_OFFLOAD_openacc_register_async_cleanup)
10264 (GOMP_OFFLOAD_openacc_async_test)
10265 (GOMP_OFFLOAD_openacc_async_test_all)
10266 (GOMP_OFFLOAD_openacc_async_wait)
10267 (GOMP_OFFLOAD_openacc_async_wait_async)
10268 (GOMP_OFFLOAD_openacc_async_wait_all)
10269 (GOMP_OFFLOAD_openacc_async_wait_all_async)
10270 (GOMP_OFFLOAD_openacc_async_set_async)
10271 (GOMP_OFFLOAD_openacc_create_thread_data)
10272 (GOMP_OFFLOAD_openacc_destroy_thread_data)
10273 (GOMP_OFFLOAD_openacc_get_current_cuda_device)
10274 (GOMP_OFFLOAD_openacc_get_current_cuda_context)
10275 (GOMP_OFFLOAD_openacc_get_cuda_stream)
10276 (GOMP_OFFLOAD_openacc_set_cuda_stream): New prototypes.
10277 * libgomp.h (struct acc_dispatch_t, struct gomp_device_descr): Use
10279 * plugin/plugin-hsa.c (GOMP_OFFLOAD_load_image)
10280 (GOMP_OFFLOAD_unload_image): Fix argument types.
10282 2017-01-26 Jakub Jelinek <jakub@redhat.com>
10284 * testsuite/lib/libgomp.exp
10285 (check_effective_target_hsa_offloading_selected_nocache): Fix up
10286 check_compile invocation. Fix up removal of executable. Drop
10287 bogus "2>&1" argument.
10289 * testsuite/libgomp.fortran/declare-simd-4.f90: Add cleanup-modules
10292 2017-01-24 Pekka Jääskeläinen <pekka@parmance.com>
10293 Martin Jambor <mjambor@suse.cz>
10295 * plugin/hsa.h: Moved to top level include.
10296 * plugin/plugin-hsa.c: Chanfgd include of hsa.h accordingly.
10298 2017-01-21 Jakub Jelinek <jakub@redhat.com>
10301 * testsuite/Makefile.am (gcc_version): Use @get_gcc_base_ver@ instead
10302 of cat to get version from BASE-VER file.
10303 * testsuite/Makefile.in: Regenerated.
10305 2017-01-19 Jakub Jelinek <jakub@redhat.com>
10307 * plugin/cuda/cuda.h (CUdeviceptr): Typedef to unsigned long long even
10310 2017-01-17 Jakub Jelinek <jakub@redhat.com>
10312 * plugin/hsa.h: Add GCC runtime library exception.
10313 * plugin/hsa_ext_finalize.h: Likewise.
10315 * plugin/configfrag.ac: For --without-cuda-driver don't initialize
10316 CUDA_DRIVER_INCLUDE nor CUDA_DRIVER_LIB. If both
10317 CUDA_DRIVER_INCLUDE and CUDA_DRIVER_LIB are empty and linking small
10318 cuda program fails, define PLUGIN_NVPTX_DYNAMIC to 1 and use
10319 plugin/include/cuda as include dir and -ldl instead of -lcuda as
10320 library to link ptx plugin against.
10321 * plugin/plugin-nvptx.c: Include dlfcn.h if PLUGIN_NVPTX_DYNAMIC.
10322 (CUDA_CALLS): Define.
10323 (cuda_lib, cuda_lib_inited): New variables.
10324 (init_cuda_lib): New function.
10325 (CUDA_CALL_PREFIX): Define.
10326 (CUDA_CALL_ERET, CUDA_CALL_ASSERT): Use CUDA_CALL_PREFIX.
10327 (CUDA_CALL): Use FN instead of (FN).
10328 (CUDA_CALL_NOCHECK): Define.
10329 (cuda_error, fini_streams_for_device, select_stream_for_async,
10330 nvptx_attach_host_thread_to_device, nvptx_open_device, link_ptx,
10331 event_gc, nvptx_exec, nvptx_async_test, nvptx_async_test_all,
10332 nvptx_wait_all, nvptx_set_clocktick, GOMP_OFFLOAD_unload_image,
10333 nvptx_stacks_alloc, nvptx_stacks_free, GOMP_OFFLOAD_run): Use
10335 (nvptx_init): Call init_cuda_lib, if it fails, return false. Use
10337 (nvptx_get_num_devices): Call init_cuda_lib, if it fails, return 0.
10338 Use CUDA_CALL_NOCHECK.
10339 * plugin/cuda/cuda.h: New file.
10340 * config.h.in: Regenerated.
10341 * configure: Regenerated.
10344 * configure.ac: Add GCC_BASE_VER.
10345 * Makefile.am (gcc_version): Use @get_gcc_base_ver@ instead of cat to
10346 get version from BASE-VER file.
10347 * testsuite/Makefile.in: Regenerated.
10348 * configure: Regenerated.
10349 * Makefile.in: Regenerated.
10351 2017-01-09 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
10354 * Makefile.am: Make fincludedir multilib-aware.
10355 * Makefile.in: Regenerate.
10357 2017-01-01 Jakub Jelinek <jakub@redhat.com>
10359 Update copyright years.
10361 * libgomp.texi: Bump @copying's copyright year.
10363 2016-12-02 Sebastian Huber <sebastian.huber@embedded-brains.de>
10365 * libgomp/config/rtems/pool.h (gomp_thread_pool_reservoir): Use
10366 pthread_spinlock_t instead of gomp_mutex_t lock.
10367 (gomp_get_thread_pool): Likewise.
10368 (gomp_release_thread_pool): Likewise.
10369 * libgomp/config/rtems/proc.c (allocate_thread_pool_reservoir):
10372 2016-12-02 Sebastian Huber <sebastian.huber@embedded-brains.de>
10374 * config/rtems/pool.h (gomp_get_thread_pool): Return proper
10375 thread pool in case nthreads == 1.
10377 2016-11-30 Alexander Monakov <amonakov@ispras.ru>
10379 * config/nvptx/env.c: Delete.
10380 * icv.c: Move definitions of ICV variables back ...
10381 * env.c: ...here. Do not compile environment-related functionality if
10382 LIBGOMP_OFFLOADED_ONLY is set.
10384 2016-11-30 Alexander Monakov <amonakov@ispras.ru>
10386 * configure.ac [nvptx*-*-*] (libgomp_offloaded_only): Set and use it...
10387 (LIBGOMP_OFFLOADED_ONLY): ...here; new define.
10388 * configure: Regenerate.
10389 * config.h.in: Likewise.
10391 2016-11-30 Alexander Monakov <amonakov@ispras.ru>
10393 * Makefile.in: Regenerate with automake-1.11.6.
10394 * aclocal.m4: Likewise.
10395 * configure: Likewise.
10396 * testsuite/Makefile.in: Likewise.
10398 2016-11-28 Alexander Monakov <amonakov@ispras.ru>
10400 * config/nvptx/critical.c: Delete to use generic implementation.
10402 2016-11-28 Jonas Hahnfeld <Hahnfeld@itc.rwth-aachen.de>
10404 * config/linux/affinity.c [!HAVE_PTHREAD_AFFINITY_NP]: Include
10405 ../../affinity.c as fallback.
10406 * config/nvptx/affinity.c: Delete to use fallback implementation.
10408 2016-11-23 Alexander Monakov <amonakov@ispras.ru>
10409 Jakub Jelinek <jakub@redhat.com>
10410 Dmitry Melnik <dm@ispras.ru>
10412 * Makefile.am (libgomp_la_SOURCES): Add atomic.c, icv.c, icv-device.c.
10413 * Makefile.in. Regenerate.
10414 * configure.ac [nvptx*-*-*] (libgomp_use_pthreads): Set and use it...
10415 (LIBGOMP_USE_PTHREADS): ...here; new define.
10416 * configure: Regenerate.
10417 * config.h.in: Likewise.
10418 * config/posix/affinity.c: Move to...
10419 * affinity.c: ...here (new file). Guard use of Pthreads-specific
10420 interface by LIBGOMP_USE_PTHREADS.
10421 * critical.c: Split out GOMP_atomic_{start,end} into...
10422 * atomic.c: ...here (new file).
10423 * env.c: Split out ICV definitions into...
10424 * icv.c: ...here (new file) and...
10425 * icv-device.c: ...here. New file.
10426 * config/linux/lock.c (gomp_init_lock_30): Move to generic lock.c.
10427 (gomp_destroy_lock_30): Ditto.
10428 (gomp_set_lock_30): Ditto.
10429 (gomp_unset_lock_30): Ditto.
10430 (gomp_test_lock_30): Ditto.
10431 (gomp_init_nest_lock_30): Ditto.
10432 (gomp_destroy_nest_lock_30): Ditto.
10433 (gomp_set_nest_lock_30): Ditto.
10434 (gomp_unset_nest_lock_30): Ditto.
10435 (gomp_test_nest_lock_30): Ditto.
10437 * config/nvptx/lock.c: New.
10438 * config/nvptx/bar.c: New.
10439 * config/nvptx/bar.h: New.
10440 * config/nvptx/doacross.h: New.
10441 * config/nvptx/error.c: New.
10442 * config/nvptx/icv-device.c: New.
10443 * config/nvptx/mutex.h: New.
10444 * config/nvptx/pool.h: New.
10445 * config/nvptx/proc.c: New.
10446 * config/nvptx/ptrlock.h: New.
10447 * config/nvptx/sem.h: New.
10448 * config/nvptx/simple-bar.h: New.
10449 * config/nvptx/target.c: New.
10450 * config/nvptx/task.c: New.
10451 * config/nvptx/team.c: New.
10452 * config/nvptx/time.c: New.
10453 * config/posix/simple-bar.h: New.
10454 * libgomp.h: Guard pthread.h inclusion. Include simple-bar.h.
10455 (gomp_num_teams_var): Declare.
10456 (struct gomp_thread_pool): Change threads_dock member to
10457 gomp_simple_barrier_t.
10458 [__nvptx__] (gomp_thread): New implementation.
10459 (gomp_thread_attr): Guard by LIBGOMP_USE_PTHREADS.
10460 (gomp_thread_destructor): Ditto.
10461 (gomp_init_thread_affinity): Ditto.
10462 * team.c: Guard uses of Pthreads-specific interfaces by
10463 LIBGOMP_USE_PTHREADS. Adjust all uses of threads_dock.
10464 (gomp_free_thread) [__nvptx__]: Do not call 'free'.
10465 * config/nvptx/alloc.c: Delete.
10466 * config/nvptx/barrier.c: Ditto.
10467 * config/nvptx/fortran.c: Ditto.
10468 * config/nvptx/iter.c: Ditto.
10469 * config/nvptx/iter_ull.c: Ditto.
10470 * config/nvptx/loop.c: Ditto.
10471 * config/nvptx/loop_ull.c: Ditto.
10472 * config/nvptx/ordered.c: Ditto.
10473 * config/nvptx/parallel.c: Ditto.
10474 * config/nvptx/priority_queue.c: Ditto.
10475 * config/nvptx/sections.c: Ditto.
10476 * config/nvptx/single.c: Ditto.
10477 * config/nvptx/splay-tree.c: Ditto.
10478 * config/nvptx/work.c: Ditto.
10479 * testsuite/libgomp.fortran/fortran.exp (lang_link_flags): Pass
10480 -foffload=-lgfortran in addition to -lgfortran.
10481 * testsuite/libgomp.oacc-fortran/fortran.exp (lang_link_flags): Ditto.
10482 * plugin/plugin-nvptx.c: Include <limits.h>.
10483 (struct targ_fn_descriptor): Add new fields.
10484 (struct ptx_device): Ditto. Set them...
10485 (nvptx_open_device): ...here.
10486 (nvptx_adjust_launch_bounds): New.
10487 (nvptx_host2dev): Allow NULL 'nvthd'.
10488 (nvptx_dev2host): Ditto.
10489 (GOMP_OFFLOAD_get_caps): Add GOMP_OFFLOAD_CAP_OPENMP_400.
10490 (link_ptx): Adjust log sizes.
10491 (nvptx_host2dev): Allow NULL 'nvthd'.
10492 (nvptx_dev2host): Ditto.
10493 (nvptx_set_clocktick): New. Use it...
10494 (GOMP_OFFLOAD_load_image): ...here. Set new targ_fn_descriptor
10496 (GOMP_OFFLOAD_dev2dev): New.
10497 (nvptx_adjust_launch_bounds): New.
10498 (nvptx_stacks_size): New.
10499 (nvptx_stacks_alloc): New.
10500 (nvptx_stacks_free): New.
10501 (GOMP_OFFLOAD_run): New.
10502 (GOMP_OFFLOAD_async_run): New (stub).
10504 2016-11-23 Martin Jambor <mjambor@suse.cz>
10506 * testsuite/libgomp.hsa.c/bits-insns.c: New test.
10507 * testsuite/libgomp.hsa.c/tiling-1.c: Likewise.
10508 * testsuite/libgomp.hsa.c/tiling-2.c: Likewise.
10510 2016-11-23 Martin Liska <mliska@suse.cz>
10511 Martin Jambor <mjambor@suse.cz>
10513 * plugin/hsa.h: New file.
10514 * plugin/hsa_ext_finalize.h: New file.
10515 * plugin/configfrag.ac: Remove hsa-kmt-lib test. Added checks for
10516 header file unistd.h, and functions secure_getenv, __secure_getenv,
10517 getuid, geteuid, getgid and getegid.
10518 * plugin/Makefrag.am (libgomp_plugin_hsa_la_CPPFLAGS): Added
10520 * plugin/plugin-hsa.c: Include config.h, inttypes.h and stdbool.h.
10521 Handle various cases of secure_getenv presence, add an implementation
10522 when we can test effective UID and GID.
10523 (struct hsa_runtime_fn_info): New structure.
10524 (hsa_runtime_fn_info hsa_fns): New variable.
10525 (hsa_runtime_lib): Likewise.
10526 (support_cpu_devices): Likewise.
10527 (init_enviroment_variables): Load newly introduced ENV
10529 (hsa_warn): Call hsa run-time functions via hsa_fns structure.
10530 (hsa_fatal): Likewise.
10531 (DLSYM_FN): New macro.
10532 (init_hsa_runtime_functions): New function.
10533 (suitable_hsa_agent_p): Call hsa run-time functions via hsa_fns
10534 structure. Depending on environment, also allow CPU devices.
10535 (init_hsa_context): Call hsa run-time functions via hsa_fns structure.
10536 (get_kernarg_memory_region): Likewise.
10537 (GOMP_OFFLOAD_init_device): Likewise.
10538 (destroy_hsa_program): Likewise.
10539 (init_basic_kernel_info): New function.
10540 (GOMP_OFFLOAD_load_image): Use it.
10541 (create_and_finalize_hsa_program): Call hsa run-time functions via
10543 (create_single_kernel_dispatch): Likewise.
10544 (release_kernel_dispatch): Likewise.
10545 (init_single_kernel): Likewise.
10546 (parse_target_attributes): Allow up multiple HSA grid dimensions.
10547 (get_group_size): New function.
10548 (run_kernel): Likewise.
10549 (GOMP_OFFLOAD_run): Outline most functionality to run_kernel.
10550 (GOMP_OFFLOAD_fini_device): Call hsa run-time functions via hsa_fns
10552 * testsuite/lib/libgomp.exp: Remove hsa_kmt_lib support.
10553 * testsuite/libgomp-test-support.exp.in: Likewise.
10554 * Makefile.in: Regenerated.
10555 * aclocal.m4: Likewise.
10556 * config.h.in: Likewise.
10557 * configure: Likewise.
10558 * testsuite/Makefile.in: Likewise.
10560 2016-11-15 Martin Jambor <mjambor@suse.cz>
10561 Alexander Monakov <amonakov@ispras.ru>
10563 * testsuite/libgomp.fortran/examples-4/device-1.f90 (e_57_1): Add
10564 mapping clauses to target constructs.
10565 * testsuite/libgomp.fortran/examples-4/device-3.f90 (e_57_3): Ditto.
10567 2016-11-15 Matthias Klose <doko@ubuntu.com>
10569 * configure: Regenerate.
10571 2016-11-10 Jakub Jelinek <jakub@redhat.com>
10573 * omp_lib.f90.in (openmp_version): Change to 201511 from 201307.
10574 * omp_lib.h.in (openmp_version): Likewise.
10575 * testsuite/libgomp.fortran/openmp_version-1.f: Expect 201511 instead
10577 * testsuite/libgomp.fortran/openmp_version-2.f90: Likewise.
10579 * testsuite/libgomp.fortran/examples-4/declare_target-1.f90
10580 (fib_wrapper): Add map(from: x) clause.
10581 * testsuite/libgomp.fortran/examples-4/declare_target-2.f90
10582 (e_53_2): Likewise.
10583 * testsuite/libgomp.fortran/examples-4/declare_target-4.f90
10584 (accum): Add map(tmp) clause.
10585 * testsuite/libgomp.fortran/examples-4/declare_target-5.f90
10586 (accum): Add map(tofrom: tmp) clause.
10587 * testsuite/libgomp.fortran/examples-4/target_data-3.f90
10588 (gramSchmidt): Likewise.
10589 * testsuite/libgomp.fortran/examples-4/teams-2.f90 (dotprod): Add
10590 map(tofrom: sum) clause.
10591 * testsuite/libgomp.fortran/nestedfn5.f90 (foo): Add twice
10592 map (alloc: a, l) clause. Add defaultmap(tofrom: scalar) clause.
10593 * testsuite/libgomp.fortran/pr66199-2.f90: Adjust for linear clause
10594 only allowed on the loop iterator.
10595 * testsuite/libgomp.fortran/target4.f90 (foo): Add map(t) clause.
10596 * testsuite/libgomp.fortran/taskloop2.f90: New test.
10597 * testsuite/libgomp.fortran/taskloop4.f90: New test.
10598 * testsuite/libgomp.fortran/doacross1.f90: New test.
10599 * testsuite/libgomp.fortran/doacross3.f90: New test.
10600 * testsuite/libgomp.fortran/taskloop1.f90: New test.
10601 * testsuite/libgomp.fortran/taskloop3.f90: New test.
10602 * testsuite/libgomp.fortran/doacross2.f90: New test.
10603 * testsuite/libgomp.c/doacross-1.c (main): Add missing
10604 #pragma omp atomic read.
10605 * testsuite/libgomp.c/doacross-2.c (main): Likewise.
10606 * testsuite/libgomp.c/doacross-3.c (main): Likewise.
10608 2016-11-02 Cesar Philippidis <cesar@codesourcery.com>
10609 Nathan Sidwell <nathan@acm.org>
10611 * plugin/plugin-nvptx.c (nvptx_exec): Interrogate board attributes
10612 to determine default geometry.
10613 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Set gang
10616 2016-11-01 Jakub Jelinek <jakub@redhat.com>
10618 * hashtab.h: Use standard GPLv3 with runtime exception
10621 2016-10-27 Aldy Hernandez <aldyh@redhat.com>
10623 * oacc-init.c (goacc_new_thread): Use sizeof of the appropriate
10624 size when allocating new thread.
10626 2016-09-14 Marek Polacek <polacek@redhat.com>
10628 * testsuite/libgomp.c++/atomic-3.C: Use -Wno-deprecated.
10630 2016-08-19 Jakub Jelinek <jakub@redhat.com>
10633 * testsuite/libgomp.fortran/pr71014.f90: New test.
10635 2016-08-18 Chung-Lin Tang <cltang@codesourcery.com>
10637 PR middle-end/70895
10638 * testsuite/libgomp.oacc-fortran/reduction-7.f90: Add explicit
10639 firstprivate clauses.
10640 * testsuite/libgomp.oacc-fortran/reduction-6.f90: Remove explicit
10642 * testsuite/libgomp.oacc-c-c++-common/reduction-7.c: Likewise.
10643 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-flt.c: Likewise.
10644 * testsuite/libgomp.oacc-c-c++-common/reduction-flt.c: Likewise.
10645 * testsuite/libgomp.oacc-c-c++-common/collapse-2.c: Likewise.
10646 * testsuite/libgomp.oacc-c-c++-common/loop-red-wv-1.c: Likewise.
10647 * testsuite/libgomp.oacc-c-c++-common/collapse-4.c: Likewise.
10648 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c: Likewise.
10649 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-dbl.c: Likewise.
10650 * testsuite/libgomp.oacc-c-c++-common/loop-red-g-1.c: Likewise.
10651 * testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c: Likewise.
10652 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c: Likewise.
10653 * testsuite/libgomp.oacc-c-c++-common/reduction-dbl.c: Likewise.
10655 2016-08-14 Chung-Lin Tang <cltang@codesourcery.com>
10658 * testsuite/libgomp.oacc-fortran/host_data-1.f90: New test.
10660 2016-08-08 Jakub Jelinek <jakub@redhat.com>
10663 * testsuite/libgomp.c++/pr58706.C: New test.
10665 2016-08-04 Thomas Schwinge <thomas@codesourcery.com>
10667 * testsuite/libgomp.oacc-c++/routine-1-auto.C: New file.
10668 * testsuite/libgomp.oacc-c++/routine-1-template-auto.C: Likewise.
10669 * testsuite/libgomp.oacc-c++/routine-1-template-trailing-return-type.C:
10671 * testsuite/libgomp.oacc-c++/routine-1-template.C: Likewise.
10672 * testsuite/libgomp.oacc-c++/routine-1-trailing-return-type.C:
10674 * testsuite/libgomp.oacc-c-c++-common/routine-1.c: Adjust.
10676 * testsuite/libgomp.oacc-c-c++-common/crash-1.c: Make it a "link"
10677 test, and don't hardcode -O0.
10679 2016-08-03 Nathan Sidwell <nathan@codesourcery.com>
10681 * testsuite/libgomp.oacc-c-c++-common/crash-1.c: New.
10683 2016-07-15 Cesar Philippidis <cesar@codesourcery.com>
10685 * testsuite/libgomp.oacc-c-c++-common/zero_length_subarrays.c: New
10688 2016-07-03 H.J. Lu <hongjiu.lu@intel.com>
10690 PR middle-end/71734
10691 * testsuite/libgomp.fortran/pr71734-1.f90: New test.
10692 * testsuite/libgomp.fortran/pr71734-2.f90: Likewise.
10694 2016-07-01 Jakub Jelinek <jakub@redhat.com>
10697 * testsuite/libgomp.fortran/associate3.f90: New test.
10699 2016-06-17 Jakub Jelinek <jakub@redhat.com>
10701 * testsuite/libgomp.c++/target-21.C: New test.
10703 2016-06-16 Jakub Jelinek <jakub@redhat.com>
10705 * testsuite/libgomp.c++/target-20.C: New test.
10707 2016-06-10 Thomas Schwinge <thomas@codesourcery.com>
10708 Cesar Philippidis <cesar@codesourcery.com>
10710 PR middle-end/71373
10711 * libgomp.oacc-c/nested-function-1.c: New file.
10712 * libgomp.oacc-c/nested-function-2.c: Likewise.
10713 * libgomp.oacc-fortran/nested-function-1.f90: Likewise.
10714 * libgomp.oacc-fortran/nested-function-2.f90: Likewise.
10715 * libgomp.oacc-fortran/nested-function-3.f90: Likewise.
10717 2016-06-10 Thomas Schwinge <thomas@codesourcery.com>
10720 * testsuite/libgomp.oacc-c-c++-common/cache-1.c: #include
10721 "../../../gcc/testsuite/c-c++-common/goacc/cache-1.c".
10722 * testsuite/libgomp.oacc-fortran/cache-1.f95: New file.
10724 2016-06-03 Chung-Lin Tang <cltang@codesourcery.com>
10726 * testsuite/libgomp.oacc-fortran/reduction-8.f90: New testcase.
10727 * testsuite/libgomp.oacc-c-c++-common/reduction-8.c: New testcase.
10729 2016-06-01 Cesar Philippidis <cesar@codesourcery.com>
10732 * testsuite/libgomp.oacc-c-c++-common/pr70688.c: New file.
10734 2016-05-26 Jakub Jelinek <jakub@redhat.com>
10736 * testsuite/libgomp.c/doacross-1.c (main): Use schedule(static)
10737 instead of invalid schedule(static, 0).
10738 * testsuite/libgomp.c/doacross-2.c (main): Likewise.
10740 2016-05-26 Chung-Lin Tang <cltang@codesourcery.com>
10742 * oacc-plugin.h (GOMP_PLUGIN_async_unmap_vars): Add int parameter.
10743 * oacc-plugin.c (GOMP_PLUGIN_async_unmap_vars): Add 'int async'
10744 parameter, use to set async stream around call to gomp_unmap_vars,
10745 call gomp_unmap_vars() with 'do_copyfrom' set to true.
10746 * plugin/plugin-nvptx.c (struct ptx_event): Add 'int val' field.
10747 (event_gc): Adjust event handling loop, collect PTX_EVT_ASYNC_CLEANUP
10748 events and call GOMP_PLUGIN_async_unmap_vars() for each of them.
10749 (event_add): Add int parameter, initialize 'val' field when
10750 adding new ptx_event struct.
10751 (nvptx_evec): Adjust event_add() call arguments.
10752 (nvptx_host2dev): Likewise.
10753 (nvptx_dev2host): Likewise.
10754 (nvptx_wait_async): Likewise.
10755 (nvptx_wait_all_async): Likewise.
10756 (GOMP_OFFLOAD_openacc_register_async_cleanup): Add async parameter,
10757 pass to event_add() call.
10758 * oacc-host.c (host_openacc_register_async_cleanup): Add 'int async'
10760 * oacc-mem.c (gomp_acc_remove_pointer): Adjust async case to
10761 call openacc.register_async_cleanup_func() hook.
10762 * oacc-parallel.c (GOACC_parallel_keyed): Likewise.
10763 * target.c (gomp_copy_from_async): Delete function.
10764 (gomp_map_vars): Remove async_refcount.
10765 (gomp_unmap_vars): Likewise.
10766 (gomp_load_image_to_device): Likewise.
10767 (omp_target_associate_ptr): Likewise.
10768 * libgomp.h (struct splay_tree_key_s): Remove async_refcount.
10769 (acc_dispatch_t.register_async_cleanup_func): Add int parameter.
10770 (gomp_copy_from_async): Remove.
10772 2016-05-26 Chung-Lin Tang <cltang@codesourcery.com>
10774 * target.c (gomp_device_copy): New function.
10775 (gomp_copy_host2dev): Likewise.
10776 (gomp_copy_dev2host): Likewise.
10777 (gomp_free_device_memory): Likewise.
10778 (gomp_map_vars_existing): Adjust to call gomp_copy_host2dev.
10779 (gomp_map_pointer): Likewise.
10780 (gomp_map_vars): Adjust to call gomp_copy_host2dev, handle
10781 NULL value from alloc_func plugin hook.
10782 (gomp_unmap_tgt): Adjust to call gomp_free_device_memory.
10783 (gomp_copy_from_async): Adjust to call gomp_copy_dev2host.
10784 (gomp_unmap_vars): Likewise.
10785 (gomp_update): Adjust to call gomp_copy_dev2host and
10786 gomp_copy_host2dev functions.
10787 (gomp_unload_image_from_device): Handle false value from
10788 unload_image_func plugin hook.
10789 (gomp_init_device): Handle false value from init_device_func
10791 (gomp_exit_data): Adjust to call gomp_copy_dev2host.
10792 (omp_target_free): Adjust to call gomp_free_device_memory.
10793 (omp_target_memcpy): Handle return values from host2dev_func,
10794 dev2host_func, and dev2dev_func plugin hooks.
10795 (omp_target_memcpy_rect_worker): Likewise.
10796 (gomp_target_fini): Handle false value from fini_device_func
10798 * libgomp.h (struct gomp_device_descr): Adjust return type of
10799 init_device_func, fini_device_func, unload_image_func, free_func,
10800 dev2host_func,host2dev_func, and dev2dev_func plugin hooks to 'bool'.
10801 * oacc-init.c (acc_shutdown_1): Handle false value from
10802 fini_device_func plugin hook.
10803 * oacc-host.c (host_init_device): Change return type to bool.
10804 (host_fini_device): Likewise.
10805 (host_unload_image): Likewise.
10806 (host_free): Likewise.
10807 (host_dev2host): Likewise.
10808 (host_host2dev): Likewise.
10809 * oacc-mem.c (acc_free): Handle plugin hook fatal error case.
10810 (acc_memcpy_to_device): Likewise.
10811 (acc_memcpy_from_device): Likewise.
10812 (delete_copyout): Add libfnname parameter, handle free_func
10813 hook fatal error case.
10814 (acc_delete): Adjust delete_copyout call.
10815 (acc_copyout): Likewise.
10816 (update_dev_host): Move gomp_mutex_unlock to after
10817 host2dev/dev2host hook calls.
10819 * plugin/plugin-hsa.c (hsa_warn): Adjust 'hsa_error' local variable
10820 to 'hsa_error_msg', for clarity.
10821 (hsa_fatal): Likewise.
10822 (hsa_error): New function.
10823 (init_hsa_context): Change return type to bool, adjust to return
10825 (GOMP_OFFLOAD_get_num_devices): Adjust to handle init_hsa_context
10827 (GOMP_OFFLOAD_init_device): Change return type to bool, adjust to
10828 return false on error.
10829 (get_agent_info): Adjust to return NULL on error.
10830 (destroy_hsa_program): Change return type to bool, adjust to
10831 return false on error.
10832 (GOMP_OFFLOAD_load_image): Adjust to return -1 on error.
10833 (destroy_module): Change return type to bool, adjust to
10834 return false on error.
10835 (GOMP_OFFLOAD_unload_image): Likewise.
10836 (GOMP_OFFLOAD_fini_device): Likewise.
10837 (GOMP_OFFLOAD_alloc): Change to return NULL when called.
10838 (GOMP_OFFLOAD_free): Change to return false when called.
10839 (GOMP_OFFLOAD_dev2host): Likewise.
10840 (GOMP_OFFLOAD_host2dev): Likewise.
10841 (GOMP_OFFLOAD_dev2dev): Likewise.
10843 * plugin/plugin-nvptx.c (CUDA_CALL_ERET): New convenience macro.
10844 (CUDA_CALL): Likewise.
10845 (CUDA_CALL_ASSERT): Likewise.
10846 (map_init): Change return type to bool, use CUDA_CALL* macros.
10847 (map_fini): Likewise.
10848 (init_streams_for_device): Change return type to bool, adjust
10850 (fini_streams_for_device): Change return type to bool, adjust
10852 (select_stream_for_async): Release stream_lock before calls to
10853 GOMP_PLUGIN_fatal, adjust call to map_init.
10854 (nvptx_init): Use CUDA_CALL* macros.
10855 (nvptx_attach_host_thread_to_device): Change return type to bool,
10856 use CUDA_CALL* macros.
10857 (nvptx_open_device): Use CUDA_CALL* macros.
10858 (nvptx_close_device): Change return type to bool, use CUDA_CALL*
10860 (nvptx_get_num_devices): Use CUDA_CALL* macros.
10861 (link_ptx): Change return type to bool, use CUDA_CALL* macros.
10862 (nvptx_exec): Use CUDA_CALL* macros.
10863 (nvptx_alloc): Use CUDA_CALL* macros.
10864 (nvptx_free): Change return type to bool, use CUDA_CALL* macros.
10865 (nvptx_host2dev): Likewise.
10866 (nvptx_dev2host): Likewise.
10867 (nvptx_wait): Use CUDA_CALL* macros.
10868 (nvptx_wait_async): Likewise.
10869 (nvptx_wait_all): Likewise.
10870 (nvptx_wait_all_async): Likewise.
10871 (nvptx_set_cuda_stream): Adjust order of stream_lock acquire,
10872 use CUDA_CALL* macros, adjust call to map_fini.
10873 (GOMP_OFFLOAD_init_device): Change return type to bool,
10874 adjust code accordingly.
10875 (GOMP_OFFLOAD_fini_device): Likewise.
10876 (GOMP_OFFLOAD_load_image): Adjust calls to
10877 nvptx_attach_host_thread_to_device/link_ptx to handle errors,
10878 use CUDA_CALL* macros.
10879 (GOMP_OFFLOAD_unload_image): Change return type to bool, adjust
10881 (GOMP_OFFLOAD_alloc): Adjust calls to code to handle error return.
10882 (GOMP_OFFLOAD_free): Change return type to bool, adjust calls to
10883 handle error return.
10884 (GOMP_OFFLOAD_dev2host): Likewise.
10885 (GOMP_OFFLOAD_host2dev): Likewise.
10886 (GOMP_OFFLOAD_openacc_register_async_cleanup): Use CUDA_CALL* macros.
10887 (GOMP_OFFLOAD_openacc_create_thread_data): Likewise.
10889 2016-05-24 Cesar Philippidis <cesar@codesourcery.com>
10891 * oacc-mem.c (acc_malloc): Update handling of shared-memory targets.
10892 (acc_free): Likewise.
10893 (acc_memcpy_to_device): Likewise.
10894 (acc_memcpy_from_device): Likewise.
10895 (acc_deviceptr): Likewise.
10896 (acc_hostptr): Likewise.
10897 (acc_is_present): Likewise.
10898 (acc_map_data): Likewise.
10899 (acc_unmap_data): Likewise.
10900 (present_create_copy): Likewise.
10901 (delete_copyout): Likewise.
10902 (update_dev_host): Likewise.
10903 * testsuite/libgomp.oacc-c-c++-common/asyncwait-1.c: Remove xfail.
10904 * testsuite/libgomp.oacc-c-c++-common/data-2-lib.c: New test.
10905 * testsuite/libgomp.oacc-c-c++-common/data-2.c: Adjust test.
10906 * testsuite/libgomp.oacc-c-c++-common/data-3.c: Likewise.
10907 * testsuite/libgomp.oacc-c-c++-common/enter_exit-lib.c: New test.
10908 * testsuite/libgomp.oacc-c-c++-common/lib-13.c: Adjust test so that
10909 it only runs on nvptx targets.
10910 * testsuite/libgomp.oacc-c-c++-common/lib-14.c: Likewise.
10911 * testsuite/libgomp.oacc-c-c++-common/lib-15.c: Likewise.
10912 * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
10913 * testsuite/libgomp.oacc-c-c++-common/lib-17.c: Likewise.
10914 * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
10915 * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
10916 * testsuite/libgomp.oacc-c-c++-common/lib-21.c: Likewise.
10917 * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Likewise.
10918 * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
10919 * testsuite/libgomp.oacc-c-c++-common/lib-24.c: Likewise.
10920 * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
10921 * testsuite/libgomp.oacc-c-c++-common/lib-28.c: Likewise.
10922 * testsuite/libgomp.oacc-c-c++-common/lib-29.c: Likewise.
10923 * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
10924 * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
10925 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
10926 * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Likewise.
10927 * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
10928 * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Likewise.
10929 * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
10930 * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Likewise.
10931 * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
10932 * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
10934 2016-05-23 Martin Jambor <mjambor@suse.cz>
10936 * testsuite/libgomp.hsa.c/switch-sbr-2.c: New test.
10938 2016-05-17 Chung-Lin Tang <cltang@codesourcery.com>
10940 * oacc-init.c (acc_init): Remove !cached_base_dev condition on call
10941 to gomp_init_targets_once.
10942 (acc_set_device_type): Remove !cached_base_dev condition on call to
10943 gomp_init_targets_once, move call to before acc_device_lock acquire,
10945 (acc_get_device_num): Remove !cached_base_dev condition on call to
10946 gomp_init_targets_once.
10947 (acc_set_device_num): Likewise.
10949 2016-05-16 Martin Jambor <mjambor@suse.cz>
10951 * testsuite/libgomp.hsa.c/complex-align-2.c: New test.
10953 2016-05-02 Nathan Sidwell <nathan@codesourcery.com>
10955 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Adjust
10956 expected partitioning.
10958 2016-04-29 Cesar Philippidis <cesar@codesourcery.com>
10960 PR middle-end/70626
10961 * testsuite/libgomp.oacc-c++/template-reduction.C: Adjust test.
10962 * testsuite/libgomp.oacc-c-c++-common/combined-reduction.c: New test.
10963 * testsuite/libgomp.oacc-fortran/combined-reduction.f90: New test.
10965 2016-04-21 Alexander Monakov <amonakov@ispras.ru>
10967 * plugin/plugin-nvptx.c (map_fini): Make cuMemFreeHost error
10970 2016-04-19 Jakub Jelinek <jakub@redhat.com>
10972 PR middle-end/70680
10973 * testsuite/libgomp.c/pr70680-1.c: New test.
10974 * testsuite/libgomp.c/pr70680-2.c: New test.
10976 2016-04-14 Cesar Philippidis <cesar@codesourcery.com>
10978 * testsuite/libgomp.oacc-fortran/non-scalar-data.f90: Don't
10979 pass parameter variables to subroutines.
10981 2016-04-14 Cesar Philippidis <cesar@codesourcery.com>
10983 PR middle-end/70643
10984 * testsuite/libgomp.oacc-fortran/pr70643.f90: New test.
10986 2016-04-13 Cesar Philippidis <cesar@codesourcery.com>
10989 * testsuite/libgomp.oacc-c-c++-common/reduction-1.c: Adjust test.
10990 * testsuite/libgomp.oacc-c-c++-common/reduction-2.c: Likewise.
10992 2016-04-12 Thomas Schwinge <thomas@codesourcery.com>
10994 * libgomp_g.h: Rename GOACC_parallel_keyd prototype to
10995 GOACC_parallel_keyed, restore GOACC_parallel prototype, new
10996 GOACC_declare prototype.
10998 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gang-np-1.c:
10999 Merge this file, and...
11000 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gv-np-1.c:
11001 ... this file, and...
11002 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gw-np-1.c:
11003 ... this file, and...
11004 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-1.c:
11005 ... this file, and...
11006 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-2.c:
11007 ... this file, and...
11008 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-3.c:
11009 ... this file, and...
11010 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-4.c:
11011 ... this file, and...
11012 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-vector-p-1.c:
11013 ... this file, and...
11014 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-vector-p-2.c:
11015 ... this file, and...
11016 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-worker-p-1.c:
11017 ... this file, and...
11018 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-1.c:
11019 ... this file, and...
11020 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-2.c:
11021 ... this file, and...
11022 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-3.c:
11023 ... this file into...
11024 * testsuite/libgomp.oacc-c-c++-common/reduction-7.c: ... this
11027 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-2.c:
11028 Make failure observable.
11030 2016-04-12 Jakub Jelinek <jakub@redhat.com>
11032 * libgomp.h (struct gomp_target_task): Remove firstprivate_copies
11034 * target.c (gomp_target_fallback_firstprivate,
11035 gomp_target_unshare_firstprivate): Removed.
11036 (GOMP_target_ext): Copy firstprivate vars into gomp_allocaed memory
11037 before waiting for dependencies.
11038 (gomp_target_task_fn): Don't copy firstprivate vars here.
11039 * task.c (GOMP_PLUGIN_target_task_completion): Don't free
11040 firstprivate_copies here.
11041 (gomp_create_target_task): Don't initialize firstprivate_copies field.
11042 * testsuite/libgomp.c/target-25.c (main): Use map (to:) instead of
11043 explicit/implicit firstprivate.
11045 2016-04-08 Cesar Philippidis <cesar@codesourcery.com>
11049 PR tree-optimization/70373
11050 PR middle-end/70533
11051 PR middle-end/70534
11052 PR middle-end/70535
11053 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gang-np-1.c: New
11055 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gw-np-1.c: New
11057 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-1.c: New
11059 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-2.c: New
11061 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-3.c: New
11063 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-4.c: New
11065 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-vector-p-1.c: New
11067 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-vector-p-2.c: New
11069 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-worker-p-1.c: New
11071 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-1.c: New test.
11072 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-2.c: New test.
11073 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-3.c: New test.
11074 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-1.c: New
11076 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-2.c: New
11078 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-3.c: New
11080 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-4.c: New
11082 * testsuite/libgomp.oacc-c-c++-common/par-reduction-1.c: Add test
11084 * testsuite/libgomp.oacc-c-c++-common/par-reduction-2.c: Likewise.
11085 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Likewise.
11086 * testsuite/libgomp.oacc-c-c++-common/parallel-reduction.c: New test.
11087 * testsuite/libgomp.oacc-c-c++-common/pr70289.c: New test.
11088 * testsuite/libgomp.oacc-c-c++-common/pr70373.c: New test.
11089 * testsuite/libgomp.oacc-c-c++-common/reduction-1.c: Add test
11091 * testsuite/libgomp.oacc-c-c++-common/reduction-2.c: Likewise.
11092 * testsuite/libgomp.oacc-c-c++-common/reduction-3.c: Likewise.
11093 * testsuite/libgomp.oacc-c-c++-common/reduction-4.c: Likewise.
11094 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Likewise.
11095 * testsuite/libgomp.oacc-c-c++-common/reduction-6.c: New test.
11096 * testsuite/libgomp.oacc-c-c++-common/reduction.h: New test.
11097 * testsuite/libgomp.oacc-fortran/parallel-reduction.f90: New test.
11098 * testsuite/libgomp.oacc-fortran/pr70289.f90: New test.
11099 * testsuite/libgomp.oacc-fortran/reduction-1.f90: Add test coverage.
11100 * testsuite/libgomp.oacc-fortran/reduction-2.f90: Likewise.
11101 * testsuite/libgomp.oacc-fortran/reduction-3.f90: Likewise.
11102 * testsuite/libgomp.oacc-fortran/reduction-4.f90: Likewise.
11103 * testsuite/libgomp.oacc-fortran/reduction-5.f90: Likewise.
11104 * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
11105 * testsuite/libgomp.oacc-fortran/reduction-7.f90: New test.
11107 2016-03-30 Thomas Schwinge <thomas@codesourcery.com>
11108 James Norris <jnorris@codesourcery.com>
11109 Nathan Sidwell <nathan@codesourcery.com>
11110 Julian Brown <julian@codesourcery.com>
11111 Cesar Philippidis <cesar@codesourcery.com>
11112 Chung-Lin Tang <cltang@codesourcery.com>
11113 Tom de Vries <tom@codesourcery.com>
11115 * testsuite/libgomp.oacc-c-c++-common/clauses-1.c: Update.
11116 * testsuite/libgomp.oacc-c-c++-common/deviceptr-1.c: Likewise.
11117 * testsuite/libgomp.oacc-c-c++-common/if-1.c: Likewise.
11118 * testsuite/libgomp.oacc-c-c++-common/vector-loop.c: Likewise.
11119 * testsuite/libgomp.oacc-fortran/asyncwait-1.f90: Likewise.
11120 * testsuite/libgomp.oacc-fortran/asyncwait-2.f90: Likewise.
11121 * testsuite/libgomp.oacc-fortran/asyncwait-3.f90: Likewise.
11122 * testsuite/libgomp.oacc-fortran/declare-1.f90: Likewise.
11123 * testsuite/libgomp.oacc-c-c++-common/asyncwait-1.c: Likewise.
11125 * testsuite/libgomp.oacc-c-c++-common/firstprivate-1.c: Update.
11127 * testsuite/libgomp.oacc-c-c++-common/firstprivate-2.c: ... this
11129 * testsuite/libgomp.oacc-c++/template-reduction.C: New file.
11130 * testsuite/libgomp.oacc-c-c++-common/gang-static-1.c: Likewise.
11131 * testsuite/libgomp.oacc-c-c++-common/gang-static-2.c: Likewise.
11132 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-clauses.c:
11134 * testsuite/libgomp.oacc-c-c++-common/private-variables.c:
11136 * testsuite/libgomp.oacc-c-c++-common/reduction-7.c: Likewise.
11137 * testsuite/libgomp.oacc-c-c++-common/routine-1.c: Likewise.
11138 * testsuite/libgomp.oacc-c-c++-common/routine-4.c: Likewise.
11139 * testsuite/libgomp.oacc-c-c++-common/routine-wv-2.c: Likewise.
11140 * testsuite/libgomp.oacc-fortran/clauses-1.f90: Likewise.
11141 * testsuite/libgomp.oacc-fortran/default-1.f90: Likewise.
11142 * testsuite/libgomp.oacc-fortran/firstprivate-1.f90: Likewise.
11143 * testsuite/libgomp.oacc-fortran/gang-static-1.f90: Likewise.
11144 * testsuite/libgomp.oacc-fortran/if-1.f90: Likewise.
11145 * testsuite/libgomp.oacc-fortran/implicit-firstprivate-ref.f90:
11147 * testsuite/libgomp.oacc-fortran/pr68813.f90: Likewise.
11148 * testsuite/libgomp.oacc-fortran/private-variables.f90: Likewise.
11149 * testsuite/libgomp.oacc-c-c++-common/kernels-1.c: Merge this
11151 * testsuite/libgomp.oacc-c-c++-common/parallel-1.c: ..., and this
11153 * testsuite/libgomp.oacc-c-c++-common/data-clauses.h: ... this new
11155 * testsuite/libgomp.oacc-c-c++-common/data-clauses-kernels.c: New
11157 * testsuite/libgomp.oacc-c-c++-common/data-clauses-parallel.c:
11159 * testsuite/libgomp.oacc-c-c++-common/kernels-2.c: Rename to...
11160 * testsuite/libgomp.oacc-c-c++-common/data-clauses-kernels-ipa-pta.c:
11161 ... this new file. Update.
11162 * testsuite/libgomp.oacc-c-c++-common/parallel-2.c: Rename to...
11163 * testsuite/libgomp.oacc-c-c++-common/data-clauses-parallel-ipa-pta.c:
11164 ... this new file. Update.
11165 * testsuite/libgomp.oacc-c-c++-common/mode-transitions.c: New
11166 file. Incorporate...
11167 * testsuite/libgomp.oacc-c-c++-common/worker-single-1a.c: ... this
11169 * testsuite/libgomp.oacc-c-c++-common/worker-single-4.c: ... this
11171 * testsuite/libgomp.oacc-c-c++-common/worker-single-6.c: ... this
11173 * testsuite/libgomp.oacc-c-c++-common/update-1-2.c: Remove file.
11175 2016-03-29 Thomas Schwinge <thomas@codesourcery.com>
11177 * testsuite/libgomp.oacc-c++/c++.exp [!lang_test_file_found]: Call
11178 set-torture-options.
11180 2016-03-24 Thomas Schwinge <thomas@codesourcery.com>
11182 * testsuite/libgomp.oacc-c++/c++.exp: Set up torture testing, use
11184 * testsuite/libgomp.oacc-c/c.exp: Likewise.
11185 * testsuite/libgomp.oacc-c-c++-common/acc-on-device-2.c: Specify
11186 -fno-builtin-acc_on_device instead of -O0.
11187 * testsuite/libgomp.oacc-c-c++-common/acc-on-device.c: Skip for
11189 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Likewise.
11190 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c:
11192 * testsuite/libgomp.oacc-c-c++-common/loop-g-1.c: Likewise.
11193 * testsuite/libgomp.oacc-c-c++-common/loop-g-2.c: Likewise.
11194 * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c: Likewise.
11195 * testsuite/libgomp.oacc-c-c++-common/loop-red-g-1.c: Likewise.
11196 * testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c: Likewise.
11197 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c: Likewise.
11198 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c: Likewise.
11199 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c: Likewise.
11200 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c: Likewise.
11201 * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c: Likewise.
11202 * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c: Likewise.
11203 * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c: Likewise.
11204 * testsuite/libgomp.oacc-c-c++-common/routine-g-1.c: Likewise.
11205 * testsuite/libgomp.oacc-c-c++-common/routine-gwv-1.c: Likewise.
11206 * testsuite/libgomp.oacc-c-c++-common/routine-v-1.c: Likewise.
11207 * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c: Likewise.
11208 * testsuite/libgomp.oacc-c-c++-common/routine-wv-1.c: Likewise.
11209 * testsuite/libgomp.oacc-c-c++-common/kernels-alias-ipa-pta-2.c:
11211 * testsuite/libgomp.oacc-c-c++-common/kernels-alias-ipa-pta-3.c:
11213 * testsuite/libgomp.oacc-c-c++-common/kernels-alias-ipa-pta.c:
11216 2016-03-24 Martin Liska <mliska@suse.cz>
11218 * plugin/plugin-hsa.c (packet_store_release): New function
11219 that is taken from the HSA runtime manual.
11220 (GOMP_OFFLOAD_run): Use the function.
11222 2016-03-23 Jakub Jelinek <jakub@redhat.com>
11225 * testsuite/libgomp.c++/pr70376.C: New test.
11227 2016-03-23 Tom de Vries <tom@codesourcery.com>
11229 * testsuite/libgomp.oacc-fortran/reduction-2.f90: Add missing
11230 initialization of lresult and lvresult.
11231 * testsuite/libgomp.oacc-fortran/reduction-3.f90: Same.
11233 2016-03-23 James Norris <jnorris@codesourcery.com>
11234 Daichi Fukuoka <dc-fukuoka@sgi.com>
11237 * oacc-mem.c (delete_copyout, update_dev_host): Fix device address.
11238 * testsuite/libgomp.oacc-c-c++-common/update-1.c: Additional tests.
11239 * testsuite/libgomp.oacc-c-c++-common/update-1-2.c: Likewise.
11240 * testsuite/libgomp.oacc-fortran/update-1.f90: New file.
11242 2016-03-23 Martin Liska <mliska@suse.cz>
11245 * plugin/plugin-hsa.c (GOMP_OFFLOAD_run): Copy shadow
11246 argument just in case a dispatched kernel uses that argument.
11248 2016-03-16 Thomas Schwinge <thomas@codesourcery.com>
11250 * testsuite/libgomp.oacc-fortran/kernels-loop-2.f95: Adjust to
11251 -ftree-parallelize-loops/-fopenacc changes.
11252 * testsuite/libgomp.oacc-fortran/kernels-loop-data-2.f95:
11254 * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit-2.f95:
11256 * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit.f95:
11258 * testsuite/libgomp.oacc-fortran/kernels-loop-data-update.f95:
11260 * testsuite/libgomp.oacc-fortran/kernels-loop-data.f95: Likewise.
11261 * testsuite/libgomp.oacc-fortran/kernels-loop.f95: Likewise.
11263 2016-03-13 Thomas Schwinge <thomas@codesourcery.com>
11265 * testsuite/lib/libgomp.exp (libgomp_init): Potentially append to
11266 always_ld_library_path the path to libgcc_s.
11268 2016-03-10 Cesar Philippidis <cesar@codesourcery.com>
11271 * testsuite/libgomp.oacc-c-c++-common/vprop.c: Make test data signed.
11273 2016-03-09 Tom de Vries <tom@codesourcery.com>
11275 * testsuite/libgomp.oacc-fortran/kernels-loop-2.f95: New test.
11276 * testsuite/libgomp.oacc-fortran/kernels-loop-data-2.f95: Same.
11277 * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit-2.f95:
11279 * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit.f95: Same.
11280 * testsuite/libgomp.oacc-fortran/kernels-loop-data-update.f95: Same.
11281 * testsuite/libgomp.oacc-fortran/kernels-loop-data.f95: Same.
11282 * testsuite/libgomp.oacc-fortran/kernels-loop.f95: Same.
11284 2016-03-07 Martin Jambor <mjambor@suse.cz>
11286 * testsuite/lib/libgomp.exp
11287 (check_effective_target_hsa_offloading_selected_nocache): New.
11288 (check_effective_target_hsa_offloading_selected): Likewise.
11289 * testsuite/libgomp.hsa.c/c.exp: Likewise.
11290 * testsuite/libgomp.hsa.c/alloca-1.c: Likewise.
11291 * testsuite/libgomp.hsa.c/bitfield-1.c: Likewise.
11292 * testsuite/libgomp.hsa.c/builtins-1.c: Likewise.
11293 * testsuite/libgomp.hsa.c/complex-1.c: Likewise.
11294 * testsuite/libgomp.hsa.c/formal-actual-args-1.c: Likewise.
11295 * testsuite/libgomp.hsa.c/function-call-1.c: Likewise.
11296 * testsuite/libgomp.hsa.c/get-level-1.c: Likewise.
11297 * testsuite/libgomp.hsa.c/gridify-1.c: Likewise.
11298 * testsuite/libgomp.hsa.c/gridify-2.c: Likewise.
11299 * testsuite/libgomp.hsa.c/gridify-3.c: Likewise.
11300 * testsuite/libgomp.hsa.c/gridify-4.c: Likewise.
11301 * testsuite/libgomp.hsa.c/memory-operations-1.c: Likewise.
11302 * testsuite/libgomp.hsa.c/pr69568.c: Likewise.
11303 * testsuite/libgomp.hsa.c/rotate-1.c: Likewise.
11304 * testsuite/libgomp.hsa.c/switch-1.c: Likewise.
11305 * testsuite/libgomp.hsa.c/switch-branch-1.c: Likewise.
11307 2016-03-07 Martin Jambor <mjambor@suse.cz>
11309 * testsuite/libgomp.c/examples-4/async_target-2.c: Only run on
11310 non-shared memory accelerators.
11311 * testsuite/libgomp.c/examples-4/device-1.c: Likewise.
11312 * testsuite/libgomp.c/examples-4/target-5.c: Likewise.
11313 * testsuite/libgomp.c/examples-4/target_data-6.c: Likewise.
11314 * testsuite/libgomp.c/examples-4/target_data-7.c: Likewise.
11315 * testsuite/libgomp.fortran/examples-4/async_target-2.f90: Likewise.
11316 * testsuite/libgomp.fortran/examples-4/device-1.f90: Likewise.
11317 * testsuite/libgomp.fortran/examples-4/target-5.f90: Likewise.
11318 * testsuite/libgomp.fortran/examples-4/target_data-6.f90: Likewise.
11319 * testsuite/libgomp.fortran/examples-4/target_data-7.f90: Likewise.
11321 2016-03-07 Martin Jambor <mjambor@suse.cz>
11323 * testsuite/lib/libgomp.exp (libgomp_init): Append -Wno-hsa to
11326 2016-03-02 Jakub Jelinek <jakub@redhat.com>
11329 * testsuite/libgomp.c++/pr69555-1.C: New test.
11330 * testsuite/libgomp.c++/pr69555-2.C: New test.
11332 2016-02-26 Keith McDaniel <k.allen.mcdaniel@gmail.com>
11333 Martin Jambor <mjambor@suse.cz>
11335 * testsuite/lib/libgomp.exp
11336 (check_effective_target_offload_device_shared_as): New proc.
11337 * testsuite/libgomp.c++/declare_target-1.C: New test.
11339 2016-02-25 Ilya Verbin <ilya.verbin@intel.com>
11342 * testsuite/libgomp.oacc-c-c++-common/parallel-dims-2.c: Remove.
11344 2016-02-23 Thomas Schwinge <thomas@codesourcery.com>
11346 * oacc-parallel.c (GOACC_parallel_keyed): Initialize dims.
11347 * plugin/plugin-nvptx.c (nvptx_exec): Provide default values for
11349 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-2.c: Adjust to
11350 -ftree-parallelize-loops/-fopenacc changes.
11351 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-3.c: Likewise.
11352 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-2.c:
11354 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-3.c:
11356 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-4.c:
11358 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-5.c:
11360 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-6.c:
11362 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq.c:
11364 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-collapse.c:
11366 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-g.c: Likewise.
11367 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-mod-not-zero.c:
11369 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-n.c: Likewise.
11370 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-nest.c:
11372 * testsuite/libgomp.oacc-c-c++-common/kernels-loop.c: Likewise.
11373 * testsuite/libgomp.oacc-c-c++-common/kernels-reduction.c:
11376 2016-02-22 Cesar Philippidis <cesar@codesourcery.com>
11378 * testsuite/libgomp.oacc-c-c++-common/vprop.c: New test.
11380 2016-02-19 Jakub Jelinek <jakub@redhat.com>
11383 * testsuite/libgomp.c/pr69805.c: New test.
11385 2016-02-16 Tom de Vries <tom@codesourcery.com>
11388 * testsuite/libgomp.fortran/declare-simd-4.f90: New test.
11390 2016-02-09 Tom de Vries <tom@codesourcery.com>
11392 PR tree-optimization/69599
11393 * testsuite/libgomp.c/omp-nested-3.c: New test.
11394 * testsuite/libgomp.c/pr46032-2.c: New test.
11395 * testsuite/libgomp.oacc-c-c++-common/kernels-2.c: New test.
11396 * testsuite/libgomp.oacc-c-c++-common/parallel-2.c: New test.
11398 2016-02-09 Tom de Vries <tom@codesourcery.com>
11401 * testsuite/libgomp.oacc-c-c++-common/parallel-dims-2.c: New test.
11403 2016-02-02 Alexander Monakov <amonakov@ispras.ru>
11405 * testsuite/libgomp.c/target-31.c: Fix testcase.
11407 2016-02-02 Alexander Monakov <amonakov@ispras.ru>
11409 * testsuite/libgomp.c/examples-4/teams-3.c: Add missing reduction
11411 * testsuite/libgomp.c/examples-4/teams-4.c: Likewise.
11412 * testsuite/libgomp.fortran/examples-4/teams-3.f90: Add missing
11413 reduction and map clauses.
11414 * testsuite/libgomp.fortran/examples-4/teams-4.f90: Likewise.
11416 2016-02-02 James Norris <jnorris@codesourcery.com>
11418 * testsuite/libgomp.oacc-c-c++-common/declare-4.c: Fix clause.
11420 2016-02-02 Thomas Schwinge <thomas@codesourcery.com>
11422 * libgomp.map (GOACC_2.0): Remove GOACC_host_data.
11423 * oacc-parallel.c (GOACC_host_data): Remove function definition.
11425 * testsuite/lib/libgomp.exp: Skip hsa offloading for OpenACC test
11428 * plugin/configfrag.ac (HSA_KMT_LIB, HSA_KMT_LDFLAGS): New
11430 * testsuite/libgomp-test-support.exp.in (hsa_runtime_lib)
11431 (hsa_kmt_lib): Set variables.
11432 * testsuite/lib/libgomp.exp (libgomp_init): Use them to amend
11433 always_ld_library_path.
11434 * Makefile.in: Regenerate.
11435 * configure: Likewise.
11436 * testsuite/Makefile.in: Likewise.
11438 * plugin/configfrag.ac (offload_additional_options)
11439 (offload_additional_lib_paths): Don't amend for hsa offloading.
11440 * configure: Regenerate.
11442 * plugin/configfrag.ac: Don't configure for offloading target if
11443 we don't build the corresponding plugin.
11444 * configure: Regenerate.
11446 2016-02-01 Nathan Sidwell <nathan@codesourcery.com>
11448 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: New.
11449 * testsuite/libgomp.oacc-fortran/routine-7.f90: Serialize loop.
11451 2016-01-26 Tom de Vries <tom@codesourcery.com>
11453 PR tree-optimization/69110
11454 * testsuite/libgomp.c/pr69110.c: New test.
11456 2016-01-25 Richard Biener <rguenther@suse.de>
11459 * testsuite/libgomp.c++/pr69393.C: New testcase.
11461 2016-01-22 Ilya Verbin <ilya.verbin@intel.com>
11463 * target.c (gomp_get_target_fn_addr): Allow host fallback if target
11464 function wasn't mapped to the device with non-shared memory.
11466 2016-01-20 Ilya Verbin <ilya.verbin@intel.com>
11468 * task.c (gomp_create_target_task): Set firstprivate_copies to NULL.
11470 2016-01-19 Martin Jambor <mjambor@suse.cz>
11471 Martin Liska <mliska@suse.cz>
11473 * plugin/Makefrag.am: Add HSA plugin requirements.
11474 * plugin/configfrag.ac (HSA_RUNTIME_INCLUDE): New variable.
11475 (HSA_RUNTIME_LIB): Likewise.
11476 (HSA_RUNTIME_CPPFLAGS): Likewise.
11477 (HSA_RUNTIME_INCLUDE): New substitution.
11478 (HSA_RUNTIME_LIB): Likewise.
11479 (HSA_RUNTIME_LDFLAGS): Likewise.
11480 (hsa-runtime): New configure option.
11481 (hsa-runtime-include): Likewise.
11482 (hsa-runtime-lib): Likewise.
11483 (PLUGIN_HSA): New substitution variable.
11484 Fill HSA_RUNTIME_INCLUDE and HSA_RUNTIME_LIB according to the new
11486 (PLUGIN_HSA_CPPFLAGS): Likewise.
11487 (PLUGIN_HSA_LDFLAGS): Likewise.
11488 (PLUGIN_HSA_LIBS): Likewise.
11489 Check that we have access to HSA run-time.
11490 * libgomp-plugin.h (offload_target_type): New element
11491 OFFLOAD_TARGET_TYPE_HSA.
11492 * libgomp.h (gomp_target_task): New fields firstprivate_copies and
11494 (bool gomp_create_target_task): Updated.
11495 (gomp_device_descr): Extra parameter of run_func and async_run_func,
11496 new field can_run_func.
11497 * libgomp_g.h (GOMP_target_ext): Update prototype.
11498 * oacc-host.c (host_run): Added a new parameter args.
11499 * target.c (calculate_firstprivate_requirements): New function.
11500 (copy_firstprivate_data): Likewise.
11501 (gomp_target_fallback_firstprivate): Use them.
11502 (gomp_target_unshare_firstprivate): New function.
11503 (gomp_get_target_fn_addr): Allow returning NULL for shared memory
11505 (GOMP_target): Do host fallback for all shared memory devices. Do not
11506 pass any args to plugins.
11507 (GOMP_target_ext): Introduce device-specific argument parameter args.
11508 Allow host fallback if device shares memory. Do not remap data if
11509 device has shared memory.
11510 (gomp_target_task_fn): Likewise. Also treat shared memory devices
11511 like host fallback for mappings.
11512 (GOMP_target_data): Treat shared memory devices like host fallback.
11513 (GOMP_target_data_ext): Likewise.
11514 (GOMP_target_update): Likewise.
11515 (GOMP_target_update_ext): Likewise. Also pass NULL as args to
11516 gomp_create_target_task.
11517 (GOMP_target_enter_exit_data): Likewise.
11518 (omp_target_alloc): Treat shared memory devices like host fallback.
11519 (omp_target_free): Likewise.
11520 (omp_target_is_present): Likewise.
11521 (omp_target_memcpy): Likewise.
11522 (omp_target_memcpy_rect): Likewise.
11523 (omp_target_associate_ptr): Likewise.
11524 (gomp_load_plugin_for_device): Also load can_run.
11525 * task.c (GOMP_PLUGIN_target_task_completion): Free
11526 firstprivate_copies.
11527 (gomp_create_target_task): Accept new argument args and store it to
11529 * plugin/plugin-hsa.c: New file.
11531 2016-01-18 Tom de Vries <tom@codesourcery.com>
11533 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-2.c: New test.
11534 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-3.c: Same.
11535 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-2.c: Same.
11536 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-3.c: Same.
11537 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-4.c: Same.
11538 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-5.c: Same.
11539 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-6.c: Same.
11540 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq.c: Same.
11541 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-collapse.c: Same.
11542 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-2.c: Same.
11543 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-enter-exit-2.c:
11545 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-enter-exit.c:
11547 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-update.c: Same.
11548 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data.c: Same.
11549 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-g.c: Same.
11550 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-mod-not-zero.c: Same.
11551 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-n.c: Same.
11552 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-nest.c: Same.
11553 * testsuite/libgomp.oacc-c-c++-common/kernels-loop.c: Same.
11554 * testsuite/libgomp.oacc-c-c++-common/kernels-parallel-loop-data-enter-exit.c:
11556 * testsuite/libgomp.oacc-c-c++-common/kernels-reduction.c: Same.
11558 2016-01-15 Jakub Jelinek <jakub@redhat.com>
11560 * task.c (GOMP_PLUGIN_target_task_completion): Add missing return.
11562 2016-01-15 Cesar Philippidis <cesar@codesourcery.com>
11564 * testsuite/libgomp.oacc-fortran/kernels-data.f90: New test.
11566 2016-01-12 James Norris <jnorris@codesourcery.com>
11568 * libgomp.texi: Updates for OpenACC.
11570 2016-01-11 Alexander Monakov <amonakov@ispras.ru>
11572 * plugin/plugin-nvptx.c (link_ptx): Do not set CU_JIT_TARGET.
11574 2016-01-07 H.J. Lu <hongjiu.lu@intel.com>
11577 * testsuite/libgomp.fortran/pr66680.f90: New test.
11579 2016-01-07 Jakub Jelinek <jakub@redhat.com>
11581 PR middle-end/68960
11582 * testsuite/libgomp.c/pr68960.c: New test.
11584 2016-01-06 Nathan Sidwell <nathan@acm.org>
11586 * openacc.h (acc_on_device): Add routine pragma for C++ wrapper.
11587 * testsuite/libgomp.oacc-c-c++-common/acc-on-device-2.c: New.
11589 2016-01-04 Jakub Jelinek <jakub@redhat.com>
11591 Update copyright years.
11593 * libgomp.texi: Bump @copying's copyright year.
11595 2015-12-31 Nathan Sidwell <nathan@acm.org>
11597 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c: Correct
11598 dg-additional-options syntax.
11599 * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c: Likewise.
11600 * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c: Likewise.
11601 * testsuite/libgomp.oacc-c-c++-common/routine-v-1.c: Likewise.
11602 * testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c: Likewise.
11603 * testsuite/libgomp.oacc-c-c++-common/routine-gwv-1.c: Likewise.
11604 * testsuite/libgomp.oacc-c-c++-common/routine-g-1.c: Likewise.
11605 * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c: Likewise.
11606 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Likewise.
11607 * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c: Likewise.
11608 * testsuite/libgomp.oacc-c-c++-common/routine-wv-1.c: Likewise.
11609 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c: Likewise.
11610 * testsuite/libgomp.oacc-c-c++-common/loop-g-1.c: Likewise.
11611 * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c: Likewise.
11612 * testsuite/libgomp.oacc-c-c++-common/loop-red-wv-1.c: Likewise.
11613 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c: Likewise.
11614 * testsuite/libgomp.oacc-c-c++-common/loop-g-2.c: Likewise.
11615 * testsuite/libgomp.oacc-c-c++-common/loop-red-g-1.c: Likewise.
11616 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c: Likewise.
11618 2015-12-15 Ilya Verbin <ilya.verbin@intel.com>
11620 * libgomp.h (REFCOUNT_LINK): Define.
11621 (struct splay_tree_key_s): Add link_key.
11622 * target.c (gomp_map_vars): Treat REFCOUNT_LINK objects as not mapped.
11623 Replace target address of the pointer with target address of newly
11624 mapped object in the splay tree. Set link pointer on target to the
11625 device address of the mapped object.
11626 (gomp_unmap_vars): Restore target address of the pointer in the splay
11627 tree for REFCOUNT_LINK objects after unmapping.
11628 (gomp_load_image_to_device): Set refcount to REFCOUNT_LINK for "omp
11629 declare target link" objects.
11630 (gomp_unload_image_from_device): Replace j with i. Force unmap of all
11631 "omp declare target link" objects, which were mapped for the image.
11632 (gomp_exit_data): Restore target address of the pointer in the splay
11633 tree for REFCOUNT_LINK objects after unmapping.
11634 * testsuite/libgomp.c/target-link-1.c: New file.
11636 2015-12-14 Ilya Verbin <ilya.verbin@intel.com>
11638 * libgomp.h (gomp_device_state): New enum.
11639 (struct gomp_device_descr): Replace is_initialized with state.
11640 (gomp_fini_device): Remove declaration.
11641 * oacc-host.c (host_dispatch): Use state instead of is_initialized.
11642 * oacc-init.c (acc_init_1): Use state instead of is_initialized.
11643 (acc_shutdown_1): Likewise. Inline gomp_fini_device.
11644 (acc_set_device_type): Use state instead of is_initialized.
11645 (acc_set_device_num): Likewise.
11646 * target.c (resolve_device): Use state instead of is_initialized.
11647 Do not initialize finalized device.
11648 (gomp_map_vars): Do nothing if device is finalized.
11649 (gomp_unmap_vars): Likewise.
11650 (gomp_update): Likewise.
11651 (GOMP_offload_register_ver): Use state instead of is_initialized.
11652 (GOMP_offload_unregister_ver): Likewise.
11653 (gomp_init_device): Likewise.
11654 (gomp_unload_device): Likewise.
11655 (gomp_fini_device): Remove.
11656 (gomp_get_target_fn_addr): Do nothing if device is finalized.
11657 (GOMP_target): Go to host fallback if device is finalized.
11658 (GOMP_target_ext): Likewise.
11659 (gomp_exit_data): Do nothing if device is finalized.
11660 (gomp_target_task_fn): Go to host fallback if device is finalized.
11661 (gomp_target_fini): New static function.
11662 (gomp_target_init): Use state instead of is_initialized.
11663 Call gomp_target_fini at exit.
11665 2015-12-09 Tom de Vries <tom@codesourcery.com>
11667 PR tree-optimization/68716
11668 * testsuite/libgomp.c/omp-nested-2.c: New test.
11670 2015-12-02 Thomas Schwinge <thomas@codesourcery.com>
11672 * testsuite/libgomp.oacc-c-c++-common/host_data-2.c: Restrict to
11673 target openacc_nvidia_accel_selected.
11674 * testsuite/libgomp.oacc-c-c++-common/host_data-4.c: Likewise.
11675 * testsuite/libgomp.oacc-c-c++-common/host_data-5.c: Likewise.
11676 * testsuite/libgomp.oacc-c-c++-common/host_data-3.c: Remove file.
11677 * testsuite/libgomp.oacc-c-c++-common/host_data-6.c: Remove file.
11679 2015-12-01 Julian Brown <julian@codesourcery.com>
11680 James Norris <James_Norris@mentor.com>
11682 * oacc-parallel.c (GOACC_host_data): New function.
11683 * libgomp.map (GOACC_host_data): Add to GOACC_2.0.1.
11684 * testsuite/libgomp.oacc-c-c++-common/host_data-1.c: New test.
11685 * testsuite/libgomp.oacc-c-c++-common/host_data-2.c: New test.
11686 * testsuite/libgomp.oacc-c-c++-common/host_data-3.c: New test.
11687 * testsuite/libgomp.oacc-c-c++-common/host_data-4.c: New test.
11688 * testsuite/libgomp.oacc-c-c++-common/host_data-5.c: New test.
11689 * testsuite/libgomp.oacc-c-c++-common/host_data-6.c: New test.
11691 2015-11-30 James Norris <jnorris@codesourcery.com>
11692 Cesar Philippidis <cesar@codesourcery.com>
11695 * libgomp.oacc-fortran/routine-5.f90: New test.
11696 * libgomp.oacc-fortran/routine-7.f90: New test.
11697 * libgomp.oacc-fortran/routine-9.f90: New test.
11699 2015-11-30 Tom de Vries <tom@codesourcery.com>
11701 PR tree-optimization/46032
11702 * testsuite/libgomp.c/pr46032.c: New test.
11704 2015-11-27 Jakub Jelinek <jakub@redhat.com>
11707 * task.c (gomp_task_run_post_handle_depend_hash): New forward decl.
11708 (gomp_create_target_task): Call it before freeing
11709 GOMP_TARGET_TASK_DATA tasks.
11712 * testsuite/libgomp.c/cancel-parallel-2.c (foo): Add semicolon
11713 in between case label and OpenMP standalone directives.
11714 * testsuite/libgomp.c++/cancel-parallel-2.C (foo): Likewise.
11716 2015-11-26 David Edelsohn <dje.gcc@gmail.com>
11718 * configure: Regenerate.
11720 2015-11-26 Jakub Jelinek <jakub@redhat.com>
11722 * testsuite/libgomp.c/target-35.c: New test.
11724 2015-11-22 James Norris <jnorris@codesourcery.com>
11725 Cesar Philippidis <cesar@codesourcery.com>
11727 * testsuite/libgomp.oacc-fortran/declare-1.f90: New test.
11728 * testsuite/libgomp.oacc-fortran/declare-2.f90: Likewise.
11729 * testsuite/libgomp.oacc-fortran/declare-3.f90: Likewise.
11730 * testsuite/libgomp.oacc-fortran/declare-4.f90: Likewise.
11731 * testsuite/libgomp.oacc-fortran/declare-5.f90: Likewise.
11733 2015-11-20 Jakub Jelinek <jakub@redhat.com>
11735 PR middle-end/68221
11736 * testsuite/libgomp.c/reduction-11.c: Remove xfail.
11737 * testsuite/libgomp.c/reduction-12.c: Likewise.
11738 * testsuite/libgomp.c++/reduction-11.C: Likewise.
11739 * testsuite/libgomp.c++/reduction-12.C: Likewise.
11741 2015-11-19 Nathan Sidwell <nathan@codesourcery.com>
11743 * libgomp.oacc-c-c++-common/reduction-dbl.c: New.
11744 * libgomp.oacc-c-c++-common/reduction-flt.c: New.
11745 * libgomp.oacc-c-c++-common/reduction-cplx-dbl.c: Use typedef.
11746 * libgomp.oacc-c-c++-common/reduction-cplx-flt.c: Use typedef.
11747 * libgomp.oacc-c-c++-common/reduction-2.c: Uncomment broken tests
11749 * libgomp.oacc-c-c++-common/reduction-3.c: Likewise.
11750 * libgomp.oacc-c-c++-common/reduction-4.c: Likewise.
11752 2015-11-18 Nathan Sidwell <nathan@codesourcery.com>
11754 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-flt.c: Add
11755 worker & gang cases.
11756 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-dbl.c: Likewise.
11758 2015-11-17 Cesar Philippidis <cesar@codesourcery.com>
11760 * config/nvptx/priority_queue.c: New file.
11762 2015-11-14 Jakub Jelinek <jakub@redhat.com>
11764 * libgomp.texi: Update references from OpenMP 4.0 to OpenMP 4.5
11767 2015-11-14 Jakub Jelinek <jakub@redhat.com>
11768 Aldy Hernandez <aldyh@redhat.com>
11769 Ilya Verbin <ilya.verbin@intel.com>
11771 * ordered.c (gomp_doacross_init, GOMP_doacross_post,
11772 GOMP_doacross_wait, gomp_doacross_ull_init, GOMP_doacross_ull_post,
11773 GOMP_doacross_ull_wait): For GFS_GUIDED don't divide number of
11774 iterators or IV by chunk size.
11775 * parallel.c (gomp_resolve_num_threads): Don't assume that
11776 if thr->ts.team is non-NULL, then pool must be non-NULL.
11777 * libgomp-plugin.h (GOMP_PLUGIN_target_task_completion): Declare.
11778 * libgomp.map (GOMP_PLUGIN_1.1): New symbol version, export
11779 GOMP_PLUGIN_target_task_completion.
11780 * Makefile.am (libgomp_la_SOURCES): Add priority_queue.c.
11781 * Makefile.in: Regenerate.
11782 * libgomp.h: Shuffle prototypes and forward definitions around so
11783 priority queues can be defined.
11784 (enum gomp_task_kind): Add GOMP_TASK_ASYNC_RUNNING.
11785 (enum gomp_target_task_state): New enum.
11786 (struct gomp_target_task): Add state, tgt, task and team fields.
11787 (gomp_create_target_task): Change return type to bool, add
11789 (gomp_target_task_fn): Change return type to bool.
11790 (struct gomp_device_descr): Add async_run_func.
11791 (struct gomp_task): Remove children, next_child, prev_child,
11792 next_queue, prev_queue, next_taskgroup, prev_taskgroup.
11794 (struct gomp_taskgroup): Remove children.
11795 Add taskgroup_queue.
11796 (struct gomp_team): Change task_queue type to a priority queue.
11797 (splay_compare): Define inline.
11798 (priority_queue_offset): New.
11799 (priority_node_to_task): New.
11800 (task_to_priority_node): New.
11801 * oacc-mem.c: Do not include splay-tree.h.
11802 * priority_queue.c: New file.
11803 * priority_queue.h: New file.
11804 * splay-tree.c: Do not include splay-tree.h.
11805 (splay_tree_foreach_internal): New.
11806 (splay_tree_foreach): New.
11807 * splay-tree.h: Become re-entrant if splay_tree_prefix is defined.
11808 (splay_tree_callback): Define typedef.
11809 * target.c (splay_compare): Move to libgomp.h.
11810 (GOMP_target): Don't adjust *thr in any way around running offloaded
11812 (GOMP_target_ext): Likewise. Handle target nowait.
11813 (GOMP_target_update_ext, GOMP_target_enter_exit_data): Check
11814 return value from gomp_create_target_task, if false, fallthrough
11815 as if no dependencies exist.
11816 (gomp_target_task_fn): Change return type to bool, return true
11817 if the task should have another part scheduled later. Handle
11819 (gomp_load_plugin_for_device): Initialize async_run.
11820 * task.c (gomp_init_task): Initialize children_queue.
11821 (gomp_clear_parent_in_list): New.
11822 (gomp_clear_parent_in_tree): New.
11823 (gomp_clear_parent): Handle priorities.
11824 (GOMP_task): Likewise.
11825 (priority_queue_move_task_first,
11826 gomp_target_task_completion, GOMP_PLUGIN_target_task_completion):
11828 (gomp_create_target_task): Use priority queues. Change return type
11829 to bool, add state argument, return false if for async
11830 {{enter,exit} data,update} constructs no dependencies need to be
11831 waited for, handle target nowait. Set task->fn to NULL instead of
11832 gomp_target_task_fn.
11833 (verify_children_queue): Remove.
11834 (priority_list_upgrade_task): New.
11835 (priority_queue_upgrade_task): New.
11836 (verify_task_queue): Remove.
11837 (priority_list_downgrade_task): New.
11838 (priority_queue_downgrade_task): New.
11839 (gomp_task_run_pre): Use priority queues.
11840 Abstract code out to priority_queue_downgrade_task.
11841 (gomp_task_run_post_handle_dependers): Use priority queues.
11842 (gomp_task_run_post_remove_parent): Likewise.
11843 (gomp_task_run_post_remove_taskgroup): Likewise.
11844 (gomp_barrier_handle_tasks): Likewise. Handle target nowait target
11846 (GOMP_taskwait): Likewise.
11847 (gomp_task_maybe_wait_for_dependencies): Likewise. Abstract code to
11848 priority-queue_upgrade_task.
11849 (GOMP_taskgroup_start): Use priority queues.
11850 (GOMP_taskgroup_end): Likewise. Handle target nowait target tasks
11851 specially. If taskgroup is NULL, and thr->ts.level is 0, act as a
11853 * taskloop.c (GOMP_taskloop): Handle priorities.
11854 * team.c (gomp_new_team): Call priority_queue_init.
11855 (free_team): Call priority_queue_free.
11856 (gomp_free_thread): Call gomp_team_end if thr->ts.team is artificial
11857 team created for target nowait in implicit parallel region.
11858 (gomp_team_start): For nested check, test thr->ts.level instead of
11859 thr->ts.team != NULL.
11860 * testsuite/libgomp.c/doacross-3.c: New test.
11861 * testsuite/libgomp.c/ordered-5.c: New test.
11862 * testsuite/libgomp.c/priority.c: New test.
11863 * testsuite/libgomp.c/target-31.c: New test.
11864 * testsuite/libgomp.c/target-32.c: New test.
11865 * testsuite/libgomp.c/target-33.c: New test.
11866 * testsuite/libgomp.c/target-34.c: New test.
11868 2015-11-13 Nathan Sidwell <nathan@codesourcery.com>
11870 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: New.
11872 * testsuite/libgomp.oacc-c-c++-common/collapse-2.c: Sequential
11873 loop is sequential.
11875 2015-11-13 Nathan Sidwell <nathan@codesourcery.com>
11877 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-dbl.c: New.
11878 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-flt.c: New.
11880 2015-11-12 James Norris <jnorris@codesourcery.com>
11881 Joseph Myers <joseph@codesourcery.com>
11883 * libgomp.map (GOACC_2.0.1): Export GOACC_declare.
11884 * oacc-parallel.c (GOACC_declare): New function.
11885 * testsuite/libgomp.oacc-c-c++-common/declare-1.c: New test.
11886 * testsuite/libgomp.oacc-c-c++-common/declare-2.c: Likewise.
11887 * testsuite/libgomp.oacc-c-c++-common/declare-4.c: Likewise.
11888 * testsuite/libgomp.oacc-c-c++-common/declare-5.c: Likewise.
11889 * testsuite/libgomp.oacc-c++/declare-1.C: Likewise.
11891 2015-11-12 Nathan Sidwell <nathan@codesourcery.com>
11893 * testsuite/libgomp.oacc-c-c++-common/default-1.c: New.
11895 2015-11-1 Nathan Sidwell <nathan@codesourcery.com>
11897 * testsuite/libgomp.oacc-c-c++-common/firstprivate-1.c: New.
11898 * testsuite/libgomp.oacc-c-c++-common/firstprivate-2.c: New.
11900 2015-11-09 Nathan Sidwell <nathan@codesourcery.com>
11902 * testsuite/libgomp.oacc-c-c++-common/firstprivate-1.c: Remove
11903 inadvertent commit.
11905 2015-11-09 Nathan Sidwell <nathan@codesourcery.com>
11907 * testsuite/libgomp.oacc-c-c++-common/routine-g-1.c: New.
11908 * testsuite/libgomp.oacc-c-c++-common/routine-gwv-1.c: New.
11909 * testsuite/libgomp.oacc-c-c++-common/routine-v-1.c: New.
11910 * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c: New.
11911 * testsuite/libgomp.oacc-c-c++-common/routine-wv-1.c: New.
11913 2015-11-06 Thomas Schwinge <thomas@codesourcery.com>
11915 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c: XFAIL.
11916 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c: Likewise.
11918 2015-11-05 Jakub Jelinek <jakub@redhat.com>
11919 Ilya Verbin <ilya.verbin@intel.com>
11921 * libgomp_g.h (GOMP_loop_nonmonotonic_dynamic_next,
11922 GOMP_loop_nonmonotonic_dynamic_start,
11923 GOMP_loop_nonmonotonic_guided_next,
11924 GOMP_loop_nonmonotonic_guided_start,
11925 GOMP_loop_ull_nonmonotonic_dynamic_next,
11926 GOMP_loop_ull_nonmonotonic_dynamic_start,
11927 GOMP_loop_ull_nonmonotonic_guided_next,
11928 GOMP_loop_ull_nonmonotonic_guided_start,
11929 GOMP_parallel_loop_nonmonotonic_dynamic,
11930 GOMP_parallel_loop_nonmonotonic_guided): New prototypes.
11931 (GOMP_target_41): Renamed to ...
11932 (GOMP_target_ext): ... this. Add num_teams and thread_limit
11934 (GOMP_target_data_41): Renamed to ...
11935 (GOMP_target_data_ext): ... this.
11936 (GOMP_target_update_41): Renamed to ...
11937 (GOMP_target_update_ext): ... this.
11938 * libgomp.map (GOMP_4.5): Export GOMP_target_ext,
11939 GOMP_target_data_ext and GOMP_target_update_ext instead of
11940 GOMP_target_41, GOMP_target_data_41 and GOMP_target_update_41.
11941 Export GOMP_loop_nonmonotonic_dynamic_next,
11942 GOMP_loop_nonmonotonic_dynamic_start,
11943 GOMP_loop_nonmonotonic_guided_next,
11944 GOMP_loop_nonmonotonic_guided_start,
11945 GOMP_loop_ull_nonmonotonic_dynamic_next,
11946 GOMP_loop_ull_nonmonotonic_dynamic_start,
11947 GOMP_loop_ull_nonmonotonic_guided_next,
11948 GOMP_loop_ull_nonmonotonic_guided_start,
11949 GOMP_parallel_loop_nonmonotonic_dynamic and
11950 GOMP_parallel_loop_nonmonotonic_guided.
11951 * loop.c (GOMP_parallel_loop_nonmonotonic_dynamic,
11952 GOMP_parallel_loop_nonmonotonic_guided,
11953 GOMP_loop_nonmonotonic_dynamic_start,
11954 GOMP_loop_nonmonotonic_guided_start,
11955 GOMP_loop_nonmonotonic_dynamic_next,
11956 GOMP_loop_nonmonotonic_guided_next): New aliases or functions.
11957 * loop_ull.c (GOMP_loop_ull_nonmonotonic_dynamic_start,
11958 GOMP_loop_ull_nonmonotonic_guided_start,
11959 GOMP_loop_ull_nonmonotonic_dynamic_next,
11960 GOMP_loop_ull_nonmonotonic_guided_next): Likewise.
11961 * target.c (gomp_map_0len_lookup, gomp_map_val): New inline
11963 (gomp_map_vars): Handle GOMP_MAP_ALWAYS_POINTER. For
11964 GOMP_MAP_ZERO_LEN_ARRAY_SECTION use gomp_map_0len_lookup.
11965 Use gomp_map_val function.
11966 (gomp_target_fallback_firstprivate): New static function.
11967 (GOMP_target_41): Renamed to ...
11968 (GOMP_target_ext): ... this. Add num_teams and thread_limit
11969 arguments. Move firstprivate fallback handling into a new
11971 (GOMP_target_data_41): Renamed to ...
11972 (GOMP_target_data_ext): ... this.
11973 (GOMP_target_update_41): Renamed to ...
11974 (GOMP_target_update_ext): ... this.
11975 (gomp_exit_data): For GOMP_MAP_*ZERO_LEN* use
11976 gomp_map_0len_lookup instead of gomp_map_lookup.
11977 (omp_target_is_present): Use gomp_map_0len_lookup instead of
11979 * testsuite/libgomp.c/target-28.c: Likewise.
11980 * testsuite/libgomp.c/monotonic-1.c: New test.
11981 * testsuite/libgomp.c/monotonic-2.c: New test.
11982 * testsuite/libgomp.c/nonmonotonic-1.c: New test.
11983 * testsuite/libgomp.c/nonmonotonic-2.c: New test.
11984 * testsuite/libgomp.c/pr66199-5.c: New test.
11985 * testsuite/libgomp.c/pr66199-6.c: New test.
11986 * testsuite/libgomp.c/pr66199-7.c: New test.
11987 * testsuite/libgomp.c/pr66199-8.c: New test.
11988 * testsuite/libgomp.c/pr66199-9.c: New test.
11989 * testsuite/libgomp.c/reduction-11.c: New test.
11990 * testsuite/libgomp.c/reduction-12.c: New test.
11991 * testsuite/libgomp.c/reduction-13.c: New test.
11992 * testsuite/libgomp.c/reduction-14.c: New test.
11993 * testsuite/libgomp.c/reduction-15.c: New test.
11994 * testsuite/libgomp.c/target-12.c (main): Adjust for
11995 omp_target_is_present change for one-past-last element.
11996 * testsuite/libgomp.c/target-17.c (foo): Drop tests where
11997 the same var is both mapped and privatized.
11998 * testsuite/libgomp.c/target-19.c (foo): Adjust for different
11999 handling of zero-length array sections.
12000 * testsuite/libgomp.c/target-28.c: New test.
12001 * testsuite/libgomp.c/target-29.c: New test.
12002 * testsuite/libgomp.c/target-30.c: New test.
12003 * testsuite/libgomp.c/target-teams-1.c: New test.
12004 * testsuite/libgomp.c++/member-6.C: New test.
12005 * testsuite/libgomp.c++/member-7.C: New test.
12006 * testsuite/libgomp.c++/monotonic-1.C: New test.
12007 * testsuite/libgomp.c++/monotonic-2.C: New test.
12008 * testsuite/libgomp.c++/nonmonotonic-1.C: New test.
12009 * testsuite/libgomp.c++/nonmonotonic-2.C: New test.
12010 * testsuite/libgomp.c++/pr66199-3.C: New test.
12011 * testsuite/libgomp.c++/pr66199-4.C: New test.
12012 * testsuite/libgomp.c++/pr66199-5.C: New test.
12013 * testsuite/libgomp.c++/pr66199-6.C: New test.
12014 * testsuite/libgomp.c++/pr66199-7.C: New test.
12015 * testsuite/libgomp.c++/pr66199-8.C: New test.
12016 * testsuite/libgomp.c++/pr66199-9.C: New test.
12017 * testsuite/libgomp.c++/reduction-11.C: New test.
12018 * testsuite/libgomp.c++/reduction-12.C: New test.
12019 * testsuite/libgomp.c++/target-13.C: New test.
12020 * testsuite/libgomp.c++/target-14.C: New test.
12021 * testsuite/libgomp.c++/target-15.C: New test.
12022 * testsuite/libgomp.c++/target-16.C: New test.
12023 * testsuite/libgomp.c++/target-17.C: New test.
12024 * testsuite/libgomp.c++/target-18.C: New test.
12025 * testsuite/libgomp.c++/target-19.C: New test.
12027 2015-11-04 Nathan Sidwell <nathan@codesourcery.com>
12029 * testsuite/libgomp.oacc-fortran/reduction-1.f90: Fix dimensions
12030 and reduction copy.
12031 * testsuite/libgomp.oacc-fortran/reduction-2.f90: Likewise.
12032 * testsuite/libgomp.oacc-fortran/reduction-3.f90: Likewise.
12033 * testsuite/libgomp.oacc-fortran/reduction-4.f90: Likewise.
12034 * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
12035 * testsuite/libgomp.oacc-c-c++-common/par-reduction-1.c: Likewise.
12036 * testsuite/libgomp.oacc-c-c++-common/reduction-3.c: Likewise.
12037 * testsuite/libgomp.oacc-c-c++-common/collapse-2.c: Likewise.
12038 * testsuite/libgomp.oacc-c-c++-common/par-reduction-2.c: Likewise.
12039 * testsuite/libgomp.oacc-c-c++-common/reduction-4.c: Likewise.
12040 * testsuite/libgomp.oacc-c-c++-common/reduction-initial-1.c: Likewise.
12041 * testsuite/libgomp.oacc-c-c++-common/reduction-1.c: Likewise.
12042 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Likewise.
12043 * testsuite/libgomp.oacc-c-c++-common/reduction-2.c: Likewise.
12044 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: New.
12046 2015-11-04 Nathan Sidwell <nathan@codesourcery.com>
12048 * libgomp.oacc-c-c++-common/loop-red-g-1.c: New.
12049 * libgomp.oacc-c-c++-common/loop-red-gwv-1.c: New.
12050 * libgomp.oacc-c-c++-common/loop-red-v-1.c: New.
12051 * libgomp.oacc-c-c++-common/loop-red-v-2.c: New.
12052 * libgomp.oacc-c-c++-common/loop-red-w-1.c: New.
12053 * libgomp.oacc-c-c++-common/loop-red-w-2.c: New.
12054 * libgomp.oacc-c-c++-common/loop-red-wv-1.c: New.
12055 * libgomp.oacc-fortran/reduction-5.f90: Avoid reference var.
12057 2015-11-03 Nathan Sidwell <nathan@codesourcery.com>
12059 * libgomp.h (struct acc_dispatch_t): Remove args from exec_func.
12060 * plugin/plugin-nvptx.c (nvptx_exec): Remove sizes & kinds arg.
12061 (GOMP_OFFLOAD_openacc_parallel): Likewise.
12062 * oacc-host.c (host_openacc_exec): Likewise.
12063 * oacc-parallel.c (GOACC_parallel_keyed): Adjust exec_func call.
12065 2015-11-03 Julian Brown <julian@codesourcery.com>
12066 Thomas Schwinge <thomas@codesourcery.com>
12068 * testsuite/libgomp.oacc-c-c++-common/par-reduction-1.c: New file.
12069 * testsuite/libgomp.oacc-c-c++-common/par-reduction-2.c: Likewise.
12070 * testsuite/libgomp.oacc-c-c++-common/worker-single-1a.c:
12072 * testsuite/libgomp.oacc-c-c++-common/worker-single-4.c: Likewise.
12073 * testsuite/libgomp.oacc-c-c++-common/worker-single-6.c: Likewise.
12075 2015-11-03 James Norris <jnorris@codesourcery.com>
12077 * testsuite/libgomp.oacc-c-c++-common/atomic_capture-1.c: New
12079 * testsuite/libgomp.oacc-c-c++-common/atomic_capture-2.c:
12081 * testsuite/libgomp.oacc-c-c++-common/atomic_rw-1.c: Likewise.
12082 * testsuite/libgomp.oacc-c-c++-common/atomic_update-1.c: Likewise.
12083 * testsuite/libgomp.oacc-fortran/atomic_capture-1.f90: Likewise.
12084 * testsuite/libgomp.oacc-fortran/atomic_rw-1.f90: New file.
12085 * testsuite/libgomp.oacc-fortran/atomic_update-1.f90: Likewise.
12087 2015-10-29 Nathan Sidwell <nathan@codesourcery.com>
12089 * openacc.h (enum acc_device_t): Reformat. Ensure layout
12091 (enum acc_async_t): Reformat.
12092 (acc_on_device): Declare compatible with builtin and provide C++
12094 * testsuite/libgomp.oacc-c-c++-common/acc-on-device.c: New.
12096 2015-10-29 Thomas Schwinge <thomas@codesourcery.com>
12097 Cesar Philippidis <cesar@codesourcery.com>
12099 * testsuite/libgomp.oacc-c-c++-common/combdir-1.c: Rename to...
12100 * testsuite/libgomp.oacc-c-c++-common/combined-directives-1.c:
12101 ... this. Add a description of the test at the top of the file.
12102 * testsuite/libgomp.oacc-fortran/combdir-1.f90: Rename file to...
12103 * testsuite/libgomp.oacc-fortran/combined-directives-1.f90:
12104 ... this. Add a description of the test at the top of the file.
12106 2015-10-28 Nathan Sidwell <nathan@codesourcery.com>
12108 * testsuite/libgomp.oacc-c-c++-common/loop-g-1.c: New.
12109 * testsuite/libgomp.oacc-c-c++-common/loop-g-2.c: New.
12110 * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c: New.
12111 * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c: New.
12112 * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c: New.
12113 * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c: New.
12115 2015-10-27 Nathan Sidwell <nathan@codesourcery.com>
12117 * plugin/plugin-nvptx.c (nvptx_exec): Remove check on compute
12120 2015-10-27 Thomas Schwinge <thomas@codesourcery.com>
12123 * testsuite/libgomp.c++/member-1.C (A::m1): Add missing private clause.
12125 2015-10-27 James Norris <jnorris@codesourcery.com>
12127 * testsuite/libgomp.oacc-c-c++-common/combdir-1.c: New file.
12128 * testsuite/libgomp.oacc-fortran/combdir-1.f90: Likewise.
12130 2015-10-26 Thomas Schwinge <thomas@codesourcery.com>
12132 * testsuite/libgomp.oacc-c-c++-common/abort-1.c: Print to stderr.
12133 * testsuite/libgomp.oacc-c-c++-common/abort-3.c: Likewise.
12135 * testsuite/libgomp.oacc-c-c++-common/lib-1.c: Remove explicit
12136 acc_device_nvidia usage.
12137 * testsuite/libgomp.oacc-c-c++-common/lib-10.c: Likewise.
12138 * testsuite/libgomp.oacc-c-c++-common/lib-2.c: Likewise.
12139 * testsuite/libgomp.oacc-c-c++-common/lib-9.c: Likewise.
12141 * oacc-init.c (acc_shutdown): Call gomp_init_targets_once.
12142 * testsuite/libgomp.oacc-c-c++-common/lib-8.c: New file.
12145 * testsuite/libgomp.oacc-c-c++-common/lib-3.c: Resolve XFAIL.
12149 * oacc-mem.c (update_dev_host): Call goacc_lazy_initialize.
12150 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Remove XFAIL.
12152 2015-10-23 Tom de Vries <tom@codesourcery.com>
12155 * testsuite/libgomp.c++/member-2.C (A::m1): Add missing private clause.
12157 2015-10-20 Nathan Sidwell <nathan@codesourcery.com>
12159 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Set sane
12161 * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
12163 2015-10-14 Ilya Verbin <ilya.verbin@intel.com>
12164 Aleksander Ivanushenko <aleksander.ivanushenko@intel.com>
12166 * target.c (gomp_map_vars): Initialize tgt->tgt_start and tgt->tgt_end
12167 to 0 when mapnum is 0.
12169 2015-10-14 Sebastian Huber <sebastian.huber@embedded-brains.de>
12171 * fortran.c (omp_get_place_proc_ids_, omp_get_partition_place_nums_):
12172 Cast to int from int32_t.
12174 2015-10-13 Jakub Jelinek <jakub@redhat.com>
12175 Aldy Hernandez <aldyh@redhat.com>
12176 Ilya Verbin <ilya.verbin@intel.com>
12178 * config/linux/affinity.c (omp_get_place_num_procs,
12179 omp_get_place_proc_ids, gomp_get_place_proc_ids_8): New functions.
12180 * config/linux/doacross.h: New file.
12181 * config/posix/affinity.c (omp_get_place_num_procs,
12182 omp_get_place_proc_ids, gomp_get_place_proc_ids_8): New functions.
12183 * config/posix/doacross.h: New file.
12184 * env.c: Include gomp-constants.h.
12185 (struct gomp_task_icv): Rename run_sched_modifier to
12186 run_sched_chunk_size.
12187 (gomp_max_task_priority_var): New variable.
12188 (parse_schedule): Rename run_sched_modifier to run_sched_chunk_size.
12189 (handle_omp_display_env): Change _OPENMP value from 201307 to
12190 201511. Print OMP_MAX_TASK_PRIORITY.
12191 (initialize_env): Parse OMP_MAX_TASK_PRIORITY.
12192 (omp_set_schedule, omp_get_schedule): Rename modifier argument to
12193 chunk_size and run_sched_modifier to run_sched_chunk_size.
12194 (omp_get_max_task_priority, omp_get_initial_device,
12195 omp_get_num_places, omp_get_place_num, omp_get_partition_num_places,
12196 omp_get_partition_place_nums): New functions.
12197 * fortran.c (omp_set_schedule_, omp_set_schedule_8_,
12198 omp_get_schedule_, omp_get_schedule_8_): Rename modifier argument
12200 (omp_get_num_places_, omp_get_place_num_procs_,
12201 omp_get_place_num_procs_8_, omp_get_place_proc_ids_,
12202 omp_get_place_proc_ids_8_, omp_get_place_num_,
12203 omp_get_partition_num_places_, omp_get_partition_place_nums_,
12204 omp_get_partition_place_nums_8_, omp_get_initial_device_,
12205 omp_get_max_task_priority_): New functions.
12206 * libgomp_g.h (GOMP_loop_doacross_static_start,
12207 GOMP_loop_doacross_dynamic_start, GOMP_loop_doacross_guided_start,
12208 GOMP_loop_doacross_runtime_start, GOMP_loop_ull_doacross_static_start,
12209 GOMP_loop_ull_doacross_dynamic_start,
12210 GOMP_loop_ull_doacross_guided_start,
12211 GOMP_loop_ull_doacross_runtime_start, GOMP_doacross_post,
12212 GOMP_doacross_wait, GOMP_doacross_ull_post, GOMP_doacross_wait,
12213 GOMP_taskloop, GOMP_taskloop_ull, GOMP_target_41,
12214 GOMP_target_data_41, GOMP_target_update_41,
12215 GOMP_target_enter_exit_data): New prototypes.
12216 (GOMP_task): Add prototype argument.
12217 * libgomp.h (_LIBGOMP_CHECKING_): Define to 0 if not yet defined.
12218 (struct gomp_doacross_work_share): New type.
12219 (struct gomp_work_share): Add doacross field.
12220 (struct gomp_task_icv): Rename run_sched_modifier to
12221 run_sched_chunk_size.
12222 (enum gomp_task_kind): Rename GOMP_TASK_IFFALSE to
12223 GOMP_TASK_UNDEFERRED. Add comments.
12224 (struct gomp_task_depend_entry): Add comments.
12225 (struct gomp_task): Likewise.
12226 (struct gomp_taskgroup): Likewise.
12227 (struct gomp_target_task): New type.
12228 (struct gomp_team): Add comment.
12229 (gomp_get_place_proc_ids_8, gomp_doacross_init,
12230 gomp_doacross_ull_init, gomp_task_maybe_wait_for_dependencies,
12231 gomp_create_target_task, gomp_target_task_fn): New prototypes.
12232 (struct target_var_desc): New type.
12233 (struct target_mem_desc): Adjust comment. Use struct
12234 target_var_desc instead of splay_tree_key for list.
12235 (REFCOUNT_INFINITY): Define.
12236 (struct splay_tree_key_s): Remove copy_from field.
12237 (struct gomp_device_descr): Add dev2dev_func field.
12238 (enum gomp_map_vars_kind): New enum.
12239 (gomp_map_vars): Add one argument.
12240 * libgomp.map (OMP_4.5): Export omp_get_max_task_priority,
12241 omp_get_max_task_priority_, omp_get_num_places, omp_get_num_places_,
12242 omp_get_place_num_procs, omp_get_place_num_procs_,
12243 omp_get_place_num_procs_8_, omp_get_place_proc_ids,
12244 omp_get_place_proc_ids_, omp_get_place_proc_ids_8_, omp_get_place_num,
12245 omp_get_place_num_, omp_get_partition_num_places,
12246 omp_get_partition_num_places_, omp_get_partition_place_nums,
12247 omp_get_partition_place_nums_, omp_get_partition_place_nums_8_,
12248 omp_get_initial_device, omp_get_initial_device_, omp_target_alloc,
12249 omp_target_free, omp_target_is_present, omp_target_memcpy,
12250 omp_target_memcpy_rect, omp_target_associate_ptr and
12251 omp_target_disassociate_ptr.
12252 (GOMP_4.0.2): Renamed to ...
12253 (GOMP_4.5): ... this. Export GOMP_target_41, GOMP_target_data_41,
12254 GOMP_target_update_41, GOMP_target_enter_exit_data, GOMP_taskloop,
12255 GOMP_taskloop_ull, GOMP_loop_doacross_dynamic_start,
12256 GOMP_loop_doacross_guided_start, GOMP_loop_doacross_runtime_start,
12257 GOMP_loop_doacross_static_start, GOMP_doacross_post,
12258 GOMP_doacross_wait, GOMP_loop_ull_doacross_dynamic_start,
12259 GOMP_loop_ull_doacross_guided_start,
12260 GOMP_loop_ull_doacross_runtime_start,
12261 GOMP_loop_ull_doacross_static_start, GOMP_doacross_ull_post and
12262 GOMP_doacross_ull_wait.
12263 * libgomp.texi: Document omp_get_max_task_priority.
12264 Rename modifier argument to chunk_size for omp_set_schedule and
12265 omp_get_schedule. Document OMP_MAX_TASK_PRIORITY env var.
12266 * loop.c (GOMP_loop_runtime_start): Adjust for run_sched_modifier
12267 to run_sched_chunk_size renaming.
12268 (GOMP_loop_ordered_runtime_start): Likewise.
12269 (gomp_loop_doacross_static_start, gomp_loop_doacross_dynamic_start,
12270 gomp_loop_doacross_guided_start, GOMP_loop_doacross_runtime_start,
12271 GOMP_parallel_loop_runtime_start): New functions.
12272 (GOMP_parallel_loop_runtime): Adjust for run_sched_modifier
12273 to run_sched_chunk_size renaming.
12274 (GOMP_loop_doacross_static_start, GOMP_loop_doacross_dynamic_start,
12275 GOMP_loop_doacross_guided_start): New functions or aliases.
12276 * loop_ull.c (GOMP_loop_ull_runtime_start): Adjust for
12277 run_sched_modifier to run_sched_chunk_size renaming.
12278 (GOMP_loop_ull_ordered_runtime_start): Likewise.
12279 (gomp_loop_ull_doacross_static_start,
12280 gomp_loop_ull_doacross_dynamic_start,
12281 gomp_loop_ull_doacross_guided_start,
12282 GOMP_loop_ull_doacross_runtime_start): New functions.
12283 (GOMP_loop_ull_doacross_static_start,
12284 GOMP_loop_ull_doacross_dynamic_start,
12285 GOMP_loop_ull_doacross_guided_start): New functions or aliases.
12286 * oacc-mem.c (acc_map_data, present_create_copy,
12287 gomp_acc_insert_pointer): Pass GOMP_MAP_VARS_OPENACC instead of false
12289 (gomp_acc_remove_pointer): Use copy_from from target_var_desc.
12290 * oacc-parallel.c (GOACC_data_start): Pass GOMP_MAP_VARS_OPENACC
12291 instead of false to gomp_map_vars.
12292 (GOACC_parallel_keyed): Likewise. Use copy_from from target_var_desc.
12293 * omp.h.in (omp_lock_hint_t): New type.
12294 (omp_init_lock_with_hint, omp_init_nest_lock_with_hint,
12295 omp_get_num_places, omp_get_place_num_procs, omp_get_place_proc_ids,
12296 omp_get_place_num, omp_get_partition_num_places,
12297 omp_get_partition_place_nums, omp_get_initial_device,
12298 omp_get_max_task_priority, omp_target_alloc, omp_target_free,
12299 omp_target_is_present, omp_target_memcpy, omp_target_memcpy_rect,
12300 omp_target_associate_ptr, omp_target_disassociate_ptr): New
12302 * omp_lib.f90.in (omp_lock_hint_kind): New parameter.
12303 (omp_lock_hint_none, omp_lock_hint_uncontended,
12304 omp_lock_hint_contended, omp_lock_hint_nonspeculative,
12305 omp_lock_hint_speculative): New parameters.
12306 (omp_init_lock_with_hint, omp_init_nest_lock_with_hint,
12307 omp_get_num_places, omp_get_place_num_procs, omp_get_place_proc_ids,
12308 omp_get_place_num, omp_get_partition_num_places,
12309 omp_get_partition_place_nums, omp_get_initial_device,
12310 omp_get_max_task_priority): New interfaces.
12311 (omp_set_schedule, omp_get_schedule): Rename modifier argument
12313 * omp_lib.h.in (omp_lock_hint_kind): New parameter.
12314 (omp_lock_hint_none, omp_lock_hint_uncontended,
12315 omp_lock_hint_contended, omp_lock_hint_nonspeculative,
12316 omp_lock_hint_speculative): New parameters.
12317 (omp_init_lock_with_hint, omp_init_nest_lock_with_hint,
12318 omp_get_num_places, omp_get_place_num_procs, omp_get_place_proc_ids,
12319 omp_get_place_num, omp_get_partition_num_places,
12320 omp_get_partition_place_nums, omp_get_initial_device,
12321 omp_get_max_task_priority): New functions and subroutines.
12322 * ordered.c: Include stdarg.h and string.h.
12323 (MAX_COLLAPSED_BITS): Define.
12324 (gomp_doacross_init, GOMP_doacross_post, GOMP_doacross_wait,
12325 gomp_doacross_ull_init, GOMP_doacross_ull_post,
12326 GOMP_doacross_ull_wait): New functions.
12327 * target.c: Include errno.h.
12328 (resolve_device): If device is not initialized, call
12329 gomp_init_device on it.
12330 (gomp_map_lookup): New function.
12331 (gomp_map_vars_existing): Add tgt_var argument, fill it in.
12332 Don't bump refcount if REFCOUNT_INFINITY. Handle
12333 GOMP_MAP_ALWAYS_TO_P.
12334 (get_kind): Rename is_openacc argument to short_mapkind.
12335 (gomp_map_pointer): Use gomp_map_lookup.
12336 (gomp_map_fields_existing): New function.
12337 (gomp_map_vars): Rename is_openacc argument to short_mapkind
12338 and is_target to pragma_kind. Handle GOMP_MAP_VARS_ENTER_DATA,
12339 handle GOMP_MAP_FIRSTPRIVATE_INT, GOMP_MAP_STRUCT,
12340 GOMP_MAP_USE_DEVICE_PTR, GOMP_MAP_ZERO_LEN_ARRAY_SECTION.
12341 Adjust for tgt->list changed type and copy_from living in there.
12342 (gomp_copy_from_async): Adjust for tgt->list changed type and
12343 copy_from living in there.
12344 (gomp_unmap_vars): Likewise.
12345 (gomp_update): Likewise. Rename is_openacc argument to
12346 short_mapkind. Don't fail if object is not mapped.
12347 (gomp_load_image_to_device): Initialize refcount to
12349 (gomp_target_fallback): New function.
12350 (gomp_get_target_fn_addr): Likewise.
12351 (GOMP_target): Adjust gomp_map_vars caller, use
12352 gomp_get_target_fn_addr and gomp_target_fallback.
12353 (GOMP_target_41): New function.
12354 (gomp_target_data_fallback): New function.
12355 (GOMP_target_data): Use it, adjust gomp_map_vars caller.
12356 (GOMP_target_data_41): New function.
12357 (GOMP_target_update): Adjust gomp_update caller.
12358 (GOMP_target_update_41): New function.
12359 (gomp_exit_data, GOMP_target_enter_exit_data,
12360 gomp_target_task_fn, omp_target_alloc, omp_target_free,
12361 omp_target_is_present, omp_target_memcpy,
12362 omp_target_memcpy_rect_worker, omp_target_memcpy_rect,
12363 omp_target_associate_ptr, omp_target_disassociate_ptr,
12364 gomp_load_plugin_for_device): New functions.
12365 * task.c: Include gomp-constants.h. Include taskloop.c
12366 twice to get GOMP_taskloop and GOMP_taskloop_ull definitions.
12367 (gomp_task_handle_depend): New function.
12368 (GOMP_task): Use it. Add priority argument. Use
12369 gomp-constant.h constants instead of hardcoded numbers.
12370 Rename GOMP_TASK_IFFALSE to GOMP_TASK_UNDEFERRED.
12371 (gomp_create_target_task): New function.
12372 (verify_children_queue, verify_taskgroup_queue,
12373 verify_task_queue): New functions.
12374 (gomp_task_run_pre): Call verify_*_queue functions.
12375 If an upcoming tied task is about to leave the sibling or
12376 taskgroup queues in an invalid state, adjust appropriately.
12377 Remove taskgroup argument. Add comments.
12378 (gomp_task_run_post_handle_dependers): Add comments.
12379 (gomp_task_run_post_remove_parent): Likewise.
12380 (gomp_barrier_handle_tasks): Adjust gomp_task_run_pre caller.
12381 (GOMP_taskwait): Likewise. Add comments.
12382 (gomp_task_maybe_wait_for_dependencies): Fix scheduling
12383 problem such that the first non parent_depends_on task does not
12384 end up at the end of the children queue.
12385 (GOMP_taskgroup_start): Rename GOMP_TASK_IFFALSE to
12386 GOMP_TASK_UNDEFERRED.
12387 (GOMP_taskgroup_end): Adjust gomp_task_run_pre caller.
12388 * taskloop.c: New file.
12389 * testsuite/lib/libgomp.exp
12390 (check_effective_target_offload_device_nonshared_as): New proc.
12391 * testsuite/libgomp.c/affinity-2.c: New test.
12392 * testsuite/libgomp.c/doacross-1.c: New test.
12393 * testsuite/libgomp.c/doacross-2.c: New test.
12394 * testsuite/libgomp.c/examples-4/declare_target-1.c (fib_wrapper):
12395 Add map clause to target.
12396 * testsuite/libgomp.c/examples-4/declare_target-4.c (accum): Likewise.
12397 * testsuite/libgomp.c/examples-4/declare_target-5.c (accum): Likewise.
12398 * testsuite/libgomp.c/examples-4/device-1.c (main): Likewise.
12399 * testsuite/libgomp.c/examples-4/device-3.c (main): Likewise.
12400 * testsuite/libgomp.c/examples-4/target_data-3.c (gramSchmidt):
12402 * testsuite/libgomp.c/examples-4/teams-2.c (dotprod): Likewise.
12403 * testsuite/libgomp.c/examples-4/teams-3.c (dotprod): Likewise.
12404 * testsuite/libgomp.c/examples-4/teams-4.c (dotprod): Likewise.
12405 * testsuite/libgomp.c/for-2.h (OMPTGT, OMPTO, OMPFROM): Define if
12406 not defined. Use those where needed.
12407 * testsuite/libgomp.c/for-4.c: New test.
12408 * testsuite/libgomp.c/for-5.c: New test.
12409 * testsuite/libgomp.c/for-6.c: New test.
12410 * testsuite/libgomp.c/linear-1.c: New test.
12411 * testsuite/libgomp.c/ordered-4.c: New test.
12412 * testsuite/libgomp.c/pr66199-2.c (f2): Adjust for linear clause
12413 only allowed on the loop iterator.
12414 * testsuite/libgomp.c/pr66199-3.c: New test.
12415 * testsuite/libgomp.c/pr66199-4.c: New test.
12416 * testsuite/libgomp.c/reduction-7.c: New test.
12417 * testsuite/libgomp.c/reduction-8.c: New test.
12418 * testsuite/libgomp.c/reduction-9.c: New test.
12419 * testsuite/libgomp.c/reduction-10.c: New test.
12420 * testsuite/libgomp.c/target-1.c (fn2, fn3, fn4): Add
12422 * testsuite/libgomp.c/target-2.c (fn2, fn3, fn4): Likewise.
12423 * testsuite/libgomp.c/target-7.c (foo): Add map(h) where needed.
12424 * testsuite/libgomp.c/target-11.c: New test.
12425 * testsuite/libgomp.c/target-12.c: New test.
12426 * testsuite/libgomp.c/target-13.c: New test.
12427 * testsuite/libgomp.c/target-14.c: New test.
12428 * testsuite/libgomp.c/target-15.c: New test.
12429 * testsuite/libgomp.c/target-16.c: New test.
12430 * testsuite/libgomp.c/target-17.c: New test.
12431 * testsuite/libgomp.c/target-18.c: New test.
12432 * testsuite/libgomp.c/target-19.c: New test.
12433 * testsuite/libgomp.c/target-20.c: New test.
12434 * testsuite/libgomp.c/target-21.c: New test.
12435 * testsuite/libgomp.c/target-22.c: New test.
12436 * testsuite/libgomp.c/target-23.c: New test.
12437 * testsuite/libgomp.c/target-24.c: New test.
12438 * testsuite/libgomp.c/target-25.c: New test.
12439 * testsuite/libgomp.c/target-26.c: New test.
12440 * testsuite/libgomp.c/target-27.c: New test.
12441 * testsuite/libgomp.c/taskloop-1.c: New test.
12442 * testsuite/libgomp.c/taskloop-2.c: New test.
12443 * testsuite/libgomp.c/taskloop-3.c: New test.
12444 * testsuite/libgomp.c/taskloop-4.c: New test.
12445 * testsuite/libgomp.c++/ctor-13.C: New test.
12446 * testsuite/libgomp.c++/doacross-1.C: New test.
12447 * testsuite/libgomp.c++/examples-4/declare_target-2.C:
12448 Replace offload_device with offload_device_nonshared_as.
12449 * testsuite/libgomp.c++/for-12.C: New test.
12450 * testsuite/libgomp.c++/for-13.C: New test.
12451 * testsuite/libgomp.c++/for-14.C: New test.
12452 * testsuite/libgomp.c++/linear-1.C: New test.
12453 * testsuite/libgomp.c++/member-1.C: New test.
12454 * testsuite/libgomp.c++/member-2.C: New test.
12455 * testsuite/libgomp.c++/member-3.C: New test.
12456 * testsuite/libgomp.c++/member-4.C: New test.
12457 * testsuite/libgomp.c++/member-5.C: New test.
12458 * testsuite/libgomp.c++/ordered-1.C: New test.
12459 * testsuite/libgomp.c++/reduction-5.C: New test.
12460 * testsuite/libgomp.c++/reduction-6.C: New test.
12461 * testsuite/libgomp.c++/reduction-7.C: New test.
12462 * testsuite/libgomp.c++/reduction-8.C: New test.
12463 * testsuite/libgomp.c++/reduction-9.C: New test.
12464 * testsuite/libgomp.c++/reduction-10.C: New test.
12465 * testsuite/libgomp.c++/reference-1.C: New test.
12466 * testsuite/libgomp.c++/simd14.C: New test.
12467 * testsuite/libgomp.c++/target-2.C (fn2): Add map(tofrom: s) clause.
12468 * testsuite/libgomp.c++/target-5.C: New test.
12469 * testsuite/libgomp.c++/target-6.C: New test.
12470 * testsuite/libgomp.c++/target-7.C: New test.
12471 * testsuite/libgomp.c++/target-8.C: New test.
12472 * testsuite/libgomp.c++/target-9.C: New test.
12473 * testsuite/libgomp.c++/target-10.C: New test.
12474 * testsuite/libgomp.c++/target-11.C: New test.
12475 * testsuite/libgomp.c++/target-12.C: New test.
12476 * testsuite/libgomp.c++/taskloop-1.C: New test.
12477 * testsuite/libgomp.c++/taskloop-2.C: New test.
12478 * testsuite/libgomp.c++/taskloop-3.C: New test.
12479 * testsuite/libgomp.c++/taskloop-4.C: New test.
12480 * testsuite/libgomp.c++/taskloop-5.C: New test.
12481 * testsuite/libgomp.c++/taskloop-6.C: New test.
12482 * testsuite/libgomp.c++/taskloop-7.C: New test.
12483 * testsuite/libgomp.c++/taskloop-8.C: New test.
12484 * testsuite/libgomp.c++/taskloop-9.C: New test.
12485 * testsuite/libgomp.fortran/affinity1.f90: New test.
12486 * testsuite/libgomp.fortran/affinity2.f90: New test.
12488 2015-10-13 Tom de Vries <tom@codesourcery.com>
12490 PR tree-optimization/67476
12491 * testsuite/libgomp.c/autopar-3.c: New test.
12492 * testsuite/libgomp.c/autopar-4.c: New test.
12493 * testsuite/libgomp.c/autopar-5.c: New test.
12494 * testsuite/libgomp.c/autopar-6.c: New test.
12495 * testsuite/libgomp.c/autopar-7.c: New test.
12496 * testsuite/libgomp.c/autopar-8.c: New test.
12498 2015-10-12 James Norris <jnorris@codesourcery.com>
12500 * testsuite/libgomp.oacc-c-c++-common/vector-loop.c: Fix loop
12503 2015-10-09 David Malcolm <dmalcolm@redhat.com>
12505 * testsuite/lib/libgomp.exp: Load multiline.exp before prune.exp,
12506 using load_gcc_lib.
12508 2015-10-02 Thomas Schwinge <thomas@codesourcery.com>
12510 * oacc-ptx.h: Remove file, moving its content into...
12511 * config/nvptx/fortran.c: ... here...
12512 * config/nvptx/oacc-init.c: ..., here...
12513 * config/nvptx/oacc-parallel.c: ..., and here.
12514 * config/nvptx/openacc.f90: New file.
12515 * plugin/plugin-nvptx.c: Don't include "oacc-ptx.h".
12516 (link_ptx): Don't link in predefined bits of PTX code.
12518 2015-09-30 Nathan Sidwell <nathan@codesourcery.com>
12519 Bernd Schmidt <bernds@codesourcery.com>
12521 * plugin/plugin-nvptx.c (targ_fn_launch): Use GOMP_DIM_MAX.
12522 (struct targ_ptx_obj): New.
12523 (nvptx_tdata): Move earlier, change data format.
12524 (link_ptx): Take targ_ptx_obj ptr and count. Allow multiple
12526 (GOMP_OFFLOAD_load_image): Adjust.
12528 2015-09-30 Thomas Schwinge <thomas@codesourcery.com>
12530 * testsuite/libgomp.oacc-c-c++-common/abort-1.c: Add checkpoint.
12531 * testsuite/libgomp.oacc-c-c++-common/abort-3.c: Likewise.
12532 * testsuite/libgomp.oacc-c-c++-common/clauses-2.c: Likewise.
12533 * testsuite/libgomp.oacc-c-c++-common/data-already-1.c: Likewise.
12534 * testsuite/libgomp.oacc-c-c++-common/data-already-2.c: Likewise.
12535 * testsuite/libgomp.oacc-c-c++-common/data-already-3.c: Likewise.
12536 * testsuite/libgomp.oacc-c-c++-common/data-already-4.c: Likewise.
12537 * testsuite/libgomp.oacc-c-c++-common/data-already-5.c: Likewise.
12538 * testsuite/libgomp.oacc-c-c++-common/data-already-6.c: Likewise.
12539 * testsuite/libgomp.oacc-c-c++-common/data-already-7.c: Likewise.
12540 * testsuite/libgomp.oacc-c-c++-common/data-already-8.c: Likewise.
12541 * testsuite/libgomp.oacc-c-c++-common/lib-1.c: Likewise.
12542 * testsuite/libgomp.oacc-c-c++-common/lib-11.c: Likewise.
12543 * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
12544 * testsuite/libgomp.oacc-c-c++-common/lib-17.c: Likewise.
12545 * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
12546 * testsuite/libgomp.oacc-c-c++-common/lib-2.c: Likewise.
12547 * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
12548 * testsuite/libgomp.oacc-c-c++-common/lib-21.c: Likewise.
12549 * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Likewise.
12550 * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
12551 * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
12552 * testsuite/libgomp.oacc-c-c++-common/lib-26.c: Likewise.
12553 * testsuite/libgomp.oacc-c-c++-common/lib-27.c: Likewise.
12554 * testsuite/libgomp.oacc-c-c++-common/lib-28.c: Likewise.
12555 * testsuite/libgomp.oacc-c-c++-common/lib-29.c: Likewise.
12556 * testsuite/libgomp.oacc-c-c++-common/lib-3.c: Likewise.
12557 * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
12558 * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
12559 * testsuite/libgomp.oacc-c-c++-common/lib-35.c: Likewise.
12560 * testsuite/libgomp.oacc-c-c++-common/lib-36.c: Likewise.
12561 * testsuite/libgomp.oacc-c-c++-common/lib-39.c: Likewise.
12562 * testsuite/libgomp.oacc-c-c++-common/lib-4.c: Likewise.
12563 * testsuite/libgomp.oacc-c-c++-common/lib-40.c: Likewise.
12564 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
12565 * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Likewise.
12566 * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
12567 * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Likewise.
12568 * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
12569 * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Likewise.
12570 * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
12571 * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
12572 * testsuite/libgomp.oacc-c-c++-common/lib-57.c: Likewise.
12573 * testsuite/libgomp.oacc-c-c++-common/lib-58.c: Likewise.
12574 * testsuite/libgomp.oacc-c-c++-common/lib-62.c: Likewise.
12575 * testsuite/libgomp.oacc-c-c++-common/lib-63.c: Likewise.
12576 * testsuite/libgomp.oacc-c-c++-common/lib-64.c: Likewise.
12577 * testsuite/libgomp.oacc-c-c++-common/lib-65.c: Likewise.
12578 * testsuite/libgomp.oacc-c-c++-common/lib-67.c: Likewise.
12579 * testsuite/libgomp.oacc-c-c++-common/lib-68.c: Likewise.
12580 * testsuite/libgomp.oacc-c-c++-common/lib-71.c: Likewise.
12581 * testsuite/libgomp.oacc-c-c++-common/lib-77.c: Likewise.
12582 * testsuite/libgomp.oacc-c-c++-common/lib-80.c: Likewise.
12583 * testsuite/libgomp.oacc-c-c++-common/present-1.c: Likewise.
12584 * testsuite/libgomp.oacc-fortran/abort-1.f90: Likewise.
12585 * testsuite/libgomp.oacc-fortran/data-already-1.f: Likewise.
12586 * testsuite/libgomp.oacc-fortran/data-already-2.f: Likewise.
12587 * testsuite/libgomp.oacc-fortran/data-already-3.f: Likewise.
12588 * testsuite/libgomp.oacc-fortran/data-already-4.f: Likewise.
12589 * testsuite/libgomp.oacc-fortran/data-already-5.f: Likewise.
12590 * testsuite/libgomp.oacc-fortran/data-already-6.f: Likewise.
12591 * testsuite/libgomp.oacc-fortran/data-already-7.f: Likewise.
12592 * testsuite/libgomp.oacc-fortran/data-already-8.f: Likewise.
12594 2015-09-29 Nathan Sidwell <nathan@codesourcery.com>
12596 * oacc-init.c (acc_on_device): Force optimization level.
12598 2015-09-29 Nathan Sidwell <nathan@codesourcery.com>
12600 * plugin/plugin-nvptx.c (ARRAYSIZE): Delete.
12601 (cuda_errlist): Delete.
12602 (cuda_error): Reimplement.
12604 2015-09-28 Nathan Sidwell <nathan@codesourcery.com>
12606 * libgomp.h (acc_dispatch_t): Replace separate geometry args with
12608 * libgomp.map (GOACC_parallel_keyed): New.
12609 * oacc-parallel.c (goacc_wait): Take pointer to va_list. Adjust
12611 (GOACC_parallel_keyed): New interface. Lose geometry arguments
12612 and take keyed varargs list. Adjust call to exec_func.
12613 (GOACC_parallel): Force host fallback.
12614 * libgomp_g.h (GOACC_parallel): Remove.
12615 (GOACC_parallel_keyed): Declare.
12616 * plugin/plugin-nvptx.c (struct targ_fn_launch): New struct.
12617 (struct targ_gn_descriptor): Replace name field with launch field.
12618 (nvptx_exec): Lose separate geometry args, take array. Process
12619 dynamic dimensions and adjust.
12620 (struct nvptx_tdata): Replace fn_names field with fn_descs.
12621 (GOMP_OFFLOAD_load_image): Adjust for change in function table
12623 (GOMP_OFFLOAD_openacc_parallel): Adjust for change in dimension
12625 * oacc-host.c (host_openacc_exec): Adjust for change in dimension
12628 2015-09-22 Chung-Lin Tang <cltang@codesourcery.com>
12631 * oacc-int.h (goacc_host_init): Add declaration.
12632 * oacc-host.c (goacc_host_init): Remove static and constructor attribute.
12633 * oacc-init.c (goacc_runtime_initialize): Call goacc_host_init() at end.
12635 2015-09-08 Aditya Kumar <hiraditya@msn.com>
12636 Sebastian Pop <s.pop@samsung.com>
12638 * testsuite/libgomp.graphite/bounds.c (int foo): Modified test case to
12640 * testsuite/libgomp.graphite/force-parallel-1.c (void parloop): Same.
12641 * testsuite/libgomp.graphite/force-parallel-4.c: Same.
12642 * testsuite/libgomp.graphite/force-parallel-5.c: Same.
12643 * testsuite/libgomp.graphite/force-parallel-7.c: Same.
12644 * testsuite/libgomp.graphite/force-parallel-8.c: Same.
12646 2015-09-03 Jakub Jelinek <jakub@redhat.com>
12648 * configure.tgt: Add missing ;; in between nvptx and rtems
12651 2015-09-03 Sebastian Huber <sebastian.huber@embedded-brains.de>
12653 * config/posix/pool.h (gomp_adjust_thread_attr): New.
12654 * config/rtems/pool.h (gomp_adjust_thread_attr): Likewise.
12655 (gomp_thread_pool_reservoir): Add priority member.
12656 * confi/rtems/proc.c (allocate_thread_pool_reservoir): Add
12658 (parse_thread_pools): Likewise.
12659 * team.c (gomp_team_start): Call configuration provided
12660 gomp_adjust_thread_attr(). Destroy thread attributes if
12662 * libgomp.texi: Document GOMP_RTEMS_THREAD_POOLS.
12664 2015-09-03 Sebastian Huber <sebastian.huber@embedded-brains.de>
12666 * config/posix/pool.h: New.
12667 * config/rtems/pool.h: Likewise.
12668 * config/rtems/proc.c: Likewise.
12669 * libgomp.h (gomp_thread_destructor): Declare.
12670 * team.c: Include configuration provided "pool.h".
12671 (gomp_get_thread_pool): Define in configuration.
12672 (gomp_team_end): Call configuration defined
12673 gomp_release_thread_pool().
12675 2015-09-03 Sebastian Huber <sebastian.huber@embedded-brains.de>
12677 * config/rtems/bar.c: New.
12678 * config/rtems/bar.h: Likewise.
12679 * config/rtems/mutex.c: Likewise.
12680 * config/rtems/mutex.h: Likewise.
12681 * config/rtems/sem.c: Likewise.
12682 * config/rtems/sem.h: Likewise.
12683 * configure.ac (*-*-rtems*): Check that Newlib provides a proper
12684 <sys/lock.h> header file.
12685 * configure.tgt (*-*-rtems*): Enable RTEMS configuration if
12686 supported by Newlib.
12687 * configure: Regenerate.
12689 2015-09-03 Sebastian Huber <sebastian.huber@embedded-brains.de>
12691 * team.c (gomp_new_thread_pool): Delete and move content to ...
12692 (gomp_get_thread_pool): ... new function. Allocate and
12693 initialize thread pool on demand.
12694 (get_last_team): Use gomp_get_thread_pool().
12695 (gomp_team_start): Delete thread pool initialization.
12697 2015-09-03 Tom de Vries <tom@codesourcery.com>
12699 PR tree-optimization/65637
12700 * testsuite/libgomp.c/autopar-2.c: New test.
12702 2015-08-29 Tom de Vries <tom@codesourcery.com>
12704 PR tree-optimization/46193
12705 * testsuite/libgomp.c/pr46193.c: New test.
12707 2015-08-24 Nathan Sidwell <nathan@codesourcery.com>
12710 * libgomp.map: Add 4.0.2 version.
12711 * target.c (offload_image_descr): Add version field.
12712 (gomp_load_image_to_device): Add version argument. Adjust plugin
12713 call. Improve load mismatch diagnostic.
12714 (gomp_unload_image_from_device): Add version argument. Adjust plugin
12716 (GOMP_offload_regster): Make stub function, move bulk to ...
12717 (GOMP_offload_register_ver): ... here. Process version argument.
12718 (GOMP_offload_unregister): Make stub function, move bulk to ...
12719 (GOMP_offload_unregister_ver): ... here. Process version argument.
12720 (gomp_init_device): Process version field.
12721 (gomp_unload_device): Process version field.
12722 (gomp_load_plugin_for_device): Reimplement DLSYM & DLSYM_OPT
12723 macros. Check plugin version.
12724 * libgomp.h (gomp_device_descr): Add version function field. Adjust
12725 loader and unloader types.
12726 * oacc-host.c: Include gomp-constants.h.
12727 (host_version): New.
12728 (host_load_image, host_unload_image): Adjust.
12729 (host_dispatch): Add host_version.
12730 * plugin/plugin-nvptx.c: Include gomp-constants.h.
12731 (GOMP_OFFLOAD_version): New.
12732 (GOMP_OFFLOAD_load_image): Add version arg and check it.
12733 (GOMP_OFFLOAD_unload_image): Likewise.
12734 * plugin/plugin-host.c: Include gomp-constants.h.
12735 (GOMP_OFFLOAD_version): New.
12736 (GOMP_OFFLOAD_load_image): Add version arg.
12737 (GOMP_OFFLOAD_unload_image): Likewise.
12739 2015-08-24 Tom de Vries <tom@codesourcery.com>
12741 PR tree-optimization/65468
12742 * testsuite/libgomp.oacc-c-c++-common/vector-loop.c: New test.
12744 2015-08-24 Tom de Vries <tom@codesourcery.com>
12746 PR tree-optimization/65468
12747 * testsuite/libgomp.c/static-chunk-size-one.c: New test.
12749 2015-08-24 Joost VandeVondele <vondele@gnu.gcc.org>
12753 * iter.c (gomp_iter_dynamic_next): Employ an atomic load.
12754 (gomp_iter_guided_next): Idem.
12755 * iter_ull.c (gomp_iter_ull_dynamic_next): Idem.
12756 (gomp_iter_ull_guided_next): Idem.
12757 * config/linux/wait.h (do_spin): Idem.
12759 2015-08-10 Thomas Schwinge <thomas@codesourcery.com>
12761 * libgomp-plugin.h (enum offload_target_type): Remove
12762 OFFLOAD_TARGET_TYPE_HOST_NONSHM.
12763 * openacc.f90 (openacc_kinds): Remove acc_device_host_nonshm.
12764 * openacc.h (enum acc_device_t): Likewise.
12765 * openacc_lib.h: Likewise.
12766 * oacc-init.c (name_of_acc_device_t): Don't handle it.
12767 (acc_on_device): Just use __builtin_acc_on_device.
12768 * testsuite/libgomp.oacc-c-c++-common/if-1.c: Don't forbid usage
12769 of acc_on_device builtin.
12770 * plugin/plugin-host.h: Remove file.
12771 * plugin/plugin-host.c: Likewise, but salvage some content into...
12772 * oacc-host.c: ... this file.
12773 * plugin/Makefrag.am: Don't build libgomp-plugin-host_nonshm.la.
12774 * plugin/configfrag.ac (offload_targets): Don't add host_nonshm.
12775 * Makefile.in: Regenerate.
12776 * configure: Likewise.
12777 * testsuite/lib/libgomp.exp
12778 (check_effective_target_openacc_host_nonshm_selected): Remove.
12779 * testsuite/libgomp.oacc-c++/c++.exp: Don't handle
12780 ACC_DEVICE_TYPE=host_nonshm.
12781 * testsuite/libgomp.oacc-c/c.exp: Likewise.
12782 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
12783 * testsuite/libgomp.oacc-c-c++-common/acc_on_device-1.c: Likewise.
12784 * testsuite/libgomp.oacc-fortran/acc_on_device-1-1.f90: Likewise.
12785 * testsuite/libgomp.oacc-fortran/acc_on_device-1-2.f: Likewise.
12786 * testsuite/libgomp.oacc-fortran/acc_on_device-1-3.f: Likewise.
12788 2015-08-10 Thomas Schwinge <thomas@codesourcery.com>
12789 Jakub Jelinek <jakub@redhat.com>
12791 * config/nvptx/affinity.c: New file.
12792 * config/nvptx/alloc.c: Likewise.
12793 * config/nvptx/bar.c: Likewise.
12794 * config/nvptx/barrier.c: Likewise.
12795 * config/nvptx/critical.c: Likewise.
12796 * config/nvptx/env.c: Likewise.
12797 * config/nvptx/error.c: Likewise.
12798 * config/nvptx/fortran.c: Likewise.
12799 * config/nvptx/iter.c: Likewise.
12800 * config/nvptx/iter_ull.c: Likewise.
12801 * config/nvptx/libgomp-plugin.c: Likewise.
12802 * config/nvptx/lock.c: Likewise.
12803 * config/nvptx/loop.c: Likewise.
12804 * config/nvptx/loop_ull.c: Likewise.
12805 * config/nvptx/mutex.c: Likewise.
12806 * config/nvptx/oacc-async.c: Likewise.
12807 * config/nvptx/oacc-cuda.c: Likewise.
12808 * config/nvptx/oacc-host.c: Likewise.
12809 * config/nvptx/oacc-init.c: Likewise.
12810 * config/nvptx/oacc-mem.c: Likewise.
12811 * config/nvptx/oacc-parallel.c: Likewise.
12812 * config/nvptx/oacc-plugin.c: Likewise.
12813 * config/nvptx/omp-lock.h: Likewise.
12814 * config/nvptx/ordered.c: Likewise.
12815 * config/nvptx/parallel.c: Likewise.
12816 * config/nvptx/proc.c: Likewise.
12817 * config/nvptx/ptrlock.c: Likewise.
12818 * config/nvptx/sections.c: Likewise.
12819 * config/nvptx/sem.c: Likewise.
12820 * config/nvptx/single.c: Likewise.
12821 * config/nvptx/splay-tree.c: Likewise.
12822 * config/nvptx/target.c: Likewise.
12823 * config/nvptx/task.c: Likewise.
12824 * config/nvptx/team.c: Likewise.
12825 * config/nvptx/time.c: Likewise.
12826 * config/nvptx/work.c: Likewise.
12827 * configure.ac: Don't probe pthreads support for host nvptx*-*-*.
12828 * configure: Regenerate.
12829 * configure.tgt (config_path): Set to "nvptx" for target
12832 2015-08-10 Thomas Schwinge <thomas@codesourcery.com>
12834 * testsuite/libgomp.oacc-c-c++-common/vector-type-1.c: New file.
12836 2015-08-03 Nathan Sidwell <nathan@codesourcery.com>
12838 * plugin/plugin-nvptx.c: Don't include dlfcn.h.
12839 (cuda_errlist): Constify.
12840 (errmsg): Move into ...
12841 (cuda_error): ... here. Make smaller.
12842 (_XSTR, _STR): Delete.
12843 (cuda_synames): Delete.
12844 (verify_device_library): Delete.
12845 (nvptx_init): Don't call it.
12847 2015-07-28 Tom de Vries <tom@codesourcery.com>
12849 * testsuite/libgomp.c/uns-outer-4.c: New test.
12851 2015-07-24 Cesar Philippidis <cesar@codesourcery.com>
12853 * testsuite/libgomp.c/pr66714.c: New test.
12855 2015-07-22 Maxim Blumenthal <maxim.blumenthal@intel.com>
12858 * testsuite/libgomp.c/examples-4/simd-7.c (N): Change to 30 from 45.
12859 (fib_ref): New function.
12860 (fib): Correct corner cases in the recursion.
12861 (main): Replace the non-simd loop with fib_ref call.
12862 * testsuite/libgomp.fortran/examples-4/simd-7.f90: (fib_ref): New
12864 (fibonacci): Lower the parameter N to 30. Correct accordingly check
12865 for the last array element value. Replace the non-simd loop with
12866 fib_ref call. Remove redundant b_ref array. Remove the comparison
12867 of the last array element with according Fibonacci sequence element.
12868 (fib): Correct corner cases in the recursion.
12870 2015-07-21 Nathan Sidwell <nathan@codesourcery.com>
12872 * target.c (gomp_offload_image_to_device): Rename to ...
12873 (gomp_load_image_to_device): ... here.
12874 (GOMP_offload_register): Adjust call.
12875 (gomp_init_device): Likewise.
12876 (gomp_unload_image_from_device): New. Broken out of ...
12877 (GOMP_offload_unregister): ... here. Call it.
12878 (gomp_unload_device): New.
12879 * libgomp.h (gomp_unload_device): Declare.
12880 * oacc-init.c (acc_shutdown_1): Unload from device before deleting
12883 2015-07-20 Nathan Sidwell <nathan@codesourcery.com>
12885 * oacc-parallel.c (GOACC_parallel): Move variadic handling into
12887 (GOACC_enter_exit_data, GOACC_update): Use consistent num_waits
12889 (goacc_waits): Move !num_waits handling to ...
12890 (GOACC_wait): ... here, the only caller that might have zero waits.
12892 * plugin/plugin-nvptx.c (struct targ_fn_descriptor): Move later.
12893 (struct ptx_image_data): Move earlier, add fns field.
12894 (struct ptx_device): Add images and image_lock fields.
12895 (ptx_images, ptx_image_lock): Delete.
12896 (nvptx_open_device): Initialize images and image_lock fields.
12897 (nvptx_close_device): Destroy image_lock.
12898 (GOMP_OFFLOAD_load_image): Register image to device-specific fields.
12899 (GOMP_OFFLOAD_unload_image): Unregister image from device-specific
12902 2015-07-17 Nathan Sidwell <nathan@codesourcery.com>
12904 * target.c (GOMP_offload_register): Use int for device type arg.
12905 (GOMP_offload_unregister): Likewise.
12907 * target.c (struct_offload_image_descr): Constify host_table.
12908 (gomp_offload_image_to_device): Likewise.
12909 (GOMP_offload_register, GOMP_offload_unregister): Likewise.
12911 * libgomp.h (gomp_device_descr): Constify target data arguments.
12912 * target.c (struct offload_image_descr): Constify target_data.
12913 (gomp_offload_image_to_device): Likewise.
12914 (GOMP_offload_register): Likewise.
12915 (GOMP_offload_unregister): Likewise.
12916 * plugin/plugin-host.c (GOMP_OFFLOAD_load_image,
12917 GOMP_OFFLOAD_unload_image): Constify target data.
12918 * plugin/plugin-nvptx.c (struct ptx_image_data): Constify target data.
12919 (GOMP_OFFLOAD_load_image, GOMP_OFFLOAD_unload_image): Likewise.
12921 2015-07-16 Nathan Sidwell <nathan@codesourcery.com>
12923 * plugin/plugin-nvptx.c (link_ptx): Constify string argument.
12924 Workaround driver library const error.
12925 (struct nvptx_tdata, nvptx_tdata_t): New.
12926 (GOMP_OFFLOAD_load_image): Use struct for target_data's real
12929 2015-07-15 Maxim Blumenthal <maxim.blumenthal@intel.com>
12931 * testsuite/libgomp.fortran/examples-4/simd-8.f90: (main): Change type
12932 of EPS parameter from integer to real.
12933 * testsuite/libgomp.fortran/examples-4/task_dep-5.f90: (check): Change
12934 type of EPS parameter from integer to real.
12936 2015-07-15 Sebastian Huber <sebastian.huber@embedded-brains.de>
12938 * team.c (get_last_team): New.
12939 (gomp_new_team): Recycle last non-nested team if possible.
12940 (gomp_team_end): Move team work share list free lock destruction
12942 (free_team): ... here.
12944 2015-07-14 Maxim Blumenthal <maxim.blumenthal@intel.com>
12946 * testsuite/libgomp.c/examples-4/simd-3.c: (main): Change type of res
12947 and ref from int to double. Replaced their comparison with
12948 an inequality of their difference and EPS.
12949 * testsuite/libgomp.c/examples-4/simd-8.c: (main): Replace the
12950 comparison of pri and a reference number with an inequality of their
12951 difference and EPS.
12952 * testsuite/libgomp.fortran/examples-4/simd-3.f90: (main): Replaced
12953 the comparison of sum and sum_ref with an inequality of their
12954 difference and EPS.
12955 * testsuite/libgomp.fortran/examples-4/simd-8.f90: (main): Replace
12956 the comparison of pri and a reference number with an inequality of
12957 their difference and EPS.
12959 2015-07-13 Maxim Blumenthal <maxim.blumenthal@intel.com>
12961 * testsuite/libgomp.c++/examples-4/e.53.2.C: Renamed to...
12962 * testsuite/libgomp.c++/examples-4/declare_target-2.C: ...this.
12963 * testsuite/libgomp.c++/examples-4/e.51.5.C: Renamed to...
12964 * testsuite/libgomp.c++/examples-4/target_data-5.C: ...this.
12965 * testsuite/libgomp.c/examples-4/e.56.3.c: Renamed to...
12966 * testsuite/libgomp.c/examples-4/array_sections-3.c: ...this.
12967 * testsuite/libgomp.c/examples-4/e.56.4.c: Renamed to...
12968 * testsuite/libgomp.c/examples-4/array_sections-4.c: ...this.
12969 * testsuite/libgomp.c/examples-4/e.55.1.c: Renamed to...
12970 * testsuite/libgomp.c/examples-4/async_target-1.c: ...this.
12971 * testsuite/libgomp.c/examples-4/e.55.2.c: Renamed to...
12972 * testsuite/libgomp.c/examples-4/async_target-2.c: ...this.
12973 (vec_mult_ref): Remove v1 and v2 arguments, turn them into local
12975 (vec_mult): Likewise. Add #pragma omp taskwait.
12976 (main): Adjust caller.
12977 * testsuite/libgomp.c/examples-4/e.53.1.c: Renamed to...
12978 * testsuite/libgomp.c/examples-4/declare_target-1.c: ...this.
12979 * testsuite/libgomp.c/examples-4/e.53.3.c: Renamed to...
12980 * testsuite/libgomp.c/examples-4/declare_target-3.c: ...this.
12981 * testsuite/libgomp.c/examples-4/e.53.4.c: Renamed to...
12982 * testsuite/libgomp.c/examples-4/declare_target-4.c: ...this.
12983 * testsuite/libgomp.c/examples-4/e.53.5.c: Renamed to...
12984 * testsuite/libgomp.c/examples-4/declare_target-5.c: ...this.
12985 * testsuite/libgomp.c/examples-4/e.57.1.c: Renamed to...
12986 * testsuite/libgomp.c/examples-4/device-1.c: ...this.
12987 * testsuite/libgomp.c/examples-4/e.57.2.c: Renamed to...
12988 * testsuite/libgomp.c/examples-4/device-2.c: ...this.
12989 * testsuite/libgomp.c/examples-4/e.57.3.c: Renamed to...
12990 * testsuite/libgomp.c/examples-4/device-3.c: ...this.
12991 * testsuite/libgomp.c/examples-4/simd-1.c: New file.
12992 * testsuite/libgomp.c/examples-4/simd-2.c: New file.
12993 * testsuite/libgomp.c/examples-4/simd-3.c: New file.
12994 * testsuite/libgomp.c/examples-4/simd-4.c: New file.
12995 * testsuite/libgomp.c/examples-4/simd-5.c: New file.
12996 * testsuite/libgomp.c/examples-4/simd-6.c: New file.
12997 * testsuite/libgomp.c/examples-4/simd-7.c: New file.
12998 * testsuite/libgomp.c/examples-4/simd-8.c: New file.
12999 * testsuite/libgomp.c/examples-4/e.50.1.c: Renamed to...
13000 * testsuite/libgomp.c/examples-4/target-1.c: ...this.
13001 * testsuite/libgomp.c/examples-4/e.50.2.c: Renamed to...
13002 * testsuite/libgomp.c/examples-4/target-2.c: ...this.
13003 * testsuite/libgomp.c/examples-4/e.50.3.c: Renamed to...
13004 * testsuite/libgomp.c/examples-4/target-3.c: ...this.
13005 * testsuite/libgomp.c/examples-4/e.50.4.c: Renamed to...
13006 * testsuite/libgomp.c/examples-4/target-4.c: ...this.
13007 * testsuite/libgomp.c/examples-4/e.50.5.c: Renamed to...
13008 * testsuite/libgomp.c/examples-4/target-5.c: ...this.
13009 * testsuite/libgomp.c/examples-4/e.51.1.c: Renamed to...
13010 * testsuite/libgomp.c/examples-4/target_data-1.c: ...this.
13011 * testsuite/libgomp.c/examples-4/e.51.2.c: Renamed to...
13012 * testsuite/libgomp.c/examples-4/target_data-2.c: ...this.
13013 * testsuite/libgomp.c/examples-4/e.51.3.c: Renamed to...
13014 * testsuite/libgomp.c/examples-4/target_data-3.c: ...this.
13015 * testsuite/libgomp.c/examples-4/e.51.4.c: Renamed to...
13016 * testsuite/libgomp.c/examples-4/target_data-4.c: ...this.
13017 * testsuite/libgomp.c/examples-4/e.51.6.c: Renamed to...
13018 * testsuite/libgomp.c/examples-4/target_data-6.c: ...this.
13019 * testsuite/libgomp.c/examples-4/e.51.7.c: Renamed to...
13020 * testsuite/libgomp.c/examples-4/target_data-7.c: ...this.
13021 * testsuite/libgomp.c/examples-4/e.52.1.c: Renamed to...
13022 * testsuite/libgomp.c/examples-4/target_update-1.c: ...this.
13023 * testsuite/libgomp.c/examples-4/e.52.2.c: Renamed to...
13024 * testsuite/libgomp.c/examples-4/target_update-2.c: ...this.
13025 * testsuite/libgomp.c/examples-4/task_dep-1.c: New file.
13026 * testsuite/libgomp.c/examples-4/task_dep-2.c: New file.
13027 * testsuite/libgomp.c/examples-4/task_dep-3.c: New file.
13028 * testsuite/libgomp.c/examples-4/task_dep-4.c: New file.
13029 * testsuite/libgomp.c/examples-4/task_dep-5.c: New file.
13030 * testsuite/libgomp.c/examples-4/e.54.2.c: Renamed to...
13031 * testsuite/libgomp.c/examples-4/teams-2.c: ...this.
13032 * testsuite/libgomp.c/examples-4/e.54.3.c: Renamed to...
13033 * testsuite/libgomp.c/examples-4/teams-3.c: ...this.
13034 * testsuite/libgomp.c/examples-4/e.54.4.c: Renamed to...
13035 * testsuite/libgomp.c/examples-4/teams-4.c: ...this.
13036 * testsuite/libgomp.c/examples-4/e.54.5.c: Renamed to...
13037 * testsuite/libgomp.c/examples-4/teams-5.c: ...this.
13038 * testsuite/libgomp.c/examples-4/e.54.6.c: Renamed to...
13039 * testsuite/libgomp.c/examples-4/teams-6.c: ...this.
13040 * testsuite/libgomp.fortran/examples-4/e.56.3.f90: Renamed to...
13041 * testsuite/libgomp.fortran/examples-4/array_sections-3.f90: ...this.
13042 * testsuite/libgomp.fortran/examples-4/e.56.4.f90: Renamed to...
13043 * testsuite/libgomp.fortran/examples-4/array_sections-4.f90: ...this.
13044 * testsuite/libgomp.fortran/examples-4/e.55.1.f90: Renamed to...
13045 * testsuite/libgomp.fortran/examples-4/async_target-1.f90: ...this.
13046 * testsuite/libgomp.fortran/examples-4/e.55.2.f90: Renamed to...
13047 * testsuite/libgomp.fortran/examples-4/async_target-2.f90: ...this.
13048 (vec_mult): Add !$omp taskwait.
13049 * testsuite/libgomp.fortran/examples-4/e.53.1.f90: Renamed to...
13050 * testsuite/libgomp.fortran/examples-4/declare_target-1.f90: ...this.
13051 * testsuite/libgomp.fortran/examples-4/e.53.2.f90: Renamed to...
13052 * testsuite/libgomp.fortran/examples-4/declare_target-2.f90: ...this.
13053 * testsuite/libgomp.fortran/examples-4/e.53.3.f90: Renamed to...
13054 * testsuite/libgomp.fortran/examples-4/declare_target-3.f90: ...this.
13055 * testsuite/libgomp.fortran/examples-4/e.53.4.f90: Renamed to...
13056 * testsuite/libgomp.fortran/examples-4/declare_target-4.f90: ...this.
13057 * testsuite/libgomp.fortran/examples-4/e.53.5.f90: Renamed to...
13058 * testsuite/libgomp.fortran/examples-4/declare_target-5.f90: ...this.
13059 * testsuite/libgomp.fortran/examples-4/e.57.1.f90: Renamed to...
13060 * testsuite/libgomp.fortran/examples-4/device-1.f90: ...this.
13061 * testsuite/libgomp.fortran/examples-4/e.57.2.f90: Renamed to...
13062 * testsuite/libgomp.fortran/examples-4/device-2.f90: ...this.
13063 * testsuite/libgomp.fortran/examples-4/e.57.3.f90: Renamed to...
13064 * testsuite/libgomp.fortran/examples-4/device-3.f90: ...this.
13065 * testsuite/libgomp.fortran/examples-4/simd-1.f90: New file.
13066 * testsuite/libgomp.fortran/examples-4/simd-2.f90: New file.
13067 * testsuite/libgomp.fortran/examples-4/simd-3.f90: New file.
13068 * testsuite/libgomp.fortran/examples-4/simd-4.f90: New file.
13069 * testsuite/libgomp.fortran/examples-4/simd-5.f90: New file.
13070 * testsuite/libgomp.fortran/examples-4/simd-6.f90: New file.
13071 * testsuite/libgomp.fortran/examples-4/simd-7.f90: New file.
13072 * testsuite/libgomp.fortran/examples-4/simd-8.f90: New file.
13073 * testsuite/libgomp.fortran/examples-4/e.50.1.f90: Renamed to...
13074 * testsuite/libgomp.fortran/examples-4/target-1.f90: ...this.
13075 * testsuite/libgomp.fortran/examples-4/e.50.2.f90: Renamed to...
13076 * testsuite/libgomp.fortran/examples-4/target-2.f90: ...this.
13077 * testsuite/libgomp.fortran/examples-4/e.50.3.f90: Renamed to...
13078 * testsuite/libgomp.fortran/examples-4/target-3.f90: ...this.
13079 * testsuite/libgomp.fortran/examples-4/e.50.4.f90: Renamed to...
13080 * testsuite/libgomp.fortran/examples-4/target-4.f90: ...this.
13081 * testsuite/libgomp.fortran/examples-4/e.50.5.f90: Renamed to...
13082 * testsuite/libgomp.fortran/examples-4/target-5.f90: ...this.
13083 * testsuite/libgomp.fortran/examples-4/e.51.1.f90: Renamed to...
13084 * testsuite/libgomp.fortran/examples-4/target_data-1.f90: ...this.
13085 * testsuite/libgomp.fortran/examples-4/e.51.2.f90: Renamed to...
13086 * testsuite/libgomp.fortran/examples-4/target_data-2.f90: ...this.
13087 * testsuite/libgomp.fortran/examples-4/e.51.3.f90: Renamed to...
13088 * testsuite/libgomp.fortran/examples-4/target_data-3.f90: ...this.
13089 * testsuite/libgomp.fortran/examples-4/e.51.4.f90: Renamed to...
13090 * testsuite/libgomp.fortran/examples-4/target_data-4.f90: ...this.
13091 * testsuite/libgomp.fortran/examples-4/e.51.5.f90: Renamed to...
13092 * testsuite/libgomp.fortran/examples-4/target_data-5.f90: ...this.
13093 * testsuite/libgomp.fortran/examples-4/e.51.6.f90: Renamed to...
13094 * testsuite/libgomp.fortran/examples-4/target_data-6.f90: ...this.
13095 * testsuite/libgomp.fortran/examples-4/e.51.7.f90: Renamed to...
13096 * testsuite/libgomp.fortran/examples-4/target_data-7.f90: ...this.
13097 * testsuite/libgomp.fortran/examples-4/e.52.1.f90: Renamed to...
13098 * testsuite/libgomp.fortran/examples-4/target_update-1.f90: ...this.
13099 * testsuite/libgomp.fortran/examples-4/e.52.2.f90: Renamed to...
13100 * testsuite/libgomp.fortran/examples-4/target_update-2.f90: ...this.
13101 * testsuite/libgomp.fortran/examples-4/task_dep-1.f90: New file.
13102 * testsuite/libgomp.fortran/examples-4/task_dep-2.f90: New file.
13103 * testsuite/libgomp.fortran/examples-4/task_dep-3.f90: New file.
13104 * testsuite/libgomp.fortran/examples-4/task_dep-4.f90: New file.
13105 * testsuite/libgomp.fortran/examples-4/task_dep-5.f90: New file.
13106 * testsuite/libgomp.fortran/examples-4/e.54.2.f90: Renamed to...
13107 * testsuite/libgomp.fortran/examples-4/teams-2.f90: ...this.
13108 * testsuite/libgomp.fortran/examples-4/e.54.3.f90: Renamed to...
13109 * testsuite/libgomp.fortran/examples-4/teams-3.f90: ...this.
13110 * testsuite/libgomp.fortran/examples-4/e.54.4.f90: Renamed to...
13111 * testsuite/libgomp.fortran/examples-4/teams-4.f90: ...this.
13112 * testsuite/libgomp.fortran/examples-4/e.54.5.f90: Renamed to...
13113 * testsuite/libgomp.fortran/examples-4/teams-5.f90: ...this.
13114 * testsuite/libgomp.fortran/examples-4/e.54.6.f90: Renamed to...
13115 * testsuite/libgomp.fortran/examples-4/teams-6.f90: ...this.
13117 2015-07-10 Tom de Vries <tom@codesourcery.com>
13119 * testsuite/libgomp.fortran/parloops-exit-first-loop-alt-2.f95: New test.
13120 * testsuite/libgomp.fortran/parloops-exit-first-loop-alt.f95: New test.
13122 2015-07-08 Thomas Schwinge <thomas@codesourcery.com>
13125 * plugin/plugin-nvptx.c (nvptx_get_num_devices): Return 0 if not
13126 in a 64-bit configuration.
13127 * testsuite/libgomp.oacc-c++/c++.exp: Don't attempt nvidia
13128 offloading testing if no such device is available.
13129 * testsuite/libgomp.oacc-c/c.exp: Likewise.
13130 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
13132 2015-07-08 Tom de Vries <tom@codesourcery.com>
13134 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c (main): Fix
13136 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: Same.
13138 2015-07-07 Tom de Vries <tom@codesourcery.com>
13140 PR tree-optimization/66642
13141 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c (main): Test low
13142 iteration count case.
13143 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c (init): New
13144 function, factor out of ...
13145 (main): ... here. Test low iteration count case.
13147 2015-07-06 Sebastian Huber <sebastian.huber@embedded-brains.de>
13149 * libgomp.h (gomp_thread_pool): Comment last_team field.
13151 2015-07-02 Uros Bizjak <ubizjak@gmail.com>
13153 * testsuite/libgomp.c++/pr66702-1.C: Require
13154 vect_simd_clones effective target.
13155 * testsuite/libgomp.c++/pr66702-2.C: Ditto.
13157 2015-06-30 Tom de Vries <tom@codesourcery.com>
13159 * testsuite/libgomp.oacc-c++/c++.exp: Set DEFAULT_CFLAGS to -O2 if not
13160 already set. Use DEFAULT_CFLAGS in dg-runtest.
13161 * testsuite/libgomp.oacc-c-c++-common/collapse-3.c: Remove dg-options
13164 2015-06-30 Tom de Vries <tom@codesourcery.com>
13166 * testsuite/libgomp.c++/c++.exp: Set DEFAULT_CFLAGS to -O2 if not
13167 already set. Use DEFAULT_CFLAGS in dg-runtest.
13168 * testsuite/libgomp.c++/atomic-16.C: Remove dg-options "-O2 -fopenmp".
13169 * testsuite/libgomp.c++/pr64824.C: Same.
13170 * testsuite/libgomp.c++/pr64868.C: Same.
13171 * testsuite/libgomp.c++/pr66199-1.C: Same.
13172 * testsuite/libgomp.c++/pr66199-2.C: Same.
13173 * testsuite/libgomp.c++/target-2.C: Same.
13174 * testsuite/libgomp.c++/for-7.C: Use dg-additional-options for
13175 -std=<standard> option.
13176 * testsuite/libgomp.c++/udr-11.C: Same.
13177 * testsuite/libgomp.c++/udr-12.C: Same.
13178 * testsuite/libgomp.c++/udr-13.C: Same.
13179 * testsuite/libgomp.c++/udr-14.C: Same.
13180 * testsuite/libgomp.c++/udr-15.C: Same.
13181 * testsuite/libgomp.c++/udr-16.C: Same.
13182 * testsuite/libgomp.c++/udr-17.C: Same.
13183 * testsuite/libgomp.c++/udr-18.C: Same.
13184 * testsuite/libgomp.c++/udr-19.C: Same.
13185 * testsuite/libgomp.c++/atomic-1.C: Remove dg-options "-O2".
13186 * testsuite/libgomp.c++/simd-1.C: Same.
13187 * testsuite/libgomp.c++/simd-2.C: Same.
13188 * testsuite/libgomp.c++/simd-3.C: Same.
13189 * testsuite/libgomp.c++/simd-4.C: Same.
13190 * testsuite/libgomp.c++/simd-5.C: Same.
13191 * testsuite/libgomp.c++/simd-6.C: Same.
13192 * testsuite/libgomp.c++/simd-7.C: Same.
13193 * testsuite/libgomp.c++/simd-8.C: Same.
13194 * testsuite/libgomp.c++/simd-9.C: Same.
13195 * testsuite/libgomp.c++/simd10.C: Same.
13196 * testsuite/libgomp.c++/simd11.C: Same.
13197 * testsuite/libgomp.c++/simd12.C: Same.
13198 * testsuite/libgomp.c++/simd13.C: Same.
13200 2015-06-30 Jakub Jelinek <jakub@redhat.com>
13202 PR middle-end/66702
13203 * testsuite/libgomp.c++/pr66702-1.C: New test.
13204 * testsuite/libgomp.c++/pr66702-2.C: New test.
13206 2015-06-30 Tom de Vries <tom@codesourcery.com>
13208 * testsuite/libgomp.c/parloops-exit-first-loop-alt-5.c: New test.
13209 * testsuite/libgomp.c/parloops-exit-first-loop-alt-6.c: New test.
13210 * testsuite/libgomp.c/parloops-exit-first-loop-alt-7.c: New test.
13211 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: Update comment.
13213 2015-06-30 Tom de Vries <tom@codesourcery.com>
13215 PR tree-optimization/66652
13216 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c (f): Rewrite
13217 using restrict pointers.
13218 (main): Add arguments to calls to f.
13219 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: Same.
13221 2015-06-23 Andreas Tobler <andreast@gcc.gnu.org>
13223 * configure.ac: Fix check for header <sys/sysctl.h>.
13224 * configure: Regenerate.
13225 * config.h.in: Likewise.
13227 2015-06-23 Tom de Vries <tom@codesourcery.com>
13229 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c (main): Use
13231 * testsuite/libgomp.c/parloops-exit-first-loop-alt-4.c (main): Same.
13233 2015-06-19 Thomas Schwinge <thomas@codesourcery.com>
13235 * testsuite/libgomp.oacc-c-c++-common/lib-62.c: Only consider for
13239 * testsuite/libgomp.oacc-c-c++-common/lib-3.c: XFAIL.
13240 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
13242 2015-06-15 Tom de Vries <tom@codesourcery.com>
13244 * testsuite/libgomp.c/atomic-1.c: Remove dg-options "-O2". Use
13245 dg-additional-options for any remaining options.
13246 * testsuite/libgomp.c/atomic-2.c: Same.
13247 * testsuite/libgomp.c/atomic-4.c: Same.
13248 * testsuite/libgomp.c/atomic-5.c: Same.
13249 * testsuite/libgomp.c/atomic-6.c: Same.
13250 * testsuite/libgomp.c/autopar-1.c: Same.
13251 * testsuite/libgomp.c/copyin-1.c: Same.
13252 * testsuite/libgomp.c/copyin-2.c: Same.
13253 * testsuite/libgomp.c/copyin-3.c: Same.
13254 * testsuite/libgomp.c/examples-4/e.53.5.c: Same.
13255 * testsuite/libgomp.c/nestedfn-5.c: Same.
13256 * testsuite/libgomp.c/parloops-exit-first-loop-alt-2.c: Same.
13257 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c: Same.
13258 * testsuite/libgomp.c/parloops-exit-first-loop-alt-4.c: Same.
13259 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: Same.
13260 * testsuite/libgomp.c/pr32362-1.c: Same.
13261 * testsuite/libgomp.c/pr32362-2.c: Same.
13262 * testsuite/libgomp.c/pr32362-3.c: Same.
13263 * testsuite/libgomp.c/pr39591-1.c: Same.
13264 * testsuite/libgomp.c/pr39591-2.c: Same.
13265 * testsuite/libgomp.c/pr39591-3.c: Same.
13266 * testsuite/libgomp.c/pr58392.c: Same.
13267 * testsuite/libgomp.c/pr58756.c: Same.
13268 * testsuite/libgomp.c/simd-1.c: Same.
13269 * testsuite/libgomp.c/simd-10.c: Same.
13270 * testsuite/libgomp.c/simd-11.c: Same.
13271 * testsuite/libgomp.c/simd-12.c: Same.
13272 * testsuite/libgomp.c/simd-13.c: Same.
13273 * testsuite/libgomp.c/simd-14.c: Same.
13274 * testsuite/libgomp.c/simd-15.c: Same.
13275 * testsuite/libgomp.c/simd-2.c: Same.
13276 * testsuite/libgomp.c/simd-3.c: Same.
13277 * testsuite/libgomp.c/simd-4.c: Same.
13278 * testsuite/libgomp.c/simd-5.c: Same.
13279 * testsuite/libgomp.c/simd-6.c: Same.
13280 * testsuite/libgomp.c/simd-7.c: Same.
13281 * testsuite/libgomp.c/simd-8.c: Same.
13282 * testsuite/libgomp.c/simd-9.c: Same.
13284 2015-06-15 Tom de Vries <tom@codesourcery.com>
13286 * testsuite/libgomp.c/pr35625.c: Fix typo.
13288 2015-06-15 Tom de Vries <tom@codesourcery.com>
13290 * testsuite/libgomp.c/atomic-18.c: Remove superfluous -fopenmp setting
13292 * testsuite/libgomp.c/atomic-3.c: Same.
13293 * testsuite/libgomp.c/debug-1.c: Same.
13294 * testsuite/libgomp.c/nqueens-1.c: Same.
13295 * testsuite/libgomp.c/pr26171.c: Same.
13296 * testsuite/libgomp.c/pr48591.c: Same.
13297 * testsuite/libgomp.c/pr64824.c: Same.
13298 * testsuite/libgomp.c/pr64868.c: Same.
13299 * testsuite/libgomp.c/pr66133.c: Same.
13300 * testsuite/libgomp.c/pr66199-1.c: Same.
13301 * testsuite/libgomp.c/pr66199-2.c: Same.
13302 * testsuite/libgomp.c/target-8.c: Same.
13304 2015-06-15 Tom de Vries <tom@codesourcery.com>
13306 * testsuite/libgomp.c/collapse-3.c: Use dg-additional-options for
13308 * testsuite/libgomp.c/for-1.c: Same.
13309 * testsuite/libgomp.c/for-2.c: Same.
13310 * testsuite/libgomp.c/for-3.c: Same.
13311 * testsuite/libgomp.c/pr35625.c: Same.
13312 * testsuite/libgomp.c/pr39154.c: Same.
13313 * testsuite/libgomp.c/simd-16.c: Same.
13314 * testsuite/libgomp.c/simd-17.c: Same.
13316 2015-06-13 Tom de Vries <tom@codesourcery.com>
13318 * testsuite/libgomp.c/parloops-exit-first-loop-alt-4.c: New test.
13320 2015-06-13 Tom de Vries <tom@codesourcery.com>
13322 * testsuite/libgomp.c/parloops-exit-first-loop-alt-2.c: Add comment.
13323 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: Same.
13324 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c: Add comment.
13326 (main): Use N instead of hardcoded constants.
13328 2015-06-05 Tom de Vries <tom@codesourcery.com>
13330 merge from gomp4 branch:
13331 2015-05-28 Tom de Vries <tom@codesourcery.com>
13333 PR tree-optimization/65443
13334 * testsuite/libgomp.c/parloops-exit-first-loop-alt-2.c: New test.
13335 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c: New test.
13336 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: New test.
13338 2015-05-29 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
13340 * testsuite/libgomp.graphite/bounds.c: Adjust for
13341 cleanup-tree-dump removal.
13342 * testsuite/libgomp.graphite/force-parallel-1.c: Likewise.
13343 * testsuite/libgomp.graphite/force-parallel-2.c: Likewise.
13344 * testsuite/libgomp.graphite/force-parallel-3.c: Likewise.
13345 * testsuite/libgomp.graphite/force-parallel-4.c: Likewise.
13346 * testsuite/libgomp.graphite/force-parallel-5.c: Likewise.
13347 * testsuite/libgomp.graphite/force-parallel-6.c: Likewise.
13348 * testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
13349 * testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
13350 * testsuite/libgomp.graphite/force-parallel-9.c: Likewise.
13351 * testsuite/libgomp.graphite/pr41118.c: Likewise.
13353 2015-05-28 Uros Bizjak <ubizjak@gmail.com>
13355 * config/linux/x86/futex.h (sys_futex0) [!__x86_64__]: Remove function.
13356 (futex_wait) [!__x86_64__]: Use __asm operand instead of sys_futex0.
13357 (futex_wake) [!__x86_64__]: Ditto.
13359 2015-05-28 Julian Brown <julian@codesourcery.com>
13361 * oacc-init.c (resolve_device): Add FAIL_IS_ERROR argument. Update
13362 function comment. Only call gomp_fatal if new argument is true.
13363 (acc_dev_num_out_of_range): New function.
13364 (acc_init_1, acc_shutdown_1): Update call to resolve_device. Call
13365 acc_dev_num_out_of_range as appropriate.
13366 (acc_get_num_devices, acc_set_device_type, acc_get_device_type)
13367 (acc_get_device_num, acc_set_device_num): Update calls to
13369 * testsuite/libgomp.oacc-c-c++-common/lib-4.c: Update expected test
13372 2015-05-28 Julian Brown <julian@codesourcery.com>
13375 * oacc-init.c (plugin/plugin-host.h): Include.
13376 (acc_on_device): Check whether we're in an offloaded region for
13378 plugin. Don't use __builtin_acc_on_device.
13379 * plugin/plugin-host.c (GOMP_OFFLOAD_openacc_parallel): Set
13380 nonshm_exec flag in thread-local data.
13381 (GOMP_OFFLOAD_openacc_create_thread_data): Allocate thread-local
13382 data for host_nonshm plugin.
13383 (GOMP_OFFLOAD_openacc_destroy_thread_data): Free thread-local data
13384 for host_nonshm plugin.
13385 * plugin/plugin-host.h: New.
13387 2015-05-27 Uros Bizjak <ubizjak@gmail.com>
13389 * config/linux/ia64/futex.h (sys_futex0) Change operand "op" to int.
13391 2015-05-27 Uros Bizjak <ubizjak@gmail.com>
13393 * config/linux/wait.h (gomp_futex_wait, gomp_futex_wake):
13395 (FUTEX_PRIVATE_FLAG): Remove L suffix.
13396 * config/linux/mutex.c (gomp_futex_wait, gomp_futex_wake):
13399 2015-05-27 Uros Bizjak <ubizjak@gmail.com>
13401 * config/linux/x86/futex.h (sys_futex0) [__PIC__]: Remove function.
13403 2015-05-27 Chung-Lin Tang <cltang@codesourcery.com>
13405 * target.c (gomp_map_pointer): New function abstracting out
13406 GOMP_MAP_POINTER handling.
13407 (gomp_map_vars): Remove GOMP_MAP_POINTER handling code and use
13408 gomp_map_pointer().
13410 2015-05-19 Jakub Jelinek <jakub@redhat.com>
13412 PR middle-end/66199
13413 * testsuite/libgomp.c/pr66199-1.c: New test.
13414 * testsuite/libgomp.c/pr66199-2.c: New test.
13415 * testsuite/libgomp.c++/pr66199-1.C: New test.
13416 * testsuite/libgomp.c++/pr66199-2.C: New test.
13417 * testsuite/libgomp.fortran/pr66199-1.f90: New test.
13418 * testsuite/libgomp.fortran/pr66199-2.f90: New test.
13420 2015-05-19 Julian Brown <julian@codesourcery.com>
13422 * plugin/plugin-nvptx.c (nvptx_get_num_devices): Return zero
13425 2015-05-13 Jakub Jelinek <jakub@redhat.com>
13427 PR middle-end/66133
13428 * testsuite/libgomp.c/pr66133.c: New test.
13430 2015-05-13 Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
13432 * Makefile.in: Regenerated with automake-1.11.6.
13433 * aclocal.m4: Likewise.
13434 * config.h.in: Likewise.
13435 * configure: Likewise.
13436 * testsuite/Makefile.in: Likewise.
13438 2015-05-08 Jason Merrill <jason@redhat.com>
13440 * testsuite/libgomp.oacc-c-c++-common/reduction-4.c (main): Use
13443 * openacc.h (__GOACC_NOTHROW): Fix noexcept syntax.
13445 2015-05-06 Julian Brown <julian@codesourcery.com>
13447 * oacc-init.c (acc_device_lock): Add explanatory comment.
13448 (resolve_device): Add comment about locking requirement.
13449 (acc_init_1, acc_shutdown_1): Likewise. Add locking around
13450 gomp_init_device and gomp_fini_device calls.
13451 (acc_get_num_devices, acc_set_device_type, acc_get_device_type)
13452 (acc_get_device_num, acc_set_device_num): Add locking around
13453 resolve_device and gomp_init_device calls.
13455 2015-05-06 Julian Brown <julian@codesourcery.com>
13457 * oacc-init.c (acc_shutdown_1): Call gomp_mutex_unlock for
13458 goacc_thread_lock on error paths.
13459 * oacc-mem.c (lookup_host): Remove locking from function. Note
13460 locking requirement for caller in function comment.
13461 (lookup_dev): Likewise.
13462 (acc_free, acc_deviceptr, acc_hostptr, acc_is_present)
13463 (acc_map_data, acc_unmap_data, present_create_copy, delete_copyout)
13464 (update_dev_host, gomp_acc_insert_pointer, gomp_acc_remove_pointer):
13467 2015-05-05 Thomas Schwinge <thomas@codesourcery.com>
13471 * testsuite/libgomp.oacc-c-c++-common/clauses-2.c: In dg-output,
13472 don't expect "0x" prefix for "%p" format specifier, don't expect
13473 "(nil)" for NULL pointer.
13474 * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
13475 * testsuite/libgomp.oacc-c-c++-common/lib-17.c: Likewise.
13476 * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
13477 * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
13478 * testsuite/libgomp.oacc-c-c++-common/lib-21.c: Likewise.
13479 * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Likewise.
13480 * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
13481 * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
13482 * testsuite/libgomp.oacc-c-c++-common/lib-26.c: Likewise.
13483 * testsuite/libgomp.oacc-c-c++-common/lib-27.c: Likewise.
13484 * testsuite/libgomp.oacc-c-c++-common/lib-28.c: Likewise.
13485 * testsuite/libgomp.oacc-c-c++-common/lib-29.c: Likewise.
13486 * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
13487 * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
13488 * testsuite/libgomp.oacc-c-c++-common/lib-35.c: Likewise.
13489 * testsuite/libgomp.oacc-c-c++-common/lib-36.c: Likewise.
13490 * testsuite/libgomp.oacc-c-c++-common/lib-39.c: Likewise.
13491 * testsuite/libgomp.oacc-c-c++-common/lib-40.c: Likewise.
13492 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
13493 * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Likewise.
13494 * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
13495 * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Likewise.
13496 * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
13497 * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Likewise.
13498 * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
13499 * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
13500 * testsuite/libgomp.oacc-c-c++-common/lib-57.c: Likewise.
13501 * testsuite/libgomp.oacc-c-c++-common/lib-58.c: Likewise.
13502 * testsuite/libgomp.oacc-c-c++-common/data-already-1.c: More
13503 accurately specify what we're looking for.
13504 * testsuite/libgomp.oacc-c-c++-common/data-already-2.c: Likewise.
13505 * testsuite/libgomp.oacc-c-c++-common/data-already-8.c: Likewise.
13506 * testsuite/libgomp.oacc-fortran/data-already-1.f: Likewise.
13507 * testsuite/libgomp.oacc-fortran/data-already-2.f: Likewise.
13508 * testsuite/libgomp.oacc-fortran/data-already-8.f: Likewise.
13510 2015-04-30 James Norris <jnorris@codesourcery.com>
13513 * testsuite/lib/libgomp.exp
13514 (check_effective_target_openacc_host_selected)
13515 (check_effective_target_openacc_host_nonshm_selected): New
13517 * testsuite/libgomp.oacc-c-c++-common/clauses-2.c: Fix misuse of
13519 * testsuite/libgomp.oacc-c-c++-common/lib-1.c: Likewise.
13520 * testsuite/libgomp.oacc-c-c++-common/lib-11.c: Likewise.
13521 * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
13522 * testsuite/libgomp.oacc-c-c++-common/lib-17.c: Likewise.
13523 * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
13524 * testsuite/libgomp.oacc-c-c++-common/lib-2.c: Likewise.
13525 * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
13526 * testsuite/libgomp.oacc-c-c++-common/lib-21.c: Likewise.
13527 * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Likewise.
13528 * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
13529 * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
13530 * testsuite/libgomp.oacc-c-c++-common/lib-26.c: Likewise.
13531 * testsuite/libgomp.oacc-c-c++-common/lib-27.c: Likewise.
13532 * testsuite/libgomp.oacc-c-c++-common/lib-28.c: Likewise.
13533 * testsuite/libgomp.oacc-c-c++-common/lib-29.c: Likewise.
13534 * testsuite/libgomp.oacc-c-c++-common/lib-3.c: Likewise.
13535 * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
13536 * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
13537 * testsuite/libgomp.oacc-c-c++-common/lib-35.c: Likewise.
13538 * testsuite/libgomp.oacc-c-c++-common/lib-36.c: Likewise.
13539 * testsuite/libgomp.oacc-c-c++-common/lib-39.c: Likewise.
13540 * testsuite/libgomp.oacc-c-c++-common/lib-4.c: Likewise.
13541 * testsuite/libgomp.oacc-c-c++-common/lib-40.c: Likewise.
13542 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
13543 * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Likewise.
13544 * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
13545 * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Likewise.
13546 * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
13547 * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Likewise.
13548 * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
13549 * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
13550 * testsuite/libgomp.oacc-c-c++-common/lib-57.c: Likewise.
13551 * testsuite/libgomp.oacc-c-c++-common/lib-58.c: Likewise.
13552 * testsuite/libgomp.oacc-c-c++-common/lib-62.c: Likewise.
13553 * testsuite/libgomp.oacc-c-c++-common/lib-63.c: Likewise.
13554 * testsuite/libgomp.oacc-c-c++-common/lib-64.c: Likewise.
13555 * testsuite/libgomp.oacc-c-c++-common/lib-65.c: Likewise.
13556 * testsuite/libgomp.oacc-c-c++-common/lib-67.c: Likewise.
13557 * testsuite/libgomp.oacc-c-c++-common/lib-68.c: Likewise.
13558 * testsuite/libgomp.oacc-c-c++-common/lib-71.c: Likewise.
13559 * testsuite/libgomp.oacc-c-c++-common/lib-77.c: Likewise.
13560 * testsuite/libgomp.oacc-c-c++-common/lib-80.c: Likewise.
13561 * testsuite/libgomp.oacc-c-c++-common/present-1.c: Likewise.
13563 2015-04-08 Julian Brown <julian@codesourcery.com>
13565 * libgomp.h (target_mem_desc: Remove mem_map field.
13566 (acc_dispatch_t): Remove open_device_func, close_device_func,
13567 get_device_num_func, set_device_num_func, target_data members.
13568 Change create_thread_data_func argument to device number instead of
13570 * oacc-async.c (assert.h): Include.
13571 (acc_async_test, acc_async_test_all, acc_wait, acc_wait_async)
13572 (acc_wait_all, acc_wait_all_async): Use current host thread's
13573 active device, not base_dev.
13574 * oacc-cuda.c (acc_get_current_cuda_device)
13575 (acc_get_current_cuda_context, acc_get_cuda_stream)
13576 (acc_set_cuda_stream): Likewise.
13577 * oacc-host.c (host_dispatch): Don't set open_device_func,
13578 close_device_func, get_device_num_func or set_device_num_func.
13579 * oacc-init.c (base_dev, init_key): Remove.
13580 (cached_base_dev): New.
13581 (name_of_acc_device_t): New.
13582 (acc_init_1): Initialise default-numbered device, not zeroth.
13583 (acc_shutdown_1): Close all devices of a given type.
13584 (goacc_destroy_thread): Don't use base_dev.
13585 (lazy_open, lazy_init, lazy_init_and_open): Remove.
13586 (goacc_attach_host_thread_to_device): New.
13587 (acc_init): Reimplement with goacc_attach_host_thread_to_device.
13588 (acc_get_num_devices): Don't use base_dev.
13589 (acc_set_device_type): Reimplement.
13590 (acc_get_device_type): Don't use base_dev.
13591 (acc_get_device_num): Tweak logic.
13592 (acc_set_device_num): Likewise.
13593 (acc_on_device): Use acc_get_device_type.
13594 (goacc_runtime_initialize): Initialize cached_base_dev not base_dev.
13595 (goacc_lazy_initialize): Reimplement with acc_init and
13596 goacc_attach_host_thread_to_device.
13597 * oacc-int.h (goacc_thread): Add base_dev field.
13598 (base_dev): Remove extern declaration.
13599 (goacc_attach_host_thread_to_device): Add prototype.
13600 * oacc-mem.c (acc_malloc): Use current thread's device instead of
13602 (acc_free): Likewise.
13603 (acc_memcpy_to_device): Likewise.
13604 (acc_memcpy_from_device): Likewise.
13605 * oacc-parallel.c (select_acc_device): Remove. Replace calls with
13606 goacc_lazy_initialize (throughout).
13607 (GOACC_parallel): Use tgt_offset to locate target functions.
13608 * target.c (gomp_map_vars): Don't set tgt->mem_map.
13609 (gomp_unmap_vars): Use devicep->mem_map pointer not tgt->mem_map.
13610 (gomp_load_plugin_for_device): Remove open_device, close_device,
13611 get_device_num, set_device_num openacc hook initialisation. Don't set
13612 openacc.target_data.
13613 * plugin/plugin-host.c (GOMP_OFFLOAD_openacc_open_device)
13614 (GOMP_OFFLOAD_openacc_close_device)
13615 (GOMP_OFFLOAD_openacc_get_device_num)
13616 (GOMP_OFFLOAD_openacc_set_device_num): Remove.
13617 (GOMP_OFFLOAD_openacc_create_thread_data): Change (unused) argument
13619 * plugin/plugin-nvptx.c (ptx_inited): Remove.
13620 (instantiated_devices, ptx_dev_lock): New.
13621 (struct ptx_image_data): New.
13622 (ptx_devices, ptx_images, ptx_image_lock): New.
13623 (fini_streams_for_device): Reorder cuStreamDestroy call.
13624 (nvptx_get_num_devices): Remove forward declaration.
13625 (nvptx_init): Change return type to bool.
13626 (nvptx_fini): Remove.
13627 (nvptx_attach_host_thread_to_device): New.
13628 (nvptx_open_device): Return struct ptx_device* instead of void*.
13629 (nvptx_close_device): Change argument type to struct ptx_device*,
13630 return type to void.
13631 (nvptx_get_num_devices): Use instantiated_devices not ptx_inited.
13632 (kernel_target_data, kernel_host_table): Remove static globals.
13633 (GOMP_OFFLOAD_register_image, GOMP_OFFLOAD_get_table): Remove.
13634 (GOMP_OFFLOAD_init_device): Reimplement.
13635 (GOMP_OFFLOAD_fini_device): Likewise.
13636 (GOMP_OFFLOAD_load_image, GOMP_OFFLOAD_unload_image): New.
13637 (GOMP_OFFLOAD_alloc, GOMP_OFFLOAD_free, GOMP_OFFLOAD_dev2host)
13638 (GOMP_OFFLOAD_host2dev): Use ORD argument.
13639 (GOMP_OFFLOAD_openacc_open_device)
13640 (GOMP_OFFLOAD_openacc_close_device)
13641 (GOMP_OFFLOAD_openacc_set_device_num)
13642 (GOMP_OFFLOAD_openacc_get_device_num): Remove.
13643 (GOMP_OFFLOAD_openacc_create_thread_data): Change argument to int
13647 * libgomp.oacc-c-c++-common/lib-9.c: Fix devnum check in test.
13649 2015-04-06 Ilya Verbin <ilya.verbin@intel.com>
13651 * libgomp-plugin.h (struct mapping_table): Replace with addr_pair.
13652 * libgomp.h (struct gomp_memory_mapping): Remove.
13653 (struct target_mem_desc): Change type of mem_map from
13654 gomp_memory_mapping * to splay_tree_s *.
13655 (struct gomp_device_descr): Remove register_image_func, get_table_func.
13656 Add load_image_func, unload_image_func.
13657 Change type of mem_map from gomp_memory_mapping to splay_tree_s.
13658 Remove offload_regions_registered.
13659 (gomp_init_tables): Remove.
13660 (gomp_free_memmap): Change type of argument from gomp_memory_mapping *
13662 * libgomp.map (GOMP_4.0.1): Add GOMP_offload_unregister.
13663 * oacc-host.c (host_dispatch): Do not initialize register_image_func,
13664 get_table_func, mem_map.is_initialized, mem_map.splay_tree.root,
13665 offload_regions_registered.
13666 Initialize load_image_func, unload_image_func, mem_map.root.
13667 (goacc_host_init): Do not initialize host_dispatch.mem_map.lock.
13668 * oacc-init.c (lazy_open): Don't call gomp_init_tables.
13669 (acc_shutdown_1): Use dev's lock and splay_tree instead of mem_map's.
13670 * oacc-mem.c (lookup_host): Get gomp_device_descr *dev instead of
13671 gomp_memory_mapping *. Use dev's lock and splay_tree.
13672 (lookup_dev): Use dev's lock.
13673 (acc_deviceptr): Pass dev to lookup_host instead of mem_map.
13674 (acc_is_present): Likewise.
13675 (acc_map_data): Likewise.
13676 (acc_unmap_data): Likewise. Use dev's lock.
13677 (present_create_copy): Likewise.
13678 (delete_copyout): Pass dev to lookup_host instead of mem_map.
13679 (update_dev_host): Likewise.
13680 (gomp_acc_remove_pointer): Likewise. Use dev's lock.
13681 * oacc-parallel.c (GOACC_parallel): Use dev's lock and splay_tree.
13682 * plugin/plugin-host.c (GOMP_OFFLOAD_register_image): Remove.
13683 (GOMP_OFFLOAD_get_table): Remove
13684 (GOMP_OFFLOAD_load_image): New function.
13685 (GOMP_OFFLOAD_unload_image): New function.
13686 * target.c (register_lock): New mutex for offload image registration.
13687 (num_devices): Do not guard with PLUGIN_SUPPORT.
13688 (gomp_realloc_unlock): New static function.
13689 (gomp_map_vars_existing): Add device descriptor argument. Unlock mutex
13691 (gomp_map_vars): Use dev's lock and splay_tree instead of mem_map's.
13692 Pass devicep to gomp_map_vars_existing. Unlock mutex before gomp_fatal.
13693 (gomp_copy_from_async): Use dev's lock and splay_tree instead of
13695 (gomp_unmap_vars): Likewise.
13696 (gomp_update): Remove gomp_memory_mapping argument. Use dev's lock and
13697 splay_tree instead of mm's. Unlock mutex before gomp_fatal.
13698 (gomp_offload_image_to_device): New static function.
13699 (GOMP_offload_register): Add mutex lock.
13700 Call gomp_offload_image_to_device for all initialized devices.
13701 Replace gomp_realloc with gomp_realloc_unlock.
13702 (GOMP_offload_unregister): New function.
13703 (gomp_init_tables): Replace with gomp_init_device. Replace a call to
13704 get_table_func from the plugin with calls to init_device_func and
13705 gomp_offload_image_to_device.
13706 (gomp_free_memmap): Change type of argument from gomp_memory_mapping *
13708 (GOMP_target): Do not call gomp_init_tables. Use dev's lock and
13709 splay_tree instead of mem_map's. Unlock mutex before gomp_fatal.
13710 (GOMP_target_data): Do not call gomp_init_tables.
13711 (GOMP_target_update): Likewise. Remove argument from gomp_update.
13712 (gomp_load_plugin_for_device): Replace register_image and get_table
13713 with load_image and unload_image in DLSYM ().
13714 (gomp_register_images_for_device): Remove function.
13715 (gomp_target_init): Do not initialize current_device.mem_map.*,
13716 current_device.offload_regions_registered.
13717 Remove call to gomp_register_images_for_device.
13718 Do not free offload_images and num_offload_images.
13720 2015-03-30 Jakub Jelinek <jakub@redhat.com>
13723 * testsuite/libgomp.fortran/pr65597.f90: New test.
13725 2015-03-27 Tom de Vries <tom@codesourcery.com>
13728 * testsuite/libgomp.graphite/force-parallel-6.c (abort): Declare.
13729 (init, check): New function.
13730 (foo): Change return type to void.
13731 (main): Call init and check.
13733 2015-03-27 Tom de Vries <tom@codesourcery.com>
13736 * testsuite/libgomp.graphite/force-parallel-6.c (M): Define.
13737 (foo): Use M for non-inner loops to scale down test-case.
13739 2015-03-25 Kai Tietz <ktietz@redhat.com>
13742 * oacc-parallel.c (GOACC_parallel): Use PRIu64 if available.
13743 (GOACC_data_start): Likewise.
13744 * target.c (gomp_map_vars): Likewise.
13746 2015-03-21 John David Anglin <danglin@gcc.gnu.org>
13748 * testsuite/libgomp.oacc-c-c++-common/reduction-4.c: Don't run on
13751 2015-03-19 Jakub Jelinek <jakub@redhat.com>
13753 * testsuite/libgomp.c/target-10.c: New test.
13754 * testsuite/libgomp.c++/target-4.C: New test.
13756 2015-03-13 Ilya Verbin <ilya.verbin@intel.com>
13758 * testsuite/libgomp.fortran/declare-target-1.f90: New test.
13759 * testsuite/libgomp.fortran/declare-target-2.f90: New file.
13761 2015-03-13 Sebastian Huber <sebastian.huber@embedded-brains.de>
13763 * configure.tgt (*-*-rtems*): Use local-exec TLS model.
13764 * configure.ac (*-*-rtems*): Assume Pthread is supported.
13765 (pthread.h): Check for this header file.
13766 * configure: Regenerate.
13768 2015-02-25 Tom de Vries <tom@codesourcery.com>
13770 * testsuite/libgomp.oacc-c-c++-common/reduction-1.c (DO_PRAGMA)
13771 (check_reduction_op, check_reduction_macro, max, min):
13773 (test_reductions_int, test_reductions_minmax, test_reductions_bool): New
13775 (main): Use new functions.
13777 2015-02-18 Ilya Tocar <ilya.tocar@intel.com>
13779 * target.c (gomp_load_plugin_for_device): Use const char * instead of
13780 char * for variables holding dlerror return values.
13781 (DLSYM_OPT): Ditto.
13783 2015-02-17 Thomas Schwinge <thomas@codesourcery.com>
13785 * libgomp-plugin.c (GOMP_PLUGIN_debug): Fix typo.
13787 2015-02-17 Thomas Schwinge <thomas@codesourcery.com>
13788 Cesar Philippidis <cesar@codesourcery.com>
13790 * oacc-ptx.h (GOACC_INTERNAL_PTX): Add GOACC_tid, GOACC_ntid,
13791 GOACC_ctaid, and GOACC_nctaid routines.
13793 2015-02-11 Jakub Jelinek <jakub@redhat.com>
13796 * testsuite/libgomp.c/atomic-18.c: New test.
13797 * testsuite/libgomp.c++/atomic-16.C: New test.
13799 2015-02-04 Jakub Jelinek <jakub@redhat.com>
13803 * testsuite/libgomp.c/pr64824.c: New test.
13804 * testsuite/libgomp.c/pr64868.c: New test.
13805 * testsuite/libgomp.c++/pr64824.C: New test.
13806 * testsuite/libgomp.c++/pr64868.C: New test.
13808 2015-02-01 David Edelsohn <dje.gcc@gmail.com>
13811 * configure.tgt (*-*-aix*): Use standard posix plugin-suffix.h.
13812 Link with -lpthread.
13813 * config/aix/plugin-suffix.h: Delete.
13815 2015-01-28 Jack Howarth <howarth.at.gcc@gmail.com>
13818 * configure.tgt (*-*-aix*): Use config_path "aix posix".
13819 (*-*-darwin*): Use config_path "bsd darwin posix".
13820 (*-*-hpux*): Use config_path "hpux posix".
13821 * target.c: Add include of plugin-suffix.h and use
13822 SONAME_SUFFIX macro.
13823 * config/aix/plugin-suffix.h: New file.
13824 * config/darwin/plugin-suffix.h: New file.
13825 * config/hpux/plugin-suffix.h: New file.
13826 * config/posix/plugin-suffix.h: New file.
13828 2015-01-23 Jakub Jelinek <jakub@redhat.com>
13830 PR middle-end/64734
13831 * libgomp.c/pr64734.c: New test.
13833 2015-01-23 Tom de Vries <tom@codesourcery.com>
13836 * testsuite/libgomp.oacc-c-c++-common/abort-5.c: New test.
13838 2015-01-23 Tom de Vries <tom@codesourcery.com>
13841 * testsuite/libgomp.c/target-9.c: Add -ftree-parallelize-loops=0 to
13844 2015-01-19 Thomas Schwinge <thomas@codesourcery.com>
13847 * libgomp_g.h (GOACC_data_start, GOACC_enter_exit_data)
13848 (GOACC_parallel, GOACC_update): Remove const_void *offload_table
13849 formal parameter. Update all users.
13850 * target.c (GOMP_target, GOMP_target_data, GOMP_target_update):
13851 Document unused formal parameter.
13853 2015-01-16 Thomas Schwinge <thomas@codesourcery.com>
13855 * oacc-parallel.c: Don't include <alloca.h>.
13856 (GOACC_parallel): Use gomp_alloca instead of alloca.
13858 2015-01-16 Gerald Pfeifer <gerald@pfeifer.com>
13860 * target.c (num_devices): Guard with PLUGIN_SUPPORT.
13862 2015-01-15 Thomas Schwinge <thomas@codesourcery.com>
13863 James Norris <jnorris@codesourcery.com>
13864 Tom de Vries <tom@codesourcery.com>
13865 Julian Brown <julian@codesourcery.com>
13866 Cesar Philippidis <cesar@codesourcery.com>
13867 Nathan Sidwell <nathan@codesourcery.com>
13868 Tobias Burnus <burnus@net-b.de>
13870 * Makefile.am (search_path): Add $(top_srcdir)/../include.
13871 (libgomp_la_SOURCES): Add splay-tree.c, libgomp-plugin.c,
13872 oacc-parallel.c, oacc-host.c, oacc-init.c, oacc-mem.c,
13873 oacc-async.c, oacc-plugin.c, oacc-cuda.c.
13874 [USE_FORTRAN] (libgomp_la_SOURCES): Add openacc.f90.
13875 Include $(top_srcdir)/plugin/Makefrag.am.
13876 (nodist_libsubinclude_HEADERS): Add openacc.h.
13877 [USE_FORTRAN] (nodist_finclude_HEADERS): Add openacc_lib.h,
13878 openacc.f90, openacc.mod, openacc_kinds.mod.
13879 (omp_lib.mod): Generalize into...
13880 (%.mod): ... this new rule.
13881 (openacc_kinds.mod, openacc.mod): New rules.
13882 * plugin/configfrag.ac: New file.
13883 * configure.ac: Move plugin/offloading support into it. Include
13884 it. Instantiate testsuite/libgomp-test-support.pt.exp.
13885 * plugin/Makefrag.am: New file.
13886 * testsuite/Makefile.am (OFFLOAD_TARGETS)
13887 (OFFLOAD_ADDITIONAL_OPTIONS, OFFLOAD_ADDITIONAL_LIB_PATHS): Don't
13889 (libgomp-test-support.exp): New rule.
13890 (all-local): Depend on it.
13891 * Makefile.in: Regenerate.
13892 * testsuite/Makefile.in: Regenerate.
13893 * config.h.in: Likewise.
13894 * configure: Likewise.
13895 * configure.tgt: Harden shell syntax.
13896 * env.c: Include "oacc-int.h".
13897 (parse_acc_device_type): New function.
13898 (gomp_debug_var, goacc_device_type, goacc_device_num): New
13900 (initialize_env): Initialize those. Call
13901 goacc_runtime_initialize.
13902 * error.c (gomp_vdebug, gomp_debug, gomp_vfatal): New functions.
13903 (gomp_fatal): Call gomp_vfatal.
13904 * libgomp.h: Include "libgomp-plugin.h" and <stdarg.h>.
13905 (gomp_debug_var, goacc_device_type, goacc_device_num, gomp_vdebug)
13906 (gomp_debug, gomp_verror, gomp_vfatal, gomp_init_targets_once)
13907 (splay_tree_node, splay_tree, splay_tree_key)
13908 (struct target_mem_desc, struct splay_tree_key_s)
13909 (struct gomp_memory_mapping, struct acc_dispatch_t)
13910 (struct gomp_device_descr, gomp_acc_insert_pointer)
13911 (gomp_acc_remove_pointer, target_mem_desc, gomp_copy_from_async)
13912 (gomp_unmap_vars, gomp_init_device, gomp_init_tables)
13913 (gomp_free_memmap, gomp_fini_device): New declarations.
13914 (gomp_vdebug, gomp_debug): New macros.
13915 Include "splay-tree.h".
13916 * libgomp.map (OACC_2.0): New symbol version. Use for
13917 acc_get_num_devices, acc_get_num_devices_h_, acc_set_device_type,
13918 acc_set_device_type_h_, acc_get_device_type,
13919 acc_get_device_type_h_, acc_set_device_num, acc_set_device_num_h_,
13920 acc_get_device_num, acc_get_device_num_h_, acc_async_test,
13921 acc_async_test_h_, acc_async_test_all, acc_async_test_all_h_,
13922 acc_wait, acc_wait_h_, acc_wait_async, acc_wait_async_h_,
13923 acc_wait_all, acc_wait_all_h_, acc_wait_all_async,
13924 acc_wait_all_async_h_, acc_init, acc_init_h_, acc_shutdown,
13925 acc_shutdown_h_, acc_on_device, acc_on_device_h_, acc_malloc,
13926 acc_free, acc_copyin, acc_copyin_32_h_, acc_copyin_64_h_,
13927 acc_copyin_array_h_, acc_present_or_copyin,
13928 acc_present_or_copyin_32_h_, acc_present_or_copyin_64_h_,
13929 acc_present_or_copyin_array_h_, acc_create, acc_create_32_h_,
13930 acc_create_64_h_, acc_create_array_h_, acc_present_or_create,
13931 acc_present_or_create_32_h_, acc_present_or_create_64_h_,
13932 acc_present_or_create_array_h_, acc_copyout, acc_copyout_32_h_,
13933 acc_copyout_64_h_, acc_copyout_array_h_, acc_delete,
13934 acc_delete_32_h_, acc_delete_64_h_, acc_delete_array_h_,
13935 acc_update_device, acc_update_device_32_h_,
13936 acc_update_device_64_h_, acc_update_device_array_h_,
13937 acc_update_self, acc_update_self_32_h_, acc_update_self_64_h_,
13938 acc_update_self_array_h_, acc_map_data, acc_unmap_data,
13939 acc_deviceptr, acc_hostptr, acc_is_present, acc_is_present_32_h_,
13940 acc_is_present_64_h_, acc_is_present_array_h_,
13941 acc_memcpy_to_device, acc_memcpy_from_device,
13942 acc_get_current_cuda_device, acc_get_current_cuda_context,
13943 acc_get_cuda_stream, acc_set_cuda_stream.
13944 (GOACC_2.0): New symbol version. Use for GOACC_data_end,
13945 GOACC_data_start, GOACC_enter_exit_data, GOACC_parallel,
13946 GOACC_update, GOACC_wait, GOACC_get_thread_num,
13947 GOACC_get_num_threads.
13948 (GOMP_PLUGIN_1.0): New symbol version. Use for
13949 GOMP_PLUGIN_malloc, GOMP_PLUGIN_malloc_cleared,
13950 GOMP_PLUGIN_realloc, GOMP_PLUGIN_debug, GOMP_PLUGIN_error,
13951 GOMP_PLUGIN_fatal, GOMP_PLUGIN_async_unmap_vars,
13952 GOMP_PLUGIN_acc_thread.
13953 * libgomp.texi: Update for OpenACC changes, and GOMP_DEBUG
13954 environment variable.
13955 * libgomp_g.h (GOACC_data_start, GOACC_data_end)
13956 (GOACC_enter_exit_data, GOACC_parallel, GOACC_update, GOACC_wait)
13957 (GOACC_get_num_threads, GOACC_get_thread_num): New declarations.
13958 * splay-tree.h (splay_tree_lookup, splay_tree_insert)
13959 (splay_tree_remove): New declarations.
13960 (rotate_left, rotate_right, splay_tree_splay, splay_tree_insert)
13961 (splay_tree_remove, splay_tree_lookup): Move into...
13962 * splay-tree.c: ... this new file.
13963 * target.c: Include "oacc-plugin.h", "oacc-int.h", <assert.h>.
13964 (splay_tree_node, splay_tree, splay_tree_key)
13965 (struct target_mem_desc, struct splay_tree_key_s)
13966 (struct gomp_device_descr): Don't declare.
13967 (num_devices_openmp): New variable.
13968 (gomp_get_num_devices ): Use it.
13969 (gomp_init_targets_once): New function.
13970 (gomp_get_num_devices ): Use it.
13971 (get_kind, gomp_copy_from_async, gomp_free_memmap)
13972 (gomp_fini_device, gomp_register_image_for_device): New functions.
13973 (gomp_map_vars): Add devaddrs parameter.
13974 (gomp_update): Add mm parameter.
13975 (gomp_init_device): Move most of it into...
13976 (gomp_init_tables): ... this new function.
13977 (gomp_register_images_for_device): Remove function.
13978 (splay_compare, gomp_map_vars, gomp_unmap_vars, gomp_init_device):
13979 Make them hidden instead of static.
13980 (gomp_map_vars_existing, gomp_map_vars, gomp_unmap_vars)
13981 (gomp_update, gomp_init_device, GOMP_target, GOMP_target_data)
13982 (GOMP_target_end_data, GOMP_target_update)
13983 (gomp_load_plugin_for_device, gomp_target_init): Update for
13985 * oacc-async.c: New file.
13986 * oacc-cuda.c: Likewise.
13987 * oacc-host.c: Likewise.
13988 * oacc-init.c: Likewise.
13989 * oacc-int.h: Likewise.
13990 * oacc-mem.c: Likewise.
13991 * oacc-parallel.c: Likewise.
13992 * oacc-plugin.c: Likewise.
13993 * oacc-plugin.h: Likewise.
13994 * oacc-ptx.h: Likewise.
13995 * openacc.f90: Likewise.
13996 * openacc.h: Likewise.
13997 * openacc_lib.h: Likewise.
13998 * plugin/plugin-host.c: Likewise.
13999 * plugin/plugin-nvptx.c: Likewise.
14000 * libgomp-plugin.c: Likewise.
14001 * libgomp-plugin.h: Likewise.
14002 * libgomp_target.h: Remove file after merging content into the
14003 former file. Update all users.
14004 * testsuite/lib/libgomp.exp: Load libgomp-test-support.exp.
14005 (offload_targets_s, offload_targets_s_openacc): New variables.
14006 (check_effective_target_openacc_nvidia_accel_present)
14007 (check_effective_target_openacc_nvidia_accel_selected): New
14009 (libgomp_init): Update for OpenACC changes.
14010 * testsuite/libgomp-test-support.exp.in: New file.
14011 * testsuite/libgomp.oacc-c++/c++.exp: Likewise.
14012 * testsuite/libgomp.oacc-c/c.exp: Likewise.
14013 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
14014 * testsuite/libgomp.oacc-c-c++-common/abort-1.c: Likewise.
14015 * testsuite/libgomp.oacc-c-c++-common/abort-2.c: Likewise.
14016 * testsuite/libgomp.oacc-c-c++-common/abort-3.c: Likewise.
14017 * testsuite/libgomp.oacc-c-c++-common/abort-4.c: Likewise.
14018 * testsuite/libgomp.oacc-c-c++-common/acc_on_device-1.c: Likewise.
14019 * testsuite/libgomp.oacc-c-c++-common/asyncwait-1.c: Likewise.
14020 * testsuite/libgomp.oacc-c-c++-common/cache-1.c: Likewise.
14021 * testsuite/libgomp.oacc-c-c++-common/clauses-1.c: Likewise.
14022 * testsuite/libgomp.oacc-c-c++-common/clauses-2.c: Likewise.
14023 * testsuite/libgomp.oacc-c-c++-common/collapse-1.c: Likewise.
14024 * testsuite/libgomp.oacc-c-c++-common/collapse-2.c: Likewise.
14025 * testsuite/libgomp.oacc-c-c++-common/collapse-3.c: Likewise.
14026 * testsuite/libgomp.oacc-c-c++-common/collapse-4.c: Likewise.
14027 * testsuite/libgomp.oacc-c-c++-common/context-1.c: Likewise.
14028 * testsuite/libgomp.oacc-c-c++-common/context-2.c: Likewise.
14029 * testsuite/libgomp.oacc-c-c++-common/context-3.c: Likewise.
14030 * testsuite/libgomp.oacc-c-c++-common/context-4.c: Likewise.
14031 * testsuite/libgomp.oacc-c-c++-common/data-1.c: Likewise.
14032 * testsuite/libgomp.oacc-c-c++-common/data-2.c: Likewise.
14033 * testsuite/libgomp.oacc-c-c++-common/data-3.c: Likewise.
14034 * testsuite/libgomp.oacc-c-c++-common/data-already-1.c: Likewise.
14035 * testsuite/libgomp.oacc-c-c++-common/data-already-2.c: Likewise.
14036 * testsuite/libgomp.oacc-c-c++-common/data-already-3.c: Likewise.
14037 * testsuite/libgomp.oacc-c-c++-common/data-already-4.c: Likewise.
14038 * testsuite/libgomp.oacc-c-c++-common/data-already-5.c: Likewise.
14039 * testsuite/libgomp.oacc-c-c++-common/data-already-6.c: Likewise.
14040 * testsuite/libgomp.oacc-c-c++-common/data-already-7.c: Likewise.
14041 * testsuite/libgomp.oacc-c-c++-common/data-already-8.c: Likewise.
14042 * testsuite/libgomp.oacc-c-c++-common/deviceptr-1.c: Likewise.
14043 * testsuite/libgomp.oacc-c-c++-common/if-1.c: Likewise.
14044 * testsuite/libgomp.oacc-c-c++-common/kernels-1.c: Likewise.
14045 * testsuite/libgomp.oacc-c-c++-common/kernels-empty.c: Likewise.
14046 * testsuite/libgomp.oacc-c-c++-common/lib-1.c: Likewise.
14047 * testsuite/libgomp.oacc-c-c++-common/lib-10.c: Likewise.
14048 * testsuite/libgomp.oacc-c-c++-common/lib-11.c: Likewise.
14049 * testsuite/libgomp.oacc-c-c++-common/lib-12.c: Likewise.
14050 * testsuite/libgomp.oacc-c-c++-common/lib-13.c: Likewise.
14051 * testsuite/libgomp.oacc-c-c++-common/lib-14.c: Likewise.
14052 * testsuite/libgomp.oacc-c-c++-common/lib-15.c: Likewise.
14053 * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
14054 * testsuite/libgomp.oacc-c-c++-common/lib-17.c: Likewise.
14055 * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
14056 * testsuite/libgomp.oacc-c-c++-common/lib-19.c: Likewise.
14057 * testsuite/libgomp.oacc-c-c++-common/lib-2.c: Likewise.
14058 * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
14059 * testsuite/libgomp.oacc-c-c++-common/lib-21.c: Likewise.
14060 * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Likewise.
14061 * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
14062 * testsuite/libgomp.oacc-c-c++-common/lib-24.c: Likewise.
14063 * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
14064 * testsuite/libgomp.oacc-c-c++-common/lib-26.c: Likewise.
14065 * testsuite/libgomp.oacc-c-c++-common/lib-27.c: Likewise.
14066 * testsuite/libgomp.oacc-c-c++-common/lib-28.c: Likewise.
14067 * testsuite/libgomp.oacc-c-c++-common/lib-29.c: Likewise.
14068 * testsuite/libgomp.oacc-c-c++-common/lib-3.c: Likewise.
14069 * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
14070 * testsuite/libgomp.oacc-c-c++-common/lib-31.c: Likewise.
14071 * testsuite/libgomp.oacc-c-c++-common/lib-32.c: Likewise.
14072 * testsuite/libgomp.oacc-c-c++-common/lib-33.c: Likewise.
14073 * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
14074 * testsuite/libgomp.oacc-c-c++-common/lib-35.c: Likewise.
14075 * testsuite/libgomp.oacc-c-c++-common/lib-36.c: Likewise.
14076 * testsuite/libgomp.oacc-c-c++-common/lib-37.c: Likewise.
14077 * testsuite/libgomp.oacc-c-c++-common/lib-38.c: Likewise.
14078 * testsuite/libgomp.oacc-c-c++-common/lib-39.c: Likewise.
14079 * testsuite/libgomp.oacc-c-c++-common/lib-4.c: Likewise.
14080 * testsuite/libgomp.oacc-c-c++-common/lib-40.c: Likewise.
14081 * testsuite/libgomp.oacc-c-c++-common/lib-41.c: Likewise.
14082 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
14083 * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Likewise.
14084 * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
14085 * testsuite/libgomp.oacc-c-c++-common/lib-45.c: Likewise.
14086 * testsuite/libgomp.oacc-c-c++-common/lib-46.c: Likewise.
14087 * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Likewise.
14088 * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
14089 * testsuite/libgomp.oacc-c-c++-common/lib-49.c: Likewise.
14090 * testsuite/libgomp.oacc-c-c++-common/lib-5.c: Likewise.
14091 * testsuite/libgomp.oacc-c-c++-common/lib-50.c: Likewise.
14092 * testsuite/libgomp.oacc-c-c++-common/lib-51.c: Likewise.
14093 * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Likewise.
14094 * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
14095 * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
14096 * testsuite/libgomp.oacc-c-c++-common/lib-55.c: Likewise.
14097 * testsuite/libgomp.oacc-c-c++-common/lib-56.c: Likewise.
14098 * testsuite/libgomp.oacc-c-c++-common/lib-57.c: Likewise.
14099 * testsuite/libgomp.oacc-c-c++-common/lib-58.c: Likewise.
14100 * testsuite/libgomp.oacc-c-c++-common/lib-59.c: Likewise.
14101 * testsuite/libgomp.oacc-c-c++-common/lib-6.c: Likewise.
14102 * testsuite/libgomp.oacc-c-c++-common/lib-60.c: Likewise.
14103 * testsuite/libgomp.oacc-c-c++-common/lib-61.c: Likewise.
14104 * testsuite/libgomp.oacc-c-c++-common/lib-62.c: Likewise.
14105 * testsuite/libgomp.oacc-c-c++-common/lib-63.c: Likewise.
14106 * testsuite/libgomp.oacc-c-c++-common/lib-64.c: Likewise.
14107 * testsuite/libgomp.oacc-c-c++-common/lib-65.c: Likewise.
14108 * testsuite/libgomp.oacc-c-c++-common/lib-66.c: Likewise.
14109 * testsuite/libgomp.oacc-c-c++-common/lib-67.c: Likewise.
14110 * testsuite/libgomp.oacc-c-c++-common/lib-68.c: Likewise.
14111 * testsuite/libgomp.oacc-c-c++-common/lib-69.c: Likewise.
14112 * testsuite/libgomp.oacc-c-c++-common/lib-7.c: Likewise.
14113 * testsuite/libgomp.oacc-c-c++-common/lib-70.c: Likewise.
14114 * testsuite/libgomp.oacc-c-c++-common/lib-71.c: Likewise.
14115 * testsuite/libgomp.oacc-c-c++-common/lib-72.c: Likewise.
14116 * testsuite/libgomp.oacc-c-c++-common/lib-73.c: Likewise.
14117 * testsuite/libgomp.oacc-c-c++-common/lib-74.c: Likewise.
14118 * testsuite/libgomp.oacc-c-c++-common/lib-75.c: Likewise.
14119 * testsuite/libgomp.oacc-c-c++-common/lib-76.c: Likewise.
14120 * testsuite/libgomp.oacc-c-c++-common/lib-77.c: Likewise.
14121 * testsuite/libgomp.oacc-c-c++-common/lib-78.c: Likewise.
14122 * testsuite/libgomp.oacc-c-c++-common/lib-79.c: Likewise.
14123 * testsuite/libgomp.oacc-c-c++-common/lib-80.c: Likewise.
14124 * testsuite/libgomp.oacc-c-c++-common/lib-81.c: Likewise.
14125 * testsuite/libgomp.oacc-c-c++-common/lib-82.c: Likewise.
14126 * testsuite/libgomp.oacc-c-c++-common/lib-83.c: Likewise.
14127 * testsuite/libgomp.oacc-c-c++-common/lib-84.c: Likewise.
14128 * testsuite/libgomp.oacc-c-c++-common/lib-85.c: Likewise.
14129 * testsuite/libgomp.oacc-c-c++-common/lib-86.c: Likewise.
14130 * testsuite/libgomp.oacc-c-c++-common/lib-87.c: Likewise.
14131 * testsuite/libgomp.oacc-c-c++-common/lib-88.c: Likewise.
14132 * testsuite/libgomp.oacc-c-c++-common/lib-89.c: Likewise.
14133 * testsuite/libgomp.oacc-c-c++-common/lib-9.c: Likewise.
14134 * testsuite/libgomp.oacc-c-c++-common/lib-90.c: Likewise.
14135 * testsuite/libgomp.oacc-c-c++-common/lib-91.c: Likewise.
14136 * testsuite/libgomp.oacc-c-c++-common/lib-92.c: Likewise.
14137 * testsuite/libgomp.oacc-c-c++-common/nested-1.c: Likewise.
14138 * testsuite/libgomp.oacc-c-c++-common/nested-2.c: Likewise.
14139 * testsuite/libgomp.oacc-c-c++-common/offset-1.c: Likewise.
14140 * testsuite/libgomp.oacc-c-c++-common/parallel-1.c: Likewise.
14141 * testsuite/libgomp.oacc-c-c++-common/parallel-empty.c: Likewise.
14142 * testsuite/libgomp.oacc-c-c++-common/pointer-align-1.c: Likewise.
14143 * testsuite/libgomp.oacc-c-c++-common/present-1.c: Likewise.
14144 * testsuite/libgomp.oacc-c-c++-common/present-2.c: Likewise.
14145 * testsuite/libgomp.oacc-c-c++-common/reduction-1.c: Likewise.
14146 * testsuite/libgomp.oacc-c-c++-common/reduction-2.c: Likewise.
14147 * testsuite/libgomp.oacc-c-c++-common/reduction-3.c: Likewise.
14148 * testsuite/libgomp.oacc-c-c++-common/reduction-4.c: Likewise.
14149 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Likewise.
14150 * testsuite/libgomp.oacc-c-c++-common/reduction-initial-1.c:
14152 * testsuite/libgomp.oacc-c-c++-common/subr.h: Likewise.
14153 * testsuite/libgomp.oacc-c-c++-common/subr.ptx: Likewise.
14154 * testsuite/libgomp.oacc-c-c++-common/timer.h: Likewise.
14155 * testsuite/libgomp.oacc-c-c++-common/update-1-2.c: Likewise.
14156 * testsuite/libgomp.oacc-c-c++-common/update-1.c: Likewise.
14157 * testsuite/libgomp.oacc-fortran/abort-1.f90: Likewise.
14158 * testsuite/libgomp.oacc-fortran/abort-2.f90: Likewise.
14159 * testsuite/libgomp.oacc-fortran/acc_on_device-1-1.f90: Likewise.
14160 * testsuite/libgomp.oacc-fortran/acc_on_device-1-2.f: Likewise.
14161 * testsuite/libgomp.oacc-fortran/acc_on_device-1-3.f: Likewise.
14162 * testsuite/libgomp.oacc-fortran/asyncwait-1.f90: Likewise.
14163 * testsuite/libgomp.oacc-fortran/asyncwait-2.f90: Likewise.
14164 * testsuite/libgomp.oacc-fortran/asyncwait-3.f90: Likewise.
14165 * testsuite/libgomp.oacc-fortran/collapse-1.f90: Likewise.
14166 * testsuite/libgomp.oacc-fortran/collapse-2.f90: Likewise.
14167 * testsuite/libgomp.oacc-fortran/collapse-3.f90: Likewise.
14168 * testsuite/libgomp.oacc-fortran/collapse-4.f90: Likewise.
14169 * testsuite/libgomp.oacc-fortran/collapse-5.f90: Likewise.
14170 * testsuite/libgomp.oacc-fortran/collapse-6.f90: Likewise.
14171 * testsuite/libgomp.oacc-fortran/collapse-7.f90: Likewise.
14172 * testsuite/libgomp.oacc-fortran/collapse-8.f90: Likewise.
14173 * testsuite/libgomp.oacc-fortran/data-1.f90: Likewise.
14174 * testsuite/libgomp.oacc-fortran/data-2.f90: Likewise.
14175 * testsuite/libgomp.oacc-fortran/data-3.f90: Likewise.
14176 * testsuite/libgomp.oacc-fortran/data-4-2.f90: Likewise.
14177 * testsuite/libgomp.oacc-fortran/data-4.f90: Likewise.
14178 * testsuite/libgomp.oacc-fortran/data-already-1.f: Likewise.
14179 * testsuite/libgomp.oacc-fortran/data-already-2.f: Likewise.
14180 * testsuite/libgomp.oacc-fortran/data-already-3.f: Likewise.
14181 * testsuite/libgomp.oacc-fortran/data-already-4.f: Likewise.
14182 * testsuite/libgomp.oacc-fortran/data-already-5.f: Likewise.
14183 * testsuite/libgomp.oacc-fortran/data-already-6.f: Likewise.
14184 * testsuite/libgomp.oacc-fortran/data-already-7.f: Likewise.
14185 * testsuite/libgomp.oacc-fortran/data-already-8.f: Likewise.
14186 * testsuite/libgomp.oacc-fortran/lib-1.f90: Likewise.
14187 * testsuite/libgomp.oacc-fortran/lib-10.f90: Likewise.
14188 * testsuite/libgomp.oacc-fortran/lib-2.f: Likewise.
14189 * testsuite/libgomp.oacc-fortran/lib-3.f: Likewise.
14190 * testsuite/libgomp.oacc-fortran/lib-4.f90: Likewise.
14191 * testsuite/libgomp.oacc-fortran/lib-5.f90: Likewise.
14192 * testsuite/libgomp.oacc-fortran/lib-6.f90: Likewise.
14193 * testsuite/libgomp.oacc-fortran/lib-7.f90: Likewise.
14194 * testsuite/libgomp.oacc-fortran/lib-8.f90: Likewise.
14195 * testsuite/libgomp.oacc-fortran/map-1.f90: Likewise.
14196 * testsuite/libgomp.oacc-fortran/openacc_version-1.f: Likewise.
14197 * testsuite/libgomp.oacc-fortran/openacc_version-2.f90: Likewise.
14198 * testsuite/libgomp.oacc-fortran/pointer-align-1.f90: Likewise.
14199 * testsuite/libgomp.oacc-fortran/pset-1.f90: Likewise.
14200 * testsuite/libgomp.oacc-fortran/reduction-1.f90: Likewise.
14201 * testsuite/libgomp.oacc-fortran/reduction-2.f90: Likewise.
14202 * testsuite/libgomp.oacc-fortran/reduction-3.f90: Likewise.
14203 * testsuite/libgomp.oacc-fortran/reduction-4.f90: Likewise.
14204 * testsuite/libgomp.oacc-fortran/reduction-5.f90: Likewise.
14205 * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
14206 * testsuite/libgomp.oacc-fortran/routine-1.f90: Likewise.
14207 * testsuite/libgomp.oacc-fortran/routine-2.f90: Likewise.
14208 * testsuite/libgomp.oacc-fortran/routine-3.f90: Likewise.
14209 * testsuite/libgomp.oacc-fortran/routine-4.f90: Likewise.
14210 * testsuite/libgomp.oacc-fortran/subarrays-1.f90: Likewise.
14211 * testsuite/libgomp.oacc-fortran/subarrays-2.f90: Likewise.
14213 2015-01-10 Thomas Schwinge <thomas@codesourcery.com>
14214 Julian Brown <julian@codesourcery.com>
14215 David Malcolm <dmalcolm@redhat.com>
14217 * configure.ac: Rename libgomp from "GNU OpenMP Runtime Library"
14218 to "GNU Offloading and Multi Processing Runtime Library". Change
14220 * configure: Regenerate.
14221 * libgomp.texi: Update.
14223 2015-01-08 Thomas Schwinge <thomas@codesourcery.com>
14225 * configure.ac [tgt_dir] (offload_additional_lib_paths): Also add
14227 * configure: Regenerate.
14229 * testsuite/lib/libgomp.exp (libgomp_init): Correctly match
14230 "intelmic" in $offload_targets.
14232 2015-01-05 Jakub Jelinek <jakub@redhat.com>
14234 Update copyright years.
14236 * libgomp.texi: Bump @copying's copyright year.
14238 2014-12-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14240 * testsuite/lib/libgomp.exp: Load target-utils.exp.
14241 Move load of target-supports.exp earlier.
14243 2014-12-10 Ilya Verbin <ilya.verbin@intel.com>
14245 * testsuite/libgomp.c/target-9.c: New test.
14247 2014-12-09 Varvara Rainchik <varvara.rainchik@intel.com>
14249 * config.h.in: Regenerate.
14250 * configure: Regenerate.
14251 * configure.ac: Add GCC_CHECK_EMUTLS.
14252 * libgomp.h: Add check for USE_EMUTLS: this case
14253 is equal to HAVE_TLS.
14254 * team.c: Likewise.
14256 2014-12-03 Uros Bizjak <ubizjak@gmail.com>
14258 * configure.tgt (x86_64-*-linux*): Tune -m32 multilib to generic.
14260 2014-11-28 Andrey Turetskiy <andrey.turetskiy@intel.com>
14261 Ilya Verbin <ilya.verbin@intel.com>
14263 * testsuite/libgomp.c/target-critical-1.c: New test.
14265 2014-11-26 Jakub Jelinek <jakub@redhat.com>
14267 * testsuite/libgomp.c/examples-4/e.53.4.c: Add -DITESTITERS=20
14268 to dg-options unless expensive testing is on.
14269 (TESTITERS): Define to N if not defined.
14270 (main): Use TESTITERS instead of N.
14271 * testsuite/libgomp.c/examples-4/e.55.1.c: Define CHUNKSZ from
14272 dg-additional-options depending on whether expensive testing is on.
14273 * testsuite/libgomp.fortran/examples-4/e.55.1.f90 (e_55_1_mod):
14274 Decrease N to 100000 and CHUNKSZ to 10000.
14276 2014-11-24 Jakub Jelinek <jakub@redhat.com>
14279 * testsuite/libgomp.fortran/pr63938-1.f90: New test.
14280 * testsuite/libgomp.fortran/pr63938-2.f90: New test.
14282 2014-11-21 Steve Ellcey <sellcey@imgtec.com>
14284 * config/linux/mips/futex.h (SYS_futex): Define if not already done.
14286 2014-11-21 H.J. Lu <hongjiu.lu@intel.com>
14289 * configure: Regenerated.
14291 2014-11-19 Uros Bizjak <ubizjak@gmail.com>
14293 * testsuite/libgomp.c/examples-4/e.53.5.c: Require
14294 vect_simd_clones effective target.
14295 * testsuite/libgomp.fortran/examples-4/e.53.5.f90: Ditto.
14297 2014-11-14 Jakub Jelinek <jakub@redhat.com>
14299 * libgomp.c/examples-4/e.54.2.c (main): Use N / 8 instead
14300 of 32 as block_size.
14301 * libgomp.fortran/examples-4/e.54.2.f90 (e_54_1): Use n / 8
14302 instead of 32 as block_size.
14304 2014-11-13 Andrey Turetskiy <andrey.turetskiy@intel.com>
14305 Ilya Verbin <ilya.verbin@intel.com>
14307 * Makefile.in: Regenerate.
14308 * configure: Regenerate.
14309 * configure.ac: Set up offload_additional_options,
14310 offload_additional_lib_paths and offload_targets.
14311 * testsuite/Makefile.am: Export environment variables: OFFLOAD_TARGETS,
14312 OFFLOAD_ADDITIONAL_OPTIONS, OFFLOAD_ADDITIONAL_LIB_PATHS.
14313 * testsuite/Makefile.in: Regenerate.
14314 * testsuite/lib/libgomp.exp (libgomp_init): Append
14315 offload_additional_lib_paths to LD_LIBRARY_PATH. Append
14316 offload_additional_options to ALWAYS_CFLAGS. Append liboffloadmic
14317 build directory to LD_LIBRARY_PATH for intelmic offload targets.
14319 2014-11-13 Andrey Turetskiy <andrey.turetskiy@intel.com>
14320 Ilya Verbin <ilya.verbin@intel.com>
14321 Kirill Yukhin <kirill.yukhin@intel.com>
14322 Ilya Tocar <ilya.tocar@intel.com>
14324 * testsuite/lib/libgomp.exp
14325 (check_effective_target_offload_device): New.
14326 * testsuite/libgomp.c++/c++.exp: Include tests from subdirectories.
14327 * testsuite/libgomp.c++/examples-4/e.51.5.C: New test.
14328 * testsuite/libgomp.c++/examples-4/e.53.2.C: Ditto.
14329 * testsuite/libgomp.c/examples-4/e.50.1.c: Ditto.
14330 * testsuite/libgomp.c/examples-4/e.50.2.c: Ditto.
14331 * testsuite/libgomp.c/examples-4/e.50.3.c: Ditto.
14332 * testsuite/libgomp.c/examples-4/e.50.4.c: Ditto.
14333 * testsuite/libgomp.c/examples-4/e.50.5.c: Ditto.
14334 * testsuite/libgomp.c/examples-4/e.51.1.c: Ditto.
14335 * testsuite/libgomp.c/examples-4/e.51.2.c: Ditto.
14336 * testsuite/libgomp.c/examples-4/e.51.3.c: Ditto.
14337 * testsuite/libgomp.c/examples-4/e.51.4.c: Ditto.
14338 * testsuite/libgomp.c/examples-4/e.51.6.c: Ditto.
14339 * testsuite/libgomp.c/examples-4/e.51.7.c: Ditto.
14340 * testsuite/libgomp.c/examples-4/e.52.1.c: Ditto.
14341 * testsuite/libgomp.c/examples-4/e.52.2.c: Ditto.
14342 * testsuite/libgomp.c/examples-4/e.53.1.c: Ditto.
14343 * testsuite/libgomp.c/examples-4/e.53.3.c: Ditto.
14344 * testsuite/libgomp.c/examples-4/e.53.4.c: Ditto.
14345 * testsuite/libgomp.c/examples-4/e.53.5.c: Ditto.
14346 * testsuite/libgomp.c/examples-4/e.54.2.c: Ditto.
14347 * testsuite/libgomp.c/examples-4/e.54.3.c: Ditto.
14348 * testsuite/libgomp.c/examples-4/e.54.4.c: Ditto.
14349 * testsuite/libgomp.c/examples-4/e.54.5.c: Ditto.
14350 * testsuite/libgomp.c/examples-4/e.54.6.c: Ditto.
14351 * testsuite/libgomp.c/examples-4/e.55.1.c: Ditto.
14352 * testsuite/libgomp.c/examples-4/e.55.2.c: Ditto.
14353 * testsuite/libgomp.c/examples-4/e.56.3.c: Ditto.
14354 * testsuite/libgomp.c/examples-4/e.56.4.c: Ditto.
14355 * testsuite/libgomp.c/examples-4/e.57.1.c: Ditto.
14356 * testsuite/libgomp.c/examples-4/e.57.2.c: Ditto.
14357 * testsuite/libgomp.c/examples-4/e.57.3.c: Ditto.
14358 * testsuite/libgomp.c/target-7.c: Fix test.
14359 * testsuite/libgomp.fortran/examples-4/e.50.1.f90: New test.
14360 * testsuite/libgomp.fortran/examples-4/e.50.2.f90: Ditto.
14361 * testsuite/libgomp.fortran/examples-4/e.50.3.f90: Ditto.
14362 * testsuite/libgomp.fortran/examples-4/e.50.4.f90: Ditto.
14363 * testsuite/libgomp.fortran/examples-4/e.50.5.f90: Ditto.
14364 * testsuite/libgomp.fortran/examples-4/e.51.1.f90: Ditto.
14365 * testsuite/libgomp.fortran/examples-4/e.51.2.f90: Ditto.
14366 * testsuite/libgomp.fortran/examples-4/e.51.3.f90: Ditto.
14367 * testsuite/libgomp.fortran/examples-4/e.51.4.f90: Ditto.
14368 * testsuite/libgomp.fortran/examples-4/e.51.5.f90: Ditto.
14369 * testsuite/libgomp.fortran/examples-4/e.51.6.f90: Ditto.
14370 * testsuite/libgomp.fortran/examples-4/e.51.7.f90: Ditto.
14371 * testsuite/libgomp.fortran/examples-4/e.52.1.f90: Ditto.
14372 * testsuite/libgomp.fortran/examples-4/e.52.2.f90: Ditto.
14373 * testsuite/libgomp.fortran/examples-4/e.53.1.f90: Ditto.
14374 * testsuite/libgomp.fortran/examples-4/e.53.2.f90: Ditto.
14375 * testsuite/libgomp.fortran/examples-4/e.53.3.f90: Ditto.
14376 * testsuite/libgomp.fortran/examples-4/e.53.4.f90: Ditto.
14377 * testsuite/libgomp.fortran/examples-4/e.53.5.f90: Ditto.
14378 * testsuite/libgomp.fortran/examples-4/e.54.2.f90: Ditto.
14379 * testsuite/libgomp.fortran/examples-4/e.54.3.f90: Ditto.
14380 * testsuite/libgomp.fortran/examples-4/e.54.4.f90: Ditto.
14381 * testsuite/libgomp.fortran/examples-4/e.54.5.f90: Ditto.
14382 * testsuite/libgomp.fortran/examples-4/e.54.6.f90: Ditto.
14383 * testsuite/libgomp.fortran/examples-4/e.55.1.f90: Ditto.
14384 * testsuite/libgomp.fortran/examples-4/e.55.2.f90: Ditto.
14385 * testsuite/libgomp.fortran/examples-4/e.56.3.f90: Ditto.
14386 * testsuite/libgomp.fortran/examples-4/e.56.4.f90: Ditto.
14387 * testsuite/libgomp.fortran/examples-4/e.57.1.f90: Ditto.
14388 * testsuite/libgomp.fortran/examples-4/e.57.2.f90: Ditto.
14389 * testsuite/libgomp.fortran/examples-4/e.57.3.f90: Ditto.
14391 2014-11-13 Jakub Jelinek <jakub@redhat.com>
14392 Ilya Verbin <ilya.verbin@intel.com>
14393 Thomas Schwinge <thomas@codesourcery.com>
14394 Andrey Turetskiy <andrey.turetskiy@intel.com>
14396 * libgomp.map (GOMP_4.0.1): New symbol version.
14397 Add GOMP_offload_register.
14398 * libgomp_target.h: New file.
14399 * splay-tree.h: New file.
14400 * target.c: Include config.h, libgomp_target.h, dlfcn.h, splay-tree.h.
14401 (gomp_target_init): New forward declaration.
14402 (gomp_is_initialized): New static variable.
14403 (splay_tree_node, splay_tree, splay_tree_key): New typedefs.
14404 (struct target_mem_desc, struct splay_tree_key_s, offload_image_descr):
14406 (offload_images, num_offload_images, devices, num_devices): New static
14408 (splay_compare): New static function.
14409 (struct gomp_device_descr): New structure.
14410 (gomp_get_num_devices): Call gomp_target_init.
14411 (resolve_device, gomp_map_vars_existing, gomp_map_vars, gomp_unmap_tgt)
14412 (gomp_unmap_vars, gomp_update, gomp_init_device): New static functions.
14413 (GOMP_offload_register): New function.
14414 (GOMP_target): Arrange for host callback to be performed in a separate
14415 initial thread and contention group, inheriting ICVs from
14416 gomp_global_icv etc. Call gomp_map_vars and gomp_unmap_vars.
14417 Add device initialization and lookup for target function in splay tree.
14418 (GOMP_target_data): Add device initialization and call gomp_map_vars.
14419 (GOMP_target_end_data): Call gomp_unmap_vars.
14420 (GOMP_target_update): Add device initialization and call gomp_update.
14421 (gomp_load_plugin_for_device, gomp_register_images_for_device)
14422 (gomp_target_init): New static functions.
14424 2014-11-13 Bernd Schmidt <bernds@codesourcery.com>
14425 Thomas Schwinge <thomas@codesourcery.com>
14426 Ilya Verbin <ilya.verbin@intel.com>
14427 Andrey Turetskiy <andrey.turetskiy@intel.com>
14429 * config.h.in: Regenerate.
14430 * configure: Regenerate.
14431 * configure.ac: Check for libdl, required for plugin support.
14432 (PLUGIN_SUPPORT): Define if plugins are supported.
14433 (enable_offload_targets): Support Intel MIC targets.
14434 (OFFLOAD_TARGETS): List of target names suitable for offloading.
14436 2014-11-11 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
14439 * configure: Regenerate.
14441 2014-11-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14443 * config/posix/lock.c (_XOPEN_SOURCE) Define as 600.
14445 2014-10-06 Marek Polacek <polacek@redhat.com>
14447 * testsuite/libgomp.c/affinity-1.c: Include <sys/wait.h>.
14448 * testsuite/libgomp.c/nqueens-1.c: Include <stdlib.h>.
14449 * testsuite/libgomp.c/thread-limit-1.c: Include <omp.h>
14450 * testsuite/libgomp.c/thread-limit-2.c: Likewise.
14452 2014-10-06 Marek Polacek <polacek@redhat.com>
14454 * testsuite/libgomp.c/affinity-1.c: Fix implicit declarations.
14455 * testsuite/libgomp.c/nqueens-1.c: Likewise.
14456 * testsuite/libgomp.c/pr26943-3.c: Likewise.
14457 * testsuite/libgomp.c/pr26943-4.c: Likewise.
14458 * testsuite/libgomp.c/pr36802-2.c: Likewise.
14459 * testsuite/libgomp.c/pr36802-3.c: Likewise.
14460 * testsuite/libgomp.c/thread-limit-1.c: Likewise.
14461 * testsuite/libgomp.c/thread-limit-2.c: Likewise.
14462 * testsuite/libgomp.c/appendix-a/a.15.1.c: Include <omp.h>.
14463 * testsuite/libgomp.c/omp-loop02.c: Fix defaulting to int.
14464 * testsuite/libgomp.c/omp-parallel-for.c: Likewise.
14465 * testsuite/libgomp.c/omp-parallel-if.c: Likewise.
14466 * testsuite/libgomp.c/omp-single-1.c: Likewise.
14467 * testsuite/libgomp.c/omp-single-2.c: Likewise.
14468 * testsuite/libgomp.c/omp_matvec.c: Likewise.
14469 * testsuite/libgomp.c/omp_workshare3.c: Likewise.
14470 * testsuite/libgomp.c/omp_workshare4.c: Likewise.
14471 * testsuite/libgomp.c/shared-1.c: Fix defaulting to int. Fix implicit
14474 2014-10-03 Jakub Jelinek <jakub@redhat.com>
14477 * testsuite/libgomp.c/pr61200.c: New test.
14479 2014-09-18 Jakub Jelinek <jakub@redhat.com>
14482 * testsuite/libgomp.c++/pr63248.C: New test.
14484 2014-08-04 Jakub Jelinek <jakub@redhat.com>
14486 * task.c (GOMP_taskgroup_end): If taskgroup->num_children
14487 is not zero, but taskgroup->children is NULL and there are
14488 any task->children, schedule those instead of waiting.
14489 * testsuite/libgomp.c/depend-6.c: New test.
14490 * testsuite/libgomp.c/depend-7.c: New test.
14491 * testsuite/libgomp.c/depend-8.c: New test.
14492 * testsuite/libgomp.c/depend-9.c: New test.
14493 * testsuite/libgomp.c/depend-10.c: New test.
14495 2014-08-01 Jakub Jelinek <jakub@redhat.com>
14497 * libgomp.h (struct gomp_task_depend_entry): Add redundant_out field.
14498 (struct gomp_taskwait): New type.
14499 (struct gomp_task): Add taskwait and parent_depends_on, remove
14500 in_taskwait and taskwait_sem fields.
14501 (gomp_finish_task): Don't destroy taskwait_sem.
14502 * task.c (gomp_init_task): Don't init in_taskwait, instead init
14503 taskwait and parent_depends_on.
14504 (GOMP_task): For if (0) tasks with depend clause that depend on
14505 earlier tasks don't defer them, instead call
14506 gomp_task_maybe_wait_for_dependencies to wait for the dependencies.
14507 Initialize redundant_out field, for redundant out entries just
14508 move them at the end of linked list instead of removing them
14509 completely, and set redundant_out flag instead of redundant.
14510 (gomp_task_run_pre): Update last_parent_depends_on if scheduling
14512 (gomp_task_run_post_handle_dependers): If parent is in
14513 gomp_task_maybe_wait_for_dependencies and newly runnable task
14514 is not parent_depends_on, queue it in parent->children linked
14515 list after all runnable tasks with parent_depends_on set.
14516 Adjust for addition of taskwait indirection.
14517 (gomp_task_run_post_remove_parent): If parent is in
14518 gomp_task_maybe_wait_for_dependencies and task to be removed
14519 is parent_depends_on, decrement n_depend and if needed awake
14520 parent. Adjust for addition of taskwait indirection.
14521 (GOMP_taskwait): Adjust for addition of taskwait indirection.
14522 (gomp_task_maybe_wait_for_dependencies): New function.
14523 * testsuite/libgomp.c/depend-5.c: New test.
14525 2014-07-13 Tobias Burnus <burnus@net-b.de>
14527 * testsuite/libgomp.fortran/pr34020.f90: Make compile
14528 with TS 18508/Fortran 2015.
14530 2014-07-06 Marek Polacek <polacek@redhat.com>
14533 * testsuite/libgomp.c/appendix-a/a.29.1.c (f): Add dg-warnings.
14535 2014-07-03 Jakub Jelinek <jakub@redhat.com>
14537 * testsuite/lib/libgomp.exp (libgomp_target_compile): If $source
14538 matches regex $lang_source_re, add $lang_include_flags to options.
14539 * testsuite/libgomp.c/c.exp: Unset lang_include_flags.
14540 * testsuite/libgomp.c++/c++.exp: Likewise.
14541 * testsuite/libgomp.fortran/fortran.exp: Likewise. Set lang_source_re
14542 and lang_include_flags instead of adding -fintrinsic-modules-path= to
14544 * testsuite/libgomp.graphite/graphite.exp: Unset lang_include_flags.
14546 2014-07-03 Thomas Schwinge <thomas@codesourcery.com>
14548 * testsuite/libgomp.fortran/fortran.exp: Explain
14549 gfortran-dg-runtest usage.
14551 2014-06-25 Jakub Jelinek <jakub@redhat.com>
14553 * testsuite/libgomp.fortran/simd5.f90: New test.
14554 * testsuite/libgomp.fortran/simd6.f90: New test.
14555 * testsuite/libgomp.fortran/simd7.f90: New test.
14557 2014-06-24 Jakub Jelinek <jakub@redhat.com>
14559 * testsuite/libgomp.c/for-2.c: Define SC to static for
14560 #pragma omp for simd testing.
14561 * testsuite/libgomp.c/for-2.h (SC): Define if not defined.
14562 (N(f5), N(f6), N(f7), N(f8), N(f10), N(f12), N(f14)): Use
14564 * testsuite/libgomp.c/simd-14.c: New test.
14565 * testsuite/libgomp.c/simd-15.c: New test.
14566 * testsuite/libgomp.c/simd-16.c: New test.
14567 * testsuite/libgomp.c/simd-17.c: New test.
14568 * testsuite/libgomp.c++/for-10.C: Define SC to static for
14569 #pragma omp for simd testing.
14570 * testsuite/libgomp.c++/simd10.C: New test.
14571 * testsuite/libgomp.c++/simd11.C: New test.
14572 * testsuite/libgomp.c++/simd12.C: New test.
14573 * testsuite/libgomp.c++/simd13.C: New test.
14575 * testsuite/libgomp.fortran/aligned1.f03: New test.
14576 * testsuite/libgomp.fortran/nestedfn5.f90: New test.
14577 * testsuite/libgomp.fortran/target7.f90: Surround loop spawning
14578 tasks with !$omp parallel !$omp single.
14579 * testsuite/libgomp.fortran/target8.f90: New test.
14580 * testsuite/libgomp.fortran/udr4.f90 (foo UDR, bar UDR): Adjust
14581 not to use trim in the combiner, instead call elemental function.
14582 (fn): New elemental function.
14583 * testsuite/libgomp.fortran/udr6.f90 (do_add, dp_add, dp_init):
14585 * testsuite/libgomp.fortran/udr7.f90 (omp_priv, omp_orig, omp_out,
14587 * testsuite/libgomp.fortran/udr12.f90: New test.
14588 * testsuite/libgomp.fortran/udr13.f90: New test.
14589 * testsuite/libgomp.fortran/udr14.f90: New test.
14590 * testsuite/libgomp.fortran/udr15.f90: New test.
14592 2014-06-18 Jakub Jelinek <jakub@redhat.com>
14594 * omp_lib.f90.in (openmp_version): Set to 201307.
14595 * omp_lib.h.in (openmp_version): Likewise.
14596 * testsuite/libgomp.c/target-8.c: New test.
14597 * testsuite/libgomp.fortran/declare-simd-1.f90: Add notinbranch
14598 and inbranch clauses.
14599 * testsuite/libgomp.fortran/depend-3.f90: New test.
14600 * testsuite/libgomp.fortran/openmp_version-1.f: Adjust for new
14602 * testsuite/libgomp.fortran/openmp_version-2.f90: Likewise.
14603 * testsuite/libgomp.fortran/target1.f90: New test.
14604 * testsuite/libgomp.fortran/target2.f90: New test.
14605 * testsuite/libgomp.fortran/target3.f90: New test.
14606 * testsuite/libgomp.fortran/target4.f90: New test.
14607 * testsuite/libgomp.fortran/target5.f90: New test.
14608 * testsuite/libgomp.fortran/target6.f90: New test.
14609 * testsuite/libgomp.fortran/target7.f90: New test.
14611 2014-06-10 Jakub Jelinek <jakub@redhat.com>
14614 * testsuite/libgomp.fortran/allocatable9.f90: New test.
14615 * testsuite/libgomp.fortran/allocatable10.f90: New test.
14616 * testsuite/libgomp.fortran/allocatable11.f90: New test.
14617 * testsuite/libgomp.fortran/allocatable12.f90: New test.
14618 * testsuite/libgomp.fortran/alloc-comp-1.f90: New test.
14619 * testsuite/libgomp.fortran/alloc-comp-2.f90: New test.
14620 * testsuite/libgomp.fortran/alloc-comp-3.f90: New test.
14621 * testsuite/libgomp.fortran/associate1.f90: New test.
14622 * testsuite/libgomp.fortran/associate2.f90: New test.
14623 * testsuite/libgomp.fortran/procptr1.f90: New test.
14625 2014-06-06 Jakub Jelinek <jakub@redhat.com>
14627 * testsuite/libgomp.fortran/simd1.f90: New test.
14628 * testsuite/libgomp.fortran/udr1.f90: New test.
14629 * testsuite/libgomp.fortran/udr2.f90: New test.
14630 * testsuite/libgomp.fortran/udr3.f90: New test.
14631 * testsuite/libgomp.fortran/udr4.f90: New test.
14632 * testsuite/libgomp.fortran/udr5.f90: New test.
14633 * testsuite/libgomp.fortran/udr6.f90: New test.
14634 * testsuite/libgomp.fortran/udr7.f90: New test.
14635 * testsuite/libgomp.fortran/udr8.f90: New test.
14636 * testsuite/libgomp.fortran/udr9.f90: New test.
14637 * testsuite/libgomp.fortran/udr10.f90: New test.
14638 * testsuite/libgomp.fortran/udr11.f90: New test.
14640 2014-05-27 Uros Bizjak <ubizjak@gmail.com>
14642 * testsuite/libgomp.fortran/declare-simd-1.f90: Require
14643 vect_simd_clones effective target.
14644 * testsuite/libgomp.fortran/declare-simd-2.f90: Ditto.
14646 2014-05-21 Jakub Jelinek <jakub@redhat.com>
14648 PR middle-end/61252
14649 * testsuite/libgomp.c++/simd-9.C: New test.
14651 2014-05-18 Uros Bizjak <ubizjak@gmail.com>
14653 * libgomp.texi (Runitme Library Routines): Remove multiple @menu.
14654 (Environment Variables) Move OMP_PROC_BIND and OMP_STACKSIZE node
14655 texts according to their @menu entry positions.
14657 2014-05-11 Jakub Jelinek <jakub@redhat.com>
14659 * testsuite/libgomp.fortran/cancel-do-1.f90: New test.
14660 * testsuite/libgomp.fortran/cancel-do-2.f90: New test.
14661 * testsuite/libgomp.fortran/cancel-parallel-1.f90: New test.
14662 * testsuite/libgomp.fortran/cancel-parallel-3.f90: New test.
14663 * testsuite/libgomp.fortran/cancel-sections-1.f90: New test.
14664 * testsuite/libgomp.fortran/cancel-taskgroup-2.f90: New test.
14665 * testsuite/libgomp.fortran/declare-simd-1.f90: New test.
14666 * testsuite/libgomp.fortran/declare-simd-2.f90: New test.
14667 * testsuite/libgomp.fortran/declare-simd-3.f90: New test.
14668 * testsuite/libgomp.fortran/depend-1.f90: New test.
14669 * testsuite/libgomp.fortran/depend-2.f90: New test.
14670 * testsuite/libgomp.fortran/omp_atomic5.f90: New test.
14671 * testsuite/libgomp.fortran/simd1.f90: New test.
14672 * testsuite/libgomp.fortran/simd2.f90: New test.
14673 * testsuite/libgomp.fortran/simd3.f90: New test.
14674 * testsuite/libgomp.fortran/simd4.f90: New test.
14675 * testsuite/libgomp.fortran/taskgroup1.f90: New test.
14677 2014-05-02 Jakub Jelinek <jakub@redhat.com>
14679 * testsuite/libgomp.c/simd-10.c: New test.
14680 * testsuite/libgomp.c/simd-11.c: New test.
14681 * testsuite/libgomp.c/simd-12.c: New test.
14682 * testsuite/libgomp.c/simd-13.c: New test.
14684 2014-04-24 Jakub Jelinek <jakub@redhat.com>
14686 * testsuite/libgomp.c++/atomic-14.C: Allow seq_cst and
14687 atomic type clauses in any order and optional comma in between.
14688 * testsuite/libgomp.c++/atomic-15.C: Likewise.
14689 * testsuite/libgomp.c/atomic-17.c: Likewise.
14691 * testsuite/libgomp.c/simd-7.c: New test.
14692 * testsuite/libgomp.c/simd-8.c: New test.
14693 * testsuite/libgomp.c/simd-9.c: New test.
14694 * testsuite/libgomp.c/loop-16.c: New test.
14696 2014-04-02 Richard Henderson <rth@redhat.com>
14698 * config/linux/futex.h (futex_wait): Get error value from errno.
14699 (futex_wake): Likewise.
14701 2014-03-25 Jakub Jelinek <jakub@redhat.com>
14704 * testsuite/libgomp.c++/udr-11.C: New test.
14705 * testsuite/libgomp.c++/udr-12.C: New test.
14706 * testsuite/libgomp.c++/udr-13.C: New test.
14707 * testsuite/libgomp.c++/udr-14.C: New test.
14708 * testsuite/libgomp.c++/udr-15.C: New test.
14709 * testsuite/libgomp.c++/udr-16.C: New test.
14710 * testsuite/libgomp.c++/udr-17.C: New test.
14711 * testsuite/libgomp.c++/udr-18.C: New test.
14712 * testsuite/libgomp.c++/udr-19.C: New test.
14714 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
14716 Update copyright years
14718 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
14720 * hashtab.h: Use the standard form for the copyright notice.
14722 2014-01-02 Tobias Burnus <burnus@net-b.de>
14724 * libgomp.texi: Bump @copying's copyright year.
14726 2013-12-17 Andreas Tobler <andreast@gcc.gnu.org>
14728 * testsuite/libgomp.c/affinity-1.c: Remove alloca.h include. Replace
14729 alloca () with __builtin_alloca ().
14730 * testsuite/libgomp.c/icv-2.c: Add FreeBSD coverage.
14731 * testsuite/libgomp.c/lock-3.c: Likewise.
14732 * testsuite/libgomp.c/pr48591.c: Likewise.
14734 2013-12-17 Jakub Jelinek <jakub@redhat.com>
14737 * testsuite/libgomp.fortran/retval1.f90 (e5): Avoid non-shortcircuited
14740 2013-12-16 Jakub Jelinek <jakub@redhat.com>
14743 * testsuite/libgomp.c/pr58756.c: New test.
14745 2013-12-12 Jakub Jelinek <jakub@redhat.com>
14748 * testsuite/libgomp.fortran/crayptr2.f90: Add private (d) clause to
14751 2013-11-07 Thomas Schwinge <thomas@codesourcery.com>
14753 * testsuite/lib/libgomp.exp (libgomp_init): Don't add -fopenmp to
14755 * testsuite/libgomp.c++/c++.exp (ALWAYS_CFLAGS): Add -fopenmp.
14756 * testsuite/libgomp.c/c.exp (ALWAYS_CFLAGS): Likewise.
14757 * testsuite/libgomp.fortran/fortran.exp (ALWAYS_CFLAGS): Likewise.
14758 * testsuite/libgomp.graphite/graphite.exp (ALWAYS_CFLAGS):
14761 * libgomp_g.h: Include <stddef.h> for size_t.
14763 * libgomp.spec.in: Update comment about libgomp's dependencies.
14764 * configure.ac: Likewise.
14765 * configure: Regenerate.
14767 2013-10-16 Tobias Burnus <burnus@net-b.de>
14769 * libgomp.texi: (Runtime Library Routines): Update references for
14770 OpenMP 4.0. Add omp_get_cancellation, omp_get_default_device,
14771 omp_get_num_devices, omp_get_num_teams, omp_get_proc_bind,
14772 omp_get_team_num, omp_is_initial_device, omp_set_default_device.
14773 (Environment Variables): Update references for OpenMP 4.0. Add
14774 OMP_CANCELLATION, OMP_DEFAULT_DEVICE, OMP_PLACES.
14775 Move OMP_DISPLAY_ENV and OMP_PROC_BIND up to be in alphabetical
14778 2013-10-14 Jakub Jelinek <jakub@redhat.com>
14780 * env.c (parse_bind_var): Initialize value to avoid
14781 (false positive) warning.
14783 2013-10-12 Jakub Jelinek <jakub@redhat.com>
14786 * config/linux/proc.c (gomp_cpuset_popcount): Add unused attribute
14788 (gomp_init_num_threads): Move i variable declaration into
14789 #ifdef CPU_ALLOC_SIZE block.
14790 * config/linux/affinity.c (gomp_affinity_init_level): Test
14791 gomp_places_list_len == 0 rather than gomp_places_list == 0
14792 when checking for topology reading error.
14793 * team.c (gomp_team_start): Don't handle bind == omp_proc_bind_false.
14794 * env.c (parse_affinity): Add ignore argument, if true, don't populate
14795 gomp_places_list, only parse env var and always return false.
14796 (parse_places_var): Likewise. Don't check gomp_global_icv.bind_var.
14797 (initialize_env): Always parse OMP_PLACES and GOMP_CPU_AFFINITY env
14798 vars, default to OMP_PROC_BIND=true if OMP_PROC_BIND wasn't specified
14799 and either of these variables were parsed correctly into a places
14802 2013-10-11 Thomas Schwinge <thomas@codesourcery.com>
14803 Jakub Jelinek <jakub@redhat.com>
14805 * testsuite/libgomp.graphite/force-parallel-1.c: Expect 4 instead
14806 of 5 loopfn matches.
14807 * testsuite/libgomp.graphite/force-parallel-2.c: Likewise.
14808 * testsuite/libgomp.graphite/force-parallel-3.c: Likewise.
14809 * testsuite/libgomp.graphite/force-parallel-4.c: Likewise.
14810 * testsuite/libgomp.graphite/force-parallel-5.c: Likewise.
14811 * testsuite/libgomp.graphite/force-parallel-6.c: Likewise.
14812 * testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
14813 * testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
14814 * testsuite/libgomp.graphite/force-parallel-9.c: Likewise.
14816 2013-10-11 Thomas Schwinge <thomas@codesourcery.com>
14818 * Makefile.am (omp_lib.mod): Streamline rule.
14819 * Makefile.in: Regenerate.
14821 * libgomp.texi (Runtime Library Routines): C linkage, don't throw
14824 * testsuite/libgomp.c/lib-1.c (main): Add missing error check.
14825 * testsuite/libgomp.fortran/lib1.f90: Likewise.
14826 * testsuite/libgomp.fortran/lib2.f: Likewise.
14827 * testsuite/libgomp.fortran/lib3.f: Likewise.
14829 * configure.ac: Typo fix.
14830 * configure: Regenerate.
14832 * testsuite/libgomp.fortran/openmp_version-1.f: New file.
14833 * testsuite/libgomp.fortran/openmp_version-2.f90: Likewise.
14835 * omp.h.in: Don't touch the user's namespace.
14837 2013-10-11 Jakub Jelinek <jakub@redhat.com>
14838 Tobias Burnus <burnus@net-b.de>
14839 Richard Henderson <rth@redhat.com>
14841 * target.c: New file.
14842 * Makefile.am (libgomp_la_SOURCES): Add target.c.
14843 * Makefile.in: Regenerated.
14844 * libgomp_g.h (GOMP_task): Add depend argument.
14845 (GOMP_barrier_cancel, GOMP_loop_end_cancel,
14846 GOMP_sections_end_cancel, GOMP_target, GOMP_target_data,
14847 GOMP_target_end_data, GOMP_target_update, GOMP_teams,
14848 GOMP_parallel_loop_static, GOMP_parallel_loop_dynamic,
14849 GOMP_parallel_loop_guided, GOMP_parallel_loop_runtime,
14850 GOMP_parallel, GOMP_cancel, GOMP_cancellation_point,
14851 GOMP_taskgroup_start, GOMP_taskgroup_end,
14852 GOMP_parallel_sections): New prototypes.
14853 * fortran.c (omp_is_initial_device): Add ialias_redirect.
14854 (omp_is_initial_device_): New function.
14855 (ULP, STR1, STR2, ialias_redirect): Removed.
14856 (omp_get_cancellation_, omp_get_proc_bind_, omp_set_default_device_,
14857 omp_set_default_device_8_, omp_get_default_device_,
14858 omp_get_num_devices_, omp_get_num_teams_, omp_get_team_num_): New
14860 * libgomp.map (GOMP_barrier_cancel, GOMP_loop_end_cancel,
14861 GOMP_sections_end_cancel, GOMP_target, GOMP_target_data,
14862 GOMP_target_end_data, GOMP_target_update, GOMP_teams): Export
14864 (omp_is_initial_device, omp_is_initial_device_, omp_get_cancellation,
14865 omp_get_cancellation_, omp_get_proc_bind, omp_get_proc_bind_,
14866 omp_set_default_device, omp_set_default_device_,
14867 omp_set_default_device_8_, omp_get_default_device,
14868 omp_get_default_device_, omp_get_num_devices, omp_get_num_devices_,
14869 omp_get_num_teams, omp_get_num_teams_, omp_get_team_num,
14870 omp_get_team_num_): Export @@OMP_4.0.
14871 * team.c (struct gomp_thread_start_data): Add place field.
14872 (gomp_thread_start): Clear thr->thread_pool and
14873 thr->task before returning. Use gomp_team_barrier_wait_final
14874 instead of gomp_team_barrier_wait. Initialize thr->place.
14875 (gomp_new_team): Initialize work_shares_to_free, work_share_cancelled,
14876 team_cancelled and task_queued_count fields.
14877 (gomp_free_pool_helper): Clear thr->thread_pool and thr->task
14878 before calling pthread_exit.
14879 (gomp_free_thread): No longer static. Use
14880 gomp_managed_threads_lock instead of gomp_remaining_threads_lock.
14881 (gomp_team_start): Add flags argument. Set
14882 thr->thread_pool->threads_busy to nthreads immediately after creating
14883 new pool. Use gomp_managed_threads_lock instead of
14884 gomp_remaining_threads_lock. Handle OpenMP 4.0 affinity.
14885 (gomp_team_end): Use gomp_managed_threads_lock instead of
14886 gomp_remaining_threads_lock. Use gomp_team_barrier_wait_final instead
14887 of gomp_team_barrier_wait. If team->team_cancelled, call
14888 gomp_fini_workshare on ws chain starting at team->work_shares_to_free
14889 rather than thr->ts.work_share.
14890 (initialize_team): Don't call gomp_sem_init here.
14891 * sections.c (GOMP_parallel_sections_start): Adjust gomp_team_start
14893 (GOMP_parallel_sections, GOMP_sections_end_cancel): New functions.
14894 * env.c (gomp_global_icv): Add default_device_var, target_data and
14895 bind_var initializers.
14896 (gomp_cpu_affinity, gomp_cpu_affinity_len): Remove.
14897 (gomp_bind_var_list, gomp_bind_var_list_len, gomp_places_list,
14898 gomp_places_list_len): New variables.
14899 (parse_bind_var, parse_one_place, parse_places_var): New functions.
14900 (parse_affinity): Rewritten to construct OMP_PLACES list with unit
14902 (gomp_cancel_var): New global variable.
14903 (parse_int): New function.
14904 (handle_omp_display_env): New function.
14905 (initialize_env): Use it. Initialize default_device_var.
14906 Parse OMP_CANCELLATION env var. Use parse_bind_var to parse
14907 OMP_PROC_BIND instead of parse_boolean. Use parse_places_var for
14908 OMP_PLACES parsing. Don't call parse_affinity if OMP_PLACES has
14909 been successfully parsed (and call gomp_init_affinity in that case).
14910 (omp_get_cancellation, omp_get_proc_bind, omp_set_default_device,
14911 omp_get_default_device, omp_get_num_devices, omp_get_num_teams,
14912 omp_get_team_num, omp_is_initial_device): New functions.
14913 * libgomp.h: Include stdlib.h.
14914 (ialias_ulp, ialias_str1, ialias_str2, ialias_redirect, ialias_call):
14916 (struct target_mem_desc): Forward declare.
14917 (struct gomp_task_icv): Add default_device_var, target_data, bind_var
14918 and thread_limit_var fields.
14919 (gomp_get_num_devices): New prototype.
14920 (gomp_cancel_var): New extern decl.
14921 (struct gomp_team): Add work_shares_to_free, work_share_cancelled,
14922 team_cancelled and task_queued_count fields. Add comments about
14923 task_{,queued_,running_}count.
14924 (gomp_cancel_kind): New enum.
14925 (gomp_work_share_end_cancel): New prototype.
14926 (struct gomp_task): Add next_taskgroup, prev_taskgroup, taskgroup,
14927 copy_ctors_done, dependers, depend_hash, depend_count, num_dependees
14929 (struct gomp_taskgroup): New type.
14930 (struct gomp_task_depend_entry,
14931 struct gomp_dependers_vec): New types.
14932 (gomp_finish_task): Free depend_hash if non-NULL.
14933 (struct gomp_team_state): Add place_partition_off
14934 and place_partition_len fields.
14935 (gomp_bind_var_list, gomp_bind_var_list_len, gomp_places_list,
14936 gomp_places_list_len): New extern decls.
14937 (struct gomp_thread): Add place field.
14938 (gomp_cpu_affinity, gomp_cpu_affinity_len): Remove.
14939 (gomp_init_thread_affinity): Add place argument.
14940 (gomp_affinity_alloc, gomp_affinity_init_place, gomp_affinity_add_cpus,
14941 gomp_affinity_remove_cpu, gomp_affinity_copy_place,
14942 gomp_affinity_same_place, gomp_affinity_finalize_place_list,
14943 gomp_affinity_init_level, gomp_affinity_print_place): New
14945 (gomp_team_start): Add flags argument.
14946 (gomp_thread_limit_var, gomp_remaining_threads_count,
14947 gomp_remaining_threads_lock): Remove.
14948 (gomp_managed_threads_lock): New variable.
14949 (struct gomp_thread_pool): Add threads_busy field.
14950 (gomp_free_thread): New prototype.
14951 * task.c: Include hashtab.h.
14952 (hash_entry_type): New typedef.
14953 (htab_alloc, htab_free, htab_hash, htab_eq): New inlines.
14954 (gomp_init_task): Clear dependers, depend_hash, depend_count,
14955 copy_ctors_done and taskgroup fields.
14956 (GOMP_task): Add depend argument, handle depend clauses. If
14957 gomp_team_barrier_cancelled or if it's taskgroup has been
14958 cancelled, don't queue or start new tasks. Set copy_ctors_done
14959 field if needed. Initialize taskgroup field. If copy_ctors_done
14960 and already cancelled, don't discard the task. If taskgroup is
14961 non-NULL, enqueue the task into taskgroup queue. Increment
14962 num_children field in taskgroup. Increment task_queued_count.
14963 (gomp_task_run_pre, gomp_task_run_post_remove_parent,
14964 gomp_task_run_post_remove_taskgroup): New inline functions.
14965 (gomp_task_run_post_handle_depend_hash,
14966 gomp_task_run_post_handle_dependers,
14967 gomp_task_run_post_handle_depend): New functions.
14968 (GOMP_taskwait): Use them. If more than one new tasks
14969 have been queued, wake other threads if needed.
14970 (gomp_barrier_handle_tasks): Likewise. If
14971 gomp_team_barrier_cancelled, don't start any new tasks, just free
14973 (GOMP_taskgroup_start, GOMP_taskgroup_end): New functions.
14975 (omp_proc_bind_kind, omp_proc_bind_false,
14976 omp_proc_bind_true, omp_proc_bind_master, omp_proc_bind_close,
14977 omp_proc_bind_spread): New params.
14978 (omp_get_cancellation, omp_get_proc_bind, omp_set_default_device,
14979 omp_get_default_device, omp_get_num_devices, omp_get_num_teams,
14980 omp_get_team_num, omp_is_initial_device): New interfaces.
14981 (omp_get_dynamic, omp_get_nested, omp_in_parallel,
14982 omp_get_max_threads, omp_get_num_procs, omp_get_num_threads,
14983 omp_get_thread_num, omp_get_thread_limit, omp_set_max_active_levels,
14984 omp_get_max_active_levels, omp_get_level, omp_get_ancestor_thread_num,
14985 omp_get_team_size, omp_get_active_level, omp_in_final): Remove
14986 useless use omp_lib_kinds.
14987 * omp.h.in (omp_proc_bind_t): New typedef.
14988 (omp_get_cancellation, omp_get_proc_bind, omp_set_default_device,
14989 omp_get_default_device, omp_get_num_devices, omp_get_num_teams,
14990 omp_get_team_num, omp_is_initial_device): New prototypes.
14991 * loop.c (gomp_parallel_loop_start): Add flags argument, pass it
14992 through to gomp_team_start.
14993 (GOMP_parallel_loop_static_start, GOMP_parallel_loop_dynamic_start,
14994 GOMP_parallel_loop_guided_start, GOMP_parallel_loop_runtime_start):
14995 Adjust gomp_parallel_loop_start callers.
14996 (GOMP_parallel_loop_static, GOMP_parallel_loop_dynamic,
14997 GOMP_parallel_loop_guided, GOMP_parallel_loop_runtime,
14998 GOMP_loop_end_cancel): New functions.
14999 (GOMP_parallel_end): Add ialias_redirect.
15000 * hashtab.h: New file.
15001 * libgomp.texi (Environment Variables): Minor cleanup,
15002 update section refs to OpenMP 4.0rc2.
15003 (OMP_DISPLAY_ENV, GOMP_SPINCOUNT): Document these
15004 environment variables.
15005 * work.c (gomp_work_share_end, gomp_work_share_end_nowait): Set
15006 team->work_shares_to_free to thr->ts.work_share before calling
15008 (gomp_work_share_end_cancel): New function.
15009 * config/linux/proc.c: Include errno.h.
15010 (gomp_get_cpuset_size, gomp_cpuset_size, gomp_cpusetp): New variables.
15011 (gomp_cpuset_popcount): Add cpusetsize argument, use it instead of
15012 sizeof (cpu_set_t) to determine number of iterations. Fix up check
15013 extern decl. Use CPU_COUNT_S if available, or CPU_COUNT if
15014 gomp_cpuset_size is sizeof (cpu_set_t).
15015 (gomp_init_num_threads): Initialize gomp_cpuset_size,
15016 gomp_get_cpuset_size and gomp_cpusetp here, use gomp_cpusetp instead
15017 of &cpuset and pass gomp_cpuset_size instead of sizeof (cpu_set_t)
15018 to pthread_getaffinity_np. Free and clear gomp_cpusetp if it didn't
15019 contain any logical CPUs.
15020 (get_num_procs): Don't call pthread_getaffinity_np if gomp_cpusetp
15021 is NULL. Use gomp_cpusetp instead of &cpuset and pass
15022 gomp_get_cpuset_size instead of sizeof (cpu_set_t) to
15023 pthread_getaffinity_np. Check gomp_places_list instead of
15024 gomp_cpu_affinity. Adjust gomp_cpuset_popcount caller.
15025 * config/linux/bar.c (gomp_barrier_wait_end,
15026 gomp_barrier_wait_last): Use BAR_* defines.
15027 (gomp_team_barrier_wait_end): Likewise. Clear BAR_CANCELLED
15028 from state where needed. Set work_share_cancelled to 0 on last
15030 (gomp_team_barrier_wait_final, gomp_team_barrier_wait_cancel_end,
15031 gomp_team_barrier_wait_cancel, gomp_team_barrier_cancel): New
15033 * config/linux/proc.h (gomp_cpuset_popcount): Add attribute_hidden.
15034 Add cpusetsize argument.
15035 (gomp_cpuset_size, gomp_cpusetp): Declare.
15036 * config/linux/affinity.c: Include errno.h, stdio.h and string.h.
15037 (affinity_counter): Remove.
15038 (CPU_ISSET_S, CPU_ZERO_S, CPU_SET_S, CPU_CLR_S): Define
15039 if CPU_ALLOC_SIZE isn't defined.
15040 (gomp_init_affinity): Rewritten, if gomp_places_list is NULL, try
15041 silently create OMP_PLACES=threads, if it is non-NULL afterwards,
15042 bind current thread to the first place.
15043 (gomp_init_thread_affinity): Rewritten. Add place argument, just
15044 pthread_setaffinity_np to gomp_places_list[place].
15045 (gomp_affinity_alloc, gomp_affinity_init_place, gomp_affinity_add_cpus,
15046 gomp_affinity_remove_cpu, gomp_affinity_copy_place,
15047 gomp_affinity_same_place, gomp_affinity_finalize_place_list,
15048 gomp_affinity_init_level, gomp_affinity_print_place): New functions.
15049 * config/linux/bar.h (BAR_TASK_PENDING, BAR_WAS_LAST,
15050 BAR_WAITING_FOR_TASK, BAR_INCR, BAR_CANCELLED): Define.
15051 (gomp_barrier_t): Add awaited_final field.
15052 (gomp_barrier_init): Initialize awaited_final field.
15053 (gomp_team_barrier_wait_final, gomp_team_barrier_wait_cancel,
15054 gomp_team_barrier_wait_cancel_end, gomp_team_barrier_cancel): New
15056 (gomp_barrier_wait_start): Preserve BAR_CANCELLED bit. Use BAR_*
15058 (gomp_barrier_wait_cancel_start, gomp_team_barrier_wait_final_start,
15059 gomp_team_barrier_cancelled): New inline functions.
15060 (gomp_barrier_last_thread,
15061 gomp_team_barrier_set_task_pending,
15062 gomp_team_barrier_clear_task_pending,
15063 gomp_team_barrier_set_waiting_for_tasks,
15064 gomp_team_barrier_waiting_for_tasks,
15065 gomp_team_barrier_done): Use BAR_* defines.
15066 * config/posix/bar.c (gomp_barrier_init): Clear cancellable field.
15067 (gomp_barrier_wait_end): Use BAR_* defines.
15068 (gomp_team_barrier_wait_end): Clear BAR_CANCELLED from state.
15069 Set work_share_cancelled to 0 on last thread, use __atomic_load_n.
15071 (gomp_team_barrier_wait_cancel_end, gomp_team_barrier_wait_cancel,
15072 gomp_team_barrier_cancel): New functions.
15073 * config/posix/affinity.c (gomp_init_thread_affinity): Add place
15075 (gomp_affinity_alloc, gomp_affinity_init_place, gomp_affinity_add_cpus,
15076 gomp_affinity_remove_cpu, gomp_affinity_copy_place,
15077 gomp_affinity_same_place, gomp_affinity_finalize_place_list,
15078 gomp_affinity_init_level, gomp_affinity_print_place): New stubs.
15079 * config/posix/bar.h (BAR_TASK_PENDING, BAR_WAS_LAST,
15080 BAR_WAITING_FOR_TASK, BAR_INCR, BAR_CANCELLED): Define.
15081 (gomp_barrier_t): Add cancellable field.
15082 (gomp_team_barrier_wait_cancel, gomp_team_barrier_wait_cancel_end,
15083 gomp_team_barrier_cancel): New prototypes.
15084 (gomp_barrier_wait_start): Preserve BAR_CANCELLED bit.
15085 (gomp_barrier_wait_cancel_start, gomp_team_barrier_wait_final,
15086 gomp_team_barrier_cancelled): New inline functions.
15087 (gomp_barrier_wait_start, gomp_barrier_last_thread,
15088 gomp_team_barrier_set_task_pending,
15089 gomp_team_barrier_clear_task_pending,
15090 gomp_team_barrier_set_waiting_for_tasks,
15091 gomp_team_barrier_waiting_for_tasks,
15092 gomp_team_barrier_done): Use BAR_* defines.
15093 * barrier.c (GOMP_barrier_cancel): New function.
15094 * omp_lib.h.in (omp_proc_bind_kind, omp_proc_bind_false,
15095 omp_proc_bind_true, omp_proc_bind_master, omp_proc_bind_close,
15096 omp_proc_bind_spread): New params.
15097 (omp_get_cancellation, omp_get_proc_bind, omp_set_default_device,
15098 omp_get_default_device, omp_get_num_devices, omp_get_num_teams,
15099 omp_get_team_num, omp_is_initial_device): New externals.
15100 * parallel.c (GOMP_parallel, GOMP_cancel, GOMP_cancellation_point):
15102 (gomp_resolve_num_threads): Adjust for thread_limit now being in
15103 icv->thread_limit_var. Use UINT_MAX instead of ULONG_MAX as
15104 infinity. If not nested, just return minimum of max_num_threads
15105 and icv->thread_limit_var and if thr->thread_pool, set threads_busy
15106 to the returned value. Otherwise, don't update atomically
15107 gomp_remaining_threads_count, but instead thr->thread_pool->threads_busy.
15108 (GOMP_parallel_end): Adjust for thread_limit now being in
15109 icv->thread_limit_var. Use UINT_MAX instead of ULONG_MAX as
15110 infinity. Adjust threads_busy in the pool rather than
15111 gomp_remaining_threads_count. Remember team->nthreads and call
15112 gomp_team_end before adjusting threads_busy, if not nested
15113 afterwards, just set it to 1 non-atomically. Add ialias.
15114 (GOMP_parallel_start): Adjust gomp_team_start caller.
15115 * testsuite/libgomp.c/atomic-14.c: Add parens to make it valid.
15116 * testsuite/libgomp.c/affinity-1.c: New test.
15117 * testsuite/libgomp.c/atomic-15.c: New test.
15118 * testsuite/libgomp.c/atomic-16.c: New test.
15119 * testsuite/libgomp.c/atomic-17.c: New test.
15120 * testsuite/libgomp.c/cancel-for-1.c: New test.
15121 * testsuite/libgomp.c/cancel-for-2.c: New test.
15122 * testsuite/libgomp.c/cancel-parallel-1.c: New test.
15123 * testsuite/libgomp.c/cancel-parallel-2.c: New test.
15124 * testsuite/libgomp.c/cancel-parallel-3.c: New test.
15125 * testsuite/libgomp.c/cancel-sections-1.c: New test.
15126 * testsuite/libgomp.c/cancel-taskgroup-1.c: New test.
15127 * testsuite/libgomp.c/cancel-taskgroup-2.c: New test.
15128 * testsuite/libgomp.c/depend-1.c: New test.
15129 * testsuite/libgomp.c/depend-2.c: New test.
15130 * testsuite/libgomp.c/depend-3.c: New test.
15131 * testsuite/libgomp.c/depend-4.c: New test.
15132 * testsuite/libgomp.c/for-1.c: New test.
15133 * testsuite/libgomp.c/for-1.h: New file.
15134 * testsuite/libgomp.c/for-2.c: New test.
15135 * testsuite/libgomp.c/for-2.h: New file.
15136 * testsuite/libgomp.c/for-3.c: New test.
15137 * testsuite/libgomp.c/pr58392.c: New test.
15138 * testsuite/libgomp.c/simd-1.c: New test.
15139 * testsuite/libgomp.c/simd-2.c: New test.
15140 * testsuite/libgomp.c/simd-3.c: New test.
15141 * testsuite/libgomp.c/simd-4.c: New test.
15142 * testsuite/libgomp.c/simd-5.c: New test.
15143 * testsuite/libgomp.c/simd-6.c: New test.
15144 * testsuite/libgomp.c/target-1.c: New test.
15145 * testsuite/libgomp.c/target-2.c: New test.
15146 * testsuite/libgomp.c/target-3.c: New test.
15147 * testsuite/libgomp.c/target-4.c: New test.
15148 * testsuite/libgomp.c/target-5.c: New test.
15149 * testsuite/libgomp.c/target-6.c: New test.
15150 * testsuite/libgomp.c/target-7.c: New test.
15151 * testsuite/libgomp.c/taskgroup-1.c: New test.
15152 * testsuite/libgomp.c/thread-limit-1.c: New test.
15153 * testsuite/libgomp.c/thread-limit-2.c: New test.
15154 * testsuite/libgomp.c/thread-limit-3.c: New test.
15155 * testsuite/libgomp.c/udr-1.c: New test.
15156 * testsuite/libgomp.c/udr-2.c: New test.
15157 * testsuite/libgomp.c/udr-3.c: New test.
15158 * testsuite/libgomp.c++/affinity-1.C: New test.
15159 * testsuite/libgomp.c++/atomic-10.C: New test.
15160 * testsuite/libgomp.c++/atomic-11.C: New test.
15161 * testsuite/libgomp.c++/atomic-12.C: New test.
15162 * testsuite/libgomp.c++/atomic-13.C: New test.
15163 * testsuite/libgomp.c++/atomic-14.C: New test.
15164 * testsuite/libgomp.c++/atomic-15.C: New test.
15165 * testsuite/libgomp.c++/cancel-for-1.C: New test.
15166 * testsuite/libgomp.c++/cancel-for-2.C: New test.
15167 * testsuite/libgomp.c++/cancel-parallel-1.C: New test.
15168 * testsuite/libgomp.c++/cancel-parallel-2.C: New test.
15169 * testsuite/libgomp.c++/cancel-parallel-3.C: New test.
15170 * testsuite/libgomp.c++/cancel-sections-1.C: New test.
15171 * testsuite/libgomp.c++/cancel-taskgroup-1.C: New test.
15172 * testsuite/libgomp.c++/cancel-taskgroup-2.C: New test.
15173 * testsuite/libgomp.c++/cancel-taskgroup-3.C: New test.
15174 * testsuite/libgomp.c++/cancel-test.h: New file.
15175 * testsuite/libgomp.c++/for-9.C: New test.
15176 * testsuite/libgomp.c++/for-10.C: New test.
15177 * testsuite/libgomp.c++/for-11.C: New test.
15178 * testsuite/libgomp.c++/simd-1.C: New test.
15179 * testsuite/libgomp.c++/simd-2.C: New test.
15180 * testsuite/libgomp.c++/simd-3.C: New test.
15181 * testsuite/libgomp.c++/simd-4.C: New test.
15182 * testsuite/libgomp.c++/simd-5.C: New test.
15183 * testsuite/libgomp.c++/simd-6.C: New test.
15184 * testsuite/libgomp.c++/simd-7.C: New test.
15185 * testsuite/libgomp.c++/simd-8.C: New test.
15186 * testsuite/libgomp.c++/target-1.C: New test.
15187 * testsuite/libgomp.c++/target-2.C: New test.
15188 * testsuite/libgomp.c++/target-2-aux.cc: New file.
15189 * testsuite/libgomp.c++/target-3.C: New test.
15190 * testsuite/libgomp.c++/taskgroup-1.C: New test.
15191 * testsuite/libgomp.c++/udr-1.C: New test.
15192 * testsuite/libgomp.c++/udr-2.C: New test.
15193 * testsuite/libgomp.c++/udr-3.C: New test.
15194 * testsuite/libgomp.c++/udr-4.C: New test.
15195 * testsuite/libgomp.c++/udr-5.C: New test.
15196 * testsuite/libgomp.c++/udr-6.C: New test.
15197 * testsuite/libgomp.c++/udr-7.C: New test.
15198 * testsuite/libgomp.c++/udr-8.C: New test.
15199 * testsuite/libgomp.c++/udr-9.C: New test.
15201 2013-09-20 Jakub Jelinek <jakub@redhat.com>
15204 * testsuite/lib/libgomp.exp: Add -fdiagnostics-color=never to
15207 2013-09-20 Alan Modra <amodra@gmail.com>
15209 * configure: Regenerate.
15211 2013-09-19 Jakub Jelinek <jakub@redhat.com>
15213 * testsuite/libgomp.c/sections-2.c: New test.
15215 2013-06-28 Marcus Shawcroft <marcus.shawcroft@arm.com>
15217 * testsuite/libgomp.fortran/strassen.f90:
15218 Add dg-skip-if aarch64_tiny.
15220 2013-06-20 Iain Sandoe <iain@codesourcery.com>
15221 Cesar Philippidis <cesar@codesourcery.com>
15223 * testsuite/lib/libgomp.exp: Reorder lib loads into dependency order.
15224 Do not load_gcc_lib gcc-dg.exp and add a comment as to why.
15225 * testsuite/libgomp.c/c.exp: load_gcc_lib gcc-dg.exp.
15226 * testsuite/libgomp.fortran/fortran.exp: Likewise.
15227 * testsuite/libgomp.graphite/graphite.exp: Likewise.
15228 * testsuite/libgomp.c++/c++.exp: load_gcc_lib gcc-dg.exp.
15229 Use dg-runtest rather than gfortran-dg-runtest.
15231 2013-06-10 Thomas Schwinge <thomas@codesourcery.com>
15233 * testsuite/libgomp.c/icv-2.c: Extend current handling of
15234 Linux-based x86 systems to cover all GNU systems.
15235 * testsuite/libgomp.c/lock-3.c: Likewise.
15236 * testsuite/libgomp.c/pr48591.c: Likewise.
15238 2013-06-06 Thomas Schwinge <thomas@codesourcery.com>
15240 * configure.tgt (XCFLAGS): Add -ftls-model=initial-exec for
15241 GNU/Hurd, as done for Linux-based systems.
15243 * config/posix/ptrlock.h: Fix comment.
15245 2013-05-27 Tobias Burnus <burnus@net-b.de>
15248 * libgomp.texi (omp_set_dynamic, omp_set_nested, omp_set_nested,
15249 omp_set_num_threads, omp_init_lock, omp_set_lock, omp_test_lock,
15250 omp_unset_lock, omp_destroy_lock, omp_init_nest_lock,
15251 omp_set_nest_lock, omp_test_nest_lock, omp_unset_nest_lock,
15252 omp_destroy_nest_lock): Correct arguments to match the one in
15254 * omp_lib.f90.in (omp_init_lock, omp_init_nest_lock, omp_destroy_lock
15255 omp_destroy_nest_lock, omp_set_lock, omp_set_nest_lock, omp_unset_lock,
15256 omp_unset_nest_lock, omp_set_dynamic, omp_set_nested,
15257 omp_set_num_threads, omp_test_lock, omp_test_nest_lock): Ditto.
15259 2013-05-16 Jakub Jelinek <jakub@redhat.com>
15261 * testsuite/libgomp.c/loop-13.c: New test.
15262 * testsuite/libgomp.c/loop-14.c: New test.
15263 * testsuite/libgomp.c/loop-15.c: New test.
15264 * testsuite/libgomp.c++/loop-13.C: New test.
15265 * testsuite/libgomp.c++/loop-14.C: New test.
15266 * testsuite/libgomp.c++/loop-15.C: New test.
15268 2013-02-06 Jakub Jelinek <jakub@redhat.com>
15270 PR middle-end/56217
15271 * testsuite/libgomp.c++/pr56217.C: New test.
15273 2013-02-01 Alan Modra <amodra@gmail.com>
15275 * task.c (GOMP_task, GOMP_taskwait): Comment.
15277 2013-01-31 Dmitry Vyukov <dvyukov@gcc.gnu.org>
15278 Joost VandeVondele <Joost.VandeVondele@mat.ethz.ch>
15281 * config/linux/wait.h (do_spin): Use atomic load for addr.
15282 * config/linux/ptrlock.c (gomp_ptrlock_get_slow): Use atomic
15283 for intptr and ptrlock.
15284 * config/linux/ptrlock.h (gomp_ptrlock_get): Use atomic load
15287 2013-01-22 Alan Modra <amodra@gmail.com>
15291 * task.c (GOMP_task): Revert 2011-12-09 change.
15292 (GOMP_taskwait): Likewise. Instead use atomic load with acquire
15293 barrier to read task->children..
15294 (gomp_barrier_handle_tasks): ..and matching atomic store with
15295 release barrier here when setting parent->children to NULL.
15297 2013-01-16 Jakub Jelinek <jakub@redhat.com>
15298 Tobias Burnus <burnus@net-b.de>
15301 * testsuite/libgomp.fortran/fortran.exp: Use
15302 -fintrinsic-modules-path= instead of
15303 -fintrinsic-modules-path.
15305 2013-01-14 Richard Sandiford <rdsandiford@googlemail.com>
15307 Update copyright years.
15309 2012-12-19 Tobias Burnus <burnus@net-b.de>
15311 * testsuite/libgomp.fortran/fortran.exp: Set
15312 -fintrinsic-modules-path.
15314 2012-12-19 Tobias Burnus <burnus@net-b.de>
15316 * testsuite/libgomp.fortran/use_intrinsic_1.f90: New; moved
15317 from gcc/testsuite/gfortran.dg/gomp/use_intrinsic_1.f90.
15319 2012-11-21 Jakub Jelinek <jakub@redhat.com>
15322 * team.c (gomp_free_thread): Decrease gomp_managed_threads
15323 if pool had any threads_used.
15325 2012-11-07 Jack Howarth <howarth@bromo.med.uc.edu>
15327 * testsuite/libgomp.c++/pr24455.C: Use
15328 -Wl,-undefined,dynamic_lookup on darwin.
15330 2012-11-07 David Edelsohn <dje.gcc@gmail.com>
15332 * testsuite/libgomp.c++/pr24455.C: Use -Wl,-G on AIX.
15334 2012-10-24 Dominique d'Humieres <dominiq@lps.ens.fr>
15336 * testsuite/libgomp.graphite/force-parallel-6.c: Adjust the loops.
15338 2012-10-23 Ian Bolton <ian.bolton@arm.com>
15339 Jim MacArthur <jim.macarthur@arm.com>
15340 Marcus Shawcroft <marcus.shawcroft@arm.com>
15341 Nigel Stephens <nigel.stephens@arm.com>
15342 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
15343 Richard Earnshaw <rearnsha@arm.com>
15344 Sofiane Naci <sofiane.naci@arm.com>
15345 Stephen Thomas <stephen.thomas@arm.com>
15346 Tejas Belagod <tejas.belagod@arm.com>
15347 Yufeng Zhang <yufeng.zhang@arm.com>
15349 * configure.tgt: Add AArch64.
15351 2012-10-04 Jason Merrill <jason@redhat.com>
15353 * testsuite/libgomp.c++/tls-init1.C: New.
15355 2012-09-14 David Edelsohn <dje.gcc@gmail.com>
15357 * configure: Regenerated.
15359 2012-08-29 Chung-Lin Tang <cltang@codesourcery.com>
15361 * config/linux/mips/futex.h (sys_futex0): Change to static
15362 function with noinline, nomips16 attributes under MIPS16. Adjust
15363 asm statement to place 'li v0,SYS_futex' immediately before
15366 2012-07-04 Sandra Loosemore <sandra@codesourcery.com>
15368 * libgomp.texi (Library Index): Renamed from "Index" to prevent
15369 conflict with index.html on case-insensitive file systems.
15371 2012-07-03 Uros Bizjak <ubizjak@gmail.com>
15373 * config/linux/x86/futex.h (cpu_relax): Use __builtin_ia32_pause.
15374 * testsuite/libgomp.c/sort-1.c (busy_wait): Ditto.
15376 2012-07-02 Richard Guenther <rguenther@suse.de>
15377 Michael Matz <matz@suse.de>
15378 Tobias Grosser <tobias@grosser.es>
15379 Sebastian Pop <sebpop@gmail.com>
15381 * testsuite/libgomp.graphite/force-parallel-4.c: Adjust.
15382 * testsuite/libgomp.graphite/force-parallel-5.c: Likewise.
15383 * testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
15384 * testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
15386 2012-06-28 Andreas Schwab <schwab@linux-m68k.org>
15388 * libgomp.texi: Include gpl_v3.texi instead of gpl.texi.
15390 2012-06-22 Richard Guenther <rguenther@suse.de>
15392 Merge from graphite branch
15393 2012-01-13 Tobias Grosser <tobias@grosser.es>
15395 * testsuite/libgomp.graphite/force-parallel-1.c: Adjust.
15396 * testsuite/libgomp.graphite/force-parallel-2.c: Likewise.
15398 2012-06-07 Jakub Jelinek <jakub@redhat.com>
15400 PR middle-end/53580
15401 * testsuite/libgomp.c/pr26943-2.c: Remove #pragma omp barrier,
15402 use GOMP_barrier () call instead.
15403 * testsuite/libgomp.c/pr26943-3.c: Likewise.
15404 * testsuite/libgomp.c/pr26943-4.c: Likewise.
15405 * testsuite/libgomp.fortran/vla4.f90: Remove !$omp barrier,
15406 call GOMP_barrier instead.
15407 * testsuite/libgomp.fortran/vla5.f90: Likewise.
15409 2012-06-06 Jakub Jelinek <jakub@redhat.com>
15412 * config/linux/lock.c (gomp_init_nest_lock_25): Fix up last
15413 argument to memset call.
15415 2012-05-16 H.J. Lu <hongjiu.lu@intel.com>
15417 * configure: Regenerated.
15419 2012-04-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
15421 * testsuite/lib/libgomp.exp: Add -fno-diagnostics-show-caret.
15423 2012-03-31 H.J. Lu <hongjiu.lu@intel.com>
15426 * configure.tgt (i[456]86-*-linux*): Handle -mx32 like -m64.
15428 2012-03-22 Jakub Jelinek <jakub@redhat.com>
15430 PR middle-end/52547
15431 * testsuite/libgomp.c/pr52547.c: New test.
15433 2012-03-16 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
15435 * testsuite/lib/libgomp.exp: load fortran-modules.exp
15437 2012-03-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15439 * configure.tgt (mips-sgi-irix6*): Remove.
15441 2012-03-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15443 * configure.tgt (alpha*-dec-osf*): Remove.
15445 * config/osf/sem.h: Remove.
15446 * config/posix/lock.c (_XOPEN_SOURCE): Define unconditionally.
15448 2012-02-29 Eric Botcazou <ebotcazou@adacore.com>
15450 * config/linux/sparc/futex.h (cpu_relax): Read from CC register.
15452 2012-02-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15455 * acinclude.m4 (LIBGOMP_ENABLE_SYMVERS): Remove symvers_renaming.
15456 Remove ENABLE_SYMVERS_SOL2.
15457 * configure: Regenerate.
15458 * Makefile.am [LIBGOMP_BUILD_VERSIONED_SHLIB] (comma): New variable.
15459 (PREPROCESS): New variable.
15460 (libgomp.ver): New target.
15461 [LIBGOMP_BUILD_VERSIONED_SHLIB &&
15462 LIBGOMP_BUILD_VERSIONED_SHLIB_GNU]: Remove
15463 LIBGOMP_BUILD_VERSIONED_SHLIB_SOL2 handling.
15465 [LIBGOMP_BUILD_VERSIONED_SHLIB_SUN]: Use libgomp.ver, libgomp.ver-sun.
15466 * Makefile.in: Regenerate.
15468 2012-02-14 Walter Lee <walt@tilera.com>
15470 * configure.tgt: Handle tilegx and tilepro.
15471 * config/linux/tile/futex.h: New file.
15473 2012-02-08 Richard Guenther <rguenther@suse.de>
15475 PR tree-optimization/46886
15476 * testsuite/libgomp.c/pr46886.c: New testcase.
15478 2012-01-25 Matthias Klose <doko@ubuntu.com>
15480 * config/linux/arm: Remove empty directory.
15481 * configure.tgt (config_path): Remove linux-arm for arm*-*-linux*.
15483 2011-12-09 Alan Modra <amodra@gmail.com>
15486 * task.c (GOMP_taskwait): Don't access task->children outside of
15487 task_lock mutex region.
15488 (GOMP_task): Likewise.
15490 2011-12-06 Jakub Jelinek <jakub@redhat.com>
15493 * testsuite/libgomp.graphite/force-parallel-1.c: Move large arrays
15495 * testsuite/libgomp.graphite/force-parallel-3.c: Likewise.
15496 * testsuite/libgomp.graphite/force-parallel-6.c: Likewise.
15497 * testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
15498 * testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
15499 * testsuite/libgomp.graphite/force-parallel-9.c: Likewise.
15501 2011-12-02 Alan Modra <amodra@gmail.com>
15503 * config/linux/affinity.c: Use atomic rather than sync builtin.
15504 * config/linux/lock.c: Likewise.
15505 * config/linux/ptrlock.h: Likewise.
15506 * config/linux/ptrlock.c: Likewise.
15507 * config/linux/ptrlock.h (gomp_ptrlock_set): Always write here..
15508 * config/linux/ptrlock.c (gomp_ptrlock_set_slow): ..not here.
15509 * config/linux/futex.h (atomic_write_barrier): Delete unused function.
15510 * config/linux/alpha/futex.h (atomic_write_barrier): Likewise.
15511 * config/linux/ia64/futex.h (atomic_write_barrier): Likewise.
15512 * config/linux/mips/futex.h (atomic_write_barrier): Likewise.
15513 * config/linux/powerpc/futex.h (atomic_write_barrier): Likewise.
15514 * config/linux/s390/futex.h (atomic_write_barrier): Likewise.
15515 * config/linux/sparc/futex.h (atomic_write_barrier): Likewise.
15516 * config/linux/x86/futex.h (atomic_write_barrier): Likewise.
15518 2011-11-30 Alan Modra <amodra@gmail.com>
15521 * config/linux/bar.h: Use atomic rather than sync builtins.
15522 * config/linux/bar.c: Likewise. Add missing acquire
15523 synchronisation on generation field.
15524 * task.c (gomp_barrier_handle_tasks): Regain lock so as to not
15527 2011-11-30 Alan Modra <amodra@gmail.com>
15529 * ordered.c (gomp_ordered_sync): Add MEMMODEL_ACQ_REL fence.
15530 * critical.c (GOMP_critical_start): Add MEMMODEL_RELEASE fence.
15531 * config/linux/mutex.h: Use atomic rather than sync builtins.
15532 * config/linux/mutex.c: Likewise. Comment. Use -1 for waiting state.
15533 * config/linux/omp-lock.h: Comment fix.
15534 * config/linux/arm/mutex.h: Delete.
15535 * config/linux/powerpc/mutex.h: Delete.
15536 * config/linux/ia64/mutex.h: Delete.
15537 * config/linux/mips/mutex.h: Delete.
15539 2011-11-30 Alan Modra <amodra@gmail.com>
15542 * config/linux/sem.h: Rewrite.
15543 * config/linux/sem.c: Rewrite.
15545 2011-11-28 Richard Henderson <rth@redhat.com>
15547 * libgomp.h (enum memmodel): New.
15549 2011-11-21 Andreas Tobler <andreast@fgznet.ch>
15551 * configure: Regenerate.
15553 2011-10-10 Matthias Klose <doko@ubuntu.com>
15555 * config/posix95: Remove empty directory.
15557 2011-08-26 Jakub Jelinek <jakub@redhat.com>
15559 * testsuite/libgomp.fortran/threadprivate4.f90: New test.
15561 2011-08-19 Jakub Jelinek <jakub@redhat.com>
15564 * testsuite/libgomp.fortran/pr49792-1.f90: New test.
15565 * testsuite/libgomp.fortran/pr49792-2.f90: New test.
15567 2011-08-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15569 * config/posix95/lock.c, posix95/omp-lock.h: Remove.
15571 2011-08-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15574 * testsuite/libgomp.c++/task-8.C: Replaced err by errval.
15576 2011-08-03 Uros Bizjak <ubizjak@gmail.com>
15578 * config/linux/proc.h: New.
15579 * config/linux/proc.c: Include "proc.h". Do not include <sched.h>.
15580 (gomp_cpuset_popcount): Rename from cpuset_popcount. No more static.
15581 (gomp_init_num_threads): Update call to cpuset_popcount.
15582 (get_num_procs): Ditto.
15583 * config/linux/affinity.c (gomp_init_affinity): Call
15584 gomp_cpuset_popcount.
15586 2011-08-02 Jakub Jelinek <jakub@redhat.com>
15590 * omp.h.in (omp_in_final): New prototype.
15591 * omp_lib.f90.in (omp_in_final): New interface.
15592 (omp_integer_kind, omp_logical_kind): Remove
15593 and replace all its uses in the module with 4.
15594 (openmp_version): Change to 201107.
15595 * omp_lib.h.in (omp_sched_static, omp_sched_dynamic,
15596 omp_sched_guided, omp_sched_auto): Use omp_sched_kind
15597 kind for the parameters.
15598 (omp_in_final): New external.
15599 (openmp_version): Change to 201107.
15600 * task.c (omp_in_final): New function.
15601 (gomp_init_task): Initialize final_task.
15602 (GOMP_task): Remove unused attribute from flags. Handle final
15604 (GOMP_taskyield): New function.
15605 (omp_in_final): Return true if if (false) or final (true) task
15606 or descendant of final (true).
15607 * fortran.c (omp_in_final_): New function.
15608 * libgomp.map (OMP_3.1): Export omp_in_final and omp_in_final_.
15609 (GOMP_3.0): Export GOMP_taskyield.
15610 * env.c (gomp_nthreads_var_list, gomp_nthreads_var_list_len): New
15612 (parse_unsigned_long_list): New function.
15613 (initialize_env): Use it for OMP_NUM_THREADS. Call parse_boolean
15614 with "OMP_PROC_BIND". If OMP_PROC_BIND=true, call gomp_init_affinity
15615 even if parse_affinity returned false.
15616 * config/linux/affinity.c (gomp_init_affinity): Handle
15617 gomp_cpu_affinity_len == 0.
15618 * libgomp_g.h (GOMP_taskyield): New prototype.
15619 * libgomp.h (struct gomp_task): Add final_task field.
15620 (gomp_nthreads_var_list, gomp_nthreads_var_list_len): New externs.
15621 * team.c (gomp_team_start): Override new task's nthreads_var icv
15622 if list form OMP_NUM_THREADS has been used and it has value for
15623 the new nesting level.
15625 * testsuite/libgomp.c/atomic-11.c: New test.
15626 * testsuite/libgomp.c/atomic-12.c: New test.
15627 * testsuite/libgomp.c/atomic-13.c: New test.
15628 * testsuite/libgomp.c/atomic-14.c: New test.
15629 * testsuite/libgomp.c/reduction-6.c: New test.
15630 * testsuite/libgomp.c/task-5.c: New test.
15631 * testsuite/libgomp.c++/atomic-2.C: New test.
15632 * testsuite/libgomp.c++/atomic-3.C: New test.
15633 * testsuite/libgomp.c++/atomic-4.C: New test.
15634 * testsuite/libgomp.c++/atomic-5.C: New test.
15635 * testsuite/libgomp.c++/atomic-6.C: New test.
15636 * testsuite/libgomp.c++/atomic-7.C: New test.
15637 * testsuite/libgomp.c++/atomic-8.C: New test.
15638 * testsuite/libgomp.c++/atomic-9.C: New test.
15639 * testsuite/libgomp.c++/task-8.C: New test.
15640 * testsuite/libgomp.c++/reduction-4.C: New test.
15641 * testsuite/libgomp.fortran/allocatable7.f90: New test.
15642 * testsuite/libgomp.fortran/allocatable8.f90: New test.
15643 * testsuite/libgomp.fortran/crayptr3.f90: New test.
15644 * testsuite/libgomp.fortran/omp_atomic3.f90: New test.
15645 * testsuite/libgomp.fortran/omp_atomic4.f90: New test.
15646 * testsuite/libgomp.fortran/pointer1.f90: New test.
15647 * testsuite/libgomp.fortran/pointer2.f90: New test.
15648 * testsuite/libgomp.fortran/task4.f90: New test.
15650 2011-08-02 Tobias Burnus <burnus@net-b.de>
15652 * libgomp.texi: Update OpenMP spec references to 3.1.
15653 (omp_in_final,OMP_PROC_BIND): New sections.
15654 (OMP_NUM_THREADS): Document that the value can be now a list.
15655 (GOMP_STACKSIZE,GOMP_CPU_AFFINITY): Update @ref.
15657 2011-08-02 H.J. Lu <hongjiu.lu@intel.com>
15659 * config/linux/x86/futex.h: Check __x86_64__ instead of
15662 2011-07-29 Jakub Jelinek <jakub@redhat.com>
15664 PR middle-end/49897
15665 PR middle-end/49898
15666 * testsuite/libgomp.c/pr49897-1.c: New test.
15667 * testsuite/libgomp.c/pr49897-2.c: New test.
15668 * testsuite/libgomp.c/pr49898-1.c: New test.
15669 * testsuite/libgomp.c/pr49898-2.c: New test.
15671 2011-07-28 H.J. Lu <hongjiu.lu@intel.com>
15673 * testsuite/lib/libgomp.exp (libgomp_init): Add -march=i486
15674 for ia32 instead of ilp32.
15676 * testsuite/libgomp.c/atomic-1.c: Require ia32 instead of ilp32.
15677 * testsuite/libgomp.c/atomic-6.c: Likewise.
15679 2011-07-23 Sebastian Pop <sebastian.pop@amd.com>
15681 * testsuite/libgomp.graphite/force-parallel-1.c: Un-xfail.
15682 * testsuite/libgomp.graphite/force-parallel-2.c: Adjust pattern.
15684 2011-07-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15687 * config/osf/sem.h: New file.
15688 * configure.tgt (alpha*-dec-osf*): Prepend osf to config_path.
15690 2011-07-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15693 * testsuite/lib/libgomp.exp (libgomp_init): Don't add -lgomp to
15696 2011-07-15 Jakub Jelinek <jakub@redhat.com>
15698 * config/linux/wait.h (do_spin): New inline, largely copied
15699 from do_wait, just don't do futex_wait here, instead return true if
15701 (do_wait): Implement using do_spin.
15702 * config/linux/mutex.h (gomp_mutex_lock_slow): Add an int argument
15704 (gomp_mutex_lock): Use __sync_val_compare_and_swap instead of
15705 __sync_bool_compare_and_swap, pass the oldval to
15706 gomp_mutex_lock_slow.
15707 * config/linux/mutex.c (gomp_mutex_lock_slow): Add oldval argument.
15708 If all mutex contenders are just spinning and not sleeping, don't
15709 change state to 2 unnecessarily. Optimize the loop when state has
15710 already become 2 to use just one atomic operation per loop instead
15712 * config/linux/ia64/mutex.h (gomp_mutex_lock_slow): Add an int argument
15714 (gomp_mutex_lock): Use __sync_val_compare_and_swap instead of
15715 __sync_bool_compare_and_swap, pass the oldval to
15716 gomp_mutex_lock_slow.
15718 2011-06-22 Jakub Jelinek <jakub@redhat.com>
15721 * iter.c (gomp_iter_static_next): For chunk size 0
15722 only use n ceil/ nthreads size for the first
15723 n % nthreads threads in the team instead of
15724 all threads except for the last few ones which
15725 get less work or none at all.
15726 * iter_ull.c (gomp_iter_ull_static_next): Likewise.
15727 * env.c (parse_schedule): If OMP_SCHEDULE doesn't have
15728 chunk argument, set run_sched_modifier to 0 for static
15729 resp. 1 for other kinds. If chunk argument is 0
15730 and not static, set value to 1.
15732 2011-05-19 Jakub Jelinek <jakub@redhat.com>
15735 * testsuite/libgomp.c++/pr49043.C: New test.
15738 * testsuite/libgomp.c++/pr48869.C: New test.
15740 2011-05-06 Jakub Jelinek <jakub@redhat.com>
15743 * fortran.c: Include limits.h.
15745 (omp_set_dynamic_8_, omp_set_num_threads_8_): Use !!*set instead of
15747 (omp_set_num_threads_8_, omp_set_schedule_8_,
15748 omp_set_max_active_levels_8_, omp_get_ancestor_thread_num_8_,
15749 omp_get_team_size_8_): Use TO_INT macro.
15750 * testsuite/libgomp.fortran/pr48894.f90: New test.
15752 2011-04-13 Jakub Jelinek <jakub@redhat.com>
15754 PR middle-end/48591
15755 * testsuite/libgomp.c/pr48591.c: New test.
15757 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15760 * acinclude.m4 (enable_symvers): Handle --disable-symvers.
15761 * configure: Regenerate.
15763 2011-02-27 Jakub Jelinek <jakub@redhat.com>
15766 * testsuite/libgomp.fortran/task3.f90: New test.
15768 2011-02-24 Tobias Burnus <burnus@net-b.de>
15770 * libgomp.texi (GOMP_STACKSIZE): Fix @ref to OMP_STACKSIZE.
15772 2011-02-23 Jakub Jelinek <jakub@redhat.com>
15775 * libgomp.texi (omp_get_wtime): Don't say time in the past
15776 must be Unix Epoch.
15778 2011-02-18 Jakub Jelinek <jakub@redhat.com>
15781 * testsuite/libgomp.fortran/fortran.exp: Check for both
15782 libquadmath.a and libquadmath.${shlib_ext}. If neither exists,
15783 but $blddir != "", still append ${blddir}/${lang_library_path}
15784 to ld_library_path.
15786 2011-02-16 Tobias Burnus <burnus@net-b.de>
15789 * testsuite/libgomp.fortran/fortran.exp: Check for the existence
15790 of libquadmath.a before adding its libpath to ldflags.
15792 2011-02-14 Jakub Jelinek <jakub@redhat.com>
15795 * config/linux/futex.h (futex_wait): Pass NULL as timeout argument
15796 to FUTEX_WAIT futex syscall.
15797 * config/linux/wait.h: Include <futex.h> instead of "futex.h".
15799 2011-02-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15801 * configure: Regenerate.
15803 2011-01-20 Benjamin Kosnik <bkoz@redhat.com>
15806 * acinclude.m4 (LIBGOMP_ENABLE_SYMVERS): Accept gnu variants.
15808 2011-01-16 Gerald Pfeifer
15810 * configure.tgt (*-*-freebsd*): Add -lpthread to XLDFLAGS.
15812 2010-12-14 Jakub Jelinek <jakub@redhat.com>
15815 * libgomp.fortran/allocatable6.f90: New test.
15817 2010-12-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15819 * acinclude.m4 (symvers_renaming): Also set if enable_symvers = no.
15820 * configure: Regenerate.
15822 2010-12-06 Dave Korn <dave.korn.cygwin@gmail.com>
15826 * configure.ac: Invoke ACX_LT_HOST_FLAGS.
15827 * Makefile.am (libgomp_la_LDFLAGS): Use lt_host_flags.
15828 * aclocal.m4: Regenerate.
15829 * configure: Regenerate.
15830 * Makefile.in: Regenerate.
15831 * testsuite/Makefile.in: Regenerate.
15833 2010-12-02 Jakub Jelinek <jakub@redhat.com>
15836 * libgomp.fortran/pr46753.f90: New test.
15839 * env.c (initialize_env): Default to spin count 300000
15840 instead of 20000000 if neither OMP_WAIT_POLICY nor GOMP_SPINCOUNT
15844 * parallel.c (GOMP_parallel_end): Unlock gomp_remaining_threads_lock
15845 at the end if sync builtins aren't supported.
15847 2010-12-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15849 * configure.tgt (mips-sgi-irix6*): Add -lpthread to XLDFLAGS.
15851 2010-12-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15853 * testsuite/libgomp.fortran/vla8.f90: Use dg-timeout-factor 2.0.
15855 2010-11-24 Iain Sandoe <iains@gcc.gnu.org>
15857 * testsuite/libgomp.fortran/fortran.exp: Add paths for libquadmath.
15859 2010-11-16 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
15860 Tobias Burnus <burnus@net-b.de>
15864 * configure: Regenerate.
15866 2010-10-06 Marcus Shawcroft <marcus.shawcroft@arm.com>
15868 * config/linux/futex.h: New.
15869 * config/linux/arm/mutex.h: New.
15870 * configure.tgt (arm*-*-linux*): Add config path.
15872 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
15874 * testsuite/libgomp.graphite/force-parallel-1.c: Adjust.
15876 2010-09-23 Tobias Burnus <burnus@net-b.de>
15878 * libgomp.texi (omp_get_nested, omp_set_nested, omp_set_dynamic):
15879 Change Fortran datatype to LOGICAL.
15880 (omp_set_lock, omp_test_lock, omp_unset_lock, omp_set_nested_lock,
15881 omp_unset_nested_lock): Use intent(inout) instead of intent(out).
15883 2010-08-21 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15885 * configure: Regenerate.
15887 2010-07-26 Jakub Jelinek <jakub@redhat.com>
15889 * libgomp.texi: Add function keyword to a couple of Fortran
15890 interfaces, use integer instead of int for Fortran.
15892 2010-07-26 Aldy Hernandez <aldyh@redhat.com>
15894 * libgomp.texi: Fix spelling and pasto problems throughout.
15895 Adjust prototypes to match code.
15897 2010-07-24 Tobias Burnus <burnus@net-b.de>
15899 * testsuite/libgomp.fortran/appendix-a/a.28.5.f90: Add -w to
15900 silence -fwhole-file warning.
15902 2010-07-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15904 * configure.tgt (*-*-solaris2.[56]*): Removed.
15906 2010-07-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15908 * acinclude.m4 (LIBGOMP_ENABLE_SYMVERS): Handle sun style.
15909 Define LIBGOMP_BUILD_VERSIONED_SHLIB_GNU,
15910 LIBGOMP_BUILD_VERSIONED_SHLIB_SUN automake conditionals.
15911 (HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT): Define unless
15912 targetting solaris2*.
15913 * configure: Regenerate.
15914 * config.h.in: Regenerate.
15916 * Makefile.am [LIBGOMP_BUILD_VERSIONED_SHLIB]: Protect
15917 libgomp_version_script with LIBGOMP_BUILD_VERSIONED_SHLIB_GNU.
15918 Add libgomp_version_dep.
15919 [LIBGOMP_BUILD_VERSIONED_SHLIB_SUN]: Handle Sun symbol
15921 [!LIBGOMP_BUILD_VERSIONED_SHLIB]: Add libgomp_version_dep.
15922 (libgomp_la_DEPENDENCIES): Set to $(libgomp_version_dep).
15923 * Makefile.in: Regenerate.
15925 * libgomp.h (LIBGOMP_GNU_SYMBOL_VERSIONING): Undef unless
15926 HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT.
15927 * libgomp.map (OMP_1.0): Move symbols both in OMP_1.0 and OMP_3.0
15928 to common block, protected by
15929 HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT.
15931 2010-06-10 Gerald Pfeifer <gerald@pfeifer.com>
15933 * libgomp.texi: Move to GFDL version 1.3. Update copyright years.
15935 2010-06-09 Iain Sandoe <iains@gcc.gnu.org>
15938 * configure: Regenerate.
15940 2010-05-04 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15943 * configure.ac (AM_INIT_AUTOMAKE): Add no-dist.
15944 * configure: Regenerate.
15945 * Makefile.in: Regenerate.
15946 * testsuite/Makefile.in: Regenerate.
15948 2010-04-26 Jakub Jelinek <jakub@redhat.com>
15951 * testsuite/libgomp.c/pr43893.c: New test.
15952 * testsuite/libgomp.c++/pr43893.C: New test.
15954 2010-04-21 Jakub Jelinek <jakub@redhat.com>
15956 PR middle-end/43570
15957 * testsuite/libgomp.fortran/vla8.f90: New test.
15959 2010-04-20 Jakub Jelinek <jakub@redhat.com>
15962 * config/linux/affinity.c (gomp_init_affinity): Decrease
15963 gomp_available_cpus if affinity mask confines the process to fewer
15965 * config/linux/proc.c (get_num_procs): If gomp_cpu_affinity is
15966 non-NULL, just return gomp_available_cpus.
15969 * sections.c (gomp_sections_init): Initialize ws->mode.
15971 2010-04-14 Uros Bizjak <ubizjak@gmail.com>
15973 * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS): Remove set but
15974 not unused bar variable.
15975 * configure: Regenerate.
15977 2010-04-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15979 * Makefile.in: Regenerate.
15980 * aclocal.m4: Regenerate.
15981 * testsuite/Makefile.in: Regenerate.
15983 2010-03-22 Jakub Jelinek <jakub@redhat.com>
15986 * env.c (parse_unsigned_long): Add ALLOW_ZERO argument.
15987 (initialize_env): Adjust callers.
15988 (omp_set_max_active_levels): Set gomp_max_active_levels_var even
15989 when the argument is 0.
15991 * testsuite/libgomp.c/pr42942.c: New test.
15993 2010-03-08 Tobias Grosser <grosser@fim.uni-passau.de>
15995 PR middle-end/42644
15996 PR middle-end/42130
15997 * testsuite/libgomp.graphite/force-parallel-1.c: Adjust.
15998 * testsuite/libgomp.graphite/force-parallel-2.c: Adjust.
16000 2010-01-29 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16002 * testsuite/libgomp.c++/task-1.C: Renamed err to e.
16003 * testsuite/libgomp.c++/task-6.C: Likewise.
16005 2010-01-28 Steve Ellcey <sje@cup.hp.com>
16007 * configure.tgt (*-*-hpux*): Add -frandom-seed flag.
16009 2010-01-26 Paolo Bonzini <bonzini@gnu.org>
16011 * configure.ac: Test for executability of _the first word_ of GFORTRAN.
16012 * configure: Regenerate.
16014 2010-01-26 Jakub Jelinek <jakub@redhat.com>
16017 * testsuite/libgomp.fortran/allocatable5.f90: New test.
16019 2010-01-20 Paolo Bonzini <bonzini@gnu.org>
16021 * configure.ac: Test for executability of GFORTRAN.
16022 * configure: Regenerate.
16024 2010-01-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16026 * configure: Regenerate.
16028 2010-01-04 H.J. Lu <hongjiu.lu@intel.com>
16031 * libgomp.fortran/recursion1.f90 (sub): Make 's' atomic.
16033 2010-01-03 Richard Guenther <rguenther@suse.de>
16035 * testsuite/libgomp.fortran/recursion1.f90: New testcase.
16037 2009-12-23 Sebastian Pop <sebpop@gmail.com>
16039 * testsuite/libgomp.graphite/pr4118.c: New.
16041 2009-12-22 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
16043 * testsuite/libgomp.fortran/crayptr2.f90: Remove forced static linkage
16044 for darwin, protect the test with require-effective-target tls_runtime.
16045 * testsuite/libgomp.fortran/pr32550.f90: Ditto.
16047 2009-12-22 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
16050 * testsuite/lib/libgomp.exp: Provide -B options to allow for
16051 link spec %s substitutions for static libraries.
16053 2009-12-18 Jack Howarth <howarth@bromo.med.uc.edu>
16056 * libgomp.graphite/force-parallel-2.c: Reduce array size.
16058 2009-12-05 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
16060 * Makefile.in: Regenerate.
16061 * configure: Regenerate.
16062 * testsuite/Makefile.in: Regenerate.
16064 2009-11-30 Dave Korn <dave.korn.cygwin@gmail.com>
16066 * testsuite/lib/libgomp.exp (libgomp_init): Add host-dependent
16067 settings for LC_ALL and LANG.
16069 2009-11-25 Jakub Jelinek <jakub@redhat.com>
16072 * testsuite/libgomp.fortran/pr42162.f90: New test.
16074 2009-11-13 Jakub Jelinek <jakub@redhat.com>
16076 PR middle-end/42029
16077 * testsuite/libgomp.c/pr42029.c: New test.
16079 2009-10-26 Jakub Jelinek <jakub@redhat.com>
16081 * acinclude.m4 (LIBGOMP_CHECK_LINKER_FEATURES): Avoid using too many
16082 *s. Accept ld version without text in ()s.
16083 * configure: Regenerated.
16085 2009-10-22 Razya Ladelsky <razya@il.ibm.com>
16087 * testsuite/libgomp.graphite/force-parallel-2.c: Adjust scan.
16089 2009-10-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
16092 * configure.ac: Set FC to "no" if $GFORTRAN starts with "no"
16093 or a hyphen (happens with fortran language disabled).
16094 * configure: Regenerate.
16096 2009-09-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
16098 * acinclude.m4 (LIBGOMP_CHECK_LINKER_FEATURES): Avoid 'head',
16099 use sed script portable to Solaris /bin/sed for extracting ld
16101 * configure: Regenerate.
16103 2009-09-17 Alexander Monakov <amonakov@ispras.ru>
16105 * testsuite/libgomp.graphite/bounds.c: New test.
16107 2009-09-11 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
16109 * Makefile.am (libgomp_la_LINK): New.
16110 * Makefile.in: Regenerate.
16112 2009-08-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
16114 * configure.ac (AC_PREREQ): Bump to 2.64.
16116 2009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
16118 * Makefile.am (install-html, install-pdf): Remove.
16119 * Makefile.in: Regenerate.
16121 * Makefile.in: Regenerate.
16122 * aclocal.m4: Regenerate.
16123 * config.h.in: Regenerate.
16124 * configure: Regenerate.
16125 * testsuite/Makefile.in: Regenerate.
16127 2009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
16129 * Makefile.am (LINK): Add $(AM_LIBTOOLFLAGS) and $(LIBTOOLFLAGS).
16130 * Makefile.in: Regenerate.
16132 2009-08-20 Dave Korn <dave.korn.cygwin@gmail.com>
16134 * Makefile.am (libgomp_la_LDFLAGS): Add -bindir flag.
16135 * Makefile.in: Regenerate.
16137 2009-08-19 Tobias Burnus <burnus@net-b.de>
16140 omp_lib.h.in: Fix -std=f95 errors.
16142 2009-08-14 David Edelsohn <edelsohn@gnu.org>
16144 * testsuite/libgomp.graphite: Move from gcc.dg/graphite.
16145 * testsuite/libgomp.graphite/graphite_autopar.exp: Delete.
16146 * testsuite/libgomp.graphite/graphite.exp: New.
16148 2009-08-05 Andreas Tobler <a.tobler@schweiz.org>
16150 * testsuite/libgomp.fortran/fortran.exp: Add flags in case of shared
16153 2009-08-04 David Daney <ddaney@caviumnetworks.com>
16155 * config/linux/mutex.h (gomp_mutex_unlock): Add comment about
16156 needed memory barrier semantics.
16157 * config/linux/mips/mutex.h: New file.
16159 2009-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
16161 * configure.ac (_AC_ARG_VAR_PRECIOUS): Use m4_rename_force.
16163 2009-07-16 Joseph Myers <joseph@codesourcery.com>
16165 * configure: Regenerate.
16167 2009-07-11 Richard Sandiford <rdsandiford@googlemail.com>
16172 * testsuite/lib/libgomp.exp: Revert 2009-07-02 and 2009-06-30 commits.
16173 * testsuite/libgomp.c/c.exp, testsuite/libgomp.c++/c++.exp,
16174 testsuite/libgomp.fortran/fortran.exp: Revert 2009-06-30 commits.
16176 2009-07-02 Richard Sandiford <r.sandiford@uk.ibm.com>
16178 * testsuite/lib/libgomp.exp (libgomp_init): Use the ALWAYS_CFLAGS
16179 options when choosing a multilib.
16181 2009-06-30 Richard Sandiford <r.sandiford@uk.ibm.com>
16183 * testsuite/lib/libgomp.exp (libgomp_init): Don't add "." to
16184 ld_library_path. Use add_path. Add just find_libgcc_s to
16185 ld_library_path, not every libgcc multilib directory.
16186 * testsuite/libgomp.c/c.exp (ld_library_path): Don't call
16187 gcc-set-multilib-library-path; rely on $always_ld_library_path instead.
16188 * testsuite/libgomp.c++/c++.exp (ld_library_path): Likewise.
16190 * testsuite/libgomp.fortran/fortran.exp (ld_library_path): Likewise.
16192 2009-06-09 Nathan Froyd <froydnj@codesourcery.com>
16194 * Makefile.am (LTLDFLAGS): Define.
16196 * Makefile.in: Regenerate.
16198 2009-05-27 Janne Blomqvist <jb@gcc.gnu.org>
16201 * testsuite/libgomp.fortran/fortran.exp: Don't link with
16202 libgfortranbegin, check existence of libgfortran.a instead of
16203 libgfortranbegin.a.
16205 2009-05-20 Jakub Jelinek <jakub@redhat.com>
16208 * team.c (gomp_thread_start): Destroy thr->release semaphore.
16209 (gomp_free_pool_helper): Likewise.
16211 2009-04-20 Vasilis Liaskovitis <vliaskov@gmail.com>
16212 Jakub Jelinek <jakub@redhat.com>
16215 * testsuite/libgomp.fortran/workshare2.f90: New test.
16217 2009-04-09 Nick Clifton <nickc@redhat.com>
16219 * iter.c: Change copyright header to refer to version 3 of the
16220 GNU General Public License with version 3.1 of the GCC Runtime
16221 Library Exception and to point readers at the COPYING3 and
16222 COPYING3.RUNTIME files and the FSF's license web page.
16223 * alloc.c: Likewise.
16224 * barrier.c: Likewise.
16225 * config/bsd/proc.c: Likewise.
16226 * config/linux/affinity.c: Likewise.
16227 * config/linux/alpha/futex.h: Likewise.
16228 * config/linux/bar.c: Likewise.
16229 * config/linux/bar.h: Likewise.
16230 * config/linux/ia64/futex.h: Likewise.
16231 * config/linux/ia64/mutex.h: Likewise.
16232 * config/linux/lock.c: Likewise.
16233 * config/linux/mips/futex.h: Likewise.
16234 * config/linux/mutex.c: Likewise.
16235 * config/linux/mutex.h: Likewise.
16236 * config/linux/powerpc/futex.h: Likewise.
16237 * config/linux/proc.c: Likewise.
16238 * config/linux/ptrlock.c: Likewise.
16239 * config/linux/ptrlock.h: Likewise.
16240 * config/linux/s390/futex.h: Likewise.
16241 * config/linux/sem.c: Likewise.
16242 * config/linux/sem.h: Likewise.
16243 * config/linux/sparc/futex.h: Likewise.
16244 * config/linux/wait.h: Likewise.
16245 * config/linux/x86/futex.h: Likewise.
16246 * config/mingw32/proc.c: Likewise.
16247 * config/mingw32/time.c: Likewise.
16248 * config/posix/affinity.c: Likewise.
16249 * config/posix/bar.c: Likewise.
16250 * config/posix/bar.h: Likewise.
16251 * config/posix/lock.c: Likewise.
16252 * config/posix/mutex.h: Likewise.
16253 * config/posix/proc.c: Likewise.
16254 * config/posix/ptrlock.h: Likewise.
16255 * config/posix/sem.c: Likewise.
16256 * config/posix/sem.h: Likewise.
16257 * config/posix/time.c: Likewise.
16258 * config/posix95/lock.c: Likewise.
16259 * critical.c: Likewise.
16261 * error.c: Likewise.
16262 * fortran.c: Likewise.
16263 * iter_ull.c: Likewise.
16264 * libgomp.h: Likewise.
16265 * libgomp_f.h.in: Likewise.
16266 * libgomp_g.h: Likewise.
16267 * loop.c: Likewise.
16268 * loop_ull.c: Likewise.
16269 * omp.h.in: Likewise.
16270 * omp_lib.f90.in: Likewise.
16271 * omp_lib.h.in: Likewise.
16272 * ordered.c: Likewise.
16273 * parallel.c: Likewise.
16274 * sections.c: Likewise.
16275 * single.c: Likewise.
16276 * task.c: Likewise.
16277 * team.c: Likewise.
16278 * work.c: Likewise.
16280 2009-04-09 Jakub Jelinek <jakub@redhat.com>
16282 * testsuite/config/default.exp: Change copyright header to refer to
16283 version 3 of the GNU General Public License and to point readers
16284 at the COPYING3 file and the FSF's license web page.
16286 2009-04-08 Jakub Jelinek <jakub@redhat.com>
16288 PR middle-end/39573
16289 * libgomp.c++/pr39573.C: New test.
16291 2009-04-01 Jakub Jelinek <jakub@redhat.com>
16294 * testsuite/libgomp.c/pr39591-1.c: New test.
16295 * testsuite/libgomp.c/pr39591-2.c: New test.
16296 * testsuite/libgomp.c/pr39591-3.c: New test.
16298 2009-03-25 Uros Bizjak <ubizjak@gmail.com>
16300 * testsuite/libgomp.c/atomic-5.c: Cleanup cpuid usage.
16301 * testsuite/libgomp.c/atomic-6.c: Ditto.
16303 2009-03-23 Jakub Jelinek <jakub@redhat.com>
16306 * testsuite/libgomp.c/loop-12.c: New test.
16307 * testsuite/libgomp.c/loop-11.c: New test.
16308 * testsuite/libgomp.c++/loop-11.C: New test.
16309 * testsuite/libgomp.c++/loop-12.C: New test.
16310 * testsuite/libgomp.c++/for-8.C: New test.
16312 2009-03-01 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
16314 * configure: Regenerate.
16316 2009-02-11 Jakub Jelinek <jakub@redhat.com>
16318 PR middle-end/39154
16319 * testsuite/libgomp.c/pr39154.c: New test.
16321 2009-01-30 Ian Lance Taylor <iant@google.com>
16323 * acinclude.m4 (LIBCOMP_CHECK_LINKER_FEATURES): Set
16324 libgomp_ld_is_gold. Get gold version number.
16325 (LIBGOMP_ENABLE_SYMVERS): Gold always support symbol versioning.
16326 * configure: Rebuild.
16328 2009-01-19 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
16330 * testsuite/lib/libgomp.exp: Add -B option for targets that
16331 use libgfortran.a%s in their specs.
16333 2009-01-07 Jakub Jelinek <jakub@redhat.com>
16336 * acinclude.m4 (HAVE_AS_SYMVER_DIRECTIVE): New check.
16337 * libgomp.h (LIBGOMP_GNU_SYMBOL_VERSIONING): Undefine if
16338 HAVE_AS_SYMVER_DIRECTIVE is not defined.
16339 * configure: Regenerated.
16340 * config.h.in: Likewise.
16342 2008-12-28 Jakub Jelinek <jakub@redhat.com>
16345 * testsuite/libgomp.c/pr38650.c: New test.
16346 * testsuite/libgomp.c++/pr38650.C: New test.
16348 2008-12-27 Jakub Jelinek <jakub@redhat.com>
16350 * testsuite/libgomp.c/collapse-1.c (main): Add private(k) clause.
16352 2008-12-26 Uros Bizjak <ubizjak@gmail.com>
16354 * testsuite/libgomp.c/atomic-6.c: Add -mieee for alpha*-*-* targets.
16356 2008-12-18 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
16358 * configure: Regenerate.
16360 2008-12-08 Jakub Jelinek <jakub@redhat.com>
16362 PR middle-end/36802
16363 * testsuite/libgomp.c/pr36802-1.c: New test.
16364 * testsuite/libgomp.c/pr36802-2.c: New test.
16365 * testsuite/libgomp.c/pr36802-3.c: New test.
16367 2008-12-01 Janis Johnson <janis187@us.ibm.com>
16370 * config/linux/powerpc/mutex.h: New.
16372 2008-12-01 Jakub Jelinek <jakub@redhat.com>
16375 * testsuite/libgomp.c++/for-7.C: New test.
16378 * testsuite/libgomp.c++/for-6.C: New test.
16380 2008-11-26 Janis Johnson <janis187@us.ibm.com>
16383 * testsuite/lib/libgomp.exp: Include new timeout library files.
16384 (libgomp_target_compile): Set timeout value from new proc.
16386 2008-11-13 Steve Ellcey <sje@cup.hp.com>
16389 * config/linux/ia64/mutex.h: New.
16391 2008-11-04 Tobias Burnus <burnus@net-b.de>
16394 * libgomp.texi (Runtime library routines, environment variables):
16395 Update for OpenMP version 3.0.
16397 2008-09-26 Peter O'Gorman <pogma@thewrittenword.com>
16398 Steve Ellcey <sje@cup.hp.com>
16400 * configure: Regenerate for new libtool.
16401 * Makefile.in: Ditto.
16402 * testsuite/Makefile.in: Ditto.
16404 2008-09-19 Jakub Jelinek <jakub@redhat.com>
16405 Andreas Tobler <a.tobler@schweiz.org>
16407 * config/bsd/proc.c: New file.
16408 * configure.tgt (*-*-darwin*): Use config_path "bsd posix".
16409 * configure.ac: Check for header <sys/sysctl.h>
16410 * configure: Regenerate.
16411 * config.h.in: Likewise.
16413 2008-09-05 Janis Johnson <janis187@us.ibm.com>
16415 * testsuite/ligbomp.c/c.exp: Unset lang_test_file only if it exists.
16417 2008-08-31 Aaron W. LaFramboise <aaronavay62@aaronwl.com>
16419 * Makefile.am (libgomp_la_LDFLAGS): Add -no-undefined.
16420 * Makefile.in: Regenerated.
16421 * testsuite/Makefile.in: Regenerated.
16423 2008-08-21 Nathan Froyd <froydnj@codesourcery.com>
16425 * testsuite/lib/libgomp.exp (libgomp_init): Only set things that
16426 depend on blddir if blddir exists.
16427 (libgomp_target_compile): Likewise.
16428 * testsuite/libgomp.c++/c++.exp: Likewise.
16429 * testsuite/libgomp.fortran/fortran.exp: Likewise.
16431 2008-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
16433 * libgomp.texi: Update to GFDL 1.2. Update copyright years.
16434 Do not list GPL as Invariant Section.
16436 2008-07-28 Ilie Garbacea <ilie@mips.com>
16437 Chao-ying Fu <fu@mips.com>
16439 * configure.tgt: Enable futex for MIPS.
16440 * config/linux/mips/futex.h: New file.
16442 2008-07-16 Jakub Jelinek <jakub@redhat.com>
16444 * team.c (gomp_team_end): Free team immediately if it has
16447 2008-07-08 David Edelsohn <edelsohn@gnu.org>
16449 * testsuite/libgomp.c++/c++.exp: Append multilib library path.
16450 * testsuite/libgomp.fortran/fortran.exp: Same.
16451 * testsuite/libgomp.c/c.exp: Same.
16452 * testsuite/lib/libgomp.exp: Append AIX libgcc pthread multilib
16453 directory to library path first.
16455 2008-06-29 Krister Walfridsson <krister.walfridsson@gmail.com>
16457 * env.c (parse_stacksize): Add cast to avoid warning.
16458 (parse_spincount): Likewise.
16460 2008-06-27 Jakub Jelinek <jakub@redhat.com>
16462 * testsuite/libgomp.c/loop-10.c: New test.
16463 * libgomp.c/loop-3.c (main): Add lastprivate clause.
16464 * libgomp.c++/loop-6.C (main): Likewise.
16467 * testsuite/libgomp.c/debug-1.c: New test.
16469 2008-06-19 Jakub Jelinek <jakub@redhat.com>
16471 * testsuite/libgomp.c/nqueens-1.c: New test.
16474 * testsuite/libgomp.c++/task-7.C: New function.
16476 2008-06-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
16478 * configure: Regenerate.
16480 2008-06-15 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
16482 * env.c (initialize_env): Always initialize gomp_remaining_threads_lock
16483 mutex when HAVE_SYNC_BUILTINS isn't defined.
16485 2008-06-15 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
16487 * libgomp.texi (omp_test_lock): Fix typo.
16489 2008-06-12 Tobias Burnus <burnus@net-b.de>
16491 * omp_lib.f90.in: Add "implicit none".
16493 2008-06-12 Jakub Jelinek <jakub@redhat.com>
16495 PR middle-end/36506
16496 * testsuite/libgomp.c/reduction-5.c: New test.
16498 2008-06-11 Jakub Jelinek <jakub@redhat.com>
16500 * libgomp.h (struct gomp_task): Add in_tied_task field.
16501 * task.c (gomp_init_task): Initialize it.
16502 (GOMP_task): Likewise. Call gomp_team_barrier_set_task_pending
16503 unconditionally. Don't call gomp_team_barrier_wake if
16504 current task is implicit or if(0) from implicit and number of
16505 running tasks is equal to nthreads - 1.
16508 * omp_lib.f90.in (omp_get_ancestor_thread_num_8,
16509 omp_get_team_size_8): Fix pastos.
16512 * configure.ac: Add AC_CHECK_FUNCS (strtoull).
16513 * configure: Regenerated.
16514 * config.h.in: Regenerated.
16515 * env.c (strtoull): Define to strtoul if HAVE_STRTOULL is not
16518 2008-06-06 Andreas Tobler <a.tobler@schweiz.org>
16521 * loop_ull.c (GOMP_loop_ull_static_start): Adjust API.
16522 (GOMP_loop_ull_dynamic_start): Likewise.
16523 (GOMP_loop_ull_guided_start): Likewise.
16524 (GOMP_loop_ull_ordered_static_start): Likewise.
16525 (GOMP_loop_ull_ordered_dynamic_start): Likewise.
16526 (GOMP_loop_ull_ordered_guided_start): Likewise.
16528 2008-06-06 Jakub Jelinek <jakub@redhat.com>
16529 Richard Henderson <rth@redhat.com>
16530 Ulrich Drepper <drepper@redhat.com>
16531 Jakob Blomer <jakob.blomer@ira.uka.de>
16533 * configure.ac (LIBGOMP_GNU_SYMBOL_VERSIONING): New AC_DEFINE.
16534 Substitute also OMP_*LOCK_25*.
16535 * configure: Regenerated.
16536 * config.h.in: Regenerated.
16537 * Makefile.am (libgomp_la_SOURCES): Add loop_ull.c, iter_ull.c,
16538 ptrlock.c and task.c.
16539 * Makefile.in: Regenerated.
16540 * testsuite/Makefile.in: Regenerated.
16541 * task.c: New file.
16542 * loop_ull.c: New file.
16543 * iter_ull.c: New file.
16544 * libgomp.h: Include ptrlock.h.
16545 (enum gomp_task_kind): New type.
16546 (struct gomp_team): Add task_lock, task_queue, task_count,
16547 task_running_count, single_count fields. Add
16548 work_share_list_free_lock ifndef HAVE_SYNC_BUILTINS.
16549 Remove work_share_lock, generation_mask,
16550 oldest_live_gen, num_live_gen and init_work_shares fields, add
16551 work work_share_list_alloc, work_share_list_free and work_share_chunk
16552 fields. Change work_shares from pointer to pointers into an array.
16553 Change ordered_release field into gomp_sem_t ** from flexible array
16554 member. Add implicit_task and initial_work_shares fields.
16555 Move close to the end of the struct.
16556 (struct gomp_team_state): Add single_count, last_work_share,
16557 active_level and level fields, remove work_share_generation.
16558 (gomp_barrier_handle_tasks): New prototype.
16559 (gomp_finish_task): New inline function.
16560 (struct gomp_work_share): Move chunk_size, end, incr into
16561 transparent union/struct, add chunk_size_ull, end_ll, incr_ll and
16562 next_ll fields. Reshuffle fields. Add next_alloc,
16563 next_ws, next_free and inline_ordered_team_ids fields, change
16564 ordered_team_ids into pointer from flexible array member.
16565 Add mode field. Put lock and next into a different cache line
16566 from most of the write-once fields.
16567 (gomp_iter_ull_static_next, gomp_iter_ull_dynamic_next_locked,
16568 gomp_iter_ull_guided_next_locked, gomp_iter_ull_dynamic_next,
16569 gomp_iter_ull_guided_next): New prototypes.
16570 (gomp_new_icv): New prototype.
16571 (struct gomp_thread): Add thread_pool and task fields.
16572 (struct gomp_thread_pool): New type.
16573 (gomp_new_team): New prototype.
16574 (gomp_team_start): Change type of last argument.
16575 (gomp_new_work_share): Removed.
16576 (gomp_init_work_share, gomp_fini_work_share): New prototypes.
16577 (gomp_work_share_init_done): New static inline.
16578 (gomp_throttled_spin_count_var, gomp_available_cpus,
16579 gomp_managed_threads): New extern decls.
16580 (gomp_init_task): New prototype.
16581 (gomp_spin_count_var): New extern var decl.
16582 (LIBGOMP_GNU_SYMBOL_VERSIONING): Undef if no visibility
16583 or no alias support, or if not PIC.
16584 (gomp_init_lock_30, gomp_destroy_lock_30, gomp_set_lock_30,
16585 gomp_unset_lock_30, gomp_test_lock_30, gomp_init_nest_lock_30,
16586 gomp_destroy_nest_lock_30, gomp_set_nest_lock_30,
16587 gomp_unset_nest_lock_30, gomp_test_nest_lock_30, gomp_init_lock_25,
16588 gomp_destroy_lock_25, gomp_set_lock_25, gomp_unset_lock_25,
16589 gomp_test_lock_25, gomp_init_nest_lock_25, gomp_destroy_nest_lock_25,
16590 gomp_set_nest_lock_25, gomp_unset_nest_lock_25,
16591 gomp_test_nest_lock_25): New prototypes.
16592 (omp_lock_symver, strong_alias): Define.
16593 (gomp_remaining_threads_count, gomp_remaining_threads_lock): New
16595 (gomp_end_task): New.
16596 (struct gomp_task_icv, gomp_global_icv): New.
16597 (gomp_thread_limit_var, gomp_max_active_levels_var): New.
16598 (struct gomp_task): New.
16599 (gomp_nthreads_var, gomp_dyn_var, gomp_nest_var,
16600 gomp_run_sched_var, gomp_run_sched_chunk): Remove.
16602 (gomp_schedule_type): Reorder enum to match
16604 * team.c (struct gomp_thread_start_data): Add thread_pool and task
16606 (gomp_thread_start): Add gomp_team_barrier_wait call.
16607 For non-nested case remove clearing of docked thread thr fields.
16608 Use pool fields instead of global gomp_* variables. Use
16609 gomp_barrier_wait_last when needed. Initialize ts.active_level.
16610 Create tasks for each member thread.
16611 (free_team): Only destroy team barrier, task_lock here and free it.
16612 (gomp_free_thread): Free last_team if non-NULL.
16613 (gomp_team_end): Call gomp_team_barrier_wait instead of
16614 gomp_barrier_wait. For nested case call one extra
16615 gomp_barrier_wait. Move here some destruction from free_team.
16616 Call free_team on pool->last_team if any, rather than freeing
16617 current team. Destroy work_share_list_free_lock ifndef
16618 HAVE_SYNC_BUILTINS.
16619 (gomp_new_icv): New function.
16620 (gomp_threads, gomp_threads_size, gomp_threads_used,
16621 gomp_threads_dock): Removed.
16622 (gomp_thread_destructor): New variable.
16623 (gomp_new_thread_pool, gomp_free_pool_helper, gomp_free_thread): New
16625 (gomp_team_start): Create new pool if current thread doesn't have
16626 one. Use pool fields instead of global gomp_* variables.
16627 Initialize thread_pool field for new threads. Clear single_count.
16628 Change last argument from ws to team, don't create
16629 new team, set ts.work_share to &team->work_shares[0] and clear
16630 ts.last_work_share. Don't clear ts.work_share_generation.
16631 If number of threads changed, adjust atomically gomp_managed_threads.
16632 Use gomp_init_task instead of gomp_new_task,
16633 set thr->task to the corresponding implicit_task array entry.
16634 Create tasks for each member thread. Initialize ts.level.
16635 (initialize_team): Call pthread_key_create on
16636 gomp_thread_destructor.
16637 (team_destructor): New function.
16638 (new_team): Removed.
16639 (gomp_new_team): New function.
16640 (free_team): Free gomp_work_share blocks chained through next_alloc,
16641 instead of freeing work_shares and destroying work_share_lock.
16642 (gomp_team_end): Call gomp_fini_work_share. If number of threads
16643 changed, adjust atomically gomp_managed_threads. Use gomp_end_task.
16644 * barrier.c (GOMP_barrier): Call gomp_team_barrier_wait instead
16645 of gomp_barrier_wait.
16646 * single.c (GOMP_single_copy_start): Call gomp_team_barrier_wait
16647 instead of gomp_barrier_wait. Call gomp_work_share_init_done
16648 if gomp_work_share_start returned true. Don't unlock ws->lock.
16649 (GOMP_single_copy_end): Call gomp_team_barrier_wait instead
16650 of gomp_barrier_wait.
16651 (GOMP_single_start): Rewritten if HAVE_SYNC_BUILTINS. Call
16652 gomp_work_share_init_done if gomp_work_share_start returned true.
16653 Don't unlock ws->lock.
16654 * work.c: Include stddef.h.
16655 (free_work_share): Use work_share_list_free_lock instead
16656 of atomic chaining ifndef HAVE_SYNC_BUILTINS. Add team argument.
16657 Call gomp_fini_work_share and then either free ws if orphaned, or
16658 put it into work_share_list_free list of the current team.
16659 (alloc_work_share, gomp_init_work_share, gomp_fini_work_share): New
16661 (gomp_work_share_start, gomp_work_share_end,
16662 gomp_work_share_end_nowait): Rewritten.
16663 * omp_lib.f90.in Change some tabs to spaces to prevent warnings.
16664 (openmp_version): Set to 200805.
16665 (omp_sched_kind, omp_sched_static, omp_sched_dynamic,
16666 omp_sched_guided, omp_sched_auto): New parameters.
16667 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
16668 omp_set_max_active_levels, omp_get_max_active_levels,
16669 omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
16670 omp_get_active_level): New interfaces.
16671 * omp_lib.h.in (openmp_version): Set to 200805.
16672 (omp_sched_kind, omp_sched_static, omp_sched_dynamic,
16673 omp_sched_guided, omp_sched_auto): New parameters.
16674 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
16675 omp_set_max_active_levels, omp_get_max_active_levels,
16676 omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
16677 omp_get_active_level): New externals.
16678 * loop.c: Include limits.h.
16679 (GOMP_loop_runtime_next, GOMP_loop_ordered_runtime_next): Handle
16681 (GOMP_loop_runtime_start, GOMP_loop_ordered_runtime_start):
16682 Likewise. Use gomp_icv.
16683 (gomp_loop_static_start, gomp_loop_dynamic_start): Clear
16684 ts.static_trip here.
16685 (gomp_loop_static_start, gomp_loop_ordered_static_start): Call
16686 gomp_work_share_init_done after gomp_loop_init. Don't unlock ws->lock.
16687 (gomp_loop_dynamic_start, gomp_loop_guided_start): Call
16688 gomp_work_share_init_done after gomp_loop_init. If HAVE_SYNC_BUILTINS,
16689 don't unlock ws->lock, otherwise lock it.
16690 (gomp_loop_ordered_dynamic_start, gomp_loop_ordered_guided_start): Call
16691 gomp_work_share_init_done after gomp_loop_init. Lock ws->lock.
16692 (gomp_parallel_loop_start): Call gomp_new_team instead of
16693 gomp_new_work_share. Call gomp_loop_init on &team->work_shares[0].
16694 Adjust gomp_team_start caller. Pass 0 as second argument to
16695 gomp_resolve_num_threads.
16696 (gomp_loop_init): For GFS_DYNAMIC, multiply ws->chunk_size by incr.
16697 If adding ws->chunk_size nthreads + 1 times after end won't
16698 overflow, set ws->mode to 1.
16699 * libgomp_g.h (GOMP_loop_ull_static_start, GOMP_loop_ull_dynamic_start,
16700 GOMP_loop_ull_guided_start, GOMP_loop_ull_runtime_start,
16701 GOMP_loop_ull_ordered_static_start,
16702 GOMP_loop_ull_ordered_dynamic_start,
16703 GOMP_loop_ull_ordered_guided_start,
16704 GOMP_loop_ull_ordered_runtime_start, GOMP_loop_ull_static_next,
16705 GOMP_loop_ull_dynamic_next, GOMP_loop_ull_guided_next,
16706 GOMP_loop_ull_runtime_next, GOMP_loop_ull_ordered_static_next,
16707 GOMP_loop_ull_ordered_dynamic_next, GOMP_loop_ull_ordered_guided_next,
16708 GOMP_loop_ull_ordered_runtime_next, GOMP_task, GOMP_taskwait): New
16710 * libgomp.map: Export lock routines also @@OMP_2.0.
16711 (GOMP_loop_ordered_dynamic_first,
16712 GOMP_loop_ordered_guided_first, GOMP_loop_ordered_runtime_first,
16713 GOMP_loop_ordered_static_first): Remove.
16714 (GOMP_loop_ull_dynamic_next, GOMP_loop_ull_dynamic_start,
16715 GOMP_loop_ull_guided_next, GOMP_loop_ull_guided_start,
16716 GOMP_loop_ull_ordered_dynamic_next,
16717 GOMP_loop_ull_ordered_dynamic_start,
16718 GOMP_loop_ull_ordered_guided_next,
16719 GOMP_loop_ull_ordered_guided_start,
16720 GOMP_loop_ull_ordered_runtime_next,
16721 GOMP_loop_ull_ordered_runtime_start,
16722 GOMP_loop_ull_ordered_static_next,
16723 GOMP_loop_ull_ordered_static_start,
16724 GOMP_loop_ull_runtime_next, GOMP_loop_ull_runtime_start,
16725 GOMP_loop_ull_static_next, GOMP_loop_ull_static_start,
16726 GOMP_task, GOMP_taskwait): Export @@GOMP_2.0.
16727 (omp_set_schedule, omp_get_schedule,
16728 omp_get_thread_limit, omp_set_max_active_levels,
16729 omp_get_max_active_levels, omp_get_level,
16730 omp_get_ancestor_thread_num, omp_get_team_size, omp_get_active_level,
16731 omp_set_schedule_, omp_set_schedule_8_,
16732 omp_get_schedule_, omp_get_schedule_8_, omp_get_thread_limit_,
16733 omp_set_max_active_levels_, omp_set_max_active_levels_8_,
16734 omp_get_max_active_levels_, omp_get_level_,
16735 omp_get_ancestor_thread_num_, omp_get_ancestor_thread_num_8_,
16736 omp_get_team_size_, omp_get_team_size_8_, omp_get_active_level_):
16737 New exports @@OMP_3.0.
16738 * omp.h.in (omp_sched_t): New type.
16739 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
16740 omp_set_max_active_levels, omp_get_max_active_levels,
16741 omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
16742 omp_get_active_level): New prototypes.
16743 * env.c (gomp_spin_count_var, gomp_throttled_spin_count_var,
16744 gomp_available_cpus, gomp_managed_threads, gomp_max_active_levels_var,
16745 gomp_thread_limit_var, gomp_remaining_threads_count,
16746 gomp_remaining_threads_lock): New variables.
16747 (parse_spincount): New function.
16748 (initialize_env): Call gomp_init_num_threads unconditionally.
16749 Initialize gomp_available_cpus. Call parse_spincount,
16750 initialize gomp_{,throttled_}spin_count_var
16751 depending on presence and value of OMP_WAIT_POLICY and
16752 GOMP_SPINCOUNT env vars. Handle GOMP_BLOCKTIME env var.
16753 Handle OMP_WAIT_POLICY, OMP_MAX_ACTIVE_LEVELS,
16754 OMP_THREAD_LIMIT, OMP_STACKSIZE env vars. Handle unit specification
16755 for GOMP_STACKSIZE. Initialize gomp_remaining_threads_count and
16756 gomp_remaining_threads_lock if needed. Use gomp_global_icv.
16757 (gomp_nthreads_var, gomp_dyn_var, gomp_nest_var,
16758 gomp_run_sched_var, gomp_run_sched_chunk): Remove.
16759 (gomp_global_icv): New.
16760 (parse_schedule): Use it. Parse "auto".
16761 (omp_set_num_threads): Use gomp_icv.
16762 (omp_set_dynamic, omp_get_dynamic, omp_set_nested, omp_get_nested):
16764 (omp_get_max_threads): Move from parallel.c.
16765 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
16766 omp_set_max_active_levels, omp_get_max_active_levels): New functions,
16768 (parse_stacksize, parse_wait_policy): New functions.
16769 * fortran.c: Rewrite lock wrappers, if symbol versioning provide
16770 both wrappers for compatibility and new locks.
16771 (omp_set_schedule, omp_get_schedule,
16772 omp_get_thread_limit, omp_set_max_active_levels,
16773 omp_get_max_active_levels, omp_get_level,
16774 omp_get_ancestor_thread_num, omp_get_team_size,
16775 omp_get_active_level): New ialias_redirect.
16776 (omp_set_schedule_, omp_set_schedule_8_,
16777 omp_get_schedule_, omp_get_schedule_8_, omp_get_thread_limit_,
16778 omp_set_max_active_levels_, omp_set_max_active_levels_8_,
16779 omp_get_max_active_levels_, omp_get_level_,
16780 omp_get_ancestor_thread_num_, omp_get_ancestor_thread_num_8_,
16781 omp_get_team_size_, omp_get_team_size_8_, omp_get_active_level_):
16783 * parallel.c: Include limits.h.
16784 (gomp_resolve_num_threads): Add count argument. Rewritten.
16785 (GOMP_parallel_start): Call gomp_new_team and pass that as last
16786 argument to gomp_team_start. Pass 0 as second argument to
16787 gomp_resolve_num_threads.
16788 (GOMP_parallel_end): Decrease gomp_remaining_threads_count
16789 if gomp_thread_limit_var != ULONG_MAX.
16790 (omp_in_parallel): Implement using ts.active_level.
16791 (omp_get_max_threads): Move to env.c.
16792 (omp_get_level, omp_get_ancestor_thread_num,
16793 omp_get_team_size, omp_get_active_level): New functions,
16795 * sections.c (GOMP_sections_start): Call gomp_work_share_init_done
16796 after gomp_sections_init. If HAVE_SYNC_BUILTINS, call
16797 gomp_iter_dynamic_next instead of the _locked variant and don't take
16798 lock around it, otherwise acquire it before calling
16799 gomp_iter_dynamic_next_locked.
16800 (GOMP_sections_next): If HAVE_SYNC_BUILTINS, call
16801 gomp_iter_dynamic_next instead of the _locked variant and don't take
16803 (GOMP_parallel_sections_start): Call gomp_new_team instead of
16804 gomp_new_work_share. Call gomp_sections_init on &team->work_shares[0].
16805 Adjust gomp_team_start caller. Pass count as second argument to
16806 gomp_resolve_num_threads, don't adjust num_threads after the call.
16808 * iter.c (gomp_iter_dynamic_next_locked): Don't multiply
16809 ws->chunk_size by incr.
16810 (gomp_iter_dynamic_next): Likewise. If ws->mode, use more efficient
16812 * libgomp_f.h.in (omp_lock_25_arg_t, omp_nest_lock_25_arg_t): New
16814 (omp_lock_25_arg, omp_nest_lock_25_arg): New macros.
16815 (omp_check_defines): Check even the compat defines.
16816 * config/linux/ptrlock.c: New file.
16817 * config/linux/ptrlock.h: New file.
16818 * config/linux/wait.h: New file.
16819 * config/posix/ptrlock.c: New file.
16820 * config/posix/ptrlock.h: New file.
16821 * config/linux/bar.h (gomp_team_barrier_wait,
16822 gomp_team_barrier_wait_end, gomp_team_barrier_wake): New prototypes.
16823 (gomp_team_barrier_set_task_pending,
16824 gomp_team_barrier_clear_task_pending,
16825 gomp_team_barrier_set_waiting_for_tasks,
16826 gomp_team_barrier_waiting_for_tasks,
16827 gomp_team_barrier_done): New inlines.
16828 (gomp_barrier_t): Rewritten.
16829 (gomp_barrier_state_t): New typedef.
16830 (gomp_barrier_init, gomp_barrier_reinit, gomp_barrier_destroy,
16831 gomp_barrier_wait_start): Rewritten.
16832 (gomp_barrier_wait_end): Change second argument to
16833 gomp_barrier_state_t.
16834 (gomp_barrier_last_thread, gomp_barrier_wait_last): New static
16836 * config/linux/bar.c: Include wait.h instead of libgomp.h and
16838 (gomp_barrier_wait_end): Rewritten.
16839 (gomp_team_barrier_wait, gomp_team_barrier_wait_end,
16840 gomp_team_barrier_wake, gomp_barrier_wait_last): New functions.
16841 * config/posix/bar.h (gomp_barrier_t): Add generation field.
16842 (gomp_barrier_state_t): New typedef.
16843 (gomp_team_barrier_wait,
16844 gomp_team_barrier_wait_end, gomp_team_barrier_wake): New prototypes.
16845 (gomp_barrier_wait_start): Or all but low 2 bits from generation
16846 into the return value. Return gomp_barrier_state_t.
16847 (gomp_team_barrier_set_task_pending,
16848 gomp_team_barrier_clear_task_pending,
16849 gomp_team_barrier_set_waiting_for_tasks,
16850 gomp_team_barrier_waiting_for_tasks,
16851 gomp_team_barrier_done): New inlines.
16852 (gomp_barrier_wait_end): Change second argument to
16853 gomp_barrier_state_t.
16854 (gomp_barrier_last_thread, gomp_barrier_wait_last): New static
16856 * config/posix/bar.c (gomp_barrier_init): Clear generation field.
16857 (gomp_barrier_wait_end): Change second argument to
16858 gomp_barrier_state_t.
16859 (gomp_team_barrier_wait, gomp_team_barrier_wait_end,
16860 gomp_team_barrier_wake): New functions.
16861 * config/linux/mutex.c: Include wait.h instead of libgomp.h and
16863 (gomp_futex_wake, gomp_futex_wait): New variables.
16864 (gomp_mutex_lock_slow): Call do_wait instead of futex_wait.
16865 * config/linux/lock.c: Rewrite to make locks task owned,
16866 for backwards compatibility provide the old entrypoints
16867 if symbol versioning. Include wait.h instead of libgomp.h and
16869 (gomp_set_nest_lock_25): Call do_wait instead of futex_wait.
16870 * config/posix95/lock.c: Rewrite to make locks task owned,
16871 for backwards compatibility provide the old entrypoints
16872 if symbol versioning.
16873 * config/posix/lock.c: Rewrite to make locks task owned,
16874 for backwards compatibility provide the old entrypoints
16875 if symbol versioning.
16876 * config/linux/proc.c (gomp_init_num_threads): Use gomp_global_icv.
16877 (get_num_procs, gomp_dynamic_max_threads): Use gomp_icv.
16878 * config/posix/proc.c, config/mingw32/proc.c: Similarly.
16879 * config/linux/powerpc/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
16880 (sys_futex0): Return error code.
16881 (futex_wake, futex_wait): If ENOSYS was returned, clear
16882 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
16883 (cpu_relax, atomic_write_barrier): New static inlines.
16884 * config/linux/alpha/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
16885 (futex_wake, futex_wait): If ENOSYS was returned, clear
16886 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
16887 (cpu_relax, atomic_write_barrier): New static inlines.
16888 * config/linux/x86/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
16889 (sys_futex0): Return error code.
16890 (futex_wake, futex_wait): If ENOSYS was returned, clear
16891 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
16892 (cpu_relax, atomic_write_barrier): New static inlines.
16893 * config/linux/s390/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
16894 (sys_futex0): Return error code.
16895 (futex_wake, futex_wait): If ENOSYS was returned, clear
16896 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
16897 (cpu_relax, atomic_write_barrier): New static inlines.
16898 * config/linux/ia64/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
16899 (sys_futex0): Return error code.
16900 (futex_wake, futex_wait): If ENOSYS was returned, clear
16901 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
16902 (cpu_relax, atomic_write_barrier): New static inlines.
16903 * config/linux/sparc/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
16904 (sys_futex0): Return error code.
16905 (futex_wake, futex_wait): If ENOSYS was returned, clear
16906 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
16907 (cpu_relax, atomic_write_barrier): New static inlines.
16908 * config/linux/sem.c: Include wait.h instead of libgomp.h and
16910 (gomp_sem_wait_slow): Call do_wait instead of futex_wait.
16911 * config/linux/affinity.c: Assume HAVE_SYNC_BUILTINS.
16912 * config/linux/omp-lock.h (omp_lock_25_t, omp_nest_lock_25_t): New
16914 (omp_nest_lock_t): Change owner into void *, add lock field.
16915 * config/posix95/omp-lock.h: Include semaphore.h.
16916 (omp_lock_25_t, omp_nest_lock_25_t): New types.
16917 (omp_lock_t): Use sem_t instead of mutex if semaphores
16919 (omp_nest_lock_t): Likewise. Change owner to void *.
16920 * config/posix/omp-lock.h: Include semaphore.h.
16921 (omp_lock_25_t, omp_nest_lock_25_t): New types.
16922 (omp_lock_t): Use sem_t instead of mutex if semaphores
16924 (omp_nest_lock_t): Likewise. Add owner field.
16926 2008-06-06 Jakub Jelinek <jakub@redhat.com>
16928 * testsuite/libgomp.c/collapse-1.c: New test.
16929 * testsuite/libgomp.c/collapse-2.c: New test.
16930 * testsuite/libgomp.c/collapse-3.c: New test.
16931 * testsuite/libgomp.c/icv-1.c: New test.
16932 * testsuite/libgomp.c/icv-2.c: New test.
16933 * testsuite/libgomp.c/lib-2.c: New test.
16934 * testsuite/libgomp.c/lock-1.c: New test.
16935 * testsuite/libgomp.c/lock-2.c: New test.
16936 * testsuite/libgomp.c/lock-3.c: New test.
16937 * testsuite/libgomp.c/loop-4.c: New test.
16938 * testsuite/libgomp.c/loop-5.c: New test.
16939 * testsuite/libgomp.c/loop-6.c: New test.
16940 * testsuite/libgomp.c/loop-7.c: New test.
16941 * testsuite/libgomp.c/loop-8.c: New test.
16942 * testsuite/libgomp.c/loop-9.c: New test.
16943 * testsuite/libgomp.c/nested-3.c: New test.
16944 * testsuite/libgomp.c/nestedfn-6.c: New test.
16945 * testsuite/libgomp.c/sort-1.c: New test.
16946 * testsuite/libgomp.c/task-1.c: New test.
16947 * testsuite/libgomp.c/task-2.c: New test.
16948 * testsuite/libgomp.c/task-3.c: New test.
16949 * testsuite/libgomp.c/task-4.c: New test.
16950 * testsuite/libgomp.c++/c++.exp: Add libstdc++-v3 build includes
16951 to C++ testsuite default compiler options.
16952 * testsuite/libgomp.c++/collapse-1.C: New test.
16953 * testsuite/libgomp.c++/collapse-2.C: New test.
16954 * testsuite/libgomp.c++/ctor-10.C: New test.
16955 * testsuite/libgomp.c++/for-1.C: New test.
16956 * testsuite/libgomp.c++/for-2.C: New test.
16957 * testsuite/libgomp.c++/for-3.C: New test.
16958 * testsuite/libgomp.c++/for-4.C: New test.
16959 * testsuite/libgomp.c++/for-5.C: New test.
16960 * testsuite/libgomp.c++/loop-8.C: New test.
16961 * testsuite/libgomp.c++/loop-9.C: New test.
16962 * testsuite/libgomp.c++/loop-10.C: New test.
16963 * testsuite/libgomp.c++/task-1.C: New test.
16964 * testsuite/libgomp.c++/task-2.C: New test.
16965 * testsuite/libgomp.c++/task-3.C: New test.
16966 * testsuite/libgomp.c++/task-4.C: New test.
16967 * testsuite/libgomp.c++/task-5.C: New test.
16968 * testsuite/libgomp.c++/task-6.C: New test.
16969 * testsuite/libgomp.fortran/allocatable1.f90: New test.
16970 * testsuite/libgomp.fortran/allocatable2.f90: New test.
16971 * testsuite/libgomp.fortran/allocatable3.f90: New test.
16972 * testsuite/libgomp.fortran/allocatable4.f90: New test.
16973 * testsuite/libgomp.fortran/collapse1.f90: New test.
16974 * testsuite/libgomp.fortran/collapse2.f90: New test.
16975 * testsuite/libgomp.fortran/collapse3.f90: New test.
16976 * testsuite/libgomp.fortran/collapse4.f90: New test.
16977 * testsuite/libgomp.fortran/lastprivate1.f90: New test.
16978 * testsuite/libgomp.fortran/lastprivate2.f90: New test.
16979 * testsuite/libgomp.fortran/lib4.f90: New test.
16980 * testsuite/libgomp.fortran/lock-1.f90: New test.
16981 * testsuite/libgomp.fortran/lock-2.f90: New test.
16982 * testsuite/libgomp.fortran/nested1.f90: New test.
16983 * testsuite/libgomp.fortran/nestedfn4.f90: New test.
16984 * testsuite/libgomp.fortran/strassen.f90: New test.
16985 * testsuite/libgomp.fortran/tabs1.f90: New test.
16986 * testsuite/libgomp.fortran/tabs2.f: New test.
16987 * testsuite/libgomp.fortran/task1.f90: New test.
16988 * testsuite/libgomp.fortran/task2.f90: New test.
16989 * testsuite/libgomp.fortran/vla4.f90: Add dg-warning.
16990 * testsuite/libgomp.fortran/vla5.f90: Likewise.
16991 * testsuite/libgomp.c/pr26943-2.c: Likewise.
16992 * testsuite/libgomp.c/pr26943-3.c: Likewise.
16993 * testsuite/libgomp.c/pr26943-4.c: Likewise.
16995 2008-05-23 Jakub Jelinek <jakub@redhat.com>
16998 * testsuite/libgomp.c++/ctor-11.C: New test.
16999 * testsuite/libgomp.c++/ctor-12.C: New test.
17001 2008-05-15 Janis Johnson <janis187@us.ibm.com>
17003 * testsuite/lib/libgomp.exp: Load torture-options.exp from gcc lib.
17005 2008-05-07 Jakub Jelinek <jakub@redhat.com>
17007 PR middle-end/36106
17008 * testsuite/libgomp.c/atomic-5.c: New test.
17009 * testsuite/libgomp.c/atomic-6.c: New test.
17010 * testsuite/libgomp.c/autopar-1.c: New test.
17012 2008-04-21 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
17014 * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS)
17015 (LIBGOMP_CHECK_ATTRIBUTE_VISIBILITY)
17016 (LIBGOMP_CHECK_ATTRIBUTE_DLLEXPORT)
17017 (LIBGOMP_CHECK_ATTRIBUTE_ALIAS): Fix cache variable names.
17018 * configure: Regenerate.
17019 * Makefile.in, testsuite/Makefile.in: Likewise.
17021 2008-04-18 Paolo Bonzini <bonzini@gnu.org>
17024 * aclocal.m4: Regenerate.
17025 * configure: Regenerate.
17027 2008-03-18 Jakub Jelinek <jakub@redhat.com>
17029 PR middle-end/35611
17030 * testsuite/libgomp.c/atomic-4.c: New test.
17033 * iter.c (gomp_iter_guided_next_locked): If q > n, set end to ws->end.
17034 (gomp_iter_guided_next): Likewise.
17035 * testsuite/libgomp.c/pr35625.c: New test.
17037 2008-03-16 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
17039 * aclocal.m4: Regenerate.
17040 * configure: Likewise.
17041 * Makefile.in: Likewise.
17042 * testsuite/Makefile.in: Likewise.
17044 2008-03-13 Jakub Jelinek <jakub@redhat.com>
17046 PR middle-end/35185
17047 * testsuite/libgomp.c++/pr35185.C: New test.
17049 2008-03-12 Jakub Jelinek <jakub@redhat.com>
17051 PR middle-end/35549
17052 * testsuite/libgomp.c/pr35549.c: New test.
17054 2008-03-06 Jakub Jelinek <jakub@redhat.com>
17056 * testsuite/libgomp.c/atomic-3.c: New test.
17058 2008-03-03 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
17061 * testsuite/libgomp.fortran/fortran.exp: Add .f08 and
17062 .F08 file suffixes.
17064 2008-03-03 Peter O'Gorman <pogma@thewrittenword.com>
17067 * configure.ac: Add ACX_HEADER_STRING.
17068 * env.c: Include strings.h.
17069 * aclocal.m4: Regenerate.
17070 * config.h.in: Regenerate.
17071 * configure: Regenerate.
17072 * Makefile.in: Regenerate.
17073 * testsuite/Makefile.in: Regenerate.
17075 2008-02-15 Jakub Jelinek <jakub@redhat.com>
17077 PR middle-end/35196
17078 * testsuite/libgomp.c/pr35196.c: New test.
17080 PR middle-end/35130
17081 * testsuite/libgomp.fortran/pr35130.f90: New test.
17082 * testsuite/libgomp.c/pr35130.c: New test.
17084 2008-01-25 Jakub Jelinek <jakub@redhat.com>
17086 PR middle-end/33880
17087 * testsuite/libgomp.c/pr33880.c: New test.
17088 * testsuite/libgomp.fortran/pr33880.f90: New test.
17090 2008-01-24 David Edelsohn <edelsohn@gnu.org>
17092 * configure: Regenerate.
17094 2008-01-08 Jakub Jelinek <jakub@redhat.com>
17096 * configure.ac: Move futex checking into ../config/futex.m4.
17097 * configure: Rebuilt.
17098 * aclocal.m4: Rebuilt.
17099 * Makefile.in: Rebuilt.
17101 * configure.tgt: Rename have_tls to gcc_cv_have_tls to match
17102 2007-10-15 ../config/tls.m4 change.
17104 2007-12-19 Jakub Jelinek <jakub@redhat.com>
17107 * testsuite/libgomp.c/pr34513.c: New test.
17108 * testsuite/libgomp.c++/pr34513.C: New test.
17110 2007-12-17 Jack Howarth <howarth@bromo.med.uc.edu>
17113 * testsuite/libgomp.fortran/crayptr2.f90: Move dg-options for darwin.
17115 2007-12-04 Jakub Jelinek <jakub@redhat.com>
17117 * omp.h.in (__GOMP_NOTHROW): Define. Use it on omp_* prototypes.
17119 2007-12-03 Jakub Jelinek <jakub@redhat.com>
17121 * testsuite/libgomp.c/private-1.c: New test.
17123 2007-11-29 Andris Pavenis <andris.pavenis@iki.fi>
17124 Paolo Bonzini <bonzini@gnu.org>
17126 * Makefile.am: Use space as vpath separator. Use 'vpath %'
17127 instead of 'VPATH ='.
17128 * Makefile.in: Regenerate.
17130 2007-11-23 Matthias Klose <doko@ubuntu.com>
17132 * configure.ac: Adjust makeinfo version check.
17133 * configure: Regenerate.
17135 2007-11-10 Jakub Jelinek <jakub@redhat.com>
17138 * testsuite/libgomp.fortran/pr34020.f90: New test.
17140 2007-11-06 Jakub Jelinek <jakub@redhat.com>
17143 * testsuite/libgomp.c++/atomic-1.C: New test.
17145 2007-10-25 Jakub Jelinek <jakub@redhat.com>
17148 * testsuite/libgomp.fortran/omp_parse3.f90 (test_threadprivate):
17149 Make x and y integers rather than (implicit) reals. Add private (j)
17150 clause to the last omp parallel.
17152 2007-10-15 Maciej W. Rozycki <macro@linux-mips.org>
17154 * configure: Regenerate following changes to ../config/tls.m4.
17156 2007-09-28 Jakub Jelinek <jakub@redhat.com>
17158 * testsuite/libgomp.fortran/stack.f90: New test.
17160 2007-09-10 Danny Smith <dannysmith@users.sourceforge.net>
17162 * config/mingw32/proc.c: New file.
17164 2007-09-05 Uros Bizjak <ubizjak@gmail.com>
17166 * testsuite/libgomp.c/atomic-1.c: Include cpuid.h for i386 targets.
17167 (main): Use __get_cpuid to get i386 target fetaures.
17168 * testsuite/libgomp.c/atomic-2.c: Include cpuid.h for x86_64 targets.
17169 (main): Use __get_cpuid to get x86_64 target fetaures.
17171 2007-08-15 Jack Howarth <howarth@bromo.med.uc.edu>
17174 * testsuite/libgomp.fortran/pr32550.f90: Use -static-libgcc on Darwin.
17175 * testsuite/libgomp.fortran/crayptr2.f90: Likwise.
17177 2007-07-12 Jakub Jelinek <jakub@redhat.com>
17180 * testsuite/libgomp.fortran/pr32550.f90: New test.
17181 * testsuite/libgomp.fortran/crayptr2.f90: New test.
17183 2007-07-05 H.J. Lu <hongjiu.lu@intel.com>
17185 * aclocal.m4: Regenerated.
17187 2007-07-05 Tobias Burnus <burnus@net-b.de>
17190 * testsuite/libgomp.fortran/pr32359.f90: New.
17192 2007-07-02 Jakub Jelinek <jakub@redhat.com>
17195 * sections.c (GOMP_parallel_sections_start): Only decrease
17196 number of threads to COUNT if dyn_var is true.
17197 * testsuite/libgomp.c/pr32468.c: New test.
17199 2007-07-02 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
17202 * config/posix/lock.c (_XOPEN_SOURCE): Don't define on Tru64 UNIX.
17204 2007-06-21 Jakub Jelinek <jakub@redhat.com>
17206 PR middle-end/32362
17207 * testsuite/libgomp.c/pr32362-1.c: New test.
17208 * testsuite/libgomp.c/pr32362-2.c: New test.
17209 * testsuite/libgomp.c/pr32362-3.c: New test.
17211 2007-06-07 Jakub Jelinek <jakub@redhat.com>
17213 * team.c (gomp_team_start): Fix setting up thread_attr
17216 2007-06-02 Paolo Bonzini <bonzini@gnu.org>
17218 * configure: Regenerate.
17220 2007-05-23 Steve Ellcey <sje@cup.hp.com>
17222 * Makefile.in: Regenerate.
17223 * configure: Regenerate.
17224 * aclocal.m4: Regenerate.
17225 * testsuite/Makefile.in: Regenerate.
17227 2007-05-04 Jakub Jelinek <jakub@redhat.com>
17229 * config/linux/proc.c: New file.
17232 * configure.tgt: Don't link with -Wl,-z,nodlopen even on Linux.
17234 2007-04-19 Daniel Franke <franke.daniel@gmail.com>
17236 * libgomp.texi (GOMP_CPU_AFFINITY): Updated.
17238 2007-04-16 Matthias Klose <doko@debian.org>
17240 * configure.tgt (i[456]86-*-linux*): Only add ia32 specific
17241 flags if not building with -m64.
17242 * testsuite/lib/libgomp-dg.exp (libgomp_init): Don't add -march
17243 flag for i?86-*-* targets, if current target matches -m64.
17245 2007-04-14 Steve Ellcey <sje@cup.hp.com>
17247 * Makefile.am: Add -I .. to ACLOCAL_AMFLAGS.
17248 * Makefile.in: Regenerate.
17250 2007-04-07 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
17253 * testsuite/libgomp.c++/c++.exp: Don't use concat when setting
17255 * testsuite/libgomp.fortran/fortran.exp: Likewise.
17257 2007-04-04 Jakub Jelinek <jakub@redhat.com>
17259 * libgomp.h (gomp_cpu_affinity, gomp_cpu_affinity_len): New extern
17261 (gomp_init_affinity, gomp_init_thread_affinity): New prototypes.
17262 * env.c (gomp_cpu_affinity, gomp_cpu_affinity_len): New variables.
17263 (parse_affinity): New function.
17264 (initialize_env): Call it and gomp_init_affinity.
17265 * team.c (gomp_team_start): If gomp_cpu_affinity != NULL,
17266 create new pthread_attr_t and call gomp_init_thread_affinity
17267 on it for each thread before passing the attribute to pthread_create.
17268 * config/linux/affinity.c: New file.
17269 * config/posix/affinity.c: New file.
17270 * configure.ac (HAVE_PTHREAD_AFFINITY_NP): New test.
17271 * configure: Rebuilt.
17272 * config.h.in: Rebuilt.
17273 * Makefile.am (libgomp_la_SOURCES): Add affinity.c.
17274 * Makefile.in: Rebuilt.
17276 2007-03-23 Andreas Tobler <a.tobler@schweiz.org>
17278 * testsuite/lib/libgomp.exp (libgomp_init): Add -shared-libgcc for
17280 * testsuite/libgomp.c++/c++.exp: Look for shared libstdc++ library
17281 and use it if found.
17283 2007-03-18 Uros Bizjak <ubizjak@gmail.com>
17285 * testsuite/config/default.exp: New file.
17286 * testsuite/lib/libgomp.exp: New file.
17287 * testsuite/lib/libgomp.dg (load_gcc_lib, libgomp_init,
17288 libgomp_target_compile, libgomp_option_help, libgomp_option_proc,
17289 load_lib *, load_gcc_lib *): Move to libgomp.exp.
17290 (libgomp_load): Remove.
17291 * testsuite/lib/libgomp.exp (libgomp_init): Compute
17292 always_ld_library_path, not ld_library_path. Set additional_flags
17293 to -march=i486 for ilp32 x86_64-*-* and i386-*-* targets.
17294 (target_compile): Do not call libgomp_init. Append lang_library_path
17295 and lang_link_flags to options.
17296 * testsuite/libgomp.c/c.exp: Set DEFAULT_FLAGS to -O2. Set
17297 ld_library_path from always_ld_library_path. Set LD_LIBRARY_PATH
17299 * testsuite/libgomp.c++/c++.exp: Set ld_library_path from
17300 always_ld_library_path. Set LD_LIBRARY_PATH here.
17301 * testsuite/libgomp.fortran/fortran.exp: Ditto.
17302 * testsuite/libgomp.c/atomic-1.c: Set dg-options to
17303 "-O2 -march=pentium" for ilp32 x86 targets. Simplify check for
17305 * testsuite/libgomp.c/atomic-2.c: Set dg-options to "-O2 -mcx16" for
17306 lp64 x86 targets. Do not check for SSE3 bit. Do not define bit_SSE3.
17307 * testsuite/libgomp.c/pr29947-1.c: Remove default dg-options.
17308 * testsuite/libgomp.c/pr29947-1.c: Ditto.
17309 * testsuite/libgomp.c/atomic-10.c: Ditto.
17311 2007-03-21 Jakub Jelinek <jakub@redhat.com>
17313 * testsuite/libgomp.fortran/appendix-a/a.22.8.f90: Add
17314 dg-final cleanup-modules line.
17315 * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: Likewise.
17316 * testsuite/libgomp.fortran/appendix-a/a.31.5.f90: Likewise.
17317 * testsuite/libgomp.fortran/appendix-a/a.31.4.f90: Likewise.
17318 * testsuite/libgomp.fortran/threadprivate2.f90: Likewise.
17319 * testsuite/libgomp.fortran/reduction5.f90: Likewise.
17320 * testsuite/libgomp.fortran/threadprivate3.f90: Likewise.
17321 * testsuite/libgomp.fortran/threadprivate1.f90: Likewise.
17323 2007-03-18 Andreas Schwab <schwab@suse.de>
17325 * acinclude.m4: Adjust regular expression for ld version
17327 * configure: Regenerate.
17329 2007-03-01 Brooks Moses <brooks.moses@codesourcery.com>
17331 * Makefile.am: Add install-pdf target as copied from
17332 automake v1.10 rules.
17333 * Makefile.in: Regenerate
17335 2007-02-07 Jakub Jelinek <jakub@redhat.com>
17338 * configure: Regenerate.
17341 * testsuite/libgomp.c++/pr30703.C: New test.
17343 2007-02-02 Jakub Jelinek <jakub@redhat.com>
17346 2006-07-05 Eric Christopher <echristo@apple.com>
17347 * configure.ac: Depend addition of -pthread on host OS.
17348 * configure: Regenerate.
17350 2007-01-31 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
17352 * libgomp.texi: Fix spacing after abbreviations.
17354 2007-01-31 Daniel Franke <franke.daniel@gmail.com>
17357 * configure.ac: Add check for makeinfo
17358 * Makefile.am: Redefined target libgomp.info, build libgomp.info only
17359 if an appropriate version of makeinfo is found.
17360 * aclocal.m4: Regenerated.
17361 * configure: Regenerated.
17362 * Makefile.in: Regenerated.
17363 * testsuite/Makefile.in: Regenerated.
17365 2007-01-29 Daniel Franke <franke.daniel@gmail.com>
17368 * libgomp.texi: More about implementation-dependent settings.
17370 2007-01-26 Tobias Burnus <burnus@net-b.de>
17372 * testsuite/libgomp.fortran/fortran.exp: Support .f03 extension.
17374 2007-01-24 Jakub Jelinek <jakub@redhat.com>
17376 PR middle-end/30494
17377 * testsuite/libgomp.c/pr30494.c: New test.
17379 2007-01-15 Tom Tromey <tromey@redhat.com>
17381 * configure: Rebuilt.
17382 * configure.ac: Fixed comment.
17384 2007-01-14 Daniel Franke <franke.daniel@gmail.com>
17386 * libgomp.texi: Document implementation specific default values of
17387 environment variables.
17389 2006-12-21 Daniel Franke <franke.daniel@gmail.com>
17392 * libgomp.texi: New file.
17393 * configure.ac: Add --enable-generated-files-in-srcdir option.
17394 * Makefile.am: Add info, dvi, pdf, html targets. On request, copy
17396 * Makefile.in: Regenerated.
17397 * config.h.in: Regenerated.
17398 * testsuite/Makefile.in: Regenerated.
17401 2006-12-04 Daniel Franke <franke.daniel@gmail.com>
17404 * env.c (omp_set_num_threads): Set illegal thread count to 1.
17406 2006-12-04 Eric Botcazou <ebotcazou@libertysurf.fr>
17408 * configure: Regenerate.
17410 2006-12-04 Jakub Jelinek <jakub@redhat.com>
17413 * loop.c (gomp_loop_init): Make parameters signed. Set ws->end to
17414 start if there shouldn't be any loop iterations.
17415 (gomp_loop_ordered_static_start): Remove start == end test.
17416 * testsuite/libgomp.c/pr29947-1.c: New test.
17417 * testsuite/libgomp.c/pr29947-2.c: New test.
17419 2006-12-02 Eric Botcazou <ebotcazou@libertysurf.fr>
17421 * configure.tgt: Force initial-exec TLS model on Linux only.
17423 2006-11-13 Daniel Jacobowitz <dan@codesourcery.com>
17425 * configure: Regenerated.
17427 2006-11-09 Uros Bizjak <ubizjak@gmail.com>
17429 * env.c (parse_schedule): Reject out of range values.
17430 (parse_unsigned_long): Reject out of range, negative or zero values.
17432 2006-10-29 Jakub Jelinek <jakub@redhat.com>
17435 * testsuite/libgomp.fortran/pr29629.f90: New test.
17437 2006-10-24 Eric Botcazou <ebotcazou@libertysurf.fr>
17440 * configure.tgt: Use posix95 configuration for Solaris 2.5.1 and 2.6.
17441 * config/posix95: New directory.
17442 * config/posix95/omp-lock.h: New file.
17443 * config/posix95/lock.c: Likewise.
17445 2006-10-14 Geoffrey Keating <geoffk@apple.com>
17447 * aclocal.m4: Regenerate.
17448 * configure: Regenerate.
17450 2006-10-05 Danny Smith <dannysmith@users.sourceforge.net>
17452 * testsuite/libgomp.c/barrier-1.c: Change timestamp tests from
17455 2006-10-05 Danny Smith <dannysmith@users.sourceforge.net>
17457 * acinclude.m4 (HAVE_ATTRIBUTE_ALIAS): Remove __USER_LABEL_PREFIX__ from
17459 * configure: Regenerate.
17460 * fortran.c (ialias_redirect): Add __USER_LABEL_PREFIX__ to alias.
17462 2006-09-26 Jakub Jelinek <jakub@redhat.com>
17464 PR middle-end/25261
17465 PR middle-end/28790
17466 * testsuite/libgomp.c/nestedfn-4.c: New test.
17467 * testsuite/libgomp.c/nestedfn-5.c: New test.
17468 * testsuite/libgomp.fortran/nestedfn3.f90: New test.
17471 * testsuite/libgomp.fortran/condinc1.f: New test.
17472 * testsuite/libgomp.fortran/condinc2.f: New test.
17473 * testsuite/libgomp.fortran/condinc3.f90: New test.
17474 * testsuite/libgomp.fortran/condinc4.f90: New test.
17475 * testsuite/libgomp.fortran/condinc1.inc: New file.
17477 2006-09-18 Tom Tromey <tromey@redhat.com>
17479 * configure: Rebuilt.
17481 2006-09-13 Joseph S. Myers <joseph@codesourcery.com>
17484 PR preprocessor/14634
17485 * configure.ac (HAVE_CLOCK_GETTIME): Add missing second argument
17487 * configure: Regenerate.
17489 2006-09-08 Steven G. Kargl <kargl@gcc.gnu.org>
17491 * testsuite/libgomp.fortran/reduction3.f90: Change
17492 -2147483648 to -huge(i)-1 to avoid overflow.
17493 * testsuite/libgomp.fortran/reduction4.f90: Change
17494 Z'ffffffff' to not(0) to avoid overflow.
17496 2006-08-26 Joseph S. Myers <joseph@codesourcery.com>
17499 * Makefile.am (libsubincludedir): New.
17500 (nodist_include_HEADERS): Rename to nodist_libsubinclude_HEADERS.
17501 * Makefile.in: Regenerate.
17503 2006-08-17 Jakub Jelinek <jakub@redhat.com>
17506 * env.c: Include ctype.h.
17507 (parse_schedule, parse_unsigned_long, parse_boolean): Allow
17508 leading and/or trailing whitespace and compare strings case
17511 2006-07-16 Jakub Jelinek <jakub@redhat.com>
17514 * testsuite/libgomp.fortran/pr28390.f: New test.
17516 2006-07-05 Eric Christopher <echristo@apple.com>
17518 * configure.ac: Depend addition of -pthread on host OS.
17519 * configure: Regenerate.
17521 2006-06-21 Jakub Jelinek <jakub@redhat.com>
17523 * critical.c (GOMP_critical_name_start): Fix *pptr initialization
17524 when gomp_mutex_t is larger than pointer and HAVE_SYNC_BUILTINS is
17527 2006-06-20 Jakub Jelinek <jakub@redhat.com>
17531 * configure.ac: If neither --enable-linux-futex nor
17532 --disable-linux-futex is passed, determine the default by checking
17533 for compiling and/or running against NPTL. With --enable-linux-futex,
17534 check if SYS_gettid and SYS_futex are defined.
17535 * configure: Rebuilt.
17537 2006-06-14 Richard Henderson <rth@redhat.com>
17540 * env.c (initialize_env): Avoid using PTHREAD_STACK_MIN when
17541 undefined. Use GOMP_STACKSIZE not OMP_STACKSIZE for environment.
17543 2006-06-09 Richard Henderson <rth@redhat.com>
17545 * env.c (gomp_nthreads_var): Change to unsigned long.
17546 (gomp_run_sched_chunk): Likewise.
17547 (parse_unsigned_long): Rename from parse_num_threads and generalize.
17548 (initialize_env): Initialize gomp_thread_attr.
17549 * libgomp.h (gomp_nthreads_var): Update decl.
17550 (gomp_run_sched_chunk): Likewise.
17551 (gomp_thread_attr): Declare.
17552 * team.c (gomp_thread_attr): Export.
17553 (initialize_team): Don't initialize it.
17555 2006-06-09 Jakub Jelinek <jakub@redhat.com>
17558 * testsuite/libgomp.fortran/pr27916-1.f90: New test.
17559 * testsuite/libgomp.fortran/pr27916-2.f90: New test.
17561 2006-06-06 Francois-Xavier Coudert <coudert@clipper.ens.fr>
17563 * config/mingw32/time.c: New file.
17564 * configure.tgt: Use it.
17566 2006-05-23 Carlos O'Donell <carlos@codesourcery.com>
17568 * Makefile.am: Add install-html target. Add install-html to .PHONY
17569 * Makefile.in: Regenerate.
17571 2006-05-22 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
17574 * testsuite/libgomp.c/sections-1.c: Require sync_int_long.
17575 * testsuite/libgomp.c/critical-1.c: Likewise.
17576 * testsuite/libgomp.c/loop-1.c: Likewise.
17577 * testsuite/libgomp.c/loop-2.c: Likewise.
17578 * testsuite/libgomp.c/single-1.c: Likewise.
17579 * testsuite/libgomp.c/ordered-1.c: Likewise.
17580 * testsuite/libgomp.c/ordered-2.c: Likewise.
17582 2006-05-15 Jakub Jelinek <jakub@redhat.com>
17584 PR middle-end/27416
17585 * libgomp.fortran/pr27416-1.f90: New test.
17587 2006-05-03 Jakub Jelinek <jakub@redhat.com>
17590 * testsuite/libgomp.fortran/pr27395-1.f90: New test.
17591 * testsuite/libgomp.fortran/pr27395-2.f90: New test.
17593 2006-05-02 Jakub Jelinek <jakub@redhat.com>
17596 * testsuite/libgomp.c/pr26943-1.c: New test.
17597 * testsuite/libgomp.c/pr26943-2.c: New test.
17598 * testsuite/libgomp.c/pr26943-3.c: New test.
17599 * testsuite/libgomp.c/pr26943-4.c: New test.
17600 * testsuite/libgomp.c++/pr27337.C: Remove barrier.
17601 * testsuite/libgomp.c++/pr26943.C: New test.
17603 2006-05-02 Jakub Jelinek <jakub@redhat.com>
17605 PR middle-end/27337
17606 * testsuite/libgomp.c++/pr27337.C: New test.
17608 2006-04-26 Jakub Jelinek <jakub@redhat.com>
17611 * testsuite/libgomp.c/pr26171.c: New test.
17613 2006-04-25 Richard Henderson <rth@redhat.com>
17616 * configure.ac: Use GCC_CHECK_TLS.
17617 * acinclude.m4 (LIBGOMP_CHECK_TLS): Remove.
17618 * Makefile.in, aclocal.m4, configure: Regenerate.
17620 2006-04-10 Matthias Klose <doko@debian.org>
17622 * testsuite/lib/libgomp.exp (libgomp_init): Recognize multilib
17623 directory names containing underscores.
17625 2006-03-21 Jakub Jelinek <jakub@redhat.com>
17628 * testsuite/libgomp.c++/pr26691.C: New test.
17630 2006-03-13 Jakub Jelinek <jakub@redhat.com>
17632 * testsuite/libgomp.fortran/retval2.f90: New test.
17634 2006-03-09 Diego Novillo <dnovillo@redhat.com>
17636 * testsuite/libgomp.c++: New directory.
17638 2006-02-25 Shantonu Sen <ssen@opendarwin.org>
17640 * config/posix/sem.h: Define BROKEN_POSIX_SEMAPHORES functions.
17641 * config/posix/sem.c: Implement the above.
17643 2006-02-25 Andreas Tobler <a.tobler@schweiz.ch>
17645 * configure.ac (HAVE_BROKEN_POSIX_SEMAPHORES): Check for darwin and
17646 define HAVE_BROKEN_POSIX_SEMAPHORES.
17647 * configure: Rebuilt.
17648 * config.h.in: Rebuilt.
17650 2006-02-17 Francois-Xavier Coudert <coudert@clipper.ens.fr>
17653 * configure.ac: Remove AC_CHECK_HEADER for pthread.h. Add comment
17654 for the other pthread check.
17655 * configure: Regenerate.
17656 * config.h.in: Regenerate.
17658 2006-02-15 Jakub Jelinek <jakub@redhat.com>
17662 * Makefile.am (fincludedir): New variable.
17663 (nodist_include_HEADERS): Remove Fortran files.
17664 (nodist_finclude_HEADERS): New variable.
17665 * Makefile.in: Regenerated.
17667 2006-02-13 Jakub Jelinek <jakub@redhat.com>
17669 * testsuite/libgomp.fortran/vla7.f90: Add -w to options.
17670 Remove tests for returning assumed character length arrays.
17672 2006-02-12 Roger Sayle <roger@eyesopen.com>
17673 John David Anglin <dave@hiauly1.hia.nrc.ca>
17676 * configure.tgt: Link against -lrt for sem_init on HPUX v11 systems.
17678 2006-02-08 Ulrich Weigand <uweigand@de.ibm.com>
17680 * testsuite/lib/libgomp-dg.exp: Load scanrtl.exp library.
17682 2006-02-07 Eric Botcazou <ebotcazou@libertysurf.fr>
17684 * testsuite/lib/libgomp-dg.exp (libgomp_init): Compute multilib related
17685 part of LD_LIBRARY_PATH manually.
17687 2006-02-03 H.J. Lu <hongjiu.lu@intel.com>
17690 * testsuite/lib/libgomp-dg.exp (blddir): Set it in
17693 2005-01-25 Paolo Bonzini <bonzini@gnu.org>
17696 * Makefile.am (omp.h, omp_lib.h, omp_lib.f90, libgomp_f.h): Remove.
17697 * configure.ac (PERL): Don't set.
17698 (gstdint.h, omp.h, omp_lib.h, omp_lib.f90, libgomp_f.h): Create here.
17699 (OMP_LOCK_SIZE, OMP_LOCK_ALIGN, OMP_LOCK_KIND, OMP_NEST_LOCK_SIZE,
17700 OMP_NEST_LOCK_ALIGN, OMP_NEST_LOCK_KIND): New substitutions.
17701 * omp.h.in: Wrap the new configure substitutions with @ characters.
17702 * omp_lib.h.in, omp_lib.f90.in, libgomp_f.h.in: Likewise.
17703 * aclocal.m4, configure, Makefile.in: Regenerate.
17704 * mkomp_h.pl: Delete.
17706 2005-01-24 Paolo Bonzini <bonzini@gnu.org>
17709 * configure.ac: Use GCC_HEADER_STDINT.
17710 * libgomp.h: Include gstdint.h.
17711 * libgomp_f.h.in: Don't include stdint.h or inttypes.h.
17712 * configure, Makefile.in, testsuite/Makefile.in, aclocal.m4: Rebuild.
17714 2006-01-24 Richard Henderson <rth@redhat.com>
17717 * configure.ac: Add AM_MAINTAINER_MODE.
17718 * Makefile.in, aclocal.m4, configure, testsuite/Makefile.in: Rebuild.
17720 2006-01-24 Diego Novillo <dnovillo@redhat.com>
17722 * Makefile.in: Regenerate.
17723 * testsuite/Makefile.in: Regenerate.
17724 * aclocal.m4: Regenerate.
17726 2006-01-23 Andreas Tobler <a.tobler@schweiz.ch>
17728 * config/posix/proc.c: Conditional include of sys/loadavg.h for
17730 * configure.ac: Add check for loadavg.h.
17731 (link_gomp): Adjust comment.
17732 * configure: Regenerate.
17733 * config.h.in: Regenerate.
17735 2006-01-21 Steve Ellcey <sje@cup.hp.com>
17738 * configure.ac: Remove check for alloca.h.
17739 * configure: Regenerate.
17740 * config.h.in: Regenerate.
17741 * libgomp.h: define gomp_alloca to be __builtin_alloca.
17742 * team.c: Remove use of alloca.h.
17743 Call gomp_alloca instead of alloca.
17745 2006-01-20 Steve Ellcey <sje@cup.hp.com>
17748 * team.c: Add include of alloca.h.
17749 * configure.ac: Add check for alloca.h.
17750 * configure: Regenerate.
17751 * config.h.in: Regenerate.
17753 2006-01-17 Jakub Jelinek <jakub@redhat.com>
17756 * testsuite/libgomp.fortran/pr25219.f90: New test.
17758 2005-12-05 Uros Bizjak <uros@kss-loka.si>
17760 * testsuite/libgomp.c/pr24455.c, testsuite/libgomp.c/copyin-1.c,
17761 testsuite/libgomp.c/copyin-2.c, testsuite/libgomp.c/copyin-3.c,
17762 testsuite/libgomp.c++/copyin-1.C, testsuite/libgomp.c++/copyin-2.C,
17763 testsuite/libgomp.c++/ctor-5.C, testsuite/libgomp.c++/ctor-8.C,
17764 testsuite/libgomp.c++/ctor-9.C, testsuite/libgomp.c++/pr24455.C,
17765 testsuite/libgomp.fortran/threadprivate1.f90,
17766 testsuite/libgomp.fortran/threadprivate2.f90,
17767 testsuite/libgomp.fortran/threadprivate3.f90,
17768 testsuite/libgomp.fortran/appendix-a/a.22.7.f9,
17769 testsuite/libgomp.fortran/appendix-a/a.22.8.f9,
17770 testsuite/libgomp.fortran/omp_parse3.f90: Change required
17771 effective-target to TLS runtime.
17773 * testsuite/libgomp.fortran/pr25162.f: Require
17774 effective-target TLS runtime.
17776 2005-12-01 Jakub Jelinek <jakub@redhat.com>
17778 * testsuite/libgomp.fortran/nestedfn2.f90: New test.
17779 * testsuite/libgomp.c/nestedfn-3.c: New test.
17781 2005-11-30 Jakub Jelinek <jakub@redhat.com>
17784 * testsuite/libgomp.fortran/pr25162.f: New test.
17786 2005-11-28 Jakub Jelinek <jakub@redhat.com>
17788 * config/posix/time.c (omp_get_wtime, omp_get_wtick): Fall back to
17789 CLOCK_REALTIME if clock_* (CLOCK_MONOTONIC, &ts) call failed.
17791 2005-11-25 Jakub Jelinek <jakub@redhat.com>
17793 * alloc.c, barrier.c, critical.c, env.c, error.c, fortran.c, iter.c,
17794 libgomp.h, libgomp_f.h.in, libgomp_g.h, loop.c, mkomp_h.pl, omp.h.in,
17795 omp_lib.f90.in, omp_lib.h.in, ordered.c, parallel.c, sections.c,
17796 single.c, team.c, work.c, config/linux/alpha/futex.h,
17797 config/linux/bar.c, config/linux/bar.h, config/linux/ia64/futex.h,
17798 config/linux/lock.c, config/linux/mutex.c, config/linux/mutex.h,
17799 config/linux/powerpc/futex.h, config/linux/s390/futex.h,
17800 config/linux/sem.c, config/linux/sem.h, config/linux/sparc/futex.h,
17801 config/linux/x86/futex.h, config/posix/bar.c, config/posix/bar.h,
17802 config/posix/lock.c, config/posix/mutex.h, config/posix/proc.c,
17803 config/posix/sem.c, config/posix/sem.h, config/posix/time.c: Update
17806 2005-11-18 Jakub Jelinek <jakub@redhat.com>
17808 * Makefile.am: Move libgomp_f.h from nodist_include_HEADERS
17809 to nodist_noinst_HEADERS.
17810 * Makefile.in: Rebuilt.
17812 * config/posix/omp-lock.h (omp_nest_lock_t): Change into struct,
17813 add integer count field.
17814 * config/posix/lock.c (omp_destroy_nest_lock): Adjust for
17815 omp_nest_lock_t type change.
17816 (omp_init_nest_lock): Likewise. Initialize count to 0.
17817 (omp_set_nest_lock): Adjust for omp_nest_lock_t type change.
17819 (omp_unset_nest_lock): Adjust for omp_nest_lock_t type change.
17821 (omp_test_nest_lock): Adjust for omp_nest_lock_t type change.
17822 Increment count if successful and return the new nesting level.
17823 * config/linux/lock.c (omp_test_nest_lock): Return new nesting level.
17824 * omp_lib.f90.in (omp_test_lock): Fix LOCK argument type.
17825 * testsuite/libgomp.c/lib-1.c: New test.
17826 * testsuite/libgomp.fortran/lib1.f90: New test.
17827 * testsuite/libgomp.fortran/lib2.f: New test.
17828 * testsuite/libgomp.fortran/lib3.f: New test.
17830 2005-11-17 Richard Henderson <rth@redhat.com>
17833 * Makefile.am (nodist_toolexeclib_HEADERS): New.
17834 * configure.ac (link_gomp): New. Substitute it.
17835 (AC_CONFIG_FILES): Add libgomp.spec.
17836 * libgomp.spec.in: New file.
17837 * Makefile.in, testsuite/Makefile.in, configure: Rebuild.
17838 * testsuite/lib/libgomp-dg.exp: Add -B${blddir}/ to flags.
17840 2005-11-18 Jakub Jelinek <jakub@redhat.com>
17842 * testsuite/libgomp.fortran/reduction1.f90: Adjust for
17843 reduction(-:var) behaving the same as reduction(+:var).
17844 * testsuite/libgomp.c/reduction-4.c: New test.
17846 2005-11-15 Uros Bizjak <uros@kss-loka.si>
17848 * testsuite/libgomp.c/pr24455-1.c, testsuite/libgomp.c/pr24455.c,
17849 testsuite/libgomp.c/copyin-1.c, testsuite/libgomp.c/copyin-2.c,
17850 testsuite/libgomp.c/copyin-3.c,
17851 testsuite/libgomp.c++/copyin-1.C, testsuite/libgomp.c++/copyin-2.C,
17852 testsuite/libgomp.c++/ctor-5.C, testsuite/libgomp.c++/ctor-8.C,
17853 testsuite/libgomp.c++/ctor-9.C, testsuite/libgomp.c++/pr24455-1.C,
17854 testsuite/libgomp.c++/pr24455.C,
17855 testsuite/libgomp.fortran/threadprivate1.f90,
17856 testsuite/libgomp.fortran/threadprivate2.f90,
17857 testsuite/libgomp.fortran/threadprivate3.f90,
17858 testsuite/libgomp.fortran/appendix-a/a.22.7.f9,
17859 testsuite/libgomp.fortran/appendix-a/a.22.8.f9,
17860 testsuite/libgomp.fortran/omp_parse3.f90: Require
17861 effective-target TLS.
17863 2005-11-14 Diego Novillo <dnovillo@redhat.com>
17867 2005-11-13 Jakub Jelinek <jakub@redhat.com>
17870 * team.c (initialize_team): Pass NULL rather than free as
17871 pthread_key_create destructor. Initialize thread specific data
17872 pointer in initial thread to a static local variable rather than
17875 2005-11-11 Uros Bizjak <uros@kss-loka.si>
17877 * testsuite/lib/libgomp-dg.exp: Locate libgcc.a and append
17878 its location to ld_library_path.
17880 2005-11-10 Diego Novillo <dnovillo@redhat.com>
17882 * testsuite/libgomp.c/c.exp: Rename from dg.exp.
17884 2005-11-10 Diego Novillo <dnovillo@redhat.com>
17886 * testsuite/libgomp.c: Rename from libgomp.dg.
17888 2005-11-09 Diego Novillo <dnovillo@redhat.com>
17890 * testsuite/libgomp.c++/pr24455.C: Add copyin clause for
17891 threadprivate variable 'i'.
17893 2005-11-09 Jakub Jelinek <jakub@redhat.com>
17895 * config/linux/s390/futex.h: New file.
17896 * configure.tgt: Use it.
17898 * testsuite/libgomp.fortran/omp_parse4.f90: Move n initialization
17899 before the parallel.
17901 2005-11-08 Jakub Jelinek <jakub@redhat.com>
17904 * testsuite/libgomp.c++/master-1.C: New test.
17906 2005-11-07 Jakub Jelinek <jakub@redhat.com>
17908 * testsuite/libgomp.dg/copyin-3.c: New test.
17910 2005-11-07 Jakub Jelinek <jakub@redhat.com>
17912 * testsuite/libgomp.fortran/retval1.f90: New test.
17913 * testsuite/libgomp.fortran/vla7.f90: New test.
17915 2005-11-06 Jakub Jelinek <jakub@redhat.com>
17917 * testsuite/libgomp.fortran/vla2.f90: New test.
17918 * testsuite/libgomp.fortran/vla3.f90: New test.
17919 * testsuite/libgomp.fortran/vla4.f90: New test.
17920 * testsuite/libgomp.fortran/vla5.f90: New test.
17921 * testsuite/libgomp.fortran/vla6.f90: New test.
17923 2005-11-01 Jakub Jelinek <jakub@redhat.com>
17925 * config/linux/sparc/futex.h: New file.
17926 * configure.tgt: Use it.
17927 * testsuite/lib/libgomp-dg.exp: Use -mcpu=v9 for sparc testing.
17929 * critical.c: Include stdlib.h.
17930 * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS): Avoid warnings about
17931 ignoring return value.
17932 * configure.ac: Don't put -Wc,-pthread into XCFLAGS until after
17933 LIBGOMP_CHECK_SYNC_BUILTINS check.
17934 * configure: Rebuilt.
17936 2005-10-31 Jakub Jelinek <jakub@redhat.com>
17938 * testsuite/libgomp.fortran/vla1.f90: New test.
17940 2005-10-31 Richard Henderson <rth@redhat.com>
17942 * testsuite/libgomp.fortran/character2.f90: Fix race condition
17943 setting 's' in different threads.
17945 2005-10-31 Jakub Jelinek <jakub@redhat.com>
17947 * libgomp.h (attribute_hidden, ialias): Define.
17948 * config/posix/proc.c (omp_get_num_procs): Add ialias.
17949 * config/posix/time.c (omp_get_wtime, omp_get_wtick): Likewise.
17950 * config/posix/lock.c (omp_init_lock, omp_init_nest_lock,
17951 omp_destroy_lock, omp_destroy_nest_lock, omp_set_lock,
17952 omp_set_nest_lock, omp_unset_lock, omp_unset_nest_lock,
17953 omp_test_lock, omp_test_nest_lock): Likewise.
17954 * config/linux/lock.c (omp_init_lock, omp_init_nest_lock,
17955 omp_destroy_lock, omp_destroy_nest_lock, omp_set_lock,
17956 omp_set_nest_lock, omp_unset_lock, omp_unset_nest_lock,
17957 omp_test_lock, omp_test_nest_lock): Likewise.
17958 * env.c (omp_set_dynamic, omp_set_nested, omp_set_num_threads,
17959 omp_get_dynamic, omp_get_nested): Likewise.
17960 * parallel.c (omp_get_num_threads, omp_get_max_threads,
17961 omp_get_thread_num, omp_in_parallel): Likewise.
17962 * fortran.c (ialias_redirect): Define.
17963 (omp_init_lock, omp_init_nest_lock, omp_destroy_lock,
17964 omp_destroy_nest_lock, omp_set_lock, omp_set_nest_lock,
17965 omp_unset_lock, omp_unset_nest_lock, omp_test_lock,
17966 omp_test_nest_lock, omp_set_dynamic, omp_set_nested,
17967 omp_set_num_threads, omp_get_dynamic, omp_get_nested,
17968 omp_in_parallel, omp_get_max_threads, omp_get_num_procs,
17969 omp_get_num_threads, omp_get_thread_num, omp_get_wtick,
17970 omp_get_wtime): Add ialias_redirect.
17972 2005-10-30 Jakub Jelinek <jakub@redhat.com>
17974 * fortran.c: Include stdlib.h.
17976 2005-10-29 Jakub Jelinek <jakub@redhat.com>
17978 * Makefile.am (env.o, env.lo): Depend on libgomp_f.h.
17979 * Makefile.in: Regenerated.
17981 2005-10-28 Jakub Jelinek <jakub@redhat.com>
17983 * mkomp_h.pl: Remove all -Wc, option prefixes in $COMPILE.
17984 * libgomp_f.h.in (omp_check_defines): New function.
17985 * env.c: Include libgomp_f.h.
17986 (initialize_env): Call omp_check_defines.
17988 * testsuite/libgomp.dg/copyin-2.c: New test.
17989 * testsuite/libgomp.c++/copyin-2.C: New test.
17990 * testsuite/libgomp.fortran/threadprivate3.f90: New test.
17992 * testsuite/libgomp.fortran/threadprivate2.f90: New test.
17993 * testsuite/libgomp.fortran/sharing2.f90: New test.
17995 * testsuite/libgomp.dg/copyin-1.c: New test.
17996 * testsuite/libgomp.c++/copyin-1.C: New test.
17998 2005-10-26 Jakub Jelinek <jakub@redhat.com>
18000 * testsuite/libgomp.fortran/crayptr1.f90: New test.
18002 * testsuite/libgomp.fortran/workshare1.f90: New test.
18004 * libgomp.fortran/appendix-a/a.28.5.f90: Change into compile
18006 * libgomp.fortran/sharing1.f90: New test.
18008 2005-10-24 Jakub Jelinek <jakub@redhat.com>
18011 * testsuite/libgomp.c++/loop-7.C: New test.
18013 * testsuite/libgomp.dg/nestedfn-2.c: New test.
18015 * testsuite/libgomp.dg/nestedfn-1.c: New test.
18016 * testsuite/libgomp.fortran/reduction6.f90: New test.
18017 * testsuite/libgomp.fortran/nestedfn1.f90: New test.
18019 2005-10-23 Richard Henderson <rth@redhat.com>
18021 * testsuite/libgomp.c++/ctor-1.C: New.
18022 * testsuite/libgomp.c++/ctor-2.C: New.
18023 * testsuite/libgomp.c++/ctor-3.C: New.
18024 * testsuite/libgomp.c++/ctor-4.C: New.
18025 * testsuite/libgomp.c++/ctor-5.C: New.
18026 * testsuite/libgomp.c++/ctor-6.C: New.
18027 * testsuite/libgomp.c++/ctor-7.C: New.
18028 * testsuite/libgomp.c++/ctor-8.C: New.
18029 * testsuite/libgomp.c++/ctor-9.C: New.
18031 2005-10-21 Diego Novillo <dnovillo@redhat.com>
18034 * testsuite/libgomp.c++/pr24455-1.C: New test.
18035 * testsuite/libgomp.c++/pr24455.C: New test.
18036 * testsuite/libgomp.dg/pr24455-1.c: New test.
18037 * testsuite/libgomp.dg/pr24455.c: New test.
18039 2005-10-20 Richard Henderson <rth@redhat.com>
18041 * testsuite/libgomp.c++/loop-6.C: New.
18042 * testsuite/libgomp.dg/loop-3.c: New.
18044 2005-10-20 Jakub Jelinek <jakub@redhat.com>
18046 * testsuite/libgomp.fortran/jacobi.f: Don't make i and j
18047 explicitly private.
18048 * testsuite/libgomp.fortran/omp_parse1.f90 (test_do): Make i
18051 2005-10-19 Diego Novillo <dnovillo@redhat.com>
18053 * testsuite/libgomp.fortran/jacobi.f: New test.
18055 2005-10-19 Richard Henderson <rth@redhat.com>
18057 * configure.tgt (i?86-linux): Default to with_arch instead of
18058 CFLAGS. Add -mtune to match target_cpu.
18059 (x86_64-linux): Tune to i686.
18061 * fortran.c (omp_test_nest_lock_): Fix typo.
18063 2005-10-19 Jakub Jelinek <jakub@redhat.com>
18065 * ordered.c (gomp_ordered_first, gomp_ordered_last, gomp_ordered_next,
18066 gomp_ordered_sync): Do nothing if team->nthreads == 1.
18067 * testsuite/libgomp.dg/ordered-3.c: New test.
18069 * testsuite/libgomp.dg/appendix-a/a.18.1.c: Remove unconditional abort.
18070 Remove volatile keyword.
18072 * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: Reorder variables
18073 in COMMON block to avoid warnings on 64-bit targets.
18075 2005-10-18 Diego Novillo <dnovillo@redhat.com>
18077 * testsuite/libgomp.dg/shared-3.c: New test.
18079 2005-10-18 Jakub Jelinek <jakub@redhat.com>
18081 * testsuite/libgomp.fortran/appendix-a/a.31.3.f90: Removed.
18082 * testsuite/libgomp.fortran/reduction5.f90: New test.
18084 2005-10-18 Jakub Jelinek <jakub@redhat.com>
18086 * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: Add -ffixed-form to
18088 * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: Likewise. Enable
18089 flush loop now that __sync_synchronize has proper memory barrier.
18090 * testsuite/libgomp.fortran/appendix-a/a.3.1.f90: Fix a typo.
18091 Add -ffixed-form to dg-options.
18093 2005-10-17 Diego Novillo <dnovillo@redhat.com>
18095 * testsuite/libgomp.fortran/fortran.exp: Also gather tests
18096 from subdirectories.
18097 * testsuite/libgomp.fortran/appendix-a/a.15.1.f90: New test.
18098 * testsuite/libgomp.fortran/appendix-a/a.16.1.f90: New test.
18099 * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: New test.
18100 * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: New test.
18101 * testsuite/libgomp.fortran/appendix-a/a.2.1.f90: New test.
18102 * testsuite/libgomp.fortran/appendix-a/a.21.1.f90: New test.
18103 * testsuite/libgomp.fortran/appendix-a/a.22.7.f90: New test.
18104 * testsuite/libgomp.fortran/appendix-a/a.22.8.f90: New test.
18105 * testsuite/libgomp.fortran/appendix-a/a.26.1.f90: New test.
18106 * testsuite/libgomp.fortran/appendix-a/a.28.1.f90: New test.
18107 * testsuite/libgomp.fortran/appendix-a/a.28.2.f90: New test.
18108 * testsuite/libgomp.fortran/appendix-a/a.28.3.f90: New test.
18109 * testsuite/libgomp.fortran/appendix-a/a.28.4.f90: New test.
18110 * testsuite/libgomp.fortran/appendix-a/a.28.5.f90: New test.
18111 * testsuite/libgomp.fortran/appendix-a/a.3.1.f90: New test.
18112 * testsuite/libgomp.fortran/appendix-a/a.31.3.f90: New test.
18113 * testsuite/libgomp.fortran/appendix-a/a.31.4.f90: New test.
18114 * testsuite/libgomp.fortran/appendix-a/a.31.5.f90: New test.
18115 * testsuite/libgomp.fortran/appendix-a/a.33.3.f90: New test.
18116 * testsuite/libgomp.fortran/appendix-a/a.38.1.f90: New test.
18117 * testsuite/libgomp.fortran/appendix-a/a.39.1.f90: New test.
18118 * testsuite/libgomp.fortran/appendix-a/a.4.1.f90: New test.
18119 * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: New test.
18120 * testsuite/libgomp.fortran/appendix-a/a.5.1.f90: New test.
18121 * testsuite/libgomp.fortran/appendix-a/a10.1.f90: New test.
18123 2005-10-17 Jakub Jelinek <jakub@redhat.com>
18125 * testsuite/libgomp.dg/dg.exp: Only unset lang_* if
18126 lang_library_path exists. Use find instead of glob to gather tests.
18127 * testsuite/libgomp.dg/appendix-a/appendix-a.exp: Removed.
18129 2005-10-17 Diego Novillo <dnovillo@redhat.com>
18131 * testsuite/libgomp.dg/appendix-a/a.15.1.c: New test.
18132 * testsuite/libgomp.dg/appendix-a/a.16.1.c: New test.
18133 * testsuite/libgomp.dg/appendix-a/a.18.1.c: New test.
18134 * testsuite/libgomp.dg/appendix-a/a.19.1.c: New test.
18135 * testsuite/libgomp.dg/appendix-a/a.2.1.c: New test.
18136 * testsuite/libgomp.dg/appendix-a/a.21.1.c: New test.
18137 * testsuite/libgomp.dg/appendix-a/a.26.1.c: New test.
18138 * testsuite/libgomp.dg/appendix-a/a.29.1.c: New test.
18139 * testsuite/libgomp.dg/appendix-a/a.3.1.c: New test.
18140 * testsuite/libgomp.dg/appendix-a/a.39.1.c: New test.
18141 * testsuite/libgomp.dg/appendix-a/a.4.1.c: New test.
18142 * testsuite/libgomp.dg/appendix-a/a.5.1.c: New test.
18143 * testsuite/libgomp.dg/appendix-a/appendix-a.exp: New file.
18145 2005-10-15 Jakub Jelinek <jakub@redhat.com>
18147 * testsuite/libgomp.dg/vla-1.c: New test.
18149 * testsuite/libgomp.fortran/reference2.f90: New test.
18151 * testsuite/libgomp.fortran/character2.f90: Remove explicit
18152 declaration of omp_get_thread_num.
18153 * testsuite/libgomp.fortran/threadprivate1.f90: Likewise. Add
18156 * testsuite/libgomp.fortran/reduction1.f90: New test.
18157 * testsuite/libgomp.fortran/reduction2.f90: New test.
18158 * testsuite/libgomp.fortran/reduction3.f90: New test.
18159 * testsuite/libgomp.fortran/reduction4.f90: New test.
18161 2005-10-13 Richard Henderson <rth@redhat.com>
18163 * Makefile.am (libgomp_la_SOURCES): Add bar.c.
18164 * Makefile.in: Regenerate.
18165 * barrier.c (GOMP_barrier): Use gomp_barrier_wait.
18166 * libgomp.h: Include bar.h.
18167 (struct gomp_barrier): Remove.
18168 (struct gomp_team): Add barrier. Replace master_barrier with
18169 master_release. Replace threads with ordered_release.
18170 (struct gomp_thread): Replace barrier with release.
18171 * ordered.c (gomp_ordered_first): Update for ordered_release change.
18172 (gomp_ordered_last, gomp_ordered_next, gomp_ordered_static_init,
18173 gomp_ordered_static_next, gomp_ordered_sync): Likewise.
18174 * single.c (GOMP_single_copy_start): Use gomp_barrier_wait.
18175 (GOMP_single_copy_end): Likewise.
18176 * team.c (gomp_threads_dock): New.
18177 (gomp_barrier_init, gomp_barrier_destroy): Remove.
18178 (gomp_thread_start): Use gomp_barrier_wait.
18179 (new_team, free_team): Update for gomp_team changes.
18180 (gomp_team_start): Use gomp_barrier_wait and gomp_barrier_reinit.
18181 (gomp_team_end): Use gomp_barrier_wait.
18182 (initialize_team): Update for gomp_thread changes.
18183 * work.c (gomp_work_share_end): Use gomp_barrier_wait_start.
18184 (gomp_work_share_end_nowait): Use atomic ops when available.
18185 * config/linux/bar.c, config/linux/bar.h: New files.
18186 * config/posix/bar.c, config/posix/bar.h: New files.
18188 2005-10-13 Jakub Jelinek <jakub@redhat.com>
18190 * single.c (GOMP_single_copy_end): Don't segfault if team is NULL.
18191 * testsuite/libgomp.dg/single-2.c: New test.
18193 * testsuite/libgomp.dg/dg.exp (lang_library_path, lang_test_file,
18194 lang_link_flags): Unset, so that they aren't inherited from previously
18197 * testsuite/libgomp.fortran/threadprivate1.f90: New test.
18199 2005-10-12 Richard Henderson <rth@redhat.com>
18201 * testsuite/lib/libgomp-dg.exp: Set blddir at toplevel.
18202 (libgomp_init): Use lang_test_file, lang_library_path, and
18203 lang_link_flags, set by the subdirectory files. Add -fopenmp here.
18205 * testsuite/libgomp.fortran/fortran.exp (lang_library_path): New.
18206 (lang_test_file, lang_link_flags): New.
18207 (DEFAULT_FFLAGS, ALWAYS_CFLAGS, multilibs, blddir): Remove.
18209 * testsuite/libgomp.c++/c++.exp, testsuite/libgomp.c++/loop-1.C,
18210 testsuite/libgomp.c++/loop-2.C, testsuite/libgomp.c++/loop-3.C,
18211 testsuite/libgomp.c++/loop-4.C, testsuite/libgomp.c++/nested-1.C,
18212 testsuite/libgomp.c++/parallel-1.C,
18213 testsuite/libgomp.c++/reduction-1.C,
18214 testsuite/libgomp.c++/reduction-2.C,
18215 testsuite/libgomp.c++/reduction-3.C,
18216 testsuite/libgomp.c++/sections-1.C, testsuite/libgomp.c++/shared-1.C,
18217 testsuite/libgomp.c++/shared-2.C, testsuite/libgomp.c++/single-1.C,
18218 testsuite/libgomp.c++/single-2.C, testsuite/libgomp.c++/single-3.C:
18219 New files, largely cribbed from the C testsuite.
18221 2005-10-12 Jakub Jelinek <jakub@redhat.com>
18223 * testsuite/libgomp.fortran/character1.f90: New test.
18224 * testsuite/libgomp.fortran/character2.f90: New test.
18226 * testsuite/libgomp.dg/nested-1.c: New test.
18227 * testsuite/libgomp.dg/nested-2.c: New test.
18228 * testsuite/libgomp.fortran/do1.f90: New test.
18229 * testsuite/libgomp.fortran/do2.f90: New test.
18231 * testsuite/libgomp.fortran/reference1.f90: New test.
18233 2005-10-11 Jakub Jelinek <jakub@redhat.com>
18235 * testsuite/libgomp.dg/reduction-1.c: New test.
18236 * testsuite/libgomp.dg/reduction-2.c: New test.
18237 * testsuite/libgomp.dg/reduction-3.c: New test.
18239 2005-10-10 Jakub Jelinek <jakub@redhat.com>
18241 * testsuite/libgomp.dg/atomic-1.c: New test.
18242 * testsuite/libgomp.dg/atomic-2.c: New test.
18244 2005-10-09 Richard Henderson <rth@redhat.com>
18246 * critical.c (atomic_lock): New.
18247 (initialize_critical): Initialize it.
18248 (GOMP_atomic_start, GOMP_atomic_end): New.
18249 * libgomp.map: Export them.
18250 * libgomp_g.h: Declare them.
18252 * testsuite/libgomp.dg/atomic-10.c: Move from gcc testsuite.
18254 2005-10-02 Richard Henderson <rth@redhat.com>
18256 * configure.ac: Move save_CFLAGS hack earlier. Append -Wall/-Werror
18257 to XCFLAGS instead of CFLAGS.
18259 2005-09-30 Richard Henderson <rth@redhat.com>
18261 * configure.ac: Determine whether -pthread or -lpthread is needed.
18262 * Makefile.am (libgomp_la_LDFLAGS): Remove explicit -lpthread.
18263 * Makefile.in, configure: Rebuild.
18265 2005-09-28 Richard Henderson <rth@redhat.com>
18267 * testsuite/libgomp.dg/omp-loop03.c: Fix return code.
18268 * testsuite/libgomp.dg/omp-single-3.c: New test.
18270 2005-09-28 Diego Novillo <dnovillo@redhat.com>
18272 * testsuite/libgomp.dg/omp-single-2.c: New test.
18273 * testsuite/libgomp.dg/shared-2.c: Fix return code.
18275 2005-09-27 Richard Henderson <rth@redhat.com>
18277 * testsuite/libgomp.dg/omp-loop03.c: Add initial barrier.
18278 * testsuite/libgomp.dg/omp-parallel-for.c: Specify static schedule.
18280 2005-09-27 Jakub Jelinek <jakub@redhat.com>
18282 * testsuite/libgomp.dg/omp-loop03.c: New test.
18284 2005-09-27 Diego Novillo <dnovillo@redhat.com>
18286 * testsuite/libgomp.dg/omp-parallel-for.c: New test.
18288 2005-09-27 Diego Novillo <dnovillo@redhat.com>
18290 * testsuite/libgomp.dg/omp-single-1.c: New test.
18291 * testsuite/libgomp.dg/shared-1.c: Return 0.
18292 Add prototype for abort.
18293 * testsuite/libgomp.dg/shared-2.c: Likewise.
18295 2005-09-26 Jakub Jelinek <jakub@redhat.com>
18297 * testsuite/libgomp.fortran/omp_parse3.f90: Fix non-conforming
18300 2005-09-26 Diego Novillo <dnovillo@redhat.com>
18302 * testsuite/libgomp.dg/shared-1.c: New test.
18303 * testsuite/libgomp.dg/shared-2.c: New test.
18305 2005-09-24 Richard Henderson <rth@redhat.com>
18307 * testsuite/libgomp.dg/omp_workshare3.c: Mark dg-error.
18309 2005-09-24 Richard Henderson <rth@redhat.com>
18311 * iter.c (gomp_iter_static_next): Round up when computing number
18312 of iterations. Don't bother distributing a remainder equally.
18314 * testsuite/libgomp.dg/omp-loop01.c (main1): Rename from main.
18315 Don't call srand. Zero b before testing.
18318 2005-09-24 Jakub Jelinek <jakub@redhat.com>
18320 * testsuite/libgomp.fortran/omp_atomic1.f90: New test.
18321 * testsuite/libgomp.fortran/omp_atomic2.f90: New test.
18323 2005-09-23 Jakub Jelinek <jakub@redhat.com>
18325 * testsuite/libgomp.fortran/omp_parse1.f90: Add a test for !$omp do
18326 without !$omp end do, followed immediately by subroutine end.
18328 2005-09-23 Diego Novillo <dnovillo@redhat.com>
18330 * testsuite/libgomp.dg/omp-parallel-if.c: New test.
18332 2005-09-22 Richard Henderson <rth@redhat.com>
18334 * critical.c (GOMP_critical_name_start): Change argument to void**.
18335 Reuse the pointer space if the mutex fits.
18336 (GOMP_critical_name_end): Likewise.
18337 (initialize_critical): Don't define if GOMP_MUTEX_INIT_0.
18338 * libgomp_g.h (GOMP_critical_name_start): Update decl.
18339 (GOMP_critical_name_end): Likewise.
18340 * config/linux/mutex.h (GOMP_MUTEX_INIT_0): New.
18341 * config/posix/mutex.h (GOMP_MUTEX_INIT_0): New.
18343 2005-09-20 Richard Henderson <rth@redhat.com>
18345 * critical.c (GOMP_critical_name_start, GOMP_critical_name_end): New.
18346 (create_lock_lock): New.
18347 (initialize_critical): Initialize it.
18348 * libgomp.map (GOMP_critical_name_start, GOMP_critical_name_end): New.
18349 * libgomp_g.h (GOMP_ordered_start, GOMP_ordered_end): Declare.
18351 2005-09-20 Diego Novillo <dnovillo@redhat.com>
18353 * testsuite/libgom.dg/omp-loop01.c: Include stdio.h.
18355 2005-09-20 Diego Novillo <dnovillo@redhat.com>
18357 * testsuite/libgomp.dg/omp-loop01.c: New test.
18358 * testsuite/libgomp.dg/omp-loop02.c: New test.
18360 2005-09-20 Jakub Jelinek <jakub@redhat.com>
18362 * configure.ac (AC_PROG_FC): Add.
18363 (USE_FORTRAN): New automake conditional.
18364 * configure: Rebuilt.
18365 * Makefile.am (libgomp_la_SOURCES): Add fortran.c.
18366 (nodist_include_HEADERS): Add omp_lib.h, omp_lib.f90 and libgomp_f.h.
18367 If USE_FORTRAN, add also omp_lib.mod and omp_lib_kinds.mod.
18368 Add rules to build them.
18369 * Makefile.in: Rebuilt.
18370 * mkomp_h.pl: Compute and replace also OMP_LOCK_KIND and
18371 OMP_NEST_LOCK_KIND.
18372 * libgomp.map: Add Fortran wrappers.
18373 * libgomp_f.h.in: New file.
18374 * omp_lib.h.in: New file.
18375 * omp_lib.f90.in: New file.
18376 * fortran.c: New file.
18377 * testsuite/lib/libgomp-dg.exp: Load a few more .exp files.
18378 Append libgfortran directory to LD_LIBRARY_PATH if it exists.
18379 Add -Lpath_to_libgfortran and -lgfortran -lgfortranbegin if
18380 libgfortran has been built.
18381 * testsuite/libgomp.fortran/fortran.exp: New file.
18382 * testsuite/libgomp.fortran/omp_cond1.f: New test.
18383 * testsuite/libgomp.fortran/omp_cond2.f: New test.
18384 * testsuite/libgomp.fortran/omp_cond3.F90: New test.
18385 * testsuite/libgomp.fortran/omp_cond4.F90: New test.
18386 * testsuite/libgomp.fortran/omp_hello.f: New test.
18387 * testsuite/libgomp.fortran/omp_orphan.f: New test.
18388 * testsuite/libgomp.fortran/omp_parse1.f90: New test.
18389 * testsuite/libgomp.fortran/omp_parse2.f90: New test.
18390 * testsuite/libgomp.fortran/omp_parse3.f90: New test.
18391 * testsuite/libgomp.fortran/omp_parse4.f90: New test.
18392 * testsuite/libgomp.fortran/omp_reduction.f: New test.
18393 * testsuite/libgomp.fortran/omp_workshare1.f: New test.
18394 * testsuite/libgomp.fortran/omp_workshare2.f: New test.
18396 2005-08-30 Richard Henderson <rth@redhat.com>
18398 * loop.c (GOMP_loop_static_start): Provide fallback wrapper
18399 function for when aliases are not usable.
18400 (GOMP_loop_dynamic_start, GOMP_loop_guided_start,
18401 GOMP_loop_ordered_static_start, GOMP_loop_ordered_dynamic_start,
18402 GOMP_loop_ordered_guided_start, GOMP_loop_static_next,
18403 GOMP_loop_dynamic_next, GOMP_loop_guided_next,
18404 GOMP_loop_ordered_static_next, GOMP_loop_ordered_dynamic_next,
18405 GOMP_loop_ordered_guided_next): Likewise.
18406 * ordered.c (GOMP_ordered_start): Likewise.
18408 2005-08-01 Diego Novillo <dnovillo@redhat.com>
18410 * testsuite/libgomp.dg/dg.exp: Use -O2 for now.
18411 * testsuite/libgomp.dg/omp_hello.c: Fix return code
18412 * testsuite/libgomp.dg/omp_matvec.c: Likewise.
18413 * testsuite/libgomp.dg/omp_orphan.c: Likewise
18414 * testsuite/libgomp.dg/omp_reduction.c: Likewise
18415 * testsuite/libgomp.dg/omp_workshare1.c: Likewise
18416 * testsuite/libgomp.dg/omp_workshare2.c: Likewise
18417 * testsuite/libgomp.dg/omp_workshare3.c: Likewise
18418 * testsuite/libgomp.dg/omp_workshare4.c: Likewise
18420 2005-07-07 Eric Christopher <echristo@redhat.com>
18421 Diego Novillo <dnovillo@redhat.com>
18423 * testsuite/libgomp.dg/dg.exp: Add -fopenmp to DEFAULT_CFLAGS.
18424 * testsuite/libgomp.dg/omp_hello.c: Add standard includes, fix
18426 * testsuite/libgomp.dg/omp_matvec.c: Ditto.
18427 * testsuite/libgomp.dg/omp_orphan.c: Ditto.
18428 * testsuite/libgomp.dg/omp_reduction.c: Ditto.
18429 * testsuite/libgomp.dg/omp_workshare1.c: Ditto.
18430 * testsuite/libgomp.dg/omp_workshare2.c: Ditto.
18431 * testsuite/libgomp.dg/omp_workshare3.c: Ditto.
18432 * testsuite/libgomp.dg/omp_workshare4.c: Ditto.
18434 2005-06-13 Diego Novillo <dnovillo@redhat.com>
18436 * TOPLEVEL.patch: Remove.
18438 2005-05-16 Richard Henderson <rth@redhat.com>
18440 * configure.ac: Test for clock_gettime.
18441 * config.h.in, configure: Rebuild.
18442 * config/posix/time.c: Use recommended TIME_WITH_SYS_TIME pattern.
18443 (omp_get_wtime): Use clock_gettime if available.
18444 (omp_get_wtick): Use clock_getres if available.
18446 2005-05-11 Richard Henderson <rth@redhat.com>
18448 * config/linux/ia64/futex.h: New file.
18449 * configure.tgt: Use it.
18451 * team.c (gomp_barrier_init, gomp_barrier_destroy): Mark inline.
18453 2005-05-07 Richard Henderson <rth@redhat.com>
18455 * config/linux/powerpc/futex.h: New file.
18456 * configure.tgt: Use it.
18458 * config/linux/i486/futex.h: Merge ...
18459 * config/linux/x86_64/futex.h: ... into ...
18460 * config/linux/x86/futex.h: ... here.
18461 * configure.tgt: Update to match.
18463 2005-05-06 Richard Henderson <rth@redhat.com>
18465 * config/linux/alpha/futex.h: Conditionally define SYS_futex.
18466 * config/linux/i486/futex.h: Likewise.
18467 * config/linux/x86_64/futex.h: Likewise.
18469 * config/linux/lock.c: New file.
18470 * config/linux/omp-lock.h: New file.
18472 * critical.c, env.h: Don't include omp.h
18473 * config/posix/lock.c: Include libgomp.h instead of omp.h.
18474 * config/posix/time.c: Likewise.
18475 * config/posix/omp-lock.h: New file.
18476 * libgomp.h: Include omp-lock.h and omp.h.
18477 * Makefile.am (nodist_include_HEADERS): New.
18479 * configure.ac (PERL): New.
18480 * mkomp_h.pl: New file.
18481 * omp.h.in: Rename from omp.h; replace omp_lock_t and omp_nest_lock_t
18483 * Makefile.in, configure, testsuite/Makefile.in: Rebuild.
18485 * testsuite/lib/libgomp-dg.exp (libgomp_init): Add include into
18486 build directory. Re-add -march=i486 hack.
18488 * testsuite/lib/libgomp-dg.exp (libgomp_compile_flags): Remove.
18489 (libgomp_link_flags): Remove.
18490 (libgomp_initialized): Remove.
18491 (libgomp_init): Don't protect from reinitialization. Copy code
18492 from libstdc++ for getting the multilib set correctly.
18494 2005-05-05 Richard Henderson <rth@redhat.com>
18496 * config/linux/alpha/futex.h: New file.
18497 * configure.tgt (alpha*-*-linux*): Use it.
18499 * config/posix/mutex.c: New file.
18500 * config/posix/sem.c: Use libgomp.h.
18502 * configure.tgt (x86_64-linux): Also test CC for -m32.
18503 * config/linux/x86_64/futex.h (futex_wait): Fix r10 usage.
18505 * testsuite/lib/libgomp-dg.exp (libgomp_link_flags): Add /
18508 * Makefile.am (SUBDIRS): New.
18509 (libgomp_la_LDFLAGS): Add -lpthread.
18510 * configure.ac (AM_INIT_AUTOMAKE): Enable dependencies.
18511 * Makefile.in, aclocal.m4, config.h.in, configure: Rebuild.
18513 * libgomp_g.h: New file.
18514 * libgomp.h: Split out all public declarations to libgomp_g.h.
18515 Use pragma GCC visibility instead of ATTRIBUTE_HIDDEN.
18516 * config/linux/mutex.h: Remove ATTRIBUTE_HIDDEN.
18517 * config/linux/sem.h: Likewise.
18518 * config/posix/sem.h: Likewise.
18520 * Makefile.am (AM_LDFLAGS): New.
18521 (libgomp_version_script): Split out from ...
18522 (libgomp_la_LDFLAGS): ... here.
18523 (libgomp_version_info): New.
18524 * acinclude.m4 (LIBGOMP_CHECK_TLS): Use LIBGOMP_ENABLE.
18525 (LIBGOMP_ENABLE): New.
18526 (LIBGOMP_CHECK_LINKER_FEATURES): New.
18527 (LIBGOMP_ENABLE_SYMVERS): New.
18528 * configure.ac (AC_INIT): Version 1.0.
18529 (enable-version-specific-runtime-libs): Use LIBGOMP_ENABLE.
18530 (enable-linux-futex): Likewise. Rename from enable-futex.
18531 (libtool_VERSION): New.
18532 (LIBGOMP_ENABLE_SYMVERS): Use it.
18533 * configure.tgt: Check with_gnu_ld wrt have_tls optimizations.
18534 * Makefile.in, aclocal.m4, configure: Rebuild.
18536 * config/linux/mutex.c: Include libgomp.h instead of mutex.h.
18537 (gomp_mutex_unlock_slow): Fix typo.
18538 * config/linux/sem.c: Similarly.
18539 (gomp_sem_post_slow): Fix typo.
18540 * config/linux/sem.h (gomp_sem_post_slow): Fix typo.
18541 * config/linux/i486/futex.h: Remove USE_LINUX_SYSENTER code.
18542 [__PIC__] (sys_futex0): Don't use tmp output in asm.
18544 * Makefile.am (AM_CFLAGS): Expand with XCFLAGS.
18545 (libgomp_la_LDFLAGS): Add top_srcdir to path.
18546 * acinclude.m4: Copy libtool.m4 stuff from libgfortran.
18547 * configure.ac: Check for getloadavg. Substitute XCFLAGS and
18548 XLDFLAGS. Add XCFLAGS to CFLAGS around LIBGOMP_CHECK_SYNC_BUILTINS.
18549 * configure.tgt: Set XCFLAGS and XLDFLAGS instead of CFLAGS and
18550 LDFLAGS. Pull enable_futex check to top-level.
18551 * libgomp.h: Fix sem.h and mutex.h includes. Define ATTRIBUTE_HIDDEN.
18552 * Makefile.in, aclocal.m4, config.h.in, configure: Regenerate.
18554 First attempt at real configury.
18555 * Makefile, config.h: Remove file.
18556 * Makefile.am, Makefile.in: New file.
18557 * acinclude.m4 aclocal.m4: New file.
18558 * configure.ac, configure.tgt, configure: New file.
18560 * config/posix/lock.c: Rename from sys-lock.c.
18561 * config/posix/mutex.h: Rename from sys-mutex.h.
18562 * config/posix/sem.c: Rename from sys-sem.c.
18563 * config/posix/sem.h: Rename from sys-sem.h.
18564 * config/posix/proc.c: Rename from sys-proc.c.
18565 * config/posix/time.c: Rename from sys-proc.c.
18567 * config/linux/mutex.c: New file.
18568 * config/linux/mutex.h: New file.
18569 * config/linux/sem.c: New file.
18570 * config/linux/sem.h: New file.
18571 * config/linux/i486/futex.h: New file.
18572 * config/linux/x86_64/futex.h: New file.
18574 2005-05-04 Richard Henderson <rth@redhat.com>
18576 * iter.c (gomp_iter_dynamic_next, gomp_iter_guided_next): New.
18577 * libgomp.h: Declare them.
18578 * loop.c (gomp_loop_dynamic_start, gomp_loop_guided_start,
18579 gomp_loop_dynamic_next, gomp_loop_guided_next): Use them.
18581 2005-05-04 Richard Henderson <rth@redhat.com>
18583 * libgomp-1 code drop
18585 2005-05-04 Richard Henderson <rth@redhat.com>
18587 * iter.c (gomp_iter_static_next): Return tri-state on 0.
18588 * ordered.c (gomp_ordered_static_next): Remove not_last argument.
18589 * libgomp.h (struct gomp_team_state): Make static_trip unsigned.
18590 (gomp_iter_static_next): Update.
18591 (gomp_ordered_static_next): Update.
18592 * loop.c (gomp_loop_static_start): Update for gomp_iter_static_next.
18593 (gomp_loop_ordered_static_start): Likewise. Exit early for a
18594 totally empty range.
18595 (gomp_loop_ordered_static_next): Refine test for calling
18596 gomp_ordered_static_next.
18597 * testsuite/ordered-1.c: Add case for more threads than iterations.
18599 * iter.c (gomp_iter_runtime_next_locked): Remove.
18600 * loop.c (gomp_loop_static_start, gomp_loop_dynamic_start,
18601 gomp_loop_guided_start, gomp_loop_ordered_static_start,
18602 gomp_loop_ordered_dynamic_start, gomp_loop_ordered_guided_start,
18603 gomp_loop_static_next, gomp_loop_dynamic_next, gomp_loop_guided_next,
18604 gomp_loop_ordered_static_next, gomp_loop_ordered_dynamic_next,
18605 gomp_loop_ordered_guided_next): Downcase name, make static, add
18606 an external alias with the old name.
18607 (GOMP_loop_runtime_start, GOMP_loop_ordered_runtime_start,
18608 GOMP_loop_runtime_next, GOMP_loop_ordered_runtime_next): Use a
18609 switch and call one of the above static functions.
18610 * libgomp.h: Update.
18612 * work.c (gomp_work_share_start): Lock the mutex for !first too.
18613 * loop.c (GOMP_loop_static_start, GOMP_loop_dynamic_start,
18614 GOMP_loop_guided_start, GOMP_loop_runtime_start,
18615 GOMP_loop_ordered_static_start, GOMP_loop_ordered_dynamic_start,
18616 GOMP_loop_ordered_guided_start): Update to match.
18617 * sections.c (GOMP_sections_start): Likewise.
18618 * single.c (GOMP_single_start, GOMP_single_copy_start): Likewise.
18620 * ordered.c (gomp_ordered_first, gomp_ordered_last, gomp_ordered_next,
18621 gomp_ordered_static_init, gomp_ordered_static_next): Rename s/_loop//.
18622 Use bounds check instead of modulus.
18623 (gomp_ordered_sync): Split out of GOMP_ordered_start.
18624 (gomp_ordered_last): Don't sync with ordered_owner here.
18625 (gomp_ordered_next): Likewise.
18626 (gomp_ordered_static_loop_next): Likewise.
18627 * loop.c, libgomp.h: Update to match.
18629 * libgomp.h (GOMP_barrier): Declare.
18631 * testsuite/barrier-1.c: New file.
18632 * testsuite/critical-1.c: New file.
18633 * testsuite/ordered-2.c: New file.
18634 * testsuite/ordered-1.c: New file.
18635 * testsuite/sections-1.c: New file.
18636 * testsuite/single-1.c: New file.
18637 * testsuite/Makefile (TESTS): Add them.
18639 2005-05-04 Richard Henderson <rth@redhat.com>
18641 * libgomp.h (struct gomp_work_share): Add ordered_owner.
18642 * loop.c (GOMP_loop_static_start): If not the startup thread,
18643 acquire the mutex to wait for initialization complete.
18644 (GOMP_loop_ordered_static_start): Likewise.
18645 (GOMP_loop_ordered_runtime_start): Likewise.
18646 (GOMP_loop_ordered_static_first): Remove.
18647 (GOMP_loop_ordered_dynamic_first): Remove.
18648 (GOMP_loop_ordered_guided_first): Remove.
18649 (GOMP_loop_ordered_runtime_first): Remove.
18650 * ordered.c (gomp_ordered_loop_first): Post to own release when
18651 we're the first thread.
18652 (gomp_ordered_loop_last): Wait on release if not owner.
18653 (gomp_ordered_loop_next): Likewise.
18654 (gomp_ordered_static_loop_init): New.
18655 (gomp_ordered_static_loop_next): Use ordered_owner.
18656 (GOMP_ordered_start): Likewise.
18657 * work.c (gomp_new_work_share): Initialize ordered_owner.
18659 2005-05-03 Richard Henderson <rth@redhat.com>
18661 * Makefile (OPT): New.
18664 * loop.c (GOMP_loop_end, GOMP_loop_end_nowait): New.
18665 * sections.c (GOMP_sections_end, GOMP_sections_end_nowait): New.
18666 * libgomp.h, libgomp.map, NOTES: Update to match.
18668 * team.c (struct gomp_thread_start_data): Remove ts, fn, data.
18669 Add initialized and thr members.
18670 (gomp_thread_start): Pause when initially spawned to wait for
18671 the whole team to be created.
18672 (gomp_team_start): Release team members at the end.
18674 * testsuite/loop-1.c (N): New. Use it instead of hardcoded 100.
18675 (f_foo_1): Use GOMP_loop_end.
18676 (f_foo_2): Use GOMP_loop_end_nowait.
18678 * testsuite/loop-2.c: New file.
18679 * testsuite/Makefile (TESTS): Add it.
18681 2005-05-03 Richard Henderson <rth@redhat.com>
18683 * iter.c (gomp_iter_static_next): Fix overflow check typo.
18684 (gomp_iter_dynamic_next_locked): Fix overflow check thinko.
18685 * team.c (new_team): Initialize oldest_live_gen to 1 if no
18686 initial work_share.
18688 * testsuite/Makefile: New file.
18689 * testsuite/loop-1.c: New file.
18691 2005-05-03 Richard Henderson <rth@redhat.com>
18693 Initial implementation and checkin.
18695 Copyright (C) 2005-2022 Free Software Foundation, Inc.
18697 Copying and distribution of this file, with or without modification,
18698 are permitted in any medium without royalty provided the copyright
18699 notice and this notice are preserved.